[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:50]OFD Sender: No OFD packet to send [03:41:55]OFD Sender: No OFD packet to send [03:42:00]OFD Sender: No OFD packet to send [03:42:05]OFD Sender: No OFD packet to send [03:42:10]OFD Sender: No OFD packet to send [03:42:15]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:26]OFD Sender: No OFD packet to send [03:58:31]OFD Sender: No OFD packet to send [03:58:36]OFD Sender: No OFD packet to send [03:58:41]OFD Sender: No OFD packet to send [03:58:46]OFD Sender: No OFD packet to send [03:58:51]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:07]OFD Sender: No OFD packet to send [04:15:12]OFD Sender: No OFD packet to send [04:15:17]OFD Sender: No OFD packet to send [04:15:22]OFD Sender: No OFD packet to send [04:15:27]OFD Sender: No OFD packet to send [04:15:32]OFD Sender: No OFD packet to send [04:15:38]OFD Sender: No OFD packet to send [04:15:43]OFD Sender: No OFD packet to send [04:15:48]OFD Sender: No OFD packet to send [04:15:53]OFD Sender: No OFD packet to send [04:15:58]OFD Sender: No OFD packet to send [04:16:03]OFD Sender: No OFD packet to send [04:16:08]OFD Sender: No OFD packet to send [04:16:13]OFD Sender: No OFD packet to send [04:16:18]OFD Sender: No OFD packet to send [04:16:23]OFD Sender: No OFD packet to send [04:16:28]OFD Sender: No OFD packet to send [04:16:33]OFD Sender: No OFD packet to send [04:16:38]OFD Sender: No OFD packet to send [04:16:43]OFD Sender: No OFD packet to send [04:16:48]OFD Sender: No OFD packet to send [04:16:53]OFD Sender: No OFD packet to send [04:16:58]OFD Sender: No OFD packet to send [04:17:03]OFD Sender: No OFD packet to send [04:17:08]OFD Sender: No OFD packet to send [04:17:13]OFD Sender: No OFD packet to send [04:17:18]OFD Sender: No OFD packet to send [04:17:23]OFD Sender: No OFD packet to send [04:17:28]OFD Sender: No OFD packet to send [04:17:33]OFD Sender: No OFD packet to send [04:17:38]OFD Sender: No OFD packet to send [04:17:43]OFD Sender: No OFD packet to send [04:17:48]OFD Sender: No OFD packet to send [04:17:53]OFD Sender: No OFD packet to send [04:17:58]OFD Sender: No OFD packet to send [04:18:03]OFD Sender: No OFD packet to send [04:18:08]OFD Sender: No OFD packet to send [04:18:13]OFD Sender: No OFD packet to send [04:18:18]OFD Sender: No OFD packet to send [04:18:23]OFD Sender: No OFD packet to send [04:18:28]OFD Sender: No OFD packet to send [04:18:33]OFD Sender: No OFD packet to send [04:18:38]OFD Sender: No OFD packet to send [04:18:43]OFD Sender: No OFD packet to send [04:18:48]OFD Sender: No OFD packet to send [04:18:53]OFD Sender: No OFD packet to send [04:18:58]OFD Sender: No OFD packet to send [04:19:03]OFD Sender: No OFD packet to send [04:19:08]OFD Sender: No OFD packet to send [04:19:13]OFD Sender: No OFD packet to send [04:19:18]OFD Sender: No OFD packet to send [04:19:23]OFD Sender: No OFD packet to send [04:19:28]OFD Sender: No OFD packet to send [04:19:33]OFD Sender: No OFD packet to send [04:19:38]OFD Sender: No OFD packet to send [04:19:43]OFD Sender: No OFD packet to send [04:19:48]OFD Sender: No OFD packet to send [04:19:53]OFD Sender: No OFD packet to send [04:19:58]OFD Sender: No OFD packet to send [04:20:03]OFD Sender: No OFD packet to send [04:20:08]OFD Sender: No OFD packet to send [04:20:13]OFD Sender: No OFD packet to send [04:20:18]OFD Sender: No OFD packet to send [04:20:23]OFD Sender: No OFD packet to send [04:20:28]OFD Sender: No OFD packet to send [04:20:33]OFD Sender: No OFD packet to send [04:20:38]OFD Sender: No OFD packet to send [04:20:43]OFD Sender: No OFD packet to send [04:20:48]OFD Sender: No OFD packet to send [04:20:53]OFD Sender: No OFD packet to send [04:20:58]OFD Sender: No OFD packet to send [04:21:03]OFD Sender: No OFD packet to send [04:21:08]OFD Sender: No OFD packet to send [04:21:13]OFD Sender: No OFD packet to send [04:21:18]OFD Sender: No OFD packet to send [04:21:23]OFD Sender: No OFD packet to send [04:21:28]OFD Sender: No OFD packet to send [04:21:33]OFD Sender: No OFD packet to send [04:21:38]OFD Sender: No OFD packet to send [04:21:43]OFD Sender: No OFD packet to send [04:21:48]OFD Sender: No OFD packet to send [04:21:53]OFD Sender: No OFD packet to send [04:21:58]OFD Sender: No OFD packet to send [04:22:03]OFD Sender: No OFD packet to send [04:22:08]OFD Sender: No OFD packet to send [04:22:13]OFD Sender: No OFD packet to send [04:22:18]OFD Sender: No OFD packet to send [04:22:23]OFD Sender: No OFD packet to send [04:22:28]OFD Sender: No OFD packet to send [04:22:33]OFD Sender: No OFD packet to send [04:22:38]OFD Sender: No OFD packet to send [04:22:43]OFD Sender: No OFD packet to send [04:22:48]OFD Sender: No OFD packet to send [04:22:53]OFD Sender: No OFD packet to send [04:22:58]OFD Sender: No OFD packet to send [04:23:03]OFD Sender: No OFD packet to send [04:23:08]OFD Sender: No OFD packet to send [04:23:13]OFD Sender: No OFD packet to send [04:23:18]OFD Sender: No OFD packet to send [04:23:23]OFD Sender: No OFD packet to send [04:23:28]OFD Sender: No OFD packet to send [04:23:33]OFD Sender: No OFD packet to send [04:23:38]OFD Sender: No OFD packet to send [04:23:43]OFD Sender: No OFD packet to send [04:23:48]OFD Sender: No OFD packet to send [04:23:53]OFD Sender: No OFD packet to send [04:23:58]OFD Sender: No OFD packet to send [04:24:03]OFD Sender: No OFD packet to send [04:24:08]OFD Sender: No OFD packet to send [04:24:13]OFD Sender: No OFD packet to send [04:24:18]OFD Sender: No OFD packet to send [04:24:23]OFD Sender: No OFD packet to send [04:24:28]OFD Sender: No OFD packet to send [04:24:33]OFD Sender: No OFD packet to send [04:24:38]OFD Sender: No OFD packet to send [04:24:43]OFD Sender: No OFD packet to send [04:24:48]OFD Sender: No OFD packet to send [04:24:53]OFD Sender: No OFD packet to send [04:24:58]OFD Sender: No OFD packet to send [04:25:03]OFD Sender: No OFD packet to send [04:25:08]OFD Sender: No OFD packet to send [04:25:13]OFD Sender: No OFD packet to send [04:25:18]OFD Sender: No OFD packet to send [04:25:23]OFD Sender: No OFD packet to send [04:25:28]OFD Sender: No OFD packet to send [04:25:33]OFD Sender: No OFD packet to send [04:25:38]OFD Sender: No OFD packet to send [04:25:43]OFD Sender: No OFD packet to send [04:25:48]OFD Sender: No OFD packet to send [04:25:53]OFD Sender: No OFD packet to send [04:25:58]OFD Sender: No OFD packet to send [04:26:03]OFD Sender: No OFD packet to send [04:26:08]OFD Sender: No OFD packet to send [04:26:13]OFD Sender: No OFD packet to send [04:26:18]OFD Sender: No OFD packet to send [04:26:23]OFD Sender: No OFD packet to send [04:26:28]OFD Sender: No OFD packet to send [04:26:33]OFD Sender: No OFD packet to send [04:26:38]OFD Sender: No OFD packet to send [04:26:43]OFD Sender: No OFD packet to send [04:26:48]OFD Sender: No OFD packet to send [04:26:53]OFD Sender: No OFD packet to send [04:26:58]OFD Sender: No OFD packet to send [04:27:03]OFD Sender: No OFD packet to send [04:27:08]OFD Sender: No OFD packet to send [04:27:13]OFD Sender: No OFD packet to send [04:27:18]OFD Sender: No OFD packet to send [04:27:23]OFD Sender: No OFD packet to send [04:27:28]OFD Sender: No OFD packet to send [04:27:33]OFD Sender: No OFD packet to send [04:27:38]OFD Sender: No OFD packet to send [04:27:43]OFD Sender: No OFD packet to send [04:27:48]OFD Sender: No OFD packet to send [04:27:53]OFD Sender: No OFD packet to send [04:27:58]OFD Sender: No OFD packet to send [04:28:03]OFD Sender: No OFD packet to send [04:28:08]OFD Sender: No OFD packet to send [04:28:13]OFD Sender: No OFD packet to send [04:28:18]OFD Sender: No OFD packet to send [04:28:23]OFD Sender: No OFD packet to send [04:28:28]OFD Sender: No OFD packet to send [04:28:33]OFD Sender: No OFD packet to send [04:28:38]OFD Sender: No OFD packet to send [04:28:43]OFD Sender: No OFD packet to send [04:28:48]OFD Sender: No OFD packet to send [04:28:53]OFD Sender: No OFD packet to send [04:28:58]OFD Sender: No OFD packet to send [04:29:03]OFD Sender: No OFD packet to send [04:29:08]OFD Sender: No OFD packet to send [04:29:13]OFD Sender: No OFD packet to send [04:29:18]OFD Sender: No OFD packet to send [04:29:23]OFD Sender: No OFD packet to send [04:29:28]OFD Sender: No OFD packet to send [04:29:33]OFD Sender: No OFD packet to send [04:29:38]OFD Sender: No OFD packet to send [04:29:43]OFD Sender: No OFD packet to send [04:29:48]OFD Sender: No OFD packet to send [04:29:53]OFD Sender: No OFD packet to send [04:29:58]OFD Sender: No OFD packet to send [04:30:03]OFD Sender: No OFD packet to send [04:30:08]OFD Sender: No OFD packet to send [04:30:13]OFD Sender: No OFD packet to send [04:30:18]OFD Sender: No OFD packet to send [04:30:23]OFD Sender: No OFD packet to send [04:30:28]OFD Sender: No OFD packet to send [04:30:33]OFD Sender: No OFD packet to send [04:30:38]OFD Sender: No OFD packet to send [04:30:43]OFD Sender: No OFD packet to send [04:30:48]OFD Sender: No OFD packet to send [04:30:53]OFD Sender: No OFD packet to send [04:30:58]OFD Sender: No OFD packet to send [04:31:03]OFD Sender: No OFD packet to send [04:31:08]OFD Sender: No OFD packet to send [04:31:13]OFD Sender: No OFD packet to send [04:31:18]OFD Sender: No OFD packet to send [04:31:23]OFD Sender: No OFD packet to send [04:31:28]OFD Sender: No OFD packet to send [04:31:33]OFD Sender: No OFD packet to send [04:31:38]OFD Sender: No OFD packet to send [04:31:43]OFD Sender: No OFD packet to send [04:31:48]OFD Sender: No OFD packet to send [04:31:53]OFD Sender: No OFD packet to send [04:31:58]OFD Sender: No OFD packet to send [04:32:03]OFD Sender: No OFD packet to send [04:32:08]OFD Sender: No OFD packet to send [04:32:13]OFD Sender: No OFD packet to send [04:32:19]OFD Sender: No OFD packet to send [04:32:24]OFD Sender: No OFD packet to send [04:32:29]OFD Sender: No OFD packet to send [04:32:34]OFD Sender: No OFD packet to send [04:32:39]OFD Sender: No OFD packet to send [04:32:44]OFD Sender: No OFD packet to send [04:32:49]OFD Sender: No OFD packet to send [04:32:54]OFD Sender: No OFD packet to send [04:32:59]OFD Sender: No OFD packet to send [04:33:04]OFD Sender: No OFD packet to send [04:33:09]OFD Sender: No OFD packet to send [04:33:14]OFD Sender: No OFD packet to send [04:33:19]OFD Sender: No OFD packet to send [04:33:24]OFD Sender: No OFD packet to send [04:33:29]OFD Sender: No OFD packet to send [04:33:34]OFD Sender: No OFD packet to send [04:33:39]OFD Sender: No OFD packet to send [04:33:44]OFD Sender: No OFD packet to send [04:33:49]OFD Sender: No OFD packet to send [04:33:54]OFD Sender: No OFD packet to send [04:33:59]OFD Sender: No OFD packet to send [04:34:04]OFD Sender: No OFD packet to send [04:34:09]OFD Sender: No OFD packet to send [04:34:14]OFD Sender: No OFD packet to send [04:34:19]OFD Sender: No OFD packet to send [04:34:24]OFD Sender: No OFD packet to send [04:34:29]OFD Sender: No OFD packet to send [04:34:34]OFD Sender: No OFD packet to send [04:34:39]OFD Sender: No OFD packet to send [04:34:44]OFD Sender: No OFD packet to send [04:34:49]OFD Sender: No OFD packet to send [04:34:54]OFD Sender: No OFD packet to send [04:34:59]OFD Sender: No OFD packet to send [04:35:04]OFD Sender: No OFD packet to send [04:35:09]OFD Sender: No OFD packet to send [04:35:14]OFD Sender: No OFD packet to send [04:35:19]OFD Sender: No OFD packet to send [04:35:24]OFD Sender: No OFD packet to send [04:35:29]OFD Sender: No OFD packet to send [04:35:34]OFD Sender: No OFD packet to send [04:35:39]OFD Sender: No OFD packet to send [04:35:44]OFD Sender: No OFD packet to send [04:35:49]OFD Sender: No OFD packet to send [04:35:54]OFD Sender: No OFD packet to send [04:35:59]OFD Sender: No OFD packet to send [04:36:04]OFD Sender: No OFD packet to send [04:36:09]OFD Sender: No OFD packet to send [04:36:14]OFD Sender: No OFD packet to send [04:36:19]OFD Sender: No OFD packet to send [04:36:24]OFD Sender: No OFD packet to send [04:36:29]OFD Sender: No OFD packet to send [04:36:34]OFD Sender: No OFD packet to send [04:36:39]OFD Sender: No OFD packet to send [04:36:44]OFD Sender: No OFD packet to send [04:36:49]OFD Sender: No OFD packet to send [04:36:54]OFD Sender: No OFD packet to send [04:36:59]OFD Sender: No OFD packet to send [04:37:04]OFD Sender: No OFD packet to send [04:37:09]OFD Sender: No OFD packet to send [04:37:14]OFD Sender: No OFD packet to send [04:37:19]OFD Sender: No OFD packet to send [04:37:24]OFD Sender: No OFD packet to send [04:37:29]OFD Sender: No OFD packet to send [04:37:34]OFD Sender: No OFD packet to send [04:37:39]OFD Sender: No OFD packet to send [04:37:44]OFD Sender: No OFD packet to send [04:37:49]OFD Sender: No OFD packet to send [04:37:54]OFD Sender: No OFD packet to send [04:37:59]OFD Sender: No OFD packet to send [04:38:04]OFD Sender: No OFD packet to send [04:38:09]OFD Sender: No OFD packet to send [04:38:14]OFD Sender: No OFD packet to send [04:38:19]OFD Sender: No OFD packet to send [04:38:24]OFD Sender: No OFD packet to send [04:38:29]OFD Sender: No OFD packet to send [04:38:34]OFD Sender: No OFD packet to send [04:38:39]OFD Sender: No OFD packet to send [04:38:44]OFD Sender: No OFD packet to send [04:38:49]OFD Sender: No OFD packet to send [04:38:54]OFD Sender: No OFD packet to send [04:38:59]OFD Sender: No OFD packet to send [04:39:04]OFD Sender: No OFD packet to send [04:39:09]OFD Sender: No OFD packet to send [04:39:14]OFD Sender: No OFD packet to send [04:39:19]OFD Sender: No OFD packet to send [04:39:24]OFD Sender: No OFD packet to send [04:39:29]OFD Sender: No OFD packet to send [04:39:34]OFD Sender: No OFD packet to send [04:39:39]OFD Sender: No OFD packet to send [04:39:44]OFD Sender: No OFD packet to send [04:39:49]OFD Sender: No OFD packet to send [04:39:54]OFD Sender: No OFD packet to send [04:39:59]OFD Sender: No OFD packet to send [04:40:04]OFD Sender: No OFD packet to send [04:40:09]OFD Sender: No OFD packet to send [04:40:14]OFD Sender: No OFD packet to send [04:40:19]OFD Sender: No OFD packet to send [04:40:24]OFD Sender: No OFD packet to send [04:40:29]OFD Sender: No OFD packet to send [04:40:34]OFD Sender: No OFD packet to send [04:40:39]OFD Sender: No OFD packet to send [04:40:44]OFD Sender: No OFD packet to send [04:40:49]OFD Sender: No OFD packet to send [04:40:54]OFD Sender: No OFD packet to send [04:40:59]OFD Sender: No OFD packet to send [04:41:04]OFD Sender: No OFD packet to send [04:41:09]OFD Sender: No OFD packet to send [04:41:14]OFD Sender: No OFD packet to send [04:41:19]OFD Sender: No OFD packet to send [04:41:24]OFD Sender: No OFD packet to send [04:41:29]OFD Sender: No OFD packet to send [04:41:34]OFD Sender: No OFD packet to send [04:41:39]OFD Sender: No OFD packet to send [04:41:44]OFD Sender: No OFD packet to send [04:41:49]OFD Sender: No OFD packet to send [04:41:54]OFD Sender: No OFD packet to send [04:41:59]OFD Sender: No OFD packet to send [04:42:04]OFD Sender: No OFD packet to send [04:42:09]OFD Sender: No OFD packet to send [04:42:14]OFD Sender: No OFD packet to send [04:42:19]OFD Sender: No OFD packet to send [04:42:24]OFD Sender: No OFD packet to send [04:42:29]OFD Sender: No OFD packet to send [04:42:34]OFD Sender: No OFD packet to send [04:42:39]OFD Sender: No OFD packet to send [04:42:44]OFD Sender: No OFD packet to send [04:42:49]OFD Sender: No OFD packet to send [04:42:54]OFD Sender: No OFD packet to send [04:42:59]OFD Sender: No OFD packet to send [04:43:04]OFD Sender: No OFD packet to send [04:43:09]OFD Sender: No OFD packet to send [04:43:14]OFD Sender: No OFD packet to send [04:43:19]OFD Sender: No OFD packet to send [04:43:24]OFD Sender: No OFD packet to send [04:43:29]OFD Sender: No OFD packet to send [04:43:34]OFD Sender: No OFD packet to send [04:43:39]OFD Sender: No OFD packet to send [04:43:44]OFD Sender: No OFD packet to send [04:43:49]OFD Sender: No OFD packet to send [04:43:54]OFD Sender: No OFD packet to send [04:43:59]OFD Sender: No OFD packet to send [04:44:04]OFD Sender: No OFD packet to send [04:44:09]OFD Sender: No OFD packet to send [04:44:14]OFD Sender: No OFD packet to send [04:44:19]OFD Sender: No OFD packet to send [04:44:24]OFD Sender: No OFD packet to send [04:44:29]OFD Sender: No OFD packet to send [04:44:34]OFD Sender: No OFD packet to send [04:44:39]OFD Sender: No OFD packet to send [04:44:44]OFD Sender: No OFD packet to send [04:44:49]OFD Sender: No OFD packet to send [04:44:54]OFD Sender: No OFD packet to send [04:44:59]OFD Sender: No OFD packet to send [04:45:04]OFD Sender: No OFD packet to send [04:45:09]OFD Sender: No OFD packet to send [04:45:14]OFD Sender: No OFD packet to send [04:45:19]OFD Sender: No OFD packet to send [04:45:24]OFD Sender: No OFD packet to send [04:45:29]OFD Sender: No OFD packet to send [04:45:34]OFD Sender: No OFD packet to send [04:45:39]OFD Sender: No OFD packet to send [04:45:44]OFD Sender: No OFD packet to send [04:45:49]OFD Sender: No OFD packet to send [04:45:54]OFD Sender: No OFD packet to send [04:45:59]OFD Sender: No OFD packet to send [04:46:04]OFD Sender: No OFD packet to send [04:46:09]OFD Sender: No OFD packet to send [04:46:14]OFD Sender: No OFD packet to send [04:46:19]OFD Sender: No OFD packet to send [04:46:24]OFD Sender: No OFD packet to send [04:46:29]OFD Sender: No OFD packet to send [04:46:34]OFD Sender: No OFD packet to send [04:46:39]OFD Sender: No OFD packet to send [04:46:44]OFD Sender: No OFD packet to send [04:46:49]OFD Sender: No OFD packet to send [04:46:54]OFD Sender: No OFD packet to send [04:46:59]OFD Sender: No OFD packet to send [04:47:04]OFD Sender: No OFD packet to send [04:47:09]OFD Sender: No OFD packet to send [04:47:14]OFD Sender: No OFD packet to send [04:47:19]OFD Sender: No OFD packet to send [04:47:24]OFD Sender: No OFD packet to send [04:47:29]OFD Sender: No OFD packet to send [04:47:34]OFD Sender: No OFD packet to send [04:47:39]OFD Sender: No OFD packet to send [04:47:44]OFD Sender: No OFD packet to send [04:47:49]OFD Sender: No OFD packet to send [04:47:54]OFD Sender: No OFD packet to send [04:47:59]OFD Sender: No OFD packet to send [04:48:04]OFD Sender: No OFD packet to send [04:48:09]OFD Sender: No OFD packet to send [04:48:14]OFD Sender: No OFD packet to send [04:48:19]OFD Sender: No OFD packet to send [04:48:24]OFD Sender: No OFD packet to send [04:48:29]OFD Sender: No OFD packet to send [04:48:34]OFD Sender: No OFD packet to send [04:48:39]OFD Sender: No OFD packet to send [04:48:44]OFD Sender: No OFD packet to send [04:48:49]OFD Sender: No OFD packet to send [04:48:55]OFD Sender: No OFD packet to send [04:49:00]OFD Sender: No OFD packet to send [04:49:05]OFD Sender: No OFD packet to send [04:49:10]OFD Sender: No OFD packet to send [04:49:15]OFD Sender: No OFD packet to send [04:49:20]OFD Sender: No OFD packet to send [04:49:25]OFD Sender: No OFD packet to send [04:49:30]OFD Sender: No OFD packet to send [04:49:35]OFD Sender: No OFD packet to send [04:49:40]OFD Sender: No OFD packet to send [04:49:45]OFD Sender: No OFD packet to send [04:49:50]OFD Sender: No OFD packet to send [04:49:55]OFD Sender: No OFD packet to send [04:50:00]OFD Sender: No OFD packet to send [04:50:05]OFD Sender: No OFD packet to send [04:50:10]OFD Sender: No OFD packet to send [04:50:15]OFD Sender: No OFD packet to send [04:50:20]OFD Sender: No OFD packet to send [04:50:25]OFD Sender: No OFD packet to send [04:50:30]OFD Sender: No OFD packet to send [04:50:35]OFD Sender: No OFD packet to send [04:50:40]OFD Sender: No OFD packet to send [04:50:45]OFD Sender: No OFD packet to send [04:50:50]OFD Sender: No OFD packet to send [04:50:55]OFD Sender: No OFD packet to send [04:51:00]OFD Sender: No OFD packet to send [04:51:05]OFD Sender: No OFD packet to send [04:51:10]OFD Sender: No OFD packet to send [04:51:15]OFD Sender: No OFD packet to send [04:51:20]OFD Sender: No OFD packet to send [04:51:25]OFD Sender: No OFD packet to send [04:51:30]OFD Sender: No OFD packet to send [04:51:35]OFD Sender: No OFD packet to send [04:51:40]OFD Sender: No OFD packet to send [04:51:45]OFD Sender: No OFD packet to send [04:51:50]OFD Sender: No OFD packet to send [04:51:55]OFD Sender: No OFD packet to send [04:52:00]OFD Sender: No OFD packet to send [04:52:05]OFD Sender: No OFD packet to send [04:52:10]OFD Sender: No OFD packet to send [04:52:15]OFD Sender: No OFD packet to send [04:52:20]OFD Sender: No OFD packet to send [04:52:25]OFD Sender: No OFD packet to send [04:52:30]OFD Sender: No OFD packet to send [04:52:35]OFD Sender: No OFD packet to send [04:52:40]OFD Sender: No OFD packet to send [04:52:45]OFD Sender: No OFD packet to send [04:52:50]OFD Sender: No OFD packet to send [04:52:55]OFD Sender: No OFD packet to send [04:53:00]OFD Sender: No OFD packet to send [04:53:05]OFD Sender: No OFD packet to send [04:53:10]OFD Sender: No OFD packet to send [04:53:15]OFD Sender: No OFD packet to send [04:53:20]OFD Sender: No OFD packet to send [04:53:25]OFD Sender: No OFD packet to send [04:53:30]OFD Sender: No OFD packet to send [04:53:35]OFD Sender: No OFD packet to send [04:53:40]OFD Sender: No OFD packet to send [04:53:45]OFD Sender: No OFD packet to send [04:53:50]OFD Sender: No OFD packet to send [04:53:55]OFD Sender: No OFD packet to send [04:54:00]OFD Sender: No OFD packet to send [04:54:05]OFD Sender: No OFD packet to send [04:54:10]OFD Sender: No OFD packet to send [04:54:15]OFD Sender: No OFD packet to send [04:54:20]OFD Sender: No OFD packet to send [04:54:25]OFD Sender: No OFD packet to send [04:54:30]OFD Sender: No OFD packet to send [04:54:35]OFD Sender: No OFD packet to send [04:54:40]OFD Sender: No OFD packet to send [04:54:45]OFD Sender: No OFD packet to send [04:54:50]OFD Sender: No OFD packet to send [04:54:55]OFD Sender: No OFD packet to send [04:55:00]OFD Sender: No OFD packet to send [04:55:05]OFD Sender: No OFD packet to send [04:55:10]OFD Sender: No OFD packet to send [04:55:15]OFD Sender: No OFD packet to send [04:55:20]OFD Sender: No OFD packet to send [04:55:25]OFD Sender: No OFD packet to send [04:55:30]OFD Sender: No OFD packet to send [04:55:35]OFD Sender: No OFD packet to send [04:55:40]OFD Sender: No OFD packet to send [04:55:45]OFD Sender: No OFD packet to send [04:55:50]OFD Sender: No OFD packet to send [04:55:55]OFD Sender: No OFD packet to send [04:56:00]OFD Sender: No OFD packet to send [04:56:05]OFD Sender: No OFD packet to send [04:56:10]OFD Sender: No OFD packet to send [04:56:15]OFD Sender: No OFD packet to send [04:56:20]OFD Sender: No OFD packet to send [04:56:25]OFD Sender: No OFD packet to send [04:56:30]OFD Sender: No OFD packet to send [04:56:35]OFD Sender: No OFD packet to send [04:56:40]OFD Sender: No OFD packet to send [04:56:45]OFD Sender: No OFD packet to send [04:56:50]OFD Sender: No OFD packet to send [04:56:55]OFD Sender: No OFD packet to send [04:57:00]OFD Sender: No OFD packet to send [04:57:05]OFD Sender: No OFD packet to send [04:57:10]OFD Sender: No OFD packet to send [04:57:15]OFD Sender: No OFD packet to send [04:57:20]OFD Sender: No OFD packet to send [04:57:25]OFD Sender: No OFD packet to send [04:57:30]OFD Sender: No OFD packet to send [04:57:35]OFD Sender: No OFD packet to send [04:57:40]OFD Sender: No OFD packet to send [04:57:45]OFD Sender: No OFD packet to send [04:57:50]OFD Sender: No OFD packet to send [04:57:55]OFD Sender: No OFD packet to send [04:58:00]OFD Sender: No OFD packet to send [04:58:05]OFD Sender: No OFD packet to send [04:58:10]OFD Sender: No OFD packet to send [04:58:15]OFD Sender: No OFD packet to send [04:58:20]OFD Sender: No OFD packet to send [04:58:25]OFD Sender: No OFD packet to send [04:58:30]OFD Sender: No OFD packet to send [04:58:35]OFD Sender: No OFD packet to send [04:58:40]OFD Sender: No OFD packet to send [04:58:45]OFD Sender: No OFD packet to send [04:58:50]OFD Sender: No OFD packet to send [04:58:55]OFD Sender: No OFD packet to send [04:59:00]OFD Sender: No OFD packet to send [04:59:05]OFD Sender: No OFD packet to send [04:59:10]OFD Sender: No OFD packet to send [04:59:15]OFD Sender: No OFD packet to send [04:59:20]OFD Sender: No OFD packet to send [04:59:25]OFD Sender: No OFD packet to send [04:59:30]OFD Sender: No OFD packet to send [04:59:35]OFD Sender: No OFD packet to send [04:59:40]OFD Sender: No OFD packet to send [04:59:45]OFD Sender: No OFD packet to send [04:59:50]OFD Sender: No OFD packet to send [04:59:55]OFD Sender: No OFD packet to send [05:00:00]OFD Sender: No OFD packet to send [05:00:05]OFD Sender: No OFD packet to send [05:00:10]OFD Sender: No OFD packet to send [05:00:15]OFD Sender: No OFD packet to send [05:00:20]OFD Sender: No OFD packet to send [05:00:25]OFD Sender: No OFD packet to send [05:00:30]OFD Sender: No OFD packet to send [05:00:35]OFD Sender: No OFD packet to send [05:00:40]OFD Sender: No OFD packet to send [05:00:45]OFD Sender: No OFD packet to send [05:00:50]OFD Sender: No OFD packet to send [05:00:55]OFD Sender: No OFD packet to send [05:01:00]OFD Sender: No OFD packet to send [05:01:05]OFD Sender: No OFD packet to send [05:01:10]OFD Sender: No OFD packet to send [05:01:15]OFD Sender: No OFD packet to send [05:01:20]OFD Sender: No OFD packet to send [05:01:25]OFD Sender: No OFD packet to send [05:01:30]OFD Sender: No OFD packet to send [05:01:35]OFD Sender: No OFD packet to send [05:01:40]OFD Sender: No OFD packet to send [05:01:45]OFD Sender: No OFD packet to send [05:01:50]OFD Sender: No OFD packet to send [05:01:55]OFD Sender: No OFD packet to send [05:02:00]OFD Sender: No OFD packet to send [05:02:05]OFD Sender: No OFD packet to send [05:02:10]OFD Sender: No OFD packet to send [05:02:15]OFD Sender: No OFD packet to send [05:02:20]OFD Sender: No OFD packet to send [05:02:25]OFD Sender: No OFD packet to send [05:02:30]OFD Sender: No OFD packet to send [05:02:35]OFD Sender: No OFD packet to send [05:02:40]OFD Sender: No OFD packet to send [05:02:45]OFD Sender: No OFD packet to send [05:02:50]OFD Sender: No OFD packet to send [05:02:55]OFD Sender: No OFD packet to send [05:03:00]OFD Sender: No OFD packet to send [05:03:05]OFD Sender: No OFD packet to send [05:03:10]OFD Sender: No OFD packet to send [05:03:15]OFD Sender: No OFD packet to send [05:03:20]OFD Sender: No OFD packet to send [05:03:25]OFD Sender: No OFD packet to send [05:03:30]OFD Sender: No OFD packet to send [05:03:35]OFD Sender: No OFD packet to send [05:03:40]OFD Sender: No OFD packet to send [05:03:45]OFD Sender: No OFD packet to send [05:03:50]OFD Sender: No OFD packet to send [05:03:55]OFD Sender: No OFD packet to send [05:04:00]OFD Sender: No OFD packet to send [05:04:05]OFD Sender: No OFD packet to send [05:04:10]OFD Sender: No OFD packet to send [05:04:15]OFD Sender: No OFD packet to send [05:04:20]OFD Sender: No OFD packet to send [05:04:25]OFD Sender: No OFD packet to send [05:04:30]OFD Sender: No OFD packet to send [05:04:35]OFD Sender: No OFD packet to send [05:04:40]OFD Sender: No OFD packet to send [05:04:45]OFD Sender: No OFD packet to send [05:04:50]OFD Sender: No OFD packet to send [05:04:55]OFD Sender: No OFD packet to send [05:05:00]OFD Sender: No OFD packet to send [05:05:05]OFD Sender: No OFD packet to send [05:05:10]OFD Sender: No OFD packet to send [05:05:15]OFD Sender: No OFD packet to send [05:05:20]OFD Sender: No OFD packet to send [05:05:25]OFD Sender: No OFD packet to send [05:05:31]OFD Sender: No OFD packet to send [05:05:36]OFD Sender: No OFD packet to send [05:05:41]OFD Sender: No OFD packet to send [05:05:46]OFD Sender: No OFD packet to send [05:05:51]OFD Sender: No OFD packet to send [05:05:56]OFD Sender: No OFD packet to send [05:06:01]OFD Sender: No OFD packet to send [05:06:06]OFD Sender: No OFD packet to send [05:06:11]OFD Sender: No OFD packet to send [05:06:16]OFD Sender: No OFD packet to send [05:06:21]OFD Sender: No OFD packet to send [05:06:26]OFD Sender: No OFD packet to send [05:06:31]OFD Sender: No OFD packet to send [05:06:36]OFD Sender: No OFD packet to send [05:06:41]OFD Sender: No OFD packet to send [05:06:46]OFD Sender: No OFD packet to send [05:06:51]OFD Sender: No OFD packet to send [05:06:56]OFD Sender: No OFD packet to send [05:07:01]OFD Sender: No OFD packet to send [05:07:06]OFD Sender: No OFD packet to send [05:07:11]OFD Sender: No OFD packet to send [05:07:16]OFD Sender: No OFD packet to send [05:07:21]OFD Sender: No OFD packet to send [05:07:26]OFD Sender: No OFD packet to send [05:07:31]OFD Sender: No OFD packet to send [05:07:36]OFD Sender: No OFD packet to send [05:07:41]OFD Sender: No OFD packet to send [05:07:46]OFD Sender: No OFD packet to send [05:07:51]OFD Sender: No OFD packet to send [05:07:56]OFD Sender: No OFD packet to send [05:08:01]OFD Sender: No OFD packet to send [05:08:06]OFD Sender: No OFD packet to send [05:08:11]OFD Sender: No OFD packet to send [05:08:16]OFD Sender: No OFD packet to send [05:08:21]OFD Sender: No OFD packet to send [05:08:26]OFD Sender: No OFD packet to send [05:08:31]OFD Sender: No OFD packet to send [05:08:36]OFD Sender: No OFD packet to send [05:08:41]OFD Sender: No OFD packet to send [05:08:46]OFD Sender: No OFD packet to send [05:08:51]OFD Sender: No OFD packet to send [05:08:56]OFD Sender: No OFD packet to send [05:09:01]OFD Sender: No OFD packet to send [05:09:06]OFD Sender: No OFD packet to send [05:09:11]OFD Sender: No OFD packet to send [05:09:16]OFD Sender: No OFD packet to send [05:09:21]OFD Sender: No OFD packet to send [05:09:26]OFD Sender: No OFD packet to send [05:09:31]OFD Sender: No OFD packet to send [05:09:36]OFD Sender: No OFD packet to send [05:09:41]OFD Sender: No OFD packet to send [05:09:46]OFD Sender: No OFD packet to send [05:09:51]OFD Sender: No OFD packet to send [05:09:56]OFD Sender: No OFD packet to send [05:10:01]OFD Sender: No OFD packet to send [05:10:06]OFD Sender: No OFD packet to send [05:10:11]OFD Sender: No OFD packet to send [05:10:16]OFD Sender: No OFD packet to send [05:10:21]OFD Sender: No OFD packet to send [05:10:26]OFD Sender: No OFD packet to send [05:10:31]OFD Sender: No OFD packet to send [05:10:36]OFD Sender: No OFD packet to send [05:10:41]OFD Sender: No OFD packet to send [05:10:46]OFD Sender: No OFD packet to send [05:10:51]OFD Sender: No OFD packet to send [05:10:56]OFD Sender: No OFD packet to send [05:11:01]OFD Sender: No OFD packet to send [05:11:06]OFD Sender: No OFD packet to send [05:11:11]OFD Sender: No OFD packet to send [05:11:16]OFD Sender: No OFD packet to send [05:11:21]OFD Sender: No OFD packet to send [05:11:26]OFD Sender: No OFD packet to send [05:11:31]OFD Sender: No OFD packet to send [05:11:36]OFD Sender: No OFD packet to send [05:11:41]OFD Sender: No OFD packet to send [05:11:46]OFD Sender: No OFD packet to send [05:11:51]OFD Sender: No OFD packet to send [05:11:56]OFD Sender: No OFD packet to send [05:12:01]OFD Sender: No OFD packet to send [05:12:06]OFD Sender: No OFD packet to send [05:12:11]OFD Sender: No OFD packet to send [05:12:16]OFD Sender: No OFD packet to send [05:12:21]OFD Sender: No OFD packet to send [05:12:26]OFD Sender: No OFD packet to send [05:12:31]OFD Sender: No OFD packet to send [05:12:36]OFD Sender: No OFD packet to send [05:12:41]OFD Sender: No OFD packet to send [05:12:46]OFD Sender: No OFD packet to send [05:12:51]OFD Sender: No OFD packet to send [05:12:56]OFD Sender: No OFD packet to send [05:13:01]OFD Sender: No OFD packet to send [05:13:06]OFD Sender: No OFD packet to send [05:13:11]OFD Sender: No OFD packet to send [05:13:16]OFD Sender: No OFD packet to send [05:13:21]OFD Sender: No OFD packet to send [05:13:26]OFD Sender: No OFD packet to send [05:13:31]OFD Sender: No OFD packet to send [05:13:36]OFD Sender: No OFD packet to send [05:13:41]OFD Sender: No OFD packet to send [05:13:46]OFD Sender: No OFD packet to send [05:13:51]OFD Sender: No OFD packet to send [05:13:56]OFD Sender: No OFD packet to send [05:14:01]OFD Sender: No OFD packet to send [05:14:06]OFD Sender: No OFD packet to send [05:14:11]OFD Sender: No OFD packet to send [05:14:16]OFD Sender: No OFD packet to send [05:14:21]OFD Sender: No OFD packet to send [05:14:26]OFD Sender: No OFD packet to send [05:14:31]OFD Sender: No OFD packet to send [05:14:36]OFD Sender: No OFD packet to send [05:14:41]OFD Sender: No OFD packet to send [05:14:46]OFD Sender: No OFD packet to send [05:14:51]OFD Sender: No OFD packet to send [05:14:56]OFD Sender: No OFD packet to send [05:15:01]OFD Sender: No OFD packet to send [05:15:06]OFD Sender: No OFD packet to send [05:15:11]OFD Sender: No OFD packet to send [05:15:16]OFD Sender: No OFD packet to send [05:15:21]OFD Sender: No OFD packet to send [05:15:26]OFD Sender: No OFD packet to send [05:15:31]OFD Sender: No OFD packet to send [05:15:36]OFD Sender: No OFD packet to send [05:15:41]OFD Sender: No OFD packet to send [05:15:46]OFD Sender: No OFD packet to send [05:15:51]OFD Sender: No OFD packet to send [05:15:56]OFD Sender: No OFD packet to send [05:16:01]OFD Sender: No OFD packet to send [05:16:06]OFD Sender: No OFD packet to send [05:16:11]OFD Sender: No OFD packet to send [05:16:16]OFD Sender: No OFD packet to send [05:16:21]OFD Sender: No OFD packet to send [05:16:26]OFD Sender: No OFD packet to send [05:16:31]OFD Sender: No OFD packet to send [05:16:36]OFD Sender: No OFD packet to send [05:16:41]OFD Sender: No OFD packet to send [05:16:46]OFD Sender: No OFD packet to send [05:16:51]OFD Sender: No OFD packet to send [05:16:56]OFD Sender: No OFD packet to send [05:17:01]OFD Sender: No OFD packet to send [05:17:06]OFD Sender: No OFD packet to send [05:17:11]OFD Sender: No OFD packet to send [05:17:16]OFD Sender: No OFD packet to send [05:17:21]OFD Sender: No OFD packet to send [05:17:26]OFD Sender: No OFD packet to send [05:17:31]OFD Sender: No OFD packet to send [05:17:36]OFD Sender: No OFD packet to send [05:17:41]OFD Sender: No OFD packet to send [05:17:46]OFD Sender: No OFD packet to send [05:17:51]OFD Sender: No OFD packet to send [05:17:56]OFD Sender: No OFD packet to send [05:18:01]OFD Sender: No OFD packet to send [05:18:06]OFD Sender: No OFD packet to send [05:18:11]OFD Sender: No OFD packet to send [05:18:16]OFD Sender: No OFD packet to send [05:18:21]OFD Sender: No OFD packet to send [05:18:26]OFD Sender: No OFD packet to send [05:18:31]OFD Sender: No OFD packet to send [05:18:36]OFD Sender: No OFD packet to send [05:18:41]OFD Sender: No OFD packet to send [05:18:46]OFD Sender: No OFD packet to send [05:18:51]OFD Sender: No OFD packet to send [05:18:56]OFD Sender: No OFD packet to send [05:19:01]OFD Sender: No OFD packet to send [05:19:06]OFD Sender: No OFD packet to send [05:19:11]OFD Sender: No OFD packet to send [05:19:16]OFD Sender: No OFD packet to send [05:19:21]OFD Sender: No OFD packet to send [05:19:26]OFD Sender: No OFD packet to send [05:19:31]OFD Sender: No OFD packet to send [05:19:36]OFD Sender: No OFD packet to send [05:19:41]OFD Sender: No OFD packet to send [05:19:46]OFD Sender: No OFD packet to send [05:19:51]OFD Sender: No OFD packet to send [05:19:56]OFD Sender: No OFD packet to send [05:20:01]OFD Sender: No OFD packet to send [05:20:06]OFD Sender: No OFD packet to send [05:20:11]OFD Sender: No OFD packet to send [05:20:16]OFD Sender: No OFD packet to send [05:20:21]OFD Sender: No OFD packet to send [05:20:26]OFD Sender: No OFD packet to send [05:20:31]OFD Sender: No OFD packet to send [05:20:36]OFD Sender: No OFD packet to send [05:20:41]OFD Sender: No OFD packet to send [05:20:46]OFD Sender: No OFD packet to send [05:20:51]OFD Sender: No OFD packet to send [05:20:56]OFD Sender: No OFD packet to send [05:21:01]OFD Sender: No OFD packet to send [05:21:06]OFD Sender: No OFD packet to send [05:21:11]OFD Sender: No OFD packet to send [05:21:16]OFD Sender: No OFD packet to send [05:21:21]OFD Sender: No OFD packet to send [05:21:26]OFD Sender: No OFD packet to send [05:21:31]OFD Sender: No OFD packet to send [05:21:36]OFD Sender: No OFD packet to send [05:21:41]OFD Sender: No OFD packet to send [05:21:46]OFD Sender: No OFD packet to send [05:21:51]OFD Sender: No OFD packet to send [05:21:56]OFD Sender: No OFD packet to send [05:22:01]OFD Sender: No OFD packet to send [05:22:07]OFD Sender: No OFD packet to send [05:22:12]OFD Sender: No OFD packet to send [05:22:17]OFD Sender: No OFD packet to send [05:22:22]OFD Sender: No OFD packet to send [05:22:27]OFD Sender: No OFD packet to send [05:22:32]OFD Sender: No OFD packet to send [05:22:37]OFD Sender: No OFD packet to send [05:22:42]OFD Sender: No OFD packet to send [05:22:47]OFD Sender: No OFD packet to send [05:22:52]OFD Sender: No OFD packet to send [05:22:57]OFD Sender: No OFD packet to send [05:23:02]OFD Sender: No OFD packet to send [05:23:07]OFD Sender: No OFD packet to send [05:23:12]OFD Sender: No OFD packet to send [05:23:17]OFD Sender: No OFD packet to send [05:23:22]OFD Sender: No OFD packet to send [05:23:27]OFD Sender: No OFD packet to send [05:23:32]OFD Sender: No OFD packet to send [05:23:37]OFD Sender: No OFD packet to send [05:23:42]OFD Sender: No OFD packet to send [05:23:47]OFD Sender: No OFD packet to send [05:23:52]OFD Sender: No OFD packet to send [05:23:57]OFD Sender: No OFD packet to send [05:24:02]OFD Sender: No OFD packet to send [05:24:07]OFD Sender: No OFD packet to send [05:24:12]OFD Sender: No OFD packet to send [05:24:17]OFD Sender: No OFD packet to send [05:24:22]OFD Sender: No OFD packet to send [05:24:27]OFD Sender: No OFD packet to send [05:24:32]OFD Sender: No OFD packet to send [05:24:37]OFD Sender: No OFD packet to send [05:24:42]OFD Sender: No OFD packet to send [05:24:47]OFD Sender: No OFD packet to send [05:24:52]OFD Sender: No OFD packet to send [05:24:57]OFD Sender: No OFD packet to send [05:25:02]OFD Sender: No OFD packet to send [05:25:07]OFD Sender: No OFD packet to send [05:25:12]OFD Sender: No OFD packet to send [05:25:17]OFD Sender: No OFD packet to send [05:25:22]OFD Sender: No OFD packet to send [05:25:27]OFD Sender: No OFD packet to send [05:25:32]OFD Sender: No OFD packet to send [05:25:37]OFD Sender: No OFD packet to send [05:25:42]OFD Sender: No OFD packet to send [05:25:47]OFD Sender: No OFD packet to send [05:25:52]OFD Sender: No OFD packet to send [05:25:57]OFD Sender: No OFD packet to send [05:26:02]OFD Sender: No OFD packet to send [05:26:07]OFD Sender: No OFD packet to send [05:26:12]OFD Sender: No OFD packet to send [05:26:17]OFD Sender: No OFD packet to send [05:26:22]OFD Sender: No OFD packet to send [05:26:27]OFD Sender: No OFD packet to send [05:26:32]OFD Sender: No OFD packet to send [05:26:37]OFD Sender: No OFD packet to send [05:26:42]OFD Sender: No OFD packet to send [05:26:47]OFD Sender: No OFD packet to send [05:26:52]OFD Sender: No OFD packet to send [05:26:57]OFD Sender: No OFD packet to send [05:27:02]OFD Sender: No OFD packet to send [05:27:07]OFD Sender: No OFD packet to send [05:27:12]OFD Sender: No OFD packet to send [05:27:17]OFD Sender: No OFD packet to send [05:27:22]OFD Sender: No OFD packet to send [05:27:27]OFD Sender: No OFD packet to send [05:27:32]OFD Sender: No OFD packet to send [05:27:37]OFD Sender: No OFD packet to send [05:27:42]OFD Sender: No OFD packet to send [05:27:47]OFD Sender: No OFD packet to send [05:27:52]OFD Sender: No OFD packet to send [05:27:57]OFD Sender: No OFD packet to send [05:28:02]OFD Sender: No OFD packet to send [05:28:07]OFD Sender: No OFD packet to send [05:28:12]OFD Sender: No OFD packet to send [05:28:17]OFD Sender: No OFD packet to send [05:28:22]OFD Sender: No OFD packet to send [05:28:27]OFD Sender: No OFD packet to send [05:28:32]OFD Sender: No OFD packet to send [05:28:37]OFD Sender: No OFD packet to send [05:28:42]OFD Sender: No OFD packet to send [05:28:47]OFD Sender: No OFD packet to send [05:28:52]OFD Sender: No OFD packet to send [05:28:57]OFD Sender: No OFD packet to send [05:29:02]OFD Sender: No OFD packet to send [05:29:07]OFD Sender: No OFD packet to send [05:29:12]OFD Sender: No OFD packet to send [05:29:17]OFD Sender: No OFD packet to send [05:29:22]OFD Sender: No OFD packet to send [05:29:27]OFD Sender: No OFD packet to send [05:29:32]OFD Sender: No OFD packet to send [05:29:37]OFD Sender: No OFD packet to send [05:29:42]OFD Sender: No OFD packet to send [05:29:47]OFD Sender: No OFD packet to send [05:29:52]OFD Sender: No OFD packet to send [05:29:57]OFD Sender: No OFD packet to send [05:30:02]OFD Sender: No OFD packet to send [05:30:07]OFD Sender: No OFD packet to send [05:30:12]OFD Sender: No OFD packet to send [05:30:17]OFD Sender: No OFD packet to send [05:30:22]OFD Sender: No OFD packet to send [05:30:27]OFD Sender: No OFD packet to send [05:30:32]OFD Sender: No OFD packet to send [05:30:37]OFD Sender: No OFD packet to send [05:30:42]OFD Sender: No OFD packet to send [05:30:47]OFD Sender: No OFD packet to send [05:30:52]OFD Sender: No OFD packet to send [05:30:57]OFD Sender: No OFD packet to send [05:31:02]OFD Sender: No OFD packet to send [05:31:07]OFD Sender: No OFD packet to send [05:31:12]OFD Sender: No OFD packet to send [05:31:17]OFD Sender: No OFD packet to send [05:31:22]OFD Sender: No OFD packet to send [05:31:27]OFD Sender: No OFD packet to send [05:31:32]OFD Sender: No OFD packet to send [05:31:37]OFD Sender: No OFD packet to send [05:31:42]OFD Sender: No OFD packet to send [05:31:47]OFD Sender: No OFD packet to send [05:31:52]OFD Sender: No OFD packet to send [05:31:57]OFD Sender: No OFD packet to send [05:32:02]OFD Sender: No OFD packet to send [05:32:07]OFD Sender: No OFD packet to send [05:32:12]OFD Sender: No OFD packet to send [05:32:17]OFD Sender: No OFD packet to send [05:32:22]OFD Sender: No OFD packet to send [05:32:27]OFD Sender: No OFD packet to send [05:32:32]OFD Sender: No OFD packet to send [05:32:37]OFD Sender: No OFD packet to send [05:32:42]OFD Sender: No OFD packet to send [05:32:47]OFD Sender: No OFD packet to send [05:32:52]OFD Sender: No OFD packet to send [05:32:57]OFD Sender: No OFD packet to send [05:33:02]OFD Sender: No OFD packet to send [05:33:07]OFD Sender: No OFD packet to send [05:33:12]OFD Sender: No OFD packet to send [05:33:17]OFD Sender: No OFD packet to send [05:33:22]OFD Sender: No OFD packet to send [05:33:27]OFD Sender: No OFD packet to send [05:33:32]OFD Sender: No OFD packet to send [05:33:37]OFD Sender: No OFD packet to send [05:33:42]OFD Sender: No OFD packet to send [05:33:47]OFD Sender: No OFD packet to send [05:33:52]OFD Sender: No OFD packet to send [05:33:57]OFD Sender: No OFD packet to send [05:34:02]OFD Sender: No OFD packet to send [05:34:07]OFD Sender: No OFD packet to send [05:34:12]OFD Sender: No OFD packet to send [05:34:17]OFD Sender: No OFD packet to send [05:34:22]OFD Sender: No OFD packet to send [05:34:27]OFD Sender: No OFD packet to send [05:34:32]OFD Sender: No OFD packet to send [05:34:37]OFD Sender: No OFD packet to send [05:34:42]OFD Sender: No OFD packet to send [05:34:47]OFD Sender: No OFD packet to send [05:34:52]OFD Sender: No OFD packet to send [05:34:57]OFD Sender: No OFD packet to send [05:35:02]OFD Sender: No OFD packet to send [05:35:07]OFD Sender: No OFD packet to send [05:35:12]OFD Sender: No OFD packet to send [05:35:17]OFD Sender: No OFD packet to send [05:35:22]OFD Sender: No OFD packet to send [05:35:27]OFD Sender: No OFD packet to send [05:35:32]OFD Sender: No OFD packet to send [05:35:37]OFD Sender: No OFD packet to send [05:35:42]OFD Sender: No OFD packet to send [05:35:47]OFD Sender: No OFD packet to send [05:35:52]OFD Sender: No OFD packet to send [05:35:57]OFD Sender: No OFD packet to send [05:36:02]OFD Sender: No OFD packet to send [05:36:07]OFD Sender: No OFD packet to send [05:36:12]OFD Sender: No OFD packet to send [05:36:17]OFD Sender: No OFD packet to send [05:36:22]OFD Sender: No OFD packet to send [05:36:27]OFD Sender: No OFD packet to send [05:36:32]OFD Sender: No OFD packet to send [05:36:37]OFD Sender: No OFD packet to send [05:36:42]OFD Sender: No OFD packet to send [05:36:47]OFD Sender: No OFD packet to send [05:36:52]OFD Sender: No OFD packet to send [05:36:57]OFD Sender: No OFD packet to send [05:37:02]OFD Sender: No OFD packet to send [05:37:07]OFD Sender: No OFD packet to send [05:37:12]OFD Sender: No OFD packet to send [05:37:17]OFD Sender: No OFD packet to send [05:37:22]OFD Sender: No OFD packet to send [05:37:27]OFD Sender: No OFD packet to send [05:37:32]OFD Sender: No OFD packet to send [05:37:37]OFD Sender: No OFD packet to send [05:37:42]OFD Sender: No OFD packet to send [05:37:47]OFD Sender: No OFD packet to send [05:37:52]OFD Sender: No OFD packet to send [05:37:57]OFD Sender: No OFD packet to send [05:38:02]OFD Sender: No OFD packet to send [05:38:07]OFD Sender: No OFD packet to send [05:38:12]OFD Sender: No OFD packet to send [05:38:17]OFD Sender: No OFD packet to send [05:38:22]OFD Sender: No OFD packet to send [05:38:27]OFD Sender: No OFD packet to send [05:38:32]OFD Sender: No OFD packet to send [05:38:37]OFD Sender: No OFD packet to send [05:38:42]OFD Sender: No OFD packet to send [05:38:48]OFD Sender: No OFD packet to send [05:38:53]OFD Sender: No OFD packet to send [05:38:58]OFD Sender: No OFD packet to send [05:39:03]OFD Sender: No OFD packet to send [05:39:08]OFD Sender: No OFD packet to send [05:39:13]OFD Sender: No OFD packet to send [05:39:18]OFD Sender: No OFD packet to send [05:39:23]OFD Sender: No OFD packet to send [05:39:28]OFD Sender: No OFD packet to send [05:39:33]OFD Sender: No OFD packet to send [05:39:38]OFD Sender: No OFD packet to send [05:39:43]OFD Sender: No OFD packet to send [05:39:48]OFD Sender: No OFD packet to send [05:39:53]OFD Sender: No OFD packet to send [05:39:58]OFD Sender: No OFD packet to send [05:40:03]OFD Sender: No OFD packet to send [05:40:08]OFD Sender: No OFD packet to send [05:40:13]OFD Sender: No OFD packet to send [05:40:18]OFD Sender: No OFD packet to send [05:40:23]OFD Sender: No OFD packet to send [05:40:28]OFD Sender: No OFD packet to send [05:40:33]OFD Sender: No OFD packet to send [05:40:38]OFD Sender: No OFD packet to send [05:40:43]OFD Sender: No OFD packet to send [05:40:48]OFD Sender: No OFD packet to send [05:40:53]OFD Sender: No OFD packet to send [05:40:58]OFD Sender: No OFD packet to send [05:41:03]OFD Sender: No OFD packet to send [05:41:08]OFD Sender: No OFD packet to send [05:41:13]OFD Sender: No OFD packet to send [05:41:18]OFD Sender: No OFD packet to send [05:41:23]OFD Sender: No OFD packet to send [05:41:28]OFD Sender: No OFD packet to send [05:41:33]OFD Sender: No OFD packet to send [05:41:38]OFD Sender: No OFD packet to send [05:41:43]OFD Sender: No OFD packet to send [05:41:48]OFD Sender: No OFD packet to send [05:41:53]OFD Sender: No OFD packet to send [05:41:58]OFD Sender: No OFD packet to send [05:42:03]OFD Sender: No OFD packet to send [05:42:08]OFD Sender: No OFD packet to send [05:42:13]OFD Sender: No OFD packet to send [05:42:18]OFD Sender: No OFD packet to send [05:42:23]OFD Sender: No OFD packet to send [05:42:28]OFD Sender: No OFD packet to send [05:42:33]OFD Sender: No OFD packet to send [05:42:38]OFD Sender: No OFD packet to send [05:42:43]OFD Sender: No OFD packet to send [05:42:48]OFD Sender: No OFD packet to send [05:42:53]OFD Sender: No OFD packet to send [05:42:58]OFD Sender: No OFD packet to send [05:43:03]OFD Sender: No OFD packet to send [05:43:08]OFD Sender: No OFD packet to send [05:43:13]OFD Sender: No OFD packet to send [05:43:18]OFD Sender: No OFD packet to send [05:43:23]OFD Sender: No OFD packet to send [05:43:28]OFD Sender: No OFD packet to send [05:43:33]OFD Sender: No OFD packet to send [05:43:38]OFD Sender: No OFD packet to send [05:43:43]OFD Sender: No OFD packet to send [05:43:48]OFD Sender: No OFD packet to send [05:43:53]OFD Sender: No OFD packet to send [05:43:58]OFD Sender: No OFD packet to send [05:44:03]OFD Sender: No OFD packet to send [05:44:08]OFD Sender: No OFD packet to send [05:44:13]OFD Sender: No OFD packet to send [05:44:18]OFD Sender: No OFD packet to send [05:44:23]OFD Sender: No OFD packet to send [05:44:28]OFD Sender: No OFD packet to send [05:44:33]OFD Sender: No OFD packet to send [05:44:38]OFD Sender: No OFD packet to send [05:44:43]OFD Sender: No OFD packet to send [05:44:48]OFD Sender: No OFD packet to send [05:44:53]OFD Sender: No OFD packet to send [05:44:58]OFD Sender: No OFD packet to send [05:45:03]OFD Sender: No OFD packet to send [05:45:08]OFD Sender: No OFD packet to send [05:45:13]OFD Sender: No OFD packet to send [05:45:18]OFD Sender: No OFD packet to send [05:45:23]OFD Sender: No OFD packet to send [05:45:28]OFD Sender: No OFD packet to send [05:45:33]OFD Sender: No OFD packet to send [05:45:38]OFD Sender: No OFD packet to send [05:45:43]OFD Sender: No OFD packet to send [05:45:48]OFD Sender: No OFD packet to send [05:45:53]OFD Sender: No OFD packet to send [05:45:58]OFD Sender: No OFD packet to send [05:46:03]OFD Sender: No OFD packet to send [05:46:08]OFD Sender: No OFD packet to send [05:46:13]OFD Sender: No OFD packet to send [05:46:18]OFD Sender: No OFD packet to send [05:46:23]OFD Sender: No OFD packet to send [05:46:28]OFD Sender: No OFD packet to send [05:46:33]OFD Sender: No OFD packet to send [05:46:38]OFD Sender: No OFD packet to send [05:46:43]OFD Sender: No OFD packet to send [05:46:48]OFD Sender: No OFD packet to send [05:46:53]OFD Sender: No OFD packet to send [05:46:58]OFD Sender: No OFD packet to send [05:47:03]OFD Sender: No OFD packet to send [05:47:08]OFD Sender: No OFD packet to send [05:47:13]OFD Sender: No OFD packet to send [05:47:18]OFD Sender: No OFD packet to send [05:47:23]OFD Sender: No OFD packet to send [05:47:28]OFD Sender: No OFD packet to send [05:47:33]OFD Sender: No OFD packet to send [05:47:38]OFD Sender: No OFD packet to send [05:47:43]OFD Sender: No OFD packet to send [05:47:48]OFD Sender: No OFD packet to send [05:47:53]OFD Sender: No OFD packet to send [05:47:58]OFD Sender: No OFD packet to send [05:48:03]OFD Sender: No OFD packet to send [05:48:08]OFD Sender: No OFD packet to send [05:48:13]OFD Sender: No OFD packet to send [05:48:18]OFD Sender: No OFD packet to send [05:48:23]OFD Sender: No OFD packet to send [05:48:28]OFD Sender: No OFD packet to send [05:48:33]OFD Sender: No OFD packet to send [05:48:38]OFD Sender: No OFD packet to send [05:48:43]OFD Sender: No OFD packet to send [05:48:48]OFD Sender: No OFD packet to send [05:48:53]OFD Sender: No OFD packet to send [05:48:58]OFD Sender: No OFD packet to send [05:49:03]OFD Sender: No OFD packet to send [05:49:08]OFD Sender: No OFD packet to send [05:49:13]OFD Sender: No OFD packet to send [05:49:18]OFD Sender: No OFD packet to send [05:49:23]OFD Sender: No OFD packet to send [05:49:28]OFD Sender: No OFD packet to send [05:49:33]OFD Sender: No OFD packet to send [05:49:38]OFD Sender: No OFD packet to send [05:49:43]OFD Sender: No OFD packet to send [05:49:48]OFD Sender: No OFD packet to send [05:49:53]OFD Sender: No OFD packet to send [05:49:58]OFD Sender: No OFD packet to send [05:50:03]OFD Sender: No OFD packet to send [05:50:08]OFD Sender: No OFD packet to send [05:50:13]OFD Sender: No OFD packet to send [05:50:18]OFD Sender: No OFD packet to send [05:50:23]OFD Sender: No OFD packet to send [05:50:28]OFD Sender: No OFD packet to send [05:50:33]OFD Sender: No OFD packet to send [05:50:38]OFD Sender: No OFD packet to send [05:50:43]OFD Sender: No OFD packet to send [05:50:48]OFD Sender: No OFD packet to send [05:50:53]OFD Sender: No OFD packet to send [05:50:58]OFD Sender: No OFD packet to send [05:51:03]OFD Sender: No OFD packet to send [05:51:08]OFD Sender: No OFD packet to send [05:51:13]OFD Sender: No OFD packet to send [05:51:18]OFD Sender: No OFD packet to send [05:51:23]OFD Sender: No OFD packet to send [05:51:28]OFD Sender: No OFD packet to send [05:51:33]OFD Sender: No OFD packet to send [05:51:38]OFD Sender: No OFD packet to send [05:51:43]OFD Sender: No OFD packet to send [05:51:48]OFD Sender: No OFD packet to send [05:51:53]OFD Sender: No OFD packet to send [05:51:58]OFD Sender: No OFD packet to send [05:52:03]OFD Sender: No OFD packet to send [05:52:08]OFD Sender: No OFD packet to send [05:52:13]OFD Sender: No OFD packet to send [05:52:18]OFD Sender: No OFD packet to send [05:52:23]OFD Sender: No OFD packet to send [05:52:28]OFD Sender: No OFD packet to send [05:52:33]OFD Sender: No OFD packet to send [05:52:38]OFD Sender: No OFD packet to send [05:52:43]OFD Sender: No OFD packet to send [05:52:48]OFD Sender: No OFD packet to send [05:52:53]OFD Sender: No OFD packet to send [05:52:58]OFD Sender: No OFD packet to send [05:53:03]OFD Sender: No OFD packet to send [05:53:08]OFD Sender: No OFD packet to send [05:53:13]OFD Sender: No OFD packet to send [05:53:18]OFD Sender: No OFD packet to send [05:53:23]OFD Sender: No OFD packet to send [05:53:28]OFD Sender: No OFD packet to send [05:53:33]OFD Sender: No OFD packet to send [05:53:38]OFD Sender: No OFD packet to send [05:53:43]OFD Sender: No OFD packet to send [05:53:48]OFD Sender: No OFD packet to send [05:53:53]OFD Sender: No OFD packet to send [05:53:58]OFD Sender: No OFD packet to send [05:54:03]OFD Sender: No OFD packet to send [05:54:08]OFD Sender: No OFD packet to send [05:54:13]OFD Sender: No OFD packet to send [05:54:18]OFD Sender: No OFD packet to send [05:54:23]OFD Sender: No OFD packet to send [05:54:28]OFD Sender: No OFD packet to send [05:54:33]OFD Sender: No OFD packet to send [05:54:38]OFD Sender: No OFD packet to send [05:54:43]OFD Sender: No OFD packet to send [05:54:48]OFD Sender: No OFD packet to send [05:54:53]OFD Sender: No OFD packet to send [05:54:58]OFD Sender: No OFD packet to send [05:55:03]OFD Sender: No OFD packet to send [05:55:08]OFD Sender: No OFD packet to send [05:55:13]OFD Sender: No OFD packet to send [05:55:18]OFD Sender: No OFD packet to send [05:55:23]OFD Sender: No OFD packet to send [05:55:29]OFD Sender: No OFD packet to send [05:55:34]OFD Sender: No OFD packet to send [05:55:39]OFD Sender: No OFD packet to send [05:55:44]OFD Sender: No OFD packet to send [05:55:49]OFD Sender: No OFD packet to send [05:55:54]OFD Sender: No OFD packet to send [05:55:59]OFD Sender: No OFD packet to send [05:56:04]OFD Sender: No OFD packet to send [05:56:09]OFD Sender: No OFD packet to send [05:56:14]OFD Sender: No OFD packet to send [05:56:19]OFD Sender: No OFD packet to send [05:56:24]OFD Sender: No OFD packet to send [05:56:29]OFD Sender: No OFD packet to send [05:56:34]OFD Sender: No OFD packet to send [05:56:39]OFD Sender: No OFD packet to send [05:56:44]OFD Sender: No OFD packet to send [05:56:49]OFD Sender: No OFD packet to send [05:56:54]OFD Sender: No OFD packet to send [05:56:59]OFD Sender: No OFD packet to send [05:57:04]OFD Sender: No OFD packet to send [05:57:09]OFD Sender: No OFD packet to send [05:57:14]OFD Sender: No OFD packet to send [05:57:19]OFD Sender: No OFD packet to send [05:57:24]OFD Sender: No OFD packet to send [05:57:29]OFD Sender: No OFD packet to send [05:57:34]OFD Sender: No OFD packet to send [05:57:39]OFD Sender: No OFD packet to send [05:57:44]OFD Sender: No OFD packet to send [05:57:49]OFD Sender: No OFD packet to send [05:57:54]OFD Sender: No OFD packet to send [05:57:59]OFD Sender: No OFD packet to send [05:58:04]OFD Sender: No OFD packet to send [05:58:09]OFD Sender: No OFD packet to send [05:58:14]OFD Sender: No OFD packet to send [05:58:19]OFD Sender: No OFD packet to send [05:58:24]OFD Sender: No OFD packet to send [05:58:29]OFD Sender: No OFD packet to send [05:58:34]OFD Sender: No OFD packet to send [05:58:39]OFD Sender: No OFD packet to send [05:58:44]OFD Sender: No OFD packet to send [05:58:49]OFD Sender: No OFD packet to send [05:58:54]OFD Sender: No OFD packet to send [05:58:59]OFD Sender: No OFD packet to send [05:59:04]OFD Sender: No OFD packet to send [05:59:09]OFD Sender: No OFD packet to send [05:59:14]OFD Sender: No OFD packet to send [05:59:19]OFD Sender: No OFD packet to send [05:59:24]OFD Sender: No OFD packet to send [05:59:29]OFD Sender: No OFD packet to send [05:59:34]OFD Sender: No OFD packet to send [05:59:39]OFD Sender: No OFD packet to send [05:59:44]OFD Sender: No OFD packet to send [05:59:49]OFD Sender: No OFD packet to send [05:59:54]OFD Sender: No OFD packet to send [05:59:59]OFD Sender: No OFD packet to send [06:00:04]OFD Sender: No OFD packet to send [06:00:09]OFD Sender: No OFD packet to send [06:00:14]OFD Sender: No OFD packet to send [06:00:19]OFD Sender: No OFD packet to send [06:00:24]OFD Sender: No OFD packet to send [06:00:29]OFD Sender: No OFD packet to send [06:00:34]OFD Sender: No OFD packet to send [06:00:39]OFD Sender: No OFD packet to send [06:00:44]OFD Sender: No OFD packet to send [06:00:49]OFD Sender: No OFD packet to send [06:00:54]OFD Sender: No OFD packet to send [06:00:59]OFD Sender: No OFD packet to send [06:01:04]OFD Sender: No OFD packet to send [06:01:09]OFD Sender: No OFD packet to send [06:01:14]OFD Sender: No OFD packet to send [06:01:19]OFD Sender: No OFD packet to send [06:01:24]OFD Sender: No OFD packet to send [06:01:29]OFD Sender: No OFD packet to send [06:01:34]OFD Sender: No OFD packet to send [06:01:39]OFD Sender: No OFD packet to send [06:01:44]OFD Sender: No OFD packet to send [06:01:49]OFD Sender: No OFD packet to send [06:01:54]OFD Sender: No OFD packet to send [06:01:59]OFD Sender: No OFD packet to send [06:02:04]OFD Sender: No OFD packet to send [06:02:09]OFD Sender: No OFD packet to send [06:02:14]OFD Sender: No OFD packet to send [06:02:19]OFD Sender: No OFD packet to send [06:02:24]OFD Sender: No OFD packet to send [06:02:29]OFD Sender: No OFD packet to send [06:02:34]OFD Sender: No OFD packet to send [06:02:39]OFD Sender: No OFD packet to send [06:02:44]OFD Sender: No OFD packet to send [06:02:49]OFD Sender: No OFD packet to send [06:02:54]OFD Sender: No OFD packet to send [06:02:59]OFD Sender: No OFD packet to send [06:03:04]OFD Sender: No OFD packet to send [06:03:09]OFD Sender: No OFD packet to send [06:03:14]OFD Sender: No OFD packet to send [06:03:19]OFD Sender: No OFD packet to send [06:03:24]OFD Sender: No OFD packet to send [06:03:29]OFD Sender: No OFD packet to send [06:03:34]OFD Sender: No OFD packet to send [06:03:39]OFD Sender: No OFD packet to send [06:03:44]OFD Sender: No OFD packet to send [06:03:49]OFD Sender: No OFD packet to send [06:03:54]OFD Sender: No OFD packet to send [06:03:59]OFD Sender: No OFD packet to send [06:04:04]OFD Sender: No OFD packet to send [06:04:09]OFD Sender: No OFD packet to send [06:04:14]OFD Sender: No OFD packet to send [06:04:19]OFD Sender: No OFD packet to send [06:04:24]OFD Sender: No OFD packet to send [06:04:29]OFD Sender: No OFD packet to send [06:04:34]OFD Sender: No OFD packet to send [06:04:39]OFD Sender: No OFD packet to send [06:04:44]OFD Sender: No OFD packet to send [06:04:49]OFD Sender: No OFD packet to send [06:04:54]OFD Sender: No OFD packet to send [06:04:59]OFD Sender: No OFD packet to send [06:05:04]OFD Sender: No OFD packet to send [06:05:09]OFD Sender: No OFD packet to send [06:05:14]OFD Sender: No OFD packet to send [06:05:19]OFD Sender: No OFD packet to send [06:05:24]OFD Sender: No OFD packet to send [06:05:29]OFD Sender: No OFD packet to send [06:05:34]OFD Sender: No OFD packet to send [06:05:39]OFD Sender: No OFD packet to send [06:05:44]OFD Sender: No OFD packet to send [06:05:49]OFD Sender: No OFD packet to send [06:05:54]OFD Sender: No OFD packet to send [06:05:59]OFD Sender: No OFD packet to send [06:06:04]OFD Sender: No OFD packet to send [06:06:09]OFD Sender: No OFD packet to send [06:06:14]OFD Sender: No OFD packet to send [06:06:19]OFD Sender: No OFD packet to send [06:06:24]OFD Sender: No OFD packet to send [06:06:29]OFD Sender: No OFD packet to send [06:06:34]OFD Sender: No OFD packet to send [06:06:39]OFD Sender: No OFD packet to send [06:06:44]OFD Sender: No OFD packet to send [06:06:49]OFD Sender: No OFD packet to send [06:06:54]OFD Sender: No OFD packet to send [06:06:59]OFD Sender: No OFD packet to send [06:07:04]OFD Sender: No OFD packet to send [06:07:09]OFD Sender: No OFD packet to send [06:07:14]OFD Sender: No OFD packet to send [06:07:19]OFD Sender: No OFD packet to send [06:07:24]OFD Sender: No OFD packet to send [06:07:29]OFD Sender: No OFD packet to send [06:07:34]OFD Sender: No OFD packet to send [06:07:39]OFD Sender: No OFD packet to send [06:07:44]OFD Sender: No OFD packet to send [06:07:49]OFD Sender: No OFD packet to send [06:07:54]OFD Sender: No OFD packet to send [06:07:59]OFD Sender: No OFD packet to send [06:08:04]OFD Sender: No OFD packet to send [06:08:09]OFD Sender: No OFD packet to send [06:08:14]OFD Sender: No OFD packet to send [06:08:19]OFD Sender: No OFD packet to send [06:08:24]OFD Sender: No OFD packet to send [06:08:29]OFD Sender: No OFD packet to send [06:08:34]OFD Sender: No OFD packet to send [06:08:39]OFD Sender: No OFD packet to send [06:08:44]OFD Sender: No OFD packet to send [06:08:49]OFD Sender: No OFD packet to send [06:08:54]OFD Sender: No OFD packet to send [06:08:59]OFD Sender: No OFD packet to send [06:09:04]OFD Sender: No OFD packet to send [06:09:09]OFD Sender: No OFD packet to send [06:09:14]OFD Sender: No OFD packet to send [06:09:19]OFD Sender: No OFD packet to send [06:09:24]OFD Sender: No OFD packet to send [06:09:29]OFD Sender: No OFD packet to send [06:09:34]OFD Sender: No OFD packet to send [06:09:39]OFD Sender: No OFD packet to send [06:09:44]OFD Sender: No OFD packet to send [06:09:49]OFD Sender: No OFD packet to send [06:09:54]OFD Sender: No OFD packet to send [06:09:59]OFD Sender: No OFD packet to send [06:10:04]OFD Sender: No OFD packet to send [06:10:09]OFD Sender: No OFD packet to send [06:10:14]OFD Sender: No OFD packet to send [06:10:19]OFD Sender: No OFD packet to send [06:10:24]OFD Sender: No OFD packet to send [06:10:29]OFD Sender: No OFD packet to send [06:10:34]OFD Sender: No OFD packet to send [06:10:39]OFD Sender: No OFD packet to send [06:10:44]OFD Sender: No OFD packet to send [06:10:49]OFD Sender: No OFD packet to send [06:10:54]OFD Sender: No OFD packet to send [06:10:59]OFD Sender: No OFD packet to send [06:11:04]OFD Sender: No OFD packet to send [06:11:09]OFD Sender: No OFD packet to send [06:11:14]OFD Sender: No OFD packet to send [06:11:19]OFD Sender: No OFD packet to send [06:11:24]OFD Sender: No OFD packet to send [06:11:29]OFD Sender: No OFD packet to send [06:11:34]OFD Sender: No OFD packet to send [06:11:39]OFD Sender: No OFD packet to send [06:11:44]OFD Sender: No OFD packet to send [06:11:49]OFD Sender: No OFD packet to send [06:11:54]OFD Sender: No OFD packet to send [06:12:00]OFD Sender: No OFD packet to send [06:12:05]OFD Sender: No OFD packet to send [06:12:10]OFD Sender: No OFD packet to send [06:12:15]OFD Sender: No OFD packet to send [06:12:20]OFD Sender: No OFD packet to send [06:12:25]OFD Sender: No OFD packet to send [06:12:30]OFD Sender: No OFD packet to send [06:12:35]OFD Sender: No OFD packet to send [06:12:40]OFD Sender: No OFD packet to send [06:12:45]OFD Sender: No OFD packet to send [06:12:50]OFD Sender: No OFD packet to send [06:12:55]OFD Sender: No OFD packet to send [06:13:00]OFD Sender: No OFD packet to send [06:13:05]OFD Sender: No OFD packet to send [06:13:10]OFD Sender: No OFD packet to send [06:13:15]OFD Sender: No OFD packet to send [06:13:20]OFD Sender: No OFD packet to send [06:13:25]OFD Sender: No OFD packet to send [06:13:30]OFD Sender: No OFD packet to send [06:13:35]OFD Sender: No OFD packet to send [06:13:40]OFD Sender: No OFD packet to send [06:13:45]OFD Sender: No OFD packet to send [06:13:50]OFD Sender: No OFD packet to send [06:13:55]OFD Sender: No OFD packet to send [06:14:00]OFD Sender: No OFD packet to send [06:14:05]OFD Sender: No OFD packet to send [06:14:10]OFD Sender: No OFD packet to send [06:14:15]OFD Sender: No OFD packet to send [06:14:20]OFD Sender: No OFD packet to send [06:14:25]OFD Sender: No OFD packet to send [06:14:30]OFD Sender: No OFD packet to send [06:14:35]OFD Sender: No OFD packet to send [06:14:40]OFD Sender: No OFD packet to send [06:14:45]OFD Sender: No OFD packet to send [06:14:50]OFD Sender: No OFD packet to send [06:14:55]OFD Sender: No OFD packet to send [06:15:00]OFD Sender: No OFD packet to send [06:15:05]OFD Sender: No OFD packet to send [06:15:10]OFD Sender: No OFD packet to send [06:15:15]OFD Sender: No OFD packet to send [06:15:20]OFD Sender: No OFD packet to send [06:15:25]OFD Sender: No OFD packet to send [06:15:30]OFD Sender: No OFD packet to send [06:15:35]OFD Sender: No OFD packet to send [06:15:40]OFD Sender: No OFD packet to send [06:15:45]OFD Sender: No OFD packet to send [06:15:50]OFD Sender: No OFD packet to send [06:15:55]OFD Sender: No OFD packet to send [06:16:00]OFD Sender: No OFD packet to send [06:16:05]OFD Sender: No OFD packet to send [06:16:10]OFD Sender: No OFD packet to send [06:16:15]OFD Sender: No OFD packet to send [06:16:20]OFD Sender: No OFD packet to send [06:16:25]OFD Sender: No OFD packet to send [06:16:30]OFD Sender: No OFD packet to send [06:16:35]OFD Sender: No OFD packet to send [06:16:40]OFD Sender: No OFD packet to send [06:16:45]OFD Sender: No OFD packet to send [06:16:50]OFD Sender: No OFD packet to send [06:16:55]OFD Sender: No OFD packet to send [06:17:00]OFD Sender: No OFD packet to send [06:17:05]OFD Sender: No OFD packet to send [06:17:10]OFD Sender: No OFD packet to send [06:17:15]OFD Sender: No OFD packet to send [06:17:20]OFD Sender: No OFD packet to send [06:17:25]OFD Sender: No OFD packet to send [06:17:30]OFD Sender: No OFD packet to send [06:17:35]OFD Sender: No OFD packet to send [06:17:40]OFD Sender: No OFD packet to send [06:17:45]OFD Sender: No OFD packet to send [06:17:50]OFD Sender: No OFD packet to send [06:17:55]OFD Sender: No OFD packet to send [06:18:00]OFD Sender: No OFD packet to send [06:18:05]OFD Sender: No OFD packet to send [06:18:10]OFD Sender: No OFD packet to send [06:18:15]OFD Sender: No OFD packet to send [06:18:20]OFD Sender: No OFD packet to send [06:18:25]OFD Sender: No OFD packet to send [06:18:30]OFD Sender: No OFD packet to send [06:18:35]OFD Sender: No OFD packet to send [06:18:40]OFD Sender: No OFD packet to send [06:18:45]OFD Sender: No OFD packet to send [06:18:50]OFD Sender: No OFD packet to send [06:18:55]OFD Sender: No OFD packet to send [06:19:00]OFD Sender: No OFD packet to send [06:19:05]OFD Sender: No OFD packet to send [06:19:10]OFD Sender: No OFD packet to send [06:19:15]OFD Sender: No OFD packet to send [06:19:20]OFD Sender: No OFD packet to send [06:19:25]OFD Sender: No OFD packet to send [06:19:30]OFD Sender: No OFD packet to send [06:19:35]OFD Sender: No OFD packet to send [06:19:40]OFD Sender: No OFD packet to send [06:19:45]OFD Sender: No OFD packet to send [06:19:50]OFD Sender: No OFD packet to send [06:19:55]OFD Sender: No OFD packet to send [06:20:00]OFD Sender: No OFD packet to send [06:20:05]OFD Sender: No OFD packet to send [06:20:10]OFD Sender: No OFD packet to send [06:20:15]OFD Sender: No OFD packet to send [06:20:20]OFD Sender: No OFD packet to send [06:20:25]OFD Sender: No OFD packet to send [06:20:30]OFD Sender: No OFD packet to send [06:20:35]OFD Sender: No OFD packet to send [06:20:40]OFD Sender: No OFD packet to send [06:20:45]OFD Sender: No OFD packet to send [06:20:50]OFD Sender: No OFD packet to send [06:20:55]OFD Sender: No OFD packet to send [06:21:00]OFD Sender: No OFD packet to send [06:21:05]OFD Sender: No OFD packet to send [06:21:10]OFD Sender: No OFD packet to send [06:21:15]OFD Sender: No OFD packet to send [06:21:20]OFD Sender: No OFD packet to send [06:21:25]OFD Sender: No OFD packet to send [06:21:30]OFD Sender: No OFD packet to send [06:21:35]OFD Sender: No OFD packet to send [06:21:40]OFD Sender: No OFD packet to send [06:21:45]OFD Sender: No OFD packet to send [06:21:50]OFD Sender: No OFD packet to send [06:21:55]OFD Sender: No OFD packet to send [06:22:00]OFD Sender: No OFD packet to send [06:22:05]OFD Sender: No OFD packet to send [06:22:10]OFD Sender: No OFD packet to send [06:22:15]OFD Sender: No OFD packet to send [06:22:20]OFD Sender: No OFD packet to send [06:22:25]OFD Sender: No OFD packet to send [06:22:30]OFD Sender: No OFD packet to send [06:22:35]OFD Sender: No OFD packet to send [06:22:40]OFD Sender: No OFD packet to send [06:22:45]OFD Sender: No OFD packet to send [06:22:50]OFD Sender: No OFD packet to send [06:22:55]OFD Sender: No OFD packet to send [06:23:00]OFD Sender: No OFD packet to send [06:23:05]OFD Sender: No OFD packet to send [06:23:10]OFD Sender: No OFD packet to send [06:23:15]OFD Sender: No OFD packet to send [06:23:20]OFD Sender: No OFD packet to send [06:23:25]OFD Sender: No OFD packet to send [06:23:30]OFD Sender: No OFD packet to send [06:23:35]OFD Sender: No OFD packet to send [06:23:40]OFD Sender: No OFD packet to send [06:23:45]OFD Sender: No OFD packet to send [06:23:50]OFD Sender: No OFD packet to send [06:23:55]OFD Sender: No OFD packet to send [06:24:00]OFD Sender: No OFD packet to send [06:24:05]OFD Sender: No OFD packet to send [06:24:10]OFD Sender: No OFD packet to send [06:24:15]OFD Sender: No OFD packet to send [06:24:20]OFD Sender: No OFD packet to send [06:24:25]OFD Sender: No OFD packet to send [06:24:30]OFD Sender: No OFD packet to send [06:24:35]OFD Sender: No OFD packet to send [06:24:40]OFD Sender: No OFD packet to send [06:24:45]OFD Sender: No OFD packet to send [06:24:50]OFD Sender: No OFD packet to send [06:24:55]OFD Sender: No OFD packet to send [06:25:00]OFD Sender: No OFD packet to send [06:25:05]OFD Sender: No OFD packet to send [06:25:10]OFD Sender: No OFD packet to send [06:25:15]OFD Sender: No OFD packet to send [06:25:20]OFD Sender: No OFD packet to send [06:25:25]OFD Sender: No OFD packet to send [06:25:30]OFD Sender: No OFD packet to send [06:25:35]OFD Sender: No OFD packet to send [06:25:40]OFD Sender: No OFD packet to send [06:25:45]OFD Sender: No OFD packet to send [06:25:50]OFD Sender: No OFD packet to send [06:25:55]OFD Sender: No OFD packet to send [06:26:00]OFD Sender: No OFD packet to send [06:26:05]OFD Sender: No OFD packet to send [06:26:10]OFD Sender: No OFD packet to send [06:26:15]OFD Sender: No OFD packet to send [06:26:20]OFD Sender: No OFD packet to send [06:26:25]OFD Sender: No OFD packet to send [06:26:30]OFD Sender: No OFD packet to send [06:26:35]OFD Sender: No OFD packet to send [06:26:40]OFD Sender: No OFD packet to send [06:26:45]OFD Sender: No OFD packet to send [06:26:50]OFD Sender: No OFD packet to send [06:26:55]OFD Sender: No OFD packet to send [06:27:00]OFD Sender: No OFD packet to send [06:27:05]OFD Sender: No OFD packet to send [06:27:10]OFD Sender: No OFD packet to send [06:27:15]OFD Sender: No OFD packet to send [06:27:20]OFD Sender: No OFD packet to send [06:27:25]OFD Sender: No OFD packet to send [06:27:30]OFD Sender: No OFD packet to send [06:27:35]OFD Sender: No OFD packet to send [06:27:40]OFD Sender: No OFD packet to send [06:27:45]OFD Sender: No OFD packet to send [06:27:50]OFD Sender: No OFD packet to send [06:27:55]OFD Sender: No OFD packet to send [06:28:00]OFD Sender: No OFD packet to send [06:28:05]OFD Sender: No OFD packet to send [06:28:10]OFD Sender: No OFD packet to send [06:28:15]OFD Sender: No OFD packet to send [06:28:20]OFD Sender: No OFD packet to send [06:28:25]OFD Sender: No OFD packet to send [06:28:31]OFD Sender: No OFD packet to send [06:28:36]OFD Sender: No OFD packet to send [06:28:41]OFD Sender: No OFD packet to send [06:28:46]OFD Sender: No OFD packet to send [06:28:51]OFD Sender: No OFD packet to send [06:28:56]OFD Sender: No OFD packet to send [06:29:01]OFD Sender: No OFD packet to send [06:29:06]OFD Sender: No OFD packet to send [06:29:11]OFD Sender: No OFD packet to send [06:29:16]OFD Sender: No OFD packet to send [06:29:21]OFD Sender: No OFD packet to send [06:29:26]OFD Sender: No OFD packet to send [06:29:31]OFD Sender: No OFD packet to send [06:29:36]OFD Sender: No OFD packet to send [06:29:41]OFD Sender: No OFD packet to send [06:29:46]OFD Sender: No OFD packet to send [06:29:51]OFD Sender: No OFD packet to send [06:29:56]OFD Sender: No OFD packet to send [06:30:01]OFD Sender: No OFD packet to send [06:30:06]OFD Sender: No OFD packet to send [06:30:11]OFD Sender: No OFD packet to send [06:30:16]OFD Sender: No OFD packet to send [06:30:21]OFD Sender: No OFD packet to send [06:30:26]OFD Sender: No OFD packet to send [06:30:31]OFD Sender: No OFD packet to send [06:30:36]OFD Sender: No OFD packet to send [06:30:41]OFD Sender: No OFD packet to send [06:30:46]OFD Sender: No OFD packet to send [06:30:51]OFD Sender: No OFD packet to send [06:30:56]OFD Sender: No OFD packet to send [06:31:01]OFD Sender: No OFD packet to send [06:31:06]OFD Sender: No OFD packet to send [06:31:11]OFD Sender: No OFD packet to send [06:31:16]OFD Sender: No OFD packet to send [06:31:21]OFD Sender: No OFD packet to send [06:31:26]OFD Sender: No OFD packet to send [06:31:31]OFD Sender: No OFD packet to send [06:31:36]OFD Sender: No OFD packet to send [06:31:41]OFD Sender: No OFD packet to send [06:31:46]OFD Sender: No OFD packet to send [06:31:51]OFD Sender: No OFD packet to send [06:31:56]OFD Sender: No OFD packet to send [06:32:01]OFD Sender: No OFD packet to send [06:32:06]OFD Sender: No OFD packet to send [06:32:11]OFD Sender: No OFD packet to send [06:32:16]OFD Sender: No OFD packet to send [06:32:21]OFD Sender: No OFD packet to send [06:32:26]OFD Sender: No OFD packet to send [06:32:31]OFD Sender: No OFD packet to send [06:32:36]OFD Sender: No OFD packet to send [06:32:41]OFD Sender: No OFD packet to send [06:32:46]OFD Sender: No OFD packet to send [06:32:51]OFD Sender: No OFD packet to send [06:32:56]OFD Sender: No OFD packet to send [06:33:01]OFD Sender: No OFD packet to send [06:33:06]OFD Sender: No OFD packet to send [06:33:11]OFD Sender: No OFD packet to send [06:33:16]OFD Sender: No OFD packet to send [06:33:21]OFD Sender: No OFD packet to send [06:33:26]OFD Sender: No OFD packet to send [06:33:31]OFD Sender: No OFD packet to send [06:33:36]OFD Sender: No OFD packet to send [06:33:41]OFD Sender: No OFD packet to send [06:33:46]OFD Sender: No OFD packet to send [06:33:51]OFD Sender: No OFD packet to send [06:33:56]OFD Sender: No OFD packet to send [06:34:01]OFD Sender: No OFD packet to send [06:34:06]OFD Sender: No OFD packet to send [06:34:11]OFD Sender: No OFD packet to send [06:34:16]OFD Sender: No OFD packet to send [06:34:21]OFD Sender: No OFD packet to send [06:34:26]OFD Sender: No OFD packet to send [06:34:31]OFD Sender: No OFD packet to send [06:34:36]OFD Sender: No OFD packet to send [06:34:41]OFD Sender: No OFD packet to send [06:34:46]OFD Sender: No OFD packet to send [06:34:51]OFD Sender: No OFD packet to send [06:34:56]OFD Sender: No OFD packet to send [06:35:01]OFD Sender: No OFD packet to send [06:35:06]OFD Sender: No OFD packet to send [06:35:11]OFD Sender: No OFD packet to send [06:35:16]OFD Sender: No OFD packet to send [06:35:21]OFD Sender: No OFD packet to send [06:35:26]OFD Sender: No OFD packet to send [06:35:31]OFD Sender: No OFD packet to send [06:35:36]OFD Sender: No OFD packet to send [06:35:41]OFD Sender: No OFD packet to send [06:35:46]OFD Sender: No OFD packet to send [06:35:51]OFD Sender: No OFD packet to send [06:35:56]OFD Sender: No OFD packet to send [06:36:01]OFD Sender: No OFD packet to send [06:36:06]OFD Sender: No OFD packet to send [06:36:11]OFD Sender: No OFD packet to send [06:36:16]OFD Sender: No OFD packet to send [06:36:21]OFD Sender: No OFD packet to send [06:36:26]OFD Sender: No OFD packet to send [06:36:31]OFD Sender: No OFD packet to send [06:36:36]OFD Sender: No OFD packet to send [06:36:41]OFD Sender: No OFD packet to send [06:36:46]OFD Sender: No OFD packet to send [06:36:51]OFD Sender: No OFD packet to send [06:36:56]OFD Sender: No OFD packet to send [06:37:01]OFD Sender: No OFD packet to send [06:37:06]OFD Sender: No OFD packet to send [06:37:11]OFD Sender: No OFD packet to send [06:37:16]OFD Sender: No OFD packet to send [06:37:21]OFD Sender: No OFD packet to send [06:37:26]OFD Sender: No OFD packet to send [06:37:31]OFD Sender: No OFD packet to send [06:37:36]OFD Sender: No OFD packet to send [06:37:41]OFD Sender: No OFD packet to send [06:37:46]OFD Sender: No OFD packet to send [06:37:51]OFD Sender: No OFD packet to send [06:37:56]OFD Sender: No OFD packet to send [06:38:01]OFD Sender: No OFD packet to send [06:38:06]OFD Sender: No OFD packet to send [06:38:11]OFD Sender: No OFD packet to send [06:38:16]OFD Sender: No OFD packet to send [06:38:21]OFD Sender: No OFD packet to send [06:38:26]OFD Sender: No OFD packet to send [06:38:31]OFD Sender: No OFD packet to send [06:38:36]OFD Sender: No OFD packet to send [06:38:41]OFD Sender: No OFD packet to send [06:38:46]OFD Sender: No OFD packet to send [06:38:51]OFD Sender: No OFD packet to send [06:38:56]OFD Sender: No OFD packet to send [06:39:01]OFD Sender: No OFD packet to send [06:39:06]OFD Sender: No OFD packet to send [06:39:11]OFD Sender: No OFD packet to send [06:39:16]OFD Sender: No OFD packet to send [06:39:21]OFD Sender: No OFD packet to send [06:39:26]OFD Sender: No OFD packet to send [06:39:31]OFD Sender: No OFD packet to send [06:39:36]OFD Sender: No OFD packet to send [06:39:41]OFD Sender: No OFD packet to send [06:39:46]OFD Sender: No OFD packet to send [06:39:51]OFD Sender: No OFD packet to send [06:39:56]OFD Sender: No OFD packet to send [06:40:01]OFD Sender: No OFD packet to send [06:40:06]OFD Sender: No OFD packet to send [06:40:11]OFD Sender: No OFD packet to send [06:40:16]OFD Sender: No OFD packet to send [06:40:21]OFD Sender: No OFD packet to send [06:40:26]OFD Sender: No OFD packet to send [06:40:31]OFD Sender: No OFD packet to send [06:40:36]OFD Sender: No OFD packet to send [06:40:41]OFD Sender: No OFD packet to send [06:40:46]OFD Sender: No OFD packet to send [06:40:51]OFD Sender: No OFD packet to send [06:40:56]OFD Sender: No OFD packet to send [06:41:01]OFD Sender: No OFD packet to send [06:41:06]OFD Sender: No OFD packet to send [06:41:11]OFD Sender: No OFD packet to send [06:41:16]OFD Sender: No OFD packet to send [06:41:21]OFD Sender: No OFD packet to send [06:41:26]OFD Sender: No OFD packet to send [06:41:31]OFD Sender: No OFD packet to send [06:41:36]OFD Sender: No OFD packet to send [06:41:41]OFD Sender: No OFD packet to send [06:41:46]OFD Sender: No OFD packet to send [06:41:51]OFD Sender: No OFD packet to send [06:41:56]OFD Sender: No OFD packet to send [06:42:01]OFD Sender: No OFD packet to send [06:42:06]OFD Sender: No OFD packet to send [06:42:11]OFD Sender: No OFD packet to send [06:42:16]OFD Sender: No OFD packet to send [06:42:21]OFD Sender: No OFD packet to send [06:42:26]OFD Sender: No OFD packet to send [06:42:31]OFD Sender: No OFD packet to send [06:42:36]OFD Sender: No OFD packet to send [06:42:41]OFD Sender: No OFD packet to send [06:42:46]OFD Sender: No OFD packet to send [06:42:51]OFD Sender: No OFD packet to send [06:42:56]OFD Sender: No OFD packet to send [06:43:01]OFD Sender: No OFD packet to send [06:43:06]OFD Sender: No OFD packet to send [06:43:11]OFD Sender: No OFD packet to send [06:43:16]OFD Sender: No OFD packet to send [06:43:21]OFD Sender: No OFD packet to send [06:43:26]OFD Sender: No OFD packet to send [06:43:31]OFD Sender: No OFD packet to send [06:43:36]OFD Sender: No OFD packet to send [06:43:41]OFD Sender: No OFD packet to send [06:43:46]OFD Sender: No OFD packet to send [06:43:51]OFD Sender: No OFD packet to send [06:43:56]OFD Sender: No OFD packet to send [06:44:01]OFD Sender: No OFD packet to send [06:44:06]OFD Sender: No OFD packet to send [06:44:11]OFD Sender: No OFD packet to send [06:44:16]OFD Sender: No OFD packet to send [06:44:21]OFD Sender: No OFD packet to send [06:44:26]OFD Sender: No OFD packet to send [06:44:31]OFD Sender: No OFD packet to send [06:44:36]OFD Sender: No OFD packet to send [06:44:41]OFD Sender: No OFD packet to send [06:44:46]OFD Sender: No OFD packet to send [06:44:51]OFD Sender: No OFD packet to send [06:44:56]OFD Sender: No OFD packet to send [06:45:01]OFD Sender: No OFD packet to send [06:45:06]OFD Sender: No OFD packet to send [06:45:12]OFD Sender: No OFD packet to send [06:45:17]OFD Sender: No OFD packet to send [06:45:22]OFD Sender: No OFD packet to send [06:45:27]OFD Sender: No OFD packet to send [06:45:32]OFD Sender: No OFD packet to send [06:45:37]OFD Sender: No OFD packet to send [06:45:42]OFD Sender: No OFD packet to send [06:45:47]OFD Sender: No OFD packet to send [06:45:52]OFD Sender: No OFD packet to send [06:45:57]OFD Sender: No OFD packet to send [06:46:02]OFD Sender: No OFD packet to send [06:46:07]OFD Sender: No OFD packet to send [06:46:12]OFD Sender: No OFD packet to send [06:46:17]OFD Sender: No OFD packet to send [06:46:22]OFD Sender: No OFD packet to send [06:46:27]OFD Sender: No OFD packet to send [06:46:32]OFD Sender: No OFD packet to send [06:46:37]OFD Sender: No OFD packet to send [06:46:42]OFD Sender: No OFD packet to send [06:46:47]OFD Sender: No OFD packet to send [06:46:52]OFD Sender: No OFD packet to send [06:46:57]OFD Sender: No OFD packet to send [06:47:02]OFD Sender: No OFD packet to send [06:47:07]OFD Sender: No OFD packet to send [06:47:12]OFD Sender: No OFD packet to send [06:47:17]OFD Sender: No OFD packet to send [06:47:22]OFD Sender: No OFD packet to send [06:47:27]OFD Sender: No OFD packet to send [06:47:32]OFD Sender: No OFD packet to send [06:47:37]OFD Sender: No OFD packet to send [06:47:42]OFD Sender: No OFD packet to send [06:47:47]OFD Sender: No OFD packet to send [06:47:52]OFD Sender: No OFD packet to send [06:47:57]OFD Sender: No OFD packet to send [06:48:02]OFD Sender: No OFD packet to send [06:48:07]OFD Sender: No OFD packet to send [06:48:12]OFD Sender: No OFD packet to send [06:48:17]OFD Sender: No OFD packet to send [06:48:22]OFD Sender: No OFD packet to send [06:48:27]OFD Sender: No OFD packet to send [06:48:32]OFD Sender: No OFD packet to send [06:48:37]OFD Sender: No OFD packet to send [06:48:42]OFD Sender: No OFD packet to send [06:48:47]OFD Sender: No OFD packet to send [06:48:52]OFD Sender: No OFD packet to send [06:48:57]OFD Sender: No OFD packet to send [06:49:02]OFD Sender: No OFD packet to send [06:49:07]OFD Sender: No OFD packet to send [06:49:12]OFD Sender: No OFD packet to send [06:49:17]OFD Sender: No OFD packet to send [06:49:22]OFD Sender: No OFD packet to send [06:49:27]OFD Sender: No OFD packet to send [06:49:32]OFD Sender: No OFD packet to send [06:49:37]OFD Sender: No OFD packet to send [06:49:42]OFD Sender: No OFD packet to send [06:49:47]OFD Sender: No OFD packet to send [06:49:52]OFD Sender: No OFD packet to send [06:49:57]OFD Sender: No OFD packet to send [06:50:02]OFD Sender: No OFD packet to send [06:50:07]OFD Sender: No OFD packet to send [06:50:12]OFD Sender: No OFD packet to send [06:50:17]OFD Sender: No OFD packet to send [06:50:22]OFD Sender: No OFD packet to send [06:50:27]OFD Sender: No OFD packet to send [06:50:32]OFD Sender: No OFD packet to send [06:50:37]OFD Sender: No OFD packet to send [06:50:42]OFD Sender: No OFD packet to send [06:50:47]OFD Sender: No OFD packet to send [06:50:52]OFD Sender: No OFD packet to send [06:50:57]OFD Sender: No OFD packet to send [06:51:02]OFD Sender: No OFD packet to send [06:51:07]OFD Sender: No OFD packet to send [06:51:12]OFD Sender: No OFD packet to send [06:51:17]OFD Sender: No OFD packet to send [06:51:22]OFD Sender: No OFD packet to send [06:51:27]OFD Sender: No OFD packet to send [06:51:32]OFD Sender: No OFD packet to send [06:51:37]OFD Sender: No OFD packet to send [06:51:42]OFD Sender: No OFD packet to send [06:51:47]OFD Sender: No OFD packet to send [06:51:52]OFD Sender: No OFD packet to send [06:51:57]OFD Sender: No OFD packet to send [06:52:02]OFD Sender: No OFD packet to send [06:52:07]OFD Sender: No OFD packet to send [06:52:12]OFD Sender: No OFD packet to send [06:52:17]OFD Sender: No OFD packet to send [06:52:22]OFD Sender: No OFD packet to send [06:52:27]OFD Sender: No OFD packet to send [06:52:32]OFD Sender: No OFD packet to send [06:52:37]OFD Sender: No OFD packet to send [06:52:42]OFD Sender: No OFD packet to send [06:52:47]OFD Sender: No OFD packet to send [06:52:52]OFD Sender: No OFD packet to send [06:52:57]OFD Sender: No OFD packet to send [06:53:02]OFD Sender: No OFD packet to send [06:53:07]OFD Sender: No OFD packet to send [06:53:12]OFD Sender: No OFD packet to send [06:53:17]OFD Sender: No OFD packet to send [06:53:22]OFD Sender: No OFD packet to send [06:53:27]OFD Sender: No OFD packet to send [06:53:32]OFD Sender: No OFD packet to send [06:53:37]OFD Sender: No OFD packet to send [06:53:42]OFD Sender: No OFD packet to send [06:53:47]OFD Sender: No OFD packet to send [06:53:52]OFD Sender: No OFD packet to send [06:53:57]OFD Sender: No OFD packet to send [06:54:02]OFD Sender: No OFD packet to send [06:54:07]OFD Sender: No OFD packet to send [06:54:12]OFD Sender: No OFD packet to send [06:54:17]OFD Sender: No OFD packet to send [06:54:22]OFD Sender: No OFD packet to send [06:54:27]OFD Sender: No OFD packet to send [06:54:32]OFD Sender: No OFD packet to send [06:54:37]OFD Sender: No OFD packet to send [06:54:42]OFD Sender: No OFD packet to send [06:54:47]OFD Sender: No OFD packet to send [06:54:52]OFD Sender: No OFD packet to send [06:54:57]OFD Sender: No OFD packet to send [06:55:02]OFD Sender: No OFD packet to send [06:55:07]OFD Sender: No OFD packet to send [06:55:12]OFD Sender: No OFD packet to send [06:55:17]OFD Sender: No OFD packet to send [06:55:22]OFD Sender: No OFD packet to send [06:55:27]OFD Sender: No OFD packet to send [06:55:32]OFD Sender: No OFD packet to send [06:55:37]OFD Sender: No OFD packet to send [06:55:42]OFD Sender: No OFD packet to send [06:55:47]OFD Sender: No OFD packet to send [06:55:52]OFD Sender: No OFD packet to send [06:55:57]OFD Sender: No OFD packet to send [06:56:02]OFD Sender: No OFD packet to send [06:56:07]OFD Sender: No OFD packet to send [06:56:12]OFD Sender: No OFD packet to send [06:56:17]OFD Sender: No OFD packet to send [06:56:22]OFD Sender: No OFD packet to send [06:56:27]OFD Sender: No OFD packet to send [06:56:32]OFD Sender: No OFD packet to send [06:56:37]OFD Sender: No OFD packet to send [06:56:42]OFD Sender: No OFD packet to send [06:56:47]OFD Sender: No OFD packet to send [06:56:52]OFD Sender: No OFD packet to send [06:56:57]OFD Sender: No OFD packet to send [06:57:02]OFD Sender: No OFD packet to send [06:57:07]OFD Sender: No OFD packet to send [06:57:12]OFD Sender: No OFD packet to send [06:57:17]OFD Sender: No OFD packet to send [06:57:22]OFD Sender: No OFD packet to send [06:57:27]OFD Sender: No OFD packet to send [06:57:32]OFD Sender: No OFD packet to send [06:57:37]OFD Sender: No OFD packet to send [06:57:42]OFD Sender: No OFD packet to send [06:57:47]OFD Sender: No OFD packet to send [06:57:52]OFD Sender: No OFD packet to send [06:57:57]OFD Sender: No OFD packet to send [06:58:02]OFD Sender: No OFD packet to send [06:58:07]OFD Sender: No OFD packet to send [06:58:12]OFD Sender: No OFD packet to send [06:58:17]OFD Sender: No OFD packet to send [06:58:22]OFD Sender: No OFD packet to send [06:58:27]OFD Sender: No OFD packet to send [06:58:32]OFD Sender: No OFD packet to send [06:58:37]OFD Sender: No OFD packet to send [06:58:42]OFD Sender: No OFD packet to send [06:58:47]OFD Sender: No OFD packet to send [06:58:52]OFD Sender: No OFD packet to send [06:58:57]OFD Sender: No OFD packet to send [06:59:02]OFD Sender: No OFD packet to send [06:59:07]OFD Sender: No OFD packet to send [06:59:12]OFD Sender: No OFD packet to send [06:59:17]OFD Sender: No OFD packet to send [06:59:22]OFD Sender: No OFD packet to send [06:59:27]OFD Sender: No OFD packet to send [06:59:32]OFD Sender: No OFD packet to send [06:59:37]OFD Sender: No OFD packet to send [06:59:42]OFD Sender: No OFD packet to send [06:59:47]OFD Sender: No OFD packet to send [06:59:52]OFD Sender: No OFD packet to send [06:59:57]OFD Sender: No OFD packet to send [07:00:02]OFD Sender: No OFD packet to send [07:00:07]OFD Sender: No OFD packet to send [07:00:12]OFD Sender: No OFD packet to send [07:00:17]OFD Sender: No OFD packet to send [07:00:22]OFD Sender: No OFD packet to send [07:00:27]OFD Sender: No OFD packet to send [07:00:32]OFD Sender: No OFD packet to send [07:00:37]OFD Sender: No OFD packet to send [07:00:42]OFD Sender: No OFD packet to send [07:00:47]OFD Sender: No OFD packet to send [07:00:52]OFD Sender: No OFD packet to send [07:00:57]OFD Sender: No OFD packet to send [07:01:02]OFD Sender: No OFD packet to send [07:01:07]OFD Sender: No OFD packet to send [07:01:12]OFD Sender: No OFD packet to send [07:01:17]OFD Sender: No OFD packet to send [07:01:22]OFD Sender: No OFD packet to send [07:01:27]OFD Sender: No OFD packet to send [07:01:32]OFD Sender: No OFD packet to send [07:01:37]OFD Sender: No OFD packet to send [07:01:42]OFD Sender: No OFD packet to send [07:01:47]OFD Sender: No OFD packet to send [07:01:53]OFD Sender: No OFD packet to send [07:01:58]OFD Sender: No OFD packet to send [07:02:03]OFD Sender: No OFD packet to send [07:02:08]OFD Sender: No OFD packet to send [07:02:13]OFD Sender: No OFD packet to send [07:02:18]OFD Sender: No OFD packet to send [07:02:23]OFD Sender: No OFD packet to send [07:02:28]OFD Sender: No OFD packet to send [07:02:33]OFD Sender: No OFD packet to send [07:02:38]OFD Sender: No OFD packet to send [07:02:43]OFD Sender: No OFD packet to send [07:02:48]OFD Sender: No OFD packet to send [07:02:53]OFD Sender: No OFD packet to send [07:02:58]OFD Sender: No OFD packet to send [07:03:03]OFD Sender: No OFD packet to send [07:03:08]OFD Sender: No OFD packet to send [07:03:13]OFD Sender: No OFD packet to send [07:03:18]OFD Sender: No OFD packet to send [07:03:23]OFD Sender: No OFD packet to send [07:03:28]OFD Sender: No OFD packet to send [07:03:33]OFD Sender: No OFD packet to send [07:03:38]OFD Sender: No OFD packet to send [07:03:43]OFD Sender: No OFD packet to send [07:03:48]OFD Sender: No OFD packet to send [07:03:53]OFD Sender: No OFD packet to send [07:03:58]OFD Sender: No OFD packet to send [07:04:03]OFD Sender: No OFD packet to send [07:04:08]OFD Sender: No OFD packet to send [07:04:13]OFD Sender: No OFD packet to send [07:04:18]OFD Sender: No OFD packet to send [07:04:23]OFD Sender: No OFD packet to send [07:04:28]OFD Sender: No OFD packet to send [07:04:33]OFD Sender: No OFD packet to send [07:04:38]OFD Sender: No OFD packet to send [07:04:43]OFD Sender: No OFD packet to send [07:04:48]OFD Sender: No OFD packet to send [07:04:53]OFD Sender: No OFD packet to send [07:04:58]OFD Sender: No OFD packet to send [07:05:03]OFD Sender: No OFD packet to send [07:05:08]OFD Sender: No OFD packet to send [07:05:13]OFD Sender: No OFD packet to send [07:05:18]OFD Sender: No OFD packet to send [07:05:23]OFD Sender: No OFD packet to send [07:05:28]OFD Sender: No OFD packet to send [07:05:33]OFD Sender: No OFD packet to send [07:05:38]OFD Sender: No OFD packet to send [07:05:43]OFD Sender: No OFD packet to send [07:05:48]OFD Sender: No OFD packet to send [07:05:53]OFD Sender: No OFD packet to send [07:05:58]OFD Sender: No OFD packet to send [07:06:03]OFD Sender: No OFD packet to send [07:06:08]OFD Sender: No OFD packet to send [07:06:13]OFD Sender: No OFD packet to send [07:06:18]OFD Sender: No OFD packet to send [07:06:23]OFD Sender: No OFD packet to send [07:06:28]OFD Sender: No OFD packet to send [07:06:33]OFD Sender: No OFD packet to send [07:06:38]OFD Sender: No OFD packet to send [07:06:43]OFD Sender: No OFD packet to send [07:06:48]OFD Sender: No OFD packet to send [07:06:53]OFD Sender: No OFD packet to send [07:06:58]OFD Sender: No OFD packet to send [07:07:03]OFD Sender: No OFD packet to send [07:07:08]OFD Sender: No OFD packet to send [07:07:13]OFD Sender: No OFD packet to send [07:07:18]OFD Sender: No OFD packet to send [07:07:23]OFD Sender: No OFD packet to send [07:07:28]OFD Sender: No OFD packet to send [07:07:33]OFD Sender: No OFD packet to send [07:07:38]OFD Sender: No OFD packet to send [07:07:43]OFD Sender: No OFD packet to send [07:07:48]OFD Sender: No OFD packet to send [07:07:53]OFD Sender: No OFD packet to send [07:07:58]OFD Sender: No OFD packet to send [07:08:03]OFD Sender: No OFD packet to send [07:08:08]OFD Sender: No OFD packet to send [07:08:13]OFD Sender: No OFD packet to send [07:08:18]OFD Sender: No OFD packet to send [07:08:23]OFD Sender: No OFD packet to send [07:08:28]OFD Sender: No OFD packet to send [07:08:33]OFD Sender: No OFD packet to send [07:08:38]OFD Sender: No OFD packet to send [07:08:43]OFD Sender: No OFD packet to send [07:08:48]OFD Sender: No OFD packet to send [07:08:53]OFD Sender: No OFD packet to send [07:08:58]OFD Sender: No OFD packet to send [07:09:03]OFD Sender: No OFD packet to send [07:09:08]OFD Sender: No OFD packet to send [07:09:13]OFD Sender: No OFD packet to send [07:09:18]OFD Sender: No OFD packet to send [07:09:23]OFD Sender: No OFD packet to send [07:09:28]OFD Sender: No OFD packet to send [07:09:33]OFD Sender: No OFD packet to send [07:09:38]OFD Sender: No OFD packet to send [07:09:43]OFD Sender: No OFD packet to send [07:09:48]OFD Sender: No OFD packet to send [07:09:53]OFD Sender: No OFD packet to send [07:09:58]OFD Sender: No OFD packet to send [07:10:03]OFD Sender: No OFD packet to send [07:10:08]OFD Sender: No OFD packet to send [07:10:13]OFD Sender: No OFD packet to send [07:10:18]OFD Sender: No OFD packet to send [07:10:23]OFD Sender: No OFD packet to send [07:10:28]OFD Sender: No OFD packet to send [07:10:33]OFD Sender: No OFD packet to send [07:10:38]OFD Sender: No OFD packet to send [07:10:43]OFD Sender: No OFD packet to send [07:10:48]OFD Sender: No OFD packet to send [07:10:53]OFD Sender: No OFD packet to send [07:10:58]OFD Sender: No OFD packet to send [07:11:03]OFD Sender: No OFD packet to send [07:11:08]OFD Sender: No OFD packet to send [07:11:13]OFD Sender: No OFD packet to send [07:11:18]OFD Sender: No OFD packet to send [07:11:23]OFD Sender: No OFD packet to send [07:11:28]OFD Sender: No OFD packet to send [07:11:33]OFD Sender: No OFD packet to send [07:11:38]OFD Sender: No OFD packet to send [07:11:43]OFD Sender: No OFD packet to send [07:11:48]OFD Sender: No OFD packet to send [07:11:53]OFD Sender: No OFD packet to send [07:11:58]OFD Sender: No OFD packet to send [07:12:03]OFD Sender: No OFD packet to send [07:12:08]OFD Sender: No OFD packet to send [07:12:13]OFD Sender: No OFD packet to send [07:12:18]OFD Sender: No OFD packet to send [07:12:23]OFD Sender: No OFD packet to send [07:12:28]OFD Sender: No OFD packet to send [07:12:33]OFD Sender: No OFD packet to send [07:12:38]OFD Sender: No OFD packet to send [07:12:43]OFD Sender: No OFD packet to send [07:12:48]OFD Sender: No OFD packet to send [07:12:53]OFD Sender: No OFD packet to send [07:12:58]OFD Sender: No OFD packet to send [07:13:03]OFD Sender: No OFD packet to send [07:13:08]OFD Sender: No OFD packet to send [07:13:13]OFD Sender: No OFD packet to send [07:13:18]OFD Sender: No OFD packet to send [07:13:23]OFD Sender: No OFD packet to send [07:13:28]OFD Sender: No OFD packet to send [07:13:33]OFD Sender: No OFD packet to send [07:13:38]OFD Sender: No OFD packet to send [07:13:43]OFD Sender: No OFD packet to send [07:13:48]OFD Sender: No OFD packet to send [07:13:53]OFD Sender: No OFD packet to send [07:13:58]OFD Sender: No OFD packet to send [07:14:03]OFD Sender: No OFD packet to send [07:14:08]OFD Sender: No OFD packet to send [07:14:13]OFD Sender: No OFD packet to send [07:14:18]OFD Sender: No OFD packet to send [07:14:23]OFD Sender: No OFD packet to send [07:14:28]OFD Sender: No OFD packet to send [07:14:33]OFD Sender: No OFD packet to send [07:14:38]OFD Sender: No OFD packet to send [07:14:43]OFD Sender: No OFD packet to send [07:14:48]OFD Sender: No OFD packet to send [07:14:53]OFD Sender: No OFD packet to send [07:14:58]OFD Sender: No OFD packet to send [07:15:03]OFD Sender: No OFD packet to send [07:15:08]OFD Sender: No OFD packet to send [07:15:13]OFD Sender: No OFD packet to send [07:15:18]OFD Sender: No OFD packet to send [07:15:23]OFD Sender: No OFD packet to send [07:15:28]OFD Sender: No OFD packet to send [07:15:33]OFD Sender: No OFD packet to send [07:15:38]OFD Sender: No OFD packet to send [07:15:43]OFD Sender: No OFD packet to send [07:15:48]OFD Sender: No OFD packet to send [07:15:53]OFD Sender: No OFD packet to send [07:15:58]OFD Sender: No OFD packet to send [07:16:03]OFD Sender: No OFD packet to send [07:16:08]OFD Sender: No OFD packet to send [07:16:13]OFD Sender: No OFD packet to send [07:16:18]OFD Sender: No OFD packet to send [07:16:23]OFD Sender: No OFD packet to send [07:16:28]OFD Sender: No OFD packet to send [07:16:33]OFD Sender: No OFD packet to send [07:16:38]OFD Sender: No OFD packet to send [07:16:43]OFD Sender: No OFD packet to send [07:16:48]OFD Sender: No OFD packet to send [07:16:53]OFD Sender: No OFD packet to send [07:16:58]OFD Sender: No OFD packet to send [07:17:03]OFD Sender: No OFD packet to send [07:17:08]OFD Sender: No OFD packet to send [07:17:13]OFD Sender: No OFD packet to send [07:17:18]OFD Sender: No OFD packet to send [07:17:23]OFD Sender: No OFD packet to send [07:17:28]OFD Sender: No OFD packet to send [07:17:33]OFD Sender: No OFD packet to send [07:17:38]OFD Sender: No OFD packet to send [07:17:43]OFD Sender: No OFD packet to send [07:17:48]OFD Sender: No OFD packet to send [07:17:53]OFD Sender: No OFD packet to send [07:17:58]OFD Sender: No OFD packet to send [07:18:03]OFD Sender: No OFD packet to send [07:18:08]OFD Sender: No OFD packet to send [07:18:13]OFD Sender: No OFD packet to send [07:18:18]OFD Sender: No OFD packet to send [07:18:23]OFD Sender: No OFD packet to send [07:18:29]OFD Sender: No OFD packet to send [07:18:34]OFD Sender: No OFD packet to send [07:18:39]OFD Sender: No OFD packet to send [07:18:44]OFD Sender: No OFD packet to send [07:18:49]OFD Sender: No OFD packet to send [07:18:54]OFD Sender: No OFD packet to send [07:18:59]OFD Sender: No OFD packet to send [07:19:04]OFD Sender: No OFD packet to send [07:19:09]OFD Sender: No OFD packet to send [07:19:14]OFD Sender: No OFD packet to send [07:19:19]OFD Sender: No OFD packet to send [07:19:24]OFD Sender: No OFD packet to send [07:19:29]OFD Sender: No OFD packet to send [07:19:34]OFD Sender: No OFD packet to send [07:19:39]OFD Sender: No OFD packet to send [07:19:44]OFD Sender: No OFD packet to send [07:19:49]OFD Sender: No OFD packet to send [07:19:54]OFD Sender: No OFD packet to send [07:19:59]OFD Sender: No OFD packet to send [07:20:04]OFD Sender: No OFD packet to send [07:20:09]OFD Sender: No OFD packet to send [07:20:14]OFD Sender: No OFD packet to send [07:20:19]OFD Sender: No OFD packet to send [07:20:24]OFD Sender: No OFD packet to send [07:20:29]OFD Sender: No OFD packet to send [07:20:34]OFD Sender: No OFD packet to send [07:20:39]OFD Sender: No OFD packet to send [07:20:44]OFD Sender: No OFD packet to send [07:20:49]OFD Sender: No OFD packet to send [07:20:54]OFD Sender: No OFD packet to send [07:20:59]OFD Sender: No OFD packet to send [07:21:04]OFD Sender: No OFD packet to send [07:21:09]OFD Sender: No OFD packet to send [07:21:14]OFD Sender: No OFD packet to send [07:21:19]OFD Sender: No OFD packet to send [07:21:24]OFD Sender: No OFD packet to send [07:21:29]OFD Sender: No OFD packet to send [07:21:34]OFD Sender: No OFD packet to send [07:21:39]OFD Sender: No OFD packet to send [07:21:44]OFD Sender: No OFD packet to send [07:21:49]OFD Sender: No OFD packet to send [07:21:54]OFD Sender: No OFD packet to send [07:21:59]OFD Sender: No OFD packet to send [07:22:04]OFD Sender: No OFD packet to send [07:22:09]OFD Sender: No OFD packet to send [07:22:14]OFD Sender: No OFD packet to send [07:22:19]OFD Sender: No OFD packet to send [07:22:24]OFD Sender: No OFD packet to send [07:22:29]OFD Sender: No OFD packet to send [07:22:34]OFD Sender: No OFD packet to send [07:22:39]OFD Sender: No OFD packet to send [07:22:44]OFD Sender: No OFD packet to send [07:22:45]accept exits with 8 [07:22:45]New connection [07:22:45]New thread 3066658148 created [07:22:45]Thread 3066801508 joined [07:22:45]Waiting for new connection... [07:22:45] Sock 8.Parse request [07:22:45]Sock 8.Check first char [07:22:45]Sock 8.First char is OK [07:22:45]request: POST /json_proto HTTP/1.0 [07:22:45]Method: POST [07:22:45]URL: /json_proto [07:22:45]Method is POST - this is cgi request [07:22:45]url: /json_proto [07:22:45]query_string will be loaded in cgi processing [07:22:45]execute_cgi json_proto POST (null) [07:22:45]execute_cgi path=json_proto method=POST [07:22:45]POST find Content-Length [07:22:45]Host: 172.17.63.131:8080 [07:22:45]Content-Length: 681 [07:22:45]Content-Type: application/json [07:22:45] [07:22:45]POST finish read [07:22:45]Found Content-Length = 681 [07:22:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32128", "tax_sys" : 0, "items" : [ { "pre_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" ] } } [07:22:45]execute_script... [07:22: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)32128", "tax_sys" : 0, "items" : [ { "pre_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" ] } } [07:22:45]POST & json_proto [07:22:45]process_json_proto [07:22:45]json parsed OK: [07:22:45]protocol is kg_v1.0 [07:22:45]action value=close_receipt [07:22:45]process_action close_receipt [07:22:45]cmd_close_receipt [07:22:45]MH_GetDate [07:22:45]Write to MH i2c: F0 00 00 4E 1A 57 [07:22:45]Write i2c OK [07:22:45]MH_I2C_Read... [07:22:45]Read from MH i2c: F0 [07:22:45]MH_I2C_Read... [07:22:45]Read from MH i2c: F0 09 00 [07:22:45]MH_I2C_Read... [07:22:45]Read from MH i2c: F0 09 00 4E 1A 00 49 8D 20 67 22 05 6E 64 B6 [07:22:45]GetLastDocTimeStamp 1730166428 [07:22:45]current date 1730186569 [07:22:45]FM_GetShiftState [07:22:45]SAM_PROTO_GetShiftState [07:22:45]wFMCommunicate request_size=4 [07:22:45]MH_SAM_APDU [07:22:45]CAPDU: 80 13 01 00 [07:22:45]Write to MH i2c: E2 08 00 4F 1A 80 13 01 00 00 00 00 00 E6 [07:22:45]Write i2c OK [07:22:45]MH_I2C_Read... [07:22:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:22:46]Read from MH i2c: E2 [07:22:46]MH_I2C_Read... [07:22:46]Read from MH i2c: E2 0E 00 [07:22:46]MH_I2C_Read... [07:22:46]Read from MH i2c: E2 0E 00 4F 1A 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 EC [07:22:46]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [07:22:46]wFMCommunicate OK [07:22:46]SAM_PROTO_GetShiftState done [07:22:46]FM_GetShiftState done [07:22:46]opened in 1730161990 [07:22:46]opened+sec_in_day 1730248390 [07:22:46]quantity*price = 100015 [07:22:46]sum+1 = 100017 [07:22: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 СÐО: Общий режим Чек 5 29.10.2024 07:22 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192799 ФПД: 153548240070317 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T072249&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192799&fm=153548240070317&tin=02508201610067®Number=0000000000091776&sum=100000 [07:22:47]StoreToDocumentArchive [07:22:47]shift 544 fd 192799 [07:22:47]save to /storage/0544/doc_00192799 [07:22:47]save last doc name /storage/0544/doc_00192799 to /storage/kkm_last_doc_name [07:22:47]save OK [07:22:47]Clear old archive folders... [07:22:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:22:47]tlvbuf is 00EF1730 [07:22:47]SAM_PROTO_ClearQueue [07:22:47]wFMCommunicate request_size=4 [07:22:47]MH_SAM_APDU [07:22:47]CAPDU: 80 09 00 00 [07:22:47]Write to MH i2c: E2 08 00 5C 1A 80 09 00 00 00 00 00 00 E8 [07:22:47]Write i2c OK [07:22:47]MH_I2C_Read... [07:22:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:22:47]Read from MH i2c: E2 [07:22:47]MH_I2C_Read... [07:22:47]Read from MH i2c: E2 03 00 [07:22:47]MH_I2C_Read... [07:22:47]Read from MH i2c: E2 03 00 5C 1A 00 90 00 EA [07:22:47]RAPDU: 90 00 [07:22:47]wFMCommunicate OK [07:22:47]SAM_PROTO_ClearQueue done [07:22:47]KKMCreateOFDPacket [07:22:47]OFDProtocolAddRootSTLVToBuf [07:22:47]FM_MakeSignedData [07:22:47]FM_MakeSignedData [07:22:47]SAM_PROTO_SignData [07:22:47]wFMCommunicate request_size=4 [07:22:47]MH_SAM_APDU [07:22:47]CAPDU: 80 0D 01 02 [07:22:47]Write to MH i2c: E2 08 00 5D 1A 80 0D 01 02 00 00 00 00 F0 [07:22:47]Write i2c OK [07:22:47]MH_I2C_Read... [07:22:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:22:47]Read from MH i2c: E2 [07:22:47]MH_I2C_Read... [07:22:47]Read from MH i2c: E2 03 00 [07:22:47]MH_I2C_Read... [07:22:47]Read from MH i2c: E2 03 00 5D 1A 00 90 00 EB [07:22:47]RAPDU: 90 00 [07:22:47]wFMCommunicate OK [07:22:47]wFMCommunicate request_size=255 [07:22:47]MH_SAM_APDU [07:22: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 00 00 00 F4 03 04 00 49 8D 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 8B [07:22:47]Write to MH i2c: E2 02 01 5E 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 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 00 00 00 F4 03 04 00 49 8D 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 8B 00 00 9F [07:22:47]Write i2c OK [07:22:47]MH_I2C_Read... [07:22:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:22:47]Read from MH i2c: E2 [07:22:47]MH_I2C_Read... [07:22:47]Read from MH i2c: E2 03 00 [07:22:47]MH_I2C_Read... [07:22:47]Read from MH i2c: E2 03 00 5E 1A 00 90 00 EC [07:22:47]RAPDU: 90 00 [07:22:47]wFMCommunicate OK [07:22:47]wFMCommunicate request_size=10 [07:22:47]MH_SAM_APDU [07:22:47]CAPDU: 80 0D 02 02 05 A6 BC 4E 26 AD [07:22:47]Write to MH i2c: E2 0D 00 5F 1A 80 0D 02 02 05 00 A6 BC 4E 26 AD 00 00 80 [07:22:47]Write i2c OK [07:22:47]MH_I2C_Read... [07:22:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:22:47]Read from MH i2c: E2 [07:22:47]MH_I2C_Read... [07:22:47]Read from MH i2c: E2 03 00 [07:22:47]MH_I2C_Read... [07:22:47]Read from MH i2c: E2 03 00 5F 1A 00 90 00 ED [07:22:47]RAPDU: 90 00 [07:22:47]wFMCommunicate OK [07:22:47]wFMCommunicate request_size=4 [07:22:47]MH_SAM_APDU [07:22:47]CAPDU: 80 0D 03 02 [07:22:47]Write to MH i2c: E2 08 00 60 1A 80 0D 03 02 00 00 00 00 F5 [07:22:47]Write i2c OK [07:22:47]MH_I2C_Read... [07:22:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:22:47]Read from MH i2c: E2 [07:22:47]MH_I2C_Read... [07:22:47]Read from MH i2c: E2 0B 00 [07:22:47]MH_I2C_Read... [07:22:47]Read from MH i2c: E2 0B 00 60 1A 00 8E 63 D0 D3 48 77 82 F9 90 00 C4 [07:22:47]RAPDU: 8E 63 D0 D3 48 77 82 F9 90 00 [07:22:47]wFMCommunicate OK [07:22:47]SAM_PROTO_SignData done [07:22:47]FM_MakeSignedData done [07:22:47]CreateOFDProtocolMessage [07:22:47]wFMCommunicate request_size=4 [07:22:47]MH_SAM_APDU [07:22:47]CAPDU: 80 11 00 00 [07:22:47]Write to MH i2c: E2 08 00 61 1A 80 11 00 00 00 00 00 00 F5 [07:22:47]Write i2c OK [07:22:47]MH_I2C_Read... [07:22:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:22:47]Read from MH i2c: E2 [07:22:47]MH_I2C_Read... [07:22:47]Read from MH i2c: E2 17 00 [07:22:47]MH_I2C_Read... [07:22:47]Read from MH i2c: E2 17 00 61 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 48 [07: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 [07:22:47]wFMCommunicate OK [07:22:47]CreateOFDProtocolMessage done [07:22:47]OFDSenderStorePacket 192799 [07:22:47]StoreOFDPacket docnum=192799 [07:22: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 A3 D0 07 01 51 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 00 00 00 F4 03 04 00 49 8D 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 8B A6 BC 4E 26 AD 8E 63 D0 D3 48 77 82 F9 [07:22:47]CheckFolder [07:22:47]dirname=/storage/ofd_packets [07:22:47]CheckFolder done [07:22:47]ProducePacketName [07:22:47]name=ofd_packets/00192799 [07:22:47]NVStorageSaveData ofd_packets/00192799 [07:22:47]File name is /storage/ofd_packets/00192799 [07:22:47]Write 301 bytes [07:22:47]NVStorageSaveData done [07:22:47]OFDSenderStorePacket done [07:22:47]KKMCreateOFDPacket done [07:22:47]NVStorageSaveData kkm_last_timestamp [07:22:47]File name is /storage/kkm_last_timestamp [07:22:47]Write 4 bytes [07:22:47]NVStorageSaveData done [07:22:47]ExternCall_PrintAddStr [07:22:47]wPrintStart [07:22:47]Write to MH i2c: 01 00 00 62 1A 7C [07:22:47]Write i2c OK [07:22:47]MH_I2C_Read... [07:22:47]Read from MH i2c: 01 [07:22:47]MH_I2C_Read... [07:22:47]Read from MH i2c: 01 07 00 [07:22:47]MH_I2C_Read... [07:22:47]Read from MH i2c: 01 07 00 62 1A 00 00 00 00 00 FF 0F 91 [07:22:47]RasterBufferAndPrint [07:22:47]line Счет N : (1)32128 [07:22:47]line ИÐÐ: 02508201610067 [07:22:47]line Контрольно-КаÑÑовый Чек [07:22:47]line ПРОДÐЖР[07:22:47]line ТРК (МРК, ГÐК) : 21 [07:22:47]line Товар: 2710124130 [07:22:47]line Ðи-92-К-5 [07:22:47]line 14.950 * 66.90 [07:22:47]line = 1000.16 [07:22:47]line ÐДС 12% ÐСП 1% [07:22:47]line > о реализуемом товаре [07:22:47]line ОКРУГЛЕÐИЕ: -0.16 [07:22:47]line ИТОГО: 1000.00 [07:22:47]line ВнеÑено: 1000.00 [07:22:47]line СДÐЧÐ: 0.00 [07:22:47]line ÐСП 1% : 8.85 [07:22:47]line ÐДС 12% : 106.21 [07:22:47]line Ðаличными: 1000.00 [07:22:47]line Безнал.: 0.00 [07:22:47]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [07:22:47]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [07:22:47]line СÐО: Общий режим [07:22:47]line Чек 5 29.10.2024 07:22 [07:22:47]line Смена: 544 ФФД: 1.0 [07:22:47]line ЗÐМ: 0300000110 [07:22:47]line РÐМ: 0000000000091776 [07:22:47]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [07:22:47]line ФМ: 0000000000871754 [07:22:47]line ФД: 192799 [07:22:47]line ФПД: 153548240070317 [07:22:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T072249&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192799&fm=153548240070317&tin=02508201610067®Number=0000000000091776&sum=100000 [07:22:48]OFD Sender: Processing packet 192799 [packets to send 75, broken 74] [07:22:48]ProducePacketName [07:22:48]name=ofd_packets/00192799 [07:22:48]OFD Sender: To server: ‡•öpG, [07:22:48]CommunicateWithHost lk.salyk.kg:30040 [07:22:48]ConnectInit lk.salyk.kg [07:22:48]written 0, free lines is 4095 [07:22:48]Connected sock=10 [07:22: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 A3 D0 07 01 51 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 00 00 00 F4 03 04 00 49 8D 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 8B A6 BC 4E 26 AD 8E 63 D0 D3 48 77 82 F9 [07:22: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 67 B7 47 00 62 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1F F1 02 00 F4 03 04 00 0A 32 20 67 B6 04 01 00 00 82 FD 99 71 FC 26 6C 5D [07:22:48]CommunicateWithHost err = 0 [07:22:48]CheckOFDResponse [07:22:48]1017 (14) - 77093643461234 [07:22:48]1041 (16) - 0000000000871754 [07:22:48]1040 (4) - 192799 [07:22:48]1012 (4) - 29.10.2024 00:53 [07:22:48]1206 (1) - 0 [07:22:48]OFD Sender: Remove packet 192799 [07:22:48]ProducePacketName [07:22:48]name=ofd_packets/00192799 [07:22:48]NVStorageDeleteData [07:22:48]Write to MH i2c: 01 00 00 8D 1A A7 [07:22:48]Write i2c OK [07:22:48]MH_I2C_Read... [07:22:48]Read from MH i2c: 01 [07:22:48]MH_I2C_Read... [07:22:48]Read from MH i2c: 01 07 00 [07:22:48]MH_I2C_Read... [07:22:48]Read from MH i2c: 01 07 00 8D 1A 00 00 00 00 00 BB 0C 75 [07:22:48]RasterBufferAndPrint [07:22:48]line [07:22:48]line [07:22:48]line [07:22:48]line [07:22:48]line [07:22:48]written 0, free lines is 3265 [07:22:48]MH_Cut [07:22:48]Write to MH i2c: D1 01 00 94 1A 01 80 [07:22:48]Write i2c OK [07:22:48]MH_I2C_Read... [07:22:48]Read from MH i2c: D1 [07:22:48]MH_I2C_Read... [07:22:48]Read from MH i2c: D1 01 00 [07:22:48]MH_I2C_Read... [07:22:48]Read from MH i2c: D1 01 00 94 1A 00 7F [07:22:48]Write to MH i2c: 01 00 00 95 1A AF [07:22:48]Write i2c OK [07:22:48]MH_I2C_Read... [07:22:48]OFD Sender: No OFD packet to send [07:22:49]*** Cut start [07:22:49]*** Partial cut [07:22:49]*** CUTSNS_PIN = 1 [07:22:49]*** CUTSNS_PIN = 0 [07:22:49]*** Brake cut motor [07:22:49]Read from MH i2c: 01 [07:22:49]MH_I2C_Read... [07:22:49]*** Stop cut motor [07:22:49]*** Cut end [07:22:49]Read from MH i2c: 01 07 00 [07:22:49]MH_I2C_Read... [07:22:49]Read from MH i2c: 01 07 00 95 1A 00 00 00 00 00 FF 0F C4 [07:22:49]process_action close_receipt done [07:22:49]requested_data is exist [07:22:49]produce_requested_data [07:22:49]requested_item fm.sn is exist - process it [07:22:49]wFMCommunicate request_size=4 [07:22:49]MH_SAM_APDU [07:22:49]CAPDU: 80 11 00 00 [07:22:49]Write to MH i2c: E2 08 00 96 1A 80 11 00 00 00 00 00 00 2A [07:22:49]Write i2c OK [07:22:49]MH_I2C_Read... [07:22:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:22:49]Read from MH i2c: E2 [07:22:49]MH_I2C_Read... [07:22:49]Read from MH i2c: E2 17 00 [07:22:49]MH_I2C_Read... [07:22:49]Read from MH i2c: E2 17 00 96 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7D [07:22:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [07:22:49]wFMCommunicate OK [07:22:49]requested_item fd.num is exist - process it [07:22:49]SAM_PROTO_GetFieldsCounters [07:22:49]wFMCommunicate request_size=4 [07:22:49]MH_SAM_APDU [07:22:49]CAPDU: 80 13 00 00 [07:22:49]Write to MH i2c: E2 08 00 97 1A 80 13 00 00 00 00 00 00 2D [07:22:49]Write i2c OK [07:22:49]MH_I2C_Read... [07:22:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:22:50]Read from MH i2c: E2 [07:22:50]MH_I2C_Read... [07:22:50]Read from MH i2c: E2 62 00 [07:22:50]MH_I2C_Read... [07:22:50]Read from MH i2c: E2 62 00 97 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 1F F1 02 00 0E 04 04 00 20 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 96 [07:22: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 1F F1 02 00 0E 04 04 00 20 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 [07:22:50]wFMCommunicate OK [07:22:50]SAM_PROTO_GetFieldsCounters done [07:22:50]requested_item shift.num is exist - process it [07:22:50]requested_item shift.opened is exist - process it [07:22:50]req_shift_opened [07:22:50]FM_GetShiftState [07:22:50]SAM_PROTO_GetShiftState [07:22:50]wFMCommunicate request_size=4 [07:22:50]MH_SAM_APDU [07:22:50]CAPDU: 80 13 01 00 [07:22:50]Write to MH i2c: E2 08 00 98 1A 80 13 01 00 00 00 00 00 2F [07:22:50]Write i2c OK [07:22:50]MH_I2C_Read... [07:22:50]Read from MH i2c: E2 [07:22:50]MH_I2C_Read... [07:22:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:22:50]Read from MH i2c: E2 0E 00 [07:22:50]MH_I2C_Read... [07:22:50]Read from MH i2c: E2 0E 00 98 1A 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 35 [07:22:50]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [07:22:50]wFMCommunicate OK [07:22:50]SAM_PROTO_GetShiftState done [07:22:50]FM_GetShiftState done [07:22:50]req_shift_opened done [07:22:50]requested_item shift.open_date is exist - process it [07:22:50]req_shift_open_date [07:22:50]req_shift_open_date done [07:22:50]produce_requested_data done [07:22:50]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192799,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [07:22:50]process_action_free close_receipt [07:22:50]json_value_free [07:22:50]json_value_free done [07:22:50]process_json_proto returns [07:22:50]Send response to host [07:22:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192799,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [07:22:50]free response buf [07:22:50]execute_script done [07:22:50]execute_script returns [07:22:50]free content buf [07:22:50]Sock 8.Close socket [07:22:50]Sock 8.Thread stoped [07:22:53]OFD Sender: No OFD packet to send [07:22:58]OFD Sender: No OFD packet to send [07:23:03]OFD Sender: No OFD packet to send [07:23:08]OFD Sender: No OFD packet to send [07:23:13]OFD Sender: No OFD packet to send [07:23:18]OFD Sender: No OFD packet to send [07:23:23]OFD Sender: No OFD packet to send [07:23:28]OFD Sender: No OFD packet to send [07:23:33]OFD Sender: No OFD packet to send [07:23:38]OFD Sender: No OFD packet to send [07:23:43]OFD Sender: No OFD packet to send [07:23:48]OFD Sender: No OFD packet to send [07:23:53]OFD Sender: No OFD packet to send [07:23:58]OFD Sender: No OFD packet to send [07:24:03]OFD Sender: No OFD packet to send [07:24:08]OFD Sender: No OFD packet to send [07:24:13]OFD Sender: No OFD packet to send [07:24:18]OFD Sender: No OFD packet to send [07:24:23]OFD Sender: No OFD packet to send [07:24:28]OFD Sender: No OFD packet to send [07:24:33]OFD Sender: No OFD packet to send [07:24:38]OFD Sender: No OFD packet to send [07:24:43]OFD Sender: No OFD packet to send [07:24:48]OFD Sender: No OFD packet to send [07:24:53]OFD Sender: No OFD packet to send [07:24:58]OFD Sender: No OFD packet to send [07:25:03]OFD Sender: No OFD packet to send [07:25:08]OFD Sender: No OFD packet to send [07:25:13]OFD Sender: No OFD packet to send [07:25:18]OFD Sender: No OFD packet to send [07:25:23]OFD Sender: No OFD packet to send [07:25:28]OFD Sender: No OFD packet to send [07:25:33]OFD Sender: No OFD packet to send [07:25:39]OFD Sender: No OFD packet to send [07:25:44]OFD Sender: No OFD packet to send [07:25:49]OFD Sender: No OFD packet to send [07:25:54]OFD Sender: No OFD packet to send [07:25:59]OFD Sender: No OFD packet to send [07:26:04]OFD Sender: No OFD packet to send [07:26:09]OFD Sender: No OFD packet to send [07:26:14]OFD Sender: No OFD packet to send [07:26:19]OFD Sender: No OFD packet to send [07:26:24]OFD Sender: No OFD packet to send [07:26:29]OFD Sender: No OFD packet to send [07:26:34]OFD Sender: No OFD packet to send [07:26:39]OFD Sender: No OFD packet to send [07:26:44]OFD Sender: No OFD packet to send [07:26:49]OFD Sender: No OFD packet to send [07:26:54]OFD Sender: No OFD packet to send [07:26:59]OFD Sender: No OFD packet to send [07:27:04]OFD Sender: No OFD packet to send [07:27:09]OFD Sender: No OFD packet to send [07:27:14]OFD Sender: No OFD packet to send [07:27:19]OFD Sender: No OFD packet to send [07:27:24]OFD Sender: No OFD packet to send [07:27:29]OFD Sender: No OFD packet to send [07:27:34]OFD Sender: No OFD packet to send [07:27:39]OFD Sender: No OFD packet to send [07:27:44]OFD Sender: No OFD packet to send [07:27:49]OFD Sender: No OFD packet to send [07:27:54]OFD Sender: No OFD packet to send [07:27:59]OFD Sender: No OFD packet to send [07:28:04]OFD Sender: No OFD packet to send [07:28:09]OFD Sender: No OFD packet to send [07:28:14]OFD Sender: No OFD packet to send [07:28:19]OFD Sender: No OFD packet to send [07:28:24]OFD Sender: No OFD packet to send [07:28:29]OFD Sender: No OFD packet to send [07:28:34]OFD Sender: No OFD packet to send [07:28:39]OFD Sender: No OFD packet to send [07:28:44]OFD Sender: No OFD packet to send [07:28:49]OFD Sender: No OFD packet to send [07:28:54]OFD Sender: No OFD packet to send [07:28:59]OFD Sender: No OFD packet to send [07:29:04]OFD Sender: No OFD packet to send [07:29:09]OFD Sender: No OFD packet to send [07:29:14]OFD Sender: No OFD packet to send [07:29:19]OFD Sender: No OFD packet to send [07:29:24]OFD Sender: No OFD packet to send [07:29:29]OFD Sender: No OFD packet to send [07:29:34]OFD Sender: No OFD packet to send [07:29:39]OFD Sender: No OFD packet to send [07:29:44]OFD Sender: No OFD packet to send [07:29:49]OFD Sender: No OFD packet to send [07:29:54]OFD Sender: No OFD packet to send [07:29:59]OFD Sender: No OFD packet to send [07:30:04]OFD Sender: No OFD packet to send [07:30:09]OFD Sender: No OFD packet to send [07:30:14]OFD Sender: No OFD packet to send [07:30:19]OFD Sender: No OFD packet to send [07:30:24]OFD Sender: No OFD packet to send [07:30:29]OFD Sender: No OFD packet to send [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:04]OFD Sender: No OFD packet to send [07:32:09]OFD Sender: No OFD packet to send [07:32:14]OFD Sender: No OFD packet to send [07:32:19]OFD Sender: No OFD packet to send [07:32:24]OFD Sender: No OFD packet to send [07:32:29]OFD Sender: No OFD packet to send [07:32:34]OFD Sender: No OFD packet to send [07:32:39]OFD Sender: No OFD packet to send [07:32:44]OFD Sender: No OFD packet to send [07:32:49]OFD Sender: No OFD packet to send [07:32:54]OFD Sender: No OFD packet to send [07:32:59]OFD Sender: No OFD packet to send [07:33:04]OFD Sender: No OFD packet to send [07:33:09]OFD Sender: No OFD packet to send [07:33:14]OFD Sender: No OFD packet to send [07:33:19]OFD Sender: No OFD packet to send [07:33:24]OFD Sender: No OFD packet to send [07:33:29]OFD Sender: No OFD packet to send [07:33:34]OFD Sender: No OFD packet to send [07:33:39]OFD Sender: No OFD packet to send [07:33:44]OFD Sender: No OFD packet to send [07:33:49]OFD Sender: No OFD packet to send [07:33:54]OFD Sender: No OFD packet to send [07:33:59]OFD Sender: No OFD packet to send [07:34:04]OFD Sender: No OFD packet to send [07:34:09]OFD Sender: No OFD packet to send [07:34:14]OFD Sender: No OFD packet to send [07:34:19]OFD Sender: No OFD packet to send [07:34:24]OFD Sender: No OFD packet to send [07:34:29]OFD Sender: No OFD packet to send [07:34:34]OFD Sender: No OFD packet to send [07:34:39]OFD Sender: No OFD packet to send [07:34:44]OFD Sender: No OFD packet to send [07:34:49]OFD Sender: No OFD packet to send [07:34:54]OFD Sender: No OFD packet to send [07:34:59]OFD Sender: No OFD packet to send [07:35:04]OFD Sender: No OFD packet to send [07:35:09]OFD Sender: No OFD packet to send [07:35:14]OFD Sender: No OFD packet to send [07:35:19]OFD Sender: No OFD packet to send [07:35:24]OFD Sender: No OFD packet to send [07:35:29]OFD Sender: No OFD packet to send [07:35:34]OFD Sender: No OFD packet to send [07:35:39]OFD Sender: No OFD packet to send [07:35:44]OFD Sender: No OFD packet to send [07:35:49]OFD Sender: No OFD packet to send [07:35:54]OFD Sender: No OFD packet to send [07:35:59]OFD Sender: No OFD packet to send [07:36:04]OFD Sender: No OFD packet to send [07:36:09]OFD Sender: No OFD packet to send [07:36:14]OFD Sender: No OFD packet to send [07:36:19]OFD Sender: No OFD packet to send [07:36:24]OFD Sender: No OFD packet to send [07:36:29]OFD Sender: No OFD packet to send [07:36:34]OFD Sender: No OFD packet to send [07:36:39]OFD Sender: No OFD packet to send [07:36:44]OFD Sender: No OFD packet to send [07:36:49]OFD Sender: No OFD packet to send [07:36:54]OFD Sender: No OFD packet to send [07:36:59]OFD Sender: No OFD packet to send [07:37:04]OFD Sender: No OFD packet to send [07:37:09]OFD Sender: No OFD packet to send [07:37:14]OFD Sender: No OFD packet to send [07:37:19]OFD Sender: No OFD packet to send [07:37:24]OFD Sender: No OFD packet to send [07:37:29]OFD Sender: No OFD packet to send [07:37:34]OFD Sender: No OFD packet to send [07:37:39]OFD Sender: No OFD packet to send [07:37:44]OFD Sender: No OFD packet to send [07:37:49]OFD Sender: No OFD packet to send [07:37:54]OFD Sender: No OFD packet to send [07:37:59]OFD Sender: No OFD packet to send [07:38:04]OFD Sender: No OFD packet to send [07:38:09]OFD Sender: No OFD packet to send [07:38:14]OFD Sender: No OFD packet to send [07:38:19]OFD Sender: No OFD packet to send [07:38:24]OFD Sender: No OFD packet to send [07:38:29]OFD Sender: No OFD packet to send [07:38:34]OFD Sender: No OFD packet to send [07:38:39]OFD Sender: No OFD packet to send [07:38:44]OFD Sender: No OFD packet to send [07:38:49]OFD Sender: No OFD packet to send [07:38:54]OFD Sender: No OFD packet to send [07:38:59]OFD Sender: No OFD packet to send [07:39:04]OFD Sender: No OFD packet to send [07:39:09]OFD Sender: No OFD packet to send [07:39:14]OFD Sender: No OFD packet to send [07:39:19]OFD Sender: No OFD packet to send [07:39:24]OFD Sender: No OFD packet to send [07:39:29]OFD Sender: No OFD packet to send [07:39:34]OFD Sender: No OFD packet to send [07:39:39]OFD Sender: No OFD packet to send [07:39:44]OFD Sender: No OFD packet to send [07:39:49]OFD Sender: No OFD packet to send [07:39:54]OFD Sender: No OFD packet to send [07:39:59]OFD Sender: No OFD packet to send [07:40:04]OFD Sender: No OFD packet to send [07:40:09]OFD Sender: No OFD packet to send [07:40:14]OFD Sender: No OFD packet to send [07:40:19]OFD Sender: No OFD packet to send [07:40:24]OFD Sender: No OFD packet to send [07:40:29]OFD Sender: No OFD packet to send [07:40:34]OFD Sender: No OFD packet to send [07:40:39]OFD Sender: No OFD packet to send [07:40:44]OFD Sender: No OFD packet to send [07:40:49]OFD Sender: No OFD packet to send [07:40:54]OFD Sender: No OFD packet to send [07:40:59]OFD Sender: No OFD packet to send [07:41:04]OFD Sender: No OFD packet to send [07:41:09]OFD Sender: No OFD packet to send [07:41:14]OFD Sender: No OFD packet to send [07:41:19]OFD Sender: No OFD packet to send [07:41:24]OFD Sender: No OFD packet to send [07:41:29]OFD Sender: No OFD packet to send [07:41:34]OFD Sender: No OFD packet to send [07:41:39]OFD Sender: No OFD packet to send [07:41:44]OFD Sender: No OFD packet to send [07:41:49]OFD Sender: No OFD packet to send [07:41:54]OFD Sender: No OFD packet to send [07:41:59]OFD Sender: No OFD packet to send [07:42:04]OFD Sender: No OFD packet to send [07:42:09]OFD Sender: No OFD packet to send [07:42:14]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:30]OFD Sender: No OFD packet to send [07:48:35]OFD Sender: No OFD packet to send [07:48:40]OFD Sender: No OFD packet to send [07:48:45]OFD Sender: No OFD packet to send [07:48:50]OFD Sender: No OFD packet to send [07:48:55]OFD Sender: No OFD packet to send [07:49:00]OFD Sender: No OFD packet to send [07:49:05]OFD Sender: No OFD packet to send [07:49:10]OFD Sender: No OFD packet to send [07:49:15]OFD Sender: No OFD packet to send [07:49:20]OFD Sender: No OFD packet to send [07:49:25]OFD Sender: No OFD packet to send [07:49:30]OFD Sender: No OFD packet to send [07:49:35]OFD Sender: No OFD packet to send [07:49:40]OFD Sender: No OFD packet to send [07:49:45]OFD Sender: No OFD packet to send [07:49:50]OFD Sender: No OFD packet to send [07:49:55]OFD Sender: No OFD packet to send [07:50:00]OFD Sender: No OFD packet to send [07:50:05]OFD Sender: No OFD packet to send [07:50:10]OFD Sender: No OFD packet to send [07:50:15]OFD Sender: No OFD packet to send [07:50:20]OFD Sender: No OFD packet to send [07:50:25]OFD Sender: No OFD packet to send [07:50:30]OFD Sender: No OFD packet to send [07:50:35]OFD Sender: No OFD packet to send [07:50:40]OFD Sender: No OFD packet to send [07:50:45]OFD Sender: No OFD packet to send [07:50:50]OFD Sender: No OFD packet to send [07:50:55]OFD Sender: No OFD packet to send [07:51:00]OFD Sender: No OFD packet to send [07:51:05]OFD Sender: No OFD packet to send [07:51:10]OFD Sender: No OFD packet to send [07:51:15]OFD Sender: No OFD packet to send [07:51:20]OFD Sender: No OFD packet to send [07:51:25]OFD Sender: No OFD packet to send [07:51:30]OFD Sender: No OFD packet to send [07:51:35]OFD Sender: No OFD packet to send [07:51:40]OFD Sender: No OFD packet to send [07:51:45]OFD Sender: No OFD packet to send [07:51:50]OFD Sender: No OFD packet to send [07:51:55]OFD Sender: No OFD packet to send [07:52:00]OFD Sender: No OFD packet to send [07:52:05]OFD Sender: No OFD packet to send [07:52:10]OFD Sender: No OFD packet to send [07:52:15]OFD Sender: No OFD packet to send [07:52:20]OFD Sender: No OFD packet to send [07:52:25]OFD Sender: No OFD packet to send [07:52:30]OFD Sender: No OFD packet to send [07:52:35]OFD Sender: No OFD packet to send [07:52:40]OFD Sender: No OFD packet to send [07:52:45]OFD Sender: No OFD packet to send [07:52:50]OFD Sender: No OFD packet to send [07:52:55]OFD Sender: No OFD packet to send [07:53:00]OFD Sender: No OFD packet to send [07:53:05]OFD Sender: No OFD packet to send [07:53:10]OFD Sender: No OFD packet to send [07:53:15]OFD Sender: No OFD packet to send [07:53:20]OFD Sender: No OFD packet to send [07:53:25]OFD Sender: No OFD packet to send [07:53:30]OFD Sender: No OFD packet to send [07:53:35]OFD Sender: No OFD packet to send [07:53:40]OFD Sender: No OFD packet to send [07:53:45]OFD Sender: No OFD packet to send [07:53:50]OFD Sender: No OFD packet to send [07:53:55]OFD Sender: No OFD packet to send [07:54:00]OFD Sender: No OFD packet to send [07:54:05]OFD Sender: No OFD packet to send [07:54:10]OFD Sender: No OFD packet to send [07:54:15]OFD Sender: No OFD packet to send [07:54:20]OFD Sender: No OFD packet to send [07:54:25]OFD Sender: No OFD packet to send [07:54:30]OFD Sender: No OFD packet to send [07:54:35]OFD Sender: No OFD packet to send [07:54:40]OFD Sender: No OFD packet to send [07:54:45]OFD Sender: No OFD packet to send [07:54:50]OFD Sender: No OFD packet to send [07:54:55]OFD Sender: No OFD packet to send [07:55:00]OFD Sender: No OFD packet to send [07:55:05]OFD Sender: No OFD packet to send [07:55:10]OFD Sender: No OFD packet to send [07:55:15]OFD Sender: No OFD packet to send [07:55:20]OFD Sender: No OFD packet to send [07:55:25]OFD Sender: No OFD packet to send [07:55:30]OFD Sender: No OFD packet to send [07:55:35]OFD Sender: No OFD packet to send [07:55:40]OFD Sender: No OFD packet to send [07:55:45]OFD Sender: No OFD packet to send [07:55:50]OFD Sender: No OFD packet to send [07:55:55]OFD Sender: No OFD packet to send [07:56:00]OFD Sender: No OFD packet to send [07:56:05]OFD Sender: No OFD packet to send [07:56:10]OFD Sender: No OFD packet to send [07:56:15]OFD Sender: No OFD packet to send [07:56:20]OFD Sender: No OFD packet to send [07:56:25]OFD Sender: No OFD packet to send [07:56:30]OFD Sender: No OFD packet to send [07:56:35]OFD Sender: No OFD packet to send [07:56:40]OFD Sender: No OFD packet to send [07:56:45]OFD Sender: No OFD packet to send [07:56:50]OFD Sender: No OFD packet to send [07:56:55]OFD Sender: No OFD packet to send [07:57:00]OFD Sender: No OFD packet to send [07:57:05]OFD Sender: No OFD packet to send [07:57:10]OFD Sender: No OFD packet to send [07:57:15]OFD Sender: No OFD packet to send [07:57:20]OFD Sender: No OFD packet to send [07:57:25]OFD Sender: No OFD packet to send [07:57:30]OFD Sender: No OFD packet to send [07:57:35]OFD Sender: No OFD packet to send [07:57:40]OFD Sender: No OFD packet to send [07:57:45]OFD Sender: No OFD packet to send [07:57:50]OFD Sender: No OFD packet to send [07:57:55]OFD Sender: No OFD packet to send [07:58:00]OFD Sender: No OFD packet to send [07:58:05]OFD Sender: No OFD packet to send [07:58:10]OFD Sender: No OFD packet to send [07:58:15]OFD Sender: No OFD packet to send [07:58:20]OFD Sender: No OFD packet to send [07:58:25]OFD Sender: No OFD packet to send [07:58:30]OFD Sender: No OFD packet to send [07:58:35]OFD Sender: No OFD packet to send [07:58:40]OFD Sender: No OFD packet to send [07:58:45]OFD Sender: No OFD packet to send [07:58:50]OFD Sender: No OFD packet to send [07:58:55]OFD Sender: No OFD packet to send [07:59:01]OFD Sender: No OFD packet to send [07:59:06]OFD Sender: No OFD packet to send [07:59:11]OFD Sender: No OFD packet to send [07:59:16]OFD Sender: No OFD packet to send [07:59:21]OFD Sender: No OFD packet to send [07:59:26]OFD Sender: No OFD packet to send [07:59:31]OFD Sender: No OFD packet to send [07:59:36]OFD Sender: No OFD packet to send [07:59:41]OFD Sender: No OFD packet to send [07:59:46]OFD Sender: No OFD packet to send [07:59:51]OFD Sender: No OFD packet to send [07:59:56]OFD Sender: No OFD packet to send [08:00:01]OFD Sender: No OFD packet to send [08:00:06]OFD Sender: No OFD packet to send [08:00:11]OFD Sender: No OFD packet to send [08:00:16]OFD Sender: No OFD packet to send [08:00:21]OFD Sender: No OFD packet to send [08:00:26]OFD Sender: No OFD packet to send [08:00:31]OFD Sender: No OFD packet to send [08:00:36]OFD Sender: No OFD packet to send [08:00:41]OFD Sender: No OFD packet to send [08:00:46]OFD Sender: No OFD packet to send [08:00:51]OFD Sender: No OFD packet to send [08:00:56]OFD Sender: No OFD packet to send [08:01:01]OFD Sender: No OFD packet to send [08:01:06]OFD Sender: No OFD packet to send [08:01:11]OFD Sender: No OFD packet to send [08:01:16]OFD Sender: No OFD packet to send [08:01:21]OFD Sender: No OFD packet to send [08:01:26]OFD Sender: No OFD packet to send [08:01:31]OFD Sender: No OFD packet to send [08:01:36]OFD Sender: No OFD packet to send [08:01:41]OFD Sender: No OFD packet to send [08:01:46]OFD Sender: No OFD packet to send [08:01:51]OFD Sender: No OFD packet to send [08:01:56]OFD Sender: No OFD packet to send [08:02:01]OFD Sender: No OFD packet to send [08:02:06]OFD Sender: No OFD packet to send [08:02:11]OFD Sender: No OFD packet to send [08:02:16]OFD Sender: No OFD packet to send [08:02:21]OFD Sender: No OFD packet to send [08:02:26]OFD Sender: No OFD packet to send [08:02:31]OFD Sender: No OFD packet to send [08:02:36]OFD Sender: No OFD packet to send [08:02:41]OFD Sender: No OFD packet to send [08:02:46]OFD Sender: No OFD packet to send [08:02:51]OFD Sender: No OFD packet to send [08:02:56]OFD Sender: No OFD packet to send [08:03:01]OFD Sender: No OFD packet to send [08:03:06]OFD Sender: No OFD packet to send [08:03:11]OFD Sender: No OFD packet to send [08:03:16]OFD Sender: No OFD packet to send [08:03:21]OFD Sender: No OFD packet to send [08:03:26]OFD Sender: No OFD packet to send [08:03:31]OFD Sender: No OFD packet to send [08:03:36]OFD Sender: No OFD packet to send [08:03:41]OFD Sender: No OFD packet to send [08:03:46]OFD Sender: No OFD packet to send [08:03:51]OFD Sender: No OFD packet to send [08:03:56]OFD Sender: No OFD packet to send [08:04:01]OFD Sender: No OFD packet to send [08:04:06]OFD Sender: No OFD packet to send [08:04:11]OFD Sender: No OFD packet to send [08:04:16]OFD Sender: No OFD packet to send [08:04:21]OFD Sender: No OFD packet to send [08:04:26]OFD Sender: No OFD packet to send [08:04:31]OFD Sender: No OFD packet to send [08:04:36]OFD Sender: No OFD packet to send [08:04:41]OFD Sender: No OFD packet to send [08:04:46]OFD Sender: No OFD packet to send [08:04:51]OFD Sender: No OFD packet to send [08:04:56]OFD Sender: No OFD packet to send [08:05:01]OFD Sender: No OFD packet to send [08:05:06]OFD Sender: No OFD packet to send [08:05:11]OFD Sender: No OFD packet to send [08:05:16]OFD Sender: No OFD packet to send [08:05:21]OFD Sender: No OFD packet to send [08:05:26]OFD Sender: No OFD packet to send [08:05:31]OFD Sender: No OFD packet to send [08:05:36]OFD Sender: No OFD packet to send [08:05:41]OFD Sender: No OFD packet to send [08:05:46]OFD Sender: No OFD packet to send [08:05:51]OFD Sender: No OFD packet to send [08:05:56]OFD Sender: No OFD packet to send [08:06:01]OFD Sender: No OFD packet to send [08:06:06]OFD Sender: No OFD packet to send [08:06:11]OFD Sender: No OFD packet to send [08:06:16]OFD Sender: No OFD packet to send [08:06:21]OFD Sender: No OFD packet to send [08:06:26]OFD Sender: No OFD packet to send [08:06:31]OFD Sender: No OFD packet to send [08:06:36]OFD Sender: No OFD packet to send [08:06:41]OFD Sender: No OFD packet to send [08:06:46]OFD Sender: No OFD packet to send [08:06:51]OFD Sender: No OFD packet to send [08:06:56]OFD Sender: No OFD packet to send [08:07:01]OFD Sender: No OFD packet to send [08:07:06]OFD Sender: No OFD packet to send [08:07:11]OFD Sender: No OFD packet to send [08:07:16]OFD Sender: No OFD packet to send [08:07:21]OFD Sender: No OFD packet to send [08:07:26]OFD Sender: No OFD packet to send [08:07:31]OFD Sender: No OFD packet to send [08:07:36]OFD Sender: No OFD packet to send [08:07:41]OFD Sender: No OFD packet to send [08:07:46]OFD Sender: No OFD packet to send [08:07:51]OFD Sender: No OFD packet to send [08:07:56]OFD Sender: No OFD packet to send [08:08:01]OFD Sender: No OFD packet to send [08:08:06]OFD Sender: No OFD packet to send [08:08:11]OFD Sender: No OFD packet to send [08:08:16]OFD Sender: No OFD packet to send [08:08:21]OFD Sender: No OFD packet to send [08:08:26]OFD Sender: No OFD packet to send [08:08:31]OFD Sender: No OFD packet to send [08:08:36]OFD Sender: No OFD packet to send [08:08:41]OFD Sender: No OFD packet to send [08:08:42]accept exits with 9 [08:08:42]New connection [08:08:42]New thread 3066801508 created [08:08:42]Thread 3066658148 joined [08:08:42]Waiting for new connection... [08:08:42] Sock 9.Parse request [08:08:42]Sock 9.Check first char [08:08:42]Sock 9.First char is OK [08:08:42]request: POST /json_proto HTTP/1.0 [08:08:42]Method: POST [08:08:42]URL: /json_proto [08:08:42]Method is POST - this is cgi request [08:08:42]url: /json_proto [08:08:42]query_string will be loaded in cgi processing [08:08:42]execute_cgi json_proto POST (null) [08:08:42]execute_cgi path=json_proto method=POST [08:08:42]POST find Content-Length [08:08:42]Host: 172.17.63.131:8080 [08:08:42]Content-Length: 862 [08:08:42]Content-Type: application/json [08:08:42] [08:08:42]POST finish read [08:08:42]Found Content-Length = 862 [08:08:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32129", "tax_sys" : 0, "items" : [ { "pre_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:08:42]execute_script... [08:08: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)32129", "tax_sys" : 0, "items" : [ { "pre_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:08:42]POST & json_proto [08:08:42]process_json_proto [08:08:42]json parsed OK: [08:08:42]protocol is kg_v1.0 [08:08:42]action value=close_receipt [08:08:42]process_action close_receipt [08:08:42]cmd_close_receipt [08:08:42]MH_GetDate [08:08:42]Write to MH i2c: F0 00 00 99 1A A2 [08:08:42]Write i2c OK [08:08:42]MH_I2C_Read... [08:08:42]Read from MH i2c: F0 [08:08:42]MH_I2C_Read... [08:08:42]Read from MH i2c: F0 09 00 [08:08:42]MH_I2C_Read... [08:08:42]Read from MH i2c: F0 09 00 99 1A 00 0E 98 20 67 22 05 6E 64 D1 [08:08:42]GetLastDocTimeStamp 1730186569 [08:08:42]current date 1730189326 [08:08:42]FM_GetShiftState [08:08:42]SAM_PROTO_GetShiftState [08:08:42]wFMCommunicate request_size=4 [08:08:42]MH_SAM_APDU [08:08:42]CAPDU: 80 13 01 00 [08:08:42]Write to MH i2c: E2 08 00 9A 1A 80 13 01 00 00 00 00 00 31 [08:08:42]Write i2c OK [08:08:42]MH_I2C_Read... [08:08:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:42]Read from MH i2c: E2 [08:08:42]MH_I2C_Read... [08:08:42]Read from MH i2c: E2 0E 00 [08:08:42]MH_I2C_Read... [08:08:42]Read from MH i2c: E2 0E 00 9A 1A 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 37 [08:08:42]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [08:08:42]wFMCommunicate OK [08:08:42]SAM_PROTO_GetShiftState done [08:08:42]FM_GetShiftState done [08:08:42]opened in 1730161990 [08:08:42]opened+sec_in_day 1730248390 [08:08:42]quantity*price = 50041 [08:08:42]sum+1 = 50042 [08:08:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 ÐСП 1% : 4.43 ÐДС 12% : 53.14 Ðаличными: 0.00 Безнал.: 500.41 МеÑто: ÐЗС â„– 170 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 СÐО: Общий режим Чек 6 29.10.2024 08:08 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192800 ФПД: 232945293983868 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T080846&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192800&fm=232945293983868&tin=02508201610067®Number=0000000000091776&sum=50041 [08:08:43]StoreToDocumentArchive [08:08:43]shift 544 fd 192800 [08:08:43]save to /storage/0544/doc_00192800 [08:08:43]save last doc name /storage/0544/doc_00192800 to /storage/kkm_last_doc_name [08:08:43]save OK [08:08:43]Clear old archive folders... [08:08:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:08:43]tlvbuf is 00FEF170 [08:08:43]SAM_PROTO_ClearQueue [08:08:43]wFMCommunicate request_size=4 [08:08:43]MH_SAM_APDU [08:08:43]CAPDU: 80 09 00 00 [08:08:43]Write to MH i2c: E2 08 00 A7 1A 80 09 00 00 00 00 00 00 33 [08:08:43]Write i2c OK [08:08:43]MH_I2C_Read... [08:08:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:08:43]Read from MH i2c: E2 [08:08:43]MH_I2C_Read... [08:08:43]Read from MH i2c: E2 03 00 [08:08:43]MH_I2C_Read... [08:08:43]Read from MH i2c: E2 03 00 A7 1A 00 90 00 35 [08:08:43]RAPDU: 90 00 [08:08:43]wFMCommunicate OK [08:08:43]SAM_PROTO_ClearQueue done [08:08:43]KKMCreateOFDPacket [08:08:43]OFDProtocolAddRootSTLVToBuf [08:08:43]FM_MakeSignedData [08:08:43]FM_MakeSignedData [08:08:43]SAM_PROTO_SignData [08:08:43]wFMCommunicate request_size=4 [08:08:43]MH_SAM_APDU [08:08:43]CAPDU: 80 0D 01 02 [08:08:43]Write to MH i2c: E2 08 00 A8 1A 80 0D 01 02 00 00 00 00 3B [08:08:43]Write i2c OK [08:08:43]MH_I2C_Read... [08:08:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:08:43]Read from MH i2c: E2 [08:08:43]MH_I2C_Read... [08:08:43]Read from MH i2c: E2 03 00 [08:08:43]MH_I2C_Read... [08:08:43]Read from MH i2c: E2 03 00 A8 1A 00 90 00 36 [08:08:43]RAPDU: 90 00 [08:08:43]wFMCommunicate OK [08:08:43]wFMCommunicate request_size=255 [08:08:43]MH_SAM_APDU [08:08: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 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 0E 98 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 D3 [08:08:43]Write to MH i2c: E2 02 01 A9 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 0E 98 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 D3 00 00 5C [08:08:43]Write i2c OK [08:08:43]MH_I2C_Read... [08:08:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:08:43]Read from MH i2c: E2 [08:08:43]MH_I2C_Read... [08:08:43]Read from MH i2c: E2 03 00 [08:08:43]MH_I2C_Read... [08:08:43]Read from MH i2c: E2 03 00 A9 1A 00 90 00 37 [08:08:43]RAPDU: 90 00 [08:08:43]wFMCommunicate OK [08:08:43]wFMCommunicate request_size=10 [08:08:43]MH_SAM_APDU [08:08:43]CAPDU: 80 0D 02 02 05 DC CD 80 00 7C [08:08:43]Write to MH i2c: E2 0D 00 AA 1A 80 0D 02 02 05 00 DC CD 80 00 7C 00 00 ED [08:08:44]Write i2c OK [08:08:44]MH_I2C_Read... [08:08:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:08:44]Read from MH i2c: E2 [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: E2 03 00 [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: E2 03 00 AA 1A 00 90 00 38 [08:08:44]RAPDU: 90 00 [08:08:44]wFMCommunicate OK [08:08:44]wFMCommunicate request_size=4 [08:08:44]MH_SAM_APDU [08:08:44]CAPDU: 80 0D 03 02 [08:08:44]Write to MH i2c: E2 08 00 AB 1A 80 0D 03 02 00 00 00 00 40 [08:08:44]Write i2c OK [08:08:44]MH_I2C_Read... [08:08:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:08:44]Read from MH i2c: E2 [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: E2 0B 00 [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: E2 0B 00 AB 1A 00 27 10 05 C4 57 4C FF 87 90 00 6A [08:08:44]RAPDU: 27 10 05 C4 57 4C FF 87 90 00 [08:08:44]wFMCommunicate OK [08:08:44]SAM_PROTO_SignData done [08:08:44]FM_MakeSignedData done [08:08:44]CreateOFDProtocolMessage [08:08:44]wFMCommunicate request_size=4 [08:08:44]MH_SAM_APDU [08:08:44]CAPDU: 80 11 00 00 [08:08:44]Write to MH i2c: E2 08 00 AC 1A 80 11 00 00 00 00 00 00 40 [08:08:44]Write i2c OK [08:08:44]MH_I2C_Read... [08:08:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:44]Read from MH i2c: E2 [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: E2 17 00 [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: E2 17 00 AC 1A 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:08: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:08:44]wFMCommunicate OK [08:08:44]CreateOFDProtocolMessage done [08:08:44]OFDSenderStorePacket 192800 [08:08:44]StoreOFDPacket docnum=192800 [08:08: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 99 38 07 01 7E 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 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 0E 98 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 D3 DC CD 80 00 7C 27 10 05 C4 57 4C FF 87 [08:08:44]CheckFolder [08:08:44]dirname=/storage/ofd_packets [08:08:44]CheckFolder done [08:08:44]ProducePacketName [08:08:44]name=ofd_packets/00192800 [08:08:44]NVStorageSaveData ofd_packets/00192800 [08:08:44]File name is /storage/ofd_packets/00192800 [08:08:44]Write 301 bytes [08:08:44]NVStorageSaveData done [08:08:44]OFDSenderStorePacket done [08:08:44]KKMCreateOFDPacket done [08:08:44]NVStorageSaveData kkm_last_timestamp [08:08:44]File name is /storage/kkm_last_timestamp [08:08:44]Write 4 bytes [08:08:44]NVStorageSaveData done [08:08:44]ExternCall_PrintAddStr [08:08:44]wPrintStart [08:08:44]Write to MH i2c: 01 00 00 AD 1A C7 [08:08:44]Write i2c OK [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: 01 [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: 01 07 00 [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: 01 07 00 AD 1A 00 00 00 00 00 FF 0F DC [08:08:44]RasterBufferAndPrint [08:08:44]line Счет N : (1)32129 [08:08:44]line ИÐÐ: 02508201610067 [08:08:44]line Контрольно-КаÑÑовый Чек [08:08:44]line ПРОДÐЖР[08:08:44]line ТРК (МРК, ГÐК) : 21 [08:08:44]line Товар: 2710124130 [08:08:44]line Ðи-92-К-5 [08:08:44]line 7.480 * 66.90 [08:08:44]line = 500.41 [08:08:44]line ÐДС 12% ÐСП 1% [08:08:44]line > о реализуемом товаре [08:08:44]line ИТОГО: 500.41 [08:08:44]line ÐСП 1% : 4.43 [08:08:44]line ÐДС 12% : 53.14 [08:08:44]line Ðаличными: 0.00 [08:08:44]line Безнал.: 500.41 [08:08:44]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [08:08:44]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [08:08:44]line СÐО: Общий режим [08:08:44]line Чек 6 29.10.2024 08:08 [08:08:44]line Смена: 544 ФФД: 1.0 [08:08:44]line ЗÐМ: 0300000110 [08:08:44]line РÐМ: 0000000000091776 [08:08:44]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [08:08:44]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Кыргызкоммерцбанк [08:08:44]line ФМ: 0000000000871754 [08:08:44]line ФД: 192800 [08:08:44]line ФПД: 232945293983868 [08:08:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T080846&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192800&fm=232945293983868&tin=02508201610067®Number=0000000000091776&sum=50041 [08:08:44]OFD Sender: Processing packet 192800 [packets to send 75, broken 74] [08:08:44]ProducePacketName [08:08:44]name=ofd_packets/00192800 [08:08:44]OFD Sender: To server: ‡•öpG, [08:08:44]CommunicateWithHost lk.salyk.kg:30040 [08:08:44]ConnectInit lk.salyk.kg [08:08:44]written 0, free lines is 4095 [08:08:44]Connected sock=10 [08:08: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 99 38 07 01 7E 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 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 0E 98 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 D3 DC CD 80 00 7C 27 10 05 C4 57 4C FF 87 [08:08: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 6D BB 47 00 83 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 20 F1 02 00 F4 03 04 00 CF 3C 20 67 B6 04 01 00 00 48 30 BB 9C 6C E3 62 D4 [08:08:44]CommunicateWithHost err = 0 [08:08:44]CheckOFDResponse [08:08:44]1017 (14) - 77093643461234 [08:08:44]1041 (16) - 0000000000871754 [08:08:44]1040 (4) - 192800 [08:08:44]1012 (4) - 29.10.2024 01:39 [08:08:44]1206 (1) - 0 [08:08:44]OFD Sender: Remove packet 192800 [08:08:44]ProducePacketName [08:08:44]name=ofd_packets/00192800 [08:08:44]NVStorageDeleteData [08:08:44]Write to MH i2c: 01 00 00 D7 1A F1 [08:08:44]Write i2c OK [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: 01 [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: 01 07 00 [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: 01 07 00 D7 1A 00 00 00 00 00 DD 0C E1 [08:08:44]RasterBufferAndPrint [08:08:44]line [08:08:44]line [08:08:44]line [08:08:44]line [08:08:44]line [08:08:44]written 0, free lines is 3299 [08:08:44]MH_Cut [08:08:44]Write to MH i2c: D1 01 00 DE 1A 01 CA [08:08:44]Write i2c OK [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: D1 [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: D1 01 00 [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: D1 01 00 DE 1A 00 C9 [08:08:44]Write to MH i2c: 01 00 00 DF 1A F9 [08:08:44]Write i2c OK [08:08:44]MH_I2C_Read... [08:08:45]OFD Sender: No OFD packet to send [08:08:45]*** Cut start [08:08:45]*** Partial cut [08:08:45]*** CUTSNS_PIN = 1 [08:08:45]*** CUTSNS_PIN = 0 [08:08:46]*** Brake cut motor [08:08:46]Read from MH i2c: 01 [08:08:46]MH_I2C_Read... [08:08:46]*** Stop cut motor [08:08:46]*** Cut end [08:08:46]Read from MH i2c: 01 07 00 [08:08:46]MH_I2C_Read... [08:08:46]Read from MH i2c: 01 07 00 DF 1A 00 00 00 00 00 FF 0F 0E [08:08:46]process_action close_receipt done [08:08:46]requested_data is exist [08:08:46]produce_requested_data [08:08:46]requested_item fm.sn is exist - process it [08:08:46]wFMCommunicate request_size=4 [08:08:46]MH_SAM_APDU [08:08:46]CAPDU: 80 11 00 00 [08:08:46]Write to MH i2c: E2 08 00 E0 1A 80 11 00 00 00 00 00 00 74 [08:08:46]Write i2c OK [08:08:46]MH_I2C_Read... [08:08:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:46]Read from MH i2c: E2 [08:08:46]MH_I2C_Read... [08:08:46]Read from MH i2c: E2 17 00 [08:08:46]MH_I2C_Read... [08:08:46]Read from MH i2c: E2 17 00 E0 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C7 [08:08:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:08:46]wFMCommunicate OK [08:08:46]requested_item fd.num is exist - process it [08:08:46]SAM_PROTO_GetFieldsCounters [08:08:46]wFMCommunicate request_size=4 [08:08:46]MH_SAM_APDU [08:08:46]CAPDU: 80 13 00 00 [08:08:46]Write to MH i2c: E2 08 00 E1 1A 80 13 00 00 00 00 00 00 77 [08:08:46]Write i2c OK [08:08:46]MH_I2C_Read... [08:08:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:08:46]Read from MH i2c: E2 [08:08:46]MH_I2C_Read... [08:08:46]Read from MH i2c: E2 62 00 [08:08:46]MH_I2C_Read... [08:08:46]Read from MH i2c: E2 62 00 E1 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 F1 02 00 0E 04 04 00 20 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 E4 [08:08: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 20 F1 02 00 0E 04 04 00 20 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 [08:08:46]wFMCommunicate OK [08:08:46]SAM_PROTO_GetFieldsCounters done [08:08:46]requested_item shift.num is exist - process it [08:08:46]requested_item shift.opened is exist - process it [08:08:46]req_shift_opened [08:08:46]FM_GetShiftState [08:08:46]SAM_PROTO_GetShiftState [08:08:46]wFMCommunicate request_size=4 [08:08:46]MH_SAM_APDU [08:08:46]CAPDU: 80 13 01 00 [08:08:46]Write to MH i2c: E2 08 00 E2 1A 80 13 01 00 00 00 00 00 79 [08:08:46]Write i2c OK [08:08:46]MH_I2C_Read... [08:08:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:46]Read from MH i2c: E2 [08:08:46]MH_I2C_Read... [08:08:46]Read from MH i2c: E2 0E 00 [08:08:46]MH_I2C_Read... [08:08:46]Read from MH i2c: E2 0E 00 E2 1A 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 7F [08:08:46]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [08:08:46]wFMCommunicate OK [08:08:46]SAM_PROTO_GetShiftState done [08:08:46]FM_GetShiftState done [08:08:46]req_shift_opened done [08:08:46]requested_item shift.open_date is exist - process it [08:08:46]req_shift_open_date [08:08:46]req_shift_open_date done [08:08:46]produce_requested_data done [08:08:46]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192800,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [08:08:46]process_action_free close_receipt [08:08:46]json_value_free [08:08:46]json_value_free done [08:08:46]process_json_proto returns [08:08:46]Send response to host [08:08:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192800,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [08:08:46]free response buf [08:08:46]execute_script done [08:08:46]execute_script returns [08:08:46]free content buf [08:08:46]Sock 9.Close socket [08:08:46]Sock 9.Thread stoped [08:08:50]OFD Sender: No OFD packet to send [08:08:55]OFD Sender: No OFD packet to send [08:09:00]OFD Sender: No OFD packet to send [08:09:05]OFD Sender: No OFD packet to send [08:09:10]OFD Sender: No OFD packet to send [08:09:15]OFD Sender: No OFD packet to send [08:09:20]OFD Sender: No OFD packet to send [08:09:25]OFD Sender: No OFD packet to send [08:09:30]OFD Sender: No OFD packet to send [08:09:35]OFD Sender: No OFD packet to send [08:09:40]OFD Sender: No OFD packet to send [08:09:45]OFD Sender: No OFD packet to send [08:09:50]OFD Sender: No OFD packet to send [08:09:55]OFD Sender: No OFD packet to send [08:10:00]OFD Sender: No OFD packet to send [08:10:05]OFD Sender: No OFD packet to send [08:10:10]OFD Sender: No OFD packet to send [08:10:15]OFD Sender: No OFD packet to send [08:10:20]OFD Sender: No OFD packet to send [08:10:25]OFD Sender: No OFD packet to send [08:10:30]OFD Sender: No OFD packet to send [08:10:35]OFD Sender: No OFD packet to send [08:10:40]OFD Sender: No OFD packet to send [08:10:45]OFD Sender: No OFD packet to send [08:10:50]OFD Sender: No OFD packet to send [08:10:55]OFD Sender: No OFD packet to send [08:11:00]OFD Sender: No OFD packet to send [08:11:03]accept exits with 8 [08:11:03]New connection [08:11:03]New thread 3066658148 created [08:11:03]Thread 3066801508 joined [08:11:03]Waiting for new connection... [08:11:03] Sock 8.Parse request [08:11:03]Sock 8.Check first char [08:11:03]Sock 8.First char is OK [08:11:03]request: POST /json_proto HTTP/1.0 [08:11:03]Method: POST [08:11:03]URL: /json_proto [08:11:03]Method is POST - this is cgi request [08:11:03]url: /json_proto [08:11:03]query_string will be loaded in cgi processing [08:11:03]execute_cgi json_proto POST (null) [08:11:03]execute_cgi path=json_proto method=POST [08:11:03]POST find Content-Length [08:11:03]Host: 172.17.63.131:8080 [08:11:03]Content-Length: 676 [08:11:03]Content-Type: application/json [08:11:03] [08:11:03]POST finish read [08:11:03]Found Content-Length = 676 [08:11:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32130", "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" ] } } [08:11:03]execute_script... [08:11: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)32130", "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" ] } } [08:11:03]POST & json_proto [08:11:03]process_json_proto [08:11:03]json parsed OK: [08:11:03]protocol is kg_v1.0 [08:11:03]action value=close_receipt [08:11:03]process_action close_receipt [08:11:03]cmd_close_receipt [08:11:03]MH_GetDate [08:11:03]Write to MH i2c: F0 00 00 E3 1A EC [08:11:03]Write i2c OK [08:11:03]MH_I2C_Read... [08:11:03]Read from MH i2c: F0 [08:11:03]MH_I2C_Read... [08:11:03]Read from MH i2c: F0 09 00 [08:11:03]MH_I2C_Read... [08:11:03]Read from MH i2c: F0 09 00 E3 1A 00 9B 98 20 67 22 05 6E 64 A8 [08:11:03]GetLastDocTimeStamp 1730189326 [08:11:03]current date 1730189467 [08:11:03]FM_GetShiftState [08:11:03]SAM_PROTO_GetShiftState [08:11:03]wFMCommunicate request_size=4 [08:11:03]MH_SAM_APDU [08:11:03]CAPDU: 80 13 01 00 [08:11:03]Write to MH i2c: E2 08 00 E4 1A 80 13 01 00 00 00 00 00 7B [08:11:03]Write i2c OK [08:11:03]MH_I2C_Read... [08:11:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:03]Read from MH i2c: E2 [08:11:03]MH_I2C_Read... [08:11:03]Read from MH i2c: E2 0E 00 [08:11:03]MH_I2C_Read... [08:11:03]Read from MH i2c: E2 0E 00 E4 1A 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 81 [08:11:03]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [08:11:03]wFMCommunicate OK [08:11:03]SAM_PROTO_GetShiftState done [08:11:03]FM_GetShiftState done [08:11:03]opened in 1730161990 [08:11:03]opened+sec_in_day 1730248390 [08:11:03]quantity*price = 40006 [08:11:03]sum+1 = 40007 [08:11:03]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 СÐО: Общий режим Чек 7 29.10.2024 08:11 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192801 ФПД: 188895465957842 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T081107&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192801&fm=188895465957842&tin=02508201610067®Number=0000000000091776&sum=40000 [08:11:04]StoreToDocumentArchive [08:11:04]shift 544 fd 192801 [08:11:04]save to /storage/0544/doc_00192801 [08:11:04]save last doc name /storage/0544/doc_00192801 to /storage/kkm_last_doc_name [08:11:04]save OK [08:11:04]Clear old archive folders... [08:11:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:11:04]tlvbuf is B6E831B0 [08:11:04]SAM_PROTO_ClearQueue [08:11:04]wFMCommunicate request_size=4 [08:11:04]MH_SAM_APDU [08:11:04]CAPDU: 80 09 00 00 [08:11:04]Write to MH i2c: E2 08 00 F1 1A 80 09 00 00 00 00 00 00 7D [08:11:04]Write i2c OK [08:11:04]MH_I2C_Read... [08:11:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:11:04]Read from MH i2c: E2 [08:11:04]MH_I2C_Read... [08:11:04]Read from MH i2c: E2 03 00 [08:11:04]MH_I2C_Read... [08:11:04]Read from MH i2c: E2 03 00 F1 1A 00 90 00 7F [08:11:04]RAPDU: 90 00 [08:11:04]wFMCommunicate OK [08:11:04]SAM_PROTO_ClearQueue done [08:11:04]KKMCreateOFDPacket [08:11:04]OFDProtocolAddRootSTLVToBuf [08:11:04]FM_MakeSignedData [08:11:04]FM_MakeSignedData [08:11:04]SAM_PROTO_SignData [08:11:04]wFMCommunicate request_size=4 [08:11:04]MH_SAM_APDU [08:11:04]CAPDU: 80 0D 01 02 [08:11:04]Write to MH i2c: E2 08 00 F2 1A 80 0D 01 02 00 00 00 00 85 [08:11:04]Write i2c OK [08:11:04]MH_I2C_Read... [08:11:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:11:04]Read from MH i2c: E2 [08:11:04]MH_I2C_Read... [08:11:04]Read from MH i2c: E2 03 00 [08:11:04]MH_I2C_Read... [08:11:04]Read from MH i2c: E2 03 00 F2 1A 00 90 00 80 [08:11:04]RAPDU: 90 00 [08:11:04]wFMCommunicate OK [08:11:04]wFMCommunicate request_size=255 [08:11:04]MH_SAM_APDU [08:11: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 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 07 00 00 00 F4 03 04 00 9B 98 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 AB [08:11:04]Write to MH i2c: E2 02 01 F3 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 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 07 00 00 00 F4 03 04 00 9B 98 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 AB 00 00 8A [08:11:04]Write i2c OK [08:11:04]MH_I2C_Read... [08:11:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:05]Read from MH i2c: E2 [08:11:05]MH_I2C_Read... [08:11:05]Read from MH i2c: E2 03 00 [08:11:05]MH_I2C_Read... [08:11:05]Read from MH i2c: E2 03 00 F3 1A 00 90 00 81 [08:11:05]RAPDU: 90 00 [08:11:05]wFMCommunicate OK [08:11:05]wFMCommunicate request_size=10 [08:11:05]MH_SAM_APDU [08:11:05]CAPDU: 80 0D 02 02 05 CC A7 25 E9 D2 [08:11:05]Write to MH i2c: E2 0D 00 F4 1A 80 0D 02 02 05 00 CC A7 25 E9 D2 00 00 E5 [08:11:05]Write i2c OK [08:11:05]MH_I2C_Read... [08:11:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:05]Read from MH i2c: E2 [08:11:05]MH_I2C_Read... [08:11:05]Read from MH i2c: E2 03 00 [08:11:05]MH_I2C_Read... [08:11:05]Read from MH i2c: E2 03 00 F4 1A 00 90 00 82 [08:11:05]RAPDU: 90 00 [08:11:05]wFMCommunicate OK [08:11:05]wFMCommunicate request_size=4 [08:11:05]MH_SAM_APDU [08:11:05]CAPDU: 80 0D 03 02 [08:11:05]Write to MH i2c: E2 08 00 F5 1A 80 0D 03 02 00 00 00 00 8A [08:11:05]Write i2c OK [08:11:05]MH_I2C_Read... [08:11:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:11:05]Read from MH i2c: E2 [08:11:05]MH_I2C_Read... [08:11:05]Read from MH i2c: E2 0B 00 [08:11:05]MH_I2C_Read... [08:11:05]Read from MH i2c: E2 0B 00 F5 1A 00 63 06 7C 0E 86 7E A3 6B 90 00 90 [08:11:05]RAPDU: 63 06 7C 0E 86 7E A3 6B 90 00 [08:11:05]wFMCommunicate OK [08:11:05]SAM_PROTO_SignData done [08:11:05]FM_MakeSignedData done [08:11:05]CreateOFDProtocolMessage [08:11:05]wFMCommunicate request_size=4 [08:11:05]MH_SAM_APDU [08:11:05]CAPDU: 80 11 00 00 [08:11:05]Write to MH i2c: E2 08 00 F6 1A 80 11 00 00 00 00 00 00 8A [08:11:05]Write i2c OK [08:11:05]MH_I2C_Read... [08:11:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:05]Read from MH i2c: E2 [08:11:05]MH_I2C_Read... [08:11:05]Read from MH i2c: E2 17 00 [08:11:05]MH_I2C_Read... [08:11:05]Read from MH i2c: E2 17 00 F6 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DD [08:11: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:11:05]wFMCommunicate OK [08:11:05]CreateOFDProtocolMessage done [08:11:05]OFDSenderStorePacket 192801 [08:11:05]StoreOFDPacket docnum=192801 [08:11: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 96 D0 07 01 13 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 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 07 00 00 00 F4 03 04 00 9B 98 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 AB CC A7 25 E9 D2 63 06 7C 0E 86 7E A3 6B [08:11:05]CheckFolder [08:11:05]dirname=/storage/ofd_packets [08:11:05]CheckFolder done [08:11:05]ProducePacketName [08:11:05]name=ofd_packets/00192801 [08:11:05]NVStorageSaveData ofd_packets/00192801 [08:11:05]File name is /storage/ofd_packets/00192801 [08:11:05]Write 301 bytes [08:11:05]NVStorageSaveData done [08:11:05]OFDSenderStorePacket done [08:11:05]KKMCreateOFDPacket done [08:11:05]NVStorageSaveData kkm_last_timestamp [08:11:05]File name is /storage/kkm_last_timestamp [08:11:05]Write 4 bytes [08:11:05]NVStorageSaveData done [08:11:05]ExternCall_PrintAddStr [08:11:05]wPrintStart [08:11:05]Write to MH i2c: 01 00 00 F7 1A 11 [08:11:05]Write i2c OK [08:11:05]MH_I2C_Read... [08:11:05]Read from MH i2c: 01 [08:11:05]MH_I2C_Read... [08:11:05]Read from MH i2c: 01 07 00 [08:11:05]MH_I2C_Read... [08:11:05]Read from MH i2c: 01 07 00 F7 1A 00 00 00 00 00 FF 0F 26 [08:11:05]RasterBufferAndPrint [08:11:05]line Счет N : (1)32130 [08:11:05]line ИÐÐ: 02508201610067 [08:11:05]line Контрольно-КаÑÑовый Чек [08:11:05]line ПРОДÐЖР[08:11:05]line ТРК (МРК, ГÐК) : 12 [08:11:05]line Товар: 2710124130 [08:11:05]line Ðи-92-К-5 [08:11:05]line 5.980 * 66.90 [08:11:05]line = 400.06 [08:11:05]line ÐДС 12% ÐСП 1% [08:11:05]line > о реализуемом товаре [08:11:05]line ОКРУГЛЕÐИЕ: -0.06 [08:11:05]line ИТОГО: 400.00 [08:11:05]line ВнеÑено: 400.00 [08:11:05]line СДÐЧÐ: 0.00 [08:11:05]line ÐСП 1% : 3.54 [08:11:05]line ÐДС 12% : 42.48 [08:11:05]line Ðаличными: 400.00 [08:11:05]line Безнал.: 0.00 [08:11:05]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [08:11:05]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [08:11:05]line СÐО: Общий режим [08:11:05]line Чек 7 29.10.2024 08:11 [08:11:05]line Смена: 544 ФФД: 1.0 [08:11:05]line ЗÐМ: 0300000110 [08:11:05]line РÐМ: 0000000000091776 [08:11:05]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [08:11:05]line ФМ: 0000000000871754 [08:11:05]line ФД: 192801 [08:11:05]line ФПД: 188895465957842 [08:11:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T081107&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192801&fm=188895465957842&tin=02508201610067®Number=0000000000091776&sum=40000 [08:11:05]OFD Sender: Processing packet 192801 [packets to send 75, broken 74] [08:11:05]ProducePacketName [08:11:05]name=ofd_packets/00192801 [08:11:05]OFD Sender: To server: ‡•öpG, [08:11:05]CommunicateWithHost lk.salyk.kg:30040 [08:11:05]ConnectInit lk.salyk.kg [08:11:05]written 0, free lines is 4095 [08:11:05]Connected sock=10 [08:11: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 96 D0 07 01 13 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 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 07 00 00 00 F4 03 04 00 9B 98 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 AB CC A7 25 E9 D2 63 06 7C 0E 86 7E A3 6B [08:11: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 65 10 47 00 13 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 F1 02 00 F4 03 04 00 5C 3D 20 67 B6 04 01 00 00 EB 45 60 3A 51 FD E7 7C [08:11:05]CommunicateWithHost err = 0 [08:11:05]CheckOFDResponse [08:11:05]1017 (14) - 77093643461234 [08:11:05]1041 (16) - 0000000000871754 [08:11:05]1040 (4) - 192801 [08:11:05]1012 (4) - 29.10.2024 01:41 [08:11:05]1206 (1) - 0 [08:11:05]OFD Sender: Remove packet 192801 [08:11:05]ProducePacketName [08:11:05]name=ofd_packets/00192801 [08:11:05]NVStorageDeleteData [08:11:06]Write to MH i2c: 01 00 00 22 1B 3D [08:11:06]Write i2c OK [08:11:06]MH_I2C_Read... [08:11:06]Read from MH i2c: 01 [08:11:06]MH_I2C_Read... [08:11:06]Read from MH i2c: 01 07 00 [08:11:06]MH_I2C_Read... [08:11:06]Read from MH i2c: 01 07 00 22 1B 00 00 00 00 00 BF 0C 0F [08:11:06]RasterBufferAndPrint [08:11:06]line [08:11:06]line [08:11:06]line [08:11:06]line [08:11:06]line [08:11:06]written 0, free lines is 3272 [08:11:06]MH_Cut [08:11:06]Write to MH i2c: D1 01 00 29 1B 01 16 [08:11:06]Write i2c OK [08:11:06]MH_I2C_Read... [08:11:06]Read from MH i2c: D1 [08:11:06]MH_I2C_Read... [08:11:06]Read from MH i2c: D1 01 00 [08:11:06]MH_I2C_Read... [08:11:06]Read from MH i2c: D1 01 00 29 1B 00 15 [08:11:06]Write to MH i2c: 01 00 00 2A 1B 45 [08:11:06]Write i2c OK [08:11:06]MH_I2C_Read... [08:11:06]OFD Sender: No OFD packet to send [08:11:06]*** Cut start [08:11:06]*** Partial cut [08:11:06]*** CUTSNS_PIN = 1 [08:11:06]*** CUTSNS_PIN = 0 [08:11:07]*** Brake cut motor [08:11:07]Read from MH i2c: 01 [08:11:07]MH_I2C_Read... [08:11:07]*** Stop cut motor [08:11:07]*** Cut end [08:11:07]Read from MH i2c: 01 07 00 [08:11:07]MH_I2C_Read... [08:11:07]Read from MH i2c: 01 07 00 2A 1B 00 00 00 00 00 FF 0F 5A [08:11:07]process_action close_receipt done [08:11:07]requested_data is exist [08:11:07]produce_requested_data [08:11:07]requested_item fm.sn is exist - process it [08:11:07]wFMCommunicate request_size=4 [08:11:07]MH_SAM_APDU [08:11:07]CAPDU: 80 11 00 00 [08:11:07]Write to MH i2c: E2 08 00 2B 1B 80 11 00 00 00 00 00 00 C0 [08:11:07]Write i2c OK [08:11:07]MH_I2C_Read... [08:11:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:07]Read from MH i2c: E2 [08:11:07]MH_I2C_Read... [08:11:07]Read from MH i2c: E2 17 00 [08:11:07]MH_I2C_Read... [08:11:07]Read from MH i2c: E2 17 00 2B 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 13 [08:11: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:11:07]wFMCommunicate OK [08:11:07]requested_item fd.num is exist - process it [08:11:07]SAM_PROTO_GetFieldsCounters [08:11:07]wFMCommunicate request_size=4 [08:11:07]MH_SAM_APDU [08:11:07]CAPDU: 80 13 00 00 [08:11:07]Write to MH i2c: E2 08 00 2C 1B 80 13 00 00 00 00 00 00 C3 [08:11:07]Write i2c OK [08:11:07]MH_I2C_Read... [08:11:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:11:07]Read from MH i2c: E2 [08:11:07]MH_I2C_Read... [08:11:07]Read from MH i2c: E2 62 00 [08:11:07]MH_I2C_Read... [08:11:07]Read from MH i2c: E2 62 00 2C 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 21 F1 02 00 0E 04 04 00 20 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 34 [08:11: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 21 F1 02 00 0E 04 04 00 20 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 [08:11:07]wFMCommunicate OK [08:11:07]SAM_PROTO_GetFieldsCounters done [08:11:07]requested_item shift.num is exist - process it [08:11:07]requested_item shift.opened is exist - process it [08:11:07]req_shift_opened [08:11:07]FM_GetShiftState [08:11:07]SAM_PROTO_GetShiftState [08:11:07]wFMCommunicate request_size=4 [08:11:07]MH_SAM_APDU [08:11:07]CAPDU: 80 13 01 00 [08:11:07]Write to MH i2c: E2 08 00 2D 1B 80 13 01 00 00 00 00 00 C5 [08:11:07]Write i2c OK [08:11:07]MH_I2C_Read... [08:11:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:07]Read from MH i2c: E2 [08:11:07]MH_I2C_Read... [08:11:07]Read from MH i2c: E2 0E 00 [08:11:07]MH_I2C_Read... [08:11:07]Read from MH i2c: E2 0E 00 2D 1B 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 CB [08:11:07]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [08:11:07]wFMCommunicate OK [08:11:07]SAM_PROTO_GetShiftState done [08:11:07]FM_GetShiftState done [08:11:07]req_shift_opened done [08:11:07]requested_item shift.open_date is exist - process it [08:11:07]req_shift_open_date [08:11:07]req_shift_open_date done [08:11:07]produce_requested_data done [08:11:07]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192801,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [08:11:07]process_action_free close_receipt [08:11:07]json_value_free [08:11:07]json_value_free done [08:11:07]process_json_proto returns [08:11:07]Send response to host [08:11:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192801,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [08:11:07]free response buf [08:11:07]execute_script done [08:11:07]execute_script returns [08:11:07]free content buf [08:11:07]Sock 8.Close socket [08:11:07]Sock 8.Thread stoped [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:16]OFD Sender: No OFD packet to send [08:14:21]OFD Sender: No OFD packet to send [08:14:26]OFD Sender: No OFD packet to send [08:14:31]OFD Sender: No OFD packet to send [08:14:36]OFD Sender: No OFD packet to send [08:14:41]OFD Sender: No OFD packet to send [08:14:46]OFD Sender: No OFD packet to send [08:14:51]OFD Sender: No OFD packet to send [08:14:56]OFD Sender: No OFD packet to send [08:15:01]OFD Sender: No OFD packet to send [08:15:06]OFD Sender: No OFD packet to send [08:15:11]OFD Sender: No OFD packet to send [08:15:16]OFD Sender: No OFD packet to send [08:15:21]OFD Sender: No OFD packet to send [08:15:26]OFD Sender: No OFD packet to send [08:15:31]OFD Sender: No OFD packet to send [08:15:36]OFD Sender: No OFD packet to send [08:15:41]OFD Sender: No OFD packet to send [08:15:46]OFD Sender: No OFD packet to send [08:15:51]OFD Sender: No OFD packet to send [08:15:56]OFD Sender: No OFD packet to send [08:16:01]OFD Sender: No OFD packet to send [08:16:06]OFD Sender: No OFD packet to send [08:16:11]OFD Sender: No OFD packet to send [08:16:16]OFD Sender: No OFD packet to send [08:16:21]OFD Sender: No OFD packet to send [08:16:26]OFD Sender: No OFD packet to send [08:16:31]OFD Sender: No OFD packet to send [08:16:36]OFD Sender: No OFD packet to send [08:16:41]OFD Sender: No OFD packet to send [08:16:46]OFD Sender: No OFD packet to send [08:16:51]OFD Sender: No OFD packet to send [08:16:56]OFD Sender: No OFD packet to send [08:17:01]OFD Sender: No OFD packet to send [08:17:06]OFD Sender: No OFD packet to send [08:17:11]OFD Sender: No OFD packet to send [08:17:16]OFD Sender: No OFD packet to send [08:17:21]OFD Sender: No OFD packet to send [08:17:26]OFD Sender: No OFD packet to send [08:17:31]OFD Sender: No OFD packet to send [08:17:36]OFD Sender: No OFD packet to send [08:17:41]OFD Sender: No OFD packet to send [08:17:46]OFD Sender: No OFD packet to send [08:17:51]OFD Sender: No OFD packet to send [08:17:56]OFD Sender: No OFD packet to send [08:18:01]OFD Sender: No OFD packet to send [08:18:06]OFD Sender: No OFD packet to send [08:18:11]OFD Sender: No OFD packet to send [08:18:16]OFD Sender: No OFD packet to send [08:18:21]OFD Sender: No OFD packet to send [08:18:26]OFD Sender: No OFD packet to send [08:18:31]OFD Sender: No OFD packet to send [08:18:36]OFD Sender: No OFD packet to send [08:18:41]OFD Sender: No OFD packet to send [08:18:46]OFD Sender: No OFD packet to send [08:18:51]OFD Sender: No OFD packet to send [08:18:56]OFD Sender: No OFD packet to send [08:19:01]OFD Sender: No OFD packet to send [08:19:06]OFD Sender: No OFD packet to send [08:19:11]OFD Sender: No OFD packet to send [08:19:16]OFD Sender: No OFD packet to send [08:19:21]OFD Sender: No OFD packet to send [08:19:26]OFD Sender: No OFD packet to send [08:19:30]accept exits with 9 [08:19:30]New connection [08:19:30]New thread 3066801508 created [08:19:30]Thread 3066658148 joined [08:19:30]Waiting for new connection... [08:19:30] Sock 9.Parse request [08:19:30]Sock 9.Check first char [08:19:30]Sock 9.First char is OK [08:19:30]request: POST /json_proto HTTP/1.0 [08:19:30]Method: POST [08:19:30]URL: /json_proto [08:19:30]Method is POST - this is cgi request [08:19:30]url: /json_proto [08:19:30]query_string will be loaded in cgi processing [08:19:30]execute_cgi json_proto POST (null) [08:19:30]execute_cgi path=json_proto method=POST [08:19:30]POST find Content-Length [08:19:30]Host: 172.17.63.131:8080 [08:19:30]Content-Length: 676 [08:19:30]Content-Type: application/json [08:19:30] [08:19:30]POST finish read [08:19:30]Found Content-Length = 676 [08:19:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32131", "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" ] } } [08:19:30]execute_script... [08:19:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32131", "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" ] } } [08:19:30]POST & json_proto [08:19:30]process_json_proto [08:19:30]json parsed OK: [08:19:30]protocol is kg_v1.0 [08:19:30]action value=close_receipt [08:19:30]process_action close_receipt [08:19:30]cmd_close_receipt [08:19:30]MH_GetDate [08:19:30]Write to MH i2c: F0 00 00 2E 1B 38 [08:19:30]Write i2c OK [08:19:30]MH_I2C_Read... [08:19:30]Read from MH i2c: F0 [08:19:30]MH_I2C_Read... [08:19:30]Read from MH i2c: F0 09 00 [08:19:30]MH_I2C_Read... [08:19:30]Read from MH i2c: F0 09 00 2E 1B 00 95 9A 20 67 22 05 6E 64 F0 [08:19:30]GetLastDocTimeStamp 1730189467 [08:19:30]current date 1730189973 [08:19:30]FM_GetShiftState [08:19:30]SAM_PROTO_GetShiftState [08:19:30]wFMCommunicate request_size=4 [08:19:30]MH_SAM_APDU [08:19:30]CAPDU: 80 13 01 00 [08:19:30]Write to MH i2c: E2 08 00 2F 1B 80 13 01 00 00 00 00 00 C7 [08:19:30]Write i2c OK [08:19:30]MH_I2C_Read... [08:19:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:30]Read from MH i2c: E2 [08:19:30]MH_I2C_Read... [08:19:30]Read from MH i2c: E2 0E 00 [08:19:30]MH_I2C_Read... [08:19:30]Read from MH i2c: E2 0E 00 2F 1B 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 CD [08:19:30]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [08:19:30]wFMCommunicate OK [08:19:30]SAM_PROTO_GetShiftState done [08:19:30]FM_GetShiftState done [08:19:30]opened in 1730161990 [08:19:30]opened+sec_in_day 1730248390 [08:19:30]quantity*price = 40006 [08:19:30]sum+1 = 40007 [08:19:30]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 СÐО: Общий режим Чек 8 29.10.2024 08:19 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192802 ФПД: 71752476106819 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T081933&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192802&fm=71752476106819&tin=02508201610067®Number=0000000000091776&sum=40000 [08:19:31]StoreToDocumentArchive [08:19:31]shift 544 fd 192802 [08:19:31]save to /storage/0544/doc_00192802 [08:19:31]save last doc name /storage/0544/doc_00192802 to /storage/kkm_last_doc_name [08:19:31]save OK [08:19:31]Clear old archive folders... [08:19:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:19:31]tlvbuf is B6E83180 [08:19:31]SAM_PROTO_ClearQueue [08:19:31]wFMCommunicate request_size=4 [08:19:31]MH_SAM_APDU [08:19:31]CAPDU: 80 09 00 00 [08:19:31]Write to MH i2c: E2 08 00 3C 1B 80 09 00 00 00 00 00 00 C9 [08:19:31]Write i2c OK [08:19:31]MH_I2C_Read... [08:19:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:19:31]Read from MH i2c: E2 [08:19:31]MH_I2C_Read... [08:19:31]Read from MH i2c: E2 03 00 [08:19:31]MH_I2C_Read... [08:19:31]Read from MH i2c: E2 03 00 3C 1B 00 90 00 CB [08:19:31]RAPDU: 90 00 [08:19:31]wFMCommunicate OK [08:19:31]SAM_PROTO_ClearQueue done [08:19:31]KKMCreateOFDPacket [08:19:31]OFDProtocolAddRootSTLVToBuf [08:19:31]FM_MakeSignedData [08:19:31]FM_MakeSignedData [08:19:31]SAM_PROTO_SignData [08:19:31]wFMCommunicate request_size=4 [08:19:31]MH_SAM_APDU [08:19:31]CAPDU: 80 0D 01 02 [08:19:31]Write to MH i2c: E2 08 00 3D 1B 80 0D 01 02 00 00 00 00 D1 [08:19:31]Write i2c OK [08:19:31]MH_I2C_Read... [08:19:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:19:31]Read from MH i2c: E2 [08:19:31]MH_I2C_Read... [08:19:31]Read from MH i2c: E2 03 00 [08:19:31]MH_I2C_Read... [08:19:31]Read from MH i2c: E2 03 00 3D 1B 00 90 00 CC [08:19:31]RAPDU: 90 00 [08:19:31]wFMCommunicate OK [08:19:31]wFMCommunicate request_size=255 [08:19:31]MH_SAM_APDU [08:19:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 00 00 00 F4 03 04 00 95 9A 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 41 [08:19:31]Write to MH i2c: E2 02 01 3E 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 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 00 00 00 F4 03 04 00 95 9A 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 41 00 00 6A [08:19:31]Write i2c OK [08:19:31]MH_I2C_Read... [08:19:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:31]Read from MH i2c: E2 [08:19:31]MH_I2C_Read... [08:19:31]Read from MH i2c: E2 03 00 [08:19:31]MH_I2C_Read... [08:19:31]Read from MH i2c: E2 03 00 3E 1B 00 90 00 CD [08:19:31]RAPDU: 90 00 [08:19:31]wFMCommunicate OK [08:19:31]wFMCommunicate request_size=10 [08:19:31]MH_SAM_APDU [08:19:31]CAPDU: 80 0D 02 02 05 42 2C D9 A0 43 [08:19:31]Write to MH i2c: E2 0D 00 3F 1B 80 0D 02 02 05 00 42 2C D9 A0 43 00 00 08 [08:19:31]Write i2c OK [08:19:31]MH_I2C_Read... [08:19:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:31]Read from MH i2c: E2 [08:19:31]MH_I2C_Read... [08:19:31]Read from MH i2c: E2 03 00 [08:19:31]MH_I2C_Read... [08:19:31]Read from MH i2c: E2 03 00 3F 1B 00 90 00 CE [08:19:31]RAPDU: 90 00 [08:19:31]wFMCommunicate OK [08:19:31]wFMCommunicate request_size=4 [08:19:31]MH_SAM_APDU [08:19:31]CAPDU: 80 0D 03 02 [08:19:31]Write to MH i2c: E2 08 00 40 1B 80 0D 03 02 00 00 00 00 D6 [08:19:31]Write i2c OK [08:19:31]MH_I2C_Read... [08:19:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:19:31]Read from MH i2c: E2 [08:19:31]MH_I2C_Read... [08:19:31]Read from MH i2c: E2 0B 00 [08:19:31]MH_I2C_Read... [08:19:31]Read from MH i2c: E2 0B 00 40 1B 00 02 54 D2 86 C7 AB A3 AC 90 00 46 [08:19:31]RAPDU: 02 54 D2 86 C7 AB A3 AC 90 00 [08:19:31]wFMCommunicate OK [08:19:31]SAM_PROTO_SignData done [08:19:31]FM_MakeSignedData done [08:19:31]CreateOFDProtocolMessage [08:19:31]wFMCommunicate request_size=4 [08:19:31]MH_SAM_APDU [08:19:31]CAPDU: 80 11 00 00 [08:19:31]Write to MH i2c: E2 08 00 41 1B 80 11 00 00 00 00 00 00 D6 [08:19:31]Write i2c OK [08:19:31]MH_I2C_Read... [08:19:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:31]Read from MH i2c: E2 [08:19:31]MH_I2C_Read... [08:19:31]Read from MH i2c: E2 17 00 [08:19:31]MH_I2C_Read... [08:19:31]Read from MH i2c: E2 17 00 41 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 29 [08:19:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:19:31]wFMCommunicate OK [08:19:31]CreateOFDProtocolMessage done [08:19:31]OFDSenderStorePacket 192802 [08:19:31]StoreOFDPacket docnum=192802 [08:19: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 52 C0 07 01 21 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 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 00 00 00 F4 03 04 00 95 9A 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 41 42 2C D9 A0 43 02 54 D2 86 C7 AB A3 AC [08:19:31]CheckFolder [08:19:31]dirname=/storage/ofd_packets [08:19:31]CheckFolder done [08:19:31]ProducePacketName [08:19:31]name=ofd_packets/00192802 [08:19:31]NVStorageSaveData ofd_packets/00192802 [08:19:31]File name is /storage/ofd_packets/00192802 [08:19:31]Write 301 bytes [08:19:31]NVStorageSaveData done [08:19:31]OFDSenderStorePacket done [08:19:31]KKMCreateOFDPacket done [08:19:31]NVStorageSaveData kkm_last_timestamp [08:19:31]File name is /storage/kkm_last_timestamp [08:19:31]Write 4 bytes [08:19:31]NVStorageSaveData done [08:19:31]ExternCall_PrintAddStr [08:19:31]wPrintStart [08:19:31]Write to MH i2c: 01 00 00 42 1B 5D [08:19:31]Write i2c OK [08:19:31]MH_I2C_Read... [08:19:31]Read from MH i2c: 01 [08:19:31]MH_I2C_Read... [08:19:31]Read from MH i2c: 01 07 00 [08:19:31]MH_I2C_Read... [08:19:31]Read from MH i2c: 01 07 00 42 1B 00 00 00 00 00 FF 0F 72 [08:19:31]RasterBufferAndPrint [08:19:31]line Счет N : (1)32131 [08:19:31]line ИÐÐ: 02508201610067 [08:19:31]line Контрольно-КаÑÑовый Чек [08:19:31]line ПРОДÐЖР[08:19:31]line ТРК (МРК, ГÐК) : 12 [08:19:31]line Товар: 2710124130 [08:19:31]line Ðи-92-К-5 [08:19:31]line 5.980 * 66.90 [08:19:31]line = 400.06 [08:19:31]line ÐДС 12% ÐСП 1% [08:19:31]line > о реализуемом товаре [08:19:31]line ОКРУГЛЕÐИЕ: -0.06 [08:19:31]line ИТОГО: 400.00 [08:19:31]line ВнеÑено: 400.00 [08:19:31]line СДÐЧÐ: 0.00 [08:19:31]line ÐСП 1% : 3.54 [08:19:31]line ÐДС 12% : 42.48 [08:19:31]line Ðаличными: 400.00 [08:19:31]line Безнал.: 0.00 [08:19:31]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [08:19:31]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [08:19:31]line СÐО: Общий режим [08:19:31]line Чек 8 29.10.2024 08:19 [08:19:31]line Смена: 544 ФФД: 1.0 [08:19:31]line ЗÐМ: 0300000110 [08:19:31]line РÐМ: 0000000000091776 [08:19:31]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [08:19:31]line ФМ: 0000000000871754 [08:19:31]line ФД: 192802 [08:19:31]line ФПД: 71752476106819 [08:19:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T081933&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192802&fm=71752476106819&tin=02508201610067®Number=0000000000091776&sum=40000 [08:19:32]OFD Sender: Processing packet 192802 [packets to send 75, broken 74] [08:19:32]ProducePacketName [08:19:32]name=ofd_packets/00192802 [08:19:32]OFD Sender: To server: ‡•öpG, [08:19:32]CommunicateWithHost lk.salyk.kg:30040 [08:19:32]ConnectInit lk.salyk.kg [08:19:32]written 0, free lines is 4095 [08:19:32]Connected sock=10 [08:19:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 52 C0 07 01 21 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 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 00 00 00 F4 03 04 00 95 9A 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 41 42 2C D9 A0 43 02 54 D2 86 C7 AB A3 AC [08:19: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 E9 F6 47 00 FD 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 22 F1 02 00 F4 03 04 00 57 3F 20 67 B6 04 01 00 00 AB D1 6C 5E 2C 51 45 E7 [08:19:32]CommunicateWithHost err = 0 [08:19:32]CheckOFDResponse [08:19:32]1017 (14) - 77093643461234 [08:19:32]1041 (16) - 0000000000871754 [08:19:32]1040 (4) - 192802 [08:19:32]1012 (4) - 29.10.2024 01:50 [08:19:32]1206 (1) - 0 [08:19:32]OFD Sender: Remove packet 192802 [08:19:32]ProducePacketName [08:19:32]name=ofd_packets/00192802 [08:19:32]NVStorageDeleteData [08:19:32]Write to MH i2c: 01 00 00 6D 1B 88 [08:19:32]Write i2c OK [08:19:32]MH_I2C_Read... [08:19:32]Read from MH i2c: 01 [08:19:32]MH_I2C_Read... [08:19:32]Read from MH i2c: 01 07 00 [08:19:32]MH_I2C_Read... [08:19:32]Read from MH i2c: 01 07 00 6D 1B 00 00 00 00 00 BF 0C 5A [08:19:32]RasterBufferAndPrint [08:19:32]line [08:19:32]line [08:19:32]line [08:19:32]line [08:19:32]line [08:19:32]written 0, free lines is 3272 [08:19:32]MH_Cut [08:19:32]Write to MH i2c: D1 01 00 74 1B 01 61 [08:19:32]Write i2c OK [08:19:32]MH_I2C_Read... [08:19:32]Read from MH i2c: D1 [08:19:32]MH_I2C_Read... [08:19:32]Read from MH i2c: D1 01 00 [08:19:32]MH_I2C_Read... [08:19:32]Read from MH i2c: D1 01 00 74 1B 00 60 [08:19:32]Write to MH i2c: 01 00 00 75 1B 90 [08:19:32]Write i2c OK [08:19:32]MH_I2C_Read... [08:19:33]OFD Sender: No OFD packet to send [08:19:33]*** Cut start [08:19:33]*** Partial cut [08:19:33]*** CUTSNS_PIN = 1 [08:19:33]*** CUTSNS_PIN = 0 [08:19:33]*** Brake cut motor [08:19:34]Read from MH i2c: 01 [08:19:34]MH_I2C_Read... [08:19:34]*** Stop cut motor [08:19:34]*** Cut end [08:19:34]Read from MH i2c: 01 07 00 [08:19:34]MH_I2C_Read... [08:19:34]Read from MH i2c: 01 07 00 75 1B 00 00 00 00 00 FF 0F A5 [08:19:34]process_action close_receipt done [08:19:34]requested_data is exist [08:19:34]produce_requested_data [08:19:34]requested_item fm.sn is exist - process it [08:19:34]wFMCommunicate request_size=4 [08:19:34]MH_SAM_APDU [08:19:34]CAPDU: 80 11 00 00 [08:19:34]Write to MH i2c: E2 08 00 76 1B 80 11 00 00 00 00 00 00 0B [08:19:34]Write i2c OK [08:19:34]MH_I2C_Read... [08:19:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:34]Read from MH i2c: E2 [08:19:34]MH_I2C_Read... [08:19:34]Read from MH i2c: E2 17 00 [08:19:34]MH_I2C_Read... [08:19:34]Read from MH i2c: E2 17 00 76 1B 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:19: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:19:34]wFMCommunicate OK [08:19:34]requested_item fd.num is exist - process it [08:19:34]SAM_PROTO_GetFieldsCounters [08:19:34]wFMCommunicate request_size=4 [08:19:34]MH_SAM_APDU [08:19:34]CAPDU: 80 13 00 00 [08:19:34]Write to MH i2c: E2 08 00 77 1B 80 13 00 00 00 00 00 00 0E [08:19:34]Write i2c OK [08:19:34]MH_I2C_Read... [08:19:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:19:34]Read from MH i2c: E2 [08:19:34]MH_I2C_Read... [08:19:34]Read from MH i2c: E2 62 00 [08:19:34]MH_I2C_Read... [08:19:34]Read from MH i2c: E2 62 00 77 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 22 F1 02 00 0E 04 04 00 20 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 83 [08:19:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 F1 02 00 0E 04 04 00 20 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 [08:19:34]wFMCommunicate OK [08:19:34]SAM_PROTO_GetFieldsCounters done [08:19:34]requested_item shift.num is exist - process it [08:19:34]requested_item shift.opened is exist - process it [08:19:34]req_shift_opened [08:19:34]FM_GetShiftState [08:19:34]SAM_PROTO_GetShiftState [08:19:34]wFMCommunicate request_size=4 [08:19:34]MH_SAM_APDU [08:19:34]CAPDU: 80 13 01 00 [08:19:34]Write to MH i2c: E2 08 00 78 1B 80 13 01 00 00 00 00 00 10 [08:19:34]Write i2c OK [08:19:34]MH_I2C_Read... [08:19:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:34]Read from MH i2c: E2 [08:19:34]MH_I2C_Read... [08:19:34]Read from MH i2c: E2 0E 00 [08:19:34]MH_I2C_Read... [08:19:34]Read from MH i2c: E2 0E 00 78 1B 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 16 [08:19:34]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [08:19:34]wFMCommunicate OK [08:19:34]SAM_PROTO_GetShiftState done [08:19:34]FM_GetShiftState done [08:19:34]req_shift_opened done [08:19:34]requested_item shift.open_date is exist - process it [08:19:34]req_shift_open_date [08:19:34]req_shift_open_date done [08:19:34]produce_requested_data done [08:19:34]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192802,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [08:19:34]process_action_free close_receipt [08:19:34]json_value_free [08:19:34]json_value_free done [08:19:34]process_json_proto returns [08:19:34]Send response to host [08:19:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192802,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [08:19:34]free response buf [08:19:34]execute_script done [08:19:34]execute_script returns [08:19:34]free content buf [08:19:34]Sock 9.Close socket [08:19:34]Sock 9.Thread stoped [08:19:38]OFD Sender: No OFD packet to send [08:19:43]OFD Sender: No OFD packet to send [08:19:43]accept exits with 8 [08:19:43]New connection [08:19:43]New thread 3066658148 created [08:19:43]Thread 3066801508 joined [08:19:43]Waiting for new connection... [08:19:43] Sock 8.Parse request [08:19:43]Sock 8.Check first char [08:19:43]Sock 8.First char is OK [08:19:43]request: POST /json_proto HTTP/1.0 [08:19:43]Method: POST [08:19:43]URL: /json_proto [08:19:43]Method is POST - this is cgi request [08:19:43]url: /json_proto [08:19:43]query_string will be loaded in cgi processing [08:19:43]execute_cgi json_proto POST (null) [08:19:43]execute_cgi path=json_proto method=POST [08:19:43]POST find Content-Length [08:19:43]Host: 172.17.63.131:8080 [08:19:43]Content-Length: 862 [08:19:43]Content-Type: application/json [08:19:43] [08:19:43]POST finish read [08:19:43]Found Content-Length = 862 [08:19:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32132", "tax_sys" : 0, "items" : [ { "pre_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" ] } } [08:19:43]execute_script... [08:19: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)32132", "tax_sys" : 0, "items" : [ { "pre_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" ] } } [08:19:43]POST & json_proto [08:19:43]process_json_proto [08:19:43]json parsed OK: [08:19:43]protocol is kg_v1.0 [08:19:43]action value=close_receipt [08:19:43]process_action close_receipt [08:19:43]cmd_close_receipt [08:19:43]MH_GetDate [08:19:43]Write to MH i2c: F0 00 00 79 1B 83 [08:19:43]Write i2c OK [08:19:43]MH_I2C_Read... [08:19:43]Read from MH i2c: F0 [08:19:43]MH_I2C_Read... [08:19:43]Read from MH i2c: F0 09 00 [08:19:43]MH_I2C_Read... [08:19:43]Read from MH i2c: F0 09 00 79 1B 00 A2 9A 20 67 22 05 6E 64 48 [08:19:43]GetLastDocTimeStamp 1730189973 [08:19:43]current date 1730189986 [08:19:43]FM_GetShiftState [08:19:43]SAM_PROTO_GetShiftState [08:19:43]wFMCommunicate request_size=4 [08:19:43]MH_SAM_APDU [08:19:43]CAPDU: 80 13 01 00 [08:19:43]Write to MH i2c: E2 08 00 7A 1B 80 13 01 00 00 00 00 00 12 [08:19:43]Write i2c OK [08:19:43]MH_I2C_Read... [08:19:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:43]Read from MH i2c: E2 [08:19:43]MH_I2C_Read... [08:19:43]Read from MH i2c: E2 0E 00 [08:19:43]MH_I2C_Read... [08:19:43]Read from MH i2c: E2 0E 00 7A 1B 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 18 [08:19:43]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [08:19:43]wFMCommunicate OK [08:19:43]SAM_PROTO_GetShiftState done [08:19:43]FM_GetShiftState done [08:19:43]opened in 1730161990 [08:19:43]opened+sec_in_day 1730248390 [08:19:43]quantity*price = 20003 [08:19:43]sum+1 = 20004 [08:19:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 ÐСП 1% : 1.77 ÐДС 12% : 21.24 Ðаличными: 0.00 Безнал.: 200.03 МеÑто: ÐЗС â„– 170 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 СÐО: Общий режим Чек 9 29.10.2024 08:19 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192803 ФПД: 256989117784600 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T081947&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192803&fm=256989117784600&tin=02508201610067®Number=0000000000091776&sum=20003 [08:19:44]StoreToDocumentArchive [08:19:44]shift 544 fd 192803 [08:19:44]save to /storage/0544/doc_00192803 [08:19:44]save last doc name /storage/0544/doc_00192803 to /storage/kkm_last_doc_name [08:19:44]save OK [08:19:44]Clear old archive folders... [08:19:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:19:44]tlvbuf is 00EECE50 [08:19:44]SAM_PROTO_ClearQueue [08:19:44]wFMCommunicate request_size=4 [08:19:44]MH_SAM_APDU [08:19:44]CAPDU: 80 09 00 00 [08:19:44]Write to MH i2c: E2 08 00 87 1B 80 09 00 00 00 00 00 00 14 [08:19:44]Write i2c OK [08:19:44]MH_I2C_Read... [08:19:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:19:44]Read from MH i2c: E2 [08:19:44]MH_I2C_Read... [08:19:44]Read from MH i2c: E2 03 00 [08:19:44]MH_I2C_Read... [08:19:44]Read from MH i2c: E2 03 00 87 1B 00 90 00 16 [08:19:44]RAPDU: 90 00 [08:19:44]wFMCommunicate OK [08:19:44]SAM_PROTO_ClearQueue done [08:19:44]KKMCreateOFDPacket [08:19:44]OFDProtocolAddRootSTLVToBuf [08:19:44]FM_MakeSignedData [08:19:44]FM_MakeSignedData [08:19:44]SAM_PROTO_SignData [08:19:44]wFMCommunicate request_size=4 [08:19:44]MH_SAM_APDU [08:19:44]CAPDU: 80 0D 01 02 [08:19:44]Write to MH i2c: E2 08 00 88 1B 80 0D 01 02 00 00 00 00 1C [08:19:44]Write i2c OK [08:19:44]MH_I2C_Read... [08:19:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:19:44]Read from MH i2c: E2 [08:19:44]MH_I2C_Read... [08:19:44]Read from MH i2c: E2 03 00 [08:19:44]MH_I2C_Read... [08:19:44]Read from MH i2c: E2 03 00 88 1B 00 90 00 17 [08:19:44]RAPDU: 90 00 [08:19:44]wFMCommunicate OK [08:19:44]wFMCommunicate request_size=255 [08:19:44]MH_SAM_APDU [08:19: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 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 09 00 00 00 F4 03 04 00 A3 9A 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 E9 [08:19:44]Write to MH i2c: E2 02 01 89 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 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 09 00 00 00 F4 03 04 00 A3 9A 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 E9 00 00 66 [08:19:44]Write i2c OK [08:19:44]MH_I2C_Read... [08:19:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:44]Read from MH i2c: E2 [08:19:44]MH_I2C_Read... [08:19:44]Read from MH i2c: E2 03 00 [08:19:44]MH_I2C_Read... [08:19:44]Read from MH i2c: E2 03 00 89 1B 00 90 00 18 [08:19:44]RAPDU: 90 00 [08:19:44]wFMCommunicate OK [08:19:44]wFMCommunicate request_size=10 [08:19:44]MH_SAM_APDU [08:19:44]CAPDU: 80 0D 02 02 05 BA F1 13 A2 18 [08:19:44]Write to MH i2c: E2 0D 00 8A 1B 80 0D 02 02 05 00 BA F1 13 A2 18 00 00 A1 [08:19:44]Write i2c OK [08:19:44]MH_I2C_Read... [08:19:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:44]Read from MH i2c: E2 [08:19:44]MH_I2C_Read... [08:19:44]Read from MH i2c: E2 03 00 [08:19:44]MH_I2C_Read... [08:19:44]Read from MH i2c: E2 03 00 8A 1B 00 90 00 19 [08:19:44]RAPDU: 90 00 [08:19:44]wFMCommunicate OK [08:19:44]wFMCommunicate request_size=4 [08:19:44]MH_SAM_APDU [08:19:44]CAPDU: 80 0D 03 02 [08:19:44]Write to MH i2c: E2 08 00 8B 1B 80 0D 03 02 00 00 00 00 21 [08:19:44]Write i2c OK [08:19:44]MH_I2C_Read... [08:19:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:19:44]Read from MH i2c: E2 [08:19:44]MH_I2C_Read... [08:19:44]Read from MH i2c: E2 0B 00 [08:19:44]MH_I2C_Read... [08:19:44]Read from MH i2c: E2 0B 00 8B 1B 00 65 17 C9 D0 BA 0F A8 4C 90 00 F4 [08:19:44]RAPDU: 65 17 C9 D0 BA 0F A8 4C 90 00 [08:19:44]wFMCommunicate OK [08:19:44]SAM_PROTO_SignData done [08:19:44]FM_MakeSignedData done [08:19:44]CreateOFDProtocolMessage [08:19:44]wFMCommunicate request_size=4 [08:19:44]MH_SAM_APDU [08:19:44]CAPDU: 80 11 00 00 [08:19:44]Write to MH i2c: E2 08 00 8C 1B 80 11 00 00 00 00 00 00 21 [08:19:44]Write i2c OK [08:19:44]MH_I2C_Read... [08:19:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:44]Read from MH i2c: E2 [08:19:44]MH_I2C_Read... [08:19:44]Read from MH i2c: E2 17 00 [08:19:44]MH_I2C_Read... [08:19:44]Read from MH i2c: E2 17 00 8C 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 74 [08:19: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:19:44]wFMCommunicate OK [08:19:44]CreateOFDProtocolMessage done [08:19:44]OFDSenderStorePacket 192803 [08:19:44]StoreOFDPacket docnum=192803 [08:19: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 22 25 07 01 01 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 09 00 00 00 F4 03 04 00 A3 9A 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 E9 BA F1 13 A2 18 65 17 C9 D0 BA 0F A8 4C [08:19:44]CheckFolder [08:19:44]dirname=/storage/ofd_packets [08:19:44]CheckFolder done [08:19:44]ProducePacketName [08:19:44]name=ofd_packets/00192803 [08:19:44]NVStorageSaveData ofd_packets/00192803 [08:19:44]File name is /storage/ofd_packets/00192803 [08:19:44]Write 301 bytes [08:19:44]NVStorageSaveData done [08:19:44]OFDSenderStorePacket done [08:19:44]KKMCreateOFDPacket done [08:19:44]NVStorageSaveData kkm_last_timestamp [08:19:44]File name is /storage/kkm_last_timestamp [08:19:44]Write 4 bytes [08:19:44]NVStorageSaveData done [08:19:44]ExternCall_PrintAddStr [08:19:44]wPrintStart [08:19:44]Write to MH i2c: 01 00 00 8D 1B A8 [08:19:44]Write i2c OK [08:19:44]MH_I2C_Read... [08:19:44]Read from MH i2c: 01 [08:19:44]MH_I2C_Read... [08:19:44]Read from MH i2c: 01 07 00 [08:19:44]MH_I2C_Read... [08:19:44]Read from MH i2c: 01 07 00 8D 1B 00 00 00 00 00 FF 0F BD [08:19:44]RasterBufferAndPrint [08:19:44]line Счет N : (1)32132 [08:19:44]line ИÐÐ: 02508201610067 [08:19:44]line Контрольно-КаÑÑовый Чек [08:19:44]line ПРОДÐЖР[08:19:44]line ТРК (МРК, ГÐК) : 21 [08:19:44]line Товар: 2710124130 [08:19:44]line Ðи-92-К-5 [08:19:44]line 2.990 * 66.90 [08:19:45]line = 200.03 [08:19:45]line ÐДС 12% ÐСП 1% [08:19:45]line > о реализуемом товаре [08:19:45]line ИТОГО: 200.03 [08:19:45]line ÐСП 1% : 1.77 [08:19:45]line ÐДС 12% : 21.24 [08:19:45]line Ðаличными: 0.00 [08:19:45]line Безнал.: 200.03 [08:19:45]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [08:19:45]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [08:19:45]line СÐО: Общий режим [08:19:45]line Чек 9 29.10.2024 08:19 [08:19:45]line Смена: 544 ФФД: 1.0 [08:19:45]line ЗÐМ: 0300000110 [08:19:45]line РÐМ: 0000000000091776 [08:19:45]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [08:19:45]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Кыргызкоммерцбанк [08:19:45]line ФМ: 0000000000871754 [08:19:45]line ФД: 192803 [08:19:45]line ФПД: 256989117784600 [08:19:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T081947&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192803&fm=256989117784600&tin=02508201610067®Number=0000000000091776&sum=20003 [08:19:45]OFD Sender: Processing packet 192803 [packets to send 75, broken 74] [08:19:45]ProducePacketName [08:19:45]name=ofd_packets/00192803 [08:19:45]OFD Sender: To server: ‡•öpG, [08:19:45]CommunicateWithHost lk.salyk.kg:30040 [08:19:45]ConnectInit lk.salyk.kg [08:19:45]written 0, free lines is 4095 [08:19:45]Connected sock=11 [08:19: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 22 25 07 01 01 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 09 00 00 00 F4 03 04 00 A3 9A 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 E9 BA F1 13 A2 18 65 17 C9 D0 BA 0F A8 4C [08:19: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 C3 A1 47 00 C4 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 23 F1 02 00 F4 03 04 00 64 3F 20 67 B6 04 01 00 00 32 A9 19 FA C7 C2 3F 66 [08:19:45]CommunicateWithHost err = 0 [08:19:45]CheckOFDResponse [08:19:45]1017 (14) - 77093643461234 [08:19:45]1041 (16) - 0000000000871754 [08:19:45]1040 (4) - 192803 [08:19:45]1012 (4) - 29.10.2024 01:50 [08:19:45]1206 (1) - 0 [08:19:45]OFD Sender: Remove packet 192803 [08:19:45]ProducePacketName [08:19:45]name=ofd_packets/00192803 [08:19:45]NVStorageDeleteData [08:19:45]Write to MH i2c: 01 00 00 B7 1B D2 [08:19:45]Write i2c OK [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: 01 [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: 01 07 00 [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: 01 07 00 B7 1B 00 00 00 00 00 E8 0C CD [08:19:45]RasterBufferAndPrint [08:19:45]line [08:19:45]line [08:19:45]line [08:19:45]line [08:19:45]line [08:19:45]written 0, free lines is 3311 [08:19:45]MH_Cut [08:19:45]Write to MH i2c: D1 01 00 BE 1B 01 AB [08:19:45]Write i2c OK [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: D1 [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: D1 01 00 [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: D1 01 00 BE 1B 00 AA [08:19:45]Write to MH i2c: 01 00 00 BF 1B DA [08:19:45]Write i2c OK [08:19:45]MH_I2C_Read... [08:19:46]OFD Sender: No OFD packet to send [08:19:46]*** Cut start [08:19:46]*** Partial cut [08:19:46]*** CUTSNS_PIN = 1 [08:19:46]*** CUTSNS_PIN = 0 [08:19:46]*** Brake cut motor [08:19:47]Read from MH i2c: 01 [08:19:47]MH_I2C_Read... [08:19:47]*** Stop cut motor [08:19:47]*** Cut end [08:19:47]Read from MH i2c: 01 07 00 [08:19:47]MH_I2C_Read... [08:19:47]Read from MH i2c: 01 07 00 BF 1B 00 00 00 00 00 FF 0F EF [08:19:47]process_action close_receipt done [08:19:47]requested_data is exist [08:19:47]produce_requested_data [08:19:47]requested_item fm.sn is exist - process it [08:19:47]wFMCommunicate request_size=4 [08:19:47]MH_SAM_APDU [08:19:47]CAPDU: 80 11 00 00 [08:19:47]Write to MH i2c: E2 08 00 C0 1B 80 11 00 00 00 00 00 00 55 [08:19:47]Write i2c OK [08:19:47]MH_I2C_Read... [08:19:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:47]Read from MH i2c: E2 [08:19:47]MH_I2C_Read... [08:19:47]Read from MH i2c: E2 17 00 [08:19:47]MH_I2C_Read... [08:19:47]Read from MH i2c: E2 17 00 C0 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A8 [08:19:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:19:47]wFMCommunicate OK [08:19:47]requested_item fd.num is exist - process it [08:19:47]SAM_PROTO_GetFieldsCounters [08:19:47]wFMCommunicate request_size=4 [08:19:47]MH_SAM_APDU [08:19:47]CAPDU: 80 13 00 00 [08:19:47]Write to MH i2c: E2 08 00 C1 1B 80 13 00 00 00 00 00 00 58 [08:19:47]Write i2c OK [08:19:47]MH_I2C_Read... [08:19:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:19:47]Read from MH i2c: E2 [08:19:47]MH_I2C_Read... [08:19:47]Read from MH i2c: E2 62 00 [08:19:47]MH_I2C_Read... [08:19:47]Read from MH i2c: E2 62 00 C1 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 23 F1 02 00 0E 04 04 00 20 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 D1 [08:19: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 23 F1 02 00 0E 04 04 00 20 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 [08:19:47]wFMCommunicate OK [08:19:47]SAM_PROTO_GetFieldsCounters done [08:19:47]requested_item shift.num is exist - process it [08:19:47]requested_item shift.opened is exist - process it [08:19:47]req_shift_opened [08:19:47]FM_GetShiftState [08:19:47]SAM_PROTO_GetShiftState [08:19:47]wFMCommunicate request_size=4 [08:19:47]MH_SAM_APDU [08:19:47]CAPDU: 80 13 01 00 [08:19:47]Write to MH i2c: E2 08 00 C2 1B 80 13 01 00 00 00 00 00 5A [08:19:47]Write i2c OK [08:19:47]MH_I2C_Read... [08:19:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:47]Read from MH i2c: E2 [08:19:47]MH_I2C_Read... [08:19:47]Read from MH i2c: E2 0E 00 [08:19:47]MH_I2C_Read... [08:19:47]Read from MH i2c: E2 0E 00 C2 1B 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 60 [08:19:47]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [08:19:47]wFMCommunicate OK [08:19:47]SAM_PROTO_GetShiftState done [08:19:47]FM_GetShiftState done [08:19:47]req_shift_opened done [08:19:47]requested_item shift.open_date is exist - process it [08:19:47]req_shift_open_date [08:19:47]req_shift_open_date done [08:19:47]produce_requested_data done [08:19:47]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192803,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [08:19:47]process_action_free close_receipt [08:19:47]json_value_free [08:19:47]json_value_free done [08:19:47]process_json_proto returns [08:19:47]Send response to host [08:19:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192803,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [08:19:47]free response buf [08:19:47]execute_script done [08:19:47]execute_script returns [08:19:47]free content buf [08:19:47]Sock 8.Close socket [08:19:47]Sock 8.Thread stoped [08:19:51]OFD Sender: No OFD packet to send [08:19:56]OFD Sender: No OFD packet to send [08:20:01]OFD Sender: No OFD packet to send [08:20:06]OFD Sender: No OFD packet to send [08:20:11]OFD Sender: No OFD packet to send [08:20:16]OFD Sender: No OFD packet to send [08:20:21]OFD Sender: No OFD packet to send [08:20:26]OFD Sender: No OFD packet to send [08:20:31]OFD Sender: No OFD packet to send [08:20:36]OFD Sender: No OFD packet to send [08:20:41]OFD Sender: No OFD packet to send [08:20:46]OFD Sender: No OFD packet to send [08:20:51]OFD Sender: No OFD packet to send [08:20:56]OFD Sender: No OFD packet to send [08:21:01]OFD Sender: No OFD packet to send [08:21:06]OFD Sender: No OFD packet to send [08:21:11]OFD Sender: No OFD packet to send [08:21:16]OFD Sender: No OFD packet to send [08:21:21]OFD Sender: No OFD packet to send [08:21:26]OFD Sender: No OFD packet to send [08:21:31]OFD Sender: No OFD packet to send [08:21:36]OFD Sender: No OFD packet to send [08:21:41]OFD Sender: No OFD packet to send [08:21:46]OFD Sender: No OFD packet to send [08:21:51]OFD Sender: No OFD packet to send [08:21:56]OFD Sender: No OFD packet to send [08:22:01]OFD Sender: No OFD packet to send [08:22:06]OFD Sender: No OFD packet to send [08:22:11]OFD Sender: No OFD packet to send [08:22:16]OFD Sender: No OFD packet to send [08:22:21]OFD Sender: No OFD packet to send [08:22:26]OFD Sender: No OFD packet to send [08:22:31]OFD Sender: No OFD packet to send [08:22:36]OFD Sender: No OFD packet to send [08:22:41]OFD Sender: No OFD packet to send [08:22:46]OFD Sender: No OFD packet to send [08:22:51]OFD Sender: No OFD packet to send [08:22:56]OFD Sender: No OFD packet to send [08:23:01]OFD Sender: No OFD packet to send [08:23:06]OFD Sender: No OFD packet to send [08:23:11]OFD Sender: No OFD packet to send [08:23:16]OFD Sender: No OFD packet to send [08:23:21]OFD Sender: No OFD packet to send [08:23:26]OFD Sender: No OFD packet to send [08:23:31]OFD Sender: No OFD packet to send [08:23:36]OFD Sender: No OFD packet to send [08:23:41]OFD Sender: No OFD packet to send [08:23:46]OFD Sender: No OFD packet to send [08:23:51]OFD Sender: No OFD packet to send [08:23:56]OFD Sender: No OFD packet to send [08:24:01]OFD Sender: No OFD packet to send [08:24:06]OFD Sender: No OFD packet to send [08:24:11]OFD Sender: No OFD packet to send [08:24:16]OFD Sender: No OFD packet to send [08:24:21]OFD Sender: No OFD packet to send [08:24:26]OFD Sender: No OFD packet to send [08:24:31]OFD Sender: No OFD packet to send [08:24:36]OFD Sender: No OFD packet to send [08:24:41]OFD Sender: No OFD packet to send [08:24:46]OFD Sender: No OFD packet to send [08:24:51]OFD Sender: No OFD packet to send [08:24:56]OFD Sender: No OFD packet to send [08:25:01]OFD Sender: No OFD packet to send [08:25:06]OFD Sender: No OFD packet to send [08:25:11]OFD Sender: No OFD packet to send [08:25:16]OFD Sender: No OFD packet to send [08:25:21]OFD Sender: No OFD packet to send [08:25:26]OFD Sender: No OFD packet to send [08:25:31]OFD Sender: No OFD packet to send [08:25:36]OFD Sender: No OFD packet to send [08:25:41]OFD Sender: No OFD packet to send [08:25:46]OFD Sender: No OFD packet to send [08:25:51]OFD Sender: No OFD packet to send [08:25:56]OFD Sender: No OFD packet to send [08:26:01]OFD Sender: No OFD packet to send [08:26:06]OFD Sender: No OFD packet to send [08:26:11]OFD Sender: No OFD packet to send [08:26:16]OFD Sender: No OFD packet to send [08:26:21]OFD Sender: No OFD packet to send [08:26:26]OFD Sender: No OFD packet to send [08:26:31]OFD Sender: No OFD packet to send [08:26:36]OFD Sender: No OFD packet to send [08:26:41]OFD Sender: No OFD packet to send [08:26:46]OFD Sender: No OFD packet to send [08:26:51]OFD Sender: No OFD packet to send [08:26:56]OFD Sender: No OFD packet to send [08:27:01]OFD Sender: No OFD packet to send [08:27:06]OFD Sender: No OFD packet to send [08:27:11]OFD Sender: No OFD packet to send [08:27:16]OFD Sender: No OFD packet to send [08:27:21]OFD Sender: No OFD packet to send [08:27:26]OFD Sender: No OFD packet to send [08:27:31]OFD Sender: No OFD packet to send [08:27:36]OFD Sender: No OFD packet to send [08:27:41]OFD Sender: No OFD packet to send [08:27:46]OFD Sender: No OFD packet to send [08:27:51]OFD Sender: No OFD packet to send [08:27:56]OFD Sender: No OFD packet to send [08:28:01]OFD Sender: No OFD packet to send [08:28:06]OFD Sender: No OFD packet to send [08:28:11]OFD Sender: No OFD packet to send [08:28:16]OFD Sender: No OFD packet to send [08:28:21]OFD Sender: No OFD packet to send [08:28:26]OFD Sender: No OFD packet to send [08:28:31]OFD Sender: No OFD packet to send [08:28:36]OFD Sender: No OFD packet to send [08:28:41]OFD Sender: No OFD packet to send [08:28:46]OFD Sender: No OFD packet to send [08:28:51]OFD Sender: No OFD packet to send [08:28:56]OFD Sender: No OFD packet to send [08:29:01]OFD Sender: No OFD packet to send [08:29:06]OFD Sender: No OFD packet to send [08:29:11]OFD Sender: No OFD packet to send [08:29:16]OFD Sender: No OFD packet to send [08:29:21]OFD Sender: No OFD packet to send [08:29:26]OFD Sender: No OFD packet to send [08:29:31]OFD Sender: No OFD packet to send [08:29:36]OFD Sender: No OFD packet to send [08:29:41]OFD Sender: No OFD packet to send [08:29:46]OFD Sender: No OFD packet to send [08:29:51]OFD Sender: No OFD packet to send [08:29:56]OFD Sender: No OFD packet to send [08:30:01]OFD Sender: No OFD packet to send [08:30:06]accept exits with 9 [08:30:06]New connection [08:30:06]New thread 3066801508 created [08:30:06]Thread 3066658148 joined [08:30:06]Waiting for new connection... [08:30:06] Sock 9.Parse request [08:30:06]Sock 9.Check first char [08:30:06]Sock 9.First char is OK [08:30:06]request: POST /json_proto HTTP/1.0 [08:30:06]Method: POST [08:30:06]URL: /json_proto [08:30:06]Method is POST - this is cgi request [08:30:06]url: /json_proto [08:30:06]query_string will be loaded in cgi processing [08:30:06]execute_cgi json_proto POST (null) [08:30:06]execute_cgi path=json_proto method=POST [08:30:06]POST find Content-Length [08:30:06]Host: 172.17.63.131:8080 [08:30:06]Content-Length: 676 [08:30:06]Content-Type: application/json [08:30:06] [08:30:06]POST finish read [08:30:06]Found Content-Length = 676 [08:30:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32133", "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:30:06]execute_script... [08:30: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)32133", "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:30:06]POST & json_proto [08:30:06]process_json_proto [08:30:06]json parsed OK: [08:30:06]protocol is kg_v1.0 [08:30:06]action value=close_receipt [08:30:06]process_action close_receipt [08:30:06]cmd_close_receipt [08:30:06]MH_GetDate [08:30:06]Write to MH i2c: F0 00 00 C3 1B CD [08:30:06]Write i2c OK [08:30:06]MH_I2C_Read... [08:30:06]Read from MH i2c: F0 [08:30:06]MH_I2C_Read... [08:30:06]Read from MH i2c: F0 09 00 [08:30:06]MH_I2C_Read... [08:30:06]Read from MH i2c: F0 09 00 C3 1B 00 12 9D 20 67 22 05 6E 64 05 [08:30:06]GetLastDocTimeStamp 1730189987 [08:30:06]current date 1730190610 [08:30:06]FM_GetShiftState [08:30:06]SAM_PROTO_GetShiftState [08:30:06]wFMCommunicate request_size=4 [08:30:06]MH_SAM_APDU [08:30:06]CAPDU: 80 13 01 00 [08:30:06]Write to MH i2c: E2 08 00 C4 1B 80 13 01 00 00 00 00 00 5C [08:30:06]Write i2c OK [08:30:06]MH_I2C_Read... [08:30:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:06]Read from MH i2c: E2 [08:30:06]MH_I2C_Read... [08:30:06]Read from MH i2c: E2 0E 00 [08:30:06]MH_I2C_Read... [08:30:06]Read from MH i2c: E2 0E 00 C4 1B 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 62 [08:30:06]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [08:30:06]wFMCommunicate OK [08:30:06]SAM_PROTO_GetShiftState done [08:30:06]FM_GetShiftState done [08:30:06]opened in 1730161990 [08:30:06]opened+sec_in_day 1730248390 [08:30:06]quantity*price = 20003 [08:30:06]sum+1 = 20004 [08:30:06]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 СÐО: Общий режим Чек 10 29.10.2024 08:30 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192804 ФПД: 172016297781672 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T083010&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192804&fm=172016297781672&tin=02508201610067®Number=0000000000091776&sum=20000 [08:30:07]StoreToDocumentArchive [08:30:07]shift 544 fd 192804 [08:30:07]save to /storage/0544/doc_00192804 [08:30:07]save last doc name /storage/0544/doc_00192804 to /storage/kkm_last_doc_name [08:30:07]save OK [08:30:07]Clear old archive folders... [08:30:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:30:07]tlvbuf is 00FACB40 [08:30:07]SAM_PROTO_ClearQueue [08:30:07]wFMCommunicate request_size=4 [08:30:07]MH_SAM_APDU [08:30:07]CAPDU: 80 09 00 00 [08:30:07]Write to MH i2c: E2 08 00 D1 1B 80 09 00 00 00 00 00 00 5E [08:30:07]Write i2c OK [08:30:07]MH_I2C_Read... [08:30:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:30:07]Read from MH i2c: E2 [08:30:07]MH_I2C_Read... [08:30:07]Read from MH i2c: E2 03 00 [08:30:07]MH_I2C_Read... [08:30:07]Read from MH i2c: E2 03 00 D1 1B 00 90 00 60 [08:30:07]RAPDU: 90 00 [08:30:07]wFMCommunicate OK [08:30:07]SAM_PROTO_ClearQueue done [08:30:07]KKMCreateOFDPacket [08:30:07]OFDProtocolAddRootSTLVToBuf [08:30:07]FM_MakeSignedData [08:30:07]FM_MakeSignedData [08:30:07]SAM_PROTO_SignData [08:30:07]wFMCommunicate request_size=4 [08:30:07]MH_SAM_APDU [08:30:07]CAPDU: 80 0D 01 02 [08:30:07]Write to MH i2c: E2 08 00 D2 1B 80 0D 01 02 00 00 00 00 66 [08:30:07]Write i2c OK [08:30:07]MH_I2C_Read... [08:30:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:30:07]Read from MH i2c: E2 [08:30:07]MH_I2C_Read... [08:30:07]Read from MH i2c: E2 03 00 [08:30:07]MH_I2C_Read... [08:30:07]Read from MH i2c: E2 03 00 D2 1B 00 90 00 61 [08:30:07]RAPDU: 90 00 [08:30:07]wFMCommunicate OK [08:30:07]wFMCommunicate request_size=255 [08:30:07]MH_SAM_APDU [08:30: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 12 9D 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 9C [08:30:07]Write to MH i2c: E2 02 01 D3 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 0A 00 00 00 F4 03 04 00 12 9D 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 9C 00 00 D1 [08:30:07]Write i2c OK [08:30:07]MH_I2C_Read... [08:30:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:08]Read from MH i2c: E2 [08:30:08]MH_I2C_Read... [08:30:08]Read from MH i2c: E2 03 00 [08:30:08]MH_I2C_Read... [08:30:08]Read from MH i2c: E2 03 00 D3 1B 00 90 00 62 [08:30:08]RAPDU: 90 00 [08:30:08]wFMCommunicate OK [08:30:08]wFMCommunicate request_size=10 [08:30:08]MH_SAM_APDU [08:30:08]CAPDU: 80 0D 02 02 05 72 AA 53 29 A8 [08:30:08]Write to MH i2c: E2 0D 00 D4 1B 80 0D 02 02 05 00 72 AA 53 29 A8 00 00 B3 [08:30:08]Write i2c OK [08:30:08]MH_I2C_Read... [08:30:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:08]Read from MH i2c: E2 [08:30:08]MH_I2C_Read... [08:30:08]Read from MH i2c: E2 03 00 [08:30:08]MH_I2C_Read... [08:30:08]Read from MH i2c: E2 03 00 D4 1B 00 90 00 63 [08:30:08]RAPDU: 90 00 [08:30:08]wFMCommunicate OK [08:30:08]wFMCommunicate request_size=4 [08:30:08]MH_SAM_APDU [08:30:08]CAPDU: 80 0D 03 02 [08:30:08]Write to MH i2c: E2 08 00 D5 1B 80 0D 03 02 00 00 00 00 6B [08:30:08]Write i2c OK [08:30:08]MH_I2C_Read... [08:30:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:30:08]Read from MH i2c: E2 [08:30:08]MH_I2C_Read... [08:30:08]Read from MH i2c: E2 0B 00 [08:30:08]MH_I2C_Read... [08:30:08]Read from MH i2c: E2 0B 00 D5 1B 00 5A 01 E1 A0 E8 AA CB 8C 90 00 31 [08:30:08]RAPDU: 5A 01 E1 A0 E8 AA CB 8C 90 00 [08:30:08]wFMCommunicate OK [08:30:08]SAM_PROTO_SignData done [08:30:08]FM_MakeSignedData done [08:30:08]CreateOFDProtocolMessage [08:30:08]wFMCommunicate request_size=4 [08:30:08]MH_SAM_APDU [08:30:08]CAPDU: 80 11 00 00 [08:30:08]Write to MH i2c: E2 08 00 D6 1B 80 11 00 00 00 00 00 00 6B [08:30:08]Write i2c OK [08:30:08]MH_I2C_Read... [08:30:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:08]Read from MH i2c: E2 [08:30:08]MH_I2C_Read... [08:30:08]Read from MH i2c: E2 17 00 [08:30:08]MH_I2C_Read... [08:30:08]Read from MH i2c: E2 17 00 D6 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BE [08:30:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:30:08]wFMCommunicate OK [08:30:08]CreateOFDProtocolMessage done [08:30:08]OFDSenderStorePacket 192804 [08:30:08]StoreOFDPacket docnum=192804 [08:30: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 E5 47 07 01 47 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 12 9D 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 9C 72 AA 53 29 A8 5A 01 E1 A0 E8 AA CB 8C [08:30:08]CheckFolder [08:30:08]dirname=/storage/ofd_packets [08:30:08]CheckFolder done [08:30:08]ProducePacketName [08:30:08]name=ofd_packets/00192804 [08:30:08]NVStorageSaveData ofd_packets/00192804 [08:30:08]File name is /storage/ofd_packets/00192804 [08:30:08]Write 301 bytes [08:30:08]NVStorageSaveData done [08:30:08]OFDSenderStorePacket done [08:30:08]KKMCreateOFDPacket done [08:30:08]NVStorageSaveData kkm_last_timestamp [08:30:08]File name is /storage/kkm_last_timestamp [08:30:08]Write 4 bytes [08:30:08]NVStorageSaveData done [08:30:08]ExternCall_PrintAddStr [08:30:08]wPrintStart [08:30:08]Write to MH i2c: 01 00 00 D7 1B F2 [08:30:08]Write i2c OK [08:30:08]MH_I2C_Read... [08:30:08]Read from MH i2c: 01 [08:30:08]MH_I2C_Read... [08:30:08]Read from MH i2c: 01 07 00 [08:30:08]MH_I2C_Read... [08:30:08]Read from MH i2c: 01 07 00 D7 1B 00 00 00 00 00 FF 0F 07 [08:30:08]RasterBufferAndPrint [08:30:08]line Счет N : (1)32133 [08:30:08]line ИÐÐ: 02508201610067 [08:30:08]line Контрольно-КаÑÑовый Чек [08:30:08]line ПРОДÐЖР[08:30:08]line ТРК (МРК, ГÐК) : 12 [08:30:08]line Товар: 2710124130 [08:30:08]line Ðи-92-К-5 [08:30:08]line 2.990 * 66.90 [08:30:08]line = 200.03 [08:30:08]line ÐДС 12% ÐСП 1% [08:30:08]line > о реализуемом товаре [08:30:08]line ОКРУГЛЕÐИЕ: -0.03 [08:30:08]line ИТОГО: 200.00 [08:30:08]line ВнеÑено: 200.00 [08:30:08]line СДÐЧÐ: 0.00 [08:30:08]line ÐСП 1% : 1.77 [08:30:08]line ÐДС 12% : 21.24 [08:30:08]line Ðаличными: 200.00 [08:30:08]line Безнал.: 0.00 [08:30:08]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [08:30:08]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [08:30:08]line СÐО: Общий режим [08:30:08]line Чек 10 29.10.2024 08:30 [08:30:08]line Смена: 544 ФФД: 1.0 [08:30:08]line ЗÐМ: 0300000110 [08:30:08]line РÐМ: 0000000000091776 [08:30:08]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [08:30:08]line ФМ: 0000000000871754 [08:30:08]line ФД: 192804 [08:30:08]line ФПД: 172016297781672 [08:30:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T083010&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192804&fm=172016297781672&tin=02508201610067®Number=0000000000091776&sum=20000 [08:30:08]OFD Sender: Processing packet 192804 [packets to send 75, broken 74] [08:30:08]ProducePacketName [08:30:08]name=ofd_packets/00192804 [08:30:08]OFD Sender: To server: ‡•öpG, [08:30:08]CommunicateWithHost lk.salyk.kg:30040 [08:30:08]ConnectInit lk.salyk.kg [08:30:08]written 0, free lines is 4095 [08:30:08]Connected sock=10 [08:30: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 E5 47 07 01 47 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 12 9D 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 9C 72 AA 53 29 A8 5A 01 E1 A0 E8 AA CB 8C [08:30: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 1A 3A 47 00 D7 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 24 F1 02 00 F4 03 04 00 D3 41 20 67 B6 04 01 00 00 64 68 09 87 9C 30 11 4B [08:30:08]CommunicateWithHost err = 0 [08:30:08]CheckOFDResponse [08:30:08]1017 (14) - 77093643461234 [08:30:08]1041 (16) - 0000000000871754 [08:30:08]1040 (4) - 192804 [08:30:08]1012 (4) - 29.10.2024 02:00 [08:30:08]1206 (1) - 0 [08:30:08]OFD Sender: Remove packet 192804 [08:30:08]ProducePacketName [08:30:08]name=ofd_packets/00192804 [08:30:08]NVStorageDeleteData [08:30:09]Write to MH i2c: 01 00 00 02 1C 1E [08:30:09]Write i2c OK [08:30:09]MH_I2C_Read... [08:30:09]Read from MH i2c: 01 [08:30:09]MH_I2C_Read... [08:30:09]Read from MH i2c: 01 07 00 [08:30:09]MH_I2C_Read... [08:30:09]Read from MH i2c: 01 07 00 02 1C 00 00 00 00 00 AF 0C E0 [08:30:09]RasterBufferAndPrint [08:30:09]line [08:30:09]line [08:30:09]line [08:30:09]line [08:30:09]line [08:30:09]written 0, free lines is 3253 [08:30:09]MH_Cut [08:30:09]Write to MH i2c: D1 01 00 09 1C 01 F7 [08:30:09]Write i2c OK [08:30:09]MH_I2C_Read... [08:30:09]Read from MH i2c: D1 [08:30:09]MH_I2C_Read... [08:30:09]Read from MH i2c: D1 01 00 [08:30:09]MH_I2C_Read... [08:30:09]Read from MH i2c: D1 01 00 09 1C 00 F6 [08:30:09]Write to MH i2c: 01 00 00 0A 1C 26 [08:30:09]Write i2c OK [08:30:09]MH_I2C_Read... [08:30:09]OFD Sender: No OFD packet to send [08:30:09]*** Cut start [08:30:09]*** Partial cut [08:30:09]*** CUTSNS_PIN = 1 [08:30:09]*** CUTSNS_PIN = 0 [08:30:10]*** Brake cut motor [08:30:10]Read from MH i2c: 01 [08:30:10]MH_I2C_Read... [08:30:10]*** Stop cut motor [08:30:10]*** Cut end [08:30:10]Read from MH i2c: 01 07 00 [08:30:10]MH_I2C_Read... [08:30:10]Read from MH i2c: 01 07 00 0A 1C 00 00 00 00 00 FF 0F 3B [08:30:10]process_action close_receipt done [08:30:10]requested_data is exist [08:30:10]produce_requested_data [08:30:10]requested_item fm.sn is exist - process it [08:30:10]wFMCommunicate request_size=4 [08:30:10]MH_SAM_APDU [08:30:10]CAPDU: 80 11 00 00 [08:30:10]Write to MH i2c: E2 08 00 0B 1C 80 11 00 00 00 00 00 00 A1 [08:30:10]Write i2c OK [08:30:10]MH_I2C_Read... [08:30:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:10]Read from MH i2c: E2 [08:30:10]MH_I2C_Read... [08:30:10]Read from MH i2c: E2 17 00 [08:30:10]MH_I2C_Read... [08:30:10]Read from MH i2c: E2 17 00 0B 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F4 [08:30:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:30:10]wFMCommunicate OK [08:30:10]requested_item fd.num is exist - process it [08:30:10]SAM_PROTO_GetFieldsCounters [08:30:10]wFMCommunicate request_size=4 [08:30:10]MH_SAM_APDU [08:30:10]CAPDU: 80 13 00 00 [08:30:10]Write to MH i2c: E2 08 00 0C 1C 80 13 00 00 00 00 00 00 A4 [08:30:10]Write i2c OK [08:30:10]MH_I2C_Read... [08:30:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:30:10]Read from MH i2c: E2 [08:30:10]MH_I2C_Read... [08:30:10]Read from MH i2c: E2 62 00 [08:30:10]MH_I2C_Read... [08:30:10]Read from MH i2c: E2 62 00 0C 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 24 F1 02 00 0E 04 04 00 20 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 21 [08:30: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 24 F1 02 00 0E 04 04 00 20 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 [08:30:10]wFMCommunicate OK [08:30:10]SAM_PROTO_GetFieldsCounters done [08:30:10]requested_item shift.num is exist - process it [08:30:10]requested_item shift.opened is exist - process it [08:30:10]req_shift_opened [08:30:10]FM_GetShiftState [08:30:10]SAM_PROTO_GetShiftState [08:30:10]wFMCommunicate request_size=4 [08:30:10]MH_SAM_APDU [08:30:10]CAPDU: 80 13 01 00 [08:30:10]Write to MH i2c: E2 08 00 0D 1C 80 13 01 00 00 00 00 00 A6 [08:30:10]Write i2c OK [08:30:10]MH_I2C_Read... [08:30:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:10]Read from MH i2c: E2 [08:30:10]MH_I2C_Read... [08:30:10]Read from MH i2c: E2 0E 00 [08:30:10]MH_I2C_Read... [08:30:10]Read from MH i2c: E2 0E 00 0D 1C 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 AC [08:30:10]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [08:30:10]wFMCommunicate OK [08:30:10]SAM_PROTO_GetShiftState done [08:30:10]FM_GetShiftState done [08:30:10]req_shift_opened done [08:30:10]requested_item shift.open_date is exist - process it [08:30:10]req_shift_open_date [08:30:10]req_shift_open_date done [08:30:10]produce_requested_data done [08:30:10]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192804,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [08:30:10]process_action_free close_receipt [08:30:10]json_value_free [08:30:10]json_value_free done [08:30:10]process_json_proto returns [08:30:10]Send response to host [08:30:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192804,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [08:30:10]free response buf [08:30:10]execute_script done [08:30:10]execute_script returns [08:30:10]free content buf [08:30:10]Sock 9.Close socket [08:30:10]Sock 9.Thread stoped [08:30:14]OFD Sender: No OFD packet to send [08:30:19]OFD Sender: No OFD packet to send [08:30:24]OFD Sender: No OFD packet to send [08:30:29]OFD Sender: No OFD packet to send [08:30:34]OFD Sender: No OFD packet to send [08:30:39]OFD Sender: No OFD packet to send [08:30:44]OFD Sender: No OFD packet to send [08:30:49]OFD Sender: No OFD packet to send [08:30:54]OFD Sender: No OFD packet to send [08:30:59]OFD Sender: No OFD packet to send [08:31:04]OFD Sender: No OFD packet to send [08:31:09]OFD Sender: No OFD packet to send [08:31:14]OFD Sender: No OFD packet to send [08:31:19]OFD Sender: No OFD packet to send [08:31:24]OFD Sender: No OFD packet to send [08:31:29]OFD Sender: No OFD packet to send [08:31:34]OFD Sender: No OFD packet to send [08:31:39]OFD Sender: No OFD packet to send [08:31:44]OFD Sender: No OFD packet to send [08:31:49]OFD Sender: No OFD packet to send [08:31:54]OFD Sender: No OFD packet to send [08:31:59]OFD Sender: No OFD packet to send [08:32:04]OFD Sender: No OFD packet to send [08:32:09]OFD Sender: No OFD packet to send [08:32:14]OFD Sender: No OFD packet to send [08:32:19]OFD Sender: No OFD packet to send [08:32:24]OFD Sender: No OFD packet to send [08:32:29]accept exits with 8 [08:32:29]New connection [08:32:29]New thread 3066658148 created [08:32:29]Thread 3066801508 joined [08:32:29]Waiting for new connection... [08:32:29] Sock 8.Parse request [08:32:29]Sock 8.Check first char [08:32:29]Sock 8.First char is OK [08:32:29]request: POST /json_proto HTTP/1.0 [08:32:29]Method: POST [08:32:29]URL: /json_proto [08:32:29]Method is POST - this is cgi request [08:32:29]url: /json_proto [08:32:29]query_string will be loaded in cgi processing [08:32:29]execute_cgi json_proto POST (null) [08:32:29]execute_cgi path=json_proto method=POST [08:32:29]POST find Content-Length [08:32:29]Host: 172.17.63.131:8080 [08:32:29]Content-Length: 676 [08:32:29]Content-Type: application/json [08:32:29] [08:32:29]POST finish read [08:32:29]Found Content-Length = 676 [08:32:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32134", "tax_sys" : 0, "items" : [ { "pre_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:32:29]execute_script... [08:32: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)32134", "tax_sys" : 0, "items" : [ { "pre_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:32:29]POST & json_proto [08:32:29]process_json_proto [08:32:29]json parsed OK: [08:32:29]protocol is kg_v1.0 [08:32:29]action value=close_receipt [08:32:29]process_action close_receipt [08:32:29]cmd_close_receipt [08:32:29]MH_GetDate [08:32:29]Write to MH i2c: F0 00 00 0E 1C 19 [08:32:29]Write i2c OK [08:32:29]MH_I2C_Read... [08:32:29]Read from MH i2c: F0 [08:32:29]MH_I2C_Read... [08:32:29]Read from MH i2c: F0 09 00 [08:32:29]MH_I2C_Read... [08:32:29]Read from MH i2c: F0 09 00 0E 1C 00 A1 9D 20 67 22 05 6E 64 E0 [08:32:29]GetLastDocTimeStamp 1730190610 [08:32:29]current date 1730190753 [08:32:29]FM_GetShiftState [08:32:29]SAM_PROTO_GetShiftState [08:32:29]wFMCommunicate request_size=4 [08:32:29]MH_SAM_APDU [08:32:29]CAPDU: 80 13 01 00 [08:32:29]Write to MH i2c: E2 08 00 0F 1C 80 13 01 00 00 00 00 00 A8 [08:32:29]Write i2c OK [08:32:29]MH_I2C_Read... [08:32:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:29]Read from MH i2c: E2 [08:32:29]MH_I2C_Read... [08:32:29]Read from MH i2c: E2 0E 00 [08:32:29]MH_I2C_Read... [08:32:29]Read from MH i2c: E2 0E 00 0F 1C 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 AE [08:32:29]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [08:32:29]wFMCommunicate OK [08:32:29]SAM_PROTO_GetShiftState done [08:32:29]FM_GetShiftState done [08:32:29]opened in 1730161990 [08:32:29]opened+sec_in_day 1730248390 [08:32:29]quantity*price = 50041 [08:32:29]sum+1 = 50042 [08:32: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 СÐО: Общий режим Чек 11 29.10.2024 08:32 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192805 ФПД: 183526526212992 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T083233&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192805&fm=183526526212992&tin=02508201610067®Number=0000000000091776&sum=50000 [08:32:30]StoreToDocumentArchive [08:32:30]shift 544 fd 192805 [08:32:30]save to /storage/0544/doc_00192805 [08:32:30]save last doc name /storage/0544/doc_00192805 to /storage/kkm_last_doc_name [08:32:30]save OK [08:32:30]Clear old archive folders... [08:32:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:32:30]tlvbuf is 00FAC300 [08:32:30]SAM_PROTO_ClearQueue [08:32:30]wFMCommunicate request_size=4 [08:32:30]MH_SAM_APDU [08:32:30]CAPDU: 80 09 00 00 [08:32:30]Write to MH i2c: E2 08 00 1C 1C 80 09 00 00 00 00 00 00 AA [08:32:30]Write i2c OK [08:32:30]MH_I2C_Read... [08:32:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:32:30]Read from MH i2c: E2 [08:32:30]MH_I2C_Read... [08:32:30]Read from MH i2c: E2 03 00 [08:32:30]MH_I2C_Read... [08:32:30]Read from MH i2c: E2 03 00 1C 1C 00 90 00 AC [08:32:30]RAPDU: 90 00 [08:32:30]wFMCommunicate OK [08:32:30]SAM_PROTO_ClearQueue done [08:32:30]KKMCreateOFDPacket [08:32:30]OFDProtocolAddRootSTLVToBuf [08:32:30]FM_MakeSignedData [08:32:30]FM_MakeSignedData [08:32:30]SAM_PROTO_SignData [08:32:30]wFMCommunicate request_size=4 [08:32:30]MH_SAM_APDU [08:32:30]CAPDU: 80 0D 01 02 [08:32:30]Write to MH i2c: E2 08 00 1D 1C 80 0D 01 02 00 00 00 00 B2 [08:32:30]Write i2c OK [08:32:30]MH_I2C_Read... [08:32:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:32:30]Read from MH i2c: E2 [08:32:30]MH_I2C_Read... [08:32:30]Read from MH i2c: E2 03 00 [08:32:30]MH_I2C_Read... [08:32:30]Read from MH i2c: E2 03 00 1D 1C 00 90 00 AD [08:32:30]RAPDU: 90 00 [08:32:30]wFMCommunicate OK [08:32:30]wFMCommunicate request_size=255 [08:32:30]MH_SAM_APDU [08:32: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 0B 00 00 00 F4 03 04 00 A1 9D 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 A6 [08:32:30]Write to MH i2c: E2 02 01 1E 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 0B 00 00 00 F4 03 04 00 A1 9D 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 A6 00 00 F6 [08:32:30]Write i2c OK [08:32:30]MH_I2C_Read... [08:32:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:30]Read from MH i2c: E2 [08:32:30]MH_I2C_Read... [08:32:30]Read from MH i2c: E2 03 00 [08:32:30]MH_I2C_Read... [08:32:30]Read from MH i2c: E2 03 00 1E 1C 00 90 00 AE [08:32:30]RAPDU: 90 00 [08:32:30]wFMCommunicate OK [08:32:30]wFMCommunicate request_size=10 [08:32:30]MH_SAM_APDU [08:32:30]CAPDU: 80 0D 02 02 05 EA 99 66 DB 80 [08:32:30]Write to MH i2c: E2 0D 00 1F 1C 80 0D 02 02 05 00 EA 99 66 DB 80 00 00 03 [08:32:30]Write i2c OK [08:32:30]MH_I2C_Read... [08:32:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:30]Read from MH i2c: E2 [08:32:30]MH_I2C_Read... [08:32:30]Read from MH i2c: E2 03 00 [08:32:30]MH_I2C_Read... [08:32:30]Read from MH i2c: E2 03 00 1F 1C 00 90 00 AF [08:32:30]RAPDU: 90 00 [08:32:30]wFMCommunicate OK [08:32:30]wFMCommunicate request_size=4 [08:32:30]MH_SAM_APDU [08:32:30]CAPDU: 80 0D 03 02 [08:32:30]Write to MH i2c: E2 08 00 20 1C 80 0D 03 02 00 00 00 00 B7 [08:32:30]Write i2c OK [08:32:30]MH_I2C_Read... [08:32:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:32:30]Read from MH i2c: E2 [08:32:30]MH_I2C_Read... [08:32:30]Read from MH i2c: E2 0B 00 [08:32:30]MH_I2C_Read... [08:32:30]Read from MH i2c: E2 0B 00 20 1C 00 96 71 CD E1 36 CA 3D D6 90 00 80 [08:32:30]RAPDU: 96 71 CD E1 36 CA 3D D6 90 00 [08:32:30]wFMCommunicate OK [08:32:30]SAM_PROTO_SignData done [08:32:30]FM_MakeSignedData done [08:32:30]CreateOFDProtocolMessage [08:32:30]wFMCommunicate request_size=4 [08:32:30]MH_SAM_APDU [08:32:30]CAPDU: 80 11 00 00 [08:32:30]Write to MH i2c: E2 08 00 21 1C 80 11 00 00 00 00 00 00 B7 [08:32:30]Write i2c OK [08:32:30]MH_I2C_Read... [08:32:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:31]Read from MH i2c: E2 [08:32:31]MH_I2C_Read... [08:32:31]Read from MH i2c: E2 17 00 [08:32:31]MH_I2C_Read... [08:32:31]Read from MH i2c: E2 17 00 21 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0A [08:32:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:32:31]wFMCommunicate OK [08:32:31]CreateOFDProtocolMessage done [08:32:31]OFDSenderStorePacket 192805 [08:32:31]StoreOFDPacket docnum=192805 [08:32: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 1A 21 07 01 A5 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 A1 9D 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 A6 EA 99 66 DB 80 96 71 CD E1 36 CA 3D D6 [08:32:31]CheckFolder [08:32:31]dirname=/storage/ofd_packets [08:32:31]CheckFolder done [08:32:31]ProducePacketName [08:32:31]name=ofd_packets/00192805 [08:32:31]NVStorageSaveData ofd_packets/00192805 [08:32:31]File name is /storage/ofd_packets/00192805 [08:32:31]Write 301 bytes [08:32:31]NVStorageSaveData done [08:32:31]OFDSenderStorePacket done [08:32:31]KKMCreateOFDPacket done [08:32:31]NVStorageSaveData kkm_last_timestamp [08:32:31]File name is /storage/kkm_last_timestamp [08:32:31]Write 4 bytes [08:32:31]NVStorageSaveData done [08:32:31]ExternCall_PrintAddStr [08:32:31]wPrintStart [08:32:31]Write to MH i2c: 01 00 00 22 1C 3E [08:32:31]Write i2c OK [08:32:31]MH_I2C_Read... [08:32:31]Read from MH i2c: 01 [08:32:31]MH_I2C_Read... [08:32:31]Read from MH i2c: 01 07 00 [08:32:31]MH_I2C_Read... [08:32:31]Read from MH i2c: 01 07 00 22 1C 00 00 00 00 00 FF 0F 53 [08:32:31]RasterBufferAndPrint [08:32:31]line Счет N : (1)32134 [08:32:31]line ИÐÐ: 02508201610067 [08:32:31]line Контрольно-КаÑÑовый Чек [08:32:31]line ПРОДÐЖР[08:32:31]line ТРК (МРК, ГÐК) : 21 [08:32:31]line Товар: 2710124130 [08:32:31]line Ðи-92-К-5 [08:32:31]line 7.480 * 66.90 [08:32:31]line = 500.41 [08:32:31]line ÐДС 12% ÐСП 1% [08:32:31]line > о реализуемом товаре [08:32:31]line ОКРУГЛЕÐИЕ: -0.41 [08:32:31]line ИТОГО: 500.00 [08:32:31]line ВнеÑено: 500.00 [08:32:31]line СДÐЧÐ: 0.00 [08:32:31]line ÐСП 1% : 4.43 [08:32:31]line ÐДС 12% : 53.14 [08:32:31]line Ðаличными: 500.00 [08:32:31]line Безнал.: 0.00 [08:32:31]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [08:32:31]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [08:32:31]line СÐО: Общий режим [08:32:31]line Чек 11 29.10.2024 08:32 [08:32:31]line Смена: 544 ФФД: 1.0 [08:32:31]line ЗÐМ: 0300000110 [08:32:31]line РÐМ: 0000000000091776 [08:32:31]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [08:32:31]line ФМ: 0000000000871754 [08:32:31]line ФД: 192805 [08:32:31]line ФПД: 183526526212992 [08:32:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T083233&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192805&fm=183526526212992&tin=02508201610067®Number=0000000000091776&sum=50000 [08:32:31]OFD Sender: Processing packet 192805 [packets to send 75, broken 74] [08:32:31]ProducePacketName [08:32:31]name=ofd_packets/00192805 [08:32:31]OFD Sender: To server: ‡•öpG, [08:32:31]CommunicateWithHost lk.salyk.kg:30040 [08:32:31]ConnectInit lk.salyk.kg [08:32:31]written 0, free lines is 4095 [08:32:31]Connected sock=10 [08:32: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 1A 21 07 01 A5 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 A1 9D 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 A6 EA 99 66 DB 80 96 71 CD E1 36 CA 3D D6 [08:32: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 2D F1 47 00 91 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 25 F1 02 00 F4 03 04 00 62 42 20 67 B6 04 01 00 00 48 F0 F5 55 2B 5C CA 95 [08:32:31]CommunicateWithHost err = 0 [08:32:31]CheckOFDResponse [08:32:31]1017 (14) - 77093643461234 [08:32:31]1041 (16) - 0000000000871754 [08:32:31]1040 (4) - 192805 [08:32:31]1012 (4) - 29.10.2024 02:03 [08:32:31]1206 (1) - 0 [08:32:31]OFD Sender: Remove packet 192805 [08:32:31]ProducePacketName [08:32:31]name=ofd_packets/00192805 [08:32:31]NVStorageDeleteData [08:32:31]Write to MH i2c: 01 00 00 4D 1C 69 [08:32:31]Write i2c OK [08:32:31]MH_I2C_Read... [08:32:31]Read from MH i2c: 01 [08:32:31]MH_I2C_Read... [08:32:31]Read from MH i2c: 01 07 00 [08:32:31]MH_I2C_Read... [08:32:31]Read from MH i2c: 01 07 00 4D 1C 00 00 00 00 00 B3 0C 2F [08:32:31]RasterBufferAndPrint [08:32:31]line [08:32:31]line [08:32:31]line [08:32:31]line [08:32:31]line [08:32:31]written 0, free lines is 3258 [08:32:31]MH_Cut [08:32:31]Write to MH i2c: D1 01 00 54 1C 01 42 [08:32:31]Write i2c OK [08:32:31]MH_I2C_Read... [08:32:31]Read from MH i2c: D1 [08:32:31]MH_I2C_Read... [08:32:31]Read from MH i2c: D1 01 00 [08:32:31]MH_I2C_Read... [08:32:31]Read from MH i2c: D1 01 00 54 1C 00 41 [08:32:31]Write to MH i2c: 01 00 00 55 1C 71 [08:32:31]Write i2c OK [08:32:31]MH_I2C_Read... [08:32:32]OFD Sender: No OFD packet to send [08:32:32]*** Cut start [08:32:32]*** Partial cut [08:32:32]*** CUTSNS_PIN = 1 [08:32:32]*** CUTSNS_PIN = 0 [08:32:32]*** Brake cut motor [08:32:33]Read from MH i2c: 01 [08:32:33]MH_I2C_Read... [08:32:33]*** Stop cut motor [08:32:33]*** Cut end [08:32:33]Read from MH i2c: 01 07 00 [08:32:33]MH_I2C_Read... [08:32:33]Read from MH i2c: 01 07 00 55 1C 00 00 00 00 00 FF 0F 86 [08:32:33]process_action close_receipt done [08:32:33]requested_data is exist [08:32:33]produce_requested_data [08:32:33]requested_item fm.sn is exist - process it [08:32:33]wFMCommunicate request_size=4 [08:32:33]MH_SAM_APDU [08:32:33]CAPDU: 80 11 00 00 [08:32:33]Write to MH i2c: E2 08 00 56 1C 80 11 00 00 00 00 00 00 EC [08:32:33]Write i2c OK [08:32:33]MH_I2C_Read... [08:32:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:33]Read from MH i2c: E2 [08:32:33]MH_I2C_Read... [08:32:33]Read from MH i2c: E2 17 00 [08:32:33]MH_I2C_Read... [08:32:33]Read from MH i2c: E2 17 00 56 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3F [08:32:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:32:33]wFMCommunicate OK [08:32:33]requested_item fd.num is exist - process it [08:32:33]SAM_PROTO_GetFieldsCounters [08:32:33]wFMCommunicate request_size=4 [08:32:33]MH_SAM_APDU [08:32:33]CAPDU: 80 13 00 00 [08:32:33]Write to MH i2c: E2 08 00 57 1C 80 13 00 00 00 00 00 00 EF [08:32:33]Write i2c OK [08:32:33]MH_I2C_Read... [08:32:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:32:33]Read from MH i2c: E2 [08:32:33]MH_I2C_Read... [08:32:33]Read from MH i2c: E2 62 00 [08:32:33]MH_I2C_Read... [08:32:33]Read from MH i2c: E2 62 00 57 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 25 F1 02 00 0E 04 04 00 20 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 70 [08:32: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 25 F1 02 00 0E 04 04 00 20 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:32:33]wFMCommunicate OK [08:32:33]SAM_PROTO_GetFieldsCounters done [08:32:33]requested_item shift.num is exist - process it [08:32:33]requested_item shift.opened is exist - process it [08:32:33]req_shift_opened [08:32:33]FM_GetShiftState [08:32:33]SAM_PROTO_GetShiftState [08:32:33]wFMCommunicate request_size=4 [08:32:33]MH_SAM_APDU [08:32:33]CAPDU: 80 13 01 00 [08:32:33]Write to MH i2c: E2 08 00 58 1C 80 13 01 00 00 00 00 00 F1 [08:32:33]Write i2c OK [08:32:33]MH_I2C_Read... [08:32:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:33]Read from MH i2c: E2 [08:32:33]MH_I2C_Read... [08:32:33]Read from MH i2c: E2 0E 00 [08:32:33]MH_I2C_Read... [08:32:33]Read from MH i2c: E2 0E 00 58 1C 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 F7 [08:32:33]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [08:32:33]wFMCommunicate OK [08:32:33]SAM_PROTO_GetShiftState done [08:32:33]FM_GetShiftState done [08:32:33]req_shift_opened done [08:32:33]requested_item shift.open_date is exist - process it [08:32:33]req_shift_open_date [08:32:33]req_shift_open_date done [08:32:33]produce_requested_data done [08:32:33]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192805,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [08:32:33]process_action_free close_receipt [08:32:33]json_value_free [08:32:33]json_value_free done [08:32:33]process_json_proto returns [08:32:33]Send response to host [08:32:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192805,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [08:32:33]free response buf [08:32:33]execute_script done [08:32:33]execute_script returns [08:32:33]free content buf [08:32:33]Sock 8.Close socket [08:32:33]Sock 8.Thread stoped [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:42]OFD Sender: No OFD packet to send [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:27]OFD Sender: No OFD packet to send [08:34:32]OFD Sender: No OFD packet to send [08:34:37]OFD Sender: No OFD packet to send [08:34:42]OFD Sender: No OFD packet to send [08:34:47]OFD Sender: No OFD packet to send [08:34:52]OFD Sender: No OFD packet to send [08:34:57]OFD Sender: No OFD packet to send [08:35:02]OFD Sender: No OFD packet to send [08:35:07]OFD Sender: No OFD packet to send [08:35:12]OFD Sender: No OFD packet to send [08:35:17]OFD Sender: No OFD packet to send [08:35:22]OFD Sender: No OFD packet to send [08:35:27]OFD Sender: No OFD packet to send [08:35:32]OFD Sender: No OFD packet to send [08:35:37]OFD Sender: No OFD packet to send [08:35:42]OFD Sender: No OFD packet to send [08:35:47]OFD Sender: No OFD packet to send [08:35:52]OFD Sender: No OFD packet to send [08:35:57]OFD Sender: No OFD packet to send [08:36:02]OFD Sender: No OFD packet to send [08:36:07]OFD Sender: No OFD packet to send [08:36:12]OFD Sender: No OFD packet to send [08:36:17]OFD Sender: No OFD packet to send [08:36:22]OFD Sender: No OFD packet to send [08:36:27]OFD Sender: No OFD packet to send [08:36:32]OFD Sender: No OFD packet to send [08:36:37]OFD Sender: No OFD packet to send [08:36:42]OFD Sender: No OFD packet to send [08:36:47]OFD Sender: No OFD packet to send [08:36:52]OFD Sender: No OFD packet to send [08:36:57]OFD Sender: No OFD packet to send [08:37:02]OFD Sender: No OFD packet to send [08:37:07]OFD Sender: No OFD packet to send [08:37:12]OFD Sender: No OFD packet to send [08:37:17]OFD Sender: No OFD packet to send [08:37:22]OFD Sender: No OFD packet to send [08:37:27]OFD Sender: No OFD packet to send [08:37:32]OFD Sender: No OFD packet to send [08:37:32]accept exits with 9 [08:37:32]New connection [08:37:32]New thread 3066801508 created [08:37:32]Thread 3066658148 joined [08:37:32]Waiting for new connection... [08:37:32] Sock 9.Parse request [08:37:32]Sock 9.Check first char [08:37:32]Sock 9.First char is OK [08:37:32]request: POST /json_proto HTTP/1.0 [08:37:32]Method: POST [08:37:32]URL: /json_proto [08:37:32]Method is POST - this is cgi request [08:37:32]url: /json_proto [08:37:32]query_string will be loaded in cgi processing [08:37:32]execute_cgi json_proto POST (null) [08:37:32]execute_cgi path=json_proto method=POST [08:37:32]POST find Content-Length [08:37:32]Host: 172.17.63.131:8080 [08:37:32]Content-Length: 676 [08:37:32]Content-Type: application/json [08:37:32] [08:37:32]POST finish read [08:37:32]Found Content-Length = 676 [08:37:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32135", "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" : 1.650, "sum" : 110.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 110.00, "total" : 110.00, "payments": [ { "type": 0, "sum" : 110.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:37:32]execute_script... [08:37: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)32135", "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" : 1.650, "sum" : 110.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 110.00, "total" : 110.00, "payments": [ { "type": 0, "sum" : 110.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:37:32]POST & json_proto [08:37:32]process_json_proto [08:37:32]json parsed OK: [08:37:32]protocol is kg_v1.0 [08:37:32]action value=close_receipt [08:37:32]process_action close_receipt [08:37:32]cmd_close_receipt [08:37:32]MH_GetDate [08:37:32]Write to MH i2c: F0 00 00 59 1C 64 [08:37:32]Write i2c OK [08:37:32]MH_I2C_Read... [08:37:32]Read from MH i2c: F0 [08:37:32]MH_I2C_Read... [08:37:32]Read from MH i2c: F0 09 00 [08:37:32]MH_I2C_Read... [08:37:32]Read from MH i2c: F0 09 00 59 1C 00 D0 9E 20 67 22 05 6E 64 5B [08:37:32]GetLastDocTimeStamp 1730190753 [08:37:32]current date 1730191056 [08:37:32]FM_GetShiftState [08:37:32]SAM_PROTO_GetShiftState [08:37:32]wFMCommunicate request_size=4 [08:37:32]MH_SAM_APDU [08:37:32]CAPDU: 80 13 01 00 [08:37:32]Write to MH i2c: E2 08 00 5A 1C 80 13 01 00 00 00 00 00 F3 [08:37:32]Write i2c OK [08:37:32]MH_I2C_Read... [08:37:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:37:33]Read from MH i2c: E2 [08:37:33]MH_I2C_Read... [08:37:33]Read from MH i2c: E2 0E 00 [08:37:33]MH_I2C_Read... [08:37:33]Read from MH i2c: E2 0E 00 5A 1C 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 F9 [08:37:33]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [08:37:33]wFMCommunicate OK [08:37:33]SAM_PROTO_GetShiftState done [08:37:33]FM_GetShiftState done [08:37:33]opened in 1730161990 [08:37:33]opened+sec_in_day 1730248390 [08:37:33]quantity*price = 11038 [08:37:33]sum+1 = 11040 [08:37:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.39 ИТОГО: 110.00 ВнеÑено: 110.00 СДÐЧÐ: 0.00 ÐСП 1% : 0.98 ÐДС 12% : 11.72 Ðаличными: 110.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 170 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 СÐО: Общий режим Чек 12 29.10.2024 08:37 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192806 ФПД: 35311866925412 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T083736&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192806&fm=35311866925412&tin=02508201610067®Number=0000000000091776&sum=11000 [08:37:34]StoreToDocumentArchive [08:37:34]shift 544 fd 192806 [08:37:34]save to /storage/0544/doc_00192806 [08:37:34]save last doc name /storage/0544/doc_00192806 to /storage/kkm_last_doc_name [08:37:34]save OK [08:37:34]Clear old archive folders... [08:37:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:37:34]tlvbuf is B6E9C9A0 [08:37:34]SAM_PROTO_ClearQueue [08:37:34]wFMCommunicate request_size=4 [08:37:34]MH_SAM_APDU [08:37:34]CAPDU: 80 09 00 00 [08:37:34]Write to MH i2c: E2 08 00 67 1C 80 09 00 00 00 00 00 00 F5 [08:37:34]Write i2c OK [08:37:34]MH_I2C_Read... [08:37:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:37:34]Read from MH i2c: E2 [08:37:34]MH_I2C_Read... [08:37:34]Read from MH i2c: E2 03 00 [08:37:34]MH_I2C_Read... [08:37:34]Read from MH i2c: E2 03 00 67 1C 00 90 00 F7 [08:37:34]RAPDU: 90 00 [08:37:34]wFMCommunicate OK [08:37:34]SAM_PROTO_ClearQueue done [08:37:34]KKMCreateOFDPacket [08:37:34]OFDProtocolAddRootSTLVToBuf [08:37:34]FM_MakeSignedData [08:37:34]FM_MakeSignedData [08:37:34]SAM_PROTO_SignData [08:37:34]wFMCommunicate request_size=4 [08:37:34]MH_SAM_APDU [08:37:34]CAPDU: 80 0D 01 02 [08:37:34]Write to MH i2c: E2 08 00 68 1C 80 0D 01 02 00 00 00 00 FD [08:37:34]Write i2c OK [08:37:34]MH_I2C_Read... [08:37:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:37:34]Read from MH i2c: E2 [08:37:34]MH_I2C_Read... [08:37:34]Read from MH i2c: E2 03 00 [08:37:34]MH_I2C_Read... [08:37:34]Read from MH i2c: E2 03 00 68 1C 00 90 00 F8 [08:37:34]RAPDU: 90 00 [08:37:34]wFMCommunicate OK [08:37:34]wFMCommunicate request_size=255 [08:37:34]MH_SAM_APDU [08:37: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 72 06 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1F 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 04 00 00 00 00 07 04 06 00 F8 2A 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 D0 9E 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 20 [08:37:34]Write to MH i2c: E2 02 01 69 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 06 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1F 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 04 00 00 00 00 07 04 06 00 F8 2A 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 D0 9E 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 20 00 00 A4 [08:37:34]Write i2c OK [08:37:34]MH_I2C_Read... [08:37:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:37:34]Read from MH i2c: E2 [08:37:34]MH_I2C_Read... [08:37:34]Read from MH i2c: E2 03 00 [08:37:34]MH_I2C_Read... [08:37:34]Read from MH i2c: E2 03 00 69 1C 00 90 00 F9 [08:37:34]RAPDU: 90 00 [08:37:34]wFMCommunicate OK [08:37:34]wFMCommunicate request_size=10 [08:37:34]MH_SAM_APDU [08:37:34]CAPDU: 80 0D 02 02 05 1D AF 48 D1 64 [08:37:34]Write to MH i2c: E2 0D 00 6A 1C 80 0D 02 02 05 00 1D AF 48 D1 64 00 00 53 [08:37:34]Write i2c OK [08:37:34]MH_I2C_Read... [08:37:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:37:34]Read from MH i2c: E2 [08:37:34]MH_I2C_Read... [08:37:34]Read from MH i2c: E2 03 00 [08:37:34]MH_I2C_Read... [08:37:34]Read from MH i2c: E2 03 00 6A 1C 00 90 00 FA [08:37:34]RAPDU: 90 00 [08:37:34]wFMCommunicate OK [08:37:34]wFMCommunicate request_size=4 [08:37:34]MH_SAM_APDU [08:37:34]CAPDU: 80 0D 03 02 [08:37:34]Write to MH i2c: E2 08 00 6B 1C 80 0D 03 02 00 00 00 00 02 [08:37:34]Write i2c OK [08:37:34]MH_I2C_Read... [08:37:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:37:34]Read from MH i2c: E2 [08:37:34]MH_I2C_Read... [08:37:34]Read from MH i2c: E2 0B 00 [08:37:34]MH_I2C_Read... [08:37:34]Read from MH i2c: E2 0B 00 6B 1C 00 FE B3 71 7D C7 B4 6A 64 90 00 EB [08:37:34]RAPDU: FE B3 71 7D C7 B4 6A 64 90 00 [08:37:34]wFMCommunicate OK [08:37:34]SAM_PROTO_SignData done [08:37:34]FM_MakeSignedData done [08:37:34]CreateOFDProtocolMessage [08:37:34]wFMCommunicate request_size=4 [08:37:34]MH_SAM_APDU [08:37:34]CAPDU: 80 11 00 00 [08:37:34]Write to MH i2c: E2 08 00 6C 1C 80 11 00 00 00 00 00 00 02 [08:37:34]Write i2c OK [08:37:34]MH_I2C_Read... [08:37:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:37:34]Read from MH i2c: E2 [08:37:34]MH_I2C_Read... [08:37:34]Read from MH i2c: E2 17 00 [08:37:34]MH_I2C_Read... [08:37:34]Read from MH i2c: E2 17 00 6C 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 55 [08:37: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:37:34]wFMCommunicate OK [08:37:34]CreateOFDProtocolMessage done [08:37:34]OFDSenderStorePacket 192806 [08:37:34]StoreOFDPacket docnum=192806 [08:37: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 DF 65 07 01 35 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 06 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1F 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 04 00 00 00 00 07 04 06 00 F8 2A 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 D0 9E 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 20 1D AF 48 D1 64 FE B3 71 7D C7 B4 6A 64 [08:37:34]CheckFolder [08:37:34]dirname=/storage/ofd_packets [08:37:34]CheckFolder done [08:37:34]ProducePacketName [08:37:34]name=ofd_packets/00192806 [08:37:34]NVStorageSaveData ofd_packets/00192806 [08:37:34]File name is /storage/ofd_packets/00192806 [08:37:34]Write 301 bytes [08:37:34]NVStorageSaveData done [08:37:34]OFDSenderStorePacket done [08:37:34]KKMCreateOFDPacket done [08:37:34]NVStorageSaveData kkm_last_timestamp [08:37:34]File name is /storage/kkm_last_timestamp [08:37:34]Write 4 bytes [08:37:34]NVStorageSaveData done [08:37:34]ExternCall_PrintAddStr [08:37:34]wPrintStart [08:37:34]Write to MH i2c: 01 00 00 6D 1C 89 [08:37:34]Write i2c OK [08:37:34]MH_I2C_Read... [08:37:34]Read from MH i2c: 01 [08:37:34]MH_I2C_Read... [08:37:34]Read from MH i2c: 01 07 00 [08:37:34]MH_I2C_Read... [08:37:34]Read from MH i2c: 01 07 00 6D 1C 00 00 00 00 00 FF 0F 9E [08:37:34]RasterBufferAndPrint [08:37:34]line Счет N : (1)32135 [08:37:34]line ИÐÐ: 02508201610067 [08:37:34]line Контрольно-КаÑÑовый Чек [08:37:34]line ПРОДÐЖР[08:37:34]line ТРК (МРК, ГÐК) : 12 [08:37:34]line Товар: 2710124130 [08:37:34]line Ðи-92-К-5 [08:37:34]line 1.650 * 66.90 [08:37:34]line = 110.39 [08:37:34]line ÐДС 12% ÐСП 1% [08:37:34]line > о реализуемом товаре [08:37:34]line ОКРУГЛЕÐИЕ: -0.39 [08:37:34]line ИТОГО: 110.00 [08:37:34]line ВнеÑено: 110.00 [08:37:34]line СДÐЧÐ: 0.00 [08:37:34]line ÐСП 1% : 0.98 [08:37:34]line ÐДС 12% : 11.72 [08:37:34]line Ðаличными: 110.00 [08:37:34]line Безнал.: 0.00 [08:37:34]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [08:37:34]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [08:37:34]line СÐО: Общий режим [08:37:34]line Чек 12 29.10.2024 08:37 [08:37:34]line Смена: 544 ФФД: 1.0 [08:37:34]line ЗÐМ: 0300000110 [08:37:34]line РÐМ: 0000000000091776 [08:37:34]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [08:37:34]line ФМ: 0000000000871754 [08:37:34]line ФД: 192806 [08:37:34]line ФПД: 35311866925412 [08:37:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T083736&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192806&fm=35311866925412&tin=02508201610067®Number=0000000000091776&sum=11000 [08:37:34]OFD Sender: Processing packet 192806 [packets to send 75, broken 74] [08:37:34]ProducePacketName [08:37:34]name=ofd_packets/00192806 [08:37:34]OFD Sender: To server: ‡•öpG, [08:37:35]CommunicateWithHost lk.salyk.kg:30040 [08:37:35]ConnectInit lk.salyk.kg [08:37:35]written 0, free lines is 4095 [08:37:35]Connected sock=10 [08:37: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 DF 65 07 01 35 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 06 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1F 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 04 00 00 00 00 07 04 06 00 F8 2A 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 D0 9E 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 20 1D AF 48 D1 64 FE B3 71 7D C7 B4 6A 64 [08:37: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 A3 61 47 00 EA F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 26 F1 02 00 F4 03 04 00 92 43 20 67 B6 04 01 00 00 07 1C E4 13 CC B1 40 DA [08:37:35]CommunicateWithHost err = 0 [08:37:35]CheckOFDResponse [08:37:35]1017 (14) - 77093643461234 [08:37:35]1041 (16) - 0000000000871754 [08:37:35]1040 (4) - 192806 [08:37:35]1012 (4) - 29.10.2024 02:08 [08:37:35]1206 (1) - 0 [08:37:35]OFD Sender: Remove packet 192806 [08:37:35]ProducePacketName [08:37:35]name=ofd_packets/00192806 [08:37:35]NVStorageDeleteData [08:37:35]Write to MH i2c: 01 00 00 98 1C B4 [08:37:35]Write i2c OK [08:37:35]MH_I2C_Read... [08:37:35]Read from MH i2c: 01 [08:37:35]MH_I2C_Read... [08:37:35]Read from MH i2c: 01 07 00 [08:37:35]MH_I2C_Read... [08:37:35]Read from MH i2c: 01 07 00 98 1C 00 00 00 00 00 AA 0C 71 [08:37:35]RasterBufferAndPrint [08:37:35]line [08:37:35]line [08:37:35]line [08:37:35]line [08:37:35]line [08:37:35]written 0, free lines is 3248 [08:37:35]MH_Cut [08:37:35]Write to MH i2c: D1 01 00 9F 1C 01 8D [08:37:35]Write i2c OK [08:37:35]MH_I2C_Read... [08:37:35]Read from MH i2c: D1 [08:37:35]MH_I2C_Read... [08:37:35]Read from MH i2c: D1 01 00 [08:37:35]MH_I2C_Read... [08:37:35]Read from MH i2c: D1 01 00 9F 1C 00 8C [08:37:35]Write to MH i2c: 01 00 00 A0 1C BC [08:37:35]Write i2c OK [08:37:35]MH_I2C_Read... [08:37:35]OFD Sender: No OFD packet to send [08:37:36]*** Cut start [08:37:36]*** Partial cut [08:37:36]*** CUTSNS_PIN = 1 [08:37:36]*** CUTSNS_PIN = 0 [08:37:36]*** Brake cut motor [08:37:36]Read from MH i2c: 01 [08:37:36]MH_I2C_Read... [08:37:36]*** Stop cut motor [08:37:36]*** Cut end [08:37:36]Read from MH i2c: 01 07 00 [08:37:36]MH_I2C_Read... [08:37:36]Read from MH i2c: 01 07 00 A0 1C 00 00 00 00 00 FF 0F D1 [08:37:36]process_action close_receipt done [08:37:36]requested_data is exist [08:37:36]produce_requested_data [08:37:36]requested_item fm.sn is exist - process it [08:37:36]wFMCommunicate request_size=4 [08:37:36]MH_SAM_APDU [08:37:36]CAPDU: 80 11 00 00 [08:37:36]Write to MH i2c: E2 08 00 A1 1C 80 11 00 00 00 00 00 00 37 [08:37:36]Write i2c OK [08:37:36]MH_I2C_Read... [08:37:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:37:36]Read from MH i2c: E2 [08:37:36]MH_I2C_Read... [08:37:36]Read from MH i2c: E2 17 00 [08:37:36]MH_I2C_Read... [08:37:36]Read from MH i2c: E2 17 00 A1 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8A [08:37: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:37:36]wFMCommunicate OK [08:37:36]requested_item fd.num is exist - process it [08:37:36]SAM_PROTO_GetFieldsCounters [08:37:36]wFMCommunicate request_size=4 [08:37:36]MH_SAM_APDU [08:37:36]CAPDU: 80 13 00 00 [08:37:36]Write to MH i2c: E2 08 00 A2 1C 80 13 00 00 00 00 00 00 3A [08:37:36]Write i2c OK [08:37:36]MH_I2C_Read... [08:37:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:37:37]Read from MH i2c: E2 [08:37:37]MH_I2C_Read... [08:37:37]Read from MH i2c: E2 62 00 [08:37:37]MH_I2C_Read... [08:37:37]Read from MH i2c: E2 62 00 A2 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 26 F1 02 00 0E 04 04 00 20 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 BF [08:37: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 26 F1 02 00 0E 04 04 00 20 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:37:37]wFMCommunicate OK [08:37:37]SAM_PROTO_GetFieldsCounters done [08:37:37]requested_item shift.num is exist - process it [08:37:37]requested_item shift.opened is exist - process it [08:37:37]req_shift_opened [08:37:37]FM_GetShiftState [08:37:37]SAM_PROTO_GetShiftState [08:37:37]wFMCommunicate request_size=4 [08:37:37]MH_SAM_APDU [08:37:37]CAPDU: 80 13 01 00 [08:37:37]Write to MH i2c: E2 08 00 A3 1C 80 13 01 00 00 00 00 00 3C [08:37:37]Write i2c OK [08:37:37]MH_I2C_Read... [08:37:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:37:37]Read from MH i2c: E2 [08:37:37]MH_I2C_Read... [08:37:37]Read from MH i2c: E2 0E 00 [08:37:37]MH_I2C_Read... [08:37:37]Read from MH i2c: E2 0E 00 A3 1C 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 42 [08:37:37]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [08:37:37]wFMCommunicate OK [08:37:37]SAM_PROTO_GetShiftState done [08:37:37]FM_GetShiftState done [08:37:37]req_shift_opened done [08:37:37]requested_item shift.open_date is exist - process it [08:37:37]req_shift_open_date [08:37:37]req_shift_open_date done [08:37:37]produce_requested_data done [08:37:37]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192806,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [08:37:37]process_action_free close_receipt [08:37:37]json_value_free [08:37:37]json_value_free done [08:37:37]process_json_proto returns [08:37:37]Send response to host [08:37:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192806,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [08:37:37]free response buf [08:37:37]execute_script done [08:37:37]execute_script returns [08:37:37]free content buf [08:37:37]Sock 9.Close socket [08:37:37]Sock 9.Thread stoped [08:37:40]OFD Sender: No OFD packet to send [08:37:45]OFD Sender: No OFD packet to send [08:37:50]OFD Sender: No OFD packet to send [08:37:55]OFD Sender: No OFD packet to send [08:38:00]OFD Sender: No OFD packet to send [08:38:05]OFD Sender: No OFD packet to send [08:38:10]OFD Sender: No OFD packet to send [08:38:15]OFD Sender: No OFD packet to send [08:38:20]OFD Sender: No OFD packet to send [08:38:25]OFD Sender: No OFD packet to send [08:38:30]OFD Sender: No OFD packet to send [08:38:35]OFD Sender: No OFD packet to send [08:38:40]OFD Sender: No OFD packet to send [08:38:45]OFD Sender: No OFD packet to send [08:38:50]OFD Sender: No OFD packet to send [08:38:55]OFD Sender: No OFD packet to send [08:39:00]OFD Sender: No OFD packet to send [08:39:05]OFD Sender: No OFD packet to send [08:39:10]OFD Sender: No OFD packet to send [08:39:15]OFD Sender: No OFD packet to send [08:39:20]OFD Sender: No OFD packet to send [08:39:25]OFD Sender: No OFD packet to send [08:39:30]OFD Sender: No OFD packet to send [08:39:35]OFD Sender: No OFD packet to send [08:39:40]OFD Sender: No OFD packet to send [08:39:45]OFD Sender: No OFD packet to send [08:39:50]OFD Sender: No OFD packet to send [08:39:55]OFD Sender: No OFD packet to send [08:40:00]OFD Sender: No OFD packet to send [08:40:05]OFD Sender: No OFD packet to send [08:40:10]OFD Sender: No OFD packet to send [08:40:15]OFD Sender: No OFD packet to send [08:40:20]OFD Sender: No OFD packet to send [08:40:26]OFD Sender: No OFD packet to send [08:40:31]OFD Sender: No OFD packet to send [08:40:36]OFD Sender: No OFD packet to send [08:40:41]OFD Sender: No OFD packet to send [08:40:46]OFD Sender: No OFD packet to send [08:40:51]OFD Sender: No OFD packet to send [08:40:56]OFD Sender: No OFD packet to send [08:41:01]OFD Sender: No OFD packet to send [08:41:06]OFD Sender: No OFD packet to send [08:41:11]OFD Sender: No OFD packet to send [08:41:16]OFD Sender: No OFD packet to send [08:41:21]OFD Sender: No OFD packet to send [08:41:26]OFD Sender: No OFD packet to send [08:41:31]OFD Sender: No OFD packet to send [08:41:36]OFD Sender: No OFD packet to send [08:41:41]OFD Sender: No OFD packet to send [08:41:46]OFD Sender: No OFD packet to send [08:41:51]OFD Sender: No OFD packet to send [08:41:56]OFD Sender: No OFD packet to send [08:42:01]OFD Sender: No OFD packet to send [08:42:06]OFD Sender: No OFD packet to send [08:42:11]OFD Sender: No OFD packet to send [08:42:16]OFD Sender: No OFD packet to send [08:42:21]OFD Sender: No OFD packet to send [08:42:26]OFD Sender: No OFD packet to send [08:42:31]OFD Sender: No OFD packet to send [08:42:36]OFD Sender: No OFD packet to send [08:42:41]OFD Sender: No OFD packet to send [08:42:46]OFD Sender: No OFD packet to send [08:42:51]OFD Sender: No OFD packet to send [08:42:56]OFD Sender: No OFD packet to send [08:43:01]OFD Sender: No OFD packet to send [08:43:06]OFD Sender: No OFD packet to send [08:43:11]OFD Sender: No OFD packet to send [08:43:16]OFD Sender: No OFD packet to send [08:43:21]OFD Sender: No OFD packet to send [08:43:26]OFD Sender: No OFD packet to send [08:43:31]OFD Sender: No OFD packet to send [08:43:36]OFD Sender: No OFD packet to send [08:43:41]OFD Sender: No OFD packet to send [08:43:46]OFD Sender: No OFD packet to send [08:43:51]OFD Sender: No OFD packet to send [08:43:56]OFD Sender: No OFD packet to send [08:44:01]OFD Sender: No OFD packet to send [08:44:06]OFD Sender: No OFD packet to send [08:44:11]OFD Sender: No OFD packet to send [08:44:15]accept exits with 8 [08:44:15]New connection [08:44:15]New thread 3066658148 created [08:44:15]Thread 3066801508 joined [08:44:15]Waiting for new connection... [08:44:15] Sock 8.Parse request [08:44:15]Sock 8.Check first char [08:44:15]Sock 8.First char is OK [08:44:15]request: POST /json_proto HTTP/1.0 [08:44:15]Method: POST [08:44:15]URL: /json_proto [08:44:15]Method is POST - this is cgi request [08:44:15]url: /json_proto [08:44:15]query_string will be loaded in cgi processing [08:44:15]execute_cgi json_proto POST (null) [08:44:15]execute_cgi path=json_proto method=POST [08:44:15]POST find Content-Length [08:44:15]Host: 172.17.63.131:8080 [08:44:15]Content-Length: 673 [08:44:15]Content-Type: application/json [08:44:15] [08:44:15]POST finish read [08:44:15]Found Content-Length = 673 [08:44:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32136", "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" ] } } [08:44:15]execute_script... [08:44: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)32136", "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" ] } } [08:44:15]POST & json_proto [08:44:15]process_json_proto [08:44:15]json parsed OK: [08:44:15]protocol is kg_v1.0 [08:44:15]action value=close_receipt [08:44:15]process_action close_receipt [08:44:15]cmd_close_receipt [08:44:15]MH_GetDate [08:44:15]Write to MH i2c: F0 00 00 A4 1C AF [08:44:15]Write i2c OK [08:44:15]MH_I2C_Read... [08:44:15]Read from MH i2c: F0 [08:44:15]MH_I2C_Read... [08:44:15]Read from MH i2c: F0 09 00 [08:44:15]MH_I2C_Read... [08:44:15]Read from MH i2c: F0 09 00 A4 1C 00 62 A0 20 67 22 05 6E 64 3A [08:44:15]GetLastDocTimeStamp 1730191056 [08:44:15]current date 1730191458 [08:44:15]FM_GetShiftState [08:44:15]SAM_PROTO_GetShiftState [08:44:15]wFMCommunicate request_size=4 [08:44:15]MH_SAM_APDU [08:44:15]CAPDU: 80 13 01 00 [08:44:15]Write to MH i2c: E2 08 00 A5 1C 80 13 01 00 00 00 00 00 3E [08:44:15]Write i2c OK [08:44:15]MH_I2C_Read... [08:44:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:15]Read from MH i2c: E2 [08:44:15]MH_I2C_Read... [08:44:15]Read from MH i2c: E2 0E 00 [08:44:15]MH_I2C_Read... [08:44:15]Read from MH i2c: E2 0E 00 A5 1C 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 44 [08:44:15]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [08:44:15]wFMCommunicate OK [08:44:15]SAM_PROTO_GetShiftState done [08:44:15]FM_GetShiftState done [08:44:15]opened in 1730161990 [08:44:15]opened+sec_in_day 1730248390 [08:44:15]quantity*price = 50063 [08:44:15]sum+1 = 50064 [08:44: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 СÐО: Общий режим Чек 13 29.10.2024 08:44 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192807 ФПД: 85315321141847 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T084418&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192807&fm=85315321141847&tin=02508201610067®Number=0000000000091776&sum=50000 [08:44:16]StoreToDocumentArchive [08:44:16]shift 544 fd 192807 [08:44:16]save to /storage/0544/doc_00192807 [08:44:16]save last doc name /storage/0544/doc_00192807 to /storage/kkm_last_doc_name [08:44:16]save OK [08:44:16]Clear old archive folders... [08:44:16]OFD Sender: No OFD packet to send [08:44:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:44:16]tlvbuf is B6E83230 [08:44:16]SAM_PROTO_ClearQueue [08:44:16]wFMCommunicate request_size=4 [08:44:16]MH_SAM_APDU [08:44:16]CAPDU: 80 09 00 00 [08:44:16]Write to MH i2c: E2 08 00 B2 1C 80 09 00 00 00 00 00 00 40 [08:44:16]Write i2c OK [08:44:16]MH_I2C_Read... [08:44:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:44:16]Read from MH i2c: E2 [08:44:16]MH_I2C_Read... [08:44:16]Read from MH i2c: E2 03 00 [08:44:16]MH_I2C_Read... [08:44:16]Read from MH i2c: E2 03 00 B2 1C 00 90 00 42 [08:44:16]RAPDU: 90 00 [08:44:16]wFMCommunicate OK [08:44:16]SAM_PROTO_ClearQueue done [08:44:16]KKMCreateOFDPacket [08:44:16]OFDProtocolAddRootSTLVToBuf [08:44:16]FM_MakeSignedData [08:44:16]FM_MakeSignedData [08:44:16]SAM_PROTO_SignData [08:44:16]wFMCommunicate request_size=4 [08:44:16]MH_SAM_APDU [08:44:16]CAPDU: 80 0D 01 02 [08:44:16]Write to MH i2c: E2 08 00 B3 1C 80 0D 01 02 00 00 00 00 48 [08:44:16]Write i2c OK [08:44:16]MH_I2C_Read... [08:44:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:44:16]Read from MH i2c: E2 [08:44:16]MH_I2C_Read... [08:44:16]Read from MH i2c: E2 03 00 [08:44:16]MH_I2C_Read... [08:44:16]Read from MH i2c: E2 03 00 B3 1C 00 90 00 43 [08:44:16]RAPDU: 90 00 [08:44:16]wFMCommunicate OK [08:44:16]wFMCommunicate request_size=255 [08:44:16]MH_SAM_APDU [08:44: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 0D 00 00 00 F4 03 04 00 62 A0 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 4D 98 05 69 [08:44:16]Write to MH i2c: E2 02 01 B4 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 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 62 A0 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 4D 98 05 69 00 00 7F [08:44:16]Write i2c OK [08:44:16]MH_I2C_Read... [08:44:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:16]Read from MH i2c: E2 [08:44:16]MH_I2C_Read... [08:44:16]Read from MH i2c: E2 03 00 [08:44:16]MH_I2C_Read... [08:44:16]Read from MH i2c: E2 03 00 B4 1C 00 90 00 44 [08:44:16]RAPDU: 90 00 [08:44:16]wFMCommunicate OK [08:44:16]wFMCommunicate request_size=7 [08:44:16]MH_SAM_APDU [08:44:16]CAPDU: 80 0D 02 02 02 1A 57 [08:44:16]Write to MH i2c: E2 0A 00 B5 1C 80 0D 02 02 02 00 1A 57 00 00 C0 [08:44:16]Write i2c OK [08:44:16]MH_I2C_Read... [08:44:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:16]Read from MH i2c: E2 [08:44:16]MH_I2C_Read... [08:44:16]Read from MH i2c: E2 03 00 [08:44:16]MH_I2C_Read... [08:44:16]Read from MH i2c: E2 03 00 B5 1C 00 90 00 45 [08:44:16]RAPDU: 90 00 [08:44:16]wFMCommunicate OK [08:44:16]wFMCommunicate request_size=4 [08:44:16]MH_SAM_APDU [08:44:16]CAPDU: 80 0D 03 02 [08:44:16]Write to MH i2c: E2 08 00 B6 1C 80 0D 03 02 00 00 00 00 4D [08:44:16]Write i2c OK [08:44:16]MH_I2C_Read... [08:44:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:44:16]Read from MH i2c: E2 [08:44:16]MH_I2C_Read... [08:44:16]Read from MH i2c: E2 0B 00 [08:44:16]MH_I2C_Read... [08:44:16]Read from MH i2c: E2 0B 00 B6 1C 00 DA 44 0F 24 14 43 D6 3D 90 00 09 [08:44:16]RAPDU: DA 44 0F 24 14 43 D6 3D 90 00 [08:44:16]wFMCommunicate OK [08:44:16]SAM_PROTO_SignData done [08:44:16]FM_MakeSignedData done [08:44:16]CreateOFDProtocolMessage [08:44:16]wFMCommunicate request_size=4 [08:44:16]MH_SAM_APDU [08:44:16]CAPDU: 80 11 00 00 [08:44:16]Write to MH i2c: E2 08 00 B7 1C 80 11 00 00 00 00 00 00 4D [08:44:16]Write i2c OK [08:44:16]MH_I2C_Read... [08:44:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:16]Read from MH i2c: E2 [08:44:16]MH_I2C_Read... [08:44:16]Read from MH i2c: E2 17 00 [08:44:16]MH_I2C_Read... [08:44:16]Read from MH i2c: E2 17 00 B7 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A0 [08:44: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:44:16]wFMCommunicate OK [08:44:16]CreateOFDProtocolMessage done [08:44:16]OFDSenderStorePacket 192807 [08:44:16]StoreOFDPacket docnum=192807 [08:44: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 13 87 04 01 5C 7B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 62 A0 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 4D 98 05 69 1A 57 DA 44 0F 24 14 43 D6 3D [08:44:16]CheckFolder [08:44:16]dirname=/storage/ofd_packets [08:44:16]CheckFolder done [08:44:16]ProducePacketName [08:44:16]name=ofd_packets/00192807 [08:44:16]NVStorageSaveData ofd_packets/00192807 [08:44:16]File name is /storage/ofd_packets/00192807 [08:44:16]Write 298 bytes [08:44:16]NVStorageSaveData done [08:44:16]OFDSenderStorePacket done [08:44:16]KKMCreateOFDPacket done [08:44:16]NVStorageSaveData kkm_last_timestamp [08:44:16]File name is /storage/kkm_last_timestamp [08:44:16]Write 4 bytes [08:44:16]NVStorageSaveData done [08:44:16]ExternCall_PrintAddStr [08:44:16]wPrintStart [08:44:16]Write to MH i2c: 01 00 00 B8 1C D4 [08:44:16]Write i2c OK [08:44:16]MH_I2C_Read... [08:44:16]Read from MH i2c: 01 [08:44:16]MH_I2C_Read... [08:44:16]Read from MH i2c: 01 07 00 [08:44:16]MH_I2C_Read... [08:44:16]Read from MH i2c: 01 07 00 B8 1C 00 00 00 00 00 FF 0F E9 [08:44:16]RasterBufferAndPrint [08:44:16]line Счет N : (1)32136 [08:44:16]line ИÐÐ: 02508201610067 [08:44:16]line Контрольно-КаÑÑовый Чек [08:44:16]line ПРОДÐЖР[08:44:16]line ТРК (МРК, ГÐК) : 11 [08:44:16]line Товар: 2710194210 [08:44:16]line ДТ-К-5 [08:44:16]line 6.570 * 76.20 [08:44:16]line = 500.63 [08:44:16]line ÐДС 12% ÐСП 1% [08:44:16]line > о реализуемом товаре [08:44:16]line ОКРУГЛЕÐИЕ: -0.63 [08:44:16]line ИТОГО: 500.00 [08:44:16]line ВнеÑено: 500.00 [08:44:16]line СДÐЧÐ: 0.00 [08:44:16]line ÐСП 1% : 4.43 [08:44:16]line ÐДС 12% : 53.16 [08:44:16]line Ðаличными: 500.00 [08:44:16]line Безнал.: 0.00 [08:44:16]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [08:44:16]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [08:44:16]line СÐО: Общий режим [08:44:16]line Чек 13 29.10.2024 08:44 [08:44:16]line Смена: 544 ФФД: 1.0 [08:44:16]line ЗÐМ: 0300000110 [08:44:16]line РÐМ: 0000000000091776 [08:44:16]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [08:44:16]line ФМ: 0000000000871754 [08:44:16]line ФД: 192807 [08:44:16]line ФПД: 85315321141847 [08:44:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T084418&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192807&fm=85315321141847&tin=02508201610067®Number=0000000000091776&sum=50000 [08:44:17]OFD Sender: Processing packet 192807 [packets to send 75, broken 74] [08:44:17]ProducePacketName [08:44:17]name=ofd_packets/00192807 [08:44:17]OFD Sender: To server: ‡•öpG, [08:44:17]CommunicateWithHost lk.salyk.kg:30040 [08:44:17]ConnectInit lk.salyk.kg [08:44:17]written 0, free lines is 4095 [08:44:17]Connected sock=10 [08:44: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 13 87 04 01 5C 7B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 62 A0 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 4D 98 05 69 1A 57 DA 44 0F 24 14 43 D6 3D [08:44: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 31 A9 47 00 34 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 27 F1 02 00 F4 03 04 00 24 45 20 67 B6 04 01 00 00 3E 9B 71 B8 9A AD 9B C6 [08:44:17]CommunicateWithHost err = 0 [08:44:17]CheckOFDResponse [08:44:17]1017 (14) - 77093643461234 [08:44:17]1041 (16) - 0000000000871754 [08:44:17]1040 (4) - 192807 [08:44:17]1012 (4) - 29.10.2024 02:15 [08:44:17]1206 (1) - 0 [08:44:17]OFD Sender: Remove packet 192807 [08:44:17]ProducePacketName [08:44:17]name=ofd_packets/00192807 [08:44:17]NVStorageDeleteData [08:44:17]Write to MH i2c: 01 00 00 E3 1C FF [08:44:17]Write i2c OK [08:44:17]MH_I2C_Read... [08:44:17]Read from MH i2c: 01 [08:44:17]MH_I2C_Read... [08:44:17]Read from MH i2c: 01 07 00 [08:44:17]MH_I2C_Read... [08:44:17]Read from MH i2c: 01 07 00 E3 1C 00 00 00 00 00 A1 0C B3 [08:44:17]RasterBufferAndPrint [08:44:17]line [08:44:17]line [08:44:17]line [08:44:17]line [08:44:17]line [08:44:17]written 0, free lines is 3239 [08:44:17]MH_Cut [08:44:17]Write to MH i2c: D1 01 00 EA 1C 01 D8 [08:44:17]Write i2c OK [08:44:17]MH_I2C_Read... [08:44:17]Read from MH i2c: D1 [08:44:17]MH_I2C_Read... [08:44:17]Read from MH i2c: D1 01 00 [08:44:17]MH_I2C_Read... [08:44:17]Read from MH i2c: D1 01 00 EA 1C 00 D7 [08:44:17]Write to MH i2c: 01 00 00 EB 1C 07 [08:44:17]Write i2c OK [08:44:17]MH_I2C_Read... [08:44:17]OFD Sender: No OFD packet to send [08:44:18]*** Cut start [08:44:18]*** Partial cut [08:44:18]*** CUTSNS_PIN = 1 [08:44:18]*** CUTSNS_PIN = 0 [08:44:18]*** Brake cut motor [08:44:19]Read from MH i2c: 01 [08:44:19]MH_I2C_Read... [08:44:19]*** Stop cut motor [08:44:19]*** Cut end [08:44:19]Read from MH i2c: 01 07 00 [08:44:19]MH_I2C_Read... [08:44:19]Read from MH i2c: 01 07 00 EB 1C 00 00 00 00 00 FF 0F 1C [08:44:19]process_action close_receipt done [08:44:19]requested_data is exist [08:44:19]produce_requested_data [08:44:19]requested_item fm.sn is exist - process it [08:44:19]wFMCommunicate request_size=4 [08:44:19]MH_SAM_APDU [08:44:19]CAPDU: 80 11 00 00 [08:44:19]Write to MH i2c: E2 08 00 EC 1C 80 11 00 00 00 00 00 00 82 [08:44:19]Write i2c OK [08:44:19]MH_I2C_Read... [08:44:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:19]Read from MH i2c: E2 [08:44:19]MH_I2C_Read... [08:44:19]Read from MH i2c: E2 17 00 [08:44:19]MH_I2C_Read... [08:44:19]Read from MH i2c: E2 17 00 EC 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D5 [08:44:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:44:19]wFMCommunicate OK [08:44:19]requested_item fd.num is exist - process it [08:44:19]SAM_PROTO_GetFieldsCounters [08:44:19]wFMCommunicate request_size=4 [08:44:19]MH_SAM_APDU [08:44:19]CAPDU: 80 13 00 00 [08:44:19]Write to MH i2c: E2 08 00 ED 1C 80 13 00 00 00 00 00 00 85 [08:44:19]Write i2c OK [08:44:19]MH_I2C_Read... [08:44:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:44:19]Read from MH i2c: E2 [08:44:19]MH_I2C_Read... [08:44:19]Read from MH i2c: E2 62 00 [08:44:19]MH_I2C_Read... [08:44:19]Read from MH i2c: E2 62 00 ED 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 27 F1 02 00 0E 04 04 00 20 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 0E [08:44: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 27 F1 02 00 0E 04 04 00 20 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:44:19]wFMCommunicate OK [08:44:19]SAM_PROTO_GetFieldsCounters done [08:44:19]requested_item shift.num is exist - process it [08:44:19]requested_item shift.opened is exist - process it [08:44:19]req_shift_opened [08:44:19]FM_GetShiftState [08:44:19]SAM_PROTO_GetShiftState [08:44:19]wFMCommunicate request_size=4 [08:44:19]MH_SAM_APDU [08:44:19]CAPDU: 80 13 01 00 [08:44:19]Write to MH i2c: E2 08 00 EE 1C 80 13 01 00 00 00 00 00 87 [08:44:19]Write i2c OK [08:44:19]MH_I2C_Read... [08:44:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:19]Read from MH i2c: E2 [08:44:19]MH_I2C_Read... [08:44:19]Read from MH i2c: E2 0E 00 [08:44:19]MH_I2C_Read... [08:44:19]Read from MH i2c: E2 0E 00 EE 1C 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 8D [08:44:19]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [08:44:19]wFMCommunicate OK [08:44:19]SAM_PROTO_GetShiftState done [08:44:19]FM_GetShiftState done [08:44:19]req_shift_opened done [08:44:19]requested_item shift.open_date is exist - process it [08:44:19]req_shift_open_date [08:44:19]req_shift_open_date done [08:44:19]produce_requested_data done [08:44:19]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192807,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [08:44:19]process_action_free close_receipt [08:44:19]json_value_free [08:44:19]json_value_free done [08:44:19]process_json_proto returns [08:44:19]Send response to host [08:44:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192807,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [08:44:19]free response buf [08:44:19]execute_script done [08:44:19]execute_script returns [08:44:19]free content buf [08:44:19]Sock 8.Close socket [08:44:19]Sock 8.Thread stoped [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:12]accept exits with 9 [08:46:12]New connection [08:46:12]New thread 3066801508 created [08:46:12]Thread 3066658148 joined [08:46:12]Waiting for new connection... [08:46:12] Sock 9.Parse request [08:46:12]Sock 9.Check first char [08:46:12]Sock 9.First char is OK [08:46:12]request: POST /json_proto HTTP/1.0 [08:46:12]Method: POST [08:46:12]URL: /json_proto [08:46:12]Method is POST - this is cgi request [08:46:12]url: /json_proto [08:46:12]query_string will be loaded in cgi processing [08:46:12]execute_cgi json_proto POST (null) [08:46:12]execute_cgi path=json_proto method=POST [08:46:12]POST find Content-Length [08:46:12]Host: 172.17.63.131:8080 [08:46:12]Content-Length: 676 [08:46:12]Content-Type: application/json [08:46:12] [08:46:12]POST finish read [08:46:12]Found Content-Length = 676 [08:46:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32137", "tax_sys" : 0, "items" : [ { "pre_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.660, "sum" : 311.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 311.00, "payments": [ { "type": 0, "sum" : 311.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:12]execute_script... [08:46: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)32137", "tax_sys" : 0, "items" : [ { "pre_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.660, "sum" : 311.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 311.00, "payments": [ { "type": 0, "sum" : 311.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:12]POST & json_proto [08:46:12]process_json_proto [08:46:12]json parsed OK: [08:46:12]protocol is kg_v1.0 [08:46:12]action value=close_receipt [08:46:12]process_action close_receipt [08:46:12]cmd_close_receipt [08:46:12]MH_GetDate [08:46:12]Write to MH i2c: F0 00 00 EF 1C FA [08:46:12]Write i2c OK [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: F0 [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: F0 09 00 [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: F0 09 00 EF 1C 00 D8 A0 20 67 22 05 6E 64 FB [08:46:12]GetLastDocTimeStamp 1730191458 [08:46:12]current date 1730191576 [08:46:12]FM_GetShiftState [08:46:12]SAM_PROTO_GetShiftState [08:46:12]wFMCommunicate request_size=4 [08:46:12]MH_SAM_APDU [08:46:12]CAPDU: 80 13 01 00 [08:46:12]Write to MH i2c: E2 08 00 F0 1C 80 13 01 00 00 00 00 00 89 [08:46:12]Write i2c OK [08:46:12]MH_I2C_Read... [08:46:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:12]Read from MH i2c: E2 [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: E2 0E 00 [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: E2 0E 00 F0 1C 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 8F [08:46:12]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [08:46:12]wFMCommunicate OK [08:46:12]SAM_PROTO_GetShiftState done [08:46:12]FM_GetShiftState done [08:46:12]opened in 1730161990 [08:46:12]opened+sec_in_day 1730248390 [08:46:12]quantity*price = 31175 [08:46:12]sum+1 = 31176 [08:46:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.75 ИТОГО: 311.00 ВнеÑено: 500.00 СДÐЧÐ: 189.00 ÐСП 1% : 2.76 ÐДС 12% : 33.11 Ðаличными: 311.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 170 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 СÐО: Общий режим Чек 14 29.10.2024 08:46 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192808 ФПД: 316298077307 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T084616&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192808&fm=316298077307&tin=02508201610067®Number=0000000000091776&sum=31100 [08:46:14]StoreToDocumentArchive [08:46:14]shift 544 fd 192808 [08:46:14]save to /storage/0544/doc_00192808 [08:46:14]save last doc name /storage/0544/doc_00192808 to /storage/kkm_last_doc_name [08:46:14]save OK [08:46:14]Clear old archive folders... [08:46:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:46:14]tlvbuf is 00FD9E60 [08:46:14]SAM_PROTO_ClearQueue [08:46:14]wFMCommunicate request_size=4 [08:46:14]MH_SAM_APDU [08:46:14]CAPDU: 80 09 00 00 [08:46:14]Write to MH i2c: E2 08 00 FD 1C 80 09 00 00 00 00 00 00 8B [08:46:14]Write i2c OK [08:46:14]MH_I2C_Read... [08:46:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:46:14]Read from MH i2c: E2 [08:46:14]MH_I2C_Read... [08:46:14]Read from MH i2c: E2 03 00 [08:46:14]MH_I2C_Read... [08:46:14]Read from MH i2c: E2 03 00 FD 1C 00 90 00 8D [08:46:14]RAPDU: 90 00 [08:46:14]wFMCommunicate OK [08:46:14]SAM_PROTO_ClearQueue done [08:46:14]KKMCreateOFDPacket [08:46:14]OFDProtocolAddRootSTLVToBuf [08:46:14]FM_MakeSignedData [08:46:14]FM_MakeSignedData [08:46:14]SAM_PROTO_SignData [08:46:14]wFMCommunicate request_size=4 [08:46:14]MH_SAM_APDU [08:46:14]CAPDU: 80 0D 01 02 [08:46:14]Write to MH i2c: E2 08 00 FE 1C 80 0D 01 02 00 00 00 00 93 [08:46:14]Write i2c OK [08:46:14]MH_I2C_Read... [08:46:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:46:14]Read from MH i2c: E2 [08:46:14]MH_I2C_Read... [08:46:14]Read from MH i2c: E2 03 00 [08:46:14]MH_I2C_Read... [08:46:14]Read from MH i2c: E2 03 00 FE 1C 00 90 00 8E [08:46:14]RAPDU: 90 00 [08:46:14]wFMCommunicate OK [08:46:14]wFMCommunicate request_size=255 [08:46:14]MH_SAM_APDU [08:46: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 34 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 0C 00 00 00 00 07 04 06 00 7C 79 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 D8 A0 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 00 [08:46:14]Write to MH i2c: E2 02 01 FF 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 34 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 0C 00 00 00 00 07 04 06 00 7C 79 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 D8 A0 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 00 00 00 A8 [08:46:14]Write i2c OK [08:46:14]MH_I2C_Read... [08:46:14]Read from MH i2c: E2 [08:46:14]MH_I2C_Read... [08:46:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:14]Read from MH i2c: E2 03 00 [08:46:14]MH_I2C_Read... [08:46:14]Read from MH i2c: E2 03 00 FF 1C 00 90 00 8F [08:46:14]RAPDU: 90 00 [08:46:14]wFMCommunicate OK [08:46:14]wFMCommunicate request_size=10 [08:46:14]MH_SAM_APDU [08:46:14]CAPDU: 80 0D 02 02 05 49 A4 D5 A4 7B [08:46:14]Write to MH i2c: E2 0D 00 00 1D 80 0D 02 02 05 00 49 A4 D5 A4 7B 00 00 82 [08:46:14]Write i2c OK [08:46:14]MH_I2C_Read... [08:46:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:14]Read from MH i2c: E2 [08:46:14]MH_I2C_Read... [08:46:14]Read from MH i2c: E2 03 00 [08:46:14]MH_I2C_Read... [08:46:14]Read from MH i2c: E2 03 00 00 1D 00 90 00 91 [08:46:14]RAPDU: 90 00 [08:46:14]wFMCommunicate OK [08:46:14]wFMCommunicate request_size=4 [08:46:14]MH_SAM_APDU [08:46:14]CAPDU: 80 0D 03 02 [08:46:14]Write to MH i2c: E2 08 00 01 1D 80 0D 03 02 00 00 00 00 99 [08:46:14]Write i2c OK [08:46:14]MH_I2C_Read... [08:46:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:46:14]Read from MH i2c: E2 [08:46:14]MH_I2C_Read... [08:46:14]Read from MH i2c: E2 0B 00 [08:46:14]MH_I2C_Read... [08:46:14]Read from MH i2c: E2 0B 00 01 1D 00 84 A7 BF 89 E5 30 99 5C 90 00 17 [08:46:14]RAPDU: 84 A7 BF 89 E5 30 99 5C 90 00 [08:46:14]wFMCommunicate OK [08:46:14]SAM_PROTO_SignData done [08:46:14]FM_MakeSignedData done [08:46:14]CreateOFDProtocolMessage [08:46:14]wFMCommunicate request_size=4 [08:46:14]MH_SAM_APDU [08:46:14]CAPDU: 80 11 00 00 [08:46:14]Write to MH i2c: E2 08 00 02 1D 80 11 00 00 00 00 00 00 99 [08:46:14]Write i2c OK [08:46:14]MH_I2C_Read... [08:46:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:14]Read from MH i2c: E2 [08:46:14]MH_I2C_Read... [08:46:14]Read from MH i2c: E2 17 00 [08:46:14]MH_I2C_Read... [08:46:14]Read from MH i2c: E2 17 00 02 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EC [08:46:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:46:14]wFMCommunicate OK [08:46:14]CreateOFDProtocolMessage done [08:46:14]OFDSenderStorePacket 192808 [08:46:14]StoreOFDPacket docnum=192808 [08:46: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 A7 6A 07 01 A4 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 34 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 0C 00 00 00 00 07 04 06 00 7C 79 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 D8 A0 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 00 49 A4 D5 A4 7B 84 A7 BF 89 E5 30 99 5C [08:46:14]CheckFolder [08:46:14]dirname=/storage/ofd_packets [08:46:14]CheckFolder done [08:46:14]ProducePacketName [08:46:14]name=ofd_packets/00192808 [08:46:14]NVStorageSaveData ofd_packets/00192808 [08:46:14]File name is /storage/ofd_packets/00192808 [08:46:14]Write 301 bytes [08:46:14]NVStorageSaveData done [08:46:14]OFDSenderStorePacket done [08:46:14]KKMCreateOFDPacket done [08:46:14]NVStorageSaveData kkm_last_timestamp [08:46:14]File name is /storage/kkm_last_timestamp [08:46:14]Write 4 bytes [08:46:14]NVStorageSaveData done [08:46:14]ExternCall_PrintAddStr [08:46:14]wPrintStart [08:46:14]Write to MH i2c: 01 00 00 03 1D 20 [08:46:14]Write i2c OK [08:46:14]MH_I2C_Read... [08:46:14]Read from MH i2c: 01 [08:46:14]MH_I2C_Read... [08:46:14]Read from MH i2c: 01 07 00 [08:46:14]MH_I2C_Read... [08:46:14]Read from MH i2c: 01 07 00 03 1D 00 00 00 00 00 FF 0F 35 [08:46:14]RasterBufferAndPrint [08:46:14]line Счет N : (1)32137 [08:46:14]line ИÐÐ: 02508201610067 [08:46:14]line Контрольно-КаÑÑовый Чек [08:46:14]line ПРОДÐЖР[08:46:14]line ТРК (МРК, ГÐК) : 21 [08:46:14]line Товар: 2710124130 [08:46:14]line Ðи-92-К-5 [08:46:14]line 4.660 * 66.90 [08:46:14]line = 311.75 [08:46:14]line ÐДС 12% ÐСП 1% [08:46:14]line > о реализуемом товаре [08:46:14]line ОКРУГЛЕÐИЕ: -0.75 [08:46:14]line ИТОГО: 311.00 [08:46:14]line ВнеÑено: 500.00 [08:46:14]line СДÐЧÐ: 189.00 [08:46:14]line ÐСП 1% : 2.76 [08:46:14]line ÐДС 12% : 33.11 [08:46:14]line Ðаличными: 311.00 [08:46:14]line Безнал.: 0.00 [08:46:14]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [08:46:14]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [08:46:14]line СÐО: Общий режим [08:46:14]line Чек 14 29.10.2024 08:46 [08:46:14]line Смена: 544 ФФД: 1.0 [08:46:14]line ЗÐМ: 0300000110 [08:46:14]line РÐМ: 0000000000091776 [08:46:14]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [08:46:14]line ФМ: 0000000000871754 [08:46:14]line ФД: 192808 [08:46:14]line ФПД: 316298077307 [08:46:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T084616&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192808&fm=316298077307&tin=02508201610067®Number=0000000000091776&sum=31100 [08:46:14]OFD Sender: Processing packet 192808 [packets to send 75, broken 74] [08:46:14]ProducePacketName [08:46:14]name=ofd_packets/00192808 [08:46:14]OFD Sender: To server: ‡•öpG, [08:46:14]CommunicateWithHost lk.salyk.kg:30040 [08:46:14]ConnectInit lk.salyk.kg [08:46:14]written 0, free lines is 4095 [08:46:14]Connected sock=10 [08:46: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 A7 6A 07 01 A4 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 34 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 0C 00 00 00 00 07 04 06 00 7C 79 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 D8 A0 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 00 49 A4 D5 A4 7B 84 A7 BF 89 E5 30 99 5C [08:46: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 21 1A 47 00 1E 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 28 F1 02 00 F4 03 04 00 99 45 20 67 B6 04 01 00 00 69 5F 1F BC C5 21 FE 94 [08:46:15]CommunicateWithHost err = 0 [08:46:15]CheckOFDResponse [08:46:15]1017 (14) - 77093643461234 [08:46:15]1041 (16) - 0000000000871754 [08:46:15]1040 (4) - 192808 [08:46:15]1012 (4) - 29.10.2024 02:16 [08:46:15]1206 (1) - 0 [08:46:15]OFD Sender: Remove packet 192808 [08:46:15]ProducePacketName [08:46:15]name=ofd_packets/00192808 [08:46:15]NVStorageDeleteData [08:46:15]Write to MH i2c: 01 00 00 2E 1D 4B [08:46:15]Write i2c OK [08:46:15]MH_I2C_Read... [08:46:15]Read from MH i2c: 01 [08:46:15]MH_I2C_Read... [08:46:15]Read from MH i2c: 01 07 00 [08:46:15]MH_I2C_Read... [08:46:15]Read from MH i2c: 01 07 00 2E 1D 00 00 00 00 00 A5 0C 03 [08:46:15]RasterBufferAndPrint [08:46:15]line [08:46:15]line [08:46:15]line [08:46:15]line [08:46:15]line [08:46:15]written 0, free lines is 3241 [08:46:15]MH_Cut [08:46:15]Write to MH i2c: D1 01 00 35 1D 01 24 [08:46:15]Write i2c OK [08:46:15]MH_I2C_Read... [08:46:15]Read from MH i2c: D1 [08:46:15]MH_I2C_Read... [08:46:15]Read from MH i2c: D1 01 00 [08:46:15]MH_I2C_Read... [08:46:15]Read from MH i2c: D1 01 00 35 1D 00 23 [08:46:15]Write to MH i2c: 01 00 00 36 1D 53 [08:46:15]Write i2c OK [08:46:15]MH_I2C_Read... [08:46:15]OFD Sender: No OFD packet to send [08:46:16]*** Cut start [08:46:16]*** Partial cut [08:46:16]*** CUTSNS_PIN = 1 [08:46:16]*** CUTSNS_PIN = 0 [08:46:16]*** Brake cut motor [08:46:16]Read from MH i2c: 01 [08:46:16]MH_I2C_Read... [08:46:16]*** Stop cut motor [08:46:16]*** Cut end [08:46:16]Read from MH i2c: 01 07 00 [08:46:16]MH_I2C_Read... [08:46:16]Read from MH i2c: 01 07 00 36 1D 00 00 00 00 00 FF 0F 68 [08:46:16]process_action close_receipt done [08:46:16]requested_data is exist [08:46:16]produce_requested_data [08:46:16]requested_item fm.sn is exist - process it [08:46:16]wFMCommunicate request_size=4 [08:46:16]MH_SAM_APDU [08:46:16]CAPDU: 80 11 00 00 [08:46:16]Write to MH i2c: E2 08 00 37 1D 80 11 00 00 00 00 00 00 CE [08:46:16]Write i2c OK [08:46:16]MH_I2C_Read... [08:46:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:16]Read from MH i2c: E2 [08:46:16]MH_I2C_Read... [08:46:16]Read from MH i2c: E2 17 00 [08:46:16]MH_I2C_Read... [08:46:16]Read from MH i2c: E2 17 00 37 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 21 [08:46: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:46:16]wFMCommunicate OK [08:46:16]requested_item fd.num is exist - process it [08:46:16]SAM_PROTO_GetFieldsCounters [08:46:16]wFMCommunicate request_size=4 [08:46:16]MH_SAM_APDU [08:46:16]CAPDU: 80 13 00 00 [08:46:16]Write to MH i2c: E2 08 00 38 1D 80 13 00 00 00 00 00 00 D1 [08:46:16]Write i2c OK [08:46:16]MH_I2C_Read... [08:46:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:46:17]Read from MH i2c: E2 [08:46:17]MH_I2C_Read... [08:46:17]Read from MH i2c: E2 62 00 [08:46:17]MH_I2C_Read... [08:46:17]Read from MH i2c: E2 62 00 38 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 28 F1 02 00 0E 04 04 00 20 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 5E [08:46: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 28 F1 02 00 0E 04 04 00 20 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:46:17]wFMCommunicate OK [08:46:17]SAM_PROTO_GetFieldsCounters done [08:46:17]requested_item shift.num is exist - process it [08:46:17]requested_item shift.opened is exist - process it [08:46:17]req_shift_opened [08:46:17]FM_GetShiftState [08:46:17]SAM_PROTO_GetShiftState [08:46:17]wFMCommunicate request_size=4 [08:46:17]MH_SAM_APDU [08:46:17]CAPDU: 80 13 01 00 [08:46:17]Write to MH i2c: E2 08 00 39 1D 80 13 01 00 00 00 00 00 D3 [08:46:17]Write i2c OK [08:46:17]MH_I2C_Read... [08:46:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:17]Read from MH i2c: E2 [08:46:17]MH_I2C_Read... [08:46:17]Read from MH i2c: E2 0E 00 [08:46:17]MH_I2C_Read... [08:46:17]Read from MH i2c: E2 0E 00 39 1D 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 D9 [08:46:17]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [08:46:17]wFMCommunicate OK [08:46:17]SAM_PROTO_GetShiftState done [08:46:17]FM_GetShiftState done [08:46:17]req_shift_opened done [08:46:17]requested_item shift.open_date is exist - process it [08:46:17]req_shift_open_date [08:46:17]req_shift_open_date done [08:46:17]produce_requested_data done [08:46:17]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192808,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [08:46:17]process_action_free close_receipt [08:46:17]json_value_free [08:46:17]json_value_free done [08:46:17]process_json_proto returns [08:46:17]Send response to host [08:46:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192808,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [08:46:17]free response buf [08:46:17]execute_script done [08:46:17]execute_script returns [08:46:17]free content buf [08:46:17]Sock 9.Close socket [08:46:17]Sock 9.Thread stoped [08:46:20]OFD Sender: No OFD packet to send [08:46:25]OFD Sender: No OFD packet to send [08:46:30]OFD Sender: No OFD packet to send [08:46:35]OFD Sender: No OFD packet to send [08:46:40]OFD Sender: No OFD packet to send [08:46:45]OFD Sender: No OFD packet to send [08:46:50]OFD Sender: No OFD packet to send [08:46:54]accept exits with 8 [08:46:54]New connection [08:46:54]New thread 3066658148 created [08:46:54]Thread 3066801508 joined [08:46:54]Waiting for new connection... [08:46:54] Sock 8.Parse request [08:46:54]Sock 8.Check first char [08:46:54]Sock 8.First char is OK [08:46:54]request: POST /json_proto HTTP/1.0 [08:46:54]Method: POST [08:46:54]URL: /json_proto [08:46:54]Method is POST - this is cgi request [08:46:54]url: /json_proto [08:46:54]query_string will be loaded in cgi processing [08:46:54]execute_cgi json_proto POST (null) [08:46:54]execute_cgi path=json_proto method=POST [08:46:54]POST find Content-Length [08:46:54]Host: 172.17.63.131:8080 [08:46:54]Content-Length: 676 [08:46:54]Content-Type: application/json [08:46:54] [08:46:54]POST finish read [08:46:54]Found Content-Length = 676 [08:46:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32138", "tax_sys" : 0, "items" : [ { "pre_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" ] } } [08:46:54]execute_script... [08:46: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)32138", "tax_sys" : 0, "items" : [ { "pre_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" ] } } [08:46:54]POST & json_proto [08:46:54]process_json_proto [08:46:54]json parsed OK: [08:46:54]protocol is kg_v1.0 [08:46:54]action value=close_receipt [08:46:54]process_action close_receipt [08:46:54]cmd_close_receipt [08:46:54]MH_GetDate [08:46:54]Write to MH i2c: F0 00 00 3A 1D 46 [08:46:54]Write i2c OK [08:46:54]MH_I2C_Read... [08:46:54]Read from MH i2c: F0 [08:46:54]MH_I2C_Read... [08:46:54]Read from MH i2c: F0 09 00 [08:46:54]MH_I2C_Read... [08:46:54]Read from MH i2c: F0 09 00 3A 1D 00 02 A1 20 67 22 05 6E 64 72 [08:46:54]GetLastDocTimeStamp 1730191576 [08:46:54]current date 1730191618 [08:46:54]FM_GetShiftState [08:46:54]SAM_PROTO_GetShiftState [08:46:54]wFMCommunicate request_size=4 [08:46:54]MH_SAM_APDU [08:46:54]CAPDU: 80 13 01 00 [08:46:54]Write to MH i2c: E2 08 00 3B 1D 80 13 01 00 00 00 00 00 D5 [08:46:54]Write i2c OK [08:46:54]MH_I2C_Read... [08:46:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:54]Read from MH i2c: E2 [08:46:54]MH_I2C_Read... [08:46:54]Read from MH i2c: E2 0E 00 [08:46:54]MH_I2C_Read... [08:46:54]Read from MH i2c: E2 0E 00 3B 1D 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 DB [08:46:54]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [08:46:54]wFMCommunicate OK [08:46:54]SAM_PROTO_GetShiftState done [08:46:54]FM_GetShiftState done [08:46:54]opened in 1730161990 [08:46:54]opened+sec_in_day 1730248390 [08:46:54]quantity*price = 20003 [08:46:54]sum+1 = 20004 [08:46:54]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 СÐО: Общий режим Чек 15 29.10.2024 08:46 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192809 ФПД: 168904753352998 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T084658&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192809&fm=168904753352998&tin=02508201610067®Number=0000000000091776&sum=20000 [08:46:55]StoreToDocumentArchive [08:46:55]shift 544 fd 192809 [08:46:55]save to /storage/0544/doc_00192809 [08:46:55]save last doc name /storage/0544/doc_00192809 to /storage/kkm_last_doc_name [08:46:55]save OK [08:46:55]Clear old archive folders... [08:46:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:46:55]tlvbuf is B6F309E0 [08:46:55]SAM_PROTO_ClearQueue [08:46:55]wFMCommunicate request_size=4 [08:46:55]MH_SAM_APDU [08:46:55]CAPDU: 80 09 00 00 [08:46:55]Write to MH i2c: E2 08 00 48 1D 80 09 00 00 00 00 00 00 D7 [08:46:55]Write i2c OK [08:46:55]MH_I2C_Read... [08:46:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:46:55]Read from MH i2c: E2 [08:46:55]MH_I2C_Read... [08:46:55]Read from MH i2c: E2 03 00 [08:46:55]MH_I2C_Read... [08:46:55]Read from MH i2c: E2 03 00 48 1D 00 90 00 D9 [08:46:55]RAPDU: 90 00 [08:46:55]wFMCommunicate OK [08:46:55]SAM_PROTO_ClearQueue done [08:46:55]KKMCreateOFDPacket [08:46:55]OFDProtocolAddRootSTLVToBuf [08:46:55]FM_MakeSignedData [08:46:55]FM_MakeSignedData [08:46:55]SAM_PROTO_SignData [08:46:55]wFMCommunicate request_size=4 [08:46:55]MH_SAM_APDU [08:46:55]CAPDU: 80 0D 01 02 [08:46:55]Write to MH i2c: E2 08 00 49 1D 80 0D 01 02 00 00 00 00 DF [08:46:55]Write i2c OK [08:46:55]MH_I2C_Read... [08:46:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:46:55]Read from MH i2c: E2 [08:46:55]MH_I2C_Read... [08:46:55]Read from MH i2c: E2 03 00 [08:46:55]MH_I2C_Read... [08:46:55]Read from MH i2c: E2 03 00 49 1D 00 90 00 DA [08:46:55]RAPDU: 90 00 [08:46:55]wFMCommunicate OK [08:46:55]wFMCommunicate request_size=255 [08:46:55]MH_SAM_APDU [08:46: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 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 0F 00 00 00 F4 03 04 00 02 A1 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 99 [08:46:55]Write to MH i2c: E2 02 01 4A 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 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 0F 00 00 00 F4 03 04 00 02 A1 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 99 00 00 45 [08:46:55]Write i2c OK [08:46:55]MH_I2C_Read... [08:46:55]OFD Sender: No OFD packet to send [08:46:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:56]Read from MH i2c: E2 [08:46:56]MH_I2C_Read... [08:46:56]Read from MH i2c: E2 03 00 [08:46:56]MH_I2C_Read... [08:46:56]Read from MH i2c: E2 03 00 4A 1D 00 90 00 DB [08:46:56]RAPDU: 90 00 [08:46:56]wFMCommunicate OK [08:46:56]wFMCommunicate request_size=10 [08:46:56]MH_SAM_APDU [08:46:56]CAPDU: 80 0D 02 02 05 9E 33 D3 11 26 [08:46:56]Write to MH i2c: E2 0D 00 4B 1D 80 0D 02 02 05 00 9E 33 D3 11 26 00 00 C7 [08:46:56]Write i2c OK [08:46:56]MH_I2C_Read... [08:46:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:56]Read from MH i2c: E2 [08:46:56]MH_I2C_Read... [08:46:56]Read from MH i2c: E2 03 00 [08:46:56]MH_I2C_Read... [08:46:56]Read from MH i2c: E2 03 00 4B 1D 00 90 00 DC [08:46:56]RAPDU: 90 00 [08:46:56]wFMCommunicate OK [08:46:56]wFMCommunicate request_size=4 [08:46:56]MH_SAM_APDU [08:46:56]CAPDU: 80 0D 03 02 [08:46:56]Write to MH i2c: E2 08 00 4C 1D 80 0D 03 02 00 00 00 00 E4 [08:46:56]Write i2c OK [08:46:56]MH_I2C_Read... [08:46:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:46:56]Read from MH i2c: E2 [08:46:56]MH_I2C_Read... [08:46:56]Read from MH i2c: E2 0B 00 [08:46:56]MH_I2C_Read... [08:46:56]Read from MH i2c: E2 0B 00 4C 1D 00 E4 9B 79 4D 46 29 39 E1 90 00 B3 [08:46:56]RAPDU: E4 9B 79 4D 46 29 39 E1 90 00 [08:46:56]wFMCommunicate OK [08:46:56]SAM_PROTO_SignData done [08:46:56]FM_MakeSignedData done [08:46:56]CreateOFDProtocolMessage [08:46:56]wFMCommunicate request_size=4 [08:46:56]MH_SAM_APDU [08:46:56]CAPDU: 80 11 00 00 [08:46:56]Write to MH i2c: E2 08 00 4D 1D 80 11 00 00 00 00 00 00 E4 [08:46:56]Write i2c OK [08:46:56]MH_I2C_Read... [08:46:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:56]Read from MH i2c: E2 [08:46:56]MH_I2C_Read... [08:46:56]Read from MH i2c: E2 17 00 [08:46:56]MH_I2C_Read... [08:46:56]Read from MH i2c: E2 17 00 4D 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 37 [08:46:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:46:56]wFMCommunicate OK [08:46:56]CreateOFDProtocolMessage done [08:46:56]OFDSenderStorePacket 192809 [08:46:56]StoreOFDPacket docnum=192809 [08:46: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 9A 4C 07 01 36 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 0F 00 00 00 F4 03 04 00 02 A1 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 99 9E 33 D3 11 26 E4 9B 79 4D 46 29 39 E1 [08:46:56]CheckFolder [08:46:56]dirname=/storage/ofd_packets [08:46:56]CheckFolder done [08:46:56]ProducePacketName [08:46:56]name=ofd_packets/00192809 [08:46:56]NVStorageSaveData ofd_packets/00192809 [08:46:56]File name is /storage/ofd_packets/00192809 [08:46:56]Write 301 bytes [08:46:56]NVStorageSaveData done [08:46:56]OFDSenderStorePacket done [08:46:56]KKMCreateOFDPacket done [08:46:56]NVStorageSaveData kkm_last_timestamp [08:46:56]File name is /storage/kkm_last_timestamp [08:46:56]Write 4 bytes [08:46:56]NVStorageSaveData done [08:46:56]ExternCall_PrintAddStr [08:46:56]wPrintStart [08:46:56]Write to MH i2c: 01 00 00 4E 1D 6B [08:46:56]Write i2c OK [08:46:56]MH_I2C_Read... [08:46:56]Read from MH i2c: 01 [08:46:56]MH_I2C_Read... [08:46:56]Read from MH i2c: 01 07 00 [08:46:56]MH_I2C_Read... [08:46:56]Read from MH i2c: 01 07 00 4E 1D 00 00 00 00 00 FF 0F 80 [08:46:56]RasterBufferAndPrint [08:46:56]line Счет N : (1)32138 [08:46:56]line ИÐÐ: 02508201610067 [08:46:56]line Контрольно-КаÑÑовый Чек [08:46:56]line ПРОДÐЖР[08:46:56]line ТРК (МРК, ГÐК) : 21 [08:46:56]line Товар: 2710124130 [08:46:56]line Ðи-92-К-5 [08:46:56]line 2.990 * 66.90 [08:46:56]line = 200.03 [08:46:56]line ÐДС 12% ÐСП 1% [08:46:56]line > о реализуемом товаре [08:46:56]line ОКРУГЛЕÐИЕ: -0.03 [08:46:56]line ИТОГО: 200.00 [08:46:56]line ВнеÑено: 200.00 [08:46:56]line СДÐЧÐ: 0.00 [08:46:56]line ÐСП 1% : 1.77 [08:46:56]line ÐДС 12% : 21.24 [08:46:56]line Ðаличными: 200.00 [08:46:56]line Безнал.: 0.00 [08:46:56]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [08:46:56]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [08:46:56]line СÐО: Общий режим [08:46:56]line Чек 15 29.10.2024 08:46 [08:46:56]line Смена: 544 ФФД: 1.0 [08:46:56]line ЗÐМ: 0300000110 [08:46:56]line РÐМ: 0000000000091776 [08:46:56]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [08:46:56]line ФМ: 0000000000871754 [08:46:56]line ФД: 192809 [08:46:56]line ФПД: 168904753352998 [08:46:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T084658&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192809&fm=168904753352998&tin=02508201610067®Number=0000000000091776&sum=20000 [08:46:56]OFD Sender: Processing packet 192809 [packets to send 75, broken 74] [08:46:56]ProducePacketName [08:46:56]name=ofd_packets/00192809 [08:46:56]OFD Sender: To server: ‡•öpG, [08:46:56]CommunicateWithHost lk.salyk.kg:30040 [08:46:56]ConnectInit lk.salyk.kg [08:46:56]written 0, free lines is 4095 [08:46:56]Connected sock=10 [08:46: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 9A 4C 07 01 36 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 0F 00 00 00 F4 03 04 00 02 A1 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 99 9E 33 D3 11 26 E4 9B 79 4D 46 29 39 E1 [08:46: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 AF F1 47 00 5C 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 29 F1 02 00 F4 03 04 00 C3 45 20 67 B6 04 01 00 00 A9 77 C4 B1 79 0C DC 0C [08:46:56]CommunicateWithHost err = 0 [08:46:56]CheckOFDResponse [08:46:56]1017 (14) - 77093643461234 [08:46:56]1041 (16) - 0000000000871754 [08:46:56]1040 (4) - 192809 [08:46:56]1012 (4) - 29.10.2024 02:17 [08:46:56]1206 (1) - 0 [08:46:56]OFD Sender: Remove packet 192809 [08:46:56]ProducePacketName [08:46:56]name=ofd_packets/00192809 [08:46:56]NVStorageDeleteData [08:46:56]Write to MH i2c: 01 00 00 79 1D 96 [08:46:56]Write i2c OK [08:46:56]MH_I2C_Read... [08:46:56]Read from MH i2c: 01 [08:46:56]MH_I2C_Read... [08:46:56]Read from MH i2c: 01 07 00 [08:46:56]MH_I2C_Read... [08:46:56]Read from MH i2c: 01 07 00 79 1D 00 00 00 00 00 A9 0C 52 [08:46:56]RasterBufferAndPrint [08:46:56]line [08:46:56]line [08:46:56]line [08:46:56]line [08:46:56]line [08:46:56]written 0, free lines is 3246 [08:46:56]MH_Cut [08:46:56]Write to MH i2c: D1 01 00 80 1D 01 6F [08:46:56]Write i2c OK [08:46:56]MH_I2C_Read... [08:46:56]Read from MH i2c: D1 [08:46:56]MH_I2C_Read... [08:46:56]Read from MH i2c: D1 01 00 [08:46:56]MH_I2C_Read... [08:46:56]Read from MH i2c: D1 01 00 80 1D 00 6E [08:46:56]Write to MH i2c: 01 00 00 81 1D 9E [08:46:56]Write i2c OK [08:46:56]MH_I2C_Read... [08:46:57]OFD Sender: No OFD packet to send [08:46:57]*** Cut start [08:46:57]*** Partial cut [08:46:57]*** CUTSNS_PIN = 1 [08:46:57]*** CUTSNS_PIN = 0 [08:46:58]*** Brake cut motor [08:46:58]Read from MH i2c: 01 [08:46:58]MH_I2C_Read... [08:46:58]*** Stop cut motor [08:46:58]*** Cut end [08:46:58]Read from MH i2c: 01 07 00 [08:46:58]MH_I2C_Read... [08:46:58]Read from MH i2c: 01 07 00 81 1D 00 00 00 00 00 FF 0F B3 [08:46:58]process_action close_receipt done [08:46:58]requested_data is exist [08:46:58]produce_requested_data [08:46:58]requested_item fm.sn is exist - process it [08:46:58]wFMCommunicate request_size=4 [08:46:58]MH_SAM_APDU [08:46:58]CAPDU: 80 11 00 00 [08:46:58]Write to MH i2c: E2 08 00 82 1D 80 11 00 00 00 00 00 00 19 [08:46:58]Write i2c OK [08:46:58]MH_I2C_Read... [08:46:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:58]Read from MH i2c: E2 [08:46:58]MH_I2C_Read... [08:46:58]Read from MH i2c: E2 17 00 [08:46:58]MH_I2C_Read... [08:46:58]Read from MH i2c: E2 17 00 82 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6C [08:46:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:46:58]wFMCommunicate OK [08:46:58]requested_item fd.num is exist - process it [08:46:58]SAM_PROTO_GetFieldsCounters [08:46:58]wFMCommunicate request_size=4 [08:46:58]MH_SAM_APDU [08:46:58]CAPDU: 80 13 00 00 [08:46:58]Write to MH i2c: E2 08 00 83 1D 80 13 00 00 00 00 00 00 1C [08:46:58]Write i2c OK [08:46:58]MH_I2C_Read... [08:46:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:46:58]Read from MH i2c: E2 [08:46:58]MH_I2C_Read... [08:46:58]Read from MH i2c: E2 62 00 [08:46:58]MH_I2C_Read... [08:46:58]Read from MH i2c: E2 62 00 83 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 29 F1 02 00 0E 04 04 00 20 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 AD [08:46: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 29 F1 02 00 0E 04 04 00 20 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:46:58]wFMCommunicate OK [08:46:58]SAM_PROTO_GetFieldsCounters done [08:46:58]requested_item shift.num is exist - process it [08:46:58]requested_item shift.opened is exist - process it [08:46:58]req_shift_opened [08:46:58]FM_GetShiftState [08:46:58]SAM_PROTO_GetShiftState [08:46:58]wFMCommunicate request_size=4 [08:46:58]MH_SAM_APDU [08:46:58]CAPDU: 80 13 01 00 [08:46:58]Write to MH i2c: E2 08 00 84 1D 80 13 01 00 00 00 00 00 1E [08:46:58]Write i2c OK [08:46:58]MH_I2C_Read... [08:46:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:58]Read from MH i2c: E2 [08:46:58]MH_I2C_Read... [08:46:58]Read from MH i2c: E2 0E 00 [08:46:58]MH_I2C_Read... [08:46:58]Read from MH i2c: E2 0E 00 84 1D 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 24 [08:46:58]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [08:46:58]wFMCommunicate OK [08:46:58]SAM_PROTO_GetShiftState done [08:46:58]FM_GetShiftState done [08:46:58]req_shift_opened done [08:46:58]requested_item shift.open_date is exist - process it [08:46:58]req_shift_open_date [08:46:58]req_shift_open_date done [08:46:58]produce_requested_data done [08:46:58]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192809,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [08:46:58]process_action_free close_receipt [08:46:58]json_value_free [08:46:58]json_value_free done [08:46:58]process_json_proto returns [08:46:58]Send response to host [08:46:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192809,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [08:46:58]free response buf [08:46:58]execute_script done [08:46:58]execute_script returns [08:46:58]free content buf [08:46:58]Sock 8.Close socket [08:46:58]Sock 8.Thread stoped [08:47:02]OFD Sender: No OFD packet to send [08:47:07]OFD Sender: No OFD packet to send [08:47:12]OFD Sender: No OFD packet to send [08:47:17]OFD Sender: No OFD packet to send [08:47:22]OFD Sender: No OFD packet to send [08:47:27]OFD Sender: No OFD packet to send [08:47:32]OFD Sender: No OFD packet to send [08:47:37]OFD Sender: No OFD packet to send [08:47:42]OFD Sender: No OFD packet to send [08:47:47]OFD Sender: No OFD packet to send [08:47:52]OFD Sender: No OFD packet to send [08:47:57]OFD Sender: No OFD packet to send [08:48:02]OFD Sender: No OFD packet to send [08:48:07]OFD Sender: No OFD packet to send [08:48:12]OFD Sender: No OFD packet to send [08:48:17]OFD Sender: No OFD packet to send [08:48:22]OFD Sender: No OFD packet to send [08:48:27]OFD Sender: No OFD packet to send [08:48:32]OFD Sender: No OFD packet to send [08:48:37]OFD Sender: No OFD packet to send [08:48:42]OFD Sender: No OFD packet to send [08:48:47]OFD Sender: No OFD packet to send [08:48:52]OFD Sender: No OFD packet to send [08:48:57]OFD Sender: No OFD packet to send [08:49:02]OFD Sender: No OFD packet to send [08:49:07]OFD Sender: No OFD packet to send [08:49:12]OFD Sender: No OFD packet to send [08:49:17]OFD Sender: No OFD packet to send [08:49:22]OFD Sender: No OFD packet to send [08:49:27]OFD Sender: No OFD packet to send [08:49:32]OFD Sender: No OFD packet to send [08:49:37]OFD Sender: No OFD packet to send [08:49:42]OFD Sender: No OFD packet to send [08:49:47]OFD Sender: No OFD packet to send [08:49:52]OFD Sender: No OFD packet to send [08:49:57]OFD Sender: No OFD packet to send [08:50:02]OFD Sender: No OFD packet to send [08:50:07]OFD Sender: No OFD packet to send [08:50:12]OFD Sender: No OFD packet to send [08:50:17]OFD Sender: No OFD packet to send [08:50:22]OFD Sender: No OFD packet to send [08:50:27]OFD Sender: No OFD packet to send [08:50:32]OFD Sender: No OFD packet to send [08:50:37]OFD Sender: No OFD packet to send [08:50:42]OFD Sender: No OFD packet to send [08:50:47]OFD Sender: No OFD packet to send [08:50:52]OFD Sender: No OFD packet to send [08:50:57]OFD Sender: No OFD packet to send [08:51:02]OFD Sender: No OFD packet to send [08:51:07]OFD Sender: No OFD packet to send [08:51:12]OFD Sender: No OFD packet to send [08:51:17]OFD Sender: No OFD packet to send [08:51:22]OFD Sender: No OFD packet to send [08:51:27]OFD Sender: No OFD packet to send [08:51:32]OFD Sender: No OFD packet to send [08:51:37]OFD Sender: No OFD packet to send [08:51:42]OFD Sender: No OFD packet to send [08:51:47]OFD Sender: No OFD packet to send [08:51:52]OFD Sender: No OFD packet to send [08:51:57]OFD Sender: No OFD packet to send [08:52:02]OFD Sender: No OFD packet to send [08:52:07]OFD Sender: No OFD packet to send [08:52:12]OFD Sender: No OFD packet to send [08:52:17]OFD Sender: No OFD packet to send [08:52:22]OFD Sender: No OFD packet to send [08:52:27]OFD Sender: No OFD packet to send [08:52:32]OFD Sender: No OFD packet to send [08:52:37]OFD Sender: No OFD packet to send [08:52:42]OFD Sender: No OFD packet to send [08:52:47]OFD Sender: No OFD packet to send [08:52:52]OFD Sender: No OFD packet to send [08:52:57]OFD Sender: No OFD packet to send [08:53:02]OFD Sender: No OFD packet to send [08:53:07]OFD Sender: No OFD packet to send [08:53:12]OFD Sender: No OFD packet to send [08:53:17]OFD Sender: No OFD packet to send [08:53:22]OFD Sender: No OFD packet to send [08:53:27]OFD Sender: No OFD packet to send [08:53:32]OFD Sender: No OFD packet to send [08:53:37]OFD Sender: No OFD packet to send [08:53:42]OFD Sender: No OFD packet to send [08:53:47]OFD Sender: No OFD packet to send [08:53:52]OFD Sender: No OFD packet to send [08:53:57]OFD Sender: No OFD packet to send [08:54:02]OFD Sender: No OFD packet to send [08:54:07]OFD Sender: No OFD packet to send [08:54:12]OFD Sender: No OFD packet to send [08:54:17]OFD Sender: No OFD packet to send [08:54:22]OFD Sender: No OFD packet to send [08:54:27]OFD Sender: No OFD packet to send [08:54:32]OFD Sender: No OFD packet to send [08:54:37]OFD Sender: No OFD packet to send [08:54:42]OFD Sender: No OFD packet to send [08:54:47]OFD Sender: No OFD packet to send [08:54:52]OFD Sender: No OFD packet to send [08:54:57]OFD Sender: No OFD packet to send [08:55:02]OFD Sender: No OFD packet to send [08:55:07]OFD Sender: No OFD packet to send [08:55:12]OFD Sender: No OFD packet to send [08:55:17]OFD Sender: No OFD packet to send [08:55:22]OFD Sender: No OFD packet to send [08:55:27]OFD Sender: No OFD packet to send [08:55:32]OFD Sender: No OFD packet to send [08:55:37]OFD Sender: No OFD packet to send [08:55:42]OFD Sender: No OFD packet to send [08:55:47]OFD Sender: No OFD packet to send [08:55:52]OFD Sender: No OFD packet to send [08:55:57]OFD Sender: No OFD packet to send [08:56:02]OFD Sender: No OFD packet to send [08:56:07]OFD Sender: No OFD packet to send [08:56:12]OFD Sender: No OFD packet to send [08:56:17]OFD Sender: No OFD packet to send [08:56:22]OFD Sender: No OFD packet to send [08:56:27]OFD Sender: No OFD packet to send [08:56:32]OFD Sender: No OFD packet to send [08:56:37]OFD Sender: No OFD packet to send [08:56:42]OFD Sender: No OFD packet to send [08:56:47]OFD Sender: No OFD packet to send [08:56:52]OFD Sender: No OFD packet to send [08:56:57]OFD Sender: No OFD packet to send [08:57:02]OFD Sender: No OFD packet to send [08:57:07]OFD Sender: No OFD packet to send [08:57:12]OFD Sender: No OFD packet to send [08:57:17]OFD Sender: No OFD packet to send [08:57:22]OFD Sender: No OFD packet to send [08:57:28]OFD Sender: No OFD packet to send [08:57:33]OFD Sender: No OFD packet to send [08:57:38]OFD Sender: No OFD packet to send [08:57:43]OFD Sender: No OFD packet to send [08:57:48]OFD Sender: No OFD packet to send [08:57:53]OFD Sender: No OFD packet to send [08:57:58]OFD Sender: No OFD packet to send [08:58:03]OFD Sender: No OFD packet to send [08:58:08]OFD Sender: No OFD packet to send [08:58:13]OFD Sender: No OFD packet to send [08:58:18]OFD Sender: No OFD packet to send [08:58:23]OFD Sender: No OFD packet to send [08:58:28]OFD Sender: No OFD packet to send [08:58:33]OFD Sender: No OFD packet to send [08:58:38]OFD Sender: No OFD packet to send [08:58:43]OFD Sender: No OFD packet to send [08:58:48]OFD Sender: No OFD packet to send [08:58:53]OFD Sender: No OFD packet to send [08:58:58]OFD Sender: No OFD packet to send [08:59:03]OFD Sender: No OFD packet to send [08:59:08]OFD Sender: No OFD packet to send [08:59:13]OFD Sender: No OFD packet to send [08:59:18]OFD Sender: No OFD packet to send [08:59:22]accept exits with 9 [08:59:22]New connection [08:59:22]New thread 3066801508 created [08:59:22]Thread 3066658148 joined [08:59:22]Waiting for new connection... [08:59:22] Sock 9.Parse request [08:59:22]Sock 9.Check first char [08:59:22]Sock 9.First char is OK [08:59:22]request: POST /json_proto HTTP/1.0 [08:59:22]Method: POST [08:59:22]URL: /json_proto [08:59:22]Method is POST - this is cgi request [08:59:22]url: /json_proto [08:59:22]query_string will be loaded in cgi processing [08:59:22]execute_cgi json_proto POST (null) [08:59:22]execute_cgi path=json_proto method=POST [08:59:22]POST find Content-Length [08:59:22]Host: 172.17.63.131:8080 [08:59:22]Content-Length: 676 [08:59:22]Content-Type: application/json [08:59:22] [08:59:22]POST finish read [08:59:22]Found Content-Length = 676 [08:59:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32140", "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" ] } } [08:59:22]execute_script... [08:59: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)32140", "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" ] } } [08:59:22]POST & json_proto [08:59:22]process_json_proto [08:59:22]json parsed OK: [08:59:22]protocol is kg_v1.0 [08:59:22]action value=close_receipt [08:59:22]process_action close_receipt [08:59:22]cmd_close_receipt [08:59:22]MH_GetDate [08:59:22]Write to MH i2c: F0 00 00 85 1D 91 [08:59:22]Write i2c OK [08:59:22]MH_I2C_Read... [08:59:22]Read from MH i2c: F0 [08:59:22]MH_I2C_Read... [08:59:22]Read from MH i2c: F0 09 00 [08:59:22]MH_I2C_Read... [08:59:22]Read from MH i2c: F0 09 00 85 1D 00 EE A3 20 67 22 05 6E 64 AB [08:59:22]GetLastDocTimeStamp 1730191618 [08:59:22]current date 1730192366 [08:59:22]FM_GetShiftState [08:59:22]SAM_PROTO_GetShiftState [08:59:22]wFMCommunicate request_size=4 [08:59:22]MH_SAM_APDU [08:59:22]CAPDU: 80 13 01 00 [08:59:22]Write to MH i2c: E2 08 00 86 1D 80 13 01 00 00 00 00 00 20 [08:59:22]Write i2c OK [08:59:22]MH_I2C_Read... [08:59:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:22]Read from MH i2c: E2 [08:59:22]MH_I2C_Read... [08:59:22]Read from MH i2c: E2 0E 00 [08:59:22]MH_I2C_Read... [08:59:22]Read from MH i2c: E2 0E 00 86 1D 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 26 [08:59:22]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [08:59:22]wFMCommunicate OK [08:59:22]SAM_PROTO_GetShiftState done [08:59:22]FM_GetShiftState done [08:59:22]opened in 1730161990 [08:59:22]opened+sec_in_day 1730248390 [08:59:22]quantity*price = 35055 [08:59:22]sum+1 = 35057 [08:59:22]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 СÐО: Общий режим Чек 16 29.10.2024 08:59 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192810 ФПД: 86054885966243 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T085926&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192810&fm=86054885966243&tin=02508201610067®Number=0000000000091776&sum=35000 [08:59:24]StoreToDocumentArchive [08:59:24]shift 544 fd 192810 [08:59:24]save to /storage/0544/doc_00192810 [08:59:24]save last doc name /storage/0544/doc_00192810 to /storage/kkm_last_doc_name [08:59:24]save OK [08:59:24]Clear old archive folders... [08:59:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:59:24]tlvbuf is B6E83670 [08:59:24]SAM_PROTO_ClearQueue [08:59:24]wFMCommunicate request_size=4 [08:59:24]MH_SAM_APDU [08:59:24]CAPDU: 80 09 00 00 [08:59:24]Write to MH i2c: E2 08 00 93 1D 80 09 00 00 00 00 00 00 22 [08:59:24]Write i2c OK [08:59:24]MH_I2C_Read... [08:59:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:59:24]Read from MH i2c: E2 [08:59:24]MH_I2C_Read... [08:59:24]Read from MH i2c: E2 03 00 [08:59:24]MH_I2C_Read... [08:59:24]Read from MH i2c: E2 03 00 93 1D 00 90 00 24 [08:59:24]RAPDU: 90 00 [08:59:24]wFMCommunicate OK [08:59:24]SAM_PROTO_ClearQueue done [08:59:24]KKMCreateOFDPacket [08:59:24]OFDProtocolAddRootSTLVToBuf [08:59:24]FM_MakeSignedData [08:59:24]FM_MakeSignedData [08:59:24]SAM_PROTO_SignData [08:59:24]wFMCommunicate request_size=4 [08:59:24]MH_SAM_APDU [08:59:24]CAPDU: 80 0D 01 02 [08:59:24]Write to MH i2c: E2 08 00 94 1D 80 0D 01 02 00 00 00 00 2A [08:59:24]Write i2c OK [08:59:24]MH_I2C_Read... [08:59:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:59:24]Read from MH i2c: E2 [08:59:24]MH_I2C_Read... [08:59:24]Read from MH i2c: E2 03 00 [08:59:24]MH_I2C_Read... [08:59:24]Read from MH i2c: E2 03 00 94 1D 00 90 00 25 [08:59:24]RAPDU: 90 00 [08:59:24]wFMCommunicate OK [08:59:24]wFMCommunicate request_size=255 [08:59:24]MH_SAM_APDU [08:59: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 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 10 00 00 00 F4 03 04 00 EE A3 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 4E [08:59:24]Write to MH i2c: E2 02 01 95 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 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 10 00 00 00 F4 03 04 00 EE A3 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 4E 00 00 7E [08:59:24]Write i2c OK [08:59:24]MH_I2C_Read... [08:59:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:24]Read from MH i2c: E2 [08:59:24]MH_I2C_Read... [08:59:24]Read from MH i2c: E2 03 00 [08:59:24]MH_I2C_Read... [08:59:24]Read from MH i2c: E2 03 00 95 1D 00 90 00 26 [08:59:24]RAPDU: 90 00 [08:59:24]wFMCommunicate OK [08:59:24]wFMCommunicate request_size=10 [08:59:24]MH_SAM_APDU [08:59:24]CAPDU: 80 0D 02 02 05 44 36 E8 C1 A3 [08:59:24]Write to MH i2c: E2 0D 00 96 1D 80 0D 02 02 05 00 44 36 E8 C1 A3 00 00 FD [08:59:24]Write i2c OK [08:59:24]MH_I2C_Read... [08:59:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:24]Read from MH i2c: E2 [08:59:24]MH_I2C_Read... [08:59:24]Read from MH i2c: E2 03 00 [08:59:24]MH_I2C_Read... [08:59:24]Read from MH i2c: E2 03 00 96 1D 00 90 00 27 [08:59:24]RAPDU: 90 00 [08:59:24]wFMCommunicate OK [08:59:24]wFMCommunicate request_size=4 [08:59:24]MH_SAM_APDU [08:59:24]CAPDU: 80 0D 03 02 [08:59:24]Write to MH i2c: E2 08 00 97 1D 80 0D 03 02 00 00 00 00 2F [08:59:24]Write i2c OK [08:59:24]MH_I2C_Read... [08:59:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:59:24]Read from MH i2c: E2 [08:59:24]MH_I2C_Read... [08:59:24]Read from MH i2c: E2 0B 00 [08:59:24]MH_I2C_Read... [08:59:24]Read from MH i2c: E2 0B 00 97 1D 00 42 9A 31 BC 20 09 56 7F 90 00 F7 [08:59:24]RAPDU: 42 9A 31 BC 20 09 56 7F 90 00 [08:59:24]wFMCommunicate OK [08:59:24]SAM_PROTO_SignData done [08:59:24]FM_MakeSignedData done [08:59:24]CreateOFDProtocolMessage [08:59:24]wFMCommunicate request_size=4 [08:59:24]MH_SAM_APDU [08:59:24]CAPDU: 80 11 00 00 [08:59:24]Write to MH i2c: E2 08 00 98 1D 80 11 00 00 00 00 00 00 2F [08:59:24]Write i2c OK [08:59:24]MH_I2C_Read... [08:59:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:24]Read from MH i2c: E2 [08:59:24]MH_I2C_Read... [08:59:24]Read from MH i2c: E2 17 00 [08:59:24]MH_I2C_Read... [08:59:24]Read from MH i2c: E2 17 00 98 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 82 [08:59:24]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:24]wFMCommunicate OK [08:59:24]CreateOFDProtocolMessage done [08:59:24]OFDSenderStorePacket 192810 [08:59:24]StoreOFDPacket docnum=192810 [08:59: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 2E AE 07 01 C6 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 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 10 00 00 00 F4 03 04 00 EE A3 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 4E 44 36 E8 C1 A3 42 9A 31 BC 20 09 56 7F [08:59:24]CheckFolder [08:59:24]dirname=/storage/ofd_packets [08:59:24]CheckFolder done [08:59:24]ProducePacketName [08:59:24]name=ofd_packets/00192810 [08:59:24]NVStorageSaveData ofd_packets/00192810 [08:59:24]File name is /storage/ofd_packets/00192810 [08:59:24]Write 301 bytes [08:59:24]NVStorageSaveData done [08:59:24]OFDSenderStorePacket done [08:59:24]KKMCreateOFDPacket done [08:59:24]NVStorageSaveData kkm_last_timestamp [08:59:24]File name is /storage/kkm_last_timestamp [08:59:24]Write 4 bytes [08:59:24]NVStorageSaveData done [08:59:24]ExternCall_PrintAddStr [08:59:24]wPrintStart [08:59:24]Write to MH i2c: 01 00 00 99 1D B6 [08:59:24]Write i2c OK [08:59:24]MH_I2C_Read... [08:59:24]Read from MH i2c: 01 [08:59:24]MH_I2C_Read... [08:59:24]Read from MH i2c: 01 07 00 [08:59:24]MH_I2C_Read... [08:59:24]Read from MH i2c: 01 07 00 99 1D 00 00 00 00 00 FF 0F CB [08:59:24]RasterBufferAndPrint [08:59:24]line Счет N : (1)32140 [08:59:24]line ИÐÐ: 02508201610067 [08:59:24]line Контрольно-КаÑÑовый Чек [08:59:24]line ПРОДÐЖР[08:59:24]line ТРК (МРК, ГÐК) : 12 [08:59:24]line Товар: 2710124130 [08:59:24]line Ðи-92-К-5 [08:59:24]line 5.240 * 66.90 [08:59:24]line = 350.56 [08:59:24]line ÐДС 12% ÐСП 1% [08:59:24]line > о реализуемом товаре [08:59:24]line ОКРУГЛЕÐИЕ: -0.56 [08:59:24]line ИТОГО: 350.00 [08:59:24]line ВнеÑено: 350.00 [08:59:24]line СДÐЧÐ: 0.00 [08:59:24]line ÐСП 1% : 3.10 [08:59:24]line ÐДС 12% : 37.23 [08:59:24]line Ðаличными: 350.00 [08:59:24]line Безнал.: 0.00 [08:59:24]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [08:59:24]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [08:59:24]line СÐО: Общий режим [08:59:24]line Чек 16 29.10.2024 08:59 [08:59:24]line Смена: 544 ФФД: 1.0 [08:59:24]line ЗÐМ: 0300000110 [08:59:24]line РÐМ: 0000000000091776 [08:59:24]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [08:59:24]line ФМ: 0000000000871754 [08:59:24]line ФД: 192810 [08:59:24]line ФПД: 86054885966243 [08:59:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T085926&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192810&fm=86054885966243&tin=02508201610067®Number=0000000000091776&sum=35000 [08:59:24]OFD Sender: Processing packet 192810 [packets to send 75, broken 74] [08:59:24]ProducePacketName [08:59:24]name=ofd_packets/00192810 [08:59:24]OFD Sender: To server: ‡•öpG, [08:59:24]CommunicateWithHost lk.salyk.kg:30040 [08:59:24]ConnectInit lk.salyk.kg [08:59:24]written 0, free lines is 4095 [08:59:24]Connected sock=10 [08:59: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 2E AE 07 01 C6 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 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 10 00 00 00 F4 03 04 00 EE A3 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 4E 44 36 E8 C1 A3 42 9A 31 BC 20 09 56 7F [08:59: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 4D 5D 47 00 3A 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 2A F1 02 00 F4 03 04 00 AF 48 20 67 B6 04 01 00 00 51 EA BF 75 44 AC F5 2B [08:59:25]CommunicateWithHost err = 0 [08:59:25]CheckOFDResponse [08:59:25]1017 (14) - 77093643461234 [08:59:25]1041 (16) - 0000000000871754 [08:59:25]1040 (4) - 192810 [08:59:25]1012 (4) - 29.10.2024 02:30 [08:59:25]1206 (1) - 0 [08:59:25]OFD Sender: Remove packet 192810 [08:59:25]ProducePacketName [08:59:25]name=ofd_packets/00192810 [08:59:25]NVStorageDeleteData [08:59:25]Write to MH i2c: 01 00 00 C4 1D E1 [08:59:25]Write i2c OK [08:59:25]MH_I2C_Read... [08:59:25]Read from MH i2c: 01 [08:59:25]MH_I2C_Read... [08:59:25]Read from MH i2c: 01 07 00 [08:59:25]MH_I2C_Read... [08:59:25]Read from MH i2c: 01 07 00 C4 1D 00 00 00 00 00 A1 0C 95 [08:59:25]RasterBufferAndPrint [08:59:25]line [08:59:25]line [08:59:25]line [08:59:25]line [08:59:25]line [08:59:25]written 0, free lines is 3241 [08:59:25]MH_Cut [08:59:25]Write to MH i2c: D1 01 00 CB 1D 01 BA [08:59:25]Write i2c OK [08:59:25]MH_I2C_Read... [08:59:25]Read from MH i2c: D1 [08:59:25]MH_I2C_Read... [08:59:25]Read from MH i2c: D1 01 00 [08:59:25]MH_I2C_Read... [08:59:25]Read from MH i2c: D1 01 00 CB 1D 00 B9 [08:59:25]Write to MH i2c: 01 00 00 CC 1D E9 [08:59:25]Write i2c OK [08:59:25]MH_I2C_Read... [08:59:25]OFD Sender: No OFD packet to send [08:59:26]*** Cut start [08:59:26]*** Partial cut [08:59:26]*** CUTSNS_PIN = 1 [08:59:26]*** CUTSNS_PIN = 0 [08:59:26]*** Brake cut motor [08:59:26]Read from MH i2c: 01 [08:59:26]MH_I2C_Read... [08:59:26]*** Stop cut motor [08:59:26]*** Cut end [08:59:26]Read from MH i2c: 01 07 00 [08:59:26]MH_I2C_Read... [08:59:26]Read from MH i2c: 01 07 00 CC 1D 00 00 00 00 00 FF 0F FE [08:59:26]process_action close_receipt done [08:59:26]requested_data is exist [08:59:26]produce_requested_data [08:59:26]requested_item fm.sn is exist - process it [08:59:26]wFMCommunicate request_size=4 [08:59:26]MH_SAM_APDU [08:59:26]CAPDU: 80 11 00 00 [08:59:26]Write to MH i2c: E2 08 00 CD 1D 80 11 00 00 00 00 00 00 64 [08:59:26]Write i2c OK [08:59:26]MH_I2C_Read... [08:59:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:26]Read from MH i2c: E2 [08:59:26]MH_I2C_Read... [08:59:26]Read from MH i2c: E2 17 00 [08:59:26]MH_I2C_Read... [08:59:26]Read from MH i2c: E2 17 00 CD 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B7 [08:59: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:59:26]wFMCommunicate OK [08:59:26]requested_item fd.num is exist - process it [08:59:26]SAM_PROTO_GetFieldsCounters [08:59:26]wFMCommunicate request_size=4 [08:59:26]MH_SAM_APDU [08:59:26]CAPDU: 80 13 00 00 [08:59:26]Write to MH i2c: E2 08 00 CE 1D 80 13 00 00 00 00 00 00 67 [08:59:26]Write i2c OK [08:59:26]MH_I2C_Read... [08:59:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:59:27]Read from MH i2c: E2 [08:59:27]MH_I2C_Read... [08:59:27]Read from MH i2c: E2 62 00 [08:59:27]MH_I2C_Read... [08:59:27]Read from MH i2c: E2 62 00 CE 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 2A F1 02 00 0E 04 04 00 20 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 FC [08:59: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 2A F1 02 00 0E 04 04 00 20 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:59:27]wFMCommunicate OK [08:59:27]SAM_PROTO_GetFieldsCounters done [08:59:27]requested_item shift.num is exist - process it [08:59:27]requested_item shift.opened is exist - process it [08:59:27]req_shift_opened [08:59:27]FM_GetShiftState [08:59:27]SAM_PROTO_GetShiftState [08:59:27]wFMCommunicate request_size=4 [08:59:27]MH_SAM_APDU [08:59:27]CAPDU: 80 13 01 00 [08:59:27]Write to MH i2c: E2 08 00 CF 1D 80 13 01 00 00 00 00 00 69 [08:59:27]Write i2c OK [08:59:27]MH_I2C_Read... [08:59:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:27]Read from MH i2c: E2 [08:59:27]MH_I2C_Read... [08:59:27]Read from MH i2c: E2 0E 00 [08:59:27]MH_I2C_Read... [08:59:27]Read from MH i2c: E2 0E 00 CF 1D 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 6F [08:59:27]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [08:59:27]wFMCommunicate OK [08:59:27]SAM_PROTO_GetShiftState done [08:59:27]FM_GetShiftState done [08:59:27]req_shift_opened done [08:59:27]requested_item shift.open_date is exist - process it [08:59:27]req_shift_open_date [08:59:27]req_shift_open_date done [08:59:27]produce_requested_data done [08:59:27]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192810,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [08:59:27]process_action_free close_receipt [08:59:27]json_value_free [08:59:27]json_value_free done [08:59:27]process_json_proto returns [08:59:27]Send response to host [08:59:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192810,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [08:59:27]free response buf [08:59:27]execute_script done [08:59:27]execute_script returns [08:59:27]free content buf [08:59:27]Sock 9.Close socket [08:59:27]Sock 9.Thread stoped [08:59:30]OFD Sender: No OFD packet to send [08:59:35]OFD Sender: No OFD packet to send [08:59:40]OFD Sender: No OFD packet to send [08:59:41]accept exits with 8 [08:59:41]New connection [08:59:41]New thread 3066658148 created [08:59:41]Thread 3066801508 joined [08:59:41]Waiting for new connection... [08:59:41] Sock 8.Parse request [08:59:41]Sock 8.Check first char [08:59:41]Sock 8.First char is OK [08:59:41]request: POST /json_proto HTTP/1.0 [08:59:41]Method: POST [08:59:41]URL: /json_proto [08:59:41]Method is POST - this is cgi request [08:59:41]url: /json_proto [08:59:41]query_string will be loaded in cgi processing [08:59:41]execute_cgi json_proto POST (null) [08:59:41]execute_cgi path=json_proto method=POST [08:59:41]POST find Content-Length [08:59:41]Host: 172.17.63.131:8080 [08:59:41]Content-Length: 865 [08:59:41]Content-Type: application/json [08:59:41] [08:59:41]POST finish read [08:59:41]Found Content-Length = 865 [08:59:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32139", "tax_sys" : 0, "items" : [ { "pre_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" ] } } [08:59:41]execute_script... [08: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)32139", "tax_sys" : 0, "items" : [ { "pre_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" ] } } [08:59:41]POST & json_proto [08:59:41]process_json_proto [08:59:41]json parsed OK: [08:59:41]protocol is kg_v1.0 [08:59:41]action value=close_receipt [08:59:41]process_action close_receipt [08:59:41]cmd_close_receipt [08:59:41]MH_GetDate [08:59:41]Write to MH i2c: F0 00 00 D0 1D DC [08:59:41]Write i2c OK [08:59:41]MH_I2C_Read... [08:59:41]Read from MH i2c: F0 [08:59:41]MH_I2C_Read... [08:59:41]Read from MH i2c: F0 09 00 [08:59:41]MH_I2C_Read... [08:59:41]Read from MH i2c: F0 09 00 D0 1D 00 01 A4 20 67 22 05 6E 64 0A [08:59:41]GetLastDocTimeStamp 1730192366 [08:59:41]current date 1730192385 [08:59:41]FM_GetShiftState [08:59:41]SAM_PROTO_GetShiftState [08:59:41]wFMCommunicate request_size=4 [08:59:41]MH_SAM_APDU [08:59:41]CAPDU: 80 13 01 00 [08:59:41]Write to MH i2c: E2 08 00 D1 1D 80 13 01 00 00 00 00 00 6B [08:59:41]Write i2c OK [08:59:41]MH_I2C_Read... [08:59:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:42]Read from MH i2c: E2 [08:59:42]MH_I2C_Read... [08:59:42]Read from MH i2c: E2 0E 00 [08:59:42]MH_I2C_Read... [08:59:42]Read from MH i2c: E2 0E 00 D1 1D 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 71 [08:59:42]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [08:59:42]wFMCommunicate OK [08:59:42]SAM_PROTO_GetShiftState done [08:59:42]FM_GetShiftState done [08:59:42]opened in 1730161990 [08:59:42]opened+sec_in_day 1730248390 [08:59:42]quantity*price = 100015 [08:59:42]sum+1 = 100017 [08:59:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 ÐСП 1% : 8.85 ÐДС 12% : 106.21 Ðаличными: 0.00 Безнал.: 1000.16 МеÑто: ÐЗС â„– 170 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 СÐО: Общий режим Чек 17 29.10.2024 08:59 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192811 ФПД: 66616935203223 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T085945&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192811&fm=66616935203223&tin=02508201610067®Number=0000000000091776&sum=100016 [08:59:43]StoreToDocumentArchive [08:59:43]shift 544 fd 192811 [08:59:43]save to /storage/0544/doc_00192811 [08:59:43]save last doc name /storage/0544/doc_00192811 to /storage/kkm_last_doc_name [08:59:43]save OK [08:59:43]Clear old archive folders... [08:59:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:59:43]tlvbuf is B6F30BC0 [08:59:43]SAM_PROTO_ClearQueue [08:59:43]wFMCommunicate request_size=4 [08:59:43]MH_SAM_APDU [08:59:43]CAPDU: 80 09 00 00 [08:59:43]Write to MH i2c: E2 08 00 DE 1D 80 09 00 00 00 00 00 00 6D [08:59:43]Write i2c OK [08:59:43]MH_I2C_Read... [08:59:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:59:43]Read from MH i2c: E2 [08:59:43]MH_I2C_Read... [08:59:43]Read from MH i2c: E2 03 00 [08:59:43]MH_I2C_Read... [08:59:43]Read from MH i2c: E2 03 00 DE 1D 00 90 00 6F [08:59:43]RAPDU: 90 00 [08:59:43]wFMCommunicate OK [08:59:43]SAM_PROTO_ClearQueue done [08:59:43]KKMCreateOFDPacket [08:59:43]OFDProtocolAddRootSTLVToBuf [08:59:43]FM_MakeSignedData [08:59:43]FM_MakeSignedData [08:59:43]SAM_PROTO_SignData [08:59:43]wFMCommunicate request_size=4 [08:59:43]MH_SAM_APDU [08:59:43]CAPDU: 80 0D 01 02 [08:59:43]Write to MH i2c: E2 08 00 DF 1D 80 0D 01 02 00 00 00 00 75 [08:59:43]Write i2c OK [08:59:43]MH_I2C_Read... [08:59:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:59:43]Read from MH i2c: E2 [08:59:43]MH_I2C_Read... [08:59:43]Read from MH i2c: E2 03 00 [08:59:43]MH_I2C_Read... [08:59:43]Read from MH i2c: E2 03 00 DF 1D 00 90 00 70 [08:59:43]RAPDU: 90 00 [08:59:43]wFMCommunicate OK [08:59:43]wFMCommunicate request_size=255 [08:59:43]MH_SAM_APDU [08:59:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 11 00 00 00 F4 03 04 00 01 A4 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 3C [08:59:43]Write to MH i2c: E2 02 01 E0 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 11 00 00 00 F4 03 04 00 01 A4 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 3C 00 00 DC [08:59:43]Write i2c OK [08:59:43]MH_I2C_Read... [08:59:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:43]Read from MH i2c: E2 [08:59:43]MH_I2C_Read... [08:59:43]Read from MH i2c: E2 03 00 [08:59:43]MH_I2C_Read... [08:59:43]Read from MH i2c: E2 03 00 E0 1D 00 90 00 71 [08:59:43]RAPDU: 90 00 [08:59:43]wFMCommunicate OK [08:59:43]wFMCommunicate request_size=10 [08:59:43]MH_SAM_APDU [08:59:43]CAPDU: 80 0D 02 02 05 96 76 C2 41 97 [08:59:43]Write to MH i2c: E2 0D 00 E1 1D 80 0D 02 02 05 00 96 76 C2 41 97 00 00 28 [08:59:43]Write i2c OK [08:59:43]MH_I2C_Read... [08:59:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:43]Read from MH i2c: E2 [08:59:43]MH_I2C_Read... [08:59:43]Read from MH i2c: E2 03 00 [08:59:43]MH_I2C_Read... [08:59:43]Read from MH i2c: E2 03 00 E1 1D 00 90 00 72 [08:59:43]RAPDU: 90 00 [08:59:43]wFMCommunicate OK [08:59:43]wFMCommunicate request_size=4 [08:59:43]MH_SAM_APDU [08:59:43]CAPDU: 80 0D 03 02 [08:59:43]Write to MH i2c: E2 08 00 E2 1D 80 0D 03 02 00 00 00 00 7A [08:59:43]Write i2c OK [08:59:43]MH_I2C_Read... [08:59:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:59:43]Read from MH i2c: E2 [08:59:43]MH_I2C_Read... [08:59:43]Read from MH i2c: E2 0B 00 [08:59:43]MH_I2C_Read... [08:59:43]Read from MH i2c: E2 0B 00 E2 1D 00 96 64 7D 25 CD 51 58 EC 90 00 79 [08:59:43]RAPDU: 96 64 7D 25 CD 51 58 EC 90 00 [08:59:43]wFMCommunicate OK [08:59:43]SAM_PROTO_SignData done [08:59:43]FM_MakeSignedData done [08:59:43]CreateOFDProtocolMessage [08:59:43]wFMCommunicate request_size=4 [08:59:43]MH_SAM_APDU [08:59:43]CAPDU: 80 11 00 00 [08:59:43]Write to MH i2c: E2 08 00 E3 1D 80 11 00 00 00 00 00 00 7A [08:59:43]Write i2c OK [08:59:43]MH_I2C_Read... [08:59:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:43]Read from MH i2c: E2 [08:59:43]MH_I2C_Read... [08:59:43]Read from MH i2c: E2 17 00 [08:59:43]MH_I2C_Read... [08:59:43]Read from MH i2c: E2 17 00 E3 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CD [08:59: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:59:43]wFMCommunicate OK [08:59:43]CreateOFDProtocolMessage done [08:59:43]OFDSenderStorePacket 192811 [08:59:43]StoreOFDPacket docnum=192811 [08:59: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 09 04 07 01 62 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 11 00 00 00 F4 03 04 00 01 A4 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 3C 96 76 C2 41 97 96 64 7D 25 CD 51 58 EC [08:59:43]CheckFolder [08:59:43]dirname=/storage/ofd_packets [08:59:43]CheckFolder done [08:59:43]ProducePacketName [08:59:43]name=ofd_packets/00192811 [08:59:43]NVStorageSaveData ofd_packets/00192811 [08:59:43]File name is /storage/ofd_packets/00192811 [08:59:43]Write 301 bytes [08:59:43]NVStorageSaveData done [08:59:43]OFDSenderStorePacket done [08:59:43]KKMCreateOFDPacket done [08:59:43]NVStorageSaveData kkm_last_timestamp [08:59:43]File name is /storage/kkm_last_timestamp [08:59:43]Write 4 bytes [08:59:43]NVStorageSaveData done [08:59:43]ExternCall_PrintAddStr [08:59:43]wPrintStart [08:59:43]Write to MH i2c: 01 00 00 E4 1D 01 [08:59:43]Write i2c OK [08:59:43]MH_I2C_Read... [08:59:43]Read from MH i2c: 01 [08:59:43]MH_I2C_Read... [08:59:43]Read from MH i2c: 01 07 00 [08:59:43]MH_I2C_Read... [08:59:43]Read from MH i2c: 01 07 00 E4 1D 00 00 00 00 00 FF 0F 16 [08:59:43]RasterBufferAndPrint [08:59:43]line Счет N : (1)32139 [08:59:43]line ИÐÐ: 02508201610067 [08:59:43]line Контрольно-КаÑÑовый Чек [08:59:43]line ПРОДÐЖР[08:59:43]line ТРК (МРК, ГÐК) : 21 [08:59:43]line Товар: 2710124130 [08:59:43]line Ðи-92-К-5 [08:59:43]line 14.950 * 66.90 [08:59:43]line = 1000.16 [08:59:43]line ÐДС 12% ÐСП 1% [08:59:43]line > о реализуемом товаре [08:59:43]line ИТОГО: 1000.16 [08:59:43]line ÐСП 1% : 8.85 [08:59:43]line ÐДС 12% : 106.21 [08:59:43]line Ðаличными: 0.00 [08:59:43]line Безнал.: 1000.16 [08:59:43]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [08:59:43]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [08:59:43]line СÐО: Общий режим [08:59:43]line Чек 17 29.10.2024 08:59 [08:59:43]line Смена: 544 ФФД: 1.0 [08:59:43]line ЗÐМ: 0300000110 [08:59:43]line РÐМ: 0000000000091776 [08:59:43]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [08:59:43]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Кыргызкоммерцбанк [08:59:43]line ФМ: 0000000000871754 [08:59:43]line ФД: 192811 [08:59:43]line ФПД: 66616935203223 [08:59:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T085945&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192811&fm=66616935203223&tin=02508201610067®Number=0000000000091776&sum=100016 [08:59:44]OFD Sender: Processing packet 192811 [packets to send 75, broken 74] [08:59:44]ProducePacketName [08:59:44]name=ofd_packets/00192811 [08:59:44]OFD Sender: To server: ‡•öpG, [08:59:44]CommunicateWithHost lk.salyk.kg:30040 [08:59:44]ConnectInit lk.salyk.kg [08:59:44]written 0, free lines is 4095 [08:59:44]Connected sock=10 [08:59:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 09 04 07 01 62 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 11 00 00 00 F4 03 04 00 01 A4 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 3C 96 76 C2 41 97 96 64 7D 25 CD 51 58 EC [08:59:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 04 B1 47 00 F6 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 2B F1 02 00 F4 03 04 00 C3 48 20 67 B6 04 01 00 00 C4 82 BE 2C F3 A3 87 A1 [08:59:44]CommunicateWithHost err = 0 [08:59:44]CheckOFDResponse [08:59:44]1017 (14) - 77093643461234 [08:59:44]1041 (16) - 0000000000871754 [08:59:44]1040 (4) - 192811 [08:59:44]1012 (4) - 29.10.2024 02:30 [08:59:44]1206 (1) - 0 [08:59:44]OFD Sender: Remove packet 192811 [08:59:44]ProducePacketName [08:59:44]name=ofd_packets/00192811 [08:59:44]NVStorageDeleteData [08:59:44]Write to MH i2c: 01 00 00 0E 1E 2C [08:59:44]Write i2c OK [08:59:44]MH_I2C_Read... [08:59:44]Read from MH i2c: 01 [08:59:44]MH_I2C_Read... [08:59:44]Read from MH i2c: 01 07 00 [08:59:44]MH_I2C_Read... [08:59:44]Read from MH i2c: 01 07 00 0E 1E 00 00 00 00 00 BC 0C FB [08:59:44]RasterBufferAndPrint [08:59:44]line [08:59:44]line [08:59:44]line [08:59:44]line [08:59:44]line [08:59:44]written 0, free lines is 3267 [08:59:44]MH_Cut [08:59:44]Write to MH i2c: D1 01 00 15 1E 01 05 [08:59:44]Write i2c OK [08:59:44]MH_I2C_Read... [08:59:44]Read from MH i2c: D1 [08:59:44]MH_I2C_Read... [08:59:44]Read from MH i2c: D1 01 00 [08:59:44]MH_I2C_Read... [08:59:44]Read from MH i2c: D1 01 00 15 1E 00 04 [08:59:44]Write to MH i2c: 01 00 00 16 1E 34 [08:59:44]Write i2c OK [08:59:44]MH_I2C_Read... [08:59:44]OFD Sender: No OFD packet to send [08:59:45]*** Cut start [08:59:45]*** Partial cut [08:59:45]*** CUTSNS_PIN = 1 [08:59:45]*** CUTSNS_PIN = 0 [08:59:45]*** Brake cut motor [08:59:45]Read from MH i2c: 01 [08:59:45]MH_I2C_Read... [08:59:45]*** Stop cut motor [08:59:45]*** Cut end [08:59:45]Read from MH i2c: 01 07 00 [08:59:45]MH_I2C_Read... [08:59:45]Read from MH i2c: 01 07 00 16 1E 00 00 00 00 00 FF 0F 49 [08:59:45]process_action close_receipt done [08:59:45]requested_data is exist [08:59:45]produce_requested_data [08:59:45]requested_item fm.sn is exist - process it [08:59:45]wFMCommunicate request_size=4 [08:59:45]MH_SAM_APDU [08:59:45]CAPDU: 80 11 00 00 [08:59:45]Write to MH i2c: E2 08 00 17 1E 80 11 00 00 00 00 00 00 AF [08:59:45]Write i2c OK [08:59:45]MH_I2C_Read... [08:59:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:46]Read from MH i2c: E2 [08:59:46]MH_I2C_Read... [08:59:46]Read from MH i2c: E2 17 00 [08:59:46]MH_I2C_Read... [08:59:46]Read from MH i2c: E2 17 00 17 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 02 [08:59:46]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:46]wFMCommunicate OK [08:59:46]requested_item fd.num is exist - process it [08:59:46]SAM_PROTO_GetFieldsCounters [08:59:46]wFMCommunicate request_size=4 [08:59:46]MH_SAM_APDU [08:59:46]CAPDU: 80 13 00 00 [08:59:46]Write to MH i2c: E2 08 00 18 1E 80 13 00 00 00 00 00 00 B2 [08:59:46]Write i2c OK [08:59:46]MH_I2C_Read... [08:59:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:59:46]Read from MH i2c: E2 [08:59:46]MH_I2C_Read... [08:59:46]Read from MH i2c: E2 62 00 [08:59:46]MH_I2C_Read... [08:59:46]Read from MH i2c: E2 62 00 18 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 2B F1 02 00 0E 04 04 00 20 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 4B [08:59:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 F1 02 00 0E 04 04 00 20 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:59:46]wFMCommunicate OK [08:59:46]SAM_PROTO_GetFieldsCounters done [08:59:46]requested_item shift.num is exist - process it [08:59:46]requested_item shift.opened is exist - process it [08:59:46]req_shift_opened [08:59:46]FM_GetShiftState [08:59:46]SAM_PROTO_GetShiftState [08:59:46]wFMCommunicate request_size=4 [08:59:46]MH_SAM_APDU [08:59:46]CAPDU: 80 13 01 00 [08:59:46]Write to MH i2c: E2 08 00 19 1E 80 13 01 00 00 00 00 00 B4 [08:59:46]Write i2c OK [08:59:46]MH_I2C_Read... [08:59:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:46]Read from MH i2c: E2 [08:59:46]MH_I2C_Read... [08:59:46]Read from MH i2c: E2 0E 00 [08:59:46]MH_I2C_Read... [08:59:46]Read from MH i2c: E2 0E 00 19 1E 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 BA [08:59:46]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [08:59:46]wFMCommunicate OK [08:59:46]SAM_PROTO_GetShiftState done [08:59:46]FM_GetShiftState done [08:59:46]req_shift_opened done [08:59:46]requested_item shift.open_date is exist - process it [08:59:46]req_shift_open_date [08:59:46]req_shift_open_date done [08:59:46]produce_requested_data done [08:59:46]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192811,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [08:59:46]process_action_free close_receipt [08:59:46]json_value_free [08:59:46]json_value_free done [08:59:46]process_json_proto returns [08:59:46]Send response to host [08:59:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192811,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [08:59:46]free response buf [08:59:46]execute_script done [08:59:46]execute_script returns [08:59:46]free content buf [08:59:46]Sock 8.Close socket [08:59:46]Sock 8.Thread stoped [08:59:49]OFD Sender: No OFD packet to send [08:59:54]OFD Sender: No OFD packet to send [08:59:59]OFD Sender: No OFD packet to send [09:00:04]OFD Sender: No OFD packet to send [09:00:09]OFD Sender: No OFD packet to send [09:00:14]OFD Sender: No OFD packet to send [09:00:19]OFD Sender: No OFD packet to send [09:00:24]OFD Sender: No OFD packet to send [09:00:29]OFD Sender: No OFD packet to send [09:00:34]OFD Sender: No OFD packet to send [09:00:39]OFD Sender: No OFD packet to send [09:00:44]OFD Sender: No OFD packet to send [09:00:49]OFD Sender: No OFD packet to send [09:00:54]OFD Sender: No OFD packet to send [09:00:59]OFD Sender: No OFD packet to send [09:01:04]OFD Sender: No OFD packet to send [09:01:09]OFD Sender: No OFD packet to send [09:01:14]OFD Sender: No OFD packet to send [09:01:19]OFD Sender: No OFD packet to send [09:01:24]OFD Sender: No OFD packet to send [09:01:29]OFD Sender: No OFD packet to send [09:01:34]OFD Sender: No OFD packet to send [09:01:39]OFD Sender: No OFD packet to send [09:01:44]OFD Sender: No OFD packet to send [09:01:49]OFD Sender: No OFD packet to send [09:01:54]OFD Sender: No OFD packet to send [09:01:59]OFD Sender: No OFD packet to send [09:02:04]OFD Sender: No OFD packet to send [09:02:09]OFD Sender: No OFD packet to send [09:02:14]OFD Sender: No OFD packet to send [09:02:19]OFD Sender: No OFD packet to send [09:02:24]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:10]OFD Sender: No OFD packet to send [09:03:15]OFD Sender: No OFD packet to send [09:03:20]OFD Sender: No OFD packet to send [09:03:25]OFD Sender: No OFD packet to send [09:03:30]OFD Sender: No OFD packet to send [09:03:35]OFD Sender: No OFD packet to send [09:03:40]OFD Sender: No OFD packet to send [09:03:45]OFD Sender: No OFD packet to send [09:03:50]OFD Sender: No OFD packet to send [09:03:55]OFD Sender: No OFD packet to send [09:04:00]OFD Sender: No OFD packet to send [09:04:05]OFD Sender: No OFD packet to send [09:04:10]OFD Sender: No OFD packet to send [09:04:15]OFD Sender: No OFD packet to send [09:04:20]OFD Sender: No OFD packet to send [09:04:25]OFD Sender: No OFD packet to send [09:04:30]OFD Sender: No OFD packet to send [09:04:35]OFD Sender: No OFD packet to send [09:04:40]OFD Sender: No OFD packet to send [09:04:45]OFD Sender: No OFD packet to send [09:04:50]OFD Sender: No OFD packet to send [09:04:55]OFD Sender: No OFD packet to send [09:05:00]OFD Sender: No OFD packet to send [09:05:05]OFD Sender: No OFD packet to send [09:05:10]OFD Sender: No OFD packet to send [09:05:15]OFD Sender: No OFD packet to send [09:05:20]OFD Sender: No OFD packet to send [09:05:25]OFD Sender: No OFD packet to send [09:05:30]OFD Sender: No OFD packet to send [09:05:35]OFD Sender: No OFD packet to send [09:05:40]OFD Sender: No OFD packet to send [09:05:45]OFD Sender: No OFD packet to send [09:05:50]OFD Sender: No OFD packet to send [09:05:55]OFD Sender: No OFD packet to send [09:06:00]OFD Sender: No OFD packet to send [09:06:05]OFD Sender: No OFD packet to send [09:06:10]OFD Sender: No OFD packet to send [09:06:15]OFD Sender: No OFD packet to send [09:06:20]OFD Sender: No OFD packet to send [09:06:25]OFD Sender: No OFD packet to send [09:06:30]OFD Sender: No OFD packet to send [09:06:35]OFD Sender: No OFD packet to send [09:06:40]OFD Sender: No OFD packet to send [09:06:45]OFD Sender: No OFD packet to send [09:06:50]OFD Sender: No OFD packet to send [09:06:55]OFD Sender: No OFD packet to send [09:07:00]OFD Sender: No OFD packet to send [09:07:05]OFD Sender: No OFD packet to send [09:07:10]OFD Sender: No OFD packet to send [09:07:15]OFD Sender: No OFD packet to send [09:07:20]OFD Sender: No OFD packet to send [09:07:25]OFD Sender: No OFD packet to send [09:07:30]OFD Sender: No OFD packet to send [09:07:35]OFD Sender: No OFD packet to send [09:07:40]OFD Sender: No OFD packet to send [09:07:45]OFD Sender: No OFD packet to send [09:07:50]OFD Sender: No OFD packet to send [09:07:55]OFD Sender: No OFD packet to send [09:08:00]OFD Sender: No OFD packet to send [09:08:05]OFD Sender: No OFD packet to send [09:08:10]OFD Sender: No OFD packet to send [09:08:15]OFD Sender: No OFD packet to send [09:08:20]OFD Sender: No OFD packet to send [09:08:25]OFD Sender: No OFD packet to send [09:08:30]OFD Sender: No OFD packet to send [09:08:35]OFD Sender: No OFD packet to send [09:08:40]OFD Sender: No OFD packet to send [09:08:45]OFD Sender: No OFD packet to send [09:08:50]OFD Sender: No OFD packet to send [09:08:55]OFD Sender: No OFD packet to send [09:09:00]OFD Sender: No OFD packet to send [09:09:05]OFD Sender: No OFD packet to send [09:09:10]OFD Sender: No OFD packet to send [09:09:15]OFD Sender: No OFD packet to send [09:09:20]OFD Sender: No OFD packet to send [09:09:25]OFD Sender: No OFD packet to send [09:09:30]OFD Sender: No OFD packet to send [09:09:35]OFD Sender: No OFD packet to send [09:09:40]OFD Sender: No OFD packet to send [09:09:45]OFD Sender: No OFD packet to send [09:09:50]OFD Sender: No OFD packet to send [09:09:55]OFD Sender: No OFD packet to send [09:10:00]OFD Sender: No OFD packet to send [09:10:03]accept exits with 9 [09:10:03]New connection [09:10:03]New thread 3066801508 created [09:10:03]Thread 3066658148 joined [09:10:03]Waiting for new connection... [09:10:03] Sock 9.Parse request [09:10:03]Sock 9.Check first char [09:10:03]Sock 9.First char is OK [09:10:03]request: POST /json_proto HTTP/1.0 [09:10:03]Method: POST [09:10:03]URL: /json_proto [09:10:03]Method is POST - this is cgi request [09:10:03]url: /json_proto [09:10:03]query_string will be loaded in cgi processing [09:10:03]execute_cgi json_proto POST (null) [09:10:03]execute_cgi path=json_proto method=POST [09:10:03]POST find Content-Length [09:10:03]Host: 172.17.63.131:8080 [09:10:03]Content-Length: 791 [09:10:03]Content-Type: application/json [09:10:03] [09:10:03]POST finish read [09:10:03]Found Content-Length = 791 [09:10:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32141", "tax_sys" : 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" : 60.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00914", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:03]execute_script... [09:10:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32141", "tax_sys" : 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" : 60.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00914", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:03]POST & json_proto [09:10:03]process_json_proto [09:10:03]json parsed OK: [09:10:03]protocol is kg_v1.0 [09:10:03]action value=close_receipt [09:10:03]process_action close_receipt [09:10:03]cmd_close_receipt [09:10:03]MH_GetDate [09:10:03]Write to MH i2c: F0 00 00 1A 1E 27 [09:10:03]Write i2c OK [09:10:03]MH_I2C_Read... [09:10:03]Read from MH i2c: F0 [09:10:03]MH_I2C_Read... [09:10:03]Read from MH i2c: F0 09 00 [09:10:03]MH_I2C_Read... [09:10:03]Read from MH i2c: F0 09 00 1A 1E 00 6F A6 20 67 22 05 6E 64 C5 [09:10:03]GetLastDocTimeStamp 1730192385 [09:10:03]current date 1730193007 [09:10:03]FM_GetShiftState [09:10:03]SAM_PROTO_GetShiftState [09:10:03]wFMCommunicate request_size=4 [09:10:03]MH_SAM_APDU [09:10:03]CAPDU: 80 13 01 00 [09:10:03]Write to MH i2c: E2 08 00 1B 1E 80 13 01 00 00 00 00 00 B6 [09:10:03]Write i2c OK [09:10:03]MH_I2C_Read... [09:10:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:03]Read from MH i2c: E2 [09:10:03]MH_I2C_Read... [09:10:03]Read from MH i2c: E2 0E 00 [09:10:03]MH_I2C_Read... [09:10:03]Read from MH i2c: E2 0E 00 1B 1E 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 BC [09:10:03]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [09:10:03]wFMCommunicate OK [09:10:03]SAM_PROTO_GetShiftState done [09:10:03]FM_GetShiftState done [09:10:03]opened in 1730161990 [09:10:03]opened+sec_in_day 1730248390 [09:10:03]quantity*price = 0 [09:10:03]sum+1 = 1 [09:10:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 ÐСП 1% : 0.00 ÐДС 12% : 0.00 Ðаличными: 0.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 170 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 СÐО: Общий режим Чек 18 29.10.2024 09:10 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 Талоны: Ð¢Ð¾Ð¿Ð»Ð¸Ð²Ð½Ð°Ñ ÐšÐ°Ñ€Ñ‚Ð° 00914 ФМ: 0000000000871754 ФД: 192812 ФПД: 170809020272905 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T091007&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192812&fm=170809020272905&tin=02508201610067®Number=0000000000091776&sum=0 [09:10:04]StoreToDocumentArchive [09:10:04]shift 544 fd 192812 [09:10:04]save to /storage/0544/doc_00192812 [09:10:04]save last doc name /storage/0544/doc_00192812 to /storage/kkm_last_doc_name [09:10:04]save OK [09:10:04]Clear old archive folders... [09:10:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:10:04]tlvbuf is 00F93F80 [09:10:04]SAM_PROTO_ClearQueue [09:10:04]wFMCommunicate request_size=4 [09:10:04]MH_SAM_APDU [09:10:04]CAPDU: 80 09 00 00 [09:10:04]Write to MH i2c: E2 08 00 28 1E 80 09 00 00 00 00 00 00 B8 [09:10:04]Write i2c OK [09:10:04]MH_I2C_Read... [09:10:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:10:04]Read from MH i2c: E2 [09:10:04]MH_I2C_Read... [09:10:04]Read from MH i2c: E2 03 00 [09:10:04]MH_I2C_Read... [09:10:04]Read from MH i2c: E2 03 00 28 1E 00 90 00 BA [09:10:04]RAPDU: 90 00 [09:10:04]wFMCommunicate OK [09:10:04]SAM_PROTO_ClearQueue done [09:10:04]KKMCreateOFDPacket [09:10:04]OFDProtocolAddRootSTLVToBuf [09:10:04]FM_MakeSignedData [09:10:04]FM_MakeSignedData [09:10:04]SAM_PROTO_SignData [09:10:04]wFMCommunicate request_size=4 [09:10:04]MH_SAM_APDU [09:10:04]CAPDU: 80 0D 01 02 [09:10:04]Write to MH i2c: E2 08 00 29 1E 80 0D 01 02 00 00 00 00 C0 [09:10:04]Write i2c OK [09:10:04]MH_I2C_Read... [09:10:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:10:04]Read from MH i2c: E2 [09:10:04]MH_I2C_Read... [09:10:04]Read from MH i2c: E2 03 00 [09:10:04]MH_I2C_Read... [09:10:04]Read from MH i2c: E2 03 00 29 1E 00 90 00 BB [09:10:04]RAPDU: 90 00 [09:10:04]wFMCommunicate OK [09:10:04]wFMCommunicate request_size=255 [09:10:04]MH_SAM_APDU [09:10:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 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 12 00 00 00 F4 03 04 00 6F A6 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 9B [09:10:04]Write to MH i2c: E2 02 01 2A 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 60 EA 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 12 00 00 00 F4 03 04 00 6F A6 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 9B 00 00 A3 [09:10:05]Write i2c OK [09:10:05]MH_I2C_Read... [09:10:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:05]Read from MH i2c: E2 [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: E2 03 00 [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: E2 03 00 2A 1E 00 90 00 BC [09:10:05]RAPDU: 90 00 [09:10:05]wFMCommunicate OK [09:10:05]wFMCommunicate request_size=10 [09:10:05]MH_SAM_APDU [09:10:05]CAPDU: 80 0D 02 02 05 59 92 FA 51 09 [09:10:05]Write to MH i2c: E2 0D 00 2B 1E 80 0D 02 02 05 00 59 92 FA 51 09 00 00 0C [09:10:05]Write i2c OK [09:10:05]MH_I2C_Read... [09:10:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:05]Read from MH i2c: E2 [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: E2 03 00 [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: E2 03 00 2B 1E 00 90 00 BD [09:10:05]RAPDU: 90 00 [09:10:05]wFMCommunicate OK [09:10:05]wFMCommunicate request_size=4 [09:10:05]MH_SAM_APDU [09:10:05]CAPDU: 80 0D 03 02 [09:10:05]Write to MH i2c: E2 08 00 2C 1E 80 0D 03 02 00 00 00 00 C5 [09:10:05]Write i2c OK [09:10:05]MH_I2C_Read... [09:10:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:10:05]Read from MH i2c: E2 [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: E2 0B 00 [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: E2 0B 00 2C 1E 00 3D 53 7B EF 34 99 81 9B 90 00 A9 [09:10:05]RAPDU: 3D 53 7B EF 34 99 81 9B 90 00 [09:10:05]wFMCommunicate OK [09:10:05]SAM_PROTO_SignData done [09:10:05]FM_MakeSignedData done [09:10:05]CreateOFDProtocolMessage [09:10:05]wFMCommunicate request_size=4 [09:10:05]MH_SAM_APDU [09:10:05]CAPDU: 80 11 00 00 [09:10:05]Write to MH i2c: E2 08 00 2D 1E 80 11 00 00 00 00 00 00 C5 [09:10:05]Write i2c OK [09:10:05]MH_I2C_Read... [09:10:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:05]Read from MH i2c: E2 [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: E2 17 00 [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: E2 17 00 2D 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 18 [09:10: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:10:05]wFMCommunicate OK [09:10:05]CreateOFDProtocolMessage done [09:10:05]OFDSenderStorePacket 192812 [09:10:05]StoreOFDPacket docnum=192812 [09:10: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 2D 6D 07 01 16 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 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 12 00 00 00 F4 03 04 00 6F A6 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 9B 59 92 FA 51 09 3D 53 7B EF 34 99 81 9B [09:10:05]CheckFolder [09:10:05]dirname=/storage/ofd_packets [09:10:05]CheckFolder done [09:10:05]ProducePacketName [09:10:05]name=ofd_packets/00192812 [09:10:05]NVStorageSaveData ofd_packets/00192812 [09:10:05]File name is /storage/ofd_packets/00192812 [09:10:05]Write 301 bytes [09:10:05]NVStorageSaveData done [09:10:05]OFDSenderStorePacket done [09:10:05]KKMCreateOFDPacket done [09:10:05]NVStorageSaveData kkm_last_timestamp [09:10:05]File name is /storage/kkm_last_timestamp [09:10:05]Write 4 bytes [09:10:05]NVStorageSaveData done [09:10:05]ExternCall_PrintAddStr [09:10:05]wPrintStart [09:10:05]Write to MH i2c: 01 00 00 2E 1E 4C [09:10:05]Write i2c OK [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: 01 [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: 01 07 00 [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: 01 07 00 2E 1E 00 00 00 00 00 FF 0F 61 [09:10:05]RasterBufferAndPrint [09:10:05]line Счет N : (1)32141 [09:10:05]line ИÐÐ: 02508201610067 [09:10:05]line Контрольно-КаÑÑовый Чек [09:10:05]line ПРОДÐЖР[09:10:05]line ТРК (МРК, ГÐК) : 21 [09:10:05]line Товар: 2710124130 [09:10:05]line Ðи-92-К-5 [09:10:05]line 60.000 * 0.00 [09:10:05]line = 0.00 [09:10:05]line ÐДС 12% ÐСП 1% [09:10:05]line > о реализуемом товаре [09:10:05]line ИТОГО: 0.00 [09:10:05]line ÐСП 1% : 0.00 [09:10:05]line ÐДС 12% : 0.00 [09:10:05]line Ðаличными: 0.00 [09:10:05]line Безнал.: 0.00 [09:10:05]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [09:10:05]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [09:10:05]line СÐО: Общий режим [09:10:05]line Чек 18 29.10.2024 09:10 [09:10:05]line Смена: 544 ФФД: 1.0 [09:10:05]line ЗÐМ: 0300000110 [09:10:05]line РÐМ: 0000000000091776 [09:10:05]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [09:10:05]line Талоны: Ð¢Ð¾Ð¿Ð»Ð¸Ð²Ð½Ð°Ñ ÐšÐ°Ñ€Ñ‚Ð° [09:10:05]line 00914 [09:10:05]line ФМ: 0000000000871754 [09:10:05]line ФД: 192812 [09:10:05]line ФПД: 170809020272905 [09:10:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T091007&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192812&fm=170809020272905&tin=02508201610067®Number=0000000000091776&sum=0 [09:10:05]written 0, free lines is 4095 [09:10:05]OFD Sender: Processing packet 192812 [packets to send 75, broken 74] [09:10:05]ProducePacketName [09:10:05]name=ofd_packets/00192812 [09:10:05]OFD Sender: To server: ‡•öpG, [09:10:05]CommunicateWithHost lk.salyk.kg:30040 [09:10:05]ConnectInit lk.salyk.kg [09:10:05]Connected sock=10 [09:10:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2D 6D 07 01 16 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 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 12 00 00 00 F4 03 04 00 6F A6 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 9B 59 92 FA 51 09 3D 53 7B EF 34 99 81 9B [09:10: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 2B A8 47 00 0F 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 2C F1 02 00 F4 03 04 00 30 4B 20 67 B6 04 01 00 00 A0 83 F6 D5 F3 7A 6F 81 [09:10:06]CommunicateWithHost err = 0 [09:10:06]CheckOFDResponse [09:10:06]1017 (14) - 77093643461234 [09:10:06]1041 (16) - 0000000000871754 [09:10:06]1040 (4) - 192812 [09:10:06]1012 (4) - 29.10.2024 02:40 [09:10:06]1206 (1) - 0 [09:10:06]OFD Sender: Remove packet 192812 [09:10:06]ProducePacketName [09:10:06]name=ofd_packets/00192812 [09:10:06]NVStorageDeleteData [09:10:06]Write to MH i2c: 01 00 00 58 1E 76 [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 58 1E 00 00 00 00 00 B4 0C 3D [09:10:06]RasterBufferAndPrint [09:10:06]line [09:10:06]line [09:10:06]line [09:10:06]line [09:10:06]line [09:10:06]written 0, free lines is 3258 [09:10:06]MH_Cut [09:10:06]Write to MH i2c: D1 01 00 5F 1E 01 4F [09:10:06]Write i2c OK [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: D1 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: D1 01 00 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: D1 01 00 5F 1E 00 4E [09:10:06]Write to MH i2c: 01 00 00 60 1E 7E [09:10:06]Write i2c OK [09:10:06]MH_I2C_Read... [09:10:06]OFD Sender: No OFD packet to send [09:10:07]*** Cut start [09:10:07]*** Partial cut [09:10:07]*** CUTSNS_PIN = 1 [09:10:07]*** CUTSNS_PIN = 0 [09:10:07]*** Brake cut motor [09:10:07]Read from MH i2c: 01 [09:10:07]MH_I2C_Read... [09:10:07]*** Stop cut motor [09:10:07]*** Cut end [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 60 1E 00 00 00 00 00 FF 0F 93 [09:10:07]process_action close_receipt done [09:10:07]requested_data is exist [09:10:07]produce_requested_data [09:10:07]requested_item fm.sn is exist - process it [09:10:07]wFMCommunicate request_size=4 [09:10:07]MH_SAM_APDU [09:10:07]CAPDU: 80 11 00 00 [09:10:07]Write to MH i2c: E2 08 00 61 1E 80 11 00 00 00 00 00 00 F9 [09:10:07]Write i2c OK [09:10:07]MH_I2C_Read... [09:10:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:07]Read from MH i2c: E2 [09:10:07]MH_I2C_Read... [09:10:07]Read from MH i2c: E2 17 00 [09:10:07]MH_I2C_Read... [09:10:07]Read from MH i2c: E2 17 00 61 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4C [09:10: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:10:07]wFMCommunicate OK [09:10:07]requested_item fd.num is exist - process it [09:10:07]SAM_PROTO_GetFieldsCounters [09:10:07]wFMCommunicate request_size=4 [09:10:07]MH_SAM_APDU [09:10:07]CAPDU: 80 13 00 00 [09:10:07]Write to MH i2c: E2 08 00 62 1E 80 13 00 00 00 00 00 00 FC [09:10:07]Write i2c OK [09:10:07]MH_I2C_Read... [09:10:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:10:07]Read from MH i2c: E2 [09:10:07]MH_I2C_Read... [09:10:07]Read from MH i2c: E2 62 00 [09:10:07]MH_I2C_Read... [09:10:07]Read from MH i2c: E2 62 00 62 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 2C F1 02 00 0E 04 04 00 20 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 99 [09:10:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 F1 02 00 0E 04 04 00 20 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 [09:10:07]wFMCommunicate OK [09:10:07]SAM_PROTO_GetFieldsCounters done [09:10:07]requested_item shift.num is exist - process it [09:10:07]requested_item shift.opened is exist - process it [09:10:07]req_shift_opened [09:10:07]FM_GetShiftState [09:10:07]SAM_PROTO_GetShiftState [09:10:07]wFMCommunicate request_size=4 [09:10:07]MH_SAM_APDU [09:10:07]CAPDU: 80 13 01 00 [09:10:07]Write to MH i2c: E2 08 00 63 1E 80 13 01 00 00 00 00 00 FE [09:10:07]Write i2c OK [09:10:07]MH_I2C_Read... [09:10:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:07]Read from MH i2c: E2 [09:10:07]MH_I2C_Read... [09:10:07]Read from MH i2c: E2 0E 00 [09:10:07]MH_I2C_Read... [09:10:07]Read from MH i2c: E2 0E 00 63 1E 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 04 [09:10:07]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [09:10:07]wFMCommunicate OK [09:10:07]SAM_PROTO_GetShiftState done [09:10:07]FM_GetShiftState done [09:10:07]req_shift_opened done [09:10:07]requested_item shift.open_date is exist - process it [09:10:07]req_shift_open_date [09:10:07]req_shift_open_date done [09:10:07]produce_requested_data done [09:10:07]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192812,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [09:10:07]process_action_free close_receipt [09:10:07]json_value_free [09:10:07]json_value_free done [09:10:07]process_json_proto returns [09:10:07]Send response to host [09:10:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192812,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [09:10:07]free response buf [09:10:07]execute_script done [09:10:07]execute_script returns [09:10:07]free content buf [09:10:07]Sock 9.Close socket [09:10:07]Sock 9.Thread stoped [09:10:11]OFD Sender: No OFD packet to send [09:10:16]OFD Sender: No OFD packet to send [09:10:21]OFD Sender: No OFD packet to send [09:10:26]OFD Sender: No OFD packet to send [09:10:31]OFD Sender: No OFD packet to send [09:10:36]OFD Sender: No OFD packet to send [09:10:41]OFD Sender: No OFD packet to send [09:10:46]OFD Sender: No OFD packet to send [09:10:51]OFD Sender: No OFD packet to send [09:10:56]OFD Sender: No OFD packet to send [09:11:01]OFD Sender: No OFD packet to send [09:11:06]OFD Sender: No OFD packet to send [09:11:11]OFD Sender: No OFD packet to send [09:11:16]OFD Sender: No OFD packet to send [09:11:21]OFD Sender: No OFD packet to send [09:11:26]OFD Sender: No OFD packet to send [09:11:31]OFD Sender: No OFD packet to send [09:11:36]OFD Sender: No OFD packet to send [09:11:41]OFD Sender: No OFD packet to send [09:11:46]OFD Sender: No OFD packet to send [09:11:51]OFD Sender: No OFD packet to send [09:11:56]OFD Sender: No OFD packet to send [09:12:01]OFD Sender: No OFD packet to send [09:12:06]OFD Sender: No OFD packet to send [09:12:11]OFD Sender: No OFD packet to send [09:12:16]OFD Sender: No OFD packet to send [09:12:21]OFD Sender: No OFD packet to send [09:12:26]OFD Sender: No OFD packet to send [09:12:31]OFD Sender: No OFD packet to send [09:12:36]OFD Sender: No OFD packet to send [09:12:41]OFD Sender: No OFD packet to send [09:12:46]OFD Sender: No OFD packet to send [09:12:51]OFD Sender: No OFD packet to send [09:12:56]OFD Sender: No OFD packet to send [09:13:01]OFD Sender: No OFD packet to send [09:13:06]OFD Sender: No OFD packet to send [09:13:11]OFD Sender: No OFD packet to send [09:13:16]OFD Sender: No OFD packet to send [09:13:21]OFD Sender: No OFD packet to send [09:13:26]OFD Sender: No OFD packet to send [09:13:31]OFD Sender: No OFD packet to send [09:13:36]OFD Sender: No OFD packet to send [09:13:41]OFD Sender: No OFD packet to send [09:13:46]OFD Sender: No OFD packet to send [09:13:51]OFD Sender: No OFD packet to send [09:13:56]OFD Sender: No OFD packet to send [09:14:01]OFD Sender: No OFD packet to send [09:14:06]OFD Sender: No OFD packet to send [09:14:11]OFD Sender: No OFD packet to send [09:14:16]OFD Sender: No OFD packet to send [09:14:21]OFD Sender: No OFD packet to send [09:14:26]OFD Sender: No OFD packet to send [09:14:31]OFD Sender: No OFD packet to send [09:14:36]OFD Sender: No OFD packet to send [09:14:41]OFD Sender: No OFD packet to send [09:14:46]OFD Sender: No OFD packet to send [09:14:51]OFD Sender: No OFD packet to send [09:14:56]OFD Sender: No OFD packet to send [09:15:01]OFD Sender: No OFD packet to send [09:15:06]OFD Sender: No OFD packet to send [09:15:11]OFD Sender: No OFD packet to send [09:15:16]OFD Sender: No OFD packet to send [09:15:21]OFD Sender: No OFD packet to send [09:15:26]OFD Sender: No OFD packet to send [09:15:31]OFD Sender: No OFD packet to send [09:15:36]OFD Sender: No OFD packet to send [09:15:41]OFD Sender: No OFD packet to send [09:15:46]OFD Sender: No OFD packet to send [09:15:51]OFD Sender: No OFD packet to send [09:15:56]OFD Sender: No OFD packet to send [09:16:01]OFD Sender: No OFD packet to send [09:16:06]OFD Sender: No OFD packet to send [09:16:11]OFD Sender: No OFD packet to send [09:16:16]OFD Sender: No OFD packet to send [09:16:21]OFD Sender: No OFD packet to send [09:16:26]OFD Sender: No OFD packet to send [09:16:31]OFD Sender: No OFD packet to send [09:16:36]OFD Sender: No OFD packet to send [09:16:41]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:42]OFD Sender: No OFD packet to send [09:18:47]OFD Sender: No OFD packet to send [09:18:52]OFD Sender: No OFD packet to send [09:18:57]OFD Sender: No OFD packet to send [09:19:02]OFD Sender: No OFD packet to send [09:19:07]OFD Sender: No OFD packet to send [09:19:12]OFD Sender: No OFD packet to send [09:19:17]OFD Sender: No OFD packet to send [09:19:22]OFD Sender: No OFD packet to send [09:19:27]OFD Sender: No OFD packet to send [09:19:32]OFD Sender: No OFD packet to send [09:19:37]OFD Sender: No OFD packet to send [09:19:42]OFD Sender: No OFD packet to send [09:19:47]OFD Sender: No OFD packet to send [09:19:52]OFD Sender: No OFD packet to send [09:19:57]OFD Sender: No OFD packet to send [09:20:02]OFD Sender: No OFD packet to send [09:20:07]OFD Sender: No OFD packet to send [09:20:12]OFD Sender: No OFD packet to send [09:20:17]OFD Sender: No OFD packet to send [09:20:22]OFD Sender: No OFD packet to send [09:20:27]OFD Sender: No OFD packet to send [09:20:32]OFD Sender: No OFD packet to send [09:20:37]OFD Sender: No OFD packet to send [09:20:42]OFD Sender: No OFD packet to send [09:20:47]OFD Sender: No OFD packet to send [09:20:52]OFD Sender: No OFD packet to send [09:20:57]OFD Sender: No OFD packet to send [09:21:02]OFD Sender: No OFD packet to send [09:21:07]OFD Sender: No OFD packet to send [09:21:12]OFD Sender: No OFD packet to send [09:21:17]OFD Sender: No OFD packet to send [09:21:22]OFD Sender: No OFD packet to send [09:21:27]OFD Sender: No OFD packet to send [09:21:32]OFD Sender: No OFD packet to send [09:21:37]OFD Sender: No OFD packet to send [09:21:41]accept exits with 8 [09:21:41]New connection [09:21:41]New thread 3066658148 created [09:21:41]Thread 3066801508 joined [09:21:41]Waiting for new connection... [09:21:41] Sock 8.Parse request [09:21:41]Sock 8.Check first char [09:21:41]Sock 8.First char is OK [09:21:41]request: POST /json_proto HTTP/1.0 [09:21:41]Method: POST [09:21:41]URL: /json_proto [09:21:41]Method is POST - this is cgi request [09:21:41]url: /json_proto [09:21:41]query_string will be loaded in cgi processing [09:21:41]execute_cgi json_proto POST (null) [09:21:41]execute_cgi path=json_proto method=POST [09:21:41]POST find Content-Length [09:21:41]Host: 172.17.63.131:8080 [09:21:41]Content-Length: 676 [09:21:41]Content-Type: application/json [09:21:41] [09:21:41]POST finish read [09:21:41]Found Content-Length = 676 [09:21:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32142", "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:21:41]execute_script... [09: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)32142", "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:21:41]POST & json_proto [09:21:41]process_json_proto [09:21:41]json parsed OK: [09:21:41]protocol is kg_v1.0 [09:21:41]action value=close_receipt [09:21:41]process_action close_receipt [09:21:41]cmd_close_receipt [09:21:41]MH_GetDate [09:21:41]Write to MH i2c: F0 00 00 64 1E 71 [09:21:41]Write i2c OK [09:21:41]MH_I2C_Read... [09:21:41]Read from MH i2c: F0 [09:21:41]MH_I2C_Read... [09:21:41]Read from MH i2c: F0 09 00 [09:21:41]MH_I2C_Read... [09:21:41]Read from MH i2c: F0 09 00 64 1E 00 29 A9 20 67 22 05 6E 64 CC [09:21:41]GetLastDocTimeStamp 1730193007 [09:21:41]current date 1730193705 [09:21:41]FM_GetShiftState [09:21:41]SAM_PROTO_GetShiftState [09:21:41]wFMCommunicate request_size=4 [09:21:41]MH_SAM_APDU [09:21:41]CAPDU: 80 13 01 00 [09:21:41]Write to MH i2c: E2 08 00 65 1E 80 13 01 00 00 00 00 00 00 [09:21:41]Write i2c OK [09:21:41]MH_I2C_Read... [09:21:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:41]Read from MH i2c: E2 [09:21:41]MH_I2C_Read... [09:21:41]Read from MH i2c: E2 0E 00 [09:21:41]MH_I2C_Read... [09:21:41]Read from MH i2c: E2 0E 00 65 1E 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 06 [09:21:41]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [09:21:41]wFMCommunicate OK [09:21:41]SAM_PROTO_GetShiftState done [09:21:41]FM_GetShiftState done [09:21:41]opened in 1730161990 [09:21:41]opened+sec_in_day 1730248390 [09:21:41]quantity*price = 60009 [09:21:41]sum+1 = 60010 [09:21: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 СÐО: Общий режим Чек 19 29.10.2024 09:21 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192813 ФПД: 92770072816928 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T092145&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192813&fm=92770072816928&tin=02508201610067®Number=0000000000091776&sum=60000 [09:21:43]StoreToDocumentArchive [09:21:43]shift 544 fd 192813 [09:21:43]save to /storage/0544/doc_00192813 [09:21:43]save last doc name /storage/0544/doc_00192813 to /storage/kkm_last_doc_name [09:21:43]save OK [09:21:43]Clear old archive folders... [09:21:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:21:43]tlvbuf is 00EF1B50 [09:21:43]SAM_PROTO_ClearQueue [09:21:43]wFMCommunicate request_size=4 [09:21:43]MH_SAM_APDU [09:21:43]CAPDU: 80 09 00 00 [09:21:43]Write to MH i2c: E2 08 00 72 1E 80 09 00 00 00 00 00 00 02 [09:21:43]Write i2c OK [09:21:43]MH_I2C_Read... [09:21:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:21:43]Read from MH i2c: E2 [09:21:43]MH_I2C_Read... [09:21:43]Read from MH i2c: E2 03 00 [09:21:43]MH_I2C_Read... [09:21:43]Read from MH i2c: E2 03 00 72 1E 00 90 00 04 [09:21:43]RAPDU: 90 00 [09:21:43]wFMCommunicate OK [09:21:43]SAM_PROTO_ClearQueue done [09:21:43]KKMCreateOFDPacket [09:21:43]OFDProtocolAddRootSTLVToBuf [09:21:43]FM_MakeSignedData [09:21:43]FM_MakeSignedData [09:21:43]SAM_PROTO_SignData [09:21:43]wFMCommunicate request_size=4 [09:21:43]MH_SAM_APDU [09:21:43]CAPDU: 80 0D 01 02 [09:21:43]Write to MH i2c: E2 08 00 73 1E 80 0D 01 02 00 00 00 00 0A [09:21:43]Write i2c OK [09:21:43]MH_I2C_Read... [09:21:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:21:43]Read from MH i2c: E2 [09:21:43]MH_I2C_Read... [09:21:43]Read from MH i2c: E2 03 00 [09:21:43]MH_I2C_Read... [09:21:43]Read from MH i2c: E2 03 00 73 1E 00 90 00 05 [09:21:43]RAPDU: 90 00 [09:21:43]wFMCommunicate OK [09:21:43]wFMCommunicate request_size=255 [09:21:43]MH_SAM_APDU [09: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 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 13 00 00 00 F4 03 04 00 29 A9 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 54 [09:21:43]Write to MH i2c: E2 02 01 74 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 13 00 00 00 F4 03 04 00 29 A9 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 54 00 00 7D [09:21:43]Write i2c OK [09:21:43]MH_I2C_Read... [09:21:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:43]Read from MH i2c: E2 [09:21:43]MH_I2C_Read... [09:21:43]Read from MH i2c: E2 03 00 [09:21:43]MH_I2C_Read... [09:21:43]Read from MH i2c: E2 03 00 74 1E 00 90 00 06 [09:21:43]RAPDU: 90 00 [09:21:43]wFMCommunicate OK [09:21:43]wFMCommunicate request_size=10 [09:21:43]MH_SAM_APDU [09:21:43]CAPDU: 80 0D 02 02 05 5F B7 3C 6D 20 [09:21:43]Write to MH i2c: E2 0D 00 75 1E 80 0D 02 02 05 00 5F B7 3C 6D 20 00 00 F6 [09:21:43]Write i2c OK [09:21:43]MH_I2C_Read... [09:21:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:43]Read from MH i2c: E2 [09:21:43]MH_I2C_Read... [09:21:43]Read from MH i2c: E2 03 00 [09:21:43]MH_I2C_Read... [09:21:43]Read from MH i2c: E2 03 00 75 1E 00 90 00 07 [09:21:43]RAPDU: 90 00 [09:21:43]wFMCommunicate OK [09:21:43]wFMCommunicate request_size=4 [09:21:43]MH_SAM_APDU [09:21:43]CAPDU: 80 0D 03 02 [09:21:43]Write to MH i2c: E2 08 00 76 1E 80 0D 03 02 00 00 00 00 0F [09:21:43]Write i2c OK [09:21:43]MH_I2C_Read... [09:21:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:21:43]Read from MH i2c: E2 [09:21:43]MH_I2C_Read... [09:21:43]Read from MH i2c: E2 0B 00 [09:21:43]MH_I2C_Read... [09:21:43]Read from MH i2c: E2 0B 00 76 1E 00 8B 82 5A 7D CF EC 70 70 90 00 8F [09:21:43]RAPDU: 8B 82 5A 7D CF EC 70 70 90 00 [09:21:43]wFMCommunicate OK [09:21:43]SAM_PROTO_SignData done [09:21:43]FM_MakeSignedData done [09:21:43]CreateOFDProtocolMessage [09:21:43]wFMCommunicate request_size=4 [09:21:43]MH_SAM_APDU [09:21:43]CAPDU: 80 11 00 00 [09:21:43]Write to MH i2c: E2 08 00 77 1E 80 11 00 00 00 00 00 00 0F [09:21:43]Write i2c OK [09:21:43]MH_I2C_Read... [09:21:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:43]Read from MH i2c: E2 [09:21:43]MH_I2C_Read... [09:21:43]Read from MH i2c: E2 17 00 [09:21:43]MH_I2C_Read... [09:21:43]Read from MH i2c: E2 17 00 77 1E 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: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 [09:21:43]wFMCommunicate OK [09:21:43]CreateOFDProtocolMessage done [09:21:43]OFDSenderStorePacket 192813 [09:21:43]StoreOFDPacket docnum=192813 [09: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 01 66 07 01 F4 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 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 13 00 00 00 F4 03 04 00 29 A9 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 54 5F B7 3C 6D 20 8B 82 5A 7D CF EC 70 70 [09:21:43]CheckFolder [09:21:43]dirname=/storage/ofd_packets [09:21:43]CheckFolder done [09:21:43]ProducePacketName [09:21:43]name=ofd_packets/00192813 [09:21:43]NVStorageSaveData ofd_packets/00192813 [09:21:43]File name is /storage/ofd_packets/00192813 [09:21:43]Write 301 bytes [09:21:43]NVStorageSaveData done [09:21:43]OFDSenderStorePacket done [09:21:43]KKMCreateOFDPacket done [09:21:43]NVStorageSaveData kkm_last_timestamp [09:21:43]File name is /storage/kkm_last_timestamp [09:21:43]Write 4 bytes [09:21:43]NVStorageSaveData done [09:21:43]ExternCall_PrintAddStr [09:21:43]wPrintStart [09:21:43]Write to MH i2c: 01 00 00 78 1E 96 [09:21:43]Write i2c OK [09:21:43]MH_I2C_Read... [09:21:43]Read from MH i2c: 01 [09:21:43]MH_I2C_Read... [09:21:43]Read from MH i2c: 01 07 00 [09:21:43]MH_I2C_Read... [09:21:43]Read from MH i2c: 01 07 00 78 1E 00 00 00 00 00 FF 0F AB [09:21:43]RasterBufferAndPrint [09:21:43]line Счет N : (1)32142 [09:21:43]line ИÐÐ: 02508201610067 [09:21:43]line Контрольно-КаÑÑовый Чек [09:21:43]line ПРОДÐЖР[09:21:43]line ТРК (МРК, ГÐК) : 12 [09:21:43]line Товар: 2710124130 [09:21:43]line Ðи-92-К-5 [09:21:43]line 8.970 * 66.90 [09:21:43]line = 600.09 [09:21:43]line ÐДС 12% ÐСП 1% [09:21:43]line > о реализуемом товаре [09:21:43]line ОКРУГЛЕÐИЕ: -0.09 [09:21:43]line ИТОГО: 600.00 [09:21:43]line ВнеÑено: 600.00 [09:21:43]line СДÐЧÐ: 0.00 [09:21:43]line ÐСП 1% : 5.31 [09:21:43]line ÐДС 12% : 63.73 [09:21:43]line Ðаличными: 600.00 [09:21:43]line Безнал.: 0.00 [09:21:43]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [09:21:43]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [09:21:43]line СÐО: Общий режим [09:21:43]line Чек 19 29.10.2024 09:21 [09:21:43]line Смена: 544 ФФД: 1.0 [09:21:43]line ЗÐМ: 0300000110 [09:21:43]line РÐМ: 0000000000091776 [09:21:43]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [09:21:43]line ФМ: 0000000000871754 [09:21:43]line ФД: 192813 [09:21:43]line ФПД: 92770072816928 [09:21:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T092145&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192813&fm=92770072816928&tin=02508201610067®Number=0000000000091776&sum=60000 [09:21:43]OFD Sender: Processing packet 192813 [packets to send 75, broken 74] [09:21:43]ProducePacketName [09:21:43]name=ofd_packets/00192813 [09:21:43]OFD Sender: To server: ‡•öpG, [09:21:43]CommunicateWithHost lk.salyk.kg:30040 [09:21:43]ConnectInit lk.salyk.kg [09:21:43]written 0, free lines is 4095 [09:21:44]Connected sock=10 [09: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 01 66 07 01 F4 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 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 13 00 00 00 F4 03 04 00 29 A9 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 54 5F B7 3C 6D 20 8B 82 5A 7D CF EC 70 70 [09: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 9C CB 47 00 5C 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 2D F1 02 00 F4 03 04 00 EB 4D 20 67 B6 04 01 00 00 24 54 75 37 EA 77 CA E3 [09:21:44]CommunicateWithHost err = 0 [09:21:44]CheckOFDResponse [09:21:44]1017 (14) - 77093643461234 [09:21:44]1041 (16) - 0000000000871754 [09:21:44]1040 (4) - 192813 [09:21:44]1012 (4) - 29.10.2024 02:52 [09:21:44]1206 (1) - 0 [09:21:44]OFD Sender: Remove packet 192813 [09:21:44]ProducePacketName [09:21:44]name=ofd_packets/00192813 [09:21:44]NVStorageDeleteData [09:21:44]Write to MH i2c: 01 00 00 A3 1E C1 [09:21:44]Write i2c OK [09:21:44]MH_I2C_Read... [09:21:44]Read from MH i2c: 01 [09:21:44]MH_I2C_Read... [09:21:44]Read from MH i2c: 01 07 00 [09:21:44]MH_I2C_Read... [09:21:44]Read from MH i2c: 01 07 00 A3 1E 00 00 00 00 00 A9 0C 7D [09:21:44]RasterBufferAndPrint [09:21:44]line [09:21:44]line [09:21:44]line [09:21:44]line [09:21:44]line [09:21:44]written 0, free lines is 3247 [09:21:44]MH_Cut [09:21:44]Write to MH i2c: D1 01 00 AA 1E 01 9A [09:21:44]Write i2c OK [09:21:44]MH_I2C_Read... [09:21:44]Read from MH i2c: D1 [09:21:44]MH_I2C_Read... [09:21:44]Read from MH i2c: D1 01 00 [09:21:44]MH_I2C_Read... [09:21:44]Read from MH i2c: D1 01 00 AA 1E 00 99 [09:21:44]Write to MH i2c: 01 00 00 AB 1E C9 [09:21:44]Write i2c OK [09:21:44]MH_I2C_Read... [09:21:44]OFD Sender: No OFD packet to send [09:21:45]*** Cut start [09:21:45]*** Partial cut [09:21:45]*** CUTSNS_PIN = 1 [09:21:45]*** CUTSNS_PIN = 0 [09:21:45]*** Brake cut motor [09:21:45]Read from MH i2c: 01 [09:21:45]MH_I2C_Read... [09:21:45]*** Stop cut motor [09:21:45]*** Cut end [09:21:45]Read from MH i2c: 01 07 00 [09:21:45]MH_I2C_Read... [09:21:45]Read from MH i2c: 01 07 00 AB 1E 00 00 00 00 00 FF 0F DE [09:21:45]process_action close_receipt done [09:21:45]requested_data is exist [09:21:45]produce_requested_data [09:21:45]requested_item fm.sn is exist - process it [09:21:45]wFMCommunicate request_size=4 [09:21:45]MH_SAM_APDU [09:21:45]CAPDU: 80 11 00 00 [09:21:45]Write to MH i2c: E2 08 00 AC 1E 80 11 00 00 00 00 00 00 44 [09:21:45]Write i2c OK [09:21:45]MH_I2C_Read... [09:21:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:46]Read from MH i2c: E2 [09:21:46]MH_I2C_Read... [09:21:46]Read from MH i2c: E2 17 00 [09:21:46]MH_I2C_Read... [09:21:46]Read from MH i2c: E2 17 00 AC 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 97 [09:21: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:21:46]wFMCommunicate OK [09:21:46]requested_item fd.num is exist - process it [09:21:46]SAM_PROTO_GetFieldsCounters [09:21:46]wFMCommunicate request_size=4 [09:21:46]MH_SAM_APDU [09:21:46]CAPDU: 80 13 00 00 [09:21:46]Write to MH i2c: E2 08 00 AD 1E 80 13 00 00 00 00 00 00 47 [09:21:46]Write i2c OK [09:21:46]MH_I2C_Read... [09:21:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:21:46]Read from MH i2c: E2 [09:21:46]MH_I2C_Read... [09:21:46]Read from MH i2c: E2 62 00 [09:21:46]MH_I2C_Read... [09:21:46]Read from MH i2c: E2 62 00 AD 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 2D F1 02 00 0E 04 04 00 20 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 E8 [09: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 2D F1 02 00 0E 04 04 00 20 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 [09:21:46]wFMCommunicate OK [09:21:46]SAM_PROTO_GetFieldsCounters done [09:21:46]requested_item shift.num is exist - process it [09:21:46]requested_item shift.opened is exist - process it [09:21:46]req_shift_opened [09:21:46]FM_GetShiftState [09:21:46]SAM_PROTO_GetShiftState [09:21:46]wFMCommunicate request_size=4 [09:21:46]MH_SAM_APDU [09:21:46]CAPDU: 80 13 01 00 [09:21:46]Write to MH i2c: E2 08 00 AE 1E 80 13 01 00 00 00 00 00 49 [09:21:46]Write i2c OK [09:21:46]MH_I2C_Read... [09:21:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:46]Read from MH i2c: E2 [09:21:46]MH_I2C_Read... [09:21:46]Read from MH i2c: E2 0E 00 [09:21:46]MH_I2C_Read... [09:21:46]Read from MH i2c: E2 0E 00 AE 1E 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 4F [09:21:46]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [09:21:46]wFMCommunicate OK [09:21:46]SAM_PROTO_GetShiftState done [09:21:46]FM_GetShiftState done [09:21:46]req_shift_opened done [09:21:46]requested_item shift.open_date is exist - process it [09:21:46]req_shift_open_date [09:21:46]req_shift_open_date done [09:21:46]produce_requested_data done [09:21:46]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192813,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [09:21:46]process_action_free close_receipt [09:21:46]json_value_free [09:21:46]json_value_free done [09:21:46]process_json_proto returns [09:21:46]Send response to host [09:21:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192813,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [09:21:46]free response buf [09:21:46]execute_script done [09:21:46]execute_script returns [09:21:46]free content buf [09:21:46]Sock 8.Close socket [09:21:46]Sock 8.Thread stoped [09:21:49]OFD Sender: No OFD packet to send [09:21:54]OFD Sender: No OFD packet to send [09:21:59]OFD Sender: No OFD packet to send [09:22:04]OFD Sender: No OFD packet to send [09:22:09]OFD Sender: No OFD packet to send [09:22:14]OFD Sender: No OFD packet to send [09:22:17]accept exits with 9 [09:22:17]New connection [09:22:17]New thread 3066801508 created [09:22:17]Thread 3066658148 joined [09:22:17]Waiting for new connection... [09:22:17] Sock 9.Parse request [09:22:17]Sock 9.Check first char [09:22:17]Sock 9.First char is OK [09:22:17]request: POST /json_proto HTTP/1.0 [09:22:17]Method: POST [09:22:17]URL: /json_proto [09:22:17]Method is POST - this is cgi request [09:22:17]url: /json_proto [09:22:17]query_string will be loaded in cgi processing [09:22:17]execute_cgi json_proto POST (null) [09:22:17]execute_cgi path=json_proto method=POST [09:22:17]POST find Content-Length [09:22:17]Host: 172.17.63.131:8080 [09:22:17]Content-Length: 781 [09:22:17]Content-Type: application/json [09:22:17] [09:22:17]POST finish read [09:22:17]Found Content-Length = 781 [09:22:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32143", "tax_sys" : 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" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4582638", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:17]execute_script... [09:22:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32143", "tax_sys" : 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" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4582638", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:17]POST & json_proto [09:22:17]process_json_proto [09:22:17]json parsed OK: [09:22:17]protocol is kg_v1.0 [09:22:17]action value=close_receipt [09:22:17]process_action close_receipt [09:22:17]cmd_close_receipt [09:22:17]MH_GetDate [09:22:17]Write to MH i2c: F0 00 00 AF 1E BC [09:22:17]Write i2c OK [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: F0 [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: F0 09 00 [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: F0 09 00 AF 1E 00 4D A9 20 67 22 05 6E 64 3B [09:22:17]GetLastDocTimeStamp 1730193705 [09:22:17]current date 1730193741 [09:22:17]FM_GetShiftState [09:22:17]SAM_PROTO_GetShiftState [09:22:17]wFMCommunicate request_size=4 [09:22:17]MH_SAM_APDU [09:22:17]CAPDU: 80 13 01 00 [09:22:17]Write to MH i2c: E2 08 00 B0 1E 80 13 01 00 00 00 00 00 4B [09:22:17]Write i2c OK [09:22:17]MH_I2C_Read... [09:22:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:17]Read from MH i2c: E2 [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: E2 0E 00 [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: E2 0E 00 B0 1E 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 51 [09:22:17]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [09:22:17]wFMCommunicate OK [09:22:17]SAM_PROTO_GetShiftState done [09:22:17]FM_GetShiftState done [09:22:17]opened in 1730161990 [09:22:17]opened+sec_in_day 1730248390 [09:22:17]quantity*price = 0 [09:22:17]sum+1 = 1 [09:22:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 ÐСП 1% : 0.00 ÐДС 12% : 0.00 Ðаличными: 0.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 170 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 СÐО: Общий режим Чек 20 29.10.2024 09:22 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 Талоны: Партнер нефть 4582638 ФМ: 0000000000871754 ФД: 192814 ФПД: 175671057147094 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T092221&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192814&fm=175671057147094&tin=02508201610067®Number=0000000000091776&sum=0 [09:22:19]StoreToDocumentArchive [09:22:19]shift 544 fd 192814 [09:22:19]save to /storage/0544/doc_00192814 [09:22:19]save last doc name /storage/0544/doc_00192814 to /storage/kkm_last_doc_name [09:22:19]save OK [09:22:19]Clear old archive folders... [09:22:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:22:19]tlvbuf is 00FF5450 [09:22:19]SAM_PROTO_ClearQueue [09:22:19]wFMCommunicate request_size=4 [09:22:19]MH_SAM_APDU [09:22:19]CAPDU: 80 09 00 00 [09:22:19]Write to MH i2c: E2 08 00 BD 1E 80 09 00 00 00 00 00 00 4D [09:22:19]Write i2c OK [09:22:19]MH_I2C_Read... [09:22:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:22:19]Read from MH i2c: E2 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: E2 03 00 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: E2 03 00 BD 1E 00 90 00 4F [09:22:19]RAPDU: 90 00 [09:22:19]wFMCommunicate OK [09:22:19]SAM_PROTO_ClearQueue done [09:22:19]KKMCreateOFDPacket [09:22:19]OFDProtocolAddRootSTLVToBuf [09:22:19]FM_MakeSignedData [09:22:19]FM_MakeSignedData [09:22:19]SAM_PROTO_SignData [09:22:19]wFMCommunicate request_size=4 [09:22:19]MH_SAM_APDU [09:22:19]CAPDU: 80 0D 01 02 [09:22:19]Write to MH i2c: E2 08 00 BE 1E 80 0D 01 02 00 00 00 00 55 [09:22:19]Write i2c OK [09:22:19]MH_I2C_Read... [09:22:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:22:19]Read from MH i2c: E2 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: E2 03 00 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: E2 03 00 BE 1E 00 90 00 50 [09:22:19]RAPDU: 90 00 [09:22:19]wFMCommunicate OK [09:22:19]wFMCommunicate request_size=255 [09:22:19]MH_SAM_APDU [09:22: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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 4D A9 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 9F [09:22:19]Write to MH i2c: E2 02 01 BF 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 4D A9 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 9F 00 00 0E [09:22:19]Write i2c OK [09:22:19]MH_I2C_Read... [09:22:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:19]Read from MH i2c: E2 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: E2 03 00 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: E2 03 00 BF 1E 00 90 00 51 [09:22:19]RAPDU: 90 00 [09:22:19]wFMCommunicate OK [09:22:19]wFMCommunicate request_size=10 [09:22:19]MH_SAM_APDU [09:22:19]CAPDU: 80 0D 02 02 05 C5 9A F5 64 D6 [09:22:19]Write to MH i2c: E2 0D 00 C0 1E 80 0D 02 02 05 00 C5 9A F5 64 D6 00 00 F0 [09:22:19]Write i2c OK [09:22:19]MH_I2C_Read... [09:22:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:19]Read from MH i2c: E2 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: E2 03 00 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: E2 03 00 C0 1E 00 90 00 52 [09:22:19]RAPDU: 90 00 [09:22:19]wFMCommunicate OK [09:22:19]wFMCommunicate request_size=4 [09:22:19]MH_SAM_APDU [09:22:19]CAPDU: 80 0D 03 02 [09:22:19]Write to MH i2c: E2 08 00 C1 1E 80 0D 03 02 00 00 00 00 5A [09:22:19]Write i2c OK [09:22:19]MH_I2C_Read... [09:22:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:22:19]Read from MH i2c: E2 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: E2 0B 00 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: E2 0B 00 C1 1E 00 D2 43 78 54 B0 52 9C 3A 90 00 14 [09:22:19]RAPDU: D2 43 78 54 B0 52 9C 3A 90 00 [09:22:19]wFMCommunicate OK [09:22:19]SAM_PROTO_SignData done [09:22:19]FM_MakeSignedData done [09:22:19]CreateOFDProtocolMessage [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 C2 1E 80 11 00 00 00 00 00 00 5A [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 C2 1E 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: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]CreateOFDProtocolMessage done [09:22:19]OFDSenderStorePacket 192814 [09:22:19]StoreOFDPacket docnum=192814 [09:22: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 00 6D 07 01 21 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 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 14 00 00 00 F4 03 04 00 4D A9 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 9F C5 9A F5 64 D6 D2 43 78 54 B0 52 9C 3A [09:22:19]CheckFolder [09:22:19]dirname=/storage/ofd_packets [09:22:19]CheckFolder done [09:22:19]ProducePacketName [09:22:19]name=ofd_packets/00192814 [09:22:19]NVStorageSaveData ofd_packets/00192814 [09:22:19]File name is /storage/ofd_packets/00192814 [09:22:19]Write 301 bytes [09:22:19]NVStorageSaveData done [09:22:19]OFDSenderStorePacket done [09:22:19]KKMCreateOFDPacket done [09:22:19]NVStorageSaveData kkm_last_timestamp [09:22:19]File name is /storage/kkm_last_timestamp [09:22:19]Write 4 bytes [09:22:19]NVStorageSaveData done [09:22:19]ExternCall_PrintAddStr [09:22:19]wPrintStart [09:22:19]Write to MH i2c: 01 00 00 C3 1E E1 [09:22:19]Write i2c OK [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: 01 [09:22:19]MH_I2C_Read... [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 C3 1E 00 00 00 00 00 FF 0F F6 [09:22:19]RasterBufferAndPrint [09:22:19]line Счет N : (1)32143 [09:22:19]line ИÐÐ: 02508201610067 [09:22:19]line Контрольно-КаÑÑовый Чек [09:22:19]line ПРОДÐЖР[09:22:19]line ТРК (МРК, ГÐК) : 21 [09:22:19]line Товар: 2710124130 [09:22:19]line Ðи-92-К-5 [09:22:19]line 10.000 * 0.00 [09:22:19]line = 0.00 [09:22:19]line ÐДС 12% ÐСП 1% [09:22:19]line > о реализуемом товаре [09:22:19]line ИТОГО: 0.00 [09:22:19]line ÐСП 1% : 0.00 [09:22:19]line ÐДС 12% : 0.00 [09:22:19]line Ðаличными: 0.00 [09:22:19]line Безнал.: 0.00 [09:22:19]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [09:22:19]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [09:22:19]line СÐО: Общий режим [09:22:19]line Чек 20 29.10.2024 09:22 [09:22:19]line Смена: 544 ФФД: 1.0 [09:22:19]line ЗÐМ: 0300000110 [09:22:19]line РÐМ: 0000000000091776 [09:22:19]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [09:22:19]line Талоны: Партнер нефть [09:22:19]line 4582638 [09:22:19]line ФМ: 0000000000871754 [09:22:19]line ФД: 192814 [09:22:19]line ФПД: 175671057147094 [09:22:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T092221&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192814&fm=175671057147094&tin=02508201610067®Number=0000000000091776&sum=0 [09:22:19]written 0, free lines is 4095 [09:22:19]OFD Sender: Processing packet 192814 [packets to send 75, broken 74] [09:22:19]ProducePacketName [09:22:19]name=ofd_packets/00192814 [09:22:19]OFD Sender: To server: ‡•öpG, [09:22:19]CommunicateWithHost lk.salyk.kg:30040 [09:22:19]ConnectInit lk.salyk.kg [09:22:19]Connected sock=10 [09:22:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 00 6D 07 01 21 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 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 14 00 00 00 F4 03 04 00 4D A9 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 9F C5 9A F5 64 D6 D2 43 78 54 B0 52 9C 3A [09:22: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 F5 FE 47 00 CF 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 2E F1 02 00 F4 03 04 00 0E 4E 20 67 B6 04 01 00 00 5A 28 01 42 B0 43 E1 18 [09:22:20]CommunicateWithHost err = 0 [09:22:20]CheckOFDResponse [09:22:20]1017 (14) - 77093643461234 [09:22:20]1041 (16) - 0000000000871754 [09:22:20]1040 (4) - 192814 [09:22:20]1012 (4) - 29.10.2024 02:53 [09:22:20]1206 (1) - 0 [09:22:20]OFD Sender: Remove packet 192814 [09:22:20]ProducePacketName [09:22:20]name=ofd_packets/00192814 [09:22:20]NVStorageDeleteData [09:22:20]Write to MH i2c: 01 00 00 ED 1E 0B [09:22:20]Write i2c OK [09:22:20]MH_I2C_Read... [09:22:20]Read from MH i2c: 01 [09:22:20]MH_I2C_Read... [09:22:20]Read from MH i2c: 01 07 00 [09:22:20]MH_I2C_Read... [09:22:20]Read from MH i2c: 01 07 00 ED 1E 00 00 00 00 00 C1 0C DF [09:22:20]RasterBufferAndPrint [09:22:20]line [09:22:20]line [09:22:20]line [09:22:20]line [09:22:20]line [09:22:20]written 0, free lines is 3271 [09:22:20]MH_Cut [09:22:20]Write to MH i2c: D1 01 00 F4 1E 01 E4 [09:22:20]Write i2c OK [09:22:20]MH_I2C_Read... [09:22:20]Read from MH i2c: D1 [09:22:20]MH_I2C_Read... [09:22:20]Read from MH i2c: D1 01 00 [09:22:20]MH_I2C_Read... [09:22:20]Read from MH i2c: D1 01 00 F4 1E 00 E3 [09:22:20]Write to MH i2c: 01 00 00 F5 1E 13 [09:22:20]Write i2c OK [09:22:20]MH_I2C_Read... [09:22:20]OFD Sender: No OFD packet to send [09:22:21]*** Cut start [09:22:21]*** Partial cut [09:22:21]*** CUTSNS_PIN = 1 [09:22:21]*** CUTSNS_PIN = 0 [09:22:21]*** Brake cut motor [09:22:21]Read from MH i2c: 01 [09:22:21]MH_I2C_Read... [09:22:21]*** Stop cut motor [09:22:21]*** Cut end [09:22:21]Read from MH i2c: 01 07 00 [09:22:21]MH_I2C_Read... [09:22:21]Read from MH i2c: 01 07 00 F5 1E 00 00 00 00 00 FF 0F 28 [09:22:21]process_action close_receipt done [09:22:21]requested_data is exist [09:22:21]produce_requested_data [09:22:21]requested_item fm.sn is exist - process it [09:22:21]wFMCommunicate request_size=4 [09:22:21]MH_SAM_APDU [09:22:21]CAPDU: 80 11 00 00 [09:22:21]Write to MH i2c: E2 08 00 F6 1E 80 11 00 00 00 00 00 00 8E [09:22:21]Write i2c OK [09:22:21]MH_I2C_Read... [09:22:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:21]Read from MH i2c: E2 [09:22:21]MH_I2C_Read... [09:22:21]Read from MH i2c: E2 17 00 [09:22:21]MH_I2C_Read... [09:22:21]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 [09:22: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:22:21]wFMCommunicate OK [09:22:21]requested_item fd.num is exist - process it [09:22:21]SAM_PROTO_GetFieldsCounters [09:22:21]wFMCommunicate request_size=4 [09:22:21]MH_SAM_APDU [09:22:21]CAPDU: 80 13 00 00 [09:22:21]Write to MH i2c: E2 08 00 F7 1E 80 13 00 00 00 00 00 00 91 [09:22:21]Write i2c OK [09:22:21]MH_I2C_Read... [09:22:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:22:22]Read from MH i2c: E2 [09:22:22]MH_I2C_Read... [09:22:22]Read from MH i2c: E2 62 00 [09:22:22]MH_I2C_Read... [09:22:22]Read from MH i2c: E2 62 00 F7 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 2E F1 02 00 0E 04 04 00 20 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 36 [09:22: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 2E F1 02 00 0E 04 04 00 20 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 [09:22:22]wFMCommunicate OK [09:22:22]SAM_PROTO_GetFieldsCounters done [09:22:22]requested_item shift.num is exist - process it [09:22:22]requested_item shift.opened is exist - process it [09:22:22]req_shift_opened [09:22:22]FM_GetShiftState [09:22:22]SAM_PROTO_GetShiftState [09:22:22]wFMCommunicate request_size=4 [09:22:22]MH_SAM_APDU [09:22:22]CAPDU: 80 13 01 00 [09:22:22]Write to MH i2c: E2 08 00 F8 1E 80 13 01 00 00 00 00 00 93 [09:22:22]Write i2c OK [09:22:22]MH_I2C_Read... [09:22:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:22]Read from MH i2c: E2 [09:22:22]MH_I2C_Read... [09:22:22]Read from MH i2c: E2 0E 00 [09:22:22]MH_I2C_Read... [09:22:22]Read from MH i2c: E2 0E 00 F8 1E 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 99 [09:22:22]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [09:22:22]wFMCommunicate OK [09:22:22]SAM_PROTO_GetShiftState done [09:22:22]FM_GetShiftState done [09:22:22]req_shift_opened done [09:22:22]requested_item shift.open_date is exist - process it [09:22:22]req_shift_open_date [09:22:22]req_shift_open_date done [09:22:22]produce_requested_data done [09:22:22]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192814,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [09:22:22]process_action_free close_receipt [09:22:22]json_value_free [09:22:22]json_value_free done [09:22:22]process_json_proto returns [09:22:22]Send response to host [09:22:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192814,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [09:22:22]free response buf [09:22:22]execute_script done [09:22:22]execute_script returns [09:22:22]free content buf [09:22:22]Sock 9.Close socket [09:22:22]Sock 9.Thread stoped [09:22:25]OFD Sender: No OFD packet to send [09:22:30]OFD Sender: No OFD packet to send [09:22:35]OFD Sender: No OFD packet to send [09:22:40]OFD Sender: No OFD packet to send [09:22:45]OFD Sender: No OFD packet to send [09:22:50]OFD Sender: No OFD packet to send [09:22:55]OFD Sender: No OFD packet to send [09:23:00]OFD Sender: No OFD packet to send [09:23:05]OFD Sender: No OFD packet to send [09:23:10]OFD Sender: No OFD packet to send [09:23:15]OFD Sender: No OFD packet to send [09:23:20]OFD Sender: No OFD packet to send [09:23:25]OFD Sender: No OFD packet to send [09:23:30]OFD Sender: No OFD packet to send [09:23:35]OFD Sender: No OFD packet to send [09:23:40]OFD Sender: No OFD packet to send [09:23:45]OFD Sender: No OFD packet to send [09:23:50]OFD Sender: No OFD packet to send [09:23:55]OFD Sender: No OFD packet to send [09:24:00]OFD Sender: No OFD packet to send [09:24:05]OFD Sender: No OFD packet to send [09:24:10]OFD Sender: No OFD packet to send [09:24:15]OFD Sender: No OFD packet to send [09:24:20]OFD Sender: No OFD packet to send [09:24:25]OFD Sender: No OFD packet to send [09:24:30]OFD Sender: No OFD packet to send [09:24:35]OFD Sender: No OFD packet to send [09:24:40]OFD Sender: No OFD packet to send [09:24:45]OFD Sender: No OFD packet to send [09:24:50]OFD Sender: No OFD packet to send [09:24:55]OFD Sender: No OFD packet to send [09:25:00]OFD Sender: No OFD packet to send [09:25:05]OFD Sender: No OFD packet to send [09:25:10]OFD Sender: No OFD packet to send [09:25:15]OFD Sender: No OFD packet to send [09:25:20]OFD Sender: No OFD packet to send [09:25:25]OFD Sender: No OFD packet to send [09:25:30]OFD Sender: No OFD packet to send [09:25:35]OFD Sender: No OFD packet to send [09:25:40]OFD Sender: No OFD packet to send [09:25:45]OFD Sender: No OFD packet to send [09:25:50]OFD Sender: No OFD packet to send [09:25:55]OFD Sender: No OFD packet to send [09:26:00]OFD Sender: No OFD packet to send [09:26:05]OFD Sender: No OFD packet to send [09:26:10]OFD Sender: No OFD packet to send [09:26:15]OFD Sender: No OFD packet to send [09:26:20]OFD Sender: No OFD packet to send [09:26:25]OFD Sender: No OFD packet to send [09:26:30]OFD Sender: No OFD packet to send [09:26:35]OFD Sender: No OFD packet to send [09:26:40]OFD Sender: No OFD packet to send [09:26:45]OFD Sender: No OFD packet to send [09:26:50]OFD Sender: No OFD packet to send [09:26:55]OFD Sender: No OFD packet to send [09:27:00]OFD Sender: No OFD packet to send [09:27:05]OFD Sender: No OFD packet to send [09:27:11]OFD Sender: No OFD packet to send [09:27:16]OFD Sender: No OFD packet to send [09:27:21]OFD Sender: No OFD packet to send [09:27:26]OFD Sender: No OFD packet to send [09:27:31]OFD Sender: No OFD packet to send [09:27:32]accept exits with 8 [09:27:32]New connection [09:27:32]New thread 3066658148 created [09:27:32]Thread 3066801508 joined [09:27:32]Waiting for new connection... [09:27:32] Sock 8.Parse request [09:27:32]Sock 8.Check first char [09:27:32]Sock 8.First char is OK [09:27:32]request: POST /json_proto HTTP/1.0 [09:27:32]Method: POST [09:27:32]URL: /json_proto [09:27:32]Method is POST - this is cgi request [09:27:32]url: /json_proto [09:27:32]query_string will be loaded in cgi processing [09:27:32]execute_cgi json_proto POST (null) [09:27:32]execute_cgi path=json_proto method=POST [09:27:32]POST find Content-Length [09:27:32]Host: 172.17.63.131:8080 [09:27:32]Content-Length: 676 [09:27:32]Content-Type: application/json [09:27:32] [09:27:32]POST finish read [09:27:32]Found Content-Length = 676 [09:27:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32144", "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:27:32]execute_script... [09:27:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32144", "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:27:32]POST & json_proto [09:27:32]process_json_proto [09:27:32]json parsed OK: [09:27:32]protocol is kg_v1.0 [09:27:32]action value=close_receipt [09:27:32]process_action close_receipt [09:27:32]cmd_close_receipt [09:27:32]MH_GetDate [09:27:32]Write to MH i2c: F0 00 00 F9 1E 06 [09:27:32]Write i2c OK [09:27:32]MH_I2C_Read... [09:27:32]Read from MH i2c: F0 [09:27:32]MH_I2C_Read... [09:27:32]Read from MH i2c: F0 09 00 [09:27:32]MH_I2C_Read... [09:27:32]Read from MH i2c: F0 09 00 F9 1E 00 88 AA 20 67 22 05 6E 64 C1 [09:27:32]GetLastDocTimeStamp 1730193741 [09:27:32]current date 1730194056 [09:27:32]FM_GetShiftState [09:27:32]SAM_PROTO_GetShiftState [09:27:32]wFMCommunicate request_size=4 [09:27:32]MH_SAM_APDU [09:27:32]CAPDU: 80 13 01 00 [09:27:32]Write to MH i2c: E2 08 00 FA 1E 80 13 01 00 00 00 00 00 95 [09:27:32]Write i2c OK [09:27:32]MH_I2C_Read... [09:27:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:32]Read from MH i2c: E2 [09:27:32]MH_I2C_Read... [09:27:32]Read from MH i2c: E2 0E 00 [09:27:32]MH_I2C_Read... [09:27:32]Read from MH i2c: E2 0E 00 FA 1E 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 9B [09:27:32]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [09:27:32]wFMCommunicate OK [09:27:32]SAM_PROTO_GetShiftState done [09:27:32]FM_GetShiftState done [09:27:32]opened in 1730161990 [09:27:32]opened+sec_in_day 1730248390 [09:27:32]quantity*price = 50041 [09:27:32]sum+1 = 50042 [09:27:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.41 ИТОГО: 500.00 ВнеÑено: 500.00 СДÐЧÐ: 0.00 ÐСП 1% : 4.43 ÐДС 12% : 53.14 Ðаличными: 500.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 170 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 СÐО: Общий режим Чек 21 29.10.2024 09:27 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192815 ФПД: 217519454659801 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T092736&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192815&fm=217519454659801&tin=02508201610067®Number=0000000000091776&sum=50000 [09:27:33]StoreToDocumentArchive [09:27:33]shift 544 fd 192815 [09:27:33]save to /storage/0544/doc_00192815 [09:27:33]save last doc name /storage/0544/doc_00192815 to /storage/kkm_last_doc_name [09:27:33]save OK [09:27:33]Clear old archive folders... [09:27:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:27:33]tlvbuf is 00FF1800 [09:27:33]SAM_PROTO_ClearQueue [09:27:33]wFMCommunicate request_size=4 [09:27:33]MH_SAM_APDU [09:27:33]CAPDU: 80 09 00 00 [09:27:33]Write to MH i2c: E2 08 00 07 1F 80 09 00 00 00 00 00 00 98 [09:27:33]Write i2c OK [09:27:33]MH_I2C_Read... [09:27:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:27:33]Read from MH i2c: E2 [09:27:33]MH_I2C_Read... [09:27:33]Read from MH i2c: E2 03 00 [09:27:33]MH_I2C_Read... [09:27:33]Read from MH i2c: E2 03 00 07 1F 00 90 00 9A [09:27:33]RAPDU: 90 00 [09:27:33]wFMCommunicate OK [09:27:33]SAM_PROTO_ClearQueue done [09:27:33]KKMCreateOFDPacket [09:27:33]OFDProtocolAddRootSTLVToBuf [09:27:33]FM_MakeSignedData [09:27:33]FM_MakeSignedData [09:27:33]SAM_PROTO_SignData [09:27:33]wFMCommunicate request_size=4 [09:27:33]MH_SAM_APDU [09:27:33]CAPDU: 80 0D 01 02 [09:27:33]Write to MH i2c: E2 08 00 08 1F 80 0D 01 02 00 00 00 00 A0 [09:27:33]Write i2c OK [09:27:33]MH_I2C_Read... [09:27:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:27:33]Read from MH i2c: E2 [09:27:33]MH_I2C_Read... [09:27:33]Read from MH i2c: E2 03 00 [09:27:33]MH_I2C_Read... [09:27:33]Read from MH i2c: E2 03 00 08 1F 00 90 00 9B [09:27:33]RAPDU: 90 00 [09:27:33]wFMCommunicate OK [09:27:33]wFMCommunicate request_size=255 [09:27:33]MH_SAM_APDU [09:27:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 88 AA 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 C5 [09:27:33]Write to MH i2c: E2 02 01 09 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 15 00 00 00 F4 03 04 00 88 AA 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 C5 00 00 0B [09:27:33]Write i2c OK [09:27:33]MH_I2C_Read... [09:27:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:33]Read from MH i2c: E2 [09:27:33]MH_I2C_Read... [09:27:33]Read from MH i2c: E2 03 00 [09:27:33]MH_I2C_Read... [09:27:33]Read from MH i2c: E2 03 00 09 1F 00 90 00 9C [09:27:33]RAPDU: 90 00 [09:27:33]wFMCommunicate OK [09:27:33]wFMCommunicate request_size=10 [09:27:33]MH_SAM_APDU [09:27:33]CAPDU: 80 0D 02 02 05 D5 31 D3 A4 D9 [09:27:33]Write to MH i2c: E2 0D 00 0A 1F 80 0D 02 02 05 00 D5 31 D3 A4 D9 00 00 03 [09:27:33]Write i2c OK [09:27:33]MH_I2C_Read... [09:27:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:34]Read from MH i2c: E2 [09:27:34]MH_I2C_Read... [09:27:34]Read from MH i2c: E2 03 00 [09:27:34]MH_I2C_Read... [09:27:34]Read from MH i2c: E2 03 00 0A 1F 00 90 00 9D [09:27:34]RAPDU: 90 00 [09:27:34]wFMCommunicate OK [09:27:34]wFMCommunicate request_size=4 [09:27:34]MH_SAM_APDU [09:27:34]CAPDU: 80 0D 03 02 [09:27:34]Write to MH i2c: E2 08 00 0B 1F 80 0D 03 02 00 00 00 00 A5 [09:27:34]Write i2c OK [09:27:34]MH_I2C_Read... [09:27:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:27:34]Read from MH i2c: E2 [09:27:34]MH_I2C_Read... [09:27:34]Read from MH i2c: E2 0B 00 [09:27:34]MH_I2C_Read... [09:27:34]Read from MH i2c: E2 0B 00 0B 1F 00 89 35 C5 48 51 A5 54 B4 90 00 6F [09:27:34]RAPDU: 89 35 C5 48 51 A5 54 B4 90 00 [09:27:34]wFMCommunicate OK [09:27:34]SAM_PROTO_SignData done [09:27:34]FM_MakeSignedData done [09:27:34]CreateOFDProtocolMessage [09:27:34]wFMCommunicate request_size=4 [09:27:34]MH_SAM_APDU [09:27:34]CAPDU: 80 11 00 00 [09:27:34]Write to MH i2c: E2 08 00 0C 1F 80 11 00 00 00 00 00 00 A5 [09:27:34]Write i2c OK [09:27:34]MH_I2C_Read... [09:27:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:34]Read from MH i2c: E2 [09:27:34]MH_I2C_Read... [09:27:34]Read from MH i2c: E2 17 00 [09:27:34]MH_I2C_Read... [09:27:34]Read from MH i2c: E2 17 00 0C 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F8 [09:27:34]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:34]wFMCommunicate OK [09:27:34]CreateOFDProtocolMessage done [09:27:34]OFDSenderStorePacket 192815 [09:27:34]StoreOFDPacket docnum=192815 [09:27: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 D0 27 07 01 4A 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 15 00 00 00 F4 03 04 00 88 AA 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 C5 D5 31 D3 A4 D9 89 35 C5 48 51 A5 54 B4 [09:27:34]CheckFolder [09:27:34]dirname=/storage/ofd_packets [09:27:34]CheckFolder done [09:27:34]ProducePacketName [09:27:34]name=ofd_packets/00192815 [09:27:34]NVStorageSaveData ofd_packets/00192815 [09:27:34]File name is /storage/ofd_packets/00192815 [09:27:34]Write 301 bytes [09:27:34]NVStorageSaveData done [09:27:34]OFDSenderStorePacket done [09:27:34]KKMCreateOFDPacket done [09:27:34]NVStorageSaveData kkm_last_timestamp [09:27:34]File name is /storage/kkm_last_timestamp [09:27:34]Write 4 bytes [09:27:34]NVStorageSaveData done [09:27:34]ExternCall_PrintAddStr [09:27:34]wPrintStart [09:27:34]Write to MH i2c: 01 00 00 0D 1F 2C [09:27:34]Write i2c OK [09:27:34]MH_I2C_Read... [09:27:34]Read from MH i2c: 01 [09:27:34]MH_I2C_Read... [09:27:34]Read from MH i2c: 01 07 00 [09:27:34]MH_I2C_Read... [09:27:34]Read from MH i2c: 01 07 00 0D 1F 00 00 00 00 00 FF 0F 41 [09:27:34]RasterBufferAndPrint [09:27:34]line Счет N : (1)32144 [09:27:34]line ИÐÐ: 02508201610067 [09:27:34]line Контрольно-КаÑÑовый Чек [09:27:34]line ПРОДÐЖР[09:27:34]line ТРК (МРК, ГÐК) : 12 [09:27:34]line Товар: 2710124130 [09:27:34]line Ðи-92-К-5 [09:27:34]line 7.480 * 66.90 [09:27:34]line = 500.41 [09:27:34]line ÐДС 12% ÐСП 1% [09:27:34]line > о реализуемом товаре [09:27:34]line ОКРУГЛЕÐИЕ: -0.41 [09:27:34]line ИТОГО: 500.00 [09:27:34]line ВнеÑено: 500.00 [09:27:34]line СДÐЧÐ: 0.00 [09:27:34]line ÐСП 1% : 4.43 [09:27:34]line ÐДС 12% : 53.14 [09:27:34]line Ðаличными: 500.00 [09:27:34]line Безнал.: 0.00 [09:27:34]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [09:27:34]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [09:27:34]line СÐО: Общий режим [09:27:34]line Чек 21 29.10.2024 09:27 [09:27:34]line Смена: 544 ФФД: 1.0 [09:27:34]line ЗÐМ: 0300000110 [09:27:34]line РÐМ: 0000000000091776 [09:27:34]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [09:27:34]line ФМ: 0000000000871754 [09:27:34]line ФД: 192815 [09:27:34]line ФПД: 217519454659801 [09:27:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T092736&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192815&fm=217519454659801&tin=02508201610067®Number=0000000000091776&sum=50000 [09:27:34]OFD Sender: Processing packet 192815 [packets to send 75, broken 74] [09:27:34]ProducePacketName [09:27:34]name=ofd_packets/00192815 [09:27:34]OFD Sender: To server: ‡•öpG, [09:27:34]CommunicateWithHost lk.salyk.kg:30040 [09:27:34]ConnectInit lk.salyk.kg [09:27:34]written 0, free lines is 4095 [09:27:34]Connected sock=10 [09:27:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D0 27 07 01 4A 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 15 00 00 00 F4 03 04 00 88 AA 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 C5 D5 31 D3 A4 D9 89 35 C5 48 51 A5 54 B4 [09:27: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 9C F8 47 00 82 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 2F F1 02 00 F4 03 04 00 49 4F 20 67 B6 04 01 00 00 E7 B3 27 93 CD F9 9C 4C [09:27:34]CommunicateWithHost err = 0 [09:27:34]CheckOFDResponse [09:27:34]1017 (14) - 77093643461234 [09:27:34]1041 (16) - 0000000000871754 [09:27:34]1040 (4) - 192815 [09:27:34]1012 (4) - 29.10.2024 02:58 [09:27:34]1206 (1) - 0 [09:27:34]OFD Sender: Remove packet 192815 [09:27:34]ProducePacketName [09:27:34]name=ofd_packets/00192815 [09:27:34]NVStorageDeleteData [09:27:34]Write to MH i2c: 01 00 00 38 1F 57 [09:27:34]Write i2c OK [09:27:34]MH_I2C_Read... [09:27:34]Read from MH i2c: 01 [09:27:34]MH_I2C_Read... [09:27:34]Read from MH i2c: 01 07 00 [09:27:34]MH_I2C_Read... [09:27:34]Read from MH i2c: 01 07 00 38 1F 00 00 00 00 00 AD 0C 17 [09:27:34]RasterBufferAndPrint [09:27:34]line [09:27:34]line [09:27:34]line [09:27:34]line [09:27:34]line [09:27:34]written 0, free lines is 3254 [09:27:34]MH_Cut [09:27:34]Write to MH i2c: D1 01 00 3F 1F 01 30 [09:27:34]Write i2c OK [09:27:34]MH_I2C_Read... [09:27:34]Read from MH i2c: D1 [09:27:34]MH_I2C_Read... [09:27:34]Read from MH i2c: D1 01 00 [09:27:34]MH_I2C_Read... [09:27:34]Read from MH i2c: D1 01 00 3F 1F 00 2F [09:27:34]Write to MH i2c: 01 00 00 40 1F 5F [09:27:34]Write i2c OK [09:27:34]MH_I2C_Read... [09:27:35]OFD Sender: No OFD packet to send [09:27:35]*** Cut start [09:27:35]*** Partial cut [09:27:35]*** CUTSNS_PIN = 1 [09:27:35]*** CUTSNS_PIN = 0 [09:27:36]*** Brake cut motor [09:27:36]Read from MH i2c: 01 [09:27:36]MH_I2C_Read... [09:27:36]*** Stop cut motor [09:27:36]*** Cut end [09:27:36]Read from MH i2c: 01 07 00 [09:27:36]MH_I2C_Read... [09:27:36]Read from MH i2c: 01 07 00 40 1F 00 00 00 00 00 FF 0F 74 [09:27:36]process_action close_receipt done [09:27:36]requested_data is exist [09:27:36]produce_requested_data [09:27:36]requested_item fm.sn is exist - process it [09:27:36]wFMCommunicate request_size=4 [09:27:36]MH_SAM_APDU [09:27:36]CAPDU: 80 11 00 00 [09:27:36]Write to MH i2c: E2 08 00 41 1F 80 11 00 00 00 00 00 00 DA [09:27:36]Write i2c OK [09:27:36]MH_I2C_Read... [09:27:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:36]Read from MH i2c: E2 [09:27:36]MH_I2C_Read... [09:27:36]Read from MH i2c: E2 17 00 [09:27:36]MH_I2C_Read... [09:27:36]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 [09:27:36]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:36]wFMCommunicate OK [09:27:36]requested_item fd.num is exist - process it [09:27:36]SAM_PROTO_GetFieldsCounters [09:27:36]wFMCommunicate request_size=4 [09:27:36]MH_SAM_APDU [09:27:36]CAPDU: 80 13 00 00 [09:27:36]Write to MH i2c: E2 08 00 42 1F 80 13 00 00 00 00 00 00 DD [09:27:36]Write i2c OK [09:27:36]MH_I2C_Read... [09:27:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:27:36]Read from MH i2c: E2 [09:27:36]MH_I2C_Read... [09:27:36]Read from MH i2c: E2 62 00 [09:27:36]MH_I2C_Read... [09:27:36]Read from MH i2c: E2 62 00 42 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 2F F1 02 00 0E 04 04 00 20 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 86 [09:27:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 F1 02 00 0E 04 04 00 20 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 [09:27:36]wFMCommunicate OK [09:27:36]SAM_PROTO_GetFieldsCounters done [09:27:36]requested_item shift.num is exist - process it [09:27:36]requested_item shift.opened is exist - process it [09:27:36]req_shift_opened [09:27:36]FM_GetShiftState [09:27:36]SAM_PROTO_GetShiftState [09:27:36]wFMCommunicate request_size=4 [09:27:36]MH_SAM_APDU [09:27:36]CAPDU: 80 13 01 00 [09:27:36]Write to MH i2c: E2 08 00 43 1F 80 13 01 00 00 00 00 00 DF [09:27:36]Write i2c OK [09:27:36]MH_I2C_Read... [09:27:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:36]Read from MH i2c: E2 [09:27:36]MH_I2C_Read... [09:27:36]Read from MH i2c: E2 0E 00 [09:27:36]MH_I2C_Read... [09:27:36]Read from MH i2c: E2 0E 00 43 1F 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 E5 [09:27:36]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [09:27:36]wFMCommunicate OK [09:27:36]SAM_PROTO_GetShiftState done [09:27:36]FM_GetShiftState done [09:27:36]req_shift_opened done [09:27:36]requested_item shift.open_date is exist - process it [09:27:36]req_shift_open_date [09:27:36]req_shift_open_date done [09:27:36]produce_requested_data done [09:27:36]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192815,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [09:27:36]process_action_free close_receipt [09:27:36]json_value_free [09:27:36]json_value_free done [09:27:36]process_json_proto returns [09:27:36]Send response to host [09:27:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192815,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [09:27:36]free response buf [09:27:36]execute_script done [09:27:36]execute_script returns [09:27:36]free content buf [09:27:36]Sock 8.Close socket [09:27:36]Sock 8.Thread stoped [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]OFD Sender: No OFD packet to send [09:30:19]accept exits with 9 [09:30:19]New connection [09:30:19]New thread 3066801508 created [09:30:19]Thread 3066658148 joined [09:30:19]Waiting for new connection... [09:30:19] Sock 9.Parse request [09:30:19]Sock 9.Check first char [09:30:19]Sock 9.First char is OK [09:30:19]request: POST /json_proto HTTP/1.0 [09:30:19]Method: POST [09:30:19]URL: /json_proto [09:30:19]Method is POST - this is cgi request [09:30:19]url: /json_proto [09:30:19]query_string will be loaded in cgi processing [09:30:19]execute_cgi json_proto POST (null) [09:30:19]execute_cgi path=json_proto method=POST [09:30:19]POST find Content-Length [09:30:19]Host: 172.17.63.131:8080 [09:30:19]Content-Length: 677 [09:30:19]Content-Type: application/json [09:30:19] [09:30:19]POST finish read [09:30:19]Found Content-Length = 677 [09:30:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32145", "tax_sys" : 0, "items" : [ { "pre_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" ] } } [09:30:19]execute_script... [09:30: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)32145", "tax_sys" : 0, "items" : [ { "pre_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" ] } } [09:30:19]POST & json_proto [09:30:19]process_json_proto [09:30:19]json parsed OK: [09:30:19]protocol is kg_v1.0 [09:30:19]action value=close_receipt [09:30:19]process_action close_receipt [09:30:19]cmd_close_receipt [09:30:19]MH_GetDate [09:30:19]Write to MH i2c: F0 00 00 44 1F 52 [09:30:19]Write i2c OK [09:30:19]MH_I2C_Read... [09:30:19]Read from MH i2c: F0 [09:30:19]MH_I2C_Read... [09:30:19]Read from MH i2c: F0 09 00 [09:30:19]MH_I2C_Read... [09:30:19]Read from MH i2c: F0 09 00 44 1F 00 2F AB 20 67 22 05 6E 64 B5 [09:30:19]GetLastDocTimeStamp 1730194056 [09:30:19]current date 1730194223 [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 45 1F 80 13 01 00 00 00 00 00 E1 [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 45 1F 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 E7 [09:30:19]RAPDU: 09 00 01 46 2D 20 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]opened in 1730161990 [09:30:19]opened+sec_in_day 1730248390 [09:30:19]quantity*price = 70044 [09:30:19]sum+1 = 70045 [09:30:19]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 СÐО: Общий режим Чек 22 29.10.2024 09:30 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192816 ФПД: 118626120302733 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T093023&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192816&fm=118626120302733&tin=02508201610067®Number=0000000000091776&sum=70000 [09:30:20]StoreToDocumentArchive [09:30:20]shift 544 fd 192816 [09:30:20]save to /storage/0544/doc_00192816 [09:30:20]save last doc name /storage/0544/doc_00192816 to /storage/kkm_last_doc_name [09:30:20]save OK [09:30:20]Clear old archive folders... [09:30:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:30:20]tlvbuf is 00FDDFC0 [09:30:20]SAM_PROTO_ClearQueue [09:30:20]wFMCommunicate request_size=4 [09:30:20]MH_SAM_APDU [09:30:20]CAPDU: 80 09 00 00 [09:30:20]Write to MH i2c: E2 08 00 52 1F 80 09 00 00 00 00 00 00 E3 [09:30:20]Write i2c OK [09:30:20]MH_I2C_Read... [09:30:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:30:20]Read from MH i2c: E2 [09:30:20]MH_I2C_Read... [09:30:20]Read from MH i2c: E2 03 00 [09:30:20]MH_I2C_Read... [09:30:20]Read from MH i2c: E2 03 00 52 1F 00 90 00 E5 [09:30:20]RAPDU: 90 00 [09:30:20]wFMCommunicate OK [09:30:20]SAM_PROTO_ClearQueue done [09:30:20]KKMCreateOFDPacket [09:30:20]OFDProtocolAddRootSTLVToBuf [09:30:20]FM_MakeSignedData [09:30:20]FM_MakeSignedData [09:30:20]SAM_PROTO_SignData [09:30:20]wFMCommunicate request_size=4 [09:30:20]MH_SAM_APDU [09:30:20]CAPDU: 80 0D 01 02 [09:30:20]Write to MH i2c: E2 08 00 53 1F 80 0D 01 02 00 00 00 00 EB [09:30:20]Write i2c OK [09:30:20]MH_I2C_Read... [09:30:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:30:20]Read from MH i2c: E2 [09:30:20]MH_I2C_Read... [09:30:20]Read from MH i2c: E2 03 00 [09:30:20]MH_I2C_Read... [09:30:20]Read from MH i2c: E2 03 00 53 1F 00 90 00 E6 [09:30:20]RAPDU: 90 00 [09:30:20]wFMCommunicate OK [09:30:20]wFMCommunicate request_size=255 [09:30:20]MH_SAM_APDU [09:30: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 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 16 00 00 00 F4 03 04 00 2F AB 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 6B [09:30:20]Write to MH i2c: E2 02 01 54 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 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 16 00 00 00 F4 03 04 00 2F AB 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 6B 00 00 B6 [09:30:20]Write i2c OK [09:30:20]MH_I2C_Read... [09:30:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:21]Read from MH i2c: E2 [09:30:21]MH_I2C_Read... [09:30:21]Read from MH i2c: E2 03 00 [09:30:21]MH_I2C_Read... [09:30:21]Read from MH i2c: E2 03 00 54 1F 00 90 00 E7 [09:30:21]RAPDU: 90 00 [09:30:21]wFMCommunicate OK [09:30:21]wFMCommunicate request_size=10 [09:30:21]MH_SAM_APDU [09:30:21]CAPDU: 80 0D 02 02 05 E3 CB C3 00 8D [09:30:21]Write to MH i2c: E2 0D 00 55 1F 80 0D 02 02 05 00 E3 CB C3 00 8D 00 00 F6 [09:30:21]Write i2c OK [09:30:21]MH_I2C_Read... [09:30:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:21]Read from MH i2c: E2 [09:30:21]MH_I2C_Read... [09:30:21]Read from MH i2c: E2 03 00 [09:30:21]MH_I2C_Read... [09:30:21]Read from MH i2c: E2 03 00 55 1F 00 90 00 E8 [09:30:21]RAPDU: 90 00 [09:30:21]wFMCommunicate OK [09:30:21]wFMCommunicate request_size=4 [09:30:21]MH_SAM_APDU [09:30:21]CAPDU: 80 0D 03 02 [09:30:21]Write to MH i2c: E2 08 00 56 1F 80 0D 03 02 00 00 00 00 F0 [09:30:21]Write i2c OK [09:30:21]MH_I2C_Read... [09:30:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:30:21]Read from MH i2c: E2 [09:30:21]MH_I2C_Read... [09:30:21]Read from MH i2c: E2 0B 00 [09:30:21]MH_I2C_Read... [09:30:21]Read from MH i2c: E2 0B 00 56 1F 00 78 CF 19 8A C0 AD C2 65 90 00 6F [09:30:21]RAPDU: 78 CF 19 8A C0 AD C2 65 90 00 [09:30:21]wFMCommunicate OK [09:30:21]SAM_PROTO_SignData done [09:30:21]FM_MakeSignedData done [09:30:21]CreateOFDProtocolMessage [09:30:21]wFMCommunicate request_size=4 [09:30:21]MH_SAM_APDU [09:30:21]CAPDU: 80 11 00 00 [09:30:21]Write to MH i2c: E2 08 00 57 1F 80 11 00 00 00 00 00 00 F0 [09:30:21]Write i2c OK [09:30:21]MH_I2C_Read... [09:30:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:21]Read from MH i2c: E2 [09:30:21]MH_I2C_Read... [09:30:21]Read from MH i2c: E2 17 00 [09:30:21]MH_I2C_Read... [09:30:21]Read from MH i2c: E2 17 00 57 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 43 [09: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 [09:30:21]wFMCommunicate OK [09:30:21]CreateOFDProtocolMessage done [09:30:21]OFDSenderStorePacket 192816 [09:30:21]StoreOFDPacket docnum=192816 [09:30: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 3B 63 07 01 16 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 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 16 00 00 00 F4 03 04 00 2F AB 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 6B E3 CB C3 00 8D 78 CF 19 8A C0 AD C2 65 [09:30:21]CheckFolder [09:30:21]dirname=/storage/ofd_packets [09:30:21]CheckFolder done [09:30:21]ProducePacketName [09:30:21]name=ofd_packets/00192816 [09:30:21]NVStorageSaveData ofd_packets/00192816 [09:30:21]File name is /storage/ofd_packets/00192816 [09:30:21]Write 301 bytes [09:30:21]NVStorageSaveData done [09:30:21]OFDSenderStorePacket done [09:30:21]KKMCreateOFDPacket done [09:30:21]NVStorageSaveData kkm_last_timestamp [09:30:21]File name is /storage/kkm_last_timestamp [09:30:21]Write 4 bytes [09:30:21]NVStorageSaveData done [09:30:21]ExternCall_PrintAddStr [09:30:21]wPrintStart [09:30:21]Write to MH i2c: 01 00 00 58 1F 77 [09:30:21]Write i2c OK [09:30:21]MH_I2C_Read... [09:30:21]Read from MH i2c: 01 [09:30:21]MH_I2C_Read... [09:30:21]Read from MH i2c: 01 07 00 [09:30:21]MH_I2C_Read... [09:30:21]Read from MH i2c: 01 07 00 58 1F 00 00 00 00 00 FF 0F 8C [09:30:21]RasterBufferAndPrint [09:30:21]line Счет N : (1)32145 [09:30:21]line ИÐÐ: 02508201610067 [09:30:21]line Контрольно-КаÑÑовый Чек [09:30:21]line ПРОДÐЖР[09:30:21]line ТРК (МРК, ГÐК) : 21 [09:30:21]line Товар: 2710124130 [09:30:21]line Ðи-92-К-5 [09:30:21]line 10.470 * 66.90 [09:30:21]line = 700.44 [09:30:21]line ÐДС 12% ÐСП 1% [09:30:21]line > о реализуемом товаре [09:30:21]line ОКРУГЛЕÐИЕ: -0.44 [09:30:21]line ИТОГО: 700.00 [09:30:21]line ВнеÑено: 700.00 [09:30:21]line СДÐЧÐ: 0.00 [09:30:21]line ÐСП 1% : 6.20 [09:30:21]line ÐДС 12% : 74.38 [09:30:21]line Ðаличными: 700.00 [09:30:21]line Безнал.: 0.00 [09:30:21]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [09:30:21]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [09:30:21]line СÐО: Общий режим [09:30:21]line Чек 22 29.10.2024 09:30 [09:30:21]line Смена: 544 ФФД: 1.0 [09:30:21]line ЗÐМ: 0300000110 [09:30:21]line РÐМ: 0000000000091776 [09:30:21]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [09:30:21]line ФМ: 0000000000871754 [09:30:21]line ФД: 192816 [09:30:21]line ФПД: 118626120302733 [09:30:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T093023&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192816&fm=118626120302733&tin=02508201610067®Number=0000000000091776&sum=70000 [09:30:21]OFD Sender: Processing packet 192816 [packets to send 75, broken 74] [09:30:21]ProducePacketName [09:30:21]name=ofd_packets/00192816 [09:30:21]OFD Sender: To server: ‡•öpG, [09:30:21]CommunicateWithHost lk.salyk.kg:30040 [09:30:21]ConnectInit lk.salyk.kg [09:30:21]written 0, free lines is 4095 [09:30:21]Connected sock=10 [09:30: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 3B 63 07 01 16 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 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 16 00 00 00 F4 03 04 00 2F AB 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 6B E3 CB C3 00 8D 78 CF 19 8A C0 AD C2 65 [09:30: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 5A F1 47 00 D3 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 30 F1 02 00 F4 03 04 00 F0 4F 20 67 B6 04 01 00 00 B9 39 5F D9 AE FE 5D 82 [09:30:21]CommunicateWithHost err = 0 [09:30:21]CheckOFDResponse [09:30:21]1017 (14) - 77093643461234 [09:30:21]1041 (16) - 0000000000871754 [09:30:21]1040 (4) - 192816 [09:30:21]1012 (4) - 29.10.2024 03:01 [09:30:21]1206 (1) - 0 [09:30:21]OFD Sender: Remove packet 192816 [09:30:21]ProducePacketName [09:30:21]name=ofd_packets/00192816 [09:30:21]NVStorageDeleteData [09:30:22]Write to MH i2c: 01 00 00 83 1F A2 [09:30:22]Write i2c OK [09:30:22]MH_I2C_Read... [09:30:22]Read from MH i2c: 01 [09:30:22]MH_I2C_Read... [09:30:22]Read from MH i2c: 01 07 00 [09:30:22]MH_I2C_Read... [09:30:22]Read from MH i2c: 01 07 00 83 1F 00 00 00 00 00 A1 0C 56 [09:30:22]RasterBufferAndPrint [09:30:22]line [09:30:22]line [09:30:22]line [09:30:22]line [09:30:22]line [09:30:22]written 0, free lines is 3240 [09:30:22]MH_Cut [09:30:22]Write to MH i2c: D1 01 00 8A 1F 01 7B [09:30:22]Write i2c OK [09:30:22]MH_I2C_Read... [09:30:22]Read from MH i2c: D1 [09:30:22]MH_I2C_Read... [09:30:22]Read from MH i2c: D1 01 00 [09:30:22]MH_I2C_Read... [09:30:22]Read from MH i2c: D1 01 00 8A 1F 00 7A [09:30:22]Write to MH i2c: 01 00 00 8B 1F AA [09:30:22]Write i2c OK [09:30:22]MH_I2C_Read... [09:30:22]OFD Sender: No OFD packet to send [09:30:22]*** Cut start [09:30:22]*** Partial cut [09:30:22]*** CUTSNS_PIN = 1 [09:30:22]*** CUTSNS_PIN = 0 [09:30:23]*** Brake cut motor [09:30:23]Read from MH i2c: 01 [09:30:23]MH_I2C_Read... [09:30:23]*** Stop cut motor [09:30:23]*** Cut end [09:30:23]Read from MH i2c: 01 07 00 [09:30:23]MH_I2C_Read... [09:30:23]Read from MH i2c: 01 07 00 8B 1F 00 00 00 00 00 FF 0F BF [09:30:23]process_action close_receipt done [09:30:23]requested_data is exist [09:30:23]produce_requested_data [09:30:23]requested_item fm.sn is exist - process it [09:30:23]wFMCommunicate request_size=4 [09:30:23]MH_SAM_APDU [09:30:23]CAPDU: 80 11 00 00 [09:30:23]Write to MH i2c: E2 08 00 8C 1F 80 11 00 00 00 00 00 00 25 [09:30:23]Write i2c OK [09:30:23]MH_I2C_Read... [09:30:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:23]Read from MH i2c: E2 [09:30:23]MH_I2C_Read... [09:30:23]Read from MH i2c: E2 17 00 [09:30:23]MH_I2C_Read... [09:30:23]Read from MH i2c: E2 17 00 8C 1F 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:30: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:30:23]wFMCommunicate OK [09:30:23]requested_item fd.num is exist - process it [09:30:23]SAM_PROTO_GetFieldsCounters [09:30:23]wFMCommunicate request_size=4 [09:30:23]MH_SAM_APDU [09:30:23]CAPDU: 80 13 00 00 [09:30:23]Write to MH i2c: E2 08 00 8D 1F 80 13 00 00 00 00 00 00 28 [09:30:23]Write i2c OK [09:30:23]MH_I2C_Read... [09:30:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:30:23]Read from MH i2c: E2 [09:30:23]MH_I2C_Read... [09:30:23]Read from MH i2c: E2 62 00 [09:30:23]MH_I2C_Read... [09:30:23]Read from MH i2c: E2 62 00 8D 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 30 F1 02 00 0E 04 04 00 20 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 D5 [09:30: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 30 F1 02 00 0E 04 04 00 20 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 [09:30:23]wFMCommunicate OK [09:30:23]SAM_PROTO_GetFieldsCounters done [09:30:23]requested_item shift.num is exist - process it [09:30:23]requested_item shift.opened is exist - process it [09:30:23]req_shift_opened [09:30:23]FM_GetShiftState [09:30:23]SAM_PROTO_GetShiftState [09:30:23]wFMCommunicate request_size=4 [09:30:23]MH_SAM_APDU [09:30:23]CAPDU: 80 13 01 00 [09:30:23]Write to MH i2c: E2 08 00 8E 1F 80 13 01 00 00 00 00 00 2A [09:30:23]Write i2c OK [09:30:23]MH_I2C_Read... [09:30:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:23]Read from MH i2c: E2 [09:30:23]MH_I2C_Read... [09:30:23]Read from MH i2c: E2 0E 00 [09:30:23]MH_I2C_Read... [09:30:23]Read from MH i2c: E2 0E 00 8E 1F 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 30 [09:30:23]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [09:30:23]wFMCommunicate OK [09:30:23]SAM_PROTO_GetShiftState done [09:30:23]FM_GetShiftState done [09:30:23]req_shift_opened done [09:30:23]requested_item shift.open_date is exist - process it [09:30:23]req_shift_open_date [09:30:23]req_shift_open_date done [09:30:23]produce_requested_data done [09:30:23]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192816,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [09:30:23]process_action_free close_receipt [09:30:23]json_value_free [09:30:23]json_value_free done [09:30:23]process_json_proto returns [09:30:23]Send response to host [09:30:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192816,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [09:30:23]free response buf [09:30:23]execute_script done [09:30:23]execute_script returns [09:30:23]free content buf [09:30:23]Sock 9.Close socket [09:30:23]Sock 9.Thread stoped [09:30:27]OFD Sender: No OFD packet to send [09:30:32]OFD Sender: No OFD packet to send [09:30:37]OFD Sender: No OFD packet to send [09:30:42]OFD Sender: No OFD packet to send [09:30:47]OFD Sender: No OFD packet to send [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:00]accept exits with 8 [09:32:00]New connection [09:32:00]New thread 3066658148 created [09:32:00]Thread 3066801508 joined [09:32:00]Waiting for new connection... [09:32:00] Sock 8.Parse request [09:32:00]Sock 8.Check first char [09:32:00]Sock 8.First char is OK [09:32:00]request: POST /json_proto HTTP/1.0 [09:32:00]Method: POST [09:32:00]URL: /json_proto [09:32:00]Method is POST - this is cgi request [09:32:00]url: /json_proto [09:32:00]query_string will be loaded in cgi processing [09:32:00]execute_cgi json_proto POST (null) [09:32:00]execute_cgi path=json_proto method=POST [09:32:00]POST find Content-Length [09:32:00]Host: 172.17.63.131:8080 [09:32:00]Content-Length: 681 [09:32:00]Content-Type: application/json [09:32:00] [09:32:00]POST finish read [09:32:00]Found Content-Length = 681 [09:32:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32146", "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" ] } } [09:32:00]execute_script... [09:32: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)32146", "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" ] } } [09:32:00]POST & json_proto [09:32:00]process_json_proto [09:32:00]json parsed OK: [09:32:00]protocol is kg_v1.0 [09:32:00]action value=close_receipt [09:32:00]process_action close_receipt [09:32:00]cmd_close_receipt [09:32:00]MH_GetDate [09:32:00]Write to MH i2c: F0 00 00 8F 1F 9D [09:32:00]Write i2c OK [09:32:00]MH_I2C_Read... [09:32:00]Read from MH i2c: F0 [09:32:00]MH_I2C_Read... [09:32:00]Read from MH i2c: F0 09 00 [09:32:00]MH_I2C_Read... [09:32:00]Read from MH i2c: F0 09 00 8F 1F 00 94 AB 20 67 22 05 6E 64 65 [09:32:00]GetLastDocTimeStamp 1730194223 [09:32:00]current date 1730194324 [09:32:00]FM_GetShiftState [09:32:00]SAM_PROTO_GetShiftState [09:32:00]wFMCommunicate request_size=4 [09:32:00]MH_SAM_APDU [09:32:00]CAPDU: 80 13 01 00 [09:32:00]Write to MH i2c: E2 08 00 90 1F 80 13 01 00 00 00 00 00 2C [09:32:00]Write i2c OK [09:32:00]MH_I2C_Read... [09:32:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:00]Read from MH i2c: E2 [09:32:00]MH_I2C_Read... [09:32:00]Read from MH i2c: E2 0E 00 [09:32:00]MH_I2C_Read... [09:32:00]Read from MH i2c: E2 0E 00 90 1F 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 32 [09:32:00]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [09:32:00]wFMCommunicate OK [09:32:00]SAM_PROTO_GetShiftState done [09:32:00]FM_GetShiftState done [09:32:00]opened in 1730161990 [09:32:00]opened+sec_in_day 1730248390 [09:32:00]quantity*price = 100015 [09:32:00]sum+1 = 100017 [09:32:00]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 СÐО: Общий режим Чек 23 29.10.2024 09:32 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192817 ФПД: 274065076144778 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T093204&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192817&fm=274065076144778&tin=02508201610067®Number=0000000000091776&sum=100000 [09:32:01]StoreToDocumentArchive [09:32:01]shift 544 fd 192817 [09:32:01]save to /storage/0544/doc_00192817 [09:32:01]save last doc name /storage/0544/doc_00192817 to /storage/kkm_last_doc_name [09:32:01]save OK [09:32:01]Clear old archive folders... [09:32:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:32:01]tlvbuf is 00F70520 [09:32:01]SAM_PROTO_ClearQueue [09:32:01]wFMCommunicate request_size=4 [09:32:01]MH_SAM_APDU [09:32:01]CAPDU: 80 09 00 00 [09:32:01]Write to MH i2c: E2 08 00 9D 1F 80 09 00 00 00 00 00 00 2E [09:32:01]Write i2c OK [09:32:01]MH_I2C_Read... [09:32:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:32:01]Read from MH i2c: E2 [09:32:01]MH_I2C_Read... [09:32:01]Read from MH i2c: E2 03 00 [09:32:01]MH_I2C_Read... [09:32:01]Read from MH i2c: E2 03 00 9D 1F 00 90 00 30 [09:32:01]RAPDU: 90 00 [09:32:01]wFMCommunicate OK [09:32:01]SAM_PROTO_ClearQueue done [09:32:01]KKMCreateOFDPacket [09:32:01]OFDProtocolAddRootSTLVToBuf [09:32:01]FM_MakeSignedData [09:32:01]FM_MakeSignedData [09:32:01]SAM_PROTO_SignData [09:32:01]wFMCommunicate request_size=4 [09:32:01]MH_SAM_APDU [09:32:01]CAPDU: 80 0D 01 02 [09:32:01]Write to MH i2c: E2 08 00 9E 1F 80 0D 01 02 00 00 00 00 36 [09:32:01]Write i2c OK [09:32:01]MH_I2C_Read... [09:32:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:32:02]Read from MH i2c: E2 [09:32:02]MH_I2C_Read... [09:32:02]Read from MH i2c: E2 03 00 [09:32:02]MH_I2C_Read... [09:32:02]Read from MH i2c: E2 03 00 9E 1F 00 90 00 31 [09:32:02]RAPDU: 90 00 [09:32:02]wFMCommunicate OK [09:32:02]wFMCommunicate request_size=255 [09:32:02]MH_SAM_APDU [09:32:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 94 AB 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 F9 [09:32:02]Write to MH i2c: E2 02 01 9F 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 94 AB 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 F9 00 00 E0 [09:32:02]Write i2c OK [09:32:02]MH_I2C_Read... [09:32:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:02]Read from MH i2c: E2 [09:32:02]MH_I2C_Read... [09:32:02]Read from MH i2c: E2 03 00 [09:32:02]MH_I2C_Read... [09:32:02]Read from MH i2c: E2 03 00 9F 1F 00 90 00 32 [09:32:02]RAPDU: 90 00 [09:32:02]wFMCommunicate OK [09:32:02]wFMCommunicate request_size=10 [09:32:02]MH_SAM_APDU [09:32:02]CAPDU: 80 0D 02 02 05 42 BF 82 4A 8A [09:32:02]Write to MH i2c: E2 0D 00 A0 1F 80 0D 02 02 05 00 42 BF 82 4A 8A 00 00 9A [09:32:02]Write i2c OK [09:32:02]MH_I2C_Read... [09:32:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:02]Read from MH i2c: E2 [09:32:02]MH_I2C_Read... [09:32:02]Read from MH i2c: E2 03 00 [09:32:02]MH_I2C_Read... [09:32:02]Read from MH i2c: E2 03 00 A0 1F 00 90 00 33 [09:32:02]RAPDU: 90 00 [09:32:02]wFMCommunicate OK [09:32:02]wFMCommunicate request_size=4 [09:32:02]MH_SAM_APDU [09:32:02]CAPDU: 80 0D 03 02 [09:32:02]Write to MH i2c: E2 08 00 A1 1F 80 0D 03 02 00 00 00 00 3B [09:32:02]Write i2c OK [09:32:02]MH_I2C_Read... [09:32:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:32:02]Read from MH i2c: E2 [09:32:02]MH_I2C_Read... [09:32:02]Read from MH i2c: E2 0B 00 [09:32:02]MH_I2C_Read... [09:32:02]Read from MH i2c: E2 0B 00 A1 1F 00 A8 7B 9D 9B 39 5D 76 7C 90 00 1F [09:32:02]RAPDU: A8 7B 9D 9B 39 5D 76 7C 90 00 [09:32:02]wFMCommunicate OK [09:32:02]SAM_PROTO_SignData done [09:32:02]FM_MakeSignedData done [09:32:02]CreateOFDProtocolMessage [09:32:02]wFMCommunicate request_size=4 [09:32:02]MH_SAM_APDU [09:32:02]CAPDU: 80 11 00 00 [09:32:02]Write to MH i2c: E2 08 00 A2 1F 80 11 00 00 00 00 00 00 3B [09:32:02]Write i2c OK [09:32:02]MH_I2C_Read... [09:32:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:02]Read from MH i2c: E2 [09:32:02]MH_I2C_Read... [09:32:02]Read from MH i2c: E2 17 00 [09:32:02]MH_I2C_Read... [09:32:02]Read from MH i2c: E2 17 00 A2 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8E [09:32:02]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:02]wFMCommunicate OK [09:32:02]CreateOFDProtocolMessage done [09:32:02]OFDSenderStorePacket 192817 [09:32:02]StoreOFDPacket docnum=192817 [09:32: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 0A D5 07 01 F5 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 94 AB 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 F9 42 BF 82 4A 8A A8 7B 9D 9B 39 5D 76 7C [09:32:02]CheckFolder [09:32:02]dirname=/storage/ofd_packets [09:32:02]CheckFolder done [09:32:02]ProducePacketName [09:32:02]name=ofd_packets/00192817 [09:32:02]NVStorageSaveData ofd_packets/00192817 [09:32:02]File name is /storage/ofd_packets/00192817 [09:32:02]Write 301 bytes [09:32:02]NVStorageSaveData done [09:32:02]OFDSenderStorePacket done [09:32:02]KKMCreateOFDPacket done [09:32:02]NVStorageSaveData kkm_last_timestamp [09:32:02]File name is /storage/kkm_last_timestamp [09:32:02]Write 4 bytes [09:32:02]NVStorageSaveData done [09:32:02]ExternCall_PrintAddStr [09:32:02]wPrintStart [09:32:02]Write to MH i2c: 01 00 00 A3 1F C2 [09:32:02]Write i2c OK [09:32:02]MH_I2C_Read... [09:32:02]Read from MH i2c: 01 [09:32:02]MH_I2C_Read... [09:32:02]Read from MH i2c: 01 07 00 [09:32:02]MH_I2C_Read... [09:32:02]Read from MH i2c: 01 07 00 A3 1F 00 00 00 00 00 FF 0F D7 [09:32:02]RasterBufferAndPrint [09:32:02]line Счет N : (1)32146 [09:32:02]line ИÐÐ: 02508201610067 [09:32:02]line Контрольно-КаÑÑовый Чек [09:32:02]line ПРОДÐЖР[09:32:02]line ТРК (МРК, ГÐК) : 12 [09:32:02]line Товар: 2710124130 [09:32:02]line Ðи-92-К-5 [09:32:02]line 14.950 * 66.90 [09:32:02]line = 1000.16 [09:32:02]line ÐДС 12% ÐСП 1% [09:32:02]line > о реализуемом товаре [09:32:02]line ОКРУГЛЕÐИЕ: -0.16 [09:32:02]line ИТОГО: 1000.00 [09:32:02]line ВнеÑено: 1000.00 [09:32:02]line СДÐЧÐ: 0.00 [09:32:02]line ÐСП 1% : 8.85 [09:32:02]line ÐДС 12% : 106.21 [09:32:02]line Ðаличными: 1000.00 [09:32:02]line Безнал.: 0.00 [09:32:02]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [09:32:02]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [09:32:02]line СÐО: Общий режим [09:32:02]line Чек 23 29.10.2024 09:32 [09:32:02]line Смена: 544 ФФД: 1.0 [09:32:02]line ЗÐМ: 0300000110 [09:32:02]line РÐМ: 0000000000091776 [09:32:02]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [09:32:02]line ФМ: 0000000000871754 [09:32:02]line ФД: 192817 [09:32:02]line ФПД: 274065076144778 [09:32:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T093204&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192817&fm=274065076144778&tin=02508201610067®Number=0000000000091776&sum=100000 [09:32:02]OFD Sender: Processing packet 192817 [packets to send 75, broken 74] [09:32:02]ProducePacketName [09:32:02]name=ofd_packets/00192817 [09:32:02]OFD Sender: To server: ‡•öpG, [09:32:02]CommunicateWithHost lk.salyk.kg:30040 [09:32:02]ConnectInit lk.salyk.kg [09:32:02]written 0, free lines is 4095 [09:32:02]Connected sock=10 [09:32: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 0A D5 07 01 F5 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 94 AB 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 F9 42 BF 82 4A 8A A8 7B 9D 9B 39 5D 76 7C [09:32:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 15 ED 47 00 8B B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 31 F1 02 00 F4 03 04 00 55 50 20 67 B6 04 01 00 00 4A 5B 60 AA CD EC 3F E7 [09:32:03]CommunicateWithHost err = 0 [09:32:03]CheckOFDResponse [09:32:03]1017 (14) - 77093643461234 [09:32:03]1041 (16) - 0000000000871754 [09:32:03]1040 (4) - 192817 [09:32:03]1012 (4) - 29.10.2024 03:02 [09:32:03]1206 (1) - 0 [09:32:03]OFD Sender: Remove packet 192817 [09:32:03]ProducePacketName [09:32:03]name=ofd_packets/00192817 [09:32:03]NVStorageDeleteData [09:32:03]Write to MH i2c: 01 00 00 CE 1F ED [09:32:03]Write i2c OK [09:32:03]MH_I2C_Read... [09:32:03]Read from MH i2c: 01 [09:32:03]MH_I2C_Read... [09:32:03]Read from MH i2c: 01 07 00 [09:32:03]MH_I2C_Read... [09:32:03]Read from MH i2c: 01 07 00 CE 1F 00 00 00 00 00 B3 0C B3 [09:32:03]RasterBufferAndPrint [09:32:03]line [09:32:03]line [09:32:03]line [09:32:03]line [09:32:03]line [09:32:03]written 0, free lines is 3257 [09:32:03]MH_Cut [09:32:03]Write to MH i2c: D1 01 00 D5 1F 01 C6 [09:32:03]Write i2c OK [09:32:03]MH_I2C_Read... [09:32:03]Read from MH i2c: D1 [09:32:03]MH_I2C_Read... [09:32:03]Read from MH i2c: D1 01 00 [09:32:03]MH_I2C_Read... [09:32:03]Read from MH i2c: D1 01 00 D5 1F 00 C5 [09:32:03]Write to MH i2c: 01 00 00 D6 1F F5 [09:32:03]Write i2c OK [09:32:03]MH_I2C_Read... [09:32:03]OFD Sender: No OFD packet to send [09:32:04]*** Cut start [09:32:04]*** Partial cut [09:32:04]*** CUTSNS_PIN = 1 [09:32:04]*** CUTSNS_PIN = 0 [09:32:04]*** Brake cut motor [09:32:04]Read from MH i2c: 01 [09:32:04]MH_I2C_Read... [09:32:04]*** Stop cut motor [09:32:04]*** Cut end [09:32:04]Read from MH i2c: 01 07 00 [09:32:04]MH_I2C_Read... [09:32:04]Read from MH i2c: 01 07 00 D6 1F 00 00 00 00 00 FF 0F 0A [09:32:04]process_action close_receipt done [09:32:04]requested_data is exist [09:32:04]produce_requested_data [09:32:04]requested_item fm.sn is exist - process it [09:32:04]wFMCommunicate request_size=4 [09:32:04]MH_SAM_APDU [09:32:04]CAPDU: 80 11 00 00 [09:32:04]Write to MH i2c: E2 08 00 D7 1F 80 11 00 00 00 00 00 00 70 [09:32:04]Write i2c OK [09:32:04]MH_I2C_Read... [09:32:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:04]Read from MH i2c: E2 [09:32:04]MH_I2C_Read... [09:32:04]Read from MH i2c: E2 17 00 [09:32:04]MH_I2C_Read... [09:32:04]Read from MH i2c: E2 17 00 D7 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C3 [09:32:04]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:04]wFMCommunicate OK [09:32:04]requested_item fd.num is exist - process it [09:32:04]SAM_PROTO_GetFieldsCounters [09:32:04]wFMCommunicate request_size=4 [09:32:04]MH_SAM_APDU [09:32:04]CAPDU: 80 13 00 00 [09:32:04]Write to MH i2c: E2 08 00 D8 1F 80 13 00 00 00 00 00 00 73 [09:32:04]Write i2c OK [09:32:04]MH_I2C_Read... [09:32:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:32:04]Read from MH i2c: E2 [09:32:04]MH_I2C_Read... [09:32:04]Read from MH i2c: E2 62 00 [09:32:04]MH_I2C_Read... [09:32:04]Read from MH i2c: E2 62 00 D8 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 31 F1 02 00 0E 04 04 00 20 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 24 [09:32: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 31 F1 02 00 0E 04 04 00 20 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 [09:32:04]wFMCommunicate OK [09:32:04]SAM_PROTO_GetFieldsCounters done [09:32:04]requested_item shift.num is exist - process it [09:32:04]requested_item shift.opened is exist - process it [09:32:04]req_shift_opened [09:32:04]FM_GetShiftState [09:32:04]SAM_PROTO_GetShiftState [09:32:04]wFMCommunicate request_size=4 [09:32:04]MH_SAM_APDU [09:32:04]CAPDU: 80 13 01 00 [09:32:04]Write to MH i2c: E2 08 00 D9 1F 80 13 01 00 00 00 00 00 75 [09:32:04]Write i2c OK [09:32:04]MH_I2C_Read... [09:32:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:05]Read from MH i2c: E2 [09:32:05]MH_I2C_Read... [09:32:05]Read from MH i2c: E2 0E 00 [09:32:05]MH_I2C_Read... [09:32:05]Read from MH i2c: E2 0E 00 D9 1F 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 7B [09:32:05]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [09:32:05]wFMCommunicate OK [09:32:05]SAM_PROTO_GetShiftState done [09:32:05]FM_GetShiftState done [09:32:05]req_shift_opened done [09:32:05]requested_item shift.open_date is exist - process it [09:32:05]req_shift_open_date [09:32:05]req_shift_open_date done [09:32:05]produce_requested_data done [09:32:05]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192817,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [09:32:05]process_action_free close_receipt [09:32:05]json_value_free [09:32:05]json_value_free done [09:32:05]process_json_proto returns [09:32:05]Send response to host [09:32:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192817,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [09:32:05]free response buf [09:32:05]execute_script done [09:32:05]execute_script returns [09:32:05]free content buf [09:32:05]Sock 8.Close socket [09:32:05]Sock 8.Thread stoped [09:32:08]OFD Sender: No OFD packet to send [09:32:13]OFD Sender: No OFD packet to send [09:32:18]OFD Sender: No OFD packet to send [09:32:23]OFD Sender: No OFD packet to send [09:32:28]OFD Sender: No OFD packet to send [09:32:33]OFD Sender: No OFD packet to send [09:32:38]OFD Sender: No OFD packet to send [09:32:43]OFD Sender: No OFD packet to send [09:32:48]OFD Sender: No OFD packet to send [09:32:53]OFD Sender: No OFD packet to send [09:32:58]OFD Sender: No OFD packet to send [09:33:03]OFD Sender: No OFD packet to send [09:33:08]OFD Sender: No OFD packet to send [09:33:13]OFD Sender: No OFD packet to send [09:33:18]OFD Sender: No OFD packet to send [09:33:23]OFD Sender: No OFD packet to send [09:33:28]OFD Sender: No OFD packet to send [09:33:33]OFD Sender: No OFD packet to send [09:33:38]OFD Sender: No OFD packet to send [09:33:43]OFD Sender: No OFD packet to send [09:33:48]OFD Sender: No OFD packet to send [09:33:53]OFD Sender: No OFD packet to send [09:33:58]OFD Sender: No OFD packet to send [09:34:03]OFD Sender: No OFD packet to send [09:34:08]OFD Sender: No OFD packet to send [09:34:13]OFD Sender: No OFD packet to send [09:34:18]OFD Sender: No OFD packet to send [09:34:23]OFD Sender: No OFD packet to send [09:34:28]OFD Sender: No OFD packet to send [09:34:33]OFD Sender: No OFD packet to send [09:34:38]OFD Sender: No OFD packet to send [09:34:43]OFD Sender: No OFD packet to send [09:34:48]OFD Sender: No OFD packet to send [09:34:53]OFD Sender: No OFD packet to send [09:34:58]OFD Sender: No OFD packet to send [09:35:03]OFD Sender: No OFD packet to send [09:35:08]OFD Sender: No OFD packet to send [09:35:13]OFD Sender: No OFD packet to send [09:35:18]OFD Sender: No OFD packet to send [09:35:23]OFD Sender: No OFD packet to send [09:35:28]OFD Sender: No OFD packet to send [09:35:33]OFD Sender: No OFD packet to send [09:35:38]OFD Sender: No OFD packet to send [09:35:43]OFD Sender: No OFD packet to send [09:35:48]OFD Sender: No OFD packet to send [09:35:53]OFD Sender: No OFD packet to send [09:35:58]OFD Sender: No OFD packet to send [09:36:03]OFD Sender: No OFD packet to send [09:36:08]OFD Sender: No OFD packet to send [09:36:13]OFD Sender: No OFD packet to send [09:36:18]OFD Sender: No OFD packet to send [09:36:23]OFD Sender: No OFD packet to send [09:36:28]OFD Sender: No OFD packet to send [09:36:33]OFD Sender: No OFD packet to send [09:36:38]OFD Sender: No OFD packet to send [09:36:43]OFD Sender: No OFD packet to send [09:36:48]OFD Sender: No OFD packet to send [09:36:53]OFD Sender: No OFD packet to send [09:36:58]OFD Sender: No OFD packet to send [09:37:03]OFD Sender: No OFD packet to send [09:37:08]OFD Sender: No OFD packet to send [09:37:13]OFD Sender: No OFD packet to send [09:37:18]OFD Sender: No OFD packet to send [09:37:23]OFD Sender: No OFD packet to send [09:37:28]OFD Sender: No OFD packet to send [09:37:33]OFD Sender: No OFD packet to send [09:37:38]OFD Sender: No OFD packet to send [09:37:43]OFD Sender: No OFD packet to send [09:37:48]OFD Sender: No OFD packet to send [09:37:53]OFD Sender: No OFD packet to send [09:37:58]OFD Sender: No OFD packet to send [09:38:03]OFD Sender: No OFD packet to send [09:38:08]OFD Sender: No OFD packet to send [09:38:13]OFD Sender: No OFD packet to send [09:38:19]OFD Sender: No OFD packet to send [09:38:24]OFD Sender: No OFD packet to send [09:38:29]OFD Sender: No OFD packet to send [09:38:34]OFD Sender: No OFD packet to send [09:38:39]OFD Sender: No OFD packet to send [09:38:44]OFD Sender: No OFD packet to send [09:38:49]OFD Sender: No OFD packet to send [09:38:54]OFD Sender: No OFD packet to send [09:38:59]OFD Sender: No OFD packet to send [09:39:04]OFD Sender: No OFD packet to send [09:39:09]OFD Sender: No OFD packet to send [09:39:14]OFD Sender: No OFD packet to send [09:39:19]OFD Sender: No OFD packet to send [09:39:24]OFD Sender: No OFD packet to send [09:39:29]OFD Sender: No OFD packet to send [09:39:34]OFD Sender: No OFD packet to send [09:39:39]OFD Sender: No OFD packet to send [09:39:41]accept exits with 9 [09:39:41]New connection [09:39:41]New thread 3066801508 created [09:39:41]Thread 3066658148 joined [09:39:41]Waiting for new connection... [09:39:41] Sock 9.Parse request [09:39:41]Sock 9.Check first char [09:39:41]Sock 9.First char is OK [09:39:41]request: POST /json_proto HTTP/1.0 [09:39:41]Method: POST [09:39:41]URL: /json_proto [09:39:41]Method is POST - this is cgi request [09:39:41]url: /json_proto [09:39:41]query_string will be loaded in cgi processing [09:39:41]execute_cgi json_proto POST (null) [09:39:41]execute_cgi path=json_proto method=POST [09:39:41]POST find Content-Length [09:39:41]Host: 172.17.63.131:8080 [09:39:41]Content-Length: 676 [09:39:41]Content-Type: application/json [09:39:41] [09:39:41]POST finish read [09:39:41]Found Content-Length = 676 [09:39:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32147", "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:39:41]execute_script... [09:39: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)32147", "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:39:41]POST & json_proto [09:39:41]process_json_proto [09:39:41]json parsed OK: [09:39:41]protocol is kg_v1.0 [09:39:41]action value=close_receipt [09:39:41]process_action close_receipt [09:39:41]cmd_close_receipt [09:39:41]MH_GetDate [09:39:41]Write to MH i2c: F0 00 00 DA 1F E8 [09:39:41]Write i2c OK [09:39:41]MH_I2C_Read... [09:39:41]Read from MH i2c: F0 [09:39:41]MH_I2C_Read... [09:39:41]Read from MH i2c: F0 09 00 [09:39:41]MH_I2C_Read... [09:39:41]Read from MH i2c: F0 09 00 DA 1F 00 61 AD 20 67 22 05 6E 64 7F [09:39:41]GetLastDocTimeStamp 1730194324 [09:39:41]current date 1730194785 [09:39:41]FM_GetShiftState [09:39:41]SAM_PROTO_GetShiftState [09:39:41]wFMCommunicate request_size=4 [09:39:41]MH_SAM_APDU [09:39:41]CAPDU: 80 13 01 00 [09:39:41]Write to MH i2c: E2 08 00 DB 1F 80 13 01 00 00 00 00 00 77 [09:39:41]Write i2c OK [09:39:41]MH_I2C_Read... [09:39:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:41]Read from MH i2c: E2 [09:39:41]MH_I2C_Read... [09:39:41]Read from MH i2c: E2 0E 00 [09:39:41]MH_I2C_Read... [09:39:41]Read from MH i2c: E2 0E 00 DB 1F 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 7D [09:39:41]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [09:39:41]wFMCommunicate OK [09:39:41]SAM_PROTO_GetShiftState done [09:39:41]FM_GetShiftState done [09:39:41]opened in 1730161990 [09:39:41]opened+sec_in_day 1730248390 [09:39:41]quantity*price = 50041 [09:39:41]sum+1 = 50042 [09:39: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 СÐО: Общий режим Чек 24 29.10.2024 09:39 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192818 ФПД: 74123891677924 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T093945&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192818&fm=74123891677924&tin=02508201610067®Number=0000000000091776&sum=50000 [09:39:43]StoreToDocumentArchive [09:39:43]shift 544 fd 192818 [09:39:43]save to /storage/0544/doc_00192818 [09:39:43]save last doc name /storage/0544/doc_00192818 to /storage/kkm_last_doc_name [09:39:43]save OK [09:39:43]Clear old archive folders... [09:39:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:39:43]tlvbuf is 00FCFD00 [09:39:43]SAM_PROTO_ClearQueue [09:39:43]wFMCommunicate request_size=4 [09:39:43]MH_SAM_APDU [09:39:43]CAPDU: 80 09 00 00 [09:39:43]Write to MH i2c: E2 08 00 E8 1F 80 09 00 00 00 00 00 00 79 [09:39:43]Write i2c OK [09:39:43]MH_I2C_Read... [09:39:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:39:43]Read from MH i2c: E2 [09:39:43]MH_I2C_Read... [09:39:43]Read from MH i2c: E2 03 00 [09:39:43]MH_I2C_Read... [09:39:43]Read from MH i2c: E2 03 00 E8 1F 00 90 00 7B [09:39:43]RAPDU: 90 00 [09:39:43]wFMCommunicate OK [09:39:43]SAM_PROTO_ClearQueue done [09:39:43]KKMCreateOFDPacket [09:39:43]OFDProtocolAddRootSTLVToBuf [09:39:43]FM_MakeSignedData [09:39:43]FM_MakeSignedData [09:39:43]SAM_PROTO_SignData [09:39:43]wFMCommunicate request_size=4 [09:39:43]MH_SAM_APDU [09:39:43]CAPDU: 80 0D 01 02 [09:39:43]Write to MH i2c: E2 08 00 E9 1F 80 0D 01 02 00 00 00 00 81 [09:39:43]Write i2c OK [09:39:43]MH_I2C_Read... [09:39:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:39:43]Read from MH i2c: E2 [09:39:43]MH_I2C_Read... [09:39:43]Read from MH i2c: E2 03 00 [09:39:43]MH_I2C_Read... [09:39:43]Read from MH i2c: E2 03 00 E9 1F 00 90 00 7C [09:39:43]RAPDU: 90 00 [09:39:43]wFMCommunicate OK [09:39:43]wFMCommunicate request_size=255 [09:39:43]MH_SAM_APDU [09:39: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 18 00 00 00 F4 03 04 00 61 AD 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 43 [09:39:43]Write to MH i2c: E2 02 01 EA 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 18 00 00 00 F4 03 04 00 61 AD 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 43 00 00 4C [09:39:43]Write i2c OK [09:39:43]MH_I2C_Read... [09:39:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:43]Read from MH i2c: E2 [09:39:43]MH_I2C_Read... [09:39:43]Read from MH i2c: E2 03 00 [09:39:43]MH_I2C_Read... [09:39:43]Read from MH i2c: E2 03 00 EA 1F 00 90 00 7D [09:39:43]RAPDU: 90 00 [09:39:43]wFMCommunicate OK [09:39:43]wFMCommunicate request_size=10 [09:39:43]MH_SAM_APDU [09:39:43]CAPDU: 80 0D 02 02 05 6A 50 3B 9A E4 [09:39:43]Write to MH i2c: E2 0D 00 EB 1F 80 0D 02 02 05 00 6A 50 3B 9A E4 00 00 01 [09:39:43]Write i2c OK [09:39:43]MH_I2C_Read... [09:39:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:43]Read from MH i2c: E2 [09:39:43]MH_I2C_Read... [09:39:43]Read from MH i2c: E2 03 00 [09:39:43]MH_I2C_Read... [09:39:43]Read from MH i2c: E2 03 00 EB 1F 00 90 00 7E [09:39:43]RAPDU: 90 00 [09:39:43]wFMCommunicate OK [09:39:43]wFMCommunicate request_size=4 [09:39:43]MH_SAM_APDU [09:39:43]CAPDU: 80 0D 03 02 [09:39:43]Write to MH i2c: E2 08 00 EC 1F 80 0D 03 02 00 00 00 00 86 [09:39:43]Write i2c OK [09:39:43]MH_I2C_Read... [09:39:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:39:43]Read from MH i2c: E2 [09:39:43]MH_I2C_Read... [09:39:43]Read from MH i2c: E2 0B 00 [09:39:43]MH_I2C_Read... [09:39:43]Read from MH i2c: E2 0B 00 EC 1F 00 7E CE BC 8E B5 D1 FC C9 90 00 68 [09:39:43]RAPDU: 7E CE BC 8E B5 D1 FC C9 90 00 [09:39:43]wFMCommunicate OK [09:39:43]SAM_PROTO_SignData done [09:39:43]FM_MakeSignedData done [09:39:43]CreateOFDProtocolMessage [09:39:43]wFMCommunicate request_size=4 [09:39:43]MH_SAM_APDU [09:39:43]CAPDU: 80 11 00 00 [09:39:43]Write to MH i2c: E2 08 00 ED 1F 80 11 00 00 00 00 00 00 86 [09:39:43]Write i2c OK [09:39:43]MH_I2C_Read... [09:39:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:43]Read from MH i2c: E2 [09:39:43]MH_I2C_Read... [09:39:43]Read from MH i2c: E2 17 00 [09:39:43]MH_I2C_Read... [09:39:43]Read from MH i2c: E2 17 00 ED 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D9 [09:39: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:39:43]wFMCommunicate OK [09:39:43]CreateOFDProtocolMessage done [09:39:43]OFDSenderStorePacket 192818 [09:39:43]StoreOFDPacket docnum=192818 [09:39: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 01 63 07 01 51 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 18 00 00 00 F4 03 04 00 61 AD 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 43 6A 50 3B 9A E4 7E CE BC 8E B5 D1 FC C9 [09:39:43]CheckFolder [09:39:43]dirname=/storage/ofd_packets [09:39:43]CheckFolder done [09:39:43]ProducePacketName [09:39:43]name=ofd_packets/00192818 [09:39:43]NVStorageSaveData ofd_packets/00192818 [09:39:43]File name is /storage/ofd_packets/00192818 [09:39:43]Write 301 bytes [09:39:43]NVStorageSaveData done [09:39:43]OFDSenderStorePacket done [09:39:43]KKMCreateOFDPacket done [09:39:43]NVStorageSaveData kkm_last_timestamp [09:39:43]File name is /storage/kkm_last_timestamp [09:39:43]Write 4 bytes [09:39:43]NVStorageSaveData done [09:39:43]ExternCall_PrintAddStr [09:39:43]wPrintStart [09:39:43]Write to MH i2c: 01 00 00 EE 1F 0D [09:39:43]Write i2c OK [09:39:43]MH_I2C_Read... [09:39:43]Read from MH i2c: 01 [09:39:43]MH_I2C_Read... [09:39:43]Read from MH i2c: 01 07 00 [09:39:43]MH_I2C_Read... [09:39:43]Read from MH i2c: 01 07 00 EE 1F 00 00 00 00 00 FF 0F 22 [09:39:43]RasterBufferAndPrint [09:39:43]line Счет N : (1)32147 [09:39:43]line ИÐÐ: 02508201610067 [09:39:43]line Контрольно-КаÑÑовый Чек [09:39:43]line ПРОДÐЖР[09:39:43]line ТРК (МРК, ГÐК) : 12 [09:39:43]line Товар: 2710124130 [09:39:43]line Ðи-92-К-5 [09:39:43]line 7.480 * 66.90 [09:39:43]line = 500.41 [09:39:43]line ÐДС 12% ÐСП 1% [09:39:43]line > о реализуемом товаре [09:39:43]line ОКРУГЛЕÐИЕ: -0.41 [09:39:43]line ИТОГО: 500.00 [09:39:43]line ВнеÑено: 500.00 [09:39:43]line СДÐЧÐ: 0.00 [09:39:43]line ÐСП 1% : 4.43 [09:39:43]line ÐДС 12% : 53.14 [09:39:43]line Ðаличными: 500.00 [09:39:43]line Безнал.: 0.00 [09:39:43]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [09:39:43]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [09:39:43]line СÐО: Общий режим [09:39:43]line Чек 24 29.10.2024 09:39 [09:39:43]line Смена: 544 ФФД: 1.0 [09:39:43]line ЗÐМ: 0300000110 [09:39:43]line РÐМ: 0000000000091776 [09:39:43]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [09:39:43]line ФМ: 0000000000871754 [09:39:43]line ФД: 192818 [09:39:43]line ФПД: 74123891677924 [09:39:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T093945&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192818&fm=74123891677924&tin=02508201610067®Number=0000000000091776&sum=50000 [09:39:43]OFD Sender: Processing packet 192818 [packets to send 75, broken 74] [09:39:43]ProducePacketName [09:39:43]name=ofd_packets/00192818 [09:39:43]OFD Sender: To server: ‡•öpG, [09:39:43]CommunicateWithHost lk.salyk.kg:30040 [09:39:43]ConnectInit lk.salyk.kg [09:39:43]written 0, free lines is 4095 [09:39:44]Connected sock=10 [09:39: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 01 63 07 01 51 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 18 00 00 00 F4 03 04 00 61 AD 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 43 6A 50 3B 9A E4 7E CE BC 8E B5 D1 FC C9 [09:39: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 B6 2D 47 00 1F 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 32 F1 02 00 F4 03 04 00 23 52 20 67 B6 04 01 00 00 93 7D 6C 9E 85 C0 C9 08 [09:39:44]CommunicateWithHost err = 0 [09:39:44]CheckOFDResponse [09:39:44]1017 (14) - 77093643461234 [09:39:44]1041 (16) - 0000000000871754 [09:39:44]1040 (4) - 192818 [09:39:44]1012 (4) - 29.10.2024 03:10 [09:39:44]1206 (1) - 0 [09:39:44]OFD Sender: Remove packet 192818 [09:39:44]ProducePacketName [09:39:44]name=ofd_packets/00192818 [09:39:44]NVStorageDeleteData [09:39:44]Write to MH i2c: 01 00 00 19 20 39 [09:39:44]Write i2c OK [09:39:44]MH_I2C_Read... [09:39:44]Read from MH i2c: 01 [09:39:44]MH_I2C_Read... [09:39:44]Read from MH i2c: 01 07 00 [09:39:44]MH_I2C_Read... [09:39:44]Read from MH i2c: 01 07 00 19 20 00 00 00 00 00 AB 0C F7 [09:39:44]RasterBufferAndPrint [09:39:44]line [09:39:44]line [09:39:44]line [09:39:44]line [09:39:44]line [09:39:44]written 0, free lines is 3251 [09:39:44]MH_Cut [09:39:44]Write to MH i2c: D1 01 00 20 20 01 12 [09:39:44]Write i2c OK [09:39:44]MH_I2C_Read... [09:39:44]Read from MH i2c: D1 [09:39:44]MH_I2C_Read... [09:39:44]Read from MH i2c: D1 01 00 [09:39:44]MH_I2C_Read... [09:39:44]Read from MH i2c: D1 01 00 20 20 00 11 [09:39:44]Write to MH i2c: 01 00 00 21 20 41 [09:39:44]Write i2c OK [09:39:44]MH_I2C_Read... [09:39:44]OFD Sender: No OFD packet to send [09:39:45]*** Cut start [09:39:45]*** Partial cut [09:39:45]*** CUTSNS_PIN = 1 [09:39:45]*** CUTSNS_PIN = 0 [09:39:45]*** Brake cut motor [09:39:45]Read from MH i2c: 01 [09:39:45]MH_I2C_Read... [09:39:45]*** Stop cut motor [09:39:45]*** Cut end [09:39:45]Read from MH i2c: 01 07 00 [09:39:45]MH_I2C_Read... [09:39:45]Read from MH i2c: 01 07 00 21 20 00 00 00 00 00 FF 0F 56 [09:39:45]process_action close_receipt done [09:39:45]requested_data is exist [09:39:45]produce_requested_data [09:39:45]requested_item fm.sn is exist - process it [09:39:45]wFMCommunicate request_size=4 [09:39:45]MH_SAM_APDU [09:39:45]CAPDU: 80 11 00 00 [09:39:45]Write to MH i2c: E2 08 00 22 20 80 11 00 00 00 00 00 00 BC [09:39:45]Write i2c OK [09:39:45]MH_I2C_Read... [09:39:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:45]Read from MH i2c: E2 [09:39:45]MH_I2C_Read... [09:39:45]Read from MH i2c: E2 17 00 [09:39:45]MH_I2C_Read... [09:39:45]Read from MH i2c: E2 17 00 22 20 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:39: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:39:45]wFMCommunicate OK [09:39:45]requested_item fd.num is exist - process it [09:39:45]SAM_PROTO_GetFieldsCounters [09:39:45]wFMCommunicate request_size=4 [09:39:45]MH_SAM_APDU [09:39:45]CAPDU: 80 13 00 00 [09:39:45]Write to MH i2c: E2 08 00 23 20 80 13 00 00 00 00 00 00 BF [09:39:45]Write i2c OK [09:39:45]MH_I2C_Read... [09:39:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:39:46]Read from MH i2c: E2 [09:39:46]MH_I2C_Read... [09:39:46]Read from MH i2c: E2 62 00 [09:39:46]MH_I2C_Read... [09:39:46]Read from MH i2c: E2 62 00 23 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 32 F1 02 00 0E 04 04 00 20 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 74 [09:39: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 32 F1 02 00 0E 04 04 00 20 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 [09:39:46]wFMCommunicate OK [09:39:46]SAM_PROTO_GetFieldsCounters done [09:39:46]requested_item shift.num is exist - process it [09:39:46]requested_item shift.opened is exist - process it [09:39:46]req_shift_opened [09:39:46]FM_GetShiftState [09:39:46]SAM_PROTO_GetShiftState [09:39:46]wFMCommunicate request_size=4 [09:39:46]MH_SAM_APDU [09:39:46]CAPDU: 80 13 01 00 [09:39:46]Write to MH i2c: E2 08 00 24 20 80 13 01 00 00 00 00 00 C1 [09:39:46]Write i2c OK [09:39:46]MH_I2C_Read... [09:39:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:46]Read from MH i2c: E2 [09:39:46]MH_I2C_Read... [09:39:46]Read from MH i2c: E2 0E 00 [09:39:46]MH_I2C_Read... [09:39:46]Read from MH i2c: E2 0E 00 24 20 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 C7 [09:39:46]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [09:39:46]wFMCommunicate OK [09:39:46]SAM_PROTO_GetShiftState done [09:39:46]FM_GetShiftState done [09:39:46]req_shift_opened done [09:39:46]requested_item shift.open_date is exist - process it [09:39:46]req_shift_open_date [09:39:46]req_shift_open_date done [09:39:46]produce_requested_data done [09:39:46]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192818,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [09:39:46]process_action_free close_receipt [09:39:46]json_value_free [09:39:46]json_value_free done [09:39:46]process_json_proto returns [09:39:46]Send response to host [09:39:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192818,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [09:39:46]free response buf [09:39:46]execute_script done [09:39:46]execute_script returns [09:39:46]free content buf [09:39:46]Sock 9.Close socket [09:39:46]Sock 9.Thread stoped [09:39:49]OFD Sender: No OFD packet to send [09:39:54]OFD Sender: No OFD packet to send [09:39:59]OFD Sender: No OFD packet to send [09:40:04]OFD Sender: No OFD packet to send [09:40:09]OFD Sender: No OFD packet to send [09:40:14]OFD Sender: No OFD packet to send [09:40:19]OFD Sender: No OFD packet to send [09:40:24]OFD Sender: No OFD packet to send [09:40:29]OFD Sender: No OFD packet to send [09:40:34]OFD Sender: No OFD packet to send [09:40:39]OFD Sender: No OFD packet to send [09:40:44]OFD Sender: No OFD packet to send [09:40:49]OFD Sender: No OFD packet to send [09:40:54]OFD Sender: No OFD packet to send [09:40:59]OFD Sender: No OFD packet to send [09:41:04]OFD Sender: No OFD packet to send [09:41:09]OFD Sender: No OFD packet to send [09:41:14]OFD Sender: No OFD packet to send [09:41:19]OFD Sender: No OFD packet to send [09:41:24]OFD Sender: No OFD packet to send [09:41:29]OFD Sender: No OFD packet to send [09:41:34]OFD Sender: No OFD packet to send [09:41:39]OFD Sender: No OFD packet to send [09:41:44]OFD Sender: No OFD packet to send [09:41:49]OFD Sender: No OFD packet to send [09:41:54]OFD Sender: No OFD packet to send [09:41:59]OFD Sender: No OFD packet to send [09:42:04]OFD Sender: No OFD packet to send [09:42:09]OFD Sender: No OFD packet to send [09:42:14]OFD Sender: No OFD packet to send [09:42:19]OFD Sender: No OFD packet to send [09:42:24]OFD Sender: No OFD packet to send [09:42:29]OFD Sender: No OFD packet to send [09:42:34]OFD Sender: No OFD packet to send [09:42:39]OFD Sender: No OFD packet to send [09:42:44]OFD Sender: No OFD packet to send [09:42:49]OFD Sender: No OFD packet to send [09:42:54]OFD Sender: No OFD packet to send [09:42:59]OFD Sender: No OFD packet to send [09:43:04]OFD Sender: No OFD packet to send [09:43:09]OFD Sender: No OFD packet to send [09:43:14]OFD Sender: No OFD packet to send [09:43:19]OFD Sender: No OFD packet to send [09:43:24]OFD Sender: No OFD packet to send [09:43:29]OFD Sender: No OFD packet to send [09:43:34]OFD Sender: No OFD packet to send [09:43:39]OFD Sender: No OFD packet to send [09:43:44]OFD Sender: No OFD packet to send [09:43:50]OFD Sender: No OFD packet to send [09:43:55]OFD Sender: No OFD packet to send [09:44:00]OFD Sender: No OFD packet to send [09:44:05]OFD Sender: No OFD packet to send [09:44:10]OFD Sender: No OFD packet to send [09:44:15]OFD Sender: No OFD packet to send [09:44:20]OFD Sender: No OFD packet to send [09:44:25]OFD Sender: No OFD packet to send [09:44:30]OFD Sender: No OFD packet to send [09:44:35]OFD Sender: No OFD packet to send [09:44:40]OFD Sender: No OFD packet to send [09:44:45]OFD Sender: No OFD packet to send [09:44:50]OFD Sender: No OFD packet to send [09:44:55]OFD Sender: No OFD packet to send [09:45:00]OFD Sender: No OFD packet to send [09:45:05]OFD Sender: No OFD packet to send [09:45:10]OFD Sender: No OFD packet to send [09:45:15]OFD Sender: No OFD packet to send [09:45:20]OFD Sender: No OFD packet to send [09:45:25]OFD Sender: No OFD packet to send [09:45:30]OFD Sender: No OFD packet to send [09:45:35]OFD Sender: No OFD packet to send [09:45:40]OFD Sender: No OFD packet to send [09:45:45]OFD Sender: No OFD packet to send [09:45:50]OFD Sender: No OFD packet to send [09:45:55]OFD Sender: No OFD packet to send [09:46:00]OFD Sender: No OFD packet to send [09:46:05]OFD Sender: No OFD packet to send [09:46:10]OFD Sender: No OFD packet to send [09:46:15]OFD Sender: No OFD packet to send [09:46:20]OFD Sender: No OFD packet to send [09:46:25]OFD Sender: No OFD packet to send [09:46:30]OFD Sender: No OFD packet to send [09:46:35]OFD Sender: No OFD packet to send [09:46:40]OFD Sender: No OFD packet to send [09:46:45]OFD Sender: No OFD packet to send [09:46:50]OFD Sender: No OFD packet to send [09:46:55]OFD Sender: No OFD packet to send [09:47:00]OFD Sender: No OFD packet to send [09:47:05]OFD Sender: No OFD packet to send [09:47:10]OFD Sender: No OFD packet to send [09:47:15]OFD Sender: No OFD packet to send [09:47:20]OFD Sender: No OFD packet to send [09:47:25]OFD Sender: No OFD packet to send [09:47:30]OFD Sender: No OFD packet to send [09:47:35]OFD Sender: No OFD packet to send [09:47:40]OFD Sender: No OFD packet to send [09:47:45]OFD Sender: No OFD packet to send [09:47:50]OFD Sender: No OFD packet to send [09:47:55]OFD Sender: No OFD packet to send [09:48:00]OFD Sender: No OFD packet to send [09:48:05]OFD Sender: No OFD packet to send [09:48:10]OFD Sender: No OFD packet to send [09:48:15]OFD Sender: No OFD packet to send [09:48:20]OFD Sender: No OFD packet to send [09:48:25]OFD Sender: No OFD packet to send [09:48:30]OFD Sender: No OFD packet to send [09:48:35]OFD Sender: No OFD packet to send [09:48:40]OFD Sender: No OFD packet to send [09:48:45]OFD Sender: No OFD packet to send [09:48:50]OFD Sender: No OFD packet to send [09:48:55]OFD Sender: No OFD packet to send [09:49:00]OFD Sender: No OFD packet to send [09:49:02]accept exits with 8 [09:49:02]New connection [09:49:02]New thread 3066658148 created [09:49:02]Thread 3066801508 joined [09:49:02]Waiting for new connection... [09:49:02] Sock 8.Parse request [09:49:02]Sock 8.Check first char [09:49:02]Sock 8.First char is OK [09:49:02]request: POST /json_proto HTTP/1.0 [09:49:02]Method: POST [09:49:02]URL: /json_proto [09:49:02]Method is POST - this is cgi request [09:49:02]url: /json_proto [09:49:02]query_string will be loaded in cgi processing [09:49:02]execute_cgi json_proto POST (null) [09:49:02]execute_cgi path=json_proto method=POST [09:49:02]POST find Content-Length [09:49:02]Host: 172.17.63.131:8080 [09:49:02]Content-Length: 676 [09:49:02]Content-Type: application/json [09:49:02] [09:49:02]POST finish read [09:49:02]Found Content-Length = 676 [09:49:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32148", "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" ] } } [09:49:02]execute_script... [09: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)32148", "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" ] } } [09:49:02]POST & json_proto [09:49:02]process_json_proto [09:49:02]json parsed OK: [09:49:02]protocol is kg_v1.0 [09:49:02]action value=close_receipt [09:49:02]process_action close_receipt [09:49:02]cmd_close_receipt [09:49:02]MH_GetDate [09:49:02]Write to MH i2c: F0 00 00 25 20 34 [09:49:02]Write i2c OK [09:49:02]MH_I2C_Read... [09:49:02]Read from MH i2c: F0 [09:49:02]MH_I2C_Read... [09:49:02]Read from MH i2c: F0 09 00 [09:49:02]MH_I2C_Read... [09:49:02]Read from MH i2c: F0 09 00 25 20 00 92 AF 20 67 22 05 6E 64 FE [09:49:02]GetLastDocTimeStamp 1730194785 [09:49:02]current date 1730195346 [09:49:02]FM_GetShiftState [09:49:02]SAM_PROTO_GetShiftState [09:49:02]wFMCommunicate request_size=4 [09:49:02]MH_SAM_APDU [09:49:02]CAPDU: 80 13 01 00 [09:49:02]Write to MH i2c: E2 08 00 26 20 80 13 01 00 00 00 00 00 C3 [09:49:02]Write i2c OK [09:49:02]MH_I2C_Read... [09:49:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:02]Read from MH i2c: E2 [09:49:02]MH_I2C_Read... [09:49:02]Read from MH i2c: E2 0E 00 [09:49:02]MH_I2C_Read... [09:49:02]Read from MH i2c: E2 0E 00 26 20 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 C9 [09:49:02]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [09:49:02]wFMCommunicate OK [09:49:02]SAM_PROTO_GetShiftState done [09:49:02]FM_GetShiftState done [09:49:02]opened in 1730161990 [09:49:02]opened+sec_in_day 1730248390 [09:49:02]quantity*price = 30038 [09:49:02]sum+1 = 30039 [09:49:02]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 СÐО: Общий режим Чек 25 29.10.2024 09:49 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192819 ФПД: 245928177683555 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T094906&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192819&fm=245928177683555&tin=02508201610067®Number=0000000000091776&sum=30000 [09:49:03]StoreToDocumentArchive [09:49:03]shift 544 fd 192819 [09:49:03]save to /storage/0544/doc_00192819 [09:49:03]save last doc name /storage/0544/doc_00192819 to /storage/kkm_last_doc_name [09:49:03]save OK [09:49:03]Clear old archive folders... [09:49:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:49:03]tlvbuf is 00EFE330 [09:49:03]SAM_PROTO_ClearQueue [09:49:03]wFMCommunicate request_size=4 [09:49:03]MH_SAM_APDU [09:49:03]CAPDU: 80 09 00 00 [09:49:03]Write to MH i2c: E2 08 00 33 20 80 09 00 00 00 00 00 00 C5 [09:49:03]Write i2c OK [09:49:03]MH_I2C_Read... [09:49:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:49:03]Read from MH i2c: E2 [09:49:03]MH_I2C_Read... [09:49:03]Read from MH i2c: E2 03 00 [09:49:03]MH_I2C_Read... [09:49:03]Read from MH i2c: E2 03 00 33 20 00 90 00 C7 [09:49:03]RAPDU: 90 00 [09:49:03]wFMCommunicate OK [09:49:03]SAM_PROTO_ClearQueue done [09:49:03]KKMCreateOFDPacket [09:49:03]OFDProtocolAddRootSTLVToBuf [09:49:03]FM_MakeSignedData [09:49:03]FM_MakeSignedData [09:49:03]SAM_PROTO_SignData [09:49:03]wFMCommunicate request_size=4 [09:49:03]MH_SAM_APDU [09:49:03]CAPDU: 80 0D 01 02 [09:49:03]Write to MH i2c: E2 08 00 34 20 80 0D 01 02 00 00 00 00 CD [09:49:03]Write i2c OK [09:49:03]MH_I2C_Read... [09:49:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:49:03]Read from MH i2c: E2 [09:49:03]MH_I2C_Read... [09:49:03]Read from MH i2c: E2 03 00 [09:49:03]MH_I2C_Read... [09:49:03]Read from MH i2c: E2 03 00 34 20 00 90 00 C8 [09:49:03]RAPDU: 90 00 [09:49:03]wFMCommunicate OK [09:49:03]wFMCommunicate request_size=255 [09:49:03]MH_SAM_APDU [09: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 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 19 00 00 00 F4 03 04 00 92 AF 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 DF [09:49:03]Write to MH i2c: E2 02 01 35 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 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 19 00 00 00 F4 03 04 00 92 AF 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 DF 00 00 5D [09:49:03]Write i2c OK [09:49:03]MH_I2C_Read... [09:49:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:03]Read from MH i2c: E2 [09:49:03]MH_I2C_Read... [09:49:03]Read from MH i2c: E2 03 00 [09:49:03]MH_I2C_Read... [09:49:03]Read from MH i2c: E2 03 00 35 20 00 90 00 C9 [09:49:03]RAPDU: 90 00 [09:49:03]wFMCommunicate OK [09:49:03]wFMCommunicate request_size=10 [09:49:03]MH_SAM_APDU [09:49:03]CAPDU: 80 0D 02 02 05 AB 9D AB CC 63 [09:49:03]Write to MH i2c: E2 0D 00 36 20 80 0D 02 02 05 00 AB 9D AB CC 63 00 00 FC [09:49:03]Write i2c OK [09:49:03]MH_I2C_Read... [09:49:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:03]Read from MH i2c: E2 [09:49:03]MH_I2C_Read... [09:49:03]Read from MH i2c: E2 03 00 [09:49:03]MH_I2C_Read... [09:49:03]Read from MH i2c: E2 03 00 36 20 00 90 00 CA [09:49:03]RAPDU: 90 00 [09:49:03]wFMCommunicate OK [09:49:03]wFMCommunicate request_size=4 [09:49:03]MH_SAM_APDU [09:49:03]CAPDU: 80 0D 03 02 [09:49:03]Write to MH i2c: E2 08 00 37 20 80 0D 03 02 00 00 00 00 D2 [09:49:03]Write i2c OK [09:49:03]MH_I2C_Read... [09:49:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:49:03]Read from MH i2c: E2 [09:49:03]MH_I2C_Read... [09:49:03]Read from MH i2c: E2 0B 00 [09:49:03]MH_I2C_Read... [09:49:03]Read from MH i2c: E2 0B 00 37 20 00 AE 5B B7 24 AF 4B D4 EA 90 00 6F [09:49:03]RAPDU: AE 5B B7 24 AF 4B D4 EA 90 00 [09:49:03]wFMCommunicate OK [09:49:03]SAM_PROTO_SignData done [09:49:03]FM_MakeSignedData done [09:49:03]CreateOFDProtocolMessage [09:49:03]wFMCommunicate request_size=4 [09:49:03]MH_SAM_APDU [09:49:03]CAPDU: 80 11 00 00 [09:49:03]Write to MH i2c: E2 08 00 38 20 80 11 00 00 00 00 00 00 D2 [09:49:03]Write i2c OK [09:49:03]MH_I2C_Read... [09:49:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:03]Read from MH i2c: E2 [09:49:03]MH_I2C_Read... [09:49:03]Read from MH i2c: E2 17 00 [09:49:03]MH_I2C_Read... [09:49:03]Read from MH i2c: E2 17 00 38 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 25 [09:49:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:49:03]wFMCommunicate OK [09:49:03]CreateOFDProtocolMessage done [09:49:03]OFDSenderStorePacket 192819 [09:49:03]StoreOFDPacket docnum=192819 [09:49: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 B3 81 07 01 59 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 19 00 00 00 F4 03 04 00 92 AF 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 DF AB 9D AB CC 63 AE 5B B7 24 AF 4B D4 EA [09:49:03]CheckFolder [09:49:03]dirname=/storage/ofd_packets [09:49:03]CheckFolder done [09:49:03]ProducePacketName [09:49:03]name=ofd_packets/00192819 [09:49:03]NVStorageSaveData ofd_packets/00192819 [09:49:03]File name is /storage/ofd_packets/00192819 [09:49:03]Write 301 bytes [09:49:03]NVStorageSaveData done [09:49:03]OFDSenderStorePacket done [09:49:03]KKMCreateOFDPacket done [09:49:03]NVStorageSaveData kkm_last_timestamp [09:49:03]File name is /storage/kkm_last_timestamp [09:49:03]Write 4 bytes [09:49:03]NVStorageSaveData done [09:49:03]ExternCall_PrintAddStr [09:49:03]wPrintStart [09:49:03]Write to MH i2c: 01 00 00 39 20 59 [09:49:03]Write i2c OK [09:49:03]MH_I2C_Read... [09:49:03]Read from MH i2c: 01 [09:49:03]MH_I2C_Read... [09:49:03]Read from MH i2c: 01 07 00 [09:49:03]MH_I2C_Read... [09:49:03]Read from MH i2c: 01 07 00 39 20 00 00 00 00 00 FF 0F 6E [09:49:03]RasterBufferAndPrint [09:49:03]line Счет N : (1)32148 [09:49:03]line ИÐÐ: 02508201610067 [09:49:03]line Контрольно-КаÑÑовый Чек [09:49:03]line ПРОДÐЖР[09:49:03]line ТРК (МРК, ГÐК) : 12 [09:49:03]line Товар: 2710124130 [09:49:03]line Ðи-92-К-5 [09:49:03]line 4.490 * 66.90 [09:49:03]line = 300.38 [09:49:03]line ÐДС 12% ÐСП 1% [09:49:03]line > о реализуемом товаре [09:49:03]line ОКРУГЛЕÐИЕ: -0.38 [09:49:03]line ИТОГО: 300.00 [09:49:03]line ВнеÑено: 300.00 [09:49:03]line СДÐЧÐ: 0.00 [09:49:03]line ÐСП 1% : 2.66 [09:49:03]line ÐДС 12% : 31.90 [09:49:03]line Ðаличными: 300.00 [09:49:03]line Безнал.: 0.00 [09:49:03]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [09:49:03]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [09:49:03]line СÐО: Общий режим [09:49:03]line Чек 25 29.10.2024 09:49 [09:49:03]line Смена: 544 ФФД: 1.0 [09:49:03]line ЗÐМ: 0300000110 [09:49:03]line РÐМ: 0000000000091776 [09:49:03]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [09:49:03]line ФМ: 0000000000871754 [09:49:03]line ФД: 192819 [09:49:03]line ФПД: 245928177683555 [09:49:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T094906&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192819&fm=245928177683555&tin=02508201610067®Number=0000000000091776&sum=30000 [09:49:04]OFD Sender: Processing packet 192819 [packets to send 75, broken 74] [09:49:04]ProducePacketName [09:49:04]name=ofd_packets/00192819 [09:49:04]OFD Sender: To server: ‡•öpG, [09:49:04]CommunicateWithHost lk.salyk.kg:30040 [09:49:04]ConnectInit lk.salyk.kg [09:49:04]written 0, free lines is 4095 [09:49:04]Connected sock=10 [09: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 B3 81 07 01 59 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 19 00 00 00 F4 03 04 00 92 AF 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 DF AB 9D AB CC 63 AE 5B B7 24 AF 4B D4 EA [09: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 D3 66 47 00 1B 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 33 F1 02 00 F4 03 04 00 53 54 20 67 B6 04 01 00 00 B3 67 9D 0F E1 A4 AE C7 [09:49:04]CommunicateWithHost err = 0 [09:49:04]CheckOFDResponse [09:49:04]1017 (14) - 77093643461234 [09:49:04]1041 (16) - 0000000000871754 [09:49:04]1040 (4) - 192819 [09:49:04]1012 (4) - 29.10.2024 03:19 [09:49:04]1206 (1) - 0 [09:49:04]OFD Sender: Remove packet 192819 [09:49:04]ProducePacketName [09:49:04]name=ofd_packets/00192819 [09:49:04]NVStorageDeleteData [09:49:04]Write to MH i2c: 01 00 00 64 20 84 [09:49:04]Write i2c OK [09:49:04]MH_I2C_Read... [09:49:04]Read from MH i2c: 01 [09:49:04]MH_I2C_Read... [09:49:04]Read from MH i2c: 01 07 00 [09:49:04]MH_I2C_Read... [09:49:04]Read from MH i2c: 01 07 00 64 20 00 00 00 00 00 B0 0C 47 [09:49:04]RasterBufferAndPrint [09:49:04]line [09:49:04]line [09:49:04]line [09:49:04]line [09:49:04]line [09:49:04]written 0, free lines is 3254 [09:49:04]MH_Cut [09:49:04]Write to MH i2c: D1 01 00 6B 20 01 5D [09:49:04]Write i2c OK [09:49:04]MH_I2C_Read... [09:49:04]Read from MH i2c: D1 [09:49:04]MH_I2C_Read... [09:49:04]Read from MH i2c: D1 01 00 [09:49:04]MH_I2C_Read... [09:49:04]Read from MH i2c: D1 01 00 6B 20 00 5C [09:49:04]Write to MH i2c: 01 00 00 6C 20 8C [09:49:04]Write i2c OK [09:49:04]MH_I2C_Read... [09:49:04]OFD Sender: No OFD packet to send [09:49:05]*** Cut start [09:49:05]*** Partial cut [09:49:05]*** CUTSNS_PIN = 1 [09:49:05]*** CUTSNS_PIN = 0 [09:49:05]*** Brake cut motor [09:49:06]Read from MH i2c: 01 [09:49:06]MH_I2C_Read... [09:49:06]*** Stop cut motor [09:49:06]*** Cut end [09:49:06]Read from MH i2c: 01 07 00 [09:49:06]MH_I2C_Read... [09:49:06]Read from MH i2c: 01 07 00 6C 20 00 00 00 00 00 FF 0F A1 [09:49:06]process_action close_receipt done [09:49:06]requested_data is exist [09:49:06]produce_requested_data [09:49:06]requested_item fm.sn is exist - process it [09:49:06]wFMCommunicate request_size=4 [09:49:06]MH_SAM_APDU [09:49:06]CAPDU: 80 11 00 00 [09:49:06]Write to MH i2c: E2 08 00 6D 20 80 11 00 00 00 00 00 00 07 [09:49:06]Write i2c OK [09:49:06]MH_I2C_Read... [09:49:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:06]Read from MH i2c: E2 [09:49:06]MH_I2C_Read... [09:49:06]Read from MH i2c: E2 17 00 [09:49:06]MH_I2C_Read... [09:49:06]Read from MH i2c: E2 17 00 6D 20 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: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 [09:49:06]wFMCommunicate OK [09:49:06]requested_item fd.num is exist - process it [09:49:06]SAM_PROTO_GetFieldsCounters [09:49:06]wFMCommunicate request_size=4 [09:49:06]MH_SAM_APDU [09:49:06]CAPDU: 80 13 00 00 [09:49:06]Write to MH i2c: E2 08 00 6E 20 80 13 00 00 00 00 00 00 0A [09:49:06]Write i2c OK [09:49:06]MH_I2C_Read... [09:49:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:49:06]Read from MH i2c: E2 [09:49:06]MH_I2C_Read... [09:49:06]Read from MH i2c: E2 62 00 [09:49:06]MH_I2C_Read... [09:49:06]Read from MH i2c: E2 62 00 6E 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 33 F1 02 00 0E 04 04 00 20 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 C3 [09: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 33 F1 02 00 0E 04 04 00 20 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:49:06]wFMCommunicate OK [09:49:06]SAM_PROTO_GetFieldsCounters done [09:49:06]requested_item shift.num is exist - process it [09:49:06]requested_item shift.opened is exist - process it [09:49:06]req_shift_opened [09:49:06]FM_GetShiftState [09:49:06]SAM_PROTO_GetShiftState [09:49:06]wFMCommunicate request_size=4 [09:49:06]MH_SAM_APDU [09:49:06]CAPDU: 80 13 01 00 [09:49:06]Write to MH i2c: E2 08 00 6F 20 80 13 01 00 00 00 00 00 0C [09:49:06]Write i2c OK [09:49:06]MH_I2C_Read... [09:49:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:06]Read from MH i2c: E2 [09:49:06]MH_I2C_Read... [09:49:06]Read from MH i2c: E2 0E 00 [09:49:06]MH_I2C_Read... [09:49:06]Read from MH i2c: E2 0E 00 6F 20 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 12 [09:49:06]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [09:49:06]wFMCommunicate OK [09:49:06]SAM_PROTO_GetShiftState done [09:49:06]FM_GetShiftState done [09:49:06]req_shift_opened done [09:49:06]requested_item shift.open_date is exist - process it [09:49:06]req_shift_open_date [09:49:06]req_shift_open_date done [09:49:06]produce_requested_data done [09:49:06]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192819,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [09:49:06]process_action_free close_receipt [09:49:06]json_value_free [09:49:06]json_value_free done [09:49:06]process_json_proto returns [09:49:06]Send response to host [09:49:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192819,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [09:49:06]free response buf [09:49:06]execute_script done [09:49:06]execute_script returns [09:49:06]free content buf [09:49:06]Sock 8.Close socket [09:49:06]Sock 8.Thread stoped [09:49:09]OFD Sender: No OFD packet to send [09:49:14]OFD Sender: No OFD packet to send [09:49:19]OFD Sender: No OFD packet to send [09:49:24]OFD Sender: No OFD packet to send [09:49:29]OFD Sender: No OFD packet to send [09:49:34]OFD Sender: No OFD packet to send [09:49:40]OFD Sender: No OFD packet to send [09:49:45]OFD Sender: No OFD packet to send [09:49:50]OFD Sender: No OFD packet to send [09:49:55]OFD Sender: No OFD packet to send [09:50:00]OFD Sender: No OFD packet to send [09:50:05]OFD Sender: No OFD packet to send [09:50:10]OFD Sender: No OFD packet to send [09:50:15]OFD Sender: No OFD packet to send [09:50:20]OFD Sender: No OFD packet to send [09:50:25]OFD Sender: No OFD packet to send [09:50:30]OFD Sender: No OFD packet to send [09:50:35]OFD Sender: No OFD packet to send [09:50:40]OFD Sender: No OFD packet to send [09:50:45]OFD Sender: No OFD packet to send [09:50:50]OFD Sender: No OFD packet to send [09:50:55]OFD Sender: No OFD packet to send [09:51:00]OFD Sender: No OFD packet to send [09:51:05]OFD Sender: No OFD packet to send [09:51:10]OFD Sender: No OFD packet to send [09:51:15]OFD Sender: No OFD packet to send [09:51:20]OFD Sender: No OFD packet to send [09:51:25]OFD Sender: No OFD packet to send [09:51:30]OFD Sender: No OFD packet to send [09:51:35]OFD Sender: No OFD packet to send [09:51:40]OFD Sender: No OFD packet to send [09:51:45]OFD Sender: No OFD packet to send [09:51:50]OFD Sender: No OFD packet to send [09:51:55]OFD Sender: No OFD packet to send [09:52:00]OFD Sender: No OFD packet to send [09:52:05]OFD Sender: No OFD packet to send [09:52:10]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [09:53:15]OFD Sender: No OFD packet to send [09:53:20]OFD Sender: No OFD packet to send [09:53:25]OFD Sender: No OFD packet to send [09:53:30]OFD Sender: No OFD packet to send [09:53:35]OFD Sender: No OFD packet to send [09:53:40]OFD Sender: No OFD packet to send [09:53:45]OFD Sender: No OFD packet to send [09:53:50]OFD Sender: No OFD packet to send [09:53:55]OFD Sender: No OFD packet to send [09:54:00]OFD Sender: No OFD packet to send [09:54:02]accept exits with 9 [09:54:02]New connection [09:54:02]New thread 3066801508 created [09:54:02]Thread 3066658148 joined [09:54:02]Waiting for new connection... [09:54:02] Sock 9.Parse request [09:54:02]Sock 9.Check first char [09:54:02]Sock 9.First char is OK [09:54:02]request: POST /json_proto HTTP/1.0 [09:54:02]Method: POST [09:54:02]URL: /json_proto [09:54:02]Method is POST - this is cgi request [09:54:02]url: /json_proto [09:54:02]query_string will be loaded in cgi processing [09:54:02]execute_cgi json_proto POST (null) [09:54:02]execute_cgi path=json_proto method=POST [09:54:02]POST find Content-Length [09:54:02]Host: 172.17.63.131:8080 [09:54:02]Content-Length: 677 [09:54:02]Content-Type: application/json [09:54:02] [09:54:02]POST finish read [09:54:02]Found Content-Length = 677 [09:54:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32149", "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" ] } } [09:54:02]execute_script... [09:54: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)32149", "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" ] } } [09:54:02]POST & json_proto [09:54:02]process_json_proto [09:54:02]json parsed OK: [09:54:02]protocol is kg_v1.0 [09:54:02]action value=close_receipt [09:54:02]process_action close_receipt [09:54:02]cmd_close_receipt [09:54:02]MH_GetDate [09:54:02]Write to MH i2c: F0 00 00 70 20 7F [09:54:02]Write i2c OK [09:54:02]MH_I2C_Read... [09:54:02]Read from MH i2c: F0 [09:54:02]MH_I2C_Read... [09:54:02]Read from MH i2c: F0 09 00 [09:54:02]MH_I2C_Read... [09:54:02]Read from MH i2c: F0 09 00 70 20 00 BE B0 20 67 22 05 6E 64 76 [09:54:02]GetLastDocTimeStamp 1730195346 [09:54:02]current date 1730195646 [09:54:02]FM_GetShiftState [09:54:02]SAM_PROTO_GetShiftState [09:54:02]wFMCommunicate request_size=4 [09:54:02]MH_SAM_APDU [09:54:02]CAPDU: 80 13 01 00 [09:54:02]Write to MH i2c: E2 08 00 71 20 80 13 01 00 00 00 00 00 0E [09:54:02]Write i2c OK [09:54:02]MH_I2C_Read... [09:54:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:02]Read from MH i2c: E2 [09:54:02]MH_I2C_Read... [09:54:02]Read from MH i2c: E2 0E 00 [09:54:02]MH_I2C_Read... [09:54:02]Read from MH i2c: E2 0E 00 71 20 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 14 [09:54:02]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [09:54:02]wFMCommunicate OK [09:54:02]SAM_PROTO_GetShiftState done [09:54:02]FM_GetShiftState done [09:54:02]opened in 1730161990 [09:54:02]opened+sec_in_day 1730248390 [09:54:02]quantity*price = 80012 [09:54:02]sum+1 = 80013 [09:54:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.12 ИТОГО: 800.00 ВнеÑено: 800.00 СДÐЧÐ: 0.00 ÐСП 1% : 7.08 ÐДС 12% : 84.97 Ðаличными: 800.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 170 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 СÐО: Общий режим Чек 26 29.10.2024 09:54 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192820 ФПД: 145228806818433 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T095406&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192820&fm=145228806818433&tin=02508201610067®Number=0000000000091776&sum=80000 [09:54:03]StoreToDocumentArchive [09:54:03]shift 544 fd 192820 [09:54:03]save to /storage/0544/doc_00192820 [09:54:03]save last doc name /storage/0544/doc_00192820 to /storage/kkm_last_doc_name [09:54:03]save OK [09:54:03]Clear old archive folders... [09:54:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:54:04]tlvbuf is 00EFDDE0 [09:54:04]SAM_PROTO_ClearQueue [09:54:04]wFMCommunicate request_size=4 [09:54:04]MH_SAM_APDU [09:54:04]CAPDU: 80 09 00 00 [09:54:04]Write to MH i2c: E2 08 00 7E 20 80 09 00 00 00 00 00 00 10 [09:54:04]Write i2c OK [09:54:04]MH_I2C_Read... [09:54:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:54:04]Read from MH i2c: E2 [09:54:04]MH_I2C_Read... [09:54:04]Read from MH i2c: E2 03 00 [09:54:04]MH_I2C_Read... [09:54:04]Read from MH i2c: E2 03 00 7E 20 00 90 00 12 [09:54:04]RAPDU: 90 00 [09:54:04]wFMCommunicate OK [09:54:04]SAM_PROTO_ClearQueue done [09:54:04]KKMCreateOFDPacket [09:54:04]OFDProtocolAddRootSTLVToBuf [09:54:04]FM_MakeSignedData [09:54:04]FM_MakeSignedData [09:54:04]SAM_PROTO_SignData [09:54:04]wFMCommunicate request_size=4 [09:54:04]MH_SAM_APDU [09:54:04]CAPDU: 80 0D 01 02 [09:54:04]Write to MH i2c: E2 08 00 7F 20 80 0D 01 02 00 00 00 00 18 [09:54:04]Write i2c OK [09:54:04]MH_I2C_Read... [09:54:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:54:04]Read from MH i2c: E2 [09:54:04]MH_I2C_Read... [09:54:04]Read from MH i2c: E2 03 00 [09:54:04]MH_I2C_Read... [09:54:04]Read from MH i2c: E2 03 00 7F 20 00 90 00 13 [09:54:04]RAPDU: 90 00 [09:54:04]wFMCommunicate OK [09:54:04]wFMCommunicate request_size=255 [09:54:04]MH_SAM_APDU [09:54:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1A 00 00 00 F4 03 04 00 BE B0 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 84 [09:54:04]Write to MH i2c: E2 02 01 80 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 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 1A 00 00 00 F4 03 04 00 BE B0 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 84 00 00 74 [09:54:04]Write i2c OK [09:54:04]MH_I2C_Read... [09:54:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:04]Read from MH i2c: E2 [09:54:04]MH_I2C_Read... [09:54:04]Read from MH i2c: E2 03 00 [09:54:04]MH_I2C_Read... [09:54:04]Read from MH i2c: E2 03 00 80 20 00 90 00 14 [09:54:04]RAPDU: 90 00 [09:54:04]wFMCommunicate OK [09:54:04]wFMCommunicate request_size=10 [09:54:04]MH_SAM_APDU [09:54:04]CAPDU: 80 0D 02 02 05 15 B7 71 0A 81 [09:54:04]Write to MH i2c: E2 0D 00 81 20 80 0D 02 02 05 00 15 B7 71 0A 81 00 00 ED [09:54:04]Write i2c OK [09:54:04]MH_I2C_Read... [09:54:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:04]Read from MH i2c: E2 [09:54:04]MH_I2C_Read... [09:54:04]Read from MH i2c: E2 03 00 [09:54:04]MH_I2C_Read... [09:54:04]Read from MH i2c: E2 03 00 81 20 00 90 00 15 [09:54:04]RAPDU: 90 00 [09:54:04]wFMCommunicate OK [09:54:04]wFMCommunicate request_size=4 [09:54:04]MH_SAM_APDU [09:54:04]CAPDU: 80 0D 03 02 [09:54:04]Write to MH i2c: E2 08 00 82 20 80 0D 03 02 00 00 00 00 1D [09:54:04]Write i2c OK [09:54:04]MH_I2C_Read... [09:54:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:54:04]Read from MH i2c: E2 [09:54:04]MH_I2C_Read... [09:54:04]Read from MH i2c: E2 0B 00 [09:54:04]MH_I2C_Read... [09:54:04]Read from MH i2c: E2 0B 00 82 20 00 58 61 B3 96 C7 6E D2 24 90 00 4B [09:54:04]RAPDU: 58 61 B3 96 C7 6E D2 24 90 00 [09:54:04]wFMCommunicate OK [09:54:04]SAM_PROTO_SignData done [09:54:04]FM_MakeSignedData done [09:54:04]CreateOFDProtocolMessage [09:54:04]wFMCommunicate request_size=4 [09:54:04]MH_SAM_APDU [09:54:04]CAPDU: 80 11 00 00 [09:54:04]Write to MH i2c: E2 08 00 83 20 80 11 00 00 00 00 00 00 1D [09:54:04]Write i2c OK [09:54:04]MH_I2C_Read... [09:54:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:04]Read from MH i2c: E2 [09:54:04]MH_I2C_Read... [09:54:04]Read from MH i2c: E2 17 00 [09:54:04]MH_I2C_Read... [09:54:04]Read from MH i2c: E2 17 00 83 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 70 [09:54:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:54:04]wFMCommunicate OK [09:54:04]CreateOFDProtocolMessage done [09:54:04]OFDSenderStorePacket 192820 [09:54:04]StoreOFDPacket docnum=192820 [09:54: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 94 CF 07 01 C1 B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1A 00 00 00 F4 03 04 00 BE B0 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 84 15 B7 71 0A 81 58 61 B3 96 C7 6E D2 24 [09:54:04]CheckFolder [09:54:04]dirname=/storage/ofd_packets [09:54:04]CheckFolder done [09:54:04]ProducePacketName [09:54:04]name=ofd_packets/00192820 [09:54:04]NVStorageSaveData ofd_packets/00192820 [09:54:04]File name is /storage/ofd_packets/00192820 [09:54:04]Write 301 bytes [09:54:04]NVStorageSaveData done [09:54:04]OFDSenderStorePacket done [09:54:04]KKMCreateOFDPacket done [09:54:04]NVStorageSaveData kkm_last_timestamp [09:54:04]File name is /storage/kkm_last_timestamp [09:54:04]Write 4 bytes [09:54:04]NVStorageSaveData done [09:54:04]ExternCall_PrintAddStr [09:54:04]wPrintStart [09:54:04]Write to MH i2c: 01 00 00 84 20 A4 [09:54:04]Write i2c OK [09:54:04]MH_I2C_Read... [09:54:04]Read from MH i2c: 01 [09:54:04]MH_I2C_Read... [09:54:04]Read from MH i2c: 01 07 00 [09:54:04]MH_I2C_Read... [09:54:04]Read from MH i2c: 01 07 00 84 20 00 00 00 00 00 FF 0F B9 [09:54:04]RasterBufferAndPrint [09:54:04]line Счет N : (1)32149 [09:54:04]line ИÐÐ: 02508201610067 [09:54:04]line Контрольно-КаÑÑовый Чек [09:54:04]line ПРОДÐЖР[09:54:04]line ТРК (МРК, ГÐК) : 12 [09:54:04]line Товар: 2710124130 [09:54:04]line Ðи-92-К-5 [09:54:04]line 11.960 * 66.90 [09:54:04]line = 800.12 [09:54:04]line ÐДС 12% ÐСП 1% [09:54:04]line > о реализуемом товаре [09:54:04]line ОКРУГЛЕÐИЕ: -0.12 [09:54:04]line ИТОГО: 800.00 [09:54:04]line ВнеÑено: 800.00 [09:54:04]line СДÐЧÐ: 0.00 [09:54:04]line ÐСП 1% : 7.08 [09:54:04]line ÐДС 12% : 84.97 [09:54:04]line Ðаличными: 800.00 [09:54:04]line Безнал.: 0.00 [09:54:04]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [09:54:04]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [09:54:04]line СÐО: Общий режим [09:54:04]line Чек 26 29.10.2024 09:54 [09:54:04]line Смена: 544 ФФД: 1.0 [09:54:04]line ЗÐМ: 0300000110 [09:54:04]line РÐМ: 0000000000091776 [09:54:04]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [09:54:04]line ФМ: 0000000000871754 [09:54:04]line ФД: 192820 [09:54:04]line ФПД: 145228806818433 [09:54:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T095406&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192820&fm=145228806818433&tin=02508201610067®Number=0000000000091776&sum=80000 [09:54:04]written 0, free lines is 4095 [09:54:04]OFD Sender: Processing packet 192820 [packets to send 75, broken 74] [09:54:04]ProducePacketName [09:54:04]name=ofd_packets/00192820 [09:54:04]OFD Sender: To server: ‡•öpG, [09:54:04]CommunicateWithHost lk.salyk.kg:30040 [09:54:04]ConnectInit lk.salyk.kg [09:54:04]Connected sock=11 [09:54:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 94 CF 07 01 C1 B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1A 00 00 00 F4 03 04 00 BE B0 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 84 15 B7 71 0A 81 58 61 B3 96 C7 6E D2 24 [09:54:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 EF 0A 47 00 17 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 34 F1 02 00 F4 03 04 00 7F 55 20 67 B6 04 01 00 00 2A 71 3C 23 F2 29 2A C1 [09:54:04]CommunicateWithHost err = 0 [09:54:04]CheckOFDResponse [09:54:04]1017 (14) - 77093643461234 [09:54:04]1041 (16) - 0000000000871754 [09:54:04]1040 (4) - 192820 [09:54:04]1012 (4) - 29.10.2024 03:24 [09:54:04]1206 (1) - 0 [09:54:04]OFD Sender: Remove packet 192820 [09:54:04]ProducePacketName [09:54:04]name=ofd_packets/00192820 [09:54:04]NVStorageDeleteData [09:54:05]Write to MH i2c: 01 00 00 AF 20 CF [09:54:05]Write i2c OK [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: 01 [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: 01 07 00 [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: 01 07 00 AF 20 00 00 00 00 00 BB 0C 9D [09:54:05]RasterBufferAndPrint [09:54:05]line [09:54:05]line [09:54:05]line [09:54:05]line [09:54:05]line [09:54:05]written 0, free lines is 3267 [09:54:05]MH_Cut [09:54:05]Write to MH i2c: D1 01 00 B6 20 01 A8 [09:54:05]Write i2c OK [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: D1 [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: D1 01 00 [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: D1 01 00 B6 20 00 A7 [09:54:05]Write to MH i2c: 01 00 00 B7 20 D7 [09:54:05]Write i2c OK [09:54:05]MH_I2C_Read... [09:54:05]OFD Sender: No OFD packet to send [09:54:05]*** Cut start [09:54:05]*** Partial cut [09:54:05]*** CUTSNS_PIN = 1 [09:54:05]*** CUTSNS_PIN = 0 [09:54:06]*** Brake cut motor [09:54:06]Read from MH i2c: 01 [09:54:06]MH_I2C_Read... [09:54:06]*** Stop cut motor [09:54:06]*** Cut end [09:54:06]Read from MH i2c: 01 07 00 [09:54:06]MH_I2C_Read... [09:54:06]Read from MH i2c: 01 07 00 B7 20 00 00 00 00 00 FF 0F EC [09:54:06]process_action close_receipt done [09:54:06]requested_data is exist [09:54:06]produce_requested_data [09:54:06]requested_item fm.sn is exist - process it [09:54:06]wFMCommunicate request_size=4 [09:54:06]MH_SAM_APDU [09:54:06]CAPDU: 80 11 00 00 [09:54:06]Write to MH i2c: E2 08 00 B8 20 80 11 00 00 00 00 00 00 52 [09:54:06]Write i2c OK [09:54:06]MH_I2C_Read... [09:54:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:06]Read from MH i2c: E2 [09:54:06]MH_I2C_Read... [09:54:06]Read from MH i2c: E2 17 00 [09:54:06]MH_I2C_Read... [09:54:06]Read from MH i2c: E2 17 00 B8 20 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:54: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:54:06]wFMCommunicate OK [09:54:06]requested_item fd.num is exist - process it [09:54:06]SAM_PROTO_GetFieldsCounters [09:54:06]wFMCommunicate request_size=4 [09:54:06]MH_SAM_APDU [09:54:06]CAPDU: 80 13 00 00 [09:54:06]Write to MH i2c: E2 08 00 B9 20 80 13 00 00 00 00 00 00 55 [09:54:06]Write i2c OK [09:54:06]MH_I2C_Read... [09:54:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:54:06]Read from MH i2c: E2 [09:54:06]MH_I2C_Read... [09:54:06]Read from MH i2c: E2 62 00 [09:54:06]MH_I2C_Read... [09:54:06]Read from MH i2c: E2 62 00 B9 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 34 F1 02 00 0E 04 04 00 20 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 12 [09:54:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 F1 02 00 0E 04 04 00 20 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:54:06]wFMCommunicate OK [09:54:06]SAM_PROTO_GetFieldsCounters done [09:54:06]requested_item shift.num is exist - process it [09:54:06]requested_item shift.opened is exist - process it [09:54:06]req_shift_opened [09:54:06]FM_GetShiftState [09:54:06]SAM_PROTO_GetShiftState [09:54:06]wFMCommunicate request_size=4 [09:54:06]MH_SAM_APDU [09:54:06]CAPDU: 80 13 01 00 [09:54:06]Write to MH i2c: E2 08 00 BA 20 80 13 01 00 00 00 00 00 57 [09:54:06]Write i2c OK [09:54:06]MH_I2C_Read... [09:54:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:06]Read from MH i2c: E2 [09:54:06]MH_I2C_Read... [09:54:06]Read from MH i2c: E2 0E 00 [09:54:06]MH_I2C_Read... [09:54:06]Read from MH i2c: E2 0E 00 BA 20 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 5D [09:54:06]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [09:54:06]wFMCommunicate OK [09:54:06]SAM_PROTO_GetShiftState done [09:54:06]FM_GetShiftState done [09:54:06]req_shift_opened done [09:54:06]requested_item shift.open_date is exist - process it [09:54:06]req_shift_open_date [09:54:06]req_shift_open_date done [09:54:06]produce_requested_data done [09:54:06]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192820,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [09:54:06]process_action_free close_receipt [09:54:06]json_value_free [09:54:06]json_value_free done [09:54:06]process_json_proto returns [09:54:06]Send response to host [09:54:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192820,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [09:54:06]free response buf [09:54:06]execute_script done [09:54:06]execute_script returns [09:54:06]free content buf [09:54:06]Sock 9.Close socket [09:54:06]Sock 9.Thread stoped [09:54:10]OFD Sender: No OFD packet to send [09:54:15]OFD Sender: No OFD packet to send [09:54:20]OFD Sender: No OFD packet to send [09:54:25]OFD Sender: No OFD packet to send [09:54:30]OFD Sender: No OFD packet to send [09:54:35]OFD Sender: No OFD packet to send [09:54:40]OFD Sender: No OFD packet to send [09:54:45]OFD Sender: No OFD packet to send [09:54:50]OFD Sender: No OFD packet to send [09:54:55]OFD Sender: No OFD packet to send [09:55:00]OFD Sender: No OFD packet to send [09:55:05]OFD Sender: No OFD packet to send [09:55:10]OFD Sender: No OFD packet to send [09:55:15]OFD Sender: No OFD packet to send [09:55:20]OFD Sender: No OFD packet to send [09:55:25]OFD Sender: No OFD packet to send [09:55:30]OFD Sender: No OFD packet to send [09:55:32]accept exits with 8 [09:55:32]New connection [09:55:32]New thread 3066658148 created [09:55:32]Thread 3066801508 joined [09:55:32]Waiting for new connection... [09:55:32] Sock 8.Parse request [09:55:32]Sock 8.Check first char [09:55:32]Sock 8.First char is OK [09:55:32]request: POST /json_proto HTTP/1.0 [09:55:32]Method: POST [09:55:32]URL: /json_proto [09:55:32]Method is POST - this is cgi request [09:55:32]url: /json_proto [09:55:32]query_string will be loaded in cgi processing [09:55:32]execute_cgi json_proto POST (null) [09:55:32]execute_cgi path=json_proto method=POST [09:55:32]POST find Content-Length [09:55:32]Host: 172.17.63.131:8080 [09:55:32]Content-Length: 676 [09:55:32]Content-Type: application/json [09:55:32] [09:55:32]POST finish read [09:55:32]Found Content-Length = 676 [09:55:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32150", "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" ] } } [09:55:32]execute_script... [09:55: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)32150", "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" ] } } [09:55:32]POST & json_proto [09:55:32]process_json_proto [09:55:32]json parsed OK: [09:55:32]protocol is kg_v1.0 [09:55:32]action value=close_receipt [09:55:32]process_action close_receipt [09:55:32]cmd_close_receipt [09:55:32]MH_GetDate [09:55:32]Write to MH i2c: F0 00 00 BB 20 CA [09:55:32]Write i2c OK [09:55:32]MH_I2C_Read... [09:55:32]Read from MH i2c: F0 [09:55:32]MH_I2C_Read... [09:55:32]Read from MH i2c: F0 09 00 [09:55:32]MH_I2C_Read... [09:55:32]Read from MH i2c: F0 09 00 BB 20 00 18 B1 20 67 22 05 6E 64 1C [09:55:32]GetLastDocTimeStamp 1730195646 [09:55:32]current date 1730195736 [09:55:32]FM_GetShiftState [09:55:32]SAM_PROTO_GetShiftState [09:55:32]wFMCommunicate request_size=4 [09:55:32]MH_SAM_APDU [09:55:32]CAPDU: 80 13 01 00 [09:55:32]Write to MH i2c: E2 08 00 BC 20 80 13 01 00 00 00 00 00 59 [09:55:32]Write i2c OK [09:55:32]MH_I2C_Read... [09:55:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:32]Read from MH i2c: E2 [09:55:32]MH_I2C_Read... [09:55:32]Read from MH i2c: E2 0E 00 [09:55:32]MH_I2C_Read... [09:55:32]Read from MH i2c: E2 0E 00 BC 20 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 5F [09:55:32]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [09:55:32]wFMCommunicate OK [09:55:32]SAM_PROTO_GetShiftState done [09:55:32]FM_GetShiftState done [09:55:32]opened in 1730161990 [09:55:32]opened+sec_in_day 1730248390 [09:55:32]quantity*price = 30038 [09:55:32]sum+1 = 30039 [09:55:32]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 СÐО: Общий режим Чек 27 29.10.2024 09:55 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192821 ФПД: 180194209784713 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T095536&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192821&fm=180194209784713&tin=02508201610067®Number=0000000000091776&sum=30000 [09:55:33]StoreToDocumentArchive [09:55:33]shift 544 fd 192821 [09:55:33]save to /storage/0544/doc_00192821 [09:55:33]save last doc name /storage/0544/doc_00192821 to /storage/kkm_last_doc_name [09:55:33]save OK [09:55:33]Clear old archive folders... [09:55:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:55:33]tlvbuf is 00F7DA40 [09:55:33]SAM_PROTO_ClearQueue [09:55:33]wFMCommunicate request_size=4 [09:55:33]MH_SAM_APDU [09:55:33]CAPDU: 80 09 00 00 [09:55:33]Write to MH i2c: E2 08 00 C9 20 80 09 00 00 00 00 00 00 5B [09:55:33]Write i2c OK [09:55:33]MH_I2C_Read... [09:55:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:55:33]Read from MH i2c: E2 [09:55:33]MH_I2C_Read... [09:55:33]Read from MH i2c: E2 03 00 [09:55:33]MH_I2C_Read... [09:55:33]Read from MH i2c: E2 03 00 C9 20 00 90 00 5D [09:55:33]RAPDU: 90 00 [09:55:33]wFMCommunicate OK [09:55:33]SAM_PROTO_ClearQueue done [09:55:33]KKMCreateOFDPacket [09:55:33]OFDProtocolAddRootSTLVToBuf [09:55:33]FM_MakeSignedData [09:55:33]FM_MakeSignedData [09:55:33]SAM_PROTO_SignData [09:55:33]wFMCommunicate request_size=4 [09:55:33]MH_SAM_APDU [09:55:33]CAPDU: 80 0D 01 02 [09:55:33]Write to MH i2c: E2 08 00 CA 20 80 0D 01 02 00 00 00 00 63 [09:55:33]Write i2c OK [09:55:33]MH_I2C_Read... [09:55:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:55:33]Read from MH i2c: E2 [09:55:33]MH_I2C_Read... [09:55:33]Read from MH i2c: E2 03 00 [09:55:33]MH_I2C_Read... [09:55:33]Read from MH i2c: E2 03 00 CA 20 00 90 00 5E [09:55:33]RAPDU: 90 00 [09:55:33]wFMCommunicate OK [09:55:33]wFMCommunicate request_size=255 [09:55:33]MH_SAM_APDU [09:55: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 18 B1 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 A3 [09:55:33]Write to MH i2c: E2 02 01 CB 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 18 B1 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 A3 00 00 43 [09:55:33]Write i2c OK [09:55:33]MH_I2C_Read... [09:55:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:33]Read from MH i2c: E2 [09:55:33]MH_I2C_Read... [09:55:33]Read from MH i2c: E2 03 00 [09:55:33]MH_I2C_Read... [09:55:33]Read from MH i2c: E2 03 00 CB 20 00 90 00 5F [09:55:33]RAPDU: 90 00 [09:55:33]wFMCommunicate OK [09:55:33]wFMCommunicate request_size=10 [09:55:33]MH_SAM_APDU [09:55:33]CAPDU: 80 0D 02 02 05 E2 BB DD 63 89 [09:55:33]Write to MH i2c: E2 0D 00 CC 20 80 0D 02 02 05 00 E2 BB DD 63 89 00 00 D6 [09:55:33]Write i2c OK [09:55:33]MH_I2C_Read... [09:55:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:33]Read from MH i2c: E2 [09:55:33]MH_I2C_Read... [09:55:33]Read from MH i2c: E2 03 00 [09:55:33]MH_I2C_Read... [09:55:33]Read from MH i2c: E2 03 00 CC 20 00 90 00 60 [09:55:33]RAPDU: 90 00 [09:55:33]wFMCommunicate OK [09:55:33]wFMCommunicate request_size=4 [09:55:33]MH_SAM_APDU [09:55:33]CAPDU: 80 0D 03 02 [09:55:33]Write to MH i2c: E2 08 00 CD 20 80 0D 03 02 00 00 00 00 68 [09:55:33]Write i2c OK [09:55:33]MH_I2C_Read... [09:55:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:55:33]Read from MH i2c: E2 [09:55:33]MH_I2C_Read... [09:55:33]Read from MH i2c: E2 0B 00 [09:55:33]MH_I2C_Read... [09:55:33]Read from MH i2c: E2 0B 00 CD 20 00 9F 06 47 2A A6 27 F4 55 90 00 95 [09:55:33]RAPDU: 9F 06 47 2A A6 27 F4 55 90 00 [09:55:33]wFMCommunicate OK [09:55:33]SAM_PROTO_SignData done [09:55:33]FM_MakeSignedData done [09:55:33]CreateOFDProtocolMessage [09:55:33]wFMCommunicate request_size=4 [09:55:33]MH_SAM_APDU [09:55:33]CAPDU: 80 11 00 00 [09:55:33]Write to MH i2c: E2 08 00 CE 20 80 11 00 00 00 00 00 00 68 [09:55:33]Write i2c OK [09:55:33]MH_I2C_Read... [09:55:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:33]Read from MH i2c: E2 [09:55:33]MH_I2C_Read... [09:55:33]Read from MH i2c: E2 17 00 [09:55:33]MH_I2C_Read... [09:55:33]Read from MH i2c: E2 17 00 CE 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BB [09:55:33]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:33]wFMCommunicate OK [09:55:33]CreateOFDProtocolMessage done [09:55:33]OFDSenderStorePacket 192821 [09:55:33]StoreOFDPacket docnum=192821 [09:55: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 C2 88 07 01 8E 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 18 B1 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 A3 E2 BB DD 63 89 9F 06 47 2A A6 27 F4 55 [09:55:33]CheckFolder [09:55:33]dirname=/storage/ofd_packets [09:55:33]CheckFolder done [09:55:33]ProducePacketName [09:55:33]name=ofd_packets/00192821 [09:55:33]NVStorageSaveData ofd_packets/00192821 [09:55:33]File name is /storage/ofd_packets/00192821 [09:55:33]Write 301 bytes [09:55:33]NVStorageSaveData done [09:55:33]OFDSenderStorePacket done [09:55:33]KKMCreateOFDPacket done [09:55:33]NVStorageSaveData kkm_last_timestamp [09:55:33]File name is /storage/kkm_last_timestamp [09:55:33]Write 4 bytes [09:55:33]NVStorageSaveData done [09:55:33]ExternCall_PrintAddStr [09:55:33]wPrintStart [09:55:33]Write to MH i2c: 01 00 00 CF 20 EF [09:55:33]Write i2c OK [09:55:33]MH_I2C_Read... [09:55:33]Read from MH i2c: 01 [09:55:33]MH_I2C_Read... [09:55:33]Read from MH i2c: 01 07 00 [09:55:33]MH_I2C_Read... [09:55:33]Read from MH i2c: 01 07 00 CF 20 00 00 00 00 00 FF 0F 04 [09:55:33]RasterBufferAndPrint [09:55:33]line Счет N : (1)32150 [09:55:33]line ИÐÐ: 02508201610067 [09:55:33]line Контрольно-КаÑÑовый Чек [09:55:33]line ПРОДÐЖР[09:55:33]line ТРК (МРК, ГÐК) : 12 [09:55:33]line Товар: 2710124130 [09:55:33]line Ðи-92-К-5 [09:55:33]line 4.490 * 66.90 [09:55:33]line = 300.38 [09:55:33]line ÐДС 12% ÐСП 1% [09:55:33]line > о реализуемом товаре [09:55:33]line ОКРУГЛЕÐИЕ: -0.38 [09:55:33]line ИТОГО: 300.00 [09:55:33]line ВнеÑено: 300.00 [09:55:33]line СДÐЧÐ: 0.00 [09:55:33]line ÐСП 1% : 2.66 [09:55:33]line ÐДС 12% : 31.90 [09:55:33]line Ðаличными: 300.00 [09:55:33]line Безнал.: 0.00 [09:55:33]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [09:55:33]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [09:55:33]line СÐО: Общий режим [09:55:33]line Чек 27 29.10.2024 09:55 [09:55:33]line Смена: 544 ФФД: 1.0 [09:55:33]line ЗÐМ: 0300000110 [09:55:33]line РÐМ: 0000000000091776 [09:55:33]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [09:55:33]line ФМ: 0000000000871754 [09:55:33]line ФД: 192821 [09:55:33]line ФПД: 180194209784713 [09:55:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T095536&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192821&fm=180194209784713&tin=02508201610067®Number=0000000000091776&sum=30000 [09:55:34]OFD Sender: Processing packet 192821 [packets to send 75, broken 74] [09:55:34]ProducePacketName [09:55:34]name=ofd_packets/00192821 [09:55:34]OFD Sender: To server: ‡•öpG, [09:55:34]CommunicateWithHost lk.salyk.kg:30040 [09:55:34]ConnectInit lk.salyk.kg [09:55:34]written 0, free lines is 4095 [09:55:34]Connected sock=10 [09:55: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 C2 88 07 01 8E 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 18 B1 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 A3 E2 BB DD 63 89 9F 06 47 2A A6 27 F4 55 [09:55: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 01 C3 47 00 07 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 35 F1 02 00 F4 03 04 00 D9 55 20 67 B6 04 01 00 00 6A 1F 8E A7 E7 25 0B CF [09:55:34]CommunicateWithHost err = 0 [09:55:34]CheckOFDResponse [09:55:34]1017 (14) - 77093643461234 [09:55:34]1041 (16) - 0000000000871754 [09:55:34]1040 (4) - 192821 [09:55:34]1012 (4) - 29.10.2024 03:26 [09:55:34]1206 (1) - 0 [09:55:34]OFD Sender: Remove packet 192821 [09:55:34]ProducePacketName [09:55:34]name=ofd_packets/00192821 [09:55:34]NVStorageDeleteData [09:55:34]Write to MH i2c: 01 00 00 FA 20 1A [09:55:34]Write i2c OK [09:55:34]MH_I2C_Read... [09:55:34]Read from MH i2c: 01 [09:55:34]MH_I2C_Read... [09:55:34]Read from MH i2c: 01 07 00 [09:55:34]MH_I2C_Read... [09:55:34]Read from MH i2c: 01 07 00 FA 20 00 00 00 00 00 AD 0C DA [09:55:34]RasterBufferAndPrint [09:55:34]line [09:55:34]line [09:55:34]line [09:55:34]line [09:55:34]line [09:55:34]written 0, free lines is 3252 [09:55:34]MH_Cut [09:55:34]Write to MH i2c: D1 01 00 01 21 01 F4 [09:55:34]Write i2c OK [09:55:34]MH_I2C_Read... [09:55:34]Read from MH i2c: D1 [09:55:34]MH_I2C_Read... [09:55:34]Read from MH i2c: D1 01 00 [09:55:34]MH_I2C_Read... [09:55:34]Read from MH i2c: D1 01 00 01 21 00 F3 [09:55:34]Write to MH i2c: 01 00 00 02 21 23 [09:55:34]Write i2c OK [09:55:34]MH_I2C_Read... [09:55:35]OFD Sender: No OFD packet to send [09:55:35]*** Cut start [09:55:35]*** Partial cut [09:55:35]*** CUTSNS_PIN = 1 [09:55:35]*** CUTSNS_PIN = 0 [09:55:35]*** Brake cut motor [09:55:36]Read from MH i2c: 01 [09:55:36]MH_I2C_Read... [09:55:36]*** Stop cut motor [09:55:36]*** Cut end [09:55:36]Read from MH i2c: 01 07 00 [09:55:36]MH_I2C_Read... [09:55:36]Read from MH i2c: 01 07 00 02 21 00 00 00 00 00 FF 0F 38 [09:55:36]process_action close_receipt done [09:55:36]requested_data is exist [09:55:36]produce_requested_data [09:55:36]requested_item fm.sn is exist - process it [09:55:36]wFMCommunicate request_size=4 [09:55:36]MH_SAM_APDU [09:55:36]CAPDU: 80 11 00 00 [09:55:36]Write to MH i2c: E2 08 00 03 21 80 11 00 00 00 00 00 00 9E [09:55:36]Write i2c OK [09:55:36]MH_I2C_Read... [09:55:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:36]Read from MH i2c: E2 [09:55:36]MH_I2C_Read... [09:55:36]Read from MH i2c: E2 17 00 [09:55:36]MH_I2C_Read... [09:55:36]Read from MH i2c: E2 17 00 03 21 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:55:36]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:36]wFMCommunicate OK [09:55:36]requested_item fd.num is exist - process it [09:55:36]SAM_PROTO_GetFieldsCounters [09:55:36]wFMCommunicate request_size=4 [09:55:36]MH_SAM_APDU [09:55:36]CAPDU: 80 13 00 00 [09:55:36]Write to MH i2c: E2 08 00 04 21 80 13 00 00 00 00 00 00 A1 [09:55:36]Write i2c OK [09:55:36]MH_I2C_Read... [09:55:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:55:36]Read from MH i2c: E2 [09:55:36]MH_I2C_Read... [09:55:36]Read from MH i2c: E2 62 00 [09:55:36]MH_I2C_Read... [09:55:36]Read from MH i2c: E2 62 00 04 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 35 F1 02 00 0E 04 04 00 20 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 62 [09:55: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 35 F1 02 00 0E 04 04 00 20 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:55:36]wFMCommunicate OK [09:55:36]SAM_PROTO_GetFieldsCounters done [09:55:36]requested_item shift.num is exist - process it [09:55:36]requested_item shift.opened is exist - process it [09:55:36]req_shift_opened [09:55:36]FM_GetShiftState [09:55:36]SAM_PROTO_GetShiftState [09:55:36]wFMCommunicate request_size=4 [09:55:36]MH_SAM_APDU [09:55:36]CAPDU: 80 13 01 00 [09:55:36]Write to MH i2c: E2 08 00 05 21 80 13 01 00 00 00 00 00 A3 [09:55:36]Write i2c OK [09:55:36]MH_I2C_Read... [09:55:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:36]Read from MH i2c: E2 [09:55:36]MH_I2C_Read... [09:55:36]Read from MH i2c: E2 0E 00 [09:55:36]MH_I2C_Read... [09:55:36]Read from MH i2c: E2 0E 00 05 21 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 A9 [09:55:36]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [09:55:36]wFMCommunicate OK [09:55:36]SAM_PROTO_GetShiftState done [09:55:36]FM_GetShiftState done [09:55:36]req_shift_opened done [09:55:36]requested_item shift.open_date is exist - process it [09:55:36]req_shift_open_date [09:55:36]req_shift_open_date done [09:55:36]produce_requested_data done [09:55:36]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192821,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [09:55:36]process_action_free close_receipt [09:55:36]json_value_free [09:55:36]json_value_free done [09:55:36]process_json_proto returns [09:55:36]Send response to host [09:55:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192821,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [09:55:36]free response buf [09:55:36]execute_script done [09:55:36]execute_script returns [09:55:36]free content buf [09:55:36]Sock 8.Close socket [09:55:36]Sock 8.Thread stoped [09:55:40]OFD Sender: No OFD packet to send [09:55:45]OFD Sender: No OFD packet to send [09:55:50]OFD Sender: No OFD packet to send [09:55:55]OFD Sender: No OFD packet to send [09:56:00]OFD Sender: No OFD packet to send [09:56:05]OFD Sender: No OFD packet to send [09:56:10]OFD Sender: No OFD packet to send [09:56:15]OFD Sender: No OFD packet to send [09:56:20]OFD Sender: No OFD packet to send [09:56:25]OFD Sender: No OFD packet to send [09:56:30]OFD Sender: No OFD packet to send [09:56:35]OFD Sender: No OFD packet to send [09:56:40]OFD Sender: No OFD packet to send [09:56:45]OFD Sender: No OFD packet to send [09:56:50]OFD Sender: No OFD packet to send [09:56:55]OFD Sender: No OFD packet to send [09:57:00]OFD Sender: No OFD packet to send [09:57:05]OFD Sender: No OFD packet to send [09:57:10]OFD Sender: No OFD packet to send [09:57:15]OFD Sender: No OFD packet to send [09:57:20]OFD Sender: No OFD packet to send [09:57:25]OFD Sender: No OFD packet to send [09:57:30]OFD Sender: No OFD packet to send [09:57:30]accept exits with 9 [09:57:30]New connection [09:57:30]New thread 3066801508 created [09:57:30]Thread 3066658148 joined [09:57:30]Waiting for new connection... [09:57:30] Sock 9.Parse request [09:57:30]Sock 9.Check first char [09:57:30]Sock 9.First char is OK [09:57:30]request: POST /json_proto HTTP/1.0 [09:57:30]Method: POST [09:57:30]URL: /json_proto [09:57:30]Method is POST - this is cgi request [09:57:30]url: /json_proto [09:57:30]query_string will be loaded in cgi processing [09:57:30]execute_cgi json_proto POST (null) [09:57:30]execute_cgi path=json_proto method=POST [09:57:30]POST find Content-Length [09:57:30]Host: 172.17.63.131:8080 [09:57:30]Content-Length: 676 [09:57:30]Content-Type: application/json [09:57:30] [09:57:30]POST finish read [09:57:30]Found Content-Length = 676 [09:57:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32151", "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" ] } } [09:57:30]execute_script... [09:57: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)32151", "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" ] } } [09:57:30]POST & json_proto [09:57:30]process_json_proto [09:57:30]json parsed OK: [09:57:30]protocol is kg_v1.0 [09:57:30]action value=close_receipt [09:57:30]process_action close_receipt [09:57:30]cmd_close_receipt [09:57:30]MH_GetDate [09:57:30]Write to MH i2c: F0 00 00 06 21 16 [09:57:30]Write i2c OK [09:57:30]MH_I2C_Read... [09:57:30]Read from MH i2c: F0 [09:57:30]MH_I2C_Read... [09:57:30]Read from MH i2c: F0 09 00 [09:57:30]MH_I2C_Read... [09:57:30]Read from MH i2c: F0 09 00 06 21 00 8E B1 20 67 22 05 6E 64 DE [09:57:30]GetLastDocTimeStamp 1730195736 [09:57:30]current date 1730195854 [09:57:30]FM_GetShiftState [09:57:30]SAM_PROTO_GetShiftState [09:57:30]wFMCommunicate request_size=4 [09:57:30]MH_SAM_APDU [09:57:30]CAPDU: 80 13 01 00 [09:57:30]Write to MH i2c: E2 08 00 07 21 80 13 01 00 00 00 00 00 A5 [09:57:30]Write i2c OK [09:57:30]MH_I2C_Read... [09:57:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:30]Read from MH i2c: E2 [09:57:30]MH_I2C_Read... [09:57:30]Read from MH i2c: E2 0E 00 [09:57:30]MH_I2C_Read... [09:57:30]Read from MH i2c: E2 0E 00 07 21 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 AB [09:57:30]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [09:57:30]wFMCommunicate OK [09:57:30]SAM_PROTO_GetShiftState done [09:57:30]FM_GetShiftState done [09:57:30]opened in 1730161990 [09:57:30]opened+sec_in_day 1730248390 [09:57:30]quantity*price = 40006 [09:57:30]sum+1 = 40007 [09:57:30]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 СÐО: Общий режим Чек 28 29.10.2024 09:57 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192822 ФПД: 253157448304731 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T095734&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192822&fm=253157448304731&tin=02508201610067®Number=0000000000091776&sum=40000 [09:57:31]StoreToDocumentArchive [09:57:31]shift 544 fd 192822 [09:57:31]save to /storage/0544/doc_00192822 [09:57:31]save last doc name /storage/0544/doc_00192822 to /storage/kkm_last_doc_name [09:57:31]save OK [09:57:31]Clear old archive folders... [09:57:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:57:31]tlvbuf is B6F33C00 [09:57:31]SAM_PROTO_ClearQueue [09:57:31]wFMCommunicate request_size=4 [09:57:31]MH_SAM_APDU [09:57:31]CAPDU: 80 09 00 00 [09:57:31]Write to MH i2c: E2 08 00 14 21 80 09 00 00 00 00 00 00 A7 [09:57:31]Write i2c OK [09:57:31]MH_I2C_Read... [09:57:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:57:31]Read from MH i2c: E2 [09:57:31]MH_I2C_Read... [09:57:31]Read from MH i2c: E2 03 00 [09:57:31]MH_I2C_Read... [09:57:31]Read from MH i2c: E2 03 00 14 21 00 90 00 A9 [09:57:31]RAPDU: 90 00 [09:57:31]wFMCommunicate OK [09:57:31]SAM_PROTO_ClearQueue done [09:57:31]KKMCreateOFDPacket [09:57:31]OFDProtocolAddRootSTLVToBuf [09:57:31]FM_MakeSignedData [09:57:31]FM_MakeSignedData [09:57:31]SAM_PROTO_SignData [09:57:31]wFMCommunicate request_size=4 [09:57:31]MH_SAM_APDU [09:57:31]CAPDU: 80 0D 01 02 [09:57:31]Write to MH i2c: E2 08 00 15 21 80 0D 01 02 00 00 00 00 AF [09:57:31]Write i2c OK [09:57:31]MH_I2C_Read... [09:57:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:57:31]Read from MH i2c: E2 [09:57:31]MH_I2C_Read... [09:57:31]Read from MH i2c: E2 03 00 [09:57:31]MH_I2C_Read... [09:57:31]Read from MH i2c: E2 03 00 15 21 00 90 00 AA [09:57:31]RAPDU: 90 00 [09:57:31]wFMCommunicate OK [09:57:31]wFMCommunicate request_size=255 [09:57:31]MH_SAM_APDU [09:57:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1C 00 00 00 F4 03 04 00 8E B1 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 E6 [09:57:31]Write to MH i2c: E2 02 01 16 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 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 1C 00 00 00 F4 03 04 00 8E B1 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 E6 00 00 25 [09:57:31]Write i2c OK [09:57:31]MH_I2C_Read... [09:57:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:31]Read from MH i2c: E2 [09:57:31]MH_I2C_Read... [09:57:31]Read from MH i2c: E2 03 00 [09:57:31]MH_I2C_Read... [09:57:31]Read from MH i2c: E2 03 00 16 21 00 90 00 AB [09:57:31]RAPDU: 90 00 [09:57:31]wFMCommunicate OK [09:57:31]wFMCommunicate request_size=10 [09:57:31]MH_SAM_APDU [09:57:31]CAPDU: 80 0D 02 02 05 3E CF C7 48 5B [09:57:31]Write to MH i2c: E2 0D 00 17 21 80 0D 02 02 05 00 3E CF C7 48 5B 00 00 33 [09:57:31]Write i2c OK [09:57:31]MH_I2C_Read... [09:57:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:31]Read from MH i2c: E2 [09:57:31]MH_I2C_Read... [09:57:31]Read from MH i2c: E2 03 00 [09:57:31]MH_I2C_Read... [09:57:31]Read from MH i2c: E2 03 00 17 21 00 90 00 AC [09:57:31]RAPDU: 90 00 [09:57:31]wFMCommunicate OK [09:57:31]wFMCommunicate request_size=4 [09:57:31]MH_SAM_APDU [09:57:31]CAPDU: 80 0D 03 02 [09:57:31]Write to MH i2c: E2 08 00 18 21 80 0D 03 02 00 00 00 00 B4 [09:57:31]Write i2c OK [09:57:31]MH_I2C_Read... [09:57:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:57:31]Read from MH i2c: E2 [09:57:31]MH_I2C_Read... [09:57:31]Read from MH i2c: E2 0B 00 [09:57:31]MH_I2C_Read... [09:57:31]Read from MH i2c: E2 0B 00 18 21 00 BF DA 35 8C DE 00 81 28 90 00 96 [09:57:31]RAPDU: BF DA 35 8C DE 00 81 28 90 00 [09:57:31]wFMCommunicate OK [09:57:31]SAM_PROTO_SignData done [09:57:31]FM_MakeSignedData done [09:57:31]CreateOFDProtocolMessage [09:57:31]wFMCommunicate request_size=4 [09:57:31]MH_SAM_APDU [09:57:31]CAPDU: 80 11 00 00 [09:57:31]Write to MH i2c: E2 08 00 19 21 80 11 00 00 00 00 00 00 B4 [09:57:31]Write i2c OK [09:57:31]MH_I2C_Read... [09:57:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:31]Read from MH i2c: E2 [09:57:31]MH_I2C_Read... [09:57:31]Read from MH i2c: E2 17 00 [09:57:31]MH_I2C_Read... [09:57:31]Read from MH i2c: E2 17 00 19 21 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:57:32]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:32]wFMCommunicate OK [09:57:32]CreateOFDProtocolMessage done [09:57:32]OFDSenderStorePacket 192822 [09:57:32]StoreOFDPacket docnum=192822 [09:57:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0E 09 07 01 73 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1C 00 00 00 F4 03 04 00 8E B1 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 E6 3E CF C7 48 5B BF DA 35 8C DE 00 81 28 [09:57:32]CheckFolder [09:57:32]dirname=/storage/ofd_packets [09:57:32]CheckFolder done [09:57:32]ProducePacketName [09:57:32]name=ofd_packets/00192822 [09:57:32]NVStorageSaveData ofd_packets/00192822 [09:57:32]File name is /storage/ofd_packets/00192822 [09:57:32]Write 301 bytes [09:57:32]NVStorageSaveData done [09:57:32]OFDSenderStorePacket done [09:57:32]KKMCreateOFDPacket done [09:57:32]NVStorageSaveData kkm_last_timestamp [09:57:32]File name is /storage/kkm_last_timestamp [09:57:32]Write 4 bytes [09:57:32]NVStorageSaveData done [09:57:32]ExternCall_PrintAddStr [09:57:32]wPrintStart [09:57:32]Write to MH i2c: 01 00 00 1A 21 3B [09:57:32]Write i2c OK [09:57:32]MH_I2C_Read... [09:57:32]Read from MH i2c: 01 [09:57:32]MH_I2C_Read... [09:57:32]Read from MH i2c: 01 07 00 [09:57:32]MH_I2C_Read... [09:57:32]Read from MH i2c: 01 07 00 1A 21 00 00 00 00 00 FF 0F 50 [09:57:32]RasterBufferAndPrint [09:57:32]line Счет N : (1)32151 [09:57:32]line ИÐÐ: 02508201610067 [09:57:32]line Контрольно-КаÑÑовый Чек [09:57:32]line ПРОДÐЖР[09:57:32]line ТРК (МРК, ГÐК) : 12 [09:57:32]line Товар: 2710124130 [09:57:32]line Ðи-92-К-5 [09:57:32]line 5.980 * 66.90 [09:57:32]line = 400.06 [09:57:32]line ÐДС 12% ÐСП 1% [09:57:32]line > о реализуемом товаре [09:57:32]line ОКРУГЛЕÐИЕ: -0.06 [09:57:32]line ИТОГО: 400.00 [09:57:32]line ВнеÑено: 400.00 [09:57:32]line СДÐЧÐ: 0.00 [09:57:32]line ÐСП 1% : 3.54 [09:57:32]line ÐДС 12% : 42.48 [09:57:32]line Ðаличными: 400.00 [09:57:32]line Безнал.: 0.00 [09:57:32]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [09:57:32]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [09:57:32]line СÐО: Общий режим [09:57:32]line Чек 28 29.10.2024 09:57 [09:57:32]line Смена: 544 ФФД: 1.0 [09:57:32]line ЗÐМ: 0300000110 [09:57:32]line РÐМ: 0000000000091776 [09:57:32]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [09:57:32]line ФМ: 0000000000871754 [09:57:32]line ФД: 192822 [09:57:32]line ФПД: 253157448304731 [09:57:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T095734&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192822&fm=253157448304731&tin=02508201610067®Number=0000000000091776&sum=40000 [09:57:32]OFD Sender: Processing packet 192822 [packets to send 75, broken 74] [09:57:32]ProducePacketName [09:57:32]name=ofd_packets/00192822 [09:57:32]OFD Sender: To server: ‡•öpG, [09:57:32]CommunicateWithHost lk.salyk.kg:30040 [09:57:32]ConnectInit lk.salyk.kg [09:57:32]written 0, free lines is 4095 [09:57:32]Connected sock=10 [09:57: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 0E 09 07 01 73 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1C 00 00 00 F4 03 04 00 8E B1 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 E6 3E CF C7 48 5B BF DA 35 8C DE 00 81 28 [09:57:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 7F 09 47 00 3D 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 36 F1 02 00 F4 03 04 00 4F 56 20 67 B6 04 01 00 00 B7 5B AE 0A 81 6F 4E 2C [09:57:32]CommunicateWithHost err = 0 [09:57:32]CheckOFDResponse [09:57:32]1017 (14) - 77093643461234 [09:57:32]1041 (16) - 0000000000871754 [09:57:32]1040 (4) - 192822 [09:57:32]1012 (4) - 29.10.2024 03:28 [09:57:32]1206 (1) - 0 [09:57:32]OFD Sender: Remove packet 192822 [09:57:32]ProducePacketName [09:57:32]name=ofd_packets/00192822 [09:57:32]NVStorageDeleteData [09:57:32]Write to MH i2c: 01 00 00 45 21 66 [09:57:32]Write i2c OK [09:57:32]MH_I2C_Read... [09:57:32]Read from MH i2c: 01 [09:57:32]MH_I2C_Read... [09:57:32]Read from MH i2c: 01 07 00 [09:57:32]MH_I2C_Read... [09:57:32]Read from MH i2c: 01 07 00 45 21 00 00 00 00 00 B0 0C 29 [09:57:32]RasterBufferAndPrint [09:57:32]line [09:57:32]line [09:57:32]line [09:57:32]line [09:57:32]line [09:57:32]written 0, free lines is 3254 [09:57:32]MH_Cut [09:57:32]Write to MH i2c: D1 01 00 4C 21 01 3F [09:57:32]Write i2c OK [09:57:32]MH_I2C_Read... [09:57:32]Read from MH i2c: D1 [09:57:32]MH_I2C_Read... [09:57:32]Read from MH i2c: D1 01 00 [09:57:32]MH_I2C_Read... [09:57:32]Read from MH i2c: D1 01 00 4C 21 00 3E [09:57:32]Write to MH i2c: 01 00 00 4D 21 6E [09:57:32]Write i2c OK [09:57:32]MH_I2C_Read... [09:57:33]OFD Sender: No OFD packet to send [09:57:33]*** Cut start [09:57:33]*** Partial cut [09:57:33]*** CUTSNS_PIN = 1 [09:57:33]*** CUTSNS_PIN = 0 [09:57:33]*** Brake cut motor [09:57:34]Read from MH i2c: 01 [09:57:34]MH_I2C_Read... [09:57:34]*** Stop cut motor [09:57:34]*** Cut end [09:57:34]Read from MH i2c: 01 07 00 [09:57:34]MH_I2C_Read... [09:57:34]Read from MH i2c: 01 07 00 4D 21 00 00 00 00 00 FF 0F 83 [09:57:34]process_action close_receipt done [09:57:34]requested_data is exist [09:57:34]produce_requested_data [09:57:34]requested_item fm.sn is exist - process it [09:57:34]wFMCommunicate request_size=4 [09:57:34]MH_SAM_APDU [09:57:34]CAPDU: 80 11 00 00 [09:57:34]Write to MH i2c: E2 08 00 4E 21 80 11 00 00 00 00 00 00 E9 [09:57:34]Write i2c OK [09:57:34]MH_I2C_Read... [09:57:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:34]Read from MH i2c: E2 [09:57:34]MH_I2C_Read... [09:57:34]Read from MH i2c: E2 17 00 [09:57:34]MH_I2C_Read... [09:57:34]Read from MH i2c: E2 17 00 4E 21 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:57:34]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:34]wFMCommunicate OK [09:57:34]requested_item fd.num is exist - process it [09:57:34]SAM_PROTO_GetFieldsCounters [09:57:34]wFMCommunicate request_size=4 [09:57:34]MH_SAM_APDU [09:57:34]CAPDU: 80 13 00 00 [09:57:34]Write to MH i2c: E2 08 00 4F 21 80 13 00 00 00 00 00 00 EC [09:57:34]Write i2c OK [09:57:34]MH_I2C_Read... [09:57:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:57:34]Read from MH i2c: E2 [09:57:34]MH_I2C_Read... [09:57:34]Read from MH i2c: E2 62 00 [09:57:34]MH_I2C_Read... [09:57:34]Read from MH i2c: E2 62 00 4F 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 36 F1 02 00 0E 04 04 00 20 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 B1 [09:57: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 36 F1 02 00 0E 04 04 00 20 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:57:34]wFMCommunicate OK [09:57:34]SAM_PROTO_GetFieldsCounters done [09:57:34]requested_item shift.num is exist - process it [09:57:34]requested_item shift.opened is exist - process it [09:57:34]req_shift_opened [09:57:34]FM_GetShiftState [09:57:34]SAM_PROTO_GetShiftState [09:57:34]wFMCommunicate request_size=4 [09:57:34]MH_SAM_APDU [09:57:34]CAPDU: 80 13 01 00 [09:57:34]Write to MH i2c: E2 08 00 50 21 80 13 01 00 00 00 00 00 EE [09:57:34]Write i2c OK [09:57:34]MH_I2C_Read... [09:57:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:34]Read from MH i2c: E2 [09:57:34]MH_I2C_Read... [09:57:34]Read from MH i2c: E2 0E 00 [09:57:34]MH_I2C_Read... [09:57:34]Read from MH i2c: E2 0E 00 50 21 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 F4 [09:57:34]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [09:57:34]wFMCommunicate OK [09:57:34]SAM_PROTO_GetShiftState done [09:57:34]FM_GetShiftState done [09:57:34]req_shift_opened done [09:57:34]requested_item shift.open_date is exist - process it [09:57:34]req_shift_open_date [09:57:34]req_shift_open_date done [09:57:34]produce_requested_data done [09:57:34]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192822,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [09:57:34]process_action_free close_receipt [09:57:34]json_value_free [09:57:34]json_value_free done [09:57:34]process_json_proto returns [09:57:34]Send response to host [09:57:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192822,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [09:57:34]free response buf [09:57:34]execute_script done [09:57:34]execute_script returns [09:57:34]free content buf [09:57:34]Sock 9.Close socket [09:57:34]Sock 9.Thread stoped [09:57:38]OFD Sender: No OFD packet to send [09:57:43]OFD Sender: No OFD packet to send [09:57:48]OFD Sender: No OFD packet to send [09:57:53]OFD Sender: No OFD packet to send [09:57:58]OFD Sender: No OFD packet to send [09:58:03]OFD Sender: No OFD packet to send [09:58:08]OFD Sender: No OFD packet to send [09:58:13]OFD Sender: No OFD packet to send [09:58:18]OFD Sender: No OFD packet to send [09:58:23]OFD Sender: No OFD packet to send [09:58:28]OFD Sender: No OFD packet to send [09:58:33]OFD Sender: No OFD packet to send [09:58:38]OFD Sender: No OFD packet to send [09:58:43]OFD Sender: No OFD packet to send [09:58:48]OFD Sender: No OFD packet to send [09:58:53]OFD Sender: No OFD packet to send [09:58:58]OFD Sender: No OFD packet to send [09:59:03]OFD Sender: No OFD packet to send [09:59:08]OFD Sender: No OFD packet to send [09:59:13]OFD Sender: No OFD packet to send [09:59:18]OFD Sender: No OFD packet to send [09:59:23]OFD Sender: No OFD packet to send [09:59:28]OFD Sender: No OFD packet to send [09:59:33]OFD Sender: No OFD packet to send [09:59:38]OFD Sender: No OFD packet to send [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:18]OFD Sender: No OFD packet to send [10:02:23]OFD Sender: No OFD packet to send [10:02:28]OFD Sender: No OFD packet to send [10:02:33]OFD Sender: No OFD packet to send [10:02:38]OFD Sender: No OFD packet to send [10:02:43]OFD Sender: No OFD packet to send [10:02:48]OFD Sender: No OFD packet to send [10:02:53]OFD Sender: No OFD packet to send [10:02:55]accept exits with 8 [10:02:55]New connection [10:02:55]New thread 3066658148 created [10:02:55]Thread 3066801508 joined [10:02:55]Waiting for new connection... [10:02:55] Sock 8.Parse request [10:02:55]Sock 8.Check first char [10:02:55]Sock 8.First char is OK [10:02:55]request: POST /json_proto HTTP/1.0 [10:02:55]Method: POST [10:02:55]URL: /json_proto [10:02:55]Method is POST - this is cgi request [10:02:55]url: /json_proto [10:02:55]query_string will be loaded in cgi processing [10:02:55]execute_cgi json_proto POST (null) [10:02:55]execute_cgi path=json_proto method=POST [10:02:55]POST find Content-Length [10:02:55]Host: 172.17.63.131:8080 [10:02:55]Content-Length: 676 [10:02:55]Content-Type: application/json [10:02:55] [10:02:55]POST finish read [10:02:55]Found Content-Length = 676 [10:02:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32152", "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:02:55]execute_script... [10:02: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)32152", "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:02:55]POST & json_proto [10:02:55]process_json_proto [10:02:55]json parsed OK: [10:02:55]protocol is kg_v1.0 [10:02:55]action value=close_receipt [10:02:55]process_action close_receipt [10:02:55]cmd_close_receipt [10:02:55]MH_GetDate [10:02:55]Write to MH i2c: F0 00 00 51 21 61 [10:02:55]Write i2c OK [10:02:55]MH_I2C_Read... [10:02:55]Read from MH i2c: F0 [10:02:55]MH_I2C_Read... [10:02:55]Read from MH i2c: F0 09 00 [10:02:55]MH_I2C_Read... [10:02:55]Read from MH i2c: F0 09 00 51 21 00 D3 B2 20 67 22 05 6E 64 6F [10:02:55]GetLastDocTimeStamp 1730195854 [10:02:55]current date 1730196179 [10:02:55]FM_GetShiftState [10:02:55]SAM_PROTO_GetShiftState [10:02:55]wFMCommunicate request_size=4 [10:02:55]MH_SAM_APDU [10:02:55]CAPDU: 80 13 01 00 [10:02:55]Write to MH i2c: E2 08 00 52 21 80 13 01 00 00 00 00 00 F0 [10:02:55]Write i2c OK [10:02:55]MH_I2C_Read... [10:02:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:55]Read from MH i2c: E2 [10:02:55]MH_I2C_Read... [10:02:55]Read from MH i2c: E2 0E 00 [10:02:55]MH_I2C_Read... [10:02:55]Read from MH i2c: E2 0E 00 52 21 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 F6 [10:02:55]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [10:02:55]wFMCommunicate OK [10:02:55]SAM_PROTO_GetShiftState done [10:02:55]FM_GetShiftState done [10:02:55]opened in 1730161990 [10:02:55]opened+sec_in_day 1730248390 [10:02:55]quantity*price = 30038 [10:02:55]sum+1 = 30039 [10:02:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.38 ИТОГО: 300.00 ВнеÑено: 300.00 СДÐЧÐ: 0.00 ÐСП 1% : 2.66 ÐДС 12% : 31.90 Ðаличными: 300.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 170 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 СÐО: Общий режим Чек 29 29.10.2024 10:02 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192823 ФПД: 72114350719596 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T100259&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192823&fm=72114350719596&tin=02508201610067®Number=0000000000091776&sum=30000 [10:02:56]StoreToDocumentArchive [10:02:56]shift 544 fd 192823 [10:02:56]save to /storage/0544/doc_00192823 [10:02:56]save last doc name /storage/0544/doc_00192823 to /storage/kkm_last_doc_name [10:02:56]save OK [10:02:56]Clear old archive folders... [10:02:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:02:56]tlvbuf is 00F94490 [10:02:56]SAM_PROTO_ClearQueue [10:02:56]wFMCommunicate request_size=4 [10:02:56]MH_SAM_APDU [10:02:56]CAPDU: 80 09 00 00 [10:02:56]Write to MH i2c: E2 08 00 5F 21 80 09 00 00 00 00 00 00 F2 [10:02:56]Write i2c OK [10:02:56]MH_I2C_Read... [10:02:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:02:56]Read from MH i2c: E2 [10:02:56]MH_I2C_Read... [10:02:56]Read from MH i2c: E2 03 00 [10:02:56]MH_I2C_Read... [10:02:56]Read from MH i2c: E2 03 00 5F 21 00 90 00 F4 [10:02:56]RAPDU: 90 00 [10:02:56]wFMCommunicate OK [10:02:56]SAM_PROTO_ClearQueue done [10:02:56]KKMCreateOFDPacket [10:02:56]OFDProtocolAddRootSTLVToBuf [10:02:56]FM_MakeSignedData [10:02:56]FM_MakeSignedData [10:02:56]SAM_PROTO_SignData [10:02:56]wFMCommunicate request_size=4 [10:02:56]MH_SAM_APDU [10:02:56]CAPDU: 80 0D 01 02 [10:02:56]Write to MH i2c: E2 08 00 60 21 80 0D 01 02 00 00 00 00 FA [10:02:56]Write i2c OK [10:02:56]MH_I2C_Read... [10:02:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:02:56]Read from MH i2c: E2 [10:02:56]MH_I2C_Read... [10:02:56]Read from MH i2c: E2 03 00 [10:02:56]MH_I2C_Read... [10:02:56]Read from MH i2c: E2 03 00 60 21 00 90 00 F5 [10:02:56]RAPDU: 90 00 [10:02:56]wFMCommunicate OK [10:02:56]wFMCommunicate request_size=255 [10:02:56]MH_SAM_APDU [10:02: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 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 D3 B2 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 41 [10:02:56]Write to MH i2c: E2 02 01 61 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 1D 00 00 00 F4 03 04 00 D3 B2 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 41 00 00 38 [10:02:56]Write i2c OK [10:02:56]MH_I2C_Read... [10:02:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:56]Read from MH i2c: E2 [10:02:56]MH_I2C_Read... [10:02:56]Read from MH i2c: E2 03 00 [10:02:56]MH_I2C_Read... [10:02:56]Read from MH i2c: E2 03 00 61 21 00 90 00 F6 [10:02:56]RAPDU: 90 00 [10:02:56]wFMCommunicate OK [10:02:56]wFMCommunicate request_size=10 [10:02:56]MH_SAM_APDU [10:02:56]CAPDU: 80 0D 02 02 05 96 6E 42 02 6C [10:02:56]Write to MH i2c: E2 0D 00 62 21 80 0D 02 02 05 00 96 6E 42 02 6C 00 00 BB [10:02:56]Write i2c OK [10:02:56]MH_I2C_Read... [10:02:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:56]Read from MH i2c: E2 [10:02:56]MH_I2C_Read... [10:02:56]Read from MH i2c: E2 03 00 [10:02:56]MH_I2C_Read... [10:02:56]Read from MH i2c: E2 03 00 62 21 00 90 00 F7 [10:02:56]RAPDU: 90 00 [10:02:56]wFMCommunicate OK [10:02:56]wFMCommunicate request_size=4 [10:02:56]MH_SAM_APDU [10:02:56]CAPDU: 80 0D 03 02 [10:02:56]Write to MH i2c: E2 08 00 63 21 80 0D 03 02 00 00 00 00 FF [10:02:56]Write i2c OK [10:02:56]MH_I2C_Read... [10:02:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:02:56]Read from MH i2c: E2 [10:02:56]MH_I2C_Read... [10:02:56]Read from MH i2c: E2 0B 00 [10:02:56]MH_I2C_Read... [10:02:56]Read from MH i2c: E2 0B 00 63 21 00 DB 1D EB 7E AA DC 59 C7 90 00 07 [10:02:56]RAPDU: DB 1D EB 7E AA DC 59 C7 90 00 [10:02:56]wFMCommunicate OK [10:02:56]SAM_PROTO_SignData done [10:02:56]FM_MakeSignedData done [10:02:56]CreateOFDProtocolMessage [10:02:56]wFMCommunicate request_size=4 [10:02:56]MH_SAM_APDU [10:02:56]CAPDU: 80 11 00 00 [10:02:56]Write to MH i2c: E2 08 00 64 21 80 11 00 00 00 00 00 00 FF [10:02:56]Write i2c OK [10:02:56]MH_I2C_Read... [10:02:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:56]Read from MH i2c: E2 [10:02:56]MH_I2C_Read... [10:02:56]Read from MH i2c: E2 17 00 [10:02:56]MH_I2C_Read... [10:02:56]Read from MH i2c: E2 17 00 64 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 52 [10:02: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:02:56]wFMCommunicate OK [10:02:56]CreateOFDProtocolMessage done [10:02:56]OFDSenderStorePacket 192823 [10:02:56]StoreOFDPacket docnum=192823 [10:02: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 2D 46 07 01 D2 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 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 D3 B2 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 41 96 6E 42 02 6C DB 1D EB 7E AA DC 59 C7 [10:02:56]CheckFolder [10:02:56]dirname=/storage/ofd_packets [10:02:56]CheckFolder done [10:02:56]ProducePacketName [10:02:56]name=ofd_packets/00192823 [10:02:56]NVStorageSaveData ofd_packets/00192823 [10:02:56]File name is /storage/ofd_packets/00192823 [10:02:56]Write 301 bytes [10:02:56]NVStorageSaveData done [10:02:56]OFDSenderStorePacket done [10:02:56]KKMCreateOFDPacket done [10:02:56]NVStorageSaveData kkm_last_timestamp [10:02:56]File name is /storage/kkm_last_timestamp [10:02:56]Write 4 bytes [10:02:56]NVStorageSaveData done [10:02:56]ExternCall_PrintAddStr [10:02:56]wPrintStart [10:02:56]Write to MH i2c: 01 00 00 65 21 86 [10:02:56]Write i2c OK [10:02:56]MH_I2C_Read... [10:02:56]Read from MH i2c: 01 [10:02:56]MH_I2C_Read... [10:02:56]Read from MH i2c: 01 07 00 [10:02:56]MH_I2C_Read... [10:02:56]Read from MH i2c: 01 07 00 65 21 00 00 00 00 00 FF 0F 9B [10:02:56]RasterBufferAndPrint [10:02:56]line Счет N : (1)32152 [10:02:56]line ИÐÐ: 02508201610067 [10:02:56]line Контрольно-КаÑÑовый Чек [10:02:56]line ПРОДÐЖР[10:02:56]line ТРК (МРК, ГÐК) : 12 [10:02:56]line Товар: 2710124130 [10:02:56]line Ðи-92-К-5 [10:02:56]line 4.490 * 66.90 [10:02:56]line = 300.38 [10:02:56]line ÐДС 12% ÐСП 1% [10:02:56]line > о реализуемом товаре [10:02:56]line ОКРУГЛЕÐИЕ: -0.38 [10:02:56]line ИТОГО: 300.00 [10:02:56]line ВнеÑено: 300.00 [10:02:56]line СДÐЧÐ: 0.00 [10:02:56]line ÐСП 1% : 2.66 [10:02:56]line ÐДС 12% : 31.90 [10:02:56]line Ðаличными: 300.00 [10:02:56]line Безнал.: 0.00 [10:02:56]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [10:02:56]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [10:02:56]line СÐО: Общий режим [10:02:56]line Чек 29 29.10.2024 10:02 [10:02:56]line Смена: 544 ФФД: 1.0 [10:02:56]line ЗÐМ: 0300000110 [10:02:56]line РÐМ: 0000000000091776 [10:02:56]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:02:56]line ФМ: 0000000000871754 [10:02:56]line ФД: 192823 [10:02:56]line ФПД: 72114350719596 [10:02:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T100259&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192823&fm=72114350719596&tin=02508201610067®Number=0000000000091776&sum=30000 [10:02:57]OFD Sender: Processing packet 192823 [packets to send 75, broken 74] [10:02:57]ProducePacketName [10:02:57]name=ofd_packets/00192823 [10:02:57]OFD Sender: To server: ‡•öpG, [10:02:57]CommunicateWithHost lk.salyk.kg:30040 [10:02:57]ConnectInit lk.salyk.kg [10:02:57]written 0, free lines is 4095 [10:02:57]Connected sock=10 [10:02: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 2D 46 07 01 D2 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 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 D3 B2 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 41 96 6E 42 02 6C DB 1D EB 7E AA DC 59 C7 [10:02: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 F1 D1 47 00 A1 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 37 F1 02 00 F4 03 04 00 94 57 20 67 B6 04 01 00 00 82 B6 B9 3C 25 1A 63 18 [10:02:57]CommunicateWithHost err = 0 [10:02:57]CheckOFDResponse [10:02:57]1017 (14) - 77093643461234 [10:02:57]1041 (16) - 0000000000871754 [10:02:57]1040 (4) - 192823 [10:02:57]1012 (4) - 29.10.2024 03:33 [10:02:57]1206 (1) - 0 [10:02:57]OFD Sender: Remove packet 192823 [10:02:57]ProducePacketName [10:02:57]name=ofd_packets/00192823 [10:02:57]NVStorageDeleteData [10:02:57]Write to MH i2c: 01 00 00 90 21 B1 [10:02:57]Write i2c OK [10:02:57]MH_I2C_Read... [10:02:57]Read from MH i2c: 01 [10:02:57]MH_I2C_Read... [10:02:57]Read from MH i2c: 01 07 00 [10:02:57]MH_I2C_Read... [10:02:57]Read from MH i2c: 01 07 00 90 21 00 00 00 00 00 B9 0C 7D [10:02:57]RasterBufferAndPrint [10:02:57]line [10:02:57]line [10:02:57]line [10:02:57]line [10:02:57]line [10:02:57]written 0, free lines is 3264 [10:02:57]MH_Cut [10:02:57]Write to MH i2c: D1 01 00 97 21 01 8A [10:02:57]Write i2c OK [10:02:57]MH_I2C_Read... [10:02:57]Read from MH i2c: D1 [10:02:57]MH_I2C_Read... [10:02:57]Read from MH i2c: D1 01 00 [10:02:57]MH_I2C_Read... [10:02:57]Read from MH i2c: D1 01 00 97 21 00 89 [10:02:57]Write to MH i2c: 01 00 00 98 21 B9 [10:02:57]Write i2c OK [10:02:57]MH_I2C_Read... [10:02:58]OFD Sender: No OFD packet to send [10:02:58]*** Cut start [10:02:58]*** Partial cut [10:02:58]*** CUTSNS_PIN = 1 [10:02:58]*** CUTSNS_PIN = 0 [10:02:58]*** Brake cut motor [10:02:59]Read from MH i2c: 01 [10:02:59]MH_I2C_Read... [10:02:59]*** Stop cut motor [10:02:59]*** Cut end [10:02:59]Read from MH i2c: 01 07 00 [10:02:59]MH_I2C_Read... [10:02:59]Read from MH i2c: 01 07 00 98 21 00 00 00 00 00 FF 0F CE [10:02:59]process_action close_receipt done [10:02:59]requested_data is exist [10:02:59]produce_requested_data [10:02:59]requested_item fm.sn is exist - process it [10:02:59]wFMCommunicate request_size=4 [10:02:59]MH_SAM_APDU [10:02:59]CAPDU: 80 11 00 00 [10:02:59]Write to MH i2c: E2 08 00 99 21 80 11 00 00 00 00 00 00 34 [10:02:59]Write i2c OK [10:02:59]MH_I2C_Read... [10:02:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:59]Read from MH i2c: E2 [10:02:59]MH_I2C_Read... [10:02:59]Read from MH i2c: E2 17 00 [10:02:59]MH_I2C_Read... [10:02:59]Read from MH i2c: E2 17 00 99 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 87 [10:02: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:02:59]wFMCommunicate OK [10:02:59]requested_item fd.num is exist - process it [10:02:59]SAM_PROTO_GetFieldsCounters [10:02:59]wFMCommunicate request_size=4 [10:02:59]MH_SAM_APDU [10:02:59]CAPDU: 80 13 00 00 [10:02:59]Write to MH i2c: E2 08 00 9A 21 80 13 00 00 00 00 00 00 37 [10:02:59]Write i2c OK [10:02:59]MH_I2C_Read... [10:02:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:59]Read from MH i2c: E2 [10:02:59]MH_I2C_Read... [10:02:59]Read from MH i2c: E2 62 00 [10:02:59]MH_I2C_Read... [10:02:59]Read from MH i2c: E2 62 00 9A 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 37 F1 02 00 0E 04 04 00 20 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 00 [10:02: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 37 F1 02 00 0E 04 04 00 20 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 [10:02:59]wFMCommunicate OK [10:02:59]SAM_PROTO_GetFieldsCounters done [10:02:59]requested_item shift.num is exist - process it [10:02:59]requested_item shift.opened is exist - process it [10:02:59]req_shift_opened [10:02:59]FM_GetShiftState [10:02:59]SAM_PROTO_GetShiftState [10:02:59]wFMCommunicate request_size=4 [10:02:59]MH_SAM_APDU [10:02:59]CAPDU: 80 13 01 00 [10:02:59]Write to MH i2c: E2 08 00 9B 21 80 13 01 00 00 00 00 00 39 [10:02:59]Write i2c OK [10:02:59]MH_I2C_Read... [10:02:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:59]Read from MH i2c: E2 [10:02:59]MH_I2C_Read... [10:02:59]Read from MH i2c: E2 0E 00 [10:02:59]MH_I2C_Read... [10:02:59]Read from MH i2c: E2 0E 00 9B 21 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 3F [10:02:59]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [10:02:59]wFMCommunicate OK [10:02:59]SAM_PROTO_GetShiftState done [10:02:59]FM_GetShiftState done [10:02:59]req_shift_opened done [10:02:59]requested_item shift.open_date is exist - process it [10:02:59]req_shift_open_date [10:02:59]req_shift_open_date done [10:02:59]produce_requested_data done [10:02:59]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192823,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [10:02:59]process_action_free close_receipt [10:02:59]json_value_free [10:02:59]json_value_free done [10:02:59]process_json_proto returns [10:02:59]Send response to host [10:02:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192823,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [10:02:59]free response buf [10:02:59]execute_script done [10:02:59]execute_script returns [10:02:59]free content buf [10:02:59]Sock 8.Close socket [10:02:59]Sock 8.Thread stoped [10:03:03]OFD Sender: No OFD packet to send [10:03:08]OFD Sender: No OFD packet to send [10:03:13]OFD Sender: No OFD packet to send [10:03:18]OFD Sender: No OFD packet to send [10:03:23]OFD Sender: No OFD packet to send [10:03:28]OFD Sender: No OFD packet to send [10:03:33]OFD Sender: No OFD packet to send [10:03:38]OFD Sender: No OFD packet to send [10:03:43]OFD Sender: No OFD packet to send [10:03:48]OFD Sender: No OFD packet to send [10:03:53]OFD Sender: No OFD packet to send [10:03:58]OFD Sender: No OFD packet to send [10:04:03]OFD Sender: No OFD packet to send [10:04:08]OFD Sender: No OFD packet to send [10:04:13]OFD Sender: No OFD packet to send [10:04:18]OFD Sender: No OFD packet to send [10:04:23]OFD Sender: No OFD packet to send [10:04:28]OFD Sender: No OFD packet to send [10:04:33]OFD Sender: No OFD packet to send [10:04:38]OFD Sender: No OFD packet to send [10:04:43]OFD Sender: No OFD packet to send [10:04:48]OFD Sender: No OFD packet to send [10:04:53]OFD Sender: No OFD packet to send [10:04:58]OFD Sender: No OFD packet to send [10:05:03]OFD Sender: No OFD packet to send [10:05:08]OFD Sender: No OFD packet to send [10:05:13]OFD Sender: No OFD packet to send [10:05:18]OFD Sender: No OFD packet to send [10:05:23]OFD Sender: No OFD packet to send [10:05:28]OFD Sender: No OFD packet to send [10:05:33]OFD Sender: No OFD packet to send [10:05:38]OFD Sender: No OFD packet to send [10:05:43]OFD Sender: No OFD packet to send [10:05:48]OFD Sender: No OFD packet to send [10:05:50]accept exits with 9 [10:05:50]New connection [10:05:50]New thread 3066801508 created [10:05:50]Thread 3066658148 joined [10:05:50]Waiting for new connection... [10:05:50] Sock 9.Parse request [10:05:50]Sock 9.Check first char [10:05:50]Sock 9.First char is OK [10:05:50]request: POST /json_proto HTTP/1.0 [10:05:50]Method: POST [10:05:50]URL: /json_proto [10:05:50]Method is POST - this is cgi request [10:05:50]url: /json_proto [10:05:50]query_string will be loaded in cgi processing [10:05:50]execute_cgi json_proto POST (null) [10:05:50]execute_cgi path=json_proto method=POST [10:05:50]POST find Content-Length [10:05:50]Host: 172.17.63.131:8080 [10:05:50]Content-Length: 673 [10:05:50]Content-Type: application/json [10:05:50] [10:05:50]POST finish read [10:05:50]Found Content-Length = 673 [10:05:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32153", "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" ] } } [10:05:50]execute_script... [10:05:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32153", "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" ] } } [10:05:50]POST & json_proto [10:05:50]process_json_proto [10:05:50]json parsed OK: [10:05:50]protocol is kg_v1.0 [10:05:50]action value=close_receipt [10:05:50]process_action close_receipt [10:05:50]cmd_close_receipt [10:05:50]MH_GetDate [10:05:50]Write to MH i2c: F0 00 00 9C 21 AC [10:05:50]Write i2c OK [10:05:50]MH_I2C_Read... [10:05:50]Read from MH i2c: F0 [10:05:50]MH_I2C_Read... [10:05:50]Read from MH i2c: F0 09 00 [10:05:50]MH_I2C_Read... [10:05:50]Read from MH i2c: F0 09 00 9C 21 00 82 B3 20 67 22 05 6E 64 6A [10:05:50]GetLastDocTimeStamp 1730196179 [10:05:50]current date 1730196354 [10:05:50]FM_GetShiftState [10:05:50]SAM_PROTO_GetShiftState [10:05:50]wFMCommunicate request_size=4 [10:05:50]MH_SAM_APDU [10:05:50]CAPDU: 80 13 01 00 [10:05:50]Write to MH i2c: E2 08 00 9D 21 80 13 01 00 00 00 00 00 3B [10:05:50]Write i2c OK [10:05:50]MH_I2C_Read... [10:05:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:50]Read from MH i2c: E2 [10:05:50]MH_I2C_Read... [10:05:50]Read from MH i2c: E2 0E 00 [10:05:50]MH_I2C_Read... [10:05:50]Read from MH i2c: E2 0E 00 9D 21 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 41 [10:05:50]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [10:05:50]wFMCommunicate OK [10:05:50]SAM_PROTO_GetShiftState done [10:05:50]FM_GetShiftState done [10:05:50]opened in 1730161990 [10:05:50]opened+sec_in_day 1730248390 [10:05:50]quantity*price = 50063 [10:05:50]sum+1 = 50064 [10:05:50]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 СÐО: Общий режим Чек 30 29.10.2024 10:05 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192824 ФПД: 191622404425547 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T100554&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192824&fm=191622404425547&tin=02508201610067®Number=0000000000091776&sum=50000 [10:05:51]StoreToDocumentArchive [10:05:51]shift 544 fd 192824 [10:05:51]save to /storage/0544/doc_00192824 [10:05:51]save last doc name /storage/0544/doc_00192824 to /storage/kkm_last_doc_name [10:05:51]save OK [10:05:51]Clear old archive folders... [10:05:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:05:51]tlvbuf is 00FF5790 [10:05:51]SAM_PROTO_ClearQueue [10:05:51]wFMCommunicate request_size=4 [10:05:51]MH_SAM_APDU [10:05:51]CAPDU: 80 09 00 00 [10:05:51]Write to MH i2c: E2 08 00 AA 21 80 09 00 00 00 00 00 00 3D [10:05:51]Write i2c OK [10:05:51]MH_I2C_Read... [10:05:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:05:51]Read from MH i2c: E2 [10:05:51]MH_I2C_Read... [10:05:51]Read from MH i2c: E2 03 00 [10:05:51]MH_I2C_Read... [10:05:51]Read from MH i2c: E2 03 00 AA 21 00 90 00 3F [10:05:51]RAPDU: 90 00 [10:05:51]wFMCommunicate OK [10:05:51]SAM_PROTO_ClearQueue done [10:05:51]KKMCreateOFDPacket [10:05:51]OFDProtocolAddRootSTLVToBuf [10:05:51]FM_MakeSignedData [10:05:51]FM_MakeSignedData [10:05:51]SAM_PROTO_SignData [10:05:51]wFMCommunicate request_size=4 [10:05:51]MH_SAM_APDU [10:05:51]CAPDU: 80 0D 01 02 [10:05:51]Write to MH i2c: E2 08 00 AB 21 80 0D 01 02 00 00 00 00 45 [10:05:51]Write i2c OK [10:05:51]MH_I2C_Read... [10:05:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:05:51]Read from MH i2c: E2 [10:05:51]MH_I2C_Read... [10:05:51]Read from MH i2c: E2 03 00 [10:05:51]MH_I2C_Read... [10:05:51]Read from MH i2c: E2 03 00 AB 21 00 90 00 40 [10:05:51]RAPDU: 90 00 [10:05:51]wFMCommunicate OK [10:05:51]wFMCommunicate request_size=255 [10:05:51]MH_SAM_APDU [10:05:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 1E 00 00 00 F4 03 04 00 82 B3 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 AE 47 91 58 [10:05:51]Write to MH i2c: E2 02 01 AC 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 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 1E 00 00 00 F4 03 04 00 82 B3 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 AE 47 91 58 00 00 5C [10:05:51]Write i2c OK [10:05:51]MH_I2C_Read... [10:05:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:52]Read from MH i2c: E2 [10:05:52]MH_I2C_Read... [10:05:52]Read from MH i2c: E2 03 00 [10:05:52]MH_I2C_Read... [10:05:52]Read from MH i2c: E2 03 00 AC 21 00 90 00 41 [10:05:52]RAPDU: 90 00 [10:05:52]wFMCommunicate OK [10:05:52]wFMCommunicate request_size=7 [10:05:52]MH_SAM_APDU [10:05:52]CAPDU: 80 0D 02 02 02 C7 4B [10:05:52]Write to MH i2c: E2 0A 00 AD 21 80 0D 02 02 02 00 C7 4B 00 00 5E [10:05:52]Write i2c OK [10:05:52]MH_I2C_Read... [10:05:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:52]Read from MH i2c: E2 [10:05:52]MH_I2C_Read... [10:05:52]Read from MH i2c: E2 03 00 [10:05:52]MH_I2C_Read... [10:05:52]Read from MH i2c: E2 03 00 AD 21 00 90 00 42 [10:05:52]RAPDU: 90 00 [10:05:52]wFMCommunicate OK [10:05:52]wFMCommunicate request_size=4 [10:05:52]MH_SAM_APDU [10:05:52]CAPDU: 80 0D 03 02 [10:05:52]Write to MH i2c: E2 08 00 AE 21 80 0D 03 02 00 00 00 00 4A [10:05:52]Write i2c OK [10:05:52]MH_I2C_Read... [10:05:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:05:52]Read from MH i2c: E2 [10:05:52]MH_I2C_Read... [10:05:52]Read from MH i2c: E2 0B 00 [10:05:52]MH_I2C_Read... [10:05:52]Read from MH i2c: E2 0B 00 AE 21 00 A0 50 4A DA A7 29 6F 0A 90 00 A8 [10:05:52]RAPDU: A0 50 4A DA A7 29 6F 0A 90 00 [10:05:52]wFMCommunicate OK [10:05:52]SAM_PROTO_SignData done [10:05:52]FM_MakeSignedData done [10:05:52]CreateOFDProtocolMessage [10:05:52]wFMCommunicate request_size=4 [10:05:52]MH_SAM_APDU [10:05:52]CAPDU: 80 11 00 00 [10:05:52]Write to MH i2c: E2 08 00 AF 21 80 11 00 00 00 00 00 00 4A [10:05:52]Write i2c OK [10:05:52]MH_I2C_Read... [10:05:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:52]Read from MH i2c: E2 [10:05:52]MH_I2C_Read... [10:05:52]Read from MH i2c: E2 17 00 [10:05:52]MH_I2C_Read... [10:05:52]Read from MH i2c: E2 17 00 AF 21 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:05:52]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:52]wFMCommunicate OK [10:05:52]CreateOFDProtocolMessage done [10:05:52]OFDSenderStorePacket 192824 [10:05:52]StoreOFDPacket docnum=192824 [10:05: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 0C 01 00 00 83 44 04 01 7B 54 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 1E 00 00 00 F4 03 04 00 82 B3 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 AE 47 91 58 C7 4B A0 50 4A DA A7 29 6F 0A [10:05:52]CheckFolder [10:05:52]dirname=/storage/ofd_packets [10:05:52]CheckFolder done [10:05:52]ProducePacketName [10:05:52]name=ofd_packets/00192824 [10:05:52]NVStorageSaveData ofd_packets/00192824 [10:05:52]File name is /storage/ofd_packets/00192824 [10:05:52]Write 298 bytes [10:05:52]NVStorageSaveData done [10:05:52]OFDSenderStorePacket done [10:05:52]KKMCreateOFDPacket done [10:05:52]NVStorageSaveData kkm_last_timestamp [10:05:52]File name is /storage/kkm_last_timestamp [10:05:52]Write 4 bytes [10:05:52]NVStorageSaveData done [10:05:52]ExternCall_PrintAddStr [10:05:52]wPrintStart [10:05:52]Write to MH i2c: 01 00 00 B0 21 D1 [10:05:52]Write i2c OK [10:05:52]MH_I2C_Read... [10:05:52]Read from MH i2c: 01 [10:05:52]MH_I2C_Read... [10:05:52]Read from MH i2c: 01 07 00 [10:05:52]MH_I2C_Read... [10:05:52]Read from MH i2c: 01 07 00 B0 21 00 00 00 00 00 FF 0F E6 [10:05:52]RasterBufferAndPrint [10:05:52]line Счет N : (1)32153 [10:05:52]line ИÐÐ: 02508201610067 [10:05:52]line Контрольно-КаÑÑовый Чек [10:05:52]line ПРОДÐЖР[10:05:52]line ТРК (МРК, ГÐК) : 11 [10:05:52]line Товар: 2710194210 [10:05:52]line ДТ-К-5 [10:05:52]line 6.570 * 76.20 [10:05:52]line = 500.63 [10:05:52]line ÐДС 12% ÐСП 1% [10:05:52]line > о реализуемом товаре [10:05:52]line ОКРУГЛЕÐИЕ: -0.63 [10:05:52]line ИТОГО: 500.00 [10:05:52]line ВнеÑено: 500.00 [10:05:52]line СДÐЧÐ: 0.00 [10:05:52]line ÐСП 1% : 4.43 [10:05:52]line ÐДС 12% : 53.16 [10:05:52]line Ðаличными: 500.00 [10:05:52]line Безнал.: 0.00 [10:05:52]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [10:05:52]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [10:05:52]line СÐО: Общий режим [10:05:52]line Чек 30 29.10.2024 10:05 [10:05:52]line Смена: 544 ФФД: 1.0 [10:05:52]line ЗÐМ: 0300000110 [10:05:52]line РÐМ: 0000000000091776 [10:05:52]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:05:52]line ФМ: 0000000000871754 [10:05:52]line ФД: 192824 [10:05:52]line ФПД: 191622404425547 [10:05:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T100554&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192824&fm=191622404425547&tin=02508201610067®Number=0000000000091776&sum=50000 [10:05:52]OFD Sender: Processing packet 192824 [packets to send 75, broken 74] [10:05:52]ProducePacketName [10:05:52]name=ofd_packets/00192824 [10:05:52]OFD Sender: To server: ‡•öpG, [10:05:52]CommunicateWithHost lk.salyk.kg:30040 [10:05:52]ConnectInit lk.salyk.kg [10:05:52]written 0, free lines is 4095 [10:05:52]Connected sock=10 [10:05:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 83 44 04 01 7B 54 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 1E 00 00 00 F4 03 04 00 82 B3 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 AE 47 91 58 C7 4B A0 50 4A DA A7 29 6F 0A [10:05: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 03 D9 47 00 51 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 38 F1 02 00 F4 03 04 00 43 58 20 67 B6 04 01 00 00 8B 31 FB 5D 60 58 55 DC [10:05:52]CommunicateWithHost err = 0 [10:05:52]CheckOFDResponse [10:05:52]1017 (14) - 77093643461234 [10:05:52]1041 (16) - 0000000000871754 [10:05:52]1040 (4) - 192824 [10:05:52]1012 (4) - 29.10.2024 03:36 [10:05:52]1206 (1) - 0 [10:05:52]OFD Sender: Remove packet 192824 [10:05:52]ProducePacketName [10:05:52]name=ofd_packets/00192824 [10:05:52]NVStorageDeleteData [10:05:52]Write to MH i2c: 01 00 00 DB 21 FC [10:05:52]Write i2c OK [10:05:52]MH_I2C_Read... [10:05:52]Read from MH i2c: 01 [10:05:52]MH_I2C_Read... [10:05:52]Read from MH i2c: 01 07 00 [10:05:52]MH_I2C_Read... [10:05:52]Read from MH i2c: 01 07 00 DB 21 00 00 00 00 00 AA 0C B9 [10:05:52]RasterBufferAndPrint [10:05:52]line [10:05:52]line [10:05:52]line [10:05:52]line [10:05:52]line [10:05:52]written 0, free lines is 3248 [10:05:52]MH_Cut [10:05:52]Write to MH i2c: D1 01 00 E2 21 01 D5 [10:05:52]Write i2c OK [10:05:52]MH_I2C_Read... [10:05:52]Read from MH i2c: D1 [10:05:52]MH_I2C_Read... [10:05:52]Read from MH i2c: D1 01 00 [10:05:52]MH_I2C_Read... [10:05:52]Read from MH i2c: D1 01 00 E2 21 00 D4 [10:05:52]Write to MH i2c: 01 00 00 E3 21 04 [10:05:52]Write i2c OK [10:05:52]MH_I2C_Read... [10:05:53]OFD Sender: No OFD packet to send [10:05:53]*** Cut start [10:05:53]*** Partial cut [10:05:53]*** CUTSNS_PIN = 1 [10:05:53]*** CUTSNS_PIN = 0 [10:05:54]*** Brake cut motor [10:05:54]Read from MH i2c: 01 [10:05:54]MH_I2C_Read... [10:05:54]*** Stop cut motor [10:05:54]*** Cut end [10:05:54]Read from MH i2c: 01 07 00 [10:05:54]MH_I2C_Read... [10:05:54]Read from MH i2c: 01 07 00 E3 21 00 00 00 00 00 FF 0F 19 [10:05:54]process_action close_receipt done [10:05:54]requested_data is exist [10:05:54]produce_requested_data [10:05:54]requested_item fm.sn is exist - process it [10:05:54]wFMCommunicate request_size=4 [10:05:54]MH_SAM_APDU [10:05:54]CAPDU: 80 11 00 00 [10:05:54]Write to MH i2c: E2 08 00 E4 21 80 11 00 00 00 00 00 00 7F [10:05:54]Write i2c OK [10:05:54]MH_I2C_Read... [10:05:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:54]Read from MH i2c: E2 [10:05:54]MH_I2C_Read... [10:05:54]Read from MH i2c: E2 17 00 [10:05:54]MH_I2C_Read... [10:05:54]Read from MH i2c: E2 17 00 E4 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D2 [10: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 [10:05:54]wFMCommunicate OK [10:05:54]requested_item fd.num is exist - process it [10:05:54]SAM_PROTO_GetFieldsCounters [10:05:54]wFMCommunicate request_size=4 [10:05:54]MH_SAM_APDU [10:05:54]CAPDU: 80 13 00 00 [10:05:54]Write to MH i2c: E2 08 00 E5 21 80 13 00 00 00 00 00 00 82 [10:05:54]Write i2c OK [10:05:54]MH_I2C_Read... [10:05:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:54]Read from MH i2c: E2 [10:05:54]MH_I2C_Read... [10:05:54]Read from MH i2c: E2 62 00 [10:05:54]MH_I2C_Read... [10:05:54]Read from MH i2c: E2 62 00 E5 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 38 F1 02 00 0E 04 04 00 20 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 4F [10:05:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 F1 02 00 0E 04 04 00 20 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 [10:05:54]wFMCommunicate OK [10:05:54]SAM_PROTO_GetFieldsCounters done [10:05:54]requested_item shift.num is exist - process it [10:05:54]requested_item shift.opened is exist - process it [10:05:54]req_shift_opened [10:05:54]FM_GetShiftState [10:05:54]SAM_PROTO_GetShiftState [10:05:54]wFMCommunicate request_size=4 [10:05:54]MH_SAM_APDU [10:05:54]CAPDU: 80 13 01 00 [10:05:54]Write to MH i2c: E2 08 00 E6 21 80 13 01 00 00 00 00 00 84 [10:05:54]Write i2c OK [10:05:54]MH_I2C_Read... [10:05:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:54]Read from MH i2c: E2 [10:05:54]MH_I2C_Read... [10:05:54]Read from MH i2c: E2 0E 00 [10:05:54]MH_I2C_Read... [10:05:54]Read from MH i2c: E2 0E 00 E6 21 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 8A [10:05:54]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [10:05:54]wFMCommunicate OK [10:05:54]SAM_PROTO_GetShiftState done [10:05:54]FM_GetShiftState done [10:05:54]req_shift_opened done [10:05:54]requested_item shift.open_date is exist - process it [10:05:54]req_shift_open_date [10:05:54]req_shift_open_date done [10:05:54]produce_requested_data done [10:05:54]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192824,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [10:05:54]process_action_free close_receipt [10:05:54]json_value_free [10:05:54]json_value_free done [10:05:54]process_json_proto returns [10:05:54]Send response to host [10:05:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192824,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [10:05:54]free response buf [10:05:54]execute_script done [10:05:54]execute_script returns [10:05:54]free content buf [10:05:54]Sock 9.Close socket [10:05:54]Sock 9.Thread stoped [10:05:58]OFD Sender: No OFD packet to send [10:06:03]OFD Sender: No OFD packet to send [10:06:08]OFD Sender: No OFD packet to send [10:06:13]OFD Sender: No OFD packet to send [10:06:18]OFD Sender: No OFD packet to send [10:06:23]OFD Sender: No OFD packet to send [10:06:28]OFD Sender: No OFD packet to send [10:06:33]OFD Sender: No OFD packet to send [10:06:38]OFD Sender: No OFD packet to send [10:06:43]OFD Sender: No OFD packet to send [10:06:48]OFD Sender: No OFD packet to send [10:06:53]OFD Sender: No OFD packet to send [10:06:58]OFD Sender: No OFD packet to send [10:07:03]OFD Sender: No OFD packet to send [10:07:08]OFD Sender: No OFD packet to send [10:07:13]OFD Sender: No OFD packet to send [10:07:18]OFD Sender: No OFD packet to send [10:07:23]OFD Sender: No OFD packet to send [10:07:28]OFD Sender: No OFD packet to send [10:07:33]OFD Sender: No OFD packet to send [10:07:38]OFD Sender: No OFD packet to send [10:07:43]OFD Sender: No OFD packet to send [10:07:48]OFD Sender: No OFD packet to send [10:07:53]OFD Sender: No OFD packet to send [10:07:58]OFD Sender: No OFD packet to send [10:08:03]OFD Sender: No OFD packet to send [10:08:08]OFD Sender: No OFD packet to send [10:08:13]OFD Sender: No OFD packet to send [10:08:16]accept exits with 8 [10:08:16]New connection [10:08:16]New thread 3066658148 created [10:08:16]Thread 3066801508 joined [10:08:16]Waiting for new connection... [10:08:16] Sock 8.Parse request [10:08:16]Sock 8.Check first char [10:08:16]Sock 8.First char is OK [10:08:16]request: POST /json_proto HTTP/1.0 [10:08:16]Method: POST [10:08:16]URL: /json_proto [10:08:16]Method is POST - this is cgi request [10:08:16]url: /json_proto [10:08:16]query_string will be loaded in cgi processing [10:08:16]execute_cgi json_proto POST (null) [10:08:16]execute_cgi path=json_proto method=POST [10:08:16]POST find Content-Length [10:08:16]Host: 172.17.63.131:8080 [10:08:16]Content-Length: 673 [10:08:16]Content-Type: application/json [10:08:16] [10:08:16]POST finish read [10:08:16]Found Content-Length = 673 [10:08:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32154", "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 }]} ], "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:08:16]execute_script... [10:08:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32154", "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 }]} ], "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:08:16]POST & json_proto [10:08:16]process_json_proto [10:08:16]json parsed OK: [10:08:16]protocol is kg_v1.0 [10:08:16]action value=close_receipt [10:08:16]process_action close_receipt [10:08:16]cmd_close_receipt [10:08:16]MH_GetDate [10:08:16]Write to MH i2c: F0 00 00 E7 21 F7 [10:08:16]Write i2c OK [10:08:16]MH_I2C_Read... [10:08:16]Read from MH i2c: F0 [10:08:16]MH_I2C_Read... [10:08:16]Read from MH i2c: F0 09 00 [10:08:16]MH_I2C_Read... [10:08:16]Read from MH i2c: F0 09 00 E7 21 00 14 B4 20 67 22 05 6E 64 48 [10:08:16]GetLastDocTimeStamp 1730196354 [10:08:16]current date 1730196500 [10:08:16]FM_GetShiftState [10:08:16]SAM_PROTO_GetShiftState [10:08:16]wFMCommunicate request_size=4 [10:08:16]MH_SAM_APDU [10:08:16]CAPDU: 80 13 01 00 [10:08:16]Write to MH i2c: E2 08 00 E8 21 80 13 01 00 00 00 00 00 86 [10:08:16]Write i2c OK [10:08:16]MH_I2C_Read... [10:08:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:16]Read from MH i2c: E2 [10:08:16]MH_I2C_Read... [10:08:16]Read from MH i2c: E2 0E 00 [10:08:16]MH_I2C_Read... [10:08:16]Read from MH i2c: E2 0E 00 E8 21 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 8C [10:08:16]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [10:08:16]wFMCommunicate OK [10:08:16]SAM_PROTO_GetShiftState done [10:08:16]FM_GetShiftState done [10:08:16]opened in 1730161990 [10:08:16]opened+sec_in_day 1730248390 [10:08:16]quantity*price = 70027 [10:08:16]sum+1 = 70029 [10:08:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.28 ИТОГО: 700.00 ВнеÑено: 700.00 СДÐЧÐ: 0.00 ÐСП 1% : 6.20 ÐДС 12% : 74.37 Ðаличными: 700.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 170 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 СÐО: Общий режим Чек 31 29.10.2024 10:08 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192825 ФПД: 266516170543876 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T100820&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192825&fm=266516170543876&tin=02508201610067®Number=0000000000091776&sum=70000 [10:08:17]StoreToDocumentArchive [10:08:17]shift 544 fd 192825 [10:08:17]save to /storage/0544/doc_00192825 [10:08:17]save last doc name /storage/0544/doc_00192825 to /storage/kkm_last_doc_name [10:08:17]save OK [10:08:17]Clear old archive folders... [10:08:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:08:17]tlvbuf is 00FF15D0 [10:08:17]SAM_PROTO_ClearQueue [10:08:17]wFMCommunicate request_size=4 [10:08:17]MH_SAM_APDU [10:08:17]CAPDU: 80 09 00 00 [10:08:17]Write to MH i2c: E2 08 00 F5 21 80 09 00 00 00 00 00 00 88 [10:08:17]Write i2c OK [10:08:17]MH_I2C_Read... [10:08:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:17]Read from MH i2c: E2 [10:08:17]MH_I2C_Read... [10:08:17]Read from MH i2c: E2 03 00 [10:08:17]MH_I2C_Read... [10:08:17]Read from MH i2c: E2 03 00 F5 21 00 90 00 8A [10:08:17]RAPDU: 90 00 [10:08:17]wFMCommunicate OK [10:08:17]SAM_PROTO_ClearQueue done [10:08:17]KKMCreateOFDPacket [10:08:17]OFDProtocolAddRootSTLVToBuf [10:08:17]FM_MakeSignedData [10:08:17]FM_MakeSignedData [10:08:17]SAM_PROTO_SignData [10:08:17]wFMCommunicate request_size=4 [10:08:17]MH_SAM_APDU [10:08:17]CAPDU: 80 0D 01 02 [10:08:17]Write to MH i2c: E2 08 00 F6 21 80 0D 01 02 00 00 00 00 90 [10:08:17]Write i2c OK [10:08:17]MH_I2C_Read... [10:08:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:17]Read from MH i2c: E2 [10:08:17]MH_I2C_Read... [10:08:17]Read from MH i2c: E2 03 00 [10:08:17]MH_I2C_Read... [10:08:17]Read from MH i2c: E2 03 00 F6 21 00 90 00 8B [10:08:17]RAPDU: 90 00 [10:08:17]wFMCommunicate OK [10:08:17]wFMCommunicate request_size=255 [10:08:17]MH_SAM_APDU [10:08:17]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 14 B4 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 F2 65 21 AC [10:08:17]Write to MH i2c: E2 02 01 F7 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 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 14 B4 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 F2 65 21 AC 00 00 F6 [10:08:17]Write i2c OK [10:08:17]MH_I2C_Read... [10:08:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:18]Read from MH i2c: E2 [10:08:18]MH_I2C_Read... [10:08:18]Read from MH i2c: E2 03 00 [10:08:18]MH_I2C_Read... [10:08:18]Read from MH i2c: E2 03 00 F7 21 00 90 00 8C [10:08:18]RAPDU: 90 00 [10:08:18]wFMCommunicate OK [10:08:18]wFMCommunicate request_size=7 [10:08:18]MH_SAM_APDU [10:08:18]CAPDU: 80 0D 02 02 02 13 04 [10:08:18]Write to MH i2c: E2 0A 00 F8 21 80 0D 02 02 02 00 13 04 00 00 AE [10:08:18]Write i2c OK [10:08:18]MH_I2C_Read... [10:08:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:18]Read from MH i2c: E2 [10:08:18]MH_I2C_Read... [10:08:18]Read from MH i2c: E2 03 00 [10:08:18]MH_I2C_Read... [10:08:18]Read from MH i2c: E2 03 00 F8 21 00 90 00 8D [10:08:18]RAPDU: 90 00 [10:08:18]wFMCommunicate OK [10:08:18]wFMCommunicate request_size=4 [10:08:18]MH_SAM_APDU [10:08:18]CAPDU: 80 0D 03 02 [10:08:18]Write to MH i2c: E2 08 00 F9 21 80 0D 03 02 00 00 00 00 95 [10:08:18]Write i2c OK [10:08:18]MH_I2C_Read... [10:08:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:08:18]Read from MH i2c: E2 [10:08:18]MH_I2C_Read... [10:08:18]Read from MH i2c: E2 0B 00 [10:08:18]MH_I2C_Read... [10:08:18]Read from MH i2c: E2 0B 00 F9 21 00 8F 75 4D 67 C5 F6 BD 23 90 00 E9 [10:08:18]RAPDU: 8F 75 4D 67 C5 F6 BD 23 90 00 [10:08:18]wFMCommunicate OK [10:08:18]SAM_PROTO_SignData done [10:08:18]FM_MakeSignedData done [10:08:18]CreateOFDProtocolMessage [10:08:18]wFMCommunicate request_size=4 [10:08:18]MH_SAM_APDU [10:08:18]CAPDU: 80 11 00 00 [10:08:18]Write to MH i2c: E2 08 00 FA 21 80 11 00 00 00 00 00 00 95 [10:08:18]Write i2c OK [10:08:18]MH_I2C_Read... [10:08:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:18]Read from MH i2c: E2 [10:08:18]MH_I2C_Read... [10:08:18]Read from MH i2c: E2 17 00 [10:08:18]MH_I2C_Read... [10:08:18]Read from MH i2c: E2 17 00 FA 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E8 [10:08: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:08:18]wFMCommunicate OK [10:08:18]CreateOFDProtocolMessage done [10:08:18]OFDSenderStorePacket 192825 [10:08:18]StoreOFDPacket docnum=192825 [10:08: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 DF 39 04 01 62 39 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 14 B4 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 F2 65 21 AC 13 04 8F 75 4D 67 C5 F6 BD 23 [10:08:18]CheckFolder [10:08:18]dirname=/storage/ofd_packets [10:08:18]CheckFolder done [10:08:18]ProducePacketName [10:08:18]name=ofd_packets/00192825 [10:08:18]NVStorageSaveData ofd_packets/00192825 [10:08:18]File name is /storage/ofd_packets/00192825 [10:08:18]Write 298 bytes [10:08:18]NVStorageSaveData done [10:08:18]OFDSenderStorePacket done [10:08:18]KKMCreateOFDPacket done [10:08:18]NVStorageSaveData kkm_last_timestamp [10:08:18]File name is /storage/kkm_last_timestamp [10:08:18]Write 4 bytes [10:08:18]NVStorageSaveData done [10:08:18]ExternCall_PrintAddStr [10:08:18]wPrintStart [10:08:18]Write to MH i2c: 01 00 00 FB 21 1C [10:08:18]Write i2c OK [10:08:18]MH_I2C_Read... [10:08:18]Read from MH i2c: 01 [10:08:18]MH_I2C_Read... [10:08:18]Read from MH i2c: 01 07 00 [10:08:18]MH_I2C_Read... [10:08:18]Read from MH i2c: 01 07 00 FB 21 00 00 00 00 00 FF 0F 31 [10:08:18]RasterBufferAndPrint [10:08:18]line Счет N : (1)32154 [10:08:18]line ИÐÐ: 02508201610067 [10:08:18]line Контрольно-КаÑÑовый Чек [10:08:18]line ПРОДÐЖР[10:08:18]line ТРК (МРК, ГÐК) : 11 [10:08:18]line Товар: 2710194210 [10:08:18]line ДТ-К-5 [10:08:18]line 9.190 * 76.20 [10:08:18]line = 700.28 [10:08:18]line ÐДС 12% ÐСП 1% [10:08:18]line > о реализуемом товаре [10:08:18]line ОКРУГЛЕÐИЕ: -0.28 [10:08:18]line ИТОГО: 700.00 [10:08:18]line ВнеÑено: 700.00 [10:08:18]line СДÐЧÐ: 0.00 [10:08:18]line ÐСП 1% : 6.20 [10:08:18]line ÐДС 12% : 74.37 [10:08:18]line Ðаличными: 700.00 [10:08:18]line Безнал.: 0.00 [10:08:18]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [10:08:18]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [10:08:18]line СÐО: Общий режим [10:08:18]line Чек 31 29.10.2024 10:08 [10:08:18]line Смена: 544 ФФД: 1.0 [10:08:18]line ЗÐМ: 0300000110 [10:08:18]line РÐМ: 0000000000091776 [10:08:18]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:08:18]line ФМ: 0000000000871754 [10:08:18]line ФД: 192825 [10:08:18]line ФПД: 266516170543876 [10:08:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T100820&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192825&fm=266516170543876&tin=02508201610067®Number=0000000000091776&sum=70000 [10:08:18]OFD Sender: Processing packet 192825 [packets to send 75, broken 74] [10:08:18]ProducePacketName [10:08:18]name=ofd_packets/00192825 [10:08:18]OFD Sender: To server: ‡•öpG, [10:08:18]CommunicateWithHost lk.salyk.kg:30040 [10:08:18]ConnectInit lk.salyk.kg [10:08:18]written 0, free lines is 4095 [10:08:18]Connected sock=10 [10:08:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 DF 39 04 01 62 39 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 14 B4 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 F2 65 21 AC 13 04 8F 75 4D 67 C5 F6 BD 23 [10:08:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E9 82 47 00 2B 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 39 F1 02 00 F4 03 04 00 D5 58 20 67 B6 04 01 00 00 C3 D7 95 A1 F0 27 24 79 [10:08:18]CommunicateWithHost err = 0 [10:08:18]CheckOFDResponse [10:08:18]1017 (14) - 77093643461234 [10:08:18]1041 (16) - 0000000000871754 [10:08:18]1040 (4) - 192825 [10:08:18]1012 (4) - 29.10.2024 03:39 [10:08:18]1206 (1) - 0 [10:08:18]OFD Sender: Remove packet 192825 [10:08:18]ProducePacketName [10:08:18]name=ofd_packets/00192825 [10:08:18]NVStorageDeleteData [10:08:19]Write to MH i2c: 01 00 00 26 22 48 [10:08:19]Write i2c OK [10:08:19]MH_I2C_Read... [10:08:19]Read from MH i2c: 01 [10:08:19]MH_I2C_Read... [10:08:19]Read from MH i2c: 01 07 00 [10:08:19]MH_I2C_Read... [10:08:19]Read from MH i2c: 01 07 00 26 22 00 00 00 00 00 B0 0C 0B [10:08:19]RasterBufferAndPrint [10:08:19]line [10:08:19]line [10:08:19]line [10:08:19]line [10:08:19]line [10:08:19]written 0, free lines is 3254 [10:08:19]MH_Cut [10:08:19]Write to MH i2c: D1 01 00 2D 22 01 21 [10:08:19]Write i2c OK [10:08:19]MH_I2C_Read... [10:08:19]Read from MH i2c: D1 [10:08:19]MH_I2C_Read... [10:08:19]Read from MH i2c: D1 01 00 [10:08:19]MH_I2C_Read... [10:08:19]Read from MH i2c: D1 01 00 2D 22 00 20 [10:08:19]Write to MH i2c: 01 00 00 2E 22 50 [10:08:19]Write i2c OK [10:08:19]MH_I2C_Read... [10:08:19]OFD Sender: No OFD packet to send [10:08:19]*** Cut start [10:08:19]*** Partial cut [10:08:19]*** CUTSNS_PIN = 1 [10:08:20]*** CUTSNS_PIN = 0 [10:08:20]*** Brake cut motor [10:08:20]Read from MH i2c: 01 [10:08:20]MH_I2C_Read... [10:08:20]*** Stop cut motor [10:08:20]*** Cut end [10:08:20]Read from MH i2c: 01 07 00 [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: 01 07 00 2E 22 00 00 00 00 00 FF 0F 65 [10:08:20]process_action close_receipt done [10:08:20]requested_data is exist [10:08:20]produce_requested_data [10:08:20]requested_item fm.sn is exist - process it [10:08:20]wFMCommunicate request_size=4 [10:08:20]MH_SAM_APDU [10:08:20]CAPDU: 80 11 00 00 [10:08:20]Write to MH i2c: E2 08 00 2F 22 80 11 00 00 00 00 00 00 CB [10:08:20]Write i2c OK [10:08:20]MH_I2C_Read... [10:08:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:20]Read from MH i2c: E2 [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: E2 17 00 [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: E2 17 00 2F 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1E [10:08:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:08:20]wFMCommunicate OK [10:08:20]requested_item fd.num is exist - process it [10:08:20]SAM_PROTO_GetFieldsCounters [10:08:20]wFMCommunicate request_size=4 [10:08:20]MH_SAM_APDU [10:08:20]CAPDU: 80 13 00 00 [10:08:20]Write to MH i2c: E2 08 00 30 22 80 13 00 00 00 00 00 00 CE [10:08:20]Write i2c OK [10:08:20]MH_I2C_Read... [10:08:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:20]Read from MH i2c: E2 [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: E2 62 00 [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: E2 62 00 30 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 39 F1 02 00 0E 04 04 00 20 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 9F [10:08:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 F1 02 00 0E 04 04 00 20 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 [10:08:20]wFMCommunicate OK [10:08:20]SAM_PROTO_GetFieldsCounters done [10:08:20]requested_item shift.num is exist - process it [10:08:20]requested_item shift.opened is exist - process it [10:08:20]req_shift_opened [10:08:20]FM_GetShiftState [10:08:20]SAM_PROTO_GetShiftState [10:08:20]wFMCommunicate request_size=4 [10:08:20]MH_SAM_APDU [10:08:20]CAPDU: 80 13 01 00 [10:08:20]Write to MH i2c: E2 08 00 31 22 80 13 01 00 00 00 00 00 D0 [10:08:20]Write i2c OK [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: E2 [10:08:20]MH_I2C_Read... [10:08:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:20]Read from MH i2c: E2 0E 00 [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: E2 0E 00 31 22 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 D6 [10:08:20]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [10:08:20]wFMCommunicate OK [10:08:20]SAM_PROTO_GetShiftState done [10:08:20]FM_GetShiftState done [10:08:20]req_shift_opened done [10:08:20]requested_item shift.open_date is exist - process it [10:08:20]req_shift_open_date [10:08:20]req_shift_open_date done [10:08:20]produce_requested_data done [10:08:20]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192825,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [10:08:20]process_action_free close_receipt [10:08:20]json_value_free [10:08:20]json_value_free done [10:08:20]process_json_proto returns [10:08:20]Send response to host [10:08:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192825,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [10:08:20]free response buf [10:08:20]execute_script done [10:08:20]execute_script returns [10:08:20]free content buf [10:08:20]Sock 8.Close socket [10:08:20]Sock 8.Thread stoped [10:08:24]OFD Sender: No OFD packet to send [10:08:29]OFD Sender: No OFD packet to send [10:08:34]OFD Sender: No OFD packet to send [10:08:39]OFD Sender: No OFD packet to send [10:08:44]OFD Sender: No OFD packet to send [10:08:49]OFD Sender: No OFD packet to send [10:08:54]OFD Sender: No OFD packet to send [10:08:59]OFD Sender: No OFD packet to send [10:09:04]OFD Sender: No OFD packet to send [10:09:09]OFD Sender: No OFD packet to send [10:09:14]OFD Sender: No OFD packet to send [10:09:19]OFD Sender: No OFD packet to send [10:09:24]OFD Sender: No OFD packet to send [10:09:27]accept exits with 9 [10:09:27]New connection [10:09:27]New thread 3066801508 created [10:09:27]Thread 3066658148 joined [10:09:27]Waiting for new connection... [10:09:27] Sock 9.Parse request [10:09:27]Sock 9.Check first char [10:09:27]Sock 9.First char is OK [10:09:27]request: POST /json_proto HTTP/1.0 [10:09:27]Method: POST [10:09:27]URL: /json_proto [10:09:27]Method is POST - this is cgi request [10:09:27]url: /json_proto [10:09:27]query_string will be loaded in cgi processing [10:09:27]execute_cgi json_proto POST (null) [10:09:27]execute_cgi path=json_proto method=POST [10:09:27]POST find Content-Length [10:09:27]Host: 172.17.63.131:8080 [10:09:27]Content-Length: 676 [10:09:27]Content-Type: application/json [10:09:27] [10:09:27]POST finish read [10:09:27]Found Content-Length = 676 [10:09:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32155", "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:27]execute_script... [10:09:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32155", "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:27]POST & json_proto [10:09:27]process_json_proto [10:09:27]json parsed OK: [10:09:27]protocol is kg_v1.0 [10:09:27]action value=close_receipt [10:09:27]process_action close_receipt [10:09:27]cmd_close_receipt [10:09:27]MH_GetDate [10:09:27]Write to MH i2c: F0 00 00 32 22 43 [10:09:27]Write i2c OK [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: F0 [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: F0 09 00 [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: F0 09 00 32 22 00 5B B4 20 67 22 05 6E 64 DB [10:09:27]GetLastDocTimeStamp 1730196500 [10:09:27]current date 1730196571 [10:09:27]FM_GetShiftState [10:09:27]SAM_PROTO_GetShiftState [10:09:27]wFMCommunicate request_size=4 [10:09:27]MH_SAM_APDU [10:09:27]CAPDU: 80 13 01 00 [10:09:27]Write to MH i2c: E2 08 00 33 22 80 13 01 00 00 00 00 00 D2 [10:09:27]Write i2c OK [10:09:27]MH_I2C_Read... [10:09:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:27]Read from MH i2c: E2 [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: E2 0E 00 [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: E2 0E 00 33 22 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 D8 [10:09:27]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [10:09:27]wFMCommunicate OK [10:09:27]SAM_PROTO_GetShiftState done [10:09:27]FM_GetShiftState done [10:09:27]opened in 1730161990 [10:09:27]opened+sec_in_day 1730248390 [10:09:27]quantity*price = 50041 [10:09:27]sum+1 = 50042 [10:09: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 СÐО: Общий режим Чек 32 29.10.2024 10:09 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192826 ФПД: 100479178783339 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T100931&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192826&fm=100479178783339&tin=02508201610067®Number=0000000000091776&sum=50000 [10:09:28]StoreToDocumentArchive [10:09:28]shift 544 fd 192826 [10:09:28]save to /storage/0544/doc_00192826 [10:09:28]save last doc name /storage/0544/doc_00192826 to /storage/kkm_last_doc_name [10:09:28]save OK [10:09:28]Clear old archive folders... [10:09:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:09:28]tlvbuf is 00FB87F0 [10:09:28]SAM_PROTO_ClearQueue [10:09:28]wFMCommunicate request_size=4 [10:09:28]MH_SAM_APDU [10:09:28]CAPDU: 80 09 00 00 [10:09:28]Write to MH i2c: E2 08 00 40 22 80 09 00 00 00 00 00 00 D4 [10:09:28]Write i2c OK [10:09:28]MH_I2C_Read... [10:09:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:29]Read from MH i2c: E2 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 03 00 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 03 00 40 22 00 90 00 D6 [10:09:29]RAPDU: 90 00 [10:09:29]wFMCommunicate OK [10:09:29]SAM_PROTO_ClearQueue done [10:09:29]KKMCreateOFDPacket [10:09:29]OFDProtocolAddRootSTLVToBuf [10:09:29]FM_MakeSignedData [10:09:29]FM_MakeSignedData [10:09:29]SAM_PROTO_SignData [10:09:29]wFMCommunicate request_size=4 [10:09:29]MH_SAM_APDU [10:09:29]CAPDU: 80 0D 01 02 [10:09:29]Write to MH i2c: E2 08 00 41 22 80 0D 01 02 00 00 00 00 DC [10:09:29]Write i2c OK [10:09:29]MH_I2C_Read... [10:09:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:29]Read from MH i2c: E2 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 03 00 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 03 00 41 22 00 90 00 D7 [10:09:29]RAPDU: 90 00 [10:09:29]wFMCommunicate OK [10:09:29]wFMCommunicate request_size=255 [10:09:29]MH_SAM_APDU [10:09: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 20 00 00 00 F4 03 04 00 5B B4 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 5B [10:09:29]Write to MH i2c: E2 02 01 42 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 5B B4 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 5B 00 00 D0 [10:09:29]Write i2c OK [10:09:29]MH_I2C_Read... [10:09:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:29]Read from MH i2c: E2 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 03 00 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 03 00 42 22 00 90 00 D8 [10:09:29]RAPDU: 90 00 [10:09:29]wFMCommunicate OK [10:09:29]wFMCommunicate request_size=10 [10:09:29]MH_SAM_APDU [10:09:29]CAPDU: 80 0D 02 02 05 62 A1 C2 3A 6B [10:09:29]Write to MH i2c: E2 0D 00 43 22 80 0D 02 02 05 00 62 A1 C2 3A 6B 00 00 53 [10:09:29]Write i2c OK [10:09:29]MH_I2C_Read... [10:09:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:29]Read from MH i2c: E2 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 03 00 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 03 00 43 22 00 90 00 D9 [10:09:29]RAPDU: 90 00 [10:09:29]wFMCommunicate OK [10:09:29]wFMCommunicate request_size=4 [10:09:29]MH_SAM_APDU [10:09:29]CAPDU: 80 0D 03 02 [10:09:29]Write to MH i2c: E2 08 00 44 22 80 0D 03 02 00 00 00 00 E1 [10:09:29]Write i2c OK [10:09:29]MH_I2C_Read... [10:09:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:29]Read from MH i2c: E2 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 0B 00 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 0B 00 44 22 00 F0 F9 86 39 DD 16 8D 8E 90 00 98 [10:09:29]RAPDU: F0 F9 86 39 DD 16 8D 8E 90 00 [10:09:29]wFMCommunicate OK [10:09:29]SAM_PROTO_SignData done [10:09:29]FM_MakeSignedData done [10:09:29]CreateOFDProtocolMessage [10:09:29]wFMCommunicate request_size=4 [10:09:29]MH_SAM_APDU [10:09:29]CAPDU: 80 11 00 00 [10:09:29]Write to MH i2c: E2 08 00 45 22 80 11 00 00 00 00 00 00 E1 [10:09:29]Write i2c OK [10:09:29]MH_I2C_Read... [10:09:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:29]Read from MH i2c: E2 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 17 00 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 17 00 45 22 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:09: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:09:29]wFMCommunicate OK [10:09:29]CreateOFDProtocolMessage done [10:09:29]OFDSenderStorePacket 192826 [10:09:29]StoreOFDPacket docnum=192826 [10:09: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 F0 67 07 01 5A 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 5B B4 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 5B 62 A1 C2 3A 6B F0 F9 86 39 DD 16 8D 8E [10:09:29]CheckFolder [10:09:29]dirname=/storage/ofd_packets [10:09:29]CheckFolder done [10:09:29]ProducePacketName [10:09:29]name=ofd_packets/00192826 [10:09:29]NVStorageSaveData ofd_packets/00192826 [10:09:29]File name is /storage/ofd_packets/00192826 [10:09:29]Write 301 bytes [10:09:29]NVStorageSaveData done [10:09:29]OFDSenderStorePacket done [10:09:29]KKMCreateOFDPacket done [10:09:29]NVStorageSaveData kkm_last_timestamp [10:09:29]File name is /storage/kkm_last_timestamp [10:09:29]Write 4 bytes [10:09:29]NVStorageSaveData done [10:09:29]ExternCall_PrintAddStr [10:09:29]wPrintStart [10:09:29]Write to MH i2c: 01 00 00 46 22 68 [10:09:29]Write i2c OK [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: 01 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: 01 07 00 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: 01 07 00 46 22 00 00 00 00 00 FF 0F 7D [10:09:29]RasterBufferAndPrint [10:09:29]line Счет N : (1)32155 [10:09:29]line ИÐÐ: 02508201610067 [10:09:29]line Контрольно-КаÑÑовый Чек [10:09:29]line ПРОДÐЖР[10:09:29]line ТРК (МРК, ГÐК) : 12 [10:09:29]line Товар: 2710124130 [10:09:29]line Ðи-92-К-5 [10:09:29]line 7.480 * 66.90 [10:09:29]line = 500.41 [10:09:29]line ÐДС 12% ÐСП 1% [10:09:29]line > о реализуемом товаре [10:09:29]line ОКРУГЛЕÐИЕ: -0.41 [10:09:29]line ИТОГО: 500.00 [10:09:29]line ВнеÑено: 500.00 [10:09:29]line СДÐЧÐ: 0.00 [10:09:29]line ÐСП 1% : 4.43 [10:09:29]line ÐДС 12% : 53.14 [10:09:29]line Ðаличными: 500.00 [10:09:29]line Безнал.: 0.00 [10:09:29]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [10:09:29]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [10:09:29]line СÐО: Общий режим [10:09:29]line Чек 32 29.10.2024 10:09 [10:09:29]line Смена: 544 ФФД: 1.0 [10:09:29]line ЗÐМ: 0300000110 [10:09:29]line РÐМ: 0000000000091776 [10:09:29]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:09:29]line ФМ: 0000000000871754 [10:09:29]line ФД: 192826 [10:09:29]line ФПД: 100479178783339 [10:09:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T100931&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192826&fm=100479178783339&tin=02508201610067®Number=0000000000091776&sum=50000 [10:09:29]OFD Sender: Processing packet 192826 [packets to send 75, broken 74] [10:09:29]ProducePacketName [10:09:29]name=ofd_packets/00192826 [10:09:29]OFD Sender: To server: ‡•öpG, [10:09:29]CommunicateWithHost lk.salyk.kg:30040 [10:09:29]ConnectInit lk.salyk.kg [10:09:29]written 0, free lines is 4095 [10:09:29]Connected sock=10 [10:09:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F0 67 07 01 5A 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 5B B4 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 5B 62 A1 C2 3A 6B F0 F9 86 39 DD 16 8D 8E [10:09: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 92 59 47 00 A9 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 3A F1 02 00 F4 03 04 00 1D 59 20 67 B6 04 01 00 00 C4 58 03 4A E4 E7 7F CE [10:09:30]CommunicateWithHost err = 0 [10:09:30]CheckOFDResponse [10:09:30]1017 (14) - 77093643461234 [10:09:30]1041 (16) - 0000000000871754 [10:09:30]1040 (4) - 192826 [10:09:30]1012 (4) - 29.10.2024 03:40 [10:09:30]1206 (1) - 0 [10:09:30]OFD Sender: Remove packet 192826 [10:09:30]ProducePacketName [10:09:30]name=ofd_packets/00192826 [10:09:30]NVStorageDeleteData [10:09:30]Write to MH i2c: 01 00 00 71 22 93 [10:09:30]Write i2c OK [10:09:30]MH_I2C_Read... [10:09:30]Read from MH i2c: 01 [10:09:30]MH_I2C_Read... [10:09:30]Read from MH i2c: 01 07 00 [10:09:30]MH_I2C_Read... [10:09:30]Read from MH i2c: 01 07 00 71 22 00 00 00 00 00 AD 0C 53 [10:09:30]RasterBufferAndPrint [10:09:30]line [10:09:30]line [10:09:30]line [10:09:30]line [10:09:30]line [10:09:30]written 0, free lines is 3251 [10:09:30]MH_Cut [10:09:30]Write to MH i2c: D1 01 00 78 22 01 6C [10:09:30]Write i2c OK [10:09:30]MH_I2C_Read... [10:09:30]Read from MH i2c: D1 [10:09:30]MH_I2C_Read... [10:09:30]Read from MH i2c: D1 01 00 [10:09:30]MH_I2C_Read... [10:09:30]Read from MH i2c: D1 01 00 78 22 00 6B [10:09:30]Write to MH i2c: 01 00 00 79 22 9B [10:09:30]Write i2c OK [10:09:30]MH_I2C_Read... [10:09:30]OFD Sender: No OFD packet to send [10:09:31]*** Cut start [10:09:31]*** Partial cut [10:09:31]*** CUTSNS_PIN = 1 [10:09:31]*** CUTSNS_PIN = 0 [10:09:31]*** Brake cut motor [10:09:31]Read from MH i2c: 01 [10:09:31]MH_I2C_Read... [10:09:31]*** Stop cut motor [10:09:31]*** Cut end [10:09:31]Read from MH i2c: 01 07 00 [10:09:31]MH_I2C_Read... [10:09:31]Read from MH i2c: 01 07 00 79 22 00 00 00 00 00 FF 0F B0 [10:09:31]process_action close_receipt done [10:09:31]requested_data is exist [10:09:31]produce_requested_data [10:09:31]requested_item fm.sn is exist - process it [10:09:31]wFMCommunicate request_size=4 [10:09:31]MH_SAM_APDU [10:09:31]CAPDU: 80 11 00 00 [10:09:31]Write to MH i2c: E2 08 00 7A 22 80 11 00 00 00 00 00 00 16 [10:09:31]Write i2c OK [10:09:31]MH_I2C_Read... [10:09:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:31]Read from MH i2c: E2 [10:09:31]MH_I2C_Read... [10:09:31]Read from MH i2c: E2 17 00 [10:09:31]MH_I2C_Read... [10:09:31]Read from MH i2c: E2 17 00 7A 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 69 [10: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 [10:09:31]wFMCommunicate OK [10:09:31]requested_item fd.num is exist - process it [10:09:31]SAM_PROTO_GetFieldsCounters [10:09:31]wFMCommunicate request_size=4 [10:09:31]MH_SAM_APDU [10:09:31]CAPDU: 80 13 00 00 [10:09:31]Write to MH i2c: E2 08 00 7B 22 80 13 00 00 00 00 00 00 19 [10:09:31]Write i2c OK [10:09:31]MH_I2C_Read... [10:09:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:32]Read from MH i2c: E2 [10:09:32]MH_I2C_Read... [10:09:32]Read from MH i2c: E2 62 00 [10:09:32]MH_I2C_Read... [10:09:32]Read from MH i2c: E2 62 00 7B 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 3A F1 02 00 0E 04 04 00 20 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 EE [10:09: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 3A F1 02 00 0E 04 04 00 20 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 [10:09:32]wFMCommunicate OK [10:09:32]SAM_PROTO_GetFieldsCounters done [10:09:32]requested_item shift.num is exist - process it [10:09:32]requested_item shift.opened is exist - process it [10:09:32]req_shift_opened [10:09:32]FM_GetShiftState [10:09:32]SAM_PROTO_GetShiftState [10:09:32]wFMCommunicate request_size=4 [10:09:32]MH_SAM_APDU [10:09:32]CAPDU: 80 13 01 00 [10:09:32]Write to MH i2c: E2 08 00 7C 22 80 13 01 00 00 00 00 00 1B [10:09:32]Write i2c OK [10:09:32]MH_I2C_Read... [10:09:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:32]Read from MH i2c: E2 [10:09:32]MH_I2C_Read... [10:09:32]Read from MH i2c: E2 0E 00 [10:09:32]MH_I2C_Read... [10:09:32]Read from MH i2c: E2 0E 00 7C 22 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 21 [10:09:32]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [10:09:32]wFMCommunicate OK [10:09:32]SAM_PROTO_GetShiftState done [10:09:32]FM_GetShiftState done [10:09:32]req_shift_opened done [10:09:32]requested_item shift.open_date is exist - process it [10:09:32]req_shift_open_date [10:09:32]req_shift_open_date done [10:09:32]produce_requested_data done [10:09:32]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192826,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [10:09:32]process_action_free close_receipt [10:09:32]json_value_free [10:09:32]json_value_free done [10:09:32]process_json_proto returns [10:09:32]Send response to host [10:09:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192826,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [10:09:32]free response buf [10:09:32]execute_script done [10:09:32]execute_script returns [10:09:32]free content buf [10:09:32]Sock 9.Close socket [10:09:32]Sock 9.Thread stoped [10:09:35]OFD Sender: No OFD packet to send [10:09:40]OFD Sender: No OFD packet to send [10:09:45]OFD Sender: No OFD packet to send [10:09:50]OFD Sender: No OFD packet to send [10:09:55]OFD Sender: No OFD packet to send [10:10:00]OFD Sender: No OFD packet to send [10:10:05]OFD Sender: No OFD packet to send [10:10:10]OFD Sender: No OFD packet to send [10:10:15]OFD Sender: No OFD packet to send [10:10:20]OFD Sender: No OFD packet to send [10:10:25]OFD Sender: No OFD packet to send [10:10:30]OFD Sender: No OFD packet to send [10:10:35]OFD Sender: No OFD packet to send [10:10:40]OFD Sender: No OFD packet to send [10:10:45]OFD Sender: No OFD packet to send [10:10:50]OFD Sender: No OFD packet to send [10:10:55]OFD Sender: No OFD packet to send [10:11:00]OFD Sender: No OFD packet to send [10:11:05]OFD Sender: No OFD packet to send [10:11:10]OFD Sender: No OFD packet to send [10:11:15]OFD Sender: No OFD packet to send [10:11:20]OFD Sender: No OFD packet to send [10:11:25]OFD Sender: No OFD packet to send [10:11:26]accept exits with 8 [10:11:26]New connection [10:11:26]New thread 3066658148 created [10:11:26]Thread 3066801508 joined [10:11:26]Waiting for new connection... [10:11:26] Sock 8.Parse request [10:11:26]Sock 8.Check first char [10:11:26]Sock 8.First char is OK [10:11:26]request: POST /json_proto HTTP/1.0 [10:11:26]Method: POST [10:11:26]URL: /json_proto [10:11:26]Method is POST - this is cgi request [10:11:26]url: /json_proto [10:11:26]query_string will be loaded in cgi processing [10:11:26]execute_cgi json_proto POST (null) [10:11:26]execute_cgi path=json_proto method=POST [10:11:26]POST find Content-Length [10:11:26]Host: 172.17.63.131:8080 [10:11:26]Content-Length: 676 [10:11:26]Content-Type: application/json [10:11:26] [10:11:26]POST finish read [10:11:26]Found Content-Length = 676 [10:11:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32156", "tax_sys" : 0, "items" : [ { "pre_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" ] } } [10:11:26]execute_script... [10:11: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)32156", "tax_sys" : 0, "items" : [ { "pre_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" ] } } [10:11:26]POST & json_proto [10:11:26]process_json_proto [10:11:26]json parsed OK: [10:11:26]protocol is kg_v1.0 [10:11:26]action value=close_receipt [10:11:26]process_action close_receipt [10:11:26]cmd_close_receipt [10:11:26]MH_GetDate [10:11:26]Write to MH i2c: F0 00 00 7D 22 8E [10:11:26]Write i2c OK [10:11:26]MH_I2C_Read... [10:11:26]Read from MH i2c: F0 [10:11:26]MH_I2C_Read... [10:11:26]Read from MH i2c: F0 09 00 [10:11:26]MH_I2C_Read... [10:11:26]Read from MH i2c: F0 09 00 7D 22 00 D2 B4 20 67 22 05 6E 64 9D [10:11:26]GetLastDocTimeStamp 1730196571 [10:11:26]current date 1730196690 [10:11:26]FM_GetShiftState [10:11:26]SAM_PROTO_GetShiftState [10:11:26]wFMCommunicate request_size=4 [10:11:26]MH_SAM_APDU [10:11:26]CAPDU: 80 13 01 00 [10:11:26]Write to MH i2c: E2 08 00 7E 22 80 13 01 00 00 00 00 00 1D [10:11:26]Write i2c OK [10:11:26]MH_I2C_Read... [10:11:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:26]Read from MH i2c: E2 [10:11:26]MH_I2C_Read... [10:11:26]Read from MH i2c: E2 0E 00 [10:11:26]MH_I2C_Read... [10:11:26]Read from MH i2c: E2 0E 00 7E 22 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 23 [10:11:26]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [10:11:26]wFMCommunicate OK [10:11:26]SAM_PROTO_GetShiftState done [10:11:26]FM_GetShiftState done [10:11:26]opened in 1730161990 [10:11:26]opened+sec_in_day 1730248390 [10:11:26]quantity*price = 20003 [10:11:26]sum+1 = 20004 [10:11:26]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 СÐО: Общий режим Чек 33 29.10.2024 10:11 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192827 ФПД: 136267007723837 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T101131&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192827&fm=136267007723837&tin=02508201610067®Number=0000000000091776&sum=20000 [10:11:28]StoreToDocumentArchive [10:11:28]shift 544 fd 192827 [10:11:28]save to /storage/0544/doc_00192827 [10:11:28]save last doc name /storage/0544/doc_00192827 to /storage/kkm_last_doc_name [10:11:28]save OK [10:11:28]Clear old archive folders... [10:11:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:11:28]tlvbuf is 00F942E0 [10:11:28]SAM_PROTO_ClearQueue [10:11:28]wFMCommunicate request_size=4 [10:11:28]MH_SAM_APDU [10:11:28]CAPDU: 80 09 00 00 [10:11:28]Write to MH i2c: E2 08 00 8B 22 80 09 00 00 00 00 00 00 1F [10:11:28]Write i2c OK [10:11:28]MH_I2C_Read... [10:11:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:11:28]Read from MH i2c: E2 [10:11:28]MH_I2C_Read... [10:11:28]Read from MH i2c: E2 03 00 [10:11:28]MH_I2C_Read... [10:11:28]Read from MH i2c: E2 03 00 8B 22 00 90 00 21 [10:11:28]RAPDU: 90 00 [10:11:28]wFMCommunicate OK [10:11:28]SAM_PROTO_ClearQueue done [10:11:28]KKMCreateOFDPacket [10:11:28]OFDProtocolAddRootSTLVToBuf [10:11:28]FM_MakeSignedData [10:11:28]FM_MakeSignedData [10:11:28]SAM_PROTO_SignData [10:11:28]wFMCommunicate request_size=4 [10:11:28]MH_SAM_APDU [10:11:28]CAPDU: 80 0D 01 02 [10:11:28]Write to MH i2c: E2 08 00 8C 22 80 0D 01 02 00 00 00 00 27 [10:11:28]Write i2c OK [10:11:28]MH_I2C_Read... [10:11:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:11:28]Read from MH i2c: E2 [10:11:28]MH_I2C_Read... [10:11:28]Read from MH i2c: E2 03 00 [10:11:28]MH_I2C_Read... [10:11:28]Read from MH i2c: E2 03 00 8C 22 00 90 00 22 [10:11:28]RAPDU: 90 00 [10:11:28]wFMCommunicate OK [10:11:28]wFMCommunicate request_size=255 [10:11:28]MH_SAM_APDU [10:11: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 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 21 00 00 00 F4 03 04 00 D3 B4 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 7B [10:11:28]Write to MH i2c: E2 02 01 8D 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 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 21 00 00 00 F4 03 04 00 D3 B4 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 7B 00 00 77 [10:11:28]Write i2c OK [10:11:28]MH_I2C_Read... [10:11:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:28]Read from MH i2c: E2 [10:11:28]MH_I2C_Read... [10:11:28]Read from MH i2c: E2 03 00 [10:11:28]MH_I2C_Read... [10:11:28]Read from MH i2c: E2 03 00 8D 22 00 90 00 23 [10:11:28]RAPDU: 90 00 [10:11:28]wFMCommunicate OK [10:11:28]wFMCommunicate request_size=10 [10:11:28]MH_SAM_APDU [10:11:28]CAPDU: 80 0D 02 02 05 EF 22 97 09 3D [10:11:28]Write to MH i2c: E2 0D 00 8E 22 80 0D 02 02 05 00 EF 22 97 09 3D 00 00 22 [10:11:28]Write i2c OK [10:11:28]MH_I2C_Read... [10:11:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:28]Read from MH i2c: E2 [10:11:28]MH_I2C_Read... [10:11:28]Read from MH i2c: E2 03 00 [10:11:28]MH_I2C_Read... [10:11:28]Read from MH i2c: E2 03 00 8E 22 00 90 00 24 [10:11:28]RAPDU: 90 00 [10:11:28]wFMCommunicate OK [10:11:28]wFMCommunicate request_size=4 [10:11:28]MH_SAM_APDU [10:11:28]CAPDU: 80 0D 03 02 [10:11:28]Write to MH i2c: E2 08 00 8F 22 80 0D 03 02 00 00 00 00 2C [10:11:28]Write i2c OK [10:11:28]MH_I2C_Read... [10:11:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:11:28]Read from MH i2c: E2 [10:11:28]MH_I2C_Read... [10:11:28]Read from MH i2c: E2 0B 00 [10:11:28]MH_I2C_Read... [10:11:28]Read from MH i2c: E2 0B 00 8F 22 00 58 23 66 57 84 BE 0E E8 90 00 9D [10:11:28]RAPDU: 58 23 66 57 84 BE 0E E8 90 00 [10:11:28]wFMCommunicate OK [10:11:28]SAM_PROTO_SignData done [10:11:28]FM_MakeSignedData done [10:11:28]CreateOFDProtocolMessage [10:11:28]wFMCommunicate request_size=4 [10:11:28]MH_SAM_APDU [10:11:28]CAPDU: 80 11 00 00 [10:11:28]Write to MH i2c: E2 08 00 90 22 80 11 00 00 00 00 00 00 2C [10:11:28]Write i2c OK [10:11:28]MH_I2C_Read... [10:11:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:28]Read from MH i2c: E2 [10:11:28]MH_I2C_Read... [10:11:28]Read from MH i2c: E2 17 00 [10:11:28]MH_I2C_Read... [10:11:28]Read from MH i2c: E2 17 00 90 22 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:11:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:11:28]wFMCommunicate OK [10:11:28]CreateOFDProtocolMessage done [10:11:28]OFDSenderStorePacket 192827 [10:11:28]StoreOFDPacket docnum=192827 [10:11: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 53 51 07 01 94 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 21 00 00 00 F4 03 04 00 D3 B4 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 7B EF 22 97 09 3D 58 23 66 57 84 BE 0E E8 [10:11:28]CheckFolder [10:11:28]dirname=/storage/ofd_packets [10:11:28]CheckFolder done [10:11:28]ProducePacketName [10:11:28]name=ofd_packets/00192827 [10:11:28]NVStorageSaveData ofd_packets/00192827 [10:11:28]File name is /storage/ofd_packets/00192827 [10:11:28]Write 301 bytes [10:11:28]NVStorageSaveData done [10:11:28]OFDSenderStorePacket done [10:11:28]KKMCreateOFDPacket done [10:11:28]NVStorageSaveData kkm_last_timestamp [10:11:28]File name is /storage/kkm_last_timestamp [10:11:28]Write 4 bytes [10:11:28]NVStorageSaveData done [10:11:28]ExternCall_PrintAddStr [10:11:28]wPrintStart [10:11:28]Write to MH i2c: 01 00 00 91 22 B3 [10:11:28]Write i2c OK [10:11:28]MH_I2C_Read... [10:11:28]Read from MH i2c: 01 [10:11:28]MH_I2C_Read... [10:11:28]Read from MH i2c: 01 07 00 [10:11:28]MH_I2C_Read... [10:11:28]Read from MH i2c: 01 07 00 91 22 00 00 00 00 00 FF 0F C8 [10:11:28]RasterBufferAndPrint [10:11:28]line Счет N : (1)32156 [10:11:28]line ИÐÐ: 02508201610067 [10:11:28]line Контрольно-КаÑÑовый Чек [10:11:28]line ПРОДÐЖР[10:11:28]line ТРК (МРК, ГÐК) : 21 [10:11:28]line Товар: 2710124130 [10:11:28]line Ðи-92-К-5 [10:11:28]line 2.990 * 66.90 [10:11:28]line = 200.03 [10:11:28]line ÐДС 12% ÐСП 1% [10:11:28]line > о реализуемом товаре [10:11:28]line ОКРУГЛЕÐИЕ: -0.03 [10:11:28]line ИТОГО: 200.00 [10:11:28]line ВнеÑено: 200.00 [10:11:28]line СДÐЧÐ: 0.00 [10:11:28]line ÐСП 1% : 1.77 [10:11:28]line ÐДС 12% : 21.24 [10:11:28]line Ðаличными: 200.00 [10:11:28]line Безнал.: 0.00 [10:11:28]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [10:11:28]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [10:11:28]line СÐО: Общий режим [10:11:28]line Чек 33 29.10.2024 10:11 [10:11:28]line Смена: 544 ФФД: 1.0 [10:11:28]line ЗÐМ: 0300000110 [10:11:28]line РÐМ: 0000000000091776 [10:11:28]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:11:28]line ФМ: 0000000000871754 [10:11:28]line ФД: 192827 [10:11:28]line ФПД: 136267007723837 [10:11:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T101131&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192827&fm=136267007723837&tin=02508201610067®Number=0000000000091776&sum=20000 [10:11:28]OFD Sender: Processing packet 192827 [packets to send 75, broken 74] [10:11:28]ProducePacketName [10:11:28]name=ofd_packets/00192827 [10:11:28]OFD Sender: To server: ‡•öpG, [10:11:28]CommunicateWithHost lk.salyk.kg:30040 [10:11:28]ConnectInit lk.salyk.kg [10:11:28]written 0, free lines is 4095 [10:11:29]Connected sock=9 [10:11: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 53 51 07 01 94 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 21 00 00 00 F4 03 04 00 D3 B4 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 7B EF 22 97 09 3D 58 23 66 57 84 BE 0E E8 [10:11: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 8E AB 47 00 B4 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 3B F1 02 00 F4 03 04 00 94 59 20 67 B6 04 01 00 00 39 1B 61 68 7D 44 EC 05 [10:11:29]CommunicateWithHost err = 0 [10:11:29]CheckOFDResponse [10:11:29]1017 (14) - 77093643461234 [10:11:29]1041 (16) - 0000000000871754 [10:11:29]1040 (4) - 192827 [10:11:29]1012 (4) - 29.10.2024 03:42 [10:11:29]1206 (1) - 0 [10:11:29]OFD Sender: Remove packet 192827 [10:11:29]ProducePacketName [10:11:29]name=ofd_packets/00192827 [10:11:29]NVStorageDeleteData [10:11:29]Write to MH i2c: 01 00 00 BC 22 DE [10:11:29]Write i2c OK [10:11:29]MH_I2C_Read... [10:11:29]Read from MH i2c: 01 [10:11:29]MH_I2C_Read... [10:11:29]Read from MH i2c: 01 07 00 [10:11:29]MH_I2C_Read... [10:11:29]Read from MH i2c: 01 07 00 BC 22 00 00 00 00 00 BB 0C AC [10:11:29]RasterBufferAndPrint [10:11:29]line [10:11:29]line [10:11:29]line [10:11:29]line [10:11:29]line [10:11:29]written 0, free lines is 3266 [10:11:29]MH_Cut [10:11:29]Write to MH i2c: D1 01 00 C3 22 01 B7 [10:11:29]Write i2c OK [10:11:29]MH_I2C_Read... [10:11:29]Read from MH i2c: D1 [10:11:29]MH_I2C_Read... [10:11:29]Read from MH i2c: D1 01 00 [10:11:29]MH_I2C_Read... [10:11:29]Read from MH i2c: D1 01 00 C3 22 00 B6 [10:11:29]Write to MH i2c: 01 00 00 C4 22 E6 [10:11:29]Write i2c OK [10:11:29]MH_I2C_Read... [10:11:29]OFD Sender: No OFD packet to send [10:11:30]*** Cut start [10:11:30]*** Partial cut [10:11:30]*** CUTSNS_PIN = 1 [10:11:30]*** CUTSNS_PIN = 0 [10:11:30]*** Brake cut motor [10:11:30]Read from MH i2c: 01 [10:11:30]MH_I2C_Read... [10:11:30]*** Stop cut motor [10:11:30]*** Cut end [10:11:30]Read from MH i2c: 01 07 00 [10:11:30]MH_I2C_Read... [10:11:30]Read from MH i2c: 01 07 00 C4 22 00 00 00 00 00 FF 0F FB [10:11:30]process_action close_receipt done [10:11:30]requested_data is exist [10:11:30]produce_requested_data [10:11:30]requested_item fm.sn is exist - process it [10:11:30]wFMCommunicate request_size=4 [10:11:30]MH_SAM_APDU [10:11:30]CAPDU: 80 11 00 00 [10:11:30]Write to MH i2c: E2 08 00 C5 22 80 11 00 00 00 00 00 00 61 [10:11:30]Write i2c OK [10:11:30]MH_I2C_Read... [10:11:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:30]Read from MH i2c: E2 [10:11:30]MH_I2C_Read... [10:11:30]Read from MH i2c: E2 17 00 [10:11:30]MH_I2C_Read... [10:11:30]Read from MH i2c: E2 17 00 C5 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B4 [10:11: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:11:30]wFMCommunicate OK [10:11:30]requested_item fd.num is exist - process it [10:11:30]SAM_PROTO_GetFieldsCounters [10:11:30]wFMCommunicate request_size=4 [10:11:30]MH_SAM_APDU [10:11:30]CAPDU: 80 13 00 00 [10:11:30]Write to MH i2c: E2 08 00 C6 22 80 13 00 00 00 00 00 00 64 [10:11:30]Write i2c OK [10:11:30]MH_I2C_Read... [10:11:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:11:31]Read from MH i2c: E2 [10:11:31]MH_I2C_Read... [10:11:31]Read from MH i2c: E2 62 00 [10:11:31]MH_I2C_Read... [10:11:31]Read from MH i2c: E2 62 00 C6 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 3B F1 02 00 0E 04 04 00 20 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 3D [10:11: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 3B F1 02 00 0E 04 04 00 20 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 [10:11:31]wFMCommunicate OK [10:11:31]SAM_PROTO_GetFieldsCounters done [10:11:31]requested_item shift.num is exist - process it [10:11:31]requested_item shift.opened is exist - process it [10:11:31]req_shift_opened [10:11:31]FM_GetShiftState [10:11:31]SAM_PROTO_GetShiftState [10:11:31]wFMCommunicate request_size=4 [10:11:31]MH_SAM_APDU [10:11:31]CAPDU: 80 13 01 00 [10:11:31]Write to MH i2c: E2 08 00 C7 22 80 13 01 00 00 00 00 00 66 [10:11:31]Write i2c OK [10:11:31]MH_I2C_Read... [10:11:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:31]Read from MH i2c: E2 [10:11:31]MH_I2C_Read... [10:11:31]Read from MH i2c: E2 0E 00 [10:11:31]MH_I2C_Read... [10:11:31]Read from MH i2c: E2 0E 00 C7 22 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 6C [10:11:31]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [10:11:31]wFMCommunicate OK [10:11:31]SAM_PROTO_GetShiftState done [10:11:31]FM_GetShiftState done [10:11:31]req_shift_opened done [10:11:31]requested_item shift.open_date is exist - process it [10:11:31]req_shift_open_date [10:11:31]req_shift_open_date done [10:11:31]produce_requested_data done [10:11:31]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192827,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [10:11:31]process_action_free close_receipt [10:11:31]json_value_free [10:11:31]json_value_free done [10:11:31]process_json_proto returns [10:11:31]Send response to host [10:11:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192827,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [10:11:31]free response buf [10:11:31]execute_script done [10:11:31]execute_script returns [10:11:31]free content buf [10:11:31]Sock 8.Close socket [10:11:31]Sock 8.Thread stoped [10:11:34]OFD Sender: No OFD packet to send [10:11:39]OFD Sender: No OFD packet to send [10:11:44]OFD Sender: No OFD packet to send [10:11:49]OFD Sender: No OFD packet to send [10:11:54]OFD Sender: No OFD packet to send [10:11:59]OFD Sender: No OFD packet to send [10:12:04]OFD Sender: No OFD packet to send [10:12:09]OFD Sender: No OFD packet to send [10:12:14]OFD Sender: No OFD packet to send [10:12:19]OFD Sender: No OFD packet to send [10:12:24]OFD Sender: No OFD packet to send [10:12:29]OFD Sender: No OFD packet to send [10:12:34]OFD Sender: No OFD packet to send [10:12:39]OFD Sender: No OFD packet to send [10:12:44]OFD Sender: No OFD packet to send [10:12:49]OFD Sender: No OFD packet to send [10:12:54]OFD Sender: No OFD packet to send [10:12:59]OFD Sender: No OFD packet to send [10:13:04]OFD Sender: No OFD packet to send [10:13:09]OFD Sender: No OFD packet to send [10:13:14]OFD Sender: No OFD packet to send [10:13:19]OFD Sender: No OFD packet to send [10:13:21]accept exits with 10 [10:13:21]New connection [10:13:21]New thread 3066801508 created [10:13:21]Thread 3066658148 joined [10:13:21]Waiting for new connection... [10:13:21] Sock 10.Parse request [10:13:21]Sock 10.Check first char [10:13:21]Sock 10.First char is OK [10:13:21]request: POST /json_proto HTTP/1.0 [10:13:21]Method: POST [10:13:21]URL: /json_proto [10:13:21]Method is POST - this is cgi request [10:13:21]url: /json_proto [10:13:21]query_string will be loaded in cgi processing [10:13:21]execute_cgi json_proto POST (null) [10:13:21]execute_cgi path=json_proto method=POST [10:13:21]POST find Content-Length [10:13:21]Host: 172.17.63.131:8080 [10:13:21]Content-Length: 676 [10:13:21]Content-Type: application/json [10:13:21] [10:13:21]POST finish read [10:13:21]Found Content-Length = 676 [10:13:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:21]execute_script... [10: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)32157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:21]POST & json_proto [10:13:21]process_json_proto [10:13:21]json parsed OK: [10:13:21]protocol is kg_v1.0 [10:13:21]action value=close_receipt [10:13:21]process_action close_receipt [10:13:21]cmd_close_receipt [10:13:21]MH_GetDate [10:13:21]Write to MH i2c: F0 00 00 C8 22 D9 [10:13:21]Write i2c OK [10:13:21]MH_I2C_Read... [10:13:21]Read from MH i2c: F0 [10:13:21]MH_I2C_Read... [10:13:21]Read from MH i2c: F0 09 00 [10:13:21]MH_I2C_Read... [10:13:21]Read from MH i2c: F0 09 00 C8 22 00 45 B5 20 67 22 05 6E 64 5C [10:13:21]GetLastDocTimeStamp 1730196691 [10:13:21]current date 1730196805 [10:13:21]FM_GetShiftState [10:13:21]SAM_PROTO_GetShiftState [10:13:21]wFMCommunicate request_size=4 [10:13:21]MH_SAM_APDU [10:13:21]CAPDU: 80 13 01 00 [10:13:21]Write to MH i2c: E2 08 00 C9 22 80 13 01 00 00 00 00 00 68 [10:13:21]Write i2c OK [10:13:21]MH_I2C_Read... [10:13:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:21]Read from MH i2c: E2 [10:13:21]MH_I2C_Read... [10:13:21]Read from MH i2c: E2 0E 00 [10:13:21]MH_I2C_Read... [10:13:21]Read from MH i2c: E2 0E 00 C9 22 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 6E [10:13:21]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [10:13:21]wFMCommunicate OK [10:13:21]SAM_PROTO_GetShiftState done [10:13:21]FM_GetShiftState done [10:13:21]opened in 1730161990 [10:13:21]opened+sec_in_day 1730248390 [10:13:21]quantity*price = 50041 [10:13:21]sum+1 = 50042 [10: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 СÐО: Общий режим Чек 34 29.10.2024 10:13 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192828 ФПД: 24193341802648 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T101325&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192828&fm=24193341802648&tin=02508201610067®Number=0000000000091776&sum=50000 [10:13:22]StoreToDocumentArchive [10:13:22]shift 544 fd 192828 [10:13:22]save to /storage/0544/doc_00192828 [10:13:22]save last doc name /storage/0544/doc_00192828 to /storage/kkm_last_doc_name [10:13:22]save OK [10:13:22]Clear old archive folders... [10:13:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:13:22]tlvbuf is 00FB8580 [10:13:22]SAM_PROTO_ClearQueue [10:13:22]wFMCommunicate request_size=4 [10:13:22]MH_SAM_APDU [10:13:22]CAPDU: 80 09 00 00 [10:13:22]Write to MH i2c: E2 08 00 D6 22 80 09 00 00 00 00 00 00 6A [10:13:22]Write i2c OK [10:13:22]MH_I2C_Read... [10:13:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:13:22]Read from MH i2c: E2 [10:13:22]MH_I2C_Read... [10:13:22]Read from MH i2c: E2 03 00 [10:13:22]MH_I2C_Read... [10:13:22]Read from MH i2c: E2 03 00 D6 22 00 90 00 6C [10:13:22]RAPDU: 90 00 [10:13:22]wFMCommunicate OK [10:13:22]SAM_PROTO_ClearQueue done [10:13:22]KKMCreateOFDPacket [10:13:22]OFDProtocolAddRootSTLVToBuf [10:13:22]FM_MakeSignedData [10:13:22]FM_MakeSignedData [10:13:22]SAM_PROTO_SignData [10:13:22]wFMCommunicate request_size=4 [10:13:22]MH_SAM_APDU [10:13:22]CAPDU: 80 0D 01 02 [10:13:22]Write to MH i2c: E2 08 00 D7 22 80 0D 01 02 00 00 00 00 72 [10:13:22]Write i2c OK [10:13:22]MH_I2C_Read... [10:13:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:13:22]Read from MH i2c: E2 [10:13:22]MH_I2C_Read... [10:13:22]Read from MH i2c: E2 03 00 [10:13:22]MH_I2C_Read... [10:13:22]Read from MH i2c: E2 03 00 D7 22 00 90 00 6D [10:13:22]RAPDU: 90 00 [10:13:22]wFMCommunicate OK [10:13:22]wFMCommunicate request_size=255 [10:13:22]MH_SAM_APDU [10: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 22 00 00 00 F4 03 04 00 45 B5 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 16 [10:13:22]Write to MH i2c: E2 02 01 D8 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 45 B5 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 16 00 00 10 [10:13:22]Write i2c OK [10:13:22]MH_I2C_Read... [10:13:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:23]Read from MH i2c: E2 [10:13:23]MH_I2C_Read... [10:13:23]Read from MH i2c: E2 03 00 [10:13:23]MH_I2C_Read... [10:13:23]Read from MH i2c: E2 03 00 D8 22 00 90 00 6E [10:13:23]RAPDU: 90 00 [10:13:23]wFMCommunicate OK [10:13:23]wFMCommunicate request_size=10 [10:13:23]MH_SAM_APDU [10:13:23]CAPDU: 80 0D 02 02 05 00 F3 8B 48 98 [10:13:23]Write to MH i2c: E2 0D 00 D9 22 80 0D 02 02 05 00 00 F3 8B 48 98 00 00 DD [10:13:23]Write i2c OK [10:13:23]MH_I2C_Read... [10:13:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:23]Read from MH i2c: E2 [10:13:23]MH_I2C_Read... [10:13:23]Read from MH i2c: E2 03 00 [10:13:23]MH_I2C_Read... [10:13:23]Read from MH i2c: E2 03 00 D9 22 00 90 00 6F [10:13:23]RAPDU: 90 00 [10:13:23]wFMCommunicate OK [10:13:23]wFMCommunicate request_size=4 [10:13:23]MH_SAM_APDU [10:13:23]CAPDU: 80 0D 03 02 [10:13:23]Write to MH i2c: E2 08 00 DA 22 80 0D 03 02 00 00 00 00 77 [10:13:23]Write i2c OK [10:13:23]MH_I2C_Read... [10:13:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:13:23]Read from MH i2c: E2 [10:13:23]MH_I2C_Read... [10:13:23]Read from MH i2c: E2 0B 00 [10:13:23]MH_I2C_Read... [10:13:23]Read from MH i2c: E2 0B 00 DA 22 00 02 05 C6 3C 46 96 5F 1D 90 00 D9 [10:13:23]RAPDU: 02 05 C6 3C 46 96 5F 1D 90 00 [10:13:23]wFMCommunicate OK [10:13:23]SAM_PROTO_SignData done [10:13:23]FM_MakeSignedData done [10:13:23]CreateOFDProtocolMessage [10:13:23]wFMCommunicate request_size=4 [10:13:23]MH_SAM_APDU [10:13:23]CAPDU: 80 11 00 00 [10:13:23]Write to MH i2c: E2 08 00 DB 22 80 11 00 00 00 00 00 00 77 [10:13:23]Write i2c OK [10:13:23]MH_I2C_Read... [10:13:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:23]Read from MH i2c: E2 [10:13:23]MH_I2C_Read... [10:13:23]Read from MH i2c: E2 17 00 [10:13:23]MH_I2C_Read... [10:13:23]Read from MH i2c: E2 17 00 DB 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CA [10: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 [10:13:23]wFMCommunicate OK [10:13:23]CreateOFDProtocolMessage done [10:13:23]OFDSenderStorePacket 192828 [10:13:23]StoreOFDPacket docnum=192828 [10: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 29 7B 07 01 CD 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 45 B5 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 16 00 F3 8B 48 98 02 05 C6 3C 46 96 5F 1D [10:13:23]CheckFolder [10:13:23]dirname=/storage/ofd_packets [10:13:23]CheckFolder done [10:13:23]ProducePacketName [10:13:23]name=ofd_packets/00192828 [10:13:23]NVStorageSaveData ofd_packets/00192828 [10:13:23]File name is /storage/ofd_packets/00192828 [10:13:23]Write 301 bytes [10:13:23]NVStorageSaveData done [10:13:23]OFDSenderStorePacket done [10:13:23]KKMCreateOFDPacket done [10:13:23]NVStorageSaveData kkm_last_timestamp [10:13:23]File name is /storage/kkm_last_timestamp [10:13:23]Write 4 bytes [10:13:23]NVStorageSaveData done [10:13:23]ExternCall_PrintAddStr [10:13:23]wPrintStart [10:13:23]Write to MH i2c: 01 00 00 DC 22 FE [10:13:23]Write i2c OK [10:13:23]MH_I2C_Read... [10:13:23]Read from MH i2c: 01 [10:13:23]MH_I2C_Read... [10:13:23]Read from MH i2c: 01 07 00 [10:13:23]MH_I2C_Read... [10:13:23]Read from MH i2c: 01 07 00 DC 22 00 00 00 00 00 FF 0F 13 [10:13:23]RasterBufferAndPrint [10:13:23]line Счет N : (1)32157 [10:13:23]line ИÐÐ: 02508201610067 [10:13:23]line Контрольно-КаÑÑовый Чек [10:13:23]line ПРОДÐЖР[10:13:23]line ТРК (МРК, ГÐК) : 21 [10:13:23]line Товар: 2710124130 [10:13:23]line Ðи-92-К-5 [10:13:23]line 7.480 * 66.90 [10:13:23]line = 500.41 [10:13:23]line ÐДС 12% ÐСП 1% [10:13:23]line > о реализуемом товаре [10:13:23]line ОКРУГЛЕÐИЕ: -0.41 [10:13:23]line ИТОГО: 500.00 [10:13:23]line ВнеÑено: 500.00 [10:13:23]line СДÐЧÐ: 0.00 [10:13:23]line ÐСП 1% : 4.43 [10:13:23]line ÐДС 12% : 53.14 [10:13:23]line Ðаличными: 500.00 [10:13:23]line Безнал.: 0.00 [10:13:23]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [10:13:23]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [10:13:23]line СÐО: Общий режим [10:13:23]line Чек 34 29.10.2024 10:13 [10:13:23]line Смена: 544 ФФД: 1.0 [10:13:23]line ЗÐМ: 0300000110 [10:13:23]line РÐМ: 0000000000091776 [10:13:23]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:13:23]line ФМ: 0000000000871754 [10:13:23]line ФД: 192828 [10:13:23]line ФПД: 24193341802648 [10:13:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T101325&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192828&fm=24193341802648&tin=02508201610067®Number=0000000000091776&sum=50000 [10:13:23]OFD Sender: Processing packet 192828 [packets to send 75, broken 74] [10:13:23]ProducePacketName [10:13:23]name=ofd_packets/00192828 [10:13:23]OFD Sender: To server: ‡•öpG, [10:13:23]CommunicateWithHost lk.salyk.kg:30040 [10:13:23]ConnectInit lk.salyk.kg [10:13:23]written 0, free lines is 4095 [10:13:23]Connected sock=9 [10: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 29 7B 07 01 CD 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 45 B5 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 16 00 F3 8B 48 98 02 05 C6 3C 46 96 5F 1D [10: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 E0 77 47 00 F3 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3C F1 02 00 F4 03 04 00 06 5A 20 67 B6 04 01 00 00 BA 43 44 82 21 43 2C 07 [10:13:23]CommunicateWithHost err = 0 [10:13:23]CheckOFDResponse [10:13:23]1017 (14) - 77093643461234 [10:13:23]1041 (16) - 0000000000871754 [10:13:23]1040 (4) - 192828 [10:13:23]1012 (4) - 29.10.2024 03:44 [10:13:23]1206 (1) - 0 [10:13:23]OFD Sender: Remove packet 192828 [10:13:23]ProducePacketName [10:13:23]name=ofd_packets/00192828 [10:13:23]NVStorageDeleteData [10:13:24]Write to MH i2c: 01 00 00 07 23 2A [10:13:24]Write i2c OK [10:13:24]MH_I2C_Read... [10:13:24]Read from MH i2c: 01 [10:13:24]MH_I2C_Read... [10:13:24]Read from MH i2c: 01 07 00 [10:13:24]MH_I2C_Read... [10:13:24]Read from MH i2c: 01 07 00 07 23 00 00 00 00 00 9B 0C D8 [10:13:24]RasterBufferAndPrint [10:13:24]line [10:13:24]line [10:13:24]line [10:13:24]line [10:13:24]line [10:13:24]written 0, free lines is 3233 [10:13:24]MH_Cut [10:13:24]Write to MH i2c: D1 01 00 0E 23 01 03 [10:13:24]Write i2c OK [10:13:24]MH_I2C_Read... [10:13:24]Read from MH i2c: D1 [10:13:24]MH_I2C_Read... [10:13:24]Read from MH i2c: D1 01 00 [10:13:24]MH_I2C_Read... [10:13:24]Read from MH i2c: D1 01 00 0E 23 00 02 [10:13:24]Write to MH i2c: 01 00 00 0F 23 32 [10:13:24]Write i2c OK [10:13:24]MH_I2C_Read... [10:13:24]OFD Sender: No OFD packet to send [10:13:24]*** Cut start [10:13:24]*** Partial cut [10:13:24]*** CUTSNS_PIN = 1 [10:13:24]*** CUTSNS_PIN = 0 [10:13:25]*** Brake cut motor [10:13:25]Read from MH i2c: 01 [10:13:25]MH_I2C_Read... [10:13:25]*** Stop cut motor [10:13:25]*** Cut end [10:13:25]Read from MH i2c: 01 07 00 [10:13:25]MH_I2C_Read... [10:13:25]Read from MH i2c: 01 07 00 0F 23 00 00 00 00 00 FF 0F 47 [10:13:25]process_action close_receipt done [10:13:25]requested_data is exist [10:13:25]produce_requested_data [10:13:25]requested_item fm.sn is exist - process it [10:13:25]wFMCommunicate request_size=4 [10:13:25]MH_SAM_APDU [10:13:25]CAPDU: 80 11 00 00 [10:13:25]Write to MH i2c: E2 08 00 10 23 80 11 00 00 00 00 00 00 AD [10:13:25]Write i2c OK [10:13:25]MH_I2C_Read... [10:13:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:25]Read from MH i2c: E2 [10:13:25]MH_I2C_Read... [10:13:25]Read from MH i2c: E2 17 00 [10:13:25]MH_I2C_Read... [10:13:25]Read from MH i2c: E2 17 00 10 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 00 [10: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 [10:13:25]wFMCommunicate OK [10:13:25]requested_item fd.num is exist - process it [10:13:25]SAM_PROTO_GetFieldsCounters [10:13:25]wFMCommunicate request_size=4 [10:13:25]MH_SAM_APDU [10:13:25]CAPDU: 80 13 00 00 [10:13:25]Write to MH i2c: E2 08 00 11 23 80 13 00 00 00 00 00 00 B0 [10:13:25]Write i2c OK [10:13:25]MH_I2C_Read... [10:13:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:13:25]Read from MH i2c: E2 [10:13:25]MH_I2C_Read... [10:13:25]Read from MH i2c: E2 62 00 [10:13:25]MH_I2C_Read... [10:13:25]Read from MH i2c: E2 62 00 11 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 3C F1 02 00 0E 04 04 00 20 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 8D [10: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 3C F1 02 00 0E 04 04 00 20 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 [10:13:25]wFMCommunicate OK [10:13:25]SAM_PROTO_GetFieldsCounters done [10:13:25]requested_item shift.num is exist - process it [10:13:25]requested_item shift.opened is exist - process it [10:13:25]req_shift_opened [10:13:25]FM_GetShiftState [10:13:25]SAM_PROTO_GetShiftState [10:13:25]wFMCommunicate request_size=4 [10:13:25]MH_SAM_APDU [10:13:25]CAPDU: 80 13 01 00 [10:13:25]Write to MH i2c: E2 08 00 12 23 80 13 01 00 00 00 00 00 B2 [10:13:25]Write i2c OK [10:13:25]MH_I2C_Read... [10:13:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:25]Read from MH i2c: E2 [10:13:25]MH_I2C_Read... [10:13:25]Read from MH i2c: E2 0E 00 [10:13:25]MH_I2C_Read... [10:13:25]Read from MH i2c: E2 0E 00 12 23 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 B8 [10:13:25]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [10:13:25]wFMCommunicate OK [10:13:25]SAM_PROTO_GetShiftState done [10:13:25]FM_GetShiftState done [10:13:25]req_shift_opened done [10:13:25]requested_item shift.open_date is exist - process it [10:13:25]req_shift_open_date [10:13:25]req_shift_open_date done [10:13:25]produce_requested_data done [10:13:25]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192828,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [10:13:25]process_action_free close_receipt [10:13:25]json_value_free [10:13:25]json_value_free done [10:13:25]process_json_proto returns [10:13:25]Send response to host [10:13:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192828,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [10:13:25]free response buf [10:13:25]execute_script done [10:13:25]execute_script returns [10:13:25]free content buf [10:13:25]Sock 10.Close socket [10:13:25]Sock 10.Thread stoped [10:13:29]OFD Sender: No OFD packet to send [10:13:34]OFD Sender: No OFD packet to send [10:13:39]OFD Sender: No OFD packet to send [10:13:44]OFD Sender: No OFD packet to send [10:13:49]OFD Sender: No OFD packet to send [10:13:54]OFD Sender: No OFD packet to send [10:13:59]OFD Sender: No OFD packet to send [10:14:04]OFD Sender: No OFD packet to send [10:14:09]OFD Sender: No OFD packet to send [10:14:14]OFD Sender: No OFD packet to send [10:14:19]OFD Sender: No OFD packet to send [10:14:24]OFD Sender: No OFD packet to send [10:14:29]OFD Sender: No OFD packet to send [10:14:34]OFD Sender: No OFD packet to send [10:14:39]OFD Sender: No OFD packet to send [10:14:44]OFD Sender: No OFD packet to send [10:14:49]OFD Sender: No OFD packet to send [10:14:54]OFD Sender: No OFD packet to send [10:14:59]OFD Sender: No OFD packet to send [10:15:04]OFD Sender: No OFD packet to send [10:15:09]OFD Sender: No OFD packet to send [10:15:14]OFD Sender: No OFD packet to send [10:15:19]OFD Sender: No OFD packet to send [10:15:24]OFD Sender: No OFD packet to send [10:15:29]OFD Sender: No OFD packet to send [10:15:34]OFD Sender: No OFD packet to send [10:15:39]OFD Sender: No OFD packet to send [10:15:44]OFD Sender: No OFD packet to send [10:15:49]OFD Sender: No OFD packet to send [10:15:54]OFD Sender: No OFD packet to send [10:15:59]OFD Sender: No OFD packet to send [10:16:04]OFD Sender: No OFD packet to send [10:16:09]OFD Sender: No OFD packet to send [10:16:14]OFD Sender: No OFD packet to send [10:16:19]OFD Sender: No OFD packet to send [10:16:24]OFD Sender: No OFD packet to send [10:16:29]OFD Sender: No OFD packet to send [10:16:34]OFD Sender: No OFD packet to send [10:16:39]OFD Sender: No OFD packet to send [10:16:44]OFD Sender: No OFD packet to send [10:16:49]OFD Sender: No OFD packet to send [10:16:54]OFD Sender: No OFD packet to send [10:16:59]OFD Sender: No OFD packet to send [10:17:04]OFD Sender: No OFD packet to send [10:17:09]OFD Sender: No OFD packet to send [10:17:14]OFD Sender: No OFD packet to send [10:17:19]OFD Sender: No OFD packet to send [10:17:24]OFD Sender: No OFD packet to send [10:17:28]accept exits with 8 [10:17:28]New connection [10:17:28]New thread 3066658148 created [10:17:28]Thread 3066801508 joined [10:17:28]Waiting for new connection... [10:17:28] Sock 8.Parse request [10:17:28]Sock 8.Check first char [10:17:28]Sock 8.First char is OK [10:17:28]request: POST /json_proto HTTP/1.0 [10:17:28]Method: POST [10:17:28]URL: /json_proto [10:17:28]Method is POST - this is cgi request [10:17:28]url: /json_proto [10:17:28]query_string will be loaded in cgi processing [10:17:28]execute_cgi json_proto POST (null) [10:17:28]execute_cgi path=json_proto method=POST [10:17:28]POST find Content-Length [10:17:28]Host: 172.17.63.131:8080 [10:17:28]Content-Length: 676 [10:17:28]Content-Type: application/json [10:17:28] [10:17:28]POST finish read [10:17:28]Found Content-Length = 676 [10:17:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32158", "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:17:28]execute_script... [10:17:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32158", "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:17:28]POST & json_proto [10:17:28]process_json_proto [10:17:28]json parsed OK: [10:17:28]protocol is kg_v1.0 [10:17:28]action value=close_receipt [10:17:28]process_action close_receipt [10:17:28]cmd_close_receipt [10:17:28]MH_GetDate [10:17:28]Write to MH i2c: F0 00 00 13 23 25 [10:17:28]Write i2c OK [10:17:28]MH_I2C_Read... [10:17:28]Read from MH i2c: F0 [10:17:28]MH_I2C_Read... [10:17:28]Read from MH i2c: F0 09 00 [10:17:28]MH_I2C_Read... [10:17:28]Read from MH i2c: F0 09 00 13 23 00 3C B6 20 67 22 05 6E 64 A0 [10:17:28]GetLastDocTimeStamp 1730196805 [10:17:28]current date 1730197052 [10:17:28]FM_GetShiftState [10:17:28]SAM_PROTO_GetShiftState [10:17:28]wFMCommunicate request_size=4 [10:17:28]MH_SAM_APDU [10:17:28]CAPDU: 80 13 01 00 [10:17:28]Write to MH i2c: E2 08 00 14 23 80 13 01 00 00 00 00 00 B4 [10:17:28]Write i2c OK [10:17:28]MH_I2C_Read... [10:17:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:28]Read from MH i2c: E2 [10:17:28]MH_I2C_Read... [10:17:28]Read from MH i2c: E2 0E 00 [10:17:28]MH_I2C_Read... [10:17:28]Read from MH i2c: E2 0E 00 14 23 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 BA [10:17:28]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [10:17:28]wFMCommunicate OK [10:17:28]SAM_PROTO_GetShiftState done [10:17:28]FM_GetShiftState done [10:17:28]opened in 1730161990 [10:17:28]opened+sec_in_day 1730248390 [10:17:28]quantity*price = 50041 [10:17:28]sum+1 = 50042 [10:17: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 СÐО: Общий режим Чек 35 29.10.2024 10:17 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192829 ФПД: 104828484889057 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T101732&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192829&fm=104828484889057&tin=02508201610067®Number=0000000000091776&sum=50000 [10:17:29]StoreToDocumentArchive [10:17:29]shift 544 fd 192829 [10:17:29]save to /storage/0544/doc_00192829 [10:17:29]save last doc name /storage/0544/doc_00192829 to /storage/kkm_last_doc_name [10:17:29]save OK [10:17:29]Clear old archive folders... [10:17:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:17:29]tlvbuf is 00FB8330 [10:17:29]SAM_PROTO_ClearQueue [10:17:29]wFMCommunicate request_size=4 [10:17:29]MH_SAM_APDU [10:17:29]CAPDU: 80 09 00 00 [10:17:29]Write to MH i2c: E2 08 00 21 23 80 09 00 00 00 00 00 00 B6 [10:17:29]Write i2c OK [10:17:29]MH_I2C_Read... [10:17:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:17:29]Read from MH i2c: E2 [10:17:29]MH_I2C_Read... [10:17:29]Read from MH i2c: E2 03 00 [10:17:29]MH_I2C_Read... [10:17:29]Read from MH i2c: E2 03 00 21 23 00 90 00 B8 [10:17:29]RAPDU: 90 00 [10:17:29]wFMCommunicate OK [10:17:29]SAM_PROTO_ClearQueue done [10:17:29]KKMCreateOFDPacket [10:17:29]OFDProtocolAddRootSTLVToBuf [10:17:29]FM_MakeSignedData [10:17:29]FM_MakeSignedData [10:17:29]SAM_PROTO_SignData [10:17:29]wFMCommunicate request_size=4 [10:17:29]MH_SAM_APDU [10:17:29]CAPDU: 80 0D 01 02 [10:17:29]Write to MH i2c: E2 08 00 22 23 80 0D 01 02 00 00 00 00 BE [10:17:29]Write i2c OK [10:17:29]MH_I2C_Read... [10:17:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:17:29]Read from MH i2c: E2 [10:17:29]MH_I2C_Read... [10:17:29]Read from MH i2c: E2 03 00 [10:17:29]MH_I2C_Read... [10:17:29]Read from MH i2c: E2 03 00 22 23 00 90 00 B9 [10:17:29]RAPDU: 90 00 [10:17:29]wFMCommunicate OK [10:17:29]wFMCommunicate request_size=255 [10:17:29]MH_SAM_APDU [10:17: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 23 00 00 00 F4 03 04 00 3C B6 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 5F [10:17:29]Write to MH i2c: E2 02 01 23 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 23 00 00 00 F4 03 04 00 3C B6 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 5F 00 00 9F [10:17:29]Write i2c OK [10:17:29]MH_I2C_Read... [10:17:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:29]Read from MH i2c: E2 [10:17:29]MH_I2C_Read... [10:17:29]Read from MH i2c: E2 03 00 [10:17:29]MH_I2C_Read... [10:17:29]Read from MH i2c: E2 03 00 23 23 00 90 00 BA [10:17:29]RAPDU: 90 00 [10:17:29]wFMCommunicate OK [10:17:29]wFMCommunicate request_size=10 [10:17:29]MH_SAM_APDU [10:17:29]CAPDU: 80 0D 02 02 05 57 48 9A A9 E1 [10:17:29]Write to MH i2c: E2 0D 00 24 23 80 0D 02 02 05 00 57 48 9A A9 E1 00 00 8E [10:17:29]Write i2c OK [10:17:29]MH_I2C_Read... [10:17:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:29]Read from MH i2c: E2 [10:17:29]MH_I2C_Read... [10:17:29]Read from MH i2c: E2 03 00 [10:17:29]MH_I2C_Read... [10:17:29]Read from MH i2c: E2 03 00 24 23 00 90 00 BB [10:17:29]RAPDU: 90 00 [10:17:29]wFMCommunicate OK [10:17:29]wFMCommunicate request_size=4 [10:17:29]MH_SAM_APDU [10:17:29]CAPDU: 80 0D 03 02 [10:17:29]Write to MH i2c: E2 08 00 25 23 80 0D 03 02 00 00 00 00 C3 [10:17:29]Write i2c OK [10:17:29]MH_I2C_Read... [10:17:29]OFD Sender: No OFD packet to send [10:17:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:17:29]Read from MH i2c: E2 [10:17:29]MH_I2C_Read... [10:17:29]Read from MH i2c: E2 0B 00 [10:17:29]MH_I2C_Read... [10:17:29]Read from MH i2c: E2 0B 00 25 23 00 AA 6B B1 04 9A 39 C2 03 90 00 26 [10:17:29]RAPDU: AA 6B B1 04 9A 39 C2 03 90 00 [10:17:29]wFMCommunicate OK [10:17:29]SAM_PROTO_SignData done [10:17:29]FM_MakeSignedData done [10:17:29]CreateOFDProtocolMessage [10:17:29]wFMCommunicate request_size=4 [10:17:29]MH_SAM_APDU [10:17:29]CAPDU: 80 11 00 00 [10:17:29]Write to MH i2c: E2 08 00 26 23 80 11 00 00 00 00 00 00 C3 [10:17:29]Write i2c OK [10:17:29]MH_I2C_Read... [10:17:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:29]Read from MH i2c: E2 [10:17:29]MH_I2C_Read... [10:17:29]Read from MH i2c: E2 17 00 [10:17:29]MH_I2C_Read... [10:17:29]Read from MH i2c: E2 17 00 26 23 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:17: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:17:29]wFMCommunicate OK [10:17:29]CreateOFDProtocolMessage done [10:17:29]OFDSenderStorePacket 192829 [10:17:29]StoreOFDPacket docnum=192829 [10:17: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 5C 23 07 01 99 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 23 00 00 00 F4 03 04 00 3C B6 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 5F 57 48 9A A9 E1 AA 6B B1 04 9A 39 C2 03 [10:17:29]CheckFolder [10:17:29]dirname=/storage/ofd_packets [10:17:29]CheckFolder done [10:17:29]ProducePacketName [10:17:29]name=ofd_packets/00192829 [10:17:29]NVStorageSaveData ofd_packets/00192829 [10:17:29]File name is /storage/ofd_packets/00192829 [10:17:29]Write 301 bytes [10:17:29]NVStorageSaveData done [10:17:29]OFDSenderStorePacket done [10:17:29]KKMCreateOFDPacket done [10:17:29]NVStorageSaveData kkm_last_timestamp [10:17:29]File name is /storage/kkm_last_timestamp [10:17:29]Write 4 bytes [10:17:29]NVStorageSaveData done [10:17:29]ExternCall_PrintAddStr [10:17:29]wPrintStart [10:17:29]Write to MH i2c: 01 00 00 27 23 4A [10:17:29]Write i2c OK [10:17:29]MH_I2C_Read... [10:17:29]Read from MH i2c: 01 [10:17:29]MH_I2C_Read... [10:17:29]Read from MH i2c: 01 07 00 [10:17:29]MH_I2C_Read... [10:17:29]Read from MH i2c: 01 07 00 27 23 00 00 00 00 00 FF 0F 5F [10:17:29]RasterBufferAndPrint [10:17:29]line Счет N : (1)32158 [10:17:29]line ИÐÐ: 02508201610067 [10:17:29]line Контрольно-КаÑÑовый Чек [10:17:29]line ПРОДÐЖР[10:17:29]line ТРК (МРК, ГÐК) : 12 [10:17:29]line Товар: 2710124130 [10:17:29]line Ðи-92-К-5 [10:17:29]line 7.480 * 66.90 [10:17:29]line = 500.41 [10:17:29]line ÐДС 12% ÐСП 1% [10:17:29]line > о реализуемом товаре [10:17:29]line ОКРУГЛЕÐИЕ: -0.41 [10:17:29]line ИТОГО: 500.00 [10:17:29]line ВнеÑено: 500.00 [10:17:29]line СДÐЧÐ: 0.00 [10:17:29]line ÐСП 1% : 4.43 [10:17:29]line ÐДС 12% : 53.14 [10:17:29]line Ðаличными: 500.00 [10:17:29]line Безнал.: 0.00 [10:17:29]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [10:17:29]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [10:17:29]line СÐО: Общий режим [10:17:29]line Чек 35 29.10.2024 10:17 [10:17:29]line Смена: 544 ФФД: 1.0 [10:17:29]line ЗÐМ: 0300000110 [10:17:29]line РÐМ: 0000000000091776 [10:17:29]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:17:29]line ФМ: 0000000000871754 [10:17:29]line ФД: 192829 [10:17:29]line ФПД: 104828484889057 [10:17:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T101732&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192829&fm=104828484889057&tin=02508201610067®Number=0000000000091776&sum=50000 [10:17:30]OFD Sender: Processing packet 192829 [packets to send 75, broken 74] [10:17:30]ProducePacketName [10:17:30]name=ofd_packets/00192829 [10:17:30]OFD Sender: To server: ‡•öpG, [10:17:30]CommunicateWithHost lk.salyk.kg:30040 [10:17:30]ConnectInit lk.salyk.kg [10:17:30]written 0, free lines is 4095 [10:17:30]Connected sock=10 [10:17: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 5C 23 07 01 99 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 23 00 00 00 F4 03 04 00 3C B6 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 5F 57 48 9A A9 E1 AA 6B B1 04 9A 39 C2 03 [10:17: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 BA E1 47 00 63 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 3D F1 02 00 F4 03 04 00 FD 5A 20 67 B6 04 01 00 00 56 D0 FB D1 ED 4B 8F 01 [10:17:30]CommunicateWithHost err = 0 [10:17:30]CheckOFDResponse [10:17:30]1017 (14) - 77093643461234 [10:17:30]1041 (16) - 0000000000871754 [10:17:30]1040 (4) - 192829 [10:17:30]1012 (4) - 29.10.2024 03:48 [10:17:30]1206 (1) - 0 [10:17:30]OFD Sender: Remove packet 192829 [10:17:30]ProducePacketName [10:17:30]name=ofd_packets/00192829 [10:17:30]NVStorageDeleteData [10:17:30]Write to MH i2c: 01 00 00 52 23 75 [10:17:30]Write i2c OK [10:17:30]MH_I2C_Read... [10:17:30]Read from MH i2c: 01 [10:17:30]MH_I2C_Read... [10:17:30]Read from MH i2c: 01 07 00 [10:17:30]MH_I2C_Read... [10:17:30]Read from MH i2c: 01 07 00 52 23 00 00 00 00 00 AA 0C 32 [10:17:30]RasterBufferAndPrint [10:17:30]line [10:17:30]line [10:17:30]line [10:17:30]line [10:17:30]line [10:17:30]written 0, free lines is 3248 [10:17:30]MH_Cut [10:17:30]Write to MH i2c: D1 01 00 59 23 01 4E [10:17:30]Write i2c OK [10:17:30]MH_I2C_Read... [10:17:30]Read from MH i2c: D1 [10:17:30]MH_I2C_Read... [10:17:30]Read from MH i2c: D1 01 00 [10:17:30]MH_I2C_Read... [10:17:30]Read from MH i2c: D1 01 00 59 23 00 4D [10:17:30]Write to MH i2c: 01 00 00 5A 23 7D [10:17:30]Write i2c OK [10:17:30]MH_I2C_Read... [10:17:30]OFD Sender: No OFD packet to send [10:17:31]*** Cut start [10:17:31]*** Partial cut [10:17:31]*** CUTSNS_PIN = 1 [10:17:31]*** CUTSNS_PIN = 0 [10:17:31]*** Brake cut motor [10:17:32]Read from MH i2c: 01 [10:17:32]MH_I2C_Read... [10:17:32]*** Stop cut motor [10:17:32]*** Cut end [10:17:32]Read from MH i2c: 01 07 00 [10:17:32]MH_I2C_Read... [10:17:32]Read from MH i2c: 01 07 00 5A 23 00 00 00 00 00 FF 0F 92 [10:17:32]process_action close_receipt done [10:17:32]requested_data is exist [10:17:32]produce_requested_data [10:17:32]requested_item fm.sn is exist - process it [10:17:32]wFMCommunicate request_size=4 [10:17:32]MH_SAM_APDU [10:17:32]CAPDU: 80 11 00 00 [10:17:32]Write to MH i2c: E2 08 00 5B 23 80 11 00 00 00 00 00 00 F8 [10:17:32]Write i2c OK [10:17:32]MH_I2C_Read... [10:17:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:32]Read from MH i2c: E2 [10:17:32]MH_I2C_Read... [10:17:32]Read from MH i2c: E2 17 00 [10:17:32]MH_I2C_Read... [10:17:32]Read from MH i2c: E2 17 00 5B 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4B [10:17: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:17:32]wFMCommunicate OK [10:17:32]requested_item fd.num is exist - process it [10:17:32]SAM_PROTO_GetFieldsCounters [10:17:32]wFMCommunicate request_size=4 [10:17:32]MH_SAM_APDU [10:17:32]CAPDU: 80 13 00 00 [10:17:32]Write to MH i2c: E2 08 00 5C 23 80 13 00 00 00 00 00 00 FB [10:17:32]Write i2c OK [10:17:32]MH_I2C_Read... [10:17:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:17:32]Read from MH i2c: E2 [10:17:32]MH_I2C_Read... [10:17:32]Read from MH i2c: E2 62 00 [10:17:32]MH_I2C_Read... [10:17:32]Read from MH i2c: E2 62 00 5C 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 3D F1 02 00 0E 04 04 00 20 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 DC [10:17:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 F1 02 00 0E 04 04 00 20 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 [10:17:32]wFMCommunicate OK [10:17:32]SAM_PROTO_GetFieldsCounters done [10:17:32]requested_item shift.num is exist - process it [10:17:32]requested_item shift.opened is exist - process it [10:17:32]req_shift_opened [10:17:32]FM_GetShiftState [10:17:32]SAM_PROTO_GetShiftState [10:17:32]wFMCommunicate request_size=4 [10:17:32]MH_SAM_APDU [10:17:32]CAPDU: 80 13 01 00 [10:17:32]Write to MH i2c: E2 08 00 5D 23 80 13 01 00 00 00 00 00 FD [10:17:32]Write i2c OK [10:17:32]MH_I2C_Read... [10:17:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:32]Read from MH i2c: E2 [10:17:32]MH_I2C_Read... [10:17:32]Read from MH i2c: E2 0E 00 [10:17:32]MH_I2C_Read... [10:17:32]Read from MH i2c: E2 0E 00 5D 23 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 03 [10:17:32]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [10:17:32]wFMCommunicate OK [10:17:32]SAM_PROTO_GetShiftState done [10:17:32]FM_GetShiftState done [10:17:32]req_shift_opened done [10:17:32]requested_item shift.open_date is exist - process it [10:17:32]req_shift_open_date [10:17:32]req_shift_open_date done [10:17:32]produce_requested_data done [10:17:32]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192829,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [10:17:32]process_action_free close_receipt [10:17:32]json_value_free [10:17:32]json_value_free done [10:17:32]process_json_proto returns [10:17:32]Send response to host [10:17:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192829,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [10:17:32]free response buf [10:17:32]execute_script done [10:17:32]execute_script returns [10:17:32]free content buf [10:17:32]Sock 8.Close socket [10:17:32]Sock 8.Thread stoped [10:17:35]OFD Sender: No OFD packet to send [10:17:40]OFD Sender: No OFD packet to send [10:17:45]OFD Sender: No OFD packet to send [10:17:50]OFD Sender: No OFD packet to send [10:17:55]OFD Sender: No OFD packet to send [10:18:00]OFD Sender: No OFD packet to send [10:18:05]OFD Sender: No OFD packet to send [10:18:10]OFD Sender: No OFD packet to send [10:18:16]OFD Sender: No OFD packet to send [10:18:21]OFD Sender: No OFD packet to send [10:18:26]OFD Sender: No OFD packet to send [10:18:31]OFD Sender: No OFD packet to send [10:18:35]accept exits with 9 [10:18:35]New connection [10:18:35]New thread 3066801508 created [10:18:35]Thread 3066658148 joined [10:18:35]Waiting for new connection... [10:18:35] Sock 9.Parse request [10:18:35]Sock 9.Check first char [10:18:35]Sock 9.First char is OK [10:18:35]request: POST /json_proto HTTP/1.0 [10:18:35]Method: POST [10:18:35]URL: /json_proto [10:18:35]Method is POST - this is cgi request [10:18:35]url: /json_proto [10:18:35]query_string will be loaded in cgi processing [10:18:35]execute_cgi json_proto POST (null) [10:18:35]execute_cgi path=json_proto method=POST [10:18:35]POST find Content-Length [10:18:35]Host: 172.17.63.131:8080 [10:18:35]Content-Length: 983 [10:18:35]Content-Type: application/json [10:18:35] [10:18:35]POST finish read [10:18:35]Found Content-Length = 983 [10:18:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32159", "tax_sys" : 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" ] } } [10:18:35]execute_script... [10:18: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)32159", "tax_sys" : 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" ] } } [10:18:35]POST & json_proto [10:18:35]process_json_proto [10:18:35]json parsed OK: [10:18:35]protocol is kg_v1.0 [10:18:35]action value=close_receipt [10:18:35]process_action close_receipt [10:18:35]cmd_close_receipt [10:18:35]MH_GetDate [10:18:35]Write to MH i2c: F0 00 00 5E 23 70 [10:18:35]Write i2c OK [10:18:35]MH_I2C_Read... [10:18:35]Read from MH i2c: F0 [10:18:35]MH_I2C_Read... [10:18:35]Read from MH i2c: F0 09 00 [10:18:35]MH_I2C_Read... [10:18:35]Read from MH i2c: F0 09 00 5E 23 00 7F B6 20 67 22 05 6E 64 2E [10:18:35]GetLastDocTimeStamp 1730197052 [10:18:35]current date 1730197119 [10:18:35]FM_GetShiftState [10:18:35]SAM_PROTO_GetShiftState [10:18:35]wFMCommunicate request_size=4 [10:18:35]MH_SAM_APDU [10:18:35]CAPDU: 80 13 01 00 [10:18:35]Write to MH i2c: E2 08 00 5F 23 80 13 01 00 00 00 00 00 FF [10:18:35]Write i2c OK [10:18:35]MH_I2C_Read... [10:18:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:35]Read from MH i2c: E2 [10:18:35]MH_I2C_Read... [10:18:35]Read from MH i2c: E2 0E 00 [10:18:35]MH_I2C_Read... [10:18:35]Read from MH i2c: E2 0E 00 5F 23 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 05 [10:18:35]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [10:18:35]wFMCommunicate OK [10:18:35]SAM_PROTO_GetShiftState done [10:18:35]FM_GetShiftState done [10:18:35]opened in 1730161990 [10:18:35]opened+sec_in_day 1730248390 [10:18:35]quantity*price = 150054 [10:18:35]sum+1 = 150055 [10:18:35]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 СÐО: Общий режим Чек 36 29.10.2024 10:18 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ДиÑÐºÐ¾Ð½Ñ‚Ð½Ð°Ñ Ð¿Ñ€Ð¾Ð³Ñ€Ð°Ð¼Ð¼Ð° ÐИ-92 номер 170 ÑÑкономлено 22.77 Ñом ФМ: 0000000000871754 ФД: 192830 ФПД: 156115295723782 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T101839&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192830&fm=156115295723782&tin=02508201610067®Number=0000000000091776&sum=150000 [10:18:36]StoreToDocumentArchive [10:18:36]shift 544 fd 192830 [10:18:36]save to /storage/0544/doc_00192830 [10:18:36]save last doc name /storage/0544/doc_00192830 to /storage/kkm_last_doc_name [10:18:36]save OK [10:18:36]Clear old archive folders... [10:18:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:18:36]tlvbuf is 00F81510 [10:18:36]SAM_PROTO_ClearQueue [10:18:36]wFMCommunicate request_size=4 [10:18:36]MH_SAM_APDU [10:18:36]CAPDU: 80 09 00 00 [10:18:36]Write to MH i2c: E2 08 00 6C 23 80 09 00 00 00 00 00 00 01 [10:18:36]Write i2c OK [10:18:36]MH_I2C_Read... [10:18:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:18:36]Read from MH i2c: E2 [10:18:36]MH_I2C_Read... [10:18:36]Read from MH i2c: E2 03 00 [10:18:36]MH_I2C_Read... [10:18:36]Read from MH i2c: E2 03 00 6C 23 00 90 00 03 [10:18:36]RAPDU: 90 00 [10:18:36]wFMCommunicate OK [10:18:36]SAM_PROTO_ClearQueue done [10:18:36]KKMCreateOFDPacket [10:18:36]OFDProtocolAddRootSTLVToBuf [10:18:36]FM_MakeSignedData [10:18:36]FM_MakeSignedData [10:18:36]SAM_PROTO_SignData [10:18:36]wFMCommunicate request_size=4 [10:18:36]MH_SAM_APDU [10:18:36]CAPDU: 80 0D 01 02 [10:18:36]Write to MH i2c: E2 08 00 6D 23 80 0D 01 02 00 00 00 00 09 [10:18:36]Write i2c OK [10:18:36]MH_I2C_Read... [10:18:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:18:36]Read from MH i2c: E2 [10:18:36]MH_I2C_Read... [10:18:36]Read from MH i2c: E2 03 00 [10:18:36]MH_I2C_Read... [10:18:36]Read from MH i2c: E2 03 00 6D 23 00 90 00 04 [10:18:36]RAPDU: 90 00 [10:18:36]wFMCommunicate OK [10:18:36]wFMCommunicate request_size=255 [10:18:36]MH_SAM_APDU [10:18: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 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 24 00 00 00 F4 03 04 00 7F B6 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 8D [10:18:36]Write to MH i2c: E2 02 01 6E 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 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 24 00 00 00 F4 03 04 00 7F B6 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 8D 00 00 93 [10:18:36]Write i2c OK [10:18:36]MH_I2C_Read... [10:18:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:37]Read from MH i2c: E2 [10:18:37]MH_I2C_Read... [10:18:37]Read from MH i2c: E2 03 00 [10:18:37]MH_I2C_Read... [10:18:37]Read from MH i2c: E2 03 00 6E 23 00 90 00 05 [10:18:37]RAPDU: 90 00 [10:18:37]wFMCommunicate OK [10:18:37]wFMCommunicate request_size=10 [10:18:37]MH_SAM_APDU [10:18:37]CAPDU: 80 0D 02 02 05 FC 6C BE E1 06 [10:18:37]Write to MH i2c: E2 0D 00 6F 23 80 0D 02 02 05 00 FC 6C BE E1 06 00 00 23 [10:18:37]Write i2c OK [10:18:37]MH_I2C_Read... [10:18:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:37]Read from MH i2c: E2 [10:18:37]MH_I2C_Read... [10:18:37]Read from MH i2c: E2 03 00 [10:18:37]MH_I2C_Read... [10:18:37]Read from MH i2c: E2 03 00 6F 23 00 90 00 06 [10:18:37]RAPDU: 90 00 [10:18:37]wFMCommunicate OK [10:18:37]wFMCommunicate request_size=4 [10:18:37]MH_SAM_APDU [10:18:37]CAPDU: 80 0D 03 02 [10:18:37]Write to MH i2c: E2 08 00 70 23 80 0D 03 02 00 00 00 00 0E [10:18:37]Write i2c OK [10:18:37]MH_I2C_Read... [10:18:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:18:37]Read from MH i2c: E2 [10:18:37]MH_I2C_Read... [10:18:37]Read from MH i2c: E2 0B 00 [10:18:37]MH_I2C_Read... [10:18:37]Read from MH i2c: E2 0B 00 70 23 00 BF 70 F2 86 46 D8 23 D5 90 00 CC [10:18:37]RAPDU: BF 70 F2 86 46 D8 23 D5 90 00 [10:18:37]wFMCommunicate OK [10:18:37]SAM_PROTO_SignData done [10:18:37]FM_MakeSignedData done [10:18:37]CreateOFDProtocolMessage [10:18:37]wFMCommunicate request_size=4 [10:18:37]MH_SAM_APDU [10:18:37]CAPDU: 80 11 00 00 [10:18:37]Write to MH i2c: E2 08 00 71 23 80 11 00 00 00 00 00 00 0E [10:18:37]Write i2c OK [10:18:37]MH_I2C_Read... [10:18:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:37]Read from MH i2c: E2 [10:18:37]MH_I2C_Read... [10:18:37]Read from MH i2c: E2 17 00 [10:18:37]MH_I2C_Read... [10:18:37]Read from MH i2c: E2 17 00 71 23 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:18: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:18:37]wFMCommunicate OK [10:18:37]CreateOFDProtocolMessage done [10:18:37]OFDSenderStorePacket 192830 [10:18:37]StoreOFDPacket docnum=192830 [10:18: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 31 21 07 01 6A 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 24 00 00 00 F4 03 04 00 7F B6 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 8D FC 6C BE E1 06 BF 70 F2 86 46 D8 23 D5 [10:18:37]CheckFolder [10:18:37]dirname=/storage/ofd_packets [10:18:37]CheckFolder done [10:18:37]ProducePacketName [10:18:37]name=ofd_packets/00192830 [10:18:37]NVStorageSaveData ofd_packets/00192830 [10:18:37]File name is /storage/ofd_packets/00192830 [10:18:37]Write 301 bytes [10:18:37]NVStorageSaveData done [10:18:37]OFDSenderStorePacket done [10:18:37]KKMCreateOFDPacket done [10:18:37]NVStorageSaveData kkm_last_timestamp [10:18:37]File name is /storage/kkm_last_timestamp [10:18:37]Write 4 bytes [10:18:37]NVStorageSaveData done [10:18:37]ExternCall_PrintAddStr [10:18:37]wPrintStart [10:18:37]Write to MH i2c: 01 00 00 72 23 95 [10:18:37]Write i2c OK [10:18:37]MH_I2C_Read... [10:18:37]Read from MH i2c: 01 [10:18:37]MH_I2C_Read... [10:18:37]Read from MH i2c: 01 07 00 [10:18:37]MH_I2C_Read... [10:18:37]Read from MH i2c: 01 07 00 72 23 00 00 00 00 00 FF 0F AA [10:18:37]RasterBufferAndPrint [10:18:37]line Счет N : (1)32159 [10:18:37]line ИÐÐ: 02508201610067 [10:18:37]line Контрольно-КаÑÑовый Чек [10:18:37]line ПРОДÐЖР[10:18:37]line ТРК (МРК, ГÐК) : 21 [10:18:37]line Товар: 2710124130 [10:18:37]line Ðи-92-К-5 [10:18:37]line 22.770 * 65.90 [10:18:37]line = 1500.54 [10:18:37]line ÐДС 12% ÐСП 1% [10:18:37]line > о реализуемом товаре [10:18:37]line ОКРУГЛЕÐИЕ: -0.54 [10:18:37]line ИТОГО: 1500.00 [10:18:37]line ВнеÑено: 1500.00 [10:18:37]line СДÐЧÐ: 0.00 [10:18:37]line ÐСП 1% : 13.28 [10:18:37]line ÐДС 12% : 159.35 [10:18:37]line Ðаличными: 1500.00 [10:18:37]line Безнал.: 0.00 [10:18:37]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [10:18:37]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [10:18:37]line СÐО: Общий режим [10:18:37]line Чек 36 29.10.2024 10:18 [10:18:37]line Смена: 544 ФФД: 1.0 [10:18:37]line ЗÐМ: 0300000110 [10:18:37]line РÐМ: 0000000000091776 [10:18:37]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:18:37]line [10:18:37]line ДиÑÐºÐ¾Ð½Ñ‚Ð½Ð°Ñ Ð¿Ñ€Ð¾Ð³Ñ€Ð°Ð¼Ð¼Ð° [10:18:37]line ÐИ-92 [10:18:37]line номер 170 [10:18:37]line ÑÑкономлено 22.77 Ñом [10:18:37]line ФМ: 0000000000871754 [10:18:37]line ФД: 192830 [10:18:37]line ФПД: 156115295723782 [10:18:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T101839&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192830&fm=156115295723782&tin=02508201610067®Number=0000000000091776&sum=150000 [10:18:37]OFD Sender: Processing packet 192830 [packets to send 75, broken 74] [10:18:37]ProducePacketName [10:18:37]name=ofd_packets/00192830 [10:18:37]OFD Sender: To server: ‡•öpG, [10:18:37]CommunicateWithHost lk.salyk.kg:30040 [10:18:37]ConnectInit lk.salyk.kg [10:18:37]written 0, free lines is 4095 [10:18:37]Connected sock=8 [10:18: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 31 21 07 01 6A 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 24 00 00 00 F4 03 04 00 7F B6 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 8D FC 6C BE E1 06 BF 70 F2 86 46 D8 23 D5 [10:18: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 C4 0F 47 00 3B 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 3E F1 02 00 F4 03 04 00 40 5B 20 67 B6 04 01 00 00 3A 45 84 72 17 67 A4 68 [10:18:37]CommunicateWithHost err = 0 [10:18:37]CheckOFDResponse [10:18:37]1017 (14) - 77093643461234 [10:18:37]1041 (16) - 0000000000871754 [10:18:37]1040 (4) - 192830 [10:18:37]1012 (4) - 29.10.2024 03:49 [10:18:37]1206 (1) - 0 [10:18:37]OFD Sender: Remove packet 192830 [10:18:37]ProducePacketName [10:18:37]name=ofd_packets/00192830 [10:18:37]NVStorageDeleteData [10:18:38]Write to MH i2c: 01 00 00 A2 23 C5 [10:18:38]Write i2c OK [10:18:38]MH_I2C_Read... [10:18:38]Read from MH i2c: 01 [10:18:38]MH_I2C_Read... [10:18:38]Read from MH i2c: 01 07 00 [10:18:38]MH_I2C_Read... [10:18:38]Read from MH i2c: 01 07 00 A2 23 00 00 00 00 00 58 0C 30 [10:18:38]RasterBufferAndPrint [10:18:38]line [10:18:38]line [10:18:38]line [10:18:38]line [10:18:38]line [10:18:38]written 0, free lines is 3165 [10:18:38]MH_Cut [10:18:38]Write to MH i2c: D1 01 00 A9 23 01 9E [10:18:38]Write i2c OK [10:18:38]MH_I2C_Read... [10:18:38]Read from MH i2c: D1 [10:18:38]MH_I2C_Read... [10:18:38]Read from MH i2c: D1 01 00 [10:18:38]MH_I2C_Read... [10:18:38]Read from MH i2c: D1 01 00 A9 23 00 9D [10:18:38]Write to MH i2c: 01 00 00 AA 23 CD [10:18:38]Write i2c OK [10:18:38]MH_I2C_Read... [10:18:38]OFD Sender: No OFD packet to send [10:18:38]*** Cut start [10:18:38]*** Partial cut [10:18:38]*** CUTSNS_PIN = 1 [10:18:39]*** CUTSNS_PIN = 0 [10:18:39]*** Brake cut motor [10:18:39]Read from MH i2c: 01 [10:18:39]MH_I2C_Read... [10:18:39]*** Stop cut motor [10:18:39]*** Cut end [10:18:39]Read from MH i2c: 01 07 00 [10:18:39]MH_I2C_Read... [10:18:39]Read from MH i2c: 01 07 00 AA 23 00 00 00 00 00 FF 0F E2 [10:18:39]process_action close_receipt done [10:18:39]requested_data is exist [10:18:39]produce_requested_data [10:18:39]requested_item fm.sn is exist - process it [10:18:39]wFMCommunicate request_size=4 [10:18:39]MH_SAM_APDU [10:18:39]CAPDU: 80 11 00 00 [10:18:39]Write to MH i2c: E2 08 00 AB 23 80 11 00 00 00 00 00 00 48 [10:18:39]Write i2c OK [10:18:39]MH_I2C_Read... [10:18:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:39]Read from MH i2c: E2 [10:18:39]MH_I2C_Read... [10:18:39]Read from MH i2c: E2 17 00 [10:18:39]MH_I2C_Read... [10:18:39]Read from MH i2c: E2 17 00 AB 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9B [10:18: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:18:39]wFMCommunicate OK [10:18:39]requested_item fd.num is exist - process it [10:18:39]SAM_PROTO_GetFieldsCounters [10:18:39]wFMCommunicate request_size=4 [10:18:39]MH_SAM_APDU [10:18:39]CAPDU: 80 13 00 00 [10:18:39]Write to MH i2c: E2 08 00 AC 23 80 13 00 00 00 00 00 00 4B [10:18:39]Write i2c OK [10:18:39]MH_I2C_Read... [10:18:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:18:39]Read from MH i2c: E2 [10:18:39]MH_I2C_Read... [10:18:39]Read from MH i2c: E2 62 00 [10:18:39]MH_I2C_Read... [10:18:39]Read from MH i2c: E2 62 00 AC 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 3E F1 02 00 0E 04 04 00 20 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 30 [10:18: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 3E F1 02 00 0E 04 04 00 20 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 [10:18:39]wFMCommunicate OK [10:18:39]SAM_PROTO_GetFieldsCounters done [10:18:39]requested_item shift.num is exist - process it [10:18:39]requested_item shift.opened is exist - process it [10:18:39]req_shift_opened [10:18:39]FM_GetShiftState [10:18:39]SAM_PROTO_GetShiftState [10:18:39]wFMCommunicate request_size=4 [10:18:39]MH_SAM_APDU [10:18:39]CAPDU: 80 13 01 00 [10:18:39]Write to MH i2c: E2 08 00 AD 23 80 13 01 00 00 00 00 00 4D [10:18:39]Write i2c OK [10:18:39]MH_I2C_Read... [10:18:39]Read from MH i2c: E2 [10:18:39]MH_I2C_Read... [10:18:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:39]Read from MH i2c: E2 0E 00 [10:18:39]MH_I2C_Read... [10:18:39]Read from MH i2c: E2 0E 00 AD 23 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 53 [10:18:39]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [10:18:39]wFMCommunicate OK [10:18:39]SAM_PROTO_GetShiftState done [10:18:39]FM_GetShiftState done [10:18:39]req_shift_opened done [10:18:39]requested_item shift.open_date is exist - process it [10:18:39]req_shift_open_date [10:18:39]req_shift_open_date done [10:18:39]produce_requested_data done [10:18:39]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192830,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [10:18:39]process_action_free close_receipt [10:18:39]json_value_free [10:18:39]json_value_free done [10:18:39]process_json_proto returns [10:18:39]Send response to host [10:18:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192830,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [10:18:39]free response buf [10:18:39]execute_script done [10:18:39]execute_script returns [10:18:39]free content buf [10:18:39]Sock 9.Close socket [10:18:39]Sock 9.Thread stoped [10:18:43]OFD Sender: No OFD packet to send [10:18:48]OFD Sender: No OFD packet to send [10:18:53]OFD Sender: No OFD packet to send [10:18:58]OFD Sender: No OFD packet to send [10:19:03]OFD Sender: No OFD packet to send [10:19:08]OFD Sender: No OFD packet to send [10:19:13]OFD Sender: No OFD packet to send [10:19:18]OFD Sender: No OFD packet to send [10:19:23]OFD Sender: No OFD packet to send [10:19:28]OFD Sender: No OFD packet to send [10:19:33]OFD Sender: No OFD packet to send [10:19:38]OFD Sender: No OFD packet to send [10:19:43]OFD Sender: No OFD packet to send [10:19:48]OFD Sender: No OFD packet to send [10:19:53]OFD Sender: No OFD packet to send [10:19:58]OFD Sender: No OFD packet to send [10:20:00]accept exits with 10 [10:20:00]New connection [10:20:00]New thread 3066658148 created [10:20:00]Thread 3066801508 joined [10:20:00]Waiting for new connection... [10:20:00] Sock 10.Parse request [10:20:00]Sock 10.Check first char [10:20:00]Sock 10.First char is OK [10:20:00]request: POST /json_proto HTTP/1.0 [10:20:00]Method: POST [10:20:00]URL: /json_proto [10:20:00]Method is POST - this is cgi request [10:20:00]url: /json_proto [10:20:00]query_string will be loaded in cgi processing [10:20:00]execute_cgi json_proto POST (null) [10:20:00]execute_cgi path=json_proto method=POST [10:20:00]POST find Content-Length [10:20:00]Host: 172.17.63.131:8080 [10:20:00]Content-Length: 676 [10:20:00]Content-Type: application/json [10:20:00] [10:20:00]POST finish read [10:20:00]Found Content-Length = 676 [10:20:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:00]execute_script... [10:20: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)32160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:00]POST & json_proto [10:20:00]process_json_proto [10:20:00]json parsed OK: [10:20:00]protocol is kg_v1.0 [10:20:00]action value=close_receipt [10:20:00]process_action close_receipt [10:20:00]cmd_close_receipt [10:20:00]MH_GetDate [10:20:00]Write to MH i2c: F0 00 00 AE 23 C0 [10:20:00]Write i2c OK [10:20:00]MH_I2C_Read... [10:20:00]Read from MH i2c: F0 [10:20:00]MH_I2C_Read... [10:20:00]Read from MH i2c: F0 09 00 [10:20:00]MH_I2C_Read... [10:20:00]Read from MH i2c: F0 09 00 AE 23 00 D4 B6 20 67 22 05 6E 64 D3 [10:20:00]GetLastDocTimeStamp 1730197119 [10:20:00]current date 1730197204 [10:20:00]FM_GetShiftState [10:20:00]SAM_PROTO_GetShiftState [10:20:00]wFMCommunicate request_size=4 [10:20:00]MH_SAM_APDU [10:20:00]CAPDU: 80 13 01 00 [10:20:00]Write to MH i2c: E2 08 00 AF 23 80 13 01 00 00 00 00 00 4F [10:20:00]Write i2c OK [10:20:00]MH_I2C_Read... [10:20:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:00]Read from MH i2c: E2 [10:20:00]MH_I2C_Read... [10:20:00]Read from MH i2c: E2 0E 00 [10:20:00]MH_I2C_Read... [10:20:00]Read from MH i2c: E2 0E 00 AF 23 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 55 [10:20:00]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [10:20:00]wFMCommunicate OK [10:20:00]SAM_PROTO_GetShiftState done [10:20:00]FM_GetShiftState done [10:20:00]opened in 1730161990 [10:20:00]opened+sec_in_day 1730248390 [10:20:00]quantity*price = 50041 [10:20:00]sum+1 = 50042 [10:20: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 СÐО: Общий режим Чек 37 29.10.2024 10:20 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192831 ФПД: 86125433752251 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T102004&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192831&fm=86125433752251&tin=02508201610067®Number=0000000000091776&sum=50000 [10:20:01]StoreToDocumentArchive [10:20:01]shift 544 fd 192831 [10:20:01]save to /storage/0544/doc_00192831 [10:20:01]save last doc name /storage/0544/doc_00192831 to /storage/kkm_last_doc_name [10:20:01]save OK [10:20:01]Clear old archive folders... [10:20:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:20:01]tlvbuf is B6F33660 [10:20:01]SAM_PROTO_ClearQueue [10:20:01]wFMCommunicate request_size=4 [10:20:01]MH_SAM_APDU [10:20:01]CAPDU: 80 09 00 00 [10:20:01]Write to MH i2c: E2 08 00 BC 23 80 09 00 00 00 00 00 00 51 [10:20:01]Write i2c OK [10:20:01]MH_I2C_Read... [10:20:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:20:01]Read from MH i2c: E2 [10:20:01]MH_I2C_Read... [10:20:01]Read from MH i2c: E2 03 00 [10:20:01]MH_I2C_Read... [10:20:01]Read from MH i2c: E2 03 00 BC 23 00 90 00 53 [10:20:01]RAPDU: 90 00 [10:20:01]wFMCommunicate OK [10:20:01]SAM_PROTO_ClearQueue done [10:20:01]KKMCreateOFDPacket [10:20:01]OFDProtocolAddRootSTLVToBuf [10:20:01]FM_MakeSignedData [10:20:01]FM_MakeSignedData [10:20:01]SAM_PROTO_SignData [10:20:01]wFMCommunicate request_size=4 [10:20:01]MH_SAM_APDU [10:20:01]CAPDU: 80 0D 01 02 [10:20:01]Write to MH i2c: E2 08 00 BD 23 80 0D 01 02 00 00 00 00 59 [10:20:01]Write i2c OK [10:20:01]MH_I2C_Read... [10:20:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:20:01]Read from MH i2c: E2 [10:20:01]MH_I2C_Read... [10:20:01]Read from MH i2c: E2 03 00 [10:20:01]MH_I2C_Read... [10:20:01]Read from MH i2c: E2 03 00 BD 23 00 90 00 54 [10:20:01]RAPDU: 90 00 [10:20:01]wFMCommunicate OK [10:20:01]wFMCommunicate request_size=255 [10:20:01]MH_SAM_APDU [10:20: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 25 00 00 00 F4 03 04 00 D4 B6 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 4E [10:20:01]Write to MH i2c: E2 02 01 BE 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 25 00 00 00 F4 03 04 00 D4 B6 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 4E 00 00 C5 [10:20:02]Write i2c OK [10:20:02]MH_I2C_Read... [10:20:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:02]Read from MH i2c: E2 [10:20:02]MH_I2C_Read... [10:20:02]Read from MH i2c: E2 03 00 [10:20:02]MH_I2C_Read... [10:20:02]Read from MH i2c: E2 03 00 BE 23 00 90 00 55 [10:20:02]RAPDU: 90 00 [10:20:02]wFMCommunicate OK [10:20:02]wFMCommunicate request_size=10 [10:20:02]MH_SAM_APDU [10:20:02]CAPDU: 80 0D 02 02 05 54 A3 E2 8A BB [10:20:02]Write to MH i2c: E2 0D 00 BF 23 80 0D 02 02 05 00 54 A3 E2 8A BB 00 00 84 [10:20:02]Write i2c OK [10:20:02]MH_I2C_Read... [10:20:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:02]Read from MH i2c: E2 [10:20:02]MH_I2C_Read... [10:20:02]Read from MH i2c: E2 03 00 [10:20:02]MH_I2C_Read... [10:20:02]Read from MH i2c: E2 03 00 BF 23 00 90 00 56 [10:20:02]RAPDU: 90 00 [10:20:02]wFMCommunicate OK [10:20:02]wFMCommunicate request_size=4 [10:20:02]MH_SAM_APDU [10:20:02]CAPDU: 80 0D 03 02 [10:20:02]Write to MH i2c: E2 08 00 C0 23 80 0D 03 02 00 00 00 00 5E [10:20:02]Write i2c OK [10:20:02]MH_I2C_Read... [10:20:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:20:02]Read from MH i2c: E2 [10:20:02]MH_I2C_Read... [10:20:02]Read from MH i2c: E2 0B 00 [10:20:02]MH_I2C_Read... [10:20:02]Read from MH i2c: E2 0B 00 C0 23 00 56 B9 13 C9 B4 D0 E4 7D 90 00 2F [10:20:02]RAPDU: 56 B9 13 C9 B4 D0 E4 7D 90 00 [10:20:02]wFMCommunicate OK [10:20:02]SAM_PROTO_SignData done [10:20:02]FM_MakeSignedData done [10:20:02]CreateOFDProtocolMessage [10:20:02]wFMCommunicate request_size=4 [10:20:02]MH_SAM_APDU [10:20:02]CAPDU: 80 11 00 00 [10:20:02]Write to MH i2c: E2 08 00 C1 23 80 11 00 00 00 00 00 00 5E [10:20:02]Write i2c OK [10:20:02]MH_I2C_Read... [10:20:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:02]Read from MH i2c: E2 [10:20:02]MH_I2C_Read... [10:20:02]Read from MH i2c: E2 17 00 [10:20:02]MH_I2C_Read... [10:20:02]Read from MH i2c: E2 17 00 C1 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B1 [10:20:02]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:02]wFMCommunicate OK [10:20:02]CreateOFDProtocolMessage done [10:20:02]OFDSenderStorePacket 192831 [10:20:02]StoreOFDPacket docnum=192831 [10:20: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 19 0A 07 01 9A 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 D4 B6 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 4E 54 A3 E2 8A BB 56 B9 13 C9 B4 D0 E4 7D [10:20:02]CheckFolder [10:20:02]dirname=/storage/ofd_packets [10:20:02]CheckFolder done [10:20:02]ProducePacketName [10:20:02]name=ofd_packets/00192831 [10:20:02]NVStorageSaveData ofd_packets/00192831 [10:20:02]File name is /storage/ofd_packets/00192831 [10:20:02]Write 301 bytes [10:20:02]NVStorageSaveData done [10:20:02]OFDSenderStorePacket done [10:20:02]KKMCreateOFDPacket done [10:20:02]NVStorageSaveData kkm_last_timestamp [10:20:02]File name is /storage/kkm_last_timestamp [10:20:02]Write 4 bytes [10:20:02]NVStorageSaveData done [10:20:02]ExternCall_PrintAddStr [10:20:02]wPrintStart [10:20:02]Write to MH i2c: 01 00 00 C2 23 E5 [10:20:02]Write i2c OK [10:20:02]MH_I2C_Read... [10:20:02]Read from MH i2c: 01 [10:20:02]MH_I2C_Read... [10:20:02]Read from MH i2c: 01 07 00 [10:20:02]MH_I2C_Read... [10:20:02]Read from MH i2c: 01 07 00 C2 23 00 00 00 00 00 FF 0F FA [10:20:02]RasterBufferAndPrint [10:20:02]line Счет N : (1)32160 [10:20:02]line ИÐÐ: 02508201610067 [10:20:02]line Контрольно-КаÑÑовый Чек [10:20:02]line ПРОДÐЖР[10:20:02]line ТРК (МРК, ГÐК) : 21 [10:20:02]line Товар: 2710124130 [10:20:02]line Ðи-92-К-5 [10:20:02]line 7.480 * 66.90 [10:20:02]line = 500.41 [10:20:02]line ÐДС 12% ÐСП 1% [10:20:02]line > о реализуемом товаре [10:20:02]line ОКРУГЛЕÐИЕ: -0.41 [10:20:02]line ИТОГО: 500.00 [10:20:02]line ВнеÑено: 500.00 [10:20:02]line СДÐЧÐ: 0.00 [10:20:02]line ÐСП 1% : 4.43 [10:20:02]line ÐДС 12% : 53.14 [10:20:02]line Ðаличными: 500.00 [10:20:02]line Безнал.: 0.00 [10:20:02]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [10:20:02]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [10:20:02]line СÐО: Общий режим [10:20:02]line Чек 37 29.10.2024 10:20 [10:20:02]line Смена: 544 ФФД: 1.0 [10:20:02]line ЗÐМ: 0300000110 [10:20:02]line РÐМ: 0000000000091776 [10:20:02]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:20:02]line ФМ: 0000000000871754 [10:20:02]line ФД: 192831 [10:20:02]line ФПД: 86125433752251 [10:20:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T102004&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192831&fm=86125433752251&tin=02508201610067®Number=0000000000091776&sum=50000 [10:20:02]OFD Sender: Processing packet 192831 [packets to send 75, broken 74] [10:20:02]ProducePacketName [10:20:02]name=ofd_packets/00192831 [10:20:02]OFD Sender: To server: ‡•öpG, [10:20:02]CommunicateWithHost lk.salyk.kg:30040 [10:20:02]ConnectInit lk.salyk.kg [10:20:02]written 0, free lines is 4095 [10:20:02]Connected sock=9 [10:20: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 19 0A 07 01 9A 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 D4 B6 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 4E 54 A3 E2 8A BB 56 B9 13 C9 B4 D0 E4 7D [10:20:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F6 AE 47 00 99 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 3F F1 02 00 F4 03 04 00 95 5B 20 67 B6 04 01 00 00 5C EA B9 03 2A 2C 7E 2F [10:20:03]CommunicateWithHost err = 0 [10:20:03]CheckOFDResponse [10:20:03]1017 (14) - 77093643461234 [10:20:03]1041 (16) - 0000000000871754 [10:20:03]1040 (4) - 192831 [10:20:03]1012 (4) - 29.10.2024 03:50 [10:20:03]1206 (1) - 0 [10:20:03]OFD Sender: Remove packet 192831 [10:20:03]ProducePacketName [10:20:03]name=ofd_packets/00192831 [10:20:03]NVStorageDeleteData [10:20:03]Write to MH i2c: 01 00 00 ED 23 10 [10:20:03]Write i2c OK [10:20:03]MH_I2C_Read... [10:20:03]Read from MH i2c: 01 [10:20:03]MH_I2C_Read... [10:20:03]Read from MH i2c: 01 07 00 [10:20:03]MH_I2C_Read... [10:20:03]Read from MH i2c: 01 07 00 ED 23 00 00 00 00 00 AA 0C CD [10:20:03]RasterBufferAndPrint [10:20:03]line [10:20:03]line [10:20:03]line [10:20:03]line [10:20:03]line [10:20:03]written 0, free lines is 3248 [10:20:03]MH_Cut [10:20:03]Write to MH i2c: D1 01 00 F4 23 01 E9 [10:20:03]Write i2c OK [10:20:03]MH_I2C_Read... [10:20:03]Read from MH i2c: D1 [10:20:03]MH_I2C_Read... [10:20:03]Read from MH i2c: D1 01 00 [10:20:03]MH_I2C_Read... [10:20:03]Read from MH i2c: D1 01 00 F4 23 00 E8 [10:20:03]Write to MH i2c: 01 00 00 F5 23 18 [10:20:03]Write i2c OK [10:20:03]MH_I2C_Read... [10:20:03]OFD Sender: No OFD packet to send [10:20:04]*** Cut start [10:20:04]*** Partial cut [10:20:04]*** CUTSNS_PIN = 1 [10:20:04]*** CUTSNS_PIN = 0 [10:20:04]*** Brake cut motor [10:20:04]Read from MH i2c: 01 [10:20:04]MH_I2C_Read... [10:20:04]*** Stop cut motor [10:20:04]*** Cut end [10:20:04]Read from MH i2c: 01 07 00 [10:20:04]MH_I2C_Read... [10:20:04]Read from MH i2c: 01 07 00 F5 23 00 00 00 00 00 FF 0F 2D [10:20:04]process_action close_receipt done [10:20:04]requested_data is exist [10:20:04]produce_requested_data [10:20:04]requested_item fm.sn is exist - process it [10:20:04]wFMCommunicate request_size=4 [10:20:04]MH_SAM_APDU [10:20:04]CAPDU: 80 11 00 00 [10:20:04]Write to MH i2c: E2 08 00 F6 23 80 11 00 00 00 00 00 00 93 [10:20:04]Write i2c OK [10:20:04]MH_I2C_Read... [10:20:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:04]Read from MH i2c: E2 [10:20:04]MH_I2C_Read... [10:20:04]Read from MH i2c: E2 17 00 [10:20:04]MH_I2C_Read... [10:20:04]Read from MH i2c: E2 17 00 F6 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E6 [10: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 [10:20:04]wFMCommunicate OK [10:20:04]requested_item fd.num is exist - process it [10:20:04]SAM_PROTO_GetFieldsCounters [10:20:04]wFMCommunicate request_size=4 [10:20:04]MH_SAM_APDU [10:20:04]CAPDU: 80 13 00 00 [10:20:04]Write to MH i2c: E2 08 00 F7 23 80 13 00 00 00 00 00 00 96 [10:20:04]Write i2c OK [10:20:04]MH_I2C_Read... [10:20:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:04]Read from MH i2c: E2 [10:20:04]MH_I2C_Read... [10:20:04]Read from MH i2c: E2 62 00 [10:20:04]MH_I2C_Read... [10:20:04]Read from MH i2c: E2 62 00 F7 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 3F F1 02 00 0E 04 04 00 20 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 7F [10:20:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 F1 02 00 0E 04 04 00 20 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 [10:20:04]wFMCommunicate OK [10:20:04]SAM_PROTO_GetFieldsCounters done [10:20:04]requested_item shift.num is exist - process it [10:20:04]requested_item shift.opened is exist - process it [10:20:04]req_shift_opened [10:20:04]FM_GetShiftState [10:20:04]SAM_PROTO_GetShiftState [10:20:04]wFMCommunicate request_size=4 [10:20:04]MH_SAM_APDU [10:20:04]CAPDU: 80 13 01 00 [10:20:04]Write to MH i2c: E2 08 00 F8 23 80 13 01 00 00 00 00 00 98 [10:20:04]Write i2c OK [10:20:04]MH_I2C_Read... [10:20:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:04]Read from MH i2c: E2 [10:20:04]MH_I2C_Read... [10:20:04]Read from MH i2c: E2 0E 00 [10:20:04]MH_I2C_Read... [10:20:04]Read from MH i2c: E2 0E 00 F8 23 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 9E [10:20:04]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [10:20:04]wFMCommunicate OK [10:20:04]SAM_PROTO_GetShiftState done [10:20:04]FM_GetShiftState done [10:20:04]req_shift_opened done [10:20:04]requested_item shift.open_date is exist - process it [10:20:04]req_shift_open_date [10:20:04]req_shift_open_date done [10:20:04]produce_requested_data done [10:20:04]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192831,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [10:20:04]process_action_free close_receipt [10:20:04]json_value_free [10:20:04]json_value_free done [10:20:04]process_json_proto returns [10:20:04]Send response to host [10:20:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192831,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [10:20:04]free response buf [10:20:04]execute_script done [10:20:04]execute_script returns [10:20:04]free content buf [10:20:04]Sock 10.Close socket [10:20:04]Sock 10.Thread stoped [10:20:08]OFD Sender: No OFD packet to send [10:20:13]OFD Sender: No OFD packet to send [10:20:18]OFD Sender: No OFD packet to send [10:20:23]OFD Sender: No OFD packet to send [10:20:28]OFD Sender: No OFD packet to send [10:20:33]OFD Sender: No OFD packet to send [10:20:38]OFD Sender: No OFD packet to send [10:20:43]OFD Sender: No OFD packet to send [10:20:48]OFD Sender: No OFD packet to send [10:20:53]OFD Sender: No OFD packet to send [10:20:58]OFD Sender: No OFD packet to send [10:21:03]OFD Sender: No OFD packet to send [10:21:08]OFD Sender: No OFD packet to send [10:21:13]OFD Sender: No OFD packet to send [10:21:18]OFD Sender: No OFD packet to send [10:21:23]OFD Sender: No OFD packet to send [10:21:28]OFD Sender: No OFD packet to send [10:21:33]OFD Sender: No OFD packet to send [10:21:38]OFD Sender: No OFD packet to send [10:21:43]OFD Sender: No OFD packet to send [10:21:48]OFD Sender: No OFD packet to send [10:21:53]OFD Sender: No OFD packet to send [10:21:58]OFD Sender: No OFD packet to send [10:22:03]OFD Sender: No OFD packet to send [10:22:08]OFD Sender: No OFD packet to send [10:22:13]OFD Sender: No OFD packet to send [10:22:18]OFD Sender: No OFD packet to send [10:22:23]OFD Sender: No OFD packet to send [10:22:28]OFD Sender: No OFD packet to send [10:22:33]OFD Sender: No OFD packet to send [10:22:38]OFD Sender: No OFD packet to send [10:22:43]OFD Sender: No OFD packet to send [10:22:48]OFD Sender: No OFD packet to send [10:22:53]OFD Sender: No OFD packet to send [10:22:58]OFD Sender: No OFD packet to send [10:23:03]OFD Sender: No OFD packet to send [10:23:13]OFD Sender: No OFD packet to send [10:23:18]OFD Sender: No OFD packet to send [10:23:23]OFD Sender: No OFD packet to send [10:23:28]OFD Sender: No OFD packet to send [10:23:33]OFD Sender: No OFD packet to send [10:23:38]OFD Sender: No OFD packet to send [10:23:43]OFD Sender: No OFD packet to send [10:23:48]OFD Sender: No OFD packet to send [10:23:53]OFD Sender: No OFD packet to send [10:23:58]OFD Sender: No OFD packet to send [10:24:03]OFD Sender: No OFD packet to send [10:24:08]OFD Sender: No OFD packet to send [10:24:13]OFD Sender: No OFD packet to send [10:24:18]OFD Sender: No OFD packet to send [10:24:23]OFD Sender: No OFD packet to send [10:24:28]OFD Sender: No OFD packet to send [10:24:33]OFD Sender: No OFD packet to send [10:24:38]OFD Sender: No OFD packet to send [10:24:43]OFD Sender: No OFD packet to send [10:24:48]OFD Sender: No OFD packet to send [10:24:53]OFD Sender: No OFD packet to send [10:24:58]OFD Sender: No OFD packet to send [10:25:03]OFD Sender: No OFD packet to send [10:25:08]OFD Sender: No OFD packet to send [10:25:13]OFD Sender: No OFD packet to send [10:25:18]OFD Sender: No OFD packet to send [10:25:23]OFD Sender: No OFD packet to send [10:25:24]ConnectInit Can't connect to host [10:25:28]OFD Sender: No OFD packet to send [10:25:38]OFD Sender: No OFD packet to send [10:25:43]OFD Sender: No OFD packet to send [10:25:48]OFD Sender: No OFD packet to send [10:25:53]OFD Sender: No OFD packet to send [10:25:58]OFD Sender: No OFD packet to send [10:26:03]OFD Sender: No OFD packet to send [10:26:08]OFD Sender: No OFD packet to send [10:26:13]OFD Sender: No OFD packet to send [10:26:18]OFD Sender: No OFD packet to send [10:26:23]OFD Sender: No OFD packet to send [10:26:28]OFD Sender: No OFD packet to send [10:26:33]OFD Sender: No OFD packet to send [10:26:38]OFD Sender: No OFD packet to send [10:26:44]OFD Sender: No OFD packet to send [10:26:49]OFD Sender: No OFD packet to send [10:26:54]OFD Sender: No OFD packet to send [10:26:55]accept exits with 8 [10:26:55]New connection [10:26:55]New thread 3066801508 created [10:26:55]Thread 3066658148 joined [10:26:55]Waiting for new connection... [10:26:55] Sock 8.Parse request [10:26:55]Sock 8.Check first char [10:26:55]Sock 8.First char is OK [10:26:55]request: POST /json_proto HTTP/1.0 [10:26:55]Method: POST [10:26:55]URL: /json_proto [10:26:55]Method is POST - this is cgi request [10:26:55]url: /json_proto [10:26:55]query_string will be loaded in cgi processing [10:26:55]execute_cgi json_proto POST (null) [10:26:55]execute_cgi path=json_proto method=POST [10:26:55]POST find Content-Length [10:26:55]Host: 172.17.63.131:8080 [10:26:55]Content-Length: 677 [10:26:55]Content-Type: application/json [10:26:55] [10:26:55]POST finish read [10:26:55]Found Content-Length = 677 [10:26:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32162", "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:26:55]execute_script... [10:26:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32162", "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:26:55]POST & json_proto [10:26:55]process_json_proto [10:26:55]json parsed OK: [10:26:55]protocol is kg_v1.0 [10:26:55]action value=close_receipt [10:26:55]process_action close_receipt [10:26:55]cmd_close_receipt [10:26:55]MH_GetDate [10:26:55]Write to MH i2c: F0 00 00 F9 23 0B [10:26:55]Write i2c OK [10:26:55]MH_I2C_Read... [10:26:55]Read from MH i2c: F0 [10:26:55]MH_I2C_Read... [10:26:55]Read from MH i2c: F0 09 00 [10:26:55]MH_I2C_Read... [10:26:55]Read from MH i2c: F0 09 00 F9 23 00 73 B8 20 67 22 05 6E 64 BF [10:26:55]GetLastDocTimeStamp 1730197204 [10:26:55]current date 1730197619 [10:26:55]FM_GetShiftState [10:26:55]SAM_PROTO_GetShiftState [10:26:55]wFMCommunicate request_size=4 [10:26:55]MH_SAM_APDU [10:26:55]CAPDU: 80 13 01 00 [10:26:55]Write to MH i2c: E2 08 00 FA 23 80 13 01 00 00 00 00 00 9A [10:26:55]Write i2c OK [10:26:55]MH_I2C_Read... [10:26:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:55]Read from MH i2c: E2 [10:26:55]MH_I2C_Read... [10:26:55]Read from MH i2c: E2 0E 00 [10:26:55]MH_I2C_Read... [10:26:55]Read from MH i2c: E2 0E 00 FA 23 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 A0 [10:26:55]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [10:26:55]wFMCommunicate OK [10:26:55]SAM_PROTO_GetShiftState done [10:26:55]FM_GetShiftState done [10:26:55]opened in 1730161990 [10:26:55]opened+sec_in_day 1730248390 [10:26:55]quantity*price = 70044 [10:26:55]sum+1 = 70045 [10:26:55]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 СÐО: Общий режим Чек 38 29.10.2024 10:26 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192832 ФПД: 36138182363101 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T102659&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192832&fm=36138182363101&tin=02508201610067®Number=0000000000091776&sum=70000 [10:26:56]StoreToDocumentArchive [10:26:56]shift 544 fd 192832 [10:26:56]save to /storage/0544/doc_00192832 [10:26:56]save last doc name /storage/0544/doc_00192832 to /storage/kkm_last_doc_name [10:26:56]save OK [10:26:56]Clear old archive folders... [10:26:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:26:56]tlvbuf is B6F302C0 [10:26:56]SAM_PROTO_ClearQueue [10:26:56]wFMCommunicate request_size=4 [10:26:56]MH_SAM_APDU [10:26:56]CAPDU: 80 09 00 00 [10:26:56]Write to MH i2c: E2 08 00 07 24 80 09 00 00 00 00 00 00 9D [10:26:56]Write i2c OK [10:26:56]MH_I2C_Read... [10:26:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:26:56]Read from MH i2c: E2 [10:26:56]MH_I2C_Read... [10:26:56]Read from MH i2c: E2 03 00 [10:26:56]MH_I2C_Read... [10:26:56]Read from MH i2c: E2 03 00 07 24 00 90 00 9F [10:26:56]RAPDU: 90 00 [10:26:56]wFMCommunicate OK [10:26:56]SAM_PROTO_ClearQueue done [10:26:56]KKMCreateOFDPacket [10:26:56]OFDProtocolAddRootSTLVToBuf [10:26:56]FM_MakeSignedData [10:26:56]FM_MakeSignedData [10:26:56]SAM_PROTO_SignData [10:26:56]wFMCommunicate request_size=4 [10:26:56]MH_SAM_APDU [10:26:56]CAPDU: 80 0D 01 02 [10:26:56]Write to MH i2c: E2 08 00 08 24 80 0D 01 02 00 00 00 00 A5 [10:26:56]Write i2c OK [10:26:56]MH_I2C_Read... [10:26:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:26:56]Read from MH i2c: E2 [10:26:56]MH_I2C_Read... [10:26:56]Read from MH i2c: E2 03 00 [10:26:56]MH_I2C_Read... [10:26:56]Read from MH i2c: E2 03 00 08 24 00 90 00 A0 [10:26:56]RAPDU: 90 00 [10:26:56]wFMCommunicate OK [10:26:56]wFMCommunicate request_size=255 [10:26:56]MH_SAM_APDU [10:26: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 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 26 00 00 00 F4 03 04 00 73 B8 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 20 [10:26:56]Write to MH i2c: E2 02 01 09 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 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 26 00 00 00 F4 03 04 00 73 B8 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 20 00 00 96 [10:26:56]Write i2c OK [10:26:56]MH_I2C_Read... [10:26:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:56]Read from MH i2c: E2 [10:26:56]MH_I2C_Read... [10:26:56]Read from MH i2c: E2 03 00 [10:26:56]MH_I2C_Read... [10:26:56]Read from MH i2c: E2 03 00 09 24 00 90 00 A1 [10:26:56]RAPDU: 90 00 [10:26:56]wFMCommunicate OK [10:26:56]wFMCommunicate request_size=10 [10:26:56]MH_SAM_APDU [10:26:56]CAPDU: 80 0D 02 02 05 DE 13 85 C7 DD [10:26:56]Write to MH i2c: E2 0D 00 0A 24 80 0D 02 02 05 00 DE 13 85 C7 DD 00 00 CC [10:26:56]Write i2c OK [10:26:56]MH_I2C_Read... [10:26:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:57]Read from MH i2c: E2 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: E2 03 00 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: E2 03 00 0A 24 00 90 00 A2 [10:26:57]RAPDU: 90 00 [10:26:57]wFMCommunicate OK [10:26:57]wFMCommunicate request_size=4 [10:26:57]MH_SAM_APDU [10:26:57]CAPDU: 80 0D 03 02 [10:26:57]Write to MH i2c: E2 08 00 0B 24 80 0D 03 02 00 00 00 00 AA [10:26:57]Write i2c OK [10:26:57]MH_I2C_Read... [10:26:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:26:57]Read from MH i2c: E2 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: E2 0B 00 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: E2 0B 00 0B 24 00 68 0D E2 6A F1 B4 B8 D9 90 00 A2 [10:26:57]RAPDU: 68 0D E2 6A F1 B4 B8 D9 90 00 [10:26:57]wFMCommunicate OK [10:26:57]SAM_PROTO_SignData done [10:26:57]FM_MakeSignedData done [10:26:57]CreateOFDProtocolMessage [10:26:57]wFMCommunicate request_size=4 [10:26:57]MH_SAM_APDU [10:26:57]CAPDU: 80 11 00 00 [10:26:57]Write to MH i2c: E2 08 00 0C 24 80 11 00 00 00 00 00 00 AA [10:26:57]Write i2c OK [10:26:57]MH_I2C_Read... [10:26:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:57]Read from MH i2c: E2 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: E2 17 00 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: E2 17 00 0C 24 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:26: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:26:57]wFMCommunicate OK [10:26:57]CreateOFDProtocolMessage done [10:26:57]OFDSenderStorePacket 192832 [10:26:57]StoreOFDPacket docnum=192832 [10:26: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 33 51 07 01 3A 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 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 26 00 00 00 F4 03 04 00 73 B8 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 20 DE 13 85 C7 DD 68 0D E2 6A F1 B4 B8 D9 [10:26:57]CheckFolder [10:26:57]dirname=/storage/ofd_packets [10:26:57]CheckFolder done [10:26:57]ProducePacketName [10:26:57]name=ofd_packets/00192832 [10:26:57]NVStorageSaveData ofd_packets/00192832 [10:26:57]File name is /storage/ofd_packets/00192832 [10:26:57]Write 301 bytes [10:26:57]NVStorageSaveData done [10:26:57]OFDSenderStorePacket done [10:26:57]KKMCreateOFDPacket done [10:26:57]NVStorageSaveData kkm_last_timestamp [10:26:57]File name is /storage/kkm_last_timestamp [10:26:57]Write 4 bytes [10:26:57]NVStorageSaveData done [10:26:57]ExternCall_PrintAddStr [10:26:57]wPrintStart [10:26:57]Write to MH i2c: 01 00 00 0D 24 31 [10:26:57]Write i2c OK [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: 01 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: 01 07 00 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: 01 07 00 0D 24 00 00 00 00 00 FF 0F 46 [10:26:57]RasterBufferAndPrint [10:26:57]line Счет N : (1)32162 [10:26:57]line ИÐÐ: 02508201610067 [10:26:57]line Контрольно-КаÑÑовый Чек [10:26:57]line ПРОДÐЖР[10:26:57]line ТРК (МРК, ГÐК) : 12 [10:26:57]line Товар: 2710124130 [10:26:57]line Ðи-92-К-5 [10:26:57]line 10.470 * 66.90 [10:26:57]line = 700.44 [10:26:57]line ÐДС 12% ÐСП 1% [10:26:57]line > о реализуемом товаре [10:26:57]line ОКРУГЛЕÐИЕ: -0.44 [10:26:57]line ИТОГО: 700.00 [10:26:57]line ВнеÑено: 700.00 [10:26:57]line СДÐЧÐ: 0.00 [10:26:57]line ÐСП 1% : 6.20 [10:26:57]line ÐДС 12% : 74.38 [10:26:57]line Ðаличными: 700.00 [10:26:57]line Безнал.: 0.00 [10:26:57]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [10:26:57]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [10:26:57]line СÐО: Общий режим [10:26:57]line Чек 38 29.10.2024 10:26 [10:26:57]line Смена: 544 ФФД: 1.0 [10:26:57]line ЗÐМ: 0300000110 [10:26:57]line РÐМ: 0000000000091776 [10:26:57]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:26:57]line ФМ: 0000000000871754 [10:26:57]line ФД: 192832 [10:26:57]line ФПД: 36138182363101 [10:26:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T102659&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192832&fm=36138182363101&tin=02508201610067®Number=0000000000091776&sum=70000 [10:26:57]OFD Sender: Processing packet 192832 [packets to send 75, broken 74] [10:26:57]ProducePacketName [10:26:57]name=ofd_packets/00192832 [10:26:57]OFD Sender: To server: ‡•öpG, [10:26:57]CommunicateWithHost lk.salyk.kg:30040 [10:26:57]ConnectInit lk.salyk.kg [10:26:57]written 0, free lines is 4095 [10:26:57]Connected sock=11 [10:26:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 33 51 07 01 3A 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 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 26 00 00 00 F4 03 04 00 73 B8 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 20 DE 13 85 C7 DD 68 0D E2 6A F1 B4 B8 D9 [10:26:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C3 9D 47 00 90 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 40 F1 02 00 F4 03 04 00 34 5D 20 67 B6 04 01 00 00 E0 20 05 7B 8D 91 FE F3 [10:26:57]CommunicateWithHost err = 0 [10:26:57]CheckOFDResponse [10:26:57]1017 (14) - 77093643461234 [10:26:57]1041 (16) - 0000000000871754 [10:26:57]1040 (4) - 192832 [10:26:57]1012 (4) - 29.10.2024 03:57 [10:26:57]1206 (1) - 0 [10:26:57]OFD Sender: Remove packet 192832 [10:26:57]ProducePacketName [10:26:57]name=ofd_packets/00192832 [10:26:57]NVStorageDeleteData [10:26:57]Write to MH i2c: 01 00 00 38 24 5C [10:26:57]Write i2c OK [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: 01 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: 01 07 00 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: 01 07 00 38 24 00 00 00 00 00 B1 0C 20 [10:26:57]RasterBufferAndPrint [10:26:57]line [10:26:57]line [10:26:57]line [10:26:57]line [10:26:57]line [10:26:57]written 0, free lines is 3256 [10:26:57]MH_Cut [10:26:57]Write to MH i2c: D1 01 00 3F 24 01 35 [10:26:57]Write i2c OK [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: D1 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: D1 01 00 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: D1 01 00 3F 24 00 34 [10:26:57]Write to MH i2c: 01 00 00 40 24 64 [10:26:57]Write i2c OK [10:26:57]MH_I2C_Read... [10:26:58]OFD Sender: No OFD packet to send [10:26:58]*** Cut start [10:26:58]*** Partial cut [10:26:58]*** CUTSNS_PIN = 1 [10:26:58]*** CUTSNS_PIN = 0 [10:26:59]*** Brake cut motor [10:26:59]Read from MH i2c: 01 [10:26:59]MH_I2C_Read... [10:26:59]*** Stop cut motor [10:26:59]*** Cut end [10:26:59]Read from MH i2c: 01 07 00 [10:26:59]MH_I2C_Read... [10:26:59]Read from MH i2c: 01 07 00 40 24 00 00 00 00 00 FF 0F 79 [10:26:59]process_action close_receipt done [10:26:59]requested_data is exist [10:26:59]produce_requested_data [10:26:59]requested_item fm.sn is exist - process it [10:26:59]wFMCommunicate request_size=4 [10:26:59]MH_SAM_APDU [10:26:59]CAPDU: 80 11 00 00 [10:26:59]Write to MH i2c: E2 08 00 41 24 80 11 00 00 00 00 00 00 DF [10:26:59]Write i2c OK [10:26:59]MH_I2C_Read... [10:26:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:59]Read from MH i2c: E2 [10:26:59]MH_I2C_Read... [10:26:59]Read from MH i2c: E2 17 00 [10:26:59]MH_I2C_Read... [10:26:59]Read from MH i2c: E2 17 00 41 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 32 [10:26: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:26:59]wFMCommunicate OK [10:26:59]requested_item fd.num is exist - process it [10:26:59]SAM_PROTO_GetFieldsCounters [10:26:59]wFMCommunicate request_size=4 [10:26:59]MH_SAM_APDU [10:26:59]CAPDU: 80 13 00 00 [10:26:59]Write to MH i2c: E2 08 00 42 24 80 13 00 00 00 00 00 00 E2 [10:26:59]Write i2c OK [10:26:59]MH_I2C_Read... [10:26:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:59]Read from MH i2c: E2 [10:26:59]MH_I2C_Read... [10:26:59]Read from MH i2c: E2 62 00 [10:26:59]MH_I2C_Read... [10:26:59]Read from MH i2c: E2 62 00 42 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 40 F1 02 00 0E 04 04 00 20 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 CF [10:26: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 40 F1 02 00 0E 04 04 00 20 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 [10:26:59]wFMCommunicate OK [10:26:59]SAM_PROTO_GetFieldsCounters done [10:26:59]requested_item shift.num is exist - process it [10:26:59]requested_item shift.opened is exist - process it [10:26:59]req_shift_opened [10:26:59]FM_GetShiftState [10:26:59]SAM_PROTO_GetShiftState [10:26:59]wFMCommunicate request_size=4 [10:26:59]MH_SAM_APDU [10:26:59]CAPDU: 80 13 01 00 [10:26:59]Write to MH i2c: E2 08 00 43 24 80 13 01 00 00 00 00 00 E4 [10:26:59]Write i2c OK [10:26:59]MH_I2C_Read... [10:26:59]Read from MH i2c: E2 [10:26:59]MH_I2C_Read... [10:26:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:59]Read from MH i2c: E2 0E 00 [10:26:59]MH_I2C_Read... [10:26:59]Read from MH i2c: E2 0E 00 43 24 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 EA [10:26:59]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [10:26:59]wFMCommunicate OK [10:26:59]SAM_PROTO_GetShiftState done [10:26:59]FM_GetShiftState done [10:26:59]req_shift_opened done [10:26:59]requested_item shift.open_date is exist - process it [10:26:59]req_shift_open_date [10:26:59]req_shift_open_date done [10:26:59]produce_requested_data done [10:26:59]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192832,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [10:26:59]process_action_free close_receipt [10:26:59]json_value_free [10:26:59]json_value_free done [10:26:59]process_json_proto returns [10:26:59]Send response to host [10:26:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192832,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [10:26:59]free response buf [10:26:59]execute_script done [10:26:59]execute_script returns [10:26:59]free content buf [10:26:59]Sock 8.Close socket [10:26:59]Sock 8.Thread stoped [10:27:03]OFD Sender: No OFD packet to send [10:27:08]OFD Sender: No OFD packet to send [10:27:13]OFD Sender: No OFD packet to send [10:27:18]OFD Sender: No OFD packet to send [10:27:19]accept exits with 10 [10:27:19]New connection [10:27:19]New thread 3066658148 created [10:27:19]Thread 3066801508 joined [10:27:19]Waiting for new connection... [10:27:19] Sock 10.Parse request [10:27:19]Sock 10.Check first char [10:27:19]Sock 10.First char is OK [10:27:19]request: POST /json_proto HTTP/1.0 [10:27:19]Method: POST [10:27:19]URL: /json_proto [10:27:19]Method is POST - this is cgi request [10:27:19]url: /json_proto [10:27:19]query_string will be loaded in cgi processing [10:27:19]execute_cgi json_proto POST (null) [10:27:19]execute_cgi path=json_proto method=POST [10:27:19]POST find Content-Length [10:27:19]Host: 172.17.63.131:8080 [10:27:19]Content-Length: 778 [10:27:19]Content-Type: application/json [10:27:19] [10:27:19]POST finish read [10:27:19]Found Content-Length = 778 [10:27:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32161", "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" : 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\u000A4691215", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:19]execute_script... [10:27: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)32161", "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" : 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\u000A4691215", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:19]POST & json_proto [10:27:19]process_json_proto [10:27:19]json parsed OK: [10:27:19]protocol is kg_v1.0 [10:27:19]action value=close_receipt [10:27:19]process_action close_receipt [10:27:19]cmd_close_receipt [10:27:19]MH_GetDate [10:27:19]Write to MH i2c: F0 00 00 44 24 57 [10:27:19]Write i2c OK [10:27:19]MH_I2C_Read... [10:27:19]Read from MH i2c: F0 [10:27:19]MH_I2C_Read... [10:27:19]Read from MH i2c: F0 09 00 [10:27:19]MH_I2C_Read... [10:27:19]Read from MH i2c: F0 09 00 44 24 00 8B B8 20 67 22 05 6E 64 23 [10:27:19]GetLastDocTimeStamp 1730197619 [10:27:19]current date 1730197643 [10:27:19]FM_GetShiftState [10:27:19]SAM_PROTO_GetShiftState [10:27:19]wFMCommunicate request_size=4 [10:27:19]MH_SAM_APDU [10:27:19]CAPDU: 80 13 01 00 [10:27:19]Write to MH i2c: E2 08 00 45 24 80 13 01 00 00 00 00 00 E6 [10:27:19]Write i2c OK [10:27:19]MH_I2C_Read... [10:27:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:19]Read from MH i2c: E2 [10:27:19]MH_I2C_Read... [10:27:19]Read from MH i2c: E2 0E 00 [10:27:19]MH_I2C_Read... [10:27:19]Read from MH i2c: E2 0E 00 45 24 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 EC [10:27:19]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [10:27:19]wFMCommunicate OK [10:27:19]SAM_PROTO_GetShiftState done [10:27:19]FM_GetShiftState done [10:27:19]opened in 1730161990 [10:27:19]opened+sec_in_day 1730248390 [10:27:19]quantity*price = 0 [10:27:19]sum+1 = 1 [10:27:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 ÐСП 1% : 0.00 ÐДС 12% : 0.00 Ðаличными: 0.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 170 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 СÐО: Общий режим Чек 39 29.10.2024 10:27 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 Талоны: Партнер нефть 4691215 ФМ: 0000000000871754 ФД: 192833 ФПД: 203787715313236 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T102723&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192833&fm=203787715313236&tin=02508201610067®Number=0000000000091776&sum=0 [10:27:20]StoreToDocumentArchive [10:27:20]shift 544 fd 192833 [10:27:20]save to /storage/0544/doc_00192833 [10:27:20]save last doc name /storage/0544/doc_00192833 to /storage/kkm_last_doc_name [10:27:20]save OK [10:27:20]Clear old archive folders... [10:27:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:27:20]tlvbuf is 00F13A50 [10:27:20]SAM_PROTO_ClearQueue [10:27:20]wFMCommunicate request_size=4 [10:27:20]MH_SAM_APDU [10:27:20]CAPDU: 80 09 00 00 [10:27:20]Write to MH i2c: E2 08 00 52 24 80 09 00 00 00 00 00 00 E8 [10:27:20]Write i2c OK [10:27:20]MH_I2C_Read... [10:27:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:27:20]Read from MH i2c: E2 [10:27:20]MH_I2C_Read... [10:27:20]Read from MH i2c: E2 03 00 [10:27:20]MH_I2C_Read... [10:27:20]Read from MH i2c: E2 03 00 52 24 00 90 00 EA [10:27:20]RAPDU: 90 00 [10:27:20]wFMCommunicate OK [10:27:20]SAM_PROTO_ClearQueue done [10:27:20]KKMCreateOFDPacket [10:27:20]OFDProtocolAddRootSTLVToBuf [10:27:20]FM_MakeSignedData [10:27:20]FM_MakeSignedData [10:27:20]SAM_PROTO_SignData [10:27:20]wFMCommunicate request_size=4 [10:27:20]MH_SAM_APDU [10:27:20]CAPDU: 80 0D 01 02 [10:27:20]Write to MH i2c: E2 08 00 53 24 80 0D 01 02 00 00 00 00 F0 [10:27:20]Write i2c OK [10:27:20]MH_I2C_Read... [10:27:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:27:20]Read from MH i2c: E2 [10:27:20]MH_I2C_Read... [10:27:20]Read from MH i2c: E2 03 00 [10:27:20]MH_I2C_Read... [10:27:20]Read from MH i2c: E2 03 00 53 24 00 90 00 EB [10:27:20]RAPDU: 90 00 [10:27:20]wFMCommunicate OK [10:27:20]wFMCommunicate request_size=255 [10:27:20]MH_SAM_APDU [10:27:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 27 00 00 00 F4 03 04 00 8B B8 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 B9 58 06 61 [10:27:20]Write to MH i2c: E2 02 01 54 24 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 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 27 00 00 00 F4 03 04 00 8B B8 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 B9 58 06 61 00 00 7F [10:27:20]Write i2c OK [10:27:20]MH_I2C_Read... [10:27:20]Read from MH i2c: E2 [10:27:20]MH_I2C_Read... [10:27:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:20]Read from MH i2c: E2 03 00 [10:27:20]MH_I2C_Read... [10:27:20]Read from MH i2c: E2 03 00 54 24 00 90 00 EC [10:27:20]RAPDU: 90 00 [10:27:20]wFMCommunicate OK [10:27:20]wFMCommunicate request_size=7 [10:27:20]MH_SAM_APDU [10:27:20]CAPDU: 80 0D 02 02 02 7E 54 [10:27:20]Write to MH i2c: E2 0A 00 55 24 80 0D 02 02 02 00 7E 54 00 00 C9 [10:27:20]Write i2c OK [10:27:20]MH_I2C_Read... [10:27:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:20]Read from MH i2c: E2 [10:27:20]MH_I2C_Read... [10:27:20]Read from MH i2c: E2 03 00 [10:27:20]MH_I2C_Read... [10:27:20]Read from MH i2c: E2 03 00 55 24 00 90 00 ED [10:27:20]RAPDU: 90 00 [10:27:20]wFMCommunicate OK [10:27:20]wFMCommunicate request_size=4 [10:27:20]MH_SAM_APDU [10:27:20]CAPDU: 80 0D 03 02 [10:27:20]Write to MH i2c: E2 08 00 56 24 80 0D 03 02 00 00 00 00 F5 [10:27:20]Write i2c OK [10:27:20]MH_I2C_Read... [10:27:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:27:20]Read from MH i2c: E2 [10:27:20]MH_I2C_Read... [10:27:20]Read from MH i2c: E2 0B 00 [10:27:20]MH_I2C_Read... [10:27:20]Read from MH i2c: E2 0B 00 56 24 00 6D 90 66 4A 9C 39 7F 1C 90 00 13 [10:27:20]RAPDU: 6D 90 66 4A 9C 39 7F 1C 90 00 [10:27:20]wFMCommunicate OK [10:27:20]SAM_PROTO_SignData done [10:27:20]FM_MakeSignedData done [10:27:20]CreateOFDProtocolMessage [10:27:20]wFMCommunicate request_size=4 [10:27:20]MH_SAM_APDU [10:27:20]CAPDU: 80 11 00 00 [10:27:20]Write to MH i2c: E2 08 00 57 24 80 11 00 00 00 00 00 00 F5 [10:27:20]Write i2c OK [10:27:20]MH_I2C_Read... [10:27:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:21]Read from MH i2c: E2 [10:27:21]MH_I2C_Read... [10:27:21]Read from MH i2c: E2 17 00 [10:27:21]MH_I2C_Read... [10:27:21]Read from MH i2c: E2 17 00 57 24 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: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 [10:27:21]wFMCommunicate OK [10:27:21]CreateOFDProtocolMessage done [10:27:21]OFDSenderStorePacket 192833 [10:27:21]StoreOFDPacket docnum=192833 [10:27: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 B1 FD 04 01 67 6A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 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 27 00 00 00 F4 03 04 00 8B B8 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 B9 58 06 61 7E 54 6D 90 66 4A 9C 39 7F 1C [10:27:21]CheckFolder [10:27:21]dirname=/storage/ofd_packets [10:27:21]CheckFolder done [10:27:21]ProducePacketName [10:27:21]name=ofd_packets/00192833 [10:27:21]NVStorageSaveData ofd_packets/00192833 [10:27:21]File name is /storage/ofd_packets/00192833 [10:27:21]Write 298 bytes [10:27:21]NVStorageSaveData done [10:27:21]OFDSenderStorePacket done [10:27:21]KKMCreateOFDPacket done [10:27:21]NVStorageSaveData kkm_last_timestamp [10:27:21]File name is /storage/kkm_last_timestamp [10:27:21]Write 4 bytes [10:27:21]NVStorageSaveData done [10:27:21]ExternCall_PrintAddStr [10:27:21]wPrintStart [10:27:21]Write to MH i2c: 01 00 00 58 24 7C [10:27:21]Write i2c OK [10:27:21]MH_I2C_Read... [10:27:21]Read from MH i2c: 01 [10:27:21]MH_I2C_Read... [10:27:21]OFD Sender: Processing packet 192833 [packets to send 75, broken 74] [10:27:21]ProducePacketName [10:27:21]name=ofd_packets/00192833 [10:27:21]OFD Sender: To server: ‡•öpG, [10:27:21]CommunicateWithHost lk.salyk.kg:30040 [10:27:21]ConnectInit lk.salyk.kg [10:27:21]Read from MH i2c: 01 07 00 [10:27:21]MH_I2C_Read... [10:27:21]Read from MH i2c: 01 07 00 58 24 00 00 00 00 00 FF 0F 91 [10:27:21]RasterBufferAndPrint [10:27:21]line Счет N : (1)32161 [10:27:21]line ИÐÐ: 02508201610067 [10:27:21]line Контрольно-КаÑÑовый Чек [10:27:21]line ПРОДÐЖР[10:27:21]line ТРК (МРК, ГÐК) : 11 [10:27:21]line Товар: 2710194210 [10:27:21]line ДТ-К-5 [10:27:21]line 20.000 * 0.00 [10:27:21]line = 0.00 [10:27:21]line ÐДС 12% ÐСП 1% [10:27:21]line > о реализуемом товаре [10:27:21]line ИТОГО: 0.00 [10:27:21]line ÐСП 1% : 0.00 [10:27:21]line ÐДС 12% : 0.00 [10:27:21]line Ðаличными: 0.00 [10:27:21]line Безнал.: 0.00 [10:27:21]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [10:27:21]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [10:27:21]line СÐО: Общий режим [10:27:21]line Чек 39 29.10.2024 10:27 [10:27:21]line Смена: 544 ФФД: 1.0 [10:27:21]line ЗÐМ: 0300000110 [10:27:21]line РÐМ: 0000000000091776 [10:27:21]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:27:21]line Талоны: Партнер нефть [10:27:21]line 4691215 [10:27:21]line ФМ: 0000000000871754 [10:27:21]line ФД: 192833 [10:27:21]line ФПД: 203787715313236 [10:27:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T102723&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192833&fm=203787715313236&tin=02508201610067®Number=0000000000091776&sum=0 [10:27:21]written 0, free lines is 4095 [10:27:21]Connected sock=11 [10:27: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 0C 01 00 00 B1 FD 04 01 67 6A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 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 27 00 00 00 F4 03 04 00 8B B8 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 B9 58 06 61 7E 54 6D 90 66 4A 9C 39 7F 1C [10:27: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 01 B4 47 00 25 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 41 F1 02 00 F4 03 04 00 4C 5D 20 67 B6 04 01 00 00 12 AC E9 14 58 F3 3F AF [10:27:21]CommunicateWithHost err = 0 [10:27:21]CheckOFDResponse [10:27:21]1017 (14) - 77093643461234 [10:27:21]1041 (16) - 0000000000871754 [10:27:21]1040 (4) - 192833 [10:27:21]1012 (4) - 29.10.2024 03:58 [10:27:21]1206 (1) - 0 [10:27:21]OFD Sender: Remove packet 192833 [10:27:21]ProducePacketName [10:27:21]name=ofd_packets/00192833 [10:27:21]NVStorageDeleteData [10:27:21]Write to MH i2c: 01 00 00 82 24 A6 [10:27:21]Write i2c OK [10:27:21]MH_I2C_Read... [10:27:21]Read from MH i2c: 01 [10:27:21]MH_I2C_Read... [10:27:21]Read from MH i2c: 01 07 00 [10:27:21]MH_I2C_Read... [10:27:21]Read from MH i2c: 01 07 00 82 24 00 00 00 00 00 D0 0C 89 [10:27:21]RasterBufferAndPrint [10:27:21]line [10:27:21]line [10:27:21]line [10:27:21]line [10:27:21]line [10:27:21]written 0, free lines is 3296 [10:27:21]MH_Cut [10:27:21]Write to MH i2c: D1 01 00 89 24 01 7F [10:27:21]Write i2c OK [10:27:21]MH_I2C_Read... [10:27:21]Read from MH i2c: D1 [10:27:21]MH_I2C_Read... [10:27:21]Read from MH i2c: D1 01 00 [10:27:21]MH_I2C_Read... [10:27:21]Read from MH i2c: D1 01 00 89 24 00 7E [10:27:21]Write to MH i2c: 01 00 00 8A 24 AE [10:27:21]Write i2c OK [10:27:21]MH_I2C_Read... [10:27:21]OFD Sender: No OFD packet to send [10:27:22]*** Cut start [10:27:22]*** Partial cut [10:27:22]*** CUTSNS_PIN = 1 [10:27:22]*** CUTSNS_PIN = 0 [10:27:22]*** Brake cut motor [10:27:22]Read from MH i2c: 01 [10:27:23]MH_I2C_Read... [10:27:23]*** Stop cut motor [10:27:23]*** Cut end [10:27:23]Read from MH i2c: 01 07 00 [10:27:23]MH_I2C_Read... [10:27:23]Read from MH i2c: 01 07 00 8A 24 00 00 00 00 00 FF 0F C3 [10:27:23]process_action close_receipt done [10:27:23]requested_data is exist [10:27:23]produce_requested_data [10:27:23]requested_item fm.sn is exist - process it [10:27:23]wFMCommunicate request_size=4 [10:27:23]MH_SAM_APDU [10:27:23]CAPDU: 80 11 00 00 [10:27:23]Write to MH i2c: E2 08 00 8B 24 80 11 00 00 00 00 00 00 29 [10:27:23]Write i2c OK [10:27:23]MH_I2C_Read... [10:27:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:23]Read from MH i2c: E2 [10:27:23]MH_I2C_Read... [10:27:23]Read from MH i2c: E2 17 00 [10:27:23]MH_I2C_Read... [10:27:23]Read from MH i2c: E2 17 00 8B 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7C [10:27: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:27:23]wFMCommunicate OK [10:27:23]requested_item fd.num is exist - process it [10:27:23]SAM_PROTO_GetFieldsCounters [10:27:23]wFMCommunicate request_size=4 [10:27:23]MH_SAM_APDU [10:27:23]CAPDU: 80 13 00 00 [10:27:23]Write to MH i2c: E2 08 00 8C 24 80 13 00 00 00 00 00 00 2C [10:27:23]Write i2c OK [10:27:23]MH_I2C_Read... [10:27:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:27:23]Read from MH i2c: E2 [10:27:23]MH_I2C_Read... [10:27:23]Read from MH i2c: E2 62 00 [10:27:23]MH_I2C_Read... [10:27:23]Read from MH i2c: E2 62 00 8C 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 41 F1 02 00 0E 04 04 00 20 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 1D [10:27: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 41 F1 02 00 0E 04 04 00 20 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 [10:27:23]wFMCommunicate OK [10:27:23]SAM_PROTO_GetFieldsCounters done [10:27:23]requested_item shift.num is exist - process it [10:27:23]requested_item shift.opened is exist - process it [10:27:23]req_shift_opened [10:27:23]FM_GetShiftState [10:27:23]SAM_PROTO_GetShiftState [10:27:23]wFMCommunicate request_size=4 [10:27:23]MH_SAM_APDU [10:27:23]CAPDU: 80 13 01 00 [10:27:23]Write to MH i2c: E2 08 00 8D 24 80 13 01 00 00 00 00 00 2E [10:27:23]Write i2c OK [10:27:23]MH_I2C_Read... [10:27:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:23]Read from MH i2c: E2 [10:27:23]MH_I2C_Read... [10:27:23]Read from MH i2c: E2 0E 00 [10:27:23]MH_I2C_Read... [10:27:23]Read from MH i2c: E2 0E 00 8D 24 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 34 [10:27:23]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [10:27:23]wFMCommunicate OK [10:27:23]SAM_PROTO_GetShiftState done [10:27:23]FM_GetShiftState done [10:27:23]req_shift_opened done [10:27:23]requested_item shift.open_date is exist - process it [10:27:23]req_shift_open_date [10:27:23]req_shift_open_date done [10:27:23]produce_requested_data done [10:27:23]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192833,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [10:27:23]process_action_free close_receipt [10:27:23]json_value_free [10:27:23]json_value_free done [10:27:23]process_json_proto returns [10:27:23]Send response to host [10:27:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192833,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [10:27:23]free response buf [10:27:23]execute_script done [10:27:23]execute_script returns [10:27:23]free content buf [10:27:23]Sock 10.Close socket [10:27:23]Sock 10.Thread stoped [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:47]OFD Sender: No OFD packet to send [10:27:47]ConnectInit Can't connect to host [10:27:52]OFD Sender: No OFD packet to send [10:27:57]OFD Sender: No OFD packet to send [10:28:02]OFD Sender: No OFD packet to send [10:28:07]OFD Sender: No OFD packet to send [10:28:12]OFD Sender: No OFD packet to send [10:28:17]OFD Sender: No OFD packet to send [10:28:22]OFD Sender: No OFD packet to send [10:28:27]OFD Sender: No OFD packet to send [10:28:32]OFD Sender: No OFD packet to send [10:28:37]OFD Sender: No OFD packet to send [10:28:42]OFD Sender: No OFD packet to send [10:28:47]OFD Sender: No OFD packet to send [10:28:52]OFD Sender: No OFD packet to send [10:28:57]OFD Sender: No OFD packet to send [10:29:02]OFD Sender: No OFD packet to send [10:29:07]OFD Sender: No OFD packet to send [10:29:09]accept exits with 8 [10:29:09]New connection [10:29:09]New thread 3066801508 created [10:29:09]Thread 3066658148 joined [10:29:09]Waiting for new connection... [10:29:09] Sock 8.Parse request [10:29:09]Sock 8.Check first char [10:29:09]Sock 8.First char is OK [10:29:09]request: POST /json_proto HTTP/1.0 [10:29:09]Method: POST [10:29:09]URL: /json_proto [10:29:09]Method is POST - this is cgi request [10:29:09]url: /json_proto [10:29:09]query_string will be loaded in cgi processing [10:29:09]execute_cgi json_proto POST (null) [10:29:09]execute_cgi path=json_proto method=POST [10:29:09]POST find Content-Length [10:29:09]Host: 172.17.63.131:8080 [10:29:09]Content-Length: 676 [10:29:09]Content-Type: application/json [10:29:09] [10:29:09]POST finish read [10:29:09]Found Content-Length = 676 [10:29:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32164", "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:29:09]execute_script... [10:29:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32164", "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:29:09]POST & json_proto [10:29:09]process_json_proto [10:29:09]json parsed OK: [10:29:09]protocol is kg_v1.0 [10:29:09]action value=close_receipt [10:29:09]process_action close_receipt [10:29:09]cmd_close_receipt [10:29:09]MH_GetDate [10:29:09]Write to MH i2c: F0 00 00 8E 24 A1 [10:29:09]Write i2c OK [10:29:09]MH_I2C_Read... [10:29:09]Read from MH i2c: F0 [10:29:09]MH_I2C_Read... [10:29:09]Read from MH i2c: F0 09 00 [10:29:09]MH_I2C_Read... [10:29:09]Read from MH i2c: F0 09 00 8E 24 00 F9 B8 20 67 22 05 6E 64 DB [10:29:09]GetLastDocTimeStamp 1730197643 [10:29:09]current date 1730197753 [10:29:09]FM_GetShiftState [10:29:09]SAM_PROTO_GetShiftState [10:29:09]wFMCommunicate request_size=4 [10:29:09]MH_SAM_APDU [10:29:09]CAPDU: 80 13 01 00 [10:29:09]Write to MH i2c: E2 08 00 8F 24 80 13 01 00 00 00 00 00 30 [10:29:09]Write i2c OK [10:29:09]MH_I2C_Read... [10:29:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:09]Read from MH i2c: E2 [10:29:09]MH_I2C_Read... [10:29:09]Read from MH i2c: E2 0E 00 [10:29:09]MH_I2C_Read... [10:29:09]Read from MH i2c: E2 0E 00 8F 24 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 36 [10:29:09]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [10:29:09]wFMCommunicate OK [10:29:09]SAM_PROTO_GetShiftState done [10:29:09]FM_GetShiftState done [10:29:09]opened in 1730161990 [10:29:09]opened+sec_in_day 1730248390 [10:29:09]quantity*price = 50041 [10:29:09]sum+1 = 50042 [10:29: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 СÐО: Общий режим Чек 40 29.10.2024 10:29 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192834 ФПД: 207125153726721 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T102913&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192834&fm=207125153726721&tin=02508201610067®Number=0000000000091776&sum=50000 [10:29:10]StoreToDocumentArchive [10:29:10]shift 544 fd 192834 [10:29:10]save to /storage/0544/doc_00192834 [10:29:10]save last doc name /storage/0544/doc_00192834 to /storage/kkm_last_doc_name [10:29:10]save OK [10:29:10]Clear old archive folders... [10:29:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:29:10]tlvbuf is 00F0F450 [10:29:10]SAM_PROTO_ClearQueue [10:29:10]wFMCommunicate request_size=4 [10:29:10]MH_SAM_APDU [10:29:10]CAPDU: 80 09 00 00 [10:29:10]Write to MH i2c: E2 08 00 9C 24 80 09 00 00 00 00 00 00 32 [10:29:10]Write i2c OK [10:29:10]MH_I2C_Read... [10:29:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:10]Read from MH i2c: E2 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: E2 03 00 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: E2 03 00 9C 24 00 90 00 34 [10:29:10]RAPDU: 90 00 [10:29:10]wFMCommunicate OK [10:29:10]SAM_PROTO_ClearQueue done [10:29:10]KKMCreateOFDPacket [10:29:10]OFDProtocolAddRootSTLVToBuf [10:29:10]FM_MakeSignedData [10:29:10]FM_MakeSignedData [10:29:10]SAM_PROTO_SignData [10:29:10]wFMCommunicate request_size=4 [10:29:10]MH_SAM_APDU [10:29:10]CAPDU: 80 0D 01 02 [10:29:10]Write to MH i2c: E2 08 00 9D 24 80 0D 01 02 00 00 00 00 3A [10:29:10]Write i2c OK [10:29:10]MH_I2C_Read... [10:29:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:10]Read from MH i2c: E2 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: E2 03 00 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: E2 03 00 9D 24 00 90 00 35 [10:29:10]RAPDU: 90 00 [10:29:10]wFMCommunicate OK [10:29:10]wFMCommunicate request_size=255 [10:29:10]MH_SAM_APDU [10:29:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 F9 B8 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 BC [10:29:10]Write to MH i2c: E2 02 01 9E 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 F9 B8 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 BC 00 00 41 [10:29:10]Write i2c OK [10:29:10]MH_I2C_Read... [10:29:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:11]Read from MH i2c: E2 [10:29:11]MH_I2C_Read... [10:29:11]Read from MH i2c: E2 03 00 [10:29:11]MH_I2C_Read... [10:29:11]Read from MH i2c: E2 03 00 9E 24 00 90 00 36 [10:29:11]RAPDU: 90 00 [10:29:11]wFMCommunicate OK [10:29:11]wFMCommunicate request_size=10 [10:29:11]MH_SAM_APDU [10:29:11]CAPDU: 80 0D 02 02 05 61 15 36 41 01 [10:29:11]Write to MH i2c: E2 0D 00 9F 24 80 0D 02 02 05 00 61 15 36 41 01 00 00 35 [10:29:11]Write i2c OK [10:29:11]MH_I2C_Read... [10:29:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:11]Read from MH i2c: E2 [10:29:11]MH_I2C_Read... [10:29:11]Read from MH i2c: E2 03 00 [10:29:11]MH_I2C_Read... [10:29:11]Read from MH i2c: E2 03 00 9F 24 00 90 00 37 [10:29:11]RAPDU: 90 00 [10:29:11]wFMCommunicate OK [10:29:11]wFMCommunicate request_size=4 [10:29:11]MH_SAM_APDU [10:29:11]CAPDU: 80 0D 03 02 [10:29:11]Write to MH i2c: E2 08 00 A0 24 80 0D 03 02 00 00 00 00 3F [10:29:11]Write i2c OK [10:29:11]MH_I2C_Read... [10:29:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:11]Read from MH i2c: E2 [10:29:11]MH_I2C_Read... [10:29:11]Read from MH i2c: E2 0B 00 [10:29:11]MH_I2C_Read... [10:29:11]Read from MH i2c: E2 0B 00 A0 24 00 67 39 56 8E 50 B5 E0 46 90 00 EF [10:29:11]RAPDU: 67 39 56 8E 50 B5 E0 46 90 00 [10:29:11]wFMCommunicate OK [10:29:11]SAM_PROTO_SignData done [10:29:11]FM_MakeSignedData done [10:29:11]CreateOFDProtocolMessage [10:29:11]wFMCommunicate request_size=4 [10:29:11]MH_SAM_APDU [10:29:11]CAPDU: 80 11 00 00 [10:29:11]Write to MH i2c: E2 08 00 A1 24 80 11 00 00 00 00 00 00 3F [10:29:11]Write i2c OK [10:29:11]MH_I2C_Read... [10:29:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:11]Read from MH i2c: E2 [10:29:11]MH_I2C_Read... [10:29:11]Read from MH i2c: E2 17 00 [10:29:11]MH_I2C_Read... [10:29:11]Read from MH i2c: E2 17 00 A1 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 92 [10:29:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:29:11]wFMCommunicate OK [10:29:11]CreateOFDProtocolMessage done [10:29:11]OFDSenderStorePacket 192834 [10:29:11]StoreOFDPacket docnum=192834 [10:29: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 87 91 07 01 78 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 F9 B8 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 BC 61 15 36 41 01 67 39 56 8E 50 B5 E0 46 [10:29:11]CheckFolder [10:29:11]dirname=/storage/ofd_packets [10:29:11]CheckFolder done [10:29:11]ProducePacketName [10:29:11]name=ofd_packets/00192834 [10:29:11]NVStorageSaveData ofd_packets/00192834 [10:29:11]File name is /storage/ofd_packets/00192834 [10:29:11]Write 301 bytes [10:29:11]NVStorageSaveData done [10:29:11]OFDSenderStorePacket done [10:29:11]KKMCreateOFDPacket done [10:29:11]NVStorageSaveData kkm_last_timestamp [10:29:11]File name is /storage/kkm_last_timestamp [10:29:11]Write 4 bytes [10:29:11]NVStorageSaveData done [10:29:11]ExternCall_PrintAddStr [10:29:11]wPrintStart [10:29:11]Write to MH i2c: 01 00 00 A2 24 C6 [10:29:11]Write i2c OK [10:29:11]MH_I2C_Read... [10:29:11]Read from MH i2c: 01 [10:29:11]MH_I2C_Read... [10:29:11]Read from MH i2c: 01 07 00 [10:29:11]MH_I2C_Read... [10:29:11]Read from MH i2c: 01 07 00 A2 24 00 00 00 00 00 FF 0F DB [10:29:11]RasterBufferAndPrint [10:29:11]line Счет N : (1)32164 [10:29:11]line ИÐÐ: 02508201610067 [10:29:11]line Контрольно-КаÑÑовый Чек [10:29:11]line ПРОДÐЖР[10:29:11]line ТРК (МРК, ГÐК) : 12 [10:29:11]line Товар: 2710124130 [10:29:11]line Ðи-92-К-5 [10:29:11]line 7.480 * 66.90 [10:29:11]line = 500.41 [10:29:11]line ÐДС 12% ÐСП 1% [10:29:11]line > о реализуемом товаре [10:29:11]line ОКРУГЛЕÐИЕ: -0.41 [10:29:11]line ИТОГО: 500.00 [10:29:11]line ВнеÑено: 500.00 [10:29:11]line СДÐЧÐ: 0.00 [10:29:11]line ÐСП 1% : 4.43 [10:29:11]line ÐДС 12% : 53.14 [10:29:11]line Ðаличными: 500.00 [10:29:11]line Безнал.: 0.00 [10:29:11]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [10:29:11]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [10:29:11]line СÐО: Общий режим [10:29:11]line Чек 40 29.10.2024 10:29 [10:29:11]line Смена: 544 ФФД: 1.0 [10:29:11]line ЗÐМ: 0300000110 [10:29:11]line РÐМ: 0000000000091776 [10:29:11]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:29:11]line ФМ: 0000000000871754 [10:29:11]line ФД: 192834 [10:29:11]line ФПД: 207125153726721 [10:29:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T102913&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192834&fm=207125153726721&tin=02508201610067®Number=0000000000091776&sum=50000 [10:29:11]OFD Sender: Processing packet 192834 [packets to send 75, broken 74] [10:29:11]ProducePacketName [10:29:11]name=ofd_packets/00192834 [10:29:11]OFD Sender: To server: ‡•öpG, [10:29:11]CommunicateWithHost lk.salyk.kg:30040 [10:29:11]ConnectInit lk.salyk.kg [10:29:11]written 0, free lines is 4095 [10:29:11]Connected sock=10 [10:29:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 87 91 07 01 78 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 F9 B8 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 BC 61 15 36 41 01 67 39 56 8E 50 B5 E0 46 [10:29:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E9 AA 47 00 14 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 42 F1 02 00 F4 03 04 00 BA 5D 20 67 B6 04 01 00 00 40 FF 73 C1 BE 0D 6B BF [10:29:11]CommunicateWithHost err = 0 [10:29:11]CheckOFDResponse [10:29:11]1017 (14) - 77093643461234 [10:29:11]1041 (16) - 0000000000871754 [10:29:11]1040 (4) - 192834 [10:29:11]1012 (4) - 29.10.2024 03:59 [10:29:11]1206 (1) - 0 [10:29:11]OFD Sender: Remove packet 192834 [10:29:11]ProducePacketName [10:29:11]name=ofd_packets/00192834 [10:29:11]NVStorageDeleteData [10:29:12]Write to MH i2c: 01 00 00 CD 24 F1 [10:29:12]Write i2c OK [10:29:12]MH_I2C_Read... [10:29:12]Read from MH i2c: 01 [10:29:12]MH_I2C_Read... [10:29:12]Read from MH i2c: 01 07 00 [10:29:12]MH_I2C_Read... [10:29:12]Read from MH i2c: 01 07 00 CD 24 00 00 00 00 00 AE 0C B2 [10:29:12]RasterBufferAndPrint [10:29:12]line [10:29:12]line [10:29:12]line [10:29:12]line [10:29:12]line [10:29:12]written 0, free lines is 3252 [10:29:12]MH_Cut [10:29:12]Write to MH i2c: D1 01 00 D4 24 01 CA [10:29:12]Write i2c OK [10:29:12]MH_I2C_Read... [10:29:12]Read from MH i2c: D1 [10:29:12]MH_I2C_Read... [10:29:12]Read from MH i2c: D1 01 00 [10:29:12]MH_I2C_Read... [10:29:12]Read from MH i2c: D1 01 00 D4 24 00 C9 [10:29:12]Write to MH i2c: 01 00 00 D5 24 F9 [10:29:12]Write i2c OK [10:29:12]MH_I2C_Read... [10:29:12]OFD Sender: No OFD packet to send [10:29:12]*** Cut start [10:29:12]*** Partial cut [10:29:12]*** CUTSNS_PIN = 1 [10:29:13]*** CUTSNS_PIN = 0 [10:29:13]*** Brake cut motor [10:29:13]Read from MH i2c: 01 [10:29:13]MH_I2C_Read... [10:29:13]*** Stop cut motor [10:29:13]*** Cut end [10:29:13]Read from MH i2c: 01 07 00 [10:29:13]MH_I2C_Read... [10:29:13]Read from MH i2c: 01 07 00 D5 24 00 00 00 00 00 FF 0F 0E [10:29:13]process_action close_receipt done [10:29:13]requested_data is exist [10:29:13]produce_requested_data [10:29:13]requested_item fm.sn is exist - process it [10:29:13]wFMCommunicate request_size=4 [10:29:13]MH_SAM_APDU [10:29:13]CAPDU: 80 11 00 00 [10:29:13]Write to MH i2c: E2 08 00 D6 24 80 11 00 00 00 00 00 00 74 [10:29:13]Write i2c OK [10:29:13]MH_I2C_Read... [10:29:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:13]Read from MH i2c: E2 [10:29:13]MH_I2C_Read... [10:29:13]Read from MH i2c: E2 17 00 [10:29:13]MH_I2C_Read... [10:29:13]Read from MH i2c: E2 17 00 D6 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C7 [10:29:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:29:13]wFMCommunicate OK [10:29:13]requested_item fd.num is exist - process it [10:29:13]SAM_PROTO_GetFieldsCounters [10:29:13]wFMCommunicate request_size=4 [10:29:13]MH_SAM_APDU [10:29:13]CAPDU: 80 13 00 00 [10:29:13]Write to MH i2c: E2 08 00 D7 24 80 13 00 00 00 00 00 00 77 [10:29:13]Write i2c OK [10:29:13]MH_I2C_Read... [10:29:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:13]Read from MH i2c: E2 [10:29:13]MH_I2C_Read... [10:29:13]Read from MH i2c: E2 62 00 [10:29:13]MH_I2C_Read... [10:29:13]Read from MH i2c: E2 62 00 D7 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 F1 02 00 0E 04 04 00 20 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 6C [10:29: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 42 F1 02 00 0E 04 04 00 20 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 [10:29:13]wFMCommunicate OK [10:29:13]SAM_PROTO_GetFieldsCounters done [10:29:13]requested_item shift.num is exist - process it [10:29:13]requested_item shift.opened is exist - process it [10:29:13]req_shift_opened [10:29:13]FM_GetShiftState [10:29:13]SAM_PROTO_GetShiftState [10:29:13]wFMCommunicate request_size=4 [10:29:13]MH_SAM_APDU [10:29:13]CAPDU: 80 13 01 00 [10:29:13]Write to MH i2c: E2 08 00 D8 24 80 13 01 00 00 00 00 00 79 [10:29:13]Write i2c OK [10:29:13]MH_I2C_Read... [10:29:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:13]Read from MH i2c: E2 [10:29:13]MH_I2C_Read... [10:29:13]Read from MH i2c: E2 0E 00 [10:29:13]MH_I2C_Read... [10:29:13]Read from MH i2c: E2 0E 00 D8 24 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 7F [10:29:13]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [10:29:13]wFMCommunicate OK [10:29:13]SAM_PROTO_GetShiftState done [10:29:13]FM_GetShiftState done [10:29:13]req_shift_opened done [10:29:13]requested_item shift.open_date is exist - process it [10:29:13]req_shift_open_date [10:29:13]req_shift_open_date done [10:29:13]produce_requested_data done [10:29:13]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192834,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [10:29:13]process_action_free close_receipt [10:29:13]json_value_free [10:29:13]json_value_free done [10:29:13]process_json_proto returns [10:29:13]Send response to host [10:29:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192834,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [10:29:13]free response buf [10:29:13]execute_script done [10:29:13]execute_script returns [10:29:13]free content buf [10:29:13]Sock 8.Close socket [10:29:13]Sock 8.Thread stoped [10:29:15]accept exits with 9 [10:29:15]New connection [10:29:15]New thread 3066658148 created [10:29:15]Thread 3066801508 joined [10:29:15]Waiting for new connection... [10:29:15] Sock 9.Parse request [10:29:15]Sock 9.Check first char [10:29:15]Sock 9.First char is OK [10:29:15]request: POST /json_proto HTTP/1.0 [10:29:15]Method: POST [10:29:15]URL: /json_proto [10:29:15]Method is POST - this is cgi request [10:29:15]url: /json_proto [10:29:15]query_string will be loaded in cgi processing [10:29:15]execute_cgi json_proto POST (null) [10:29:15]execute_cgi path=json_proto method=POST [10:29:15]POST find Content-Length [10:29:15]Host: 172.17.63.131:8080 [10:29:15]Content-Length: 673 [10:29:15]Content-Type: application/json [10:29:15] [10:29:15]POST finish read [10:29:15]Found Content-Length = 673 [10:29:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32163", "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 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:15]execute_script... [10: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)32163", "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 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:15]POST & json_proto [10:29:15]process_json_proto [10:29:15]json parsed OK: [10:29:15]protocol is kg_v1.0 [10:29:15]action value=close_receipt [10:29:15]process_action close_receipt [10:29:15]cmd_close_receipt [10:29:15]MH_GetDate [10:29:15]Write to MH i2c: F0 00 00 D9 24 EC [10:29:15]Write i2c OK [10:29:15]MH_I2C_Read... [10:29:15]Read from MH i2c: F0 [10:29:15]MH_I2C_Read... [10:29:15]Read from MH i2c: F0 09 00 [10:29:15]MH_I2C_Read... [10:29:15]Read from MH i2c: F0 09 00 D9 24 00 FF B8 20 67 22 05 6E 64 2C [10:29:15]GetLastDocTimeStamp 1730197753 [10:29:15]current date 1730197759 [10:29:15]FM_GetShiftState [10:29:15]SAM_PROTO_GetShiftState [10:29:15]wFMCommunicate request_size=4 [10:29:15]MH_SAM_APDU [10:29:15]CAPDU: 80 13 01 00 [10:29:15]Write to MH i2c: E2 08 00 DA 24 80 13 01 00 00 00 00 00 7B [10:29:15]Write i2c OK [10:29:15]MH_I2C_Read... [10:29:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:15]Read from MH i2c: E2 [10:29:15]MH_I2C_Read... [10:29:15]Read from MH i2c: E2 0E 00 [10:29:15]MH_I2C_Read... [10:29:15]Read from MH i2c: E2 0E 00 DA 24 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 81 [10:29:15]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [10:29:15]wFMCommunicate OK [10:29:15]SAM_PROTO_GetShiftState done [10:29:15]FM_GetShiftState done [10:29:15]opened in 1730161990 [10:29:15]opened+sec_in_day 1730248390 [10:29:15]quantity*price = 70027 [10:29:15]sum+1 = 70029 [10:29:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.28 ИТОГО: 700.00 ВнеÑено: 700.00 СДÐЧÐ: 0.00 ÐСП 1% : 6.20 ÐДС 12% : 74.37 Ðаличными: 700.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 170 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 СÐО: Общий режим Чек 41 29.10.2024 10:29 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192835 ФПД: 251857398227469 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T102919&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192835&fm=251857398227469&tin=02508201610067®Number=0000000000091776&sum=70000 [10:29:16]StoreToDocumentArchive [10:29:16]shift 544 fd 192835 [10:29:16]save to /storage/0544/doc_00192835 [10:29:16]save last doc name /storage/0544/doc_00192835 to /storage/kkm_last_doc_name [10:29:16]save OK [10:29:16]Clear old archive folders... [10:29:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:29:16]tlvbuf is 00FDA320 [10:29:16]SAM_PROTO_ClearQueue [10:29:16]wFMCommunicate request_size=4 [10:29:16]MH_SAM_APDU [10:29:16]CAPDU: 80 09 00 00 [10:29:16]Write to MH i2c: E2 08 00 E7 24 80 09 00 00 00 00 00 00 7D [10:29:16]Write i2c OK [10:29:16]MH_I2C_Read... [10:29:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:16]Read from MH i2c: E2 [10:29:16]MH_I2C_Read... [10:29:16]Read from MH i2c: E2 03 00 [10:29:16]MH_I2C_Read... [10:29:16]Read from MH i2c: E2 03 00 E7 24 00 90 00 7F [10:29:16]RAPDU: 90 00 [10:29:16]wFMCommunicate OK [10:29:16]SAM_PROTO_ClearQueue done [10:29:16]KKMCreateOFDPacket [10:29:16]OFDProtocolAddRootSTLVToBuf [10:29:16]FM_MakeSignedData [10:29:16]FM_MakeSignedData [10:29:16]SAM_PROTO_SignData [10:29:16]wFMCommunicate request_size=4 [10:29:16]MH_SAM_APDU [10:29:16]CAPDU: 80 0D 01 02 [10:29:16]Write to MH i2c: E2 08 00 E8 24 80 0D 01 02 00 00 00 00 85 [10:29:16]Write i2c OK [10:29:16]MH_I2C_Read... [10:29:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:16]Read from MH i2c: E2 [10:29:16]MH_I2C_Read... [10:29:16]Read from MH i2c: E2 03 00 [10:29:16]MH_I2C_Read... [10:29:16]Read from MH i2c: E2 03 00 E8 24 00 90 00 80 [10:29:16]RAPDU: 90 00 [10:29:16]wFMCommunicate OK [10:29:16]wFMCommunicate request_size=255 [10:29:16]MH_SAM_APDU [10:29: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 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 FF B8 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 E5 10 1E C1 [10:29:16]Write to MH i2c: E2 02 01 E9 24 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 FF B8 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 E5 10 1E C1 00 00 9E [10:29:16]Write i2c OK [10:29:16]MH_I2C_Read... [10:29:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:16]Read from MH i2c: E2 [10:29:16]MH_I2C_Read... [10:29:16]Read from MH i2c: E2 03 00 [10:29:16]MH_I2C_Read... [10:29:16]Read from MH i2c: E2 03 00 E9 24 00 90 00 81 [10:29:16]RAPDU: 90 00 [10:29:16]wFMCommunicate OK [10:29:16]wFMCommunicate request_size=7 [10:29:16]MH_SAM_APDU [10:29:16]CAPDU: 80 0D 02 02 02 62 0D [10:29:16]Write to MH i2c: E2 0A 00 EA 24 80 0D 02 02 02 00 62 0D 00 00 FB [10:29:16]Write i2c OK [10:29:16]MH_I2C_Read... [10:29:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:16]Read from MH i2c: E2 [10:29:16]MH_I2C_Read... [10:29:16]Read from MH i2c: E2 03 00 [10:29:16]MH_I2C_Read... [10:29:16]Read from MH i2c: E2 03 00 EA 24 00 90 00 82 [10:29:16]RAPDU: 90 00 [10:29:16]wFMCommunicate OK [10:29:16]wFMCommunicate request_size=4 [10:29:16]MH_SAM_APDU [10:29:16]CAPDU: 80 0D 03 02 [10:29:16]Write to MH i2c: E2 08 00 EB 24 80 0D 03 02 00 00 00 00 8A [10:29:16]Write i2c OK [10:29:16]MH_I2C_Read... [10:29:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:17]Read from MH i2c: E2 [10:29:17]MH_I2C_Read... [10:29:17]Read from MH i2c: E2 0B 00 [10:29:17]MH_I2C_Read... [10:29:17]Read from MH i2c: E2 0B 00 EB 24 00 29 6B 77 5B E9 92 40 A0 90 00 4C [10:29:17]RAPDU: 29 6B 77 5B E9 92 40 A0 90 00 [10:29:17]wFMCommunicate OK [10:29:17]SAM_PROTO_SignData done [10:29:17]FM_MakeSignedData done [10:29:17]CreateOFDProtocolMessage [10:29:17]wFMCommunicate request_size=4 [10:29:17]MH_SAM_APDU [10:29:17]CAPDU: 80 11 00 00 [10:29:17]Write to MH i2c: E2 08 00 EC 24 80 11 00 00 00 00 00 00 8A [10:29:17]Write i2c OK [10:29:17]MH_I2C_Read... [10:29:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:17]Read from MH i2c: E2 [10:29:17]MH_I2C_Read... [10:29:17]Read from MH i2c: E2 17 00 [10:29:17]MH_I2C_Read... [10:29:17]Read from MH i2c: E2 17 00 EC 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DD [10:29: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:29:17]wFMCommunicate OK [10:29:17]CreateOFDProtocolMessage done [10:29:17]OFDSenderStorePacket 192835 [10:29:17]StoreOFDPacket docnum=192835 [10:29: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 E1 FB 04 01 F5 A6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 FF B8 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 E5 10 1E C1 62 0D 29 6B 77 5B E9 92 40 A0 [10:29:17]CheckFolder [10:29:17]dirname=/storage/ofd_packets [10:29:17]CheckFolder done [10:29:17]ProducePacketName [10:29:17]name=ofd_packets/00192835 [10:29:17]NVStorageSaveData ofd_packets/00192835 [10:29:17]File name is /storage/ofd_packets/00192835 [10:29:17]Write 298 bytes [10:29:17]NVStorageSaveData done [10:29:17]OFDSenderStorePacket done [10:29:17]KKMCreateOFDPacket done [10:29:17]NVStorageSaveData kkm_last_timestamp [10:29:17]File name is /storage/kkm_last_timestamp [10:29:17]Write 4 bytes [10:29:17]NVStorageSaveData done [10:29:17]ExternCall_PrintAddStr [10:29:17]wPrintStart [10:29:17]Write to MH i2c: 01 00 00 ED 24 11 [10:29:17]Write i2c OK [10:29:17]MH_I2C_Read... [10:29:17]Read from MH i2c: 01 [10:29:17]MH_I2C_Read... [10:29:17]Read from MH i2c: 01 07 00 [10:29:17]MH_I2C_Read... [10:29:17]Read from MH i2c: 01 07 00 ED 24 00 00 00 00 00 FF 0F 26 [10:29:17]RasterBufferAndPrint [10:29:17]line Счет N : (1)32163 [10:29:17]line ИÐÐ: 02508201610067 [10:29:17]line Контрольно-КаÑÑовый Чек [10:29:17]line ПРОДÐЖР[10:29:17]line ТРК (МРК, ГÐК) : 11 [10:29:17]line Товар: 2710194210 [10:29:17]line ДТ-К-5 [10:29:17]line 9.190 * 76.20 [10:29:17]line = 700.28 [10:29:17]line ÐДС 12% ÐСП 1% [10:29:17]line > о реализуемом товаре [10:29:17]line ОКРУГЛЕÐИЕ: -0.28 [10:29:17]line ИТОГО: 700.00 [10:29:17]line ВнеÑено: 700.00 [10:29:17]line СДÐЧÐ: 0.00 [10:29:17]line ÐСП 1% : 6.20 [10:29:17]line ÐДС 12% : 74.37 [10:29:17]line Ðаличными: 700.00 [10:29:17]line Безнал.: 0.00 [10:29:17]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [10:29:17]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [10:29:17]line СÐО: Общий режим [10:29:17]line Чек 41 29.10.2024 10:29 [10:29:17]line Смена: 544 ФФД: 1.0 [10:29:17]line ЗÐМ: 0300000110 [10:29:17]line РÐМ: 0000000000091776 [10:29:17]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:29:17]line ФМ: 0000000000871754 [10:29:17]line ФД: 192835 [10:29:17]line ФПД: 251857398227469 [10:29:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T102919&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192835&fm=251857398227469&tin=02508201610067®Number=0000000000091776&sum=70000 [10:29:17]written 0, free lines is 4095 [10:29:17]OFD Sender: Processing packet 192835 [packets to send 75, broken 74] [10:29:17]ProducePacketName [10:29:17]name=ofd_packets/00192835 [10:29:17]OFD Sender: To server: ‡•öpG, [10:29:17]CommunicateWithHost lk.salyk.kg:30040 [10:29:17]ConnectInit lk.salyk.kg [10:29:17]Connected sock=10 [10: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 0C 01 00 00 E1 FB 04 01 F5 A6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 FF B8 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 E5 10 1E C1 62 0D 29 6B 77 5B E9 92 40 A0 [10: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 C1 41 47 00 FB 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 43 F1 02 00 F4 03 04 00 C0 5D 20 67 B6 04 01 00 00 60 C8 2E 54 2F EB 65 EC [10:29:17]CommunicateWithHost err = 0 [10:29:17]CheckOFDResponse [10:29:17]1017 (14) - 77093643461234 [10:29:17]1041 (16) - 0000000000871754 [10:29:17]1040 (4) - 192835 [10:29:17]1012 (4) - 29.10.2024 04:00 [10:29:17]1206 (1) - 0 [10:29:17]OFD Sender: Remove packet 192835 [10:29:17]ProducePacketName [10:29:17]name=ofd_packets/00192835 [10:29:17]NVStorageDeleteData [10:29:17]Write to MH i2c: 01 00 00 18 25 3D [10:29:17]Write i2c OK [10:29:17]MH_I2C_Read... [10:29:17]Read from MH i2c: 01 [10:29:17]MH_I2C_Read... [10:29:17]Read from MH i2c: 01 07 00 [10:29:17]MH_I2C_Read... [10:29:17]Read from MH i2c: 01 07 00 18 25 00 00 00 00 00 AE 0C FE [10:29:17]RasterBufferAndPrint [10:29:17]line [10:29:17]line [10:29:17]line [10:29:17]line [10:29:17]line [10:29:17]written 0, free lines is 3256 [10:29:17]MH_Cut [10:29:17]Write to MH i2c: D1 01 00 1F 25 01 16 [10:29:17]Write i2c OK [10:29:17]MH_I2C_Read... [10:29:17]Read from MH i2c: D1 [10:29:17]MH_I2C_Read... [10:29:17]Read from MH i2c: D1 01 00 [10:29:17]MH_I2C_Read... [10:29:17]Read from MH i2c: D1 01 00 1F 25 00 15 [10:29:17]Write to MH i2c: 01 00 00 20 25 45 [10:29:17]Write i2c OK [10:29:17]MH_I2C_Read... [10:29:17]OFD Sender: No OFD packet to send [10:29:18]*** Cut start [10:29:18]*** Partial cut [10:29:18]*** CUTSNS_PIN = 1 [10:29:18]*** CUTSNS_PIN = 0 [10:29:18]*** Brake cut motor [10:29:19]Read from MH i2c: 01 [10:29:19]MH_I2C_Read... [10:29:19]*** Stop cut motor [10:29:19]*** Cut end [10:29:19]Read from MH i2c: 01 07 00 [10:29:19]MH_I2C_Read... [10:29:19]Read from MH i2c: 01 07 00 20 25 00 00 00 00 00 FF 0F 5A [10:29:19]process_action close_receipt done [10:29:19]requested_data is exist [10:29:19]produce_requested_data [10:29:19]requested_item fm.sn is exist - process it [10:29:19]wFMCommunicate request_size=4 [10:29:19]MH_SAM_APDU [10:29:19]CAPDU: 80 11 00 00 [10:29:19]Write to MH i2c: E2 08 00 21 25 80 11 00 00 00 00 00 00 C0 [10:29:19]Write i2c OK [10:29:19]MH_I2C_Read... [10:29:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:19]Read from MH i2c: E2 [10:29:19]MH_I2C_Read... [10:29:19]Read from MH i2c: E2 17 00 [10:29:19]MH_I2C_Read... [10:29:19]Read from MH i2c: E2 17 00 21 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 13 [10: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 [10:29:19]wFMCommunicate OK [10:29:19]requested_item fd.num is exist - process it [10:29:19]SAM_PROTO_GetFieldsCounters [10:29:19]wFMCommunicate request_size=4 [10:29:19]MH_SAM_APDU [10:29:19]CAPDU: 80 13 00 00 [10:29:19]Write to MH i2c: E2 08 00 22 25 80 13 00 00 00 00 00 00 C3 [10:29:19]Write i2c OK [10:29:19]MH_I2C_Read... [10:29:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:19]Read from MH i2c: E2 [10:29:19]MH_I2C_Read... [10:29:19]Read from MH i2c: E2 62 00 [10:29:19]MH_I2C_Read... [10:29:19]Read from MH i2c: E2 62 00 22 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 F1 02 00 0E 04 04 00 20 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 BC [10: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 43 F1 02 00 0E 04 04 00 20 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 [10:29:19]wFMCommunicate OK [10:29:19]SAM_PROTO_GetFieldsCounters done [10:29:19]requested_item shift.num is exist - process it [10:29:19]requested_item shift.opened is exist - process it [10:29:19]req_shift_opened [10:29:19]FM_GetShiftState [10:29:19]SAM_PROTO_GetShiftState [10:29:19]wFMCommunicate request_size=4 [10:29:19]MH_SAM_APDU [10:29:19]CAPDU: 80 13 01 00 [10:29:19]Write to MH i2c: E2 08 00 23 25 80 13 01 00 00 00 00 00 C5 [10:29:19]Write i2c OK [10:29:19]MH_I2C_Read... [10:29:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:19]Read from MH i2c: E2 [10:29:19]MH_I2C_Read... [10:29:19]Read from MH i2c: E2 0E 00 [10:29:19]MH_I2C_Read... [10:29:19]Read from MH i2c: E2 0E 00 23 25 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 CB [10:29:19]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [10:29:19]wFMCommunicate OK [10:29:19]SAM_PROTO_GetShiftState done [10:29:19]FM_GetShiftState done [10:29:19]req_shift_opened done [10:29:19]requested_item shift.open_date is exist - process it [10:29:19]req_shift_open_date [10:29:19]req_shift_open_date done [10:29:19]produce_requested_data done [10:29:19]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192835,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [10:29:19]process_action_free close_receipt [10:29:19]json_value_free [10:29:19]json_value_free done [10:29:19]process_json_proto returns [10:29:19]Send response to host [10:29:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192835,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [10:29:19]free response buf [10:29:19]execute_script done [10:29:19]execute_script returns [10:29:19]free content buf [10:29:19]Sock 9.Close socket [10:29:19]Sock 9.Thread stoped [10:29:23]OFD Sender: No OFD packet to send [10:29:28]OFD Sender: No OFD packet to send [10:29:33]OFD Sender: No OFD packet to send [10:29:38]OFD Sender: No OFD packet to send [10:29:43]OFD Sender: No OFD packet to send [10:29:48]OFD Sender: No OFD packet to send [10:29:53]OFD Sender: No OFD packet to send [10:29:58]OFD Sender: No OFD packet to send [10:30:03]OFD Sender: No OFD packet to send [10:30:08]OFD Sender: No OFD packet to send [10:30:13]OFD Sender: No OFD packet to send [10:30:18]OFD Sender: No OFD packet to send [10:30:23]OFD Sender: No OFD packet to send [10:30:28]OFD Sender: No OFD packet to send [10:30:33]OFD Sender: No OFD packet to send [10:30:38]OFD Sender: No OFD packet to send [10:30:43]OFD Sender: No OFD packet to send [10:30:48]OFD Sender: No OFD packet to send [10:30:53]OFD Sender: No OFD packet to send [10:30:58]OFD Sender: No OFD packet to send [10:31:03]OFD Sender: No OFD packet to send [10:31:08]OFD Sender: No OFD packet to send [10:31:13]OFD Sender: No OFD packet to send [10:31:18]OFD Sender: No OFD packet to send [10:31:23]OFD Sender: No OFD packet to send [10:31:28]OFD Sender: No OFD packet to send [10:31:33]OFD Sender: No OFD packet to send [10:31:38]OFD Sender: No OFD packet to send [10:31:43]OFD Sender: No OFD packet to send [10:31:48]OFD Sender: No OFD packet to send [10:31:53]OFD Sender: No OFD packet to send [10:31:58]OFD Sender: No OFD packet to send [10:32: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:58]OFD Sender: No OFD packet to send [10:33:01]accept exits with 8 [10:33:01]New connection [10:33:01]New thread 3066801508 created [10:33:01]Thread 3066658148 joined [10:33:01]Waiting for new connection... [10:33:01] Sock 8.Parse request [10:33:01]Sock 8.Check first char [10:33:01]Sock 8.First char is OK [10:33:01]request: POST /json_proto HTTP/1.0 [10:33:01]Method: POST [10:33:01]URL: /json_proto [10:33:01]Method is POST - this is cgi request [10:33:01]url: /json_proto [10:33:01]query_string will be loaded in cgi processing [10:33:01]execute_cgi json_proto POST (null) [10:33:01]execute_cgi path=json_proto method=POST [10:33:01]POST find Content-Length [10:33:01]Host: 172.17.63.131:8080 [10:33:01]Content-Length: 678 [10:33:01]Content-Type: application/json [10:33:01] [10:33:01]POST finish read [10:33:01]Found Content-Length = 678 [10:33:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32165", "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" ] } } [10:33:01]execute_script... [10: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)32165", "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" ] } } [10:33:01]POST & json_proto [10:33:01]process_json_proto [10:33:01]json parsed OK: [10:33:01]protocol is kg_v1.0 [10:33:01]action value=close_receipt [10:33:01]process_action close_receipt [10:33:01]cmd_close_receipt [10:33:01]MH_GetDate [10:33:01]Write to MH i2c: F0 00 00 24 25 38 [10:33:01]Write i2c OK [10:33:01]MH_I2C_Read... [10:33:01]Read from MH i2c: F0 [10:33:01]MH_I2C_Read... [10:33:01]Read from MH i2c: F0 09 00 [10:33:01]MH_I2C_Read... [10:33:01]Read from MH i2c: F0 09 00 24 25 00 E1 B9 20 67 22 05 6E 64 5B [10:33:01]GetLastDocTimeStamp 1730197759 [10:33:01]current date 1730197985 [10:33:01]FM_GetShiftState [10:33:01]SAM_PROTO_GetShiftState [10:33:01]wFMCommunicate request_size=4 [10:33:01]MH_SAM_APDU [10:33:01]CAPDU: 80 13 01 00 [10:33:01]Write to MH i2c: E2 08 00 25 25 80 13 01 00 00 00 00 00 C7 [10:33:01]Write i2c OK [10:33:01]MH_I2C_Read... [10:33:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:01]Read from MH i2c: E2 [10:33:01]MH_I2C_Read... [10:33:01]Read from MH i2c: E2 0E 00 [10:33:01]MH_I2C_Read... [10:33:01]Read from MH i2c: E2 0E 00 25 25 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 CD [10:33:01]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [10:33:01]wFMCommunicate OK [10:33:01]SAM_PROTO_GetShiftState done [10:33:01]FM_GetShiftState done [10:33:01]opened in 1730161990 [10:33:01]opened+sec_in_day 1730248390 [10:33:01]quantity*price = 150037 [10:33:01]sum+1 = 150039 [10:33:01]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 СÐО: Общий режим Чек 42 29.10.2024 10:33 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192836 ФПД: 202668921382706 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T103305&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192836&fm=202668921382706&tin=02508201610067®Number=0000000000091776&sum=150000 [10:33:02]StoreToDocumentArchive [10:33:02]shift 544 fd 192836 [10:33:02]save to /storage/0544/doc_00192836 [10:33:02]save last doc name /storage/0544/doc_00192836 to /storage/kkm_last_doc_name [10:33:02]save OK [10:33:02]Clear old archive folders... [10:33:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:33:02]tlvbuf is 00FF1580 [10:33:02]SAM_PROTO_ClearQueue [10:33:02]wFMCommunicate request_size=4 [10:33:02]MH_SAM_APDU [10:33:02]CAPDU: 80 09 00 00 [10:33:02]Write to MH i2c: E2 08 00 32 25 80 09 00 00 00 00 00 00 C9 [10:33:02]Write i2c OK [10:33:02]MH_I2C_Read... [10:33:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:33:02]Read from MH i2c: E2 [10:33:02]MH_I2C_Read... [10:33:02]Read from MH i2c: E2 03 00 [10:33:02]MH_I2C_Read... [10:33:02]Read from MH i2c: E2 03 00 32 25 00 90 00 CB [10:33:02]RAPDU: 90 00 [10:33:02]wFMCommunicate OK [10:33:02]SAM_PROTO_ClearQueue done [10:33:02]KKMCreateOFDPacket [10:33:02]OFDProtocolAddRootSTLVToBuf [10:33:02]FM_MakeSignedData [10:33:02]FM_MakeSignedData [10:33:02]SAM_PROTO_SignData [10:33:02]wFMCommunicate request_size=4 [10:33:02]MH_SAM_APDU [10:33:02]CAPDU: 80 0D 01 02 [10:33:02]Write to MH i2c: E2 08 00 33 25 80 0D 01 02 00 00 00 00 D1 [10:33:02]Write i2c OK [10:33:02]MH_I2C_Read... [10:33:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:33:02]Read from MH i2c: E2 [10:33:02]MH_I2C_Read... [10:33:02]Read from MH i2c: E2 03 00 [10:33:02]MH_I2C_Read... [10:33:02]Read from MH i2c: E2 03 00 33 25 00 90 00 CC [10:33:02]RAPDU: 90 00 [10:33:02]wFMCommunicate OK [10:33:02]wFMCommunicate request_size=255 [10:33:02]MH_SAM_APDU [10:33: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 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 2A 00 00 00 F4 03 04 00 E1 B9 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 B8 53 89 10 [10:33:02]Write to MH i2c: E2 02 01 34 25 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 2A 00 00 00 F4 03 04 00 E1 B9 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 B8 53 89 10 00 00 1A [10:33:02]Write i2c OK [10:33:02]MH_I2C_Read... [10:33:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:02]Read from MH i2c: E2 [10:33:02]MH_I2C_Read... [10:33:02]Read from MH i2c: E2 03 00 [10:33:02]MH_I2C_Read... [10:33:02]Read from MH i2c: E2 03 00 34 25 00 90 00 CD [10:33:02]RAPDU: 90 00 [10:33:02]wFMCommunicate OK [10:33:02]wFMCommunicate request_size=7 [10:33:02]MH_SAM_APDU [10:33:02]CAPDU: 80 0D 02 02 02 E7 32 [10:33:02]Write to MH i2c: E2 0A 00 35 25 80 0D 02 02 02 00 E7 32 00 00 F1 [10:33:02]Write i2c OK [10:33:02]MH_I2C_Read... [10:33:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:02]Read from MH i2c: E2 [10:33:02]MH_I2C_Read... [10:33:02]Read from MH i2c: E2 03 00 [10:33:02]MH_I2C_Read... [10:33:02]Read from MH i2c: E2 03 00 35 25 00 90 00 CE [10:33:02]RAPDU: 90 00 [10:33:02]wFMCommunicate OK [10:33:02]wFMCommunicate request_size=4 [10:33:02]MH_SAM_APDU [10:33:02]CAPDU: 80 0D 03 02 [10:33:02]Write to MH i2c: E2 08 00 36 25 80 0D 03 02 00 00 00 00 D6 [10:33:02]Write i2c OK [10:33:02]MH_I2C_Read... [10:33:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:33:02]Read from MH i2c: E2 [10:33:02]MH_I2C_Read... [10:33:02]Read from MH i2c: E2 0B 00 [10:33:02]MH_I2C_Read... [10:33:02]Read from MH i2c: E2 0B 00 36 25 00 CF 85 20 0B 59 F6 B9 26 90 00 84 [10:33:02]RAPDU: CF 85 20 0B 59 F6 B9 26 90 00 [10:33:02]wFMCommunicate OK [10:33:02]SAM_PROTO_SignData done [10:33:02]FM_MakeSignedData done [10:33:02]CreateOFDProtocolMessage [10:33:02]wFMCommunicate request_size=4 [10:33:02]MH_SAM_APDU [10:33:02]CAPDU: 80 11 00 00 [10:33:02]Write to MH i2c: E2 08 00 37 25 80 11 00 00 00 00 00 00 D6 [10:33:02]Write i2c OK [10:33:02]MH_I2C_Read... [10:33:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:02]Read from MH i2c: E2 [10:33:02]MH_I2C_Read... [10:33:02]Read from MH i2c: E2 17 00 [10:33:02]MH_I2C_Read... [10:33:02]Read from MH i2c: E2 17 00 37 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 29 [10: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 [10:33:02]wFMCommunicate OK [10:33:02]CreateOFDProtocolMessage done [10:33:02]OFDSenderStorePacket 192836 [10:33:02]StoreOFDPacket docnum=192836 [10:33: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 1F 6C 04 01 52 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 2A 00 00 00 F4 03 04 00 E1 B9 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 B8 53 89 10 E7 32 CF 85 20 0B 59 F6 B9 26 [10:33:02]CheckFolder [10:33:02]dirname=/storage/ofd_packets [10:33:02]CheckFolder done [10:33:02]ProducePacketName [10:33:02]name=ofd_packets/00192836 [10:33:02]NVStorageSaveData ofd_packets/00192836 [10:33:02]File name is /storage/ofd_packets/00192836 [10:33:02]Write 298 bytes [10:33:02]NVStorageSaveData done [10:33:02]OFDSenderStorePacket done [10:33:02]KKMCreateOFDPacket done [10:33:02]NVStorageSaveData kkm_last_timestamp [10:33:02]File name is /storage/kkm_last_timestamp [10:33:02]Write 4 bytes [10:33:02]NVStorageSaveData done [10:33:02]ExternCall_PrintAddStr [10:33:02]wPrintStart [10:33:02]Write to MH i2c: 01 00 00 38 25 5D [10:33:02]Write i2c OK [10:33:02]MH_I2C_Read... [10:33:02]Read from MH i2c: 01 [10:33:02]MH_I2C_Read... [10:33:02]Read from MH i2c: 01 07 00 [10:33:02]MH_I2C_Read... [10:33:02]Read from MH i2c: 01 07 00 38 25 00 00 00 00 00 FF 0F 72 [10:33:02]RasterBufferAndPrint [10:33:02]line Счет N : (1)32165 [10:33:02]line ИÐÐ: 02508201610067 [10:33:02]line Контрольно-КаÑÑовый Чек [10:33:02]line ПРОДÐЖР[10:33:02]line ТРК (МРК, ГÐК) : 11 [10:33:02]line Товар: 2710194210 [10:33:02]line ДТ-К-5 [10:33:02]line 19.690 * 76.20 [10:33:02]line = 1500.38 [10:33:02]line ÐДС 12% ÐСП 1% [10:33:02]line > о реализуемом товаре [10:33:02]line ОКРУГЛЕÐИЕ: -0.38 [10:33:02]line ИТОГО: 1500.00 [10:33:02]line ВнеÑено: 1500.00 [10:33:02]line СДÐЧÐ: 0.00 [10:33:02]line ÐСП 1% : 13.28 [10:33:02]line ÐДС 12% : 159.33 [10:33:02]line Ðаличными: 1500.00 [10:33:02]line Безнал.: 0.00 [10:33:02]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [10:33:02]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [10:33:02]line СÐО: Общий режим [10:33:02]line Чек 42 29.10.2024 10:33 [10:33:02]line Смена: 544 ФФД: 1.0 [10:33:02]line ЗÐМ: 0300000110 [10:33:02]line РÐМ: 0000000000091776 [10:33:02]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:33:02]line ФМ: 0000000000871754 [10:33:02]line ФД: 192836 [10:33:02]line ФПД: 202668921382706 [10:33:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T103305&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192836&fm=202668921382706&tin=02508201610067®Number=0000000000091776&sum=150000 [10:33:03]OFD Sender: Processing packet 192836 [packets to send 75, broken 74] [10:33:03]ProducePacketName [10:33:03]name=ofd_packets/00192836 [10:33:03]OFD Sender: To server: ‡•öpG, [10:33:03]CommunicateWithHost lk.salyk.kg:30040 [10:33:03]ConnectInit lk.salyk.kg [10:33:03]written 0, free lines is 4095 [10:33:03]Connected sock=10 [10: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 0C 01 00 00 1F 6C 04 01 52 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 2A 00 00 00 F4 03 04 00 E1 B9 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 B8 53 89 10 E7 32 CF 85 20 0B 59 F6 B9 26 [10: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 04 81 47 00 DC 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 44 F1 02 00 F4 03 04 00 A2 5E 20 67 B6 04 01 00 00 B3 C6 9D D5 9E D5 9E 08 [10:33:03]CommunicateWithHost err = 0 [10:33:03]CheckOFDResponse [10:33:03]1017 (14) - 77093643461234 [10:33:03]1041 (16) - 0000000000871754 [10:33:03]1040 (4) - 192836 [10:33:03]1012 (4) - 29.10.2024 04:03 [10:33:03]1206 (1) - 0 [10:33:03]OFD Sender: Remove packet 192836 [10:33:03]ProducePacketName [10:33:03]name=ofd_packets/00192836 [10:33:03]NVStorageDeleteData [10:33:03]Write to MH i2c: 01 00 00 63 25 88 [10:33:03]Write i2c OK [10:33:03]MH_I2C_Read... [10:33:03]Read from MH i2c: 01 [10:33:03]MH_I2C_Read... [10:33:03]Read from MH i2c: 01 07 00 [10:33:03]MH_I2C_Read... [10:33:03]Read from MH i2c: 01 07 00 63 25 00 00 00 00 00 AD 0C 48 [10:33:03]RasterBufferAndPrint [10:33:03]line [10:33:03]line [10:33:03]line [10:33:03]line [10:33:03]line [10:33:03]written 0, free lines is 3251 [10:33:03]MH_Cut [10:33:03]Write to MH i2c: D1 01 00 6A 25 01 61 [10:33:03]Write i2c OK [10:33:03]MH_I2C_Read... [10:33:03]Read from MH i2c: D1 [10:33:03]MH_I2C_Read... [10:33:03]Read from MH i2c: D1 01 00 [10:33:03]MH_I2C_Read... [10:33:03]Read from MH i2c: D1 01 00 6A 25 00 60 [10:33:03]Write to MH i2c: 01 00 00 6B 25 90 [10:33:03]Write i2c OK [10:33:03]MH_I2C_Read... [10:33:03]OFD Sender: No OFD packet to send [10:33:04]*** Cut start [10:33:04]*** Partial cut [10:33:04]*** CUTSNS_PIN = 1 [10:33:04]*** CUTSNS_PIN = 0 [10:33:04]*** Brake cut motor [10:33:05]Read from MH i2c: 01 [10:33:05]MH_I2C_Read... [10:33:05]*** Stop cut motor [10:33:05]*** Cut end [10:33:05]Read from MH i2c: 01 07 00 [10:33:05]MH_I2C_Read... [10:33:05]Read from MH i2c: 01 07 00 6B 25 00 00 00 00 00 FF 0F A5 [10:33:05]process_action close_receipt done [10:33:05]requested_data is exist [10:33:05]produce_requested_data [10:33:05]requested_item fm.sn is exist - process it [10:33:05]wFMCommunicate request_size=4 [10:33:05]MH_SAM_APDU [10:33:05]CAPDU: 80 11 00 00 [10:33:05]Write to MH i2c: E2 08 00 6C 25 80 11 00 00 00 00 00 00 0B [10:33:05]Write i2c OK [10:33:05]MH_I2C_Read... [10:33:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:05]Read from MH i2c: E2 [10:33:05]MH_I2C_Read... [10:33:05]Read from MH i2c: E2 17 00 [10:33:05]MH_I2C_Read... [10:33:05]Read from MH i2c: E2 17 00 6C 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5E [10: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 [10:33:05]wFMCommunicate OK [10:33:05]requested_item fd.num is exist - process it [10:33:05]SAM_PROTO_GetFieldsCounters [10:33:05]wFMCommunicate request_size=4 [10:33:05]MH_SAM_APDU [10:33:05]CAPDU: 80 13 00 00 [10:33:05]Write to MH i2c: E2 08 00 6D 25 80 13 00 00 00 00 00 00 0E [10:33:05]Write i2c OK [10:33:05]MH_I2C_Read... [10:33:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:33:05]Read from MH i2c: E2 [10:33:05]MH_I2C_Read... [10:33:05]Read from MH i2c: E2 62 00 [10:33:05]MH_I2C_Read... [10:33:05]Read from MH i2c: E2 62 00 6D 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 F1 02 00 0E 04 04 00 20 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 0B [10: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 44 F1 02 00 0E 04 04 00 20 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 [10:33:05]wFMCommunicate OK [10:33:05]SAM_PROTO_GetFieldsCounters done [10:33:05]requested_item shift.num is exist - process it [10:33:05]requested_item shift.opened is exist - process it [10:33:05]req_shift_opened [10:33:05]FM_GetShiftState [10:33:05]SAM_PROTO_GetShiftState [10:33:05]wFMCommunicate request_size=4 [10:33:05]MH_SAM_APDU [10:33:05]CAPDU: 80 13 01 00 [10:33:05]Write to MH i2c: E2 08 00 6E 25 80 13 01 00 00 00 00 00 10 [10:33:05]Write i2c OK [10:33:05]MH_I2C_Read... [10:33:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:05]Read from MH i2c: E2 [10:33:05]MH_I2C_Read... [10:33:05]Read from MH i2c: E2 0E 00 [10:33:05]MH_I2C_Read... [10:33:05]Read from MH i2c: E2 0E 00 6E 25 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 16 [10:33:05]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [10:33:05]wFMCommunicate OK [10:33:05]SAM_PROTO_GetShiftState done [10:33:05]FM_GetShiftState done [10:33:05]req_shift_opened done [10:33:05]requested_item shift.open_date is exist - process it [10:33:05]req_shift_open_date [10:33:05]req_shift_open_date done [10:33:05]produce_requested_data done [10:33:05]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192836,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [10:33:05]process_action_free close_receipt [10:33:05]json_value_free [10:33:05]json_value_free done [10:33:05]process_json_proto returns [10:33:05]Send response to host [10:33:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192836,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [10:33:05]free response buf [10:33:05]execute_script done [10:33:05]execute_script returns [10:33:05]free content buf [10:33:05]Sock 8.Close socket [10:33:05]Sock 8.Thread stoped [10:33:08]OFD Sender: No OFD packet to send [10:33:13]OFD Sender: No OFD packet to send [10:33:18]OFD Sender: No OFD packet to send [10:33:23]OFD Sender: No OFD packet to send [10:33:28]OFD Sender: No OFD packet to send [10:33:33]OFD Sender: No OFD packet to send [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:37]accept exits with 9 [10:34:37]New connection [10:34:37]New thread 3066658148 created [10:34:37]Thread 3066801508 joined [10:34:37]Waiting for new connection... [10:34:37] Sock 9.Parse request [10:34:37]Sock 9.Check first char [10:34:37]Sock 9.First char is OK [10:34:37]request: POST /json_proto HTTP/1.0 [10:34:37]Method: POST [10:34:37]URL: /json_proto [10:34:37]Method is POST - this is cgi request [10:34:37]url: /json_proto [10:34:37]query_string will be loaded in cgi processing [10:34:37]execute_cgi json_proto POST (null) [10:34:37]execute_cgi path=json_proto method=POST [10:34:37]POST find Content-Length [10:34:37]Host: 172.17.63.131:8080 [10:34:37]Content-Length: 804 [10:34:37]Content-Type: application/json [10:34:37] [10:34:37]POST finish read [10:34:37]Found Content-Length = 804 [10:34:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32166", "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.360, "sum" : 492.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 492.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:37]execute_script... [10:34: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)32166", "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.360, "sum" : 492.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 492.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:37]POST & json_proto [10:34:37]process_json_proto [10:34:37]json parsed OK: [10:34:37]protocol is kg_v1.0 [10:34:37]action value=close_receipt [10:34:37]process_action close_receipt [10:34:37]cmd_close_receipt [10:34:37]MH_GetDate [10:34:37]Write to MH i2c: F0 00 00 6F 25 83 [10:34:37]Write i2c OK [10:34:37]MH_I2C_Read... [10:34:37]Read from MH i2c: F0 [10:34:37]MH_I2C_Read... [10:34:37]Read from MH i2c: F0 09 00 [10:34:37]MH_I2C_Read... [10:34:37]Read from MH i2c: F0 09 00 6F 25 00 41 BA 20 67 22 05 6E 64 07 [10:34:37]GetLastDocTimeStamp 1730197985 [10:34:37]current date 1730198081 [10:34:37]FM_GetShiftState [10:34:37]SAM_PROTO_GetShiftState [10:34:37]wFMCommunicate request_size=4 [10:34:37]MH_SAM_APDU [10:34:37]CAPDU: 80 13 01 00 [10:34:37]Write to MH i2c: E2 08 00 70 25 80 13 01 00 00 00 00 00 12 [10:34:37]Write i2c OK [10:34:37]MH_I2C_Read... [10:34:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:37]Read from MH i2c: E2 [10:34:37]MH_I2C_Read... [10:34:37]Read from MH i2c: E2 0E 00 [10:34:37]MH_I2C_Read... [10:34:37]Read from MH i2c: E2 0E 00 70 25 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 18 [10:34:37]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [10:34:37]wFMCommunicate OK [10:34:37]SAM_PROTO_GetShiftState done [10:34:37]FM_GetShiftState done [10:34:37]opened in 1730161990 [10:34:37]opened+sec_in_day 1730248390 [10:34:37]quantity*price = 49238 [10:34:37]sum+1 = 49239 [10:34:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 492.38 ÐСП 1% : 4.36 ÐДС 12% : 52.29 Ðаличными: 0.00 Безнал.: 492.38 МеÑто: ÐЗС â„– 170 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 СÐО: Общий режим Чек 43 29.10.2024 10:34 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000871754 ФД: 192837 ФПД: 21824299335621 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T103441&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192837&fm=21824299335621&tin=02508201610067®Number=0000000000091776&sum=49238 [10:34:38]StoreToDocumentArchive [10:34:38]shift 544 fd 192837 [10:34:38]save to /storage/0544/doc_00192837 [10:34:38]save last doc name /storage/0544/doc_00192837 to /storage/kkm_last_doc_name [10:34:38]save OK [10:34:38]Clear old archive folders... [10:34:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:34:38]tlvbuf is 00FA1400 [10:34:38]SAM_PROTO_ClearQueue [10:34:38]wFMCommunicate request_size=4 [10:34:38]MH_SAM_APDU [10:34:38]CAPDU: 80 09 00 00 [10:34:38]Write to MH i2c: E2 08 00 7D 25 80 09 00 00 00 00 00 00 14 [10:34:38]Write i2c OK [10:34:38]MH_I2C_Read... [10:34:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:34:38]Read from MH i2c: E2 [10:34:38]MH_I2C_Read... [10:34:38]Read from MH i2c: E2 03 00 [10:34:38]MH_I2C_Read... [10:34:38]Read from MH i2c: E2 03 00 7D 25 00 90 00 16 [10:34:38]RAPDU: 90 00 [10:34:38]wFMCommunicate OK [10:34:38]SAM_PROTO_ClearQueue done [10:34:38]KKMCreateOFDPacket [10:34:38]OFDProtocolAddRootSTLVToBuf [10:34:38]FM_MakeSignedData [10:34:38]FM_MakeSignedData [10:34:38]SAM_PROTO_SignData [10:34:38]wFMCommunicate request_size=4 [10:34:38]MH_SAM_APDU [10:34:38]CAPDU: 80 0D 01 02 [10:34:38]Write to MH i2c: E2 08 00 7E 25 80 0D 01 02 00 00 00 00 1C [10:34:38]Write i2c OK [10:34:38]MH_I2C_Read... [10:34:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:34:38]Read from MH i2c: E2 [10:34:38]MH_I2C_Read... [10:34:38]Read from MH i2c: E2 03 00 [10:34:38]MH_I2C_Read... [10:34:38]Read from MH i2c: E2 03 00 7E 25 00 90 00 17 [10:34:38]RAPDU: 90 00 [10:34:38]wFMCommunicate OK [10:34:38]wFMCommunicate request_size=255 [10:34:38]MH_SAM_APDU [10:34: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 C0 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 C0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C0 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 41 BA 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 13 [10:34:38]Write to MH i2c: E2 02 01 7F 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 C0 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 C0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C0 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 41 BA 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 13 00 00 D5 [10:34:38]Write i2c OK [10:34:38]MH_I2C_Read... [10:34:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:38]Read from MH i2c: E2 [10:34:38]MH_I2C_Read... [10:34:38]Read from MH i2c: E2 03 00 [10:34:38]MH_I2C_Read... [10:34:38]Read from MH i2c: E2 03 00 7F 25 00 90 00 18 [10:34:38]RAPDU: 90 00 [10:34:38]wFMCommunicate OK [10:34:38]wFMCommunicate request_size=10 [10:34:38]MH_SAM_APDU [10:34:38]CAPDU: 80 0D 02 02 05 D9 5D 9B FF C5 [10:34:38]Write to MH i2c: E2 0D 00 80 25 80 0D 02 02 05 00 D9 5D 9B FF C5 00 00 BE [10:34:38]Write i2c OK [10:34:38]MH_I2C_Read... [10:34:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:39]Read from MH i2c: E2 [10:34:39]MH_I2C_Read... [10:34:39]Read from MH i2c: E2 03 00 [10:34:39]MH_I2C_Read... [10:34:39]Read from MH i2c: E2 03 00 80 25 00 90 00 19 [10:34:39]RAPDU: 90 00 [10:34:39]wFMCommunicate OK [10:34:39]wFMCommunicate request_size=4 [10:34:39]MH_SAM_APDU [10:34:39]CAPDU: 80 0D 03 02 [10:34:39]Write to MH i2c: E2 08 00 81 25 80 0D 03 02 00 00 00 00 21 [10:34:39]Write i2c OK [10:34:39]MH_I2C_Read... [10:34:39]OFD Sender: No OFD packet to send [10:34:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:34:39]Read from MH i2c: E2 [10:34:39]MH_I2C_Read... [10:34:39]Read from MH i2c: E2 0B 00 [10:34:39]MH_I2C_Read... [10:34:39]Read from MH i2c: E2 0B 00 81 25 00 87 56 47 90 BE BA FE 6C 90 00 B8 [10:34:39]RAPDU: 87 56 47 90 BE BA FE 6C 90 00 [10:34:39]wFMCommunicate OK [10:34:39]SAM_PROTO_SignData done [10:34:39]FM_MakeSignedData done [10:34:39]CreateOFDProtocolMessage [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 82 25 80 11 00 00 00 00 00 00 21 [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 82 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 74 [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]CreateOFDProtocolMessage done [10:34:39]OFDSenderStorePacket 192837 [10:34:39]StoreOFDPacket docnum=192837 [10:34: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 8F D4 07 01 F9 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 C0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C0 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 41 BA 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 13 D9 5D 9B FF C5 87 56 47 90 BE BA FE 6C [10:34:39]CheckFolder [10:34:39]dirname=/storage/ofd_packets [10:34:39]CheckFolder done [10:34:39]ProducePacketName [10:34:39]name=ofd_packets/00192837 [10:34:39]NVStorageSaveData ofd_packets/00192837 [10:34:39]File name is /storage/ofd_packets/00192837 [10:34:39]Write 301 bytes [10:34:39]NVStorageSaveData done [10:34:39]OFDSenderStorePacket done [10:34:39]KKMCreateOFDPacket done [10:34:39]NVStorageSaveData kkm_last_timestamp [10:34:39]File name is /storage/kkm_last_timestamp [10:34:39]Write 4 bytes [10:34:39]NVStorageSaveData done [10:34:39]ExternCall_PrintAddStr [10:34:39]wPrintStart [10:34:39]Write to MH i2c: 01 00 00 83 25 A8 [10:34:39]Write i2c OK [10:34:39]MH_I2C_Read... [10:34:39]Read from MH i2c: 01 [10:34:39]MH_I2C_Read... [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 83 25 00 00 00 00 00 FF 0F BD [10:34:39]RasterBufferAndPrint [10:34:39]line Счет N : (1)32166 [10:34:39]line ИÐÐ: 02508201610067 [10:34:39]line Контрольно-КаÑÑовый Чек [10:34:39]line ПРОДÐЖР[10:34:39]line ТРК (МРК, ГÐК) : 12 [10:34:39]line Товар: 2710124130 [10:34:39]line Ðи-92-К-5 [10:34:39]line 7.360 * 66.90 [10:34:39]line = 492.38 [10:34:39]line ÐДС 12% ÐСП 1% [10:34:39]line > о реализуемом товаре [10:34:39]line ИТОГО: 492.38 [10:34:39]line ÐСП 1% : 4.36 [10:34:39]line ÐДС 12% : 52.29 [10:34:39]line Ðаличными: 0.00 [10:34:39]line Безнал.: 492.38 [10:34:39]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [10:34:39]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [10:34:39]line СÐО: Общий режим [10:34:39]line Чек 43 29.10.2024 10:34 [10:34:39]line Смена: 544 ФФД: 1.0 [10:34:39]line ЗÐМ: 0300000110 [10:34:39]line РÐМ: 0000000000091776 [10:34:39]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:34:39]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [10:34:39]line ФМ: 0000000000871754 [10:34:39]line ФД: 192837 [10:34:39]line ФПД: 21824299335621 [10:34:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T103441&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192837&fm=21824299335621&tin=02508201610067®Number=0000000000091776&sum=49238 [10:34:39]OFD Sender: Processing packet 192837 [packets to send 75, broken 74] [10:34:39]ProducePacketName [10:34:39]name=ofd_packets/00192837 [10:34:39]OFD Sender: To server: ‡•öpG, [10:34:39]CommunicateWithHost lk.salyk.kg:30040 [10:34:39]ConnectInit lk.salyk.kg [10:34:39]written 0, free lines is 4095 [10:34:39]Connected sock=10 [10:34: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 8F D4 07 01 F9 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 C0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C0 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 41 BA 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 13 D9 5D 9B FF C5 87 56 47 90 BE BA FE 6C [10:34: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 A4 5A 47 00 68 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 45 F1 02 00 F4 03 04 00 02 5F 20 67 B6 04 01 00 00 7C 22 B3 C5 4E C0 FC 90 [10:34:39]CommunicateWithHost err = 0 [10:34:39]CheckOFDResponse [10:34:39]1017 (14) - 77093643461234 [10:34:39]1041 (16) - 0000000000871754 [10:34:39]1040 (4) - 192837 [10:34:39]1012 (4) - 29.10.2024 04:05 [10:34:39]1206 (1) - 0 [10:34:39]OFD Sender: Remove packet 192837 [10:34:39]ProducePacketName [10:34:39]name=ofd_packets/00192837 [10:34:39]NVStorageDeleteData [10:34:39]Write to MH i2c: 01 00 00 AD 25 D2 [10:34:39]Write i2c OK [10:34:39]MH_I2C_Read... [10:34:39]Read from MH i2c: 01 [10:34:39]MH_I2C_Read... [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 AD 25 00 00 00 00 00 C8 0C AD [10:34:39]RasterBufferAndPrint [10:34:39]line [10:34:39]line [10:34:39]line [10:34:39]line [10:34:39]line [10:34:39]written 0, free lines is 3279 [10:34:39]MH_Cut [10:34:39]Write to MH i2c: D1 01 00 B4 25 01 AB [10:34:39]Write i2c OK [10:34:39]MH_I2C_Read... [10:34:39]Read from MH i2c: D1 [10:34:39]MH_I2C_Read... [10:34:39]Read from MH i2c: D1 01 00 [10:34:39]MH_I2C_Read... [10:34:39]Read from MH i2c: D1 01 00 B4 25 00 AA [10:34:39]Write to MH i2c: 01 00 00 B5 25 DA [10:34:39]Write i2c OK [10:34:39]MH_I2C_Read... [10:34:39]OFD Sender: No OFD packet to send [10:34:40]*** Cut start [10:34:40]*** Partial cut [10:34:40]*** CUTSNS_PIN = 1 [10:34:40]*** CUTSNS_PIN = 0 [10:34:40]*** Brake cut motor [10:34:41]Read from MH i2c: 01 [10:34:41]MH_I2C_Read... [10:34:41]*** Stop cut motor [10:34:41]*** Cut end [10:34:41]Read from MH i2c: 01 07 00 [10:34:41]MH_I2C_Read... [10:34:41]Read from MH i2c: 01 07 00 B5 25 00 00 00 00 00 FF 0F EF [10:34:41]process_action close_receipt done [10:34:41]requested_data is exist [10:34:41]produce_requested_data [10:34:41]requested_item fm.sn is exist - process it [10:34:41]wFMCommunicate request_size=4 [10:34:41]MH_SAM_APDU [10:34:41]CAPDU: 80 11 00 00 [10:34:41]Write to MH i2c: E2 08 00 B6 25 80 11 00 00 00 00 00 00 55 [10:34:41]Write i2c OK [10:34:41]MH_I2C_Read... [10:34:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:41]Read from MH i2c: E2 [10:34:41]MH_I2C_Read... [10:34:41]Read from MH i2c: E2 17 00 [10:34:41]MH_I2C_Read... [10:34:41]Read from MH i2c: E2 17 00 B6 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A8 [10:34: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:34:41]wFMCommunicate OK [10:34:41]requested_item fd.num is exist - process it [10:34:41]SAM_PROTO_GetFieldsCounters [10:34:41]wFMCommunicate request_size=4 [10:34:41]MH_SAM_APDU [10:34:41]CAPDU: 80 13 00 00 [10:34:41]Write to MH i2c: E2 08 00 B7 25 80 13 00 00 00 00 00 00 58 [10:34:41]Write i2c OK [10:34:41]MH_I2C_Read... [10:34:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:34:41]Read from MH i2c: E2 [10:34:41]MH_I2C_Read... [10:34:41]Read from MH i2c: E2 62 00 [10:34:41]MH_I2C_Read... [10:34:41]Read from MH i2c: E2 62 00 B7 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 45 F1 02 00 0E 04 04 00 20 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 59 [10:34: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 45 F1 02 00 0E 04 04 00 20 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 [10:34:41]wFMCommunicate OK [10:34:41]SAM_PROTO_GetFieldsCounters done [10:34:41]requested_item shift.num is exist - process it [10:34:41]requested_item shift.opened is exist - process it [10:34:41]req_shift_opened [10:34:41]FM_GetShiftState [10:34:41]SAM_PROTO_GetShiftState [10:34:41]wFMCommunicate request_size=4 [10:34:41]MH_SAM_APDU [10:34:41]CAPDU: 80 13 01 00 [10:34:41]Write to MH i2c: E2 08 00 B8 25 80 13 01 00 00 00 00 00 5A [10:34:41]Write i2c OK [10:34:41]MH_I2C_Read... [10:34:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:41]Read from MH i2c: E2 [10:34:41]MH_I2C_Read... [10:34:41]Read from MH i2c: E2 0E 00 [10:34:41]MH_I2C_Read... [10:34:41]Read from MH i2c: E2 0E 00 B8 25 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 60 [10:34:41]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [10:34:41]wFMCommunicate OK [10:34:41]SAM_PROTO_GetShiftState done [10:34:41]FM_GetShiftState done [10:34:41]req_shift_opened done [10:34:41]requested_item shift.open_date is exist - process it [10:34:41]req_shift_open_date [10:34:41]req_shift_open_date done [10:34:41]produce_requested_data done [10:34:41]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192837,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [10:34:41]process_action_free close_receipt [10:34:41]json_value_free [10:34:41]json_value_free done [10:34:41]process_json_proto returns [10:34:41]Send response to host [10:34:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192837,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [10:34:41]free response buf [10:34:41]execute_script done [10:34:41]execute_script returns [10:34:41]free content buf [10:34:41]Sock 9.Close socket [10:34:41]Sock 9.Thread stoped [10:34:44]OFD Sender: No OFD packet to send [10:34:49]OFD Sender: No OFD packet to send [10:34:54]OFD Sender: No OFD packet to send [10:35:00]OFD Sender: No OFD packet to send [10:35:05]OFD Sender: No OFD packet to send [10:35:10]OFD Sender: No OFD packet to send [10:35:15]OFD Sender: No OFD packet to send [10:35:20]OFD Sender: No OFD packet to send [10:35:25]OFD Sender: No OFD packet to send [10:35:30]OFD Sender: No OFD packet to send [10:35:35]OFD Sender: No OFD packet to send [10:35:40]OFD Sender: No OFD packet to send [10:35:45]OFD Sender: No OFD packet to send [10:35:47]accept exits with 8 [10:35:47]New connection [10:35:47]New thread 3066801508 created [10:35:47]Thread 3066658148 joined [10:35:47]Waiting for new connection... [10:35:47] Sock 8.Parse request [10:35:47]Sock 8.Check first char [10:35:47]Sock 8.First char is OK [10:35:47]request: POST /json_proto HTTP/1.0 [10:35:47]Method: POST [10:35:47]URL: /json_proto [10:35:47]Method is POST - this is cgi request [10:35:47]url: /json_proto [10:35:47]query_string will be loaded in cgi processing [10:35:47]execute_cgi json_proto POST (null) [10:35:47]execute_cgi path=json_proto method=POST [10:35:47]POST find Content-Length [10:35:47]Host: 172.17.63.131:8080 [10:35:47]Content-Length: 678 [10:35:47]Content-Type: application/json [10:35:47] [10:35:47]POST finish read [10:35:47]Found Content-Length = 678 [10:35:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32167", "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:35:47]execute_script... [10:35: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)32167", "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:35:47]POST & json_proto [10:35:47]process_json_proto [10:35:47]json parsed OK: [10:35:47]protocol is kg_v1.0 [10:35:47]action value=close_receipt [10:35:47]process_action close_receipt [10:35:47]cmd_close_receipt [10:35:47]MH_GetDate [10:35:47]Write to MH i2c: F0 00 00 B9 25 CD [10:35:47]Write i2c OK [10:35:47]MH_I2C_Read... [10:35:47]Read from MH i2c: F0 [10:35:47]MH_I2C_Read... [10:35:47]Read from MH i2c: F0 09 00 [10:35:47]MH_I2C_Read... [10:35:47]Read from MH i2c: F0 09 00 B9 25 00 87 BA 20 67 22 05 6E 64 97 [10:35:47]GetLastDocTimeStamp 1730198081 [10:35:47]current date 1730198151 [10:35:47]FM_GetShiftState [10:35:47]SAM_PROTO_GetShiftState [10:35:47]wFMCommunicate request_size=4 [10:35:47]MH_SAM_APDU [10:35:47]CAPDU: 80 13 01 00 [10:35:47]Write to MH i2c: E2 08 00 BA 25 80 13 01 00 00 00 00 00 5C [10:35:47]Write i2c OK [10:35:47]MH_I2C_Read... [10:35:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:47]Read from MH i2c: E2 [10:35:47]MH_I2C_Read... [10:35:47]Read from MH i2c: E2 0E 00 [10:35:47]MH_I2C_Read... [10:35:47]Read from MH i2c: E2 0E 00 BA 25 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 62 [10:35:47]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [10:35:47]wFMCommunicate OK [10:35:47]SAM_PROTO_GetShiftState done [10:35:47]FM_GetShiftState done [10:35:47]opened in 1730161990 [10:35:47]opened+sec_in_day 1730248390 [10:35:47]quantity*price = 100050 [10:35:47]sum+1 = 100052 [10:35:47]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 СÐО: Общий режим Чек 44 29.10.2024 10:35 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192838 ФПД: 168207909576397 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T103551&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192838&fm=168207909576397&tin=02508201610067®Number=0000000000091776&sum=100000 [10:35:48]StoreToDocumentArchive [10:35:48]shift 544 fd 192838 [10:35:48]save to /storage/0544/doc_00192838 [10:35:48]save last doc name /storage/0544/doc_00192838 to /storage/kkm_last_doc_name [10:35:48]save OK [10:35:48]Clear old archive folders... [10:35:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:35:48]tlvbuf is B6EB5EF0 [10:35:48]SAM_PROTO_ClearQueue [10:35:48]wFMCommunicate request_size=4 [10:35:48]MH_SAM_APDU [10:35:48]CAPDU: 80 09 00 00 [10:35:48]Write to MH i2c: E2 08 00 C7 25 80 09 00 00 00 00 00 00 5E [10:35:48]Write i2c OK [10:35:48]MH_I2C_Read... [10:35:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:35:48]Read from MH i2c: E2 [10:35:48]MH_I2C_Read... [10:35:48]Read from MH i2c: E2 03 00 [10:35:48]MH_I2C_Read... [10:35:48]Read from MH i2c: E2 03 00 C7 25 00 90 00 60 [10:35:48]RAPDU: 90 00 [10:35:48]wFMCommunicate OK [10:35:48]SAM_PROTO_ClearQueue done [10:35:48]KKMCreateOFDPacket [10:35:48]OFDProtocolAddRootSTLVToBuf [10:35:48]FM_MakeSignedData [10:35:48]FM_MakeSignedData [10:35:48]SAM_PROTO_SignData [10:35:48]wFMCommunicate request_size=4 [10:35:48]MH_SAM_APDU [10:35:48]CAPDU: 80 0D 01 02 [10:35:48]Write to MH i2c: E2 08 00 C8 25 80 0D 01 02 00 00 00 00 66 [10:35:48]Write i2c OK [10:35:48]MH_I2C_Read... [10:35:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:35:48]Read from MH i2c: E2 [10:35:48]MH_I2C_Read... [10:35:48]Read from MH i2c: E2 03 00 [10:35:48]MH_I2C_Read... [10:35:48]Read from MH i2c: E2 03 00 C8 25 00 90 00 61 [10:35:48]RAPDU: 90 00 [10:35:48]wFMCommunicate OK [10:35:48]wFMCommunicate request_size=255 [10:35:48]MH_SAM_APDU [10:35:48]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 87 BA 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 98 FB F4 B2 [10:35:48]Write to MH i2c: E2 02 01 C9 25 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 2C 00 00 00 F4 03 04 00 87 BA 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 98 FB F4 B2 00 00 78 [10:35:48]Write i2c OK [10:35:48]MH_I2C_Read... [10:35:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:48]Read from MH i2c: E2 [10:35:48]MH_I2C_Read... [10:35:48]Read from MH i2c: E2 03 00 [10:35:48]MH_I2C_Read... [10:35:48]Read from MH i2c: E2 03 00 C9 25 00 90 00 62 [10:35:48]RAPDU: 90 00 [10:35:48]wFMCommunicate OK [10:35:48]wFMCommunicate request_size=7 [10:35:48]MH_SAM_APDU [10:35:48]CAPDU: 80 0D 02 02 02 DE CD [10:35:48]Write to MH i2c: E2 0A 00 CA 25 80 0D 02 02 02 00 DE CD 00 00 18 [10:35:48]Write i2c OK [10:35:48]MH_I2C_Read... [10:35:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:48]Read from MH i2c: E2 [10:35:48]MH_I2C_Read... [10:35:48]Read from MH i2c: E2 03 00 [10:35:48]MH_I2C_Read... [10:35:48]Read from MH i2c: E2 03 00 CA 25 00 90 00 63 [10:35:48]RAPDU: 90 00 [10:35:48]wFMCommunicate OK [10:35:48]wFMCommunicate request_size=4 [10:35:48]MH_SAM_APDU [10:35:48]CAPDU: 80 0D 03 02 [10:35:48]Write to MH i2c: E2 08 00 CB 25 80 0D 03 02 00 00 00 00 6B [10:35:48]Write i2c OK [10:35:48]MH_I2C_Read... [10:35:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:35:48]Read from MH i2c: E2 [10:35:48]MH_I2C_Read... [10:35:48]Read from MH i2c: E2 0B 00 [10:35:48]MH_I2C_Read... [10:35:48]Read from MH i2c: E2 0B 00 CB 25 00 4C 7D CB 1B CE 04 63 BA 90 00 0A [10:35:48]RAPDU: 4C 7D CB 1B CE 04 63 BA 90 00 [10:35:48]wFMCommunicate OK [10:35:48]SAM_PROTO_SignData done [10:35:48]FM_MakeSignedData done [10:35:48]CreateOFDProtocolMessage [10:35:48]wFMCommunicate request_size=4 [10:35:48]MH_SAM_APDU [10:35:48]CAPDU: 80 11 00 00 [10:35:48]Write to MH i2c: E2 08 00 CC 25 80 11 00 00 00 00 00 00 6B [10:35:48]Write i2c OK [10:35:48]MH_I2C_Read... [10:35:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:48]Read from MH i2c: E2 [10:35:48]MH_I2C_Read... [10:35:48]Read from MH i2c: E2 17 00 [10:35:48]MH_I2C_Read... [10:35:48]Read from MH i2c: E2 17 00 CC 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BE [10:35: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:35:48]wFMCommunicate OK [10:35:48]CreateOFDProtocolMessage done [10:35:48]OFDSenderStorePacket 192838 [10:35:48]StoreOFDPacket docnum=192838 [10:35: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 22 DA 04 01 5A 3B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 2C 00 00 00 F4 03 04 00 87 BA 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 98 FB F4 B2 DE CD 4C 7D CB 1B CE 04 63 BA [10:35:48]CheckFolder [10:35:48]dirname=/storage/ofd_packets [10:35:48]CheckFolder done [10:35:48]ProducePacketName [10:35:48]name=ofd_packets/00192838 [10:35:48]NVStorageSaveData ofd_packets/00192838 [10:35:48]File name is /storage/ofd_packets/00192838 [10:35:48]Write 298 bytes [10:35:48]NVStorageSaveData done [10:35:48]OFDSenderStorePacket done [10:35:48]KKMCreateOFDPacket done [10:35:48]NVStorageSaveData kkm_last_timestamp [10:35:48]File name is /storage/kkm_last_timestamp [10:35:48]Write 4 bytes [10:35:48]NVStorageSaveData done [10:35:48]ExternCall_PrintAddStr [10:35:48]wPrintStart [10:35:48]Write to MH i2c: 01 00 00 CD 25 F2 [10:35:48]Write i2c OK [10:35:48]MH_I2C_Read... [10:35:48]Read from MH i2c: 01 [10:35:48]MH_I2C_Read... [10:35:48]Read from MH i2c: 01 07 00 [10:35:48]MH_I2C_Read... [10:35:48]Read from MH i2c: 01 07 00 CD 25 00 00 00 00 00 FF 0F 07 [10:35:48]RasterBufferAndPrint [10:35:48]line Счет N : (1)32167 [10:35:48]line ИÐÐ: 02508201610067 [10:35:48]line Контрольно-КаÑÑовый Чек [10:35:48]line ПРОДÐЖР[10:35:48]line ТРК (МРК, ГÐК) : 11 [10:35:48]line Товар: 2710194210 [10:35:48]line ДТ-К-5 [10:35:48]line 13.130 * 76.20 [10:35:48]line = 1000.51 [10:35:48]line ÐДС 12% ÐСП 1% [10:35:48]line > о реализуемом товаре [10:35:48]line ОКРУГЛЕÐИЕ: -0.51 [10:35:48]line ИТОГО: 1000.00 [10:35:48]line ВнеÑено: 1000.00 [10:35:48]line СДÐЧÐ: 0.00 [10:35:48]line ÐСП 1% : 8.85 [10:35:48]line ÐДС 12% : 106.25 [10:35:48]line Ðаличными: 1000.00 [10:35:48]line Безнал.: 0.00 [10:35:48]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [10:35:48]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [10:35:48]line СÐО: Общий режим [10:35:48]line Чек 44 29.10.2024 10:35 [10:35:48]line Смена: 544 ФФД: 1.0 [10:35:48]line ЗÐМ: 0300000110 [10:35:48]line РÐМ: 0000000000091776 [10:35:48]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:35:48]line ФМ: 0000000000871754 [10:35:48]line ФД: 192838 [10:35:48]line ФПД: 168207909576397 [10:35:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T103551&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192838&fm=168207909576397&tin=02508201610067®Number=0000000000091776&sum=100000 [10:35:49]OFD Sender: Processing packet 192838 [packets to send 75, broken 74] [10:35:49]ProducePacketName [10:35:49]name=ofd_packets/00192838 [10:35:49]OFD Sender: To server: ‡•öpG, [10:35:49]CommunicateWithHost lk.salyk.kg:30040 [10:35:49]ConnectInit lk.salyk.kg [10:35:49]written 0, free lines is 4095 [10:35:49]Connected sock=11 [10:35: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 22 DA 04 01 5A 3B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 2C 00 00 00 F4 03 04 00 87 BA 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 98 FB F4 B2 DE CD 4C 7D CB 1B CE 04 63 BA [10:35: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 C3 9E 47 00 47 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 46 F1 02 00 F4 03 04 00 48 5F 20 67 B6 04 01 00 00 87 D8 B8 26 FA 31 9E 19 [10:35:49]CommunicateWithHost err = 0 [10:35:49]CheckOFDResponse [10:35:49]1017 (14) - 77093643461234 [10:35:49]1041 (16) - 0000000000871754 [10:35:49]1040 (4) - 192838 [10:35:49]1012 (4) - 29.10.2024 04:06 [10:35:49]1206 (1) - 0 [10:35:49]OFD Sender: Remove packet 192838 [10:35:49]ProducePacketName [10:35:49]name=ofd_packets/00192838 [10:35:49]NVStorageDeleteData [10:35:49]Write to MH i2c: 01 00 00 F8 25 1D [10:35:49]Write i2c OK [10:35:49]MH_I2C_Read... [10:35:49]Read from MH i2c: 01 [10:35:49]MH_I2C_Read... [10:35:49]Read from MH i2c: 01 07 00 [10:35:49]MH_I2C_Read... [10:35:49]Read from MH i2c: 01 07 00 F8 25 00 00 00 00 00 B8 0C E8 [10:35:49]RasterBufferAndPrint [10:35:49]line [10:35:49]line [10:35:49]line [10:35:49]line [10:35:49]line [10:35:49]written 0, free lines is 3262 [10:35:49]MH_Cut [10:35:49]Write to MH i2c: D1 01 00 FF 25 01 F6 [10:35:49]Write i2c OK [10:35:49]MH_I2C_Read... [10:35:49]Read from MH i2c: D1 [10:35:49]MH_I2C_Read... [10:35:49]Read from MH i2c: D1 01 00 [10:35:49]MH_I2C_Read... [10:35:49]Read from MH i2c: D1 01 00 FF 25 00 F5 [10:35:49]Write to MH i2c: 01 00 00 00 26 26 [10:35:49]Write i2c OK [10:35:49]MH_I2C_Read... [10:35:49]OFD Sender: No OFD packet to send [10:35:50]*** Cut start [10:35:50]*** Partial cut [10:35:50]*** CUTSNS_PIN = 1 [10:35:50]*** CUTSNS_PIN = 0 [10:35:50]*** Brake cut motor [10:35:51]Read from MH i2c: 01 [10:35:51]MH_I2C_Read... [10:35:51]*** Stop cut motor [10:35:51]*** Cut end [10:35:51]Read from MH i2c: 01 07 00 [10:35:51]MH_I2C_Read... [10:35:51]Read from MH i2c: 01 07 00 00 26 00 00 00 00 00 FF 0F 3B [10:35:51]process_action close_receipt done [10:35:51]requested_data is exist [10:35:51]produce_requested_data [10:35:51]requested_item fm.sn is exist - process it [10:35:51]wFMCommunicate request_size=4 [10:35:51]MH_SAM_APDU [10:35:51]CAPDU: 80 11 00 00 [10:35:51]Write to MH i2c: E2 08 00 01 26 80 11 00 00 00 00 00 00 A1 [10:35:51]Write i2c OK [10:35:51]MH_I2C_Read... [10:35:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:51]Read from MH i2c: E2 [10:35:51]MH_I2C_Read... [10:35:51]Read from MH i2c: E2 17 00 [10:35:51]MH_I2C_Read... [10:35:51]Read from MH i2c: E2 17 00 01 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F4 [10:35: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:35:51]wFMCommunicate OK [10:35:51]requested_item fd.num is exist - process it [10:35:51]SAM_PROTO_GetFieldsCounters [10:35:51]wFMCommunicate request_size=4 [10:35:51]MH_SAM_APDU [10:35:51]CAPDU: 80 13 00 00 [10:35:51]Write to MH i2c: E2 08 00 02 26 80 13 00 00 00 00 00 00 A4 [10:35:51]Write i2c OK [10:35:51]MH_I2C_Read... [10:35:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:35:51]Read from MH i2c: E2 [10:35:51]MH_I2C_Read... [10:35:51]Read from MH i2c: E2 62 00 [10:35:51]MH_I2C_Read... [10:35:51]Read from MH i2c: E2 62 00 02 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 46 F1 02 00 0E 04 04 00 20 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 A9 [10:35: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 46 F1 02 00 0E 04 04 00 20 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 [10:35:51]wFMCommunicate OK [10:35:51]SAM_PROTO_GetFieldsCounters done [10:35:51]requested_item shift.num is exist - process it [10:35:51]requested_item shift.opened is exist - process it [10:35:51]req_shift_opened [10:35:51]FM_GetShiftState [10:35:51]SAM_PROTO_GetShiftState [10:35:51]wFMCommunicate request_size=4 [10:35:51]MH_SAM_APDU [10:35:51]CAPDU: 80 13 01 00 [10:35:51]Write to MH i2c: E2 08 00 03 26 80 13 01 00 00 00 00 00 A6 [10:35:51]Write i2c OK [10:35:51]MH_I2C_Read... [10:35:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:51]Read from MH i2c: E2 [10:35:51]MH_I2C_Read... [10:35:51]Read from MH i2c: E2 0E 00 [10:35:51]MH_I2C_Read... [10:35:51]Read from MH i2c: E2 0E 00 03 26 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 AC [10:35:51]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [10:35:51]wFMCommunicate OK [10:35:51]SAM_PROTO_GetShiftState done [10:35:51]FM_GetShiftState done [10:35:51]req_shift_opened done [10:35:51]requested_item shift.open_date is exist - process it [10:35:51]req_shift_open_date [10:35:51]req_shift_open_date done [10:35:51]produce_requested_data done [10:35:51]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192838,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [10:35:51]process_action_free close_receipt [10:35:51]json_value_free [10:35:51]json_value_free done [10:35:51]process_json_proto returns [10:35:51]Send response to host [10:35:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192838,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [10:35:51]free response buf [10:35:51]execute_script done [10:35:51]execute_script returns [10:35:51]free content buf [10:35:51]Sock 8.Close socket [10:35:51]Sock 8.Thread stoped [10:35:54]OFD Sender: No OFD packet to send [10:35:59]OFD Sender: No OFD packet to send [10:36:04]OFD Sender: No OFD packet to send [10:36:09]OFD Sender: No OFD packet to send [10:36:14]OFD Sender: No OFD packet to send [10:36:19]OFD Sender: No OFD packet to send [10:36:24]OFD Sender: No OFD packet to send [10:36:29]OFD Sender: No OFD packet to send [10:36:35]OFD Sender: No OFD packet to send [10:36:40]OFD Sender: No OFD packet to send [10:36:40]accept exits with 9 [10:36:40]New connection [10:36:40]New thread 3066658148 created [10:36:40]Thread 3066801508 joined [10:36:40]Waiting for new connection... [10:36:40] Sock 9.Parse request [10:36:40]Sock 9.Check first char [10:36:40]Sock 9.First char is OK [10:36:40]request: POST /json_proto HTTP/1.0 [10:36:40]Method: POST [10:36:40]URL: /json_proto [10:36:40]Method is POST - this is cgi request [10:36:40]url: /json_proto [10:36:40]query_string will be loaded in cgi processing [10:36:40]execute_cgi json_proto POST (null) [10:36:40]execute_cgi path=json_proto method=POST [10:36:40]POST find Content-Length [10:36:40]Host: 172.17.63.131:8080 [10:36:40]Content-Length: 676 [10:36:40]Content-Type: application/json [10:36:40] [10:36:40]POST finish read [10:36:40]Found Content-Length = 676 [10:36:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32168", "tax_sys" : 0, "items" : [ { "pre_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" ] } } [10:36:40]execute_script... [10:36: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)32168", "tax_sys" : 0, "items" : [ { "pre_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" ] } } [10:36:40]POST & json_proto [10:36:40]process_json_proto [10:36:40]json parsed OK: [10:36:40]protocol is kg_v1.0 [10:36:40]action value=close_receipt [10:36:40]process_action close_receipt [10:36:40]cmd_close_receipt [10:36:40]MH_GetDate [10:36:40]Write to MH i2c: F0 00 00 04 26 19 [10:36:40]Write i2c OK [10:36:40]MH_I2C_Read... [10:36:40]Read from MH i2c: F0 [10:36:40]MH_I2C_Read... [10:36:40]Read from MH i2c: F0 09 00 [10:36:40]MH_I2C_Read... [10:36:40]Read from MH i2c: F0 09 00 04 26 00 BC BA 20 67 22 05 6E 64 18 [10:36:40]GetLastDocTimeStamp 1730198151 [10:36:40]current date 1730198204 [10:36:40]FM_GetShiftState [10:36:40]SAM_PROTO_GetShiftState [10:36:40]wFMCommunicate request_size=4 [10:36:40]MH_SAM_APDU [10:36:40]CAPDU: 80 13 01 00 [10:36:40]Write to MH i2c: E2 08 00 05 26 80 13 01 00 00 00 00 00 A8 [10:36:40]Write i2c OK [10:36:40]MH_I2C_Read... [10:36:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:40]Read from MH i2c: E2 [10:36:40]MH_I2C_Read... [10:36:40]Read from MH i2c: E2 0E 00 [10:36:40]MH_I2C_Read... [10:36:40]Read from MH i2c: E2 0E 00 05 26 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 AE [10:36:40]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [10:36:40]wFMCommunicate OK [10:36:40]SAM_PROTO_GetShiftState done [10:36:40]FM_GetShiftState done [10:36:40]opened in 1730161990 [10:36:40]opened+sec_in_day 1730248390 [10:36:40]quantity*price = 20003 [10:36:40]sum+1 = 20004 [10:36:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.03 ИТОГО: 200.00 ВнеÑено: 200.00 СДÐЧÐ: 0.00 ÐСП 1% : 1.77 ÐДС 12% : 21.24 Ðаличными: 200.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 170 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 СÐО: Общий режим Чек 45 29.10.2024 10:36 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192839 ФПД: 76064327276486 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T103644&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192839&fm=76064327276486&tin=02508201610067®Number=0000000000091776&sum=20000 [10:36:41]StoreToDocumentArchive [10:36:41]shift 544 fd 192839 [10:36:41]save to /storage/0544/doc_00192839 [10:36:41]save last doc name /storage/0544/doc_00192839 to /storage/kkm_last_doc_name [10:36:41]save OK [10:36:41]Clear old archive folders... [10:36:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:36:41]tlvbuf is 00FCFD90 [10:36:41]SAM_PROTO_ClearQueue [10:36:41]wFMCommunicate request_size=4 [10:36:41]MH_SAM_APDU [10:36:41]CAPDU: 80 09 00 00 [10:36:41]Write to MH i2c: E2 08 00 12 26 80 09 00 00 00 00 00 00 AA [10:36:41]Write i2c OK [10:36:41]MH_I2C_Read... [10:36:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:36:41]Read from MH i2c: E2 [10:36:41]MH_I2C_Read... [10:36:41]Read from MH i2c: E2 03 00 [10:36:41]MH_I2C_Read... [10:36:41]Read from MH i2c: E2 03 00 12 26 00 90 00 AC [10:36:41]RAPDU: 90 00 [10:36:41]wFMCommunicate OK [10:36:41]SAM_PROTO_ClearQueue done [10:36:41]KKMCreateOFDPacket [10:36:41]OFDProtocolAddRootSTLVToBuf [10:36:41]FM_MakeSignedData [10:36:41]FM_MakeSignedData [10:36:41]SAM_PROTO_SignData [10:36:41]wFMCommunicate request_size=4 [10:36:41]MH_SAM_APDU [10:36:41]CAPDU: 80 0D 01 02 [10:36:41]Write to MH i2c: E2 08 00 13 26 80 0D 01 02 00 00 00 00 B2 [10:36:41]Write i2c OK [10:36:41]MH_I2C_Read... [10:36:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:36:41]Read from MH i2c: E2 [10:36:41]MH_I2C_Read... [10:36:41]Read from MH i2c: E2 03 00 [10:36:41]MH_I2C_Read... [10:36:41]Read from MH i2c: E2 03 00 13 26 00 90 00 AD [10:36:41]RAPDU: 90 00 [10:36:41]wFMCommunicate OK [10:36:41]wFMCommunicate request_size=255 [10:36:41]MH_SAM_APDU [10:36:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 BC BA 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 45 [10:36:41]Write to MH i2c: E2 02 01 14 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 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 2D 00 00 00 F4 03 04 00 BC BA 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 45 00 00 D3 [10:36:41]Write i2c OK [10:36:41]MH_I2C_Read... [10:36:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:41]Read from MH i2c: E2 [10:36:41]MH_I2C_Read... [10:36:41]Read from MH i2c: E2 03 00 [10:36:41]MH_I2C_Read... [10:36:41]Read from MH i2c: E2 03 00 14 26 00 90 00 AE [10:36:41]RAPDU: 90 00 [10:36:41]wFMCommunicate OK [10:36:41]wFMCommunicate request_size=10 [10:36:41]MH_SAM_APDU [10:36:41]CAPDU: 80 0D 02 02 05 2E 1B 35 17 C6 [10:36:41]Write to MH i2c: E2 0D 00 15 26 80 0D 02 02 05 00 2E 1B 35 17 C6 00 00 1A [10:36:41]Write i2c OK [10:36:41]MH_I2C_Read... [10:36:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:41]Read from MH i2c: E2 [10:36:41]MH_I2C_Read... [10:36:41]Read from MH i2c: E2 03 00 [10:36:41]MH_I2C_Read... [10:36:41]Read from MH i2c: E2 03 00 15 26 00 90 00 AF [10:36:41]RAPDU: 90 00 [10:36:41]wFMCommunicate OK [10:36:41]wFMCommunicate request_size=4 [10:36:41]MH_SAM_APDU [10:36:41]CAPDU: 80 0D 03 02 [10:36:41]Write to MH i2c: E2 08 00 16 26 80 0D 03 02 00 00 00 00 B7 [10:36:41]Write i2c OK [10:36:41]MH_I2C_Read... [10:36:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:36:41]Read from MH i2c: E2 [10:36:41]MH_I2C_Read... [10:36:41]Read from MH i2c: E2 0B 00 [10:36:41]MH_I2C_Read... [10:36:41]Read from MH i2c: E2 0B 00 16 26 00 C7 B3 AF 97 0C FD 05 B6 90 00 3C [10:36:41]RAPDU: C7 B3 AF 97 0C FD 05 B6 90 00 [10:36:41]wFMCommunicate OK [10:36:41]SAM_PROTO_SignData done [10:36:41]FM_MakeSignedData done [10:36:41]CreateOFDProtocolMessage [10:36:41]wFMCommunicate request_size=4 [10:36:41]MH_SAM_APDU [10:36:41]CAPDU: 80 11 00 00 [10:36:41]Write to MH i2c: E2 08 00 17 26 80 11 00 00 00 00 00 00 B7 [10:36:41]Write i2c OK [10:36:41]MH_I2C_Read... [10:36:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:41]Read from MH i2c: E2 [10:36:41]MH_I2C_Read... [10:36:41]Read from MH i2c: E2 17 00 [10:36:41]MH_I2C_Read... [10:36:41]Read from MH i2c: E2 17 00 17 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0A [10: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 [10:36:41]wFMCommunicate OK [10:36:41]CreateOFDProtocolMessage done [10:36:41]OFDSenderStorePacket 192839 [10:36:41]StoreOFDPacket docnum=192839 [10:36: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 2F 8E 07 01 50 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 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 2D 00 00 00 F4 03 04 00 BC BA 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 45 2E 1B 35 17 C6 C7 B3 AF 97 0C FD 05 B6 [10:36:41]CheckFolder [10:36:41]dirname=/storage/ofd_packets [10:36:41]CheckFolder done [10:36:41]ProducePacketName [10:36:41]name=ofd_packets/00192839 [10:36:41]NVStorageSaveData ofd_packets/00192839 [10:36:41]File name is /storage/ofd_packets/00192839 [10:36:41]Write 301 bytes [10:36:41]NVStorageSaveData done [10:36:41]OFDSenderStorePacket done [10:36:41]KKMCreateOFDPacket done [10:36:41]NVStorageSaveData kkm_last_timestamp [10:36:41]File name is /storage/kkm_last_timestamp [10:36:41]Write 4 bytes [10:36:41]NVStorageSaveData done [10:36:41]OFD Sender: Processing packet 192839 [packets to send 75, broken 74] [10:36:41]ProducePacketName [10:36:41]name=ofd_packets/00192839 [10:36:41]OFD Sender: To server: ‡•öpG, [10:36:41]CommunicateWithHost lk.salyk.kg:30040 [10:36:41]ConnectInit lk.salyk.kg [10:36:41]ExternCall_PrintAddStr [10:36:41]wPrintStart [10:36:41]Write to MH i2c: 01 00 00 18 26 3E [10:36:41]Write i2c OK [10:36:41]MH_I2C_Read... [10:36:41]Read from MH i2c: 01 [10:36:41]MH_I2C_Read... [10:36:41]Read from MH i2c: 01 07 00 [10:36:41]MH_I2C_Read... [10:36:41]Read from MH i2c: 01 07 00 18 26 00 00 00 00 00 FF 0F 53 [10:36:41]RasterBufferAndPrint [10:36:41]line Счет N : (1)32168 [10:36:41]line ИÐÐ: 02508201610067 [10:36:41]line Контрольно-КаÑÑовый Чек [10:36:41]line ПРОДÐЖР[10:36:41]line ТРК (МРК, ГÐК) : 21 [10:36:41]line Товар: 2710124130 [10:36:41]line Ðи-92-К-5 [10:36:41]line 2.990 * 66.90 [10:36:41]line = 200.03 [10:36:41]line ÐДС 12% ÐСП 1% [10:36:41]line > о реализуемом товаре [10:36:41]line ОКРУГЛЕÐИЕ: -0.03 [10:36:41]line ИТОГО: 200.00 [10:36:41]line ВнеÑено: 200.00 [10:36:41]line СДÐЧÐ: 0.00 [10:36:41]line ÐСП 1% : 1.77 [10:36:41]line ÐДС 12% : 21.24 [10:36:41]line Ðаличными: 200.00 [10:36:41]line Безнал.: 0.00 [10:36:41]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [10:36:41]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [10:36:41]line СÐО: Общий режим [10:36:41]line Чек 45 29.10.2024 10:36 [10:36:41]line Смена: 544 ФФД: 1.0 [10:36:41]line ЗÐМ: 0300000110 [10:36:41]line РÐМ: 0000000000091776 [10:36:41]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:36:41]line ФМ: 0000000000871754 [10:36:41]line ФД: 192839 [10:36:41]line ФПД: 76064327276486 [10:36:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T103644&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192839&fm=76064327276486&tin=02508201610067®Number=0000000000091776&sum=20000 [10:36:42]Connected sock=11 [10:36: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 2F 8E 07 01 50 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 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 2D 00 00 00 F4 03 04 00 BC BA 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 45 2E 1B 35 17 C6 C7 B3 AF 97 0C FD 05 B6 [10:36:42]written 0, free lines is 4095 [10:36: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 F5 C2 47 00 FE 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 47 F1 02 00 F4 03 04 00 7D 5F 20 67 B6 04 01 00 00 3F 84 4A 27 0B 9F 5C F7 [10:36:42]CommunicateWithHost err = 0 [10:36:42]CheckOFDResponse [10:36:42]1017 (14) - 77093643461234 [10:36:42]1041 (16) - 0000000000871754 [10:36:42]1040 (4) - 192839 [10:36:42]1012 (4) - 29.10.2024 04:07 [10:36:42]1206 (1) - 0 [10:36:42]OFD Sender: Remove packet 192839 [10:36:42]ProducePacketName [10:36:42]name=ofd_packets/00192839 [10:36:42]NVStorageDeleteData [10:36:42]Write to MH i2c: 01 00 00 43 26 69 [10:36:42]Write i2c OK [10:36:42]MH_I2C_Read... [10:36:42]Read from MH i2c: 01 [10:36:42]MH_I2C_Read... [10:36:42]Read from MH i2c: 01 07 00 [10:36:42]MH_I2C_Read... [10:36:42]Read from MH i2c: 01 07 00 43 26 00 00 00 00 00 AF 0C 2B [10:36:42]RasterBufferAndPrint [10:36:42]line [10:36:42]line [10:36:42]line [10:36:42]line [10:36:42]line [10:36:42]written 0, free lines is 3253 [10:36:42]MH_Cut [10:36:42]Write to MH i2c: D1 01 00 4A 26 01 42 [10:36:42]Write i2c OK [10:36:42]MH_I2C_Read... [10:36:42]Read from MH i2c: D1 [10:36:42]MH_I2C_Read... [10:36:42]Read from MH i2c: D1 01 00 [10:36:42]MH_I2C_Read... [10:36:42]Read from MH i2c: D1 01 00 4A 26 00 41 [10:36:42]Write to MH i2c: 01 00 00 4B 26 71 [10:36:42]Write i2c OK [10:36:42]MH_I2C_Read... [10:36:42]OFD Sender: No OFD packet to send [10:36:43]*** Cut start [10:36:43]*** Partial cut [10:36:43]*** CUTSNS_PIN = 1 [10:36:43]*** CUTSNS_PIN = 0 [10:36:43]*** Brake cut motor [10:36:44]Read from MH i2c: 01 [10:36:44]MH_I2C_Read... [10:36:44]*** Stop cut motor [10:36:44]*** Cut end [10:36:44]Read from MH i2c: 01 07 00 [10:36:44]MH_I2C_Read... [10:36:44]Read from MH i2c: 01 07 00 4B 26 00 00 00 00 00 FF 0F 86 [10:36:44]process_action close_receipt done [10:36:44]requested_data is exist [10:36:44]produce_requested_data [10:36:44]requested_item fm.sn is exist - process it [10:36:44]wFMCommunicate request_size=4 [10:36:44]MH_SAM_APDU [10:36:44]CAPDU: 80 11 00 00 [10:36:44]Write to MH i2c: E2 08 00 4C 26 80 11 00 00 00 00 00 00 EC [10:36:44]Write i2c OK [10:36:44]MH_I2C_Read... [10:36:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:44]Read from MH i2c: E2 [10:36:44]MH_I2C_Read... [10:36:44]Read from MH i2c: E2 17 00 [10:36:44]MH_I2C_Read... [10:36:44]Read from MH i2c: E2 17 00 4C 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3F [10: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 [10:36:44]wFMCommunicate OK [10:36:44]requested_item fd.num is exist - process it [10:36:44]SAM_PROTO_GetFieldsCounters [10:36:44]wFMCommunicate request_size=4 [10:36:44]MH_SAM_APDU [10:36:44]CAPDU: 80 13 00 00 [10:36:44]Write to MH i2c: E2 08 00 4D 26 80 13 00 00 00 00 00 00 EF [10:36:44]Write i2c OK [10:36:44]MH_I2C_Read... [10:36:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:44]Read from MH i2c: E2 [10:36:44]MH_I2C_Read... [10:36:44]Read from MH i2c: E2 62 00 [10:36:44]MH_I2C_Read... [10:36:44]Read from MH i2c: E2 62 00 4D 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 47 F1 02 00 0E 04 04 00 20 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 F8 [10:36: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 47 F1 02 00 0E 04 04 00 20 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 [10:36:44]wFMCommunicate OK [10:36:44]SAM_PROTO_GetFieldsCounters done [10:36:44]requested_item shift.num is exist - process it [10:36:44]requested_item shift.opened is exist - process it [10:36:44]req_shift_opened [10:36:44]FM_GetShiftState [10:36:44]SAM_PROTO_GetShiftState [10:36:44]wFMCommunicate request_size=4 [10:36:44]MH_SAM_APDU [10:36:44]CAPDU: 80 13 01 00 [10:36:44]Write to MH i2c: E2 08 00 4E 26 80 13 01 00 00 00 00 00 F1 [10:36:44]Write i2c OK [10:36:44]MH_I2C_Read... [10:36:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:44]Read from MH i2c: E2 [10:36:44]MH_I2C_Read... [10:36:44]Read from MH i2c: E2 0E 00 [10:36:44]MH_I2C_Read... [10:36:44]Read from MH i2c: E2 0E 00 4E 26 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 F7 [10:36:44]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [10:36:44]wFMCommunicate OK [10:36:44]SAM_PROTO_GetShiftState done [10:36:44]FM_GetShiftState done [10:36:44]req_shift_opened done [10:36:44]requested_item shift.open_date is exist - process it [10:36:44]req_shift_open_date [10:36:44]req_shift_open_date done [10:36:44]produce_requested_data done [10:36:44]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192839,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [10:36:44]process_action_free close_receipt [10:36:44]json_value_free [10:36:44]json_value_free done [10:36:44]process_json_proto returns [10:36:44]Send response to host [10:36:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192839,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [10:36:44]free response buf [10:36:44]execute_script done [10:36:44]execute_script returns [10:36:44]free content buf [10:36:44]Sock 9.Close socket [10:36:44]Sock 9.Thread stoped [10:36:47]OFD Sender: No OFD packet to send [10:36:52]OFD Sender: No OFD packet to send [10:36:57]OFD Sender: No OFD packet to send [10:37:02]OFD Sender: No OFD packet to send [10:37:07]OFD Sender: No OFD packet to send [10:37:12]OFD Sender: No OFD packet to send [10:37:17]OFD Sender: No OFD packet to send [10:37:22]OFD Sender: No OFD packet to send [10:37:27]OFD Sender: No OFD packet to send [10:37:32]OFD Sender: No OFD packet to send [10:37:33]accept exits with 8 [10:37:33]New connection [10:37:33]New thread 3066801508 created [10:37:33]Thread 3066658148 joined [10:37:34]Waiting for new connection... [10:37:34] Sock 8.Parse request [10:37:34]Sock 8.Check first char [10:37:34]Sock 8.First char is OK [10:37:34]request: POST /json_proto HTTP/1.0 [10:37:34]Method: POST [10:37:34]URL: /json_proto [10:37:34]Method is POST - this is cgi request [10:37:34]url: /json_proto [10:37:34]query_string will be loaded in cgi processing [10:37:34]execute_cgi json_proto POST (null) [10:37:34]execute_cgi path=json_proto method=POST [10:37:34]POST find Content-Length [10:37:34]Host: 172.17.63.131:8080 [10:37:34]Content-Length: 862 [10:37:34]Content-Type: application/json [10:37:34] [10:37:34]POST finish read [10:37:34]Found Content-Length = 862 [10:37:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32169", "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" ] } } [10:37:34]execute_script... [10:37: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)32169", "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" ] } } [10:37:34]POST & json_proto [10:37:34]process_json_proto [10:37:34]json parsed OK: [10:37:34]protocol is kg_v1.0 [10:37:34]action value=close_receipt [10:37:34]process_action close_receipt [10:37:34]cmd_close_receipt [10:37:34]MH_GetDate [10:37:34]Write to MH i2c: F0 00 00 4F 26 64 [10:37:34]Write i2c OK [10:37:34]MH_I2C_Read... [10:37:34]Read from MH i2c: F0 [10:37:34]MH_I2C_Read... [10:37:34]Read from MH i2c: F0 09 00 [10:37:34]MH_I2C_Read... [10:37:34]Read from MH i2c: F0 09 00 4F 26 00 F2 BA 20 67 22 05 6E 64 99 [10:37:34]GetLastDocTimeStamp 1730198204 [10:37:34]current date 1730198258 [10:37:34]FM_GetShiftState [10:37:34]SAM_PROTO_GetShiftState [10:37:34]wFMCommunicate request_size=4 [10:37:34]MH_SAM_APDU [10:37:34]CAPDU: 80 13 01 00 [10:37:34]Write to MH i2c: E2 08 00 50 26 80 13 01 00 00 00 00 00 F3 [10:37:34]Write i2c OK [10:37:34]MH_I2C_Read... [10:37:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:34]Read from MH i2c: E2 [10:37:34]MH_I2C_Read... [10:37:34]Read from MH i2c: E2 0E 00 [10:37:34]MH_I2C_Read... [10:37:34]Read from MH i2c: E2 0E 00 50 26 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 F9 [10:37:34]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [10:37:34]wFMCommunicate OK [10:37:34]SAM_PROTO_GetShiftState done [10:37:34]FM_GetShiftState done [10:37:34]opened in 1730161990 [10:37:34]opened+sec_in_day 1730248390 [10:37:34]quantity*price = 50041 [10:37:34]sum+1 = 50042 [10:37:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 ÐСП 1% : 4.43 ÐДС 12% : 53.14 Ðаличными: 0.00 Безнал.: 500.41 МеÑто: ÐЗС â„– 170 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 СÐО: Общий режим Чек 46 29.10.2024 10:37 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192840 ФПД: 158525206578903 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T103738&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192840&fm=158525206578903&tin=02508201610067®Number=0000000000091776&sum=50041 [10:37:35]StoreToDocumentArchive [10:37:35]shift 544 fd 192840 [10:37:35]save to /storage/0544/doc_00192840 [10:37:35]save last doc name /storage/0544/doc_00192840 to /storage/kkm_last_doc_name [10:37:35]save OK [10:37:35]Clear old archive folders... [10:37:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:37:35]tlvbuf is 00F7DA10 [10:37:35]SAM_PROTO_ClearQueue [10:37:35]wFMCommunicate request_size=4 [10:37:35]MH_SAM_APDU [10:37:35]CAPDU: 80 09 00 00 [10:37:35]Write to MH i2c: E2 08 00 5D 26 80 09 00 00 00 00 00 00 F5 [10:37:35]Write i2c OK [10:37:35]MH_I2C_Read... [10:37:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:37:35]Read from MH i2c: E2 [10:37:35]MH_I2C_Read... [10:37:35]Read from MH i2c: E2 03 00 [10:37:35]MH_I2C_Read... [10:37:35]Read from MH i2c: E2 03 00 5D 26 00 90 00 F7 [10:37:35]RAPDU: 90 00 [10:37:35]wFMCommunicate OK [10:37:35]SAM_PROTO_ClearQueue done [10:37:35]KKMCreateOFDPacket [10:37:35]OFDProtocolAddRootSTLVToBuf [10:37:35]FM_MakeSignedData [10:37:35]FM_MakeSignedData [10:37:35]SAM_PROTO_SignData [10:37:35]wFMCommunicate request_size=4 [10:37:35]MH_SAM_APDU [10:37:35]CAPDU: 80 0D 01 02 [10:37:35]Write to MH i2c: E2 08 00 5E 26 80 0D 01 02 00 00 00 00 FD [10:37:35]Write i2c OK [10:37:35]MH_I2C_Read... [10:37:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:37:35]Read from MH i2c: E2 [10:37:35]MH_I2C_Read... [10:37:35]Read from MH i2c: E2 03 00 [10:37:35]MH_I2C_Read... [10:37:35]Read from MH i2c: E2 03 00 5E 26 00 90 00 F8 [10:37:35]RAPDU: 90 00 [10:37:35]wFMCommunicate OK [10:37:35]wFMCommunicate request_size=255 [10:37:35]MH_SAM_APDU [10:37: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 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 2E 00 00 00 F4 03 04 00 F2 BA 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 90 [10:37:35]Write to MH i2c: E2 02 01 5F 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 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 2E 00 00 00 F4 03 04 00 F2 BA 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 90 00 00 31 [10:37:35]Write i2c OK [10:37:35]MH_I2C_Read... [10:37:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:35]Read from MH i2c: E2 [10:37:35]MH_I2C_Read... [10:37:35]Read from MH i2c: E2 03 00 [10:37:35]MH_I2C_Read... [10:37:35]Read from MH i2c: E2 03 00 5F 26 00 90 00 F9 [10:37:35]RAPDU: 90 00 [10:37:35]wFMCommunicate OK [10:37:35]wFMCommunicate request_size=10 [10:37:35]MH_SAM_APDU [10:37:35]CAPDU: 80 0D 02 02 05 2D 86 A0 46 D7 [10:37:35]Write to MH i2c: E2 0D 00 60 26 80 0D 02 02 05 00 2D 86 A0 46 D7 00 00 7A [10:37:35]Write i2c OK [10:37:35]MH_I2C_Read... [10:37:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:35]Read from MH i2c: E2 [10:37:35]MH_I2C_Read... [10:37:35]Read from MH i2c: E2 03 00 [10:37:35]MH_I2C_Read... [10:37:35]Read from MH i2c: E2 03 00 60 26 00 90 00 FA [10:37:35]RAPDU: 90 00 [10:37:35]wFMCommunicate OK [10:37:35]wFMCommunicate request_size=4 [10:37:35]MH_SAM_APDU [10:37:35]CAPDU: 80 0D 03 02 [10:37:35]Write to MH i2c: E2 08 00 61 26 80 0D 03 02 00 00 00 00 02 [10:37:35]Write i2c OK [10:37:35]MH_I2C_Read... [10:37:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:37:35]Read from MH i2c: E2 [10:37:35]MH_I2C_Read... [10:37:35]Read from MH i2c: E2 0B 00 [10:37:35]MH_I2C_Read... [10:37:35]Read from MH i2c: E2 0B 00 61 26 00 2A 55 3E 7B 1F DD E1 A7 90 00 BF [10:37:35]RAPDU: 2A 55 3E 7B 1F DD E1 A7 90 00 [10:37:35]wFMCommunicate OK [10:37:35]SAM_PROTO_SignData done [10:37:35]FM_MakeSignedData done [10:37:35]CreateOFDProtocolMessage [10:37:35]wFMCommunicate request_size=4 [10:37:35]MH_SAM_APDU [10:37:35]CAPDU: 80 11 00 00 [10:37:35]Write to MH i2c: E2 08 00 62 26 80 11 00 00 00 00 00 00 02 [10:37:35]Write i2c OK [10:37:35]MH_I2C_Read... [10:37:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:35]Read from MH i2c: E2 [10:37:35]MH_I2C_Read... [10:37:35]Read from MH i2c: E2 17 00 [10:37:35]MH_I2C_Read... [10:37:35]Read from MH i2c: E2 17 00 62 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 55 [10:37: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:37:35]wFMCommunicate OK [10:37:35]CreateOFDProtocolMessage done [10:37:35]OFDSenderStorePacket 192840 [10:37:35]StoreOFDPacket docnum=192840 [10:37: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 17 9B 07 01 AD 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 2E 00 00 00 F4 03 04 00 F2 BA 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 90 2D 86 A0 46 D7 2A 55 3E 7B 1F DD E1 A7 [10:37:35]CheckFolder [10:37:35]dirname=/storage/ofd_packets [10:37:35]CheckFolder done [10:37:35]ProducePacketName [10:37:35]name=ofd_packets/00192840 [10:37:35]NVStorageSaveData ofd_packets/00192840 [10:37:35]File name is /storage/ofd_packets/00192840 [10:37:35]Write 301 bytes [10:37:35]NVStorageSaveData done [10:37:35]OFDSenderStorePacket done [10:37:35]KKMCreateOFDPacket done [10:37:35]NVStorageSaveData kkm_last_timestamp [10:37:35]File name is /storage/kkm_last_timestamp [10:37:35]Write 4 bytes [10:37:35]NVStorageSaveData done [10:37:35]ExternCall_PrintAddStr [10:37:35]wPrintStart [10:37:35]Write to MH i2c: 01 00 00 63 26 89 [10:37:35]Write i2c OK [10:37:35]MH_I2C_Read... [10:37:35]Read from MH i2c: 01 [10:37:35]MH_I2C_Read... [10:37:35]Read from MH i2c: 01 07 00 [10:37:35]MH_I2C_Read... [10:37:35]Read from MH i2c: 01 07 00 63 26 00 00 00 00 00 FF 0F 9E [10:37:35]RasterBufferAndPrint [10:37:35]line Счет N : (1)32169 [10:37:35]line ИÐÐ: 02508201610067 [10:37:35]line Контрольно-КаÑÑовый Чек [10:37:35]line ПРОДÐЖР[10:37:35]line ТРК (МРК, ГÐК) : 12 [10:37:35]line Товар: 2710124130 [10:37:35]line Ðи-92-К-5 [10:37:35]line 7.480 * 66.90 [10:37:35]line = 500.41 [10:37:35]line ÐДС 12% ÐСП 1% [10:37:35]line > о реализуемом товаре [10:37:35]line ИТОГО: 500.41 [10:37:35]line ÐСП 1% : 4.43 [10:37:35]line ÐДС 12% : 53.14 [10:37:35]line Ðаличными: 0.00 [10:37:35]line Безнал.: 500.41 [10:37:35]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [10:37:35]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [10:37:35]line СÐО: Общий режим [10:37:35]line Чек 46 29.10.2024 10:37 [10:37:35]line Смена: 544 ФФД: 1.0 [10:37:35]line ЗÐМ: 0300000110 [10:37:35]line РÐМ: 0000000000091776 [10:37:35]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:37:35]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Кыргызкоммерцбанк [10:37:35]line ФМ: 0000000000871754 [10:37:35]line ФД: 192840 [10:37:35]line ФПД: 158525206578903 [10:37:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T103738&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192840&fm=158525206578903&tin=02508201610067®Number=0000000000091776&sum=50041 [10:37:36]OFD Sender: Processing packet 192840 [packets to send 75, broken 74] [10:37:36]ProducePacketName [10:37:36]name=ofd_packets/00192840 [10:37:36]OFD Sender: To server: ‡•öpG, [10:37:36]CommunicateWithHost lk.salyk.kg:30040 [10:37:36]ConnectInit lk.salyk.kg [10:37:36]written 0, free lines is 4095 [10:37:36]Connected sock=10 [10:37: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 17 9B 07 01 AD 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 2E 00 00 00 F4 03 04 00 F2 BA 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 90 2D 86 A0 46 D7 2A 55 3E 7B 1F DD E1 A7 [10:37: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 9C 98 47 00 1C 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 48 F1 02 00 F4 03 04 00 B3 5F 20 67 B6 04 01 00 00 C4 9B 0A 4A E0 63 FB 2E [10:37:36]CommunicateWithHost err = 0 [10:37:36]CheckOFDResponse [10:37:36]1017 (14) - 77093643461234 [10:37:36]1041 (16) - 0000000000871754 [10:37:36]1040 (4) - 192840 [10:37:36]1012 (4) - 29.10.2024 04:08 [10:37:36]1206 (1) - 0 [10:37:36]OFD Sender: Remove packet 192840 [10:37:36]ProducePacketName [10:37:36]name=ofd_packets/00192840 [10:37:36]NVStorageDeleteData [10:37:36]Write to MH i2c: 01 00 00 8D 26 B3 [10:37:36]Write i2c OK [10:37:36]MH_I2C_Read... [10:37:36]Read from MH i2c: 01 [10:37:36]MH_I2C_Read... [10:37:36]Read from MH i2c: 01 07 00 [10:37:36]MH_I2C_Read... [10:37:36]Read from MH i2c: 01 07 00 8D 26 00 00 00 00 00 D0 0C 96 [10:37:36]RasterBufferAndPrint [10:37:36]line [10:37:36]line [10:37:36]line [10:37:36]line [10:37:36]line [10:37:36]written 0, free lines is 3287 [10:37:36]MH_Cut [10:37:36]Write to MH i2c: D1 01 00 94 26 01 8C [10:37:36]Write i2c OK [10:37:36]MH_I2C_Read... [10:37:36]Read from MH i2c: D1 [10:37:36]MH_I2C_Read... [10:37:36]Read from MH i2c: D1 01 00 [10:37:36]MH_I2C_Read... [10:37:36]Read from MH i2c: D1 01 00 94 26 00 8B [10:37:36]Write to MH i2c: 01 00 00 95 26 BB [10:37:36]Write i2c OK [10:37:36]MH_I2C_Read... [10:37:36]OFD Sender: No OFD packet to send [10:37:37]*** Cut start [10:37:37]*** Partial cut [10:37:37]*** CUTSNS_PIN = 1 [10:37:37]*** CUTSNS_PIN = 0 [10:37:37]*** Brake cut motor [10:37:37]Read from MH i2c: 01 [10:37:37]MH_I2C_Read... [10:37:37]*** Stop cut motor [10:37:37]*** Cut end [10:37:37]Read from MH i2c: 01 07 00 [10:37:37]MH_I2C_Read... [10:37:37]Read from MH i2c: 01 07 00 95 26 00 00 00 00 00 FF 0F D0 [10:37:37]process_action close_receipt done [10:37:37]requested_data is exist [10:37:37]produce_requested_data [10:37:37]requested_item fm.sn is exist - process it [10:37:37]wFMCommunicate request_size=4 [10:37:37]MH_SAM_APDU [10:37:37]CAPDU: 80 11 00 00 [10:37:37]Write to MH i2c: E2 08 00 96 26 80 11 00 00 00 00 00 00 36 [10:37:37]Write i2c OK [10:37:37]MH_I2C_Read... [10:37:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:37]Read from MH i2c: E2 [10:37:37]MH_I2C_Read... [10:37:37]Read from MH i2c: E2 17 00 [10:37:37]MH_I2C_Read... [10:37:37]Read from MH i2c: E2 17 00 96 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 89 [10:37: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:37:37]wFMCommunicate OK [10:37:37]requested_item fd.num is exist - process it [10:37:37]SAM_PROTO_GetFieldsCounters [10:37:37]wFMCommunicate request_size=4 [10:37:37]MH_SAM_APDU [10:37:37]CAPDU: 80 13 00 00 [10:37:37]Write to MH i2c: E2 08 00 97 26 80 13 00 00 00 00 00 00 39 [10:37:37]Write i2c OK [10:37:37]MH_I2C_Read... [10:37:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:37:38]Read from MH i2c: E2 [10:37:38]MH_I2C_Read... [10:37:38]Read from MH i2c: E2 62 00 [10:37:38]MH_I2C_Read... [10:37:38]Read from MH i2c: E2 62 00 97 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 48 F1 02 00 0E 04 04 00 20 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 46 [10:37: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 48 F1 02 00 0E 04 04 00 20 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 [10:37:38]wFMCommunicate OK [10:37:38]SAM_PROTO_GetFieldsCounters done [10:37:38]requested_item shift.num is exist - process it [10:37:38]requested_item shift.opened is exist - process it [10:37:38]req_shift_opened [10:37:38]FM_GetShiftState [10:37:38]SAM_PROTO_GetShiftState [10:37:38]wFMCommunicate request_size=4 [10:37:38]MH_SAM_APDU [10:37:38]CAPDU: 80 13 01 00 [10:37:38]Write to MH i2c: E2 08 00 98 26 80 13 01 00 00 00 00 00 3B [10:37:38]Write i2c OK [10:37:38]MH_I2C_Read... [10:37:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:38]Read from MH i2c: E2 [10:37:38]MH_I2C_Read... [10:37:38]Read from MH i2c: E2 0E 00 [10:37:38]MH_I2C_Read... [10:37:38]Read from MH i2c: E2 0E 00 98 26 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 41 [10:37:38]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [10:37:38]wFMCommunicate OK [10:37:38]SAM_PROTO_GetShiftState done [10:37:38]FM_GetShiftState done [10:37:38]req_shift_opened done [10:37:38]requested_item shift.open_date is exist - process it [10:37:38]req_shift_open_date [10:37:38]req_shift_open_date done [10:37:38]produce_requested_data done [10:37:38]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192840,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [10:37:38]process_action_free close_receipt [10:37:38]json_value_free [10:37:38]json_value_free done [10:37:38]process_json_proto returns [10:37:38]Send response to host [10:37:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192840,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [10:37:38]free response buf [10:37:38]execute_script done [10:37:38]execute_script returns [10:37:38]free content buf [10:37:38]Sock 8.Close socket [10:37:38]Sock 8.Thread stoped [10:37:41]OFD Sender: No OFD packet to send [10:37:46]OFD Sender: No OFD packet to send [10:37:51]OFD Sender: No OFD packet to send [10:37:56]OFD Sender: No OFD packet to send [10:38:01]OFD Sender: No OFD packet to send [10:38:06]OFD Sender: No OFD packet to send [10:38:11]OFD Sender: No OFD packet to send [10:38:16]OFD Sender: No OFD packet to send [10:38:21]OFD Sender: No OFD packet to send [10:38:26]OFD Sender: No OFD packet to send [10:38:31]OFD Sender: No OFD packet to send [10:38:36]OFD Sender: No OFD packet to send [10:38:41]OFD Sender: No OFD packet to send [10:38:46]OFD Sender: No OFD packet to send [10:38:51]OFD Sender: No OFD packet to send [10:38:56]OFD Sender: No OFD packet to send [10:39: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:14]accept exits with 9 [10:39:14]New connection [10:39:14]New thread 3066658148 created [10:39:14]Thread 3066801508 joined [10:39:14]Waiting for new connection... [10:39:14] Sock 9.Parse request [10:39:14]Sock 9.Check first char [10:39:14]Sock 9.First char is OK [10:39:14]request: POST /json_proto HTTP/1.0 [10:39:14]Method: POST [10:39:14]URL: /json_proto [10:39:14]Method is POST - this is cgi request [10:39:14]url: /json_proto [10:39:14]query_string will be loaded in cgi processing [10:39:14]execute_cgi json_proto POST (null) [10:39:14]execute_cgi path=json_proto method=POST [10:39:14]POST find Content-Length [10:39:14]Host: 172.17.63.131:8080 [10:39:14]Content-Length: 676 [10:39:14]Content-Type: application/json [10:39:14] [10:39:14]POST finish read [10:39:14]Found Content-Length = 676 [10:39:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32170", "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" ] } } [10:39:14]execute_script... [10:39: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)32170", "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" ] } } [10:39:14]POST & json_proto [10:39:14]process_json_proto [10:39:14]json parsed OK: [10:39:14]protocol is kg_v1.0 [10:39:14]action value=close_receipt [10:39:14]process_action close_receipt [10:39:14]cmd_close_receipt [10:39:14]MH_GetDate [10:39:14]Write to MH i2c: F0 00 00 99 26 AE [10:39:14]Write i2c OK [10:39:14]MH_I2C_Read... [10:39:14]Read from MH i2c: F0 [10:39:14]MH_I2C_Read... [10:39:14]Read from MH i2c: F0 09 00 [10:39:14]MH_I2C_Read... [10:39:14]Read from MH i2c: F0 09 00 99 26 00 56 BB 20 67 22 05 6E 64 48 [10:39:14]GetLastDocTimeStamp 1730198258 [10:39:14]current date 1730198358 [10:39:14]FM_GetShiftState [10:39:14]SAM_PROTO_GetShiftState [10:39:14]wFMCommunicate request_size=4 [10:39:14]MH_SAM_APDU [10:39:14]CAPDU: 80 13 01 00 [10:39:14]Write to MH i2c: E2 08 00 9A 26 80 13 01 00 00 00 00 00 3D [10:39:14]Write i2c OK [10:39:14]MH_I2C_Read... [10:39:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:14]Read from MH i2c: E2 [10:39:14]MH_I2C_Read... [10:39:14]Read from MH i2c: E2 0E 00 [10:39:14]MH_I2C_Read... [10:39:14]Read from MH i2c: E2 0E 00 9A 26 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 43 [10:39:14]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [10:39:14]wFMCommunicate OK [10:39:14]SAM_PROTO_GetShiftState done [10:39:14]FM_GetShiftState done [10:39:14]opened in 1730161990 [10:39:14]opened+sec_in_day 1730248390 [10:39:14]quantity*price = 15052 [10:39:14]sum+1 = 15054 [10:39:14]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 СÐО: Общий режим Чек 47 29.10.2024 10:39 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192841 ФПД: 85975236116693 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T103918&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192841&fm=85975236116693&tin=02508201610067®Number=0000000000091776&sum=15000 [10:39:15]StoreToDocumentArchive [10:39:15]shift 544 fd 192841 [10:39:15]save to /storage/0544/doc_00192841 [10:39:15]save last doc name /storage/0544/doc_00192841 to /storage/kkm_last_doc_name [10:39:15]save OK [10:39:15]Clear old archive folders... [10:39:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:39:15]tlvbuf is 00F68AD0 [10:39:15]SAM_PROTO_ClearQueue [10:39:15]wFMCommunicate request_size=4 [10:39:15]MH_SAM_APDU [10:39:15]CAPDU: 80 09 00 00 [10:39:15]Write to MH i2c: E2 08 00 A7 26 80 09 00 00 00 00 00 00 3F [10:39:15]Write i2c OK [10:39:15]MH_I2C_Read... [10:39:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:39:15]Read from MH i2c: E2 [10:39:15]MH_I2C_Read... [10:39:15]Read from MH i2c: E2 03 00 [10:39:15]MH_I2C_Read... [10:39:15]Read from MH i2c: E2 03 00 A7 26 00 90 00 41 [10:39:15]RAPDU: 90 00 [10:39:15]wFMCommunicate OK [10:39:15]SAM_PROTO_ClearQueue done [10:39:15]KKMCreateOFDPacket [10:39:15]OFDProtocolAddRootSTLVToBuf [10:39:15]FM_MakeSignedData [10:39:15]FM_MakeSignedData [10:39:15]SAM_PROTO_SignData [10:39:15]wFMCommunicate request_size=4 [10:39:15]MH_SAM_APDU [10:39:15]CAPDU: 80 0D 01 02 [10:39:15]Write to MH i2c: E2 08 00 A8 26 80 0D 01 02 00 00 00 00 47 [10:39:15]Write i2c OK [10:39:15]MH_I2C_Read... [10:39:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:39:15]Read from MH i2c: E2 [10:39:15]MH_I2C_Read... [10:39:15]Read from MH i2c: E2 03 00 [10:39:15]MH_I2C_Read... [10:39:15]Read from MH i2c: E2 03 00 A8 26 00 90 00 42 [10:39:15]RAPDU: 90 00 [10:39:15]wFMCommunicate OK [10:39:15]wFMCommunicate request_size=255 [10:39:15]MH_SAM_APDU [10:39: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 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 2F 00 00 00 F4 03 04 00 56 BB 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 4E [10:39:15]Write to MH i2c: E2 02 01 A9 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 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 2F 00 00 00 F4 03 04 00 56 BB 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 4E 00 00 4B [10:39:15]Write i2c OK [10:39:15]MH_I2C_Read... [10:39:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:15]Read from MH i2c: E2 [10:39:15]MH_I2C_Read... [10:39:15]Read from MH i2c: E2 03 00 [10:39:15]MH_I2C_Read... [10:39:15]Read from MH i2c: E2 03 00 A9 26 00 90 00 43 [10:39:15]RAPDU: 90 00 [10:39:15]wFMCommunicate OK [10:39:15]wFMCommunicate request_size=10 [10:39:15]MH_SAM_APDU [10:39:15]CAPDU: 80 0D 02 02 05 31 AB 68 80 D5 [10:39:15]Write to MH i2c: E2 0D 00 AA 26 80 0D 02 02 05 00 31 AB 68 80 D5 00 00 ED [10:39:15]Write i2c OK [10:39:15]MH_I2C_Read... [10:39:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:15]Read from MH i2c: E2 [10:39:15]MH_I2C_Read... [10:39:15]Read from MH i2c: E2 03 00 [10:39:15]MH_I2C_Read... [10:39:15]Read from MH i2c: E2 03 00 AA 26 00 90 00 44 [10:39:15]RAPDU: 90 00 [10:39:15]wFMCommunicate OK [10:39:15]wFMCommunicate request_size=4 [10:39:15]MH_SAM_APDU [10:39:15]CAPDU: 80 0D 03 02 [10:39:15]Write to MH i2c: E2 08 00 AB 26 80 0D 03 02 00 00 00 00 4C [10:39:15]Write i2c OK [10:39:15]MH_I2C_Read... [10:39:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:39:16]Read from MH i2c: E2 [10:39:16]MH_I2C_Read... [10:39:16]Read from MH i2c: E2 0B 00 [10:39:16]MH_I2C_Read... [10:39:16]Read from MH i2c: E2 0B 00 AB 26 00 7F 9E D7 F1 26 08 3D 8D 90 00 2A [10:39:16]RAPDU: 7F 9E D7 F1 26 08 3D 8D 90 00 [10:39:16]wFMCommunicate OK [10:39:16]SAM_PROTO_SignData done [10:39:16]FM_MakeSignedData done [10:39:16]CreateOFDProtocolMessage [10:39:16]wFMCommunicate request_size=4 [10:39:16]MH_SAM_APDU [10:39:16]CAPDU: 80 11 00 00 [10:39:16]Write to MH i2c: E2 08 00 AC 26 80 11 00 00 00 00 00 00 4C [10:39:16]Write i2c OK [10:39:16]MH_I2C_Read... [10:39:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:16]Read from MH i2c: E2 [10:39:16]MH_I2C_Read... [10:39:16]Read from MH i2c: E2 17 00 [10:39:16]MH_I2C_Read... [10:39:16]Read from MH i2c: E2 17 00 AC 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9F [10:39: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:39:16]wFMCommunicate OK [10:39:16]CreateOFDProtocolMessage done [10:39:16]OFDSenderStorePacket 192841 [10:39:16]StoreOFDPacket docnum=192841 [10:39: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 99 B0 07 01 59 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 2F 00 00 00 F4 03 04 00 56 BB 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 4E 31 AB 68 80 D5 7F 9E D7 F1 26 08 3D 8D [10:39:16]CheckFolder [10:39:16]dirname=/storage/ofd_packets [10:39:16]CheckFolder done [10:39:16]ProducePacketName [10:39:16]name=ofd_packets/00192841 [10:39:16]NVStorageSaveData ofd_packets/00192841 [10:39:16]File name is /storage/ofd_packets/00192841 [10:39:16]Write 301 bytes [10:39:16]NVStorageSaveData done [10:39:16]OFDSenderStorePacket done [10:39:16]KKMCreateOFDPacket done [10:39:16]NVStorageSaveData kkm_last_timestamp [10:39:16]File name is /storage/kkm_last_timestamp [10:39:16]Write 4 bytes [10:39:16]NVStorageSaveData done [10:39:16]ExternCall_PrintAddStr [10:39:16]wPrintStart [10:39:16]Write to MH i2c: 01 00 00 AD 26 D3 [10:39:16]Write i2c OK [10:39:16]MH_I2C_Read... [10:39:16]Read from MH i2c: 01 [10:39:16]MH_I2C_Read... [10:39:16]Read from MH i2c: 01 07 00 [10:39:16]MH_I2C_Read... [10:39:16]Read from MH i2c: 01 07 00 AD 26 00 00 00 00 00 FF 0F E8 [10:39:16]RasterBufferAndPrint [10:39:16]line Счет N : (1)32170 [10:39:16]line ИÐÐ: 02508201610067 [10:39:16]line Контрольно-КаÑÑовый Чек [10:39:16]line ПРОДÐЖР[10:39:16]line ТРК (МРК, ГÐК) : 12 [10:39:16]line Товар: 2710124130 [10:39:16]line Ðи-92-К-5 [10:39:16]line 2.250 * 66.90 [10:39:16]line = 150.53 [10:39:16]line ÐДС 12% ÐСП 1% [10:39:16]line > о реализуемом товаре [10:39:16]line ОКРУГЛЕÐИЕ: -0.53 [10:39:16]line ИТОГО: 150.00 [10:39:16]line ВнеÑено: 150.00 [10:39:16]line СДÐЧÐ: 0.00 [10:39:16]line ÐСП 1% : 1.33 [10:39:16]line ÐДС 12% : 15.98 [10:39:16]line Ðаличными: 150.00 [10:39:16]line Безнал.: 0.00 [10:39:16]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [10:39:16]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [10:39:16]line СÐО: Общий режим [10:39:16]line Чек 47 29.10.2024 10:39 [10:39:16]line Смена: 544 ФФД: 1.0 [10:39:16]line ЗÐМ: 0300000110 [10:39:16]line РÐМ: 0000000000091776 [10:39:16]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:39:16]line ФМ: 0000000000871754 [10:39:16]line ФД: 192841 [10:39:16]line ФПД: 85975236116693 [10:39:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T103918&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192841&fm=85975236116693&tin=02508201610067®Number=0000000000091776&sum=15000 [10:39:16]OFD Sender: Processing packet 192841 [packets to send 75, broken 74] [10:39:16]ProducePacketName [10:39:16]name=ofd_packets/00192841 [10:39:16]OFD Sender: To server: ‡•öpG, [10:39:16]CommunicateWithHost lk.salyk.kg:30040 [10:39:16]ConnectInit lk.salyk.kg [10:39:16]written 0, free lines is 4095 [10:39:16]Connected sock=10 [10:39: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 99 B0 07 01 59 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 2F 00 00 00 F4 03 04 00 56 BB 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 4E 31 AB 68 80 D5 7F 9E D7 F1 26 08 3D 8D [10:39: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 78 49 47 00 86 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 49 F1 02 00 F4 03 04 00 17 60 20 67 B6 04 01 00 00 10 B2 07 E9 0D 06 F7 F6 [10:39:16]CommunicateWithHost err = 0 [10:39:16]CheckOFDResponse [10:39:16]1017 (14) - 77093643461234 [10:39:16]1041 (16) - 0000000000871754 [10:39:16]1040 (4) - 192841 [10:39:16]1012 (4) - 29.10.2024 04:09 [10:39:16]1206 (1) - 0 [10:39:16]OFD Sender: Remove packet 192841 [10:39:16]ProducePacketName [10:39:16]name=ofd_packets/00192841 [10:39:16]NVStorageDeleteData [10:39:16]Write to MH i2c: 01 00 00 D8 26 FE [10:39:16]Write i2c OK [10:39:16]MH_I2C_Read... [10:39:16]Read from MH i2c: 01 [10:39:16]MH_I2C_Read... [10:39:16]Read from MH i2c: 01 07 00 [10:39:16]MH_I2C_Read... [10:39:16]Read from MH i2c: 01 07 00 D8 26 00 00 00 00 00 A7 0C B8 [10:39:16]RasterBufferAndPrint [10:39:16]line [10:39:16]line [10:39:16]line [10:39:16]line [10:39:16]line [10:39:16]written 0, free lines is 3245 [10:39:16]MH_Cut [10:39:16]Write to MH i2c: D1 01 00 DF 26 01 D7 [10:39:16]Write i2c OK [10:39:16]MH_I2C_Read... [10:39:16]Read from MH i2c: D1 [10:39:16]MH_I2C_Read... [10:39:16]Read from MH i2c: D1 01 00 [10:39:16]MH_I2C_Read... [10:39:16]Read from MH i2c: D1 01 00 DF 26 00 D6 [10:39:16]Write to MH i2c: 01 00 00 E0 26 06 [10:39:16]Write i2c OK [10:39:16]MH_I2C_Read... [10:39:17]OFD Sender: No OFD packet to send [10:39:17]*** Cut start [10:39:17]*** Partial cut [10:39:17]*** CUTSNS_PIN = 1 [10:39:17]*** CUTSNS_PIN = 0 [10:39:18]*** Brake cut motor [10:39:18]Read from MH i2c: 01 [10:39:18]MH_I2C_Read... [10:39:18]*** Stop cut motor [10:39:18]*** Cut end [10:39:18]Read from MH i2c: 01 07 00 [10:39:18]MH_I2C_Read... [10:39:18]Read from MH i2c: 01 07 00 E0 26 00 00 00 00 00 FF 0F 1B [10:39:18]process_action close_receipt done [10:39:18]requested_data is exist [10:39:18]produce_requested_data [10:39:18]requested_item fm.sn is exist - process it [10:39:18]wFMCommunicate request_size=4 [10:39:18]MH_SAM_APDU [10:39:18]CAPDU: 80 11 00 00 [10:39:18]Write to MH i2c: E2 08 00 E1 26 80 11 00 00 00 00 00 00 81 [10:39:18]Write i2c OK [10:39:18]MH_I2C_Read... [10:39:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:18]Read from MH i2c: E2 [10:39:18]MH_I2C_Read... [10:39:18]Read from MH i2c: E2 17 00 [10:39:18]MH_I2C_Read... [10:39:18]Read from MH i2c: E2 17 00 E1 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D4 [10:39: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:39:18]wFMCommunicate OK [10:39:18]requested_item fd.num is exist - process it [10:39:18]SAM_PROTO_GetFieldsCounters [10:39:18]wFMCommunicate request_size=4 [10:39:18]MH_SAM_APDU [10:39:18]CAPDU: 80 13 00 00 [10:39:18]Write to MH i2c: E2 08 00 E2 26 80 13 00 00 00 00 00 00 84 [10:39:18]Write i2c OK [10:39:18]MH_I2C_Read... [10:39:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:39:18]Read from MH i2c: E2 [10:39:18]MH_I2C_Read... [10:39:18]Read from MH i2c: E2 62 00 [10:39:18]MH_I2C_Read... [10:39:18]Read from MH i2c: E2 62 00 E2 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 49 F1 02 00 0E 04 04 00 20 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 95 [10:39: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 49 F1 02 00 0E 04 04 00 20 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 [10:39:18]wFMCommunicate OK [10:39:18]SAM_PROTO_GetFieldsCounters done [10:39:18]requested_item shift.num is exist - process it [10:39:18]requested_item shift.opened is exist - process it [10:39:18]req_shift_opened [10:39:18]FM_GetShiftState [10:39:18]SAM_PROTO_GetShiftState [10:39:18]wFMCommunicate request_size=4 [10:39:18]MH_SAM_APDU [10:39:18]CAPDU: 80 13 01 00 [10:39:18]Write to MH i2c: E2 08 00 E3 26 80 13 01 00 00 00 00 00 86 [10:39:18]Write i2c OK [10:39:18]MH_I2C_Read... [10:39:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:18]Read from MH i2c: E2 [10:39:18]MH_I2C_Read... [10:39:18]Read from MH i2c: E2 0E 00 [10:39:18]MH_I2C_Read... [10:39:18]Read from MH i2c: E2 0E 00 E3 26 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 8C [10:39:18]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [10:39:18]wFMCommunicate OK [10:39:18]SAM_PROTO_GetShiftState done [10:39:18]FM_GetShiftState done [10:39:18]req_shift_opened done [10:39:18]requested_item shift.open_date is exist - process it [10:39:18]req_shift_open_date [10:39:18]req_shift_open_date done [10:39:18]produce_requested_data done [10:39:18]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192841,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [10:39:18]process_action_free close_receipt [10:39:18]json_value_free [10:39:18]json_value_free done [10:39:18]process_json_proto returns [10:39:18]Send response to host [10:39:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192841,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [10:39:18]free response buf [10:39:18]execute_script done [10:39:18]execute_script returns [10:39:18]free content buf [10:39:18]Sock 9.Close socket [10:39:18]Sock 9.Thread stoped [10:39:22]OFD Sender: No OFD packet to send [10:39:27]OFD Sender: No OFD packet to send [10:39:32]OFD Sender: No OFD packet to send [10:39:37]OFD Sender: No OFD packet to send [10:39:42]OFD Sender: No OFD packet to send [10:39:47]OFD Sender: No OFD packet to send [10:39:52]OFD Sender: No OFD packet to send [10:39:57]OFD Sender: No OFD packet to send [10:40:02]OFD Sender: No OFD packet to send [10:40:05]accept exits with 8 [10:40:05]New connection [10:40:05]New thread 3066801508 created [10:40:05]Thread 3066658148 joined [10:40:05]Waiting for new connection... [10:40:05] Sock 8.Parse request [10:40:05]Sock 8.Check first char [10:40:05]Sock 8.First char is OK [10:40:05]request: POST /json_proto HTTP/1.0 [10:40:05]Method: POST [10:40:05]URL: /json_proto [10:40:05]Method is POST - this is cgi request [10:40:05]url: /json_proto [10:40:05]query_string will be loaded in cgi processing [10:40:05]execute_cgi json_proto POST (null) [10:40:05]execute_cgi path=json_proto method=POST [10:40:05]POST find Content-Length [10:40:05]Host: 172.17.63.131:8080 [10:40:05]Content-Length: 677 [10:40:05]Content-Type: application/json [10:40:05] [10:40:05]POST finish read [10:40:05]Found Content-Length = 677 [10:40:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32171", "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:40:05]execute_script... [10:40: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)32171", "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:40:05]POST & json_proto [10:40:05]process_json_proto [10:40:05]json parsed OK: [10:40:05]protocol is kg_v1.0 [10:40:05]action value=close_receipt [10:40:05]process_action close_receipt [10:40:05]cmd_close_receipt [10:40:05]MH_GetDate [10:40:05]Write to MH i2c: F0 00 00 E4 26 F9 [10:40:05]Write i2c OK [10:40:05]MH_I2C_Read... [10:40:05]Read from MH i2c: F0 [10:40:05]MH_I2C_Read... [10:40:05]Read from MH i2c: F0 09 00 [10:40:05]MH_I2C_Read... [10:40:05]Read from MH i2c: F0 09 00 E4 26 00 89 BB 20 67 22 05 6E 64 C6 [10:40:05]GetLastDocTimeStamp 1730198358 [10:40:05]current date 1730198409 [10:40:05]FM_GetShiftState [10:40:05]SAM_PROTO_GetShiftState [10:40:05]wFMCommunicate request_size=4 [10:40:05]MH_SAM_APDU [10:40:05]CAPDU: 80 13 01 00 [10:40:05]Write to MH i2c: E2 08 00 E5 26 80 13 01 00 00 00 00 00 88 [10:40:05]Write i2c OK [10:40:05]MH_I2C_Read... [10:40:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:05]Read from MH i2c: E2 [10:40:05]MH_I2C_Read... [10:40:05]Read from MH i2c: E2 0E 00 [10:40:05]MH_I2C_Read... [10:40:05]Read from MH i2c: E2 0E 00 E5 26 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 8E [10:40:05]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [10:40:05]wFMCommunicate OK [10:40:05]SAM_PROTO_GetShiftState done [10:40:05]FM_GetShiftState done [10:40:05]opened in 1730161990 [10:40:05]opened+sec_in_day 1730248390 [10:40:05]quantity*price = 70044 [10:40:05]sum+1 = 70045 [10:40:05]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 СÐО: Общий режим Чек 48 29.10.2024 10:40 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192842 ФПД: 248967406124446 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T104009&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192842&fm=248967406124446&tin=02508201610067®Number=0000000000091776&sum=70000 [10:40:06]StoreToDocumentArchive [10:40:06]shift 544 fd 192842 [10:40:06]save to /storage/0544/doc_00192842 [10:40:06]save last doc name /storage/0544/doc_00192842 to /storage/kkm_last_doc_name [10:40:06]save OK [10:40:06]Clear old archive folders... [10:40:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:40:06]tlvbuf is 00F94430 [10:40:06]SAM_PROTO_ClearQueue [10:40:06]wFMCommunicate request_size=4 [10:40:06]MH_SAM_APDU [10:40:06]CAPDU: 80 09 00 00 [10:40:06]Write to MH i2c: E2 08 00 F2 26 80 09 00 00 00 00 00 00 8A [10:40:06]Write i2c OK [10:40:06]MH_I2C_Read... [10:40:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:40:06]Read from MH i2c: E2 [10:40:06]MH_I2C_Read... [10:40:06]Read from MH i2c: E2 03 00 [10:40:06]MH_I2C_Read... [10:40:06]Read from MH i2c: E2 03 00 F2 26 00 90 00 8C [10:40:06]RAPDU: 90 00 [10:40:06]wFMCommunicate OK [10:40:06]SAM_PROTO_ClearQueue done [10:40:06]KKMCreateOFDPacket [10:40:06]OFDProtocolAddRootSTLVToBuf [10:40:06]FM_MakeSignedData [10:40:06]FM_MakeSignedData [10:40:06]SAM_PROTO_SignData [10:40:06]wFMCommunicate request_size=4 [10:40:06]MH_SAM_APDU [10:40:06]CAPDU: 80 0D 01 02 [10:40:06]Write to MH i2c: E2 08 00 F3 26 80 0D 01 02 00 00 00 00 92 [10:40:06]Write i2c OK [10:40:06]MH_I2C_Read... [10:40:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:40:06]Read from MH i2c: E2 [10:40:06]MH_I2C_Read... [10:40:06]Read from MH i2c: E2 03 00 [10:40:06]MH_I2C_Read... [10:40:06]Read from MH i2c: E2 03 00 F3 26 00 90 00 8D [10:40:06]RAPDU: 90 00 [10:40:06]wFMCommunicate OK [10:40:06]wFMCommunicate request_size=255 [10:40:06]MH_SAM_APDU [10:40: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 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 30 00 00 00 F4 03 04 00 89 BB 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 E2 [10:40:06]Write to MH i2c: E2 02 01 F4 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 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 30 00 00 00 F4 03 04 00 89 BB 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 E2 00 00 72 [10:40:06]Write i2c OK [10:40:06]MH_I2C_Read... [10:40:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:06]Read from MH i2c: E2 [10:40:06]MH_I2C_Read... [10:40:06]Read from MH i2c: E2 03 00 [10:40:06]MH_I2C_Read... [10:40:06]Read from MH i2c: E2 03 00 F4 26 00 90 00 8E [10:40:06]RAPDU: 90 00 [10:40:06]wFMCommunicate OK [10:40:06]wFMCommunicate request_size=10 [10:40:06]MH_SAM_APDU [10:40:06]CAPDU: 80 0D 02 02 05 6F 3D CD 7D 9E [10:40:06]Write to MH i2c: E2 0D 00 F5 26 80 0D 02 02 05 00 6F 3D CD 7D 9E 00 00 33 [10:40:06]Write i2c OK [10:40:06]MH_I2C_Read... [10:40:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:06]Read from MH i2c: E2 [10:40:06]MH_I2C_Read... [10:40:06]Read from MH i2c: E2 03 00 [10:40:06]MH_I2C_Read... [10:40:06]Read from MH i2c: E2 03 00 F5 26 00 90 00 8F [10:40:06]RAPDU: 90 00 [10:40:06]wFMCommunicate OK [10:40:06]wFMCommunicate request_size=4 [10:40:06]MH_SAM_APDU [10:40:06]CAPDU: 80 0D 03 02 [10:40:06]Write to MH i2c: E2 08 00 F6 26 80 0D 03 02 00 00 00 00 97 [10:40:06]Write i2c OK [10:40:06]MH_I2C_Read... [10:40:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:40:06]Read from MH i2c: E2 [10:40:06]MH_I2C_Read... [10:40:06]Read from MH i2c: E2 0B 00 [10:40:06]MH_I2C_Read... [10:40:06]Read from MH i2c: E2 0B 00 F6 26 00 EB 5E 44 CA 25 24 5C C1 90 00 55 [10:40:06]RAPDU: EB 5E 44 CA 25 24 5C C1 90 00 [10:40:06]wFMCommunicate OK [10:40:06]SAM_PROTO_SignData done [10:40:06]FM_MakeSignedData done [10:40:06]CreateOFDProtocolMessage [10:40:06]wFMCommunicate request_size=4 [10:40:06]MH_SAM_APDU [10:40:06]CAPDU: 80 11 00 00 [10:40:06]Write to MH i2c: E2 08 00 F7 26 80 11 00 00 00 00 00 00 97 [10:40:06]Write i2c OK [10:40:06]MH_I2C_Read... [10:40:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:06]Read from MH i2c: E2 [10:40:06]MH_I2C_Read... [10:40:06]Read from MH i2c: E2 17 00 [10:40:06]MH_I2C_Read... [10:40:06]Read from MH i2c: E2 17 00 F7 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EA [10:40: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:40:06]wFMCommunicate OK [10:40:06]CreateOFDProtocolMessage done [10:40:06]OFDSenderStorePacket 192842 [10:40:06]StoreOFDPacket docnum=192842 [10:40: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 3F 7C 07 01 3C 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 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 30 00 00 00 F4 03 04 00 89 BB 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 E2 6F 3D CD 7D 9E EB 5E 44 CA 25 24 5C C1 [10:40:06]CheckFolder [10:40:06]dirname=/storage/ofd_packets [10:40:06]CheckFolder done [10:40:06]ProducePacketName [10:40:06]name=ofd_packets/00192842 [10:40:06]NVStorageSaveData ofd_packets/00192842 [10:40:06]File name is /storage/ofd_packets/00192842 [10:40:06]Write 301 bytes [10:40:06]NVStorageSaveData done [10:40:06]OFDSenderStorePacket done [10:40:06]KKMCreateOFDPacket done [10:40:06]NVStorageSaveData kkm_last_timestamp [10:40:06]File name is /storage/kkm_last_timestamp [10:40:06]Write 4 bytes [10:40:06]NVStorageSaveData done [10:40:06]ExternCall_PrintAddStr [10:40:06]wPrintStart [10:40:06]Write to MH i2c: 01 00 00 F8 26 1E [10:40:06]Write i2c OK [10:40:06]MH_I2C_Read... [10:40:06]Read from MH i2c: 01 [10:40:06]MH_I2C_Read... [10:40:06]Read from MH i2c: 01 07 00 [10:40:06]MH_I2C_Read... [10:40:06]Read from MH i2c: 01 07 00 F8 26 00 00 00 00 00 FF 0F 33 [10:40:06]RasterBufferAndPrint [10:40:06]line Счет N : (1)32171 [10:40:06]line ИÐÐ: 02508201610067 [10:40:06]line Контрольно-КаÑÑовый Чек [10:40:06]line ПРОДÐЖР[10:40:06]line ТРК (МРК, ГÐК) : 12 [10:40:06]line Товар: 2710124130 [10:40:06]line Ðи-92-К-5 [10:40:06]line 10.470 * 66.90 [10:40:06]line = 700.44 [10:40:06]line ÐДС 12% ÐСП 1% [10:40:06]line > о реализуемом товаре [10:40:06]line ОКРУГЛЕÐИЕ: -0.44 [10:40:06]line ИТОГО: 700.00 [10:40:06]line ВнеÑено: 700.00 [10:40:06]line СДÐЧÐ: 0.00 [10:40:06]line ÐСП 1% : 6.20 [10:40:06]line ÐДС 12% : 74.38 [10:40:06]line Ðаличными: 700.00 [10:40:06]line Безнал.: 0.00 [10:40:06]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [10:40:06]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [10:40:06]line СÐО: Общий режим [10:40:06]line Чек 48 29.10.2024 10:40 [10:40:06]line Смена: 544 ФФД: 1.0 [10:40:06]line ЗÐМ: 0300000110 [10:40:06]line РÐМ: 0000000000091776 [10:40:06]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:40:06]line ФМ: 0000000000871754 [10:40:06]line ФД: 192842 [10:40:06]line ФПД: 248967406124446 [10:40:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T104009&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192842&fm=248967406124446&tin=02508201610067®Number=0000000000091776&sum=70000 [10:40:07]OFD Sender: Processing packet 192842 [packets to send 75, broken 74] [10:40:07]ProducePacketName [10:40:07]name=ofd_packets/00192842 [10:40:07]OFD Sender: To server: ‡•öpG, [10:40:07]CommunicateWithHost lk.salyk.kg:30040 [10:40:07]ConnectInit lk.salyk.kg [10:40:07]written 0, free lines is 4095 [10:40:07]Connected sock=10 [10:40: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 3F 7C 07 01 3C 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 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 30 00 00 00 F4 03 04 00 89 BB 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 E2 6F 3D CD 7D 9E EB 5E 44 CA 25 24 5C C1 [10:40: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 D6 14 47 00 EA 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 4A F1 02 00 F4 03 04 00 4A 60 20 67 B6 04 01 00 00 63 CA B9 B7 62 9F 35 15 [10:40:07]CommunicateWithHost err = 0 [10:40:07]CheckOFDResponse [10:40:07]1017 (14) - 77093643461234 [10:40:07]1041 (16) - 0000000000871754 [10:40:07]1040 (4) - 192842 [10:40:07]1012 (4) - 29.10.2024 04:10 [10:40:07]1206 (1) - 0 [10:40:07]OFD Sender: Remove packet 192842 [10:40:07]ProducePacketName [10:40:07]name=ofd_packets/00192842 [10:40:07]NVStorageDeleteData [10:40:07]Write to MH i2c: 01 00 00 23 27 4A [10:40:07]Write i2c OK [10:40:07]MH_I2C_Read... [10:40:07]Read from MH i2c: 01 [10:40:07]MH_I2C_Read... [10:40:07]Read from MH i2c: 01 07 00 [10:40:07]MH_I2C_Read... [10:40:07]Read from MH i2c: 01 07 00 23 27 00 00 00 00 00 B8 0C 15 [10:40:07]RasterBufferAndPrint [10:40:07]line [10:40:07]line [10:40:07]line [10:40:07]line [10:40:07]line [10:40:07]written 0, free lines is 3263 [10:40:07]MH_Cut [10:40:07]Write to MH i2c: D1 01 00 2A 27 01 23 [10:40:07]Write i2c OK [10:40:07]MH_I2C_Read... [10:40:07]Read from MH i2c: D1 [10:40:07]MH_I2C_Read... [10:40:07]Read from MH i2c: D1 01 00 [10:40:07]MH_I2C_Read... [10:40:07]Read from MH i2c: D1 01 00 2A 27 00 22 [10:40:07]Write to MH i2c: 01 00 00 2B 27 52 [10:40:07]Write i2c OK [10:40:07]MH_I2C_Read... [10:40:08]OFD Sender: No OFD packet to send [10:40:08]*** Cut start [10:40:08]*** Partial cut [10:40:08]*** CUTSNS_PIN = 1 [10:40:08]*** CUTSNS_PIN = 0 [10:40:08]*** Brake cut motor [10:40:09]Read from MH i2c: 01 [10:40:09]MH_I2C_Read... [10:40:09]*** Stop cut motor [10:40:09]*** Cut end [10:40:09]Read from MH i2c: 01 07 00 [10:40:09]MH_I2C_Read... [10:40:09]Read from MH i2c: 01 07 00 2B 27 00 00 00 00 00 FF 0F 67 [10:40:09]process_action close_receipt done [10:40:09]requested_data is exist [10:40:09]produce_requested_data [10:40:09]requested_item fm.sn is exist - process it [10:40:09]wFMCommunicate request_size=4 [10:40:09]MH_SAM_APDU [10:40:09]CAPDU: 80 11 00 00 [10:40:09]Write to MH i2c: E2 08 00 2C 27 80 11 00 00 00 00 00 00 CD [10:40:09]Write i2c OK [10:40:09]MH_I2C_Read... [10:40:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:09]Read from MH i2c: E2 [10:40:09]MH_I2C_Read... [10:40:09]Read from MH i2c: E2 17 00 [10:40:09]MH_I2C_Read... [10:40:09]Read from MH i2c: E2 17 00 2C 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 20 [10:40:09]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:09]wFMCommunicate OK [10:40:09]requested_item fd.num is exist - process it [10:40:09]SAM_PROTO_GetFieldsCounters [10:40:09]wFMCommunicate request_size=4 [10:40:09]MH_SAM_APDU [10:40:09]CAPDU: 80 13 00 00 [10:40:09]Write to MH i2c: E2 08 00 2D 27 80 13 00 00 00 00 00 00 D0 [10:40:09]Write i2c OK [10:40:09]MH_I2C_Read... [10:40:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:40:09]Read from MH i2c: E2 [10:40:09]MH_I2C_Read... [10:40:09]Read from MH i2c: E2 62 00 [10:40:09]MH_I2C_Read... [10:40:09]Read from MH i2c: E2 62 00 2D 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 4A F1 02 00 0E 04 04 00 20 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 E5 [10:40: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 4A F1 02 00 0E 04 04 00 20 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 [10:40:09]wFMCommunicate OK [10:40:09]SAM_PROTO_GetFieldsCounters done [10:40:09]requested_item shift.num is exist - process it [10:40:09]requested_item shift.opened is exist - process it [10:40:09]req_shift_opened [10:40:09]FM_GetShiftState [10:40:09]SAM_PROTO_GetShiftState [10:40:09]wFMCommunicate request_size=4 [10:40:09]MH_SAM_APDU [10:40:09]CAPDU: 80 13 01 00 [10:40:09]Write to MH i2c: E2 08 00 2E 27 80 13 01 00 00 00 00 00 D2 [10:40:09]Write i2c OK [10:40:09]MH_I2C_Read... [10:40:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:09]Read from MH i2c: E2 [10:40:09]MH_I2C_Read... [10:40:09]Read from MH i2c: E2 0E 00 [10:40:09]MH_I2C_Read... [10:40:09]Read from MH i2c: E2 0E 00 2E 27 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 D8 [10:40:09]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [10:40:09]wFMCommunicate OK [10:40:09]SAM_PROTO_GetShiftState done [10:40:09]FM_GetShiftState done [10:40:09]req_shift_opened done [10:40:09]requested_item shift.open_date is exist - process it [10:40:09]req_shift_open_date [10:40:09]req_shift_open_date done [10:40:09]produce_requested_data done [10:40:09]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192842,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [10:40:09]process_action_free close_receipt [10:40:09]json_value_free [10:40:09]json_value_free done [10:40:09]process_json_proto returns [10:40:09]Send response to host [10:40:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192842,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [10:40:09]free response buf [10:40:09]execute_script done [10:40:09]execute_script returns [10:40:09]free content buf [10:40:09]Sock 8.Close socket [10:40:09]Sock 8.Thread stoped [10:40:13]OFD Sender: No OFD packet to send [10:40:18]OFD Sender: No OFD packet to send [10:40:23]OFD Sender: No OFD packet to send [10:40:28]OFD Sender: No OFD packet to send [10:40:33]OFD Sender: No OFD packet to send [10:40:38]OFD Sender: No OFD packet to send [10:40:43]OFD Sender: No OFD packet to send [10:40:48]OFD Sender: No OFD packet to send [10:40:53]OFD Sender: No OFD packet to send [10:40:58]OFD Sender: No OFD packet to send [10:41:03]OFD Sender: No OFD packet to send [10:41:08]OFD Sender: No OFD packet to send [10:41:13]OFD Sender: No OFD packet to send [10:41:18]OFD Sender: No OFD packet to send [10:41:23]OFD Sender: No OFD packet to send [10:41:28]OFD Sender: No OFD packet to send [10:41:33]OFD Sender: No OFD packet to send [10:41:38]OFD Sender: No OFD packet to send [10:41:43]OFD Sender: No OFD packet to send [10:41:48]OFD Sender: No OFD packet to send [10:41:53]OFD Sender: No OFD packet to send [10:41:58]OFD Sender: No OFD packet to send [10:42:03]OFD Sender: No OFD packet to send [10:42:08]OFD Sender: No OFD packet to send [10:42:13]OFD Sender: No OFD packet to send [10:42:18]OFD Sender: No OFD packet to send [10:42:23]OFD Sender: No OFD packet to send [10:42:28]OFD Sender: No OFD packet to send [10:42:33]OFD Sender: No OFD packet to send [10:42:38]OFD Sender: No OFD packet to send [10:42:43]OFD Sender: No OFD packet to send [10:42:48]OFD Sender: No OFD packet to send [10:42:53]OFD Sender: No OFD packet to send [10:42:58]OFD Sender: No OFD packet to send [10:43:03]OFD Sender: No OFD packet to send [10:43:08]OFD Sender: No OFD packet to send [10:43:13]OFD Sender: No OFD packet to send [10:43:18]OFD Sender: No OFD packet to send [10:43:23]OFD Sender: No OFD packet to send [10:43:28]OFD Sender: No OFD packet to send [10:43:33]OFD Sender: No OFD packet to send [10:43:38]OFD Sender: No OFD packet to send [10:43:43]OFD Sender: No OFD packet to send [10:43:48]OFD Sender: No OFD packet to send [10:43:53]OFD Sender: No OFD packet to send [10:43:58]OFD Sender: No OFD packet to send [10:44:03]OFD Sender: No OFD packet to send [10:44:08]OFD Sender: No OFD packet to send [10:44:13]OFD Sender: No OFD packet to send [10:44:18]OFD Sender: No OFD packet to send [10:44:23]OFD Sender: No OFD packet to send [10:44:28]OFD Sender: No OFD packet to send [10:44:33]OFD Sender: No OFD packet to send [10:44:38]OFD Sender: No OFD packet to send [10:44:43]OFD Sender: No OFD packet to send [10:44:48]OFD Sender: No OFD packet to send [10:44:53]OFD Sender: No OFD packet to send [10:44:58]OFD Sender: No OFD packet to send [10:45:03]OFD Sender: No OFD packet to send [10:45:08]OFD Sender: No OFD packet to send [10:45:13]OFD Sender: No OFD packet to send [10:45:18]OFD Sender: No OFD packet to send [10:45:23]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:53]OFD Sender: No OFD packet to send [10:46:58]OFD Sender: No OFD packet to send [10:47:03]OFD Sender: No OFD packet to send [10:47:08]OFD Sender: No OFD packet to send [10:47:13]OFD Sender: No OFD packet to send [10:47:18]OFD Sender: No OFD packet to send [10:47:23]OFD Sender: No OFD packet to send [10:47:28]OFD Sender: No OFD packet to send [10:47:33]OFD Sender: No OFD packet to send [10:47:38]OFD Sender: No OFD packet to send [10:47:43]OFD Sender: No OFD packet to send [10:47:48]OFD Sender: No OFD packet to send [10:47:53]OFD Sender: No OFD packet to send [10:47:58]OFD Sender: No OFD packet to send [10:48:03]OFD Sender: No OFD packet to send [10:48:08]OFD Sender: No OFD packet to send [10:48:13]OFD Sender: No OFD packet to send [10:48:18]OFD Sender: No OFD packet to send [10:48:23]OFD Sender: No OFD packet to send [10:48:28]OFD Sender: No OFD packet to send [10:48:33]OFD Sender: No OFD packet to send [10:48:38]OFD Sender: No OFD packet to send [10:48:43]OFD Sender: No OFD packet to send [10:48:48]OFD Sender: No OFD packet to send [10:48:53]OFD Sender: No OFD packet to send [10:48:58]OFD Sender: No OFD packet to send [10:49:03]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:19]accept exits with 9 [10:49:19]New connection [10:49:19]New thread 3066658148 created [10:49:19]Thread 3066801508 joined [10:49:19]Waiting for new connection... [10:49:19] Sock 9.Parse request [10:49:19]Sock 9.Check first char [10:49:19]Sock 9.First char is OK [10:49:19]request: POST /json_proto HTTP/1.0 [10:49:19]Method: POST [10:49:19]URL: /json_proto [10:49:19]Method is POST - this is cgi request [10:49:19]url: /json_proto [10:49:19]query_string will be loaded in cgi processing [10:49:19]execute_cgi json_proto POST (null) [10:49:19]execute_cgi path=json_proto method=POST [10:49:19]POST find Content-Length [10:49:19]Host: 172.17.63.131:8080 [10:49:19]Content-Length: 676 [10:49:19]Content-Type: application/json [10:49:19] [10:49:19]POST finish read [10:49:19]Found Content-Length = 676 [10:49:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32172", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:19]execute_script... [10: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)32172", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:19]POST & json_proto [10:49:19]process_json_proto [10:49:19]json parsed OK: [10:49:19]protocol is kg_v1.0 [10:49:19]action value=close_receipt [10:49:19]process_action close_receipt [10:49:19]cmd_close_receipt [10:49:19]MH_GetDate [10:49:19]Write to MH i2c: F0 00 00 2F 27 45 [10:49:19]Write i2c OK [10:49:19]MH_I2C_Read... [10:49:19]Read from MH i2c: F0 [10:49:19]MH_I2C_Read... [10:49:19]Read from MH i2c: F0 09 00 [10:49:19]MH_I2C_Read... [10:49:19]Read from MH i2c: F0 09 00 2F 27 00 B3 BD 20 67 22 05 6E 64 3E [10:49:19]GetLastDocTimeStamp 1730198409 [10:49:19]current date 1730198963 [10:49:19]FM_GetShiftState [10:49:19]SAM_PROTO_GetShiftState [10:49:19]wFMCommunicate request_size=4 [10:49:19]MH_SAM_APDU [10:49:19]CAPDU: 80 13 01 00 [10:49:19]Write to MH i2c: E2 08 00 30 27 80 13 01 00 00 00 00 00 D4 [10:49:19]Write i2c OK [10:49:19]MH_I2C_Read... [10:49:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:19]Read from MH i2c: E2 [10:49:19]MH_I2C_Read... [10:49:19]Read from MH i2c: E2 0E 00 [10:49:19]MH_I2C_Read... [10:49:19]Read from MH i2c: E2 0E 00 30 27 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 DA [10:49:19]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [10:49:19]wFMCommunicate OK [10:49:19]SAM_PROTO_GetShiftState done [10:49:19]FM_GetShiftState done [10:49:19]opened in 1730161990 [10:49:19]opened+sec_in_day 1730248390 [10:49:19]quantity*price = 50041 [10:49:19]sum+1 = 50042 [10:49: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 СÐО: Общий режим Чек 49 29.10.2024 10:49 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192843 ФПД: 212732676337445 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T104923&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192843&fm=212732676337445&tin=02508201610067®Number=0000000000091776&sum=50000 [10:49:20]StoreToDocumentArchive [10:49:20]shift 544 fd 192843 [10:49:20]save to /storage/0544/doc_00192843 [10:49:20]save last doc name /storage/0544/doc_00192843 to /storage/kkm_last_doc_name [10:49:20]save OK [10:49:20]Clear old archive folders... [10:49:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:49:20]tlvbuf is 00FCB780 [10:49:20]SAM_PROTO_ClearQueue [10:49:20]wFMCommunicate request_size=4 [10:49:20]MH_SAM_APDU [10:49:20]CAPDU: 80 09 00 00 [10:49:20]Write to MH i2c: E2 08 00 3D 27 80 09 00 00 00 00 00 00 D6 [10:49:20]Write i2c OK [10:49:20]MH_I2C_Read... [10:49:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:49:20]Read from MH i2c: E2 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: E2 03 00 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: E2 03 00 3D 27 00 90 00 D8 [10:49:20]RAPDU: 90 00 [10:49:20]wFMCommunicate OK [10:49:20]SAM_PROTO_ClearQueue done [10:49:20]KKMCreateOFDPacket [10:49:20]OFDProtocolAddRootSTLVToBuf [10:49:20]FM_MakeSignedData [10:49:20]FM_MakeSignedData [10:49:20]SAM_PROTO_SignData [10:49:20]wFMCommunicate request_size=4 [10:49:20]MH_SAM_APDU [10:49:20]CAPDU: 80 0D 01 02 [10:49:20]Write to MH i2c: E2 08 00 3E 27 80 0D 01 02 00 00 00 00 DE [10:49:20]Write i2c OK [10:49:20]MH_I2C_Read... [10:49:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:49:20]Read from MH i2c: E2 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: E2 03 00 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: E2 03 00 3E 27 00 90 00 D9 [10:49:20]RAPDU: 90 00 [10:49:20]wFMCommunicate OK [10:49:20]wFMCommunicate request_size=255 [10:49:20]MH_SAM_APDU [10: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 B3 BD 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 C1 [10:49:20]Write to MH i2c: E2 02 01 3F 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 B3 BD 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 C1 00 00 BB [10:49:20]Write i2c OK [10:49:20]MH_I2C_Read... [10:49:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:20]Read from MH i2c: E2 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: E2 03 00 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: E2 03 00 3F 27 00 90 00 DA [10:49:20]RAPDU: 90 00 [10:49:20]wFMCommunicate OK [10:49:20]wFMCommunicate request_size=10 [10:49:20]MH_SAM_APDU [10:49:20]CAPDU: 80 0D 02 02 05 7A AF 9A EF 25 [10:49:20]Write to MH i2c: E2 0D 00 40 27 80 0D 02 02 05 00 7A AF 9A EF 25 00 00 C2 [10:49:20]Write i2c OK [10:49:20]MH_I2C_Read... [10:49:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:20]Read from MH i2c: E2 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: E2 03 00 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: E2 03 00 40 27 00 90 00 DB [10:49:20]RAPDU: 90 00 [10:49:20]wFMCommunicate OK [10:49:20]wFMCommunicate request_size=4 [10:49:20]MH_SAM_APDU [10:49:20]CAPDU: 80 0D 03 02 [10:49:20]Write to MH i2c: E2 08 00 41 27 80 0D 03 02 00 00 00 00 E3 [10:49:20]Write i2c OK [10:49:20]MH_I2C_Read... [10:49:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:49:20]Read from MH i2c: E2 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: E2 0B 00 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: E2 0B 00 41 27 00 29 7A 4E 65 5A 64 27 CA 90 00 E9 [10:49:20]RAPDU: 29 7A 4E 65 5A 64 27 CA 90 00 [10:49:20]wFMCommunicate OK [10:49:20]SAM_PROTO_SignData done [10:49:20]FM_MakeSignedData done [10:49:20]CreateOFDProtocolMessage [10:49:20]wFMCommunicate request_size=4 [10:49:20]MH_SAM_APDU [10:49:20]CAPDU: 80 11 00 00 [10:49:20]Write to MH i2c: E2 08 00 42 27 80 11 00 00 00 00 00 00 E3 [10:49:20]Write i2c OK [10:49:20]MH_I2C_Read... [10:49:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:20]Read from MH i2c: E2 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: E2 17 00 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: E2 17 00 42 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 36 [10:49:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:49:20]wFMCommunicate OK [10:49:20]CreateOFDProtocolMessage done [10:49:20]OFDSenderStorePacket 192843 [10:49:20]StoreOFDPacket docnum=192843 [10:49: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 FE 22 07 01 23 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 B3 BD 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 C1 7A AF 9A EF 25 29 7A 4E 65 5A 64 27 CA [10:49:20]CheckFolder [10:49:20]dirname=/storage/ofd_packets [10:49:20]CheckFolder done [10:49:20]ProducePacketName [10:49:20]name=ofd_packets/00192843 [10:49:20]NVStorageSaveData ofd_packets/00192843 [10:49:20]File name is /storage/ofd_packets/00192843 [10:49:20]Write 301 bytes [10:49:20]NVStorageSaveData done [10:49:20]OFDSenderStorePacket done [10:49:20]KKMCreateOFDPacket done [10:49:20]NVStorageSaveData kkm_last_timestamp [10:49:20]File name is /storage/kkm_last_timestamp [10:49:20]Write 4 bytes [10:49:20]NVStorageSaveData done [10:49:20]ExternCall_PrintAddStr [10:49:20]wPrintStart [10:49:20]Write to MH i2c: 01 00 00 43 27 6A [10:49:20]Write i2c OK [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: 01 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: 01 07 00 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: 01 07 00 43 27 00 00 00 00 00 FF 0F 7F [10:49:20]RasterBufferAndPrint [10:49:20]line Счет N : (1)32172 [10:49:20]line ИÐÐ: 02508201610067 [10:49:20]line Контрольно-КаÑÑовый Чек [10:49:20]line ПРОДÐЖР[10:49:20]line ТРК (МРК, ГÐК) : 21 [10:49:20]line Товар: 2710124130 [10:49:20]line Ðи-92-К-5 [10:49:20]line 7.480 * 66.90 [10:49:20]line = 500.41 [10:49:20]line ÐДС 12% ÐСП 1% [10:49:20]line > о реализуемом товаре [10:49:20]line ОКРУГЛЕÐИЕ: -0.41 [10:49:20]line ИТОГО: 500.00 [10:49:20]line ВнеÑено: 500.00 [10:49:20]line СДÐЧÐ: 0.00 [10:49:20]line ÐСП 1% : 4.43 [10:49:20]line ÐДС 12% : 53.14 [10:49:20]line Ðаличными: 500.00 [10:49:20]line Безнал.: 0.00 [10:49:20]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [10:49:20]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [10:49:20]line СÐО: Общий режим [10:49:20]line Чек 49 29.10.2024 10:49 [10:49:20]line Смена: 544 ФФД: 1.0 [10:49:20]line ЗÐМ: 0300000110 [10:49:20]line РÐМ: 0000000000091776 [10:49:20]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:49:20]line ФМ: 0000000000871754 [10:49:20]line ФД: 192843 [10:49:20]line ФПД: 212732676337445 [10:49:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T104923&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192843&fm=212732676337445&tin=02508201610067®Number=0000000000091776&sum=50000 [10:49:21]OFD Sender: Processing packet 192843 [packets to send 75, broken 74] [10:49:21]ProducePacketName [10:49:21]name=ofd_packets/00192843 [10:49:21]OFD Sender: To server: ‡•öpG, [10:49:21]CommunicateWithHost lk.salyk.kg:30040 [10:49:21]ConnectInit lk.salyk.kg [10:49:21]written 0, free lines is 4095 [10:49:21]Connected sock=10 [10: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 FE 22 07 01 23 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 B3 BD 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 C1 7A AF 9A EF 25 29 7A 4E 65 5A 64 27 CA [10:49: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 02 DB 47 00 F0 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 4B F1 02 00 F4 03 04 00 74 62 20 67 B6 04 01 00 00 90 DB 1B D4 42 5A A3 0C [10:49:21]CommunicateWithHost err = 0 [10:49:21]CheckOFDResponse [10:49:21]1017 (14) - 77093643461234 [10:49:21]1041 (16) - 0000000000871754 [10:49:21]1040 (4) - 192843 [10:49:21]1012 (4) - 29.10.2024 04:20 [10:49:21]1206 (1) - 0 [10:49:21]OFD Sender: Remove packet 192843 [10:49:21]ProducePacketName [10:49:21]name=ofd_packets/00192843 [10:49:21]NVStorageDeleteData [10:49:21]Write to MH i2c: 01 00 00 6E 27 95 [10:49:21]Write i2c OK [10:49:21]MH_I2C_Read... [10:49:21]Read from MH i2c: 01 [10:49:21]MH_I2C_Read... [10:49:21]Read from MH i2c: 01 07 00 [10:49:21]MH_I2C_Read... [10:49:21]Read from MH i2c: 01 07 00 6E 27 00 00 00 00 00 B8 0C 60 [10:49:21]RasterBufferAndPrint [10:49:21]line [10:49:21]line [10:49:21]line [10:49:21]line [10:49:21]line [10:49:21]written 0, free lines is 3263 [10:49:21]MH_Cut [10:49:21]Write to MH i2c: D1 01 00 75 27 01 6E [10:49:21]Write i2c OK [10:49:21]MH_I2C_Read... [10:49:21]Read from MH i2c: D1 [10:49:21]MH_I2C_Read... [10:49:21]Read from MH i2c: D1 01 00 [10:49:21]MH_I2C_Read... [10:49:21]Read from MH i2c: D1 01 00 75 27 00 6D [10:49:21]Write to MH i2c: 01 00 00 76 27 9D [10:49:21]Write i2c OK [10:49:21]MH_I2C_Read... [10:49:22]OFD Sender: No OFD packet to send [10:49:22]*** Cut start [10:49:22]*** Partial cut [10:49:22]*** CUTSNS_PIN = 1 [10:49:22]*** CUTSNS_PIN = 0 [10:49:22]*** Brake cut motor [10:49:23]Read from MH i2c: 01 [10:49:23]MH_I2C_Read... [10:49:23]*** Stop cut motor [10:49:23]*** Cut end [10:49:23]Read from MH i2c: 01 07 00 [10:49:23]MH_I2C_Read... [10:49:23]Read from MH i2c: 01 07 00 76 27 00 00 00 00 00 FF 0F B2 [10:49:23]process_action close_receipt done [10:49:23]requested_data is exist [10:49:23]produce_requested_data [10:49:23]requested_item fm.sn is exist - process it [10:49:23]wFMCommunicate request_size=4 [10:49:23]MH_SAM_APDU [10:49:23]CAPDU: 80 11 00 00 [10:49:23]Write to MH i2c: E2 08 00 77 27 80 11 00 00 00 00 00 00 18 [10:49:23]Write i2c OK [10:49:23]MH_I2C_Read... [10:49:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:23]Read from MH i2c: E2 [10:49:23]MH_I2C_Read... [10:49:23]Read from MH i2c: E2 17 00 [10:49:23]MH_I2C_Read... [10:49:23]Read from MH i2c: E2 17 00 77 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6B [10: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 [10:49:23]wFMCommunicate OK [10:49:23]requested_item fd.num is exist - process it [10:49:23]SAM_PROTO_GetFieldsCounters [10:49:23]wFMCommunicate request_size=4 [10:49:23]MH_SAM_APDU [10:49:23]CAPDU: 80 13 00 00 [10:49:23]Write to MH i2c: E2 08 00 78 27 80 13 00 00 00 00 00 00 1B [10:49:23]Write i2c OK [10:49:23]MH_I2C_Read... [10:49:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:23]Read from MH i2c: E2 [10:49:23]MH_I2C_Read... [10:49:23]Read from MH i2c: E2 62 00 [10:49:23]MH_I2C_Read... [10:49:23]Read from MH i2c: E2 62 00 78 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 4B F1 02 00 0E 04 04 00 20 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 34 [10: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 4B F1 02 00 0E 04 04 00 20 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 [10:49:23]wFMCommunicate OK [10:49:23]SAM_PROTO_GetFieldsCounters done [10:49:23]requested_item shift.num is exist - process it [10:49:23]requested_item shift.opened is exist - process it [10:49:23]req_shift_opened [10:49:23]FM_GetShiftState [10:49:23]SAM_PROTO_GetShiftState [10:49:23]wFMCommunicate request_size=4 [10:49:23]MH_SAM_APDU [10:49:23]CAPDU: 80 13 01 00 [10:49:23]Write to MH i2c: E2 08 00 79 27 80 13 01 00 00 00 00 00 1D [10:49:23]Write i2c OK [10:49:23]MH_I2C_Read... [10:49:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:23]Read from MH i2c: E2 [10:49:23]MH_I2C_Read... [10:49:23]Read from MH i2c: E2 0E 00 [10:49:23]MH_I2C_Read... [10:49:23]Read from MH i2c: E2 0E 00 79 27 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 23 [10:49:23]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [10:49:23]wFMCommunicate OK [10:49:23]SAM_PROTO_GetShiftState done [10:49:23]FM_GetShiftState done [10:49:23]req_shift_opened done [10:49:23]requested_item shift.open_date is exist - process it [10:49:23]req_shift_open_date [10:49:23]req_shift_open_date done [10:49:23]produce_requested_data done [10:49:23]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192843,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [10:49:23]process_action_free close_receipt [10:49:23]json_value_free [10:49:23]json_value_free done [10:49:23]process_json_proto returns [10:49:23]Send response to host [10:49:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192843,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [10:49:23]free response buf [10:49:23]execute_script done [10:49:23]execute_script returns [10:49:23]free content buf [10:49:23]Sock 9.Close socket [10:49:23]Sock 9.Thread stoped [10:49:27]OFD Sender: No OFD packet to send [10:49:32]OFD Sender: No OFD packet to send [10:49:37]OFD Sender: No OFD packet to send [10:49:42]OFD Sender: No OFD packet to send [10:49:47]OFD Sender: No OFD packet to send [10:49:52]OFD Sender: No OFD packet to send [10:49:57]OFD Sender: No OFD packet to send [10:50:02]OFD Sender: No OFD packet to send [10:50:07]OFD Sender: No OFD packet to send [10:50:12]OFD Sender: No OFD packet to send [10:50:17]OFD Sender: No OFD packet to send [10:50:22]OFD Sender: No OFD packet to send [10:50:27]OFD Sender: No OFD packet to send [10:50:32]OFD Sender: No OFD packet to send [10:50:37]OFD Sender: No OFD packet to send [10:50:42]OFD Sender: No OFD packet to send [10:50:47]OFD Sender: No OFD packet to send [10:50:52]OFD Sender: No OFD packet to send [10:50:57]OFD Sender: No OFD packet to send [10:51:02]OFD Sender: No OFD packet to send [10:51:07]OFD Sender: No OFD packet to send [10:51:12]OFD Sender: No OFD packet to send [10:51:17]OFD Sender: No OFD packet to send [10:51:22]OFD Sender: No OFD packet to send [10:51:27]OFD Sender: No OFD packet to send [10:51:32]OFD Sender: No OFD packet to send [10:51:37]OFD Sender: No OFD packet to send [10:51:42]OFD Sender: No OFD packet to send [10:51:47]OFD Sender: No OFD packet to send [10:51:52]OFD Sender: No OFD packet to send [10:51:57]OFD Sender: No OFD packet to send [10:52:02]OFD Sender: No OFD packet to send [10:52:07]OFD Sender: No OFD packet to send [10:52:12]OFD Sender: No OFD packet to send [10:52:17]OFD Sender: No OFD packet to send [10:52:22]OFD Sender: No OFD packet to send [10:52:27]OFD Sender: No OFD packet to send [10:52:32]OFD Sender: No OFD packet to send [10:52:37]OFD Sender: No OFD packet to send [10:52:42]OFD Sender: No OFD packet to send [10:52:47]OFD Sender: No OFD packet to send [10:52:51]accept exits with 8 [10:52:51]New connection [10:52:51]New thread 3066801508 created [10:52:51]Thread 3066658148 joined [10:52:51]Waiting for new connection... [10:52:51] Sock 8.Parse request [10:52:51]Sock 8.Check first char [10:52:51]Sock 8.First char is OK [10:52:51]request: POST /json_proto HTTP/1.0 [10:52:51]Method: POST [10:52:51]URL: /json_proto [10:52:51]Method is POST - this is cgi request [10:52:51]url: /json_proto [10:52:51]query_string will be loaded in cgi processing [10:52:51]execute_cgi json_proto POST (null) [10:52:51]execute_cgi path=json_proto method=POST [10:52:51]POST find Content-Length [10:52:51]Host: 172.17.63.131:8080 [10:52:51]Content-Length: 681 [10:52:51]Content-Type: application/json [10:52:51] [10:52:51]POST finish read [10:52:51]Found Content-Length = 681 [10:52:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 19.440, "sum" : 1300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:51]execute_script... [10:52:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 19.440, "sum" : 1300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:51]POST & json_proto [10:52:51]process_json_proto [10:52:51]json parsed OK: [10:52:51]protocol is kg_v1.0 [10:52:51]action value=close_receipt [10:52:51]process_action close_receipt [10:52:51]cmd_close_receipt [10:52:51]MH_GetDate [10:52:51]Write to MH i2c: F0 00 00 7A 27 90 [10:52:51]Write i2c OK [10:52:51]MH_I2C_Read... [10:52:51]Read from MH i2c: F0 [10:52:51]MH_I2C_Read... [10:52:51]Read from MH i2c: F0 09 00 [10:52:51]MH_I2C_Read... [10:52:51]Read from MH i2c: F0 09 00 7A 27 00 87 BE 20 67 22 05 6E 64 5E [10:52:51]GetLastDocTimeStamp 1730198963 [10:52:51]current date 1730199175 [10:52:51]FM_GetShiftState [10:52:51]SAM_PROTO_GetShiftState [10:52:51]wFMCommunicate request_size=4 [10:52:51]MH_SAM_APDU [10:52:51]CAPDU: 80 13 01 00 [10:52:51]Write to MH i2c: E2 08 00 7B 27 80 13 01 00 00 00 00 00 1F [10:52:51]Write i2c OK [10:52:51]MH_I2C_Read... [10:52:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:51]Read from MH i2c: E2 [10:52:51]MH_I2C_Read... [10:52:51]Read from MH i2c: E2 0E 00 [10:52:51]MH_I2C_Read... [10:52:51]Read from MH i2c: E2 0E 00 7B 27 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 25 [10:52:51]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [10:52:51]wFMCommunicate OK [10:52:51]SAM_PROTO_GetShiftState done [10:52:51]FM_GetShiftState done [10:52:51]opened in 1730161990 [10:52:51]opened+sec_in_day 1730248390 [10:52:51]quantity*price = 130053 [10:52:51]sum+1 = 130055 [10:52:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.54 ИТОГО: 1300.00 ВнеÑено: 1300.00 СДÐЧÐ: 0.00 ÐСП 1% : 11.51 ÐДС 12% : 138.11 Ðаличными: 1300.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 170 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 СÐО: Общий режим Чек 50 29.10.2024 10:52 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192844 ФПД: 163012608836003 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T105255&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192844&fm=163012608836003&tin=02508201610067®Number=0000000000091776&sum=130000 [10:52:52]StoreToDocumentArchive [10:52:52]shift 544 fd 192844 [10:52:52]save to /storage/0544/doc_00192844 [10:52:52]save last doc name /storage/0544/doc_00192844 to /storage/kkm_last_doc_name [10:52:52]save OK [10:52:52]Clear old archive folders... [10:52:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:52:52]tlvbuf is 00FB8350 [10:52:52]SAM_PROTO_ClearQueue [10:52:52]wFMCommunicate request_size=4 [10:52:52]MH_SAM_APDU [10:52:52]CAPDU: 80 09 00 00 [10:52:52]Write to MH i2c: E2 08 00 88 27 80 09 00 00 00 00 00 00 21 [10:52:52]Write i2c OK [10:52:52]MH_I2C_Read... [10:52:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:52:52]Read from MH i2c: E2 [10:52:52]MH_I2C_Read... [10:52:52]Read from MH i2c: E2 03 00 [10:52:52]MH_I2C_Read... [10:52:52]Read from MH i2c: E2 03 00 88 27 00 90 00 23 [10:52:52]RAPDU: 90 00 [10:52:52]wFMCommunicate OK [10:52:52]SAM_PROTO_ClearQueue done [10:52:52]KKMCreateOFDPacket [10:52:52]OFDProtocolAddRootSTLVToBuf [10:52:52]FM_MakeSignedData [10:52:52]FM_MakeSignedData [10:52:52]SAM_PROTO_SignData [10:52:52]wFMCommunicate request_size=4 [10:52:52]MH_SAM_APDU [10:52:52]CAPDU: 80 0D 01 02 [10:52:52]Write to MH i2c: E2 08 00 89 27 80 0D 01 02 00 00 00 00 29 [10:52:52]Write i2c OK [10:52:52]MH_I2C_Read... [10:52:52]OFD Sender: No OFD packet to send [10:52:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:52:52]Read from MH i2c: E2 [10:52:52]MH_I2C_Read... [10:52:52]Read from MH i2c: E2 03 00 [10:52:52]MH_I2C_Read... [10:52:52]Read from MH i2c: E2 03 00 89 27 00 90 00 24 [10:52:52]RAPDU: 90 00 [10:52:52]wFMCommunicate OK [10:52:52]wFMCommunicate request_size=255 [10:52:52]MH_SAM_APDU [10:52: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 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 87 BE 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 94 [10:52:52]Write to MH i2c: E2 02 01 8A 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 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 87 BE 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 94 00 00 E8 [10:52:52]Write i2c OK [10:52:52]MH_I2C_Read... [10:52:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:52]Read from MH i2c: E2 [10:52:52]MH_I2C_Read... [10:52:52]Read from MH i2c: E2 03 00 [10:52:52]MH_I2C_Read... [10:52:52]Read from MH i2c: E2 03 00 8A 27 00 90 00 25 [10:52:52]RAPDU: 90 00 [10:52:52]wFMCommunicate OK [10:52:52]wFMCommunicate request_size=10 [10:52:52]MH_SAM_APDU [10:52:52]CAPDU: 80 0D 02 02 05 42 54 A4 C1 A3 [10:52:52]Write to MH i2c: E2 0D 00 8B 27 80 0D 02 02 05 00 42 54 A4 C1 A3 00 00 D4 [10:52:52]Write i2c OK [10:52:52]MH_I2C_Read... [10:52:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:52]Read from MH i2c: E2 [10:52:52]MH_I2C_Read... [10:52:52]Read from MH i2c: E2 03 00 [10:52:52]MH_I2C_Read... [10:52:52]Read from MH i2c: E2 03 00 8B 27 00 90 00 26 [10:52:52]RAPDU: 90 00 [10:52:52]wFMCommunicate OK [10:52:52]wFMCommunicate request_size=4 [10:52:52]MH_SAM_APDU [10:52:52]CAPDU: 80 0D 03 02 [10:52:52]Write to MH i2c: E2 08 00 8C 27 80 0D 03 02 00 00 00 00 2E [10:52:52]Write i2c OK [10:52:52]MH_I2C_Read... [10:52:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:52:52]Read from MH i2c: E2 [10:52:52]MH_I2C_Read... [10:52:52]Read from MH i2c: E2 0B 00 [10:52:52]MH_I2C_Read... [10:52:52]Read from MH i2c: E2 0B 00 8C 27 00 DB 47 71 56 5B 4A 10 0B 90 00 D8 [10:52:52]RAPDU: DB 47 71 56 5B 4A 10 0B 90 00 [10:52:52]wFMCommunicate OK [10:52:52]SAM_PROTO_SignData done [10:52:52]FM_MakeSignedData done [10:52:52]CreateOFDProtocolMessage [10:52:52]wFMCommunicate request_size=4 [10:52:52]MH_SAM_APDU [10:52:52]CAPDU: 80 11 00 00 [10:52:52]Write to MH i2c: E2 08 00 8D 27 80 11 00 00 00 00 00 00 2E [10:52:52]Write i2c OK [10:52:52]MH_I2C_Read... [10:52:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:52]Read from MH i2c: E2 [10:52:52]MH_I2C_Read... [10:52:52]Read from MH i2c: E2 17 00 [10:52:52]MH_I2C_Read... [10:52:52]Read from MH i2c: E2 17 00 8D 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 81 [10:52:52]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:52]wFMCommunicate OK [10:52:52]CreateOFDProtocolMessage done [10:52:52]OFDSenderStorePacket 192844 [10:52:52]StoreOFDPacket docnum=192844 [10:52: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 EB 6D 07 01 BC B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 87 BE 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 94 42 54 A4 C1 A3 DB 47 71 56 5B 4A 10 0B [10:52:52]CheckFolder [10:52:52]dirname=/storage/ofd_packets [10:52:52]CheckFolder done [10:52:52]ProducePacketName [10:52:52]name=ofd_packets/00192844 [10:52:52]NVStorageSaveData ofd_packets/00192844 [10:52:52]File name is /storage/ofd_packets/00192844 [10:52:52]Write 301 bytes [10:52:52]NVStorageSaveData done [10:52:52]OFDSenderStorePacket done [10:52:52]KKMCreateOFDPacket done [10:52:52]NVStorageSaveData kkm_last_timestamp [10:52:52]File name is /storage/kkm_last_timestamp [10:52:52]Write 4 bytes [10:52:52]NVStorageSaveData done [10:52:52]ExternCall_PrintAddStr [10:52:52]wPrintStart [10:52:52]Write to MH i2c: 01 00 00 8E 27 B5 [10:52:52]Write i2c OK [10:52:52]MH_I2C_Read... [10:52:52]Read from MH i2c: 01 [10:52:52]MH_I2C_Read... [10:52:52]Read from MH i2c: 01 07 00 [10:52:52]MH_I2C_Read... [10:52:52]Read from MH i2c: 01 07 00 8E 27 00 00 00 00 00 FF 0F CA [10:52:52]RasterBufferAndPrint [10:52:52]line Счет N : (1)32173 [10:52:52]line ИÐÐ: 02508201610067 [10:52:52]line Контрольно-КаÑÑовый Чек [10:52:52]line ПРОДÐЖР[10:52:52]line ТРК (МРК, ГÐК) : 21 [10:52:52]line Товар: 2710124130 [10:52:52]line Ðи-92-К-5 [10:52:52]line 19.440 * 66.90 [10:52:52]line = 1300.54 [10:52:52]line ÐДС 12% ÐСП 1% [10:52:52]line > о реализуемом товаре [10:52:52]line ОКРУГЛЕÐИЕ: -0.54 [10:52:52]line ИТОГО: 1300.00 [10:52:52]line ВнеÑено: 1300.00 [10:52:52]line СДÐЧÐ: 0.00 [10:52:52]line ÐСП 1% : 11.51 [10:52:52]line ÐДС 12% : 138.11 [10:52:52]line Ðаличными: 1300.00 [10:52:52]line Безнал.: 0.00 [10:52:52]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [10:52:52]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [10:52:52]line СÐО: Общий режим [10:52:52]line Чек 50 29.10.2024 10:52 [10:52:52]line Смена: 544 ФФД: 1.0 [10:52:52]line ЗÐМ: 0300000110 [10:52:52]line РÐМ: 0000000000091776 [10:52:52]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:52:52]line ФМ: 0000000000871754 [10:52:52]line ФД: 192844 [10:52:52]line ФПД: 163012608836003 [10:52:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T105255&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192844&fm=163012608836003&tin=02508201610067®Number=0000000000091776&sum=130000 [10:52:53]OFD Sender: Processing packet 192844 [packets to send 75, broken 74] [10:52:53]ProducePacketName [10:52:53]name=ofd_packets/00192844 [10:52:53]OFD Sender: To server: ‡•öpG, [10:52:53]CommunicateWithHost lk.salyk.kg:30040 [10:52:53]ConnectInit lk.salyk.kg [10:52:53]written 0, free lines is 4095 [10:52:53]Connected sock=9 [10:52:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EB 6D 07 01 BC B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 87 BE 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 94 42 54 A4 C1 A3 DB 47 71 56 5B 4A 10 0B [10:52: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 C1 F3 47 00 75 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4C F1 02 00 F4 03 04 00 48 63 20 67 B6 04 01 00 00 6D 5A 19 29 A7 37 27 A5 [10:52:53]CommunicateWithHost err = 0 [10:52:53]CheckOFDResponse [10:52:53]1017 (14) - 77093643461234 [10:52:53]1041 (16) - 0000000000871754 [10:52:53]1040 (4) - 192844 [10:52:53]1012 (4) - 29.10.2024 04:23 [10:52:53]1206 (1) - 0 [10:52:53]OFD Sender: Remove packet 192844 [10:52:53]ProducePacketName [10:52:53]name=ofd_packets/00192844 [10:52:53]NVStorageDeleteData [10:52:53]Write to MH i2c: 01 00 00 B9 27 E0 [10:52:53]Write i2c OK [10:52:53]MH_I2C_Read... [10:52:53]Read from MH i2c: 01 [10:52:53]MH_I2C_Read... [10:52:53]Read from MH i2c: 01 07 00 [10:52:53]MH_I2C_Read... [10:52:53]Read from MH i2c: 01 07 00 B9 27 00 00 00 00 00 B6 0C A9 [10:52:53]RasterBufferAndPrint [10:52:53]line [10:52:53]line [10:52:53]line [10:52:53]line [10:52:53]line [10:52:53]written 0, free lines is 3260 [10:52:53]MH_Cut [10:52:53]Write to MH i2c: D1 01 00 C0 27 01 B9 [10:52:53]Write i2c OK [10:52:53]MH_I2C_Read... [10:52:53]Read from MH i2c: D1 [10:52:53]MH_I2C_Read... [10:52:53]Read from MH i2c: D1 01 00 [10:52:53]MH_I2C_Read... [10:52:53]Read from MH i2c: D1 01 00 C0 27 00 B8 [10:52:53]Write to MH i2c: 01 00 00 C1 27 E8 [10:52:53]Write i2c OK [10:52:53]MH_I2C_Read... [10:52:53]OFD Sender: No OFD packet to send [10:52:54]*** Cut start [10:52:54]*** Partial cut [10:52:54]*** CUTSNS_PIN = 1 [10:52:54]*** CUTSNS_PIN = 0 [10:52:54]*** Brake cut motor [10:52:54]Read from MH i2c: 01 [10:52:54]MH_I2C_Read... [10:52:54]*** Stop cut motor [10:52:54]*** Cut end [10:52:54]Read from MH i2c: 01 07 00 [10:52:54]MH_I2C_Read... [10:52:54]Read from MH i2c: 01 07 00 C1 27 00 00 00 00 00 FF 0F FD [10:52:54]process_action close_receipt done [10:52:54]requested_data is exist [10:52:54]produce_requested_data [10:52:54]requested_item fm.sn is exist - process it [10:52:54]wFMCommunicate request_size=4 [10:52:54]MH_SAM_APDU [10:52:54]CAPDU: 80 11 00 00 [10:52:54]Write to MH i2c: E2 08 00 C2 27 80 11 00 00 00 00 00 00 63 [10:52:54]Write i2c OK [10:52:54]MH_I2C_Read... [10:52:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:55]Read from MH i2c: E2 [10:52:55]MH_I2C_Read... [10:52:55]Read from MH i2c: E2 17 00 [10:52:55]MH_I2C_Read... [10:52:55]Read from MH i2c: E2 17 00 C2 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B6 [10:52:55]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:55]wFMCommunicate OK [10:52:55]requested_item fd.num is exist - process it [10:52:55]SAM_PROTO_GetFieldsCounters [10:52:55]wFMCommunicate request_size=4 [10:52:55]MH_SAM_APDU [10:52:55]CAPDU: 80 13 00 00 [10:52:55]Write to MH i2c: E2 08 00 C3 27 80 13 00 00 00 00 00 00 66 [10:52:55]Write i2c OK [10:52:55]MH_I2C_Read... [10:52:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:52:55]Read from MH i2c: E2 [10:52:55]MH_I2C_Read... [10:52:55]Read from MH i2c: E2 62 00 [10:52:55]MH_I2C_Read... [10:52:55]Read from MH i2c: E2 62 00 C3 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 4C F1 02 00 0E 04 04 00 20 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 83 [10:52:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 F1 02 00 0E 04 04 00 20 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 [10:52:55]wFMCommunicate OK [10:52:55]SAM_PROTO_GetFieldsCounters done [10:52:55]requested_item shift.num is exist - process it [10:52:55]requested_item shift.opened is exist - process it [10:52:55]req_shift_opened [10:52:55]FM_GetShiftState [10:52:55]SAM_PROTO_GetShiftState [10:52:55]wFMCommunicate request_size=4 [10:52:55]MH_SAM_APDU [10:52:55]CAPDU: 80 13 01 00 [10:52:55]Write to MH i2c: E2 08 00 C4 27 80 13 01 00 00 00 00 00 68 [10:52:55]Write i2c OK [10:52:55]MH_I2C_Read... [10:52:55]Read from MH i2c: E2 [10:52:55]MH_I2C_Read... [10:52:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:55]Read from MH i2c: E2 0E 00 [10:52:55]MH_I2C_Read... [10:52:55]Read from MH i2c: E2 0E 00 C4 27 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 6E [10:52:55]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [10:52:55]wFMCommunicate OK [10:52:55]SAM_PROTO_GetShiftState done [10:52:55]FM_GetShiftState done [10:52:55]req_shift_opened done [10:52:55]requested_item shift.open_date is exist - process it [10:52:55]req_shift_open_date [10:52:55]req_shift_open_date done [10:52:55]produce_requested_data done [10:52:55]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192844,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [10:52:55]process_action_free close_receipt [10:52:55]json_value_free [10:52:55]json_value_free done [10:52:55]process_json_proto returns [10:52:55]Send response to host [10:52:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192844,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [10:52:55]free response buf [10:52:55]execute_script done [10:52:55]execute_script returns [10:52:55]free content buf [10:52:55]Sock 8.Close socket [10:52:55]Sock 8.Thread stoped [10:52:58]OFD Sender: No OFD packet to send [10:53:03]OFD Sender: No OFD packet to send [10:53:08]OFD Sender: No OFD packet to send [10:53:13]OFD Sender: No OFD packet to send [10:53:18]OFD Sender: No OFD packet to send [10:53:23]OFD Sender: No OFD packet to send [10:53:28]OFD Sender: No OFD packet to send [10:53:33]OFD Sender: No OFD packet to send [10:53:38]OFD Sender: No OFD packet to send [10:53:43]OFD Sender: No OFD packet to send [10:53:48]OFD Sender: No OFD packet to send [10:53:53]OFD Sender: No OFD packet to send [10:53:58]OFD Sender: No OFD packet to send [10:54:03]OFD Sender: No OFD packet to send [10:54:08]OFD Sender: No OFD packet to send [10:54:09]accept exits with 10 [10:54:09]New connection [10:54:09]New thread 3066658148 created [10:54:09]Thread 3066801508 joined [10:54:09]Waiting for new connection... [10:54:09] Sock 10.Parse request [10:54:09]Sock 10.Check first char [10:54:09]Sock 10.First char is OK [10:54:09]request: POST /json_proto HTTP/1.0 [10:54:09]Method: POST [10:54:09]URL: /json_proto [10:54:09]Method is POST - this is cgi request [10:54:09]url: /json_proto [10:54:09]query_string will be loaded in cgi processing [10:54:09]execute_cgi json_proto POST (null) [10:54:09]execute_cgi path=json_proto method=POST [10:54:09]POST find Content-Length [10:54:09]Host: 172.17.63.131:8080 [10:54:09]Content-Length: 676 [10:54:09]Content-Type: application/json [10:54:09] [10:54:09]POST finish read [10:54:09]Found Content-Length = 676 [10:54:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32174", "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:54:09]execute_script... [10:54: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)32174", "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:54:09]POST & json_proto [10:54:09]process_json_proto [10:54:09]json parsed OK: [10:54:09]protocol is kg_v1.0 [10:54:09]action value=close_receipt [10:54:09]process_action close_receipt [10:54:09]cmd_close_receipt [10:54:09]MH_GetDate [10:54:09]Write to MH i2c: F0 00 00 C5 27 DB [10:54:09]Write i2c OK [10:54:09]MH_I2C_Read... [10:54:09]Read from MH i2c: F0 [10:54:09]MH_I2C_Read... [10:54:09]Read from MH i2c: F0 09 00 [10:54:09]MH_I2C_Read... [10:54:09]Read from MH i2c: F0 09 00 C5 27 00 D5 BE 20 67 22 05 6E 64 F7 [10:54:09]GetLastDocTimeStamp 1730199175 [10:54:09]current date 1730199253 [10:54:09]FM_GetShiftState [10:54:09]SAM_PROTO_GetShiftState [10:54:09]wFMCommunicate request_size=4 [10:54:09]MH_SAM_APDU [10:54:09]CAPDU: 80 13 01 00 [10:54:09]Write to MH i2c: E2 08 00 C6 27 80 13 01 00 00 00 00 00 6A [10:54:09]Write i2c OK [10:54:09]MH_I2C_Read... [10:54:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:09]Read from MH i2c: E2 [10:54:09]MH_I2C_Read... [10:54:09]Read from MH i2c: E2 0E 00 [10:54:09]MH_I2C_Read... [10:54:09]Read from MH i2c: E2 0E 00 C6 27 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 70 [10:54:09]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [10:54:09]wFMCommunicate OK [10:54:09]SAM_PROTO_GetShiftState done [10:54:09]FM_GetShiftState done [10:54:09]opened in 1730161990 [10:54:09]opened+sec_in_day 1730248390 [10:54:09]quantity*price = 30038 [10:54:09]sum+1 = 30039 [10:54:09]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 СÐО: Общий режим Чек 51 29.10.2024 10:54 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192845 ФПД: 89328011086138 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T105413&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192845&fm=89328011086138&tin=02508201610067®Number=0000000000091776&sum=30000 [10:54:10]StoreToDocumentArchive [10:54:10]shift 544 fd 192845 [10:54:10]save to /storage/0544/doc_00192845 [10:54:10]save last doc name /storage/0544/doc_00192845 to /storage/kkm_last_doc_name [10:54:10]save OK [10:54:10]Clear old archive folders... [10:54:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:54:10]tlvbuf is B6F33230 [10:54:10]SAM_PROTO_ClearQueue [10:54:10]wFMCommunicate request_size=4 [10:54:10]MH_SAM_APDU [10:54:10]CAPDU: 80 09 00 00 [10:54:10]Write to MH i2c: E2 08 00 D3 27 80 09 00 00 00 00 00 00 6C [10:54:10]Write i2c OK [10:54:10]MH_I2C_Read... [10:54:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:10]Read from MH i2c: E2 [10:54:10]MH_I2C_Read... [10:54:10]Read from MH i2c: E2 03 00 [10:54:10]MH_I2C_Read... [10:54:10]Read from MH i2c: E2 03 00 D3 27 00 90 00 6E [10:54:10]RAPDU: 90 00 [10:54:10]wFMCommunicate OK [10:54:10]SAM_PROTO_ClearQueue done [10:54:10]KKMCreateOFDPacket [10:54:10]OFDProtocolAddRootSTLVToBuf [10:54:10]FM_MakeSignedData [10:54:10]FM_MakeSignedData [10:54:10]SAM_PROTO_SignData [10:54:10]wFMCommunicate request_size=4 [10:54:10]MH_SAM_APDU [10:54:10]CAPDU: 80 0D 01 02 [10:54:10]Write to MH i2c: E2 08 00 D4 27 80 0D 01 02 00 00 00 00 74 [10:54:10]Write i2c OK [10:54:10]MH_I2C_Read... [10:54:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:10]Read from MH i2c: E2 [10:54:10]MH_I2C_Read... [10:54:10]Read from MH i2c: E2 03 00 [10:54:10]MH_I2C_Read... [10:54:10]Read from MH i2c: E2 03 00 D4 27 00 90 00 6F [10:54:10]RAPDU: 90 00 [10:54:10]wFMCommunicate OK [10:54:10]wFMCommunicate request_size=255 [10:54:10]MH_SAM_APDU [10:54: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 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 33 00 00 00 F4 03 04 00 D5 BE 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 51 [10:54:10]Write to MH i2c: E2 02 01 D5 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 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 33 00 00 00 F4 03 04 00 D5 BE 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 51 00 00 FC [10:54:10]Write i2c OK [10:54:10]MH_I2C_Read... [10:54:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:10]Read from MH i2c: E2 [10:54:10]MH_I2C_Read... [10:54:10]Read from MH i2c: E2 03 00 [10:54:10]MH_I2C_Read... [10:54:10]Read from MH i2c: E2 03 00 D5 27 00 90 00 70 [10:54:10]RAPDU: 90 00 [10:54:10]wFMCommunicate OK [10:54:10]wFMCommunicate request_size=10 [10:54:10]MH_SAM_APDU [10:54:10]CAPDU: 80 0D 02 02 05 3E 4C 5E 89 3A [10:54:10]Write to MH i2c: E2 0D 00 D6 27 80 0D 02 02 05 00 3E 4C 5E 89 3A 00 00 2C [10:54:10]Write i2c OK [10:54:10]MH_I2C_Read... [10:54:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:10]Read from MH i2c: E2 [10:54:10]MH_I2C_Read... [10:54:10]Read from MH i2c: E2 03 00 [10:54:10]MH_I2C_Read... [10:54:10]Read from MH i2c: E2 03 00 D6 27 00 90 00 71 [10:54:10]RAPDU: 90 00 [10:54:10]wFMCommunicate OK [10:54:10]wFMCommunicate request_size=4 [10:54:10]MH_SAM_APDU [10:54:10]CAPDU: 80 0D 03 02 [10:54:10]Write to MH i2c: E2 08 00 D7 27 80 0D 03 02 00 00 00 00 79 [10:54:10]Write i2c OK [10:54:10]MH_I2C_Read... [10:54:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:10]Read from MH i2c: E2 [10:54:10]MH_I2C_Read... [10:54:10]Read from MH i2c: E2 0B 00 [10:54:10]MH_I2C_Read... [10:54:10]Read from MH i2c: E2 0B 00 D7 27 00 B6 B0 8E 9A 8F 00 11 CB 90 00 73 [10:54:10]RAPDU: B6 B0 8E 9A 8F 00 11 CB 90 00 [10:54:10]wFMCommunicate OK [10:54:10]SAM_PROTO_SignData done [10:54:10]FM_MakeSignedData done [10:54:10]CreateOFDProtocolMessage [10:54:10]wFMCommunicate request_size=4 [10:54:10]MH_SAM_APDU [10:54:10]CAPDU: 80 11 00 00 [10:54:10]Write to MH i2c: E2 08 00 D8 27 80 11 00 00 00 00 00 00 79 [10:54:10]Write i2c OK [10:54:10]MH_I2C_Read... [10:54:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:11]Read from MH i2c: E2 [10:54:11]MH_I2C_Read... [10:54:11]Read from MH i2c: E2 17 00 [10:54:11]MH_I2C_Read... [10:54:11]Read from MH i2c: E2 17 00 D8 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CC [10:54:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:54:11]wFMCommunicate OK [10:54:11]CreateOFDProtocolMessage done [10:54:11]OFDSenderStorePacket 192845 [10:54:11]StoreOFDPacket docnum=192845 [10:54: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 7B 19 07 01 B2 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 33 00 00 00 F4 03 04 00 D5 BE 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 51 3E 4C 5E 89 3A B6 B0 8E 9A 8F 00 11 CB [10:54:11]CheckFolder [10:54:11]dirname=/storage/ofd_packets [10:54:11]CheckFolder done [10:54:11]ProducePacketName [10:54:11]name=ofd_packets/00192845 [10:54:11]NVStorageSaveData ofd_packets/00192845 [10:54:11]File name is /storage/ofd_packets/00192845 [10:54:11]Write 301 bytes [10:54:11]NVStorageSaveData done [10:54:11]OFDSenderStorePacket done [10:54:11]KKMCreateOFDPacket done [10:54:11]NVStorageSaveData kkm_last_timestamp [10:54:11]File name is /storage/kkm_last_timestamp [10:54:11]Write 4 bytes [10:54:11]NVStorageSaveData done [10:54:11]ExternCall_PrintAddStr [10:54:11]wPrintStart [10:54:11]Write to MH i2c: 01 00 00 D9 27 00 [10:54:11]Write i2c OK [10:54:11]MH_I2C_Read... [10:54:11]Read from MH i2c: 01 [10:54:11]MH_I2C_Read... [10:54:11]Read from MH i2c: 01 07 00 [10:54:11]MH_I2C_Read... [10:54:11]Read from MH i2c: 01 07 00 D9 27 00 00 00 00 00 FF 0F 15 [10:54:11]RasterBufferAndPrint [10:54:11]line Счет N : (1)32174 [10:54:11]line ИÐÐ: 02508201610067 [10:54:11]line Контрольно-КаÑÑовый Чек [10:54:11]line ПРОДÐЖР[10:54:11]line ТРК (МРК, ГÐК) : 12 [10:54:11]line Товар: 2710124130 [10:54:11]line Ðи-92-К-5 [10:54:11]line 4.490 * 66.90 [10:54:11]line = 300.38 [10:54:11]line ÐДС 12% ÐСП 1% [10:54:11]line > о реализуемом товаре [10:54:11]line ОКРУГЛЕÐИЕ: -0.38 [10:54:11]line ИТОГО: 300.00 [10:54:11]line ВнеÑено: 300.00 [10:54:11]line СДÐЧÐ: 0.00 [10:54:11]line ÐСП 1% : 2.66 [10:54:11]line ÐДС 12% : 31.90 [10:54:11]line Ðаличными: 300.00 [10:54:11]line Безнал.: 0.00 [10:54:11]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [10:54:11]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [10:54:11]line СÐО: Общий режим [10:54:11]line Чек 51 29.10.2024 10:54 [10:54:11]line Смена: 544 ФФД: 1.0 [10:54:11]line ЗÐМ: 0300000110 [10:54:11]line РÐМ: 0000000000091776 [10:54:11]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:54:11]line ФМ: 0000000000871754 [10:54:11]line ФД: 192845 [10:54:11]line ФПД: 89328011086138 [10:54:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T105413&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192845&fm=89328011086138&tin=02508201610067®Number=0000000000091776&sum=30000 [10:54:11]OFD Sender: Processing packet 192845 [packets to send 75, broken 74] [10:54:11]ProducePacketName [10:54:11]name=ofd_packets/00192845 [10:54:11]OFD Sender: To server: ‡•öpG, [10:54:11]CommunicateWithHost lk.salyk.kg:30040 [10:54:11]ConnectInit lk.salyk.kg [10:54:11]written 0, free lines is 4095 [10:54:11]Connected sock=9 [10:54: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 7B 19 07 01 B2 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 33 00 00 00 F4 03 04 00 D5 BE 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 51 3E 4C 5E 89 3A B6 B0 8E 9A 8F 00 11 CB [10:54: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 6C 34 47 00 4A 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4D F1 02 00 F4 03 04 00 96 63 20 67 B6 04 01 00 00 68 A0 3B 94 98 57 80 FB [10:54:11]CommunicateWithHost err = 0 [10:54:11]CheckOFDResponse [10:54:11]1017 (14) - 77093643461234 [10:54:11]1041 (16) - 0000000000871754 [10:54:11]1040 (4) - 192845 [10:54:11]1012 (4) - 29.10.2024 04:24 [10:54:11]1206 (1) - 0 [10:54:11]OFD Sender: Remove packet 192845 [10:54:11]ProducePacketName [10:54:11]name=ofd_packets/00192845 [10:54:11]NVStorageDeleteData [10:54:11]Write to MH i2c: 01 00 00 04 28 2C [10:54:11]Write i2c OK [10:54:11]MH_I2C_Read... [10:54:11]Read from MH i2c: 01 [10:54:11]MH_I2C_Read... [10:54:11]Read from MH i2c: 01 07 00 [10:54:11]MH_I2C_Read... [10:54:11]Read from MH i2c: 01 07 00 04 28 00 00 00 00 00 BA 0C F9 [10:54:11]RasterBufferAndPrint [10:54:11]line [10:54:11]line [10:54:11]line [10:54:11]line [10:54:11]line [10:54:11]written 0, free lines is 3265 [10:54:11]MH_Cut [10:54:11]Write to MH i2c: D1 01 00 0B 28 01 05 [10:54:11]Write i2c OK [10:54:11]MH_I2C_Read... [10:54:11]Read from MH i2c: D1 [10:54:11]MH_I2C_Read... [10:54:11]Read from MH i2c: D1 01 00 [10:54:11]MH_I2C_Read... [10:54:11]Read from MH i2c: D1 01 00 0B 28 00 04 [10:54:11]Write to MH i2c: 01 00 00 0C 28 34 [10:54:11]Write i2c OK [10:54:11]MH_I2C_Read... [10:54:12]OFD Sender: No OFD packet to send [10:54:12]*** Cut start [10:54:12]*** Partial cut [10:54:12]*** CUTSNS_PIN = 1 [10:54:12]*** CUTSNS_PIN = 0 [10:54:12]*** Brake cut motor [10:54:13]Read from MH i2c: 01 [10:54:13]MH_I2C_Read... [10:54:13]*** Stop cut motor [10:54:13]*** Cut end [10:54:13]Read from MH i2c: 01 07 00 [10:54:13]MH_I2C_Read... [10:54:13]Read from MH i2c: 01 07 00 0C 28 00 00 00 00 00 FF 0F 49 [10:54:13]process_action close_receipt done [10:54:13]requested_data is exist [10:54:13]produce_requested_data [10:54:13]requested_item fm.sn is exist - process it [10:54:13]wFMCommunicate request_size=4 [10:54:13]MH_SAM_APDU [10:54:13]CAPDU: 80 11 00 00 [10:54:13]Write to MH i2c: E2 08 00 0D 28 80 11 00 00 00 00 00 00 AF [10:54:13]Write i2c OK [10:54:13]MH_I2C_Read... [10:54:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:13]Read from MH i2c: E2 [10:54:13]MH_I2C_Read... [10:54:13]Read from MH i2c: E2 17 00 [10:54:13]MH_I2C_Read... [10:54:13]Read from MH i2c: E2 17 00 0D 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 02 [10:54:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:54:13]wFMCommunicate OK [10:54:13]requested_item fd.num is exist - process it [10:54:13]SAM_PROTO_GetFieldsCounters [10:54:13]wFMCommunicate request_size=4 [10:54:13]MH_SAM_APDU [10:54:13]CAPDU: 80 13 00 00 [10:54:13]Write to MH i2c: E2 08 00 0E 28 80 13 00 00 00 00 00 00 B2 [10:54:13]Write i2c OK [10:54:13]MH_I2C_Read... [10:54:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:13]Read from MH i2c: E2 [10:54:13]MH_I2C_Read... [10:54:13]Read from MH i2c: E2 62 00 [10:54:13]MH_I2C_Read... [10:54:13]Read from MH i2c: E2 62 00 0E 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 4D F1 02 00 0E 04 04 00 20 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 D3 [10:54: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 4D F1 02 00 0E 04 04 00 20 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:54:13]wFMCommunicate OK [10:54:13]SAM_PROTO_GetFieldsCounters done [10:54:13]requested_item shift.num is exist - process it [10:54:13]requested_item shift.opened is exist - process it [10:54:13]req_shift_opened [10:54:13]FM_GetShiftState [10:54:13]SAM_PROTO_GetShiftState [10:54:13]wFMCommunicate request_size=4 [10:54:13]MH_SAM_APDU [10:54:13]CAPDU: 80 13 01 00 [10:54:13]Write to MH i2c: E2 08 00 0F 28 80 13 01 00 00 00 00 00 B4 [10:54:13]Write i2c OK [10:54:13]MH_I2C_Read... [10:54:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:13]Read from MH i2c: E2 [10:54:13]MH_I2C_Read... [10:54:13]Read from MH i2c: E2 0E 00 [10:54:13]MH_I2C_Read... [10:54:13]Read from MH i2c: E2 0E 00 0F 28 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 BA [10:54:13]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [10:54:13]wFMCommunicate OK [10:54:13]SAM_PROTO_GetShiftState done [10:54:13]FM_GetShiftState done [10:54:13]req_shift_opened done [10:54:13]requested_item shift.open_date is exist - process it [10:54:13]req_shift_open_date [10:54:13]req_shift_open_date done [10:54:13]produce_requested_data done [10:54:13]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192845,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [10:54:13]process_action_free close_receipt [10:54:13]json_value_free [10:54:13]json_value_free done [10:54:13]process_json_proto returns [10:54:13]Send response to host [10:54:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192845,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [10:54:13]free response buf [10:54:13]execute_script done [10:54:13]execute_script returns [10:54:13]free content buf [10:54:13]Sock 10.Close socket [10:54:13]Sock 10.Thread stoped [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:17]OFD Sender: No OFD packet to send [10:57:22]OFD Sender: No OFD packet to send [10:57:27]OFD Sender: No OFD packet to send [10:57:32]OFD Sender: No OFD packet to send [10:57:37]OFD Sender: No OFD packet to send [10:57:42]OFD Sender: No OFD packet to send [10:57:47]OFD Sender: No OFD packet to send [10:57:52]OFD Sender: No OFD packet to send [10:57:57]OFD Sender: No OFD packet to send [10:58:02]OFD Sender: No OFD packet to send [10:58:07]OFD Sender: No OFD packet to send [10:58:12]OFD Sender: No OFD packet to send [10:58:17]OFD Sender: No OFD packet to send [10:58:22]OFD Sender: No OFD packet to send [10:58:27]OFD Sender: No OFD packet to send [10:58:32]OFD Sender: No OFD packet to send [10:58:37]OFD Sender: No OFD packet to send [10:58:41]accept exits with 8 [10:58:41]New connection [10:58:41]New thread 3066801508 created [10:58:41]Thread 3066658148 joined [10:58:41]Waiting for new connection... [10:58:41] Sock 8.Parse request [10:58:41]Sock 8.Check first char [10:58:41]Sock 8.First char is OK [10:58:41]request: POST /json_proto HTTP/1.0 [10:58:41]Method: POST [10:58:41]URL: /json_proto [10:58:41]Method is POST - this is cgi request [10:58:41]url: /json_proto [10:58:41]query_string will be loaded in cgi processing [10:58:41]execute_cgi json_proto POST (null) [10:58:41]execute_cgi path=json_proto method=POST [10:58:41]POST find Content-Length [10:58:41]Host: 172.17.63.131:8080 [10:58:41]Content-Length: 681 [10:58:41]Content-Type: application/json [10:58:41] [10:58:41]POST finish read [10:58:41]Found Content-Length = 681 [10:58:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32175", "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.930, "sum" : 1400.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:41]execute_script... [10:58: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)32175", "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.930, "sum" : 1400.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:41]POST & json_proto [10:58:41]process_json_proto [10:58:41]json parsed OK: [10:58:41]protocol is kg_v1.0 [10:58:41]action value=close_receipt [10:58:41]process_action close_receipt [10:58:41]cmd_close_receipt [10:58:41]MH_GetDate [10:58:41]Write to MH i2c: F0 00 00 10 28 27 [10:58:41]Write i2c OK [10:58:41]MH_I2C_Read... [10:58:41]Read from MH i2c: F0 [10:58:41]MH_I2C_Read... [10:58:41]Read from MH i2c: F0 09 00 [10:58:41]MH_I2C_Read... [10:58:41]Read from MH i2c: F0 09 00 10 28 00 E5 BF 20 67 22 05 6E 64 54 [10:58:41]GetLastDocTimeStamp 1730199253 [10:58:41]current date 1730199525 [10:58:41]FM_GetShiftState [10:58:41]SAM_PROTO_GetShiftState [10:58:41]wFMCommunicate request_size=4 [10:58:41]MH_SAM_APDU [10:58:41]CAPDU: 80 13 01 00 [10:58:41]Write to MH i2c: E2 08 00 11 28 80 13 01 00 00 00 00 00 B6 [10:58:41]Write i2c OK [10:58:41]MH_I2C_Read... [10:58:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:41]Read from MH i2c: E2 [10:58:41]MH_I2C_Read... [10:58:41]Read from MH i2c: E2 0E 00 [10:58:41]MH_I2C_Read... [10:58:41]Read from MH i2c: E2 0E 00 11 28 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 BC [10:58:41]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [10:58:41]wFMCommunicate OK [10:58:41]SAM_PROTO_GetShiftState done [10:58:41]FM_GetShiftState done [10:58:41]opened in 1730161990 [10:58:41]opened+sec_in_day 1730248390 [10:58:41]quantity*price = 140021 [10:58:41]sum+1 = 140023 [10:58:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.22 ИТОГО: 1400.00 ВнеÑено: 1400.00 СДÐЧÐ: 0.00 ÐСП 1% : 12.39 ÐДС 12% : 148.70 Ðаличными: 1400.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 170 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 СÐО: Общий режим Чек 52 29.10.2024 10:58 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192846 ФПД: 124972130831354 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T105846&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192846&fm=124972130831354&tin=02508201610067®Number=0000000000091776&sum=140000 [10:58:42]StoreToDocumentArchive [10:58:42]shift 544 fd 192846 [10:58:42]save to /storage/0544/doc_00192846 [10:58:42]save last doc name /storage/0544/doc_00192846 to /storage/kkm_last_doc_name [10:58:42]save OK [10:58:42]Clear old archive folders... [10:58:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:58:42]tlvbuf is 00FFFF70 [10:58:42]SAM_PROTO_ClearQueue [10:58:42]wFMCommunicate request_size=4 [10:58:42]MH_SAM_APDU [10:58:42]CAPDU: 80 09 00 00 [10:58:42]Write to MH i2c: E2 08 00 1E 28 80 09 00 00 00 00 00 00 B8 [10:58:42]Write i2c OK [10:58:42]MH_I2C_Read... [10:58:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:58:42]Read from MH i2c: E2 [10:58:42]MH_I2C_Read... [10:58:42]Read from MH i2c: E2 03 00 [10:58:42]MH_I2C_Read... [10:58:42]Read from MH i2c: E2 03 00 1E 28 00 90 00 BA [10:58:42]RAPDU: 90 00 [10:58:42]wFMCommunicate OK [10:58:42]SAM_PROTO_ClearQueue done [10:58:42]KKMCreateOFDPacket [10:58:42]OFDProtocolAddRootSTLVToBuf [10:58:42]FM_MakeSignedData [10:58:42]FM_MakeSignedData [10:58:42]SAM_PROTO_SignData [10:58:42]wFMCommunicate request_size=4 [10:58:42]MH_SAM_APDU [10:58:42]CAPDU: 80 0D 01 02 [10:58:42]Write to MH i2c: E2 08 00 1F 28 80 0D 01 02 00 00 00 00 C0 [10:58:42]Write i2c OK [10:58:42]MH_I2C_Read... [10:58:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:58:42]Read from MH i2c: E2 [10:58:42]MH_I2C_Read... [10:58:42]Read from MH i2c: E2 03 00 [10:58:42]MH_I2C_Read... [10:58:42]Read from MH i2c: E2 03 00 1F 28 00 90 00 BB [10:58:42]RAPDU: 90 00 [10:58:42]wFMCommunicate OK [10:58:42]wFMCommunicate request_size=255 [10:58:42]MH_SAM_APDU [10:58: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 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 E6 BF 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 71 [10:58:42]Write to MH i2c: E2 02 01 20 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 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 E6 BF 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 71 00 00 9F [10:58:42]Write i2c OK [10:58:42]MH_I2C_Read... [10:58:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:43]Read from MH i2c: E2 [10:58:43]MH_I2C_Read... [10:58:43]Read from MH i2c: E2 03 00 [10:58:43]MH_I2C_Read... [10:58:43]Read from MH i2c: E2 03 00 20 28 00 90 00 BC [10:58:43]RAPDU: 90 00 [10:58:43]wFMCommunicate OK [10:58:43]wFMCommunicate request_size=10 [10:58:43]MH_SAM_APDU [10:58:43]CAPDU: 80 0D 02 02 05 A9 57 77 0B FA [10:58:43]Write to MH i2c: E2 0D 00 21 28 80 0D 02 02 05 00 A9 57 77 0B FA 00 00 49 [10:58:43]Write i2c OK [10:58:43]MH_I2C_Read... [10:58:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:43]Read from MH i2c: E2 [10:58:43]MH_I2C_Read... [10:58:43]Read from MH i2c: E2 03 00 [10:58:43]MH_I2C_Read... [10:58:43]Read from MH i2c: E2 03 00 21 28 00 90 00 BD [10:58:43]RAPDU: 90 00 [10:58:43]wFMCommunicate OK [10:58:43]wFMCommunicate request_size=4 [10:58:43]MH_SAM_APDU [10:58:43]CAPDU: 80 0D 03 02 [10:58:43]Write to MH i2c: E2 08 00 22 28 80 0D 03 02 00 00 00 00 C5 [10:58:43]Write i2c OK [10:58:43]MH_I2C_Read... [10:58:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:58:43]Read from MH i2c: E2 [10:58:43]MH_I2C_Read... [10:58:43]Read from MH i2c: E2 0B 00 [10:58:43]MH_I2C_Read... [10:58:43]Read from MH i2c: E2 0B 00 22 28 00 58 EA FE 31 60 AE C6 C5 90 00 D0 [10:58:43]RAPDU: 58 EA FE 31 60 AE C6 C5 90 00 [10:58:43]wFMCommunicate OK [10:58:43]SAM_PROTO_SignData done [10:58:43]FM_MakeSignedData done [10:58:43]CreateOFDProtocolMessage [10:58:43]wFMCommunicate request_size=4 [10:58:43]MH_SAM_APDU [10:58:43]CAPDU: 80 11 00 00 [10:58:43]Write to MH i2c: E2 08 00 23 28 80 11 00 00 00 00 00 00 C5 [10:58:43]Write i2c OK [10:58:43]MH_I2C_Read... [10:58:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:43]Read from MH i2c: E2 [10:58:43]MH_I2C_Read... [10:58:43]Read from MH i2c: E2 17 00 [10:58:43]MH_I2C_Read... [10:58:43]Read from MH i2c: E2 17 00 23 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 18 [10:58:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:58:43]wFMCommunicate OK [10:58:43]CreateOFDProtocolMessage done [10:58:43]OFDSenderStorePacket 192846 [10:58:43]StoreOFDPacket docnum=192846 [10:58: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 35 BF 07 01 96 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 E6 BF 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 71 A9 57 77 0B FA 58 EA FE 31 60 AE C6 C5 [10:58:43]CheckFolder [10:58:43]dirname=/storage/ofd_packets [10:58:43]CheckFolder done [10:58:43]ProducePacketName [10:58:43]name=ofd_packets/00192846 [10:58:43]NVStorageSaveData ofd_packets/00192846 [10:58:43]File name is /storage/ofd_packets/00192846 [10:58:43]Write 301 bytes [10:58:43]NVStorageSaveData done [10:58:43]OFDSenderStorePacket done [10:58:43]KKMCreateOFDPacket done [10:58:43]NVStorageSaveData kkm_last_timestamp [10:58:43]File name is /storage/kkm_last_timestamp [10:58:43]Write 4 bytes [10:58:43]NVStorageSaveData done [10:58:43]OFD Sender: Processing packet 192846 [packets to send 75, broken 74] [10:58:43]ProducePacketName [10:58:43]name=ofd_packets/00192846 [10:58:43]OFD Sender: To server: ‡•öpG, [10:58:43]CommunicateWithHost lk.salyk.kg:30040 [10:58:43]ConnectInit lk.salyk.kg [10:58:43]ExternCall_PrintAddStr [10:58:43]wPrintStart [10:58:43]Write to MH i2c: 01 00 00 24 28 4C [10:58:43]Write i2c OK [10:58:43]MH_I2C_Read... [10:58:43]Read from MH i2c: 01 [10:58:43]MH_I2C_Read... [10:58:43]Read from MH i2c: 01 07 00 [10:58:43]MH_I2C_Read... [10:58:43]Read from MH i2c: 01 07 00 24 28 00 00 00 00 00 FF 0F 61 [10:58:43]RasterBufferAndPrint [10:58:43]line Счет N : (1)32175 [10:58:43]line ИÐÐ: 02508201610067 [10:58:43]line Контрольно-КаÑÑовый Чек [10:58:43]line ПРОДÐЖР[10:58:43]line ТРК (МРК, ГÐК) : 12 [10:58:43]line Товар: 2710124130 [10:58:43]line Ðи-92-К-5 [10:58:43]line 20.930 * 66.90 [10:58:43]line = 1400.22 [10:58:43]line ÐДС 12% ÐСП 1% [10:58:43]line > о реализуемом товаре [10:58:43]line ОКРУГЛЕÐИЕ: -0.22 [10:58:43]line ИТОГО: 1400.00 [10:58:43]line ВнеÑено: 1400.00 [10:58:43]line СДÐЧÐ: 0.00 [10:58:43]line ÐСП 1% : 12.39 [10:58:43]line ÐДС 12% : 148.70 [10:58:43]line Ðаличными: 1400.00 [10:58:43]line Безнал.: 0.00 [10:58:43]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [10:58:43]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [10:58:43]line СÐО: Общий режим [10:58:43]line Чек 52 29.10.2024 10:58 [10:58:43]line Смена: 544 ФФД: 1.0 [10:58:43]line ЗÐМ: 0300000110 [10:58:43]line РÐМ: 0000000000091776 [10:58:43]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:58:43]line ФМ: 0000000000871754 [10:58:43]line ФД: 192846 [10:58:43]line ФПД: 124972130831354 [10:58:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T105846&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192846&fm=124972130831354&tin=02508201610067®Number=0000000000091776&sum=140000 [10:58:43]Connected sock=11 [10:58: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 35 BF 07 01 96 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 E6 BF 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 71 A9 57 77 0B FA 58 EA FE 31 60 AE C6 C5 [10:58:43]written 0, free lines is 4095 [10:58: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 C7 24 47 00 31 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 4E F1 02 00 F4 03 04 00 A6 64 20 67 B6 04 01 00 00 CC C2 21 E7 61 0C B8 F6 [10:58:43]CommunicateWithHost err = 0 [10:58:43]CheckOFDResponse [10:58:43]1017 (14) - 77093643461234 [10:58:43]1041 (16) - 0000000000871754 [10:58:43]1040 (4) - 192846 [10:58:43]1012 (4) - 29.10.2024 04:29 [10:58:43]1206 (1) - 0 [10:58:43]OFD Sender: Remove packet 192846 [10:58:43]ProducePacketName [10:58:43]name=ofd_packets/00192846 [10:58:43]NVStorageDeleteData [10:58:44]Write to MH i2c: 01 00 00 4F 28 77 [10:58:44]Write i2c OK [10:58:44]MH_I2C_Read... [10:58:44]Read from MH i2c: 01 [10:58:44]MH_I2C_Read... [10:58:44]Read from MH i2c: 01 07 00 [10:58:44]MH_I2C_Read... [10:58:44]Read from MH i2c: 01 07 00 4F 28 00 00 00 00 00 AC 0C 36 [10:58:44]RasterBufferAndPrint [10:58:44]line [10:58:44]line [10:58:44]line [10:58:44]line [10:58:44]line [10:58:44]written 0, free lines is 3250 [10:58:44]MH_Cut [10:58:44]Write to MH i2c: D1 01 00 56 28 01 50 [10:58:44]Write i2c OK [10:58:44]MH_I2C_Read... [10:58:44]Read from MH i2c: D1 [10:58:44]MH_I2C_Read... [10:58:44]Read from MH i2c: D1 01 00 [10:58:44]MH_I2C_Read... [10:58:44]Read from MH i2c: D1 01 00 56 28 00 4F [10:58:44]Write to MH i2c: 01 00 00 57 28 7F [10:58:44]Write i2c OK [10:58:44]MH_I2C_Read... [10:58:44]OFD Sender: No OFD packet to send [10:58:45]*** Cut start [10:58:45]*** Partial cut [10:58:45]*** CUTSNS_PIN = 1 [10:58:45]*** CUTSNS_PIN = 0 [10:58:45]*** Brake cut motor [10:58:45]Read from MH i2c: 01 [10:58:45]MH_I2C_Read... [10:58:45]*** Stop cut motor [10:58:45]*** Cut end [10:58:45]Read from MH i2c: 01 07 00 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: 01 07 00 57 28 00 00 00 00 00 FF 0F 94 [10:58:45]process_action close_receipt done [10:58:45]requested_data is exist [10:58:45]produce_requested_data [10:58:45]requested_item fm.sn is exist - process it [10:58:45]wFMCommunicate request_size=4 [10:58:45]MH_SAM_APDU [10:58:45]CAPDU: 80 11 00 00 [10:58:45]Write to MH i2c: E2 08 00 58 28 80 11 00 00 00 00 00 00 FA [10:58:45]Write i2c OK [10:58:45]MH_I2C_Read... [10:58:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:45]Read from MH i2c: E2 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: E2 17 00 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: E2 17 00 58 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4D [10:58:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:58:45]wFMCommunicate OK [10:58:45]requested_item fd.num is exist - process it [10:58:45]SAM_PROTO_GetFieldsCounters [10:58:45]wFMCommunicate request_size=4 [10:58:45]MH_SAM_APDU [10:58:45]CAPDU: 80 13 00 00 [10:58:45]Write to MH i2c: E2 08 00 59 28 80 13 00 00 00 00 00 00 FD [10:58:45]Write i2c OK [10:58:45]MH_I2C_Read... [10:58:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:58:45]Read from MH i2c: E2 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: E2 62 00 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: E2 62 00 59 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 4E F1 02 00 0E 04 04 00 20 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 22 [10:58: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 4E F1 02 00 0E 04 04 00 20 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:58:45]wFMCommunicate OK [10:58:45]SAM_PROTO_GetFieldsCounters done [10:58:45]requested_item shift.num is exist - process it [10:58:45]requested_item shift.opened is exist - process it [10:58:45]req_shift_opened [10:58:45]FM_GetShiftState [10:58:45]SAM_PROTO_GetShiftState [10:58:45]wFMCommunicate request_size=4 [10:58:45]MH_SAM_APDU [10:58:45]CAPDU: 80 13 01 00 [10:58:45]Write to MH i2c: E2 08 00 5A 28 80 13 01 00 00 00 00 00 FF [10:58:45]Write i2c OK [10:58:45]MH_I2C_Read... [10:58:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:45]Read from MH i2c: E2 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: E2 0E 00 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: E2 0E 00 5A 28 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 05 [10:58:45]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [10:58:45]wFMCommunicate OK [10:58:45]SAM_PROTO_GetShiftState done [10:58:45]FM_GetShiftState done [10:58:45]req_shift_opened done [10:58:45]requested_item shift.open_date is exist - process it [10:58:45]req_shift_open_date [10:58:45]req_shift_open_date done [10:58:45]produce_requested_data done [10:58:45]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192846,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [10:58:45]process_action_free close_receipt [10:58:45]json_value_free [10:58:45]json_value_free done [10:58:45]process_json_proto returns [10:58:45]Send response to host [10:58:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192846,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [10:58:45]free response buf [10:58:45]execute_script done [10:58:45]execute_script returns [10:58:45]free content buf [10:58:45]Sock 8.Close socket [10:58:45]Sock 8.Thread stoped [10:58:49]OFD Sender: No OFD packet to send [10:58:54]OFD Sender: No OFD packet to send [10:58:59]OFD Sender: No OFD packet to send [10:59:04]OFD Sender: No OFD packet to send [10:59:09]OFD Sender: No OFD packet to send [10:59:14]OFD Sender: No OFD packet to send [10:59:19]OFD Sender: No OFD packet to send [10:59:24]OFD Sender: No OFD packet to send [10:59:29]OFD Sender: No OFD packet to send [10:59:34]OFD Sender: No OFD packet to send [10:59:39]OFD Sender: No OFD packet to send [10:59:40]accept exits with 9 [10:59:40]New connection [10:59:40]New thread 3066658148 created [10:59:40]Thread 3066801508 joined [10:59:40]Waiting for new connection... [10:59:40] Sock 9.Parse request [10:59:40]Sock 9.Check first char [10:59:40]Sock 9.First char is OK [10:59:40]request: POST /json_proto HTTP/1.0 [10:59:40]Method: POST [10:59:40]URL: /json_proto [10:59:40]Method is POST - this is cgi request [10:59:40]url: /json_proto [10:59:40]query_string will be loaded in cgi processing [10:59:40]execute_cgi json_proto POST (null) [10:59:40]execute_cgi path=json_proto method=POST [10:59:40]POST find Content-Length [10:59:40]Host: 172.17.63.131:8080 [10:59:40]Content-Length: 676 [10:59:40]Content-Type: application/json [10:59:40] [10:59:40]POST finish read [10:59:40]Found Content-Length = 676 [10:59:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32176", "tax_sys" : 0, "items" : [ { "pre_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" ] } } [10:59:40]execute_script... [10:59: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)32176", "tax_sys" : 0, "items" : [ { "pre_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" ] } } [10:59:40]POST & json_proto [10:59:40]process_json_proto [10:59:40]json parsed OK: [10:59:40]protocol is kg_v1.0 [10:59:40]action value=close_receipt [10:59:40]process_action close_receipt [10:59:40]cmd_close_receipt [10:59:40]MH_GetDate [10:59:40]Write to MH i2c: F0 00 00 5B 28 72 [10:59:40]Write i2c OK [10:59:40]MH_I2C_Read... [10:59:40]Read from MH i2c: F0 [10:59:40]MH_I2C_Read... [10:59:40]Read from MH i2c: F0 09 00 [10:59:40]MH_I2C_Read... [10:59:40]Read from MH i2c: F0 09 00 5B 28 00 20 C0 20 67 22 05 6E 64 DB [10:59:40]GetLastDocTimeStamp 1730199526 [10:59:40]current date 1730199584 [10:59:40]FM_GetShiftState [10:59:40]SAM_PROTO_GetShiftState [10:59:40]wFMCommunicate request_size=4 [10:59:40]MH_SAM_APDU [10:59:40]CAPDU: 80 13 01 00 [10:59:40]Write to MH i2c: E2 08 00 5C 28 80 13 01 00 00 00 00 00 01 [10:59:40]Write i2c OK [10:59:40]MH_I2C_Read... [10:59:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:40]Read from MH i2c: E2 [10:59:40]MH_I2C_Read... [10:59:40]Read from MH i2c: E2 0E 00 [10:59:40]MH_I2C_Read... [10:59:40]Read from MH i2c: E2 0E 00 5C 28 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 07 [10:59:40]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [10:59:40]wFMCommunicate OK [10:59:40]SAM_PROTO_GetShiftState done [10:59:40]FM_GetShiftState done [10:59:40]opened in 1730161990 [10:59:40]opened+sec_in_day 1730248390 [10:59:40]quantity*price = 20003 [10:59:40]sum+1 = 20004 [10:59:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.03 ИТОГО: 200.00 ВнеÑено: 200.00 СДÐЧÐ: 0.00 ÐСП 1% : 1.77 ÐДС 12% : 21.24 Ðаличными: 200.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 170 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 СÐО: Общий режим Чек 53 29.10.2024 10:59 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192847 ФПД: 279281820153159 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T105944&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192847&fm=279281820153159&tin=02508201610067®Number=0000000000091776&sum=20000 [10:59:41]StoreToDocumentArchive [10:59:41]shift 544 fd 192847 [10:59:41]save to /storage/0544/doc_00192847 [10:59:41]save last doc name /storage/0544/doc_00192847 to /storage/kkm_last_doc_name [10:59:41]save OK [10:59:41]Clear old archive folders... [10:59:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:59:41]tlvbuf is B6F338E0 [10:59:41]SAM_PROTO_ClearQueue [10:59:41]wFMCommunicate request_size=4 [10:59:41]MH_SAM_APDU [10:59:41]CAPDU: 80 09 00 00 [10:59:41]Write to MH i2c: E2 08 00 69 28 80 09 00 00 00 00 00 00 03 [10:59:41]Write i2c OK [10:59:41]MH_I2C_Read... [10:59:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:59:41]Read from MH i2c: E2 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: E2 03 00 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: E2 03 00 69 28 00 90 00 05 [10:59:41]RAPDU: 90 00 [10:59:41]wFMCommunicate OK [10:59:41]SAM_PROTO_ClearQueue done [10:59:41]KKMCreateOFDPacket [10:59:41]OFDProtocolAddRootSTLVToBuf [10:59:41]FM_MakeSignedData [10:59:41]FM_MakeSignedData [10:59:41]SAM_PROTO_SignData [10:59:41]wFMCommunicate request_size=4 [10:59:41]MH_SAM_APDU [10:59:41]CAPDU: 80 0D 01 02 [10:59:41]Write to MH i2c: E2 08 00 6A 28 80 0D 01 02 00 00 00 00 0B [10:59:41]Write i2c OK [10:59:41]MH_I2C_Read... [10:59:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:59:41]Read from MH i2c: E2 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: E2 03 00 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: E2 03 00 6A 28 00 90 00 06 [10:59:41]RAPDU: 90 00 [10:59:41]wFMCommunicate OK [10:59:41]wFMCommunicate request_size=255 [10:59:41]MH_SAM_APDU [10:59:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 20 C0 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 FE [10:59:41]Write to MH i2c: E2 02 01 6B 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 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 00 00 00 F4 03 04 00 20 C0 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 FE 00 00 5F [10:59:41]Write i2c OK [10:59:41]MH_I2C_Read... [10:59:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:41]Read from MH i2c: E2 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: E2 03 00 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: E2 03 00 6B 28 00 90 00 07 [10:59:41]RAPDU: 90 00 [10:59:41]wFMCommunicate OK [10:59:41]wFMCommunicate request_size=10 [10:59:41]MH_SAM_APDU [10:59:41]CAPDU: 80 0D 02 02 05 01 5D AE B5 47 [10:59:41]Write to MH i2c: E2 0D 00 6C 28 80 0D 02 02 05 00 01 5D AE B5 47 00 00 20 [10:59:41]Write i2c OK [10:59:41]MH_I2C_Read... [10:59:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:41]Read from MH i2c: E2 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: E2 03 00 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: E2 03 00 6C 28 00 90 00 08 [10:59:41]RAPDU: 90 00 [10:59:41]wFMCommunicate OK [10:59:41]wFMCommunicate request_size=4 [10:59:41]MH_SAM_APDU [10:59:41]CAPDU: 80 0D 03 02 [10:59:41]Write to MH i2c: E2 08 00 6D 28 80 0D 03 02 00 00 00 00 10 [10:59:41]Write i2c OK [10:59:41]MH_I2C_Read... [10:59:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:59:41]Read from MH i2c: E2 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: E2 0B 00 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: E2 0B 00 6D 28 00 9F 0F 11 FA C3 A9 85 2F 90 00 EA [10:59:41]RAPDU: 9F 0F 11 FA C3 A9 85 2F 90 00 [10:59:41]wFMCommunicate OK [10:59:41]SAM_PROTO_SignData done [10:59:41]FM_MakeSignedData done [10:59:41]CreateOFDProtocolMessage [10:59:41]wFMCommunicate request_size=4 [10:59:41]MH_SAM_APDU [10:59:41]CAPDU: 80 11 00 00 [10:59:41]Write to MH i2c: E2 08 00 6E 28 80 11 00 00 00 00 00 00 10 [10:59:41]Write i2c OK [10:59:41]MH_I2C_Read... [10:59:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:41]Read from MH i2c: E2 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: E2 17 00 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: E2 17 00 6E 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 63 [10: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 [10:59:41]wFMCommunicate OK [10:59:41]CreateOFDProtocolMessage done [10:59:41]OFDSenderStorePacket 192847 [10:59:41]StoreOFDPacket docnum=192847 [10:59: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 DC 84 07 01 D0 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 00 00 00 F4 03 04 00 20 C0 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 FE 01 5D AE B5 47 9F 0F 11 FA C3 A9 85 2F [10:59:41]CheckFolder [10:59:41]dirname=/storage/ofd_packets [10:59:41]CheckFolder done [10:59:41]ProducePacketName [10:59:41]name=ofd_packets/00192847 [10:59:41]NVStorageSaveData ofd_packets/00192847 [10:59:41]File name is /storage/ofd_packets/00192847 [10:59:41]Write 301 bytes [10:59:41]NVStorageSaveData done [10:59:41]OFDSenderStorePacket done [10:59:41]KKMCreateOFDPacket done [10:59:41]NVStorageSaveData kkm_last_timestamp [10:59:41]File name is /storage/kkm_last_timestamp [10:59:41]Write 4 bytes [10:59:41]NVStorageSaveData done [10:59:41]ExternCall_PrintAddStr [10:59:41]wPrintStart [10:59:41]Write to MH i2c: 01 00 00 6F 28 97 [10:59:41]Write i2c OK [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: 01 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: 01 07 00 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: 01 07 00 6F 28 00 00 00 00 00 FF 0F AC [10:59:41]RasterBufferAndPrint [10:59:41]line Счет N : (1)32176 [10:59:41]line ИÐÐ: 02508201610067 [10:59:41]line Контрольно-КаÑÑовый Чек [10:59:41]line ПРОДÐЖР[10:59:41]line ТРК (МРК, ГÐК) : 21 [10:59:41]line Товар: 2710124130 [10:59:41]line Ðи-92-К-5 [10:59:41]line 2.990 * 66.90 [10:59:41]line = 200.03 [10:59:41]line ÐДС 12% ÐСП 1% [10:59:41]line > о реализуемом товаре [10:59:41]line ОКРУГЛЕÐИЕ: -0.03 [10:59:41]line ИТОГО: 200.00 [10:59:41]line ВнеÑено: 200.00 [10:59:41]line СДÐЧÐ: 0.00 [10:59:41]line ÐСП 1% : 1.77 [10:59:41]line ÐДС 12% : 21.24 [10:59:41]line Ðаличными: 200.00 [10:59:41]line Безнал.: 0.00 [10:59:41]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [10:59:41]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [10:59:41]line СÐО: Общий режим [10:59:41]line Чек 53 29.10.2024 10:59 [10:59:41]line Смена: 544 ФФД: 1.0 [10:59:41]line ЗÐМ: 0300000110 [10:59:41]line РÐМ: 0000000000091776 [10:59:41]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:59:41]line ФМ: 0000000000871754 [10:59:41]line ФД: 192847 [10:59:41]line ФПД: 279281820153159 [10:59:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T105944&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192847&fm=279281820153159&tin=02508201610067®Number=0000000000091776&sum=20000 [10:59:42]OFD Sender: Processing packet 192847 [packets to send 75, broken 74] [10:59:42]ProducePacketName [10:59:42]name=ofd_packets/00192847 [10:59:42]OFD Sender: To server: ‡•öpG, [10:59:42]CommunicateWithHost lk.salyk.kg:30040 [10:59:42]ConnectInit lk.salyk.kg [10:59:42]written 0, free lines is 4095 [10:59:42]Connected sock=10 [10:59: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 DC 84 07 01 D0 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 00 00 00 F4 03 04 00 20 C0 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 FE 01 5D AE B5 47 9F 0F 11 FA C3 A9 85 2F [10:59: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 40 B8 47 00 49 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 4F F1 02 00 F4 03 04 00 E1 64 20 67 B6 04 01 00 00 EB 49 4E B4 D2 7D 05 42 [10:59:42]CommunicateWithHost err = 0 [10:59:42]CheckOFDResponse [10:59:42]1017 (14) - 77093643461234 [10:59:42]1041 (16) - 0000000000871754 [10:59:42]1040 (4) - 192847 [10:59:42]1012 (4) - 29.10.2024 04:30 [10:59:42]1206 (1) - 0 [10:59:42]OFD Sender: Remove packet 192847 [10:59:42]ProducePacketName [10:59:42]name=ofd_packets/00192847 [10:59:42]NVStorageDeleteData [10:59:42]Write to MH i2c: 01 00 00 9A 28 C2 [10:59:42]Write i2c OK [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: 01 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: 01 07 00 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: 01 07 00 9A 28 00 00 00 00 00 B8 0C 8D [10:59:42]RasterBufferAndPrint [10:59:42]line [10:59:42]line [10:59:42]line [10:59:42]line [10:59:42]line [10:59:42]written 0, free lines is 3263 [10:59:42]MH_Cut [10:59:42]Write to MH i2c: D1 01 00 A1 28 01 9B [10:59:42]Write i2c OK [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: D1 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: D1 01 00 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: D1 01 00 A1 28 00 9A [10:59:42]Write to MH i2c: 01 00 00 A2 28 CA [10:59:42]Write i2c OK [10:59:42]MH_I2C_Read... [10:59:42]OFD Sender: No OFD packet to send [10:59:43]*** Cut start [10:59:43]*** Partial cut [10:59:43]*** CUTSNS_PIN = 1 [10:59:43]*** CUTSNS_PIN = 0 [10:59:43]*** Brake cut motor [10:59:44]Read from MH i2c: 01 [10:59:44]MH_I2C_Read... [10:59:44]*** Stop cut motor [10:59:44]*** Cut end [10:59:44]Read from MH i2c: 01 07 00 [10:59:44]MH_I2C_Read... [10:59:44]Read from MH i2c: 01 07 00 A2 28 00 00 00 00 00 FF 0F DF [10:59:44]process_action close_receipt done [10:59:44]requested_data is exist [10:59:44]produce_requested_data [10:59:44]requested_item fm.sn is exist - process it [10:59:44]wFMCommunicate request_size=4 [10:59:44]MH_SAM_APDU [10:59:44]CAPDU: 80 11 00 00 [10:59:44]Write to MH i2c: E2 08 00 A3 28 80 11 00 00 00 00 00 00 45 [10:59:44]Write i2c OK [10:59:44]MH_I2C_Read... [10:59:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:44]Read from MH i2c: E2 [10:59:44]MH_I2C_Read... [10:59:44]Read from MH i2c: E2 17 00 [10:59:44]MH_I2C_Read... [10:59:44]Read from MH i2c: E2 17 00 A3 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 98 [10:59:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:59:44]wFMCommunicate OK [10:59:44]requested_item fd.num is exist - process it [10:59:44]SAM_PROTO_GetFieldsCounters [10:59:44]wFMCommunicate request_size=4 [10:59:44]MH_SAM_APDU [10:59:44]CAPDU: 80 13 00 00 [10:59:44]Write to MH i2c: E2 08 00 A4 28 80 13 00 00 00 00 00 00 48 [10:59:44]Write i2c OK [10:59:44]MH_I2C_Read... [10:59:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:59:44]Read from MH i2c: E2 [10:59:44]MH_I2C_Read... [10:59:44]Read from MH i2c: E2 62 00 [10:59:44]MH_I2C_Read... [10:59:44]Read from MH i2c: E2 62 00 A4 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 4F F1 02 00 0E 04 04 00 20 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 71 [10:59: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 4F F1 02 00 0E 04 04 00 20 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:59:44]wFMCommunicate OK [10:59:44]SAM_PROTO_GetFieldsCounters done [10:59:44]requested_item shift.num is exist - process it [10:59:44]requested_item shift.opened is exist - process it [10:59:44]req_shift_opened [10:59:44]FM_GetShiftState [10:59:44]SAM_PROTO_GetShiftState [10:59:44]wFMCommunicate request_size=4 [10:59:44]MH_SAM_APDU [10:59:44]CAPDU: 80 13 01 00 [10:59:44]Write to MH i2c: E2 08 00 A5 28 80 13 01 00 00 00 00 00 4A [10:59:44]Write i2c OK [10:59:44]MH_I2C_Read... [10:59:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:44]Read from MH i2c: E2 [10:59:44]MH_I2C_Read... [10:59:44]Read from MH i2c: E2 0E 00 [10:59:44]MH_I2C_Read... [10:59:44]Read from MH i2c: E2 0E 00 A5 28 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 50 [10:59:44]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [10:59:44]wFMCommunicate OK [10:59:44]SAM_PROTO_GetShiftState done [10:59:44]FM_GetShiftState done [10:59:44]req_shift_opened done [10:59:44]requested_item shift.open_date is exist - process it [10:59:44]req_shift_open_date [10:59:44]req_shift_open_date done [10:59:44]produce_requested_data done [10:59:44]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192847,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [10:59:44]process_action_free close_receipt [10:59:44]json_value_free [10:59:44]json_value_free done [10:59:44]process_json_proto returns [10:59:44]Send response to host [10:59:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192847,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [10:59:44]free response buf [10:59:44]execute_script done [10:59:44]execute_script returns [10:59:44]free content buf [10:59:44]Sock 9.Close socket [10:59:44]Sock 9.Thread stoped [10:59:47]OFD Sender: No OFD packet to send [10:59:52]OFD Sender: No OFD packet to send [10:59:57]OFD Sender: No OFD packet to send [11:00:02]OFD Sender: No OFD packet to send [11:00:07]OFD Sender: No OFD packet to send [11:00:12]OFD Sender: No OFD packet to send [11:00:17]OFD Sender: No OFD packet to send [11:00:22]OFD Sender: No OFD packet to send [11:00:27]OFD Sender: No OFD packet to send [11:00:32]OFD Sender: No OFD packet to send [11:00:37]OFD Sender: No OFD packet to send [11:00:42]OFD Sender: No OFD packet to send [11:00:47]OFD Sender: No OFD packet to send [11:00:53]OFD Sender: No OFD packet to send [11:00:58]OFD Sender: No OFD packet to send [11:01:03]OFD Sender: No OFD packet to send [11:01:08]OFD Sender: No OFD packet to send [11:01:13]OFD Sender: No OFD packet to send [11:01:18]OFD Sender: No OFD packet to send [11:01:23]OFD Sender: No OFD packet to send [11:01:28]OFD Sender: No OFD packet to send [11:01:33]OFD Sender: No OFD packet to send [11:01:38]OFD Sender: No OFD packet to send [11:01:43]OFD Sender: No OFD packet to send [11:01:48]OFD Sender: No OFD packet to send [11:01:53]OFD Sender: No OFD packet to send [11:01:58]OFD Sender: No OFD packet to send [11:02:01]accept exits with 8 [11:02:01]New connection [11:02:01]New thread 3066801508 created [11:02:01]Thread 3066658148 joined [11:02:01]Waiting for new connection... [11:02:01] Sock 8.Parse request [11:02:01]Sock 8.Check first char [11:02:01]Sock 8.First char is OK [11:02:01]request: POST /json_proto HTTP/1.0 [11:02:01]Method: POST [11:02:01]URL: /json_proto [11:02:01]Method is POST - this is cgi request [11:02:01]url: /json_proto [11:02:01]query_string will be loaded in cgi processing [11:02:01]execute_cgi json_proto POST (null) [11:02:01]execute_cgi path=json_proto method=POST [11:02:01]POST find Content-Length [11:02:01]Host: 172.17.63.131:8080 [11:02:01]Content-Length: 678 [11:02:01]Content-Type: application/json [11:02:01] [11:02:01]POST finish read [11:02:01]Found Content-Length = 678 [11:02:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32177", "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" : 23.630, "sum" : 1800.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:01]execute_script... [11:02: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)32177", "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" : 23.630, "sum" : 1800.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:01]POST & json_proto [11:02:01]process_json_proto [11:02:01]json parsed OK: [11:02:01]protocol is kg_v1.0 [11:02:01]action value=close_receipt [11:02:01]process_action close_receipt [11:02:01]cmd_close_receipt [11:02:01]MH_GetDate [11:02:01]Write to MH i2c: F0 00 00 A6 28 BD [11:02:01]Write i2c OK [11:02:01]MH_I2C_Read... [11:02:01]Read from MH i2c: F0 [11:02:01]MH_I2C_Read... [11:02:01]Read from MH i2c: F0 09 00 [11:02:01]MH_I2C_Read... [11:02:01]Read from MH i2c: F0 09 00 A6 28 00 AD C0 20 67 22 05 6E 64 B3 [11:02:01]GetLastDocTimeStamp 1730199584 [11:02:01]current date 1730199725 [11:02:01]FM_GetShiftState [11:02:01]SAM_PROTO_GetShiftState [11:02:01]wFMCommunicate request_size=4 [11:02:01]MH_SAM_APDU [11:02:01]CAPDU: 80 13 01 00 [11:02:01]Write to MH i2c: E2 08 00 A7 28 80 13 01 00 00 00 00 00 4C [11:02:01]Write i2c OK [11:02:01]MH_I2C_Read... [11:02:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:01]Read from MH i2c: E2 [11:02:01]MH_I2C_Read... [11:02:01]Read from MH i2c: E2 0E 00 [11:02:01]MH_I2C_Read... [11:02:01]Read from MH i2c: E2 0E 00 A7 28 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 52 [11:02:01]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:02:01]wFMCommunicate OK [11:02:01]SAM_PROTO_GetShiftState done [11:02:01]FM_GetShiftState done [11:02:01]opened in 1730161990 [11:02:01]opened+sec_in_day 1730248390 [11:02:01]quantity*price = 180060 [11:02:01]sum+1 = 180062 [11:02:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.61 ИТОГО: 1800.00 ВнеÑено: 1800.00 СДÐЧÐ: 0.00 ÐСП 1% : 15.93 ÐДС 12% : 191.21 Ðаличными: 1800.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 170 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 СÐО: Общий режим Чек 54 29.10.2024 11:02 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192848 ФПД: 148553954004455 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T110205&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192848&fm=148553954004455&tin=02508201610067®Number=0000000000091776&sum=180000 [11:02:02]StoreToDocumentArchive [11:02:02]shift 544 fd 192848 [11:02:02]save to /storage/0544/doc_00192848 [11:02:02]save last doc name /storage/0544/doc_00192848 to /storage/kkm_last_doc_name [11:02:02]save OK [11:02:02]Clear old archive folders... [11:02:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:02:02]tlvbuf is 00FC30E0 [11:02:02]SAM_PROTO_ClearQueue [11:02:02]wFMCommunicate request_size=4 [11:02:02]MH_SAM_APDU [11:02:02]CAPDU: 80 09 00 00 [11:02:02]Write to MH i2c: E2 08 00 B4 28 80 09 00 00 00 00 00 00 4E [11:02:02]Write i2c OK [11:02:02]MH_I2C_Read... [11:02:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:02:02]Read from MH i2c: E2 [11:02:02]MH_I2C_Read... [11:02:02]Read from MH i2c: E2 03 00 [11:02:02]MH_I2C_Read... [11:02:02]Read from MH i2c: E2 03 00 B4 28 00 90 00 50 [11:02:02]RAPDU: 90 00 [11:02:02]wFMCommunicate OK [11:02:02]SAM_PROTO_ClearQueue done [11:02:02]KKMCreateOFDPacket [11:02:02]OFDProtocolAddRootSTLVToBuf [11:02:02]FM_MakeSignedData [11:02:02]FM_MakeSignedData [11:02:02]SAM_PROTO_SignData [11:02:02]wFMCommunicate request_size=4 [11:02:02]MH_SAM_APDU [11:02:02]CAPDU: 80 0D 01 02 [11:02:02]Write to MH i2c: E2 08 00 B5 28 80 0D 01 02 00 00 00 00 56 [11:02:02]Write i2c OK [11:02:02]MH_I2C_Read... [11:02:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:02:02]Read from MH i2c: E2 [11:02:02]MH_I2C_Read... [11:02:02]Read from MH i2c: E2 03 00 [11:02:02]MH_I2C_Read... [11:02:02]Read from MH i2c: E2 03 00 B5 28 00 90 00 51 [11:02:02]RAPDU: 90 00 [11:02:02]wFMCommunicate OK [11:02:02]wFMCommunicate request_size=255 [11:02:02]MH_SAM_APDU [11:02: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 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 AD C0 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 87 1B E9 A8 [11:02:02]Write to MH i2c: E2 02 01 B6 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 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 AD C0 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 87 1B E9 A8 00 00 1F [11:02:02]Write i2c OK [11:02:02]MH_I2C_Read... [11:02:03]OFD Sender: No OFD packet to send [11:02:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:03]Read from MH i2c: E2 [11:02:03]MH_I2C_Read... [11:02:03]Read from MH i2c: E2 03 00 [11:02:03]MH_I2C_Read... [11:02:03]Read from MH i2c: E2 03 00 B6 28 00 90 00 52 [11:02:03]RAPDU: 90 00 [11:02:03]wFMCommunicate OK [11:02:03]wFMCommunicate request_size=7 [11:02:03]MH_SAM_APDU [11:02:03]CAPDU: 80 0D 02 02 02 8D E7 [11:02:03]Write to MH i2c: E2 0A 00 B7 28 80 0D 02 02 02 00 8D E7 00 00 D1 [11:02:03]Write i2c OK [11:02:03]MH_I2C_Read... [11:02:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:03]Read from MH i2c: E2 [11:02:03]MH_I2C_Read... [11:02:03]Read from MH i2c: E2 03 00 [11:02:03]MH_I2C_Read... [11:02:03]Read from MH i2c: E2 03 00 B7 28 00 90 00 53 [11:02:03]RAPDU: 90 00 [11:02:03]wFMCommunicate OK [11:02:03]wFMCommunicate request_size=4 [11:02:03]MH_SAM_APDU [11:02:03]CAPDU: 80 0D 03 02 [11:02:03]Write to MH i2c: E2 08 00 B8 28 80 0D 03 02 00 00 00 00 5B [11:02:03]Write i2c OK [11:02:03]MH_I2C_Read... [11:02:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:02:03]Read from MH i2c: E2 [11:02:03]MH_I2C_Read... [11:02:03]Read from MH i2c: E2 0B 00 [11:02:03]MH_I2C_Read... [11:02:03]Read from MH i2c: E2 0B 00 B8 28 00 3D 0E B3 DC 48 0D 49 FA 90 00 CE [11:02:03]RAPDU: 3D 0E B3 DC 48 0D 49 FA 90 00 [11:02:03]wFMCommunicate OK [11:02:03]SAM_PROTO_SignData done [11:02:03]FM_MakeSignedData done [11:02:03]CreateOFDProtocolMessage [11:02:03]wFMCommunicate request_size=4 [11:02:03]MH_SAM_APDU [11:02:03]CAPDU: 80 11 00 00 [11:02:03]Write to MH i2c: E2 08 00 B9 28 80 11 00 00 00 00 00 00 5B [11:02:03]Write i2c OK [11:02:03]MH_I2C_Read... [11:02:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:03]Read from MH i2c: E2 [11:02:03]MH_I2C_Read... [11:02:03]Read from MH i2c: E2 17 00 [11:02:03]MH_I2C_Read... [11:02:03]Read from MH i2c: E2 17 00 B9 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AE [11:02:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:02:03]wFMCommunicate OK [11:02:03]CreateOFDProtocolMessage done [11:02:03]OFDSenderStorePacket 192848 [11:02:03]StoreOFDPacket docnum=192848 [11:02: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 0C 01 00 00 33 19 04 01 75 B9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 AD C0 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 87 1B E9 A8 8D E7 3D 0E B3 DC 48 0D 49 FA [11:02:03]CheckFolder [11:02:03]dirname=/storage/ofd_packets [11:02:03]CheckFolder done [11:02:03]ProducePacketName [11:02:03]name=ofd_packets/00192848 [11:02:03]NVStorageSaveData ofd_packets/00192848 [11:02:03]File name is /storage/ofd_packets/00192848 [11:02:03]Write 298 bytes [11:02:03]NVStorageSaveData done [11:02:03]OFDSenderStorePacket done [11:02:03]KKMCreateOFDPacket done [11:02:03]NVStorageSaveData kkm_last_timestamp [11:02:03]File name is /storage/kkm_last_timestamp [11:02:03]Write 4 bytes [11:02:03]NVStorageSaveData done [11:02:03]ExternCall_PrintAddStr [11:02:03]wPrintStart [11:02:03]Write to MH i2c: 01 00 00 BA 28 E2 [11:02:03]OFD Sender: Processing packet 192848 [packets to send 75, broken 74] [11:02:03]ProducePacketName [11:02:03]name=ofd_packets/00192848 [11:02:03]OFD Sender: To server: ‡•öpG, [11:02:03]CommunicateWithHost lk.salyk.kg:30040 [11:02:03]ConnectInit lk.salyk.kg [11:02:03]Write i2c OK [11:02:03]MH_I2C_Read... [11:02:03]Read from MH i2c: 01 [11:02:03]MH_I2C_Read... [11:02:03]Read from MH i2c: 01 07 00 [11:02:03]MH_I2C_Read... [11:02:03]Read from MH i2c: 01 07 00 BA 28 00 00 00 00 00 FF 0F F7 [11:02:03]RasterBufferAndPrint [11:02:03]line Счет N : (1)32177 [11:02:03]line ИÐÐ: 02508201610067 [11:02:03]line Контрольно-КаÑÑовый Чек [11:02:03]line ПРОДÐЖР[11:02:03]line ТРК (МРК, ГÐК) : 11 [11:02:03]line Товар: 2710194210 [11:02:03]line ДТ-К-5 [11:02:03]line 23.630 * 76.20 [11:02:03]line = 1800.61 [11:02:03]line ÐДС 12% ÐСП 1% [11:02:03]line > о реализуемом товаре [11:02:03]line ОКРУГЛЕÐИЕ: -0.61 [11:02:03]line ИТОГО: 1800.00 [11:02:03]line ВнеÑено: 1800.00 [11:02:03]line СДÐЧÐ: 0.00 [11:02:03]line ÐСП 1% : 15.93 [11:02:03]line ÐДС 12% : 191.21 [11:02:03]line Ðаличными: 1800.00 [11:02:03]line Безнал.: 0.00 [11:02:03]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [11:02:03]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [11:02:03]line СÐО: Общий режим [11:02:03]line Чек 54 29.10.2024 11:02 [11:02:03]line Смена: 544 ФФД: 1.0 [11:02:03]line ЗÐМ: 0300000110 [11:02:03]line РÐМ: 0000000000091776 [11:02:03]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [11:02:03]line ФМ: 0000000000871754 [11:02:03]line ФД: 192848 [11:02:03]line ФПД: 148553954004455 [11:02:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T110205&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192848&fm=148553954004455&tin=02508201610067®Number=0000000000091776&sum=180000 [11:02:03]written 0, free lines is 4095 [11:02:03]Connected sock=9 [11:02: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 33 19 04 01 75 B9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 AD C0 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 87 1B E9 A8 8D E7 3D 0E B3 DC 48 0D 49 FA [11:02: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 B6 4D 47 00 E4 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 50 F1 02 00 F4 03 04 00 6E 65 20 67 B6 04 01 00 00 99 F0 E4 65 75 0A 83 40 [11:02:03]CommunicateWithHost err = 0 [11:02:03]CheckOFDResponse [11:02:03]1017 (14) - 77093643461234 [11:02:03]1041 (16) - 0000000000871754 [11:02:03]1040 (4) - 192848 [11:02:03]1012 (4) - 29.10.2024 04:32 [11:02:03]1206 (1) - 0 [11:02:03]OFD Sender: Remove packet 192848 [11:02:03]ProducePacketName [11:02:03]name=ofd_packets/00192848 [11:02:03]NVStorageDeleteData [11:02:03]Write to MH i2c: 01 00 00 E5 28 0D [11:02:03]Write i2c OK [11:02:03]MH_I2C_Read... [11:02:03]Read from MH i2c: 01 [11:02:03]MH_I2C_Read... [11:02:03]Read from MH i2c: 01 07 00 [11:02:03]MH_I2C_Read... [11:02:03]Read from MH i2c: 01 07 00 E5 28 00 00 00 00 00 BC 0C DC [11:02:03]RasterBufferAndPrint [11:02:03]line [11:02:03]line [11:02:03]line [11:02:03]line [11:02:03]line [11:02:03]written 0, free lines is 3268 [11:02:03]MH_Cut [11:02:03]Write to MH i2c: D1 01 00 EC 28 01 E6 [11:02:03]Write i2c OK [11:02:03]MH_I2C_Read... [11:02:03]Read from MH i2c: D1 [11:02:03]MH_I2C_Read... [11:02:03]Read from MH i2c: D1 01 00 [11:02:03]MH_I2C_Read... [11:02:03]Read from MH i2c: D1 01 00 EC 28 00 E5 [11:02:03]Write to MH i2c: 01 00 00 ED 28 15 [11:02:03]Write i2c OK [11:02:03]MH_I2C_Read... [11:02:04]OFD Sender: No OFD packet to send [11:02:04]*** Cut start [11:02:04]*** Partial cut [11:02:04]*** CUTSNS_PIN = 1 [11:02:04]*** CUTSNS_PIN = 0 [11:02:04]*** Brake cut motor [11:02:05]Read from MH i2c: 01 [11:02:05]MH_I2C_Read... [11:02:05]*** Stop cut motor [11:02:05]*** Cut end [11:02:05]Read from MH i2c: 01 07 00 [11:02:05]MH_I2C_Read... [11:02:05]Read from MH i2c: 01 07 00 ED 28 00 00 00 00 00 FF 0F 2A [11:02:05]process_action close_receipt done [11:02:05]requested_data is exist [11:02:05]produce_requested_data [11:02:05]requested_item fm.sn is exist - process it [11:02:05]wFMCommunicate request_size=4 [11:02:05]MH_SAM_APDU [11:02:05]CAPDU: 80 11 00 00 [11:02:05]Write to MH i2c: E2 08 00 EE 28 80 11 00 00 00 00 00 00 90 [11:02:05]Write i2c OK [11:02:05]MH_I2C_Read... [11:02:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:05]Read from MH i2c: E2 [11:02:05]MH_I2C_Read... [11:02:05]Read from MH i2c: E2 17 00 [11:02:05]MH_I2C_Read... [11:02:05]Read from MH i2c: E2 17 00 EE 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E3 [11:02:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:02:05]wFMCommunicate OK [11:02:05]requested_item fd.num is exist - process it [11:02:05]SAM_PROTO_GetFieldsCounters [11:02:05]wFMCommunicate request_size=4 [11:02:05]MH_SAM_APDU [11:02:05]CAPDU: 80 13 00 00 [11:02:05]Write to MH i2c: E2 08 00 EF 28 80 13 00 00 00 00 00 00 93 [11:02:05]Write i2c OK [11:02:05]MH_I2C_Read... [11:02:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:02:05]Read from MH i2c: E2 [11:02:05]MH_I2C_Read... [11:02:05]Read from MH i2c: E2 62 00 [11:02:05]MH_I2C_Read... [11:02:05]Read from MH i2c: E2 62 00 EF 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 50 F1 02 00 0E 04 04 00 20 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 C0 [11:02: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 50 F1 02 00 0E 04 04 00 20 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 [11:02:05]wFMCommunicate OK [11:02:05]SAM_PROTO_GetFieldsCounters done [11:02:05]requested_item shift.num is exist - process it [11:02:05]requested_item shift.opened is exist - process it [11:02:05]req_shift_opened [11:02:05]FM_GetShiftState [11:02:05]SAM_PROTO_GetShiftState [11:02:05]wFMCommunicate request_size=4 [11:02:05]MH_SAM_APDU [11:02:05]CAPDU: 80 13 01 00 [11:02:05]Write to MH i2c: E2 08 00 F0 28 80 13 01 00 00 00 00 00 95 [11:02:05]Write i2c OK [11:02:05]MH_I2C_Read... [11:02:05]Read from MH i2c: E2 [11:02:05]MH_I2C_Read... [11:02:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:05]Read from MH i2c: E2 0E 00 [11:02:05]MH_I2C_Read... [11:02:05]Read from MH i2c: E2 0E 00 F0 28 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 9B [11:02:05]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:02:05]wFMCommunicate OK [11:02:05]SAM_PROTO_GetShiftState done [11:02:05]FM_GetShiftState done [11:02:05]req_shift_opened done [11:02:05]requested_item shift.open_date is exist - process it [11:02:05]req_shift_open_date [11:02:05]req_shift_open_date done [11:02:05]produce_requested_data done [11:02:05]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192848,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [11:02:05]process_action_free close_receipt [11:02:05]json_value_free [11:02:05]json_value_free done [11:02:05]process_json_proto returns [11:02:05]Send response to host [11:02:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192848,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [11:02:05]free response buf [11:02:05]execute_script done [11:02:05]execute_script returns [11:02:05]free content buf [11:02:05]Sock 8.Close socket [11:02:05]Sock 8.Thread stoped [11:02:09]OFD Sender: No OFD packet to send [11:02:14]OFD Sender: No OFD packet to send [11:02:19]OFD Sender: No OFD packet to send [11:02:24]OFD Sender: No OFD packet to send [11:02:29]OFD Sender: No OFD packet to send [11:02:34]OFD Sender: No OFD packet to send [11:02:39]OFD Sender: No OFD packet to send [11:02:44]OFD Sender: No OFD packet to send [11:02:49]OFD Sender: No OFD packet to send [11:02:54]OFD Sender: No OFD packet to send [11:02:59]OFD Sender: No OFD packet to send [11:03:04]OFD Sender: No OFD packet to send [11:03:09]OFD Sender: No OFD packet to send [11:03:14]OFD Sender: No OFD packet to send [11:03:19]OFD Sender: No OFD packet to send [11:03:24]OFD Sender: No OFD packet to send [11:03:29]OFD Sender: No OFD packet to send [11:03:34]OFD Sender: No OFD packet to send [11:03:39]OFD Sender: No OFD packet to send [11:03:43]accept exits with 10 [11:03:43]New connection [11:03:43]New thread 3066658148 created [11:03:43]Thread 3066801508 joined [11:03:43]Waiting for new connection... [11:03:43] Sock 10.Parse request [11:03:43]Sock 10.Check first char [11:03:43]Sock 10.First char is OK [11:03:43]request: POST /json_proto HTTP/1.0 [11:03:43]Method: POST [11:03:43]URL: /json_proto [11:03:43]Method is POST - this is cgi request [11:03:43]url: /json_proto [11:03:43]query_string will be loaded in cgi processing [11:03:43]execute_cgi json_proto POST (null) [11:03:43]execute_cgi path=json_proto method=POST [11:03:43]POST find Content-Length [11:03:43]Host: 172.17.63.131:8080 [11:03:43]Content-Length: 676 [11:03:43]Content-Type: application/json [11:03:43] [11:03:43]POST finish read [11:03:43]Found Content-Length = 676 [11:03:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32178", "tax_sys" : 0, "items" : [ { "pre_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" ] } } [11:03:43]execute_script... [11:03:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32178", "tax_sys" : 0, "items" : [ { "pre_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" ] } } [11:03:43]POST & json_proto [11:03:43]process_json_proto [11:03:43]json parsed OK: [11:03:43]protocol is kg_v1.0 [11:03:43]action value=close_receipt [11:03:43]process_action close_receipt [11:03:43]cmd_close_receipt [11:03:43]MH_GetDate [11:03:43]Write to MH i2c: F0 00 00 F1 28 08 [11:03:43]Write i2c OK [11:03:43]MH_I2C_Read... [11:03:43]Read from MH i2c: F0 [11:03:43]MH_I2C_Read... [11:03:43]Read from MH i2c: F0 09 00 [11:03:43]MH_I2C_Read... [11:03:43]Read from MH i2c: F0 09 00 F1 28 00 14 C1 20 67 22 05 6E 64 66 [11:03:43]GetLastDocTimeStamp 1730199725 [11:03:43]current date 1730199828 [11:03:43]FM_GetShiftState [11:03:43]SAM_PROTO_GetShiftState [11:03:43]wFMCommunicate request_size=4 [11:03:43]MH_SAM_APDU [11:03:43]CAPDU: 80 13 01 00 [11:03:43]Write to MH i2c: E2 08 00 F2 28 80 13 01 00 00 00 00 00 97 [11:03:43]Write i2c OK [11:03:43]MH_I2C_Read... [11:03:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:43]Read from MH i2c: E2 [11:03:43]MH_I2C_Read... [11:03:43]Read from MH i2c: E2 0E 00 [11:03:43]MH_I2C_Read... [11:03:43]Read from MH i2c: E2 0E 00 F2 28 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 9D [11:03:43]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:03:43]wFMCommunicate OK [11:03:43]SAM_PROTO_GetShiftState done [11:03:43]FM_GetShiftState done [11:03:43]opened in 1730161990 [11:03:43]opened+sec_in_day 1730248390 [11:03:43]quantity*price = 15052 [11:03:43]sum+1 = 15054 [11:03:43]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 СÐО: Общий режим Чек 55 29.10.2024 11:03 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192849 ФПД: 118957851325731 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T110348&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192849&fm=118957851325731&tin=02508201610067®Number=0000000000091776&sum=15000 [11:03:45]StoreToDocumentArchive [11:03:45]shift 544 fd 192849 [11:03:45]save to /storage/0544/doc_00192849 [11:03:45]save last doc name /storage/0544/doc_00192849 to /storage/kkm_last_doc_name [11:03:45]save OK [11:03:45]Clear old archive folders... [11:03:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:03:45]tlvbuf is B6F33A90 [11:03:45]SAM_PROTO_ClearQueue [11:03:45]wFMCommunicate request_size=4 [11:03:45]MH_SAM_APDU [11:03:45]CAPDU: 80 09 00 00 [11:03:45]Write to MH i2c: E2 08 00 FF 28 80 09 00 00 00 00 00 00 99 [11:03:45]Write i2c OK [11:03:45]MH_I2C_Read... [11:03:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:03:45]Read from MH i2c: E2 [11:03:45]MH_I2C_Read... [11:03:45]Read from MH i2c: E2 03 00 [11:03:45]MH_I2C_Read... [11:03:45]Read from MH i2c: E2 03 00 FF 28 00 90 00 9B [11:03:45]RAPDU: 90 00 [11:03:45]wFMCommunicate OK [11:03:45]SAM_PROTO_ClearQueue done [11:03:45]KKMCreateOFDPacket [11:03:45]OFDProtocolAddRootSTLVToBuf [11:03:45]FM_MakeSignedData [11:03:45]FM_MakeSignedData [11:03:45]SAM_PROTO_SignData [11:03:45]wFMCommunicate request_size=4 [11:03:45]MH_SAM_APDU [11:03:45]CAPDU: 80 0D 01 02 [11:03:45]Write to MH i2c: E2 08 00 00 29 80 0D 01 02 00 00 00 00 A2 [11:03:45]Write i2c OK [11:03:45]MH_I2C_Read... [11:03:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:03:45]Read from MH i2c: E2 [11:03:45]MH_I2C_Read... [11:03:45]Read from MH i2c: E2 03 00 [11:03:45]MH_I2C_Read... [11:03:45]Read from MH i2c: E2 03 00 00 29 00 90 00 9D [11:03:45]RAPDU: 90 00 [11:03:45]wFMCommunicate OK [11:03:45]wFMCommunicate request_size=255 [11:03:45]MH_SAM_APDU [11:03:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 37 00 00 00 F4 03 04 00 14 C1 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 6C [11:03:45]Write to MH i2c: E2 02 01 01 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 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 37 00 00 00 F4 03 04 00 14 C1 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 6C 00 00 98 [11:03:45]Write i2c OK [11:03:45]MH_I2C_Read... [11:03:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:45]Read from MH i2c: E2 [11:03:45]MH_I2C_Read... [11:03:45]Read from MH i2c: E2 03 00 [11:03:45]MH_I2C_Read... [11:03:45]Read from MH i2c: E2 03 00 01 29 00 90 00 9E [11:03:45]RAPDU: 90 00 [11:03:45]wFMCommunicate OK [11:03:45]wFMCommunicate request_size=10 [11:03:45]MH_SAM_APDU [11:03:45]CAPDU: 80 0D 02 02 05 31 08 78 B5 23 [11:03:45]Write to MH i2c: E2 0D 00 02 29 80 0D 02 02 05 00 31 08 78 B5 23 00 00 38 [11:03:45]Write i2c OK [11:03:45]MH_I2C_Read... [11:03:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:45]Read from MH i2c: E2 [11:03:45]MH_I2C_Read... [11:03:45]Read from MH i2c: E2 03 00 [11:03:45]MH_I2C_Read... [11:03:45]Read from MH i2c: E2 03 00 02 29 00 90 00 9F [11:03:45]RAPDU: 90 00 [11:03:45]wFMCommunicate OK [11:03:45]wFMCommunicate request_size=4 [11:03:45]MH_SAM_APDU [11:03:45]CAPDU: 80 0D 03 02 [11:03:45]Write to MH i2c: E2 08 00 03 29 80 0D 03 02 00 00 00 00 A7 [11:03:45]Write i2c OK [11:03:45]MH_I2C_Read... [11:03:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:03:45]Read from MH i2c: E2 [11:03:45]MH_I2C_Read... [11:03:45]Read from MH i2c: E2 0B 00 [11:03:45]MH_I2C_Read... [11:03:45]Read from MH i2c: E2 0B 00 03 29 00 4C DF E7 AB 60 B6 26 35 90 00 D6 [11:03:45]RAPDU: 4C DF E7 AB 60 B6 26 35 90 00 [11:03:45]wFMCommunicate OK [11:03:45]SAM_PROTO_SignData done [11:03:45]FM_MakeSignedData done [11:03:45]CreateOFDProtocolMessage [11:03:45]wFMCommunicate request_size=4 [11:03:45]MH_SAM_APDU [11:03:45]CAPDU: 80 11 00 00 [11:03:45]Write to MH i2c: E2 08 00 04 29 80 11 00 00 00 00 00 00 A7 [11:03:45]Write i2c OK [11:03:45]MH_I2C_Read... [11:03:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:45]Read from MH i2c: E2 [11:03:45]MH_I2C_Read... [11:03:45]Read from MH i2c: E2 17 00 [11:03:45]MH_I2C_Read... [11:03:45]Read from MH i2c: E2 17 00 04 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FA [11:03: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:03:45]wFMCommunicate OK [11:03:45]CreateOFDProtocolMessage done [11:03:45]OFDSenderStorePacket 192849 [11:03:45]StoreOFDPacket docnum=192849 [11:03: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 D0 5C 07 01 34 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 37 00 00 00 F4 03 04 00 14 C1 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 6C 31 08 78 B5 23 4C DF E7 AB 60 B6 26 35 [11:03:45]CheckFolder [11:03:45]dirname=/storage/ofd_packets [11:03:45]CheckFolder done [11:03:45]ProducePacketName [11:03:45]name=ofd_packets/00192849 [11:03:45]NVStorageSaveData ofd_packets/00192849 [11:03:45]File name is /storage/ofd_packets/00192849 [11:03:45]Write 301 bytes [11:03:45]NVStorageSaveData done [11:03:45]OFDSenderStorePacket done [11:03:45]KKMCreateOFDPacket done [11:03:45]NVStorageSaveData kkm_last_timestamp [11:03:45]File name is /storage/kkm_last_timestamp [11:03:45]Write 4 bytes [11:03:45]NVStorageSaveData done [11:03:45]ExternCall_PrintAddStr [11:03:45]wPrintStart [11:03:45]Write to MH i2c: 01 00 00 05 29 2E [11:03:45]Write i2c OK [11:03:45]MH_I2C_Read... [11:03:45]Read from MH i2c: 01 [11:03:45]MH_I2C_Read... [11:03:45]Read from MH i2c: 01 07 00 [11:03:45]MH_I2C_Read... [11:03:45]Read from MH i2c: 01 07 00 05 29 00 00 00 00 00 FF 0F 43 [11:03:45]RasterBufferAndPrint [11:03:45]line Счет N : (1)32178 [11:03:45]line ИÐÐ: 02508201610067 [11:03:45]line Контрольно-КаÑÑовый Чек [11:03:45]line ПРОДÐЖР[11:03:45]line ТРК (МРК, ГÐК) : 21 [11:03:45]line Товар: 2710124130 [11:03:45]line Ðи-92-К-5 [11:03:45]line 2.250 * 66.90 [11:03:45]line = 150.53 [11:03:45]line ÐДС 12% ÐСП 1% [11:03:45]line > о реализуемом товаре [11:03:45]line ОКРУГЛЕÐИЕ: -0.53 [11:03:45]line ИТОГО: 150.00 [11:03:45]line ВнеÑено: 150.00 [11:03:45]line СДÐЧÐ: 0.00 [11:03:45]line ÐСП 1% : 1.33 [11:03:45]line ÐДС 12% : 15.98 [11:03:45]line Ðаличными: 150.00 [11:03:45]line Безнал.: 0.00 [11:03:45]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [11:03:45]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [11:03:45]line СÐО: Общий режим [11:03:45]line Чек 55 29.10.2024 11:03 [11:03:45]line Смена: 544 ФФД: 1.0 [11:03:45]line ЗÐМ: 0300000110 [11:03:45]line РÐМ: 0000000000091776 [11:03:45]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [11:03:45]line ФМ: 0000000000871754 [11:03:45]line ФД: 192849 [11:03:45]line ФПД: 118957851325731 [11:03:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T110348&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192849&fm=118957851325731&tin=02508201610067®Number=0000000000091776&sum=15000 [11:03:45]OFD Sender: Processing packet 192849 [packets to send 75, broken 74] [11:03:45]ProducePacketName [11:03:45]name=ofd_packets/00192849 [11:03:45]OFD Sender: To server: ‡•öpG, [11:03:45]CommunicateWithHost lk.salyk.kg:30040 [11:03:45]ConnectInit lk.salyk.kg [11:03:45]written 0, free lines is 4095 [11:03:45]Connected sock=9 [11:03:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D0 5C 07 01 34 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 37 00 00 00 F4 03 04 00 14 C1 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 6C 31 08 78 B5 23 4C DF E7 AB 60 B6 26 35 [11:03: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 6B A6 47 00 84 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 51 F1 02 00 F4 03 04 00 D5 65 20 67 B6 04 01 00 00 18 7F E6 BE 19 9C E5 25 [11:03:46]CommunicateWithHost err = 0 [11:03:46]CheckOFDResponse [11:03:46]1017 (14) - 77093643461234 [11:03:46]1041 (16) - 0000000000871754 [11:03:46]1040 (4) - 192849 [11:03:46]1012 (4) - 29.10.2024 04:34 [11:03:46]1206 (1) - 0 [11:03:46]OFD Sender: Remove packet 192849 [11:03:46]ProducePacketName [11:03:46]name=ofd_packets/00192849 [11:03:46]NVStorageDeleteData [11:03:46]Write to MH i2c: 01 00 00 30 29 59 [11:03:46]Write i2c OK [11:03:46]MH_I2C_Read... [11:03:46]Read from MH i2c: 01 [11:03:46]MH_I2C_Read... [11:03:46]Read from MH i2c: 01 07 00 [11:03:46]MH_I2C_Read... [11:03:46]Read from MH i2c: 01 07 00 30 29 00 00 00 00 00 B8 0C 24 [11:03:46]RasterBufferAndPrint [11:03:46]line [11:03:46]line [11:03:46]line [11:03:46]line [11:03:46]line [11:03:46]written 0, free lines is 3263 [11:03:46]MH_Cut [11:03:46]Write to MH i2c: D1 01 00 37 29 01 32 [11:03:46]Write i2c OK [11:03:46]MH_I2C_Read... [11:03:46]Read from MH i2c: D1 [11:03:46]MH_I2C_Read... [11:03:46]Read from MH i2c: D1 01 00 [11:03:46]MH_I2C_Read... [11:03:46]Read from MH i2c: D1 01 00 37 29 00 31 [11:03:46]Write to MH i2c: 01 00 00 38 29 61 [11:03:46]Write i2c OK [11:03:46]MH_I2C_Read... [11:03:46]OFD Sender: No OFD packet to send [11:03:47]*** Cut start [11:03:47]*** Partial cut [11:03:47]*** CUTSNS_PIN = 1 [11:03:47]*** CUTSNS_PIN = 0 [11:03:47]*** Brake cut motor [11:03:47]Read from MH i2c: 01 [11:03:47]MH_I2C_Read... [11:03:47]*** Stop cut motor [11:03:47]*** Cut end [11:03:47]Read from MH i2c: 01 07 00 [11:03:47]MH_I2C_Read... [11:03:47]Read from MH i2c: 01 07 00 38 29 00 00 00 00 00 FF 0F 76 [11:03:47]process_action close_receipt done [11:03:47]requested_data is exist [11:03:47]produce_requested_data [11:03:47]requested_item fm.sn is exist - process it [11:03:47]wFMCommunicate request_size=4 [11:03:47]MH_SAM_APDU [11:03:47]CAPDU: 80 11 00 00 [11:03:47]Write to MH i2c: E2 08 00 39 29 80 11 00 00 00 00 00 00 DC [11:03:47]Write i2c OK [11:03:47]MH_I2C_Read... [11:03:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:47]Read from MH i2c: E2 [11:03:47]MH_I2C_Read... [11:03:47]Read from MH i2c: E2 17 00 [11:03:47]MH_I2C_Read... [11:03:47]Read from MH i2c: E2 17 00 39 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2F [11:03:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:03:47]wFMCommunicate OK [11:03:47]requested_item fd.num is exist - process it [11:03:47]SAM_PROTO_GetFieldsCounters [11:03:47]wFMCommunicate request_size=4 [11:03:47]MH_SAM_APDU [11:03:47]CAPDU: 80 13 00 00 [11:03:47]Write to MH i2c: E2 08 00 3A 29 80 13 00 00 00 00 00 00 DF [11:03:47]Write i2c OK [11:03:47]MH_I2C_Read... [11:03:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:03:48]Read from MH i2c: E2 [11:03:48]MH_I2C_Read... [11:03:48]Read from MH i2c: E2 62 00 [11:03:48]MH_I2C_Read... [11:03:48]Read from MH i2c: E2 62 00 3A 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 51 F1 02 00 0E 04 04 00 20 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 [11:03:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 F1 02 00 0E 04 04 00 20 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 [11:03:48]wFMCommunicate OK [11:03:48]SAM_PROTO_GetFieldsCounters done [11:03:48]requested_item shift.num is exist - process it [11:03:48]requested_item shift.opened is exist - process it [11:03:48]req_shift_opened [11:03:48]FM_GetShiftState [11:03:48]SAM_PROTO_GetShiftState [11:03:48]wFMCommunicate request_size=4 [11:03:48]MH_SAM_APDU [11:03:48]CAPDU: 80 13 01 00 [11:03:48]Write to MH i2c: E2 08 00 3B 29 80 13 01 00 00 00 00 00 E1 [11:03:48]Write i2c OK [11:03:48]MH_I2C_Read... [11:03:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:48]Read from MH i2c: E2 [11:03:48]MH_I2C_Read... [11:03:48]Read from MH i2c: E2 0E 00 [11:03:48]MH_I2C_Read... [11:03:48]Read from MH i2c: E2 0E 00 3B 29 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 E7 [11:03:48]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:03:48]wFMCommunicate OK [11:03:48]SAM_PROTO_GetShiftState done [11:03:48]FM_GetShiftState done [11:03:48]req_shift_opened done [11:03:48]requested_item shift.open_date is exist - process it [11:03:48]req_shift_open_date [11:03:48]req_shift_open_date done [11:03:48]produce_requested_data done [11:03:48]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192849,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [11:03:48]process_action_free close_receipt [11:03:48]json_value_free [11:03:48]json_value_free done [11:03:48]process_json_proto returns [11:03:48]Send response to host [11:03:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192849,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [11:03:48]free response buf [11:03:48]execute_script done [11:03:48]execute_script returns [11:03:48]free content buf [11:03:48]Sock 10.Close socket [11:03:48]Sock 10.Thread stoped [11:03:51]OFD Sender: No OFD packet to send [11:03:56]OFD Sender: No OFD packet to send [11:04:01]OFD Sender: No OFD packet to send [11:04:06]OFD Sender: No OFD packet to send [11:04:11]OFD Sender: No OFD packet to send [11:04:16]OFD Sender: No OFD packet to send [11:04:21]OFD Sender: No OFD packet to send [11:04:26]OFD Sender: No OFD packet to send [11:04:31]OFD Sender: No OFD packet to send [11:04:36]OFD Sender: No OFD packet to send [11:04:41]OFD Sender: No OFD packet to send [11:04:46]OFD Sender: No OFD packet to send [11:04:51]OFD Sender: No OFD packet to send [11:04:56]OFD Sender: No OFD packet to send [11:05:01]OFD Sender: No OFD packet to send [11:05:06]OFD Sender: No OFD packet to send [11:05:11]OFD Sender: No OFD packet to send [11:05:16]OFD Sender: No OFD packet to send [11:05:21]OFD Sender: No OFD packet to send [11:05:26]OFD Sender: No OFD packet to send [11:05:31]OFD Sender: No OFD packet to send [11:05:36]OFD Sender: No OFD packet to send [11:05:41]OFD Sender: No OFD packet to send [11:05:46]OFD Sender: No OFD packet to send [11:05:51]OFD Sender: No OFD packet to send [11:05:56]OFD Sender: No OFD packet to send [11:06:01]OFD Sender: No OFD packet to send [11:06:06]OFD Sender: No OFD packet to send [11:06:11]OFD Sender: No OFD packet to send [11:06:16]OFD Sender: No OFD packet to send [11:06:21]OFD Sender: No OFD packet to send [11:06:26]OFD Sender: No OFD packet to send [11:06:31]OFD Sender: No OFD packet to send [11:06:36]OFD Sender: No OFD packet to send [11:06:41]OFD Sender: No OFD packet to send [11:06:46]OFD Sender: No OFD packet to send [11:06:51]OFD Sender: No OFD packet to send [11:06:56]OFD Sender: No OFD packet to send [11:07:01]OFD Sender: No OFD packet to send [11:07:06]OFD Sender: No OFD packet to send [11:07:11]OFD Sender: No OFD packet to send [11:07:16]OFD Sender: No OFD packet to send [11:07:21]OFD Sender: No OFD packet to send [11:07:26]OFD Sender: No OFD packet to send [11:07:31]OFD Sender: No OFD packet to send [11:07:36]OFD Sender: No OFD packet to send [11:07:41]OFD Sender: No OFD packet to send [11:07:46]OFD Sender: No OFD packet to send [11:07:51]OFD Sender: No OFD packet to send [11:07:56]OFD Sender: No OFD packet to send [11:08:01]OFD Sender: No OFD packet to send [11:08:06]OFD Sender: No OFD packet to send [11:08:11]OFD Sender: No OFD packet to send [11:08:17]OFD Sender: No OFD packet to send [11:08:22]OFD Sender: No OFD packet to send [11:08:27]OFD Sender: No OFD packet to send [11:08:32]OFD Sender: No OFD packet to send [11:08:37]OFD Sender: No OFD packet to send [11:08:42]OFD Sender: No OFD packet to send [11:08:47]OFD Sender: No OFD packet to send [11:08:52]OFD Sender: No OFD packet to send [11:08:57]OFD Sender: No OFD packet to send [11:09:02]OFD Sender: No OFD packet to send [11:09:07]OFD Sender: No OFD packet to send [11:09:12]OFD Sender: No OFD packet to send [11:09:17]OFD Sender: No OFD packet to send [11:09:22]OFD Sender: No OFD packet to send [11:09:27]OFD Sender: No OFD packet to send [11:09:32]OFD Sender: No OFD packet to send [11:09:37]OFD Sender: No OFD packet to send [11:09:42]OFD Sender: No OFD packet to send [11:09:47]OFD Sender: No OFD packet to send [11:09:52]OFD Sender: No OFD packet to send [11:09:57]OFD Sender: No OFD packet to send [11:10:02]OFD Sender: No OFD packet to send [11:10:07]OFD Sender: No OFD packet to send [11:10:12]OFD Sender: No OFD packet to send [11:10:17]OFD Sender: No OFD packet to send [11:10:22]OFD Sender: No OFD packet to send [11:10:27]OFD Sender: No OFD packet to send [11:10:32]OFD Sender: No OFD packet to send [11:10:37]OFD Sender: No OFD packet to send [11:10:42]OFD Sender: No OFD packet to send [11:10:47]OFD Sender: No OFD packet to send [11:10:52]OFD Sender: No OFD packet to send [11:10:57]OFD Sender: No OFD packet to send [11:11:02]OFD Sender: No OFD packet to send [11:11:07]OFD Sender: No OFD packet to send [11:11:12]OFD Sender: No OFD packet to send [11:11:17]OFD Sender: No OFD packet to send [11:11:22]OFD Sender: No OFD packet to send [11:11:27]OFD Sender: No OFD packet to send [11:11:32]OFD Sender: No OFD packet to send [11:11:37]OFD Sender: No OFD packet to send [11:11:42]OFD Sender: No OFD packet to send [11:11:47]OFD Sender: No OFD packet to send [11:11:52]OFD Sender: No OFD packet to send [11:11:57]OFD Sender: No OFD packet to send [11:12:02]OFD Sender: No OFD packet to send [11:12:07]OFD Sender: No OFD packet to send [11:12:12]OFD Sender: No OFD packet to send [11:12:17]OFD Sender: No OFD packet to send [11:12:22]OFD Sender: No OFD packet to send [11:12:27]OFD Sender: No OFD packet to send [11:12:32]OFD Sender: No OFD packet to send [11:12:37]OFD Sender: No OFD packet to send [11:12:42]OFD Sender: No OFD packet to send [11:12:47]OFD Sender: No OFD packet to send [11:12:47]accept exits with 8 [11:12:47]New connection [11:12:47]New thread 3066801508 created [11:12:47]Thread 3066658148 joined [11:12:47]Waiting for new connection... [11:12:47] Sock 8.Parse request [11:12:47]Sock 8.Check first char [11:12:47]Sock 8.First char is OK [11:12:47]request: POST /json_proto HTTP/1.0 [11:12:47]Method: POST [11:12:47]URL: /json_proto [11:12:47]Method is POST - this is cgi request [11:12:47]url: /json_proto [11:12:47]query_string will be loaded in cgi processing [11:12:47]execute_cgi json_proto POST (null) [11:12:47]execute_cgi path=json_proto method=POST [11:12:47]POST find Content-Length [11:12:47]Host: 172.17.63.131:8080 [11:12:47]Content-Length: 676 [11:12:47]Content-Type: application/json [11:12:47] [11:12:47]POST finish read [11:12:47]Found Content-Length = 676 [11:12:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:47]execute_script... [11:12: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)32179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:47]POST & json_proto [11:12:47]process_json_proto [11:12:47]json parsed OK: [11:12:47]protocol is kg_v1.0 [11:12:47]action value=close_receipt [11:12:47]process_action close_receipt [11:12:47]cmd_close_receipt [11:12:47]MH_GetDate [11:12:47]Write to MH i2c: F0 00 00 3C 29 54 [11:12:47]Write i2c OK [11:12:47]MH_I2C_Read... [11:12:47]Read from MH i2c: F0 [11:12:47]MH_I2C_Read... [11:12:47]Read from MH i2c: F0 09 00 [11:12:47]MH_I2C_Read... [11:12:47]Read from MH i2c: F0 09 00 3C 29 00 33 C3 20 67 22 05 6E 64 D3 [11:12:47]GetLastDocTimeStamp 1730199828 [11:12:47]current date 1730200371 [11:12:47]FM_GetShiftState [11:12:47]SAM_PROTO_GetShiftState [11:12:47]wFMCommunicate request_size=4 [11:12:47]MH_SAM_APDU [11:12:47]CAPDU: 80 13 01 00 [11:12:47]Write to MH i2c: E2 08 00 3D 29 80 13 01 00 00 00 00 00 E3 [11:12:47]Write i2c OK [11:12:47]MH_I2C_Read... [11:12:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:47]Read from MH i2c: E2 [11:12:47]MH_I2C_Read... [11:12:47]Read from MH i2c: E2 0E 00 [11:12:47]MH_I2C_Read... [11:12:47]Read from MH i2c: E2 0E 00 3D 29 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 E9 [11:12:47]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:12:47]wFMCommunicate OK [11:12:47]SAM_PROTO_GetShiftState done [11:12:47]FM_GetShiftState done [11:12:47]opened in 1730161990 [11:12:47]opened+sec_in_day 1730248390 [11:12:47]quantity*price = 50041 [11:12:47]sum+1 = 50042 [11:12: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 СÐО: Общий режим Чек 56 29.10.2024 11:12 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192850 ФПД: 233430107473821 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T111251&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192850&fm=233430107473821&tin=02508201610067®Number=0000000000091776&sum=50000 [11:12:48]StoreToDocumentArchive [11:12:48]shift 544 fd 192850 [11:12:48]save to /storage/0544/doc_00192850 [11:12:48]save last doc name /storage/0544/doc_00192850 to /storage/kkm_last_doc_name [11:12:48]save OK [11:12:48]Clear old archive folders... [11:12:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:12:48]tlvbuf is 00F99F30 [11:12:48]SAM_PROTO_ClearQueue [11:12:48]wFMCommunicate request_size=4 [11:12:48]MH_SAM_APDU [11:12:48]CAPDU: 80 09 00 00 [11:12:48]Write to MH i2c: E2 08 00 4A 29 80 09 00 00 00 00 00 00 E5 [11:12:48]Write i2c OK [11:12:48]MH_I2C_Read... [11:12:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:12:48]Read from MH i2c: E2 [11:12:48]MH_I2C_Read... [11:12:48]Read from MH i2c: E2 03 00 [11:12:48]MH_I2C_Read... [11:12:48]Read from MH i2c: E2 03 00 4A 29 00 90 00 E7 [11:12:48]RAPDU: 90 00 [11:12:48]wFMCommunicate OK [11:12:48]SAM_PROTO_ClearQueue done [11:12:48]KKMCreateOFDPacket [11:12:48]OFDProtocolAddRootSTLVToBuf [11:12:48]FM_MakeSignedData [11:12:48]FM_MakeSignedData [11:12:48]SAM_PROTO_SignData [11:12:48]wFMCommunicate request_size=4 [11:12:48]MH_SAM_APDU [11:12:48]CAPDU: 80 0D 01 02 [11:12:48]Write to MH i2c: E2 08 00 4B 29 80 0D 01 02 00 00 00 00 ED [11:12:48]Write i2c OK [11:12:48]MH_I2C_Read... [11:12:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:12:48]Read from MH i2c: E2 [11:12:48]MH_I2C_Read... [11:12:48]Read from MH i2c: E2 03 00 [11:12:48]MH_I2C_Read... [11:12:48]Read from MH i2c: E2 03 00 4B 29 00 90 00 E8 [11:12:48]RAPDU: 90 00 [11:12:48]wFMCommunicate OK [11:12:48]wFMCommunicate request_size=255 [11:12:48]MH_SAM_APDU [11:12:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 33 C3 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 D4 [11:12:48]Write to MH i2c: E2 02 01 4C 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 33 C3 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 D4 00 00 71 [11:12:48]Write i2c OK [11:12:48]MH_I2C_Read... [11:12:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:49]Read from MH i2c: E2 [11:12:49]MH_I2C_Read... [11:12:49]Read from MH i2c: E2 03 00 [11:12:49]MH_I2C_Read... [11:12:49]Read from MH i2c: E2 03 00 4C 29 00 90 00 E9 [11:12:49]RAPDU: 90 00 [11:12:49]wFMCommunicate OK [11:12:49]wFMCommunicate request_size=10 [11:12:49]MH_SAM_APDU [11:12:49]CAPDU: 80 0D 02 02 05 4D AE A2 C7 9D [11:12:49]Write to MH i2c: E2 0D 00 4D 29 80 0D 02 02 05 00 4D AE A2 C7 9D 00 00 FB [11:12:49]Write i2c OK [11:12:49]MH_I2C_Read... [11:12:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:49]Read from MH i2c: E2 [11:12:49]MH_I2C_Read... [11:12:49]Read from MH i2c: E2 03 00 [11:12:49]MH_I2C_Read... [11:12:49]Read from MH i2c: E2 03 00 4D 29 00 90 00 EA [11:12:49]RAPDU: 90 00 [11:12:49]wFMCommunicate OK [11:12:49]wFMCommunicate request_size=4 [11:12:49]MH_SAM_APDU [11:12:49]CAPDU: 80 0D 03 02 [11:12:49]Write to MH i2c: E2 08 00 4E 29 80 0D 03 02 00 00 00 00 F2 [11:12:49]Write i2c OK [11:12:49]MH_I2C_Read... [11:12:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:12:49]Read from MH i2c: E2 [11:12:49]MH_I2C_Read... [11:12:49]Read from MH i2c: E2 0B 00 [11:12:49]MH_I2C_Read... [11:12:49]Read from MH i2c: E2 0B 00 4E 29 00 4E 28 8D 49 E1 E2 F1 AA 90 00 9D [11:12:49]RAPDU: 4E 28 8D 49 E1 E2 F1 AA 90 00 [11:12:49]wFMCommunicate OK [11:12:49]SAM_PROTO_SignData done [11:12:49]FM_MakeSignedData done [11:12:49]CreateOFDProtocolMessage [11:12:49]wFMCommunicate request_size=4 [11:12:49]MH_SAM_APDU [11:12:49]CAPDU: 80 11 00 00 [11:12:49]Write to MH i2c: E2 08 00 4F 29 80 11 00 00 00 00 00 00 F2 [11:12:49]Write i2c OK [11:12:49]MH_I2C_Read... [11:12:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:49]Read from MH i2c: E2 [11:12:49]MH_I2C_Read... [11:12:49]Read from MH i2c: E2 17 00 [11:12:49]MH_I2C_Read... [11:12:49]Read from MH i2c: E2 17 00 4F 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 45 [11:12:49]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:49]wFMCommunicate OK [11:12:49]CreateOFDProtocolMessage done [11:12:49]OFDSenderStorePacket 192850 [11:12:49]StoreOFDPacket docnum=192850 [11:12: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 EC CC 07 01 83 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 33 C3 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 D4 4D AE A2 C7 9D 4E 28 8D 49 E1 E2 F1 AA [11:12:49]CheckFolder [11:12:49]dirname=/storage/ofd_packets [11:12:49]CheckFolder done [11:12:49]ProducePacketName [11:12:49]name=ofd_packets/00192850 [11:12:49]NVStorageSaveData ofd_packets/00192850 [11:12:49]File name is /storage/ofd_packets/00192850 [11:12:49]Write 301 bytes [11:12:49]NVStorageSaveData done [11:12:49]OFDSenderStorePacket done [11:12:49]KKMCreateOFDPacket done [11:12:49]NVStorageSaveData kkm_last_timestamp [11:12:49]File name is /storage/kkm_last_timestamp [11:12:49]Write 4 bytes [11:12:49]NVStorageSaveData done [11:12:49]ExternCall_PrintAddStr [11:12:49]wPrintStart [11:12:49]Write to MH i2c: 01 00 00 50 29 79 [11:12:49]Write i2c OK [11:12:49]MH_I2C_Read... [11:12:49]Read from MH i2c: 01 [11:12:49]MH_I2C_Read... [11:12:49]Read from MH i2c: 01 07 00 [11:12:49]MH_I2C_Read... [11:12:49]Read from MH i2c: 01 07 00 50 29 00 00 00 00 00 FF 0F 8E [11:12:49]RasterBufferAndPrint [11:12:49]line Счет N : (1)32179 [11:12:49]line ИÐÐ: 02508201610067 [11:12:49]line Контрольно-КаÑÑовый Чек [11:12:49]line ПРОДÐЖР[11:12:49]line ТРК (МРК, ГÐК) : 21 [11:12:49]line Товар: 2710124130 [11:12:49]line Ðи-92-К-5 [11:12:49]line 7.480 * 66.90 [11:12:49]line = 500.41 [11:12:49]line ÐДС 12% ÐСП 1% [11:12:49]line > о реализуемом товаре [11:12:49]line ОКРУГЛЕÐИЕ: -0.41 [11:12:49]line ИТОГО: 500.00 [11:12:49]line ВнеÑено: 500.00 [11:12:49]line СДÐЧÐ: 0.00 [11:12:49]line ÐСП 1% : 4.43 [11:12:49]line ÐДС 12% : 53.14 [11:12:49]line Ðаличными: 500.00 [11:12:49]line Безнал.: 0.00 [11:12:49]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [11:12:49]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [11:12:49]line СÐО: Общий режим [11:12:49]line Чек 56 29.10.2024 11:12 [11:12:49]line Смена: 544 ФФД: 1.0 [11:12:49]line ЗÐМ: 0300000110 [11:12:49]line РÐМ: 0000000000091776 [11:12:49]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [11:12:49]line ФМ: 0000000000871754 [11:12:49]line ФД: 192850 [11:12:49]line ФПД: 233430107473821 [11:12:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T111251&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192850&fm=233430107473821&tin=02508201610067®Number=0000000000091776&sum=50000 [11:12:49]OFD Sender: Processing packet 192850 [packets to send 75, broken 74] [11:12:49]ProducePacketName [11:12:49]name=ofd_packets/00192850 [11:12:49]OFD Sender: To server: ‡•öpG, [11:12:49]CommunicateWithHost lk.salyk.kg:30040 [11:12:49]ConnectInit lk.salyk.kg [11:12:49]written 0, free lines is 4095 [11:12:49]Connected sock=10 [11:12: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 EC CC 07 01 83 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 33 C3 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 D4 4D AE A2 C7 9D 4E 28 8D 49 E1 E2 F1 AA [11:12:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 2A 50 47 00 A2 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 52 F1 02 00 F4 03 04 00 F4 67 20 67 B6 04 01 00 00 15 89 9F 3A FB F5 28 14 [11:12:49]CommunicateWithHost err = 0 [11:12:49]CheckOFDResponse [11:12:49]1017 (14) - 77093643461234 [11:12:49]1041 (16) - 0000000000871754 [11:12:49]1040 (4) - 192850 [11:12:49]1012 (4) - 29.10.2024 04:43 [11:12:49]1206 (1) - 0 [11:12:49]OFD Sender: Remove packet 192850 [11:12:49]ProducePacketName [11:12:49]name=ofd_packets/00192850 [11:12:49]NVStorageDeleteData [11:12:50]Write to MH i2c: 01 00 00 7B 29 A4 [11:12:50]Write i2c OK [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: 01 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: 01 07 00 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: 01 07 00 7B 29 00 00 00 00 00 B4 0C 6B [11:12:50]RasterBufferAndPrint [11:12:50]line [11:12:50]line [11:12:50]line [11:12:50]line [11:12:50]line [11:12:50]written 0, free lines is 3259 [11:12:50]MH_Cut [11:12:50]Write to MH i2c: D1 01 00 82 29 01 7D [11:12:50]Write i2c OK [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: D1 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: D1 01 00 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: D1 01 00 82 29 00 7C [11:12:50]Write to MH i2c: 01 00 00 83 29 AC [11:12:50]Write i2c OK [11:12:50]MH_I2C_Read... [11:12:50]OFD Sender: No OFD packet to send [11:12:50]*** Cut start [11:12:50]*** Partial cut [11:12:50]*** CUTSNS_PIN = 1 [11:12:50]*** CUTSNS_PIN = 0 [11:12:51]*** Brake cut motor [11:12:51]Read from MH i2c: 01 [11:12:51]MH_I2C_Read... [11:12:51]*** Stop cut motor [11:12:51]*** Cut end [11:12:51]Read from MH i2c: 01 07 00 [11:12:51]MH_I2C_Read... [11:12:51]Read from MH i2c: 01 07 00 83 29 00 00 00 00 00 FF 0F C1 [11:12:51]process_action close_receipt done [11:12:51]requested_data is exist [11:12:51]produce_requested_data [11:12:51]requested_item fm.sn is exist - process it [11:12:51]wFMCommunicate request_size=4 [11:12:51]MH_SAM_APDU [11:12:51]CAPDU: 80 11 00 00 [11:12:51]Write to MH i2c: E2 08 00 84 29 80 11 00 00 00 00 00 00 27 [11:12:51]Write i2c OK [11:12:51]MH_I2C_Read... [11:12:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:51]Read from MH i2c: E2 [11:12:51]MH_I2C_Read... [11:12:51]Read from MH i2c: E2 17 00 [11:12:51]MH_I2C_Read... [11:12:51]Read from MH i2c: E2 17 00 84 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7A [11:12: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:12:51]wFMCommunicate OK [11:12:51]requested_item fd.num is exist - process it [11:12:51]SAM_PROTO_GetFieldsCounters [11:12:51]wFMCommunicate request_size=4 [11:12:51]MH_SAM_APDU [11:12:51]CAPDU: 80 13 00 00 [11:12:51]Write to MH i2c: E2 08 00 85 29 80 13 00 00 00 00 00 00 2A [11:12:51]Write i2c OK [11:12:51]MH_I2C_Read... [11:12:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:12:51]Read from MH i2c: E2 [11:12:51]MH_I2C_Read... [11:12:51]Read from MH i2c: E2 62 00 [11:12:51]MH_I2C_Read... [11:12:51]Read from MH i2c: E2 62 00 85 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 52 F1 02 00 0E 04 04 00 20 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 5F [11:12: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 52 F1 02 00 0E 04 04 00 20 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 [11:12:51]wFMCommunicate OK [11:12:51]SAM_PROTO_GetFieldsCounters done [11:12:51]requested_item shift.num is exist - process it [11:12:51]requested_item shift.opened is exist - process it [11:12:51]req_shift_opened [11:12:51]FM_GetShiftState [11:12:51]SAM_PROTO_GetShiftState [11:12:51]wFMCommunicate request_size=4 [11:12:51]MH_SAM_APDU [11:12:51]CAPDU: 80 13 01 00 [11:12:51]Write to MH i2c: E2 08 00 86 29 80 13 01 00 00 00 00 00 2C [11:12:51]Write i2c OK [11:12:51]MH_I2C_Read... [11:12:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:51]Read from MH i2c: E2 [11:12:51]MH_I2C_Read... [11:12:51]Read from MH i2c: E2 0E 00 [11:12:51]MH_I2C_Read... [11:12:51]Read from MH i2c: E2 0E 00 86 29 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 32 [11:12:51]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:12:51]wFMCommunicate OK [11:12:51]SAM_PROTO_GetShiftState done [11:12:51]FM_GetShiftState done [11:12:51]req_shift_opened done [11:12:51]requested_item shift.open_date is exist - process it [11:12:51]req_shift_open_date [11:12:51]req_shift_open_date done [11:12:51]produce_requested_data done [11:12:51]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192850,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [11:12:51]process_action_free close_receipt [11:12:51]json_value_free [11:12:51]json_value_free done [11:12:51]process_json_proto returns [11:12:51]Send response to host [11:12:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192850,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [11:12:51]free response buf [11:12:51]execute_script done [11:12:51]execute_script returns [11:12:51]free content buf [11:12:51]Sock 8.Close socket [11:12:51]Sock 8.Thread stoped [11:12:55]OFD Sender: No OFD packet to send [11:13:00]OFD Sender: No OFD packet to send [11:13:05]OFD Sender: No OFD packet to send [11:13:10]OFD Sender: No OFD packet to send [11:13:15]OFD Sender: No OFD packet to send [11:13:20]OFD Sender: No OFD packet to send [11:13:25]OFD Sender: No OFD packet to send [11:13:30]OFD Sender: No OFD packet to send [11:13:35]OFD Sender: No OFD packet to send [11:13:40]OFD Sender: No OFD packet to send [11:13:45]OFD Sender: No OFD packet to send [11:13:50]OFD Sender: No OFD packet to send [11:13:55]OFD Sender: No OFD packet to send [11:14:00]accept exits with 9 [11:14:00]New connection [11:14:00]New thread 3066658148 created [11:14:00]Thread 3066801508 joined [11:14:00]Waiting for new connection... [11:14:00] Sock 9.Parse request [11:14:00]Sock 9.Check first char [11:14:00]Sock 9.First char is OK [11:14:00]request: POST /json_proto HTTP/1.0 [11:14:00]Method: POST [11:14:00]URL: /json_proto [11:14:00]Method is POST - this is cgi request [11:14:00]url: /json_proto [11:14:00]query_string will be loaded in cgi processing [11:14:00]execute_cgi json_proto POST (null) [11:14:00]execute_cgi path=json_proto method=POST [11:14:00]POST find Content-Length [11:14:00]Host: 172.17.63.131:8080 [11:14:00]Content-Length: 676 [11:14:00]Content-Type: application/json [11:14:00] [11:14:00]POST finish read [11:14:00]Found Content-Length = 676 [11:14:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32180", "tax_sys" : 0, "items" : [ { "pre_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:14:00]execute_script... [11:14: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)32180", "tax_sys" : 0, "items" : [ { "pre_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:14:00]POST & json_proto [11:14:00]process_json_proto [11:14:00]json parsed OK: [11:14:00]protocol is kg_v1.0 [11:14:00]action value=close_receipt [11:14:00]process_action close_receipt [11:14:00]cmd_close_receipt [11:14:00]MH_GetDate [11:14:00]Write to MH i2c: F0 00 00 87 29 9F [11:14:00]Write i2c OK [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: F0 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: F0 09 00 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: F0 09 00 87 29 00 7C C3 20 67 22 05 6E 64 67 [11:14:00]GetLastDocTimeStamp 1730200371 [11:14:00]current date 1730200444 [11:14:00]FM_GetShiftState [11:14:00]SAM_PROTO_GetShiftState [11:14:00]wFMCommunicate request_size=4 [11:14:00]MH_SAM_APDU [11:14:00]CAPDU: 80 13 01 00 [11:14:00]Write to MH i2c: E2 08 00 88 29 80 13 01 00 00 00 00 00 2E [11:14:00]Write i2c OK [11:14:00]MH_I2C_Read... [11:14:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:00]Read from MH i2c: E2 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: E2 0E 00 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: E2 0E 00 88 29 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 34 [11:14:00]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:14:00]wFMCommunicate OK [11:14:00]SAM_PROTO_GetShiftState done [11:14:00]FM_GetShiftState done [11:14:00]opened in 1730161990 [11:14:00]opened+sec_in_day 1730248390 [11:14:00]quantity*price = 50041 [11:14:00]sum+1 = 50042 [11:14: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 СÐО: Общий режим Чек 57 29.10.2024 11:14 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192851 ФПД: 118021805192464 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T111404&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192851&fm=118021805192464&tin=02508201610067®Number=0000000000091776&sum=50000 [11:14:01]StoreToDocumentArchive [11:14:01]shift 544 fd 192851 [11:14:01]save to /storage/0544/doc_00192851 [11:14:01]save last doc name /storage/0544/doc_00192851 to /storage/kkm_last_doc_name [11:14:01]save OK [11:14:01]Clear old archive folders... [11:14:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:14:01]tlvbuf is B6D83960 [11:14:01]SAM_PROTO_ClearQueue [11:14:01]wFMCommunicate request_size=4 [11:14:01]MH_SAM_APDU [11:14:01]CAPDU: 80 09 00 00 [11:14:01]Write to MH i2c: E2 08 00 95 29 80 09 00 00 00 00 00 00 30 [11:14:01]Write i2c OK [11:14:01]MH_I2C_Read... [11:14:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:14:01]Read from MH i2c: E2 [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: E2 03 00 [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: E2 03 00 95 29 00 90 00 32 [11:14:01]RAPDU: 90 00 [11:14:01]wFMCommunicate OK [11:14:01]SAM_PROTO_ClearQueue done [11:14:01]KKMCreateOFDPacket [11:14:01]OFDProtocolAddRootSTLVToBuf [11:14:01]FM_MakeSignedData [11:14:01]FM_MakeSignedData [11:14:01]SAM_PROTO_SignData [11:14:01]wFMCommunicate request_size=4 [11:14:01]MH_SAM_APDU [11:14:01]CAPDU: 80 0D 01 02 [11:14:01]Write to MH i2c: E2 08 00 96 29 80 0D 01 02 00 00 00 00 38 [11:14:01]Write i2c OK [11:14:01]MH_I2C_Read... [11:14:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:14:01]Read from MH i2c: E2 [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: E2 03 00 [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: E2 03 00 96 29 00 90 00 33 [11:14:01]RAPDU: 90 00 [11:14:01]wFMCommunicate OK [11:14:01]wFMCommunicate request_size=255 [11:14:01]MH_SAM_APDU [11:14: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 39 00 00 00 F4 03 04 00 7C C3 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 6B [11:14:01]Write to MH i2c: E2 02 01 97 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 7C C3 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 6B 00 00 9E [11:14:01]Write i2c OK [11:14:01]MH_I2C_Read... [11:14:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:01]Read from MH i2c: E2 [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: E2 03 00 [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: E2 03 00 97 29 00 90 00 34 [11:14:01]RAPDU: 90 00 [11:14:01]wFMCommunicate OK [11:14:01]wFMCommunicate request_size=10 [11:14:01]MH_SAM_APDU [11:14:01]CAPDU: 80 0D 02 02 05 57 17 C6 35 10 [11:14:01]Write to MH i2c: E2 0D 00 98 29 80 0D 02 02 05 00 57 17 C6 35 10 00 00 BE [11:14:01]Write i2c OK [11:14:01]MH_I2C_Read... [11:14:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:01]Read from MH i2c: E2 [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: E2 03 00 [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: E2 03 00 98 29 00 90 00 35 [11:14:01]RAPDU: 90 00 [11:14:01]wFMCommunicate OK [11:14:01]wFMCommunicate request_size=4 [11:14:01]MH_SAM_APDU [11:14:01]CAPDU: 80 0D 03 02 [11:14:01]Write to MH i2c: E2 08 00 99 29 80 0D 03 02 00 00 00 00 3D [11:14:01]Write i2c OK [11:14:01]MH_I2C_Read... [11:14:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:14:02]Read from MH i2c: E2 [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: E2 0B 00 [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: E2 0B 00 99 29 00 71 A3 2D A7 B0 93 D4 79 90 00 B6 [11:14:02]RAPDU: 71 A3 2D A7 B0 93 D4 79 90 00 [11:14:02]wFMCommunicate OK [11:14:02]SAM_PROTO_SignData done [11:14:02]FM_MakeSignedData done [11:14:02]CreateOFDProtocolMessage [11:14:02]wFMCommunicate request_size=4 [11:14:02]MH_SAM_APDU [11:14:02]CAPDU: 80 11 00 00 [11:14:02]Write to MH i2c: E2 08 00 9A 29 80 11 00 00 00 00 00 00 3D [11:14:02]Write i2c OK [11:14:02]MH_I2C_Read... [11:14:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:02]Read from MH i2c: E2 [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: E2 17 00 [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: E2 17 00 9A 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 90 [11: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 [11:14:02]wFMCommunicate OK [11:14:02]CreateOFDProtocolMessage done [11:14:02]OFDSenderStorePacket 192851 [11:14:02]StoreOFDPacket docnum=192851 [11:14: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 F3 5B 07 01 00 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 7C C3 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 6B 57 17 C6 35 10 71 A3 2D A7 B0 93 D4 79 [11:14:02]CheckFolder [11:14:02]dirname=/storage/ofd_packets [11:14:02]CheckFolder done [11:14:02]ProducePacketName [11:14:02]name=ofd_packets/00192851 [11:14:02]NVStorageSaveData ofd_packets/00192851 [11:14:02]File name is /storage/ofd_packets/00192851 [11:14:02]Write 301 bytes [11:14:02]NVStorageSaveData done [11:14:02]OFDSenderStorePacket done [11:14:02]KKMCreateOFDPacket done [11:14:02]NVStorageSaveData kkm_last_timestamp [11:14:02]File name is /storage/kkm_last_timestamp [11:14:02]Write 4 bytes [11:14:02]NVStorageSaveData done [11:14:02]ExternCall_PrintAddStr [11:14:02]wPrintStart [11:14:02]Write to MH i2c: 01 00 00 9B 29 C4 [11:14:02]Write i2c OK [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: 01 [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: 01 07 00 [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: 01 07 00 9B 29 00 00 00 00 00 FF 0F D9 [11:14:02]RasterBufferAndPrint [11:14:02]line Счет N : (1)32180 [11:14:02]line ИÐÐ: 02508201610067 [11:14:02]line Контрольно-КаÑÑовый Чек [11:14:02]line ПРОДÐЖР[11:14:02]line ТРК (МРК, ГÐК) : 21 [11:14:02]line Товар: 2710124130 [11:14:02]line Ðи-92-К-5 [11:14:02]line 7.480 * 66.90 [11:14:02]line = 500.41 [11:14:02]line ÐДС 12% ÐСП 1% [11:14:02]line > о реализуемом товаре [11:14:02]line ОКРУГЛЕÐИЕ: -0.41 [11:14:02]line ИТОГО: 500.00 [11:14:02]line ВнеÑено: 500.00 [11:14:02]line СДÐЧÐ: 0.00 [11:14:02]line ÐСП 1% : 4.43 [11:14:02]line ÐДС 12% : 53.14 [11:14:02]line Ðаличными: 500.00 [11:14:02]line Безнал.: 0.00 [11:14:02]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [11:14:02]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [11:14:02]line СÐО: Общий режим [11:14:02]line Чек 57 29.10.2024 11:14 [11:14:02]line Смена: 544 ФФД: 1.0 [11:14:02]line ЗÐМ: 0300000110 [11:14:02]line РÐМ: 0000000000091776 [11:14:02]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [11:14:02]line ФМ: 0000000000871754 [11:14:02]line ФД: 192851 [11:14:02]line ФПД: 118021805192464 [11:14:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T111404&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192851&fm=118021805192464&tin=02508201610067®Number=0000000000091776&sum=50000 [11:14:02]OFD Sender: Processing packet 192851 [packets to send 75, broken 74] [11:14:02]ProducePacketName [11:14:02]name=ofd_packets/00192851 [11:14:02]OFD Sender: To server: ‡•öpG, [11:14:02]CommunicateWithHost lk.salyk.kg:30040 [11:14:02]ConnectInit lk.salyk.kg [11:14:02]written 0, free lines is 4095 [11:14:02]Connected sock=10 [11:14: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 F3 5B 07 01 00 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 7C C3 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 6B 57 17 C6 35 10 71 A3 2D A7 B0 93 D4 79 [11:14: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 D8 9D 47 00 FE B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 53 F1 02 00 F4 03 04 00 3D 68 20 67 B6 04 01 00 00 B8 43 EE 89 F7 5E CA 33 [11:14:02]CommunicateWithHost err = 0 [11:14:02]CheckOFDResponse [11:14:02]1017 (14) - 77093643461234 [11:14:02]1041 (16) - 0000000000871754 [11:14:02]1040 (4) - 192851 [11:14:02]1012 (4) - 29.10.2024 04:44 [11:14:02]1206 (1) - 0 [11:14:02]OFD Sender: Remove packet 192851 [11:14:02]ProducePacketName [11:14:02]name=ofd_packets/00192851 [11:14:02]NVStorageDeleteData [11:14:02]Write to MH i2c: 01 00 00 C6 29 EF [11:14:02]Write i2c OK [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: 01 [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: 01 07 00 [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: 01 07 00 C6 29 00 00 00 00 00 A3 0C A5 [11:14:02]RasterBufferAndPrint [11:14:02]line [11:14:02]line [11:14:02]line [11:14:02]line [11:14:02]line [11:14:02]written 0, free lines is 3241 [11:14:02]MH_Cut [11:14:02]Write to MH i2c: D1 01 00 CD 29 01 C8 [11:14:02]Write i2c OK [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: D1 [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: D1 01 00 [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: D1 01 00 CD 29 00 C7 [11:14:02]Write to MH i2c: 01 00 00 CE 29 F7 [11:14:02]Write i2c OK [11:14:02]MH_I2C_Read... [11:14:03]OFD Sender: No OFD packet to send [11:14:03]*** Cut start [11:14:03]*** Partial cut [11:14:03]*** CUTSNS_PIN = 1 [11:14:03]*** CUTSNS_PIN = 0 [11:14:04]*** Brake cut motor [11:14:04]Read from MH i2c: 01 [11:14:04]MH_I2C_Read... [11:14:04]*** Stop cut motor [11:14:04]*** Cut end [11:14:04]Read from MH i2c: 01 07 00 [11:14:04]MH_I2C_Read... [11:14:04]Read from MH i2c: 01 07 00 CE 29 00 00 00 00 00 FF 0F 0C [11:14:04]process_action close_receipt done [11:14:04]requested_data is exist [11:14:04]produce_requested_data [11:14:04]requested_item fm.sn is exist - process it [11:14:04]wFMCommunicate request_size=4 [11:14:04]MH_SAM_APDU [11:14:04]CAPDU: 80 11 00 00 [11:14:04]Write to MH i2c: E2 08 00 CF 29 80 11 00 00 00 00 00 00 72 [11:14:04]Write i2c OK [11:14:04]MH_I2C_Read... [11:14:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:04]Read from MH i2c: E2 [11:14:04]MH_I2C_Read... [11:14:04]Read from MH i2c: E2 17 00 [11:14:04]MH_I2C_Read... [11:14:04]Read from MH i2c: E2 17 00 CF 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C5 [11:14: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:14:04]wFMCommunicate OK [11:14:04]requested_item fd.num is exist - process it [11:14:04]SAM_PROTO_GetFieldsCounters [11:14:04]wFMCommunicate request_size=4 [11:14:04]MH_SAM_APDU [11:14:04]CAPDU: 80 13 00 00 [11:14:04]Write to MH i2c: E2 08 00 D0 29 80 13 00 00 00 00 00 00 75 [11:14:04]Write i2c OK [11:14:04]MH_I2C_Read... [11:14:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:04]Read from MH i2c: E2 [11:14:04]MH_I2C_Read... [11:14:04]Read from MH i2c: E2 62 00 [11:14:04]MH_I2C_Read... [11:14:04]Read from MH i2c: E2 62 00 D0 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 53 F1 02 00 0E 04 04 00 20 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 AE [11:14: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 53 F1 02 00 0E 04 04 00 20 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 [11:14:04]wFMCommunicate OK [11:14:04]SAM_PROTO_GetFieldsCounters done [11:14:04]requested_item shift.num is exist - process it [11:14:04]requested_item shift.opened is exist - process it [11:14:04]req_shift_opened [11:14:04]FM_GetShiftState [11:14:04]SAM_PROTO_GetShiftState [11:14:04]wFMCommunicate request_size=4 [11:14:04]MH_SAM_APDU [11:14:04]CAPDU: 80 13 01 00 [11:14:04]Write to MH i2c: E2 08 00 D1 29 80 13 01 00 00 00 00 00 77 [11:14:04]Write i2c OK [11:14:04]MH_I2C_Read... [11:14:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:04]Read from MH i2c: E2 [11:14:04]MH_I2C_Read... [11:14:04]Read from MH i2c: E2 0E 00 [11:14:04]MH_I2C_Read... [11:14:04]Read from MH i2c: E2 0E 00 D1 29 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 7D [11:14:04]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:14:04]wFMCommunicate OK [11:14:04]SAM_PROTO_GetShiftState done [11:14:04]FM_GetShiftState done [11:14:04]req_shift_opened done [11:14:04]requested_item shift.open_date is exist - process it [11:14:04]req_shift_open_date [11:14:04]req_shift_open_date done [11:14:04]produce_requested_data done [11:14:04]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192851,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [11:14:04]process_action_free close_receipt [11:14:04]json_value_free [11:14:04]json_value_free done [11:14:04]process_json_proto returns [11:14:04]Send response to host [11:14:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192851,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [11:14:04]free response buf [11:14:04]execute_script done [11:14:04]execute_script returns [11:14:04]free content buf [11:14:04]Sock 9.Close socket [11:14:04]Sock 9.Thread stoped [11:14:08]OFD Sender: No OFD packet to send [11:14:13]OFD Sender: No OFD packet to send [11:14:18]OFD Sender: No OFD packet to send [11:14:23]OFD Sender: No OFD packet to send [11:14:28]OFD Sender: No OFD packet to send [11:14:33]OFD Sender: No OFD packet to send [11:14:38]OFD Sender: No OFD packet to send [11:14:43]OFD Sender: No OFD packet to send [11:14:48]OFD Sender: No OFD packet to send [11:14:53]OFD Sender: No OFD packet to send [11:14:58]OFD Sender: No OFD packet to send [11:15:03]OFD Sender: No OFD packet to send [11:15:08]OFD Sender: No OFD packet to send [11:15:13]OFD Sender: No OFD packet to send [11:15:18]OFD Sender: No OFD packet to send [11:15:23]OFD Sender: No OFD packet to send [11:15:28]OFD Sender: No OFD packet to send [11:15:30]accept exits with 8 [11:15:30]New connection [11:15:30]New thread 3066801508 created [11:15:30]Thread 3066658148 joined [11:15:30]Waiting for new connection... [11:15:30] Sock 8.Parse request [11:15:30]Sock 8.Check first char [11:15:30]Sock 8.First char is OK [11:15:30]request: POST /json_proto HTTP/1.0 [11:15:30]Method: POST [11:15:30]URL: /json_proto [11:15:30]Method is POST - this is cgi request [11:15:30]url: /json_proto [11:15:30]query_string will be loaded in cgi processing [11:15:30]execute_cgi json_proto POST (null) [11:15:30]execute_cgi path=json_proto method=POST [11:15:30]POST find Content-Length [11:15:30]Host: 172.17.63.131:8080 [11:15:30]Content-Length: 676 [11:15:30]Content-Type: application/json [11:15:30] [11:15:30]POST finish read [11:15:30]Found Content-Length = 676 [11:15:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32181", "tax_sys" : 0, "items" : [ { "pre_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.830, "sum" : 390.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 390.00, "total" : 390.00, "payments": [ { "type": 0, "sum" : 390.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:30]execute_script... [11:15: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)32181", "tax_sys" : 0, "items" : [ { "pre_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.830, "sum" : 390.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 390.00, "total" : 390.00, "payments": [ { "type": 0, "sum" : 390.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:30]POST & json_proto [11:15:30]process_json_proto [11:15:30]json parsed OK: [11:15:30]protocol is kg_v1.0 [11:15:30]action value=close_receipt [11:15:30]process_action close_receipt [11:15:30]cmd_close_receipt [11:15:30]MH_GetDate [11:15:30]Write to MH i2c: F0 00 00 D2 29 EA [11:15:30]Write i2c OK [11:15:30]MH_I2C_Read... [11:15:30]Read from MH i2c: F0 [11:15:30]MH_I2C_Read... [11:15:30]Read from MH i2c: F0 09 00 [11:15:30]MH_I2C_Read... [11:15:30]Read from MH i2c: F0 09 00 D2 29 00 D7 C3 20 67 22 05 6E 64 0D [11:15:30]GetLastDocTimeStamp 1730200444 [11:15:30]current date 1730200535 [11:15:30]FM_GetShiftState [11:15:30]SAM_PROTO_GetShiftState [11:15:30]wFMCommunicate request_size=4 [11:15:30]MH_SAM_APDU [11:15:30]CAPDU: 80 13 01 00 [11:15:30]Write to MH i2c: E2 08 00 D3 29 80 13 01 00 00 00 00 00 79 [11:15:30]Write i2c OK [11:15:30]MH_I2C_Read... [11:15:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:30]Read from MH i2c: E2 [11:15:30]MH_I2C_Read... [11:15:30]Read from MH i2c: E2 0E 00 [11:15:30]MH_I2C_Read... [11:15:30]Read from MH i2c: E2 0E 00 D3 29 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 7F [11:15:30]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:15:30]wFMCommunicate OK [11:15:30]SAM_PROTO_GetShiftState done [11:15:30]FM_GetShiftState done [11:15:30]opened in 1730161990 [11:15:30]opened+sec_in_day 1730248390 [11:15:30]quantity*price = 39002 [11:15:30]sum+1 = 39004 [11:15:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.03 ИТОГО: 390.00 ВнеÑено: 390.00 СДÐЧÐ: 0.00 ÐСП 1% : 3.45 ÐДС 12% : 41.42 Ðаличными: 390.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 170 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 СÐО: Общий режим Чек 58 29.10.2024 11:15 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192852 ФПД: 252688709019004 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T111535&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192852&fm=252688709019004&tin=02508201610067®Number=0000000000091776&sum=39000 [11:15:31]StoreToDocumentArchive [11:15:31]shift 544 fd 192852 [11:15:31]save to /storage/0544/doc_00192852 [11:15:31]save last doc name /storage/0544/doc_00192852 to /storage/kkm_last_doc_name [11:15:31]save OK [11:15:31]Clear old archive folders... [11:15:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:15:31]tlvbuf is 00FEF250 [11:15:31]SAM_PROTO_ClearQueue [11:15:31]wFMCommunicate request_size=4 [11:15:31]MH_SAM_APDU [11:15:31]CAPDU: 80 09 00 00 [11:15:31]Write to MH i2c: E2 08 00 E0 29 80 09 00 00 00 00 00 00 7B [11:15:31]Write i2c OK [11:15:31]MH_I2C_Read... [11:15:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:15:31]Read from MH i2c: E2 [11:15:31]MH_I2C_Read... [11:15:31]Read from MH i2c: E2 03 00 [11:15:31]MH_I2C_Read... [11:15:31]Read from MH i2c: E2 03 00 E0 29 00 90 00 7D [11:15:31]RAPDU: 90 00 [11:15:31]wFMCommunicate OK [11:15:31]SAM_PROTO_ClearQueue done [11:15:31]KKMCreateOFDPacket [11:15:31]OFDProtocolAddRootSTLVToBuf [11:15:31]FM_MakeSignedData [11:15:31]FM_MakeSignedData [11:15:31]SAM_PROTO_SignData [11:15:31]wFMCommunicate request_size=4 [11:15:31]MH_SAM_APDU [11:15:31]CAPDU: 80 0D 01 02 [11:15:31]Write to MH i2c: E2 08 00 E1 29 80 0D 01 02 00 00 00 00 83 [11:15:31]Write i2c OK [11:15:31]MH_I2C_Read... [11:15:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:15:31]Read from MH i2c: E2 [11:15:31]MH_I2C_Read... [11:15:31]Read from MH i2c: E2 03 00 [11:15:31]MH_I2C_Read... [11:15:31]Read from MH i2c: E2 03 00 E1 29 00 90 00 7E [11:15:31]RAPDU: 90 00 [11:15:31]wFMCommunicate OK [11:15:31]wFMCommunicate request_size=255 [11:15:31]MH_SAM_APDU [11:15: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 C6 16 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5B 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 D7 C3 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 E5 [11:15:31]Write to MH i2c: E2 02 01 E2 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 C6 16 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5B 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 D7 C3 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 E5 00 00 BE [11:15:31]Write i2c OK [11:15:31]MH_I2C_Read... [11:15:32]Read from MH i2c: E2 [11:15:32]MH_I2C_Read... [11:15:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:32]Read from MH i2c: E2 03 00 [11:15:32]MH_I2C_Read... [11:15:32]Read from MH i2c: E2 03 00 E2 29 00 90 00 7F [11:15:32]RAPDU: 90 00 [11:15:32]wFMCommunicate OK [11:15:32]wFMCommunicate request_size=10 [11:15:32]MH_SAM_APDU [11:15:32]CAPDU: 80 0D 02 02 05 D1 AC BD 65 7C [11:15:32]Write to MH i2c: E2 0D 00 E3 29 80 0D 02 02 05 00 D1 AC BD 65 7C 00 00 AB [11:15:32]Write i2c OK [11:15:32]MH_I2C_Read... [11:15:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:32]Read from MH i2c: E2 [11:15:32]MH_I2C_Read... [11:15:32]Read from MH i2c: E2 03 00 [11:15:32]MH_I2C_Read... [11:15:32]Read from MH i2c: E2 03 00 E3 29 00 90 00 80 [11:15:32]RAPDU: 90 00 [11:15:32]wFMCommunicate OK [11:15:32]wFMCommunicate request_size=4 [11:15:32]MH_SAM_APDU [11:15:32]CAPDU: 80 0D 03 02 [11:15:32]Write to MH i2c: E2 08 00 E4 29 80 0D 03 02 00 00 00 00 88 [11:15:32]Write i2c OK [11:15:32]MH_I2C_Read... [11:15:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:15:32]Read from MH i2c: E2 [11:15:32]MH_I2C_Read... [11:15:32]Read from MH i2c: E2 0B 00 [11:15:32]MH_I2C_Read... [11:15:32]Read from MH i2c: E2 0B 00 E4 29 00 BA 88 10 73 03 E4 2D E4 90 00 46 [11:15:32]RAPDU: BA 88 10 73 03 E4 2D E4 90 00 [11:15:32]wFMCommunicate OK [11:15:32]SAM_PROTO_SignData done [11:15:32]FM_MakeSignedData done [11:15:32]CreateOFDProtocolMessage [11:15:32]wFMCommunicate request_size=4 [11:15:32]MH_SAM_APDU [11:15:32]CAPDU: 80 11 00 00 [11:15:32]Write to MH i2c: E2 08 00 E5 29 80 11 00 00 00 00 00 00 88 [11:15:32]Write i2c OK [11:15:32]MH_I2C_Read... [11:15:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:32]Read from MH i2c: E2 [11:15:32]MH_I2C_Read... [11:15:32]Read from MH i2c: E2 17 00 [11:15:32]MH_I2C_Read... [11:15:32]Read from MH i2c: E2 17 00 E5 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DB [11:15: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:15:32]wFMCommunicate OK [11:15:32]CreateOFDProtocolMessage done [11:15:32]OFDSenderStorePacket 192852 [11:15:32]StoreOFDPacket docnum=192852 [11:15: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 BC 3A 07 01 17 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 C6 16 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5B 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 D7 C3 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 E5 D1 AC BD 65 7C BA 88 10 73 03 E4 2D E4 [11:15:32]CheckFolder [11:15:32]dirname=/storage/ofd_packets [11:15:32]CheckFolder done [11:15:32]ProducePacketName [11:15:32]name=ofd_packets/00192852 [11:15:32]NVStorageSaveData ofd_packets/00192852 [11:15:32]File name is /storage/ofd_packets/00192852 [11:15:32]Write 301 bytes [11:15:32]NVStorageSaveData done [11:15:32]OFDSenderStorePacket done [11:15:32]KKMCreateOFDPacket done [11:15:32]NVStorageSaveData kkm_last_timestamp [11:15:32]File name is /storage/kkm_last_timestamp [11:15:32]Write 4 bytes [11:15:32]NVStorageSaveData done [11:15:32]ExternCall_PrintAddStr [11:15:32]wPrintStart [11:15:32]Write to MH i2c: 01 00 00 E6 29 0F [11:15:32]Write i2c OK [11:15:32]MH_I2C_Read... [11:15:32]Read from MH i2c: 01 [11:15:32]MH_I2C_Read... [11:15:32]Read from MH i2c: 01 07 00 [11:15:32]MH_I2C_Read... [11:15:32]Read from MH i2c: 01 07 00 E6 29 00 00 00 00 00 FF 0F 24 [11:15:32]RasterBufferAndPrint [11:15:32]line Счет N : (1)32181 [11:15:32]line ИÐÐ: 02508201610067 [11:15:32]line Контрольно-КаÑÑовый Чек [11:15:32]line ПРОДÐЖР[11:15:32]line ТРК (МРК, ГÐК) : 21 [11:15:32]line Товар: 2710124130 [11:15:32]line Ðи-92-К-5 [11:15:32]line 5.830 * 66.90 [11:15:32]line = 390.03 [11:15:32]line ÐДС 12% ÐСП 1% [11:15:32]line > о реализуемом товаре [11:15:32]line ОКРУГЛЕÐИЕ: -0.03 [11:15:32]line ИТОГО: 390.00 [11:15:32]line ВнеÑено: 390.00 [11:15:32]line СДÐЧÐ: 0.00 [11:15:32]line ÐСП 1% : 3.45 [11:15:32]line ÐДС 12% : 41.42 [11:15:32]line Ðаличными: 390.00 [11:15:32]line Безнал.: 0.00 [11:15:32]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [11:15:32]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [11:15:32]line СÐО: Общий режим [11:15:32]line Чек 58 29.10.2024 11:15 [11:15:32]line Смена: 544 ФФД: 1.0 [11:15:32]line ЗÐМ: 0300000110 [11:15:32]line РÐМ: 0000000000091776 [11:15:32]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [11:15:32]line ФМ: 0000000000871754 [11:15:32]line ФД: 192852 [11:15:32]line ФПД: 252688709019004 [11:15:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T111535&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192852&fm=252688709019004&tin=02508201610067®Number=0000000000091776&sum=39000 [11:15:32]OFD Sender: Processing packet 192852 [packets to send 75, broken 74] [11:15:32]ProducePacketName [11:15:32]name=ofd_packets/00192852 [11:15:32]OFD Sender: To server: ‡•öpG, [11:15:32]CommunicateWithHost lk.salyk.kg:30040 [11:15:32]ConnectInit lk.salyk.kg [11:15:32]written 0, free lines is 4095 [11:15:32]Connected sock=10 [11:15: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 BC 3A 07 01 17 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 C6 16 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5B 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 D7 C3 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 E5 D1 AC BD 65 7C BA 88 10 73 03 E4 2D E4 [11:15: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 20 18 47 00 BF 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 54 F1 02 00 F4 03 04 00 97 68 20 67 B6 04 01 00 00 32 D0 61 46 58 E6 E5 65 [11:15:33]CommunicateWithHost err = 0 [11:15:33]CheckOFDResponse [11:15:33]1017 (14) - 77093643461234 [11:15:33]1041 (16) - 0000000000871754 [11:15:33]1040 (4) - 192852 [11:15:33]1012 (4) - 29.10.2024 04:46 [11:15:33]1206 (1) - 0 [11:15:33]OFD Sender: Remove packet 192852 [11:15:33]ProducePacketName [11:15:33]name=ofd_packets/00192852 [11:15:33]NVStorageDeleteData [11:15:33]Write to MH i2c: 01 00 00 11 2A 3B [11:15:33]Write i2c OK [11:15:33]MH_I2C_Read... [11:15:33]Read from MH i2c: 01 [11:15:33]MH_I2C_Read... [11:15:33]Read from MH i2c: 01 07 00 [11:15:33]MH_I2C_Read... [11:15:33]Read from MH i2c: 01 07 00 11 2A 00 00 00 00 00 BC 0C 0A [11:15:33]RasterBufferAndPrint [11:15:33]line [11:15:33]line [11:15:33]line [11:15:33]line [11:15:33]line [11:15:33]written 0, free lines is 3267 [11:15:33]MH_Cut [11:15:33]Write to MH i2c: D1 01 00 18 2A 01 14 [11:15:33]Write i2c OK [11:15:33]MH_I2C_Read... [11:15:33]Read from MH i2c: D1 [11:15:33]MH_I2C_Read... [11:15:33]Read from MH i2c: D1 01 00 [11:15:33]MH_I2C_Read... [11:15:33]Read from MH i2c: D1 01 00 18 2A 00 13 [11:15:33]Write to MH i2c: 01 00 00 19 2A 43 [11:15:33]Write i2c OK [11:15:33]MH_I2C_Read... [11:15:33]OFD Sender: No OFD packet to send [11:15:34]*** Cut start [11:15:34]*** Partial cut [11:15:34]*** CUTSNS_PIN = 1 [11:15:34]*** CUTSNS_PIN = 0 [11:15:34]*** Brake cut motor [11:15:34]Read from MH i2c: 01 [11:15:34]MH_I2C_Read... [11:15:34]*** Stop cut motor [11:15:34]*** Cut end [11:15:34]Read from MH i2c: 01 07 00 [11:15:34]MH_I2C_Read... [11:15:34]Read from MH i2c: 01 07 00 19 2A 00 00 00 00 00 FF 0F 58 [11:15:34]process_action close_receipt done [11:15:34]requested_data is exist [11:15:34]produce_requested_data [11:15:34]requested_item fm.sn is exist - process it [11:15:34]wFMCommunicate request_size=4 [11:15:34]MH_SAM_APDU [11:15:34]CAPDU: 80 11 00 00 [11:15:34]Write to MH i2c: E2 08 00 1A 2A 80 11 00 00 00 00 00 00 BE [11:15:34]Write i2c OK [11:15:34]MH_I2C_Read... [11:15:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:34]Read from MH i2c: E2 [11:15:34]MH_I2C_Read... [11:15:34]Read from MH i2c: E2 17 00 [11:15:34]MH_I2C_Read... [11:15:34]Read from MH i2c: E2 17 00 1A 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 11 [11:15:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:15:34]wFMCommunicate OK [11:15:34]requested_item fd.num is exist - process it [11:15:34]SAM_PROTO_GetFieldsCounters [11:15:34]wFMCommunicate request_size=4 [11:15:34]MH_SAM_APDU [11:15:34]CAPDU: 80 13 00 00 [11:15:34]Write to MH i2c: E2 08 00 1B 2A 80 13 00 00 00 00 00 00 C1 [11:15:34]Write i2c OK [11:15:34]MH_I2C_Read... [11:15:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:15:34]Read from MH i2c: E2 [11:15:34]MH_I2C_Read... [11:15:34]Read from MH i2c: E2 62 00 [11:15:34]MH_I2C_Read... [11:15:34]Read from MH i2c: E2 62 00 1B 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 54 F1 02 00 0E 04 04 00 20 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 FE [11:15: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 F1 02 00 0E 04 04 00 20 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 [11:15:34]wFMCommunicate OK [11:15:34]SAM_PROTO_GetFieldsCounters done [11:15:34]requested_item shift.num is exist - process it [11:15:34]requested_item shift.opened is exist - process it [11:15:34]req_shift_opened [11:15:34]FM_GetShiftState [11:15:34]SAM_PROTO_GetShiftState [11:15:34]wFMCommunicate request_size=4 [11:15:34]MH_SAM_APDU [11:15:34]CAPDU: 80 13 01 00 [11:15:34]Write to MH i2c: E2 08 00 1C 2A 80 13 01 00 00 00 00 00 C3 [11:15:34]Write i2c OK [11:15:34]MH_I2C_Read... [11:15:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:34]Read from MH i2c: E2 [11:15:34]MH_I2C_Read... [11:15:34]Read from MH i2c: E2 0E 00 [11:15:34]MH_I2C_Read... [11:15:34]Read from MH i2c: E2 0E 00 1C 2A 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 C9 [11:15:34]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:15:34]wFMCommunicate OK [11:15:34]SAM_PROTO_GetShiftState done [11:15:34]FM_GetShiftState done [11:15:34]req_shift_opened done [11:15:34]requested_item shift.open_date is exist - process it [11:15:34]req_shift_open_date [11:15:34]req_shift_open_date done [11:15:34]produce_requested_data done [11:15:34]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192852,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [11:15:34]process_action_free close_receipt [11:15:34]json_value_free [11:15:34]json_value_free done [11:15:34]process_json_proto returns [11:15:34]Send response to host [11:15:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192852,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [11:15:34]free response buf [11:15:34]execute_script done [11:15:34]execute_script returns [11:15:34]free content buf [11:15:34]Sock 8.Close socket [11:15:34]Sock 8.Thread stoped [11:15:38]OFD Sender: No OFD packet to send [11:15:43]OFD Sender: No OFD packet to send [11:15:48]OFD Sender: No OFD packet to send [11:15:53]OFD Sender: No OFD packet to send [11:15:58]OFD Sender: No OFD packet to send [11:16:03]OFD Sender: No OFD packet to send [11:16:08]OFD Sender: No OFD packet to send [11:16:13]OFD Sender: No OFD packet to send [11:16:18]OFD Sender: No OFD packet to send [11:16:23]OFD Sender: No OFD packet to send [11:16:28]OFD Sender: No OFD packet to send [11:16:33]OFD Sender: No OFD packet to send [11:16:38]OFD Sender: No OFD packet to send [11:16:43]OFD Sender: No OFD packet to send [11:16:48]OFD Sender: No OFD packet to send [11:16:53]OFD Sender: No OFD packet to send [11:16:58]OFD Sender: No OFD packet to send [11:17:03]OFD Sender: No OFD packet to send [11:17:08]OFD Sender: No OFD packet to send [11:17:13]OFD Sender: No OFD packet to send [11:17:18]OFD Sender: No OFD packet to send [11:17:23]OFD Sender: No OFD packet to send [11:17:28]OFD Sender: No OFD packet to send [11:17:33]OFD Sender: No OFD packet to send [11:17:38]OFD Sender: No OFD packet to send [11:17:43]OFD Sender: No OFD packet to send [11:17:48]OFD Sender: No OFD packet to send [11:17:53]OFD Sender: No OFD packet to send [11:17:58]OFD Sender: No OFD packet to send [11:18:03]OFD Sender: No OFD packet to send [11:18:08]OFD Sender: No OFD packet to send [11:18:13]OFD Sender: No OFD packet to send [11:18:18]OFD Sender: No OFD packet to send [11:18:23]OFD Sender: No OFD packet to send [11:18:28]OFD Sender: No OFD packet to send [11:18:33]OFD Sender: No OFD packet to send [11:18:38]OFD Sender: No OFD packet to send [11:18:43]OFD Sender: No OFD packet to send [11:18:48]OFD Sender: No OFD packet to send [11:18:53]OFD Sender: No OFD packet to send [11:18:58]OFD Sender: No OFD packet to send [11:19:03]OFD Sender: No OFD packet to send [11:19:08]OFD Sender: No OFD packet to send [11:19:13]OFD Sender: No OFD packet to send [11:19:18]OFD Sender: No OFD packet to send [11:19:23]OFD Sender: No OFD packet to send [11:19:28]OFD Sender: No OFD packet to send [11:19:33]OFD Sender: No OFD packet to send [11:19:38]OFD Sender: No OFD packet to send [11:19:43]OFD Sender: No OFD packet to send [11:19:48]OFD Sender: No OFD packet to send [11:19:53]OFD Sender: No OFD packet to send [11:19:58]OFD Sender: No OFD packet to send [11:20:03]OFD Sender: No OFD packet to send [11:20:08]OFD Sender: No OFD packet to send [11:20:13]OFD Sender: No OFD packet to send [11:20:18]OFD Sender: No OFD packet to send [11:20:23]OFD Sender: No OFD packet to send [11:20:28]OFD Sender: No OFD packet to send [11:20:33]OFD Sender: No OFD packet to send [11:20:38]OFD Sender: No OFD packet to send [11:20:43]OFD Sender: No OFD packet to send [11:20:48]OFD Sender: No OFD packet to send [11:20:53]OFD Sender: No OFD packet to send [11:20:58]OFD Sender: No OFD packet to send [11:21:03]OFD Sender: No OFD packet to send [11:21:08]OFD Sender: No OFD packet to send [11:21:13]OFD Sender: No OFD packet to send [11:21:18]OFD Sender: No OFD packet to send [11:21:23]OFD Sender: No OFD packet to send [11:21:28]OFD Sender: No OFD packet to send [11:21:33]OFD Sender: No OFD packet to send [11:21:38]OFD Sender: No OFD packet to send [11:21:43]OFD Sender: No OFD packet to send [11:21:48]OFD Sender: No OFD packet to send [11:21:53]OFD Sender: No OFD packet to send [11:21:58]OFD Sender: No OFD packet to send [11:22:03]OFD Sender: No OFD packet to send [11:22:08]OFD Sender: No OFD packet to send [11:22:13]OFD Sender: No OFD packet to send [11:22:14]accept exits with 9 [11:22:14]New connection [11:22:14]New thread 3066658148 created [11:22:14]Thread 3066801508 joined [11:22:14]Waiting for new connection... [11:22:14] Sock 9.Parse request [11:22:14]Sock 9.Check first char [11:22:14]Sock 9.First char is OK [11:22:14]request: POST /json_proto HTTP/1.0 [11:22:14]Method: POST [11:22:14]URL: /json_proto [11:22:14]Method is POST - this is cgi request [11:22:14]url: /json_proto [11:22:14]query_string will be loaded in cgi processing [11:22:14]execute_cgi json_proto POST (null) [11:22:14]execute_cgi path=json_proto method=POST [11:22:14]POST find Content-Length [11:22:14]Host: 172.17.63.131:8080 [11:22:14]Content-Length: 676 [11:22:14]Content-Type: application/json [11:22:14] [11:22:14]POST finish read [11:22:14]Found Content-Length = 676 [11:22:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32182", "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" ] } } [11:22:14]execute_script... [11:22: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)32182", "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" ] } } [11:22:14]POST & json_proto [11:22:14]process_json_proto [11:22:14]json parsed OK: [11:22:14]protocol is kg_v1.0 [11:22:14]action value=close_receipt [11:22:14]process_action close_receipt [11:22:14]cmd_close_receipt [11:22:14]MH_GetDate [11:22:14]Write to MH i2c: F0 00 00 1D 2A 36 [11:22:14]Write i2c OK [11:22:14]MH_I2C_Read... [11:22:14]Read from MH i2c: F0 [11:22:14]MH_I2C_Read... [11:22:14]Read from MH i2c: F0 09 00 [11:22:14]MH_I2C_Read... [11:22:14]Read from MH i2c: F0 09 00 1D 2A 00 6B C5 20 67 22 05 6E 64 EF [11:22:14]GetLastDocTimeStamp 1730200535 [11:22:14]current date 1730200939 [11:22:14]FM_GetShiftState [11:22:14]SAM_PROTO_GetShiftState [11:22:14]wFMCommunicate request_size=4 [11:22:14]MH_SAM_APDU [11:22:14]CAPDU: 80 13 01 00 [11:22:14]Write to MH i2c: E2 08 00 1E 2A 80 13 01 00 00 00 00 00 C5 [11:22:14]Write i2c OK [11:22:14]MH_I2C_Read... [11:22:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:14]Read from MH i2c: E2 [11:22:14]MH_I2C_Read... [11:22:14]Read from MH i2c: E2 0E 00 [11:22:14]MH_I2C_Read... [11:22:14]Read from MH i2c: E2 0E 00 1E 2A 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 CB [11:22:14]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:22:14]wFMCommunicate OK [11:22:14]SAM_PROTO_GetShiftState done [11:22:14]FM_GetShiftState done [11:22:14]opened in 1730161990 [11:22:14]opened+sec_in_day 1730248390 [11:22:14]quantity*price = 60009 [11:22:14]sum+1 = 60010 [11:22:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.09 ИТОГО: 600.00 ВнеÑено: 600.00 СДÐЧÐ: 0.00 ÐСП 1% : 5.31 ÐДС 12% : 63.73 Ðаличными: 600.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 170 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 СÐО: Общий режим Чек 59 29.10.2024 11:22 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192853 ФПД: 241862317718101 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T112219&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192853&fm=241862317718101&tin=02508201610067®Number=0000000000091776&sum=60000 [11:22:16]StoreToDocumentArchive [11:22:16]shift 544 fd 192853 [11:22:16]save to /storage/0544/doc_00192853 [11:22:16]save last doc name /storage/0544/doc_00192853 to /storage/kkm_last_doc_name [11:22:16]save OK [11:22:16]Clear old archive folders... [11:22:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:22:16]tlvbuf is 00FC2F00 [11:22:16]SAM_PROTO_ClearQueue [11:22:16]wFMCommunicate request_size=4 [11:22:16]MH_SAM_APDU [11:22:16]CAPDU: 80 09 00 00 [11:22:16]Write to MH i2c: E2 08 00 2B 2A 80 09 00 00 00 00 00 00 C7 [11:22:16]Write i2c OK [11:22:16]MH_I2C_Read... [11:22:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:22:16]Read from MH i2c: E2 [11:22:16]MH_I2C_Read... [11:22:16]Read from MH i2c: E2 03 00 [11:22:16]MH_I2C_Read... [11:22:16]Read from MH i2c: E2 03 00 2B 2A 00 90 00 C9 [11:22:16]RAPDU: 90 00 [11:22:16]wFMCommunicate OK [11:22:16]SAM_PROTO_ClearQueue done [11:22:16]KKMCreateOFDPacket [11:22:16]OFDProtocolAddRootSTLVToBuf [11:22:16]FM_MakeSignedData [11:22:16]FM_MakeSignedData [11:22:16]SAM_PROTO_SignData [11:22:16]wFMCommunicate request_size=4 [11:22:16]MH_SAM_APDU [11:22:16]CAPDU: 80 0D 01 02 [11:22:16]Write to MH i2c: E2 08 00 2C 2A 80 0D 01 02 00 00 00 00 CF [11:22:16]Write i2c OK [11:22:16]MH_I2C_Read... [11:22:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:22:16]Read from MH i2c: E2 [11:22:16]MH_I2C_Read... [11:22:16]Read from MH i2c: E2 03 00 [11:22:16]MH_I2C_Read... [11:22:16]Read from MH i2c: E2 03 00 2C 2A 00 90 00 CA [11:22:16]RAPDU: 90 00 [11:22:16]wFMCommunicate OK [11:22:16]wFMCommunicate request_size=255 [11:22:16]MH_SAM_APDU [11: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 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 3B 00 00 00 F4 03 04 00 6B C5 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 DB [11:22:16]Write to MH i2c: E2 02 01 2D 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 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 3B 00 00 00 F4 03 04 00 6B C5 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 DB 00 00 77 [11:22:16]Write i2c OK [11:22:16]MH_I2C_Read... [11:22:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:16]Read from MH i2c: E2 [11:22:16]MH_I2C_Read... [11:22:16]Read from MH i2c: E2 03 00 [11:22:16]MH_I2C_Read... [11:22:16]Read from MH i2c: E2 03 00 2D 2A 00 90 00 CB [11:22:16]RAPDU: 90 00 [11:22:16]wFMCommunicate OK [11:22:16]wFMCommunicate request_size=10 [11:22:16]MH_SAM_APDU [11:22:16]CAPDU: 80 0D 02 02 05 F8 F5 88 3A 55 [11:22:16]Write to MH i2c: E2 0D 00 2E 2A 80 0D 02 02 05 00 F8 F5 88 3A 55 00 00 E0 [11:22:16]Write i2c OK [11:22:16]MH_I2C_Read... [11:22:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:16]Read from MH i2c: E2 [11:22:16]MH_I2C_Read... [11:22:16]Read from MH i2c: E2 03 00 [11:22:16]MH_I2C_Read... [11:22:16]Read from MH i2c: E2 03 00 2E 2A 00 90 00 CC [11:22:16]RAPDU: 90 00 [11:22:16]wFMCommunicate OK [11:22:16]wFMCommunicate request_size=4 [11:22:16]MH_SAM_APDU [11:22:16]CAPDU: 80 0D 03 02 [11:22:16]Write to MH i2c: E2 08 00 2F 2A 80 0D 03 02 00 00 00 00 D4 [11:22:16]Write i2c OK [11:22:16]MH_I2C_Read... [11:22:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:22:16]Read from MH i2c: E2 [11:22:16]MH_I2C_Read... [11:22:16]Read from MH i2c: E2 0B 00 [11:22:16]MH_I2C_Read... [11:22:16]Read from MH i2c: E2 0B 00 2F 2A 00 40 4A DF 8C 74 F3 D4 ED 90 00 F2 [11:22:16]RAPDU: 40 4A DF 8C 74 F3 D4 ED 90 00 [11:22:16]wFMCommunicate OK [11:22:16]SAM_PROTO_SignData done [11:22:16]FM_MakeSignedData done [11:22:16]CreateOFDProtocolMessage [11:22:16]wFMCommunicate request_size=4 [11:22:16]MH_SAM_APDU [11:22:16]CAPDU: 80 11 00 00 [11:22:16]Write to MH i2c: E2 08 00 30 2A 80 11 00 00 00 00 00 00 D4 [11:22:16]Write i2c OK [11:22:16]MH_I2C_Read... [11:22:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:16]Read from MH i2c: E2 [11:22:16]MH_I2C_Read... [11:22:16]Read from MH i2c: E2 17 00 [11:22:16]MH_I2C_Read... [11:22:16]Read from MH i2c: E2 17 00 30 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 27 [11: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 [11:22:16]wFMCommunicate OK [11:22:16]CreateOFDProtocolMessage done [11:22:16]OFDSenderStorePacket 192853 [11:22:16]StoreOFDPacket docnum=192853 [11: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 79 C6 07 01 D2 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 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 3B 00 00 00 F4 03 04 00 6B C5 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 DB F8 F5 88 3A 55 40 4A DF 8C 74 F3 D4 ED [11:22:16]CheckFolder [11:22:16]dirname=/storage/ofd_packets [11:22:16]CheckFolder done [11:22:16]ProducePacketName [11:22:16]name=ofd_packets/00192853 [11:22:16]NVStorageSaveData ofd_packets/00192853 [11:22:16]File name is /storage/ofd_packets/00192853 [11:22:16]Write 301 bytes [11:22:16]NVStorageSaveData done [11:22:16]OFDSenderStorePacket done [11:22:16]KKMCreateOFDPacket done [11:22:16]NVStorageSaveData kkm_last_timestamp [11:22:16]File name is /storage/kkm_last_timestamp [11:22:16]Write 4 bytes [11:22:16]NVStorageSaveData done [11:22:16]ExternCall_PrintAddStr [11:22:16]wPrintStart [11:22:16]Write to MH i2c: 01 00 00 31 2A 5B [11:22:16]Write i2c OK [11:22:16]MH_I2C_Read... [11:22:16]Read from MH i2c: 01 [11:22:16]MH_I2C_Read... [11:22:16]Read from MH i2c: 01 07 00 [11:22:16]MH_I2C_Read... [11:22:16]Read from MH i2c: 01 07 00 31 2A 00 00 00 00 00 FF 0F 70 [11:22:16]RasterBufferAndPrint [11:22:16]line Счет N : (1)32182 [11:22:16]line ИÐÐ: 02508201610067 [11:22:16]line Контрольно-КаÑÑовый Чек [11:22:16]line ПРОДÐЖР[11:22:16]line ТРК (МРК, ГÐК) : 12 [11:22:16]line Товар: 2710124130 [11:22:16]line Ðи-92-К-5 [11:22:16]line 8.970 * 66.90 [11:22:16]line = 600.09 [11:22:16]line ÐДС 12% ÐСП 1% [11:22:16]line > о реализуемом товаре [11:22:16]line ОКРУГЛЕÐИЕ: -0.09 [11:22:16]line ИТОГО: 600.00 [11:22:16]line ВнеÑено: 600.00 [11:22:16]line СДÐЧÐ: 0.00 [11:22:16]line ÐСП 1% : 5.31 [11:22:16]line ÐДС 12% : 63.73 [11:22:16]line Ðаличными: 600.00 [11:22:16]line Безнал.: 0.00 [11:22:16]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [11:22:16]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [11:22:16]line СÐО: Общий режим [11:22:16]line Чек 59 29.10.2024 11:22 [11:22:16]line Смена: 544 ФФД: 1.0 [11:22:16]line ЗÐМ: 0300000110 [11:22:16]line РÐМ: 0000000000091776 [11:22:16]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [11:22:16]line ФМ: 0000000000871754 [11:22:16]line ФД: 192853 [11:22:16]line ФПД: 241862317718101 [11:22:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T112219&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192853&fm=241862317718101&tin=02508201610067®Number=0000000000091776&sum=60000 [11:22:16]OFD Sender: Processing packet 192853 [packets to send 75, broken 74] [11:22:16]ProducePacketName [11:22:16]name=ofd_packets/00192853 [11:22:16]OFD Sender: To server: ‡•öpG, [11:22:16]CommunicateWithHost lk.salyk.kg:30040 [11:22:16]ConnectInit lk.salyk.kg [11:22:16]written 0, free lines is 4095 [11:22:17]Connected sock=10 [11: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 79 C6 07 01 D2 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 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 3B 00 00 00 F4 03 04 00 6B C5 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 DB F8 F5 88 3A 55 40 4A DF 8C 74 F3 D4 ED [11: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 59 38 47 00 86 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 55 F1 02 00 F4 03 04 00 2C 6A 20 67 B6 04 01 00 00 1F 19 A5 FC 54 DD 82 72 [11:22:17]CommunicateWithHost err = 0 [11:22:17]CheckOFDResponse [11:22:17]1017 (14) - 77093643461234 [11:22:17]1041 (16) - 0000000000871754 [11:22:17]1040 (4) - 192853 [11:22:17]1012 (4) - 29.10.2024 04:53 [11:22:17]1206 (1) - 0 [11:22:17]OFD Sender: Remove packet 192853 [11:22:17]ProducePacketName [11:22:17]name=ofd_packets/00192853 [11:22:17]NVStorageDeleteData [11:22:17]Write to MH i2c: 01 00 00 5C 2A 86 [11:22:17]Write i2c OK [11:22:17]MH_I2C_Read... [11:22:17]Read from MH i2c: 01 [11:22:17]MH_I2C_Read... [11:22:17]Read from MH i2c: 01 07 00 [11:22:17]MH_I2C_Read... [11:22:17]Read from MH i2c: 01 07 00 5C 2A 00 00 00 00 00 B4 0C 4D [11:22:17]RasterBufferAndPrint [11:22:17]line [11:22:17]line [11:22:17]line [11:22:17]line [11:22:17]line [11:22:17]written 0, free lines is 3262 [11:22:17]MH_Cut [11:22:17]Write to MH i2c: D1 01 00 63 2A 01 5F [11:22:17]Write i2c OK [11:22:17]MH_I2C_Read... [11:22:17]Read from MH i2c: D1 [11:22:17]MH_I2C_Read... [11:22:17]Read from MH i2c: D1 01 00 [11:22:17]MH_I2C_Read... [11:22:17]Read from MH i2c: D1 01 00 63 2A 00 5E [11:22:17]Write to MH i2c: 01 00 00 64 2A 8E [11:22:17]Write i2c OK [11:22:17]MH_I2C_Read... [11:22:17]OFD Sender: No OFD packet to send [11:22:18]*** Cut start [11:22:18]*** Partial cut [11:22:18]*** CUTSNS_PIN = 1 [11:22:18]*** CUTSNS_PIN = 0 [11:22:18]*** Brake cut motor [11:22:18]Read from MH i2c: 01 [11:22:18]MH_I2C_Read... [11:22:18]*** Stop cut motor [11:22:18]*** Cut end [11:22:18]Read from MH i2c: 01 07 00 [11:22:18]MH_I2C_Read... [11:22:18]Read from MH i2c: 01 07 00 64 2A 00 00 00 00 00 FF 0F A3 [11:22:18]process_action close_receipt done [11:22:18]requested_data is exist [11:22:18]produce_requested_data [11:22:18]requested_item fm.sn is exist - process it [11:22:18]wFMCommunicate request_size=4 [11:22:18]MH_SAM_APDU [11:22:18]CAPDU: 80 11 00 00 [11:22:18]Write to MH i2c: E2 08 00 65 2A 80 11 00 00 00 00 00 00 09 [11:22:18]Write i2c OK [11:22:18]MH_I2C_Read... [11:22:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:18]Read from MH i2c: E2 [11:22:18]MH_I2C_Read... [11:22:18]Read from MH i2c: E2 17 00 [11:22:18]MH_I2C_Read... [11:22:18]Read from MH i2c: E2 17 00 65 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5C [11:22:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:22:18]wFMCommunicate OK [11:22:18]requested_item fd.num is exist - process it [11:22:18]SAM_PROTO_GetFieldsCounters [11:22:18]wFMCommunicate request_size=4 [11:22:18]MH_SAM_APDU [11:22:18]CAPDU: 80 13 00 00 [11:22:18]Write to MH i2c: E2 08 00 66 2A 80 13 00 00 00 00 00 00 0C [11:22:18]Write i2c OK [11:22:18]MH_I2C_Read... [11:22:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:22:19]Read from MH i2c: E2 [11:22:19]MH_I2C_Read... [11:22:19]Read from MH i2c: E2 62 00 [11:22:19]MH_I2C_Read... [11:22:19]Read from MH i2c: E2 62 00 66 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 55 F1 02 00 0E 04 04 00 20 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 4D [11: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 55 F1 02 00 0E 04 04 00 20 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 [11:22:19]wFMCommunicate OK [11:22:19]SAM_PROTO_GetFieldsCounters done [11:22:19]requested_item shift.num is exist - process it [11:22:19]requested_item shift.opened is exist - process it [11:22:19]req_shift_opened [11:22:19]FM_GetShiftState [11:22:19]SAM_PROTO_GetShiftState [11:22:19]wFMCommunicate request_size=4 [11:22:19]MH_SAM_APDU [11:22:19]CAPDU: 80 13 01 00 [11:22:19]Write to MH i2c: E2 08 00 67 2A 80 13 01 00 00 00 00 00 0E [11:22:19]Write i2c OK [11:22:19]MH_I2C_Read... [11:22:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:19]Read from MH i2c: E2 [11:22:19]MH_I2C_Read... [11:22:19]Read from MH i2c: E2 0E 00 [11:22:19]MH_I2C_Read... [11:22:19]Read from MH i2c: E2 0E 00 67 2A 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 14 [11:22:19]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:22:19]wFMCommunicate OK [11:22:19]SAM_PROTO_GetShiftState done [11:22:19]FM_GetShiftState done [11:22:19]req_shift_opened done [11:22:19]requested_item shift.open_date is exist - process it [11:22:19]req_shift_open_date [11:22:19]req_shift_open_date done [11:22:19]produce_requested_data done [11:22:19]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192853,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [11:22:19]process_action_free close_receipt [11:22:19]json_value_free [11:22:19]json_value_free done [11:22:19]process_json_proto returns [11:22:19]Send response to host [11:22:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192853,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [11:22:19]free response buf [11:22:19]execute_script done [11:22:19]execute_script returns [11:22:19]free content buf [11:22:19]Sock 9.Close socket [11:22:19]Sock 9.Thread stoped [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:41]accept exits with 8 [11:22:41]New connection [11:22:41]New thread 3066801508 created [11:22:41]Thread 3066658148 joined [11:22:41]Waiting for new connection... [11:22:41] Sock 8.Parse request [11:22:41]Sock 8.Check first char [11:22:41]Sock 8.First char is OK [11:22:41]request: POST /json_proto HTTP/1.0 [11:22:41]Method: POST [11:22:41]URL: /json_proto [11:22:41]Method is POST - this is cgi request [11:22:41]url: /json_proto [11:22:41]query_string will be loaded in cgi processing [11:22:41]execute_cgi json_proto POST (null) [11:22:41]execute_cgi path=json_proto method=POST [11:22:41]POST find Content-Length [11:22:41]Host: 172.17.63.131:8080 [11:22:41]Content-Length: 676 [11:22:41]Content-Type: application/json [11:22:41] [11:22:41]POST finish read [11:22:41]Found Content-Length = 676 [11:22:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32183", "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:22:41]execute_script... [11:22: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)32183", "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:22:41]POST & json_proto [11:22:41]process_json_proto [11:22:41]json parsed OK: [11:22:41]protocol is kg_v1.0 [11:22:41]action value=close_receipt [11:22:41]process_action close_receipt [11:22:41]cmd_close_receipt [11:22:41]MH_GetDate [11:22:41]Write to MH i2c: F0 00 00 68 2A 81 [11:22:41]Write i2c OK [11:22:41]MH_I2C_Read... [11:22:41]Read from MH i2c: F0 [11:22:41]MH_I2C_Read... [11:22:41]Read from MH i2c: F0 09 00 [11:22:41]MH_I2C_Read... [11:22:41]Read from MH i2c: F0 09 00 68 2A 00 85 C5 20 67 22 05 6E 64 54 [11:22:41]GetLastDocTimeStamp 1730200939 [11:22:41]current date 1730200965 [11:22:41]FM_GetShiftState [11:22:41]SAM_PROTO_GetShiftState [11:22:41]wFMCommunicate request_size=4 [11:22:41]MH_SAM_APDU [11:22:41]CAPDU: 80 13 01 00 [11:22:41]Write to MH i2c: E2 08 00 69 2A 80 13 01 00 00 00 00 00 10 [11:22:41]Write i2c OK [11:22:41]MH_I2C_Read... [11:22:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:41]Read from MH i2c: E2 [11:22:41]MH_I2C_Read... [11:22:41]Read from MH i2c: E2 0E 00 [11:22:41]MH_I2C_Read... [11:22:41]Read from MH i2c: E2 0E 00 69 2A 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 16 [11:22:41]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:22:41]wFMCommunicate OK [11:22:41]SAM_PROTO_GetShiftState done [11:22:41]FM_GetShiftState done [11:22:41]opened in 1730161990 [11:22:41]opened+sec_in_day 1730248390 [11:22:41]quantity*price = 20003 [11:22:41]sum+1 = 20004 [11:22: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 СÐО: Общий режим Чек 60 29.10.2024 11:22 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192854 ФПД: 207099450683093 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T112245&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192854&fm=207099450683093&tin=02508201610067®Number=0000000000091776&sum=20000 [11:22:42]StoreToDocumentArchive [11:22:42]shift 544 fd 192854 [11:22:42]save to /storage/0544/doc_00192854 [11:22:42]save last doc name /storage/0544/doc_00192854 to /storage/kkm_last_doc_name [11:22:42]save OK [11:22:42]Clear old archive folders... [11:22:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:22:42]tlvbuf is 00F93DA0 [11:22:42]SAM_PROTO_ClearQueue [11:22:42]wFMCommunicate request_size=4 [11:22:42]MH_SAM_APDU [11:22:42]CAPDU: 80 09 00 00 [11:22:42]Write to MH i2c: E2 08 00 76 2A 80 09 00 00 00 00 00 00 12 [11:22:42]Write i2c OK [11:22:42]MH_I2C_Read... [11:22:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:22:42]Read from MH i2c: E2 [11:22:42]MH_I2C_Read... [11:22:42]Read from MH i2c: E2 03 00 [11:22:42]MH_I2C_Read... [11:22:42]Read from MH i2c: E2 03 00 76 2A 00 90 00 14 [11:22:42]RAPDU: 90 00 [11:22:42]wFMCommunicate OK [11:22:42]SAM_PROTO_ClearQueue done [11:22:42]KKMCreateOFDPacket [11:22:42]OFDProtocolAddRootSTLVToBuf [11:22:42]FM_MakeSignedData [11:22:42]FM_MakeSignedData [11:22:42]SAM_PROTO_SignData [11:22:42]wFMCommunicate request_size=4 [11:22:42]MH_SAM_APDU [11:22:42]CAPDU: 80 0D 01 02 [11:22:42]Write to MH i2c: E2 08 00 77 2A 80 0D 01 02 00 00 00 00 1A [11:22:42]Write i2c OK [11:22:42]MH_I2C_Read... [11:22:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:22:42]Read from MH i2c: E2 [11:22:42]MH_I2C_Read... [11:22:42]Read from MH i2c: E2 03 00 [11:22:42]MH_I2C_Read... [11:22:42]Read from MH i2c: E2 03 00 77 2A 00 90 00 15 [11:22:42]RAPDU: 90 00 [11:22:42]wFMCommunicate OK [11:22:42]wFMCommunicate request_size=255 [11:22:42]MH_SAM_APDU [11:22:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 85 C5 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 BC [11:22:42]Write to MH i2c: E2 02 01 78 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 85 C5 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 BC 00 00 A4 [11:22:42]Write i2c OK [11:22:42]MH_I2C_Read... [11:22:42]OFD Sender: No OFD packet to send [11:22:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:42]Read from MH i2c: E2 [11:22:42]MH_I2C_Read... [11:22:42]Read from MH i2c: E2 03 00 [11:22:42]MH_I2C_Read... [11:22:42]Read from MH i2c: E2 03 00 78 2A 00 90 00 16 [11:22:42]RAPDU: 90 00 [11:22:42]wFMCommunicate OK [11:22:42]wFMCommunicate request_size=10 [11:22:42]MH_SAM_APDU [11:22:42]CAPDU: 80 0D 02 02 05 5B 19 30 EE D5 [11:22:42]Write to MH i2c: E2 0D 00 79 2A 80 0D 02 02 05 00 5B 19 30 EE D5 00 00 8E [11:22:42]Write i2c OK [11:22:42]MH_I2C_Read... [11:22:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:42]Read from MH i2c: E2 [11:22:42]MH_I2C_Read... [11:22:42]Read from MH i2c: E2 03 00 [11:22:42]MH_I2C_Read... [11:22:42]Read from MH i2c: E2 03 00 79 2A 00 90 00 17 [11:22:42]RAPDU: 90 00 [11:22:42]wFMCommunicate OK [11:22:42]wFMCommunicate request_size=4 [11:22:42]MH_SAM_APDU [11:22:42]CAPDU: 80 0D 03 02 [11:22:42]Write to MH i2c: E2 08 00 7A 2A 80 0D 03 02 00 00 00 00 1F [11:22:42]Write i2c OK [11:22:42]MH_I2C_Read... [11:22:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:22:43]Read from MH i2c: E2 [11:22:43]MH_I2C_Read... [11:22:43]Read from MH i2c: E2 0B 00 [11:22:43]MH_I2C_Read... [11:22:43]Read from MH i2c: E2 0B 00 7A 2A 00 FF 56 1E 47 64 93 40 81 90 00 92 [11:22:43]RAPDU: FF 56 1E 47 64 93 40 81 90 00 [11:22:43]wFMCommunicate OK [11:22:43]SAM_PROTO_SignData done [11:22:43]FM_MakeSignedData done [11:22:43]CreateOFDProtocolMessage [11:22:43]wFMCommunicate request_size=4 [11:22:43]MH_SAM_APDU [11:22:43]CAPDU: 80 11 00 00 [11:22:43]Write to MH i2c: E2 08 00 7B 2A 80 11 00 00 00 00 00 00 1F [11:22:43]Write i2c OK [11:22:43]MH_I2C_Read... [11:22:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:43]Read from MH i2c: E2 [11:22:43]MH_I2C_Read... [11:22:43]Read from MH i2c: E2 17 00 [11:22:43]MH_I2C_Read... [11:22:43]Read from MH i2c: E2 17 00 7B 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 72 [11:22:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:22:43]wFMCommunicate OK [11:22:43]CreateOFDProtocolMessage done [11:22:43]OFDSenderStorePacket 192854 [11:22:43]StoreOFDPacket docnum=192854 [11:22: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 0C 9E 07 01 01 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 85 C5 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 BC 5B 19 30 EE D5 FF 56 1E 47 64 93 40 81 [11:22:43]CheckFolder [11:22:43]dirname=/storage/ofd_packets [11:22:43]CheckFolder done [11:22:43]ProducePacketName [11:22:43]name=ofd_packets/00192854 [11:22:43]NVStorageSaveData ofd_packets/00192854 [11:22:43]File name is /storage/ofd_packets/00192854 [11:22:43]Write 301 bytes [11:22:43]NVStorageSaveData done [11:22:43]OFDSenderStorePacket done [11:22:43]KKMCreateOFDPacket done [11:22:43]NVStorageSaveData kkm_last_timestamp [11:22:43]File name is /storage/kkm_last_timestamp [11:22:43]Write 4 bytes [11:22:43]NVStorageSaveData done [11:22:43]ExternCall_PrintAddStr [11:22:43]wPrintStart [11:22:43]Write to MH i2c: 01 00 00 7C 2A A6 [11:22:43]Write i2c OK [11:22:43]MH_I2C_Read... [11:22:43]Read from MH i2c: 01 [11:22:43]MH_I2C_Read... [11:22:43]Read from MH i2c: 01 07 00 [11:22:43]MH_I2C_Read... [11:22:43]Read from MH i2c: 01 07 00 7C 2A 00 00 00 00 00 FF 0F BB [11:22:43]RasterBufferAndPrint [11:22:43]line Счет N : (1)32183 [11:22:43]line ИÐÐ: 02508201610067 [11:22:43]line Контрольно-КаÑÑовый Чек [11:22:43]line ПРОДÐЖР[11:22:43]line ТРК (МРК, ГÐК) : 12 [11:22:43]line Товар: 2710124130 [11:22:43]line Ðи-92-К-5 [11:22:43]line 2.990 * 66.90 [11:22:43]line = 200.03 [11:22:43]line ÐДС 12% ÐСП 1% [11:22:43]line > о реализуемом товаре [11:22:43]line ОКРУГЛЕÐИЕ: -0.03 [11:22:43]line ИТОГО: 200.00 [11:22:43]line ВнеÑено: 200.00 [11:22:43]line СДÐЧÐ: 0.00 [11:22:43]line ÐСП 1% : 1.77 [11:22:43]line ÐДС 12% : 21.24 [11:22:43]line Ðаличными: 200.00 [11:22:43]line Безнал.: 0.00 [11:22:43]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [11:22:43]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [11:22:43]line СÐО: Общий режим [11:22:43]line Чек 60 29.10.2024 11:22 [11:22:43]line Смена: 544 ФФД: 1.0 [11:22:43]line ЗÐМ: 0300000110 [11:22:43]line РÐМ: 0000000000091776 [11:22:43]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [11:22:43]line ФМ: 0000000000871754 [11:22:43]line ФД: 192854 [11:22:43]line ФПД: 207099450683093 [11:22:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T112245&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192854&fm=207099450683093&tin=02508201610067®Number=0000000000091776&sum=20000 [11:22:43]OFD Sender: Processing packet 192854 [packets to send 75, broken 74] [11:22:43]ProducePacketName [11:22:43]name=ofd_packets/00192854 [11:22:43]OFD Sender: To server: ‡•öpG, [11:22:43]CommunicateWithHost lk.salyk.kg:30040 [11:22:43]ConnectInit lk.salyk.kg [11:22:43]written 0, free lines is 4095 [11:22:43]Connected sock=10 [11:22: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 0C 9E 07 01 01 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 85 C5 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 BC 5B 19 30 EE D5 FF 56 1E 47 64 93 40 81 [11:22: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 1C 47 47 00 08 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 56 F1 02 00 F4 03 04 00 46 6A 20 67 B6 04 01 00 00 DC E4 C0 6A 85 34 14 4B [11:22:43]CommunicateWithHost err = 0 [11:22:43]CheckOFDResponse [11:22:43]1017 (14) - 77093643461234 [11:22:43]1041 (16) - 0000000000871754 [11:22:43]1040 (4) - 192854 [11:22:43]1012 (4) - 29.10.2024 04:53 [11:22:43]1206 (1) - 0 [11:22:43]OFD Sender: Remove packet 192854 [11:22:43]ProducePacketName [11:22:43]name=ofd_packets/00192854 [11:22:43]NVStorageDeleteData [11:22:43]Write to MH i2c: 01 00 00 A7 2A D1 [11:22:43]Write i2c OK [11:22:43]MH_I2C_Read... [11:22:43]Read from MH i2c: 01 [11:22:43]MH_I2C_Read... [11:22:43]Read from MH i2c: 01 07 00 [11:22:43]MH_I2C_Read... [11:22:43]Read from MH i2c: 01 07 00 A7 2A 00 00 00 00 00 C0 0C A4 [11:22:43]RasterBufferAndPrint [11:22:43]line [11:22:43]line [11:22:43]line [11:22:43]line [11:22:43]line [11:22:43]written 0, free lines is 3273 [11:22:43]MH_Cut [11:22:43]Write to MH i2c: D1 01 00 AE 2A 01 AA [11:22:43]Write i2c OK [11:22:43]MH_I2C_Read... [11:22:43]Read from MH i2c: D1 [11:22:43]MH_I2C_Read... [11:22:43]Read from MH i2c: D1 01 00 [11:22:43]MH_I2C_Read... [11:22:43]Read from MH i2c: D1 01 00 AE 2A 00 A9 [11:22:43]Write to MH i2c: 01 00 00 AF 2A D9 [11:22:43]Write i2c OK [11:22:43]MH_I2C_Read... [11:22:44]OFD Sender: No OFD packet to send [11:22:44]*** Cut start [11:22:44]*** Partial cut [11:22:44]*** CUTSNS_PIN = 1 [11:22:44]*** CUTSNS_PIN = 0 [11:22:44]*** Brake cut motor [11:22:45]Read from MH i2c: 01 [11:22:45]MH_I2C_Read... [11:22:45]*** Stop cut motor [11:22:45]*** Cut end [11:22:45]Read from MH i2c: 01 07 00 [11:22:45]MH_I2C_Read... [11:22:45]Read from MH i2c: 01 07 00 AF 2A 00 00 00 00 00 FF 0F EE [11:22:45]process_action close_receipt done [11:22:45]requested_data is exist [11:22:45]produce_requested_data [11:22:45]requested_item fm.sn is exist - process it [11:22:45]wFMCommunicate request_size=4 [11:22:45]MH_SAM_APDU [11:22:45]CAPDU: 80 11 00 00 [11:22:45]Write to MH i2c: E2 08 00 B0 2A 80 11 00 00 00 00 00 00 54 [11:22:45]Write i2c OK [11:22:45]MH_I2C_Read... [11:22:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:45]Read from MH i2c: E2 [11:22:45]MH_I2C_Read... [11:22:45]Read from MH i2c: E2 17 00 [11:22:45]MH_I2C_Read... [11:22:45]Read from MH i2c: E2 17 00 B0 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A7 [11:22: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:22:45]wFMCommunicate OK [11:22:45]requested_item fd.num is exist - process it [11:22:45]SAM_PROTO_GetFieldsCounters [11:22:45]wFMCommunicate request_size=4 [11:22:45]MH_SAM_APDU [11:22:45]CAPDU: 80 13 00 00 [11:22:45]Write to MH i2c: E2 08 00 B1 2A 80 13 00 00 00 00 00 00 57 [11:22:45]Write i2c OK [11:22:45]MH_I2C_Read... [11:22:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:22:45]Read from MH i2c: E2 [11:22:45]MH_I2C_Read... [11:22:45]Read from MH i2c: E2 62 00 [11:22:45]MH_I2C_Read... [11:22:45]Read from MH i2c: E2 62 00 B1 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 56 F1 02 00 0E 04 04 00 20 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 9C [11:22: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 56 F1 02 00 0E 04 04 00 20 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 [11:22:45]wFMCommunicate OK [11:22:45]SAM_PROTO_GetFieldsCounters done [11:22:45]requested_item shift.num is exist - process it [11:22:45]requested_item shift.opened is exist - process it [11:22:45]req_shift_opened [11:22:45]FM_GetShiftState [11:22:45]SAM_PROTO_GetShiftState [11:22:45]wFMCommunicate request_size=4 [11:22:45]MH_SAM_APDU [11:22:45]CAPDU: 80 13 01 00 [11:22:45]Write to MH i2c: E2 08 00 B2 2A 80 13 01 00 00 00 00 00 59 [11:22:45]Write i2c OK [11:22:45]MH_I2C_Read... [11:22:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:45]Read from MH i2c: E2 [11:22:45]MH_I2C_Read... [11:22:45]Read from MH i2c: E2 0E 00 [11:22:45]MH_I2C_Read... [11:22:45]Read from MH i2c: E2 0E 00 B2 2A 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 5F [11:22:45]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:22:45]wFMCommunicate OK [11:22:45]SAM_PROTO_GetShiftState done [11:22:45]FM_GetShiftState done [11:22:45]req_shift_opened done [11:22:45]requested_item shift.open_date is exist - process it [11:22:45]req_shift_open_date [11:22:45]req_shift_open_date done [11:22:45]produce_requested_data done [11:22:45]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192854,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [11:22:45]process_action_free close_receipt [11:22:45]json_value_free [11:22:45]json_value_free done [11:22:45]process_json_proto returns [11:22:45]Send response to host [11:22:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192854,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [11:22:45]free response buf [11:22:45]execute_script done [11:22:45]execute_script returns [11:22:45]free content buf [11:22:45]Sock 8.Close socket [11:22:45]Sock 8.Thread stoped [11:22:49]OFD Sender: No OFD packet to send [11:22:54]OFD Sender: No OFD packet to send [11:22:59]OFD Sender: No OFD packet to send [11:23:04]OFD Sender: No OFD packet to send [11:23:09]OFD Sender: No OFD packet to send [11:23:14]OFD Sender: No OFD packet to send [11:23:19]OFD Sender: No OFD packet to send [11:23:24]OFD Sender: No OFD packet to send [11:23:29]OFD Sender: No OFD packet to send [11:23:34]OFD Sender: No OFD packet to send [11:23:39]OFD Sender: No OFD packet to send [11:23:44]OFD Sender: No OFD packet to send [11:23:49]OFD Sender: No OFD packet to send [11:23:54]OFD Sender: No OFD packet to send [11:23:59]OFD Sender: No OFD packet to send [11:24:04]OFD Sender: No OFD packet to send [11:24:09]OFD Sender: No OFD packet to send [11:24:14]OFD Sender: No OFD packet to send [11:24:19]OFD Sender: No OFD packet to send [11:24:24]OFD Sender: No OFD packet to send [11:24:29]OFD Sender: No OFD packet to send [11:24:34]OFD Sender: No OFD packet to send [11:24:39]OFD Sender: No OFD packet to send [11:24:44]OFD Sender: No OFD packet to send [11:24:49]OFD Sender: No OFD packet to send [11:24:54]OFD Sender: No OFD packet to send [11:24:59]OFD Sender: No OFD packet to send [11:25:01]accept exits with 9 [11:25:01]New connection [11:25:01]New thread 3066658148 created [11:25:01]Thread 3066801508 joined [11:25:01]Waiting for new connection... [11:25:01] Sock 9.Parse request [11:25:01]Sock 9.Check first char [11:25:01]Sock 9.First char is OK [11:25:01]request: POST /json_proto HTTP/1.0 [11:25:01]Method: POST [11:25:01]URL: /json_proto [11:25:01]Method is POST - this is cgi request [11:25:01]url: /json_proto [11:25:01]query_string will be loaded in cgi processing [11:25:01]execute_cgi json_proto POST (null) [11:25:01]execute_cgi path=json_proto method=POST [11:25:01]POST find Content-Length [11:25:01]Host: 172.17.63.131:8080 [11:25:01]Content-Length: 676 [11:25:01]Content-Type: application/json [11:25:01] [11:25:01]POST finish read [11:25:01]Found Content-Length = 676 [11:25:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32184", "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:25:01]execute_script... [11:25: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)32184", "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:25:01]POST & json_proto [11:25:01]process_json_proto [11:25:01]json parsed OK: [11:25:01]protocol is kg_v1.0 [11:25:01]action value=close_receipt [11:25:01]process_action close_receipt [11:25:01]cmd_close_receipt [11:25:01]MH_GetDate [11:25:01]Write to MH i2c: F0 00 00 B3 2A CC [11:25:01]Write i2c OK [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: F0 [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: F0 09 00 [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: F0 09 00 B3 2A 00 12 C6 20 67 22 05 6E 64 2D [11:25:01]GetLastDocTimeStamp 1730200965 [11:25:01]current date 1730201106 [11:25:01]FM_GetShiftState [11:25:01]SAM_PROTO_GetShiftState [11:25:01]wFMCommunicate request_size=4 [11:25:01]MH_SAM_APDU [11:25:01]CAPDU: 80 13 01 00 [11:25:01]Write to MH i2c: E2 08 00 B4 2A 80 13 01 00 00 00 00 00 5B [11:25:01]Write i2c OK [11:25:01]MH_I2C_Read... [11:25:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:01]Read from MH i2c: E2 [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: E2 0E 00 [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: E2 0E 00 B4 2A 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 61 [11:25:01]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:25:01]wFMCommunicate OK [11:25:01]SAM_PROTO_GetShiftState done [11:25:01]FM_GetShiftState done [11:25:01]opened in 1730161990 [11:25:01]opened+sec_in_day 1730248390 [11:25:01]quantity*price = 30038 [11:25:01]sum+1 = 30039 [11:25: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 СÐО: Общий режим Чек 61 29.10.2024 11:25 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192855 ФПД: 202623796322267 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T112506&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192855&fm=202623796322267&tin=02508201610067®Number=0000000000091776&sum=30000 [11:25:03]StoreToDocumentArchive [11:25:03]shift 544 fd 192855 [11:25:03]save to /storage/0544/doc_00192855 [11:25:03]save last doc name /storage/0544/doc_00192855 to /storage/kkm_last_doc_name [11:25:03]save OK [11:25:03]Clear old archive folders... [11:25:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:25:03]tlvbuf is 010000A0 [11:25:03]SAM_PROTO_ClearQueue [11:25:03]wFMCommunicate request_size=4 [11:25:03]MH_SAM_APDU [11:25:03]CAPDU: 80 09 00 00 [11:25:03]Write to MH i2c: E2 08 00 C1 2A 80 09 00 00 00 00 00 00 5D [11:25:03]Write i2c OK [11:25:03]MH_I2C_Read... [11:25:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:25:03]Read from MH i2c: E2 [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: E2 03 00 [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: E2 03 00 C1 2A 00 90 00 5F [11:25:03]RAPDU: 90 00 [11:25:03]wFMCommunicate OK [11:25:03]SAM_PROTO_ClearQueue done [11:25:03]KKMCreateOFDPacket [11:25:03]OFDProtocolAddRootSTLVToBuf [11:25:03]FM_MakeSignedData [11:25:03]FM_MakeSignedData [11:25:03]SAM_PROTO_SignData [11:25:03]wFMCommunicate request_size=4 [11:25:03]MH_SAM_APDU [11:25:03]CAPDU: 80 0D 01 02 [11:25:03]Write to MH i2c: E2 08 00 C2 2A 80 0D 01 02 00 00 00 00 65 [11:25:03]Write i2c OK [11:25:03]MH_I2C_Read... [11:25:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:25:03]Read from MH i2c: E2 [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: E2 03 00 [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: E2 03 00 C2 2A 00 90 00 60 [11:25:03]RAPDU: 90 00 [11:25:03]wFMCommunicate OK [11:25:03]wFMCommunicate request_size=255 [11:25:03]MH_SAM_APDU [11:25:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 12 C6 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 B8 [11:25:03]Write to MH i2c: E2 02 01 C3 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 12 C6 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 B8 00 00 AD [11:25:03]Write i2c OK [11:25:03]MH_I2C_Read... [11:25:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:03]Read from MH i2c: E2 [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: E2 03 00 [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: E2 03 00 C3 2A 00 90 00 61 [11:25:03]RAPDU: 90 00 [11:25:03]wFMCommunicate OK [11:25:03]wFMCommunicate request_size=10 [11:25:03]MH_SAM_APDU [11:25:03]CAPDU: 80 0D 02 02 05 49 07 67 1F DB [11:25:03]Write to MH i2c: E2 0D 00 C4 2A 80 0D 02 02 05 00 49 07 67 1F DB 00 00 23 [11:25:03]Write i2c OK [11:25:03]MH_I2C_Read... [11:25:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:03]Read from MH i2c: E2 [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: E2 03 00 [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: E2 03 00 C4 2A 00 90 00 62 [11:25:03]RAPDU: 90 00 [11:25:03]wFMCommunicate OK [11:25:03]wFMCommunicate request_size=4 [11:25:03]MH_SAM_APDU [11:25:03]CAPDU: 80 0D 03 02 [11:25:03]Write to MH i2c: E2 08 00 C5 2A 80 0D 03 02 00 00 00 00 6A [11:25:03]Write i2c OK [11:25:03]MH_I2C_Read... [11:25:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:25:03]Read from MH i2c: E2 [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: E2 0B 00 [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: E2 0B 00 C5 2A 00 EC 94 78 24 FC 05 A7 B0 90 00 DF [11:25:03]RAPDU: EC 94 78 24 FC 05 A7 B0 90 00 [11:25:03]wFMCommunicate OK [11:25:03]SAM_PROTO_SignData done [11:25:03]FM_MakeSignedData done [11:25:03]CreateOFDProtocolMessage [11:25:03]wFMCommunicate request_size=4 [11:25:03]MH_SAM_APDU [11:25:03]CAPDU: 80 11 00 00 [11:25:03]Write to MH i2c: E2 08 00 C6 2A 80 11 00 00 00 00 00 00 6A [11:25:03]Write i2c OK [11:25:03]MH_I2C_Read... [11:25:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:03]Read from MH i2c: E2 [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: E2 17 00 [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: E2 17 00 C6 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BD [11:25:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:25:03]wFMCommunicate OK [11:25:03]CreateOFDProtocolMessage done [11:25:03]OFDSenderStorePacket 192855 [11:25:03]StoreOFDPacket docnum=192855 [11:25: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 B0 27 07 01 63 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 12 C6 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 B8 49 07 67 1F DB EC 94 78 24 FC 05 A7 B0 [11:25:03]CheckFolder [11:25:03]dirname=/storage/ofd_packets [11:25:03]CheckFolder done [11:25:03]ProducePacketName [11:25:03]name=ofd_packets/00192855 [11:25:03]NVStorageSaveData ofd_packets/00192855 [11:25:03]File name is /storage/ofd_packets/00192855 [11:25:03]Write 301 bytes [11:25:03]NVStorageSaveData done [11:25:03]OFDSenderStorePacket done [11:25:03]KKMCreateOFDPacket done [11:25:03]NVStorageSaveData kkm_last_timestamp [11:25:03]File name is /storage/kkm_last_timestamp [11:25:03]Write 4 bytes [11:25:03]NVStorageSaveData done [11:25:03]ExternCall_PrintAddStr [11:25:03]wPrintStart [11:25:03]Write to MH i2c: 01 00 00 C7 2A F1 [11:25:03]Write i2c OK [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: 01 [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: 01 07 00 [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: 01 07 00 C7 2A 00 00 00 00 00 FF 0F 06 [11:25:03]RasterBufferAndPrint [11:25:03]line Счет N : (1)32184 [11:25:03]line ИÐÐ: 02508201610067 [11:25:03]line Контрольно-КаÑÑовый Чек [11:25:03]line ПРОДÐЖР[11:25:03]line ТРК (МРК, ГÐК) : 12 [11:25:03]line Товар: 2710124130 [11:25:03]line Ðи-92-К-5 [11:25:03]line 4.490 * 66.90 [11:25:03]line = 300.38 [11:25:03]line ÐДС 12% ÐСП 1% [11:25:03]line > о реализуемом товаре [11:25:03]line ОКРУГЛЕÐИЕ: -0.38 [11:25:03]line ИТОГО: 300.00 [11:25:03]line ВнеÑено: 300.00 [11:25:03]line СДÐЧÐ: 0.00 [11:25:03]line ÐСП 1% : 2.66 [11:25:03]line ÐДС 12% : 31.90 [11:25:03]line Ðаличными: 300.00 [11:25:03]line Безнал.: 0.00 [11:25:03]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [11:25:03]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [11:25:03]line СÐО: Общий режим [11:25:03]line Чек 61 29.10.2024 11:25 [11:25:03]line Смена: 544 ФФД: 1.0 [11:25:03]line ЗÐМ: 0300000110 [11:25:03]line РÐМ: 0000000000091776 [11:25:03]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [11:25:03]line ФМ: 0000000000871754 [11:25:03]line ФД: 192855 [11:25:03]line ФПД: 202623796322267 [11:25:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T112506&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192855&fm=202623796322267&tin=02508201610067®Number=0000000000091776&sum=30000 [11:25:03]OFD Sender: Processing packet 192855 [packets to send 75, broken 74] [11:25:03]ProducePacketName [11:25:03]name=ofd_packets/00192855 [11:25:03]OFD Sender: To server: ‡•öpG, [11:25:03]CommunicateWithHost lk.salyk.kg:30040 [11:25:03]ConnectInit lk.salyk.kg [11:25:03]written 0, free lines is 4095 [11:25:03]Connected sock=11 [11:25: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 B0 27 07 01 63 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 12 C6 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 B8 49 07 67 1F DB EC 94 78 24 FC 05 A7 B0 [11:25: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 D3 2D 47 00 4E 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 57 F1 02 00 F4 03 04 00 D3 6A 20 67 B6 04 01 00 00 7C 60 E0 10 35 5D D9 83 [11:25:04]CommunicateWithHost err = 0 [11:25:04]CheckOFDResponse [11:25:04]1017 (14) - 77093643461234 [11:25:04]1041 (16) - 0000000000871754 [11:25:04]1040 (4) - 192855 [11:25:04]1012 (4) - 29.10.2024 04:55 [11:25:04]1206 (1) - 0 [11:25:04]OFD Sender: Remove packet 192855 [11:25:04]ProducePacketName [11:25:04]name=ofd_packets/00192855 [11:25:04]NVStorageDeleteData [11:25:04]Write to MH i2c: 01 00 00 F2 2A 1C [11:25:04]Write i2c OK [11:25:04]MH_I2C_Read... [11:25:04]Read from MH i2c: 01 [11:25:04]MH_I2C_Read... [11:25:04]Read from MH i2c: 01 07 00 [11:25:04]MH_I2C_Read... [11:25:04]Read from MH i2c: 01 07 00 F2 2A 00 00 00 00 00 B3 0C E2 [11:25:04]RasterBufferAndPrint [11:25:04]line [11:25:04]line [11:25:04]line [11:25:04]line [11:25:04]line [11:25:04]written 0, free lines is 3258 [11:25:04]MH_Cut [11:25:04]Write to MH i2c: D1 01 00 F9 2A 01 F5 [11:25:04]Write i2c OK [11:25:04]MH_I2C_Read... [11:25:04]Read from MH i2c: D1 [11:25:04]MH_I2C_Read... [11:25:04]Read from MH i2c: D1 01 00 [11:25:04]MH_I2C_Read... [11:25:04]Read from MH i2c: D1 01 00 F9 2A 00 F4 [11:25:04]Write to MH i2c: 01 00 00 FA 2A 24 [11:25:04]Write i2c OK [11:25:04]MH_I2C_Read... [11:25:04]OFD Sender: No OFD packet to send [11:25:05]*** Cut start [11:25:05]*** Partial cut [11:25:05]*** CUTSNS_PIN = 1 [11:25:05]*** CUTSNS_PIN = 0 [11:25:05]*** Brake cut motor [11:25:05]Read from MH i2c: 01 [11:25:05]MH_I2C_Read... [11:25:05]*** Stop cut motor [11:25:05]*** Cut end [11:25:05]Read from MH i2c: 01 07 00 [11:25:05]MH_I2C_Read... [11:25:05]Read from MH i2c: 01 07 00 FA 2A 00 00 00 00 00 FF 0F 39 [11:25:05]process_action close_receipt done [11:25:05]requested_data is exist [11:25:05]produce_requested_data [11:25:05]requested_item fm.sn is exist - process it [11:25:05]wFMCommunicate request_size=4 [11:25:05]MH_SAM_APDU [11:25:05]CAPDU: 80 11 00 00 [11:25:05]Write to MH i2c: E2 08 00 FB 2A 80 11 00 00 00 00 00 00 9F [11:25:05]Write i2c OK [11:25:05]MH_I2C_Read... [11:25:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:05]Read from MH i2c: E2 [11:25:05]MH_I2C_Read... [11:25:05]Read from MH i2c: E2 17 00 [11:25:05]MH_I2C_Read... [11:25:05]Read from MH i2c: E2 17 00 FB 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F2 [11:25:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:25:05]wFMCommunicate OK [11:25:05]requested_item fd.num is exist - process it [11:25:05]SAM_PROTO_GetFieldsCounters [11:25:05]wFMCommunicate request_size=4 [11:25:05]MH_SAM_APDU [11:25:05]CAPDU: 80 13 00 00 [11:25:05]Write to MH i2c: E2 08 00 FC 2A 80 13 00 00 00 00 00 00 A2 [11:25:05]Write i2c OK [11:25:05]MH_I2C_Read... [11:25:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:25:05]Read from MH i2c: E2 [11:25:05]MH_I2C_Read... [11:25:05]Read from MH i2c: E2 62 00 [11:25:05]MH_I2C_Read... [11:25:06]Read from MH i2c: E2 62 00 FC 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 57 F1 02 00 0E 04 04 00 20 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 EB [11:25:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 F1 02 00 0E 04 04 00 20 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 [11:25:06]wFMCommunicate OK [11:25:06]SAM_PROTO_GetFieldsCounters done [11:25:06]requested_item shift.num is exist - process it [11:25:06]requested_item shift.opened is exist - process it [11:25:06]req_shift_opened [11:25:06]FM_GetShiftState [11:25:06]SAM_PROTO_GetShiftState [11:25:06]wFMCommunicate request_size=4 [11:25:06]MH_SAM_APDU [11:25:06]CAPDU: 80 13 01 00 [11:25:06]Write to MH i2c: E2 08 00 FD 2A 80 13 01 00 00 00 00 00 A4 [11:25:06]Write i2c OK [11:25:06]MH_I2C_Read... [11:25:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:06]Read from MH i2c: E2 [11:25:06]MH_I2C_Read... [11:25:06]Read from MH i2c: E2 0E 00 [11:25:06]MH_I2C_Read... [11:25:06]Read from MH i2c: E2 0E 00 FD 2A 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 AA [11:25:06]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:25:06]wFMCommunicate OK [11:25:06]SAM_PROTO_GetShiftState done [11:25:06]FM_GetShiftState done [11:25:06]req_shift_opened done [11:25:06]requested_item shift.open_date is exist - process it [11:25:06]req_shift_open_date [11:25:06]req_shift_open_date done [11:25:06]produce_requested_data done [11:25:06]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192855,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [11:25:06]process_action_free close_receipt [11:25:06]json_value_free [11:25:06]json_value_free done [11:25:06]process_json_proto returns [11:25:06]Send response to host [11:25:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192855,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [11:25:06]free response buf [11:25:06]execute_script done [11:25:06]execute_script returns [11:25:06]free content buf [11:25:06]Sock 9.Close socket [11:25:06]Sock 9.Thread stoped [11:25:09]OFD Sender: No OFD packet to send [11:25:14]OFD Sender: No OFD packet to send [11:25:19]OFD Sender: No OFD packet to send [11:25:24]OFD Sender: No OFD packet to send [11:25:29]OFD Sender: No OFD packet to send [11:25:34]OFD Sender: No OFD packet to send [11:25:39]OFD Sender: No OFD packet to send [11:25:44]OFD Sender: No OFD packet to send [11:25:49]OFD Sender: No OFD packet to send [11:25:54]OFD Sender: No OFD packet to send [11:25:59]OFD Sender: No OFD packet to send [11:26:04]OFD Sender: No OFD packet to send [11:26:09]OFD Sender: No OFD packet to send [11:26:14]OFD Sender: No OFD packet to send [11:26:19]OFD Sender: No OFD packet to send [11:26:22]accept exits with 8 [11:26:22]New connection [11:26:22]New thread 3066801508 created [11:26:22]Thread 3066658148 joined [11:26:22]Waiting for new connection... [11:26:22] Sock 8.Parse request [11:26:22]Sock 8.Check first char [11:26:22]Sock 8.First char is OK [11:26:22]request: POST /json_proto HTTP/1.0 [11:26:22]Method: POST [11:26:22]URL: /json_proto [11:26:22]Method is POST - this is cgi request [11:26:22]url: /json_proto [11:26:22]query_string will be loaded in cgi processing [11:26:22]execute_cgi json_proto POST (null) [11:26:22]execute_cgi path=json_proto method=POST [11:26:22]POST find Content-Length [11:26:22]Host: 172.17.63.131:8080 [11:26:22]Content-Length: 676 [11:26:22]Content-Type: application/json [11:26:22] [11:26:22]POST finish read [11:26:22]Found Content-Length = 676 [11:26:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32185", "tax_sys" : 0, "items" : [ { "pre_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:26:22]execute_script... [11:26: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)32185", "tax_sys" : 0, "items" : [ { "pre_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:26:22]POST & json_proto [11:26:22]process_json_proto [11:26:22]json parsed OK: [11:26:22]protocol is kg_v1.0 [11:26:22]action value=close_receipt [11:26:22]process_action close_receipt [11:26:22]cmd_close_receipt [11:26:22]MH_GetDate [11:26:22]Write to MH i2c: F0 00 00 FE 2A 17 [11:26:22]Write i2c OK [11:26:22]MH_I2C_Read... [11:26:22]Read from MH i2c: F0 [11:26:22]MH_I2C_Read... [11:26:22]Read from MH i2c: F0 09 00 [11:26:22]MH_I2C_Read... [11:26:22]Read from MH i2c: F0 09 00 FE 2A 00 62 C6 20 67 22 05 6E 64 C8 [11:26:22]GetLastDocTimeStamp 1730201106 [11:26:22]current date 1730201186 [11:26:22]FM_GetShiftState [11:26:22]SAM_PROTO_GetShiftState [11:26:22]wFMCommunicate request_size=4 [11:26:22]MH_SAM_APDU [11:26:22]CAPDU: 80 13 01 00 [11:26:22]Write to MH i2c: E2 08 00 FF 2A 80 13 01 00 00 00 00 00 A6 [11:26:22]Write i2c OK [11:26:22]MH_I2C_Read... [11:26:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:22]Read from MH i2c: E2 [11:26:22]MH_I2C_Read... [11:26:22]Read from MH i2c: E2 0E 00 [11:26:22]MH_I2C_Read... [11:26:22]Read from MH i2c: E2 0E 00 FF 2A 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 AC [11:26:22]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:26:22]wFMCommunicate OK [11:26:22]SAM_PROTO_GetShiftState done [11:26:22]FM_GetShiftState done [11:26:22]opened in 1730161990 [11:26:22]opened+sec_in_day 1730248390 [11:26:22]quantity*price = 50041 [11:26:22]sum+1 = 50042 [11:26: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 СÐО: Общий режим Чек 62 29.10.2024 11:26 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192856 ФПД: 230964657096426 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T112626&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192856&fm=230964657096426&tin=02508201610067®Number=0000000000091776&sum=50000 [11:26:23]StoreToDocumentArchive [11:26:23]shift 544 fd 192856 [11:26:23]save to /storage/0544/doc_00192856 [11:26:23]save last doc name /storage/0544/doc_00192856 to /storage/kkm_last_doc_name [11:26:23]save OK [11:26:23]Clear old archive folders... [11:26:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:26:23]tlvbuf is B6F33A70 [11:26:23]SAM_PROTO_ClearQueue [11:26:23]wFMCommunicate request_size=4 [11:26:23]MH_SAM_APDU [11:26:23]CAPDU: 80 09 00 00 [11:26:23]Write to MH i2c: E2 08 00 0C 2B 80 09 00 00 00 00 00 00 A9 [11:26:23]Write i2c OK [11:26:23]MH_I2C_Read... [11:26:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:26:23]Read from MH i2c: E2 [11:26:23]MH_I2C_Read... [11:26:23]Read from MH i2c: E2 03 00 [11:26:23]MH_I2C_Read... [11:26:23]Read from MH i2c: E2 03 00 0C 2B 00 90 00 AB [11:26:23]RAPDU: 90 00 [11:26:23]wFMCommunicate OK [11:26:23]SAM_PROTO_ClearQueue done [11:26:23]KKMCreateOFDPacket [11:26:23]OFDProtocolAddRootSTLVToBuf [11:26:23]FM_MakeSignedData [11:26:23]FM_MakeSignedData [11:26:23]SAM_PROTO_SignData [11:26:23]wFMCommunicate request_size=4 [11:26:23]MH_SAM_APDU [11:26:23]CAPDU: 80 0D 01 02 [11:26:23]Write to MH i2c: E2 08 00 0D 2B 80 0D 01 02 00 00 00 00 B1 [11:26:23]Write i2c OK [11:26:23]MH_I2C_Read... [11:26:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:26:23]Read from MH i2c: E2 [11:26:23]MH_I2C_Read... [11:26:23]Read from MH i2c: E2 03 00 [11:26:23]MH_I2C_Read... [11:26:23]Read from MH i2c: E2 03 00 0D 2B 00 90 00 AC [11:26:23]RAPDU: 90 00 [11:26:23]wFMCommunicate OK [11:26:23]wFMCommunicate request_size=255 [11:26:23]MH_SAM_APDU [11:26: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 3E 00 00 00 F4 03 04 00 62 C6 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 D2 [11:26:23]Write to MH i2c: E2 02 01 0E 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 3E 00 00 00 F4 03 04 00 62 C6 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 D2 00 00 71 [11:26:23]Write i2c OK [11:26:23]MH_I2C_Read... [11:26:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:23]Read from MH i2c: E2 [11:26:23]MH_I2C_Read... [11:26:23]Read from MH i2c: E2 03 00 [11:26:23]MH_I2C_Read... [11:26:23]Read from MH i2c: E2 03 00 0E 2B 00 90 00 AD [11:26:23]RAPDU: 90 00 [11:26:23]wFMCommunicate OK [11:26:23]wFMCommunicate request_size=10 [11:26:23]MH_SAM_APDU [11:26:23]CAPDU: 80 0D 02 02 05 0F A6 57 86 EA [11:26:23]Write to MH i2c: E2 0D 00 0F 2B 80 0D 02 02 05 00 0F A6 57 86 EA 00 00 3A [11:26:23]Write i2c OK [11:26:23]MH_I2C_Read... [11:26:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:24]Read from MH i2c: E2 [11:26:24]MH_I2C_Read... [11:26:24]Read from MH i2c: E2 03 00 [11:26:24]MH_I2C_Read... [11:26:24]Read from MH i2c: E2 03 00 0F 2B 00 90 00 AE [11:26:24]RAPDU: 90 00 [11:26:24]wFMCommunicate OK [11:26:24]wFMCommunicate request_size=4 [11:26:24]MH_SAM_APDU [11:26:24]CAPDU: 80 0D 03 02 [11:26:24]Write to MH i2c: E2 08 00 10 2B 80 0D 03 02 00 00 00 00 B6 [11:26:24]Write i2c OK [11:26:24]MH_I2C_Read... [11:26:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:26:24]Read from MH i2c: E2 [11:26:24]MH_I2C_Read... [11:26:24]Read from MH i2c: E2 0B 00 [11:26:24]MH_I2C_Read... [11:26:24]Read from MH i2c: E2 0B 00 10 2B 00 05 FB C6 FB 79 6D D0 88 90 00 B6 [11:26:24]RAPDU: 05 FB C6 FB 79 6D D0 88 90 00 [11:26:24]wFMCommunicate OK [11:26:24]SAM_PROTO_SignData done [11:26:24]FM_MakeSignedData done [11:26:24]CreateOFDProtocolMessage [11:26:24]wFMCommunicate request_size=4 [11:26:24]MH_SAM_APDU [11:26:24]CAPDU: 80 11 00 00 [11:26:24]Write to MH i2c: E2 08 00 11 2B 80 11 00 00 00 00 00 00 B6 [11:26:24]Write i2c OK [11:26:24]MH_I2C_Read... [11:26:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:24]Read from MH i2c: E2 [11:26:24]MH_I2C_Read... [11:26:24]Read from MH i2c: E2 17 00 [11:26:24]MH_I2C_Read... [11:26:24]Read from MH i2c: E2 17 00 11 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 09 [11:26:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:26:24]wFMCommunicate OK [11:26:24]CreateOFDProtocolMessage done [11:26:24]OFDSenderStorePacket 192856 [11:26:24]StoreOFDPacket docnum=192856 [11:26: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 04 82 07 01 CB FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 62 C6 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 D2 0F A6 57 86 EA 05 FB C6 FB 79 6D D0 88 [11:26:24]CheckFolder [11:26:24]dirname=/storage/ofd_packets [11:26:24]CheckFolder done [11:26:24]ProducePacketName [11:26:24]name=ofd_packets/00192856 [11:26:24]NVStorageSaveData ofd_packets/00192856 [11:26:24]File name is /storage/ofd_packets/00192856 [11:26:24]Write 301 bytes [11:26:24]NVStorageSaveData done [11:26:24]OFDSenderStorePacket done [11:26:24]KKMCreateOFDPacket done [11:26:24]NVStorageSaveData kkm_last_timestamp [11:26:24]File name is /storage/kkm_last_timestamp [11:26:24]Write 4 bytes [11:26:24]NVStorageSaveData done [11:26:24]ExternCall_PrintAddStr [11:26:24]wPrintStart [11:26:24]Write to MH i2c: 01 00 00 12 2B 3D [11:26:24]Write i2c OK [11:26:24]MH_I2C_Read... [11:26:24]Read from MH i2c: 01 [11:26:24]MH_I2C_Read... [11:26:24]Read from MH i2c: 01 07 00 [11:26:24]MH_I2C_Read... [11:26:24]Read from MH i2c: 01 07 00 12 2B 00 00 00 00 00 FF 0F 52 [11:26:24]RasterBufferAndPrint [11:26:24]line Счет N : (1)32185 [11:26:24]line ИÐÐ: 02508201610067 [11:26:24]line Контрольно-КаÑÑовый Чек [11:26:24]line ПРОДÐЖР[11:26:24]line ТРК (МРК, ГÐК) : 21 [11:26:24]line Товар: 2710124130 [11:26:24]line Ðи-92-К-5 [11:26:24]line 7.480 * 66.90 [11:26:24]line = 500.41 [11:26:24]line ÐДС 12% ÐСП 1% [11:26:24]line > о реализуемом товаре [11:26:24]line ОКРУГЛЕÐИЕ: -0.41 [11:26:24]line ИТОГО: 500.00 [11:26:24]line ВнеÑено: 500.00 [11:26:24]line СДÐЧÐ: 0.00 [11:26:24]line ÐСП 1% : 4.43 [11:26:24]line ÐДС 12% : 53.14 [11:26:24]line Ðаличными: 500.00 [11:26:24]line Безнал.: 0.00 [11:26:24]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [11:26:24]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [11:26:24]line СÐО: Общий режим [11:26:24]line Чек 62 29.10.2024 11:26 [11:26:24]line Смена: 544 ФФД: 1.0 [11:26:24]line ЗÐМ: 0300000110 [11:26:24]line РÐМ: 0000000000091776 [11:26:24]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [11:26:24]line ФМ: 0000000000871754 [11:26:24]line ФД: 192856 [11:26:24]line ФПД: 230964657096426 [11:26:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T112626&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192856&fm=230964657096426&tin=02508201610067®Number=0000000000091776&sum=50000 [11:26:24]OFD Sender: Processing packet 192856 [packets to send 75, broken 74] [11:26:24]ProducePacketName [11:26:24]name=ofd_packets/00192856 [11:26:24]OFD Sender: To server: ‡•öpG, [11:26:24]CommunicateWithHost lk.salyk.kg:30040 [11:26:24]ConnectInit lk.salyk.kg [11:26:24]written 0, free lines is 4095 [11:26:24]Connected sock=10 [11:26:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 04 82 07 01 CB FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 62 C6 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 D2 0F A6 57 86 EA 05 FB C6 FB 79 6D D0 88 [11:26: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 8A E4 47 00 44 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 58 F1 02 00 F4 03 04 00 23 6B 20 67 B6 04 01 00 00 1B 09 2B 63 52 4B D7 42 [11:26:24]CommunicateWithHost err = 0 [11:26:24]CheckOFDResponse [11:26:24]1017 (14) - 77093643461234 [11:26:24]1041 (16) - 0000000000871754 [11:26:24]1040 (4) - 192856 [11:26:24]1012 (4) - 29.10.2024 04:57 [11:26:24]1206 (1) - 0 [11:26:24]OFD Sender: Remove packet 192856 [11:26:24]ProducePacketName [11:26:24]name=ofd_packets/00192856 [11:26:24]NVStorageDeleteData [11:26:24]Write to MH i2c: 01 00 00 3D 2B 68 [11:26:24]Write i2c OK [11:26:24]MH_I2C_Read... [11:26:24]Read from MH i2c: 01 [11:26:24]MH_I2C_Read... [11:26:24]Read from MH i2c: 01 07 00 [11:26:24]MH_I2C_Read... [11:26:24]Read from MH i2c: 01 07 00 3D 2B 00 00 00 00 00 AB 0C 26 [11:26:24]RasterBufferAndPrint [11:26:24]line [11:26:24]line [11:26:24]line [11:26:24]line [11:26:24]line [11:26:24]written 0, free lines is 3248 [11:26:24]MH_Cut [11:26:24]Write to MH i2c: D1 01 00 44 2B 01 41 [11:26:24]Write i2c OK [11:26:24]MH_I2C_Read... [11:26:24]Read from MH i2c: D1 [11:26:24]MH_I2C_Read... [11:26:24]Read from MH i2c: D1 01 00 [11:26:24]MH_I2C_Read... [11:26:24]Read from MH i2c: D1 01 00 44 2B 00 40 [11:26:24]Write to MH i2c: 01 00 00 45 2B 70 [11:26:24]Write i2c OK [11:26:24]MH_I2C_Read... [11:26:25]OFD Sender: No OFD packet to send [11:26:25]*** Cut start [11:26:25]*** Partial cut [11:26:25]*** CUTSNS_PIN = 1 [11:26:25]*** CUTSNS_PIN = 0 [11:26:26]*** Brake cut motor [11:26:26]Read from MH i2c: 01 [11:26:26]MH_I2C_Read... [11:26:26]*** Stop cut motor [11:26:26]*** Cut end [11:26:26]Read from MH i2c: 01 07 00 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: 01 07 00 45 2B 00 00 00 00 00 FF 0F 85 [11:26:26]process_action close_receipt done [11:26:26]requested_data is exist [11:26:26]produce_requested_data [11:26:26]requested_item fm.sn is exist - process it [11:26:26]wFMCommunicate request_size=4 [11:26:26]MH_SAM_APDU [11:26:26]CAPDU: 80 11 00 00 [11:26:26]Write to MH i2c: E2 08 00 46 2B 80 11 00 00 00 00 00 00 EB [11:26:26]Write i2c OK [11:26:26]MH_I2C_Read... [11:26:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:26]Read from MH i2c: E2 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 17 00 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 17 00 46 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3E [11:26: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:26:26]wFMCommunicate OK [11:26:26]requested_item fd.num is exist - process it [11:26:26]SAM_PROTO_GetFieldsCounters [11:26:26]wFMCommunicate request_size=4 [11:26:26]MH_SAM_APDU [11:26:26]CAPDU: 80 13 00 00 [11:26:26]Write to MH i2c: E2 08 00 47 2B 80 13 00 00 00 00 00 00 EE [11:26:26]Write i2c OK [11:26:26]MH_I2C_Read... [11:26:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:26]Read from MH i2c: E2 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 62 00 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 62 00 47 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 58 F1 02 00 0E 04 04 00 20 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 3B [11:26: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 58 F1 02 00 0E 04 04 00 20 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 [11:26:26]wFMCommunicate OK [11:26:26]SAM_PROTO_GetFieldsCounters done [11:26:26]requested_item shift.num is exist - process it [11:26:26]requested_item shift.opened is exist - process it [11:26:26]req_shift_opened [11:26:26]FM_GetShiftState [11:26:26]SAM_PROTO_GetShiftState [11:26:26]wFMCommunicate request_size=4 [11:26:26]MH_SAM_APDU [11:26:26]CAPDU: 80 13 01 00 [11:26:26]Write to MH i2c: E2 08 00 48 2B 80 13 01 00 00 00 00 00 F0 [11:26:26]Write i2c OK [11:26:26]MH_I2C_Read... [11:26:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:26]Read from MH i2c: E2 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 0E 00 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 0E 00 48 2B 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 F6 [11:26:26]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:26:26]wFMCommunicate OK [11:26:26]SAM_PROTO_GetShiftState done [11:26:26]FM_GetShiftState done [11:26:26]req_shift_opened done [11:26:26]requested_item shift.open_date is exist - process it [11:26:26]req_shift_open_date [11:26:26]req_shift_open_date done [11:26:26]produce_requested_data done [11:26:26]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192856,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [11:26:26]process_action_free close_receipt [11:26:26]json_value_free [11:26:26]json_value_free done [11:26:26]process_json_proto returns [11:26:26]Send response to host [11:26:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192856,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [11:26:26]free response buf [11:26:26]execute_script done [11:26:26]execute_script returns [11:26:26]free content buf [11:26:26]Sock 8.Close socket [11:26:26]Sock 8.Thread stoped [11:26:30]OFD Sender: No OFD packet to send [11:26:35]OFD Sender: No OFD packet to send [11:26:40]OFD Sender: No OFD packet to send [11:26:45]OFD Sender: No OFD packet to send [11:26:50]OFD Sender: No OFD packet to send [11:26:55]OFD Sender: No OFD packet to send [11:27:00]OFD Sender: No OFD packet to send [11:27:05]OFD Sender: No OFD packet to send [11:27:10]OFD Sender: No OFD packet to send [11:27:15]OFD Sender: No OFD packet to send [11:27:19]accept exits with 9 [11:27:19]New connection [11:27:19]New thread 3066658148 created [11:27:19]Thread 3066801508 joined [11:27:19]Waiting for new connection... [11:27:19] Sock 9.Parse request [11:27:19]Sock 9.Check first char [11:27:19]Sock 9.First char is OK [11:27:19]request: POST /json_proto HTTP/1.0 [11:27:19]Method: POST [11:27:19]URL: /json_proto [11:27:19]Method is POST - this is cgi request [11:27:19]url: /json_proto [11:27:19]query_string will be loaded in cgi processing [11:27:19]execute_cgi json_proto POST (null) [11:27:19]execute_cgi path=json_proto method=POST [11:27:19]POST find Content-Length [11:27:19]Host: 172.17.63.131:8080 [11:27:19]Content-Length: 681 [11:27:19]Content-Type: application/json [11:27:19] [11:27:19]POST finish read [11:27:19]Found Content-Length = 681 [11:27:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32186", "tax_sys" : 0, "items" : [ { "pre_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:27:19]execute_script... [11:27: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)32186", "tax_sys" : 0, "items" : [ { "pre_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:27:19]POST & json_proto [11:27:19]process_json_proto [11:27:19]json parsed OK: [11:27:19]protocol is kg_v1.0 [11:27:19]action value=close_receipt [11:27:19]process_action close_receipt [11:27:19]cmd_close_receipt [11:27:19]MH_GetDate [11:27:19]Write to MH i2c: F0 00 00 49 2B 63 [11:27:19]Write i2c OK [11:27:19]MH_I2C_Read... [11:27:19]Read from MH i2c: F0 [11:27:19]MH_I2C_Read... [11:27:19]Read from MH i2c: F0 09 00 [11:27:19]MH_I2C_Read... [11:27:19]Read from MH i2c: F0 09 00 49 2B 00 9C C6 20 67 22 05 6E 64 4E [11:27:19]GetLastDocTimeStamp 1730201186 [11:27:19]current date 1730201244 [11:27:19]FM_GetShiftState [11:27:19]SAM_PROTO_GetShiftState [11:27:19]wFMCommunicate request_size=4 [11:27:19]MH_SAM_APDU [11:27:19]CAPDU: 80 13 01 00 [11:27:19]Write to MH i2c: E2 08 00 4A 2B 80 13 01 00 00 00 00 00 F2 [11:27:19]Write i2c OK [11:27:19]MH_I2C_Read... [11:27:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:19]Read from MH i2c: E2 [11:27:19]MH_I2C_Read... [11:27:19]Read from MH i2c: E2 0E 00 [11:27:19]MH_I2C_Read... [11:27:19]Read from MH i2c: E2 0E 00 4A 2B 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 F8 [11:27:19]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:27:19]wFMCommunicate OK [11:27:19]SAM_PROTO_GetShiftState done [11:27:19]FM_GetShiftState done [11:27:19]opened in 1730161990 [11:27:19]opened+sec_in_day 1730248390 [11:27:19]quantity*price = 100015 [11:27:19]sum+1 = 100017 [11:27: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 СÐО: Общий режим Чек 63 29.10.2024 11:27 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192857 ФПД: 246450920362288 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T112724&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192857&fm=246450920362288&tin=02508201610067®Number=0000000000091776&sum=100000 [11:27:20]StoreToDocumentArchive [11:27:20]shift 544 fd 192857 [11:27:20]save to /storage/0544/doc_00192857 [11:27:20]save last doc name /storage/0544/doc_00192857 to /storage/kkm_last_doc_name [11:27:20]save OK [11:27:20]Clear old archive folders... [11:27:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:27:20]tlvbuf is 00F99F30 [11:27:20]SAM_PROTO_ClearQueue [11:27:20]wFMCommunicate request_size=4 [11:27:20]MH_SAM_APDU [11:27:20]CAPDU: 80 09 00 00 [11:27:20]Write to MH i2c: E2 08 00 57 2B 80 09 00 00 00 00 00 00 F4 [11:27:20]Write i2c OK [11:27:20]MH_I2C_Read... [11:27:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:27:21]Read from MH i2c: E2 [11:27:21]MH_I2C_Read... [11:27:21]Read from MH i2c: E2 03 00 [11:27:21]MH_I2C_Read... [11:27:21]Read from MH i2c: E2 03 00 57 2B 00 90 00 F6 [11:27:21]RAPDU: 90 00 [11:27:21]wFMCommunicate OK [11:27:21]SAM_PROTO_ClearQueue done [11:27:21]KKMCreateOFDPacket [11:27:21]OFDProtocolAddRootSTLVToBuf [11:27:21]FM_MakeSignedData [11:27:21]FM_MakeSignedData [11:27:21]SAM_PROTO_SignData [11:27:21]wFMCommunicate request_size=4 [11:27:21]MH_SAM_APDU [11:27:21]CAPDU: 80 0D 01 02 [11:27:21]Write to MH i2c: E2 08 00 58 2B 80 0D 01 02 00 00 00 00 FC [11:27:21]Write i2c OK [11:27:21]MH_I2C_Read... [11:27:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:27:21]Read from MH i2c: E2 [11:27:21]MH_I2C_Read... [11:27:21]Read from MH i2c: E2 03 00 [11:27:21]MH_I2C_Read... [11:27:21]Read from MH i2c: E2 03 00 58 2B 00 90 00 F7 [11:27:21]RAPDU: 90 00 [11:27:21]wFMCommunicate OK [11:27:21]wFMCommunicate request_size=255 [11:27:21]MH_SAM_APDU [11:27: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 3F 00 00 00 F4 03 04 00 9C C6 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 E0 [11:27:21]Write to MH i2c: E2 02 01 59 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 9C C6 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 E0 00 00 00 [11:27:21]Write i2c OK [11:27:21]MH_I2C_Read... [11:27:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:21]Read from MH i2c: E2 [11:27:21]MH_I2C_Read... [11:27:21]Read from MH i2c: E2 03 00 [11:27:21]MH_I2C_Read... [11:27:21]Read from MH i2c: E2 03 00 59 2B 00 90 00 F8 [11:27:21]RAPDU: 90 00 [11:27:21]wFMCommunicate OK [11:27:21]wFMCommunicate request_size=10 [11:27:21]MH_SAM_APDU [11:27:21]CAPDU: 80 0D 02 02 05 25 53 90 11 30 [11:27:21]Write to MH i2c: E2 0D 00 5A 2B 80 0D 02 02 05 00 25 53 90 11 30 00 00 52 [11:27:21]Write i2c OK [11:27:21]MH_I2C_Read... [11:27:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:21]Read from MH i2c: E2 [11:27:21]MH_I2C_Read... [11:27:21]Read from MH i2c: E2 03 00 [11:27:21]MH_I2C_Read... [11:27:21]Read from MH i2c: E2 03 00 5A 2B 00 90 00 F9 [11:27:21]RAPDU: 90 00 [11:27:21]wFMCommunicate OK [11:27:21]wFMCommunicate request_size=4 [11:27:21]MH_SAM_APDU [11:27:21]CAPDU: 80 0D 03 02 [11:27:21]Write to MH i2c: E2 08 00 5B 2B 80 0D 03 02 00 00 00 00 01 [11:27:21]Write i2c OK [11:27:21]MH_I2C_Read... [11:27:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:27:21]Read from MH i2c: E2 [11:27:21]MH_I2C_Read... [11:27:21]Read from MH i2c: E2 0B 00 [11:27:21]MH_I2C_Read... [11:27:21]Read from MH i2c: E2 0B 00 5B 2B 00 75 60 FB 61 F9 EB 52 21 90 00 8A [11:27:21]RAPDU: 75 60 FB 61 F9 EB 52 21 90 00 [11:27:21]wFMCommunicate OK [11:27:21]SAM_PROTO_SignData done [11:27:21]FM_MakeSignedData done [11:27:21]CreateOFDProtocolMessage [11:27:21]wFMCommunicate request_size=4 [11:27:21]MH_SAM_APDU [11:27:21]CAPDU: 80 11 00 00 [11:27:21]Write to MH i2c: E2 08 00 5C 2B 80 11 00 00 00 00 00 00 01 [11:27:21]Write i2c OK [11:27:21]MH_I2C_Read... [11:27:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:21]Read from MH i2c: E2 [11:27:21]MH_I2C_Read... [11:27:21]Read from MH i2c: E2 17 00 [11:27:21]MH_I2C_Read... [11:27:21]Read from MH i2c: E2 17 00 5C 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 54 [11: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 [11:27:21]wFMCommunicate OK [11:27:21]CreateOFDProtocolMessage done [11:27:21]OFDSenderStorePacket 192857 [11:27:21]StoreOFDPacket docnum=192857 [11:27: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 D3 A6 07 01 67 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 9C C6 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 E0 25 53 90 11 30 75 60 FB 61 F9 EB 52 21 [11:27:21]CheckFolder [11:27:21]dirname=/storage/ofd_packets [11:27:21]CheckFolder done [11:27:21]ProducePacketName [11:27:21]name=ofd_packets/00192857 [11:27:21]NVStorageSaveData ofd_packets/00192857 [11:27:21]File name is /storage/ofd_packets/00192857 [11:27:21]Write 301 bytes [11:27:21]NVStorageSaveData done [11:27:21]OFDSenderStorePacket done [11:27:21]KKMCreateOFDPacket done [11:27:21]NVStorageSaveData kkm_last_timestamp [11:27:21]File name is /storage/kkm_last_timestamp [11:27:21]Write 4 bytes [11:27:21]NVStorageSaveData done [11:27:21]ExternCall_PrintAddStr [11:27:21]wPrintStart [11:27:21]Write to MH i2c: 01 00 00 5D 2B 88 [11:27:21]Write i2c OK [11:27:21]MH_I2C_Read... [11:27:21]Read from MH i2c: 01 [11:27:21]MH_I2C_Read... [11:27:21]Read from MH i2c: 01 07 00 [11:27:21]MH_I2C_Read... [11:27:21]Read from MH i2c: 01 07 00 5D 2B 00 00 00 00 00 FF 0F 9D [11:27:21]RasterBufferAndPrint [11:27:21]line Счет N : (1)32186 [11:27:21]line ИÐÐ: 02508201610067 [11:27:21]line Контрольно-КаÑÑовый Чек [11:27:21]line ПРОДÐЖР[11:27:21]line ТРК (МРК, ГÐК) : 21 [11:27:21]line Товар: 2710124130 [11:27:21]line Ðи-92-К-5 [11:27:21]line 14.950 * 66.90 [11:27:21]line = 1000.16 [11:27:21]line ÐДС 12% ÐСП 1% [11:27:21]line > о реализуемом товаре [11:27:21]line ОКРУГЛЕÐИЕ: -0.16 [11:27:21]line ИТОГО: 1000.00 [11:27:21]line ВнеÑено: 1000.00 [11:27:21]line СДÐЧÐ: 0.00 [11:27:21]line ÐСП 1% : 8.85 [11:27:21]line ÐДС 12% : 106.21 [11:27:21]line Ðаличными: 1000.00 [11:27:21]line Безнал.: 0.00 [11:27:21]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [11:27:21]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [11:27:21]line СÐО: Общий режим [11:27:21]line Чек 63 29.10.2024 11:27 [11:27:21]line Смена: 544 ФФД: 1.0 [11:27:21]line ЗÐМ: 0300000110 [11:27:21]line РÐМ: 0000000000091776 [11:27:21]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [11:27:21]line ФМ: 0000000000871754 [11:27:21]line ФД: 192857 [11:27:21]line ФПД: 246450920362288 [11:27:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T112724&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192857&fm=246450920362288&tin=02508201610067®Number=0000000000091776&sum=100000 [11:27:21]written 0, free lines is 4095 [11:27:21]OFD Sender: Processing packet 192857 [packets to send 75, broken 74] [11:27:21]ProducePacketName [11:27:21]name=ofd_packets/00192857 [11:27:21]OFD Sender: To server: ‡•öpG, [11:27:21]CommunicateWithHost lk.salyk.kg:30040 [11:27:21]ConnectInit lk.salyk.kg [11:27:21]Connected sock=10 [11:27: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 D3 A6 07 01 67 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 9C C6 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 E0 25 53 90 11 30 75 60 FB 61 F9 EB 52 21 [11:27: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 8A 69 47 00 49 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 59 F1 02 00 F4 03 04 00 5C 6B 20 67 B6 04 01 00 00 17 0C 46 CA 8F BC 30 52 [11:27:21]CommunicateWithHost err = 0 [11:27:21]CheckOFDResponse [11:27:21]1017 (14) - 77093643461234 [11:27:21]1041 (16) - 0000000000871754 [11:27:21]1040 (4) - 192857 [11:27:21]1012 (4) - 29.10.2024 04:58 [11:27:21]1206 (1) - 0 [11:27:21]OFD Sender: Remove packet 192857 [11:27:21]ProducePacketName [11:27:21]name=ofd_packets/00192857 [11:27:21]NVStorageDeleteData [11:27:21]Write to MH i2c: 01 00 00 88 2B B3 [11:27:21]Write i2c OK [11:27:21]MH_I2C_Read... [11:27:21]Read from MH i2c: 01 [11:27:21]MH_I2C_Read... [11:27:21]Read from MH i2c: 01 07 00 [11:27:21]MH_I2C_Read... [11:27:21]Read from MH i2c: 01 07 00 88 2B 00 00 00 00 00 B5 0C 7B [11:27:21]RasterBufferAndPrint [11:27:21]line [11:27:21]line [11:27:21]line [11:27:21]line [11:27:21]line [11:27:21]written 0, free lines is 3258 [11:27:22]MH_Cut [11:27:22]Write to MH i2c: D1 01 00 8F 2B 01 8C [11:27:22]Write i2c OK [11:27:22]MH_I2C_Read... [11:27:22]Read from MH i2c: D1 [11:27:22]MH_I2C_Read... [11:27:22]Read from MH i2c: D1 01 00 [11:27:22]MH_I2C_Read... [11:27:22]Read from MH i2c: D1 01 00 8F 2B 00 8B [11:27:22]Write to MH i2c: 01 00 00 90 2B BB [11:27:22]Write i2c OK [11:27:22]MH_I2C_Read... [11:27:22]OFD Sender: No OFD packet to send [11:27:22]*** Cut start [11:27:22]*** Partial cut [11:27:22]*** CUTSNS_PIN = 1 [11:27:22]*** CUTSNS_PIN = 0 [11:27:23]*** Brake cut motor [11:27:23]Read from MH i2c: 01 [11:27:23]MH_I2C_Read... [11:27:23]*** Stop cut motor [11:27:23]*** Cut end [11:27:23]Read from MH i2c: 01 07 00 [11:27:23]MH_I2C_Read... [11:27:23]Read from MH i2c: 01 07 00 90 2B 00 00 00 00 00 FF 0F D0 [11:27:23]process_action close_receipt done [11:27:23]requested_data is exist [11:27:23]produce_requested_data [11:27:23]requested_item fm.sn is exist - process it [11:27:23]wFMCommunicate request_size=4 [11:27:23]MH_SAM_APDU [11:27:23]CAPDU: 80 11 00 00 [11:27:23]Write to MH i2c: E2 08 00 91 2B 80 11 00 00 00 00 00 00 36 [11:27:23]Write i2c OK [11:27:23]MH_I2C_Read... [11:27:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:23]Read from MH i2c: E2 [11:27:23]MH_I2C_Read... [11:27:23]Read from MH i2c: E2 17 00 [11:27:23]MH_I2C_Read... [11:27:23]Read from MH i2c: E2 17 00 91 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 89 [11:27: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:27:23]wFMCommunicate OK [11:27:23]requested_item fd.num is exist - process it [11:27:23]SAM_PROTO_GetFieldsCounters [11:27:23]wFMCommunicate request_size=4 [11:27:23]MH_SAM_APDU [11:27:23]CAPDU: 80 13 00 00 [11:27:23]Write to MH i2c: E2 08 00 92 2B 80 13 00 00 00 00 00 00 39 [11:27:23]Write i2c OK [11:27:23]MH_I2C_Read... [11:27:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:27:23]Read from MH i2c: E2 [11:27:23]MH_I2C_Read... [11:27:23]Read from MH i2c: E2 62 00 [11:27:23]MH_I2C_Read... [11:27:23]Read from MH i2c: E2 62 00 92 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 59 F1 02 00 0E 04 04 00 20 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 8A [11:27: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 59 F1 02 00 0E 04 04 00 20 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 [11:27:23]wFMCommunicate OK [11:27:23]SAM_PROTO_GetFieldsCounters done [11:27:23]requested_item shift.num is exist - process it [11:27:23]requested_item shift.opened is exist - process it [11:27:23]req_shift_opened [11:27:23]FM_GetShiftState [11:27:23]SAM_PROTO_GetShiftState [11:27:23]wFMCommunicate request_size=4 [11:27:23]MH_SAM_APDU [11:27:23]CAPDU: 80 13 01 00 [11:27:23]Write to MH i2c: E2 08 00 93 2B 80 13 01 00 00 00 00 00 3B [11:27:23]Write i2c OK [11:27:23]MH_I2C_Read... [11:27:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:23]Read from MH i2c: E2 [11:27:23]MH_I2C_Read... [11:27:23]Read from MH i2c: E2 0E 00 [11:27:23]MH_I2C_Read... [11:27:23]Read from MH i2c: E2 0E 00 93 2B 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 41 [11:27:23]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:27:23]wFMCommunicate OK [11:27:23]SAM_PROTO_GetShiftState done [11:27:23]FM_GetShiftState done [11:27:23]req_shift_opened done [11:27:23]requested_item shift.open_date is exist - process it [11:27:23]req_shift_open_date [11:27:23]req_shift_open_date done [11:27:23]produce_requested_data done [11:27:23]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192857,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [11:27:23]process_action_free close_receipt [11:27:23]json_value_free [11:27:23]json_value_free done [11:27:23]process_json_proto returns [11:27:23]Send response to host [11:27:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192857,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [11:27:23]free response buf [11:27:23]execute_script done [11:27:23]execute_script returns [11:27:23]free content buf [11:27:23]Sock 9.Close socket [11:27:23]Sock 9.Thread stoped [11:27:26]accept exits with 8 [11:27:26]New connection [11:27:26]New thread 3066801508 created [11:27:26]Thread 3066658148 joined [11:27:26]Waiting for new connection... [11:27:26] Sock 8.Parse request [11:27:26]Sock 8.Check first char [11:27:26]Sock 8.First char is OK [11:27:26]request: POST /json_proto HTTP/1.0 [11:27:26]Method: POST [11:27:26]URL: /json_proto [11:27:26]Method is POST - this is cgi request [11:27:26]url: /json_proto [11:27:26]query_string will be loaded in cgi processing [11:27:26]execute_cgi json_proto POST (null) [11:27:26]execute_cgi path=json_proto method=POST [11:27:26]POST find Content-Length [11:27:26]Host: 172.17.63.131:8080 [11:27:26]Content-Length: 676 [11:27:26]Content-Type: application/json [11:27:26] [11:27:26]POST finish read [11:27:26]Found Content-Length = 676 [11:27:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32187", "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:27:26]execute_script... [11:27: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)32187", "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:27:26]POST & json_proto [11:27:26]process_json_proto [11:27:26]json parsed OK: [11:27:26]protocol is kg_v1.0 [11:27:26]action value=close_receipt [11:27:26]process_action close_receipt [11:27:26]cmd_close_receipt [11:27:26]MH_GetDate [11:27:26]Write to MH i2c: F0 00 00 94 2B AE [11:27:26]Write i2c OK [11:27:26]MH_I2C_Read... [11:27:26]Read from MH i2c: F0 [11:27:26]MH_I2C_Read... [11:27:26]Read from MH i2c: F0 09 00 [11:27:26]MH_I2C_Read... [11:27:26]Read from MH i2c: F0 09 00 94 2B 00 A2 C6 20 67 22 05 6E 64 9F [11:27:26]GetLastDocTimeStamp 1730201244 [11:27:26]current date 1730201250 [11:27:26]FM_GetShiftState [11:27:26]SAM_PROTO_GetShiftState [11:27:26]wFMCommunicate request_size=4 [11:27:26]MH_SAM_APDU [11:27:26]CAPDU: 80 13 01 00 [11:27:26]Write to MH i2c: E2 08 00 95 2B 80 13 01 00 00 00 00 00 3D [11:27:26]Write i2c OK [11:27:26]MH_I2C_Read... [11:27:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:26]Read from MH i2c: E2 [11:27:26]MH_I2C_Read... [11:27:26]Read from MH i2c: E2 0E 00 [11:27:26]MH_I2C_Read... [11:27:26]Read from MH i2c: E2 0E 00 95 2B 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 43 [11:27:26]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:27:26]wFMCommunicate OK [11:27:26]SAM_PROTO_GetShiftState done [11:27:26]FM_GetShiftState done [11:27:26]opened in 1730161990 [11:27:26]opened+sec_in_day 1730248390 [11:27:26]quantity*price = 40006 [11:27:26]sum+1 = 40007 [11:27:26]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 СÐО: Общий режим Чек 64 29.10.2024 11:27 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192858 ФПД: 89403088713712 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T112730&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192858&fm=89403088713712&tin=02508201610067®Number=0000000000091776&sum=40000 [11:27:27]StoreToDocumentArchive [11:27:27]shift 544 fd 192858 [11:27:27]save to /storage/0544/doc_00192858 [11:27:27]save last doc name /storage/0544/doc_00192858 to /storage/kkm_last_doc_name [11:27:27]save OK [11:27:27]Clear old archive folders... [11:27:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:27:27]tlvbuf is 00FAC4E0 [11:27:27]SAM_PROTO_ClearQueue [11:27:27]wFMCommunicate request_size=4 [11:27:27]MH_SAM_APDU [11:27:27]CAPDU: 80 09 00 00 [11:27:27]Write to MH i2c: E2 08 00 A2 2B 80 09 00 00 00 00 00 00 3F [11:27:27]Write i2c OK [11:27:27]MH_I2C_Read... [11:27:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:27:27]Read from MH i2c: E2 [11:27:27]MH_I2C_Read... [11:27:27]Read from MH i2c: E2 03 00 [11:27:27]MH_I2C_Read... [11:27:27]Read from MH i2c: E2 03 00 A2 2B 00 90 00 41 [11:27:27]RAPDU: 90 00 [11:27:27]wFMCommunicate OK [11:27:27]SAM_PROTO_ClearQueue done [11:27:27]KKMCreateOFDPacket [11:27:27]OFDProtocolAddRootSTLVToBuf [11:27:27]FM_MakeSignedData [11:27:27]FM_MakeSignedData [11:27:27]SAM_PROTO_SignData [11:27:27]wFMCommunicate request_size=4 [11:27:27]MH_SAM_APDU [11:27:27]CAPDU: 80 0D 01 02 [11:27:27]Write to MH i2c: E2 08 00 A3 2B 80 0D 01 02 00 00 00 00 47 [11:27:27]Write i2c OK [11:27:27]MH_I2C_Read... [11:27:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:27:27]Read from MH i2c: E2 [11:27:27]MH_I2C_Read... [11:27:27]Read from MH i2c: E2 03 00 [11:27:27]MH_I2C_Read... [11:27:27]Read from MH i2c: E2 03 00 A3 2B 00 90 00 42 [11:27:27]RAPDU: 90 00 [11:27:27]wFMCommunicate OK [11:27:27]wFMCommunicate request_size=255 [11:27:27]MH_SAM_APDU [11:27: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 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 40 00 00 00 F4 03 04 00 A2 C6 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 51 [11:27:27]Write to MH i2c: E2 02 01 A4 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 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 40 00 00 00 F4 03 04 00 A2 C6 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 51 00 00 99 [11:27:27]Write i2c OK [11:27:27]MH_I2C_Read... [11:27:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:28]Read from MH i2c: E2 [11:27:28]MH_I2C_Read... [11:27:28]Read from MH i2c: E2 03 00 [11:27:28]MH_I2C_Read... [11:27:28]Read from MH i2c: E2 03 00 A4 2B 00 90 00 43 [11:27:28]RAPDU: 90 00 [11:27:28]wFMCommunicate OK [11:27:28]wFMCommunicate request_size=10 [11:27:28]MH_SAM_APDU [11:27:28]CAPDU: 80 0D 02 02 05 4F C7 58 37 F0 [11:27:28]Write to MH i2c: E2 0D 00 A5 2B 80 0D 02 02 05 00 4F C7 58 37 F0 00 00 E9 [11:27:28]Write i2c OK [11:27:28]MH_I2C_Read... [11:27:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:28]Read from MH i2c: E2 [11:27:28]MH_I2C_Read... [11:27:28]Read from MH i2c: E2 03 00 [11:27:28]MH_I2C_Read... [11:27:28]Read from MH i2c: E2 03 00 A5 2B 00 90 00 44 [11:27:28]RAPDU: 90 00 [11:27:28]wFMCommunicate OK [11:27:28]wFMCommunicate request_size=4 [11:27:28]MH_SAM_APDU [11:27:28]CAPDU: 80 0D 03 02 [11:27:28]Write to MH i2c: E2 08 00 A6 2B 80 0D 03 02 00 00 00 00 4C [11:27:28]Write i2c OK [11:27:28]MH_I2C_Read... [11:27:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:27:28]Read from MH i2c: E2 [11:27:28]MH_I2C_Read... [11:27:28]Read from MH i2c: E2 0B 00 [11:27:28]MH_I2C_Read... [11:27:28]Read from MH i2c: E2 0B 00 A6 2B 00 E6 B0 48 19 F0 C8 21 99 90 00 B6 [11:27:28]RAPDU: E6 B0 48 19 F0 C8 21 99 90 00 [11:27:28]wFMCommunicate OK [11:27:28]SAM_PROTO_SignData done [11:27:28]FM_MakeSignedData done [11:27:28]CreateOFDProtocolMessage [11:27:28]wFMCommunicate request_size=4 [11:27:28]MH_SAM_APDU [11:27:28]CAPDU: 80 11 00 00 [11:27:28]Write to MH i2c: E2 08 00 A7 2B 80 11 00 00 00 00 00 00 4C [11:27:28]Write i2c OK [11:27:28]MH_I2C_Read... [11:27:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:28]Read from MH i2c: E2 [11:27:28]MH_I2C_Read... [11:27:28]Read from MH i2c: E2 17 00 [11:27:28]MH_I2C_Read... [11:27:28]Read from MH i2c: E2 17 00 A7 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9F [11:27: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:27:28]wFMCommunicate OK [11:27:28]CreateOFDProtocolMessage done [11:27:28]OFDSenderStorePacket 192858 [11:27:28]StoreOFDPacket docnum=192858 [11:27: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 E6 FA 07 01 CB 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 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 40 00 00 00 F4 03 04 00 A2 C6 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 51 4F C7 58 37 F0 E6 B0 48 19 F0 C8 21 99 [11:27:28]CheckFolder [11:27:28]dirname=/storage/ofd_packets [11:27:28]CheckFolder done [11:27:28]ProducePacketName [11:27:28]name=ofd_packets/00192858 [11:27:28]NVStorageSaveData ofd_packets/00192858 [11:27:28]File name is /storage/ofd_packets/00192858 [11:27:28]Write 301 bytes [11:27:28]NVStorageSaveData done [11:27:28]OFDSenderStorePacket done [11:27:28]KKMCreateOFDPacket done [11:27:28]NVStorageSaveData kkm_last_timestamp [11:27:28]File name is /storage/kkm_last_timestamp [11:27:28]Write 4 bytes [11:27:28]NVStorageSaveData done [11:27:28]ExternCall_PrintAddStr [11:27:28]wPrintStart [11:27:28]Write to MH i2c: 01 00 00 A8 2B D3 [11:27:28]Write i2c OK [11:27:28]MH_I2C_Read... [11:27:28]Read from MH i2c: 01 [11:27:28]MH_I2C_Read... [11:27:28]Read from MH i2c: 01 07 00 [11:27:28]MH_I2C_Read... [11:27:28]Read from MH i2c: 01 07 00 A8 2B 00 00 00 00 00 FF 0F E8 [11:27:28]RasterBufferAndPrint [11:27:28]line Счет N : (1)32187 [11:27:28]line ИÐÐ: 02508201610067 [11:27:28]line Контрольно-КаÑÑовый Чек [11:27:28]line ПРОДÐЖР[11:27:28]line ТРК (МРК, ГÐК) : 12 [11:27:28]line Товар: 2710124130 [11:27:28]line Ðи-92-К-5 [11:27:28]line 5.980 * 66.90 [11:27:28]line = 400.06 [11:27:28]line ÐДС 12% ÐСП 1% [11:27:28]line > о реализуемом товаре [11:27:28]line ОКРУГЛЕÐИЕ: -0.06 [11:27:28]line ИТОГО: 400.00 [11:27:28]line ВнеÑено: 400.00 [11:27:28]line СДÐЧÐ: 0.00 [11:27:28]line ÐСП 1% : 3.54 [11:27:28]line ÐДС 12% : 42.48 [11:27:28]line Ðаличными: 400.00 [11:27:28]line Безнал.: 0.00 [11:27:28]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [11:27:28]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [11:27:28]line СÐО: Общий режим [11:27:28]line Чек 64 29.10.2024 11:27 [11:27:28]line Смена: 544 ФФД: 1.0 [11:27:28]line ЗÐМ: 0300000110 [11:27:28]line РÐМ: 0000000000091776 [11:27:28]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [11:27:28]line ФМ: 0000000000871754 [11:27:28]line ФД: 192858 [11:27:28]line ФПД: 89403088713712 [11:27:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T112730&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192858&fm=89403088713712&tin=02508201610067®Number=0000000000091776&sum=40000 [11:27:28]written 0, free lines is 4095 [11:27:28]OFD Sender: Processing packet 192858 [packets to send 75, broken 74] [11:27:28]ProducePacketName [11:27:28]name=ofd_packets/00192858 [11:27:28]OFD Sender: To server: ‡•öpG, [11:27:28]CommunicateWithHost lk.salyk.kg:30040 [11:27:28]ConnectInit lk.salyk.kg [11:27:28]Connected sock=10 [11:27: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 E6 FA 07 01 CB 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 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 40 00 00 00 F4 03 04 00 A2 C6 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 51 4F C7 58 37 F0 E6 B0 48 19 F0 C8 21 99 [11:27: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 57 96 47 00 42 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 5A F1 02 00 F4 03 04 00 63 6B 20 67 B6 04 01 00 00 E0 38 EB A1 01 BC 16 4D [11:27:28]CommunicateWithHost err = 0 [11:27:28]CheckOFDResponse [11:27:28]1017 (14) - 77093643461234 [11:27:28]1041 (16) - 0000000000871754 [11:27:28]1040 (4) - 192858 [11:27:28]1012 (4) - 29.10.2024 04:58 [11:27:28]1206 (1) - 0 [11:27:28]OFD Sender: Remove packet 192858 [11:27:28]ProducePacketName [11:27:28]name=ofd_packets/00192858 [11:27:28]NVStorageDeleteData [11:27:28]Write to MH i2c: 01 00 00 D3 2B FE [11:27:28]Write i2c OK [11:27:28]MH_I2C_Read... [11:27:28]Read from MH i2c: 01 [11:27:28]MH_I2C_Read... [11:27:28]Read from MH i2c: 01 07 00 [11:27:28]MH_I2C_Read... [11:27:28]Read from MH i2c: 01 07 00 D3 2B 00 00 00 00 00 AA 0C BB [11:27:28]RasterBufferAndPrint [11:27:28]line [11:27:28]line [11:27:28]line [11:27:28]line [11:27:28]line [11:27:28]written 0, free lines is 3251 [11:27:28]MH_Cut [11:27:28]Write to MH i2c: D1 01 00 DA 2B 01 D7 [11:27:28]Write i2c OK [11:27:28]MH_I2C_Read... [11:27:28]Read from MH i2c: D1 [11:27:28]MH_I2C_Read... [11:27:28]Read from MH i2c: D1 01 00 [11:27:28]MH_I2C_Read... [11:27:28]Read from MH i2c: D1 01 00 DA 2B 00 D6 [11:27:28]Write to MH i2c: 01 00 00 DB 2B 06 [11:27:28]Write i2c OK [11:27:28]MH_I2C_Read... [11:27:29]OFD Sender: No OFD packet to send [11:27:29]*** Cut start [11:27:29]*** Partial cut [11:27:29]*** CUTSNS_PIN = 1 [11:27:29]*** CUTSNS_PIN = 0 [11:27:29]*** Brake cut motor [11:27:30]Read from MH i2c: 01 [11:27:30]MH_I2C_Read... [11:27:30]*** Stop cut motor [11:27:30]*** Cut end [11:27:30]Read from MH i2c: 01 07 00 [11:27:30]MH_I2C_Read... [11:27:30]Read from MH i2c: 01 07 00 DB 2B 00 00 00 00 00 FF 0F 1B [11:27:30]process_action close_receipt done [11:27:30]requested_data is exist [11:27:30]produce_requested_data [11:27:30]requested_item fm.sn is exist - process it [11:27:30]wFMCommunicate request_size=4 [11:27:30]MH_SAM_APDU [11:27:30]CAPDU: 80 11 00 00 [11:27:30]Write to MH i2c: E2 08 00 DC 2B 80 11 00 00 00 00 00 00 81 [11:27:30]Write i2c OK [11:27:30]MH_I2C_Read... [11:27:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:30]Read from MH i2c: E2 [11:27:30]MH_I2C_Read... [11:27:30]Read from MH i2c: E2 17 00 [11:27:30]MH_I2C_Read... [11:27:30]Read from MH i2c: E2 17 00 DC 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D4 [11:27:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:27:30]wFMCommunicate OK [11:27:30]requested_item fd.num is exist - process it [11:27:30]SAM_PROTO_GetFieldsCounters [11:27:30]wFMCommunicate request_size=4 [11:27:30]MH_SAM_APDU [11:27:30]CAPDU: 80 13 00 00 [11:27:30]Write to MH i2c: E2 08 00 DD 2B 80 13 00 00 00 00 00 00 84 [11:27:30]Write i2c OK [11:27:30]MH_I2C_Read... [11:27:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:27:30]Read from MH i2c: E2 [11:27:30]MH_I2C_Read... [11:27:30]Read from MH i2c: E2 62 00 [11:27:30]MH_I2C_Read... [11:27:30]Read from MH i2c: E2 62 00 DD 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 5A F1 02 00 0E 04 04 00 20 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 D9 [11:27: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 5A F1 02 00 0E 04 04 00 20 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 [11:27:30]wFMCommunicate OK [11:27:30]SAM_PROTO_GetFieldsCounters done [11:27:30]requested_item shift.num is exist - process it [11:27:30]requested_item shift.opened is exist - process it [11:27:30]req_shift_opened [11:27:30]FM_GetShiftState [11:27:30]SAM_PROTO_GetShiftState [11:27:30]wFMCommunicate request_size=4 [11:27:30]MH_SAM_APDU [11:27:30]CAPDU: 80 13 01 00 [11:27:30]Write to MH i2c: E2 08 00 DE 2B 80 13 01 00 00 00 00 00 86 [11:27:30]Write i2c OK [11:27:30]MH_I2C_Read... [11:27:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:30]Read from MH i2c: E2 [11:27:30]MH_I2C_Read... [11:27:30]Read from MH i2c: E2 0E 00 [11:27:30]MH_I2C_Read... [11:27:30]Read from MH i2c: E2 0E 00 DE 2B 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 8C [11:27:30]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:27:30]wFMCommunicate OK [11:27:30]SAM_PROTO_GetShiftState done [11:27:30]FM_GetShiftState done [11:27:30]req_shift_opened done [11:27:30]requested_item shift.open_date is exist - process it [11:27:30]req_shift_open_date [11:27:30]req_shift_open_date done [11:27:30]produce_requested_data done [11:27:30]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192858,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [11:27:30]process_action_free close_receipt [11:27:30]json_value_free [11:27:30]json_value_free done [11:27:30]process_json_proto returns [11:27:30]Send response to host [11:27:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192858,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [11:27:30]free response buf [11:27:30]execute_script done [11:27:30]execute_script returns [11:27:30]free content buf [11:27:30]Sock 8.Close socket [11:27:30]Sock 8.Thread stoped [11:27:34]OFD Sender: No OFD packet to send [11:27:39]OFD Sender: No OFD packet to send [11:27:44]OFD Sender: No OFD packet to send [11:27:49]OFD Sender: No OFD packet to send [11:27:54]OFD Sender: No OFD packet to send [11:27:59]OFD Sender: No OFD packet to send [11:28:04]OFD Sender: No OFD packet to send [11:28:09]OFD Sender: No OFD packet to send [11:28:14]OFD Sender: No OFD packet to send [11:28:19]OFD Sender: No OFD packet to send [11:28:24]OFD Sender: No OFD packet to send [11:28:24]accept exits with 9 [11:28:24]New connection [11:28:24]New thread 3066658148 created [11:28:24]Thread 3066801508 joined [11:28:24]Waiting for new connection... [11:28:24] Sock 9.Parse request [11:28:24]Sock 9.Check first char [11:28:24]Sock 9.First char is OK [11:28:24]request: POST /json_proto HTTP/1.0 [11:28:24]Method: POST [11:28:24]URL: /json_proto [11:28:24]Method is POST - this is cgi request [11:28:24]url: /json_proto [11:28:24]query_string will be loaded in cgi processing [11:28:24]execute_cgi json_proto POST (null) [11:28:24]execute_cgi path=json_proto method=POST [11:28:24]POST find Content-Length [11:28:24]Host: 172.17.63.131:8080 [11:28:24]Content-Length: 676 [11:28:24]Content-Type: application/json [11:28:24] [11:28:24]POST finish read [11:28:24]Found Content-Length = 676 [11:28:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32189", "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" ] } } [11:28:24]execute_script... [11:28:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32189", "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" ] } } [11:28:24]POST & json_proto [11:28:24]process_json_proto [11:28:24]json parsed OK: [11:28:24]protocol is kg_v1.0 [11:28:24]action value=close_receipt [11:28:24]process_action close_receipt [11:28:24]cmd_close_receipt [11:28:24]MH_GetDate [11:28:24]Write to MH i2c: F0 00 00 DF 2B F9 [11:28:24]Write i2c OK [11:28:24]MH_I2C_Read... [11:28:24]Read from MH i2c: F0 [11:28:24]MH_I2C_Read... [11:28:24]Read from MH i2c: F0 09 00 [11:28:24]MH_I2C_Read... [11:28:24]Read from MH i2c: F0 09 00 DF 2B 00 DC C6 20 67 22 05 6E 64 24 [11:28:24]GetLastDocTimeStamp 1730201250 [11:28:24]current date 1730201308 [11:28:24]FM_GetShiftState [11:28:24]SAM_PROTO_GetShiftState [11:28:24]wFMCommunicate request_size=4 [11:28:24]MH_SAM_APDU [11:28:24]CAPDU: 80 13 01 00 [11:28:24]Write to MH i2c: E2 08 00 E0 2B 80 13 01 00 00 00 00 00 88 [11:28:24]Write i2c OK [11:28:24]MH_I2C_Read... [11:28:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:24]Read from MH i2c: E2 [11:28:24]MH_I2C_Read... [11:28:24]Read from MH i2c: E2 0E 00 [11:28:24]MH_I2C_Read... [11:28:24]Read from MH i2c: E2 0E 00 E0 2B 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 8E [11:28:24]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:28:24]wFMCommunicate OK [11:28:24]SAM_PROTO_GetShiftState done [11:28:24]FM_GetShiftState done [11:28:24]opened in 1730161990 [11:28:24]opened+sec_in_day 1730248390 [11:28:24]quantity*price = 60009 [11:28:24]sum+1 = 60010 [11:28:24]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 СÐО: Общий режим Чек 65 29.10.2024 11:28 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192859 ФПД: 276864749438064 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T112828&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192859&fm=276864749438064&tin=02508201610067®Number=0000000000091776&sum=60000 [11:28:25]StoreToDocumentArchive [11:28:25]shift 544 fd 192859 [11:28:25]save to /storage/0544/doc_00192859 [11:28:25]save last doc name /storage/0544/doc_00192859 to /storage/kkm_last_doc_name [11:28:25]save OK [11:28:25]Clear old archive folders... [11:28:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:28:25]tlvbuf is 00FF4FF0 [11:28:25]SAM_PROTO_ClearQueue [11:28:25]wFMCommunicate request_size=4 [11:28:25]MH_SAM_APDU [11:28:25]CAPDU: 80 09 00 00 [11:28:25]Write to MH i2c: E2 08 00 ED 2B 80 09 00 00 00 00 00 00 8A [11:28:25]Write i2c OK [11:28:25]MH_I2C_Read... [11:28:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:25]Read from MH i2c: E2 [11:28:25]MH_I2C_Read... [11:28:25]Read from MH i2c: E2 03 00 [11:28:25]MH_I2C_Read... [11:28:25]Read from MH i2c: E2 03 00 ED 2B 00 90 00 8C [11:28:25]RAPDU: 90 00 [11:28:25]wFMCommunicate OK [11:28:25]SAM_PROTO_ClearQueue done [11:28:25]KKMCreateOFDPacket [11:28:25]OFDProtocolAddRootSTLVToBuf [11:28:25]FM_MakeSignedData [11:28:25]FM_MakeSignedData [11:28:25]SAM_PROTO_SignData [11:28:25]wFMCommunicate request_size=4 [11:28:25]MH_SAM_APDU [11:28:25]CAPDU: 80 0D 01 02 [11:28:25]Write to MH i2c: E2 08 00 EE 2B 80 0D 01 02 00 00 00 00 92 [11:28:25]Write i2c OK [11:28:25]MH_I2C_Read... [11:28:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:25]Read from MH i2c: E2 [11:28:25]MH_I2C_Read... [11:28:25]Read from MH i2c: E2 03 00 [11:28:25]MH_I2C_Read... [11:28:25]Read from MH i2c: E2 03 00 EE 2B 00 90 00 8D [11:28:25]RAPDU: 90 00 [11:28:25]wFMCommunicate OK [11:28:25]wFMCommunicate request_size=255 [11:28:25]MH_SAM_APDU [11:28:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 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 41 00 00 00 F4 03 04 00 DC C6 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 FB [11:28:25]Write to MH i2c: E2 02 01 EF 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 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 41 00 00 00 F4 03 04 00 DC C6 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 FB 00 00 D8 [11:28:25]Write i2c OK [11:28:25]MH_I2C_Read... [11:28:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:26]Read from MH i2c: E2 [11:28:26]MH_I2C_Read... [11:28:26]Read from MH i2c: E2 03 00 [11:28:26]MH_I2C_Read... [11:28:26]Read from MH i2c: E2 03 00 EF 2B 00 90 00 8E [11:28:26]RAPDU: 90 00 [11:28:26]wFMCommunicate OK [11:28:26]wFMCommunicate request_size=10 [11:28:26]MH_SAM_APDU [11:28:26]CAPDU: 80 0D 02 02 05 CE 99 0A 84 70 [11:28:26]Write to MH i2c: E2 0D 00 F0 2B 80 0D 02 02 05 00 CE 99 0A 84 70 00 00 04 [11:28:26]Write i2c OK [11:28:26]MH_I2C_Read... [11:28:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:26]Read from MH i2c: E2 [11:28:26]MH_I2C_Read... [11:28:26]Read from MH i2c: E2 03 00 [11:28:26]MH_I2C_Read... [11:28:26]Read from MH i2c: E2 03 00 F0 2B 00 90 00 8F [11:28:26]RAPDU: 90 00 [11:28:26]wFMCommunicate OK [11:28:26]wFMCommunicate request_size=4 [11:28:26]MH_SAM_APDU [11:28:26]CAPDU: 80 0D 03 02 [11:28:26]Write to MH i2c: E2 08 00 F1 2B 80 0D 03 02 00 00 00 00 97 [11:28:26]Write i2c OK [11:28:26]MH_I2C_Read... [11:28:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:26]Read from MH i2c: E2 [11:28:26]MH_I2C_Read... [11:28:26]Read from MH i2c: E2 0B 00 [11:28:26]MH_I2C_Read... [11:28:26]Read from MH i2c: E2 0B 00 F1 2B 00 F4 82 05 20 03 81 B6 C6 90 00 33 [11:28:26]RAPDU: F4 82 05 20 03 81 B6 C6 90 00 [11:28:26]wFMCommunicate OK [11:28:26]SAM_PROTO_SignData done [11:28:26]FM_MakeSignedData done [11:28:26]CreateOFDProtocolMessage [11:28:26]wFMCommunicate request_size=4 [11:28:26]MH_SAM_APDU [11:28:26]CAPDU: 80 11 00 00 [11:28:26]Write to MH i2c: E2 08 00 F2 2B 80 11 00 00 00 00 00 00 97 [11:28:26]Write i2c OK [11:28:26]MH_I2C_Read... [11:28:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:26]Read from MH i2c: E2 [11:28:26]MH_I2C_Read... [11:28:26]Read from MH i2c: E2 17 00 [11:28:26]MH_I2C_Read... [11:28:26]Read from MH i2c: E2 17 00 F2 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EA [11:28: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:28:26]wFMCommunicate OK [11:28:26]CreateOFDProtocolMessage done [11:28:26]OFDSenderStorePacket 192859 [11:28:26]StoreOFDPacket docnum=192859 [11:28:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E0 7B 07 01 62 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 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 41 00 00 00 F4 03 04 00 DC C6 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 FB CE 99 0A 84 70 F4 82 05 20 03 81 B6 C6 [11:28:26]CheckFolder [11:28:26]dirname=/storage/ofd_packets [11:28:26]CheckFolder done [11:28:26]ProducePacketName [11:28:26]name=ofd_packets/00192859 [11:28:26]NVStorageSaveData ofd_packets/00192859 [11:28:26]File name is /storage/ofd_packets/00192859 [11:28:26]Write 301 bytes [11:28:26]NVStorageSaveData done [11:28:26]OFDSenderStorePacket done [11:28:26]KKMCreateOFDPacket done [11:28:26]NVStorageSaveData kkm_last_timestamp [11:28:26]File name is /storage/kkm_last_timestamp [11:28:26]Write 4 bytes [11:28:26]NVStorageSaveData done [11:28:26]ExternCall_PrintAddStr [11:28:26]wPrintStart [11:28:26]Write to MH i2c: 01 00 00 F3 2B 1E [11:28:26]Write i2c OK [11:28:26]MH_I2C_Read... [11:28:26]Read from MH i2c: 01 [11:28:26]MH_I2C_Read... [11:28:26]Read from MH i2c: 01 07 00 [11:28:26]MH_I2C_Read... [11:28:26]Read from MH i2c: 01 07 00 F3 2B 00 00 00 00 00 FF 0F 33 [11:28:26]RasterBufferAndPrint [11:28:26]line Счет N : (1)32189 [11:28:26]line ИÐÐ: 02508201610067 [11:28:26]line Контрольно-КаÑÑовый Чек [11:28:26]line ПРОДÐЖР[11:28:26]line ТРК (МРК, ГÐК) : 12 [11:28:26]line Товар: 2710124130 [11:28:26]line Ðи-92-К-5 [11:28:26]line 8.970 * 66.90 [11:28:26]line = 600.09 [11:28:26]line ÐДС 12% ÐСП 1% [11:28:26]line > о реализуемом товаре [11:28:26]line ОКРУГЛЕÐИЕ: -0.09 [11:28:26]line ИТОГО: 600.00 [11:28:26]line ВнеÑено: 600.00 [11:28:26]line СДÐЧÐ: 0.00 [11:28:26]line ÐСП 1% : 5.31 [11:28:26]line ÐДС 12% : 63.73 [11:28:26]line Ðаличными: 600.00 [11:28:26]line Безнал.: 0.00 [11:28:26]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [11:28:26]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [11:28:26]line СÐО: Общий режим [11:28:26]line Чек 65 29.10.2024 11:28 [11:28:26]line Смена: 544 ФФД: 1.0 [11:28:26]line ЗÐМ: 0300000110 [11:28:26]line РÐМ: 0000000000091776 [11:28:26]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [11:28:26]line ФМ: 0000000000871754 [11:28:26]line ФД: 192859 [11:28:26]line ФПД: 276864749438064 [11:28:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T112828&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192859&fm=276864749438064&tin=02508201610067®Number=0000000000091776&sum=60000 [11:28:26]OFD Sender: Processing packet 192859 [packets to send 75, broken 74] [11:28:26]ProducePacketName [11:28:26]name=ofd_packets/00192859 [11:28:26]OFD Sender: To server: ‡•öpG, [11:28:26]CommunicateWithHost lk.salyk.kg:30040 [11:28:26]ConnectInit lk.salyk.kg [11:28:26]written 0, free lines is 4095 [11:28:26]Connected sock=10 [11:28:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E0 7B 07 01 62 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 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 41 00 00 00 F4 03 04 00 DC C6 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 FB CE 99 0A 84 70 F4 82 05 20 03 81 B6 C6 [11:28:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 5E 53 47 00 93 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 5B F1 02 00 F4 03 04 00 9D 6B 20 67 B6 04 01 00 00 21 A8 CA DA 84 0B DE 45 [11:28:26]CommunicateWithHost err = 0 [11:28:26]CheckOFDResponse [11:28:26]1017 (14) - 77093643461234 [11:28:26]1041 (16) - 0000000000871754 [11:28:26]1040 (4) - 192859 [11:28:26]1012 (4) - 29.10.2024 04:59 [11:28:26]1206 (1) - 0 [11:28:26]OFD Sender: Remove packet 192859 [11:28:26]ProducePacketName [11:28:26]name=ofd_packets/00192859 [11:28:26]NVStorageDeleteData [11:28:26]Write to MH i2c: 01 00 00 1E 2C 4A [11:28:26]Write i2c OK [11:28:26]MH_I2C_Read... [11:28:26]Read from MH i2c: 01 [11:28:26]MH_I2C_Read... [11:28:26]Read from MH i2c: 01 07 00 [11:28:26]MH_I2C_Read... [11:28:26]Read from MH i2c: 01 07 00 1E 2C 00 00 00 00 00 B6 0C 13 [11:28:26]RasterBufferAndPrint [11:28:26]line [11:28:26]line [11:28:26]line [11:28:26]line [11:28:26]line [11:28:26]written 0, free lines is 3262 [11:28:26]MH_Cut [11:28:26]Write to MH i2c: D1 01 00 25 2C 01 23 [11:28:26]Write i2c OK [11:28:26]MH_I2C_Read... [11:28:26]Read from MH i2c: D1 [11:28:26]MH_I2C_Read... [11:28:26]Read from MH i2c: D1 01 00 [11:28:26]MH_I2C_Read... [11:28:26]Read from MH i2c: D1 01 00 25 2C 00 22 [11:28:26]Write to MH i2c: 01 00 00 26 2C 52 [11:28:26]Write i2c OK [11:28:26]MH_I2C_Read... [11:28:27]OFD Sender: No OFD packet to send [11:28:27]*** Cut start [11:28:27]*** Partial cut [11:28:27]*** CUTSNS_PIN = 1 [11:28:27]*** CUTSNS_PIN = 0 [11:28:28]*** Brake cut motor [11:28:28]Read from MH i2c: 01 [11:28:28]MH_I2C_Read... [11:28:28]*** Stop cut motor [11:28:28]*** Cut end [11:28:28]Read from MH i2c: 01 07 00 [11:28:28]MH_I2C_Read... [11:28:28]Read from MH i2c: 01 07 00 26 2C 00 00 00 00 00 FF 0F 67 [11:28:28]process_action close_receipt done [11:28:28]requested_data is exist [11:28:28]produce_requested_data [11:28:28]requested_item fm.sn is exist - process it [11:28:28]wFMCommunicate request_size=4 [11:28:28]MH_SAM_APDU [11:28:28]CAPDU: 80 11 00 00 [11:28:28]Write to MH i2c: E2 08 00 27 2C 80 11 00 00 00 00 00 00 CD [11:28:28]Write i2c OK [11:28:28]MH_I2C_Read... [11:28:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:28]Read from MH i2c: E2 [11:28:28]MH_I2C_Read... [11:28:28]Read from MH i2c: E2 17 00 [11:28:28]MH_I2C_Read... [11:28:28]Read from MH i2c: E2 17 00 27 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 20 [11: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 [11:28:28]wFMCommunicate OK [11:28:28]requested_item fd.num is exist - process it [11:28:28]SAM_PROTO_GetFieldsCounters [11:28:28]wFMCommunicate request_size=4 [11:28:28]MH_SAM_APDU [11:28:28]CAPDU: 80 13 00 00 [11:28:28]Write to MH i2c: E2 08 00 28 2C 80 13 00 00 00 00 00 00 D0 [11:28:28]Write i2c OK [11:28:28]MH_I2C_Read... [11:28:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:28]Read from MH i2c: E2 [11:28:28]MH_I2C_Read... [11:28:28]Read from MH i2c: E2 62 00 [11:28:28]MH_I2C_Read... [11:28:28]Read from MH i2c: E2 62 00 28 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 5B F1 02 00 0E 04 04 00 20 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 29 [11:28:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 F1 02 00 0E 04 04 00 20 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 [11:28:28]wFMCommunicate OK [11:28:28]SAM_PROTO_GetFieldsCounters done [11:28:28]requested_item shift.num is exist - process it [11:28:28]requested_item shift.opened is exist - process it [11:28:28]req_shift_opened [11:28:28]FM_GetShiftState [11:28:28]SAM_PROTO_GetShiftState [11:28:28]wFMCommunicate request_size=4 [11:28:28]MH_SAM_APDU [11:28:28]CAPDU: 80 13 01 00 [11:28:28]Write to MH i2c: E2 08 00 29 2C 80 13 01 00 00 00 00 00 D2 [11:28:28]Write i2c OK [11:28:28]MH_I2C_Read... [11:28:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:28]Read from MH i2c: E2 [11:28:28]MH_I2C_Read... [11:28:28]Read from MH i2c: E2 0E 00 [11:28:28]MH_I2C_Read... [11:28:28]Read from MH i2c: E2 0E 00 29 2C 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 D8 [11:28:28]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:28:28]wFMCommunicate OK [11:28:28]SAM_PROTO_GetShiftState done [11:28:28]FM_GetShiftState done [11:28:28]req_shift_opened done [11:28:28]requested_item shift.open_date is exist - process it [11:28:28]req_shift_open_date [11:28:28]req_shift_open_date done [11:28:28]produce_requested_data done [11:28:28]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192859,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [11:28:28]process_action_free close_receipt [11:28:28]json_value_free [11:28:28]json_value_free done [11:28:28]process_json_proto returns [11:28:28]Send response to host [11:28:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192859,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [11:28:28]free response buf [11:28:28]execute_script done [11:28:28]execute_script returns [11:28:28]free content buf [11:28:28]Sock 9.Close socket [11:28:28]Sock 9.Thread stoped [11:28:32]OFD Sender: No OFD packet to send [11:28:37]OFD Sender: No OFD packet to send [11:28:41]accept exits with 8 [11:28:41]New connection [11:28:41]New thread 3066801508 created [11:28:41]Thread 3066658148 joined [11:28:41]Waiting for new connection... [11:28:41] Sock 8.Parse request [11:28:41]Sock 8.Check first char [11:28:41]Sock 8.First char is OK [11:28:41]request: POST /json_proto HTTP/1.0 [11:28:41]Method: POST [11:28:41]URL: /json_proto [11:28:41]Method is POST - this is cgi request [11:28:41]url: /json_proto [11:28:41]query_string will be loaded in cgi processing [11:28:41]execute_cgi json_proto POST (null) [11:28:41]execute_cgi path=json_proto method=POST [11:28:41]POST find Content-Length [11:28:41]Host: 172.17.63.131:8080 [11:28:41]Content-Length: 681 [11:28:41]Content-Type: application/json [11:28:41] [11:28:41]POST finish read [11:28:41]Found Content-Length = 681 [11:28:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32188", "tax_sys" : 0, "items" : [ { "pre_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:28:41]execute_script... [11:28: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)32188", "tax_sys" : 0, "items" : [ { "pre_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:28:41]POST & json_proto [11:28:41]process_json_proto [11:28:41]json parsed OK: [11:28:41]protocol is kg_v1.0 [11:28:41]action value=close_receipt [11:28:41]process_action close_receipt [11:28:41]cmd_close_receipt [11:28:41]MH_GetDate [11:28:41]Write to MH i2c: F0 00 00 2A 2C 45 [11:28:41]Write i2c OK [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: F0 [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: F0 09 00 [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: F0 09 00 2A 2C 00 EE C6 20 67 22 05 6E 64 82 [11:28:41]GetLastDocTimeStamp 1730201308 [11:28:41]current date 1730201326 [11:28:41]FM_GetShiftState [11:28:41]SAM_PROTO_GetShiftState [11:28:41]wFMCommunicate request_size=4 [11:28:41]MH_SAM_APDU [11:28:41]CAPDU: 80 13 01 00 [11:28:41]Write to MH i2c: E2 08 00 2B 2C 80 13 01 00 00 00 00 00 D4 [11:28:41]Write i2c OK [11:28:41]MH_I2C_Read... [11:28:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:41]Read from MH i2c: E2 [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: E2 0E 00 [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: E2 0E 00 2B 2C 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 DA [11:28:41]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:28:41]wFMCommunicate OK [11:28:41]SAM_PROTO_GetShiftState done [11:28:41]FM_GetShiftState done [11:28:41]opened in 1730161990 [11:28:41]opened+sec_in_day 1730248390 [11:28:41]quantity*price = 100015 [11:28:41]sum+1 = 100017 [11:28:41]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 СÐО: Общий режим Чек 66 29.10.2024 11:28 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192860 ФПД: 265276861641830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T112846&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192860&fm=265276861641830&tin=02508201610067®Number=0000000000091776&sum=100000 [11:28:42]StoreToDocumentArchive [11:28:42]shift 544 fd 192860 [11:28:42]save to /storage/0544/doc_00192860 [11:28:42]save last doc name /storage/0544/doc_00192860 to /storage/kkm_last_doc_name [11:28:42]save OK [11:28:42]Clear old archive folders... [11:28:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:28:42]tlvbuf is 00F0F300 [11:28:42]SAM_PROTO_ClearQueue [11:28:42]wFMCommunicate request_size=4 [11:28:42]MH_SAM_APDU [11:28:42]CAPDU: 80 09 00 00 [11:28:42]Write to MH i2c: E2 08 00 38 2C 80 09 00 00 00 00 00 00 D6 [11:28:42]Write i2c OK [11:28:42]MH_I2C_Read... [11:28:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:42]Read from MH i2c: E2 [11:28:42]MH_I2C_Read... [11:28:42]Read from MH i2c: E2 03 00 [11:28:42]MH_I2C_Read... [11:28:42]Read from MH i2c: E2 03 00 38 2C 00 90 00 D8 [11:28:42]RAPDU: 90 00 [11:28:42]wFMCommunicate OK [11:28:42]SAM_PROTO_ClearQueue done [11:28:42]KKMCreateOFDPacket [11:28:42]OFDProtocolAddRootSTLVToBuf [11:28:42]FM_MakeSignedData [11:28:42]FM_MakeSignedData [11:28:42]SAM_PROTO_SignData [11:28:42]wFMCommunicate request_size=4 [11:28:42]MH_SAM_APDU [11:28:42]CAPDU: 80 0D 01 02 [11:28:42]Write to MH i2c: E2 08 00 39 2C 80 0D 01 02 00 00 00 00 DE [11:28:42]Write i2c OK [11:28:42]MH_I2C_Read... [11:28:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:42]Read from MH i2c: E2 [11:28:42]MH_I2C_Read... [11:28:42]Read from MH i2c: E2 03 00 [11:28:42]MH_I2C_Read... [11:28:42]Read from MH i2c: E2 03 00 39 2C 00 90 00 D9 [11:28:42]RAPDU: 90 00 [11:28:42]wFMCommunicate OK [11:28:42]wFMCommunicate request_size=255 [11:28:42]MH_SAM_APDU [11:28:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 00 00 00 F4 03 04 00 EE C6 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 F1 [11:28:42]Write to MH i2c: E2 02 01 3A 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 00 00 00 F4 03 04 00 EE C6 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 F1 00 00 4B [11:28:42]Write i2c OK [11:28:42]MH_I2C_Read... [11:28:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:43]Read from MH i2c: E2 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 03 00 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 03 00 3A 2C 00 90 00 DA [11:28:43]RAPDU: 90 00 [11:28:43]wFMCommunicate OK [11:28:43]wFMCommunicate request_size=10 [11:28:43]MH_SAM_APDU [11:28:43]CAPDU: 80 0D 02 02 05 44 95 1A F4 66 [11:28:43]Write to MH i2c: E2 0D 00 3B 2C 80 0D 02 02 05 00 44 95 1A F4 66 00 00 38 [11:28:43]Write i2c OK [11:28:43]MH_I2C_Read... [11:28:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:43]Read from MH i2c: E2 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 03 00 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 03 00 3B 2C 00 90 00 DB [11:28:43]RAPDU: 90 00 [11:28:43]wFMCommunicate OK [11:28:43]wFMCommunicate request_size=4 [11:28:43]MH_SAM_APDU [11:28:43]CAPDU: 80 0D 03 02 [11:28:43]Write to MH i2c: E2 08 00 3C 2C 80 0D 03 02 00 00 00 00 E3 [11:28:43]Write i2c OK [11:28:43]MH_I2C_Read... [11:28:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:43]Read from MH i2c: E2 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 0B 00 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 0B 00 3C 2C 00 88 78 9B D1 17 78 61 BD 90 00 FD [11:28:43]RAPDU: 88 78 9B D1 17 78 61 BD 90 00 [11:28:43]wFMCommunicate OK [11:28:43]SAM_PROTO_SignData done [11:28:43]FM_MakeSignedData done [11:28:43]CreateOFDProtocolMessage [11:28:43]wFMCommunicate request_size=4 [11:28:43]MH_SAM_APDU [11:28:43]CAPDU: 80 11 00 00 [11:28:43]Write to MH i2c: E2 08 00 3D 2C 80 11 00 00 00 00 00 00 E3 [11:28:43]Write i2c OK [11:28:43]MH_I2C_Read... [11:28:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:43]Read from MH i2c: E2 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 17 00 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 17 00 3D 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 36 [11:28:43]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:43]wFMCommunicate OK [11:28:43]CreateOFDProtocolMessage done [11:28:43]OFDSenderStorePacket 192860 [11:28:43]StoreOFDPacket docnum=192860 [11:28: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 DF 39 07 01 DB 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 00 00 00 F4 03 04 00 EE C6 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 F1 44 95 1A F4 66 88 78 9B D1 17 78 61 BD [11:28:43]CheckFolder [11:28:43]dirname=/storage/ofd_packets [11:28:43]CheckFolder done [11:28:43]ProducePacketName [11:28:43]name=ofd_packets/00192860 [11:28:43]NVStorageSaveData ofd_packets/00192860 [11:28:43]File name is /storage/ofd_packets/00192860 [11:28:43]Write 301 bytes [11:28:43]NVStorageSaveData done [11:28:43]OFDSenderStorePacket done [11:28:43]KKMCreateOFDPacket done [11:28:43]NVStorageSaveData kkm_last_timestamp [11:28:43]File name is /storage/kkm_last_timestamp [11:28:43]Write 4 bytes [11:28:43]NVStorageSaveData done [11:28:43]ExternCall_PrintAddStr [11:28:43]wPrintStart [11:28:43]Write to MH i2c: 01 00 00 3E 2C 6A [11:28:43]Write i2c OK [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: 01 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: 01 07 00 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: 01 07 00 3E 2C 00 00 00 00 00 FF 0F 7F [11:28:43]RasterBufferAndPrint [11:28:43]line Счет N : (1)32188 [11:28:43]line ИÐÐ: 02508201610067 [11:28:43]line Контрольно-КаÑÑовый Чек [11:28:43]line ПРОДÐЖР[11:28:43]line ТРК (МРК, ГÐК) : 21 [11:28:43]line Товар: 2710124130 [11:28:43]line Ðи-92-К-5 [11:28:43]line 14.950 * 66.90 [11:28:43]line = 1000.16 [11:28:43]line ÐДС 12% ÐСП 1% [11:28:43]line > о реализуемом товаре [11:28:43]line ОКРУГЛЕÐИЕ: -0.16 [11:28:43]line ИТОГО: 1000.00 [11:28:43]line ВнеÑено: 1000.00 [11:28:43]line СДÐЧÐ: 0.00 [11:28:43]line ÐСП 1% : 8.85 [11:28:43]line ÐДС 12% : 106.21 [11:28:43]line Ðаличными: 1000.00 [11:28:43]line Безнал.: 0.00 [11:28:43]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [11:28:43]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [11:28:43]line СÐО: Общий режим [11:28:43]line Чек 66 29.10.2024 11:28 [11:28:43]line Смена: 544 ФФД: 1.0 [11:28:43]line ЗÐМ: 0300000110 [11:28:43]line РÐМ: 0000000000091776 [11:28:43]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [11:28:43]line ФМ: 0000000000871754 [11:28:43]line ФД: 192860 [11:28:43]line ФПД: 265276861641830 [11:28:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T112846&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192860&fm=265276861641830&tin=02508201610067®Number=0000000000091776&sum=100000 [11:28:43]OFD Sender: Processing packet 192860 [packets to send 75, broken 74] [11:28:43]ProducePacketName [11:28:43]name=ofd_packets/00192860 [11:28:43]OFD Sender: To server: ‡•öpG, [11:28:43]CommunicateWithHost lk.salyk.kg:30040 [11:28:43]ConnectInit lk.salyk.kg [11:28:43]written 0, free lines is 4095 [11:28:43]Connected sock=10 [11:28:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 DF 39 07 01 DB 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 00 00 00 F4 03 04 00 EE C6 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 F1 44 95 1A F4 66 88 78 9B D1 17 78 61 BD [11:28: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 92 8B 47 00 B9 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5C F1 02 00 F4 03 04 00 AF 6B 20 67 B6 04 01 00 00 01 D8 8D C0 E4 3D 91 2A [11:28:44]CommunicateWithHost err = 0 [11:28:44]CheckOFDResponse [11:28:44]1017 (14) - 77093643461234 [11:28:44]1041 (16) - 0000000000871754 [11:28:44]1040 (4) - 192860 [11:28:44]1012 (4) - 29.10.2024 04:59 [11:28:44]1206 (1) - 0 [11:28:44]OFD Sender: Remove packet 192860 [11:28:44]ProducePacketName [11:28:44]name=ofd_packets/00192860 [11:28:44]NVStorageDeleteData [11:28:44]Write to MH i2c: 01 00 00 69 2C 95 [11:28:44]Write i2c OK [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: 01 [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: 01 07 00 [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: 01 07 00 69 2C 00 00 00 00 00 C2 0C 6A [11:28:44]RasterBufferAndPrint [11:28:44]line [11:28:44]line [11:28:44]line [11:28:44]line [11:28:44]line [11:28:44]written 0, free lines is 3272 [11:28:44]MH_Cut [11:28:44]Write to MH i2c: D1 01 00 70 2C 01 6E [11:28:44]Write i2c OK [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: D1 [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: D1 01 00 [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: D1 01 00 70 2C 00 6D [11:28:44]Write to MH i2c: 01 00 00 71 2C 9D [11:28:44]Write i2c OK [11:28:44]MH_I2C_Read... [11:28:44]OFD Sender: No OFD packet to send [11:28:45]*** Cut start [11:28:45]*** Partial cut [11:28:45]*** CUTSNS_PIN = 1 [11:28:45]*** CUTSNS_PIN = 0 [11:28:45]*** Brake cut motor [11:28:45]Read from MH i2c: 01 [11:28:45]MH_I2C_Read... [11:28:45]*** Stop cut motor [11:28:45]*** Cut end [11:28:45]Read from MH i2c: 01 07 00 [11:28:45]MH_I2C_Read... [11:28:45]Read from MH i2c: 01 07 00 71 2C 00 00 00 00 00 FF 0F B2 [11:28:45]process_action close_receipt done [11:28:45]requested_data is exist [11:28:45]produce_requested_data [11:28:45]requested_item fm.sn is exist - process it [11:28:45]wFMCommunicate request_size=4 [11:28:45]MH_SAM_APDU [11:28:45]CAPDU: 80 11 00 00 [11:28:45]Write to MH i2c: E2 08 00 72 2C 80 11 00 00 00 00 00 00 18 [11:28:45]Write i2c OK [11:28:45]MH_I2C_Read... [11:28:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:45]Read from MH i2c: E2 [11:28:45]MH_I2C_Read... [11:28:45]Read from MH i2c: E2 17 00 [11:28:45]MH_I2C_Read... [11:28:45]Read from MH i2c: E2 17 00 72 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6B [11:28: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:28:45]wFMCommunicate OK [11:28:45]requested_item fd.num is exist - process it [11:28:45]SAM_PROTO_GetFieldsCounters [11:28:45]wFMCommunicate request_size=4 [11:28:45]MH_SAM_APDU [11:28:45]CAPDU: 80 13 00 00 [11:28:45]Write to MH i2c: E2 08 00 73 2C 80 13 00 00 00 00 00 00 1B [11:28:45]Write i2c OK [11:28:45]MH_I2C_Read... [11:28:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:45]Read from MH i2c: E2 [11:28:45]MH_I2C_Read... [11:28:45]Read from MH i2c: E2 62 00 [11:28:45]MH_I2C_Read... [11:28:45]Read from MH i2c: E2 62 00 73 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 5C F1 02 00 0E 04 04 00 20 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 78 [11:28: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 5C F1 02 00 0E 04 04 00 20 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 [11:28:45]wFMCommunicate OK [11:28:45]SAM_PROTO_GetFieldsCounters done [11:28:45]requested_item shift.num is exist - process it [11:28:45]requested_item shift.opened is exist - process it [11:28:45]req_shift_opened [11:28:45]FM_GetShiftState [11:28:45]SAM_PROTO_GetShiftState [11:28:45]wFMCommunicate request_size=4 [11:28:45]MH_SAM_APDU [11:28:45]CAPDU: 80 13 01 00 [11:28:45]Write to MH i2c: E2 08 00 74 2C 80 13 01 00 00 00 00 00 1D [11:28:45]Write i2c OK [11:28:45]MH_I2C_Read... [11:28:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:45]Read from MH i2c: E2 [11:28:45]MH_I2C_Read... [11:28:45]Read from MH i2c: E2 0E 00 [11:28:45]MH_I2C_Read... [11:28:45]Read from MH i2c: E2 0E 00 74 2C 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 23 [11:28:45]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:28:45]wFMCommunicate OK [11:28:45]SAM_PROTO_GetShiftState done [11:28:45]FM_GetShiftState done [11:28:45]req_shift_opened done [11:28:45]requested_item shift.open_date is exist - process it [11:28:45]req_shift_open_date [11:28:45]req_shift_open_date done [11:28:45]produce_requested_data done [11:28:45]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192860,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [11:28:45]process_action_free close_receipt [11:28:45]json_value_free [11:28:45]json_value_free done [11:28:45]process_json_proto returns [11:28:45]Send response to host [11:28:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192860,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [11:28:45]free response buf [11:28:45]execute_script done [11:28:45]execute_script returns [11:28:45]free content buf [11:28:45]Sock 8.Close socket [11:28:45]Sock 8.Thread stoped [11:28:49]OFD Sender: No OFD packet to send [11:28:54]OFD Sender: No OFD packet to send [11:28:59]OFD Sender: No OFD packet to send [11:29:04]OFD Sender: No OFD packet to send [11:29:09]OFD Sender: No OFD packet to send [11:29:14]OFD Sender: No OFD packet to send [11:29:19]OFD Sender: No OFD packet to send [11:29:24]OFD Sender: No OFD packet to send [11:29:29]OFD Sender: No OFD packet to send [11:29:34]OFD Sender: No OFD packet to send [11:29:39]OFD Sender: No OFD packet to send [11:29:44]OFD Sender: No OFD packet to send [11:29:49]OFD Sender: No OFD packet to send [11:29:54]OFD Sender: No OFD packet to send [11:29:59]OFD Sender: No OFD packet to send [11:30:04]OFD Sender: No OFD packet to send [11:30:09]OFD Sender: No OFD packet to send [11:30:14]OFD Sender: No OFD packet to send [11:30:19]OFD Sender: No OFD packet to send [11:30:24]OFD Sender: No OFD packet to send [11:30:29]OFD Sender: No OFD packet to send [11:30:34]OFD Sender: No OFD packet to send [11:30:39]OFD Sender: No OFD packet to send [11:30:44]OFD Sender: No OFD packet to send [11:30:49]OFD Sender: No OFD packet to send [11:30:54]OFD Sender: No OFD packet to send [11:30:59]OFD Sender: No OFD packet to send [11:31:04]OFD Sender: No OFD packet to send [11:31:09]OFD Sender: No OFD packet to send [11:31:14]OFD Sender: No OFD packet to send [11:31:19]OFD Sender: No OFD packet to send [11:31:24]OFD Sender: No OFD packet to send [11:31:29]OFD Sender: No OFD packet to send [11:31:34]accept exits with 9 [11:31:34]New connection [11:31:34]New thread 3066658148 created [11:31:34]Thread 3066801508 joined [11:31:34]Waiting for new connection... [11:31:34] Sock 9.Parse request [11:31:34]Sock 9.Check first char [11:31:34]Sock 9.First char is OK [11:31:34]request: POST /json_proto HTTP/1.0 [11:31:34]Method: POST [11:31:34]URL: /json_proto [11:31:34]Method is POST - this is cgi request [11:31:34]url: /json_proto [11:31:34]query_string will be loaded in cgi processing [11:31:34]execute_cgi json_proto POST (null) [11:31:34]execute_cgi path=json_proto method=POST [11:31:34]POST find Content-Length [11:31:34]Host: 172.17.63.131:8080 [11:31:34]Content-Length: 677 [11:31:34]Content-Type: application/json [11:31:34] [11:31:34]POST finish read [11:31:34]Found Content-Length = 677 [11:31:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32190", "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" ] } } [11:31:34]execute_script... [11:31: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)32190", "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" ] } } [11:31:34]POST & json_proto [11:31:34]process_json_proto [11:31:34]json parsed OK: [11:31:34]protocol is kg_v1.0 [11:31:34]action value=close_receipt [11:31:34]process_action close_receipt [11:31:34]cmd_close_receipt [11:31:34]MH_GetDate [11:31:34]Write to MH i2c: F0 00 00 75 2C 90 [11:31:34]Write i2c OK [11:31:34]MH_I2C_Read... [11:31:34]Read from MH i2c: F0 [11:31:34]MH_I2C_Read... [11:31:34]Read from MH i2c: F0 09 00 [11:31:34]MH_I2C_Read... [11:31:34]Read from MH i2c: F0 09 00 75 2C 00 9A C7 20 67 22 05 6E 64 7A [11:31:34]GetLastDocTimeStamp 1730201326 [11:31:34]current date 1730201498 [11:31:34]FM_GetShiftState [11:31:34]SAM_PROTO_GetShiftState [11:31:34]wFMCommunicate request_size=4 [11:31:34]MH_SAM_APDU [11:31:34]CAPDU: 80 13 01 00 [11:31:34]Write to MH i2c: E2 08 00 76 2C 80 13 01 00 00 00 00 00 1F [11:31:34]Write i2c OK [11:31:34]MH_I2C_Read... [11:31:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:34]Read from MH i2c: E2 [11:31:34]MH_I2C_Read... [11:31:34]Read from MH i2c: E2 0E 00 [11:31:34]MH_I2C_Read... [11:31:34]Read from MH i2c: E2 0E 00 76 2C 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 25 [11:31:34]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:31:34]wFMCommunicate OK [11:31:34]SAM_PROTO_GetShiftState done [11:31:34]FM_GetShiftState done [11:31:34]opened in 1730161990 [11:31:34]opened+sec_in_day 1730248390 [11:31:34]quantity*price = 70044 [11:31:34]sum+1 = 70045 [11:31:34]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 СÐО: Общий режим Чек 67 29.10.2024 11:31 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192861 ФПД: 267237495635990 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T113138&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192861&fm=267237495635990&tin=02508201610067®Number=0000000000091776&sum=70000 [11:31:35]StoreToDocumentArchive [11:31:35]shift 544 fd 192861 [11:31:35]save to /storage/0544/doc_00192861 [11:31:35]save last doc name /storage/0544/doc_00192861 to /storage/kkm_last_doc_name [11:31:35]save OK [11:31:35]Clear old archive folders... [11:31:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:31:35]tlvbuf is 00F68B60 [11:31:35]SAM_PROTO_ClearQueue [11:31:35]wFMCommunicate request_size=4 [11:31:35]MH_SAM_APDU [11:31:35]CAPDU: 80 09 00 00 [11:31:35]Write to MH i2c: E2 08 00 83 2C 80 09 00 00 00 00 00 00 21 [11:31:35]Write i2c OK [11:31:35]MH_I2C_Read... [11:31:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:31:35]Read from MH i2c: E2 [11:31:35]MH_I2C_Read... [11:31:35]Read from MH i2c: E2 03 00 [11:31:35]MH_I2C_Read... [11:31:35]Read from MH i2c: E2 03 00 83 2C 00 90 00 23 [11:31:35]RAPDU: 90 00 [11:31:35]wFMCommunicate OK [11:31:35]SAM_PROTO_ClearQueue done [11:31:35]KKMCreateOFDPacket [11:31:35]OFDProtocolAddRootSTLVToBuf [11:31:35]FM_MakeSignedData [11:31:35]FM_MakeSignedData [11:31:35]SAM_PROTO_SignData [11:31:35]wFMCommunicate request_size=4 [11:31:35]MH_SAM_APDU [11:31:35]CAPDU: 80 0D 01 02 [11:31:35]Write to MH i2c: E2 08 00 84 2C 80 0D 01 02 00 00 00 00 29 [11:31:35]Write i2c OK [11:31:35]MH_I2C_Read... [11:31:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:31:35]Read from MH i2c: E2 [11:31:35]MH_I2C_Read... [11:31:35]Read from MH i2c: E2 03 00 [11:31:35]MH_I2C_Read... [11:31:35]Read from MH i2c: E2 03 00 84 2C 00 90 00 24 [11:31:35]RAPDU: 90 00 [11:31:35]wFMCommunicate OK [11:31:35]wFMCommunicate request_size=255 [11:31:35]MH_SAM_APDU [11: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 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 43 00 00 00 F4 03 04 00 9A C7 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 F3 [11:31:35]Write to MH i2c: E2 02 01 85 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 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 43 00 00 00 F4 03 04 00 9A C7 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 F3 00 00 5D [11:31:35]Write i2c OK [11:31:35]MH_I2C_Read... [11:31:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:35]Read from MH i2c: E2 [11:31:35]MH_I2C_Read... [11:31:35]Read from MH i2c: E2 03 00 [11:31:35]MH_I2C_Read... [11:31:35]Read from MH i2c: E2 03 00 85 2C 00 90 00 25 [11:31:35]RAPDU: 90 00 [11:31:35]wFMCommunicate OK [11:31:35]wFMCommunicate request_size=10 [11:31:35]MH_SAM_APDU [11:31:35]CAPDU: 80 0D 02 02 05 0D 13 FF 80 16 [11:31:35]Write to MH i2c: E2 0D 00 86 2C 80 0D 02 02 05 00 0D 13 FF 80 16 00 00 EB [11:31:35]Write i2c OK [11:31:35]MH_I2C_Read... [11:31:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:35]Read from MH i2c: E2 [11:31:35]MH_I2C_Read... [11:31:35]Read from MH i2c: E2 03 00 [11:31:35]MH_I2C_Read... [11:31:35]Read from MH i2c: E2 03 00 86 2C 00 90 00 26 [11:31:35]RAPDU: 90 00 [11:31:35]wFMCommunicate OK [11:31:35]wFMCommunicate request_size=4 [11:31:35]MH_SAM_APDU [11:31:35]CAPDU: 80 0D 03 02 [11:31:35]Write to MH i2c: E2 08 00 87 2C 80 0D 03 02 00 00 00 00 2E [11:31:35]Write i2c OK [11:31:35]MH_I2C_Read... [11:31:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:31:35]Read from MH i2c: E2 [11:31:35]MH_I2C_Read... [11:31:35]Read from MH i2c: E2 0B 00 [11:31:35]MH_I2C_Read... [11:31:35]Read from MH i2c: E2 0B 00 87 2C 00 0B FB 28 04 78 6D 4A 4D 90 00 DD [11:31:35]RAPDU: 0B FB 28 04 78 6D 4A 4D 90 00 [11:31:35]wFMCommunicate OK [11:31:35]SAM_PROTO_SignData done [11:31:35]FM_MakeSignedData done [11:31:35]CreateOFDProtocolMessage [11:31:35]wFMCommunicate request_size=4 [11:31:35]MH_SAM_APDU [11:31:35]CAPDU: 80 11 00 00 [11:31:35]Write to MH i2c: E2 08 00 88 2C 80 11 00 00 00 00 00 00 2E [11:31:35]Write i2c OK [11:31:35]MH_I2C_Read... [11:31:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:35]Read from MH i2c: E2 [11:31:35]MH_I2C_Read... [11:31:35]Read from MH i2c: E2 17 00 [11:31:35]MH_I2C_Read... [11:31:35]Read from MH i2c: E2 17 00 88 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 81 [11: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 [11:31:35]wFMCommunicate OK [11:31:35]CreateOFDProtocolMessage done [11:31:35]OFDSenderStorePacket 192861 [11:31:35]StoreOFDPacket docnum=192861 [11: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 22 23 07 01 3D 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 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 43 00 00 00 F4 03 04 00 9A C7 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 F3 0D 13 FF 80 16 0B FB 28 04 78 6D 4A 4D [11:31:35]CheckFolder [11:31:35]dirname=/storage/ofd_packets [11:31:35]CheckFolder done [11:31:35]ProducePacketName [11:31:35]name=ofd_packets/00192861 [11:31:35]NVStorageSaveData ofd_packets/00192861 [11:31:35]File name is /storage/ofd_packets/00192861 [11:31:35]Write 301 bytes [11:31:35]NVStorageSaveData done [11:31:35]OFDSenderStorePacket done [11:31:35]KKMCreateOFDPacket done [11:31:35]NVStorageSaveData kkm_last_timestamp [11:31:35]File name is /storage/kkm_last_timestamp [11:31:35]Write 4 bytes [11:31:35]NVStorageSaveData done [11:31:35]ExternCall_PrintAddStr [11:31:35]wPrintStart [11:31:35]Write to MH i2c: 01 00 00 89 2C B5 [11:31:35]Write i2c OK [11:31:35]MH_I2C_Read... [11:31:35]Read from MH i2c: 01 [11:31:35]MH_I2C_Read... [11:31:35]Read from MH i2c: 01 07 00 [11:31:35]MH_I2C_Read... [11:31:35]Read from MH i2c: 01 07 00 89 2C 00 00 00 00 00 FF 0F CA [11:31:35]RasterBufferAndPrint [11:31:35]line Счет N : (1)32190 [11:31:35]line ИÐÐ: 02508201610067 [11:31:35]line Контрольно-КаÑÑовый Чек [11:31:35]line ПРОДÐЖР[11:31:35]line ТРК (МРК, ГÐК) : 12 [11:31:35]line Товар: 2710124130 [11:31:35]line Ðи-92-К-5 [11:31:35]line 10.470 * 66.90 [11:31:35]line = 700.44 [11:31:35]line ÐДС 12% ÐСП 1% [11:31:35]line > о реализуемом товаре [11:31:35]line ОКРУГЛЕÐИЕ: -0.44 [11:31:35]line ИТОГО: 700.00 [11:31:35]line ВнеÑено: 700.00 [11:31:35]line СДÐЧÐ: 0.00 [11:31:35]line ÐСП 1% : 6.20 [11:31:35]line ÐДС 12% : 74.38 [11:31:35]line Ðаличными: 700.00 [11:31:35]line Безнал.: 0.00 [11:31:35]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [11:31:35]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [11:31:35]line СÐО: Общий режим [11:31:35]line Чек 67 29.10.2024 11:31 [11:31:35]line Смена: 544 ФФД: 1.0 [11:31:35]line ЗÐМ: 0300000110 [11:31:35]line РÐМ: 0000000000091776 [11:31:35]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [11:31:35]line ФМ: 0000000000871754 [11:31:35]line ФД: 192861 [11:31:35]line ФПД: 267237495635990 [11:31:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T113138&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192861&fm=267237495635990&tin=02508201610067®Number=0000000000091776&sum=70000 [11:31:36]OFD Sender: Processing packet 192861 [packets to send 75, broken 74] [11:31:36]ProducePacketName [11:31:36]name=ofd_packets/00192861 [11:31:36]OFD Sender: To server: ‡•öpG, [11:31:36]CommunicateWithHost lk.salyk.kg:30040 [11:31:36]ConnectInit lk.salyk.kg [11:31:36]written 0, free lines is 4095 [11:31:36]Connected sock=10 [11: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 22 23 07 01 3D 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 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 43 00 00 00 F4 03 04 00 9A C7 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 F3 0D 13 FF 80 16 0B FB 28 04 78 6D 4A 4D [11: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 15 18 47 00 4B 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 5D F1 02 00 F4 03 04 00 5B 6C 20 67 B6 04 01 00 00 18 F9 83 A4 F5 C4 B5 34 [11:31:36]CommunicateWithHost err = 0 [11:31:36]CheckOFDResponse [11:31:36]1017 (14) - 77093643461234 [11:31:36]1041 (16) - 0000000000871754 [11:31:36]1040 (4) - 192861 [11:31:36]1012 (4) - 29.10.2024 05:02 [11:31:36]1206 (1) - 0 [11:31:36]OFD Sender: Remove packet 192861 [11:31:36]ProducePacketName [11:31:36]name=ofd_packets/00192861 [11:31:36]NVStorageDeleteData [11:31:36]Write to MH i2c: 01 00 00 B4 2C E0 [11:31:36]Write i2c OK [11:31:36]MH_I2C_Read... [11:31:36]Read from MH i2c: 01 [11:31:36]MH_I2C_Read... [11:31:36]Read from MH i2c: 01 07 00 [11:31:36]MH_I2C_Read... [11:31:36]Read from MH i2c: 01 07 00 B4 2C 00 00 00 00 00 B4 0C A7 [11:31:36]RasterBufferAndPrint [11:31:36]line [11:31:36]line [11:31:36]line [11:31:36]line [11:31:36]line [11:31:36]written 0, free lines is 3258 [11:31:36]MH_Cut [11:31:36]Write to MH i2c: D1 01 00 BB 2C 01 B9 [11:31:36]Write i2c OK [11:31:36]MH_I2C_Read... [11:31:36]Read from MH i2c: D1 [11:31:36]MH_I2C_Read... [11:31:36]Read from MH i2c: D1 01 00 [11:31:36]MH_I2C_Read... [11:31:36]Read from MH i2c: D1 01 00 BB 2C 00 B8 [11:31:36]Write to MH i2c: 01 00 00 BC 2C E8 [11:31:36]Write i2c OK [11:31:36]MH_I2C_Read... [11:31:37]OFD Sender: No OFD packet to send [11:31:37]*** Cut start [11:31:37]*** Partial cut [11:31:37]*** CUTSNS_PIN = 1 [11:31:37]*** CUTSNS_PIN = 0 [11:31:37]*** Brake cut motor [11:31:38]Read from MH i2c: 01 [11:31:38]MH_I2C_Read... [11:31:38]*** Stop cut motor [11:31:38]*** Cut end [11:31:38]Read from MH i2c: 01 07 00 [11:31:38]MH_I2C_Read... [11:31:38]Read from MH i2c: 01 07 00 BC 2C 00 00 00 00 00 FF 0F FD [11:31:38]process_action close_receipt done [11:31:38]requested_data is exist [11:31:38]produce_requested_data [11:31:38]requested_item fm.sn is exist - process it [11:31:38]wFMCommunicate request_size=4 [11:31:38]MH_SAM_APDU [11:31:38]CAPDU: 80 11 00 00 [11:31:38]Write to MH i2c: E2 08 00 BD 2C 80 11 00 00 00 00 00 00 63 [11:31:38]Write i2c OK [11:31:38]MH_I2C_Read... [11:31:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:38]Read from MH i2c: E2 [11:31:38]MH_I2C_Read... [11:31:38]Read from MH i2c: E2 17 00 [11:31:38]MH_I2C_Read... [11:31:38]Read from MH i2c: E2 17 00 BD 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B6 [11:31:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:31:38]wFMCommunicate OK [11:31:38]requested_item fd.num is exist - process it [11:31:38]SAM_PROTO_GetFieldsCounters [11:31:38]wFMCommunicate request_size=4 [11:31:38]MH_SAM_APDU [11:31:38]CAPDU: 80 13 00 00 [11:31:38]Write to MH i2c: E2 08 00 BE 2C 80 13 00 00 00 00 00 00 66 [11:31:38]Write i2c OK [11:31:38]MH_I2C_Read... [11:31:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:31:38]Read from MH i2c: E2 [11:31:38]MH_I2C_Read... [11:31:38]Read from MH i2c: E2 62 00 [11:31:38]MH_I2C_Read... [11:31:38]Read from MH i2c: E2 62 00 BE 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 5D F1 02 00 0E 04 04 00 20 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 C7 [11: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 5D F1 02 00 0E 04 04 00 20 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 [11:31:38]wFMCommunicate OK [11:31:38]SAM_PROTO_GetFieldsCounters done [11:31:38]requested_item shift.num is exist - process it [11:31:38]requested_item shift.opened is exist - process it [11:31:38]req_shift_opened [11:31:38]FM_GetShiftState [11:31:38]SAM_PROTO_GetShiftState [11:31:38]wFMCommunicate request_size=4 [11:31:38]MH_SAM_APDU [11:31:38]CAPDU: 80 13 01 00 [11:31:38]Write to MH i2c: E2 08 00 BF 2C 80 13 01 00 00 00 00 00 68 [11:31:38]Write i2c OK [11:31:38]MH_I2C_Read... [11:31:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:38]Read from MH i2c: E2 [11:31:38]MH_I2C_Read... [11:31:38]Read from MH i2c: E2 0E 00 [11:31:38]MH_I2C_Read... [11:31:38]Read from MH i2c: E2 0E 00 BF 2C 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 6E [11:31:38]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:31:38]wFMCommunicate OK [11:31:38]SAM_PROTO_GetShiftState done [11:31:38]FM_GetShiftState done [11:31:38]req_shift_opened done [11:31:38]requested_item shift.open_date is exist - process it [11:31:38]req_shift_open_date [11:31:38]req_shift_open_date done [11:31:38]produce_requested_data done [11:31:38]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192861,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [11:31:38]process_action_free close_receipt [11:31:38]json_value_free [11:31:38]json_value_free done [11:31:38]process_json_proto returns [11:31:38]Send response to host [11:31:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192861,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [11:31:38]free response buf [11:31:38]execute_script done [11:31:38]execute_script returns [11:31:38]free content buf [11:31:38]Sock 9.Close socket [11:31:38]Sock 9.Thread stoped [11:31:42]OFD Sender: No OFD packet to send [11:31:47]OFD Sender: No OFD packet to send [11:31:52]OFD Sender: No OFD packet to send [11:31:57]OFD Sender: No OFD packet to send [11:32:02]OFD Sender: No OFD packet to send [11:32:07]OFD Sender: No OFD packet to send [11:32:12]OFD Sender: No OFD packet to send [11:32:17]OFD Sender: No OFD packet to send [11:32:22]OFD Sender: No OFD packet to send [11:32:25]accept exits with 8 [11:32:25]New connection [11:32:25]New thread 3066801508 created [11:32:25]Thread 3066658148 joined [11:32:25]Waiting for new connection... [11:32:25] Sock 8.Parse request [11:32:25]Sock 8.Check first char [11:32:25]Sock 8.First char is OK [11:32:25]request: POST /json_proto HTTP/1.0 [11:32:25]Method: POST [11:32:25]URL: /json_proto [11:32:25]Method is POST - this is cgi request [11:32:25]url: /json_proto [11:32:25]query_string will be loaded in cgi processing [11:32:25]execute_cgi json_proto POST (null) [11:32:25]execute_cgi path=json_proto method=POST [11:32:25]POST find Content-Length [11:32:25]Host: 172.17.63.131:8080 [11:32:25]Content-Length: 676 [11:32:25]Content-Type: application/json [11:32:25] [11:32:25]POST finish read [11:32:25]Found Content-Length = 676 [11:32:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32191", "tax_sys" : 0, "items" : [ { "pre_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:25]execute_script... [11: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)32191", "tax_sys" : 0, "items" : [ { "pre_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:25]POST & json_proto [11:32:25]process_json_proto [11:32:25]json parsed OK: [11:32:25]protocol is kg_v1.0 [11:32:25]action value=close_receipt [11:32:25]process_action close_receipt [11:32:25]cmd_close_receipt [11:32:25]MH_GetDate [11:32:25]Write to MH i2c: F0 00 00 C0 2C DB [11:32:25]Write i2c OK [11:32:25]MH_I2C_Read... [11:32:25]Read from MH i2c: F0 [11:32:25]MH_I2C_Read... [11:32:25]Read from MH i2c: F0 09 00 [11:32:25]MH_I2C_Read... [11:32:25]Read from MH i2c: F0 09 00 C0 2C 00 CE C7 20 67 22 05 6E 64 F9 [11:32:25]GetLastDocTimeStamp 1730201498 [11:32:25]current date 1730201550 [11:32:25]FM_GetShiftState [11:32:25]SAM_PROTO_GetShiftState [11:32:25]wFMCommunicate request_size=4 [11:32:25]MH_SAM_APDU [11:32:25]CAPDU: 80 13 01 00 [11:32:25]Write to MH i2c: E2 08 00 C1 2C 80 13 01 00 00 00 00 00 6A [11:32:25]Write i2c OK [11:32:25]MH_I2C_Read... [11:32:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:25]Read from MH i2c: E2 [11:32:25]MH_I2C_Read... [11:32:26]Read from MH i2c: E2 0E 00 [11:32:26]MH_I2C_Read... [11:32:26]Read from MH i2c: E2 0E 00 C1 2C 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 70 [11:32:26]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:32:26]wFMCommunicate OK [11:32:26]SAM_PROTO_GetShiftState done [11:32:26]FM_GetShiftState done [11:32:26]opened in 1730161990 [11:32:26]opened+sec_in_day 1730248390 [11:32:26]quantity*price = 30038 [11:32:26]sum+1 = 30039 [11:32: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 СÐО: Общий режим Чек 68 29.10.2024 11:32 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192862 ФПД: 27606994145031 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T113230&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192862&fm=27606994145031&tin=02508201610067®Number=0000000000091776&sum=30000 [11:32:27]StoreToDocumentArchive [11:32:27]shift 544 fd 192862 [11:32:27]save to /storage/0544/doc_00192862 [11:32:27]save last doc name /storage/0544/doc_00192862 to /storage/kkm_last_doc_name [11:32:27]save OK [11:32:27]Clear old archive folders... [11:32:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:32:27]tlvbuf is B6D83090 [11:32:27]SAM_PROTO_ClearQueue [11:32:27]wFMCommunicate request_size=4 [11:32:27]MH_SAM_APDU [11:32:27]CAPDU: 80 09 00 00 [11:32:27]Write to MH i2c: E2 08 00 CE 2C 80 09 00 00 00 00 00 00 6C [11:32:27]Write i2c OK [11:32:27]MH_I2C_Read... [11:32:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:32:27]Read from MH i2c: E2 [11:32:27]MH_I2C_Read... [11:32:27]Read from MH i2c: E2 03 00 [11:32:27]MH_I2C_Read... [11:32:27]Read from MH i2c: E2 03 00 CE 2C 00 90 00 6E [11:32:27]RAPDU: 90 00 [11:32:27]wFMCommunicate OK [11:32:27]SAM_PROTO_ClearQueue done [11:32:27]KKMCreateOFDPacket [11:32:27]OFDProtocolAddRootSTLVToBuf [11:32:27]FM_MakeSignedData [11:32:27]FM_MakeSignedData [11:32:27]SAM_PROTO_SignData [11:32:27]wFMCommunicate request_size=4 [11:32:27]MH_SAM_APDU [11:32:27]CAPDU: 80 0D 01 02 [11:32:27]Write to MH i2c: E2 08 00 CF 2C 80 0D 01 02 00 00 00 00 74 [11:32:27]Write i2c OK [11:32:27]MH_I2C_Read... [11:32:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:32:27]OFD Sender: No OFD packet to send [11:32:27]Read from MH i2c: E2 [11:32:27]MH_I2C_Read... [11:32:27]Read from MH i2c: E2 03 00 [11:32:27]MH_I2C_Read... [11:32:27]Read from MH i2c: E2 03 00 CF 2C 00 90 00 6F [11:32:27]RAPDU: 90 00 [11:32:27]wFMCommunicate OK [11:32:27]wFMCommunicate request_size=255 [11:32:27]MH_SAM_APDU [11:32: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 44 00 00 00 F4 03 04 00 CE C7 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 19 [11:32:27]Write to MH i2c: E2 02 01 D0 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 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 44 00 00 00 F4 03 04 00 CE C7 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 19 00 00 E8 [11:32:27]Write i2c OK [11:32:27]MH_I2C_Read... [11:32:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:27]Read from MH i2c: E2 [11:32:27]MH_I2C_Read... [11:32:27]Read from MH i2c: E2 03 00 [11:32:27]MH_I2C_Read... [11:32:27]Read from MH i2c: E2 03 00 D0 2C 00 90 00 70 [11:32:27]RAPDU: 90 00 [11:32:27]wFMCommunicate OK [11:32:27]wFMCommunicate request_size=10 [11:32:27]MH_SAM_APDU [11:32:27]CAPDU: 80 0D 02 02 05 1B C1 14 4F 07 [11:32:27]Write to MH i2c: E2 0D 00 D1 2C 80 0D 02 02 05 00 1B C1 14 4F 07 00 00 C7 [11:32:27]Write i2c OK [11:32:27]MH_I2C_Read... [11:32:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:27]Read from MH i2c: E2 [11:32:27]MH_I2C_Read... [11:32:27]Read from MH i2c: E2 03 00 [11:32:27]MH_I2C_Read... [11:32:27]Read from MH i2c: E2 03 00 D1 2C 00 90 00 71 [11:32:27]RAPDU: 90 00 [11:32:27]wFMCommunicate OK [11:32:27]wFMCommunicate request_size=4 [11:32:27]MH_SAM_APDU [11:32:27]CAPDU: 80 0D 03 02 [11:32:27]Write to MH i2c: E2 08 00 D2 2C 80 0D 03 02 00 00 00 00 79 [11:32:27]Write i2c OK [11:32:27]MH_I2C_Read... [11:32:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:32:27]Read from MH i2c: E2 [11:32:27]MH_I2C_Read... [11:32:27]Read from MH i2c: E2 0B 00 [11:32:27]MH_I2C_Read... [11:32:27]Read from MH i2c: E2 0B 00 D2 2C 00 1C 68 5E C0 A0 79 1D 00 90 00 52 [11:32:27]RAPDU: 1C 68 5E C0 A0 79 1D 00 90 00 [11:32:27]wFMCommunicate OK [11:32:27]SAM_PROTO_SignData done [11:32:27]FM_MakeSignedData done [11:32:27]CreateOFDProtocolMessage [11:32:27]wFMCommunicate request_size=4 [11:32:27]MH_SAM_APDU [11:32:27]CAPDU: 80 11 00 00 [11:32:27]Write to MH i2c: E2 08 00 D3 2C 80 11 00 00 00 00 00 00 79 [11:32:27]Write i2c OK [11:32:27]MH_I2C_Read... [11:32:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:27]Read from MH i2c: E2 [11:32:27]MH_I2C_Read... [11:32:27]Read from MH i2c: E2 17 00 [11:32:27]MH_I2C_Read... [11:32:27]Read from MH i2c: E2 17 00 D3 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CC [11: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 [11:32:27]wFMCommunicate OK [11:32:27]CreateOFDProtocolMessage done [11:32:27]OFDSenderStorePacket 192862 [11:32:27]StoreOFDPacket docnum=192862 [11: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 9E 1B 07 01 89 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 44 00 00 00 F4 03 04 00 CE C7 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 19 1B C1 14 4F 07 1C 68 5E C0 A0 79 1D 00 [11:32:27]CheckFolder [11:32:27]dirname=/storage/ofd_packets [11:32:27]CheckFolder done [11:32:27]ProducePacketName [11:32:27]name=ofd_packets/00192862 [11:32:27]NVStorageSaveData ofd_packets/00192862 [11:32:27]File name is /storage/ofd_packets/00192862 [11:32:27]Write 301 bytes [11:32:27]NVStorageSaveData done [11:32:27]OFDSenderStorePacket done [11:32:27]KKMCreateOFDPacket done [11:32:27]NVStorageSaveData kkm_last_timestamp [11:32:27]File name is /storage/kkm_last_timestamp [11:32:27]Write 4 bytes [11:32:27]NVStorageSaveData done [11:32:27]ExternCall_PrintAddStr [11:32:27]wPrintStart [11:32:27]Write to MH i2c: 01 00 00 D4 2C 00 [11:32:27]Write i2c OK [11:32:27]MH_I2C_Read... [11:32:27]Read from MH i2c: 01 [11:32:27]MH_I2C_Read... [11:32:27]Read from MH i2c: 01 07 00 [11:32:27]MH_I2C_Read... [11:32:27]Read from MH i2c: 01 07 00 D4 2C 00 00 00 00 00 FF 0F 15 [11:32:27]RasterBufferAndPrint [11:32:27]line Счет N : (1)32191 [11:32:27]line ИÐÐ: 02508201610067 [11:32:27]line Контрольно-КаÑÑовый Чек [11:32:27]line ПРОДÐЖР[11:32:27]line ТРК (МРК, ГÐК) : 21 [11:32:27]line Товар: 2710124130 [11:32:27]line Ðи-92-К-5 [11:32:27]line 4.490 * 66.90 [11:32:27]line = 300.38 [11:32:27]line ÐДС 12% ÐСП 1% [11:32:27]line > о реализуемом товаре [11:32:27]line ОКРУГЛЕÐИЕ: -0.38 [11:32:27]line ИТОГО: 300.00 [11:32:27]line ВнеÑено: 300.00 [11:32:27]line СДÐЧÐ: 0.00 [11:32:27]line ÐСП 1% : 2.66 [11:32:27]line ÐДС 12% : 31.90 [11:32:27]line Ðаличными: 300.00 [11:32:27]line Безнал.: 0.00 [11:32:27]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [11:32:27]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [11:32:27]line СÐО: Общий режим [11:32:27]line Чек 68 29.10.2024 11:32 [11:32:27]line Смена: 544 ФФД: 1.0 [11:32:27]line ЗÐМ: 0300000110 [11:32:27]line РÐМ: 0000000000091776 [11:32:27]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [11:32:27]line ФМ: 0000000000871754 [11:32:27]line ФД: 192862 [11:32:27]line ФПД: 27606994145031 [11:32:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T113230&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192862&fm=27606994145031&tin=02508201610067®Number=0000000000091776&sum=30000 [11:32:28]OFD Sender: Processing packet 192862 [packets to send 75, broken 74] [11:32:28]ProducePacketName [11:32:28]name=ofd_packets/00192862 [11:32:28]OFD Sender: To server: ‡•öpG, [11:32:28]CommunicateWithHost lk.salyk.kg:30040 [11:32:28]ConnectInit lk.salyk.kg [11:32:28]written 0, free lines is 4095 [11:32:28]Connected sock=10 [11:32: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 9E 1B 07 01 89 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 44 00 00 00 F4 03 04 00 CE C7 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 19 1B C1 14 4F 07 1C 68 5E C0 A0 79 1D 00 [11:32: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 EA E1 47 00 E5 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 5E F1 02 00 F4 03 04 00 8F 6C 20 67 B6 04 01 00 00 FE 77 87 26 5F 41 8C 4F [11:32:28]CommunicateWithHost err = 0 [11:32:28]CheckOFDResponse [11:32:28]1017 (14) - 77093643461234 [11:32:28]1041 (16) - 0000000000871754 [11:32:28]1040 (4) - 192862 [11:32:28]1012 (4) - 29.10.2024 05:03 [11:32:28]1206 (1) - 0 [11:32:28]OFD Sender: Remove packet 192862 [11:32:28]ProducePacketName [11:32:28]name=ofd_packets/00192862 [11:32:28]NVStorageDeleteData [11:32:28]Write to MH i2c: 01 00 00 FF 2C 2B [11:32:28]Write i2c OK [11:32:28]MH_I2C_Read... [11:32:28]Read from MH i2c: 01 [11:32:28]MH_I2C_Read... [11:32:28]Read from MH i2c: 01 07 00 [11:32:28]MH_I2C_Read... [11:32:28]Read from MH i2c: 01 07 00 FF 2C 00 00 00 00 00 BA 0C F8 [11:32:28]RasterBufferAndPrint [11:32:28]line [11:32:28]line [11:32:28]line [11:32:28]line [11:32:28]line [11:32:28]written 0, free lines is 3265 [11:32:28]MH_Cut [11:32:28]Write to MH i2c: D1 01 00 06 2D 01 05 [11:32:28]Write i2c OK [11:32:28]MH_I2C_Read... [11:32:28]Read from MH i2c: D1 [11:32:28]MH_I2C_Read... [11:32:28]Read from MH i2c: D1 01 00 [11:32:28]MH_I2C_Read... [11:32:28]Read from MH i2c: D1 01 00 06 2D 00 04 [11:32:28]Write to MH i2c: 01 00 00 07 2D 34 [11:32:28]Write i2c OK [11:32:28]MH_I2C_Read... [11:32:28]OFD Sender: No OFD packet to send [11:32:29]*** Cut start [11:32:29]*** Partial cut [11:32:29]*** CUTSNS_PIN = 1 [11:32:29]*** CUTSNS_PIN = 0 [11:32:29]*** Brake cut motor [11:32:29]Read from MH i2c: 01 [11:32:29]MH_I2C_Read... [11:32:29]*** Stop cut motor [11:32:29]*** Cut end [11:32:29]Read from MH i2c: 01 07 00 [11:32:29]MH_I2C_Read... [11:32:29]Read from MH i2c: 01 07 00 07 2D 00 00 00 00 00 FF 0F 49 [11:32:29]process_action close_receipt done [11:32:29]requested_data is exist [11:32:29]produce_requested_data [11:32:29]requested_item fm.sn is exist - process it [11:32:29]wFMCommunicate request_size=4 [11:32:29]MH_SAM_APDU [11:32:29]CAPDU: 80 11 00 00 [11:32:29]Write to MH i2c: E2 08 00 08 2D 80 11 00 00 00 00 00 00 AF [11:32:29]Write i2c OK [11:32:29]MH_I2C_Read... [11:32:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:30]Read from MH i2c: E2 [11:32:30]MH_I2C_Read... [11:32:30]Read from MH i2c: E2 17 00 [11:32:30]MH_I2C_Read... [11:32:30]Read from MH i2c: E2 17 00 08 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 02 [11:32:30]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:30]wFMCommunicate OK [11:32:30]requested_item fd.num is exist - process it [11:32:30]SAM_PROTO_GetFieldsCounters [11:32:30]wFMCommunicate request_size=4 [11:32:30]MH_SAM_APDU [11:32:30]CAPDU: 80 13 00 00 [11:32:30]Write to MH i2c: E2 08 00 09 2D 80 13 00 00 00 00 00 00 B2 [11:32:30]Write i2c OK [11:32:30]MH_I2C_Read... [11:32:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:32:30]Read from MH i2c: E2 [11:32:30]MH_I2C_Read... [11:32:30]Read from MH i2c: E2 62 00 [11:32:30]MH_I2C_Read... [11:32:30]Read from MH i2c: E2 62 00 09 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 5E F1 02 00 0E 04 04 00 20 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 17 [11:32: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 5E F1 02 00 0E 04 04 00 20 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 [11:32:30]wFMCommunicate OK [11:32:30]SAM_PROTO_GetFieldsCounters done [11:32:30]requested_item shift.num is exist - process it [11:32:30]requested_item shift.opened is exist - process it [11:32:30]req_shift_opened [11:32:30]FM_GetShiftState [11:32:30]SAM_PROTO_GetShiftState [11:32:30]wFMCommunicate request_size=4 [11:32:30]MH_SAM_APDU [11:32:30]CAPDU: 80 13 01 00 [11:32:30]Write to MH i2c: E2 08 00 0A 2D 80 13 01 00 00 00 00 00 B4 [11:32:30]Write i2c OK [11:32:30]MH_I2C_Read... [11:32:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:30]Read from MH i2c: E2 [11:32:30]MH_I2C_Read... [11:32:30]Read from MH i2c: E2 0E 00 [11:32:30]MH_I2C_Read... [11:32:30]Read from MH i2c: E2 0E 00 0A 2D 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 BA [11:32:30]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:32:30]wFMCommunicate OK [11:32:30]SAM_PROTO_GetShiftState done [11:32:30]FM_GetShiftState done [11:32:30]req_shift_opened done [11:32:30]requested_item shift.open_date is exist - process it [11:32:30]req_shift_open_date [11:32:30]req_shift_open_date done [11:32:30]produce_requested_data done [11:32:30]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192862,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [11:32:30]process_action_free close_receipt [11:32:30]json_value_free [11:32:30]json_value_free done [11:32:30]process_json_proto returns [11:32:30]Send response to host [11:32:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192862,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [11:32:30]free response buf [11:32:30]execute_script done [11:32:30]execute_script returns [11:32:30]free content buf [11:32:30]Sock 8.Close socket [11:32:30]Sock 8.Thread stoped [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:15]accept exits with 9 [11:33:15]New connection [11:33:15]New thread 3066658148 created [11:33:15]Thread 3066801508 joined [11:33:15]Waiting for new connection... [11:33:15] Sock 9.Parse request [11:33:15]Sock 9.Check first char [11:33:15]Sock 9.First char is OK [11:33:15]request: POST /json_proto HTTP/1.0 [11:33:15]Method: POST [11:33:15]URL: /json_proto [11:33:15]Method is POST - this is cgi request [11:33:15]url: /json_proto [11:33:15]query_string will be loaded in cgi processing [11:33:15]execute_cgi json_proto POST (null) [11:33:15]execute_cgi path=json_proto method=POST [11:33:15]POST find Content-Length [11:33:15]Host: 172.17.63.131:8080 [11:33:15]Content-Length: 677 [11:33:15]Content-Type: application/json [11:33:15] [11:33:15]POST finish read [11:33:15]Found Content-Length = 677 [11:33:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32192", "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" ] } } [11:33:15]execute_script... [11:33: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)32192", "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" ] } } [11:33:15]POST & json_proto [11:33:15]process_json_proto [11:33:15]json parsed OK: [11:33:15]protocol is kg_v1.0 [11:33:15]action value=close_receipt [11:33:15]process_action close_receipt [11:33:15]cmd_close_receipt [11:33:15]MH_GetDate [11:33:15]Write to MH i2c: F0 00 00 0B 2D 27 [11:33:15]Write i2c OK [11:33:15]MH_I2C_Read... [11:33:15]Read from MH i2c: F0 [11:33:15]MH_I2C_Read... [11:33:15]Read from MH i2c: F0 09 00 [11:33:15]MH_I2C_Read... [11:33:15]Read from MH i2c: F0 09 00 0B 2D 00 00 C8 20 67 22 05 6E 64 78 [11:33:15]GetLastDocTimeStamp 1730201550 [11:33:15]current date 1730201600 [11:33:15]FM_GetShiftState [11:33:15]SAM_PROTO_GetShiftState [11:33:15]wFMCommunicate request_size=4 [11:33:15]MH_SAM_APDU [11:33:15]CAPDU: 80 13 01 00 [11:33:15]Write to MH i2c: E2 08 00 0C 2D 80 13 01 00 00 00 00 00 B6 [11:33:15]Write i2c OK [11:33:15]MH_I2C_Read... [11:33:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:15]Read from MH i2c: E2 [11:33:15]MH_I2C_Read... [11:33:15]Read from MH i2c: E2 0E 00 [11:33:15]MH_I2C_Read... [11:33:15]Read from MH i2c: E2 0E 00 0C 2D 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 BC [11:33:15]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:33:15]wFMCommunicate OK [11:33:15]SAM_PROTO_GetShiftState done [11:33:15]FM_GetShiftState done [11:33:15]opened in 1730161990 [11:33:15]opened+sec_in_day 1730248390 [11:33:15]quantity*price = 70044 [11:33:15]sum+1 = 70045 [11:33:15]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 СÐО: Общий режим Чек 69 29.10.2024 11:33 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192863 ФПД: 27130618772748 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T113320&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192863&fm=27130618772748&tin=02508201610067®Number=0000000000091776&sum=70000 [11:33:17]StoreToDocumentArchive [11:33:17]shift 544 fd 192863 [11:33:17]save to /storage/0544/doc_00192863 [11:33:17]save last doc name /storage/0544/doc_00192863 to /storage/kkm_last_doc_name [11:33:17]save OK [11:33:17]Clear old archive folders... [11:33:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:33:17]tlvbuf is B6F301C0 [11:33:17]SAM_PROTO_ClearQueue [11:33:17]wFMCommunicate request_size=4 [11:33:17]MH_SAM_APDU [11:33:17]CAPDU: 80 09 00 00 [11:33:17]Write to MH i2c: E2 08 00 19 2D 80 09 00 00 00 00 00 00 B8 [11:33:17]Write i2c OK [11:33:17]MH_I2C_Read... [11:33:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:33:17]Read from MH i2c: E2 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: E2 03 00 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: E2 03 00 19 2D 00 90 00 BA [11:33:17]RAPDU: 90 00 [11:33:17]wFMCommunicate OK [11:33:17]SAM_PROTO_ClearQueue done [11:33:17]KKMCreateOFDPacket [11:33:17]OFDProtocolAddRootSTLVToBuf [11:33:17]FM_MakeSignedData [11:33:17]FM_MakeSignedData [11:33:17]SAM_PROTO_SignData [11:33:17]wFMCommunicate request_size=4 [11:33:17]MH_SAM_APDU [11:33:17]CAPDU: 80 0D 01 02 [11:33:17]Write to MH i2c: E2 08 00 1A 2D 80 0D 01 02 00 00 00 00 C0 [11:33:17]Write i2c OK [11:33:17]MH_I2C_Read... [11:33:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:33:17]Read from MH i2c: E2 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: E2 03 00 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: E2 03 00 1A 2D 00 90 00 BB [11:33:17]RAPDU: 90 00 [11:33:17]wFMCommunicate OK [11:33:17]wFMCommunicate request_size=255 [11:33:17]MH_SAM_APDU [11:33: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 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 45 00 00 00 F4 03 04 00 00 C8 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 18 [11:33:17]Write to MH i2c: E2 02 01 1B 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 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 45 00 00 00 F4 03 04 00 00 C8 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 18 00 00 84 [11:33:17]Write i2c OK [11:33:17]MH_I2C_Read... [11:33:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:17]Read from MH i2c: E2 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: E2 03 00 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: E2 03 00 1B 2D 00 90 00 BC [11:33:17]RAPDU: 90 00 [11:33:17]wFMCommunicate OK [11:33:17]wFMCommunicate request_size=10 [11:33:17]MH_SAM_APDU [11:33:17]CAPDU: 80 0D 02 02 05 AC D6 E4 FD 0C [11:33:17]Write to MH i2c: E2 0D 00 1C 2D 80 0D 02 02 05 00 AC D6 E4 FD 0C 00 00 3C [11:33:17]Write i2c OK [11:33:17]MH_I2C_Read... [11:33:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:17]Read from MH i2c: E2 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: E2 03 00 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: E2 03 00 1C 2D 00 90 00 BD [11:33:17]RAPDU: 90 00 [11:33:17]wFMCommunicate OK [11:33:17]wFMCommunicate request_size=4 [11:33:17]MH_SAM_APDU [11:33:17]CAPDU: 80 0D 03 02 [11:33:17]Write to MH i2c: E2 08 00 1D 2D 80 0D 03 02 00 00 00 00 C5 [11:33:17]Write i2c OK [11:33:17]MH_I2C_Read... [11:33:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:33:17]Read from MH i2c: E2 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: E2 0B 00 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: E2 0B 00 1D 2D 00 34 5B 0A 1E 2F 62 8B C3 90 00 5C [11:33:17]RAPDU: 34 5B 0A 1E 2F 62 8B C3 90 00 [11:33:17]wFMCommunicate OK [11:33:17]SAM_PROTO_SignData done [11:33:17]FM_MakeSignedData done [11:33:17]CreateOFDProtocolMessage [11:33:17]wFMCommunicate request_size=4 [11:33:17]MH_SAM_APDU [11:33:17]CAPDU: 80 11 00 00 [11:33:17]Write to MH i2c: E2 08 00 1E 2D 80 11 00 00 00 00 00 00 C5 [11:33:17]Write i2c OK [11:33:17]MH_I2C_Read... [11:33:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:17]Read from MH i2c: E2 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: E2 17 00 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: E2 17 00 1E 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 18 [11:33: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:33:17]wFMCommunicate OK [11:33:17]CreateOFDProtocolMessage done [11:33:17]OFDSenderStorePacket 192863 [11:33:17]StoreOFDPacket docnum=192863 [11:33: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 D9 CA 07 01 7A 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 45 00 00 00 F4 03 04 00 00 C8 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 18 AC D6 E4 FD 0C 34 5B 0A 1E 2F 62 8B C3 [11:33:17]CheckFolder [11:33:17]dirname=/storage/ofd_packets [11:33:17]CheckFolder done [11:33:17]ProducePacketName [11:33:17]name=ofd_packets/00192863 [11:33:17]NVStorageSaveData ofd_packets/00192863 [11:33:17]File name is /storage/ofd_packets/00192863 [11:33:17]Write 301 bytes [11:33:17]NVStorageSaveData done [11:33:17]OFDSenderStorePacket done [11:33:17]KKMCreateOFDPacket done [11:33:17]NVStorageSaveData kkm_last_timestamp [11:33:17]File name is /storage/kkm_last_timestamp [11:33:17]Write 4 bytes [11:33:17]NVStorageSaveData done [11:33:17]ExternCall_PrintAddStr [11:33:17]wPrintStart [11:33:17]Write to MH i2c: 01 00 00 1F 2D 4C [11:33:17]Write i2c OK [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: 01 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: 01 07 00 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: 01 07 00 1F 2D 00 00 00 00 00 FF 0F 61 [11:33:17]RasterBufferAndPrint [11:33:17]line Счет N : (1)32192 [11:33:17]line ИÐÐ: 02508201610067 [11:33:17]line Контрольно-КаÑÑовый Чек [11:33:17]line ПРОДÐЖР[11:33:17]line ТРК (МРК, ГÐК) : 12 [11:33:17]line Товар: 2710124130 [11:33:17]line Ðи-92-К-5 [11:33:17]line 10.470 * 66.90 [11:33:17]line = 700.44 [11:33:17]line ÐДС 12% ÐСП 1% [11:33:17]line > о реализуемом товаре [11:33:17]line ОКРУГЛЕÐИЕ: -0.44 [11:33:17]line ИТОГО: 700.00 [11:33:17]line ВнеÑено: 700.00 [11:33:17]line СДÐЧÐ: 0.00 [11:33:17]line ÐСП 1% : 6.20 [11:33:17]line ÐДС 12% : 74.38 [11:33:17]line Ðаличными: 700.00 [11:33:17]line Безнал.: 0.00 [11:33:17]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [11:33:17]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [11:33:17]line СÐО: Общий режим [11:33:17]line Чек 69 29.10.2024 11:33 [11:33:17]line Смена: 544 ФФД: 1.0 [11:33:17]line ЗÐМ: 0300000110 [11:33:17]line РÐМ: 0000000000091776 [11:33:17]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [11:33:17]line ФМ: 0000000000871754 [11:33:17]line ФД: 192863 [11:33:17]line ФПД: 27130618772748 [11:33:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T113320&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192863&fm=27130618772748&tin=02508201610067®Number=0000000000091776&sum=70000 [11:33:17]written 0, free lines is 4095 [11:33:17]OFD Sender: Processing packet 192863 [packets to send 75, broken 74] [11:33:17]ProducePacketName [11:33:17]name=ofd_packets/00192863 [11:33:17]OFD Sender: To server: ‡•öpG, [11:33:17]CommunicateWithHost lk.salyk.kg:30040 [11:33:17]ConnectInit lk.salyk.kg [11:33:17]Connected sock=8 [11:33: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 D9 CA 07 01 7A 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 45 00 00 00 F4 03 04 00 00 C8 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 18 AC D6 E4 FD 0C 34 5B 0A 1E 2F 62 8B C3 [11:33: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 EF 56 47 00 FE 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 5F F1 02 00 F4 03 04 00 C0 6C 20 67 B6 04 01 00 00 FE BB 90 82 C7 14 05 27 [11:33:18]CommunicateWithHost err = 0 [11:33:18]CheckOFDResponse [11:33:18]1017 (14) - 77093643461234 [11:33:18]1041 (16) - 0000000000871754 [11:33:18]1040 (4) - 192863 [11:33:18]1012 (4) - 29.10.2024 05:04 [11:33:18]1206 (1) - 0 [11:33:18]OFD Sender: Remove packet 192863 [11:33:18]ProducePacketName [11:33:18]name=ofd_packets/00192863 [11:33:18]NVStorageDeleteData [11:33:18]Write to MH i2c: 01 00 00 4A 2D 77 [11:33:18]Write i2c OK [11:33:18]MH_I2C_Read... [11:33:18]Read from MH i2c: 01 [11:33:18]MH_I2C_Read... [11:33:18]Read from MH i2c: 01 07 00 [11:33:18]MH_I2C_Read... [11:33:18]Read from MH i2c: 01 07 00 4A 2D 00 00 00 00 00 C0 0C 4A [11:33:18]RasterBufferAndPrint [11:33:18]line [11:33:18]line [11:33:18]line [11:33:18]line [11:33:18]line [11:33:18]written 0, free lines is 3270 [11:33:18]MH_Cut [11:33:18]Write to MH i2c: D1 01 00 51 2D 01 50 [11:33:18]Write i2c OK [11:33:18]MH_I2C_Read... [11:33:18]Read from MH i2c: D1 [11:33:18]MH_I2C_Read... [11:33:18]Read from MH i2c: D1 01 00 [11:33:18]MH_I2C_Read... [11:33:18]Read from MH i2c: D1 01 00 51 2D 00 4F [11:33:18]Write to MH i2c: 01 00 00 52 2D 7F [11:33:18]Write i2c OK [11:33:18]MH_I2C_Read... [11:33:18]OFD Sender: No OFD packet to send [11:33:18]*** Cut start [11:33:18]*** Partial cut [11:33:18]*** CUTSNS_PIN = 1 [11:33:19]*** CUTSNS_PIN = 0 [11:33:19]*** Brake cut motor [11:33:19]Read from MH i2c: 01 [11:33:19]MH_I2C_Read... [11:33:19]*** Stop cut motor [11:33:19]*** Cut end [11:33:19]Read from MH i2c: 01 07 00 [11:33:19]MH_I2C_Read... [11:33:19]Read from MH i2c: 01 07 00 52 2D 00 00 00 00 00 FF 0F 94 [11:33:19]process_action close_receipt done [11:33:19]requested_data is exist [11:33:19]produce_requested_data [11:33:19]requested_item fm.sn is exist - process it [11:33:19]wFMCommunicate request_size=4 [11:33:19]MH_SAM_APDU [11:33:19]CAPDU: 80 11 00 00 [11:33:19]Write to MH i2c: E2 08 00 53 2D 80 11 00 00 00 00 00 00 FA [11:33:19]Write i2c OK [11:33:19]MH_I2C_Read... [11:33:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:19]Read from MH i2c: E2 [11:33:19]MH_I2C_Read... [11:33:19]Read from MH i2c: E2 17 00 [11:33:19]MH_I2C_Read... [11:33:19]Read from MH i2c: E2 17 00 53 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4D [11:33: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:33:19]wFMCommunicate OK [11:33:19]requested_item fd.num is exist - process it [11:33:19]SAM_PROTO_GetFieldsCounters [11:33:19]wFMCommunicate request_size=4 [11:33:19]MH_SAM_APDU [11:33:19]CAPDU: 80 13 00 00 [11:33:19]Write to MH i2c: E2 08 00 54 2D 80 13 00 00 00 00 00 00 FD [11:33:19]Write i2c OK [11:33:19]MH_I2C_Read... [11:33:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:19]Read from MH i2c: E2 [11:33:19]MH_I2C_Read... [11:33:19]Read from MH i2c: E2 62 00 [11:33:19]MH_I2C_Read... [11:33:19]Read from MH i2c: E2 62 00 54 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 5F F1 02 00 0E 04 04 00 20 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 66 [11:33: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 5F F1 02 00 0E 04 04 00 20 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 [11:33:19]wFMCommunicate OK [11:33:19]SAM_PROTO_GetFieldsCounters done [11:33:19]requested_item shift.num is exist - process it [11:33:19]requested_item shift.opened is exist - process it [11:33:19]req_shift_opened [11:33:19]FM_GetShiftState [11:33:19]SAM_PROTO_GetShiftState [11:33:19]wFMCommunicate request_size=4 [11:33:19]MH_SAM_APDU [11:33:19]CAPDU: 80 13 01 00 [11:33:19]Write to MH i2c: E2 08 00 55 2D 80 13 01 00 00 00 00 00 FF [11:33:19]Write i2c OK [11:33:19]MH_I2C_Read... [11:33:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:19]Read from MH i2c: E2 [11:33:19]MH_I2C_Read... [11:33:19]Read from MH i2c: E2 0E 00 [11:33:19]MH_I2C_Read... [11:33:19]Read from MH i2c: E2 0E 00 55 2D 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 05 [11:33:19]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:33:19]wFMCommunicate OK [11:33:19]SAM_PROTO_GetShiftState done [11:33:19]FM_GetShiftState done [11:33:19]req_shift_opened done [11:33:19]requested_item shift.open_date is exist - process it [11:33:19]req_shift_open_date [11:33:19]req_shift_open_date done [11:33:19]produce_requested_data done [11:33:19]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192863,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [11:33:19]process_action_free close_receipt [11:33:19]json_value_free [11:33:19]json_value_free done [11:33:19]process_json_proto returns [11:33:19]Send response to host [11:33:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192863,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [11:33:19]free response buf [11:33:19]execute_script done [11:33:19]execute_script returns [11:33:19]free content buf [11:33:19]Sock 9.Close socket [11:33:19]Sock 9.Thread stoped [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:28]OFD Sender: No OFD packet to send [11:34:33]OFD Sender: No OFD packet to send [11:34:38]OFD Sender: No OFD packet to send [11:34:43]OFD Sender: No OFD packet to send [11:34:48]OFD Sender: No OFD packet to send [11:34:53]OFD Sender: No OFD packet to send [11:34:58]OFD Sender: No OFD packet to send [11:35:03]OFD Sender: No OFD packet to send [11:35:08]OFD Sender: No OFD packet to send [11:35:11]accept exits with 10 [11:35:11]New connection [11:35:11]New thread 3066801508 created [11:35:11]Thread 3066658148 joined [11:35:11]Waiting for new connection... [11:35:11] Sock 10.Parse request [11:35:11]Sock 10.Check first char [11:35:11]Sock 10.First char is OK [11:35:11]request: POST /json_proto HTTP/1.0 [11:35:11]Method: POST [11:35:11]URL: /json_proto [11:35:11]Method is POST - this is cgi request [11:35:11]url: /json_proto [11:35:11]query_string will be loaded in cgi processing [11:35:11]execute_cgi json_proto POST (null) [11:35:11]execute_cgi path=json_proto method=POST [11:35:11]POST find Content-Length [11:35:11]Host: 172.17.63.131:8080 [11:35:11]Content-Length: 681 [11:35:11]Content-Type: application/json [11:35:11] [11:35:11]POST finish read [11:35:11]Found Content-Length = 681 [11:35:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32193", "tax_sys" : 0, "items" : [ { "pre_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:35:11]execute_script... [11:35: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)32193", "tax_sys" : 0, "items" : [ { "pre_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:35:11]POST & json_proto [11:35:11]process_json_proto [11:35:11]json parsed OK: [11:35:11]protocol is kg_v1.0 [11:35:11]action value=close_receipt [11:35:11]process_action close_receipt [11:35:11]cmd_close_receipt [11:35:11]MH_GetDate [11:35:11]Write to MH i2c: F0 00 00 56 2D 72 [11:35:11]Write i2c OK [11:35:11]MH_I2C_Read... [11:35:11]Read from MH i2c: F0 [11:35:11]MH_I2C_Read... [11:35:11]Read from MH i2c: F0 09 00 [11:35:11]MH_I2C_Read... [11:35:11]Read from MH i2c: F0 09 00 56 2D 00 74 C8 20 67 22 05 6E 64 37 [11:35:11]GetLastDocTimeStamp 1730201600 [11:35:11]current date 1730201716 [11:35:11]FM_GetShiftState [11:35:11]SAM_PROTO_GetShiftState [11:35:11]wFMCommunicate request_size=4 [11:35:11]MH_SAM_APDU [11:35:11]CAPDU: 80 13 01 00 [11:35:11]Write to MH i2c: E2 08 00 57 2D 80 13 01 00 00 00 00 00 01 [11:35:11]Write i2c OK [11:35:11]MH_I2C_Read... [11:35:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:11]Read from MH i2c: E2 [11:35:11]MH_I2C_Read... [11:35:11]Read from MH i2c: E2 0E 00 [11:35:11]MH_I2C_Read... [11:35:11]Read from MH i2c: E2 0E 00 57 2D 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 07 [11:35:11]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:35:11]wFMCommunicate OK [11:35:11]SAM_PROTO_GetShiftState done [11:35:11]FM_GetShiftState done [11:35:11]opened in 1730161990 [11:35:11]opened+sec_in_day 1730248390 [11:35:11]quantity*price = 100015 [11:35:11]sum+1 = 100017 [11:35:11]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 СÐО: Общий режим Чек 70 29.10.2024 11:35 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192864 ФПД: 162501029624332 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T113516&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192864&fm=162501029624332&tin=02508201610067®Number=0000000000091776&sum=100000 [11:35:12]StoreToDocumentArchive [11:35:12]shift 544 fd 192864 [11:35:12]save to /storage/0544/doc_00192864 [11:35:12]save last doc name /storage/0544/doc_00192864 to /storage/kkm_last_doc_name [11:35:12]save OK [11:35:12]Clear old archive folders... [11:35:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:35:12]tlvbuf is 00FF1230 [11:35:12]SAM_PROTO_ClearQueue [11:35:12]wFMCommunicate request_size=4 [11:35:12]MH_SAM_APDU [11:35:12]CAPDU: 80 09 00 00 [11:35:12]Write to MH i2c: E2 08 00 64 2D 80 09 00 00 00 00 00 00 03 [11:35:12]Write i2c OK [11:35:12]MH_I2C_Read... [11:35:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:35:13]Read from MH i2c: E2 [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: E2 03 00 [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: E2 03 00 64 2D 00 90 00 05 [11:35:13]RAPDU: 90 00 [11:35:13]wFMCommunicate OK [11:35:13]SAM_PROTO_ClearQueue done [11:35:13]KKMCreateOFDPacket [11:35:13]OFDProtocolAddRootSTLVToBuf [11:35:13]FM_MakeSignedData [11:35:13]FM_MakeSignedData [11:35:13]SAM_PROTO_SignData [11:35:13]wFMCommunicate request_size=4 [11:35:13]MH_SAM_APDU [11:35:13]CAPDU: 80 0D 01 02 [11:35:13]Write to MH i2c: E2 08 00 65 2D 80 0D 01 02 00 00 00 00 0B [11:35:13]Write i2c OK [11:35:13]MH_I2C_Read... [11:35:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:35:13]Read from MH i2c: E2 [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: E2 03 00 [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: E2 03 00 65 2D 00 90 00 06 [11:35:13]RAPDU: 90 00 [11:35:13]wFMCommunicate OK [11:35:13]wFMCommunicate request_size=255 [11:35:13]MH_SAM_APDU [11:35: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 74 C8 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 93 [11:35:13]Write to MH i2c: E2 02 01 66 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 74 C8 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 93 00 00 AA [11:35:13]Write i2c OK [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: E2 [11:35:13]MH_I2C_Read... [11:35:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:13]Read from MH i2c: E2 03 00 [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: E2 03 00 66 2D 00 90 00 07 [11:35:13]RAPDU: 90 00 [11:35:13]wFMCommunicate OK [11:35:13]wFMCommunicate request_size=10 [11:35:13]MH_SAM_APDU [11:35:13]CAPDU: 80 0D 02 02 05 CB 38 25 7A 0C [11:35:13]Write to MH i2c: E2 0D 00 67 2D 80 0D 02 02 05 00 CB 38 25 7A 0C 00 00 C6 [11:35:13]Write i2c OK [11:35:13]MH_I2C_Read... [11:35:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:13]Read from MH i2c: E2 [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: E2 03 00 [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: E2 03 00 67 2D 00 90 00 08 [11:35:13]RAPDU: 90 00 [11:35:13]wFMCommunicate OK [11:35:13]wFMCommunicate request_size=4 [11:35:13]MH_SAM_APDU [11:35:13]CAPDU: 80 0D 03 02 [11:35:13]Write to MH i2c: E2 08 00 68 2D 80 0D 03 02 00 00 00 00 10 [11:35:13]Write i2c OK [11:35:13]MH_I2C_Read... [11:35:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:35:13]Read from MH i2c: E2 [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: E2 0B 00 [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: E2 0B 00 68 2D 00 BC 39 44 A7 FC BE D6 6B 90 00 EC [11:35:13]RAPDU: BC 39 44 A7 FC BE D6 6B 90 00 [11:35:13]wFMCommunicate OK [11:35:13]SAM_PROTO_SignData done [11:35:13]FM_MakeSignedData done [11:35:13]CreateOFDProtocolMessage [11:35:13]wFMCommunicate request_size=4 [11:35:13]MH_SAM_APDU [11:35:13]CAPDU: 80 11 00 00 [11:35:13]Write to MH i2c: E2 08 00 69 2D 80 11 00 00 00 00 00 00 10 [11:35:13]Write i2c OK [11:35:13]MH_I2C_Read... [11:35:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:13]Read from MH i2c: E2 [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: E2 17 00 [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: E2 17 00 69 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 63 [11:35: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:35:13]wFMCommunicate OK [11:35:13]CreateOFDProtocolMessage done [11:35:13]OFDSenderStorePacket 192864 [11:35:13]StoreOFDPacket docnum=192864 [11:35: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 75 3A 07 01 3F B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 74 C8 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 93 CB 38 25 7A 0C BC 39 44 A7 FC BE D6 6B [11:35:13]CheckFolder [11:35:13]dirname=/storage/ofd_packets [11:35:13]CheckFolder done [11:35:13]ProducePacketName [11:35:13]name=ofd_packets/00192864 [11:35:13]NVStorageSaveData ofd_packets/00192864 [11:35:13]File name is /storage/ofd_packets/00192864 [11:35:13]Write 301 bytes [11:35:13]NVStorageSaveData done [11:35:13]OFDSenderStorePacket done [11:35:13]KKMCreateOFDPacket done [11:35:13]NVStorageSaveData kkm_last_timestamp [11:35:13]File name is /storage/kkm_last_timestamp [11:35:13]Write 4 bytes [11:35:13]NVStorageSaveData done [11:35:13]ExternCall_PrintAddStr [11:35:13]wPrintStart [11:35:13]Write to MH i2c: 01 00 00 6A 2D 97 [11:35:13]Write i2c OK [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: 01 [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: 01 07 00 [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: 01 07 00 6A 2D 00 00 00 00 00 FF 0F AC [11:35:13]RasterBufferAndPrint [11:35:13]line Счет N : (1)32193 [11:35:13]line ИÐÐ: 02508201610067 [11:35:13]line Контрольно-КаÑÑовый Чек [11:35:13]line ПРОДÐЖР[11:35:13]line ТРК (МРК, ГÐК) : 21 [11:35:13]line Товар: 2710124130 [11:35:13]line Ðи-92-К-5 [11:35:13]line 14.950 * 66.90 [11:35:13]line = 1000.16 [11:35:13]line ÐДС 12% ÐСП 1% [11:35:13]line > о реализуемом товаре [11:35:13]line ОКРУГЛЕÐИЕ: -0.16 [11:35:13]line ИТОГО: 1000.00 [11:35:13]line ВнеÑено: 1000.00 [11:35:13]line СДÐЧÐ: 0.00 [11:35:13]line ÐСП 1% : 8.85 [11:35:13]line ÐДС 12% : 106.21 [11:35:13]line Ðаличными: 1000.00 [11:35:13]line Безнал.: 0.00 [11:35:13]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [11:35:13]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [11:35:13]line СÐО: Общий режим [11:35:13]line Чек 70 29.10.2024 11:35 [11:35:13]line Смена: 544 ФФД: 1.0 [11:35:13]line ЗÐМ: 0300000110 [11:35:13]line РÐМ: 0000000000091776 [11:35:13]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [11:35:13]line ФМ: 0000000000871754 [11:35:13]line ФД: 192864 [11:35:13]line ФПД: 162501029624332 [11:35:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T113516&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192864&fm=162501029624332&tin=02508201610067®Number=0000000000091776&sum=100000 [11:35:13]OFD Sender: Processing packet 192864 [packets to send 75, broken 74] [11:35:13]ProducePacketName [11:35:13]name=ofd_packets/00192864 [11:35:13]OFD Sender: To server: ‡•öpG, [11:35:13]CommunicateWithHost lk.salyk.kg:30040 [11:35:13]ConnectInit lk.salyk.kg [11:35:13]written 0, free lines is 4095 [11:35:13]Connected sock=9 [11:35: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 75 3A 07 01 3F B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 74 C8 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 93 CB 38 25 7A 0C BC 39 44 A7 FC BE D6 6B [11:35: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 36 89 47 00 11 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 60 F1 02 00 F4 03 04 00 35 6D 20 67 B6 04 01 00 00 C2 B4 FE 7E 2A AB B8 F0 [11:35:14]CommunicateWithHost err = 0 [11:35:14]CheckOFDResponse [11:35:14]1017 (14) - 77093643461234 [11:35:14]1041 (16) - 0000000000871754 [11:35:14]1040 (4) - 192864 [11:35:14]1012 (4) - 29.10.2024 05:05 [11:35:14]1206 (1) - 0 [11:35:14]OFD Sender: Remove packet 192864 [11:35:14]ProducePacketName [11:35:14]name=ofd_packets/00192864 [11:35:14]NVStorageDeleteData [11:35:14]Write to MH i2c: 01 00 00 95 2D C2 [11:35:14]Write i2c OK [11:35:14]MH_I2C_Read... [11:35:14]Read from MH i2c: 01 [11:35:14]MH_I2C_Read... [11:35:14]Read from MH i2c: 01 07 00 [11:35:14]MH_I2C_Read... [11:35:14]Read from MH i2c: 01 07 00 95 2D 00 00 00 00 00 B7 0C 8C [11:35:14]RasterBufferAndPrint [11:35:14]line [11:35:14]line [11:35:14]line [11:35:14]line [11:35:14]line [11:35:14]written 0, free lines is 3260 [11:35:14]MH_Cut [11:35:14]Write to MH i2c: D1 01 00 9C 2D 01 9B [11:35:14]Write i2c OK [11:35:14]MH_I2C_Read... [11:35:14]Read from MH i2c: D1 [11:35:14]MH_I2C_Read... [11:35:14]Read from MH i2c: D1 01 00 [11:35:14]MH_I2C_Read... [11:35:14]Read from MH i2c: D1 01 00 9C 2D 00 9A [11:35:14]Write to MH i2c: 01 00 00 9D 2D CA [11:35:14]Write i2c OK [11:35:14]MH_I2C_Read... [11:35:14]OFD Sender: No OFD packet to send [11:35:15]*** Cut start [11:35:15]*** Partial cut [11:35:15]*** CUTSNS_PIN = 1 [11:35:15]*** CUTSNS_PIN = 0 [11:35:15]*** Brake cut motor [11:35:15]Read from MH i2c: 01 [11:35:15]MH_I2C_Read... [11:35:15]*** Stop cut motor [11:35:15]*** Cut end [11:35:15]Read from MH i2c: 01 07 00 [11:35:15]MH_I2C_Read... [11:35:15]Read from MH i2c: 01 07 00 9D 2D 00 00 00 00 00 FF 0F DF [11:35:15]process_action close_receipt done [11:35:15]requested_data is exist [11:35:15]produce_requested_data [11:35:15]requested_item fm.sn is exist - process it [11:35:15]wFMCommunicate request_size=4 [11:35:15]MH_SAM_APDU [11:35:15]CAPDU: 80 11 00 00 [11:35:15]Write to MH i2c: E2 08 00 9E 2D 80 11 00 00 00 00 00 00 45 [11:35:15]Write i2c OK [11:35:15]MH_I2C_Read... [11:35:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:15]Read from MH i2c: E2 [11:35:15]MH_I2C_Read... [11:35:15]Read from MH i2c: E2 17 00 [11:35:15]MH_I2C_Read... [11:35:15]Read from MH i2c: E2 17 00 9E 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 98 [11:35:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:35:15]wFMCommunicate OK [11:35:15]requested_item fd.num is exist - process it [11:35:15]SAM_PROTO_GetFieldsCounters [11:35:15]wFMCommunicate request_size=4 [11:35:15]MH_SAM_APDU [11:35:15]CAPDU: 80 13 00 00 [11:35:15]Write to MH i2c: E2 08 00 9F 2D 80 13 00 00 00 00 00 00 48 [11:35:15]Write i2c OK [11:35:15]MH_I2C_Read... [11:35:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:16]Read from MH i2c: E2 [11:35:16]MH_I2C_Read... [11:35:16]Read from MH i2c: E2 62 00 [11:35:16]MH_I2C_Read... [11:35:16]Read from MH i2c: E2 62 00 9F 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 60 F1 02 00 0E 04 04 00 20 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 B5 [11:35:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 F1 02 00 0E 04 04 00 20 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 [11:35:16]wFMCommunicate OK [11:35:16]SAM_PROTO_GetFieldsCounters done [11:35:16]requested_item shift.num is exist - process it [11:35:16]requested_item shift.opened is exist - process it [11:35:16]req_shift_opened [11:35:16]FM_GetShiftState [11:35:16]SAM_PROTO_GetShiftState [11:35:16]wFMCommunicate request_size=4 [11:35:16]MH_SAM_APDU [11:35:16]CAPDU: 80 13 01 00 [11:35:16]Write to MH i2c: E2 08 00 A0 2D 80 13 01 00 00 00 00 00 4A [11:35:16]Write i2c OK [11:35:16]MH_I2C_Read... [11:35:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:16]Read from MH i2c: E2 [11:35:16]MH_I2C_Read... [11:35:16]Read from MH i2c: E2 0E 00 [11:35:16]MH_I2C_Read... [11:35:16]Read from MH i2c: E2 0E 00 A0 2D 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 50 [11:35:16]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:35:16]wFMCommunicate OK [11:35:16]SAM_PROTO_GetShiftState done [11:35:16]FM_GetShiftState done [11:35:16]req_shift_opened done [11:35:16]requested_item shift.open_date is exist - process it [11:35:16]req_shift_open_date [11:35:16]req_shift_open_date done [11:35:16]produce_requested_data done [11:35:16]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192864,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [11:35:16]process_action_free close_receipt [11:35:16]json_value_free [11:35:16]json_value_free done [11:35:16]process_json_proto returns [11:35:16]Send response to host [11:35:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192864,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [11:35:16]free response buf [11:35:16]execute_script done [11:35:16]execute_script returns [11:35:16]free content buf [11:35:16]Sock 10.Close socket [11:35:16]Sock 10.Thread stoped [11:35:19]OFD Sender: No OFD packet to send [11:35:24]OFD Sender: No OFD packet to send [11:35:29]OFD Sender: No OFD packet to send [11:35:34]OFD Sender: No OFD packet to send [11:35:39]OFD Sender: No OFD packet to send [11:35:44]OFD Sender: No OFD packet to send [11:35:49]OFD Sender: No OFD packet to send [11:35:54]OFD Sender: No OFD packet to send [11:35:59]OFD Sender: No OFD packet to send [11:36:04]OFD Sender: No OFD packet to send [11:36:09]OFD Sender: No OFD packet to send [11:36:09]accept exits with 8 [11:36:09]New connection [11:36:09]New thread 3066658148 created [11:36:09]Thread 3066801508 joined [11:36:09]Waiting for new connection... [11:36:09] Sock 8.Parse request [11:36:09]Sock 8.Check first char [11:36:09]Sock 8.First char is OK [11:36:09]request: POST /json_proto HTTP/1.0 [11:36:09]Method: POST [11:36:09]URL: /json_proto [11:36:09]Method is POST - this is cgi request [11:36:09]url: /json_proto [11:36:09]query_string will be loaded in cgi processing [11:36:09]execute_cgi json_proto POST (null) [11:36:09]execute_cgi path=json_proto method=POST [11:36:09]POST find Content-Length [11:36:09]Host: 172.17.63.131:8080 [11:36:09]Content-Length: 676 [11:36:09]Content-Type: application/json [11:36:09] [11:36:09]POST finish read [11:36:09]Found Content-Length = 676 [11:36:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32194", "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" ] } } [11:36:09]execute_script... [11:36: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)32194", "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" ] } } [11:36:09]POST & json_proto [11:36:09]process_json_proto [11:36:09]json parsed OK: [11:36:09]protocol is kg_v1.0 [11:36:09]action value=close_receipt [11:36:09]process_action close_receipt [11:36:09]cmd_close_receipt [11:36:09]MH_GetDate [11:36:09]Write to MH i2c: F0 00 00 A1 2D BD [11:36:09]Write i2c OK [11:36:09]MH_I2C_Read... [11:36:09]Read from MH i2c: F0 [11:36:09]MH_I2C_Read... [11:36:09]Read from MH i2c: F0 09 00 [11:36:09]MH_I2C_Read... [11:36:09]Read from MH i2c: F0 09 00 A1 2D 00 AE C8 20 67 22 05 6E 64 BC [11:36:09]GetLastDocTimeStamp 1730201716 [11:36:09]current date 1730201774 [11:36:09]FM_GetShiftState [11:36:09]SAM_PROTO_GetShiftState [11:36:09]wFMCommunicate request_size=4 [11:36:09]MH_SAM_APDU [11:36:09]CAPDU: 80 13 01 00 [11:36:09]Write to MH i2c: E2 08 00 A2 2D 80 13 01 00 00 00 00 00 4C [11:36:09]Write i2c OK [11:36:09]MH_I2C_Read... [11:36:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:09]Read from MH i2c: E2 [11:36:09]MH_I2C_Read... [11:36:09]Read from MH i2c: E2 0E 00 [11:36:09]MH_I2C_Read... [11:36:09]Read from MH i2c: E2 0E 00 A2 2D 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 52 [11:36:09]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:36:09]wFMCommunicate OK [11:36:09]SAM_PROTO_GetShiftState done [11:36:09]FM_GetShiftState done [11:36:09]opened in 1730161990 [11:36:09]opened+sec_in_day 1730248390 [11:36:09]quantity*price = 50041 [11:36:09]sum+1 = 50042 [11:36: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 СÐО: Общий режим Чек 71 29.10.2024 11:36 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192865 ФПД: 185255783567246 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T113614&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192865&fm=185255783567246&tin=02508201610067®Number=0000000000091776&sum=50000 [11:36:10]StoreToDocumentArchive [11:36:10]shift 544 fd 192865 [11:36:10]save to /storage/0544/doc_00192865 [11:36:10]save last doc name /storage/0544/doc_00192865 to /storage/kkm_last_doc_name [11:36:10]save OK [11:36:10]Clear old archive folders... [11:36:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:36:10]tlvbuf is 00FA6DA0 [11:36:10]SAM_PROTO_ClearQueue [11:36:10]wFMCommunicate request_size=4 [11:36:10]MH_SAM_APDU [11:36:10]CAPDU: 80 09 00 00 [11:36:10]Write to MH i2c: E2 08 00 AF 2D 80 09 00 00 00 00 00 00 4E [11:36:10]Write i2c OK [11:36:10]MH_I2C_Read... [11:36:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:36:11]Read from MH i2c: E2 [11:36:11]MH_I2C_Read... [11:36:11]Read from MH i2c: E2 03 00 [11:36:11]MH_I2C_Read... [11:36:11]Read from MH i2c: E2 03 00 AF 2D 00 90 00 50 [11:36:11]RAPDU: 90 00 [11:36:11]wFMCommunicate OK [11:36:11]SAM_PROTO_ClearQueue done [11:36:11]KKMCreateOFDPacket [11:36:11]OFDProtocolAddRootSTLVToBuf [11:36:11]FM_MakeSignedData [11:36:11]FM_MakeSignedData [11:36:11]SAM_PROTO_SignData [11:36:11]wFMCommunicate request_size=4 [11:36:11]MH_SAM_APDU [11:36:11]CAPDU: 80 0D 01 02 [11:36:11]Write to MH i2c: E2 08 00 B0 2D 80 0D 01 02 00 00 00 00 56 [11:36:11]Write i2c OK [11:36:11]MH_I2C_Read... [11:36:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:36:11]Read from MH i2c: E2 [11:36:11]MH_I2C_Read... [11:36:11]Read from MH i2c: E2 03 00 [11:36:11]MH_I2C_Read... [11:36:11]Read from MH i2c: E2 03 00 B0 2D 00 90 00 51 [11:36:11]RAPDU: 90 00 [11:36:11]wFMCommunicate OK [11:36:11]wFMCommunicate request_size=255 [11:36:11]MH_SAM_APDU [11:36: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 47 00 00 00 F4 03 04 00 AE C8 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 A8 [11:36:11]Write to MH i2c: E2 02 01 B1 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 47 00 00 00 F4 03 04 00 AE C8 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 A8 00 00 4C [11:36:11]Write i2c OK [11:36:11]MH_I2C_Read... [11:36:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:11]Read from MH i2c: E2 [11:36:11]MH_I2C_Read... [11:36:11]Read from MH i2c: E2 03 00 [11:36:11]MH_I2C_Read... [11:36:11]Read from MH i2c: E2 03 00 B1 2D 00 90 00 52 [11:36:11]RAPDU: 90 00 [11:36:11]wFMCommunicate OK [11:36:11]wFMCommunicate request_size=10 [11:36:11]MH_SAM_APDU [11:36:11]CAPDU: 80 0D 02 02 05 7D 39 2C 0F 8E [11:36:11]Write to MH i2c: E2 0D 00 B2 2D 80 0D 02 02 05 00 7D 39 2C 0F 8E 00 00 E2 [11:36:11]Write i2c OK [11:36:11]MH_I2C_Read... [11:36:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:11]Read from MH i2c: E2 [11:36:11]MH_I2C_Read... [11:36:11]Read from MH i2c: E2 03 00 [11:36:11]MH_I2C_Read... [11:36:11]Read from MH i2c: E2 03 00 B2 2D 00 90 00 53 [11:36:11]RAPDU: 90 00 [11:36:11]wFMCommunicate OK [11:36:11]wFMCommunicate request_size=4 [11:36:11]MH_SAM_APDU [11:36:11]CAPDU: 80 0D 03 02 [11:36:11]Write to MH i2c: E2 08 00 B3 2D 80 0D 03 02 00 00 00 00 5B [11:36:11]Write i2c OK [11:36:11]MH_I2C_Read... [11:36:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:36:11]Read from MH i2c: E2 [11:36:11]MH_I2C_Read... [11:36:11]Read from MH i2c: E2 0B 00 [11:36:11]MH_I2C_Read... [11:36:11]Read from MH i2c: E2 0B 00 B3 2D 00 6E 0F 13 CD 7A D0 CF DB 90 00 AD [11:36:11]RAPDU: 6E 0F 13 CD 7A D0 CF DB 90 00 [11:36:11]wFMCommunicate OK [11:36:11]SAM_PROTO_SignData done [11:36:11]FM_MakeSignedData done [11:36:11]CreateOFDProtocolMessage [11:36:11]wFMCommunicate request_size=4 [11:36:11]MH_SAM_APDU [11:36:11]CAPDU: 80 11 00 00 [11:36:11]Write to MH i2c: E2 08 00 B4 2D 80 11 00 00 00 00 00 00 5B [11:36:11]Write i2c OK [11:36:11]MH_I2C_Read... [11:36:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:11]Read from MH i2c: E2 [11:36:11]MH_I2C_Read... [11:36:11]Read from MH i2c: E2 17 00 [11:36:11]MH_I2C_Read... [11:36:11]Read from MH i2c: E2 17 00 B4 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AE [11: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 [11:36:11]wFMCommunicate OK [11:36:11]CreateOFDProtocolMessage done [11:36:11]OFDSenderStorePacket 192865 [11:36:11]StoreOFDPacket docnum=192865 [11:36: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 37 47 07 01 66 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 AE C8 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 A8 7D 39 2C 0F 8E 6E 0F 13 CD 7A D0 CF DB [11:36:11]CheckFolder [11:36:11]dirname=/storage/ofd_packets [11:36:11]CheckFolder done [11:36:11]ProducePacketName [11:36:11]name=ofd_packets/00192865 [11:36:11]NVStorageSaveData ofd_packets/00192865 [11:36:11]File name is /storage/ofd_packets/00192865 [11:36:11]Write 301 bytes [11:36:11]NVStorageSaveData done [11:36:11]OFDSenderStorePacket done [11:36:11]KKMCreateOFDPacket done [11:36:11]NVStorageSaveData kkm_last_timestamp [11:36:11]File name is /storage/kkm_last_timestamp [11:36:11]Write 4 bytes [11:36:11]NVStorageSaveData done [11:36:11]ExternCall_PrintAddStr [11:36:11]wPrintStart [11:36:11]Write to MH i2c: 01 00 00 B5 2D E2 [11:36:11]Write i2c OK [11:36:11]MH_I2C_Read... [11:36:11]Read from MH i2c: 01 [11:36:11]MH_I2C_Read... [11:36:11]Read from MH i2c: 01 07 00 [11:36:11]MH_I2C_Read... [11:36:11]Read from MH i2c: 01 07 00 B5 2D 00 00 00 00 00 FF 0F F7 [11:36:11]RasterBufferAndPrint [11:36:11]line Счет N : (1)32194 [11:36:11]line ИÐÐ: 02508201610067 [11:36:11]line Контрольно-КаÑÑовый Чек [11:36:11]line ПРОДÐЖР[11:36:11]line ТРК (МРК, ГÐК) : 12 [11:36:11]line Товар: 2710124130 [11:36:11]line Ðи-92-К-5 [11:36:11]line 7.480 * 66.90 [11:36:11]line = 500.41 [11:36:11]line ÐДС 12% ÐСП 1% [11:36:11]line > о реализуемом товаре [11:36:11]line ОКРУГЛЕÐИЕ: -0.41 [11:36:11]line ИТОГО: 500.00 [11:36:11]line ВнеÑено: 500.00 [11:36:11]line СДÐЧÐ: 0.00 [11:36:11]line ÐСП 1% : 4.43 [11:36:11]line ÐДС 12% : 53.14 [11:36:11]line Ðаличными: 500.00 [11:36:11]line Безнал.: 0.00 [11:36:11]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [11:36:11]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [11:36:11]line СÐО: Общий режим [11:36:11]line Чек 71 29.10.2024 11:36 [11:36:11]line Смена: 544 ФФД: 1.0 [11:36:11]line ЗÐМ: 0300000110 [11:36:11]line РÐМ: 0000000000091776 [11:36:11]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [11:36:11]line ФМ: 0000000000871754 [11:36:11]line ФД: 192865 [11:36:11]line ФПД: 185255783567246 [11:36:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T113614&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192865&fm=185255783567246&tin=02508201610067®Number=0000000000091776&sum=50000 [11:36:11]OFD Sender: Processing packet 192865 [packets to send 75, broken 74] [11:36:11]ProducePacketName [11:36:11]name=ofd_packets/00192865 [11:36:11]OFD Sender: To server: ‡•öpG, [11:36:11]CommunicateWithHost lk.salyk.kg:30040 [11:36:11]ConnectInit lk.salyk.kg [11:36:11]written 0, free lines is 4095 [11:36:11]Connected sock=10 [11:36: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 37 47 07 01 66 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 AE C8 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 A8 7D 39 2C 0F 8E 6E 0F 13 CD 7A D0 CF DB [11:36: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 3C B6 47 00 68 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 61 F1 02 00 F4 03 04 00 6F 6D 20 67 B6 04 01 00 00 29 5E 3D 85 95 E6 1D 2B [11:36:12]CommunicateWithHost err = 0 [11:36:12]CheckOFDResponse [11:36:12]1017 (14) - 77093643461234 [11:36:12]1041 (16) - 0000000000871754 [11:36:12]1040 (4) - 192865 [11:36:12]1012 (4) - 29.10.2024 05:06 [11:36:12]1206 (1) - 0 [11:36:12]OFD Sender: Remove packet 192865 [11:36:12]ProducePacketName [11:36:12]name=ofd_packets/00192865 [11:36:12]NVStorageDeleteData [11:36:12]Write to MH i2c: 01 00 00 E0 2D 0D [11:36:12]Write i2c OK [11:36:12]MH_I2C_Read... [11:36:12]Read from MH i2c: 01 [11:36:12]MH_I2C_Read... [11:36:12]Read from MH i2c: 01 07 00 [11:36:12]MH_I2C_Read... [11:36:12]Read from MH i2c: 01 07 00 E0 2D 00 00 00 00 00 AA 0C CA [11:36:12]RasterBufferAndPrint [11:36:12]line [11:36:12]line [11:36:12]line [11:36:12]line [11:36:12]line [11:36:12]written 0, free lines is 3248 [11:36:12]MH_Cut [11:36:12]Write to MH i2c: D1 01 00 E7 2D 01 E6 [11:36:12]Write i2c OK [11:36:12]MH_I2C_Read... [11:36:12]Read from MH i2c: D1 [11:36:12]MH_I2C_Read... [11:36:12]Read from MH i2c: D1 01 00 [11:36:12]MH_I2C_Read... [11:36:12]Read from MH i2c: D1 01 00 E7 2D 00 E5 [11:36:12]Write to MH i2c: 01 00 00 E8 2D 15 [11:36:12]Write i2c OK [11:36:12]MH_I2C_Read... [11:36:12]OFD Sender: No OFD packet to send [11:36:13]*** Cut start [11:36:13]*** Partial cut [11:36:13]*** CUTSNS_PIN = 1 [11:36:13]*** CUTSNS_PIN = 0 [11:36:13]*** Brake cut motor [11:36:13]Read from MH i2c: 01 [11:36:13]MH_I2C_Read... [11:36:13]*** Stop cut motor [11:36:13]*** Cut end [11:36:13]Read from MH i2c: 01 07 00 [11:36:13]MH_I2C_Read... [11:36:13]Read from MH i2c: 01 07 00 E8 2D 00 00 00 00 00 FF 0F 2A [11:36:13]process_action close_receipt done [11:36:13]requested_data is exist [11:36:13]produce_requested_data [11:36:13]requested_item fm.sn is exist - process it [11:36:13]wFMCommunicate request_size=4 [11:36:13]MH_SAM_APDU [11:36:13]CAPDU: 80 11 00 00 [11:36:13]Write to MH i2c: E2 08 00 E9 2D 80 11 00 00 00 00 00 00 90 [11:36:13]Write i2c OK [11:36:13]MH_I2C_Read... [11:36:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:13]Read from MH i2c: E2 [11:36:13]MH_I2C_Read... [11:36:13]Read from MH i2c: E2 17 00 [11:36:13]MH_I2C_Read... [11:36:13]Read from MH i2c: E2 17 00 E9 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E3 [11:36: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:36:13]wFMCommunicate OK [11:36:13]requested_item fd.num is exist - process it [11:36:13]SAM_PROTO_GetFieldsCounters [11:36:13]wFMCommunicate request_size=4 [11:36:13]MH_SAM_APDU [11:36:13]CAPDU: 80 13 00 00 [11:36:13]Write to MH i2c: E2 08 00 EA 2D 80 13 00 00 00 00 00 00 93 [11:36:13]Write i2c OK [11:36:13]MH_I2C_Read... [11:36:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:36:13]Read from MH i2c: E2 [11:36:13]MH_I2C_Read... [11:36:13]Read from MH i2c: E2 62 00 [11:36:13]MH_I2C_Read... [11:36:13]Read from MH i2c: E2 62 00 EA 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 61 F1 02 00 0E 04 04 00 20 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 04 [11:36: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 61 F1 02 00 0E 04 04 00 20 02 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:36:13]wFMCommunicate OK [11:36:13]SAM_PROTO_GetFieldsCounters done [11:36:13]requested_item shift.num is exist - process it [11:36:13]requested_item shift.opened is exist - process it [11:36:13]req_shift_opened [11:36:13]FM_GetShiftState [11:36:13]SAM_PROTO_GetShiftState [11:36:13]wFMCommunicate request_size=4 [11:36:13]MH_SAM_APDU [11:36:13]CAPDU: 80 13 01 00 [11:36:13]Write to MH i2c: E2 08 00 EB 2D 80 13 01 00 00 00 00 00 95 [11:36:13]Write i2c OK [11:36:13]MH_I2C_Read... [11:36:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:13]Read from MH i2c: E2 [11:36:13]MH_I2C_Read... [11:36:13]Read from MH i2c: E2 0E 00 [11:36:13]MH_I2C_Read... [11:36:13]Read from MH i2c: E2 0E 00 EB 2D 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 9B [11:36:13]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:36:13]wFMCommunicate OK [11:36:13]SAM_PROTO_GetShiftState done [11:36:13]FM_GetShiftState done [11:36:13]req_shift_opened done [11:36:13]requested_item shift.open_date is exist - process it [11:36:13]req_shift_open_date [11:36:13]req_shift_open_date done [11:36:13]produce_requested_data done [11:36:13]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192865,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [11:36:13]process_action_free close_receipt [11:36:13]json_value_free [11:36:13]json_value_free done [11:36:13]process_json_proto returns [11:36:13]Send response to host [11:36:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192865,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [11:36:13]free response buf [11:36:13]execute_script done [11:36:13]execute_script returns [11:36:13]free content buf [11:36:13]Sock 8.Close socket [11:36:13]Sock 8.Thread stoped [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:32]OFD Sender: No OFD packet to send [11:36:37]OFD Sender: No OFD packet to send [11:36:42]OFD Sender: No OFD packet to send [11:36:47]OFD Sender: No OFD packet to send [11:36:52]OFD Sender: No OFD packet to send [11:36:57]OFD Sender: No OFD packet to send [11:37:02]OFD Sender: No OFD packet to send [11:37:07]OFD Sender: No OFD packet to send [11:37:12]OFD Sender: No OFD packet to send [11:37:17]OFD Sender: No OFD packet to send [11:37:22]OFD Sender: No OFD packet to send [11:37:27]OFD Sender: No OFD packet to send [11:37:32]OFD Sender: No OFD packet to send [11:37:37]OFD Sender: No OFD packet to send [11:37:42]OFD Sender: No OFD packet to send [11:37:47]OFD Sender: No OFD packet to send [11:37:52]OFD Sender: No OFD packet to send [11:37:57]OFD Sender: No OFD packet to send [11:38:02]OFD Sender: No OFD packet to send [11:38:07]OFD Sender: No OFD packet to send [11:38:12]OFD Sender: No OFD packet to send [11:38:17]OFD Sender: No OFD packet to send [11:38:22]OFD Sender: No OFD packet to send [11:38:27]OFD Sender: No OFD packet to send [11:38:32]OFD Sender: No OFD packet to send [11:38:37]OFD Sender: No OFD packet to send [11:38:42]OFD Sender: No OFD packet to send [11:38:47]OFD Sender: No OFD packet to send [11:38:52]OFD Sender: No OFD packet to send [11:38:57]OFD Sender: No OFD packet to send [11:39:02]OFD Sender: No OFD packet to send [11:39:07]OFD Sender: No OFD packet to send [11:39:12]OFD Sender: No OFD packet to send [11:39:14]accept exits with 9 [11:39:14]New connection [11:39:14]New thread 3066801508 created [11:39:14]Thread 3066658148 joined [11:39:14]Waiting for new connection... [11:39:14] Sock 9.Parse request [11:39:14]Sock 9.Check first char [11:39:14]Sock 9.First char is OK [11:39:14]request: POST /json_proto HTTP/1.0 [11:39:14]Method: POST [11:39:14]URL: /json_proto [11:39:14]Method is POST - this is cgi request [11:39:14]url: /json_proto [11:39:14]query_string will be loaded in cgi processing [11:39:14]execute_cgi json_proto POST (null) [11:39:14]execute_cgi path=json_proto method=POST [11:39:14]POST find Content-Length [11:39:14]Host: 172.17.63.131:8080 [11:39:14]Content-Length: 676 [11:39:14]Content-Type: application/json [11:39:14] [11:39:14]POST finish read [11:39:14]Found Content-Length = 676 [11:39:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32196", "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" ] } } [11:39:14]execute_script... [11:39: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)32196", "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" ] } } [11:39:14]POST & json_proto [11:39:14]process_json_proto [11:39:14]json parsed OK: [11:39:14]protocol is kg_v1.0 [11:39:14]action value=close_receipt [11:39:14]process_action close_receipt [11:39:14]cmd_close_receipt [11:39:14]MH_GetDate [11:39:14]Write to MH i2c: F0 00 00 EC 2D 08 [11:39:14]Write i2c OK [11:39:14]MH_I2C_Read... [11:39:14]Read from MH i2c: F0 [11:39:14]MH_I2C_Read... [11:39:14]Read from MH i2c: F0 09 00 [11:39:14]MH_I2C_Read... [11:39:14]Read from MH i2c: F0 09 00 EC 2D 00 67 C9 20 67 22 05 6E 64 C1 [11:39:14]GetLastDocTimeStamp 1730201774 [11:39:14]current date 1730201959 [11:39:14]FM_GetShiftState [11:39:14]SAM_PROTO_GetShiftState [11:39:14]wFMCommunicate request_size=4 [11:39:14]MH_SAM_APDU [11:39:14]CAPDU: 80 13 01 00 [11:39:14]Write to MH i2c: E2 08 00 ED 2D 80 13 01 00 00 00 00 00 97 [11:39:14]Write i2c OK [11:39:14]MH_I2C_Read... [11:39:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:14]Read from MH i2c: E2 [11:39:14]MH_I2C_Read... [11:39:14]Read from MH i2c: E2 0E 00 [11:39:14]MH_I2C_Read... [11:39:14]Read from MH i2c: E2 0E 00 ED 2D 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 9D [11:39:14]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:39:14]wFMCommunicate OK [11:39:14]SAM_PROTO_GetShiftState done [11:39:14]FM_GetShiftState done [11:39:14]opened in 1730161990 [11:39:14]opened+sec_in_day 1730248390 [11:39:14]quantity*price = 50041 [11:39:14]sum+1 = 50042 [11:39: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 СÐО: Общий режим Чек 72 29.10.2024 11:39 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192866 ФПД: 43425895494350 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T113919&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192866&fm=43425895494350&tin=02508201610067®Number=0000000000091776&sum=50000 [11:39:15]StoreToDocumentArchive [11:39:15]shift 544 fd 192866 [11:39:15]save to /storage/0544/doc_00192866 [11:39:16]save last doc name /storage/0544/doc_00192866 to /storage/kkm_last_doc_name [11:39:16]save OK [11:39:16]Clear old archive folders... [11:39:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:39:16]tlvbuf is 00FA7100 [11:39:16]SAM_PROTO_ClearQueue [11:39:16]wFMCommunicate request_size=4 [11:39:16]MH_SAM_APDU [11:39:16]CAPDU: 80 09 00 00 [11:39:16]Write to MH i2c: E2 08 00 FA 2D 80 09 00 00 00 00 00 00 99 [11:39:16]Write i2c OK [11:39:16]MH_I2C_Read... [11:39:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:39:16]Read from MH i2c: E2 [11:39:16]MH_I2C_Read... [11:39:16]Read from MH i2c: E2 03 00 [11:39:16]MH_I2C_Read... [11:39:16]Read from MH i2c: E2 03 00 FA 2D 00 90 00 9B [11:39:16]RAPDU: 90 00 [11:39:16]wFMCommunicate OK [11:39:16]SAM_PROTO_ClearQueue done [11:39:16]KKMCreateOFDPacket [11:39:16]OFDProtocolAddRootSTLVToBuf [11:39:16]FM_MakeSignedData [11:39:16]FM_MakeSignedData [11:39:16]SAM_PROTO_SignData [11:39:16]wFMCommunicate request_size=4 [11:39:16]MH_SAM_APDU [11:39:16]CAPDU: 80 0D 01 02 [11:39:16]Write to MH i2c: E2 08 00 FB 2D 80 0D 01 02 00 00 00 00 A1 [11:39:16]Write i2c OK [11:39:16]MH_I2C_Read... [11:39:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:39:16]Read from MH i2c: E2 [11:39:16]MH_I2C_Read... [11:39:16]Read from MH i2c: E2 03 00 [11:39:16]MH_I2C_Read... [11:39:16]Read from MH i2c: E2 03 00 FB 2D 00 90 00 9C [11:39:16]RAPDU: 90 00 [11:39:16]wFMCommunicate OK [11:39:16]wFMCommunicate request_size=255 [11:39:16]MH_SAM_APDU [11:39: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 48 00 00 00 F4 03 04 00 67 C9 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 27 [11:39:16]Write to MH i2c: E2 02 01 FC 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 48 00 00 00 F4 03 04 00 67 C9 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 27 00 00 D2 [11:39:16]Write i2c OK [11:39:16]MH_I2C_Read... [11:39:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:16]Read from MH i2c: E2 [11:39:16]MH_I2C_Read... [11:39:16]Read from MH i2c: E2 03 00 [11:39:16]MH_I2C_Read... [11:39:16]Read from MH i2c: E2 03 00 FC 2D 00 90 00 9D [11:39:16]RAPDU: 90 00 [11:39:16]wFMCommunicate OK [11:39:16]wFMCommunicate request_size=10 [11:39:16]MH_SAM_APDU [11:39:16]CAPDU: 80 0D 02 02 05 7E E1 13 32 CE [11:39:16]Write to MH i2c: E2 0D 00 FD 2D 80 0D 02 02 05 00 7E E1 13 32 CE 00 00 20 [11:39:16]Write i2c OK [11:39:16]MH_I2C_Read... [11:39:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:16]Read from MH i2c: E2 [11:39:16]MH_I2C_Read... [11:39:16]Read from MH i2c: E2 03 00 [11:39:16]MH_I2C_Read... [11:39:16]Read from MH i2c: E2 03 00 FD 2D 00 90 00 9E [11:39:16]RAPDU: 90 00 [11:39:16]wFMCommunicate OK [11:39:16]wFMCommunicate request_size=4 [11:39:16]MH_SAM_APDU [11:39:16]CAPDU: 80 0D 03 02 [11:39:16]Write to MH i2c: E2 08 00 FE 2D 80 0D 03 02 00 00 00 00 A6 [11:39:16]Write i2c OK [11:39:16]MH_I2C_Read... [11:39:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:39:16]Read from MH i2c: E2 [11:39:16]MH_I2C_Read... [11:39:16]Read from MH i2c: E2 0B 00 [11:39:16]MH_I2C_Read... [11:39:16]Read from MH i2c: E2 0B 00 FE 2D 00 B9 6F D1 65 6B 2B C8 F7 90 00 5A [11:39:16]RAPDU: B9 6F D1 65 6B 2B C8 F7 90 00 [11:39:16]wFMCommunicate OK [11:39:16]SAM_PROTO_SignData done [11:39:16]FM_MakeSignedData done [11:39:16]CreateOFDProtocolMessage [11:39:16]wFMCommunicate request_size=4 [11:39:16]MH_SAM_APDU [11:39:16]CAPDU: 80 11 00 00 [11:39:16]Write to MH i2c: E2 08 00 FF 2D 80 11 00 00 00 00 00 00 A6 [11:39:16]Write i2c OK [11:39:16]MH_I2C_Read... [11:39:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:16]Read from MH i2c: E2 [11:39:16]MH_I2C_Read... [11:39:16]Read from MH i2c: E2 17 00 [11:39:16]MH_I2C_Read... [11:39:16]Read from MH i2c: E2 17 00 FF 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F9 [11:39: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:39:16]wFMCommunicate OK [11:39:16]CreateOFDProtocolMessage done [11:39:16]OFDSenderStorePacket 192866 [11:39:16]StoreOFDPacket docnum=192866 [11:39: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 90 B0 07 01 23 B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 67 C9 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 27 7E E1 13 32 CE B9 6F D1 65 6B 2B C8 F7 [11:39:16]CheckFolder [11:39:16]dirname=/storage/ofd_packets [11:39:16]CheckFolder done [11:39:16]ProducePacketName [11:39:16]name=ofd_packets/00192866 [11:39:16]NVStorageSaveData ofd_packets/00192866 [11:39:16]File name is /storage/ofd_packets/00192866 [11:39:16]Write 301 bytes [11:39:16]NVStorageSaveData done [11:39:16]OFDSenderStorePacket done [11:39:16]KKMCreateOFDPacket done [11:39:16]NVStorageSaveData kkm_last_timestamp [11:39:16]File name is /storage/kkm_last_timestamp [11:39:16]Write 4 bytes [11:39:16]NVStorageSaveData done [11:39:16]ExternCall_PrintAddStr [11:39:16]wPrintStart [11:39:16]Write to MH i2c: 01 00 00 00 2E 2E [11:39:16]Write i2c OK [11:39:16]MH_I2C_Read... [11:39:16]Read from MH i2c: 01 [11:39:16]MH_I2C_Read... [11:39:16]Read from MH i2c: 01 07 00 [11:39:16]MH_I2C_Read... [11:39:16]Read from MH i2c: 01 07 00 00 2E 00 00 00 00 00 FF 0F 43 [11:39:16]RasterBufferAndPrint [11:39:16]line Счет N : (1)32196 [11:39:16]line ИÐÐ: 02508201610067 [11:39:16]line Контрольно-КаÑÑовый Чек [11:39:16]line ПРОДÐЖР[11:39:16]line ТРК (МРК, ГÐК) : 12 [11:39:16]line Товар: 2710124130 [11:39:16]line Ðи-92-К-5 [11:39:16]line 7.480 * 66.90 [11:39:16]line = 500.41 [11:39:16]line ÐДС 12% ÐСП 1% [11:39:16]line > о реализуемом товаре [11:39:16]line ОКРУГЛЕÐИЕ: -0.41 [11:39:16]line ИТОГО: 500.00 [11:39:16]line ВнеÑено: 500.00 [11:39:16]line СДÐЧÐ: 0.00 [11:39:16]line ÐСП 1% : 4.43 [11:39:16]line ÐДС 12% : 53.14 [11:39:16]line Ðаличными: 500.00 [11:39:16]line Безнал.: 0.00 [11:39:16]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [11:39:16]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [11:39:16]line СÐО: Общий режим [11:39:16]line Чек 72 29.10.2024 11:39 [11:39:16]line Смена: 544 ФФД: 1.0 [11:39:16]line ЗÐМ: 0300000110 [11:39:16]line РÐМ: 0000000000091776 [11:39:16]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [11:39:16]line ФМ: 0000000000871754 [11:39:16]line ФД: 192866 [11:39:16]line ФПД: 43425895494350 [11:39:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T113919&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192866&fm=43425895494350&tin=02508201610067®Number=0000000000091776&sum=50000 [11:39:16]written 0, free lines is 4095 [11:39:16]OFD Sender: Processing packet 192866 [packets to send 75, broken 74] [11:39:16]ProducePacketName [11:39:16]name=ofd_packets/00192866 [11:39:16]OFD Sender: To server: ‡•öpG, [11:39:16]CommunicateWithHost lk.salyk.kg:30040 [11:39:16]ConnectInit lk.salyk.kg [11:39:16]Connected sock=10 [11:39: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 90 B0 07 01 23 B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 67 C9 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 27 7E E1 13 32 CE B9 6F D1 65 6B 2B C8 F7 [11:39: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 DC B2 47 00 90 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 62 F1 02 00 F4 03 04 00 27 6E 20 67 B6 04 01 00 00 C6 FF E2 32 36 69 A0 A6 [11:39:16]CommunicateWithHost err = 0 [11:39:16]CheckOFDResponse [11:39:16]1017 (14) - 77093643461234 [11:39:16]1041 (16) - 0000000000871754 [11:39:16]1040 (4) - 192866 [11:39:16]1012 (4) - 29.10.2024 05:09 [11:39:16]1206 (1) - 0 [11:39:16]OFD Sender: Remove packet 192866 [11:39:16]ProducePacketName [11:39:16]name=ofd_packets/00192866 [11:39:16]NVStorageDeleteData [11:39:16]Write to MH i2c: 01 00 00 2B 2E 59 [11:39:16]Write i2c OK [11:39:16]MH_I2C_Read... [11:39:16]Read from MH i2c: 01 [11:39:16]MH_I2C_Read... [11:39:16]Read from MH i2c: 01 07 00 [11:39:16]MH_I2C_Read... [11:39:16]Read from MH i2c: 01 07 00 2B 2E 00 00 00 00 00 B0 0C 1C [11:39:16]RasterBufferAndPrint [11:39:16]line [11:39:17]line [11:39:17]line [11:39:17]line [11:39:17]line [11:39:17]written 0, free lines is 3253 [11:39:17]MH_Cut [11:39:17]Write to MH i2c: D1 01 00 32 2E 01 32 [11:39:17]Write i2c OK [11:39:17]MH_I2C_Read... [11:39:17]Read from MH i2c: D1 [11:39:17]MH_I2C_Read... [11:39:17]Read from MH i2c: D1 01 00 [11:39:17]MH_I2C_Read... [11:39:17]Read from MH i2c: D1 01 00 32 2E 00 31 [11:39:17]Write to MH i2c: 01 00 00 33 2E 61 [11:39:17]Write i2c OK [11:39:17]MH_I2C_Read... [11:39:17]OFD Sender: No OFD packet to send [11:39:17]*** Cut start [11:39:17]*** Partial cut [11:39:17]*** CUTSNS_PIN = 1 [11:39:17]*** CUTSNS_PIN = 0 [11:39:18]*** Brake cut motor [11:39:18]Read from MH i2c: 01 [11:39:18]MH_I2C_Read... [11:39:18]*** Stop cut motor [11:39:18]*** Cut end [11:39:18]Read from MH i2c: 01 07 00 [11:39:18]MH_I2C_Read... [11:39:18]Read from MH i2c: 01 07 00 33 2E 00 00 00 00 00 FF 0F 76 [11:39:18]process_action close_receipt done [11:39:18]requested_data is exist [11:39:18]produce_requested_data [11:39:18]requested_item fm.sn is exist - process it [11:39:18]wFMCommunicate request_size=4 [11:39:18]MH_SAM_APDU [11:39:18]CAPDU: 80 11 00 00 [11:39:18]Write to MH i2c: E2 08 00 34 2E 80 11 00 00 00 00 00 00 DC [11:39:18]Write i2c OK [11:39:18]MH_I2C_Read... [11:39:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:18]Read from MH i2c: E2 [11:39:18]MH_I2C_Read... [11:39:18]Read from MH i2c: E2 17 00 [11:39:18]MH_I2C_Read... [11:39:18]Read from MH i2c: E2 17 00 34 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2F [11:39:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:39:18]wFMCommunicate OK [11:39:18]requested_item fd.num is exist - process it [11:39:18]SAM_PROTO_GetFieldsCounters [11:39:18]wFMCommunicate request_size=4 [11:39:18]MH_SAM_APDU [11:39:18]CAPDU: 80 13 00 00 [11:39:18]Write to MH i2c: E2 08 00 35 2E 80 13 00 00 00 00 00 00 DF [11:39:18]Write i2c OK [11:39:18]MH_I2C_Read... [11:39:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:39:18]Read from MH i2c: E2 [11:39:18]MH_I2C_Read... [11:39:18]Read from MH i2c: E2 62 00 [11:39:18]MH_I2C_Read... [11:39:18]Read from MH i2c: E2 62 00 35 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 62 F1 02 00 0E 04 04 00 20 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 54 [11:39: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 62 F1 02 00 0E 04 04 00 20 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:39:18]wFMCommunicate OK [11:39:18]SAM_PROTO_GetFieldsCounters done [11:39:18]requested_item shift.num is exist - process it [11:39:18]requested_item shift.opened is exist - process it [11:39:18]req_shift_opened [11:39:18]FM_GetShiftState [11:39:18]SAM_PROTO_GetShiftState [11:39:18]wFMCommunicate request_size=4 [11:39:18]MH_SAM_APDU [11:39:18]CAPDU: 80 13 01 00 [11:39:18]Write to MH i2c: E2 08 00 36 2E 80 13 01 00 00 00 00 00 E1 [11:39:18]Write i2c OK [11:39:18]MH_I2C_Read... [11:39:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:18]Read from MH i2c: E2 [11:39:18]MH_I2C_Read... [11:39:18]Read from MH i2c: E2 0E 00 [11:39:18]MH_I2C_Read... [11:39:18]Read from MH i2c: E2 0E 00 36 2E 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 E7 [11:39:18]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:39:18]wFMCommunicate OK [11:39:18]SAM_PROTO_GetShiftState done [11:39:18]FM_GetShiftState done [11:39:18]req_shift_opened done [11:39:18]requested_item shift.open_date is exist - process it [11:39:18]req_shift_open_date [11:39:18]req_shift_open_date done [11:39:18]produce_requested_data done [11:39:18]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192866,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [11:39:18]process_action_free close_receipt [11:39:18]json_value_free [11:39:18]json_value_free done [11:39:18]process_json_proto returns [11:39:18]Send response to host [11:39:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192866,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [11:39:18]free response buf [11:39:18]execute_script done [11:39:18]execute_script returns [11:39:18]free content buf [11:39:18]Sock 9.Close socket [11:39:18]Sock 9.Thread stoped [11:39:22]OFD Sender: No OFD packet to send [11:39:27]OFD Sender: No OFD packet to send [11:39:32]OFD Sender: No OFD packet to send [11:39:35]accept exits with 8 [11:39:35]New connection [11:39:35]New thread 3066658148 created [11:39:35]Thread 3066801508 joined [11:39:35]Waiting for new connection... [11:39:35] Sock 8.Parse request [11:39:35]Sock 8.Check first char [11:39:35]Sock 8.First char is OK [11:39:35]request: POST /json_proto HTTP/1.0 [11:39:35]Method: POST [11:39:35]URL: /json_proto [11:39:35]Method is POST - this is cgi request [11:39:35]url: /json_proto [11:39:35]query_string will be loaded in cgi processing [11:39:35]execute_cgi json_proto POST (null) [11:39:35]execute_cgi path=json_proto method=POST [11:39:35]POST find Content-Length [11:39:35]Host: 172.17.63.131:8080 [11:39:35]Content-Length: 678 [11:39:35]Content-Type: application/json [11:39:35] [11:39:35]POST finish read [11:39:35]Found Content-Length = 678 [11:39:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32195", "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" ] } } [11:39:35]execute_script... [11: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)32195", "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" ] } } [11:39:35]POST & json_proto [11:39:35]process_json_proto [11:39:35]json parsed OK: [11:39:35]protocol is kg_v1.0 [11:39:35]action value=close_receipt [11:39:35]process_action close_receipt [11:39:35]cmd_close_receipt [11:39:35]MH_GetDate [11:39:35]Write to MH i2c: F0 00 00 37 2E 54 [11:39:35]Write i2c OK [11:39:35]MH_I2C_Read... [11:39:35]Read from MH i2c: F0 [11:39:35]MH_I2C_Read... [11:39:35]Read from MH i2c: F0 09 00 [11:39:35]MH_I2C_Read... [11:39:35]Read from MH i2c: F0 09 00 37 2E 00 7C C9 20 67 22 05 6E 64 22 [11:39:35]GetLastDocTimeStamp 1730201959 [11:39:35]current date 1730201980 [11:39:35]FM_GetShiftState [11:39:35]SAM_PROTO_GetShiftState [11:39:35]wFMCommunicate request_size=4 [11:39:35]MH_SAM_APDU [11:39:35]CAPDU: 80 13 01 00 [11:39:35]Write to MH i2c: E2 08 00 38 2E 80 13 01 00 00 00 00 00 E3 [11:39:35]Write i2c OK [11:39:35]MH_I2C_Read... [11:39:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:35]Read from MH i2c: E2 [11:39:35]MH_I2C_Read... [11:39:35]Read from MH i2c: E2 0E 00 [11:39:35]MH_I2C_Read... [11:39:35]Read from MH i2c: E2 0E 00 38 2E 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 E9 [11:39:35]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:39:35]wFMCommunicate OK [11:39:35]SAM_PROTO_GetShiftState done [11:39:35]FM_GetShiftState done [11:39:35]opened in 1730161990 [11:39:35]opened+sec_in_day 1730248390 [11:39:35]quantity*price = 200025 [11:39:35]sum+1 = 200026 [11:39:35]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 СÐО: Общий режим Чек 73 29.10.2024 11:39 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192867 ФПД: 43414629115183 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T113940&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192867&fm=43414629115183&tin=02508201610067®Number=0000000000091776&sum=200000 [11:39:36]StoreToDocumentArchive [11:39:36]shift 544 fd 192867 [11:39:36]save to /storage/0544/doc_00192867 [11:39:36]save last doc name /storage/0544/doc_00192867 to /storage/kkm_last_doc_name [11:39:36]save OK [11:39:36]Clear old archive folders... [11:39:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:39:36]tlvbuf is B6F33960 [11:39:36]SAM_PROTO_ClearQueue [11:39:36]wFMCommunicate request_size=4 [11:39:36]MH_SAM_APDU [11:39:36]CAPDU: 80 09 00 00 [11:39:36]Write to MH i2c: E2 08 00 45 2E 80 09 00 00 00 00 00 00 E5 [11:39:36]Write i2c OK [11:39:36]MH_I2C_Read... [11:39:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:39:37]Read from MH i2c: E2 [11:39:37]MH_I2C_Read... [11:39:37]Read from MH i2c: E2 03 00 [11:39:37]MH_I2C_Read... [11:39:37]Read from MH i2c: E2 03 00 45 2E 00 90 00 E7 [11:39:37]RAPDU: 90 00 [11:39:37]wFMCommunicate OK [11:39:37]SAM_PROTO_ClearQueue done [11:39:37]KKMCreateOFDPacket [11:39:37]OFDProtocolAddRootSTLVToBuf [11:39:37]FM_MakeSignedData [11:39:37]FM_MakeSignedData [11:39:37]SAM_PROTO_SignData [11:39:37]wFMCommunicate request_size=4 [11:39:37]MH_SAM_APDU [11:39:37]CAPDU: 80 0D 01 02 [11:39:37]Write to MH i2c: E2 08 00 46 2E 80 0D 01 02 00 00 00 00 ED [11:39:37]Write i2c OK [11:39:37]MH_I2C_Read... [11:39:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:39:37]Read from MH i2c: E2 [11:39:37]MH_I2C_Read... [11:39:37]Read from MH i2c: E2 03 00 [11:39:37]MH_I2C_Read... [11:39:37]Read from MH i2c: E2 03 00 46 2E 00 90 00 E8 [11:39:37]RAPDU: 90 00 [11:39:37]wFMCommunicate OK [11:39:37]wFMCommunicate request_size=255 [11:39:37]MH_SAM_APDU [11: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 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 49 00 00 00 F4 03 04 00 7C C9 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 27 7C 41 8B [11:39:37]Write to MH i2c: E2 02 01 47 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 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 49 00 00 00 F4 03 04 00 7C C9 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 27 7C 41 8B 00 00 61 [11:39:37]Write i2c OK [11:39:37]MH_I2C_Read... [11:39:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:37]Read from MH i2c: E2 [11:39:37]MH_I2C_Read... [11:39:37]Read from MH i2c: E2 03 00 [11:39:37]MH_I2C_Read... [11:39:37]Read from MH i2c: E2 03 00 47 2E 00 90 00 E9 [11:39:37]RAPDU: 90 00 [11:39:37]wFMCommunicate OK [11:39:37]wFMCommunicate request_size=7 [11:39:37]MH_SAM_APDU [11:39:37]CAPDU: 80 0D 02 02 02 E5 2F [11:39:37]Write to MH i2c: E2 0A 00 48 2E 80 0D 02 02 02 00 E5 2F 00 00 08 [11:39:37]Write i2c OK [11:39:37]MH_I2C_Read... [11:39:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:37]Read from MH i2c: E2 [11:39:37]MH_I2C_Read... [11:39:37]Read from MH i2c: E2 03 00 [11:39:37]MH_I2C_Read... [11:39:37]Read from MH i2c: E2 03 00 48 2E 00 90 00 EA [11:39:37]RAPDU: 90 00 [11:39:37]wFMCommunicate OK [11:39:37]wFMCommunicate request_size=4 [11:39:37]MH_SAM_APDU [11:39:37]CAPDU: 80 0D 03 02 [11:39:37]Write to MH i2c: E2 08 00 49 2E 80 0D 03 02 00 00 00 00 F2 [11:39:37]Write i2c OK [11:39:37]MH_I2C_Read... [11:39:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:39:37]Read from MH i2c: E2 [11:39:37]MH_I2C_Read... [11:39:37]Read from MH i2c: E2 0B 00 [11:39:37]MH_I2C_Read... [11:39:37]Read from MH i2c: E2 0B 00 49 2E 00 F9 EA 55 11 14 8B 79 90 90 00 E4 [11:39:37]RAPDU: F9 EA 55 11 14 8B 79 90 90 00 [11:39:37]wFMCommunicate OK [11:39:37]SAM_PROTO_SignData done [11:39:37]FM_MakeSignedData done [11:39:37]CreateOFDProtocolMessage [11:39:37]wFMCommunicate request_size=4 [11:39:37]MH_SAM_APDU [11:39:37]CAPDU: 80 11 00 00 [11:39:37]Write to MH i2c: E2 08 00 4A 2E 80 11 00 00 00 00 00 00 F2 [11:39:37]Write i2c OK [11:39:37]MH_I2C_Read... [11:39:37]OFD Sender: No OFD packet to send [11:39:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:37]Read from MH i2c: E2 [11:39:37]MH_I2C_Read... [11:39:37]Read from MH i2c: E2 17 00 [11:39:37]MH_I2C_Read... [11:39:37]Read from MH i2c: E2 17 00 4A 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 45 [11: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 [11:39:37]wFMCommunicate OK [11:39:37]CreateOFDProtocolMessage done [11:39:37]OFDSenderStorePacket 192867 [11:39:37]StoreOFDPacket docnum=192867 [11: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 C6 37 04 01 A1 1F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 49 00 00 00 F4 03 04 00 7C C9 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 27 7C 41 8B E5 2F F9 EA 55 11 14 8B 79 90 [11:39:37]CheckFolder [11:39:37]dirname=/storage/ofd_packets [11:39:37]CheckFolder done [11:39:37]ProducePacketName [11:39:37]name=ofd_packets/00192867 [11:39:37]NVStorageSaveData ofd_packets/00192867 [11:39:37]File name is /storage/ofd_packets/00192867 [11:39:37]Write 298 bytes [11:39:37]NVStorageSaveData done [11:39:37]OFDSenderStorePacket done [11:39:37]KKMCreateOFDPacket done [11:39:37]NVStorageSaveData kkm_last_timestamp [11:39:37]File name is /storage/kkm_last_timestamp [11:39:37]Write 4 bytes [11:39:37]NVStorageSaveData done [11:39:37]ExternCall_PrintAddStr [11:39:37]wPrintStart [11:39:37]Write to MH i2c: 01 00 00 4B 2E 79 [11:39:37]Write i2c OK [11:39:37]MH_I2C_Read... [11:39:37]Read from MH i2c: 01 [11:39:37]MH_I2C_Read... [11:39:37]Read from MH i2c: 01 07 00 [11:39:37]MH_I2C_Read... [11:39:37]Read from MH i2c: 01 07 00 4B 2E 00 00 00 00 00 FF 0F 8E [11:39:37]RasterBufferAndPrint [11:39:37]line Счет N : (1)32195 [11:39:37]line ИÐÐ: 02508201610067 [11:39:37]line Контрольно-КаÑÑовый Чек [11:39:37]line ПРОДÐЖР[11:39:37]line ТРК (МРК, ГÐК) : 11 [11:39:37]line Товар: 2710194210 [11:39:37]line ДТ-К-5 [11:39:37]line 26.250 * 76.20 [11:39:37]line = 2000.25 [11:39:37]line ÐДС 12% ÐСП 1% [11:39:37]line > о реализуемом товаре [11:39:37]line ОКРУГЛЕÐИЕ: -0.25 [11:39:37]line ИТОГО: 2000.00 [11:39:37]line ВнеÑено: 2000.00 [11:39:37]line СДÐЧÐ: 0.00 [11:39:37]line ÐСП 1% : 17.70 [11:39:37]line ÐДС 12% : 212.42 [11:39:37]line Ðаличными: 2000.00 [11:39:37]line Безнал.: 0.00 [11:39:37]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [11:39:37]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [11:39:37]line СÐО: Общий режим [11:39:37]line Чек 73 29.10.2024 11:39 [11:39:37]line Смена: 544 ФФД: 1.0 [11:39:37]line ЗÐМ: 0300000110 [11:39:37]line РÐМ: 0000000000091776 [11:39:37]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [11:39:37]line ФМ: 0000000000871754 [11:39:37]line ФД: 192867 [11:39:37]line ФПД: 43414629115183 [11:39:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T113940&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192867&fm=43414629115183&tin=02508201610067®Number=0000000000091776&sum=200000 [11:39:37]OFD Sender: Processing packet 192867 [packets to send 75, broken 74] [11:39:37]ProducePacketName [11:39:37]name=ofd_packets/00192867 [11:39:37]OFD Sender: To server: ‡•öpG, [11:39:37]CommunicateWithHost lk.salyk.kg:30040 [11:39:37]ConnectInit lk.salyk.kg [11:39:37]written 0, free lines is 4095 [11:39:37]Connected sock=10 [11:39: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 C6 37 04 01 A1 1F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 49 00 00 00 F4 03 04 00 7C C9 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 27 7C 41 8B E5 2F F9 EA 55 11 14 8B 79 90 [11: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 E5 3A 47 00 C7 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 63 F1 02 00 F4 03 04 00 3D 6E 20 67 B6 04 01 00 00 96 66 2F 74 52 AA 28 7C [11:39:38]CommunicateWithHost err = 0 [11:39:38]CheckOFDResponse [11:39:38]1017 (14) - 77093643461234 [11:39:38]1041 (16) - 0000000000871754 [11:39:38]1040 (4) - 192867 [11:39:38]1012 (4) - 29.10.2024 05:10 [11:39:38]1206 (1) - 0 [11:39:38]OFD Sender: Remove packet 192867 [11:39:38]ProducePacketName [11:39:38]name=ofd_packets/00192867 [11:39:38]NVStorageDeleteData [11:39:38]Write to MH i2c: 01 00 00 76 2E A4 [11:39:38]Write i2c OK [11:39:38]MH_I2C_Read... [11:39:38]Read from MH i2c: 01 [11:39:38]MH_I2C_Read... [11:39:38]Read from MH i2c: 01 07 00 [11:39:38]MH_I2C_Read... [11:39:38]Read from MH i2c: 01 07 00 76 2E 00 00 00 00 00 BE 0C 75 [11:39:38]RasterBufferAndPrint [11:39:38]line [11:39:38]line [11:39:38]line [11:39:38]line [11:39:38]line [11:39:38]written 0, free lines is 3267 [11:39:38]MH_Cut [11:39:38]Write to MH i2c: D1 01 00 7D 2E 01 7D [11:39:38]Write i2c OK [11:39:38]MH_I2C_Read... [11:39:38]Read from MH i2c: D1 [11:39:38]MH_I2C_Read... [11:39:38]Read from MH i2c: D1 01 00 [11:39:38]MH_I2C_Read... [11:39:38]Read from MH i2c: D1 01 00 7D 2E 00 7C [11:39:38]Write to MH i2c: 01 00 00 7E 2E AC [11:39:38]Write i2c OK [11:39:38]MH_I2C_Read... [11:39:38]OFD Sender: No OFD packet to send [11:39:39]*** Cut start [11:39:39]*** Partial cut [11:39:39]*** CUTSNS_PIN = 1 [11:39:39]*** CUTSNS_PIN = 0 [11:39:39]*** Brake cut motor [11:39:39]Read from MH i2c: 01 [11:39:39]MH_I2C_Read... [11:39:39]*** Stop cut motor [11:39:39]*** Cut end [11:39:39]Read from MH i2c: 01 07 00 [11:39:39]MH_I2C_Read... [11:39:39]Read from MH i2c: 01 07 00 7E 2E 00 00 00 00 00 FF 0F C1 [11:39:39]process_action close_receipt done [11:39:39]requested_data is exist [11:39:39]produce_requested_data [11:39:39]requested_item fm.sn is exist - process it [11:39:39]wFMCommunicate request_size=4 [11:39:39]MH_SAM_APDU [11:39:39]CAPDU: 80 11 00 00 [11:39:39]Write to MH i2c: E2 08 00 7F 2E 80 11 00 00 00 00 00 00 27 [11:39:39]Write i2c OK [11:39:39]MH_I2C_Read... [11:39:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:39]Read from MH i2c: E2 [11:39:39]MH_I2C_Read... [11:39:39]Read from MH i2c: E2 17 00 [11:39:39]MH_I2C_Read... [11:39:39]Read from MH i2c: E2 17 00 7F 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7A [11: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 [11:39:39]wFMCommunicate OK [11:39:39]requested_item fd.num is exist - process it [11:39:39]SAM_PROTO_GetFieldsCounters [11:39:39]wFMCommunicate request_size=4 [11:39:39]MH_SAM_APDU [11:39:39]CAPDU: 80 13 00 00 [11:39:39]Write to MH i2c: E2 08 00 80 2E 80 13 00 00 00 00 00 00 2A [11:39:39]Write i2c OK [11:39:39]MH_I2C_Read... [11:39:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:39:39]Read from MH i2c: E2 [11:39:39]MH_I2C_Read... [11:39:39]Read from MH i2c: E2 62 00 [11:39:39]MH_I2C_Read... [11:39:39]Read from MH i2c: E2 62 00 80 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 63 F1 02 00 0E 04 04 00 20 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 A3 [11:39: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 63 F1 02 00 0E 04 04 00 20 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:39:39]wFMCommunicate OK [11:39:39]SAM_PROTO_GetFieldsCounters done [11:39:39]requested_item shift.num is exist - process it [11:39:39]requested_item shift.opened is exist - process it [11:39:39]req_shift_opened [11:39:39]FM_GetShiftState [11:39:39]SAM_PROTO_GetShiftState [11:39:39]wFMCommunicate request_size=4 [11:39:39]MH_SAM_APDU [11:39:39]CAPDU: 80 13 01 00 [11:39:39]Write to MH i2c: E2 08 00 81 2E 80 13 01 00 00 00 00 00 2C [11:39:39]Write i2c OK [11:39:39]MH_I2C_Read... [11:39:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:40]Read from MH i2c: E2 [11:39:40]MH_I2C_Read... [11:39:40]Read from MH i2c: E2 0E 00 [11:39:40]MH_I2C_Read... [11:39:40]Read from MH i2c: E2 0E 00 81 2E 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 32 [11:39:40]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:39:40]wFMCommunicate OK [11:39:40]SAM_PROTO_GetShiftState done [11:39:40]FM_GetShiftState done [11:39:40]req_shift_opened done [11:39:40]requested_item shift.open_date is exist - process it [11:39:40]req_shift_open_date [11:39:40]req_shift_open_date done [11:39:40]produce_requested_data done [11:39:40]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192867,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [11:39:40]process_action_free close_receipt [11:39:40]json_value_free [11:39:40]json_value_free done [11:39:40]process_json_proto returns [11:39:40]Send response to host [11:39:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192867,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [11:39:40]free response buf [11:39:40]execute_script done [11:39:40]execute_script returns [11:39:40]free content buf [11:39:40]Sock 8.Close socket [11:39:40]Sock 8.Thread stoped [11:39:43]OFD Sender: No OFD packet to send [11:39:48]OFD Sender: No OFD packet to send [11:39:53]OFD Sender: No OFD packet to send [11:39:58]OFD Sender: No OFD packet to send [11:40:03]OFD Sender: No OFD packet to send [11:40:08]OFD Sender: No OFD packet to send [11:40:13]OFD Sender: No OFD packet to send [11:40:18]OFD Sender: No OFD packet to send [11:40:23]OFD Sender: No OFD packet to send [11:40:28]OFD Sender: No OFD packet to send [11:40:33]OFD Sender: No OFD packet to send [11:40:38]OFD Sender: No OFD packet to send [11:40:43]OFD Sender: No OFD packet to send [11:40:48]OFD Sender: No OFD packet to send [11:40:53]OFD Sender: No OFD packet to send [11:40:58]OFD Sender: No OFD packet to send [11:41:03]OFD Sender: No OFD packet to send [11:41:07]accept exits with 9 [11:41:07]New connection [11:41:07]New thread 3066801508 created [11:41:07]Thread 3066658148 joined [11:41:07]Waiting for new connection... [11:41:07] Sock 9.Parse request [11:41:07]Sock 9.Check first char [11:41:07]Sock 9.First char is OK [11:41:07]request: POST /json_proto HTTP/1.0 [11:41:07]Method: POST [11:41:07]URL: /json_proto [11:41:07]Method is POST - this is cgi request [11:41:07]url: /json_proto [11:41:07]query_string will be loaded in cgi processing [11:41:07]execute_cgi json_proto POST (null) [11:41:07]execute_cgi path=json_proto method=POST [11:41:07]POST find Content-Length [11:41:07]Host: 172.17.63.131:8080 [11:41:07]Content-Length: 676 [11:41:07]Content-Type: application/json [11:41:07] [11:41:07]POST finish read [11:41:07]Found Content-Length = 676 [11:41:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32197", "tax_sys" : 0, "items" : [ { "pre_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:41:07]execute_script... [11:41: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)32197", "tax_sys" : 0, "items" : [ { "pre_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:41:07]POST & json_proto [11:41:07]process_json_proto [11:41:07]json parsed OK: [11:41:07]protocol is kg_v1.0 [11:41:07]action value=close_receipt [11:41:07]process_action close_receipt [11:41:07]cmd_close_receipt [11:41:07]MH_GetDate [11:41:07]Write to MH i2c: F0 00 00 82 2E 9F [11:41:07]Write i2c OK [11:41:07]MH_I2C_Read... [11:41:07]Read from MH i2c: F0 [11:41:07]MH_I2C_Read... [11:41:07]Read from MH i2c: F0 09 00 [11:41:07]MH_I2C_Read... [11:41:07]Read from MH i2c: F0 09 00 82 2E 00 D8 C9 20 67 22 05 6E 64 C9 [11:41:07]GetLastDocTimeStamp 1730201980 [11:41:07]current date 1730202072 [11:41:07]FM_GetShiftState [11:41:07]SAM_PROTO_GetShiftState [11:41:07]wFMCommunicate request_size=4 [11:41:07]MH_SAM_APDU [11:41:07]CAPDU: 80 13 01 00 [11:41:07]Write to MH i2c: E2 08 00 83 2E 80 13 01 00 00 00 00 00 2E [11:41:07]Write i2c OK [11:41:07]MH_I2C_Read... [11:41:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:07]Read from MH i2c: E2 [11:41:07]MH_I2C_Read... [11:41:07]Read from MH i2c: E2 0E 00 [11:41:07]MH_I2C_Read... [11:41:07]Read from MH i2c: E2 0E 00 83 2E 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 34 [11:41:07]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:41:07]wFMCommunicate OK [11:41:07]SAM_PROTO_GetShiftState done [11:41:07]FM_GetShiftState done [11:41:07]opened in 1730161990 [11:41:07]opened+sec_in_day 1730248390 [11:41:07]quantity*price = 20003 [11:41:07]sum+1 = 20004 [11:41: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 СÐО: Общий режим Чек 74 29.10.2024 11:41 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192868 ФПД: 152546803410729 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T114112&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192868&fm=152546803410729&tin=02508201610067®Number=0000000000091776&sum=20000 [11:41:08]StoreToDocumentArchive [11:41:08]shift 544 fd 192868 [11:41:08]save to /storage/0544/doc_00192868 [11:41:08]save last doc name /storage/0544/doc_00192868 to /storage/kkm_last_doc_name [11:41:08]save OK [11:41:08]Clear old archive folders... [11:41:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:41:08]tlvbuf is 00FB2CB0 [11:41:08]SAM_PROTO_ClearQueue [11:41:08]wFMCommunicate request_size=4 [11:41:08]MH_SAM_APDU [11:41:08]CAPDU: 80 09 00 00 [11:41:08]Write to MH i2c: E2 08 00 90 2E 80 09 00 00 00 00 00 00 30 [11:41:08]Write i2c OK [11:41:08]MH_I2C_Read... [11:41:08]OFD Sender: No OFD packet to send [11:41:08]Read from MH i2c: E2 [11:41:08]MH_I2C_Read... [11:41:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:41:08]Read from MH i2c: E2 03 00 [11:41:08]MH_I2C_Read... [11:41:08]Read from MH i2c: E2 03 00 90 2E 00 90 00 32 [11:41:08]RAPDU: 90 00 [11:41:08]wFMCommunicate OK [11:41:08]SAM_PROTO_ClearQueue done [11:41:08]KKMCreateOFDPacket [11:41:08]OFDProtocolAddRootSTLVToBuf [11:41:08]FM_MakeSignedData [11:41:08]FM_MakeSignedData [11:41:08]SAM_PROTO_SignData [11:41:08]wFMCommunicate request_size=4 [11:41:08]MH_SAM_APDU [11:41:08]CAPDU: 80 0D 01 02 [11:41:08]Write to MH i2c: E2 08 00 91 2E 80 0D 01 02 00 00 00 00 38 [11:41:08]Write i2c OK [11:41:08]MH_I2C_Read... [11:41:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:41:08]Read from MH i2c: E2 [11:41:08]MH_I2C_Read... [11:41:08]Read from MH i2c: E2 03 00 [11:41:08]MH_I2C_Read... [11:41:08]Read from MH i2c: E2 03 00 91 2E 00 90 00 33 [11:41:08]RAPDU: 90 00 [11:41:08]wFMCommunicate OK [11:41:08]wFMCommunicate request_size=255 [11:41:08]MH_SAM_APDU [11:41: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 D8 C9 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 8A [11:41:08]Write to MH i2c: E2 02 01 92 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 D8 C9 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 8A 00 00 03 [11:41:08]Write i2c OK [11:41:08]MH_I2C_Read... [11:41:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:09]Read from MH i2c: E2 [11:41:09]MH_I2C_Read... [11:41:09]Read from MH i2c: E2 03 00 [11:41:09]MH_I2C_Read... [11:41:09]Read from MH i2c: E2 03 00 92 2E 00 90 00 34 [11:41:09]RAPDU: 90 00 [11:41:09]wFMCommunicate OK [11:41:09]wFMCommunicate request_size=10 [11:41:09]MH_SAM_APDU [11:41:09]CAPDU: 80 0D 02 02 05 BD 92 07 67 29 [11:41:09]Write to MH i2c: E2 0D 00 93 2E 80 0D 02 02 05 00 BD 92 07 67 29 00 00 2B [11:41:09]Write i2c OK [11:41:09]MH_I2C_Read... [11:41:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:09]Read from MH i2c: E2 [11:41:09]MH_I2C_Read... [11:41:09]Read from MH i2c: E2 03 00 [11:41:09]MH_I2C_Read... [11:41:09]Read from MH i2c: E2 03 00 93 2E 00 90 00 35 [11:41:09]RAPDU: 90 00 [11:41:09]wFMCommunicate OK [11:41:09]wFMCommunicate request_size=4 [11:41:09]MH_SAM_APDU [11:41:09]CAPDU: 80 0D 03 02 [11:41:09]Write to MH i2c: E2 08 00 94 2E 80 0D 03 02 00 00 00 00 3D [11:41:09]Write i2c OK [11:41:09]MH_I2C_Read... [11:41:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:41:09]Read from MH i2c: E2 [11:41:09]MH_I2C_Read... [11:41:09]Read from MH i2c: E2 0B 00 [11:41:09]MH_I2C_Read... [11:41:09]Read from MH i2c: E2 0B 00 94 2E 00 79 7D 7F 8E 59 78 C1 AA 90 00 7D [11:41:09]RAPDU: 79 7D 7F 8E 59 78 C1 AA 90 00 [11:41:09]wFMCommunicate OK [11:41:09]SAM_PROTO_SignData done [11:41:09]FM_MakeSignedData done [11:41:09]CreateOFDProtocolMessage [11:41:09]wFMCommunicate request_size=4 [11:41:09]MH_SAM_APDU [11:41:09]CAPDU: 80 11 00 00 [11:41:09]Write to MH i2c: E2 08 00 95 2E 80 11 00 00 00 00 00 00 3D [11:41:09]Write i2c OK [11:41:09]MH_I2C_Read... [11:41:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:09]Read from MH i2c: E2 [11:41:09]MH_I2C_Read... [11:41:09]Read from MH i2c: E2 17 00 [11:41:09]MH_I2C_Read... [11:41:09]Read from MH i2c: E2 17 00 95 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 90 [11:41:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:41:09]wFMCommunicate OK [11:41:09]CreateOFDProtocolMessage done [11:41:09]OFDSenderStorePacket 192868 [11:41:09]StoreOFDPacket docnum=192868 [11:41: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 07 A9 07 01 F4 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 D8 C9 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 8A BD 92 07 67 29 79 7D 7F 8E 59 78 C1 AA [11:41:09]CheckFolder [11:41:09]dirname=/storage/ofd_packets [11:41:09]CheckFolder done [11:41:09]ProducePacketName [11:41:09]name=ofd_packets/00192868 [11:41:09]NVStorageSaveData ofd_packets/00192868 [11:41:09]File name is /storage/ofd_packets/00192868 [11:41:09]Write 301 bytes [11:41:09]NVStorageSaveData done [11:41:09]OFDSenderStorePacket done [11:41:09]KKMCreateOFDPacket done [11:41:09]NVStorageSaveData kkm_last_timestamp [11:41:09]File name is /storage/kkm_last_timestamp [11:41:09]Write 4 bytes [11:41:09]NVStorageSaveData done [11:41:09]ExternCall_PrintAddStr [11:41:09]wPrintStart [11:41:09]Write to MH i2c: 01 00 00 96 2E C4 [11:41:09]Write i2c OK [11:41:09]MH_I2C_Read... [11:41:09]Read from MH i2c: 01 [11:41:09]MH_I2C_Read... [11:41:09]Read from MH i2c: 01 07 00 [11:41:09]MH_I2C_Read... [11:41:09]Read from MH i2c: 01 07 00 96 2E 00 00 00 00 00 FF 0F D9 [11:41:09]RasterBufferAndPrint [11:41:09]line Счет N : (1)32197 [11:41:09]line ИÐÐ: 02508201610067 [11:41:09]line Контрольно-КаÑÑовый Чек [11:41:09]line ПРОДÐЖР[11:41:09]line ТРК (МРК, ГÐК) : 21 [11:41:09]line Товар: 2710124130 [11:41:09]line Ðи-92-К-5 [11:41:09]line 2.990 * 66.90 [11:41:09]line = 200.03 [11:41:09]line ÐДС 12% ÐСП 1% [11:41:09]line > о реализуемом товаре [11:41:09]line ОКРУГЛЕÐИЕ: -0.03 [11:41:09]line ИТОГО: 200.00 [11:41:09]line ВнеÑено: 200.00 [11:41:09]line СДÐЧÐ: 0.00 [11:41:09]line ÐСП 1% : 1.77 [11:41:09]line ÐДС 12% : 21.24 [11:41:09]line Ðаличными: 200.00 [11:41:09]line Безнал.: 0.00 [11:41:09]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [11:41:09]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [11:41:09]line СÐО: Общий режим [11:41:09]line Чек 74 29.10.2024 11:41 [11:41:09]line Смена: 544 ФФД: 1.0 [11:41:09]line ЗÐМ: 0300000110 [11:41:09]line РÐМ: 0000000000091776 [11:41:09]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [11:41:09]line ФМ: 0000000000871754 [11:41:09]line ФД: 192868 [11:41:09]line ФПД: 152546803410729 [11:41:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T114112&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192868&fm=152546803410729&tin=02508201610067®Number=0000000000091776&sum=20000 [11:41:09]OFD Sender: Processing packet 192868 [packets to send 75, broken 74] [11:41:09]ProducePacketName [11:41:09]name=ofd_packets/00192868 [11:41:09]OFD Sender: To server: ‡•öpG, [11:41:09]CommunicateWithHost lk.salyk.kg:30040 [11:41:09]ConnectInit lk.salyk.kg [11:41:09]written 0, free lines is 4095 [11:41:09]Connected sock=10 [11:41: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 07 A9 07 01 F4 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 D8 C9 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 8A BD 92 07 67 29 79 7D 7F 8E 59 78 C1 AA [11:41: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 D6 C5 47 00 0E 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 64 F1 02 00 F4 03 04 00 98 6E 20 67 B6 04 01 00 00 07 0B 53 C7 A7 F2 42 F3 [11:41:09]CommunicateWithHost err = 0 [11:41:09]CheckOFDResponse [11:41:09]1017 (14) - 77093643461234 [11:41:09]1041 (16) - 0000000000871754 [11:41:09]1040 (4) - 192868 [11:41:09]1012 (4) - 29.10.2024 05:11 [11:41:09]1206 (1) - 0 [11:41:09]OFD Sender: Remove packet 192868 [11:41:09]ProducePacketName [11:41:09]name=ofd_packets/00192868 [11:41:09]NVStorageDeleteData [11:41:10]Write to MH i2c: 01 00 00 C1 2E EF [11:41:10]Write i2c OK [11:41:10]MH_I2C_Read... [11:41:10]Read from MH i2c: 01 [11:41:10]MH_I2C_Read... [11:41:10]Read from MH i2c: 01 07 00 [11:41:10]MH_I2C_Read... [11:41:10]Read from MH i2c: 01 07 00 C1 2E 00 00 00 00 00 C2 0C C4 [11:41:10]RasterBufferAndPrint [11:41:10]line [11:41:10]line [11:41:10]line [11:41:10]line [11:41:10]line [11:41:10]written 0, free lines is 3275 [11:41:10]MH_Cut [11:41:10]Write to MH i2c: D1 01 00 C8 2E 01 C8 [11:41:10]Write i2c OK [11:41:10]MH_I2C_Read... [11:41:10]Read from MH i2c: D1 [11:41:10]MH_I2C_Read... [11:41:10]Read from MH i2c: D1 01 00 [11:41:10]MH_I2C_Read... [11:41:10]Read from MH i2c: D1 01 00 C8 2E 00 C7 [11:41:10]Write to MH i2c: 01 00 00 C9 2E F7 [11:41:10]Write i2c OK [11:41:10]MH_I2C_Read... [11:41:10]OFD Sender: No OFD packet to send [11:41:10]*** Cut start [11:41:10]*** Partial cut [11:41:10]*** CUTSNS_PIN = 1 [11:41:10]*** CUTSNS_PIN = 0 [11:41:11]*** Brake cut motor [11:41:11]Read from MH i2c: 01 [11:41:11]MH_I2C_Read... [11:41:11]*** Stop cut motor [11:41:11]*** Cut end [11:41:11]Read from MH i2c: 01 07 00 [11:41:11]MH_I2C_Read... [11:41:11]Read from MH i2c: 01 07 00 C9 2E 00 00 00 00 00 FF 0F 0C [11:41:11]process_action close_receipt done [11:41:11]requested_data is exist [11:41:11]produce_requested_data [11:41:11]requested_item fm.sn is exist - process it [11:41:11]wFMCommunicate request_size=4 [11:41:11]MH_SAM_APDU [11:41:11]CAPDU: 80 11 00 00 [11:41:11]Write to MH i2c: E2 08 00 CA 2E 80 11 00 00 00 00 00 00 72 [11:41:11]Write i2c OK [11:41:11]MH_I2C_Read... [11:41:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:11]Read from MH i2c: E2 [11:41:11]MH_I2C_Read... [11:41:11]Read from MH i2c: E2 17 00 [11:41:11]MH_I2C_Read... [11:41:11]Read from MH i2c: E2 17 00 CA 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C5 [11:41:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:41:11]wFMCommunicate OK [11:41:11]requested_item fd.num is exist - process it [11:41:11]SAM_PROTO_GetFieldsCounters [11:41:11]wFMCommunicate request_size=4 [11:41:11]MH_SAM_APDU [11:41:11]CAPDU: 80 13 00 00 [11:41:11]Write to MH i2c: E2 08 00 CB 2E 80 13 00 00 00 00 00 00 75 [11:41:11]Write i2c OK [11:41:11]MH_I2C_Read... [11:41:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:41:11]Read from MH i2c: E2 [11:41:11]MH_I2C_Read... [11:41:11]Read from MH i2c: E2 62 00 [11:41:11]MH_I2C_Read... [11:41:11]Read from MH i2c: E2 62 00 CB 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 64 F1 02 00 0E 04 04 00 20 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 F2 [11:41:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 F1 02 00 0E 04 04 00 20 02 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:41:11]wFMCommunicate OK [11:41:11]SAM_PROTO_GetFieldsCounters done [11:41:11]requested_item shift.num is exist - process it [11:41:11]requested_item shift.opened is exist - process it [11:41:11]req_shift_opened [11:41:11]FM_GetShiftState [11:41:11]SAM_PROTO_GetShiftState [11:41:11]wFMCommunicate request_size=4 [11:41:11]MH_SAM_APDU [11:41:11]CAPDU: 80 13 01 00 [11:41:11]Write to MH i2c: E2 08 00 CC 2E 80 13 01 00 00 00 00 00 77 [11:41:11]Write i2c OK [11:41:11]MH_I2C_Read... [11:41:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:11]Read from MH i2c: E2 [11:41:11]MH_I2C_Read... [11:41:11]Read from MH i2c: E2 0E 00 [11:41:11]MH_I2C_Read... [11:41:11]Read from MH i2c: E2 0E 00 CC 2E 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 7D [11:41:11]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:41:11]wFMCommunicate OK [11:41:11]SAM_PROTO_GetShiftState done [11:41:11]FM_GetShiftState done [11:41:11]req_shift_opened done [11:41:11]requested_item shift.open_date is exist - process it [11:41:11]req_shift_open_date [11:41:11]req_shift_open_date done [11:41:11]produce_requested_data done [11:41:11]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192868,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [11:41:11]process_action_free close_receipt [11:41:11]json_value_free [11:41:11]json_value_free done [11:41:11]process_json_proto returns [11:41:11]Send response to host [11:41:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192868,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [11:41:11]free response buf [11:41:11]execute_script done [11:41:11]execute_script returns [11:41:11]free content buf [11:41:11]Sock 9.Close socket [11:41:11]Sock 9.Thread stoped [11:41:15]OFD Sender: No OFD packet to send [11:41:20]OFD Sender: No OFD packet to send [11:41:21]accept exits with 8 [11:41:21]New connection [11:41:21]New thread 3066658148 created [11:41:21]Thread 3066801508 joined [11:41:21]Waiting for new connection... [11:41:21] Sock 8.Parse request [11:41:21]Sock 8.Check first char [11:41:21]Sock 8.First char is OK [11:41:21]request: POST /json_proto HTTP/1.0 [11:41:21]Method: POST [11:41:21]URL: /json_proto [11:41:21]Method is POST - this is cgi request [11:41:21]url: /json_proto [11:41:21]query_string will be loaded in cgi processing [11:41:21]execute_cgi json_proto POST (null) [11:41:21]execute_cgi path=json_proto method=POST [11:41:21]POST find Content-Length [11:41:21]Host: 172.17.63.131:8080 [11:41:21]Content-Length: 676 [11:41:21]Content-Type: application/json [11:41:21] [11:41:21]POST finish read [11:41:21]Found Content-Length = 676 [11:41:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32198", "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" ] } } [11:41:21]execute_script... [11: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)32198", "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" ] } } [11:41:21]POST & json_proto [11:41:21]process_json_proto [11:41:21]json parsed OK: [11:41:21]protocol is kg_v1.0 [11:41:21]action value=close_receipt [11:41:21]process_action close_receipt [11:41:21]cmd_close_receipt [11:41:21]MH_GetDate [11:41:21]Write to MH i2c: F0 00 00 CD 2E EA [11:41:21]Write i2c OK [11:41:21]MH_I2C_Read... [11:41:21]Read from MH i2c: F0 [11:41:21]MH_I2C_Read... [11:41:21]Read from MH i2c: F0 09 00 [11:41:21]MH_I2C_Read... [11:41:21]Read from MH i2c: F0 09 00 CD 2E 00 E6 C9 20 67 22 05 6E 64 22 [11:41:21]GetLastDocTimeStamp 1730202072 [11:41:21]current date 1730202086 [11:41:21]FM_GetShiftState [11:41:21]SAM_PROTO_GetShiftState [11:41:21]wFMCommunicate request_size=4 [11:41:21]MH_SAM_APDU [11:41:21]CAPDU: 80 13 01 00 [11:41:21]Write to MH i2c: E2 08 00 CE 2E 80 13 01 00 00 00 00 00 79 [11:41:21]Write i2c OK [11:41:21]MH_I2C_Read... [11:41:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:21]Read from MH i2c: E2 [11:41:21]MH_I2C_Read... [11:41:21]Read from MH i2c: E2 0E 00 [11:41:21]MH_I2C_Read... [11:41:21]Read from MH i2c: E2 0E 00 CE 2E 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 7F [11:41:21]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:41:21]wFMCommunicate OK [11:41:21]SAM_PROTO_GetShiftState done [11:41:21]FM_GetShiftState done [11:41:21]opened in 1730161990 [11:41:21]opened+sec_in_day 1730248390 [11:41:21]quantity*price = 35055 [11:41:21]sum+1 = 35057 [11:41:21]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 СÐО: Общий режим Чек 75 29.10.2024 11:41 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192869 ФПД: 177105408816222 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T114126&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192869&fm=177105408816222&tin=02508201610067®Number=0000000000091776&sum=35000 [11:41:23]StoreToDocumentArchive [11:41:23]shift 544 fd 192869 [11:41:23]save to /storage/0544/doc_00192869 [11:41:23]save last doc name /storage/0544/doc_00192869 to /storage/kkm_last_doc_name [11:41:23]save OK [11:41:23]Clear old archive folders... [11:41:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:41:23]tlvbuf is 00FA6B00 [11:41:23]SAM_PROTO_ClearQueue [11:41:23]wFMCommunicate request_size=4 [11:41:23]MH_SAM_APDU [11:41:23]CAPDU: 80 09 00 00 [11:41:23]Write to MH i2c: E2 08 00 DB 2E 80 09 00 00 00 00 00 00 7B [11:41:23]Write i2c OK [11:41:23]MH_I2C_Read... [11:41:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:41:23]Read from MH i2c: E2 [11:41:23]MH_I2C_Read... [11:41:23]Read from MH i2c: E2 03 00 [11:41:23]MH_I2C_Read... [11:41:23]Read from MH i2c: E2 03 00 DB 2E 00 90 00 7D [11:41:23]RAPDU: 90 00 [11:41:23]wFMCommunicate OK [11:41:23]SAM_PROTO_ClearQueue done [11:41:23]KKMCreateOFDPacket [11:41:23]OFDProtocolAddRootSTLVToBuf [11:41:23]FM_MakeSignedData [11:41:23]FM_MakeSignedData [11:41:23]SAM_PROTO_SignData [11:41:23]wFMCommunicate request_size=4 [11:41:23]MH_SAM_APDU [11:41:23]CAPDU: 80 0D 01 02 [11:41:23]Write to MH i2c: E2 08 00 DC 2E 80 0D 01 02 00 00 00 00 83 [11:41:23]Write i2c OK [11:41:23]MH_I2C_Read... [11:41:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:41:23]Read from MH i2c: E2 [11:41:23]MH_I2C_Read... [11:41:23]Read from MH i2c: E2 03 00 [11:41:23]MH_I2C_Read... [11:41:23]Read from MH i2c: E2 03 00 DC 2E 00 90 00 7E [11:41:23]RAPDU: 90 00 [11:41:23]wFMCommunicate OK [11:41:23]wFMCommunicate request_size=255 [11:41:23]MH_SAM_APDU [11:41: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 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 4B 00 00 00 F4 03 04 00 E6 C9 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 A1 [11:41:23]Write to MH i2c: E2 02 01 DD 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 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 4B 00 00 00 F4 03 04 00 E6 C9 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 A1 00 00 BE [11:41:23]Write i2c OK [11:41:23]MH_I2C_Read... [11:41:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:23]Read from MH i2c: E2 [11:41:23]MH_I2C_Read... [11:41:23]Read from MH i2c: E2 03 00 [11:41:23]MH_I2C_Read... [11:41:23]Read from MH i2c: E2 03 00 DD 2E 00 90 00 7F [11:41:23]RAPDU: 90 00 [11:41:23]wFMCommunicate OK [11:41:23]wFMCommunicate request_size=10 [11:41:23]MH_SAM_APDU [11:41:23]CAPDU: 80 0D 02 02 05 13 90 FA F4 5E [11:41:23]Write to MH i2c: E2 0D 00 DE 2E 80 0D 02 02 05 00 13 90 FA F4 5E 00 00 7F [11:41:23]Write i2c OK [11:41:23]MH_I2C_Read... [11:41:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:23]Read from MH i2c: E2 [11:41:23]MH_I2C_Read... [11:41:23]Read from MH i2c: E2 03 00 [11:41:23]MH_I2C_Read... [11:41:23]Read from MH i2c: E2 03 00 DE 2E 00 90 00 80 [11:41:23]RAPDU: 90 00 [11:41:23]wFMCommunicate OK [11:41:23]wFMCommunicate request_size=4 [11:41:23]MH_SAM_APDU [11:41:23]CAPDU: 80 0D 03 02 [11:41:23]Write to MH i2c: E2 08 00 DF 2E 80 0D 03 02 00 00 00 00 88 [11:41:23]Write i2c OK [11:41:23]MH_I2C_Read... [11:41:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:41:23]Read from MH i2c: E2 [11:41:23]MH_I2C_Read... [11:41:23]Read from MH i2c: E2 0B 00 [11:41:23]MH_I2C_Read... [11:41:23]Read from MH i2c: E2 0B 00 DF 2E 00 F2 7D 88 98 63 82 E5 94 90 00 76 [11:41:23]RAPDU: F2 7D 88 98 63 82 E5 94 90 00 [11:41:23]wFMCommunicate OK [11:41:23]SAM_PROTO_SignData done [11:41:23]FM_MakeSignedData done [11:41:23]CreateOFDProtocolMessage [11:41:23]wFMCommunicate request_size=4 [11:41:23]MH_SAM_APDU [11:41:23]CAPDU: 80 11 00 00 [11:41:23]Write to MH i2c: E2 08 00 E0 2E 80 11 00 00 00 00 00 00 88 [11:41:23]Write i2c OK [11:41:23]MH_I2C_Read... [11:41:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:23]Read from MH i2c: E2 [11:41:23]MH_I2C_Read... [11:41:23]Read from MH i2c: E2 17 00 [11:41:23]MH_I2C_Read... [11:41:23]Read from MH i2c: E2 17 00 E0 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DB [11: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 [11:41:23]wFMCommunicate OK [11:41:23]CreateOFDProtocolMessage done [11:41:23]OFDSenderStorePacket 192869 [11:41:23]StoreOFDPacket docnum=192869 [11: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 83 7D 07 01 0B 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 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 4B 00 00 00 F4 03 04 00 E6 C9 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 A1 13 90 FA F4 5E F2 7D 88 98 63 82 E5 94 [11:41:23]CheckFolder [11:41:23]dirname=/storage/ofd_packets [11:41:23]CheckFolder done [11:41:23]ProducePacketName [11:41:23]name=ofd_packets/00192869 [11:41:23]NVStorageSaveData ofd_packets/00192869 [11:41:23]File name is /storage/ofd_packets/00192869 [11:41:23]Write 301 bytes [11:41:23]NVStorageSaveData done [11:41:23]OFDSenderStorePacket done [11:41:23]KKMCreateOFDPacket done [11:41:23]NVStorageSaveData kkm_last_timestamp [11:41:23]File name is /storage/kkm_last_timestamp [11:41:23]Write 4 bytes [11:41:23]NVStorageSaveData done [11:41:23]ExternCall_PrintAddStr [11:41:23]wPrintStart [11:41:23]Write to MH i2c: 01 00 00 E1 2E 0F [11:41:23]Write i2c OK [11:41:23]MH_I2C_Read... [11:41:23]Read from MH i2c: 01 [11:41:23]MH_I2C_Read... [11:41:23]Read from MH i2c: 01 07 00 [11:41:23]MH_I2C_Read... [11:41:23]Read from MH i2c: 01 07 00 E1 2E 00 00 00 00 00 FF 0F 24 [11:41:23]RasterBufferAndPrint [11:41:23]line Счет N : (1)32198 [11:41:23]line ИÐÐ: 02508201610067 [11:41:23]line Контрольно-КаÑÑовый Чек [11:41:23]line ПРОДÐЖР[11:41:23]line ТРК (МРК, ГÐК) : 12 [11:41:23]line Товар: 2710124130 [11:41:23]line Ðи-92-К-5 [11:41:23]line 5.240 * 66.90 [11:41:23]line = 350.56 [11:41:23]line ÐДС 12% ÐСП 1% [11:41:23]line > о реализуемом товаре [11:41:23]line ОКРУГЛЕÐИЕ: -0.56 [11:41:23]line ИТОГО: 350.00 [11:41:23]line ВнеÑено: 350.00 [11:41:23]line СДÐЧÐ: 0.00 [11:41:23]line ÐСП 1% : 3.10 [11:41:23]line ÐДС 12% : 37.23 [11:41:23]line Ðаличными: 350.00 [11:41:23]line Безнал.: 0.00 [11:41:23]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [11:41:23]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [11:41:23]line СÐО: Общий режим [11:41:23]line Чек 75 29.10.2024 11:41 [11:41:23]line Смена: 544 ФФД: 1.0 [11:41:23]line ЗÐМ: 0300000110 [11:41:23]line РÐМ: 0000000000091776 [11:41:23]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [11:41:23]line ФМ: 0000000000871754 [11:41:23]line ФД: 192869 [11:41:23]line ФПД: 177105408816222 [11:41:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T114126&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192869&fm=177105408816222&tin=02508201610067®Number=0000000000091776&sum=35000 [11:41:23]OFD Sender: Processing packet 192869 [packets to send 75, broken 74] [11:41:23]ProducePacketName [11:41:23]name=ofd_packets/00192869 [11:41:23]OFD Sender: To server: ‡•öpG, [11:41:23]CommunicateWithHost lk.salyk.kg:30040 [11:41:23]ConnectInit lk.salyk.kg [11:41:23]written 0, free lines is 4095 [11:41:23]Connected sock=10 [11: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 83 7D 07 01 0B 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 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 4B 00 00 00 F4 03 04 00 E6 C9 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 A1 13 90 FA F4 5E F2 7D 88 98 63 82 E5 94 [11:41: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 3E B8 47 00 55 C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 65 F1 02 00 F4 03 04 00 A7 6E 20 67 B6 04 01 00 00 27 F1 F1 6E 34 CF EB 98 [11:41:24]CommunicateWithHost err = 0 [11:41:24]CheckOFDResponse [11:41:24]1017 (14) - 77093643461234 [11:41:24]1041 (16) - 0000000000871754 [11:41:24]1040 (4) - 192869 [11:41:24]1012 (4) - 29.10.2024 05:12 [11:41:24]1206 (1) - 0 [11:41:24]OFD Sender: Remove packet 192869 [11:41:24]ProducePacketName [11:41:24]name=ofd_packets/00192869 [11:41:24]NVStorageDeleteData [11:41:24]Write to MH i2c: 01 00 00 0C 2F 3B [11:41:24]Write i2c OK [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: 01 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: 01 07 00 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: 01 07 00 0C 2F 00 00 00 00 00 C3 0C 11 [11:41:24]RasterBufferAndPrint [11:41:24]line [11:41:24]line [11:41:24]line [11:41:24]line [11:41:24]line [11:41:24]written 0, free lines is 3276 [11:41:24]MH_Cut [11:41:24]Write to MH i2c: D1 01 00 13 2F 01 14 [11:41:24]Write i2c OK [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: D1 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: D1 01 00 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: D1 01 00 13 2F 00 13 [11:41:24]Write to MH i2c: 01 00 00 14 2F 43 [11:41:24]Write i2c OK [11:41:24]MH_I2C_Read... [11:41:24]OFD Sender: No OFD packet to send [11:41:25]*** Cut start [11:41:25]*** Partial cut [11:41:25]*** CUTSNS_PIN = 1 [11:41:25]*** CUTSNS_PIN = 0 [11:41:25]*** Brake cut motor [11:41:25]Read from MH i2c: 01 [11:41:25]MH_I2C_Read... [11:41:25]*** Stop cut motor [11:41:25]*** Cut end [11:41:25]Read from MH i2c: 01 07 00 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: 01 07 00 14 2F 00 00 00 00 00 FF 0F 58 [11:41:25]process_action close_receipt done [11:41:25]requested_data is exist [11:41:25]produce_requested_data [11:41:25]requested_item fm.sn is exist - process it [11:41:25]wFMCommunicate request_size=4 [11:41:25]MH_SAM_APDU [11:41:25]CAPDU: 80 11 00 00 [11:41:25]Write to MH i2c: E2 08 00 15 2F 80 11 00 00 00 00 00 00 BE [11:41:25]Write i2c OK [11:41:25]MH_I2C_Read... [11:41:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:25]Read from MH i2c: E2 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: E2 17 00 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: E2 17 00 15 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 11 [11: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 [11:41:25]wFMCommunicate OK [11:41:25]requested_item fd.num is exist - process it [11:41:25]SAM_PROTO_GetFieldsCounters [11:41:25]wFMCommunicate request_size=4 [11:41:25]MH_SAM_APDU [11:41:25]CAPDU: 80 13 00 00 [11:41:25]Write to MH i2c: E2 08 00 16 2F 80 13 00 00 00 00 00 00 C1 [11:41:25]Write i2c OK [11:41:25]MH_I2C_Read... [11:41:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:41:26]Read from MH i2c: E2 [11:41:26]MH_I2C_Read... [11:41:26]Read from MH i2c: E2 62 00 [11:41:26]MH_I2C_Read... [11:41:26]Read from MH i2c: E2 62 00 16 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 65 F1 02 00 0E 04 04 00 20 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 42 [11:41: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 65 F1 02 00 0E 04 04 00 20 02 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:41:26]wFMCommunicate OK [11:41:26]SAM_PROTO_GetFieldsCounters done [11:41:26]requested_item shift.num is exist - process it [11:41:26]requested_item shift.opened is exist - process it [11:41:26]req_shift_opened [11:41:26]FM_GetShiftState [11:41:26]SAM_PROTO_GetShiftState [11:41:26]wFMCommunicate request_size=4 [11:41:26]MH_SAM_APDU [11:41:26]CAPDU: 80 13 01 00 [11:41:26]Write to MH i2c: E2 08 00 17 2F 80 13 01 00 00 00 00 00 C3 [11:41:26]Write i2c OK [11:41:26]MH_I2C_Read... [11:41:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:26]Read from MH i2c: E2 [11:41:26]MH_I2C_Read... [11:41:26]Read from MH i2c: E2 0E 00 [11:41:26]MH_I2C_Read... [11:41:26]Read from MH i2c: E2 0E 00 17 2F 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 C9 [11:41:26]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:41:26]wFMCommunicate OK [11:41:26]SAM_PROTO_GetShiftState done [11:41:26]FM_GetShiftState done [11:41:26]req_shift_opened done [11:41:26]requested_item shift.open_date is exist - process it [11:41:26]req_shift_open_date [11:41:26]req_shift_open_date done [11:41:26]produce_requested_data done [11:41:26]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192869,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [11:41:26]process_action_free close_receipt [11:41:26]json_value_free [11:41:26]json_value_free done [11:41:26]process_json_proto returns [11:41:26]Send response to host [11:41:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192869,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [11:41:26]free response buf [11:41:26]execute_script done [11:41:26]execute_script returns [11:41:26]free content buf [11:41:26]Sock 8.Close socket [11:41:26]Sock 8.Thread stoped [11:41:29]OFD Sender: No OFD packet to send [11:41:34]OFD Sender: No OFD packet to send [11:41:39]OFD Sender: No OFD packet to send [11:41:44]OFD Sender: No OFD packet to send [11:41:49]OFD Sender: No OFD packet to send [11:41:54]OFD Sender: No OFD packet to send [11:41:59]OFD Sender: No OFD packet to send [11:42:04]OFD Sender: No OFD packet to send [11:42:09]OFD Sender: No OFD packet to send [11:42:14]OFD Sender: No OFD packet to send [11:42:19]OFD Sender: No OFD packet to send [11:42:24]OFD Sender: No OFD packet to send [11:42:29]OFD Sender: No OFD packet to send [11:42:34]OFD Sender: No OFD packet to send [11:42:39]OFD Sender: No OFD packet to send [11:42:44]OFD Sender: No OFD packet to send [11:42:49]OFD Sender: No OFD packet to send [11:42:54]OFD Sender: No OFD packet to send [11:42:59]OFD Sender: No OFD packet to send [11:43:04]OFD Sender: No OFD packet to send [11:43:09]OFD Sender: No OFD packet to send [11:43:14]OFD Sender: No OFD packet to send [11:43:19]OFD Sender: No OFD packet to send [11:43:24]accept exits with 9 [11:43:24]New connection [11:43:24]New thread 3066801508 created [11:43:24]Thread 3066658148 joined [11:43:24]Waiting for new connection... [11:43:24] Sock 9.Parse request [11:43:24]Sock 9.Check first char [11:43:24]Sock 9.First char is OK [11:43:24]request: POST /json_proto HTTP/1.0 [11:43:24]Method: POST [11:43:24]URL: /json_proto [11:43:24]Method is POST - this is cgi request [11:43:24]url: /json_proto [11:43:24]query_string will be loaded in cgi processing [11:43:24]execute_cgi json_proto POST (null) [11:43:24]execute_cgi path=json_proto method=POST [11:43:24]POST find Content-Length [11:43:24]Host: 172.17.63.131:8080 [11:43:24]Content-Length: 676 [11:43:24]Content-Type: application/json [11:43:24] [11:43:24]POST finish read [11:43:24]Found Content-Length = 676 [11:43:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32200", "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" : 6.730, "sum" : 450.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:24]execute_script... [11:43: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)32200", "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" : 6.730, "sum" : 450.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:24]POST & json_proto [11:43:24]process_json_proto [11:43:24]json parsed OK: [11:43:24]protocol is kg_v1.0 [11:43:24]action value=close_receipt [11:43:24]process_action close_receipt [11:43:24]cmd_close_receipt [11:43:24]MH_GetDate [11:43:24]Write to MH i2c: F0 00 00 18 2F 36 [11:43:24]Write i2c OK [11:43:24]MH_I2C_Read... [11:43:24]Read from MH i2c: F0 [11:43:24]MH_I2C_Read... [11:43:24]Read from MH i2c: F0 09 00 [11:43:24]MH_I2C_Read... [11:43:24]Read from MH i2c: F0 09 00 18 2F 00 60 CA 20 67 22 05 6E 64 E9 [11:43:24]GetLastDocTimeStamp 1730202086 [11:43:24]current date 1730202208 [11:43:24]FM_GetShiftState [11:43:24]SAM_PROTO_GetShiftState [11:43:24]wFMCommunicate request_size=4 [11:43:24]MH_SAM_APDU [11:43:24]CAPDU: 80 13 01 00 [11:43:24]Write to MH i2c: E2 08 00 19 2F 80 13 01 00 00 00 00 00 C5 [11:43:24]Write i2c OK [11:43:24]MH_I2C_Read... [11:43:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:24]Read from MH i2c: E2 [11:43:24]MH_I2C_Read... [11:43:24]Read from MH i2c: E2 0E 00 [11:43:24]MH_I2C_Read... [11:43:24]Read from MH i2c: E2 0E 00 19 2F 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 CB [11:43:24]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:43:24]wFMCommunicate OK [11:43:24]SAM_PROTO_GetShiftState done [11:43:24]FM_GetShiftState done [11:43:24]opened in 1730161990 [11:43:24]opened+sec_in_day 1730248390 [11:43:24]quantity*price = 45023 [11:43:24]sum+1 = 45025 [11:43:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.24 ИТОГО: 450.00 ВнеÑено: 450.00 СДÐЧÐ: 0.00 ÐСП 1% : 3.98 ÐДС 12% : 47.81 Ðаличными: 450.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 170 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 СÐО: Общий режим Чек 76 29.10.2024 11:43 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192870 ФПД: 103985436691892 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T114328&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192870&fm=103985436691892&tin=02508201610067®Number=0000000000091776&sum=45000 [11:43:25]StoreToDocumentArchive [11:43:25]shift 544 fd 192870 [11:43:25]save to /storage/0544/doc_00192870 [11:43:25]save last doc name /storage/0544/doc_00192870 to /storage/kkm_last_doc_name [11:43:25]save OK [11:43:25]Clear old archive folders... [11:43:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:43:25]tlvbuf is 00FDA230 [11:43:25]SAM_PROTO_ClearQueue [11:43:25]wFMCommunicate request_size=4 [11:43:25]MH_SAM_APDU [11:43:25]CAPDU: 80 09 00 00 [11:43:25]Write to MH i2c: E2 08 00 26 2F 80 09 00 00 00 00 00 00 C7 [11:43:25]Write i2c OK [11:43:25]MH_I2C_Read... [11:43:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:43:25]Read from MH i2c: E2 [11:43:25]MH_I2C_Read... [11:43:25]Read from MH i2c: E2 03 00 [11:43:25]MH_I2C_Read... [11:43:25]Read from MH i2c: E2 03 00 26 2F 00 90 00 C9 [11:43:25]RAPDU: 90 00 [11:43:25]wFMCommunicate OK [11:43:25]SAM_PROTO_ClearQueue done [11:43:25]KKMCreateOFDPacket [11:43:25]OFDProtocolAddRootSTLVToBuf [11:43:25]FM_MakeSignedData [11:43:25]FM_MakeSignedData [11:43:25]SAM_PROTO_SignData [11:43:25]wFMCommunicate request_size=4 [11:43:25]MH_SAM_APDU [11:43:25]CAPDU: 80 0D 01 02 [11:43:25]Write to MH i2c: E2 08 00 27 2F 80 0D 01 02 00 00 00 00 CF [11:43:25]Write i2c OK [11:43:25]MH_I2C_Read... [11:43:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:43:25]Read from MH i2c: E2 [11:43:25]MH_I2C_Read... [11:43:25]Read from MH i2c: E2 03 00 [11:43:25]MH_I2C_Read... [11:43:25]Read from MH i2c: E2 03 00 27 2F 00 90 00 CA [11:43:25]RAPDU: 90 00 [11:43:25]wFMCommunicate OK [11:43:25]wFMCommunicate request_size=255 [11:43:25]MH_SAM_APDU [11: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 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 60 CA 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 5E [11:43:25]Write to MH i2c: E2 02 01 28 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 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 60 CA 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 5E 00 00 1F [11:43:25]Write i2c OK [11:43:25]MH_I2C_Read... [11:43:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:25]Read from MH i2c: E2 [11:43:25]MH_I2C_Read... [11:43:25]Read from MH i2c: E2 03 00 [11:43:25]MH_I2C_Read... [11:43:25]Read from MH i2c: E2 03 00 28 2F 00 90 00 CB [11:43:25]RAPDU: 90 00 [11:43:25]wFMCommunicate OK [11:43:25]wFMCommunicate request_size=10 [11:43:25]MH_SAM_APDU [11:43:25]CAPDU: 80 0D 02 02 05 92 FF 04 0D B4 [11:43:25]Write to MH i2c: E2 0D 00 29 2F 80 0D 02 02 05 00 92 FF 04 0D B4 00 00 32 [11:43:25]Write i2c OK [11:43:25]MH_I2C_Read... [11:43:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:25]Read from MH i2c: E2 [11:43:25]MH_I2C_Read... [11:43:25]Read from MH i2c: E2 03 00 [11:43:25]MH_I2C_Read... [11:43:25]Read from MH i2c: E2 03 00 29 2F 00 90 00 CC [11:43:25]RAPDU: 90 00 [11:43:25]wFMCommunicate OK [11:43:25]wFMCommunicate request_size=4 [11:43:25]MH_SAM_APDU [11:43:25]CAPDU: 80 0D 03 02 [11:43:25]Write to MH i2c: E2 08 00 2A 2F 80 0D 03 02 00 00 00 00 D4 [11:43:25]Write i2c OK [11:43:25]MH_I2C_Read... [11:43:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:43:25]Read from MH i2c: E2 [11:43:25]MH_I2C_Read... [11:43:25]Read from MH i2c: E2 0B 00 [11:43:25]MH_I2C_Read... [11:43:25]Read from MH i2c: E2 0B 00 2A 2F 00 9D F2 22 57 6A 41 07 B9 90 00 48 [11:43:25]RAPDU: 9D F2 22 57 6A 41 07 B9 90 00 [11:43:25]wFMCommunicate OK [11:43:25]SAM_PROTO_SignData done [11:43:25]FM_MakeSignedData done [11:43:25]CreateOFDProtocolMessage [11:43:25]wFMCommunicate request_size=4 [11:43:25]MH_SAM_APDU [11:43:25]CAPDU: 80 11 00 00 [11:43:25]Write to MH i2c: E2 08 00 2B 2F 80 11 00 00 00 00 00 00 D4 [11:43:25]Write i2c OK [11:43:25]MH_I2C_Read... [11:43:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:25]Read from MH i2c: E2 [11:43:25]MH_I2C_Read... [11:43:25]Read from MH i2c: E2 17 00 [11:43:25]MH_I2C_Read... [11:43:25]Read from MH i2c: E2 17 00 2B 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 27 [11: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 [11:43:25]wFMCommunicate OK [11:43:25]CreateOFDProtocolMessage done [11:43:25]OFDSenderStorePacket 192870 [11:43:25]StoreOFDPacket docnum=192870 [11: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 B8 2F 07 01 55 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 60 CA 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 5E 92 FF 04 0D B4 9D F2 22 57 6A 41 07 B9 [11:43:25]CheckFolder [11:43:25]dirname=/storage/ofd_packets [11:43:25]CheckFolder done [11:43:25]ProducePacketName [11:43:25]name=ofd_packets/00192870 [11:43:25]NVStorageSaveData ofd_packets/00192870 [11:43:25]File name is /storage/ofd_packets/00192870 [11:43:25]Write 301 bytes [11:43:25]NVStorageSaveData done [11:43:25]OFDSenderStorePacket done [11:43:25]KKMCreateOFDPacket done [11:43:25]NVStorageSaveData kkm_last_timestamp [11:43:25]File name is /storage/kkm_last_timestamp [11:43:25]Write 4 bytes [11:43:25]NVStorageSaveData done [11:43:25]ExternCall_PrintAddStr [11:43:25]wPrintStart [11:43:25]Write to MH i2c: 01 00 00 2C 2F 5B [11:43:25]Write i2c OK [11:43:25]MH_I2C_Read... [11:43:25]Read from MH i2c: 01 [11:43:25]MH_I2C_Read... [11:43:25]Read from MH i2c: 01 07 00 [11:43:25]MH_I2C_Read... [11:43:25]Read from MH i2c: 01 07 00 2C 2F 00 00 00 00 00 FF 0F 70 [11:43:25]RasterBufferAndPrint [11:43:25]line Счет N : (1)32200 [11:43:25]line ИÐÐ: 02508201610067 [11:43:25]line Контрольно-КаÑÑовый Чек [11:43:25]line ПРОДÐЖР[11:43:25]line ТРК (МРК, ГÐК) : 12 [11:43:25]line Товар: 2710124130 [11:43:25]line Ðи-92-К-5 [11:43:25]line 6.730 * 66.90 [11:43:25]line = 450.24 [11:43:25]line ÐДС 12% ÐСП 1% [11:43:25]line > о реализуемом товаре [11:43:25]line ОКРУГЛЕÐИЕ: -0.24 [11:43:25]line ИТОГО: 450.00 [11:43:25]line ВнеÑено: 450.00 [11:43:25]line СДÐЧÐ: 0.00 [11:43:25]line ÐСП 1% : 3.98 [11:43:25]line ÐДС 12% : 47.81 [11:43:25]line Ðаличными: 450.00 [11:43:25]line Безнал.: 0.00 [11:43:25]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [11:43:25]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [11:43:25]line СÐО: Общий режим [11:43:25]line Чек 76 29.10.2024 11:43 [11:43:25]line Смена: 544 ФФД: 1.0 [11:43:25]line ЗÐМ: 0300000110 [11:43:25]line РÐМ: 0000000000091776 [11:43:25]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [11:43:25]line ФМ: 0000000000871754 [11:43:25]line ФД: 192870 [11:43:25]line ФПД: 103985436691892 [11:43:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T114328&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192870&fm=103985436691892&tin=02508201610067®Number=0000000000091776&sum=45000 [11:43:26]OFD Sender: Processing packet 192870 [packets to send 75, broken 74] [11:43:26]ProducePacketName [11:43:26]name=ofd_packets/00192870 [11:43:26]OFD Sender: To server: ‡•öpG, [11:43:26]CommunicateWithHost lk.salyk.kg:30040 [11:43:26]ConnectInit lk.salyk.kg [11:43:26]written 0, free lines is 4095 [11:43:26]Connected sock=10 [11:43: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 B8 2F 07 01 55 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 60 CA 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 5E 92 FF 04 0D B4 9D F2 22 57 6A 41 07 B9 [11: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 43 41 47 00 70 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 66 F1 02 00 F4 03 04 00 21 6F 20 67 B6 04 01 00 00 D5 E4 4A 5B 65 ED C6 92 [11:43:26]CommunicateWithHost err = 0 [11:43:26]CheckOFDResponse [11:43:26]1017 (14) - 77093643461234 [11:43:26]1041 (16) - 0000000000871754 [11:43:26]1040 (4) - 192870 [11:43:26]1012 (4) - 29.10.2024 05:14 [11:43:26]1206 (1) - 0 [11:43:26]OFD Sender: Remove packet 192870 [11:43:26]ProducePacketName [11:43:26]name=ofd_packets/00192870 [11:43:26]NVStorageDeleteData [11:43:26]Write to MH i2c: 01 00 00 57 2F 86 [11:43:26]Write i2c OK [11:43:26]MH_I2C_Read... [11:43:26]Read from MH i2c: 01 [11:43:26]MH_I2C_Read... [11:43:26]Read from MH i2c: 01 07 00 [11:43:26]MH_I2C_Read... [11:43:26]Read from MH i2c: 01 07 00 57 2F 00 00 00 00 00 B1 0C 4A [11:43:26]RasterBufferAndPrint [11:43:26]line [11:43:26]line [11:43:26]line [11:43:26]line [11:43:26]line [11:43:26]written 0, free lines is 3254 [11:43:26]MH_Cut [11:43:26]Write to MH i2c: D1 01 00 5E 2F 01 5F [11:43:26]Write i2c OK [11:43:26]MH_I2C_Read... [11:43:26]Read from MH i2c: D1 [11:43:26]MH_I2C_Read... [11:43:26]Read from MH i2c: D1 01 00 [11:43:26]MH_I2C_Read... [11:43:26]Read from MH i2c: D1 01 00 5E 2F 00 5E [11:43:26]Write to MH i2c: 01 00 00 5F 2F 8E [11:43:26]Write i2c OK [11:43:26]MH_I2C_Read... [11:43:26]OFD Sender: No OFD packet to send [11:43:27]*** Cut start [11:43:27]*** Partial cut [11:43:27]*** CUTSNS_PIN = 1 [11:43:27]*** CUTSNS_PIN = 0 [11:43:27]*** Brake cut motor [11:43:27]Read from MH i2c: 01 [11:43:28]MH_I2C_Read... [11:43:28]*** Stop cut motor [11:43:28]*** Cut end [11:43:28]Read from MH i2c: 01 07 00 [11:43:28]MH_I2C_Read... [11:43:28]Read from MH i2c: 01 07 00 5F 2F 00 00 00 00 00 FF 0F A3 [11:43:28]process_action close_receipt done [11:43:28]requested_data is exist [11:43:28]produce_requested_data [11:43:28]requested_item fm.sn is exist - process it [11:43:28]wFMCommunicate request_size=4 [11:43:28]MH_SAM_APDU [11:43:28]CAPDU: 80 11 00 00 [11:43:28]Write to MH i2c: E2 08 00 60 2F 80 11 00 00 00 00 00 00 09 [11:43:28]Write i2c OK [11:43:28]MH_I2C_Read... [11:43:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:28]Read from MH i2c: E2 [11:43:28]MH_I2C_Read... [11:43:28]Read from MH i2c: E2 17 00 [11:43:28]MH_I2C_Read... [11:43:28]Read from MH i2c: E2 17 00 60 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5C [11:43: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:43:28]wFMCommunicate OK [11:43:28]requested_item fd.num is exist - process it [11:43:28]SAM_PROTO_GetFieldsCounters [11:43:28]wFMCommunicate request_size=4 [11:43:28]MH_SAM_APDU [11:43:28]CAPDU: 80 13 00 00 [11:43:28]Write to MH i2c: E2 08 00 61 2F 80 13 00 00 00 00 00 00 0C [11:43:28]Write i2c OK [11:43:28]MH_I2C_Read... [11:43:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:28]Read from MH i2c: E2 [11:43:28]MH_I2C_Read... [11:43:28]Read from MH i2c: E2 62 00 [11:43:28]MH_I2C_Read... [11:43:28]Read from MH i2c: E2 62 00 61 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 66 F1 02 00 0E 04 04 00 20 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 91 [11:43: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 66 F1 02 00 0E 04 04 00 20 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:43:28]wFMCommunicate OK [11:43:28]SAM_PROTO_GetFieldsCounters done [11:43:28]requested_item shift.num is exist - process it [11:43:28]requested_item shift.opened is exist - process it [11:43:28]req_shift_opened [11:43:28]FM_GetShiftState [11:43:28]SAM_PROTO_GetShiftState [11:43:28]wFMCommunicate request_size=4 [11:43:28]MH_SAM_APDU [11:43:28]CAPDU: 80 13 01 00 [11:43:28]Write to MH i2c: E2 08 00 62 2F 80 13 01 00 00 00 00 00 0E [11:43:28]Write i2c OK [11:43:28]MH_I2C_Read... [11:43:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:28]Read from MH i2c: E2 [11:43:28]MH_I2C_Read... [11:43:28]Read from MH i2c: E2 0E 00 [11:43:28]MH_I2C_Read... [11:43:28]Read from MH i2c: E2 0E 00 62 2F 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 14 [11:43:28]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:43:28]wFMCommunicate OK [11:43:28]SAM_PROTO_GetShiftState done [11:43:28]FM_GetShiftState done [11:43:28]req_shift_opened done [11:43:28]requested_item shift.open_date is exist - process it [11:43:28]req_shift_open_date [11:43:28]req_shift_open_date done [11:43:28]produce_requested_data done [11:43:28]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192870,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [11:43:28]process_action_free close_receipt [11:43:28]json_value_free [11:43:28]json_value_free done [11:43:28]process_json_proto returns [11:43:28]Send response to host [11:43:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192870,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [11:43:28]free response buf [11:43:28]execute_script done [11:43:28]execute_script returns [11:43:28]free content buf [11:43:28]Sock 9.Close socket [11:43:28]Sock 9.Thread stoped [11:43:31]OFD Sender: No OFD packet to send [11:43:36]OFD Sender: No OFD packet to send [11:43:41]OFD Sender: No OFD packet to send [11:43:46]OFD Sender: No OFD packet to send [11:43:51]OFD Sender: No OFD packet to send [11:43:56]OFD Sender: No OFD packet to send [11:44:00]accept exits with 8 [11:44:00]New connection [11:44:00]New thread 3066658148 created [11:44:00]Thread 3066801508 joined [11:44:00]Waiting for new connection... [11:44:00] Sock 8.Parse request [11:44:00]Sock 8.Check first char [11:44:00]Sock 8.First char is OK [11:44:00]request: POST /json_proto HTTP/1.0 [11:44:00]Method: POST [11:44:00]URL: /json_proto [11:44:00]Method is POST - this is cgi request [11:44:00]url: /json_proto [11:44:00]query_string will be loaded in cgi processing [11:44:00]execute_cgi json_proto POST (null) [11:44:00]execute_cgi path=json_proto method=POST [11:44:00]POST find Content-Length [11:44:00]Host: 172.17.63.131:8080 [11:44:00]Content-Length: 676 [11:44:00]Content-Type: application/json [11:44:00] [11:44:00]POST finish read [11:44:00]Found Content-Length = 676 [11:44:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32201", "tax_sys" : 0, "items" : [ { "pre_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:44:00]execute_script... [11:44: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)32201", "tax_sys" : 0, "items" : [ { "pre_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:44:00]POST & json_proto [11:44:00]process_json_proto [11:44:00]json parsed OK: [11:44:00]protocol is kg_v1.0 [11:44:00]action value=close_receipt [11:44:00]process_action close_receipt [11:44:00]cmd_close_receipt [11:44:00]MH_GetDate [11:44:00]Write to MH i2c: F0 00 00 63 2F 81 [11:44:00]Write i2c OK [11:44:00]MH_I2C_Read... [11:44:00]Read from MH i2c: F0 [11:44:00]MH_I2C_Read... [11:44:00]Read from MH i2c: F0 09 00 [11:44:00]MH_I2C_Read... [11:44:00]Read from MH i2c: F0 09 00 63 2F 00 85 CA 20 67 22 05 6E 64 59 [11:44:00]GetLastDocTimeStamp 1730202208 [11:44:00]current date 1730202245 [11:44:00]FM_GetShiftState [11:44:00]SAM_PROTO_GetShiftState [11:44:00]wFMCommunicate request_size=4 [11:44:00]MH_SAM_APDU [11:44:00]CAPDU: 80 13 01 00 [11:44:00]Write to MH i2c: E2 08 00 64 2F 80 13 01 00 00 00 00 00 10 [11:44:00]Write i2c OK [11:44:00]MH_I2C_Read... [11:44:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:00]Read from MH i2c: E2 [11:44:00]MH_I2C_Read... [11:44:00]Read from MH i2c: E2 0E 00 [11:44:00]MH_I2C_Read... [11:44:00]Read from MH i2c: E2 0E 00 64 2F 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 16 [11:44:00]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:44:00]wFMCommunicate OK [11:44:00]SAM_PROTO_GetShiftState done [11:44:00]FM_GetShiftState done [11:44:00]opened in 1730161990 [11:44:00]opened+sec_in_day 1730248390 [11:44:00]quantity*price = 50041 [11:44:00]sum+1 = 50042 [11:44: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 СÐО: Общий режим Чек 77 29.10.2024 11:44 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192871 ФПД: 148777055574600 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T114405&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192871&fm=148777055574600&tin=02508201610067®Number=0000000000091776&sum=50000 [11:44:01]StoreToDocumentArchive [11:44:01]shift 544 fd 192871 [11:44:01]save to /storage/0544/doc_00192871 [11:44:01]save last doc name /storage/0544/doc_00192871 to /storage/kkm_last_doc_name [11:44:01]save OK [11:44:01]Clear old archive folders... [11:44:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:44:01]tlvbuf is 00FFF870 [11:44:01]SAM_PROTO_ClearQueue [11:44:01]wFMCommunicate request_size=4 [11:44:01]MH_SAM_APDU [11:44:01]CAPDU: 80 09 00 00 [11:44:01]Write to MH i2c: E2 08 00 71 2F 80 09 00 00 00 00 00 00 12 [11:44:01]Write i2c OK [11:44:01]MH_I2C_Read... [11:44:01]OFD Sender: No OFD packet to send [11:44:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:44:02]Read from MH i2c: E2 [11:44:02]MH_I2C_Read... [11:44:02]Read from MH i2c: E2 03 00 [11:44:02]MH_I2C_Read... [11:44:02]Read from MH i2c: E2 03 00 71 2F 00 90 00 14 [11:44:02]RAPDU: 90 00 [11:44:02]wFMCommunicate OK [11:44:02]SAM_PROTO_ClearQueue done [11:44:02]KKMCreateOFDPacket [11:44:02]OFDProtocolAddRootSTLVToBuf [11:44:02]FM_MakeSignedData [11:44:02]FM_MakeSignedData [11:44:02]SAM_PROTO_SignData [11:44:02]wFMCommunicate request_size=4 [11:44:02]MH_SAM_APDU [11:44:02]CAPDU: 80 0D 01 02 [11:44:02]Write to MH i2c: E2 08 00 72 2F 80 0D 01 02 00 00 00 00 1A [11:44:02]Write i2c OK [11:44:02]MH_I2C_Read... [11:44:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:44:02]Read from MH i2c: E2 [11:44:02]MH_I2C_Read... [11:44:02]Read from MH i2c: E2 03 00 [11:44:02]MH_I2C_Read... [11:44:02]Read from MH i2c: E2 03 00 72 2F 00 90 00 15 [11:44:02]RAPDU: 90 00 [11:44:02]wFMCommunicate OK [11:44:02]wFMCommunicate request_size=255 [11:44:02]MH_SAM_APDU [11:44: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 4D 00 00 00 F4 03 04 00 85 CA 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 87 [11:44:02]Write to MH i2c: E2 02 01 73 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 85 CA 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 87 00 00 D4 [11:44:02]Write i2c OK [11:44:02]MH_I2C_Read... [11:44:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:02]Read from MH i2c: E2 [11:44:02]MH_I2C_Read... [11:44:02]Read from MH i2c: E2 03 00 [11:44:02]MH_I2C_Read... [11:44:02]Read from MH i2c: E2 03 00 73 2F 00 90 00 16 [11:44:02]RAPDU: 90 00 [11:44:02]wFMCommunicate OK [11:44:02]wFMCommunicate request_size=10 [11:44:02]MH_SAM_APDU [11:44:02]CAPDU: 80 0D 02 02 05 4F DB 8C 5A 48 [11:44:02]Write to MH i2c: E2 0D 00 74 2F 80 0D 02 02 05 00 4F DB 8C 5A 48 00 00 7F [11:44:02]Write i2c OK [11:44:02]MH_I2C_Read... [11:44:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:02]Read from MH i2c: E2 [11:44:02]MH_I2C_Read... [11:44:02]Read from MH i2c: E2 03 00 [11:44:02]MH_I2C_Read... [11:44:02]Read from MH i2c: E2 03 00 74 2F 00 90 00 17 [11:44:02]RAPDU: 90 00 [11:44:02]wFMCommunicate OK [11:44:02]wFMCommunicate request_size=4 [11:44:02]MH_SAM_APDU [11:44:02]CAPDU: 80 0D 03 02 [11:44:02]Write to MH i2c: E2 08 00 75 2F 80 0D 03 02 00 00 00 00 1F [11:44:02]Write i2c OK [11:44:02]MH_I2C_Read... [11:44:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:44:02]Read from MH i2c: E2 [11:44:02]MH_I2C_Read... [11:44:02]Read from MH i2c: E2 0B 00 [11:44:02]MH_I2C_Read... [11:44:02]Read from MH i2c: E2 0B 00 75 2F 00 5F 72 64 0A C6 AD 60 12 90 00 44 [11:44:02]RAPDU: 5F 72 64 0A C6 AD 60 12 90 00 [11:44:02]wFMCommunicate OK [11:44:02]SAM_PROTO_SignData done [11:44:02]FM_MakeSignedData done [11:44:02]CreateOFDProtocolMessage [11:44:02]wFMCommunicate request_size=4 [11:44:02]MH_SAM_APDU [11:44:02]CAPDU: 80 11 00 00 [11:44:02]Write to MH i2c: E2 08 00 76 2F 80 11 00 00 00 00 00 00 1F [11:44:02]Write i2c OK [11:44:02]MH_I2C_Read... [11:44:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:02]Read from MH i2c: E2 [11:44:02]MH_I2C_Read... [11:44:02]Read from MH i2c: E2 17 00 [11:44:02]MH_I2C_Read... [11:44:02]Read from MH i2c: E2 17 00 76 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 72 [11:44:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:44:02]wFMCommunicate OK [11:44:02]CreateOFDProtocolMessage done [11:44:02]OFDSenderStorePacket 192871 [11:44:02]StoreOFDPacket docnum=192871 [11:44: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 EF 17 07 01 FB 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 85 CA 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 87 4F DB 8C 5A 48 5F 72 64 0A C6 AD 60 12 [11:44:02]CheckFolder [11:44:02]dirname=/storage/ofd_packets [11:44:02]CheckFolder done [11:44:02]ProducePacketName [11:44:02]name=ofd_packets/00192871 [11:44:02]NVStorageSaveData ofd_packets/00192871 [11:44:02]File name is /storage/ofd_packets/00192871 [11:44:02]Write 301 bytes [11:44:02]NVStorageSaveData done [11:44:02]OFDSenderStorePacket done [11:44:02]KKMCreateOFDPacket done [11:44:02]NVStorageSaveData kkm_last_timestamp [11:44:02]File name is /storage/kkm_last_timestamp [11:44:02]Write 4 bytes [11:44:02]NVStorageSaveData done [11:44:02]ExternCall_PrintAddStr [11:44:02]wPrintStart [11:44:02]Write to MH i2c: 01 00 00 77 2F A6 [11:44:02]Write i2c OK [11:44:02]MH_I2C_Read... [11:44:02]Read from MH i2c: 01 [11:44:02]MH_I2C_Read... [11:44:02]Read from MH i2c: 01 07 00 [11:44:02]MH_I2C_Read... [11:44:02]Read from MH i2c: 01 07 00 77 2F 00 00 00 00 00 FF 0F BB [11:44:02]RasterBufferAndPrint [11:44:02]line Счет N : (1)32201 [11:44:02]line ИÐÐ: 02508201610067 [11:44:02]line Контрольно-КаÑÑовый Чек [11:44:02]line ПРОДÐЖР[11:44:02]line ТРК (МРК, ГÐК) : 21 [11:44:02]line Товар: 2710124130 [11:44:02]line Ðи-92-К-5 [11:44:02]line 7.480 * 66.90 [11:44:02]line = 500.41 [11:44:02]line ÐДС 12% ÐСП 1% [11:44:02]line > о реализуемом товаре [11:44:02]line ОКРУГЛЕÐИЕ: -0.41 [11:44:02]line ИТОГО: 500.00 [11:44:02]line ВнеÑено: 500.00 [11:44:02]line СДÐЧÐ: 0.00 [11:44:02]line ÐСП 1% : 4.43 [11:44:02]line ÐДС 12% : 53.14 [11:44:02]line Ðаличными: 500.00 [11:44:02]line Безнал.: 0.00 [11:44:02]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [11:44:02]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [11:44:02]line СÐО: Общий режим [11:44:02]line Чек 77 29.10.2024 11:44 [11:44:02]line Смена: 544 ФФД: 1.0 [11:44:02]line ЗÐМ: 0300000110 [11:44:02]line РÐМ: 0000000000091776 [11:44:02]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [11:44:02]line ФМ: 0000000000871754 [11:44:02]line ФД: 192871 [11:44:02]line ФПД: 148777055574600 [11:44:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T114405&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192871&fm=148777055574600&tin=02508201610067®Number=0000000000091776&sum=50000 [11:44:02]OFD Sender: Processing packet 192871 [packets to send 75, broken 74] [11:44:02]ProducePacketName [11:44:02]name=ofd_packets/00192871 [11:44:02]OFD Sender: To server: ‡•öpG, [11:44:02]CommunicateWithHost lk.salyk.kg:30040 [11:44:02]ConnectInit lk.salyk.kg [11:44:02]written 0, free lines is 4095 [11:44:02]Connected sock=10 [11:44: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 EF 17 07 01 FB 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 85 CA 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 87 4F DB 8C 5A 48 5F 72 64 0A C6 AD 60 12 [11:44: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 28 0E 47 00 6D 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 67 F1 02 00 F4 03 04 00 46 6F 20 67 B6 04 01 00 00 A0 81 1A 5D A8 6B 9E 6C [11:44:03]CommunicateWithHost err = 0 [11:44:03]CheckOFDResponse [11:44:03]1017 (14) - 77093643461234 [11:44:03]1041 (16) - 0000000000871754 [11:44:03]1040 (4) - 192871 [11:44:03]1012 (4) - 29.10.2024 05:14 [11:44:03]1206 (1) - 0 [11:44:03]OFD Sender: Remove packet 192871 [11:44:03]ProducePacketName [11:44:03]name=ofd_packets/00192871 [11:44:03]NVStorageDeleteData [11:44:03]Write to MH i2c: 01 00 00 A2 2F D1 [11:44:03]Write i2c OK [11:44:03]MH_I2C_Read... [11:44:03]Read from MH i2c: 01 [11:44:03]MH_I2C_Read... [11:44:03]Read from MH i2c: 01 07 00 [11:44:03]MH_I2C_Read... [11:44:03]Read from MH i2c: 01 07 00 A2 2F 00 00 00 00 00 AA 0C 8E [11:44:03]RasterBufferAndPrint [11:44:03]line [11:44:03]line [11:44:03]line [11:44:03]line [11:44:03]line [11:44:03]written 0, free lines is 3248 [11:44:03]MH_Cut [11:44:03]Write to MH i2c: D1 01 00 A9 2F 01 AA [11:44:03]Write i2c OK [11:44:03]MH_I2C_Read... [11:44:03]Read from MH i2c: D1 [11:44:03]MH_I2C_Read... [11:44:03]Read from MH i2c: D1 01 00 [11:44:03]MH_I2C_Read... [11:44:03]Read from MH i2c: D1 01 00 A9 2F 00 A9 [11:44:03]Write to MH i2c: 01 00 00 AA 2F D9 [11:44:03]Write i2c OK [11:44:03]MH_I2C_Read... [11:44:03]OFD Sender: No OFD packet to send [11:44:04]*** Cut start [11:44:04]*** Partial cut [11:44:04]*** CUTSNS_PIN = 1 [11:44:04]*** CUTSNS_PIN = 0 [11:44:04]*** Brake cut motor [11:44:04]Read from MH i2c: 01 [11:44:04]MH_I2C_Read... [11:44:04]*** Stop cut motor [11:44:04]*** Cut end [11:44:04]Read from MH i2c: 01 07 00 [11:44:04]MH_I2C_Read... [11:44:04]Read from MH i2c: 01 07 00 AA 2F 00 00 00 00 00 FF 0F EE [11:44:04]process_action close_receipt done [11:44:04]requested_data is exist [11:44:04]produce_requested_data [11:44:04]requested_item fm.sn is exist - process it [11:44:04]wFMCommunicate request_size=4 [11:44:04]MH_SAM_APDU [11:44:04]CAPDU: 80 11 00 00 [11:44:04]Write to MH i2c: E2 08 00 AB 2F 80 11 00 00 00 00 00 00 54 [11:44:04]Write i2c OK [11:44:04]MH_I2C_Read... [11:44:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:04]Read from MH i2c: E2 [11:44:04]MH_I2C_Read... [11:44:04]Read from MH i2c: E2 17 00 [11:44:04]MH_I2C_Read... [11:44:04]Read from MH i2c: E2 17 00 AB 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A7 [11: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 [11:44:04]wFMCommunicate OK [11:44:04]requested_item fd.num is exist - process it [11:44:04]SAM_PROTO_GetFieldsCounters [11:44:04]wFMCommunicate request_size=4 [11:44:04]MH_SAM_APDU [11:44:04]CAPDU: 80 13 00 00 [11:44:04]Write to MH i2c: E2 08 00 AC 2F 80 13 00 00 00 00 00 00 57 [11:44:04]Write i2c OK [11:44:04]MH_I2C_Read... [11:44:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:44:04]Read from MH i2c: E2 [11:44:04]MH_I2C_Read... [11:44:04]Read from MH i2c: E2 62 00 [11:44:04]MH_I2C_Read... [11:44:04]Read from MH i2c: E2 62 00 AC 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 67 F1 02 00 0E 04 04 00 20 02 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [11:44: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 67 F1 02 00 0E 04 04 00 20 02 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:44:04]wFMCommunicate OK [11:44:04]SAM_PROTO_GetFieldsCounters done [11:44:04]requested_item shift.num is exist - process it [11:44:04]requested_item shift.opened is exist - process it [11:44:04]req_shift_opened [11:44:04]FM_GetShiftState [11:44:04]SAM_PROTO_GetShiftState [11:44:04]wFMCommunicate request_size=4 [11:44:04]MH_SAM_APDU [11:44:04]CAPDU: 80 13 01 00 [11:44:04]Write to MH i2c: E2 08 00 AD 2F 80 13 01 00 00 00 00 00 59 [11:44:04]Write i2c OK [11:44:04]MH_I2C_Read... [11:44:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:04]Read from MH i2c: E2 [11:44:04]MH_I2C_Read... [11:44:04]Read from MH i2c: E2 0E 00 [11:44:04]MH_I2C_Read... [11:44:04]Read from MH i2c: E2 0E 00 AD 2F 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 5F [11:44:04]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:44:04]wFMCommunicate OK [11:44:04]SAM_PROTO_GetShiftState done [11:44:04]FM_GetShiftState done [11:44:04]req_shift_opened done [11:44:04]requested_item shift.open_date is exist - process it [11:44:04]req_shift_open_date [11:44:04]req_shift_open_date done [11:44:04]produce_requested_data done [11:44:04]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192871,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [11:44:04]process_action_free close_receipt [11:44:04]json_value_free [11:44:04]json_value_free done [11:44:04]process_json_proto returns [11:44:04]Send response to host [11:44:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192871,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [11:44:04]free response buf [11:44:04]execute_script done [11:44:04]execute_script returns [11:44:04]free content buf [11:44:04]Sock 8.Close socket [11:44:04]Sock 8.Thread stoped [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:28]OFD Sender: No OFD packet to send [11:46:33]OFD Sender: No OFD packet to send [11:46:38]OFD Sender: No OFD packet to send [11:46:43]OFD Sender: No OFD packet to send [11:46:48]OFD Sender: No OFD packet to send [11:46:53]OFD Sender: No OFD packet to send [11:46:58]OFD Sender: No OFD packet to send [11:47:03]OFD Sender: No OFD packet to send [11:47:08]OFD Sender: No OFD packet to send [11:47:13]OFD Sender: No OFD packet to send [11:47:18]OFD Sender: No OFD packet to send [11:47:23]OFD Sender: No OFD packet to send [11:47:28]OFD Sender: No OFD packet to send [11:47:33]OFD Sender: No OFD packet to send [11:47:38]OFD Sender: No OFD packet to send [11:47:43]OFD Sender: No OFD packet to send [11:47:48]OFD Sender: No OFD packet to send [11:47:53]OFD Sender: No OFD packet to send [11:47:58]OFD Sender: No OFD packet to send [11:48:03]OFD Sender: No OFD packet to send [11:48:08]OFD Sender: No OFD packet to send [11:48:13]OFD Sender: No OFD packet to send [11:48:18]OFD Sender: No OFD packet to send [11:48:23]OFD Sender: No OFD packet to send [11:48:28]OFD Sender: No OFD packet to send [11:48:33]OFD Sender: No OFD packet to send [11:48:38]OFD Sender: No OFD packet to send [11:48:43]OFD Sender: No OFD packet to send [11:48:48]OFD Sender: No OFD packet to send [11:48:53]OFD Sender: No OFD packet to send [11:48:58]OFD Sender: No OFD packet to send [11:49:02]accept exits with 9 [11:49:02]New connection [11:49:02]New thread 3066801508 created [11:49:02]Thread 3066658148 joined [11:49:02]Waiting for new connection... [11:49:02] Sock 9.Parse request [11:49:02]Sock 9.Check first char [11:49:02]Sock 9.First char is OK [11:49:02]request: POST /json_proto HTTP/1.0 [11:49:02]Method: POST [11:49:02]URL: /json_proto [11:49:02]Method is POST - this is cgi request [11:49:02]url: /json_proto [11:49:02]query_string will be loaded in cgi processing [11:49:02]execute_cgi json_proto POST (null) [11:49:02]execute_cgi path=json_proto method=POST [11:49:02]POST find Content-Length [11:49:02]Host: 172.17.63.131:8080 [11:49:02]Content-Length: 865 [11:49:02]Content-Type: application/json [11:49:02] [11:49:02]POST finish read [11:49:02]Found Content-Length = 865 [11:49:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32202", "tax_sys" : 0, "items" : [ { "pre_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" ] } } [11:49:02]execute_script... [11: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)32202", "tax_sys" : 0, "items" : [ { "pre_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" ] } } [11:49:02]POST & json_proto [11:49:02]process_json_proto [11:49:02]json parsed OK: [11:49:02]protocol is kg_v1.0 [11:49:02]action value=close_receipt [11:49:02]process_action close_receipt [11:49:02]cmd_close_receipt [11:49:02]MH_GetDate [11:49:02]Write to MH i2c: F0 00 00 AE 2F CC [11:49:02]Write i2c OK [11:49:02]MH_I2C_Read... [11:49:02]Read from MH i2c: F0 [11:49:02]MH_I2C_Read... [11:49:02]Read from MH i2c: F0 09 00 [11:49:02]MH_I2C_Read... [11:49:02]Read from MH i2c: F0 09 00 AE 2F 00 B2 CB 20 67 22 05 6E 64 D2 [11:49:02]GetLastDocTimeStamp 1730202245 [11:49:02]current date 1730202546 [11:49:02]FM_GetShiftState [11:49:02]SAM_PROTO_GetShiftState [11:49:02]wFMCommunicate request_size=4 [11:49:02]MH_SAM_APDU [11:49:02]CAPDU: 80 13 01 00 [11:49:02]Write to MH i2c: E2 08 00 AF 2F 80 13 01 00 00 00 00 00 5B [11:49:02]Write i2c OK [11:49:02]MH_I2C_Read... [11:49:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:02]Read from MH i2c: E2 [11:49:02]MH_I2C_Read... [11:49:02]Read from MH i2c: E2 0E 00 [11:49:02]MH_I2C_Read... [11:49:02]Read from MH i2c: E2 0E 00 AF 2F 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 61 [11:49:02]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:49:02]wFMCommunicate OK [11:49:02]SAM_PROTO_GetShiftState done [11:49:02]FM_GetShiftState done [11:49:02]opened in 1730161990 [11:49:02]opened+sec_in_day 1730248390 [11:49:02]quantity*price = 100015 [11:49:02]sum+1 = 100017 [11:49: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 СÐО: Общий режим Чек 78 29.10.2024 11:49 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192872 ФПД: 223990172543188 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T114906&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192872&fm=223990172543188&tin=02508201610067®Number=0000000000091776&sum=100016 [11:49:03]StoreToDocumentArchive [11:49:03]shift 544 fd 192872 [11:49:03]save to /storage/0544/doc_00192872 [11:49:03]save last doc name /storage/0544/doc_00192872 to /storage/kkm_last_doc_name [11:49:03]save OK [11:49:03]Clear old archive folders... [11:49:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:49:03]tlvbuf is 0100F4F0 [11:49:03]SAM_PROTO_ClearQueue [11:49:03]wFMCommunicate request_size=4 [11:49:03]MH_SAM_APDU [11:49:03]CAPDU: 80 09 00 00 [11:49:03]Write to MH i2c: E2 08 00 BC 2F 80 09 00 00 00 00 00 00 5D [11:49:03]Write i2c OK [11:49:03]MH_I2C_Read... [11:49:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:49:03]Read from MH i2c: E2 [11:49:03]MH_I2C_Read... [11:49:03]Read from MH i2c: E2 03 00 [11:49:03]MH_I2C_Read... [11:49:03]Read from MH i2c: E2 03 00 BC 2F 00 90 00 5F [11:49:03]RAPDU: 90 00 [11:49:03]wFMCommunicate OK [11:49:03]SAM_PROTO_ClearQueue done [11:49:03]KKMCreateOFDPacket [11:49:03]OFDProtocolAddRootSTLVToBuf [11:49:03]FM_MakeSignedData [11:49:03]FM_MakeSignedData [11:49:03]SAM_PROTO_SignData [11:49:03]wFMCommunicate request_size=4 [11:49:03]MH_SAM_APDU [11:49:03]CAPDU: 80 0D 01 02 [11:49:03]Write to MH i2c: E2 08 00 BD 2F 80 0D 01 02 00 00 00 00 65 [11:49:03]Write i2c OK [11:49:03]MH_I2C_Read... [11:49:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:49:03]Read from MH i2c: E2 [11:49:03]MH_I2C_Read... [11:49:03]Read from MH i2c: E2 03 00 [11:49:03]MH_I2C_Read... [11:49:03]Read from MH i2c: E2 03 00 BD 2F 00 90 00 60 [11:49:03]RAPDU: 90 00 [11:49:03]wFMCommunicate OK [11:49:03]wFMCommunicate request_size=255 [11:49:03]MH_SAM_APDU [11: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 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 4E 00 00 00 F4 03 04 00 B2 CB 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 CB [11:49:03]Write to MH i2c: E2 02 01 BE 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 4E 00 00 00 F4 03 04 00 B2 CB 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 CB 00 00 AD [11:49:03]Write i2c OK [11:49:03]MH_I2C_Read... [11:49:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:03]Read from MH i2c: E2 [11:49:03]MH_I2C_Read... [11:49:03]Read from MH i2c: E2 03 00 [11:49:03]MH_I2C_Read... [11:49:03]Read from MH i2c: E2 03 00 BE 2F 00 90 00 61 [11:49:03]RAPDU: 90 00 [11:49:03]wFMCommunicate OK [11:49:03]wFMCommunicate request_size=10 [11:49:03]MH_SAM_APDU [11:49:03]CAPDU: 80 0D 02 02 05 B7 C6 AA E8 D4 [11:49:03]Write to MH i2c: E2 0D 00 BF 2F 80 0D 02 02 05 00 B7 C6 AA E8 D4 00 00 55 [11:49:03]Write i2c OK [11:49:03]MH_I2C_Read... [11:49:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:03]Read from MH i2c: E2 [11:49:03]MH_I2C_Read... [11:49:03]Read from MH i2c: E2 03 00 [11:49:03]MH_I2C_Read... [11:49:03]Read from MH i2c: E2 03 00 BF 2F 00 90 00 62 [11:49:03]RAPDU: 90 00 [11:49:03]wFMCommunicate OK [11:49:03]wFMCommunicate request_size=4 [11:49:03]MH_SAM_APDU [11:49:03]CAPDU: 80 0D 03 02 [11:49:03]Write to MH i2c: E2 08 00 C0 2F 80 0D 03 02 00 00 00 00 6A [11:49:03]Write i2c OK [11:49:03]MH_I2C_Read... [11:49:03]OFD Sender: No OFD packet to send [11:49:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:49:03]Read from MH i2c: E2 [11:49:03]MH_I2C_Read... [11:49:03]Read from MH i2c: E2 0B 00 [11:49:03]MH_I2C_Read... [11:49:03]Read from MH i2c: E2 0B 00 C0 2F 00 15 5D A9 17 55 AF E5 89 90 00 0F [11:49:03]RAPDU: 15 5D A9 17 55 AF E5 89 90 00 [11:49:03]wFMCommunicate OK [11:49:03]SAM_PROTO_SignData done [11:49:03]FM_MakeSignedData done [11:49:03]CreateOFDProtocolMessage [11:49:03]wFMCommunicate request_size=4 [11:49:03]MH_SAM_APDU [11:49:03]CAPDU: 80 11 00 00 [11:49:03]Write to MH i2c: E2 08 00 C1 2F 80 11 00 00 00 00 00 00 6A [11:49:03]Write i2c OK [11:49:03]MH_I2C_Read... [11:49:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:04]Read from MH i2c: E2 [11:49:04]MH_I2C_Read... [11:49:04]Read from MH i2c: E2 17 00 [11:49:04]MH_I2C_Read... [11:49:04]Read from MH i2c: E2 17 00 C1 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BD [11: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 [11:49:04]wFMCommunicate OK [11:49:04]CreateOFDProtocolMessage done [11:49:04]OFDSenderStorePacket 192872 [11:49:04]StoreOFDPacket docnum=192872 [11: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 09 02 07 01 D9 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 4E 00 00 00 F4 03 04 00 B2 CB 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 CB B7 C6 AA E8 D4 15 5D A9 17 55 AF E5 89 [11:49:04]CheckFolder [11:49:04]dirname=/storage/ofd_packets [11:49:04]CheckFolder done [11:49:04]ProducePacketName [11:49:04]name=ofd_packets/00192872 [11:49:04]NVStorageSaveData ofd_packets/00192872 [11:49:04]File name is /storage/ofd_packets/00192872 [11:49:04]Write 301 bytes [11:49:04]NVStorageSaveData done [11:49:04]OFDSenderStorePacket done [11:49:04]KKMCreateOFDPacket done [11:49:04]NVStorageSaveData kkm_last_timestamp [11:49:04]File name is /storage/kkm_last_timestamp [11:49:04]Write 4 bytes [11:49:04]NVStorageSaveData done [11:49:04]ExternCall_PrintAddStr [11:49:04]wPrintStart [11:49:04]Write to MH i2c: 01 00 00 C2 2F F1 [11:49:04]Write i2c OK [11:49:04]MH_I2C_Read... [11:49:04]Read from MH i2c: 01 [11:49:04]MH_I2C_Read... [11:49:04]Read from MH i2c: 01 07 00 [11:49:04]MH_I2C_Read... [11:49:04]Read from MH i2c: 01 07 00 C2 2F 00 00 00 00 00 FF 0F 06 [11:49:04]RasterBufferAndPrint [11:49:04]line Счет N : (1)32202 [11:49:04]line ИÐÐ: 02508201610067 [11:49:04]line Контрольно-КаÑÑовый Чек [11:49:04]line ПРОДÐЖР[11:49:04]line ТРК (МРК, ГÐК) : 21 [11:49:04]line Товар: 2710124130 [11:49:04]line Ðи-92-К-5 [11:49:04]line 14.950 * 66.90 [11:49:04]line = 1000.16 [11:49:04]line ÐДС 12% ÐСП 1% [11:49:04]line > о реализуемом товаре [11:49:04]line ИТОГО: 1000.16 [11:49:04]line ÐСП 1% : 8.85 [11:49:04]line ÐДС 12% : 106.21 [11:49:04]line Ðаличными: 0.00 [11:49:04]line Безнал.: 1000.16 [11:49:04]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [11:49:04]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [11:49:04]line СÐО: Общий режим [11:49:04]line Чек 78 29.10.2024 11:49 [11:49:04]line Смена: 544 ФФД: 1.0 [11:49:04]line ЗÐМ: 0300000110 [11:49:04]line РÐМ: 0000000000091776 [11:49:04]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [11:49:04]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Кыргызкоммерцбанк [11:49:04]line ФМ: 0000000000871754 [11:49:04]line ФД: 192872 [11:49:04]line ФПД: 223990172543188 [11:49:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T114906&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192872&fm=223990172543188&tin=02508201610067®Number=0000000000091776&sum=100016 [11:49:04]OFD Sender: Processing packet 192872 [packets to send 75, broken 74] [11:49:04]ProducePacketName [11:49:04]name=ofd_packets/00192872 [11:49:04]OFD Sender: To server: ‡•öpG, [11:49:04]CommunicateWithHost lk.salyk.kg:30040 [11:49:04]ConnectInit lk.salyk.kg [11:49:04]written 0, free lines is 4095 [11:49:04]Connected sock=10 [11: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 09 02 07 01 D9 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 4E 00 00 00 F4 03 04 00 B2 CB 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 CB B7 C6 AA E8 D4 15 5D A9 17 55 AF E5 89 [11: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 98 72 47 00 98 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 68 F1 02 00 F4 03 04 00 73 70 20 67 B6 04 01 00 00 71 CC 89 69 2C 11 C4 45 [11:49:04]CommunicateWithHost err = 0 [11:49:04]CheckOFDResponse [11:49:04]1017 (14) - 77093643461234 [11:49:04]1041 (16) - 0000000000871754 [11:49:04]1040 (4) - 192872 [11:49:04]1012 (4) - 29.10.2024 05:19 [11:49:04]1206 (1) - 0 [11:49:04]OFD Sender: Remove packet 192872 [11:49:04]ProducePacketName [11:49:04]name=ofd_packets/00192872 [11:49:04]NVStorageDeleteData [11:49:04]Write to MH i2c: 01 00 00 EC 2F 1B [11:49:04]Write i2c OK [11:49:04]MH_I2C_Read... [11:49:04]Read from MH i2c: 01 [11:49:04]MH_I2C_Read... [11:49:04]Read from MH i2c: 01 07 00 [11:49:04]MH_I2C_Read... [11:49:04]Read from MH i2c: 01 07 00 EC 2F 00 00 00 00 00 DC 0C 0A [11:49:04]RasterBufferAndPrint [11:49:04]line [11:49:04]line [11:49:04]line [11:49:04]line [11:49:04]line [11:49:04]written 0, free lines is 3298 [11:49:04]MH_Cut [11:49:04]Write to MH i2c: D1 01 00 F3 2F 01 F4 [11:49:04]Write i2c OK [11:49:04]MH_I2C_Read... [11:49:04]Read from MH i2c: D1 [11:49:04]MH_I2C_Read... [11:49:04]Read from MH i2c: D1 01 00 [11:49:04]MH_I2C_Read... [11:49:04]Read from MH i2c: D1 01 00 F3 2F 00 F3 [11:49:04]Write to MH i2c: 01 00 00 F4 2F 23 [11:49:04]Write i2c OK [11:49:04]MH_I2C_Read... [11:49:05]OFD Sender: No OFD packet to send [11:49:05]*** Cut start [11:49:05]*** Partial cut [11:49:05]*** CUTSNS_PIN = 1 [11:49:05]*** CUTSNS_PIN = 0 [11:49:05]*** Brake cut motor [11:49:06]Read from MH i2c: 01 [11:49:06]MH_I2C_Read... [11:49:06]*** Stop cut motor [11:49:06]*** Cut end [11:49:06]Read from MH i2c: 01 07 00 [11:49:06]MH_I2C_Read... [11:49:06]Read from MH i2c: 01 07 00 F4 2F 00 00 00 00 00 FF 0F 38 [11:49:06]process_action close_receipt done [11:49:06]requested_data is exist [11:49:06]produce_requested_data [11:49:06]requested_item fm.sn is exist - process it [11:49:06]wFMCommunicate request_size=4 [11:49:06]MH_SAM_APDU [11:49:06]CAPDU: 80 11 00 00 [11:49:06]Write to MH i2c: E2 08 00 F5 2F 80 11 00 00 00 00 00 00 9E [11:49:06]Write i2c OK [11:49:06]MH_I2C_Read... [11:49:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:06]Read from MH i2c: E2 [11:49:06]MH_I2C_Read... [11:49:06]Read from MH i2c: E2 17 00 [11:49:06]MH_I2C_Read... [11:49:06]Read from MH i2c: E2 17 00 F5 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F1 [11: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 [11:49:06]wFMCommunicate OK [11:49:06]requested_item fd.num is exist - process it [11:49:06]SAM_PROTO_GetFieldsCounters [11:49:06]wFMCommunicate request_size=4 [11:49:06]MH_SAM_APDU [11:49:06]CAPDU: 80 13 00 00 [11:49:06]Write to MH i2c: E2 08 00 F6 2F 80 13 00 00 00 00 00 00 A1 [11:49:06]Write i2c OK [11:49:06]MH_I2C_Read... [11:49:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:49:06]Read from MH i2c: E2 [11:49:06]MH_I2C_Read... [11:49:06]Read from MH i2c: E2 62 00 [11:49:06]MH_I2C_Read... [11:49:06]Read from MH i2c: E2 62 00 F6 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 68 F1 02 00 0E 04 04 00 20 02 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [11: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 68 F1 02 00 0E 04 04 00 20 02 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:49:06]wFMCommunicate OK [11:49:06]SAM_PROTO_GetFieldsCounters done [11:49:06]requested_item shift.num is exist - process it [11:49:06]requested_item shift.opened is exist - process it [11:49:06]req_shift_opened [11:49:06]FM_GetShiftState [11:49:06]SAM_PROTO_GetShiftState [11:49:06]wFMCommunicate request_size=4 [11:49:06]MH_SAM_APDU [11:49:06]CAPDU: 80 13 01 00 [11:49:06]Write to MH i2c: E2 08 00 F7 2F 80 13 01 00 00 00 00 00 A3 [11:49:06]Write i2c OK [11:49:06]MH_I2C_Read... [11:49:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:06]Read from MH i2c: E2 [11:49:06]MH_I2C_Read... [11:49:06]Read from MH i2c: E2 0E 00 [11:49:06]MH_I2C_Read... [11:49:06]Read from MH i2c: E2 0E 00 F7 2F 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 A9 [11:49:06]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:49:06]wFMCommunicate OK [11:49:06]SAM_PROTO_GetShiftState done [11:49:06]FM_GetShiftState done [11:49:06]req_shift_opened done [11:49:06]requested_item shift.open_date is exist - process it [11:49:06]req_shift_open_date [11:49:06]req_shift_open_date done [11:49:06]produce_requested_data done [11:49:06]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192872,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [11:49:06]process_action_free close_receipt [11:49:06]json_value_free [11:49:06]json_value_free done [11:49:06]process_json_proto returns [11:49:06]Send response to host [11:49:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192872,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [11:49:06]free response buf [11:49:06]execute_script done [11:49:06]execute_script returns [11:49:06]free content buf [11:49:06]Sock 9.Close socket [11:49:06]Sock 9.Thread stoped [11:49:10]OFD Sender: No OFD packet to send [11:49:15]OFD Sender: No OFD packet to send [11:49:20]OFD Sender: No OFD packet to send [11:49:25]OFD Sender: No OFD packet to send [11:49:30]OFD Sender: No OFD packet to send [11:49:35]OFD Sender: No OFD packet to send [11:49:40]OFD Sender: No OFD packet to send [11:49:43]accept exits with 8 [11:49:43]New connection [11:49:43]New thread 3066658148 created [11:49:43]Thread 3066801508 joined [11:49:43]Waiting for new connection... [11:49:43] Sock 8.Parse request [11:49:43]Sock 8.Check first char [11:49:43]Sock 8.First char is OK [11:49:43]request: POST /json_proto HTTP/1.0 [11:49:43]Method: POST [11:49:43]URL: /json_proto [11:49:43]Method is POST - this is cgi request [11:49:43]url: /json_proto [11:49:43]query_string will be loaded in cgi processing [11:49:43]execute_cgi json_proto POST (null) [11:49:43]execute_cgi path=json_proto method=POST [11:49:43]POST find Content-Length [11:49:43]Host: 172.17.63.131:8080 [11:49:43]Content-Length: 681 [11:49:43]Content-Type: application/json [11:49:43] [11:49:43]POST finish read [11:49:43]Found Content-Length = 681 [11:49:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32203", "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:49:43]execute_script... [11:49:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32203", "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:49:43]POST & json_proto [11:49:43]process_json_proto [11:49:43]json parsed OK: [11:49:43]protocol is kg_v1.0 [11:49:43]action value=close_receipt [11:49:43]process_action close_receipt [11:49:43]cmd_close_receipt [11:49:43]MH_GetDate [11:49:43]Write to MH i2c: F0 00 00 F8 2F 16 [11:49:43]Write i2c OK [11:49:43]MH_I2C_Read... [11:49:43]Read from MH i2c: F0 [11:49:43]MH_I2C_Read... [11:49:43]Read from MH i2c: F0 09 00 [11:49:43]MH_I2C_Read... [11:49:43]Read from MH i2c: F0 09 00 F8 2F 00 DB CB 20 67 22 05 6E 64 45 [11:49:43]GetLastDocTimeStamp 1730202546 [11:49:43]current date 1730202587 [11:49:43]FM_GetShiftState [11:49:43]SAM_PROTO_GetShiftState [11:49:43]wFMCommunicate request_size=4 [11:49:43]MH_SAM_APDU [11:49:43]CAPDU: 80 13 01 00 [11:49:43]Write to MH i2c: E2 08 00 F9 2F 80 13 01 00 00 00 00 00 A5 [11:49:43]Write i2c OK [11:49:43]MH_I2C_Read... [11:49:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:43]Read from MH i2c: E2 [11:49:43]MH_I2C_Read... [11:49:43]Read from MH i2c: E2 0E 00 [11:49:43]MH_I2C_Read... [11:49:43]Read from MH i2c: E2 0E 00 F9 2F 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 AB [11:49:43]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:49:43]wFMCommunicate OK [11:49:43]SAM_PROTO_GetShiftState done [11:49:43]FM_GetShiftState done [11:49:43]opened in 1730161990 [11:49:43]opened+sec_in_day 1730248390 [11:49:43]quantity*price = 100015 [11:49:43]sum+1 = 100017 [11:49:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.16 ИТОГО: 1000.00 ВнеÑено: 1000.00 СДÐЧÐ: 0.00 ÐСП 1% : 8.85 ÐДС 12% : 106.21 Ðаличными: 1000.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 170 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 СÐО: Общий режим Чек 79 29.10.2024 11:49 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192873 ФПД: 42872744955075 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T114947&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192873&fm=42872744955075&tin=02508201610067®Number=0000000000091776&sum=100000 [11:49:44]StoreToDocumentArchive [11:49:44]shift 544 fd 192873 [11:49:44]save to /storage/0544/doc_00192873 [11:49:44]save last doc name /storage/0544/doc_00192873 to /storage/kkm_last_doc_name [11:49:44]save OK [11:49:44]Clear old archive folders... [11:49:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:49:44]tlvbuf is 00F93F10 [11:49:44]SAM_PROTO_ClearQueue [11:49:44]wFMCommunicate request_size=4 [11:49:44]MH_SAM_APDU [11:49:44]CAPDU: 80 09 00 00 [11:49:44]Write to MH i2c: E2 08 00 06 30 80 09 00 00 00 00 00 00 A8 [11:49:44]Write i2c OK [11:49:44]MH_I2C_Read... [11:49:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:49:44]Read from MH i2c: E2 [11:49:44]MH_I2C_Read... [11:49:44]Read from MH i2c: E2 03 00 [11:49:44]MH_I2C_Read... [11:49:44]Read from MH i2c: E2 03 00 06 30 00 90 00 AA [11:49:44]RAPDU: 90 00 [11:49:44]wFMCommunicate OK [11:49:44]SAM_PROTO_ClearQueue done [11:49:44]KKMCreateOFDPacket [11:49:44]OFDProtocolAddRootSTLVToBuf [11:49:44]FM_MakeSignedData [11:49:44]FM_MakeSignedData [11:49:44]SAM_PROTO_SignData [11:49:44]wFMCommunicate request_size=4 [11:49:44]MH_SAM_APDU [11:49:44]CAPDU: 80 0D 01 02 [11:49:44]Write to MH i2c: E2 08 00 07 30 80 0D 01 02 00 00 00 00 B0 [11:49:44]Write i2c OK [11:49:44]MH_I2C_Read... [11:49:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:49:44]Read from MH i2c: E2 [11:49:44]MH_I2C_Read... [11:49:44]Read from MH i2c: E2 03 00 [11:49:44]MH_I2C_Read... [11:49:44]Read from MH i2c: E2 03 00 07 30 00 90 00 AB [11:49:44]RAPDU: 90 00 [11:49:44]wFMCommunicate OK [11:49:44]wFMCommunicate request_size=255 [11:49:44]MH_SAM_APDU [11:49:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 DB CB 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 26 [11:49:44]Write to MH i2c: E2 02 01 08 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 DB CB 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 26 00 00 5E [11:49:44]Write i2c OK [11:49:44]MH_I2C_Read... [11:49:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:44]Read from MH i2c: E2 [11:49:44]MH_I2C_Read... [11:49:44]Read from MH i2c: E2 03 00 [11:49:44]MH_I2C_Read... [11:49:44]Read from MH i2c: E2 03 00 08 30 00 90 00 AC [11:49:44]RAPDU: 90 00 [11:49:44]wFMCommunicate OK [11:49:44]wFMCommunicate request_size=10 [11:49:44]MH_SAM_APDU [11:49:44]CAPDU: 80 0D 02 02 05 FE 16 BB CC C3 [11:49:44]Write to MH i2c: E2 0D 00 09 30 80 0D 02 02 05 00 FE 16 BB CC C3 00 00 1B [11:49:44]Write i2c OK [11:49:44]MH_I2C_Read... [11:49:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:44]Read from MH i2c: E2 [11:49:44]MH_I2C_Read... [11:49:44]Read from MH i2c: E2 03 00 [11:49:44]MH_I2C_Read... [11:49:44]Read from MH i2c: E2 03 00 09 30 00 90 00 AD [11:49:44]RAPDU: 90 00 [11:49:44]wFMCommunicate OK [11:49:44]wFMCommunicate request_size=4 [11:49:44]MH_SAM_APDU [11:49:44]CAPDU: 80 0D 03 02 [11:49:44]Write to MH i2c: E2 08 00 0A 30 80 0D 03 02 00 00 00 00 B5 [11:49:44]Write i2c OK [11:49:44]MH_I2C_Read... [11:49:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:49:44]Read from MH i2c: E2 [11:49:44]MH_I2C_Read... [11:49:44]Read from MH i2c: E2 0B 00 [11:49:44]MH_I2C_Read... [11:49:44]Read from MH i2c: E2 0B 00 0A 30 00 11 00 54 93 B7 36 FB 5D 90 00 F3 [11:49:44]RAPDU: 11 00 54 93 B7 36 FB 5D 90 00 [11:49:44]wFMCommunicate OK [11:49:44]SAM_PROTO_SignData done [11:49:44]FM_MakeSignedData done [11:49:44]CreateOFDProtocolMessage [11:49:44]wFMCommunicate request_size=4 [11:49:44]MH_SAM_APDU [11:49:44]CAPDU: 80 11 00 00 [11:49:44]Write to MH i2c: E2 08 00 0B 30 80 11 00 00 00 00 00 00 B5 [11:49:44]Write i2c OK [11:49:44]MH_I2C_Read... [11:49:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:44]Read from MH i2c: E2 [11:49:44]MH_I2C_Read... [11:49:44]Read from MH i2c: E2 17 00 [11:49:44]MH_I2C_Read... [11:49:44]Read from MH i2c: E2 17 00 0B 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 08 [11:49:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:49:44]wFMCommunicate OK [11:49:44]CreateOFDProtocolMessage done [11:49:44]OFDSenderStorePacket 192873 [11:49:44]StoreOFDPacket docnum=192873 [11:49: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 88 C8 07 01 B1 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 DB CB 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 26 FE 16 BB CC C3 11 00 54 93 B7 36 FB 5D [11:49:44]CheckFolder [11:49:44]dirname=/storage/ofd_packets [11:49:44]CheckFolder done [11:49:44]ProducePacketName [11:49:44]name=ofd_packets/00192873 [11:49:44]NVStorageSaveData ofd_packets/00192873 [11:49:44]File name is /storage/ofd_packets/00192873 [11:49:44]Write 301 bytes [11:49:44]NVStorageSaveData done [11:49:44]OFDSenderStorePacket done [11:49:44]KKMCreateOFDPacket done [11:49:44]NVStorageSaveData kkm_last_timestamp [11:49:44]File name is /storage/kkm_last_timestamp [11:49:44]Write 4 bytes [11:49:44]NVStorageSaveData done [11:49:44]ExternCall_PrintAddStr [11:49:44]wPrintStart [11:49:44]Write to MH i2c: 01 00 00 0C 30 3C [11:49:44]Write i2c OK [11:49:44]MH_I2C_Read... [11:49:44]Read from MH i2c: 01 [11:49:44]MH_I2C_Read... [11:49:44]Read from MH i2c: 01 07 00 [11:49:44]MH_I2C_Read... [11:49:44]Read from MH i2c: 01 07 00 0C 30 00 00 00 00 00 FF 0F 51 [11:49:44]RasterBufferAndPrint [11:49:44]line Счет N : (1)32203 [11:49:44]line ИÐÐ: 02508201610067 [11:49:44]line Контрольно-КаÑÑовый Чек [11:49:44]line ПРОДÐЖР[11:49:44]line ТРК (МРК, ГÐК) : 12 [11:49:44]line Товар: 2710124130 [11:49:44]line Ðи-92-К-5 [11:49:44]line 14.950 * 66.90 [11:49:44]line = 1000.16 [11:49:44]line ÐДС 12% ÐСП 1% [11:49:44]line > о реализуемом товаре [11:49:44]line ОКРУГЛЕÐИЕ: -0.16 [11:49:44]line ИТОГО: 1000.00 [11:49:44]line ВнеÑено: 1000.00 [11:49:44]line СДÐЧÐ: 0.00 [11:49:44]line ÐСП 1% : 8.85 [11:49:44]line ÐДС 12% : 106.21 [11:49:44]line Ðаличными: 1000.00 [11:49:44]line Безнал.: 0.00 [11:49:44]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [11:49:44]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [11:49:44]line СÐО: Общий режим [11:49:44]line Чек 79 29.10.2024 11:49 [11:49:44]line Смена: 544 ФФД: 1.0 [11:49:44]line ЗÐМ: 0300000110 [11:49:44]line РÐМ: 0000000000091776 [11:49:44]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [11:49:44]line ФМ: 0000000000871754 [11:49:44]line ФД: 192873 [11:49:44]line ФПД: 42872744955075 [11:49:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T114947&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192873&fm=42872744955075&tin=02508201610067®Number=0000000000091776&sum=100000 [11:49:45]OFD Sender: Processing packet 192873 [packets to send 75, broken 74] [11:49:45]ProducePacketName [11:49:45]name=ofd_packets/00192873 [11:49:45]OFD Sender: To server: ‡•öpG, [11:49:45]CommunicateWithHost lk.salyk.kg:30040 [11:49:45]ConnectInit lk.salyk.kg [11:49:45]written 0, free lines is 4095 [11:49:45]Connected sock=10 [11:49:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 88 C8 07 01 B1 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 DB CB 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 26 FE 16 BB CC C3 11 00 54 93 B7 36 FB 5D [11:49: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 0D 63 47 00 DD 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 69 F1 02 00 F4 03 04 00 9C 70 20 67 B6 04 01 00 00 F9 A2 D5 ED A2 13 CF BB [11:49:45]CommunicateWithHost err = 0 [11:49:45]CheckOFDResponse [11:49:45]1017 (14) - 77093643461234 [11:49:45]1041 (16) - 0000000000871754 [11:49:45]1040 (4) - 192873 [11:49:45]1012 (4) - 29.10.2024 05:20 [11:49:45]1206 (1) - 0 [11:49:45]OFD Sender: Remove packet 192873 [11:49:45]ProducePacketName [11:49:45]name=ofd_packets/00192873 [11:49:45]NVStorageDeleteData [11:49:45]Write to MH i2c: 01 00 00 37 30 67 [11:49:45]Write i2c OK [11:49:45]MH_I2C_Read... [11:49:45]Read from MH i2c: 01 [11:49:45]MH_I2C_Read... [11:49:45]Read from MH i2c: 01 07 00 [11:49:45]MH_I2C_Read... [11:49:45]Read from MH i2c: 01 07 00 37 30 00 00 00 00 00 C1 0C 3B [11:49:45]RasterBufferAndPrint [11:49:45]line [11:49:45]line [11:49:45]line [11:49:45]line [11:49:45]line [11:49:45]written 0, free lines is 3271 [11:49:45]MH_Cut [11:49:45]Write to MH i2c: D1 01 00 3E 30 01 40 [11:49:45]Write i2c OK [11:49:45]MH_I2C_Read... [11:49:45]Read from MH i2c: D1 [11:49:45]MH_I2C_Read... [11:49:45]Read from MH i2c: D1 01 00 [11:49:45]MH_I2C_Read... [11:49:45]Read from MH i2c: D1 01 00 3E 30 00 3F [11:49:45]Write to MH i2c: 01 00 00 3F 30 6F [11:49:45]Write i2c OK [11:49:45]MH_I2C_Read... [11:49:45]OFD Sender: No OFD packet to send [11:49:46]*** Cut start [11:49:46]*** Partial cut [11:49:46]*** CUTSNS_PIN = 1 [11:49:46]*** CUTSNS_PIN = 0 [11:49:46]*** Brake cut motor [11:49:47]Read from MH i2c: 01 [11:49:47]*** Stop cut motor [11:49:47]*** Cut end [11:49:47]MH_I2C_Read... [11:49:47]Read from MH i2c: 01 07 00 [11:49:47]MH_I2C_Read... [11:49:47]Read from MH i2c: 01 07 00 3F 30 00 00 00 00 00 FF 0F 84 [11:49:47]process_action close_receipt done [11:49:47]requested_data is exist [11:49:47]produce_requested_data [11:49:47]requested_item fm.sn is exist - process it [11:49:47]wFMCommunicate request_size=4 [11:49:47]MH_SAM_APDU [11:49:47]CAPDU: 80 11 00 00 [11:49:47]Write to MH i2c: E2 08 00 40 30 80 11 00 00 00 00 00 00 EA [11:49:47]Write i2c OK [11:49:47]MH_I2C_Read... [11:49:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:47]Read from MH i2c: E2 [11:49:47]MH_I2C_Read... [11:49:47]Read from MH i2c: E2 17 00 [11:49:47]MH_I2C_Read... [11:49:47]Read from MH i2c: E2 17 00 40 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3D [11:49:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:49:47]wFMCommunicate OK [11:49:47]requested_item fd.num is exist - process it [11:49:47]SAM_PROTO_GetFieldsCounters [11:49:47]wFMCommunicate request_size=4 [11:49:47]MH_SAM_APDU [11:49:47]CAPDU: 80 13 00 00 [11:49:47]Write to MH i2c: E2 08 00 41 30 80 13 00 00 00 00 00 00 ED [11:49:47]Write i2c OK [11:49:47]MH_I2C_Read... [11:49:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:49:47]Read from MH i2c: E2 [11:49:47]MH_I2C_Read... [11:49:47]Read from MH i2c: E2 62 00 [11:49:47]MH_I2C_Read... [11:49:47]Read from MH i2c: E2 62 00 41 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 69 F1 02 00 0E 04 04 00 20 02 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [11:49:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 F1 02 00 0E 04 04 00 20 02 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:49:47]wFMCommunicate OK [11:49:47]SAM_PROTO_GetFieldsCounters done [11:49:47]requested_item shift.num is exist - process it [11:49:47]requested_item shift.opened is exist - process it [11:49:47]req_shift_opened [11:49:47]FM_GetShiftState [11:49:47]SAM_PROTO_GetShiftState [11:49:47]wFMCommunicate request_size=4 [11:49:47]MH_SAM_APDU [11:49:47]CAPDU: 80 13 01 00 [11:49:47]Write to MH i2c: E2 08 00 42 30 80 13 01 00 00 00 00 00 EF [11:49:47]Write i2c OK [11:49:47]MH_I2C_Read... [11:49:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:47]Read from MH i2c: E2 [11:49:47]MH_I2C_Read... [11:49:47]Read from MH i2c: E2 0E 00 [11:49:47]MH_I2C_Read... [11:49:47]Read from MH i2c: E2 0E 00 42 30 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 F5 [11:49:47]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:49:47]wFMCommunicate OK [11:49:47]SAM_PROTO_GetShiftState done [11:49:47]FM_GetShiftState done [11:49:47]req_shift_opened done [11:49:47]requested_item shift.open_date is exist - process it [11:49:47]req_shift_open_date [11:49:47]req_shift_open_date done [11:49:47]produce_requested_data done [11:49:47]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192873,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [11:49:47]process_action_free close_receipt [11:49:47]json_value_free [11:49:47]json_value_free done [11:49:47]process_json_proto returns [11:49:47]Send response to host [11:49:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192873,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [11:49:47]free response buf [11:49:47]execute_script done [11:49:47]execute_script returns [11:49:47]free content buf [11:49:47]Sock 8.Close socket [11:49:47]Sock 8.Thread stoped [11:49:50]OFD Sender: No OFD packet to send [11:49:55]OFD Sender: No OFD packet to send [11:50:00]OFD Sender: No OFD packet to send [11:50:05]OFD Sender: No OFD packet to send [11:50:10]OFD Sender: No OFD packet to send [11:50:15]OFD Sender: No OFD packet to send [11:50:20]OFD Sender: No OFD packet to send [11:50:26]OFD Sender: No OFD packet to send [11:50:31]OFD Sender: No OFD packet to send [11:50:36]OFD Sender: No OFD packet to send [11:50:41]OFD Sender: No OFD packet to send [11:50:46]OFD Sender: No OFD packet to send [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:04]accept exits with 9 [11:51:04]New connection [11:51:04]New thread 3066801508 created [11:51:04]Thread 3066658148 joined [11:51:04]Waiting for new connection... [11:51:04] Sock 9.Parse request [11:51:04]Sock 9.Check first char [11:51:04]Sock 9.First char is OK [11:51:04]request: POST /json_proto HTTP/1.0 [11:51:04]Method: POST [11:51:04]URL: /json_proto [11:51:04]Method is POST - this is cgi request [11:51:04]url: /json_proto [11:51:04]query_string will be loaded in cgi processing [11:51:04]execute_cgi json_proto POST (null) [11:51:04]execute_cgi path=json_proto method=POST [11:51:04]POST find Content-Length [11:51:04]Host: 172.17.63.131:8080 [11:51:04]Content-Length: 671 [11:51:04]Content-Type: application/json [11:51:04] [11:51:04]POST finish read [11:51:04]Found Content-Length = 671 [11:51:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32204", "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" : 1000.00, "total" : 0.00, "payments": [ { "type": 0, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:04]execute_script... [11:51:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32204", "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" : 1000.00, "total" : 0.00, "payments": [ { "type": 0, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:04]POST & json_proto [11:51:04]process_json_proto [11:51:04]json parsed OK: [11:51:04]protocol is kg_v1.0 [11:51:04]action value=close_receipt [11:51:04]process_action close_receipt [11:51:04]cmd_close_receipt [11:51:04]MH_GetDate [11:51:04]Write to MH i2c: F0 00 00 43 30 62 [11:51:04]Write i2c OK [11:51:04]MH_I2C_Read... [11:51:04]Read from MH i2c: F0 [11:51:04]MH_I2C_Read... [11:51:04]Read from MH i2c: F0 09 00 [11:51:04]MH_I2C_Read... [11:51:04]Read from MH i2c: F0 09 00 43 30 00 2C CC 20 67 22 05 6E 64 E3 [11:51:04]GetLastDocTimeStamp 1730202587 [11:51:04]current date 1730202668 [11:51:04]FM_GetShiftState [11:51:04]SAM_PROTO_GetShiftState [11:51:04]wFMCommunicate request_size=4 [11:51:04]MH_SAM_APDU [11:51:04]CAPDU: 80 13 01 00 [11:51:04]Write to MH i2c: E2 08 00 44 30 80 13 01 00 00 00 00 00 F1 [11:51:04]Write i2c OK [11:51:04]MH_I2C_Read... [11:51:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:04]Read from MH i2c: E2 [11:51:04]MH_I2C_Read... [11:51:04]Read from MH i2c: E2 0E 00 [11:51:04]MH_I2C_Read... [11:51:04]Read from MH i2c: E2 0E 00 44 30 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 F7 [11:51:04]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:51:04]wFMCommunicate OK [11:51:04]SAM_PROTO_GetShiftState done [11:51:04]FM_GetShiftState done [11:51:04]opened in 1730161990 [11:51:04]opened+sec_in_day 1730248390 [11:51:04]quantity*price = 66 [11:51:04]sum+1 = 68 [11:51:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.67 ИТОГО: 0.00 ВнеÑено: 1000.00 СДÐЧÐ: 1000.00 ÐСП 1% : 0.01 ÐДС 12% : 0.07 Ðаличными: 0.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 170 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 СÐО: Общий режим Чек 80 29.10.2024 11:51 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192874 ФПД: 255851766005216 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T115108&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192874&fm=255851766005216&tin=02508201610067®Number=0000000000091776&sum=0 [11:51:05]StoreToDocumentArchive [11:51:05]shift 544 fd 192874 [11:51:05]save to /storage/0544/doc_00192874 [11:51:05]save last doc name /storage/0544/doc_00192874 to /storage/kkm_last_doc_name [11:51:05]save OK [11:51:05]Clear old archive folders... [11:51:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:51:05]tlvbuf is 00FFFCC0 [11:51:05]SAM_PROTO_ClearQueue [11:51:05]wFMCommunicate request_size=4 [11:51:05]MH_SAM_APDU [11:51:05]CAPDU: 80 09 00 00 [11:51:05]Write to MH i2c: E2 08 00 51 30 80 09 00 00 00 00 00 00 F3 [11:51:05]Write i2c OK [11:51:05]MH_I2C_Read... [11:51:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:51:05]Read from MH i2c: E2 [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: E2 03 00 [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: E2 03 00 51 30 00 90 00 F5 [11:51:05]RAPDU: 90 00 [11:51:05]wFMCommunicate OK [11:51:05]SAM_PROTO_ClearQueue done [11:51:05]KKMCreateOFDPacket [11:51:05]OFDProtocolAddRootSTLVToBuf [11:51:05]FM_MakeSignedData [11:51:05]FM_MakeSignedData [11:51:05]SAM_PROTO_SignData [11:51:05]wFMCommunicate request_size=4 [11:51:05]MH_SAM_APDU [11:51:05]CAPDU: 80 0D 01 02 [11:51:05]Write to MH i2c: E2 08 00 52 30 80 0D 01 02 00 00 00 00 FB [11:51:05]Write i2c OK [11:51:05]MH_I2C_Read... [11:51:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:51:05]Read from MH i2c: E2 [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: E2 03 00 [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: E2 03 00 52 30 00 90 00 F6 [11:51:05]RAPDU: 90 00 [11:51:05]wFMCommunicate OK [11:51:05]wFMCommunicate request_size=255 [11:51:05]MH_SAM_APDU [11:51:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 50 00 00 00 F4 03 04 00 2C CC 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 E8 [11:51:05]Write to MH i2c: E2 02 01 53 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 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 50 00 00 00 F4 03 04 00 2C CC 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 E8 00 00 D1 [11:51:05]Write i2c OK [11:51:05]MH_I2C_Read... [11:51:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:05]Read from MH i2c: E2 [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: E2 03 00 [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: E2 03 00 53 30 00 90 00 F7 [11:51:05]RAPDU: 90 00 [11:51:05]wFMCommunicate OK [11:51:05]wFMCommunicate request_size=10 [11:51:05]MH_SAM_APDU [11:51:05]CAPDU: 80 0D 02 02 05 B2 21 A0 BD E0 [11:51:05]Write to MH i2c: E2 0D 00 54 30 80 0D 02 02 05 00 B2 21 A0 BD E0 00 00 18 [11:51:05]Write i2c OK [11:51:05]MH_I2C_Read... [11:51:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:05]Read from MH i2c: E2 [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: E2 03 00 [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: E2 03 00 54 30 00 90 00 F8 [11:51:05]RAPDU: 90 00 [11:51:05]wFMCommunicate OK [11:51:05]wFMCommunicate request_size=4 [11:51:05]MH_SAM_APDU [11:51:05]CAPDU: 80 0D 03 02 [11:51:05]Write to MH i2c: E2 08 00 55 30 80 0D 03 02 00 00 00 00 00 [11:51:05]Write i2c OK [11:51:05]MH_I2C_Read... [11:51:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:51:05]Read from MH i2c: E2 [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: E2 0B 00 [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: E2 0B 00 55 30 00 17 F7 44 39 89 8C 5C 7D 90 00 7A [11:51:05]RAPDU: 17 F7 44 39 89 8C 5C 7D 90 00 [11:51:05]wFMCommunicate OK [11:51:05]SAM_PROTO_SignData done [11:51:05]FM_MakeSignedData done [11:51:05]CreateOFDProtocolMessage [11:51:05]wFMCommunicate request_size=4 [11:51:05]MH_SAM_APDU [11:51:05]CAPDU: 80 11 00 00 [11:51:05]Write to MH i2c: E2 08 00 56 30 80 11 00 00 00 00 00 00 00 [11:51:05]Write i2c OK [11:51:05]MH_I2C_Read... [11:51:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:05]Read from MH i2c: E2 [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: E2 17 00 [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: E2 17 00 56 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 53 [11:51:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:51:05]wFMCommunicate OK [11:51:05]CreateOFDProtocolMessage done [11:51:05]OFDSenderStorePacket 192874 [11:51:05]StoreOFDPacket docnum=192874 [11:51: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 3C C2 07 01 AE 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 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 50 00 00 00 F4 03 04 00 2C CC 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 E8 B2 21 A0 BD E0 17 F7 44 39 89 8C 5C 7D [11:51:05]CheckFolder [11:51:05]dirname=/storage/ofd_packets [11:51:05]CheckFolder done [11:51:05]ProducePacketName [11:51:05]name=ofd_packets/00192874 [11:51:05]NVStorageSaveData ofd_packets/00192874 [11:51:05]File name is /storage/ofd_packets/00192874 [11:51:05]Write 301 bytes [11:51:05]NVStorageSaveData done [11:51:05]OFDSenderStorePacket done [11:51:05]KKMCreateOFDPacket done [11:51:05]NVStorageSaveData kkm_last_timestamp [11:51:05]File name is /storage/kkm_last_timestamp [11:51:05]Write 4 bytes [11:51:05]NVStorageSaveData done [11:51:05]ExternCall_PrintAddStr [11:51:05]wPrintStart [11:51:05]Write to MH i2c: 01 00 00 57 30 87 [11:51:05]Write i2c OK [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: 01 [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: 01 07 00 [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: 01 07 00 57 30 00 00 00 00 00 FF 0F 9C [11:51:05]RasterBufferAndPrint [11:51:05]line Счет N : (1)32204 [11:51:05]line ИÐÐ: 02508201610067 [11:51:05]line Контрольно-КаÑÑовый Чек [11:51:05]line ПРОДÐЖР[11:51:05]line ТРК (МРК, ГÐК) : 12 [11:51:05]line Товар: 2710124130 [11:51:05]line Ðи-92-К-5 [11:51:05]line 0.010 * 66.90 [11:51:05]line = 0.67 [11:51:05]line ÐДС 12% ÐСП 1% [11:51:05]line > о реализуемом товаре [11:51:05]line ОКРУГЛЕÐИЕ: -0.67 [11:51:05]line ИТОГО: 0.00 [11:51:05]line ВнеÑено: 1000.00 [11:51:05]line СДÐЧÐ: 1000.00 [11:51:05]line ÐСП 1% : 0.01 [11:51:05]line ÐДС 12% : 0.07 [11:51:05]line Ðаличными: 0.00 [11:51:05]line Безнал.: 0.00 [11:51:05]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [11:51:05]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [11:51:05]line СÐО: Общий режим [11:51:05]line Чек 80 29.10.2024 11:51 [11:51:05]line Смена: 544 ФФД: 1.0 [11:51:05]line ЗÐМ: 0300000110 [11:51:05]line РÐМ: 0000000000091776 [11:51:05]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [11:51:05]line ФМ: 0000000000871754 [11:51:05]line ФД: 192874 [11:51:05]line ФПД: 255851766005216 [11:51:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T115108&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192874&fm=255851766005216&tin=02508201610067®Number=0000000000091776&sum=0 [11:51:06]OFD Sender: Processing packet 192874 [packets to send 75, broken 74] [11:51:06]ProducePacketName [11:51:06]name=ofd_packets/00192874 [11:51:06]OFD Sender: To server: ‡•öpG, [11:51:06]CommunicateWithHost lk.salyk.kg:30040 [11:51:06]ConnectInit lk.salyk.kg [11:51:06]written 0, free lines is 4095 [11:51:06]Connected sock=10 [11:51:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3C C2 07 01 AE 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 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 50 00 00 00 F4 03 04 00 2C CC 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 E8 B2 21 A0 BD E0 17 F7 44 39 89 8C 5C 7D [11:51: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 CB 4E 47 00 A8 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 6A F1 02 00 F4 03 04 00 ED 70 20 67 B6 04 01 00 00 98 AD 77 E0 72 A3 1B 12 [11:51:06]CommunicateWithHost err = 0 [11:51:06]CheckOFDResponse [11:51:06]1017 (14) - 77093643461234 [11:51:06]1041 (16) - 0000000000871754 [11:51:06]1040 (4) - 192874 [11:51:06]1012 (4) - 29.10.2024 05:21 [11:51:06]1206 (1) - 0 [11:51:06]OFD Sender: Remove packet 192874 [11:51:06]ProducePacketName [11:51:06]name=ofd_packets/00192874 [11:51:06]NVStorageDeleteData [11:51:06]Write to MH i2c: 01 00 00 82 30 B2 [11:51:06]Write i2c OK [11:51:06]MH_I2C_Read... [11:51:06]Read from MH i2c: 01 [11:51:06]MH_I2C_Read... [11:51:06]Read from MH i2c: 01 07 00 [11:51:06]MH_I2C_Read... [11:51:06]Read from MH i2c: 01 07 00 82 30 00 00 00 00 00 BF 0C 84 [11:51:06]RasterBufferAndPrint [11:51:06]line [11:51:06]line [11:51:06]line [11:51:06]line [11:51:06]line [11:51:06]written 0, free lines is 3269 [11:51:06]MH_Cut [11:51:06]Write to MH i2c: D1 01 00 89 30 01 8B [11:51:06]Write i2c OK [11:51:06]MH_I2C_Read... [11:51:06]Read from MH i2c: D1 [11:51:06]MH_I2C_Read... [11:51:06]Read from MH i2c: D1 01 00 [11:51:06]MH_I2C_Read... [11:51:06]Read from MH i2c: D1 01 00 89 30 00 8A [11:51:06]Write to MH i2c: 01 00 00 8A 30 BA [11:51:06]Write i2c OK [11:51:06]MH_I2C_Read... [11:51:06]OFD Sender: No OFD packet to send [11:51:07]*** Cut start [11:51:07]*** Partial cut [11:51:07]*** CUTSNS_PIN = 1 [11:51:07]*** CUTSNS_PIN = 0 [11:51:07]*** Brake cut motor [11:51:08]Read from MH i2c: 01 [11:51:08]MH_I2C_Read... [11:51:08]*** Stop cut motor [11:51:08]*** Cut end [11:51:08]Read from MH i2c: 01 07 00 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: 01 07 00 8A 30 00 00 00 00 00 FF 0F CF [11:51:08]process_action close_receipt done [11:51:08]requested_data is exist [11:51:08]produce_requested_data [11:51:08]requested_item fm.sn is exist - process it [11:51:08]wFMCommunicate request_size=4 [11:51:08]MH_SAM_APDU [11:51:08]CAPDU: 80 11 00 00 [11:51:08]Write to MH i2c: E2 08 00 8B 30 80 11 00 00 00 00 00 00 35 [11:51:08]Write i2c OK [11:51:08]MH_I2C_Read... [11:51:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:08]Read from MH i2c: E2 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: E2 17 00 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: E2 17 00 8B 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 88 [11:51:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:51:08]wFMCommunicate OK [11:51:08]requested_item fd.num is exist - process it [11:51:08]SAM_PROTO_GetFieldsCounters [11:51:08]wFMCommunicate request_size=4 [11:51:08]MH_SAM_APDU [11:51:08]CAPDU: 80 13 00 00 [11:51:08]Write to MH i2c: E2 08 00 8C 30 80 13 00 00 00 00 00 00 38 [11:51:08]Write i2c OK [11:51:08]MH_I2C_Read... [11:51:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:51:08]Read from MH i2c: E2 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: E2 62 00 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: E2 62 00 8C 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 6A F1 02 00 0E 04 04 00 20 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 CD [11:51: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 6A F1 02 00 0E 04 04 00 20 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:51:08]wFMCommunicate OK [11:51:08]SAM_PROTO_GetFieldsCounters done [11:51:08]requested_item shift.num is exist - process it [11:51:08]requested_item shift.opened is exist - process it [11:51:08]req_shift_opened [11:51:08]FM_GetShiftState [11:51:08]SAM_PROTO_GetShiftState [11:51:08]wFMCommunicate request_size=4 [11:51:08]MH_SAM_APDU [11:51:08]CAPDU: 80 13 01 00 [11:51:08]Write to MH i2c: E2 08 00 8D 30 80 13 01 00 00 00 00 00 3A [11:51:08]Write i2c OK [11:51:08]MH_I2C_Read... [11:51:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:08]Read from MH i2c: E2 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: E2 0E 00 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: E2 0E 00 8D 30 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 40 [11:51:08]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:51:08]wFMCommunicate OK [11:51:08]SAM_PROTO_GetShiftState done [11:51:08]FM_GetShiftState done [11:51:08]req_shift_opened done [11:51:08]requested_item shift.open_date is exist - process it [11:51:08]req_shift_open_date [11:51:08]req_shift_open_date done [11:51:08]produce_requested_data done [11:51:08]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192874,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [11:51:08]process_action_free close_receipt [11:51:08]json_value_free [11:51:08]json_value_free done [11:51:08]process_json_proto returns [11:51:08]Send response to host [11:51:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192874,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [11:51:08]free response buf [11:51:08]execute_script done [11:51:08]execute_script returns [11:51:08]free content buf [11:51:08]Sock 9.Close socket [11:51:08]Sock 9.Thread stoped [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:55]accept exits with 8 [11:51:55]New connection [11:51:55]New thread 3066658148 created [11:51:55]Thread 3066801508 joined [11:51:55]Waiting for new connection... [11:51:55] Sock 8.Parse request [11:51:55]Sock 8.Check first char [11:51:55]Sock 8.First char is OK [11:51:55]request: POST /json_proto HTTP/1.0 [11:51:55]Method: POST [11:51:55]URL: /json_proto [11:51:55]Method is POST - this is cgi request [11:51:55]url: /json_proto [11:51:55]query_string will be loaded in cgi processing [11:51:55]execute_cgi json_proto POST (null) [11:51:55]execute_cgi path=json_proto method=POST [11:51:55]POST find Content-Length [11:51:55]Host: 172.17.63.131:8080 [11:51:55]Content-Length: 681 [11:51:55]Content-Type: application/json [11:51:55] [11:51:55]POST finish read [11:51:55]Found Content-Length = 681 [11:51:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32205", "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:51:55]execute_script... [11:51:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32205", "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:51:55]POST & json_proto [11:51:55]process_json_proto [11:51:55]json parsed OK: [11:51:55]protocol is kg_v1.0 [11:51:55]action value=close_receipt [11:51:55]process_action close_receipt [11:51:55]cmd_close_receipt [11:51:55]MH_GetDate [11:51:55]Write to MH i2c: F0 00 00 8E 30 AD [11:51:55]Write i2c OK [11:51:55]MH_I2C_Read... [11:51:55]Read from MH i2c: F0 [11:51:55]MH_I2C_Read... [11:51:55]Read from MH i2c: F0 09 00 [11:51:55]MH_I2C_Read... [11:51:55]Read from MH i2c: F0 09 00 8E 30 00 60 CC 20 67 22 05 6E 64 62 [11:51:55]GetLastDocTimeStamp 1730202668 [11:51:55]current date 1730202720 [11:51:55]FM_GetShiftState [11:51:55]SAM_PROTO_GetShiftState [11:51:55]wFMCommunicate request_size=4 [11:51:55]MH_SAM_APDU [11:51:55]CAPDU: 80 13 01 00 [11:51:55]Write to MH i2c: E2 08 00 8F 30 80 13 01 00 00 00 00 00 3C [11:51:55]Write i2c OK [11:51:55]MH_I2C_Read... [11:51:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:56]Read from MH i2c: E2 [11:51:56]MH_I2C_Read... [11:51:56]Read from MH i2c: E2 0E 00 [11:51:56]MH_I2C_Read... [11:51:56]Read from MH i2c: E2 0E 00 8F 30 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 42 [11:51:56]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:51:56]wFMCommunicate OK [11:51:56]SAM_PROTO_GetShiftState done [11:51:56]FM_GetShiftState done [11:51:56]opened in 1730161990 [11:51:56]opened+sec_in_day 1730248390 [11:51:56]quantity*price = 100015 [11:51:56]sum+1 = 100017 [11:51: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 СÐО: Общий режим Чек 81 29.10.2024 11:52 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192875 ФПД: 62221736881276 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T115200&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192875&fm=62221736881276&tin=02508201610067®Number=0000000000091776&sum=100000 [11:51:57]StoreToDocumentArchive [11:51:57]shift 544 fd 192875 [11:51:57]save to /storage/0544/doc_00192875 [11:51:57]save last doc name /storage/0544/doc_00192875 to /storage/kkm_last_doc_name [11:51:57]save OK [11:51:57]Clear old archive folders... [11:51:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:51:57]tlvbuf is 00FA10B0 [11:51:57]SAM_PROTO_ClearQueue [11:51:57]wFMCommunicate request_size=4 [11:51:57]MH_SAM_APDU [11:51:57]CAPDU: 80 09 00 00 [11:51:57]Write to MH i2c: E2 08 00 9C 30 80 09 00 00 00 00 00 00 3E [11:51:57]Write i2c OK [11:51:57]MH_I2C_Read... [11:51:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:51:57]Read from MH i2c: E2 [11:51:57]MH_I2C_Read... [11:51:57]Read from MH i2c: E2 03 00 [11:51:57]MH_I2C_Read... [11:51:57]Read from MH i2c: E2 03 00 9C 30 00 90 00 40 [11:51:57]RAPDU: 90 00 [11:51:57]wFMCommunicate OK [11:51:57]SAM_PROTO_ClearQueue done [11:51:57]KKMCreateOFDPacket [11:51:57]OFDProtocolAddRootSTLVToBuf [11:51:57]FM_MakeSignedData [11:51:57]FM_MakeSignedData [11:51:57]SAM_PROTO_SignData [11:51:57]wFMCommunicate request_size=4 [11:51:57]MH_SAM_APDU [11:51:57]CAPDU: 80 0D 01 02 [11:51:57]Write to MH i2c: E2 08 00 9D 30 80 0D 01 02 00 00 00 00 46 [11:51:57]Write i2c OK [11:51:57]MH_I2C_Read... [11:51:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:51:57]Read from MH i2c: E2 [11:51:57]MH_I2C_Read... [11:51:57]Read from MH i2c: E2 03 00 [11:51:57]MH_I2C_Read... [11:51:57]Read from MH i2c: E2 03 00 9D 30 00 90 00 41 [11:51:57]RAPDU: 90 00 [11:51:57]wFMCommunicate OK [11:51:57]wFMCommunicate request_size=255 [11:51:57]MH_SAM_APDU [11:51: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 51 00 00 00 F4 03 04 00 60 CC 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 38 [11:51:57]Write to MH i2c: E2 02 01 9E 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 60 CC 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 38 00 00 90 [11:51:57]Write i2c OK [11:51:57]MH_I2C_Read... [11:51:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:57]Read from MH i2c: E2 [11:51:57]MH_I2C_Read... [11:51:57]Read from MH i2c: E2 03 00 [11:51:57]MH_I2C_Read... [11:51:57]Read from MH i2c: E2 03 00 9E 30 00 90 00 42 [11:51:57]RAPDU: 90 00 [11:51:57]wFMCommunicate OK [11:51:57]wFMCommunicate request_size=10 [11:51:57]MH_SAM_APDU [11:51:57]CAPDU: 80 0D 02 02 05 97 20 86 2C 7C [11:51:57]Write to MH i2c: E2 0D 00 9F 30 80 0D 02 02 05 00 97 20 86 2C 7C 00 00 38 [11:51:57]Write i2c OK [11:51:57]MH_I2C_Read... [11:51:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:57]Read from MH i2c: E2 [11:51:57]MH_I2C_Read... [11:51:57]Read from MH i2c: E2 03 00 [11:51:57]MH_I2C_Read... [11:51:57]Read from MH i2c: E2 03 00 9F 30 00 90 00 43 [11:51:57]RAPDU: 90 00 [11:51:57]wFMCommunicate OK [11:51:57]wFMCommunicate request_size=4 [11:51:57]MH_SAM_APDU [11:51:57]CAPDU: 80 0D 03 02 [11:51:57]Write to MH i2c: E2 08 00 A0 30 80 0D 03 02 00 00 00 00 4B [11:51:57]Write i2c OK [11:51:57]MH_I2C_Read... [11:51:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:51:57]Read from MH i2c: E2 [11:51:57]MH_I2C_Read... [11:51:57]Read from MH i2c: E2 0B 00 [11:51:57]MH_I2C_Read... [11:51:57]Read from MH i2c: E2 0B 00 A0 30 00 1D E1 E2 5A EA 13 62 7F 90 00 64 [11:51:57]RAPDU: 1D E1 E2 5A EA 13 62 7F 90 00 [11:51:57]wFMCommunicate OK [11:51:57]SAM_PROTO_SignData done [11:51:57]FM_MakeSignedData done [11:51:57]CreateOFDProtocolMessage [11:51:57]wFMCommunicate request_size=4 [11:51:57]MH_SAM_APDU [11:51:57]CAPDU: 80 11 00 00 [11:51:57]Write to MH i2c: E2 08 00 A1 30 80 11 00 00 00 00 00 00 4B [11:51:57]Write i2c OK [11:51:57]MH_I2C_Read... [11:51:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:57]Read from MH i2c: E2 [11:51:57]MH_I2C_Read... [11:51:57]Read from MH i2c: E2 17 00 [11:51:57]MH_I2C_Read... [11:51:57]Read from MH i2c: E2 17 00 A1 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9E [11: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 [11:51:57]wFMCommunicate OK [11:51:57]CreateOFDProtocolMessage done [11:51:57]OFDSenderStorePacket 192875 [11:51:57]StoreOFDPacket docnum=192875 [11:51:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EF 93 07 01 0F 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 60 CC 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 38 97 20 86 2C 7C 1D E1 E2 5A EA 13 62 7F [11:51:57]CheckFolder [11:51:57]dirname=/storage/ofd_packets [11:51:57]CheckFolder done [11:51:57]ProducePacketName [11:51:57]name=ofd_packets/00192875 [11:51:57]NVStorageSaveData ofd_packets/00192875 [11:51:57]File name is /storage/ofd_packets/00192875 [11:51:57]Write 301 bytes [11:51:57]NVStorageSaveData done [11:51:57]OFDSenderStorePacket done [11:51:57]KKMCreateOFDPacket done [11:51:57]NVStorageSaveData kkm_last_timestamp [11:51:57]File name is /storage/kkm_last_timestamp [11:51:57]Write 4 bytes [11:51:57]NVStorageSaveData done [11:51:57]ExternCall_PrintAddStr [11:51:57]wPrintStart [11:51:57]Write to MH i2c: 01 00 00 A2 30 D2 [11:51:57]Write i2c OK [11:51:57]MH_I2C_Read... [11:51:57]Read from MH i2c: 01 [11:51:57]MH_I2C_Read... [11:51:57]Read from MH i2c: 01 07 00 [11:51:57]MH_I2C_Read... [11:51:57]Read from MH i2c: 01 07 00 A2 30 00 00 00 00 00 FF 0F E7 [11:51:57]RasterBufferAndPrint [11:51:57]line Счет N : (1)32205 [11:51:57]line ИÐÐ: 02508201610067 [11:51:57]line Контрольно-КаÑÑовый Чек [11:51:57]line ПРОДÐЖР[11:51:57]line ТРК (МРК, ГÐК) : 12 [11:51:57]line Товар: 2710124130 [11:51:57]line Ðи-92-К-5 [11:51:57]line 14.950 * 66.90 [11:51:57]line = 1000.16 [11:51:57]line ÐДС 12% ÐСП 1% [11:51:57]line > о реализуемом товаре [11:51:57]line ОКРУГЛЕÐИЕ: -0.16 [11:51:57]line ИТОГО: 1000.00 [11:51:57]line ВнеÑено: 1000.00 [11:51:57]line СДÐЧÐ: 0.00 [11:51:57]line ÐСП 1% : 8.85 [11:51:57]line ÐДС 12% : 106.21 [11:51:57]line Ðаличными: 1000.00 [11:51:57]line Безнал.: 0.00 [11:51:57]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [11:51:57]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [11:51:57]line СÐО: Общий режим [11:51:57]line Чек 81 29.10.2024 11:52 [11:51:57]line Смена: 544 ФФД: 1.0 [11:51:57]line ЗÐМ: 0300000110 [11:51:57]line РÐМ: 0000000000091776 [11:51:57]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [11:51:57]line ФМ: 0000000000871754 [11:51:57]line ФД: 192875 [11:51:57]line ФПД: 62221736881276 [11:51:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T115200&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192875&fm=62221736881276&tin=02508201610067®Number=0000000000091776&sum=100000 [11:51:58]OFD Sender: Processing packet 192875 [packets to send 75, broken 74] [11:51:58]ProducePacketName [11:51:58]name=ofd_packets/00192875 [11:51:58]OFD Sender: To server: ‡•öpG, [11:51:58]CommunicateWithHost lk.salyk.kg:30040 [11:51:58]ConnectInit lk.salyk.kg [11:51:58]written 0, free lines is 4095 [11:51:58]Connected sock=11 [11:51: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 EF 93 07 01 0F 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 60 CC 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 38 97 20 86 2C 7C 1D E1 E2 5A EA 13 62 7F [11: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 74 57 47 00 8F 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 6B F1 02 00 F4 03 04 00 21 71 20 67 B6 04 01 00 00 08 5B 43 6A 5B 77 BD F1 [11:51:58]CommunicateWithHost err = 0 [11:51:58]CheckOFDResponse [11:51:58]1017 (14) - 77093643461234 [11:51:58]1041 (16) - 0000000000871754 [11:51:58]1040 (4) - 192875 [11:51:58]1012 (4) - 29.10.2024 05:22 [11:51:58]1206 (1) - 0 [11:51:58]OFD Sender: Remove packet 192875 [11:51:58]ProducePacketName [11:51:58]name=ofd_packets/00192875 [11:51:58]NVStorageDeleteData [11:51:58]Write to MH i2c: 01 00 00 CD 30 FD [11:51:58]Write i2c OK [11:51:58]MH_I2C_Read... [11:51:58]Read from MH i2c: 01 [11:51:58]MH_I2C_Read... [11:51:58]Read from MH i2c: 01 07 00 [11:51:58]MH_I2C_Read... [11:51:58]Read from MH i2c: 01 07 00 CD 30 00 00 00 00 00 AA 0C BA [11:51:58]RasterBufferAndPrint [11:51:58]line [11:51:58]line [11:51:58]line [11:51:58]line [11:51:58]line [11:51:58]written 0, free lines is 3245 [11:51:58]MH_Cut [11:51:58]Write to MH i2c: D1 01 00 D4 30 01 D6 [11:51:58]Write i2c OK [11:51:58]MH_I2C_Read... [11:51:58]Read from MH i2c: D1 [11:51:58]MH_I2C_Read... [11:51:58]Read from MH i2c: D1 01 00 [11:51:58]MH_I2C_Read... [11:51:58]Read from MH i2c: D1 01 00 D4 30 00 D5 [11:51:58]Write to MH i2c: 01 00 00 D5 30 05 [11:51:58]Write i2c OK [11:51:58]MH_I2C_Read... [11:51:58]OFD Sender: No OFD packet to send [11:51:59]*** Cut start [11:51:59]*** Partial cut [11:51:59]*** CUTSNS_PIN = 1 [11:51:59]*** CUTSNS_PIN = 0 [11:51:59]*** Brake cut motor [11:51:59]Read from MH i2c: 01 [11:52:00]MH_I2C_Read... [11:52:00]*** Stop cut motor [11:52:00]*** Cut end [11:52:00]Read from MH i2c: 01 07 00 [11:52:00]MH_I2C_Read... [11:52:00]Read from MH i2c: 01 07 00 D5 30 00 00 00 00 00 FF 0F 1A [11:52:00]process_action close_receipt done [11:52:00]requested_data is exist [11:52:00]produce_requested_data [11:52:00]requested_item fm.sn is exist - process it [11:52:00]wFMCommunicate request_size=4 [11:52:00]MH_SAM_APDU [11:52:00]CAPDU: 80 11 00 00 [11:52:00]Write to MH i2c: E2 08 00 D6 30 80 11 00 00 00 00 00 00 80 [11:52:00]Write i2c OK [11:52:00]MH_I2C_Read... [11:52:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:00]Read from MH i2c: E2 [11:52:00]MH_I2C_Read... [11:52:00]Read from MH i2c: E2 17 00 [11:52:00]MH_I2C_Read... [11:52:00]Read from MH i2c: E2 17 00 D6 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D3 [11:52: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:52:00]wFMCommunicate OK [11:52:00]requested_item fd.num is exist - process it [11:52:00]SAM_PROTO_GetFieldsCounters [11:52:00]wFMCommunicate request_size=4 [11:52:00]MH_SAM_APDU [11:52:00]CAPDU: 80 13 00 00 [11:52:00]Write to MH i2c: E2 08 00 D7 30 80 13 00 00 00 00 00 00 83 [11:52:00]Write i2c OK [11:52:00]MH_I2C_Read... [11:52:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:52:00]Read from MH i2c: E2 [11:52:00]MH_I2C_Read... [11:52:00]Read from MH i2c: E2 62 00 [11:52:00]MH_I2C_Read... [11:52:00]Read from MH i2c: E2 62 00 D7 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 6B F1 02 00 0E 04 04 00 20 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 1C [11:52: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 6B F1 02 00 0E 04 04 00 20 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:52:00]wFMCommunicate OK [11:52:00]SAM_PROTO_GetFieldsCounters done [11:52:00]requested_item shift.num is exist - process it [11:52:00]requested_item shift.opened is exist - process it [11:52:00]req_shift_opened [11:52:00]FM_GetShiftState [11:52:00]SAM_PROTO_GetShiftState [11:52:00]wFMCommunicate request_size=4 [11:52:00]MH_SAM_APDU [11:52:00]CAPDU: 80 13 01 00 [11:52:00]Write to MH i2c: E2 08 00 D8 30 80 13 01 00 00 00 00 00 85 [11:52:00]Write i2c OK [11:52:00]MH_I2C_Read... [11:52:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:00]Read from MH i2c: E2 [11:52:00]MH_I2C_Read... [11:52:00]Read from MH i2c: E2 0E 00 [11:52:00]MH_I2C_Read... [11:52:00]Read from MH i2c: E2 0E 00 D8 30 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 8B [11:52:00]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [11:52:00]wFMCommunicate OK [11:52:00]SAM_PROTO_GetShiftState done [11:52:00]FM_GetShiftState done [11:52:00]req_shift_opened done [11:52:00]requested_item shift.open_date is exist - process it [11:52:00]req_shift_open_date [11:52:00]req_shift_open_date done [11:52:00]produce_requested_data done [11:52:00]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192875,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [11:52:00]process_action_free close_receipt [11:52:00]json_value_free [11:52:00]json_value_free done [11:52:00]process_json_proto returns [11:52:00]Send response to host [11:52:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192875,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [11:52:00]free response buf [11:52:00]execute_script done [11:52:00]execute_script returns [11:52:00]free content buf [11:52:00]Sock 8.Close socket [11:52:00]Sock 8.Thread stoped [11:52:03]OFD Sender: No OFD packet to send [11:52:08]OFD Sender: No OFD packet to send [11:52:13]OFD Sender: No OFD packet to send [11:52:18]OFD Sender: No OFD packet to send [11:55:44]ConnectInit Can't connect to host [11:55:49]ConnectInit Can't take IP for lk.salyk.kg [11:55:49]CommunicateWithHost connect error [11:55:49]CommunicateWithHost err = -1 [11:55:49]OFD Sender: Server communicate error [11:55:54]OFD Sender: Processing packet 192876 [packets to send 75, broken 74] [11:55:54]ProducePacketName [11:55:54]name=ofd_packets/00192876 [11:55:54]OFD Sender: To server: ‡•öpG, [11:55:54]CommunicateWithHost lk.salyk.kg:30040 [11:55:54]ConnectInit lk.salyk.kg [11:55:54]Connected sock=8 [11:55:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 91 12 07 01 7D 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 A2 CC 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 DC E5 73 7E 95 63 E4 8C 35 CF 96 2E 56 DE [11:55: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 BF 7E 47 00 47 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 6C F1 02 00 F4 03 04 00 0D 72 20 67 B6 04 01 00 00 C9 B7 A6 D0 5F CE 62 09 [11:55:54]CommunicateWithHost err = 0 [11:55:54]CheckOFDResponse [11:55:54]1017 (14) - 77093643461234 [11:55:54]1041 (16) - 0000000000871754 [11:55:54]1040 (4) - 192876 [11:55:54]1012 (4) - 29.10.2024 05:26 [11:55:54]1206 (1) - 0 [11:55:54]OFD Sender: Remove packet 192876 [11:55:54]ProducePacketName [11:55:54]name=ofd_packets/00192876 [11:55:54]NVStorageDeleteData [11:55:55]OFD Sender: No OFD packet to send [11:56:00]OFD Sender: No OFD packet to send [11:56:05]OFD Sender: No OFD packet to send [11:56:10]OFD Sender: No OFD packet to send [11:56:15]OFD Sender: No OFD packet to send [11:56:20]OFD Sender: No OFD packet to send [11:56:25]OFD Sender: No OFD packet to send [11:56:30]OFD Sender: No OFD packet to send [11:56:35]OFD Sender: No OFD packet to send [11:56:40]OFD Sender: No OFD packet to send [11:56:45]OFD Sender: No OFD packet to send [11:56:50]OFD Sender: No OFD packet to send [11:56:55]OFD Sender: No OFD packet to send [11:57:00]OFD Sender: No OFD packet to send [11:57:05]OFD Sender: No OFD packet to send [11:57:10]OFD Sender: No OFD packet to send [11:57:15]OFD Sender: No OFD packet to send [11:57:20]OFD Sender: No OFD packet to send [11:57:25]OFD Sender: No OFD packet to send [11:57:30]OFD Sender: No OFD packet to send [11:57:35]OFD Sender: No OFD packet to send [11:57:40]OFD Sender: No OFD packet to send [11:57:45]OFD Sender: No OFD packet to send [11:57:50]OFD Sender: No OFD packet to send [11:57:55]OFD Sender: No OFD packet to send [11:58:00]OFD Sender: No OFD packet to send [11:58:05]OFD Sender: No OFD packet to send [11:58:10]OFD Sender: No OFD packet to send [11:58:15]OFD Sender: No OFD packet to send [11:58:20]OFD Sender: No OFD packet to send [11:58:25]OFD Sender: No OFD packet to send [11:58:30]OFD Sender: No OFD packet to send [11:58:35]OFD Sender: No OFD packet to send [11:58:40]OFD Sender: No OFD packet to send [11:58:45]OFD Sender: No OFD packet to send [11:58:50]OFD Sender: No OFD packet to send [11:58:55]OFD Sender: No OFD packet to send [11:59:00]OFD Sender: No OFD packet to send [11:59:05]OFD Sender: No OFD packet to send [11:59:10]OFD Sender: No OFD packet to send [11:59:15]OFD Sender: No OFD packet to send [11:59:20]OFD Sender: No OFD packet to send [11:59:25]OFD Sender: No OFD packet to send [11:59:30]OFD Sender: No OFD packet to send [11:59:35]OFD Sender: No OFD packet to send [11:59:40]OFD Sender: No OFD packet to send [11:59: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 [12:00:00]OFD Sender: No OFD packet to send [12:00:02]accept exits with 10 [12:00:02]New connection [12:00:02]New thread 3066658148 created [12:00:02]Thread 3066801508 joined [12:00:02]Waiting for new connection... [12:00:02] Sock 10.Parse request [12:00:02]Sock 10.Check first char [12:00:02]Sock 10.First char is OK [12:00:02]request: POST /json_proto HTTP/1.0 [12:00:02]Method: POST [12:00:02]URL: /json_proto [12:00:02]Method is POST - this is cgi request [12:00:02]url: /json_proto [12:00:02]query_string will be loaded in cgi processing [12:00:02]execute_cgi json_proto POST (null) [12:00:02]execute_cgi path=json_proto method=POST [12:00:02]POST find Content-Length [12:00:02]Host: 172.17.63.131:8080 [12:00:02]Content-Length: 670 [12:00:02]Content-Type: application/json [12:00:02] [12:00:02]POST finish read [12:00:02]Found Content-Length = 670 [12:00:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32207", "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" : 600.00, "total" : 0.00, "payments": [ { "type": 0, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:02]execute_script... [12: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)32207", "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" : 600.00, "total" : 0.00, "payments": [ { "type": 0, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:02]POST & json_proto [12:00:02]process_json_proto [12:00:02]json parsed OK: [12:00:02]protocol is kg_v1.0 [12:00:02]action value=close_receipt [12:00:02]process_action close_receipt [12:00:02]cmd_close_receipt [12:00:02]MH_GetDate [12:00:02]Write to MH i2c: F0 00 00 24 31 44 [12:00:02]Write i2c OK [12:00:02]MH_I2C_Read... [12:00:02]Read from MH i2c: F0 [12:00:02]MH_I2C_Read... [12:00:02]Read from MH i2c: F0 09 00 [12:00:02]MH_I2C_Read... [12:00:02]Read from MH i2c: F0 09 00 24 31 00 46 CE 20 67 22 05 6E 64 E1 [12:00:02]GetLastDocTimeStamp 1730202786 [12:00:02]current date 1730203206 [12:00:02]FM_GetShiftState [12:00:02]SAM_PROTO_GetShiftState [12:00:02]wFMCommunicate request_size=4 [12:00:02]MH_SAM_APDU [12:00:02]CAPDU: 80 13 01 00 [12:00:02]Write to MH i2c: E2 08 00 25 31 80 13 01 00 00 00 00 00 D3 [12:00:02]Write i2c OK [12:00:02]MH_I2C_Read... [12:00:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:02]Read from MH i2c: E2 [12:00:02]MH_I2C_Read... [12:00:02]Read from MH i2c: E2 0E 00 [12:00:02]MH_I2C_Read... [12:00:02]Read from MH i2c: E2 0E 00 25 31 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 D9 [12:00:02]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [12:00:02]wFMCommunicate OK [12:00:02]SAM_PROTO_GetShiftState done [12:00:02]FM_GetShiftState done [12:00:02]opened in 1730161990 [12:00:02]opened+sec_in_day 1730248390 [12:00:02]quantity*price = 66 [12:00:02]sum+1 = 68 [12:00:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.67 ИТОГО: 0.00 ВнеÑено: 600.00 СДÐЧÐ: 600.00 ÐСП 1% : 0.01 ÐДС 12% : 0.07 Ðаличными: 0.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 170 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 СÐО: Общий режим Чек 83 29.10.2024 12:00 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192877 ФПД: 151135796265541 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T120006&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192877&fm=151135796265541&tin=02508201610067®Number=0000000000091776&sum=0 [12:00:03]StoreToDocumentArchive [12:00:03]shift 544 fd 192877 [12:00:03]save to /storage/0544/doc_00192877 [12:00:03]save last doc name /storage/0544/doc_00192877 to /storage/kkm_last_doc_name [12:00:03]save OK [12:00:03]Clear old archive folders... [12:00:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:00:03]tlvbuf is 00F940A0 [12:00:03]SAM_PROTO_ClearQueue [12:00:03]wFMCommunicate request_size=4 [12:00:03]MH_SAM_APDU [12:00:03]CAPDU: 80 09 00 00 [12:00:03]Write to MH i2c: E2 08 00 32 31 80 09 00 00 00 00 00 00 D5 [12:00:03]Write i2c OK [12:00:03]MH_I2C_Read... [12:00:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:00:03]Read from MH i2c: E2 [12:00:03]MH_I2C_Read... [12:00:03]Read from MH i2c: E2 03 00 [12:00:03]MH_I2C_Read... [12:00:03]Read from MH i2c: E2 03 00 32 31 00 90 00 D7 [12:00:03]RAPDU: 90 00 [12:00:03]wFMCommunicate OK [12:00:03]SAM_PROTO_ClearQueue done [12:00:03]KKMCreateOFDPacket [12:00:03]OFDProtocolAddRootSTLVToBuf [12:00:03]FM_MakeSignedData [12:00:03]FM_MakeSignedData [12:00:03]SAM_PROTO_SignData [12:00:03]wFMCommunicate request_size=4 [12:00:03]MH_SAM_APDU [12:00:03]CAPDU: 80 0D 01 02 [12:00:03]Write to MH i2c: E2 08 00 33 31 80 0D 01 02 00 00 00 00 DD [12:00:03]Write i2c OK [12:00:03]MH_I2C_Read... [12:00:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:00:03]Read from MH i2c: E2 [12:00:03]MH_I2C_Read... [12:00:03]Read from MH i2c: E2 03 00 [12:00:03]MH_I2C_Read... [12:00:03]Read from MH i2c: E2 03 00 33 31 00 90 00 D8 [12:00:03]RAPDU: 90 00 [12:00:03]wFMCommunicate OK [12:00:03]wFMCommunicate request_size=255 [12:00:03]MH_SAM_APDU [12:00:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 53 00 00 00 F4 03 04 00 46 CE 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 89 [12:00:03]Write to MH i2c: E2 02 01 34 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 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 53 00 00 00 F4 03 04 00 46 CE 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 89 00 00 76 [12:00:03]Write i2c OK [12:00:03]MH_I2C_Read... [12:00:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:03]Read from MH i2c: E2 [12:00:03]MH_I2C_Read... [12:00:03]Read from MH i2c: E2 03 00 [12:00:03]MH_I2C_Read... [12:00:03]Read from MH i2c: E2 03 00 34 31 00 90 00 D9 [12:00:03]RAPDU: 90 00 [12:00:03]wFMCommunicate OK [12:00:03]wFMCommunicate request_size=10 [12:00:03]MH_SAM_APDU [12:00:03]CAPDU: 80 0D 02 02 05 75 0B 73 02 45 [12:00:03]Write to MH i2c: E2 0D 00 35 31 80 0D 02 02 05 00 75 0B 73 02 45 00 00 24 [12:00:03]Write i2c OK [12:00:03]MH_I2C_Read... [12:00:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:03]Read from MH i2c: E2 [12:00:03]MH_I2C_Read... [12:00:03]Read from MH i2c: E2 03 00 [12:00:03]MH_I2C_Read... [12:00:03]Read from MH i2c: E2 03 00 35 31 00 90 00 DA [12:00:03]RAPDU: 90 00 [12:00:03]wFMCommunicate OK [12:00:03]wFMCommunicate request_size=4 [12:00:03]MH_SAM_APDU [12:00:03]CAPDU: 80 0D 03 02 [12:00:03]Write to MH i2c: E2 08 00 36 31 80 0D 03 02 00 00 00 00 E2 [12:00:03]Write i2c OK [12:00:03]MH_I2C_Read... [12:00:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:00:03]Read from MH i2c: E2 [12:00:03]MH_I2C_Read... [12:00:03]Read from MH i2c: E2 0B 00 [12:00:03]MH_I2C_Read... [12:00:03]Read from MH i2c: E2 0B 00 36 31 00 22 D7 DA A7 4E 7C 8E 06 90 00 BB [12:00:03]RAPDU: 22 D7 DA A7 4E 7C 8E 06 90 00 [12:00:03]wFMCommunicate OK [12:00:03]SAM_PROTO_SignData done [12:00:03]FM_MakeSignedData done [12:00:03]CreateOFDProtocolMessage [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 37 31 80 11 00 00 00 00 00 00 E2 [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 37 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 35 [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]CreateOFDProtocolMessage done [12:00:03]OFDSenderStorePacket 192877 [12:00:03]StoreOFDPacket docnum=192877 [12:00: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 42 BF 07 01 CF 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 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 53 00 00 00 F4 03 04 00 46 CE 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 89 75 0B 73 02 45 22 D7 DA A7 4E 7C 8E 06 [12:00:03]CheckFolder [12:00:03]dirname=/storage/ofd_packets [12:00:03]CheckFolder done [12:00:03]ProducePacketName [12:00:03]name=ofd_packets/00192877 [12:00:03]NVStorageSaveData ofd_packets/00192877 [12:00:03]File name is /storage/ofd_packets/00192877 [12:00:03]Write 301 bytes [12:00:03]NVStorageSaveData done [12:00:03]OFDSenderStorePacket done [12:00:03]KKMCreateOFDPacket done [12:00:03]NVStorageSaveData kkm_last_timestamp [12:00:03]File name is /storage/kkm_last_timestamp [12:00:03]Write 4 bytes [12:00:03]NVStorageSaveData done [12:00:03]ExternCall_PrintAddStr [12:00:03]wPrintStart [12:00:03]Write to MH i2c: 01 00 00 38 31 69 [12:00:03]Write i2c OK [12:00:03]MH_I2C_Read... [12:00:03]Read from MH i2c: 01 [12:00:03]MH_I2C_Read... [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 38 31 00 00 00 00 00 FF 0F 7E [12:00:03]RasterBufferAndPrint [12:00:03]line Счет N : (1)32207 [12:00:03]line ИÐÐ: 02508201610067 [12:00:03]line Контрольно-КаÑÑовый Чек [12:00:03]line ПРОДÐЖР[12:00:03]line ТРК (МРК, ГÐК) : 12 [12:00:03]line Товар: 2710124130 [12:00:03]line Ðи-92-К-5 [12:00:03]line 0.010 * 66.90 [12:00:03]line = 0.67 [12:00:03]line ÐДС 12% ÐСП 1% [12:00:03]line > о реализуемом товаре [12:00:03]line ОКРУГЛЕÐИЕ: -0.67 [12:00:03]line ИТОГО: 0.00 [12:00:03]line ВнеÑено: 600.00 [12:00:03]line СДÐЧÐ: 600.00 [12:00:03]line ÐСП 1% : 0.01 [12:00:03]line ÐДС 12% : 0.07 [12:00:03]line Ðаличными: 0.00 [12:00:03]line Безнал.: 0.00 [12:00:03]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [12:00:03]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [12:00:03]line СÐО: Общий режим [12:00:03]line Чек 83 29.10.2024 12:00 [12:00:03]line Смена: 544 ФФД: 1.0 [12:00:03]line ЗÐМ: 0300000110 [12:00:03]line РÐМ: 0000000000091776 [12:00:03]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [12:00:03]line ФМ: 0000000000871754 [12:00:03]line ФД: 192877 [12:00:03]line ФПД: 151135796265541 [12:00:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T120006&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192877&fm=151135796265541&tin=02508201610067®Number=0000000000091776&sum=0 [12:00:03]written 0, free lines is 4095 [12:00:03]OFD Sender: Processing packet 192877 [packets to send 75, broken 74] [12:00:03]ProducePacketName [12:00:03]name=ofd_packets/00192877 [12:00:03]OFD Sender: To server: ‡•öpG, [12:00:03]CommunicateWithHost lk.salyk.kg:30040 [12:00:03]ConnectInit lk.salyk.kg [12:00:03]Connected sock=11 [12:00:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 42 BF 07 01 CF 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 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 53 00 00 00 F4 03 04 00 46 CE 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 89 75 0B 73 02 45 22 D7 DA A7 4E 7C 8E 06 [12:00:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 38 99 47 00 06 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6D F1 02 00 F4 03 04 00 07 73 20 67 B6 04 01 00 00 C5 6B 86 CD 42 F7 7F 0C [12:00:04]CommunicateWithHost err = 0 [12:00:04]CheckOFDResponse [12:00:04]1017 (14) - 77093643461234 [12:00:04]1041 (16) - 0000000000871754 [12:00:04]1040 (4) - 192877 [12:00:04]1012 (4) - 29.10.2024 05:30 [12:00:04]1206 (1) - 0 [12:00:04]OFD Sender: Remove packet 192877 [12:00:04]ProducePacketName [12:00:04]name=ofd_packets/00192877 [12:00:04]NVStorageDeleteData [12:00:04]Write to MH i2c: 01 00 00 63 31 94 [12:00:04]Write i2c OK [12:00:04]MH_I2C_Read... [12:00:04]Read from MH i2c: 01 [12:00:04]MH_I2C_Read... [12:00:04]Read from MH i2c: 01 07 00 [12:00:04]MH_I2C_Read... [12:00:04]Read from MH i2c: 01 07 00 63 31 00 00 00 00 00 AA 0C 51 [12:00:04]RasterBufferAndPrint [12:00:04]line [12:00:04]line [12:00:04]line [12:00:04]line [12:00:04]line [12:00:04]written 0, free lines is 3246 [12:00:04]MH_Cut [12:00:04]Write to MH i2c: D1 01 00 6A 31 01 6D [12:00:04]Write i2c OK [12:00:04]MH_I2C_Read... [12:00:04]Read from MH i2c: D1 [12:00:04]MH_I2C_Read... [12:00:04]Read from MH i2c: D1 01 00 [12:00:04]MH_I2C_Read... [12:00:04]Read from MH i2c: D1 01 00 6A 31 00 6C [12:00:04]Write to MH i2c: 01 00 00 6B 31 9C [12:00:04]Write i2c OK [12:00:04]MH_I2C_Read... [12:00:04]OFD Sender: No OFD packet to send [12:00:05]*** Cut start [12:00:05]*** Partial cut [12:00:05]*** CUTSNS_PIN = 1 [12:00:05]*** CUTSNS_PIN = 0 [12:00:05]*** Brake cut motor [12:00:05]Read from MH i2c: 01 [12:00:05]MH_I2C_Read... [12:00:05]*** Stop cut motor [12:00:05]*** Cut end [12:00:05]Read from MH i2c: 01 07 00 [12:00:05]MH_I2C_Read... [12:00:05]Read from MH i2c: 01 07 00 6B 31 00 00 00 00 00 FF 0F B1 [12:00:05]process_action close_receipt done [12:00:05]requested_data is exist [12:00:05]produce_requested_data [12:00:05]requested_item fm.sn is exist - process it [12:00:05]wFMCommunicate request_size=4 [12:00:05]MH_SAM_APDU [12:00:05]CAPDU: 80 11 00 00 [12:00:05]Write to MH i2c: E2 08 00 6C 31 80 11 00 00 00 00 00 00 17 [12:00:05]Write i2c OK [12:00:05]MH_I2C_Read... [12:00:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:05]Read from MH i2c: E2 [12:00:05]MH_I2C_Read... [12:00:05]Read from MH i2c: E2 17 00 [12:00:05]MH_I2C_Read... [12:00:05]Read from MH i2c: E2 17 00 6C 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6A [12:00:05]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:05]wFMCommunicate OK [12:00:05]requested_item fd.num is exist - process it [12:00:05]SAM_PROTO_GetFieldsCounters [12:00:05]wFMCommunicate request_size=4 [12:00:05]MH_SAM_APDU [12:00:05]CAPDU: 80 13 00 00 [12:00:05]Write to MH i2c: E2 08 00 6D 31 80 13 00 00 00 00 00 00 1A [12:00:05]Write i2c OK [12:00:05]MH_I2C_Read... [12:00:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:00:05]Read from MH i2c: E2 [12:00:05]MH_I2C_Read... [12:00:05]Read from MH i2c: E2 62 00 [12:00:05]MH_I2C_Read... [12:00:05]Read from MH i2c: E2 62 00 6D 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 6D F1 02 00 0E 04 04 00 20 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 BB [12:00: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 6D F1 02 00 0E 04 04 00 20 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 [12:00:05]wFMCommunicate OK [12:00:05]SAM_PROTO_GetFieldsCounters done [12:00:05]requested_item shift.num is exist - process it [12:00:05]requested_item shift.opened is exist - process it [12:00:05]req_shift_opened [12:00:05]FM_GetShiftState [12:00:05]SAM_PROTO_GetShiftState [12:00:05]wFMCommunicate request_size=4 [12:00:05]MH_SAM_APDU [12:00:05]CAPDU: 80 13 01 00 [12:00:05]Write to MH i2c: E2 08 00 6E 31 80 13 01 00 00 00 00 00 1C [12:00:05]Write i2c OK [12:00:05]MH_I2C_Read... [12:00:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:06]Read from MH i2c: E2 [12:00:06]MH_I2C_Read... [12:00:06]Read from MH i2c: E2 0E 00 [12:00:06]MH_I2C_Read... [12:00:06]Read from MH i2c: E2 0E 00 6E 31 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 22 [12:00:06]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [12:00:06]wFMCommunicate OK [12:00:06]SAM_PROTO_GetShiftState done [12:00:06]FM_GetShiftState done [12:00:06]req_shift_opened done [12:00:06]requested_item shift.open_date is exist - process it [12:00:06]req_shift_open_date [12:00:06]req_shift_open_date done [12:00:06]produce_requested_data done [12:00:06]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192877,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [12:00:06]process_action_free close_receipt [12:00:06]json_value_free [12:00:06]json_value_free done [12:00:06]process_json_proto returns [12:00:06]Send response to host [12:00:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192877,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [12:00:06]free response buf [12:00:06]execute_script done [12:00:06]execute_script returns [12:00:06]free content buf [12:00:06]Sock 10.Close socket [12:00:06]Sock 10.Thread stoped [12:00:09]OFD Sender: No OFD packet to send [12:00:14]OFD Sender: No OFD packet to send [12:00:19]OFD Sender: No OFD packet to send [12:00:24]OFD Sender: No OFD packet to send [12:00:29]OFD Sender: No OFD packet to send [12:00:34]OFD Sender: No OFD packet to send [12:00:36]accept exits with 8 [12:00:36]New connection [12:00:36]New thread 3066801508 created [12:00:36]Thread 3066658148 joined [12:00:36]Waiting for new connection... [12:00:36] Sock 8.Parse request [12:00:36]Sock 8.Check first char [12:00:36]Sock 8.First char is OK [12:00:36]request: POST /json_proto HTTP/1.0 [12:00:36]Method: POST [12:00:36]URL: /json_proto [12:00:36]Method is POST - this is cgi request [12:00:36]url: /json_proto [12:00:36]query_string will be loaded in cgi processing [12:00:36]execute_cgi json_proto POST (null) [12:00:36]execute_cgi path=json_proto method=POST [12:00:36]POST find Content-Length [12:00:36]Host: 172.17.63.131:8080 [12:00:36]Content-Length: 676 [12:00:36]Content-Type: application/json [12:00:36] [12:00:36]POST finish read [12:00:36]Found Content-Length = 676 [12:00:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32208", "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:00:36]execute_script... [12:00: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)32208", "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:00:36]POST & json_proto [12:00:36]process_json_proto [12:00:36]json parsed OK: [12:00:36]protocol is kg_v1.0 [12:00:36]action value=close_receipt [12:00:36]process_action close_receipt [12:00:36]cmd_close_receipt [12:00:36]MH_GetDate [12:00:36]Write to MH i2c: F0 00 00 6F 31 8F [12:00:36]Write i2c OK [12:00:36]MH_I2C_Read... [12:00:36]Read from MH i2c: F0 [12:00:36]MH_I2C_Read... [12:00:36]Read from MH i2c: F0 09 00 [12:00:36]MH_I2C_Read... [12:00:36]Read from MH i2c: F0 09 00 6F 31 00 68 CE 20 67 22 05 6E 64 4E [12:00:36]GetLastDocTimeStamp 1730203206 [12:00:36]current date 1730203240 [12:00:36]FM_GetShiftState [12:00:36]SAM_PROTO_GetShiftState [12:00:36]wFMCommunicate request_size=4 [12:00:36]MH_SAM_APDU [12:00:36]CAPDU: 80 13 01 00 [12:00:36]Write to MH i2c: E2 08 00 70 31 80 13 01 00 00 00 00 00 1E [12:00:36]Write i2c OK [12:00:36]MH_I2C_Read... [12:00:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:36]Read from MH i2c: E2 [12:00:36]MH_I2C_Read... [12:00:36]Read from MH i2c: E2 0E 00 [12:00:36]MH_I2C_Read... [12:00:36]Read from MH i2c: E2 0E 00 70 31 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 24 [12:00:36]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [12:00:36]wFMCommunicate OK [12:00:36]SAM_PROTO_GetShiftState done [12:00:36]FM_GetShiftState done [12:00:36]opened in 1730161990 [12:00:36]opened+sec_in_day 1730248390 [12:00:36]quantity*price = 60009 [12:00:36]sum+1 = 60010 [12:00:36]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 СÐО: Общий режим Чек 84 29.10.2024 12:00 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192878 ФПД: 202547235944943 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T120040&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192878&fm=202547235944943&tin=02508201610067®Number=0000000000091776&sum=60000 [12:00:37]StoreToDocumentArchive [12:00:37]shift 544 fd 192878 [12:00:37]save to /storage/0544/doc_00192878 [12:00:37]save last doc name /storage/0544/doc_00192878 to /storage/kkm_last_doc_name [12:00:37]save OK [12:00:37]Clear old archive folders... [12:00:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:00:37]tlvbuf is 00F6FD40 [12:00:37]SAM_PROTO_ClearQueue [12:00:37]wFMCommunicate request_size=4 [12:00:37]MH_SAM_APDU [12:00:37]CAPDU: 80 09 00 00 [12:00:37]Write to MH i2c: E2 08 00 7D 31 80 09 00 00 00 00 00 00 20 [12:00:37]Write i2c OK [12:00:37]MH_I2C_Read... [12:00:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:00:37]Read from MH i2c: E2 [12:00:37]MH_I2C_Read... [12:00:37]Read from MH i2c: E2 03 00 [12:00:37]MH_I2C_Read... [12:00:37]Read from MH i2c: E2 03 00 7D 31 00 90 00 22 [12:00:37]RAPDU: 90 00 [12:00:37]wFMCommunicate OK [12:00:37]SAM_PROTO_ClearQueue done [12:00:37]KKMCreateOFDPacket [12:00:37]OFDProtocolAddRootSTLVToBuf [12:00:37]FM_MakeSignedData [12:00:37]FM_MakeSignedData [12:00:37]SAM_PROTO_SignData [12:00:37]wFMCommunicate request_size=4 [12:00:37]MH_SAM_APDU [12:00:37]CAPDU: 80 0D 01 02 [12:00:37]Write to MH i2c: E2 08 00 7E 31 80 0D 01 02 00 00 00 00 28 [12:00:37]Write i2c OK [12:00:37]MH_I2C_Read... [12:00:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:00:37]Read from MH i2c: E2 [12:00:37]MH_I2C_Read... [12:00:37]Read from MH i2c: E2 03 00 [12:00:37]MH_I2C_Read... [12:00:37]Read from MH i2c: E2 03 00 7E 31 00 90 00 23 [12:00:37]RAPDU: 90 00 [12:00:37]wFMCommunicate OK [12:00:37]wFMCommunicate request_size=255 [12:00:37]MH_SAM_APDU [12:00: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 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 54 00 00 00 F4 03 04 00 68 CE 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 B8 [12:00:37]Write to MH i2c: E2 02 01 7F 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 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 54 00 00 00 F4 03 04 00 68 CE 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 B8 00 00 E5 [12:00:37]Write i2c OK [12:00:37]MH_I2C_Read... [12:00:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:37]Read from MH i2c: E2 [12:00:37]MH_I2C_Read... [12:00:37]Read from MH i2c: E2 03 00 [12:00:37]MH_I2C_Read... [12:00:37]Read from MH i2c: E2 03 00 7F 31 00 90 00 24 [12:00:37]RAPDU: 90 00 [12:00:37]wFMCommunicate OK [12:00:37]wFMCommunicate request_size=10 [12:00:37]MH_SAM_APDU [12:00:37]CAPDU: 80 0D 02 02 05 37 34 0C 79 EF [12:00:37]Write to MH i2c: E2 0D 00 80 31 80 0D 02 02 05 00 37 34 0C 79 EF 00 00 14 [12:00:37]Write i2c OK [12:00:37]MH_I2C_Read... [12:00:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:37]Read from MH i2c: E2 [12:00:37]MH_I2C_Read... [12:00:37]Read from MH i2c: E2 03 00 [12:00:37]MH_I2C_Read... [12:00:37]Read from MH i2c: E2 03 00 80 31 00 90 00 25 [12:00:37]RAPDU: 90 00 [12:00:37]wFMCommunicate OK [12:00:37]wFMCommunicate request_size=4 [12:00:37]MH_SAM_APDU [12:00:37]CAPDU: 80 0D 03 02 [12:00:37]Write to MH i2c: E2 08 00 81 31 80 0D 03 02 00 00 00 00 2D [12:00:37]Write i2c OK [12:00:37]MH_I2C_Read... [12:00:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:00:37]Read from MH i2c: E2 [12:00:37]MH_I2C_Read... [12:00:37]Read from MH i2c: E2 0B 00 [12:00:37]MH_I2C_Read... [12:00:37]Read from MH i2c: E2 0B 00 81 31 00 61 09 F1 84 FC DF 1A DE 90 00 E0 [12:00:37]RAPDU: 61 09 F1 84 FC DF 1A DE 90 00 [12:00:37]wFMCommunicate OK [12:00:37]SAM_PROTO_SignData done [12:00:37]FM_MakeSignedData done [12:00:37]CreateOFDProtocolMessage [12:00:37]wFMCommunicate request_size=4 [12:00:37]MH_SAM_APDU [12:00:37]CAPDU: 80 11 00 00 [12:00:37]Write to MH i2c: E2 08 00 82 31 80 11 00 00 00 00 00 00 2D [12:00:37]Write i2c OK [12:00:37]MH_I2C_Read... [12:00:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:37]Read from MH i2c: E2 [12:00:37]MH_I2C_Read... [12:00:37]Read from MH i2c: E2 17 00 [12:00:37]MH_I2C_Read... [12:00:37]Read from MH i2c: E2 17 00 82 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 80 [12:00: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:00:37]wFMCommunicate OK [12:00:37]CreateOFDProtocolMessage done [12:00:37]OFDSenderStorePacket 192878 [12:00:37]StoreOFDPacket docnum=192878 [12:00: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 EB 19 07 01 88 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 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 54 00 00 00 F4 03 04 00 68 CE 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 B8 37 34 0C 79 EF 61 09 F1 84 FC DF 1A DE [12:00:37]CheckFolder [12:00:37]dirname=/storage/ofd_packets [12:00:37]CheckFolder done [12:00:37]ProducePacketName [12:00:37]name=ofd_packets/00192878 [12:00:37]NVStorageSaveData ofd_packets/00192878 [12:00:37]File name is /storage/ofd_packets/00192878 [12:00:37]Write 301 bytes [12:00:37]NVStorageSaveData done [12:00:37]OFDSenderStorePacket done [12:00:37]KKMCreateOFDPacket done [12:00:37]NVStorageSaveData kkm_last_timestamp [12:00:37]File name is /storage/kkm_last_timestamp [12:00:37]Write 4 bytes [12:00:37]NVStorageSaveData done [12:00:37]ExternCall_PrintAddStr [12:00:37]wPrintStart [12:00:37]Write to MH i2c: 01 00 00 83 31 B4 [12:00:37]Write i2c OK [12:00:37]MH_I2C_Read... [12:00:37]Read from MH i2c: 01 [12:00:37]MH_I2C_Read... [12:00:37]Read from MH i2c: 01 07 00 [12:00:37]MH_I2C_Read... [12:00:37]Read from MH i2c: 01 07 00 83 31 00 00 00 00 00 FF 0F C9 [12:00:37]RasterBufferAndPrint [12:00:37]line Счет N : (1)32208 [12:00:37]line ИÐÐ: 02508201610067 [12:00:37]line Контрольно-КаÑÑовый Чек [12:00:37]line ПРОДÐЖР[12:00:37]line ТРК (МРК, ГÐК) : 12 [12:00:37]line Товар: 2710124130 [12:00:37]line Ðи-92-К-5 [12:00:37]line 8.970 * 66.90 [12:00:37]line = 600.09 [12:00:37]line ÐДС 12% ÐСП 1% [12:00:37]line > о реализуемом товаре [12:00:37]line ОКРУГЛЕÐИЕ: -0.09 [12:00:37]line ИТОГО: 600.00 [12:00:37]line ВнеÑено: 600.00 [12:00:37]line СДÐЧÐ: 0.00 [12:00:37]line ÐСП 1% : 5.31 [12:00:37]line ÐДС 12% : 63.73 [12:00:37]line Ðаличными: 600.00 [12:00:37]line Безнал.: 0.00 [12:00:37]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [12:00:37]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [12:00:37]line СÐО: Общий режим [12:00:37]line Чек 84 29.10.2024 12:00 [12:00:37]line Смена: 544 ФФД: 1.0 [12:00:37]line ЗÐМ: 0300000110 [12:00:37]line РÐМ: 0000000000091776 [12:00:37]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [12:00:37]line ФМ: 0000000000871754 [12:00:37]line ФД: 192878 [12:00:37]line ФПД: 202547235944943 [12:00:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T120040&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192878&fm=202547235944943&tin=02508201610067®Number=0000000000091776&sum=60000 [12:00:38]OFD Sender: Processing packet 192878 [packets to send 75, broken 74] [12:00:38]ProducePacketName [12:00:38]name=ofd_packets/00192878 [12:00:38]OFD Sender: To server: ‡•öpG, [12:00:38]CommunicateWithHost lk.salyk.kg:30040 [12:00:38]ConnectInit lk.salyk.kg [12:00:38]written 0, free lines is 4095 [12:00:38]Connected sock=10 [12:00: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 EB 19 07 01 88 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 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 54 00 00 00 F4 03 04 00 68 CE 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 B8 37 34 0C 79 EF 61 09 F1 84 FC DF 1A DE [12:00: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 49 0A 47 00 FC 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 6E F1 02 00 F4 03 04 00 29 73 20 67 B6 04 01 00 00 78 79 4F 2B 49 BB 6B 28 [12:00:38]CommunicateWithHost err = 0 [12:00:38]CheckOFDResponse [12:00:38]1017 (14) - 77093643461234 [12:00:38]1041 (16) - 0000000000871754 [12:00:38]1040 (4) - 192878 [12:00:38]1012 (4) - 29.10.2024 05:31 [12:00:38]1206 (1) - 0 [12:00:38]OFD Sender: Remove packet 192878 [12:00:38]ProducePacketName [12:00:38]name=ofd_packets/00192878 [12:00:38]NVStorageDeleteData [12:00:38]Write to MH i2c: 01 00 00 AE 31 DF [12:00:38]Write i2c OK [12:00:38]MH_I2C_Read... [12:00:38]Read from MH i2c: 01 [12:00:38]MH_I2C_Read... [12:00:38]Read from MH i2c: 01 07 00 [12:00:38]MH_I2C_Read... [12:00:38]Read from MH i2c: 01 07 00 AE 31 00 00 00 00 00 A8 0C 9A [12:00:38]RasterBufferAndPrint [12:00:38]line [12:00:38]line [12:00:38]line [12:00:38]line [12:00:38]line [12:00:38]written 0, free lines is 3245 [12:00:38]MH_Cut [12:00:38]Write to MH i2c: D1 01 00 B5 31 01 B8 [12:00:38]Write i2c OK [12:00:38]MH_I2C_Read... [12:00:38]Read from MH i2c: D1 [12:00:38]MH_I2C_Read... [12:00:38]Read from MH i2c: D1 01 00 [12:00:38]MH_I2C_Read... [12:00:38]Read from MH i2c: D1 01 00 B5 31 00 B7 [12:00:38]Write to MH i2c: 01 00 00 B6 31 E7 [12:00:38]Write i2c OK [12:00:38]MH_I2C_Read... [12:00:39]OFD Sender: No OFD packet to send [12:00:39]*** Cut start [12:00:39]*** Partial cut [12:00:39]*** CUTSNS_PIN = 1 [12:00:39]*** CUTSNS_PIN = 0 [12:00:39]*** Brake cut motor [12:00:40]Read from MH i2c: 01 [12:00:40]MH_I2C_Read... [12:00:40]*** Stop cut motor [12:00:40]*** Cut end [12:00:40]Read from MH i2c: 01 07 00 [12:00:40]MH_I2C_Read... [12:00:40]Read from MH i2c: 01 07 00 B6 31 00 00 00 00 00 FF 0F FC [12:00:40]process_action close_receipt done [12:00:40]requested_data is exist [12:00:40]produce_requested_data [12:00:40]requested_item fm.sn is exist - process it [12:00:40]wFMCommunicate request_size=4 [12:00:40]MH_SAM_APDU [12:00:40]CAPDU: 80 11 00 00 [12:00:40]Write to MH i2c: E2 08 00 B7 31 80 11 00 00 00 00 00 00 62 [12:00:40]Write i2c OK [12:00:40]MH_I2C_Read... [12:00:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:40]Read from MH i2c: E2 [12:00:40]MH_I2C_Read... [12:00:40]Read from MH i2c: E2 17 00 [12:00:40]MH_I2C_Read... [12:00:40]Read from MH i2c: E2 17 00 B7 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B5 [12: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 [12:00:40]wFMCommunicate OK [12:00:40]requested_item fd.num is exist - process it [12:00:40]SAM_PROTO_GetFieldsCounters [12:00:40]wFMCommunicate request_size=4 [12:00:40]MH_SAM_APDU [12:00:40]CAPDU: 80 13 00 00 [12:00:40]Write to MH i2c: E2 08 00 B8 31 80 13 00 00 00 00 00 00 65 [12:00:40]Write i2c OK [12:00:40]MH_I2C_Read... [12:00:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:00:40]Read from MH i2c: E2 [12:00:40]MH_I2C_Read... [12:00:40]Read from MH i2c: E2 62 00 [12:00:40]MH_I2C_Read... [12:00:40]Read from MH i2c: E2 62 00 B8 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 6E F1 02 00 0E 04 04 00 20 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 0A [12:00: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 6E F1 02 00 0E 04 04 00 20 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 [12:00:40]wFMCommunicate OK [12:00:40]SAM_PROTO_GetFieldsCounters done [12:00:40]requested_item shift.num is exist - process it [12:00:40]requested_item shift.opened is exist - process it [12:00:40]req_shift_opened [12:00:40]FM_GetShiftState [12:00:40]SAM_PROTO_GetShiftState [12:00:40]wFMCommunicate request_size=4 [12:00:40]MH_SAM_APDU [12:00:40]CAPDU: 80 13 01 00 [12:00:40]Write to MH i2c: E2 08 00 B9 31 80 13 01 00 00 00 00 00 67 [12:00:40]Write i2c OK [12:00:40]MH_I2C_Read... [12:00:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:40]Read from MH i2c: E2 [12:00:40]MH_I2C_Read... [12:00:40]Read from MH i2c: E2 0E 00 [12:00:40]MH_I2C_Read... [12:00:40]Read from MH i2c: E2 0E 00 B9 31 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 6D [12:00:40]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [12:00:40]wFMCommunicate OK [12:00:40]SAM_PROTO_GetShiftState done [12:00:40]FM_GetShiftState done [12:00:40]req_shift_opened done [12:00:40]requested_item shift.open_date is exist - process it [12:00:40]req_shift_open_date [12:00:40]req_shift_open_date done [12:00:40]produce_requested_data done [12:00:40]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192878,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [12:00:40]process_action_free close_receipt [12:00:40]json_value_free [12:00:40]json_value_free done [12:00:40]process_json_proto returns [12:00:40]Send response to host [12:00:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192878,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [12:00:40]free response buf [12:00:40]execute_script done [12:00:40]execute_script returns [12:00:40]free content buf [12:00:40]Sock 8.Close socket [12:00:40]Sock 8.Thread stoped [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:08]accept exits with 9 [12:01:08]New connection [12:01:08]New thread 3066658148 created [12:01:08]Thread 3066801508 joined [12:01:08]Waiting for new connection... [12:01:08] Sock 9.Parse request [12:01:08]Sock 9.Check first char [12:01:08]Sock 9.First char is OK [12:01:08]request: POST /json_proto HTTP/1.0 [12:01:08]Method: POST [12:01:08]URL: /json_proto [12:01:08]Method is POST - this is cgi request [12:01:08]url: /json_proto [12:01:08]query_string will be loaded in cgi processing [12:01:08]execute_cgi json_proto POST (null) [12:01:08]execute_cgi path=json_proto method=POST [12:01:08]POST find Content-Length [12:01:08]Host: 172.17.63.131:8080 [12:01:08]Content-Length: 676 [12:01:08]Content-Type: application/json [12:01:08] [12:01:08]POST finish read [12:01:08]Found Content-Length = 676 [12:01:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32209", "tax_sys" : 0, "items" : [ { "pre_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:01:08]execute_script... [12:01: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)32209", "tax_sys" : 0, "items" : [ { "pre_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:01:08]POST & json_proto [12:01:08]process_json_proto [12:01:08]json parsed OK: [12:01:08]protocol is kg_v1.0 [12:01:08]action value=close_receipt [12:01:08]process_action close_receipt [12:01:08]cmd_close_receipt [12:01:08]MH_GetDate [12:01:08]Write to MH i2c: F0 00 00 BA 31 DA [12:01:08]Write i2c OK [12:01:08]MH_I2C_Read... [12:01:08]Read from MH i2c: F0 [12:01:08]MH_I2C_Read... [12:01:08]Read from MH i2c: F0 09 00 [12:01:08]MH_I2C_Read... [12:01:08]Read from MH i2c: F0 09 00 BA 31 00 89 CE 20 67 22 05 6E 64 BA [12:01:08]GetLastDocTimeStamp 1730203240 [12:01:08]current date 1730203273 [12:01:08]FM_GetShiftState [12:01:08]SAM_PROTO_GetShiftState [12:01:08]wFMCommunicate request_size=4 [12:01:08]MH_SAM_APDU [12:01:08]CAPDU: 80 13 01 00 [12:01:08]Write to MH i2c: E2 08 00 BB 31 80 13 01 00 00 00 00 00 69 [12:01:08]Write i2c OK [12:01:08]MH_I2C_Read... [12:01:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:08]Read from MH i2c: E2 [12:01:08]MH_I2C_Read... [12:01:08]Read from MH i2c: E2 0E 00 [12:01:08]MH_I2C_Read... [12:01:08]Read from MH i2c: E2 0E 00 BB 31 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 6F [12:01:08]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [12:01:08]wFMCommunicate OK [12:01:08]SAM_PROTO_GetShiftState done [12:01:08]FM_GetShiftState done [12:01:08]opened in 1730161990 [12:01:08]opened+sec_in_day 1730248390 [12:01:08]quantity*price = 50041 [12:01:08]sum+1 = 50042 [12:01: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 СÐО: Общий режим Чек 85 29.10.2024 12:01 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192879 ФПД: 141546025426641 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T120113&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192879&fm=141546025426641&tin=02508201610067®Number=0000000000091776&sum=50000 [12:01:09]StoreToDocumentArchive [12:01:09]shift 544 fd 192879 [12:01:09]save to /storage/0544/doc_00192879 [12:01:09]save last doc name /storage/0544/doc_00192879 to /storage/kkm_last_doc_name [12:01:09]save OK [12:01:09]Clear old archive folders... [12:01:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:01:09]tlvbuf is B6D835D0 [12:01:09]SAM_PROTO_ClearQueue [12:01:09]wFMCommunicate request_size=4 [12:01:09]MH_SAM_APDU [12:01:09]CAPDU: 80 09 00 00 [12:01:09]Write to MH i2c: E2 08 00 C8 31 80 09 00 00 00 00 00 00 6B [12:01:09]Write i2c OK [12:01:09]MH_I2C_Read... [12:01:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:01:09]Read from MH i2c: E2 [12:01:09]MH_I2C_Read... [12:01:09]Read from MH i2c: E2 03 00 [12:01:09]MH_I2C_Read... [12:01:09]Read from MH i2c: E2 03 00 C8 31 00 90 00 6D [12:01:09]RAPDU: 90 00 [12:01:09]wFMCommunicate OK [12:01:09]SAM_PROTO_ClearQueue done [12:01:09]KKMCreateOFDPacket [12:01:09]OFDProtocolAddRootSTLVToBuf [12:01:09]FM_MakeSignedData [12:01:09]FM_MakeSignedData [12:01:09]SAM_PROTO_SignData [12:01:09]wFMCommunicate request_size=4 [12:01:09]MH_SAM_APDU [12:01:09]CAPDU: 80 0D 01 02 [12:01:09]Write to MH i2c: E2 08 00 C9 31 80 0D 01 02 00 00 00 00 73 [12:01:09]Write i2c OK [12:01:09]MH_I2C_Read... [12:01:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:01:09]Read from MH i2c: E2 [12:01:09]MH_I2C_Read... [12:01:09]Read from MH i2c: E2 03 00 [12:01:09]MH_I2C_Read... [12:01:09]Read from MH i2c: E2 03 00 C9 31 00 90 00 6E [12:01:09]RAPDU: 90 00 [12:01:09]wFMCommunicate OK [12:01:09]wFMCommunicate request_size=255 [12:01:09]MH_SAM_APDU [12:01: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 55 00 00 00 F4 03 04 00 89 CE 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 80 [12:01:09]Write to MH i2c: E2 02 01 CA 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 55 00 00 00 F4 03 04 00 89 CE 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 80 00 00 3E [12:01:09]Write i2c OK [12:01:09]MH_I2C_Read... [12:01:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:10]Read from MH i2c: E2 [12:01:10]MH_I2C_Read... [12:01:10]Read from MH i2c: E2 03 00 [12:01:10]MH_I2C_Read... [12:01:10]Read from MH i2c: E2 03 00 CA 31 00 90 00 6F [12:01:10]RAPDU: 90 00 [12:01:10]wFMCommunicate OK [12:01:10]wFMCommunicate request_size=10 [12:01:10]MH_SAM_APDU [12:01:10]CAPDU: 80 0D 02 02 05 BC 40 90 9E D1 [12:01:10]Write to MH i2c: E2 0D 00 CB 31 80 0D 02 02 05 00 BC 40 90 9E D1 00 00 7B [12:01:10]Write i2c OK [12:01:10]MH_I2C_Read... [12:01:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:10]Read from MH i2c: E2 [12:01:10]MH_I2C_Read... [12:01:10]Read from MH i2c: E2 03 00 [12:01:10]MH_I2C_Read... [12:01:10]Read from MH i2c: E2 03 00 CB 31 00 90 00 70 [12:01:10]RAPDU: 90 00 [12:01:10]wFMCommunicate OK [12:01:10]wFMCommunicate request_size=4 [12:01:10]MH_SAM_APDU [12:01:10]CAPDU: 80 0D 03 02 [12:01:10]Write to MH i2c: E2 08 00 CC 31 80 0D 03 02 00 00 00 00 78 [12:01:10]Write i2c OK [12:01:10]MH_I2C_Read... [12:01:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:01:10]Read from MH i2c: E2 [12:01:10]MH_I2C_Read... [12:01:10]Read from MH i2c: E2 0B 00 [12:01:10]MH_I2C_Read... [12:01:10]Read from MH i2c: E2 0B 00 CC 31 00 D2 E8 8D AB 18 A9 D5 04 90 00 05 [12:01:10]RAPDU: D2 E8 8D AB 18 A9 D5 04 90 00 [12:01:10]wFMCommunicate OK [12:01:10]SAM_PROTO_SignData done [12:01:10]FM_MakeSignedData done [12:01:10]CreateOFDProtocolMessage [12:01:10]wFMCommunicate request_size=4 [12:01:10]MH_SAM_APDU [12:01:10]CAPDU: 80 11 00 00 [12:01:10]Write to MH i2c: E2 08 00 CD 31 80 11 00 00 00 00 00 00 78 [12:01:10]Write i2c OK [12:01:10]MH_I2C_Read... [12:01:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:10]Read from MH i2c: E2 [12:01:10]MH_I2C_Read... [12:01:10]Read from MH i2c: E2 17 00 [12:01:10]MH_I2C_Read... [12:01:10]Read from MH i2c: E2 17 00 CD 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CB [12:01: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:01:10]wFMCommunicate OK [12:01:10]CreateOFDProtocolMessage done [12:01:10]OFDSenderStorePacket 192879 [12:01:10]StoreOFDPacket docnum=192879 [12:01: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 B3 82 07 01 C0 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 89 CE 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 80 BC 40 90 9E D1 D2 E8 8D AB 18 A9 D5 04 [12:01:10]CheckFolder [12:01:10]dirname=/storage/ofd_packets [12:01:10]CheckFolder done [12:01:10]ProducePacketName [12:01:10]name=ofd_packets/00192879 [12:01:10]NVStorageSaveData ofd_packets/00192879 [12:01:10]File name is /storage/ofd_packets/00192879 [12:01:10]Write 301 bytes [12:01:10]NVStorageSaveData done [12:01:10]OFDSenderStorePacket done [12:01:10]KKMCreateOFDPacket done [12:01:10]NVStorageSaveData kkm_last_timestamp [12:01:10]File name is /storage/kkm_last_timestamp [12:01:10]Write 4 bytes [12:01:10]NVStorageSaveData done [12:01:10]ExternCall_PrintAddStr [12:01:10]wPrintStart [12:01:10]Write to MH i2c: 01 00 00 CE 31 FF [12:01:10]Write i2c OK [12:01:10]MH_I2C_Read... [12:01:10]Read from MH i2c: 01 [12:01:10]MH_I2C_Read... [12:01:10]Read from MH i2c: 01 07 00 [12:01:10]MH_I2C_Read... [12:01:10]Read from MH i2c: 01 07 00 CE 31 00 00 00 00 00 FF 0F 14 [12:01:10]RasterBufferAndPrint [12:01:10]line Счет N : (1)32209 [12:01:10]line ИÐÐ: 02508201610067 [12:01:10]line Контрольно-КаÑÑовый Чек [12:01:10]line ПРОДÐЖР[12:01:10]line ТРК (МРК, ГÐК) : 21 [12:01:10]line Товар: 2710124130 [12:01:10]line Ðи-92-К-5 [12:01:10]line 7.480 * 66.90 [12:01:10]line = 500.41 [12:01:10]line ÐДС 12% ÐСП 1% [12:01:10]line > о реализуемом товаре [12:01:10]line ОКРУГЛЕÐИЕ: -0.41 [12:01:10]line ИТОГО: 500.00 [12:01:10]line ВнеÑено: 500.00 [12:01:10]line СДÐЧÐ: 0.00 [12:01:10]line ÐСП 1% : 4.43 [12:01:10]line ÐДС 12% : 53.14 [12:01:10]line Ðаличными: 500.00 [12:01:10]line Безнал.: 0.00 [12:01:10]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [12:01:10]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [12:01:10]line СÐО: Общий режим [12:01:10]line Чек 85 29.10.2024 12:01 [12:01:10]line Смена: 544 ФФД: 1.0 [12:01:10]line ЗÐМ: 0300000110 [12:01:10]line РÐМ: 0000000000091776 [12:01:10]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [12:01:10]line ФМ: 0000000000871754 [12:01:10]line ФД: 192879 [12:01:10]line ФПД: 141546025426641 [12:01:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T120113&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192879&fm=141546025426641&tin=02508201610067®Number=0000000000091776&sum=50000 [12:01:10]OFD Sender: Processing packet 192879 [packets to send 75, broken 74] [12:01:10]ProducePacketName [12:01:10]name=ofd_packets/00192879 [12:01:10]OFD Sender: To server: ‡•öpG, [12:01:10]CommunicateWithHost lk.salyk.kg:30040 [12:01:10]ConnectInit lk.salyk.kg [12:01:10]written 0, free lines is 4095 [12:01:10]Connected sock=10 [12:01: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 B3 82 07 01 C0 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 89 CE 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 80 BC 40 90 9E D1 D2 E8 8D AB 18 A9 D5 04 [12:01: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 9C AB 47 00 84 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 6F F1 02 00 F4 03 04 00 4A 73 20 67 B6 04 01 00 00 D5 04 98 6A 74 6B E9 0D [12:01:11]CommunicateWithHost err = 0 [12:01:11]CheckOFDResponse [12:01:11]1017 (14) - 77093643461234 [12:01:11]1041 (16) - 0000000000871754 [12:01:11]1040 (4) - 192879 [12:01:11]1012 (4) - 29.10.2024 05:31 [12:01:11]1206 (1) - 0 [12:01:11]OFD Sender: Remove packet 192879 [12:01:11]ProducePacketName [12:01:11]name=ofd_packets/00192879 [12:01:11]NVStorageDeleteData [12:01:11]Write to MH i2c: 01 00 00 F9 31 2A [12:01:11]Write i2c OK [12:01:11]MH_I2C_Read... [12:01:11]Read from MH i2c: 01 [12:01:11]MH_I2C_Read... [12:01:11]Read from MH i2c: 01 07 00 [12:01:11]MH_I2C_Read... [12:01:11]Read from MH i2c: 01 07 00 F9 31 00 00 00 00 00 A7 0C E4 [12:01:11]RasterBufferAndPrint [12:01:11]line [12:01:11]line [12:01:11]line [12:01:11]line [12:01:11]line [12:01:11]written 0, free lines is 3245 [12:01:11]MH_Cut [12:01:11]Write to MH i2c: D1 01 00 00 32 01 04 [12:01:11]Write i2c OK [12:01:11]MH_I2C_Read... [12:01:11]Read from MH i2c: D1 [12:01:11]MH_I2C_Read... [12:01:11]Read from MH i2c: D1 01 00 [12:01:11]MH_I2C_Read... [12:01:11]Read from MH i2c: D1 01 00 00 32 00 03 [12:01:11]Write to MH i2c: 01 00 00 01 32 33 [12:01:11]Write i2c OK [12:01:11]MH_I2C_Read... [12:01:11]OFD Sender: No OFD packet to send [12:01:12]*** Cut start [12:01:12]*** Partial cut [12:01:12]*** CUTSNS_PIN = 1 [12:01:12]*** CUTSNS_PIN = 0 [12:01:12]*** Brake cut motor [12:01:12]Read from MH i2c: 01 [12:01:12]MH_I2C_Read... [12:01:12]*** Stop cut motor [12:01:12]*** Cut end [12:01:12]Read from MH i2c: 01 07 00 [12:01:12]MH_I2C_Read... [12:01:12]Read from MH i2c: 01 07 00 01 32 00 00 00 00 00 FF 0F 48 [12:01:12]process_action close_receipt done [12:01:12]requested_data is exist [12:01:12]produce_requested_data [12:01:12]requested_item fm.sn is exist - process it [12:01:12]wFMCommunicate request_size=4 [12:01:12]MH_SAM_APDU [12:01:12]CAPDU: 80 11 00 00 [12:01:12]Write to MH i2c: E2 08 00 02 32 80 11 00 00 00 00 00 00 AE [12:01:12]Write i2c OK [12:01:12]MH_I2C_Read... [12:01:12]Read from MH i2c: E2 [12:01:12]MH_I2C_Read... [12:01:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:12]Read from MH i2c: E2 17 00 [12:01:12]MH_I2C_Read... [12:01:12]Read from MH i2c: E2 17 00 02 32 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:01:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:01:12]wFMCommunicate OK [12:01:12]requested_item fd.num is exist - process it [12:01:12]SAM_PROTO_GetFieldsCounters [12:01:12]wFMCommunicate request_size=4 [12:01:12]MH_SAM_APDU [12:01:12]CAPDU: 80 13 00 00 [12:01:12]Write to MH i2c: E2 08 00 03 32 80 13 00 00 00 00 00 00 B1 [12:01:12]Write i2c OK [12:01:12]MH_I2C_Read... [12:01:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:01:12]Read from MH i2c: E2 [12:01:12]MH_I2C_Read... [12:01:12]Read from MH i2c: E2 62 00 [12:01:12]MH_I2C_Read... [12:01:12]Read from MH i2c: E2 62 00 03 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 6F F1 02 00 0E 04 04 00 20 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 5A [12:01: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 6F F1 02 00 0E 04 04 00 20 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 [12:01:12]wFMCommunicate OK [12:01:12]SAM_PROTO_GetFieldsCounters done [12:01:12]requested_item shift.num is exist - process it [12:01:12]requested_item shift.opened is exist - process it [12:01:12]req_shift_opened [12:01:12]FM_GetShiftState [12:01:12]SAM_PROTO_GetShiftState [12:01:12]wFMCommunicate request_size=4 [12:01:12]MH_SAM_APDU [12:01:12]CAPDU: 80 13 01 00 [12:01:12]Write to MH i2c: E2 08 00 04 32 80 13 01 00 00 00 00 00 B3 [12:01:12]Write i2c OK [12:01:12]MH_I2C_Read... [12:01:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:12]Read from MH i2c: E2 [12:01:12]MH_I2C_Read... [12:01:12]Read from MH i2c: E2 0E 00 [12:01:12]MH_I2C_Read... [12:01:12]Read from MH i2c: E2 0E 00 04 32 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 B9 [12:01:12]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [12:01:12]wFMCommunicate OK [12:01:12]SAM_PROTO_GetShiftState done [12:01:12]FM_GetShiftState done [12:01:12]req_shift_opened done [12:01:12]requested_item shift.open_date is exist - process it [12:01:12]req_shift_open_date [12:01:12]req_shift_open_date done [12:01:12]produce_requested_data done [12:01:12]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192879,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [12:01:12]process_action_free close_receipt [12:01:12]json_value_free [12:01:12]json_value_free done [12:01:12]process_json_proto returns [12:01:12]Send response to host [12:01:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192879,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [12:01:12]free response buf [12:01:12]execute_script done [12:01:12]execute_script returns [12:01:12]free content buf [12:01:12]Sock 9.Close socket [12:01:12]Sock 9.Thread stoped [12:01:16]OFD Sender: No OFD packet to send [12:01:21]OFD Sender: No OFD packet to send [12:01:26]OFD Sender: No OFD packet to send [12:01:31]OFD Sender: No OFD packet to send [12:01:36]OFD Sender: No OFD packet to send [12:01:41]OFD Sender: No OFD packet to send [12:01:46]OFD Sender: No OFD packet to send [12:01:51]OFD Sender: No OFD packet to send [12:01:56]OFD Sender: No OFD packet to send [12:02:01]OFD Sender: No OFD packet to send [12:02:06]OFD Sender: No OFD packet to send [12:02:11]OFD Sender: No OFD packet to send [12:02:16]OFD Sender: No OFD packet to send [12:02:21]OFD Sender: No OFD packet to send [12:02:26]OFD Sender: No OFD packet to send [12:02:31]OFD Sender: No OFD packet to send [12:02:36]OFD Sender: No OFD packet to send [12:02:41]OFD Sender: No OFD packet to send [12:02:46]OFD Sender: No OFD packet to send [12:02:51]OFD Sender: No OFD packet to send [12:02:56]OFD Sender: No OFD packet to send [12:03:01]OFD Sender: No OFD packet to send [12:03:06]OFD Sender: No OFD packet to send [12:03:11]OFD Sender: No OFD packet to send [12:03:16]OFD Sender: No OFD packet to send [12:03:21]OFD Sender: No OFD packet to send [12:03:26]OFD Sender: No OFD packet to send [12:03:31]OFD Sender: No OFD packet to send [12:03:36]OFD Sender: No OFD packet to send [12:03:41]OFD Sender: No OFD packet to send [12:03:46]OFD Sender: No OFD packet to send [12:03:51]OFD Sender: No OFD packet to send [12:03:56]OFD Sender: No OFD packet to send [12:04:01]OFD Sender: No OFD packet to send [12:04:06]OFD Sender: No OFD packet to send [12:04:11]OFD Sender: No OFD packet to send [12:04:16]OFD Sender: No OFD packet to send [12:04:21]OFD Sender: No OFD packet to send [12:04:26]OFD Sender: No OFD packet to send [12:04:31]OFD Sender: No OFD packet to send [12:04:36]OFD Sender: No OFD packet to send [12:04:41]OFD Sender: No OFD packet to send [12:04:46]OFD Sender: No OFD packet to send [12:04:51]OFD Sender: No OFD packet to send [12:04:56]OFD Sender: No OFD packet to send [12:05:01]OFD Sender: No OFD packet to send [12:05:03]accept exits with 8 [12:05:03]New connection [12:05:03]New thread 3066801508 created [12:05:03]Thread 3066658148 joined [12:05:03]Waiting for new connection... [12:05:03] Sock 8.Parse request [12:05:03]Sock 8.Check first char [12:05:03]Sock 8.First char is OK [12:05:03]request: POST /json_proto HTTP/1.0 [12:05:03]Method: POST [12:05:03]URL: /json_proto [12:05:03]Method is POST - this is cgi request [12:05:03]url: /json_proto [12:05:03]query_string will be loaded in cgi processing [12:05:03]execute_cgi json_proto POST (null) [12:05:03]execute_cgi path=json_proto method=POST [12:05:03]POST find Content-Length [12:05:03]Host: 172.17.63.131:8080 [12:05:03]Content-Length: 676 [12:05:03]Content-Type: application/json [12:05:03] [12:05:03]POST finish read [12:05:03]Found Content-Length = 676 [12:05:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32210", "tax_sys" : 0, "items" : [ { "pre_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:05:03]execute_script... [12:05:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32210", "tax_sys" : 0, "items" : [ { "pre_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:05:03]POST & json_proto [12:05:03]process_json_proto [12:05:03]json parsed OK: [12:05:03]protocol is kg_v1.0 [12:05:03]action value=close_receipt [12:05:03]process_action close_receipt [12:05:03]cmd_close_receipt [12:05:03]MH_GetDate [12:05:03]Write to MH i2c: F0 00 00 05 32 26 [12:05:03]Write i2c OK [12:05:03]MH_I2C_Read... [12:05:03]Read from MH i2c: F0 [12:05:03]MH_I2C_Read... [12:05:03]Read from MH i2c: F0 09 00 [12:05:03]MH_I2C_Read... [12:05:03]Read from MH i2c: F0 09 00 05 32 00 74 CF 20 67 22 05 6E 64 F2 [12:05:03]GetLastDocTimeStamp 1730203273 [12:05:03]current date 1730203508 [12:05:03]FM_GetShiftState [12:05:03]SAM_PROTO_GetShiftState [12:05:03]wFMCommunicate request_size=4 [12:05:03]MH_SAM_APDU [12:05:03]CAPDU: 80 13 01 00 [12:05:03]Write to MH i2c: E2 08 00 06 32 80 13 01 00 00 00 00 00 B5 [12:05:03]Write i2c OK [12:05:03]MH_I2C_Read... [12:05:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:03]Read from MH i2c: E2 [12:05:03]MH_I2C_Read... [12:05:03]Read from MH i2c: E2 0E 00 [12:05:03]MH_I2C_Read... [12:05:03]Read from MH i2c: E2 0E 00 06 32 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 BB [12:05:03]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [12:05:03]wFMCommunicate OK [12:05:03]SAM_PROTO_GetShiftState done [12:05:03]FM_GetShiftState done [12:05:03]opened in 1730161990 [12:05:03]opened+sec_in_day 1730248390 [12:05:03]quantity*price = 50041 [12:05:03]sum+1 = 50042 [12:05:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.41 ИТОГО: 500.00 ВнеÑено: 500.00 СДÐЧÐ: 0.00 ÐСП 1% : 4.43 ÐДС 12% : 53.14 Ðаличными: 500.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 170 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 СÐО: Общий режим Чек 86 29.10.2024 12:05 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192880 ФПД: 107153193048667 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T120508&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192880&fm=107153193048667&tin=02508201610067®Number=0000000000091776&sum=50000 [12:05:05]StoreToDocumentArchive [12:05:05]shift 544 fd 192880 [12:05:05]save to /storage/0544/doc_00192880 [12:05:05]save last doc name /storage/0544/doc_00192880 to /storage/kkm_last_doc_name [12:05:05]save OK [12:05:05]Clear old archive folders... [12:05:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:05:05]tlvbuf is 00FDE020 [12:05:05]SAM_PROTO_ClearQueue [12:05:05]wFMCommunicate request_size=4 [12:05:05]MH_SAM_APDU [12:05:05]CAPDU: 80 09 00 00 [12:05:05]Write to MH i2c: E2 08 00 13 32 80 09 00 00 00 00 00 00 B7 [12:05:05]Write i2c OK [12:05:05]MH_I2C_Read... [12:05:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:05:05]Read from MH i2c: E2 [12:05:05]MH_I2C_Read... [12:05:05]Read from MH i2c: E2 03 00 [12:05:05]MH_I2C_Read... [12:05:05]Read from MH i2c: E2 03 00 13 32 00 90 00 B9 [12:05:05]RAPDU: 90 00 [12:05:05]wFMCommunicate OK [12:05:05]SAM_PROTO_ClearQueue done [12:05:05]KKMCreateOFDPacket [12:05:05]OFDProtocolAddRootSTLVToBuf [12:05:05]FM_MakeSignedData [12:05:05]FM_MakeSignedData [12:05:05]SAM_PROTO_SignData [12:05:05]wFMCommunicate request_size=4 [12:05:05]MH_SAM_APDU [12:05:05]CAPDU: 80 0D 01 02 [12:05:05]Write to MH i2c: E2 08 00 14 32 80 0D 01 02 00 00 00 00 BF [12:05:05]Write i2c OK [12:05:05]MH_I2C_Read... [12:05:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:05:05]Read from MH i2c: E2 [12:05:05]MH_I2C_Read... [12:05:05]Read from MH i2c: E2 03 00 [12:05:05]MH_I2C_Read... [12:05:05]Read from MH i2c: E2 03 00 14 32 00 90 00 BA [12:05:05]RAPDU: 90 00 [12:05:05]wFMCommunicate OK [12:05:05]wFMCommunicate request_size=255 [12:05:05]MH_SAM_APDU [12: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 74 CF 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 61 [12:05:05]Write to MH i2c: E2 02 01 15 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 74 CF 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 61 00 00 59 [12:05:05]Write i2c OK [12:05:05]MH_I2C_Read... [12:05:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:05]Read from MH i2c: E2 [12:05:05]MH_I2C_Read... [12:05:05]Read from MH i2c: E2 03 00 [12:05:05]MH_I2C_Read... [12:05:05]Read from MH i2c: E2 03 00 15 32 00 90 00 BB [12:05:05]RAPDU: 90 00 [12:05:05]wFMCommunicate OK [12:05:05]wFMCommunicate request_size=10 [12:05:05]MH_SAM_APDU [12:05:05]CAPDU: 80 0D 02 02 05 74 8C 02 1A 5B [12:05:05]Write to MH i2c: E2 0D 00 16 32 80 0D 02 02 05 00 74 8C 02 1A 5B 00 00 43 [12:05:05]Write i2c OK [12:05:05]MH_I2C_Read... [12:05:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:05]Read from MH i2c: E2 [12:05:05]MH_I2C_Read... [12:05:05]Read from MH i2c: E2 03 00 [12:05:05]MH_I2C_Read... [12:05:05]Read from MH i2c: E2 03 00 16 32 00 90 00 BC [12:05:05]RAPDU: 90 00 [12:05:05]wFMCommunicate OK [12:05:05]wFMCommunicate request_size=4 [12:05:05]MH_SAM_APDU [12:05:05]CAPDU: 80 0D 03 02 [12:05:05]Write to MH i2c: E2 08 00 17 32 80 0D 03 02 00 00 00 00 C4 [12:05:05]Write i2c OK [12:05:05]MH_I2C_Read... [12:05:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:05:05]Read from MH i2c: E2 [12:05:05]MH_I2C_Read... [12:05:05]Read from MH i2c: E2 0B 00 [12:05:05]MH_I2C_Read... [12:05:05]Read from MH i2c: E2 0B 00 17 32 00 40 ED 7A 57 00 FB 9F 7A 90 00 D7 [12:05:05]RAPDU: 40 ED 7A 57 00 FB 9F 7A 90 00 [12:05:05]wFMCommunicate OK [12:05:05]SAM_PROTO_SignData done [12:05:05]FM_MakeSignedData done [12:05:05]CreateOFDProtocolMessage [12:05:05]wFMCommunicate request_size=4 [12:05:05]MH_SAM_APDU [12:05:05]CAPDU: 80 11 00 00 [12:05:05]Write to MH i2c: E2 08 00 18 32 80 11 00 00 00 00 00 00 C4 [12:05:05]Write i2c OK [12:05:05]MH_I2C_Read... [12:05:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:05]Read from MH i2c: E2 [12:05:05]MH_I2C_Read... [12:05:05]Read from MH i2c: E2 17 00 [12:05:05]MH_I2C_Read... [12:05:05]Read from MH i2c: E2 17 00 18 32 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:05:05]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:05]wFMCommunicate OK [12:05:05]CreateOFDProtocolMessage done [12:05:05]OFDSenderStorePacket 192880 [12:05:05]StoreOFDPacket docnum=192880 [12:05: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 6E 41 07 01 CF 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 74 CF 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 61 74 8C 02 1A 5B 40 ED 7A 57 00 FB 9F 7A [12:05:05]CheckFolder [12:05:05]dirname=/storage/ofd_packets [12:05:05]CheckFolder done [12:05:05]ProducePacketName [12:05:05]name=ofd_packets/00192880 [12:05:05]NVStorageSaveData ofd_packets/00192880 [12:05:05]File name is /storage/ofd_packets/00192880 [12:05:05]Write 301 bytes [12:05:05]NVStorageSaveData done [12:05:05]OFDSenderStorePacket done [12:05:05]KKMCreateOFDPacket done [12:05:05]NVStorageSaveData kkm_last_timestamp [12:05:05]File name is /storage/kkm_last_timestamp [12:05:05]Write 4 bytes [12:05:05]NVStorageSaveData done [12:05:05]ExternCall_PrintAddStr [12:05:05]wPrintStart [12:05:05]Write to MH i2c: 01 00 00 19 32 4B [12:05:05]Write i2c OK [12:05:05]MH_I2C_Read... [12:05:05]Read from MH i2c: 01 [12:05:05]MH_I2C_Read... [12:05:05]Read from MH i2c: 01 07 00 [12:05:05]MH_I2C_Read... [12:05:05]Read from MH i2c: 01 07 00 19 32 00 00 00 00 00 FF 0F 60 [12:05:05]RasterBufferAndPrint [12:05:05]line Счет N : (1)32210 [12:05:05]line ИÐÐ: 02508201610067 [12:05:05]line Контрольно-КаÑÑовый Чек [12:05:05]line ПРОДÐЖР[12:05:05]line ТРК (МРК, ГÐК) : 21 [12:05:05]line Товар: 2710124130 [12:05:05]line Ðи-92-К-5 [12:05:05]line 7.480 * 66.90 [12:05:05]line = 500.41 [12:05:05]line ÐДС 12% ÐСП 1% [12:05:05]line > о реализуемом товаре [12:05:05]line ОКРУГЛЕÐИЕ: -0.41 [12:05:05]line ИТОГО: 500.00 [12:05:05]line ВнеÑено: 500.00 [12:05:05]line СДÐЧÐ: 0.00 [12:05:05]line ÐСП 1% : 4.43 [12:05:05]line ÐДС 12% : 53.14 [12:05:05]line Ðаличными: 500.00 [12:05:05]line Безнал.: 0.00 [12:05:05]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [12:05:05]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [12:05:05]line СÐО: Общий режим [12:05:05]line Чек 86 29.10.2024 12:05 [12:05:05]line Смена: 544 ФФД: 1.0 [12:05:05]line ЗÐМ: 0300000110 [12:05:05]line РÐМ: 0000000000091776 [12:05:05]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [12:05:05]line ФМ: 0000000000871754 [12:05:05]line ФД: 192880 [12:05:05]line ФПД: 107153193048667 [12:05:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T120508&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192880&fm=107153193048667&tin=02508201610067®Number=0000000000091776&sum=50000 [12:05:05]OFD Sender: Processing packet 192880 [packets to send 75, broken 74] [12:05:05]ProducePacketName [12:05:05]name=ofd_packets/00192880 [12:05:05]OFD Sender: To server: ‡•öpG, [12:05:05]CommunicateWithHost lk.salyk.kg:30040 [12:05:05]ConnectInit lk.salyk.kg [12:05:05]written 0, free lines is 4095 [12:05:06]Connected sock=10 [12: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 6E 41 07 01 CF 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 74 CF 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 61 74 8C 02 1A 5B 40 ED 7A 57 00 FB 9F 7A [12: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 39 61 47 00 AB 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 70 F1 02 00 F4 03 04 00 35 74 20 67 B6 04 01 00 00 44 32 63 7B 06 3B 06 C7 [12:05:06]CommunicateWithHost err = 0 [12:05:06]CheckOFDResponse [12:05:06]1017 (14) - 77093643461234 [12:05:06]1041 (16) - 0000000000871754 [12:05:06]1040 (4) - 192880 [12:05:06]1012 (4) - 29.10.2024 05:35 [12:05:06]1206 (1) - 0 [12:05:06]OFD Sender: Remove packet 192880 [12:05:06]ProducePacketName [12:05:06]name=ofd_packets/00192880 [12:05:06]NVStorageDeleteData [12:05:06]Write to MH i2c: 01 00 00 44 32 76 [12:05:06]Write i2c OK [12:05:06]MH_I2C_Read... [12:05:06]Read from MH i2c: 01 [12:05:06]MH_I2C_Read... [12:05:06]Read from MH i2c: 01 07 00 [12:05:06]MH_I2C_Read... [12:05:06]Read from MH i2c: 01 07 00 44 32 00 00 00 00 00 B0 0C 39 [12:05:06]RasterBufferAndPrint [12:05:06]line [12:05:06]line [12:05:06]line [12:05:06]line [12:05:06]line [12:05:06]written 0, free lines is 3253 [12:05:06]MH_Cut [12:05:06]Write to MH i2c: D1 01 00 4B 32 01 4F [12:05:06]Write i2c OK [12:05:06]MH_I2C_Read... [12:05:06]Read from MH i2c: D1 [12:05:06]MH_I2C_Read... [12:05:06]Read from MH i2c: D1 01 00 [12:05:06]MH_I2C_Read... [12:05:06]Read from MH i2c: D1 01 00 4B 32 00 4E [12:05:06]Write to MH i2c: 01 00 00 4C 32 7E [12:05:06]Write i2c OK [12:05:06]MH_I2C_Read... [12:05:06]OFD Sender: No OFD packet to send [12:05:07]*** Cut start [12:05:07]*** Partial cut [12:05:07]*** CUTSNS_PIN = 1 [12:05:07]*** CUTSNS_PIN = 0 [12:05:07]*** Brake cut motor [12:05:07]Read from MH i2c: 01 [12:05:07]MH_I2C_Read... [12:05:07]*** Stop cut motor [12:05:07]*** Cut end [12:05:07]Read from MH i2c: 01 07 00 [12:05:07]MH_I2C_Read... [12:05:07]Read from MH i2c: 01 07 00 4C 32 00 00 00 00 00 FF 0F 93 [12:05:07]process_action close_receipt done [12:05:07]requested_data is exist [12:05:07]produce_requested_data [12:05:07]requested_item fm.sn is exist - process it [12:05:07]wFMCommunicate request_size=4 [12:05:07]MH_SAM_APDU [12:05:07]CAPDU: 80 11 00 00 [12:05:07]Write to MH i2c: E2 08 00 4D 32 80 11 00 00 00 00 00 00 F9 [12:05:07]Write i2c OK [12:05:07]MH_I2C_Read... [12:05:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:07]Read from MH i2c: E2 [12:05:07]MH_I2C_Read... [12:05:07]Read from MH i2c: E2 17 00 [12:05:07]MH_I2C_Read... [12:05:07]Read from MH i2c: E2 17 00 4D 32 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:05: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:05:07]wFMCommunicate OK [12:05:07]requested_item fd.num is exist - process it [12:05:07]SAM_PROTO_GetFieldsCounters [12:05:07]wFMCommunicate request_size=4 [12:05:07]MH_SAM_APDU [12:05:07]CAPDU: 80 13 00 00 [12:05:07]Write to MH i2c: E2 08 00 4E 32 80 13 00 00 00 00 00 00 FC [12:05:07]Write i2c OK [12:05:07]MH_I2C_Read... [12:05:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:05:08]Read from MH i2c: E2 [12:05:08]MH_I2C_Read... [12:05:08]Read from MH i2c: E2 62 00 [12:05:08]MH_I2C_Read... [12:05:08]Read from MH i2c: E2 62 00 4E 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 70 F1 02 00 0E 04 04 00 20 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 A9 [12: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 70 F1 02 00 0E 04 04 00 20 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 [12:05:08]wFMCommunicate OK [12:05:08]SAM_PROTO_GetFieldsCounters done [12:05:08]requested_item shift.num is exist - process it [12:05:08]requested_item shift.opened is exist - process it [12:05:08]req_shift_opened [12:05:08]FM_GetShiftState [12:05:08]SAM_PROTO_GetShiftState [12:05:08]wFMCommunicate request_size=4 [12:05:08]MH_SAM_APDU [12:05:08]CAPDU: 80 13 01 00 [12:05:08]Write to MH i2c: E2 08 00 4F 32 80 13 01 00 00 00 00 00 FE [12:05:08]Write i2c OK [12:05:08]MH_I2C_Read... [12:05:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:08]Read from MH i2c: E2 [12:05:08]MH_I2C_Read... [12:05:08]Read from MH i2c: E2 0E 00 [12:05:08]MH_I2C_Read... [12:05:08]Read from MH i2c: E2 0E 00 4F 32 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 04 [12:05:08]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [12:05:08]wFMCommunicate OK [12:05:08]SAM_PROTO_GetShiftState done [12:05:08]FM_GetShiftState done [12:05:08]req_shift_opened done [12:05:08]requested_item shift.open_date is exist - process it [12:05:08]req_shift_open_date [12:05:08]req_shift_open_date done [12:05:08]produce_requested_data done [12:05:08]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192880,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [12:05:08]process_action_free close_receipt [12:05:08]json_value_free [12:05:08]json_value_free done [12:05:08]process_json_proto returns [12:05:08]Send response to host [12:05:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192880,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [12:05:08]free response buf [12:05:08]execute_script done [12:05:08]execute_script returns [12:05:08]free content buf [12:05:08]Sock 8.Close socket [12:05:08]Sock 8.Thread stoped [12:05:11]OFD Sender: No OFD packet to send [12:05:16]OFD Sender: No OFD packet to send [12:05:21]OFD Sender: No OFD packet to send [12:05:26]OFD Sender: No OFD packet to send [12:05:31]OFD Sender: No OFD packet to send [12:05:36]OFD Sender: No OFD packet to send [12:05:41]OFD Sender: No OFD packet to send [12:05:46]OFD Sender: No OFD packet to send [12:05:51]OFD Sender: No OFD packet to send [12:05:56]OFD Sender: No OFD packet to send [12:06:01]OFD Sender: No OFD packet to send [12:06:06]OFD Sender: No OFD packet to send [12:06:11]OFD Sender: No OFD packet to send [12:06:16]OFD Sender: No OFD packet to send [12:06:21]OFD Sender: No OFD packet to send [12:06:26]OFD Sender: No OFD packet to send [12:06:31]OFD Sender: No OFD packet to send [12:06:36]OFD Sender: No OFD packet to send [12:06:41]OFD Sender: No OFD packet to send [12:06:46]OFD Sender: No OFD packet to send [12:06: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:31]OFD Sender: No OFD packet to send [12:07:36]OFD Sender: No OFD packet to send [12:07:41]OFD Sender: No OFD packet to send [12:07:46]OFD Sender: No OFD packet to send [12:07:51]OFD Sender: No OFD packet to send [12:07:56]OFD Sender: No OFD packet to send [12:08:01]OFD Sender: No OFD packet to send [12:08:06]OFD Sender: No OFD packet to send [12:08:11]OFD Sender: No OFD packet to send [12:08:16]OFD Sender: No OFD packet to send [12:08:21]OFD Sender: No OFD packet to send [12:08:26]OFD Sender: No OFD packet to send [12:08:31]OFD Sender: No OFD packet to send [12:08:36]OFD Sender: No OFD packet to send [12:08:41]OFD Sender: No OFD packet to send [12:08:46]OFD Sender: No OFD packet to send [12:08:51]OFD Sender: No OFD packet to send [12:08:56]OFD Sender: No OFD packet to send [12:09:01]OFD Sender: No OFD packet to send [12:09:06]OFD Sender: No OFD packet to send [12:09:11]OFD Sender: No OFD packet to send [12:09:16]OFD Sender: No OFD packet to send [12:09:22]OFD Sender: No OFD packet to send [12:09:27]OFD Sender: No OFD packet to send [12:09:32]OFD Sender: No OFD packet to send [12:09:37]OFD Sender: No OFD packet to send [12:09:42]OFD Sender: No OFD packet to send [12:09:47]OFD Sender: No OFD packet to send [12:09:52]OFD Sender: No OFD packet to send [12:09:57]OFD Sender: No OFD packet to send [12:10:02]OFD Sender: No OFD packet to send [12:10:07]OFD Sender: No OFD packet to send [12:10:12]OFD Sender: No OFD packet to send [12:10:17]OFD Sender: No OFD packet to send [12:10:18]accept exits with 9 [12:10:18]New connection [12:10:18]New thread 3066658148 created [12:10:18]Thread 3066801508 joined [12:10:18]Waiting for new connection... [12:10:18] Sock 9.Parse request [12:10:18]Sock 9.Check first char [12:10:18]Sock 9.First char is OK [12:10:18]request: POST /json_proto HTTP/1.0 [12:10:18]Method: POST [12:10:18]URL: /json_proto [12:10:18]Method is POST - this is cgi request [12:10:18]url: /json_proto [12:10:18]query_string will be loaded in cgi processing [12:10:18]execute_cgi json_proto POST (null) [12:10:18]execute_cgi path=json_proto method=POST [12:10:18]POST find Content-Length [12:10:18]Host: 172.17.63.131:8080 [12:10:18]Content-Length: 676 [12:10:18]Content-Type: application/json [12:10:18] [12:10:18]POST finish read [12:10:18]Found Content-Length = 676 [12:10:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32211", "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:10:18]execute_script... [12:10: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)32211", "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:10:18]POST & json_proto [12:10:18]process_json_proto [12:10:18]json parsed OK: [12:10:18]protocol is kg_v1.0 [12:10:18]action value=close_receipt [12:10:18]process_action close_receipt [12:10:18]cmd_close_receipt [12:10:18]MH_GetDate [12:10:18]Write to MH i2c: F0 00 00 50 32 71 [12:10:18]Write i2c OK [12:10:18]MH_I2C_Read... [12:10:18]Read from MH i2c: F0 [12:10:18]MH_I2C_Read... [12:10:18]Read from MH i2c: F0 09 00 [12:10:18]MH_I2C_Read... [12:10:18]Read from MH i2c: F0 09 00 50 32 00 AF D0 20 67 22 05 6E 64 79 [12:10:18]GetLastDocTimeStamp 1730203508 [12:10:18]current date 1730203823 [12:10:18]FM_GetShiftState [12:10:18]SAM_PROTO_GetShiftState [12:10:18]wFMCommunicate request_size=4 [12:10:18]MH_SAM_APDU [12:10:18]CAPDU: 80 13 01 00 [12:10:18]Write to MH i2c: E2 08 00 51 32 80 13 01 00 00 00 00 00 00 [12:10:18]Write i2c OK [12:10:18]MH_I2C_Read... [12:10:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:18]Read from MH i2c: E2 [12:10:18]MH_I2C_Read... [12:10:18]Read from MH i2c: E2 0E 00 [12:10:18]MH_I2C_Read... [12:10:18]Read from MH i2c: E2 0E 00 51 32 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 06 [12:10:18]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [12:10:18]wFMCommunicate OK [12:10:18]SAM_PROTO_GetShiftState done [12:10:18]FM_GetShiftState done [12:10:18]opened in 1730161990 [12:10:18]opened+sec_in_day 1730248390 [12:10:18]quantity*price = 50041 [12:10:18]sum+1 = 50042 [12:10: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 СÐО: Общий режим Чек 87 29.10.2024 12:10 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192881 ФПД: 223006916416831 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T121023&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192881&fm=223006916416831&tin=02508201610067®Number=0000000000091776&sum=50000 [12:10:19]StoreToDocumentArchive [12:10:19]shift 544 fd 192881 [12:10:19]save to /storage/0544/doc_00192881 [12:10:19]save last doc name /storage/0544/doc_00192881 to /storage/kkm_last_doc_name [12:10:19]save OK [12:10:19]Clear old archive folders... [12:10:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:10:19]tlvbuf is 00F99E70 [12:10:19]SAM_PROTO_ClearQueue [12:10:19]wFMCommunicate request_size=4 [12:10:19]MH_SAM_APDU [12:10:19]CAPDU: 80 09 00 00 [12:10:19]Write to MH i2c: E2 08 00 5E 32 80 09 00 00 00 00 00 00 02 [12:10:19]Write i2c OK [12:10:19]MH_I2C_Read... [12:10:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:10:19]Read from MH i2c: E2 [12:10:19]MH_I2C_Read... [12:10:19]Read from MH i2c: E2 03 00 [12:10:19]MH_I2C_Read... [12:10:19]Read from MH i2c: E2 03 00 5E 32 00 90 00 04 [12:10:19]RAPDU: 90 00 [12:10:19]wFMCommunicate OK [12:10:19]SAM_PROTO_ClearQueue done [12:10:19]KKMCreateOFDPacket [12:10:19]OFDProtocolAddRootSTLVToBuf [12:10:19]FM_MakeSignedData [12:10:19]FM_MakeSignedData [12:10:19]SAM_PROTO_SignData [12:10:19]wFMCommunicate request_size=4 [12:10:19]MH_SAM_APDU [12:10:19]CAPDU: 80 0D 01 02 [12:10:19]Write to MH i2c: E2 08 00 5F 32 80 0D 01 02 00 00 00 00 0A [12:10:19]Write i2c OK [12:10:19]MH_I2C_Read... [12:10:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:10:19]Read from MH i2c: E2 [12:10:19]MH_I2C_Read... [12:10:19]Read from MH i2c: E2 03 00 [12:10:19]MH_I2C_Read... [12:10:19]Read from MH i2c: E2 03 00 5F 32 00 90 00 05 [12:10:19]RAPDU: 90 00 [12:10:19]wFMCommunicate OK [12:10:19]wFMCommunicate request_size=255 [12:10:19]MH_SAM_APDU [12:10: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 57 00 00 00 F4 03 04 00 AF D0 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 CA [12:10:19]Write to MH i2c: E2 02 01 60 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 AF D0 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 CA 00 00 4B [12:10:19]Write i2c OK [12:10:19]MH_I2C_Read... [12:10:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:20]Read from MH i2c: E2 [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: E2 03 00 [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: E2 03 00 60 32 00 90 00 06 [12:10:20]RAPDU: 90 00 [12:10:20]wFMCommunicate OK [12:10:20]wFMCommunicate request_size=10 [12:10:20]MH_SAM_APDU [12:10:20]CAPDU: 80 0D 02 02 05 D2 D8 09 15 3F [12:10:20]Write to MH i2c: E2 0D 00 61 32 80 0D 02 02 05 00 D2 D8 09 15 3F 00 00 1E [12:10:20]Write i2c OK [12:10:20]MH_I2C_Read... [12:10:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:20]Read from MH i2c: E2 [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: E2 03 00 [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: E2 03 00 61 32 00 90 00 07 [12:10:20]RAPDU: 90 00 [12:10:20]wFMCommunicate OK [12:10:20]wFMCommunicate request_size=4 [12:10:20]MH_SAM_APDU [12:10:20]CAPDU: 80 0D 03 02 [12:10:20]Write to MH i2c: E2 08 00 62 32 80 0D 03 02 00 00 00 00 0F [12:10:20]Write i2c OK [12:10:20]MH_I2C_Read... [12:10:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:10:20]Read from MH i2c: E2 [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: E2 0B 00 [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: E2 0B 00 62 32 00 B4 FA 5B 86 67 59 E0 11 90 00 50 [12:10:20]RAPDU: B4 FA 5B 86 67 59 E0 11 90 00 [12:10:20]wFMCommunicate OK [12:10:20]SAM_PROTO_SignData done [12:10:20]FM_MakeSignedData done [12:10:20]CreateOFDProtocolMessage [12:10:20]wFMCommunicate request_size=4 [12:10:20]MH_SAM_APDU [12:10:20]CAPDU: 80 11 00 00 [12:10:20]Write to MH i2c: E2 08 00 63 32 80 11 00 00 00 00 00 00 0F [12:10:20]Write i2c OK [12:10:20]MH_I2C_Read... [12:10:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:20]Read from MH i2c: E2 [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: E2 17 00 [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: E2 17 00 63 32 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:10: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:10:20]wFMCommunicate OK [12:10:20]CreateOFDProtocolMessage done [12:10:20]OFDSenderStorePacket 192881 [12:10:20]StoreOFDPacket docnum=192881 [12:10: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 EC 69 07 01 DB 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 AF D0 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 CA D2 D8 09 15 3F B4 FA 5B 86 67 59 E0 11 [12:10:20]CheckFolder [12:10:20]dirname=/storage/ofd_packets [12:10:20]CheckFolder done [12:10:20]ProducePacketName [12:10:20]name=ofd_packets/00192881 [12:10:20]NVStorageSaveData ofd_packets/00192881 [12:10:20]File name is /storage/ofd_packets/00192881 [12:10:20]Write 301 bytes [12:10:20]NVStorageSaveData done [12:10:20]OFDSenderStorePacket done [12:10:20]KKMCreateOFDPacket done [12:10:20]NVStorageSaveData kkm_last_timestamp [12:10:20]File name is /storage/kkm_last_timestamp [12:10:20]Write 4 bytes [12:10:20]NVStorageSaveData done [12:10:20]ExternCall_PrintAddStr [12:10:20]wPrintStart [12:10:20]Write to MH i2c: 01 00 00 64 32 96 [12:10:20]Write i2c OK [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: 01 [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: 01 07 00 [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: 01 07 00 64 32 00 00 00 00 00 FF 0F AB [12:10:20]RasterBufferAndPrint [12:10:20]line Счет N : (1)32211 [12:10:20]line ИÐÐ: 02508201610067 [12:10:20]line Контрольно-КаÑÑовый Чек [12:10:20]line ПРОДÐЖР[12:10:20]line ТРК (МРК, ГÐК) : 12 [12:10:20]line Товар: 2710124130 [12:10:20]line Ðи-92-К-5 [12:10:20]line 7.480 * 66.90 [12:10:20]line = 500.41 [12:10:20]line ÐДС 12% ÐСП 1% [12:10:20]line > о реализуемом товаре [12:10:20]line ОКРУГЛЕÐИЕ: -0.41 [12:10:20]line ИТОГО: 500.00 [12:10:20]line ВнеÑено: 500.00 [12:10:20]line СДÐЧÐ: 0.00 [12:10:20]line ÐСП 1% : 4.43 [12:10:20]line ÐДС 12% : 53.14 [12:10:20]line Ðаличными: 500.00 [12:10:20]line Безнал.: 0.00 [12:10:20]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [12:10:20]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [12:10:20]line СÐО: Общий режим [12:10:20]line Чек 87 29.10.2024 12:10 [12:10:20]line Смена: 544 ФФД: 1.0 [12:10:20]line ЗÐМ: 0300000110 [12:10:20]line РÐМ: 0000000000091776 [12:10:20]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [12:10:20]line ФМ: 0000000000871754 [12:10:20]line ФД: 192881 [12:10:20]line ФПД: 223006916416831 [12:10:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T121023&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192881&fm=223006916416831&tin=02508201610067®Number=0000000000091776&sum=50000 [12:10:20]OFD Sender: Processing packet 192881 [packets to send 75, broken 74] [12:10:20]ProducePacketName [12:10:20]name=ofd_packets/00192881 [12:10:20]OFD Sender: To server: ‡•öpG, [12:10:20]CommunicateWithHost lk.salyk.kg:30040 [12:10:20]ConnectInit lk.salyk.kg [12:10:20]written 0, free lines is 4095 [12:10:20]Connected sock=10 [12:10: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 EC 69 07 01 DB 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 AF D0 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 CA D2 D8 09 15 3F B4 FA 5B 86 67 59 E0 11 [12:10: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 F4 E7 47 00 8F 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 71 F1 02 00 F4 03 04 00 6F 75 20 67 B6 04 01 00 00 43 E4 5C 4E 3C 7D ED 2E [12:10:21]CommunicateWithHost err = 0 [12:10:21]CheckOFDResponse [12:10:21]1017 (14) - 77093643461234 [12:10:21]1041 (16) - 0000000000871754 [12:10:21]1040 (4) - 192881 [12:10:21]1012 (4) - 29.10.2024 05:41 [12:10:21]1206 (1) - 0 [12:10:21]OFD Sender: Remove packet 192881 [12:10:21]ProducePacketName [12:10:21]name=ofd_packets/00192881 [12:10:21]NVStorageDeleteData [12:10:21]Write to MH i2c: 01 00 00 8F 32 C1 [12:10:21]Write i2c OK [12:10:21]MH_I2C_Read... [12:10:21]Read from MH i2c: 01 [12:10:21]MH_I2C_Read... [12:10:21]Read from MH i2c: 01 07 00 [12:10:21]MH_I2C_Read... [12:10:21]Read from MH i2c: 01 07 00 8F 32 00 00 00 00 00 A2 0C 76 [12:10:21]RasterBufferAndPrint [12:10:21]line [12:10:21]line [12:10:21]line [12:10:21]line [12:10:21]line [12:10:21]written 0, free lines is 3240 [12:10:21]MH_Cut [12:10:21]Write to MH i2c: D1 01 00 96 32 01 9A [12:10:21]Write i2c OK [12:10:21]MH_I2C_Read... [12:10:21]Read from MH i2c: D1 [12:10:21]MH_I2C_Read... [12:10:21]Read from MH i2c: D1 01 00 [12:10:21]MH_I2C_Read... [12:10:21]Read from MH i2c: D1 01 00 96 32 00 99 [12:10:21]Write to MH i2c: 01 00 00 97 32 C9 [12:10:21]Write i2c OK [12:10:21]MH_I2C_Read... [12:10:21]OFD Sender: No OFD packet to send [12:10:21]*** Cut start [12:10:21]*** Partial cut [12:10:21]*** CUTSNS_PIN = 1 [12:10:22]*** CUTSNS_PIN = 0 [12:10:22]*** Brake cut motor [12:10:22]Read from MH i2c: 01 [12:10:22]MH_I2C_Read... [12:10:22]*** Stop cut motor [12:10:22]*** Cut end [12:10:22]Read from MH i2c: 01 07 00 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: 01 07 00 97 32 00 00 00 00 00 FF 0F DE [12:10:22]process_action close_receipt done [12:10:22]requested_data is exist [12:10:22]produce_requested_data [12:10:22]requested_item fm.sn is exist - process it [12:10:22]wFMCommunicate request_size=4 [12:10:22]MH_SAM_APDU [12:10:22]CAPDU: 80 11 00 00 [12:10:22]Write to MH i2c: E2 08 00 98 32 80 11 00 00 00 00 00 00 44 [12:10:22]Write i2c OK [12:10:22]MH_I2C_Read... [12:10:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:22]Read from MH i2c: E2 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: E2 17 00 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: E2 17 00 98 32 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:10: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:10:22]wFMCommunicate OK [12:10:22]requested_item fd.num is exist - process it [12:10:22]SAM_PROTO_GetFieldsCounters [12:10:22]wFMCommunicate request_size=4 [12:10:22]MH_SAM_APDU [12:10:22]CAPDU: 80 13 00 00 [12:10:22]Write to MH i2c: E2 08 00 99 32 80 13 00 00 00 00 00 00 47 [12:10:22]Write i2c OK [12:10:22]MH_I2C_Read... [12:10:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:10:22]Read from MH i2c: E2 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: E2 62 00 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: E2 62 00 99 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 71 F1 02 00 0E 04 04 00 20 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 F8 [12:10: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 71 F1 02 00 0E 04 04 00 20 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 [12:10:22]wFMCommunicate OK [12:10:22]SAM_PROTO_GetFieldsCounters done [12:10:22]requested_item shift.num is exist - process it [12:10:22]requested_item shift.opened is exist - process it [12:10:22]req_shift_opened [12:10:22]FM_GetShiftState [12:10:22]SAM_PROTO_GetShiftState [12:10:22]wFMCommunicate request_size=4 [12:10:22]MH_SAM_APDU [12:10:22]CAPDU: 80 13 01 00 [12:10:22]Write to MH i2c: E2 08 00 9A 32 80 13 01 00 00 00 00 00 49 [12:10:22]Write i2c OK [12:10:22]MH_I2C_Read... [12:10:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:22]Read from MH i2c: E2 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: E2 0E 00 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: E2 0E 00 9A 32 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 4F [12:10:22]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [12:10:22]wFMCommunicate OK [12:10:22]SAM_PROTO_GetShiftState done [12:10:22]FM_GetShiftState done [12:10:22]req_shift_opened done [12:10:22]requested_item shift.open_date is exist - process it [12:10:22]req_shift_open_date [12:10:22]req_shift_open_date done [12:10:22]produce_requested_data done [12:10:22]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192881,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [12:10:22]process_action_free close_receipt [12:10:22]json_value_free [12:10:22]json_value_free done [12:10:22]process_json_proto returns [12:10:22]Send response to host [12:10:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192881,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [12:10:22]free response buf [12:10:22]execute_script done [12:10:22]execute_script returns [12:10:22]free content buf [12:10:22]Sock 9.Close socket [12:10:22]Sock 9.Thread stoped [12:10:26]OFD Sender: No OFD packet to send [12:10:31]OFD Sender: No OFD packet to send [12:10:36]OFD Sender: No OFD packet to send [12:10:41]OFD Sender: No OFD packet to send [12:10:46]OFD Sender: No OFD packet to send [12:10:51]OFD Sender: No OFD packet to send [12:10:56]OFD Sender: No OFD packet to send [12:11:01]OFD Sender: No OFD packet to send [12:11:06]OFD Sender: No OFD packet to send [12:11:11]OFD Sender: No OFD packet to send [12:11:16]OFD Sender: No OFD packet to send [12:11:21]OFD Sender: No OFD packet to send [12:11:26]OFD Sender: No OFD packet to send [12:11:31]OFD Sender: No OFD packet to send [12:11:36]OFD Sender: No OFD packet to send [12:11:41]OFD Sender: No OFD packet to send [12:11:46]OFD Sender: No OFD packet to send [12:11:51]OFD Sender: No OFD packet to send [12:11:56]OFD Sender: No OFD packet to send [12:12:01]OFD Sender: No OFD packet to send [12:12:06]OFD Sender: No OFD packet to send [12:12:11]OFD Sender: No OFD packet to send [12:12:16]OFD Sender: No OFD packet to send [12:12:21]OFD Sender: No OFD packet to send [12:12:26]OFD Sender: No OFD packet to send [12:12:31]OFD Sender: No OFD packet to send [12:12:36]OFD Sender: No OFD packet to send [12:12:41]OFD Sender: No OFD packet to send [12:12:46]OFD Sender: No OFD packet to send [12:12:51]OFD Sender: No OFD packet to send [12:12:56]OFD Sender: No OFD packet to send [12:13:01]OFD Sender: No OFD packet to send [12:13:06]OFD Sender: No OFD packet to send [12:13:11]OFD Sender: No OFD packet to send [12:13:16]OFD Sender: No OFD packet to send [12:13:21]OFD Sender: No OFD packet to send [12:13:26]OFD Sender: No OFD packet to send [12:13:31]OFD Sender: No OFD packet to send [12:13:36]OFD Sender: No OFD packet to send [12:13:41]OFD Sender: No OFD packet to send [12:13:46]OFD Sender: No OFD packet to send [12:13:51]OFD Sender: No OFD packet to send [12:13:56]OFD Sender: No OFD packet to send [12:14:01]OFD Sender: No OFD packet to send [12:14:06]OFD Sender: No OFD packet to send [12:14:07]accept exits with 8 [12:14:07]New connection [12:14:07]New thread 3066801508 created [12:14:07]Thread 3066658148 joined [12:14:07]Waiting for new connection... [12:14:07] Sock 8.Parse request [12:14:07]Sock 8.Check first char [12:14:07]Sock 8.First char is OK [12:14:07]request: POST /json_proto HTTP/1.0 [12:14:07]Method: POST [12:14:07]URL: /json_proto [12:14:07]Method is POST - this is cgi request [12:14:07]url: /json_proto [12:14:07]query_string will be loaded in cgi processing [12:14:07]execute_cgi json_proto POST (null) [12:14:07]execute_cgi path=json_proto method=POST [12:14:07]POST find Content-Length [12:14:07]Host: 172.17.63.131:8080 [12:14:07]Content-Length: 676 [12:14:07]Content-Type: application/json [12:14:07] [12:14:07]POST finish read [12:14:07]Found Content-Length = 676 [12:14:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32212", "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" ] } } [12:14:07]execute_script... [12:14: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)32212", "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" ] } } [12:14:07]POST & json_proto [12:14:07]process_json_proto [12:14:07]json parsed OK: [12:14:07]protocol is kg_v1.0 [12:14:07]action value=close_receipt [12:14:07]process_action close_receipt [12:14:07]cmd_close_receipt [12:14:07]MH_GetDate [12:14:07]Write to MH i2c: F0 00 00 9B 32 BC [12:14:07]Write i2c OK [12:14:07]MH_I2C_Read... [12:14:07]Read from MH i2c: F0 [12:14:07]MH_I2C_Read... [12:14:07]Read from MH i2c: F0 09 00 [12:14:07]MH_I2C_Read... [12:14:07]Read from MH i2c: F0 09 00 9B 32 00 94 D1 20 67 22 05 6E 64 AA [12:14:07]GetLastDocTimeStamp 1730203823 [12:14:07]current date 1730204052 [12:14:07]FM_GetShiftState [12:14:07]SAM_PROTO_GetShiftState [12:14:07]wFMCommunicate request_size=4 [12:14:07]MH_SAM_APDU [12:14:07]CAPDU: 80 13 01 00 [12:14:07]Write to MH i2c: E2 08 00 9C 32 80 13 01 00 00 00 00 00 4B [12:14:07]Write i2c OK [12:14:07]MH_I2C_Read... [12:14:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:07]Read from MH i2c: E2 [12:14:07]MH_I2C_Read... [12:14:07]Read from MH i2c: E2 0E 00 [12:14:07]MH_I2C_Read... [12:14:07]Read from MH i2c: E2 0E 00 9C 32 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 51 [12:14:07]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [12:14:07]wFMCommunicate OK [12:14:07]SAM_PROTO_GetShiftState done [12:14:07]FM_GetShiftState done [12:14:07]opened in 1730161990 [12:14:07]opened+sec_in_day 1730248390 [12:14:07]quantity*price = 40006 [12:14:07]sum+1 = 40007 [12:14:07]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 СÐО: Общий режим Чек 88 29.10.2024 12:14 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192882 ФПД: 136373079706747 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T121412&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192882&fm=136373079706747&tin=02508201610067®Number=0000000000091776&sum=40000 [12:14:08]StoreToDocumentArchive [12:14:08]shift 544 fd 192882 [12:14:08]save to /storage/0544/doc_00192882 [12:14:08]save last doc name /storage/0544/doc_00192882 to /storage/kkm_last_doc_name [12:14:08]save OK [12:14:08]Clear old archive folders... [12:14:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:14:08]tlvbuf is B6F30400 [12:14:08]SAM_PROTO_ClearQueue [12:14:08]wFMCommunicate request_size=4 [12:14:08]MH_SAM_APDU [12:14:08]CAPDU: 80 09 00 00 [12:14:08]Write to MH i2c: E2 08 00 A9 32 80 09 00 00 00 00 00 00 4D [12:14:08]Write i2c OK [12:14:08]MH_I2C_Read... [12:14:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:14:08]Read from MH i2c: E2 [12:14:08]MH_I2C_Read... [12:14:08]Read from MH i2c: E2 03 00 [12:14:08]MH_I2C_Read... [12:14:08]Read from MH i2c: E2 03 00 A9 32 00 90 00 4F [12:14:08]RAPDU: 90 00 [12:14:08]wFMCommunicate OK [12:14:08]SAM_PROTO_ClearQueue done [12:14:08]KKMCreateOFDPacket [12:14:08]OFDProtocolAddRootSTLVToBuf [12:14:08]FM_MakeSignedData [12:14:08]FM_MakeSignedData [12:14:08]SAM_PROTO_SignData [12:14:08]wFMCommunicate request_size=4 [12:14:08]MH_SAM_APDU [12:14:08]CAPDU: 80 0D 01 02 [12:14:08]Write to MH i2c: E2 08 00 AA 32 80 0D 01 02 00 00 00 00 55 [12:14:08]Write i2c OK [12:14:08]MH_I2C_Read... [12:14:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:14:09]Read from MH i2c: E2 [12:14:09]MH_I2C_Read... [12:14:09]Read from MH i2c: E2 03 00 [12:14:09]MH_I2C_Read... [12:14:09]Read from MH i2c: E2 03 00 AA 32 00 90 00 50 [12:14:09]RAPDU: 90 00 [12:14:09]wFMCommunicate OK [12:14:09]wFMCommunicate request_size=255 [12:14:09]MH_SAM_APDU [12:14: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 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 58 00 00 00 F4 03 04 00 94 D1 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 7C [12:14:09]Write to MH i2c: E2 02 01 AB 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 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 58 00 00 00 F4 03 04 00 94 D1 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 7C 00 00 FF [12:14:09]Write i2c OK [12:14:09]MH_I2C_Read... [12:14:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:09]Read from MH i2c: E2 [12:14:09]MH_I2C_Read... [12:14:09]Read from MH i2c: E2 03 00 [12:14:09]MH_I2C_Read... [12:14:09]Read from MH i2c: E2 03 00 AB 32 00 90 00 51 [12:14:09]RAPDU: 90 00 [12:14:09]wFMCommunicate OK [12:14:09]wFMCommunicate request_size=10 [12:14:09]MH_SAM_APDU [12:14:09]CAPDU: 80 0D 02 02 05 07 D4 F9 0C 7B [12:14:09]Write to MH i2c: E2 0D 00 AC 32 80 0D 02 02 05 00 07 D4 F9 0C 7B 00 00 BD [12:14:09]Write i2c OK [12:14:09]MH_I2C_Read... [12:14:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:09]Read from MH i2c: E2 [12:14:09]MH_I2C_Read... [12:14:09]Read from MH i2c: E2 03 00 [12:14:09]MH_I2C_Read... [12:14:09]Read from MH i2c: E2 03 00 AC 32 00 90 00 52 [12:14:09]RAPDU: 90 00 [12:14:09]wFMCommunicate OK [12:14:09]wFMCommunicate request_size=4 [12:14:09]MH_SAM_APDU [12:14:09]CAPDU: 80 0D 03 02 [12:14:09]Write to MH i2c: E2 08 00 AD 32 80 0D 03 02 00 00 00 00 5A [12:14:09]Write i2c OK [12:14:09]MH_I2C_Read... [12:14:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:14:09]Read from MH i2c: E2 [12:14:09]MH_I2C_Read... [12:14:09]Read from MH i2c: E2 0B 00 [12:14:09]MH_I2C_Read... [12:14:09]Read from MH i2c: E2 0B 00 AD 32 00 6C 64 87 FB 6B 61 EC 8A 90 00 EF [12:14:09]RAPDU: 6C 64 87 FB 6B 61 EC 8A 90 00 [12:14:09]wFMCommunicate OK [12:14:09]SAM_PROTO_SignData done [12:14:09]FM_MakeSignedData done [12:14:09]CreateOFDProtocolMessage [12:14:09]wFMCommunicate request_size=4 [12:14:09]MH_SAM_APDU [12:14:09]CAPDU: 80 11 00 00 [12:14:09]Write to MH i2c: E2 08 00 AE 32 80 11 00 00 00 00 00 00 5A [12:14:09]Write i2c OK [12:14:09]MH_I2C_Read... [12:14:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:09]Read from MH i2c: E2 [12:14:09]MH_I2C_Read... [12:14:09]Read from MH i2c: E2 17 00 [12:14:09]MH_I2C_Read... [12:14:09]Read from MH i2c: E2 17 00 AE 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AD [12:14: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:14:09]wFMCommunicate OK [12:14:09]CreateOFDProtocolMessage done [12:14:09]OFDSenderStorePacket 192882 [12:14:09]StoreOFDPacket docnum=192882 [12:14: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 08 C6 07 01 73 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 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 58 00 00 00 F4 03 04 00 94 D1 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 7C 07 D4 F9 0C 7B 6C 64 87 FB 6B 61 EC 8A [12:14:09]CheckFolder [12:14:09]dirname=/storage/ofd_packets [12:14:09]CheckFolder done [12:14:09]ProducePacketName [12:14:09]name=ofd_packets/00192882 [12:14:09]NVStorageSaveData ofd_packets/00192882 [12:14:09]File name is /storage/ofd_packets/00192882 [12:14:09]Write 301 bytes [12:14:09]NVStorageSaveData done [12:14:09]OFDSenderStorePacket done [12:14:09]KKMCreateOFDPacket done [12:14:09]NVStorageSaveData kkm_last_timestamp [12:14:09]File name is /storage/kkm_last_timestamp [12:14:09]Write 4 bytes [12:14:09]NVStorageSaveData done [12:14:09]ExternCall_PrintAddStr [12:14:09]wPrintStart [12:14:09]Write to MH i2c: 01 00 00 AF 32 E1 [12:14:09]Write i2c OK [12:14:09]MH_I2C_Read... [12:14:09]Read from MH i2c: 01 [12:14:09]MH_I2C_Read... [12:14:09]Read from MH i2c: 01 07 00 [12:14:09]MH_I2C_Read... [12:14:09]Read from MH i2c: 01 07 00 AF 32 00 00 00 00 00 FF 0F F6 [12:14:09]RasterBufferAndPrint [12:14:09]line Счет N : (1)32212 [12:14:09]line ИÐÐ: 02508201610067 [12:14:09]line Контрольно-КаÑÑовый Чек [12:14:09]line ПРОДÐЖР[12:14:09]line ТРК (МРК, ГÐК) : 12 [12:14:09]line Товар: 2710124130 [12:14:09]line Ðи-92-К-5 [12:14:09]line 5.980 * 66.90 [12:14:09]line = 400.06 [12:14:09]line ÐДС 12% ÐСП 1% [12:14:09]line > о реализуемом товаре [12:14:09]line ОКРУГЛЕÐИЕ: -0.06 [12:14:09]line ИТОГО: 400.00 [12:14:09]line ВнеÑено: 400.00 [12:14:09]line СДÐЧÐ: 0.00 [12:14:09]line ÐСП 1% : 3.54 [12:14:09]line ÐДС 12% : 42.48 [12:14:09]line Ðаличными: 400.00 [12:14:09]line Безнал.: 0.00 [12:14:09]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [12:14:09]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [12:14:09]line СÐО: Общий режим [12:14:09]line Чек 88 29.10.2024 12:14 [12:14:09]line Смена: 544 ФФД: 1.0 [12:14:09]line ЗÐМ: 0300000110 [12:14:09]line РÐМ: 0000000000091776 [12:14:09]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [12:14:09]line ФМ: 0000000000871754 [12:14:09]line ФД: 192882 [12:14:09]line ФПД: 136373079706747 [12:14:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T121412&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192882&fm=136373079706747&tin=02508201610067®Number=0000000000091776&sum=40000 [12:14:09]OFD Sender: Processing packet 192882 [packets to send 75, broken 74] [12:14:09]ProducePacketName [12:14:09]name=ofd_packets/00192882 [12:14:09]OFD Sender: To server: ‡•öpG, [12:14:09]CommunicateWithHost lk.salyk.kg:30040 [12:14:09]ConnectInit lk.salyk.kg [12:14:09]written 0, free lines is 4095 [12:14:09]Connected sock=10 [12:14:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 08 C6 07 01 73 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 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 58 00 00 00 F4 03 04 00 94 D1 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 7C 07 D4 F9 0C 7B 6C 64 87 FB 6B 61 EC 8A [12:14: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 C4 77 47 00 D5 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 72 F1 02 00 F4 03 04 00 55 76 20 67 B6 04 01 00 00 59 A7 38 BC 12 91 84 0C [12:14:10]CommunicateWithHost err = 0 [12:14:10]CheckOFDResponse [12:14:10]1017 (14) - 77093643461234 [12:14:10]1041 (16) - 0000000000871754 [12:14:10]1040 (4) - 192882 [12:14:10]1012 (4) - 29.10.2024 05:44 [12:14:10]1206 (1) - 0 [12:14:10]OFD Sender: Remove packet 192882 [12:14:10]ProducePacketName [12:14:10]name=ofd_packets/00192882 [12:14:10]NVStorageDeleteData [12:14:10]Write to MH i2c: 01 00 00 DA 32 0C [12:14:10]Write i2c OK [12:14:10]MH_I2C_Read... [12:14:10]Read from MH i2c: 01 [12:14:10]MH_I2C_Read... [12:14:10]Read from MH i2c: 01 07 00 [12:14:10]MH_I2C_Read... [12:14:10]Read from MH i2c: 01 07 00 DA 32 00 00 00 00 00 AF 0C CE [12:14:10]RasterBufferAndPrint [12:14:10]line [12:14:10]line [12:14:10]line [12:14:10]line [12:14:10]line [12:14:10]written 0, free lines is 3253 [12:14:10]MH_Cut [12:14:10]Write to MH i2c: D1 01 00 E1 32 01 E5 [12:14:10]Write i2c OK [12:14:10]MH_I2C_Read... [12:14:10]Read from MH i2c: D1 [12:14:10]MH_I2C_Read... [12:14:10]Read from MH i2c: D1 01 00 [12:14:10]MH_I2C_Read... [12:14:10]Read from MH i2c: D1 01 00 E1 32 00 E4 [12:14:10]Write to MH i2c: 01 00 00 E2 32 14 [12:14:10]Write i2c OK [12:14:10]MH_I2C_Read... [12:14:10]int [12:14:10]*** FLAG_PRN_PAP2 set [12:14:10]*** Cut start [12:14:10]*** Partial cut [12:14:10]*** CUTSNS_PIN = 1 [12:14:10]OFD Sender: No OFD packet to send [12:14:10]*** CUTSNS_PIN = 0 [12:14:10]*** Brake cut motor [12:14:11]Read from MH i2c: 01 [12:14:11]MH_I2C_Read... [12:14:11]Read from MH i2c: *** Stop cut motor [12:14:11]01 07 *** Cut end [12:14:11]00 [12:14:11]MH_I2C_Read... [12:14:11]Read from MH i2c: 01 07 00 E2 32 00 02 00 00 00 FF 0F 2B [12:14:11]process_action close_receipt done [12:14:11]requested_data is exist [12:14:11]produce_requested_data [12:14:11]requested_item fm.sn is exist - process it [12:14:11]wFMCommunicate request_size=4 [12:14:11]MH_SAM_APDU [12:14:11]CAPDU: 80 11 00 00 [12:14:11]Write to MH i2c: E2 08 00 E3 32 80 11 00 00 00 00 00 00 8F [12:14:11]Write i2c OK [12:14:11]MH_I2C_Read... [12:14:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:11]Read from MH i2c: E2 [12:14:11]MH_I2C_Read... [12:14:11]Read from MH i2c: E2 17 00 [12:14:11]MH_I2C_Read... [12:14:11]Read from MH i2c: E2 17 00 E3 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E2 [12:14: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:14:11]wFMCommunicate OK [12:14:11]requested_item fd.num is exist - process it [12:14:11]SAM_PROTO_GetFieldsCounters [12:14:11]wFMCommunicate request_size=4 [12:14:11]MH_SAM_APDU [12:14:11]CAPDU: 80 13 00 00 [12:14:11]Write to MH i2c: E2 08 00 E4 32 80 13 00 00 00 00 00 00 92 [12:14:11]Write i2c OK [12:14:11]MH_I2C_Read... [12:14:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:14:11]Read from MH i2c: E2 [12:14:11]MH_I2C_Read... [12:14:11]Read from MH i2c: E2 62 00 [12:14:11]MH_I2C_Read... [12:14:11]Read from MH i2c: E2 62 00 E4 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 72 F1 02 00 0E 04 04 00 20 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 47 [12:14: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 72 F1 02 00 0E 04 04 00 20 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 [12:14:11]wFMCommunicate OK [12:14:11]SAM_PROTO_GetFieldsCounters done [12:14:11]requested_item shift.num is exist - process it [12:14:11]requested_item shift.opened is exist - process it [12:14:11]req_shift_opened [12:14:11]FM_GetShiftState [12:14:11]SAM_PROTO_GetShiftState [12:14:11]wFMCommunicate request_size=4 [12:14:11]MH_SAM_APDU [12:14:11]CAPDU: 80 13 01 00 [12:14:11]Write to MH i2c: 01 00 00 E5 32 17 [12:14:11]Write i2c OK [12:14:11]MH_I2C_Read... [12:14:11]Read from MH i2c: 01 [12:14:11]MH_I2C_Read... [12:14:11]Read from MH i2c: 01 07 00 [12:14:11]MH_I2C_Read... [12:14:11]Read from MH i2c: 01 07 00 E5 32 00 02 00 00 00 FF 0F 2E [12:14:11]state=0 [12:14:11]Cover opened [12:14:11]Write to MH i2c: E2 08 00 E6 32 80 13 01 00 00 00 00 00 95 [12:14:11]Write i2c OK [12:14:11]MH_I2C_Read... [12:14:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:11]Read from MH i2c: E2 [12:14:11]MH_I2C_Read... [12:14:11]Read from MH i2c: E2 0E 00 [12:14:11]MH_I2C_Read... [12:14:11]Read from MH i2c: E2 0E 00 E6 32 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 9B [12:14:11]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [12:14:11]wFMCommunicate OK [12:14:11]SAM_PROTO_GetShiftState done [12:14:11]FM_GetShiftState done [12:14:11]req_shift_opened done [12:14:11]requested_item shift.open_date is exist - process it [12:14:11]req_shift_open_date [12:14:11]req_shift_open_date done [12:14:11]produce_requested_data done [12:14:11]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192882,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [12:14:11]process_action_free close_receipt [12:14:11]json_value_free [12:14:11]json_value_free done [12:14:11]process_json_proto returns [12:14:11]Send response to host [12:14:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192882,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [12:14:11]free response buf [12:14:11]execute_script done [12:14:11]execute_script returns [12:14:11]free content buf [12:14:11]Sock 8.Close socket [12:14:11]Sock 8.Thread stoped [12:14:15]OFD Sender: No OFD packet to send [12:14:16]Write to MH i2c: 01 00 00 E7 32 19 [12:14:16]Write i2c OK [12:14:16]MH_I2C_Read... [12:14:16]Read from MH i2c: 01 [12:14:16]MH_I2C_Read... [12:14:16]Read from MH i2c: 01 07 00 [12:14:16]MH_I2C_Read... [12:14:16]Read from MH i2c: 01 07 00 E7 32 00 02 00 00 00 FF 0F 30 [12:14:16]state=3 [12:14:16]Cover opened [12:14:20]OFD Sender: No OFD packet to send [12:14:21]Write to MH i2c: 01 00 00 E8 32 1A [12:14:21]Write i2c OK [12:14:21]MH_I2C_Read... [12:14:21]Read from MH i2c: 01 [12:14:21]MH_I2C_Read... [12:14:21]Read from MH i2c: 01 07 00 [12:14:21]MH_I2C_Read... [12:14:21]Read from MH i2c: 01 07 00 E8 32 00 02 00 00 00 FF 0F 31 [12:14:21]state=3 [12:14:21]Cover opened [12:14:25]OFD Sender: No OFD packet to send [12:14:26]Write to MH i2c: 01 00 00 E9 32 1B [12:14:26]Write i2c OK [12:14:26]MH_I2C_Read... [12:14:26]Read from MH i2c: 01 [12:14:26]MH_I2C_Read... [12:14:26]Read from MH i2c: 01 07 00 [12:14:26]MH_I2C_Read... [12:14:26]Read from MH i2c: 01 07 00 E9 32 00 02 00 00 00 FF 0F 32 [12:14:26]state=3 [12:14:26]Cover opened [12:14:30]OFD Sender: No OFD packet to send [12:14:31]Write to MH i2c: 01 00 00 EA 32 1C [12:14:31]Write i2c OK [12:14:31]MH_I2C_Read... [12:14:31]Read from MH i2c: 01 [12:14:31]MH_I2C_Read... [12:14:31]Read from MH i2c: 01 07 00 [12:14:31]MH_I2C_Read... [12:14:31]Read from MH i2c: 01 07 00 EA 32 00 02 00 00 00 FF 0F 33 [12:14:31]state=3 [12:14:31]Cover opened [12:14:32]int [12:14:32]Write to MH i2c: 01 00 00 EB 32 1D [12:14:32]*** FLAG_PRN_PAP1 set [12:14:32]Write i2c OK [12:14:32]MH_I2C_Read... [12:14:32]Read from MH i2c: 01 [12:14:32]MH_I2C_Read... [12:14:32]Read from MH i2c: 01 07 00 [12:14:32]MH_I2C_Read... [12:14:32]Read from MH i2c: 01 07 00 EB 32 00 03 00 00 00 FF 0F 35 [12:14:32]state=3 [12:14:32]No paper [12:14:32]Cover opened [12:14:35]OFD Sender: No OFD packet to send [12:14:37]Write to MH i2c: 01 00 00 EC 32 1E [12:14:37]Write i2c OK [12:14:37]MH_I2C_Read... [12:14:37]Read from MH i2c: 01 [12:14:37]MH_I2C_Read... [12:14:37]Read from MH i2c: 01 07 00 [12:14:37]MH_I2C_Read... [12:14:37]Read from MH i2c: 01 07 00 EC 32 00 03 00 00 00 FF 0F 36 [12:14:37]state=3 [12:14:37]No paper [12:14:37]Cover opened [12:14:39]accept exits with 9 [12:14:39]New connection [12:14:39]New thread 3066658148 created [12:14:39]Thread 3066801508 joined [12:14:39]Waiting for new connection... [12:14:39] Sock 9.Parse request [12:14:39]Sock 9.Check first char [12:14:39]Sock 9.First char is OK [12:14:39]request: POST /json_proto HTTP/1.0 [12:14:39]Method: POST [12:14:39]URL: /json_proto [12:14:39]Method is POST - this is cgi request [12:14:39]url: /json_proto [12:14:39]query_string will be loaded in cgi processing [12:14:39]execute_cgi json_proto POST (null) [12:14:39]execute_cgi path=json_proto method=POST [12:14:39]POST find Content-Length [12:14:39]Host: 172.17.63.131:8080 [12:14:39]Content-Length: 862 [12:14:39]Content-Type: application/json [12:14:39] [12:14:39]POST finish read [12:14:39]Found Content-Length = 862 [12:14:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \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" ] } } [12:14:39]execute_script... [12:14: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)32213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \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" ] } } [12:14:39]POST & json_proto [12:14:39]process_json_proto [12:14:39]json parsed OK: [12:14:39]protocol is kg_v1.0 [12:14:39]action value=close_receipt [12:14:39]process_action close_receipt [12:14:39]cmd_close_receipt [12:14:39]MH_GetDate [12:14:39]Write to MH i2c: F0 00 00 ED 32 0E [12:14:39]Write i2c OK [12:14:39]MH_I2C_Read... [12:14:39]Read from MH i2c: F0 [12:14:39]MH_I2C_Read... [12:14:39]Read from MH i2c: F0 09 00 [12:14:39]MH_I2C_Read... [12:14:39]Read from MH i2c: F0 09 00 ED 32 00 B3 D1 20 67 22 05 6E 64 1B [12:14:39]GetLastDocTimeStamp 1730204052 [12:14:39]current date 1730204083 [12:14:39]FM_GetShiftState [12:14:39]SAM_PROTO_GetShiftState [12:14:39]wFMCommunicate request_size=4 [12:14:39]MH_SAM_APDU [12:14:39]CAPDU: 80 13 01 00 [12:14:39]Write to MH i2c: E2 08 00 EE 32 80 13 01 00 00 00 00 00 9D [12:14:39]Write i2c OK [12:14:39]MH_I2C_Read... [12:14:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:39]Read from MH i2c: E2 [12:14:39]MH_I2C_Read... [12:14:39]Read from MH i2c: E2 0E 00 [12:14:39]MH_I2C_Read... [12:14:39]Read from MH i2c: E2 0E 00 EE 32 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 A3 [12:14:39]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [12:14:39]wFMCommunicate OK [12:14:39]SAM_PROTO_GetShiftState done [12:14:39]FM_GetShiftState done [12:14:39]opened in 1730161990 [12:14:39]opened+sec_in_day 1730248390 [12:14:39]quantity*price = 40006 [12:14:39]sum+1 = 40007 [12:14:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 ÐСП 1% : 3.54 ÐДС 12% : 42.48 Ðаличными: 0.00 Безнал.: 400.06 МеÑто: ÐЗС â„– 170 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 СÐО: Общий режим Чек 89 29.10.2024 12:14 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192883 ФПД: 139779391898436 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T121443&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192883&fm=139779391898436&tin=02508201610067®Number=0000000000091776&sum=40006 [12:14:40]StoreToDocumentArchive [12:14:40]shift 544 fd 192883 [12:14:40]save to /storage/0544/doc_00192883 [12:14:40]save last doc name /storage/0544/doc_00192883 to /storage/kkm_last_doc_name [12:14:40]Write to MH i2c: 01 00 00 FB 32 2D [12:14:40]save OK [12:14:40]Clear old archive folders... [12:14:40]Write i2c OK [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: 01 [12:14:40]MH_I2C_Read... [12:14:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:14:40]tlvbuf is B6EB5A70 [12:14:40]SAM_PROTO_ClearQueue [12:14:40]wFMCommunicate request_size=4 [12:14:40]MH_SAM_APDU [12:14:40]CAPDU: 80 09 00 00 [12:14:40]Read from MH i2c: 01 07 00 [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: 01 07 00 FB 32 00 00 00 00 00 FF 0F 42 [12:14:40]state=3 [12:14:40]Write to MH i2c: Cover closed [12:14:40]E2 08 00 FC 32 80 09 00 00 00 00 00 00 A0 [12:14:40]Write i2c OK [12:14:40]MH_I2C_Read... [12:14:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:14:40]Read from MH i2c: E2 [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: E2 03 00 [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: E2 03 00 FC 32 00 90 00 A2 [12:14:40]RAPDU: 90 00 [12:14:40]wFMCommunicate OK [12:14:40]SAM_PROTO_ClearQueue done [12:14:40]KKMCreateOFDPacket [12:14:40]OFDProtocolAddRootSTLVToBuf [12:14:40]FM_MakeSignedData [12:14:40]FM_MakeSignedData [12:14:40]SAM_PROTO_SignData [12:14:40]wFMCommunicate request_size=4 [12:14:40]MH_SAM_APDU [12:14:40]CAPDU: 80 0D 01 02 [12:14:40]Write to MH i2c: E2 08 00 FD 32 80 0D 01 02 00 00 00 00 A8 [12:14:40]Write i2c OK [12:14:40]MH_I2C_Read... [12:14:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:14:40]Read from MH i2c: E2 [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: E2 03 00 [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: E2 03 00 FD 32 00 90 00 A3 [12:14:40]RAPDU: 90 00 [12:14:40]wFMCommunicate OK [12:14:40]wFMCommunicate request_size=255 [12:14:40]MH_SAM_APDU [12:14: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 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 59 00 00 00 F4 03 04 00 B3 D1 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 7F [12:14:40]Write to MH i2c: E2 02 01 FE 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 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 59 00 00 00 F4 03 04 00 B3 D1 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 7F 00 00 82 [12:14:40]Write i2c OK [12:14:40]MH_I2C_Read... [12:14:40]OFD Sender: No OFD packet to send [12:14:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:40]Read from MH i2c: E2 [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: E2 03 00 [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: E2 03 00 FE 32 00 90 00 A4 [12:14:40]RAPDU: 90 00 [12:14:40]wFMCommunicate OK [12:14:40]wFMCommunicate request_size=10 [12:14:40]MH_SAM_APDU [12:14:40]CAPDU: 80 0D 02 02 05 20 ED 00 43 44 [12:14:40]Write to MH i2c: E2 0D 00 FF 32 80 0D 02 02 05 00 20 ED 00 43 44 00 00 49 [12:14:40]Write i2c OK [12:14:40]MH_I2C_Read... [12:14:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:40]Read from MH i2c: E2 [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: E2 03 00 [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: E2 03 00 FF 32 00 90 00 A5 [12:14:40]RAPDU: 90 00 [12:14:40]wFMCommunicate OK [12:14:40]wFMCommunicate request_size=4 [12:14:40]MH_SAM_APDU [12:14:40]CAPDU: 80 0D 03 02 [12:14:40]Write to MH i2c: E2 08 00 00 33 80 0D 03 02 00 00 00 00 AE [12:14:40]Write i2c OK [12:14:40]MH_I2C_Read... [12:14:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:14:40]Read from MH i2c: E2 [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: E2 0B 00 [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: E2 0B 00 00 33 00 82 CE CD C9 BD 7F AB F6 90 00 72 [12:14:40]RAPDU: 82 CE CD C9 BD 7F AB F6 90 00 [12:14:40]wFMCommunicate OK [12:14:40]SAM_PROTO_SignData done [12:14:40]FM_MakeSignedData done [12:14:40]CreateOFDProtocolMessage [12:14:40]wFMCommunicate request_size=4 [12:14:40]MH_SAM_APDU [12:14:40]CAPDU: 80 11 00 00 [12:14:40]Write to MH i2c: E2 08 00 01 33 80 11 00 00 00 00 00 00 AE [12:14:40]Write i2c OK [12:14:40]MH_I2C_Read... [12:14:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:40]Read from MH i2c: E2 [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: E2 17 00 [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: E2 17 00 01 33 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:14: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:14:40]wFMCommunicate OK [12:14:40]CreateOFDProtocolMessage done [12:14:40]OFDSenderStorePacket 192883 [12:14:40]StoreOFDPacket docnum=192883 [12:14: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 82 46 07 01 AC DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 59 00 00 00 F4 03 04 00 B3 D1 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 7F 20 ED 00 43 44 82 CE CD C9 BD 7F AB F6 [12:14:40]CheckFolder [12:14:40]dirname=/storage/ofd_packets [12:14:40]CheckFolder done [12:14:40]ProducePacketName [12:14:40]name=ofd_packets/00192883 [12:14:40]NVStorageSaveData ofd_packets/00192883 [12:14:40]File name is /storage/ofd_packets/00192883 [12:14:40]Write 301 bytes [12:14:40]NVStorageSaveData done [12:14:40]OFDSenderStorePacket done [12:14:40]KKMCreateOFDPacket done [12:14:40]NVStorageSaveData kkm_last_timestamp [12:14:40]File name is /storage/kkm_last_timestamp [12:14:40]Write 4 bytes [12:14:40]NVStorageSaveData done [12:14:40]OFD Sender: Processing packet 192883 [packets to send 75, broken 74] [12:14:40]ProducePacketName [12:14:40]name=ofd_packets/00192883 [12:14:40]OFD Sender: To server: ‡•öpG, [12:14:40]CommunicateWithHost lk.salyk.kg:30040 [12:14:40]ConnectInit lk.salyk.kg [12:14:40]ExternCall_PrintAddStr [12:14:40]wPrintStart [12:14:40]Write to MH i2c: 01 00 00 02 33 35 [12:14:40]Write i2c OK [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: 01 [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: 01 07 00 [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: 01 07 00 02 33 00 00 00 00 00 FF 0F 4A [12:14:40]RasterBufferAndPrint [12:14:40]line Счет N : (1)32213 [12:14:40]line ИÐÐ: 02508201610067 [12:14:40]line Контрольно-КаÑÑовый Чек [12:14:40]line ПРОДÐЖР[12:14:40]line ТРК (МРК, ГÐК) : 21 [12:14:40]line Товар: 2710124130 [12:14:40]line Ðи-92-К-5 [12:14:40]line 5.980 * 66.90 [12:14:40]line = 400.06 [12:14:40]line ÐДС 12% ÐСП 1% [12:14:40]line > о реализуемом товаре [12:14:40]line ИТОГО: 400.06 [12:14:40]line ÐСП 1% : 3.54 [12:14:40]line ÐДС 12% : 42.48 [12:14:40]line Ðаличными: 0.00 [12:14:40]line Безнал.: 400.06 [12:14:40]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [12:14:40]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [12:14:40]line СÐО: Общий режим [12:14:40]line Чек 89 29.10.2024 12:14 [12:14:40]line Смена: 544 ФФД: 1.0 [12:14:40]line ЗÐМ: 0300000110 [12:14:40]line РÐМ: 0000000000091776 [12:14:40]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [12:14:40]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Кыргызкоммерцбанк [12:14:40]line ФМ: 0000000000871754 [12:14:40]line ФД: 192883 [12:14:40]line ФПД: 139779391898436 [12:14:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T121443&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192883&fm=139779391898436&tin=02508201610067®Number=0000000000091776&sum=40006 [12:14:41]Connected sock=11 [12:14: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 82 46 07 01 AC DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 59 00 00 00 F4 03 04 00 B3 D1 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 7F 20 ED 00 43 44 82 CE CD C9 BD 7F AB F6 [12:14:41]written 0, free lines is 4095 [12:14: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 53 2F 47 00 C0 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 73 F1 02 00 F4 03 04 00 74 76 20 67 B6 04 01 00 00 A7 6D AF D7 8A 54 A6 74 [12:14:41]CommunicateWithHost err = 0 [12:14:41]CheckOFDResponse [12:14:41]1017 (14) - 77093643461234 [12:14:41]1041 (16) - 0000000000871754 [12:14:41]1040 (4) - 192883 [12:14:41]1012 (4) - 29.10.2024 05:45 [12:14:41]1206 (1) - 0 [12:14:41]OFD Sender: Remove packet 192883 [12:14:41]ProducePacketName [12:14:41]name=ofd_packets/00192883 [12:14:41]NVStorageDeleteData [12:14:41]Write to MH i2c: 01 00 00 2C 33 5F [12:14:41]Write i2c OK [12:14:41]MH_I2C_Read... [12:14:41]Read from MH i2c: 01 [12:14:41]MH_I2C_Read... [12:14:41]Read from MH i2c: 01 07 00 [12:14:41]MH_I2C_Read... [12:14:41]Read from MH i2c: 01 07 00 2C 33 00 00 00 00 00 D8 0C 4A [12:14:41]RasterBufferAndPrint [12:14:41]line [12:14:41]line [12:14:41]line [12:14:41]line [12:14:41]line [12:14:41]written 0, free lines is 3295 [12:14:41]MH_Cut [12:14:41]Write to MH i2c: D1 01 00 33 33 01 38 [12:14:41]Write i2c OK [12:14:41]MH_I2C_Read... [12:14:41]Read from MH i2c: D1 [12:14:41]MH_I2C_Read... [12:14:41]Read from MH i2c: D1 01 00 [12:14:41]MH_I2C_Read... [12:14:41]Read from MH i2c: D1 01 00 33 33 00 37 [12:14:41]Write to MH i2c: 01 00 00 34 33 67 [12:14:41]Write i2c OK [12:14:41]MH_I2C_Read... [12:14:41]OFD Sender: No OFD packet to send [12:14:42]*** Cut start [12:14:42]*** Partial cut [12:14:42]*** CUTSNS_PIN = 1 [12:14:42]*** CUTSNS_PIN = 0 [12:14:42]*** Brake cut motor [12:14:42]Read from MH i2c: 01 [12:14:42]MH_I2C_Read... [12:14:42]*** Stop cut motor [12:14:42]*** Cut end [12:14:42]Read from MH i2c: 01 07 00 [12:14:42]MH_I2C_Read... [12:14:42]Read from MH i2c: 01 07 00 34 33 00 00 00 00 00 FF 0F 7C [12:14:42]process_action close_receipt done [12:14:42]requested_data is exist [12:14:42]produce_requested_data [12:14:42]requested_item fm.sn is exist - process it [12:14:42]wFMCommunicate request_size=4 [12:14:42]MH_SAM_APDU [12:14:42]CAPDU: 80 11 00 00 [12:14:42]Write to MH i2c: E2 08 00 35 33 80 11 00 00 00 00 00 00 E2 [12:14:42]Write i2c OK [12:14:42]MH_I2C_Read... [12:14:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:43]Read from MH i2c: E2 [12:14:43]MH_I2C_Read... [12:14:43]Read from MH i2c: E2 17 00 [12:14:43]MH_I2C_Read... [12:14:43]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 [12:14: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:14:43]wFMCommunicate OK [12:14:43]requested_item fd.num is exist - process it [12:14:43]SAM_PROTO_GetFieldsCounters [12:14:43]wFMCommunicate request_size=4 [12:14:43]MH_SAM_APDU [12:14:43]CAPDU: 80 13 00 00 [12:14:43]Write to MH i2c: E2 08 00 36 33 80 13 00 00 00 00 00 00 E5 [12:14:43]Write i2c OK [12:14:43]MH_I2C_Read... [12:14:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:14:43]Read from MH i2c: E2 [12:14:43]MH_I2C_Read... [12:14:43]Read from MH i2c: E2 62 00 [12:14:43]MH_I2C_Read... [12:14:43]Read from MH i2c: E2 62 00 36 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 73 F1 02 00 0E 04 04 00 20 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 9E [12:14: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 73 F1 02 00 0E 04 04 00 20 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 [12:14:43]wFMCommunicate OK [12:14:43]SAM_PROTO_GetFieldsCounters done [12:14:43]requested_item shift.num is exist - process it [12:14:43]requested_item shift.opened is exist - process it [12:14:43]req_shift_opened [12:14:43]FM_GetShiftState [12:14:43]SAM_PROTO_GetShiftState [12:14:43]wFMCommunicate request_size=4 [12:14:43]MH_SAM_APDU [12:14:43]CAPDU: 80 13 01 00 [12:14:43]Write to MH i2c: E2 08 00 37 33 80 13 01 00 00 00 00 00 E7 [12:14:43]Write i2c OK [12:14:43]MH_I2C_Read... [12:14:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:43]Read from MH i2c: E2 [12:14:43]MH_I2C_Read... [12:14:43]Read from MH i2c: E2 0E 00 [12:14:43]MH_I2C_Read... [12:14:43]Read from MH i2c: E2 0E 00 37 33 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 ED [12:14:43]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [12:14:43]wFMCommunicate OK [12:14:43]SAM_PROTO_GetShiftState done [12:14:43]FM_GetShiftState done [12:14:43]req_shift_opened done [12:14:43]requested_item shift.open_date is exist - process it [12:14:43]req_shift_open_date [12:14:43]req_shift_open_date done [12:14:43]produce_requested_data done [12:14:43]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192883,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [12:14:43]process_action_free close_receipt [12:14:43]json_value_free [12:14:43]json_value_free done [12:14:43]process_json_proto returns [12:14:43]Send response to host [12:14:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192883,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [12:14:43]free response buf [12:14:43]execute_script done [12:14:43]execute_script returns [12:14:43]free content buf [12:14:43]Sock 9.Close socket [12:14:43]Sock 9.Thread stoped [12:14:46]OFD Sender: No OFD packet to send [12:14:51]OFD Sender: No OFD packet to send [12:14:56]OFD Sender: No OFD packet to send [12:15:01]OFD Sender: No OFD packet to send [12:15:06]OFD Sender: No OFD packet to send [12:15:11]OFD Sender: No OFD packet to send [12:15:16]OFD Sender: No OFD packet to send [12:15:21]OFD Sender: No OFD packet to send [12:15:26]OFD Sender: No OFD packet to send [12:15:31]OFD Sender: No OFD packet to send [12:15:36]OFD Sender: No OFD packet to send [12:15:41]OFD Sender: No OFD packet to send [12:15:46]OFD Sender: No OFD packet to send [12:15:51]OFD Sender: No OFD packet to send [12:15:56]OFD Sender: No OFD packet to send [12:16:01]OFD Sender: No OFD packet to send [12:16:06]OFD Sender: No OFD packet to send [12:16:11]OFD Sender: No OFD packet to send [12:16:16]OFD Sender: No OFD packet to send [12:16:21]OFD Sender: No OFD packet to send [12:16:26]OFD Sender: No OFD packet to send [12:16:31]OFD Sender: No OFD packet to send [12:16:36]OFD Sender: No OFD packet to send [12:16:41]OFD Sender: No OFD packet to send [12:16:46]OFD Sender: No OFD packet to send [12:16:51]OFD Sender: No OFD packet to send [12:16:56]OFD Sender: No OFD packet to send [12:17:01]OFD Sender: No OFD packet to send [12:17:06]OFD Sender: No OFD packet to send [12:17:11]OFD Sender: No OFD packet to send [12:17:16]OFD Sender: No OFD packet to send [12:17:21]OFD Sender: No OFD packet to send [12:17:26]OFD Sender: No OFD packet to send [12:17:31]OFD Sender: No OFD packet to send [12:17:36]OFD Sender: No OFD packet to send [12:17:41]OFD Sender: No OFD packet to send [12:17:46]OFD Sender: No OFD packet to send [12:17:51]OFD Sender: No OFD packet to send [12:17:56]OFD Sender: No OFD packet to send [12:18:01]OFD Sender: No OFD packet to send [12:18:07]OFD Sender: No OFD packet to send [12:18:12]OFD Sender: No OFD packet to send [12:18:17]OFD Sender: No OFD packet to send [12:18:22]OFD Sender: No OFD packet to send [12:18:22]accept exits with 8 [12:18:22]New connection [12:18:22]New thread 3066801508 created [12:18:22]Thread 3066658148 joined [12:18:22]Waiting for new connection... [12:18:22] Sock 8.Parse request [12:18:22]Sock 8.Check first char [12:18:22]Sock 8.First char is OK [12:18:22]request: POST /json_proto HTTP/1.0 [12:18:22]Method: POST [12:18:22]URL: /json_proto [12:18:22]Method is POST - this is cgi request [12:18:22]url: /json_proto [12:18:22]query_string will be loaded in cgi processing [12:18:22]execute_cgi json_proto POST (null) [12:18:22]execute_cgi path=json_proto method=POST [12:18:22]POST find Content-Length [12:18:22]Host: 172.17.63.131:8080 [12:18:22]Content-Length: 862 [12:18:22]Content-Type: application/json [12:18:22] [12:18:22]POST finish read [12:18:22]Found Content-Length = 862 [12:18:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32214", "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 }]} ], "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.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:22]execute_script... [12:18: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)32214", "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 }]} ], "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.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:22]POST & json_proto [12:18:22]process_json_proto [12:18:22]json parsed OK: [12:18:22]protocol is kg_v1.0 [12:18:22]action value=close_receipt [12:18:22]process_action close_receipt [12:18:22]cmd_close_receipt [12:18:22]MH_GetDate [12:18:22]Write to MH i2c: F0 00 00 38 33 5A [12:18:22]Write i2c OK [12:18:22]MH_I2C_Read... [12:18:22]Read from MH i2c: F0 [12:18:22]MH_I2C_Read... [12:18:22]Read from MH i2c: F0 09 00 [12:18:22]MH_I2C_Read... [12:18:22]Read from MH i2c: F0 09 00 38 33 00 92 D2 20 67 22 05 6E 64 47 [12:18:22]GetLastDocTimeStamp 1730204083 [12:18:22]current date 1730204306 [12:18:22]FM_GetShiftState [12:18:22]SAM_PROTO_GetShiftState [12:18:22]wFMCommunicate request_size=4 [12:18:22]MH_SAM_APDU [12:18:22]CAPDU: 80 13 01 00 [12:18:22]Write to MH i2c: E2 08 00 39 33 80 13 01 00 00 00 00 00 E9 [12:18:22]Write i2c OK [12:18:22]MH_I2C_Read... [12:18:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:22]Read from MH i2c: E2 [12:18:22]MH_I2C_Read... [12:18:22]Read from MH i2c: E2 0E 00 [12:18:22]MH_I2C_Read... [12:18:22]Read from MH i2c: E2 0E 00 39 33 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 EF [12:18:22]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [12:18:22]wFMCommunicate OK [12:18:22]SAM_PROTO_GetShiftState done [12:18:22]FM_GetShiftState done [12:18:22]opened in 1730161990 [12:18:22]opened+sec_in_day 1730248390 [12:18:22]quantity*price = 200025 [12:18:22]sum+1 = 200026 [12:18:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 ÐСП 1% : 17.70 ÐДС 12% : 212.42 Ðаличными: 0.00 Безнал.: 2000.25 МеÑто: ÐЗС â„– 170 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 СÐО: Общий режим Чек 90 29.10.2024 12:18 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192884 ФПД: 154676579662456 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T121826&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192884&fm=154676579662456&tin=02508201610067®Number=0000000000091776&sum=200025 [12:18:23]StoreToDocumentArchive [12:18:23]shift 544 fd 192884 [12:18:23]save to /storage/0544/doc_00192884 [12:18:23]save last doc name /storage/0544/doc_00192884 to /storage/kkm_last_doc_name [12:18:23]save OK [12:18:23]Clear old archive folders... [12:18:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:18:23]tlvbuf is 00F0F6D0 [12:18:23]SAM_PROTO_ClearQueue [12:18:23]wFMCommunicate request_size=4 [12:18:23]MH_SAM_APDU [12:18:23]CAPDU: 80 09 00 00 [12:18:23]Write to MH i2c: E2 08 00 46 33 80 09 00 00 00 00 00 00 EB [12:18:23]Write i2c OK [12:18:23]MH_I2C_Read... [12:18:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:18:23]Read from MH i2c: E2 [12:18:23]MH_I2C_Read... [12:18:23]Read from MH i2c: E2 03 00 [12:18:23]MH_I2C_Read... [12:18:23]Read from MH i2c: E2 03 00 46 33 00 90 00 ED [12:18:23]RAPDU: 90 00 [12:18:23]wFMCommunicate OK [12:18:23]SAM_PROTO_ClearQueue done [12:18:23]KKMCreateOFDPacket [12:18:23]OFDProtocolAddRootSTLVToBuf [12:18:23]FM_MakeSignedData [12:18:23]FM_MakeSignedData [12:18:23]SAM_PROTO_SignData [12:18:23]wFMCommunicate request_size=4 [12:18:23]MH_SAM_APDU [12:18:23]CAPDU: 80 0D 01 02 [12:18:23]Write to MH i2c: E2 08 00 47 33 80 0D 01 02 00 00 00 00 F3 [12:18:23]Write i2c OK [12:18:23]MH_I2C_Read... [12:18:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:18:23]Read from MH i2c: E2 [12:18:23]MH_I2C_Read... [12:18:23]Read from MH i2c: E2 03 00 [12:18:23]MH_I2C_Read... [12:18:23]Read from MH i2c: E2 03 00 47 33 00 90 00 EE [12:18:23]RAPDU: 90 00 [12:18:23]wFMCommunicate OK [12:18:23]wFMCommunicate request_size=255 [12:18:23]MH_SAM_APDU [12:18:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 92 D2 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 8C AD 72 95 [12:18:23]Write to MH i2c: E2 02 01 48 33 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 92 D2 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 8C AD 72 95 00 00 AB [12:18:23]Write i2c OK [12:18:23]MH_I2C_Read... [12:18:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:23]Read from MH i2c: E2 [12:18:23]MH_I2C_Read... [12:18:23]Read from MH i2c: E2 03 00 [12:18:23]MH_I2C_Read... [12:18:23]Read from MH i2c: E2 03 00 48 33 00 90 00 EF [12:18:23]RAPDU: 90 00 [12:18:23]wFMCommunicate OK [12:18:23]wFMCommunicate request_size=7 [12:18:23]MH_SAM_APDU [12:18:23]CAPDU: 80 0D 02 02 02 FA 78 [12:18:23]Write to MH i2c: E2 0A 00 49 33 80 0D 02 02 02 00 FA 78 00 00 6C [12:18:23]Write i2c OK [12:18:23]MH_I2C_Read... [12:18:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:23]Read from MH i2c: E2 [12:18:23]MH_I2C_Read... [12:18:23]Read from MH i2c: E2 03 00 [12:18:23]MH_I2C_Read... [12:18:23]Read from MH i2c: E2 03 00 49 33 00 90 00 F0 [12:18:23]RAPDU: 90 00 [12:18:23]wFMCommunicate OK [12:18:23]wFMCommunicate request_size=4 [12:18:23]MH_SAM_APDU [12:18:23]CAPDU: 80 0D 03 02 [12:18:23]Write to MH i2c: E2 08 00 4A 33 80 0D 03 02 00 00 00 00 F8 [12:18:23]Write i2c OK [12:18:23]MH_I2C_Read... [12:18:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:23]Read from MH i2c: E2 [12:18:23]MH_I2C_Read... [12:18:23]Read from MH i2c: E2 0B 00 [12:18:23]MH_I2C_Read... [12:18:23]Read from MH i2c: E2 0B 00 4A 33 00 8A D8 E8 F5 B9 36 DB 47 90 00 49 [12:18:23]RAPDU: 8A D8 E8 F5 B9 36 DB 47 90 00 [12:18:23]wFMCommunicate OK [12:18:23]SAM_PROTO_SignData done [12:18:23]FM_MakeSignedData done [12:18:23]CreateOFDProtocolMessage [12:18:23]wFMCommunicate request_size=4 [12:18:23]MH_SAM_APDU [12:18:23]CAPDU: 80 11 00 00 [12:18:23]Write to MH i2c: E2 08 00 4B 33 80 11 00 00 00 00 00 00 F8 [12:18:23]Write i2c OK [12:18:23]MH_I2C_Read... [12:18:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:23]Read from MH i2c: E2 [12:18:23]MH_I2C_Read... [12:18:23]Read from MH i2c: E2 17 00 [12:18:23]MH_I2C_Read... [12:18:23]Read from MH i2c: E2 17 00 4B 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4B [12:18:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:18:23]wFMCommunicate OK [12:18:23]CreateOFDProtocolMessage done [12:18:23]OFDSenderStorePacket 192884 [12:18:23]StoreOFDPacket docnum=192884 [12:18: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 5C 1C 04 01 8B 27 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 92 D2 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 8C AD 72 95 FA 78 8A D8 E8 F5 B9 36 DB 47 [12:18:23]CheckFolder [12:18:23]dirname=/storage/ofd_packets [12:18:23]CheckFolder done [12:18:23]ProducePacketName [12:18:23]name=ofd_packets/00192884 [12:18:23]NVStorageSaveData ofd_packets/00192884 [12:18:23]File name is /storage/ofd_packets/00192884 [12:18:23]Write 298 bytes [12:18:23]NVStorageSaveData done [12:18:23]OFDSenderStorePacket done [12:18:23]KKMCreateOFDPacket done [12:18:23]NVStorageSaveData kkm_last_timestamp [12:18:23]File name is /storage/kkm_last_timestamp [12:18:23]Write 4 bytes [12:18:23]NVStorageSaveData done [12:18:23]ExternCall_PrintAddStr [12:18:23]wPrintStart [12:18:23]Write to MH i2c: 01 00 00 4C 33 7F [12:18:23]Write i2c OK [12:18:23]MH_I2C_Read... [12:18:23]Read from MH i2c: 01 [12:18:23]MH_I2C_Read... [12:18:23]Read from MH i2c: 01 07 00 [12:18:23]MH_I2C_Read... [12:18:23]Read from MH i2c: 01 07 00 4C 33 00 00 00 00 00 FF 0F 94 [12:18:23]RasterBufferAndPrint [12:18:23]line Счет N : (1)32214 [12:18:23]line ИÐÐ: 02508201610067 [12:18:23]line Контрольно-КаÑÑовый Чек [12:18:23]line ПРОДÐЖР[12:18:23]line ТРК (МРК, ГÐК) : 11 [12:18:23]line Товар: 2710194210 [12:18:23]line ДТ-К-5 [12:18:23]line 26.250 * 76.20 [12:18:23]line = 2000.25 [12:18:23]line ÐДС 12% ÐСП 1% [12:18:23]line > о реализуемом товаре [12:18:23]line ИТОГО: 2000.25 [12:18:23]line ÐСП 1% : 17.70 [12:18:23]line ÐДС 12% : 212.42 [12:18:23]line Ðаличными: 0.00 [12:18:23]line Безнал.: 2000.25 [12:18:23]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [12:18:23]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [12:18:23]line СÐО: Общий режим [12:18:23]line Чек 90 29.10.2024 12:18 [12:18:23]line Смена: 544 ФФД: 1.0 [12:18:23]line ЗÐМ: 0300000110 [12:18:23]line РÐМ: 0000000000091776 [12:18:23]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [12:18:23]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Кыргызкоммерцбанк [12:18:23]line ФМ: 0000000000871754 [12:18:23]line ФД: 192884 [12:18:23]line ФПД: 154676579662456 [12:18:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T121826&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192884&fm=154676579662456&tin=02508201610067®Number=0000000000091776&sum=200025 [12:18:24]OFD Sender: Processing packet 192884 [packets to send 75, broken 74] [12:18:24]ProducePacketName [12:18:24]name=ofd_packets/00192884 [12:18:24]OFD Sender: To server: ‡•öpG, [12:18:24]CommunicateWithHost lk.salyk.kg:30040 [12:18:24]ConnectInit lk.salyk.kg [12:18:24]written 0, free lines is 4095 [12:18:24]Connected sock=10 [12:18: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 0C 01 00 00 5C 1C 04 01 8B 27 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 92 D2 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 8C AD 72 95 FA 78 8A D8 E8 F5 B9 36 DB 47 [12:18: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 A7 42 47 00 FA 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 74 F1 02 00 F4 03 04 00 53 77 20 67 B6 04 01 00 00 0D 53 BC E0 58 EB CE EA [12:18:24]CommunicateWithHost err = 0 [12:18:24]CheckOFDResponse [12:18:24]1017 (14) - 77093643461234 [12:18:24]1041 (16) - 0000000000871754 [12:18:24]1040 (4) - 192884 [12:18:24]1012 (4) - 29.10.2024 05:49 [12:18:24]1206 (1) - 0 [12:18:24]OFD Sender: Remove packet 192884 [12:18:24]ProducePacketName [12:18:24]name=ofd_packets/00192884 [12:18:24]NVStorageDeleteData [12:18:24]Write to MH i2c: 01 00 00 76 33 A9 [12:18:24]Write i2c OK [12:18:24]MH_I2C_Read... [12:18:24]Read from MH i2c: 01 [12:18:24]MH_I2C_Read... [12:18:24]Read from MH i2c: 01 07 00 [12:18:24]MH_I2C_Read... [12:18:24]Read from MH i2c: 01 07 00 76 33 00 00 00 00 00 CF 0C 8B [12:18:24]RasterBufferAndPrint [12:18:24]line [12:18:24]line [12:18:24]line [12:18:24]line [12:18:24]line [12:18:24]written 0, free lines is 3285 [12:18:24]MH_Cut [12:18:24]Write to MH i2c: D1 01 00 7D 33 01 82 [12:18:24]Write i2c OK [12:18:24]MH_I2C_Read... [12:18:24]Read from MH i2c: D1 [12:18:24]MH_I2C_Read... [12:18:24]Read from MH i2c: D1 01 00 [12:18:24]MH_I2C_Read... [12:18:24]Read from MH i2c: D1 01 00 7D 33 00 81 [12:18:24]Write to MH i2c: 01 00 00 7E 33 B1 [12:18:24]Write i2c OK [12:18:24]MH_I2C_Read... [12:18:25]OFD Sender: No OFD packet to send [12:18:25]*** Cut start [12:18:25]*** Partial cut [12:18:25]*** CUTSNS_PIN = 1 [12:18:25]*** CUTSNS_PIN = 0 [12:18:25]*** Brake cut motor [12:18:26]Read from MH i2c: 01 [12:18:26]MH_I2C_Read... [12:18:26]*** Stop cut motor [12:18:26]*** Cut end [12:18:26]Read from MH i2c: 01 07 00 [12:18:26]MH_I2C_Read... [12:18:26]Read from MH i2c: 01 07 00 7E 33 00 00 00 00 00 FF 0F C6 [12:18:26]process_action close_receipt done [12:18:26]requested_data is exist [12:18:26]produce_requested_data [12:18:26]requested_item fm.sn is exist - process it [12:18:26]wFMCommunicate request_size=4 [12:18:26]MH_SAM_APDU [12:18:26]CAPDU: 80 11 00 00 [12:18:26]Write to MH i2c: E2 08 00 7F 33 80 11 00 00 00 00 00 00 2C [12:18:26]Write i2c OK [12:18:26]MH_I2C_Read... [12:18:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:26]Read from MH i2c: E2 [12:18:26]MH_I2C_Read... [12:18:26]Read from MH i2c: E2 17 00 [12:18:26]MH_I2C_Read... [12:18:26]Read from MH i2c: E2 17 00 7F 33 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:18: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:18:26]wFMCommunicate OK [12:18:26]requested_item fd.num is exist - process it [12:18:26]SAM_PROTO_GetFieldsCounters [12:18:26]wFMCommunicate request_size=4 [12:18:26]MH_SAM_APDU [12:18:26]CAPDU: 80 13 00 00 [12:18:26]Write to MH i2c: E2 08 00 80 33 80 13 00 00 00 00 00 00 2F [12:18:26]Write i2c OK [12:18:26]MH_I2C_Read... [12:18:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:26]Read from MH i2c: E2 [12:18:26]MH_I2C_Read... [12:18:26]Read from MH i2c: E2 62 00 [12:18:26]MH_I2C_Read... [12:18:26]Read from MH i2c: E2 62 00 80 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 74 F1 02 00 0E 04 04 00 20 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 EC [12:18: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 74 F1 02 00 0E 04 04 00 20 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 [12:18:26]wFMCommunicate OK [12:18:26]SAM_PROTO_GetFieldsCounters done [12:18:26]requested_item shift.num is exist - process it [12:18:26]requested_item shift.opened is exist - process it [12:18:26]req_shift_opened [12:18:26]FM_GetShiftState [12:18:26]SAM_PROTO_GetShiftState [12:18:26]wFMCommunicate request_size=4 [12:18:26]MH_SAM_APDU [12:18:26]CAPDU: 80 13 01 00 [12:18:26]Write to MH i2c: E2 08 00 81 33 80 13 01 00 00 00 00 00 31 [12:18:26]Write i2c OK [12:18:26]MH_I2C_Read... [12:18:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:26]Read from MH i2c: E2 [12:18:26]MH_I2C_Read... [12:18:26]Read from MH i2c: E2 0E 00 [12:18:26]MH_I2C_Read... [12:18:26]Read from MH i2c: E2 0E 00 81 33 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 37 [12:18:26]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [12:18:26]wFMCommunicate OK [12:18:26]SAM_PROTO_GetShiftState done [12:18:26]FM_GetShiftState done [12:18:26]req_shift_opened done [12:18:26]requested_item shift.open_date is exist - process it [12:18:26]req_shift_open_date [12:18:26]req_shift_open_date done [12:18:26]produce_requested_data done [12:18:26]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192884,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [12:18:26]process_action_free close_receipt [12:18:26]json_value_free [12:18:26]json_value_free done [12:18:26]process_json_proto returns [12:18:26]Send response to host [12:18:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192884,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [12:18:26]free response buf [12:18:26]execute_script done [12:18:26]execute_script returns [12:18:26]free content buf [12:18:26]Sock 8.Close socket [12:18:26]Sock 8.Thread stoped [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:22]accept exits with 9 [12:19:22]New connection [12:19:22]New thread 3066658148 created [12:19:22]Thread 3066801508 joined [12:19:22]Waiting for new connection... [12:19:22] Sock 9.Parse request [12:19:22]Sock 9.Check first char [12:19:22]Sock 9.First char is OK [12:19:22]request: POST /json_proto HTTP/1.0 [12:19:22]Method: POST [12:19:22]URL: /json_proto [12:19:22]Method is POST - this is cgi request [12:19:22]url: /json_proto [12:19:22]query_string will be loaded in cgi processing [12:19:22]execute_cgi json_proto POST (null) [12:19:22]execute_cgi path=json_proto method=POST [12:19:22]POST find Content-Length [12:19:22]Host: 172.17.63.131:8080 [12:19:22]Content-Length: 865 [12:19:22]Content-Type: application/json [12:19:22] [12:19:22]POST finish read [12:19:22]Found Content-Length = 865 [12:19:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32215", "tax_sys" : 0, "items" : [ { "pre_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" ] } } [12:19:22]execute_script... [12: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)32215", "tax_sys" : 0, "items" : [ { "pre_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" ] } } [12:19:22]POST & json_proto [12:19:22]process_json_proto [12:19:22]json parsed OK: [12:19:22]protocol is kg_v1.0 [12:19:22]action value=close_receipt [12:19:22]process_action close_receipt [12:19:22]cmd_close_receipt [12:19:22]MH_GetDate [12:19:22]Write to MH i2c: F0 00 00 82 33 A4 [12:19:22]Write i2c OK [12:19:22]MH_I2C_Read... [12:19:22]Read from MH i2c: F0 [12:19:22]MH_I2C_Read... [12:19:22]Read from MH i2c: F0 09 00 [12:19:22]MH_I2C_Read... [12:19:22]Read from MH i2c: F0 09 00 82 33 00 CF D2 20 67 22 05 6E 64 CE [12:19:22]GetLastDocTimeStamp 1730204306 [12:19:22]current date 1730204367 [12:19:22]FM_GetShiftState [12:19:22]SAM_PROTO_GetShiftState [12:19:22]wFMCommunicate request_size=4 [12:19:22]MH_SAM_APDU [12:19:22]CAPDU: 80 13 01 00 [12:19:22]Write to MH i2c: E2 08 00 83 33 80 13 01 00 00 00 00 00 33 [12:19:22]Write i2c OK [12:19:22]MH_I2C_Read... [12:19:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:22]Read from MH i2c: E2 [12:19:22]MH_I2C_Read... [12:19:22]Read from MH i2c: E2 0E 00 [12:19:22]MH_I2C_Read... [12:19:22]Read from MH i2c: E2 0E 00 83 33 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 39 [12:19:22]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [12:19:22]wFMCommunicate OK [12:19:22]SAM_PROTO_GetShiftState done [12:19:22]FM_GetShiftState done [12:19:22]opened in 1730161990 [12:19:22]opened+sec_in_day 1730248390 [12:19:22]quantity*price = 100015 [12:19:22]sum+1 = 100017 [12:19:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 ÐСП 1% : 8.85 ÐДС 12% : 106.21 Ðаличными: 0.00 Безнал.: 1000.16 МеÑто: ÐЗС â„– 170 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 СÐО: Общий режим Чек 91 29.10.2024 12:19 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192885 ФПД: 200289336220326 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T121927&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192885&fm=200289336220326&tin=02508201610067®Number=0000000000091776&sum=100016 [12:19:24]StoreToDocumentArchive [12:19:24]shift 544 fd 192885 [12:19:24]save to /storage/0544/doc_00192885 [12:19:24]save last doc name /storage/0544/doc_00192885 to /storage/kkm_last_doc_name [12:19:24]save OK [12:19:24]Clear old archive folders... [12:19:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:19:24]tlvbuf is 00FD9CA0 [12:19:24]SAM_PROTO_ClearQueue [12:19:24]wFMCommunicate request_size=4 [12:19:24]MH_SAM_APDU [12:19:24]CAPDU: 80 09 00 00 [12:19:24]Write to MH i2c: E2 08 00 90 33 80 09 00 00 00 00 00 00 35 [12:19:24]Write i2c OK [12:19:24]MH_I2C_Read... [12:19:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:24]Read from MH i2c: E2 [12:19:24]MH_I2C_Read... [12:19:24]Read from MH i2c: E2 03 00 [12:19:24]MH_I2C_Read... [12:19:24]Read from MH i2c: E2 03 00 90 33 00 90 00 37 [12:19:24]RAPDU: 90 00 [12:19:24]wFMCommunicate OK [12:19:24]SAM_PROTO_ClearQueue done [12:19:24]KKMCreateOFDPacket [12:19:24]OFDProtocolAddRootSTLVToBuf [12:19:24]FM_MakeSignedData [12:19:24]FM_MakeSignedData [12:19:24]SAM_PROTO_SignData [12:19:24]wFMCommunicate request_size=4 [12:19:24]MH_SAM_APDU [12:19:24]CAPDU: 80 0D 01 02 [12:19:24]Write to MH i2c: E2 08 00 91 33 80 0D 01 02 00 00 00 00 3D [12:19:24]Write i2c OK [12:19:24]MH_I2C_Read... [12:19:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:24]Read from MH i2c: E2 [12:19:24]MH_I2C_Read... [12:19:24]Read from MH i2c: E2 03 00 [12:19:24]MH_I2C_Read... [12:19:24]Read from MH i2c: E2 03 00 91 33 00 90 00 38 [12:19:24]RAPDU: 90 00 [12:19:24]wFMCommunicate OK [12:19:24]wFMCommunicate request_size=255 [12:19:24]MH_SAM_APDU [12:19: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 5B 00 00 00 F4 03 04 00 CF D2 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 B6 [12:19:24]Write to MH i2c: E2 02 01 92 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 CF D2 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 B6 00 00 AE [12:19:24]Write i2c OK [12:19:24]MH_I2C_Read... [12:19:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:24]Read from MH i2c: E2 [12:19:24]MH_I2C_Read... [12:19:24]Read from MH i2c: E2 03 00 [12:19:24]MH_I2C_Read... [12:19:24]Read from MH i2c: E2 03 00 92 33 00 90 00 39 [12:19:24]RAPDU: 90 00 [12:19:24]wFMCommunicate OK [12:19:24]wFMCommunicate request_size=10 [12:19:24]MH_SAM_APDU [12:19:24]CAPDU: 80 0D 02 02 05 29 7E BC DA A6 [12:19:24]Write to MH i2c: E2 0D 00 93 33 80 0D 02 02 05 00 29 7E BC DA A6 00 00 2D [12:19:24]Write i2c OK [12:19:24]MH_I2C_Read... [12:19:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:24]Read from MH i2c: E2 [12:19:24]MH_I2C_Read... [12:19:24]Read from MH i2c: E2 03 00 [12:19:24]MH_I2C_Read... [12:19:24]Read from MH i2c: E2 03 00 93 33 00 90 00 3A [12:19:24]RAPDU: 90 00 [12:19:24]wFMCommunicate OK [12:19:24]wFMCommunicate request_size=4 [12:19:24]MH_SAM_APDU [12:19:24]CAPDU: 80 0D 03 02 [12:19:24]Write to MH i2c: E2 08 00 94 33 80 0D 03 02 00 00 00 00 42 [12:19:24]Write i2c OK [12:19:24]MH_I2C_Read... [12:19:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:24]Read from MH i2c: E2 [12:19:24]MH_I2C_Read... [12:19:24]Read from MH i2c: E2 0B 00 [12:19:24]MH_I2C_Read... [12:19:24]Read from MH i2c: E2 0B 00 94 33 00 4B 6E 4F 40 A8 A8 19 7A 90 00 6E [12:19:24]RAPDU: 4B 6E 4F 40 A8 A8 19 7A 90 00 [12:19:24]wFMCommunicate OK [12:19:24]SAM_PROTO_SignData done [12:19:24]FM_MakeSignedData done [12:19:24]CreateOFDProtocolMessage [12:19:24]wFMCommunicate request_size=4 [12:19:24]MH_SAM_APDU [12:19:24]CAPDU: 80 11 00 00 [12:19:24]Write to MH i2c: E2 08 00 95 33 80 11 00 00 00 00 00 00 42 [12:19:24]Write i2c OK [12:19:24]MH_I2C_Read... [12:19:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:24]Read from MH i2c: E2 [12:19:24]MH_I2C_Read... [12:19:24]Read from MH i2c: E2 17 00 [12:19:24]MH_I2C_Read... [12:19:24]Read from MH i2c: E2 17 00 95 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 95 [12:19: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:19:24]wFMCommunicate OK [12:19:24]CreateOFDProtocolMessage done [12:19:24]OFDSenderStorePacket 192885 [12:19:24]StoreOFDPacket docnum=192885 [12:19: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 BF FA 07 01 5E 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 5B 00 00 00 F4 03 04 00 CF D2 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 B6 29 7E BC DA A6 4B 6E 4F 40 A8 A8 19 7A [12:19:24]CheckFolder [12:19:24]dirname=/storage/ofd_packets [12:19:24]CheckFolder done [12:19:24]ProducePacketName [12:19:24]name=ofd_packets/00192885 [12:19:24]NVStorageSaveData ofd_packets/00192885 [12:19:24]File name is /storage/ofd_packets/00192885 [12:19:24]Write 301 bytes [12:19:24]NVStorageSaveData done [12:19:24]OFDSenderStorePacket done [12:19:24]KKMCreateOFDPacket done [12:19:24]NVStorageSaveData kkm_last_timestamp [12:19:24]File name is /storage/kkm_last_timestamp [12:19:24]Write 4 bytes [12:19:24]NVStorageSaveData done [12:19:24]ExternCall_PrintAddStr [12:19:24]wPrintStart [12:19:24]Write to MH i2c: 01 00 00 96 33 C9 [12:19:24]Write i2c OK [12:19:24]MH_I2C_Read... [12:19:24]Read from MH i2c: 01 [12:19:24]MH_I2C_Read... [12:19:24]Read from MH i2c: 01 07 00 [12:19:24]MH_I2C_Read... [12:19:24]Read from MH i2c: 01 07 00 96 33 00 00 00 00 00 FF 0F DE [12:19:24]RasterBufferAndPrint [12:19:24]line Счет N : (1)32215 [12:19:24]line ИÐÐ: 02508201610067 [12:19:24]line Контрольно-КаÑÑовый Чек [12:19:24]line ПРОДÐЖР[12:19:24]line ТРК (МРК, ГÐК) : 21 [12:19:24]line Товар: 2710124130 [12:19:24]line Ðи-92-К-5 [12:19:24]line 14.950 * 66.90 [12:19:24]line = 1000.16 [12:19:24]line ÐДС 12% ÐСП 1% [12:19:24]line > о реализуемом товаре [12:19:24]line ИТОГО: 1000.16 [12:19:24]line ÐСП 1% : 8.85 [12:19:24]line ÐДС 12% : 106.21 [12:19:24]line Ðаличными: 0.00 [12:19:24]line Безнал.: 1000.16 [12:19:24]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [12:19:24]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [12:19:24]line СÐО: Общий режим [12:19:24]line Чек 91 29.10.2024 12:19 [12:19:24]line Смена: 544 ФФД: 1.0 [12:19:24]line ЗÐМ: 0300000110 [12:19:24]line РÐМ: 0000000000091776 [12:19:24]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [12:19:24]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Кыргызкоммерцбанк [12:19:24]line ФМ: 0000000000871754 [12:19:24]line ФД: 192885 [12:19:24]line ФПД: 200289336220326 [12:19:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T121927&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192885&fm=200289336220326&tin=02508201610067®Number=0000000000091776&sum=100016 [12:19:24]OFD Sender: Processing packet 192885 [packets to send 75, broken 74] [12:19:24]ProducePacketName [12:19:24]name=ofd_packets/00192885 [12:19:24]OFD Sender: To server: ‡•öpG, [12:19:24]CommunicateWithHost lk.salyk.kg:30040 [12:19:24]ConnectInit lk.salyk.kg [12:19:24]written 0, free lines is 4095 [12:19:25]Connected sock=8 [12:19: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 BF FA 07 01 5E 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 5B 00 00 00 F4 03 04 00 CF D2 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 B6 29 7E BC DA A6 4B 6E 4F 40 A8 A8 19 7A [12:19:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 CF 15 47 00 33 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 75 F1 02 00 F4 03 04 00 90 77 20 67 B6 04 01 00 00 E7 B9 C6 79 64 E9 3D D7 [12:19:25]CommunicateWithHost err = 0 [12:19:25]CheckOFDResponse [12:19:25]1017 (14) - 77093643461234 [12:19:25]1041 (16) - 0000000000871754 [12:19:25]1040 (4) - 192885 [12:19:25]1012 (4) - 29.10.2024 05:50 [12:19:25]1206 (1) - 0 [12:19:25]OFD Sender: Remove packet 192885 [12:19:25]ProducePacketName [12:19:25]name=ofd_packets/00192885 [12:19:25]NVStorageDeleteData [12:19:25]Write to MH i2c: 01 00 00 C0 33 F3 [12:19:25]Write i2c OK [12:19:25]MH_I2C_Read... [12:19:25]Read from MH i2c: 01 [12:19:25]MH_I2C_Read... [12:19:25]Read from MH i2c: 01 07 00 [12:19:25]MH_I2C_Read... [12:19:25]Read from MH i2c: 01 07 00 C0 33 00 00 00 00 00 C6 0C CC [12:19:25]RasterBufferAndPrint [12:19:25]line [12:19:25]line [12:19:25]line [12:19:25]line [12:19:25]line [12:19:25]written 0, free lines is 3276 [12:19:25]MH_Cut [12:19:25]Write to MH i2c: D1 01 00 C7 33 01 CC [12:19:25]Write i2c OK [12:19:25]MH_I2C_Read... [12:19:25]Read from MH i2c: D1 [12:19:25]MH_I2C_Read... [12:19:25]Read from MH i2c: D1 01 00 [12:19:25]MH_I2C_Read... [12:19:25]Read from MH i2c: D1 01 00 C7 33 00 CB [12:19:25]Write to MH i2c: 01 00 00 C8 33 FB [12:19:25]Write i2c OK [12:19:25]MH_I2C_Read... [12:19:25]OFD Sender: No OFD packet to send [12:19:26]*** Cut start [12:19:26]*** Partial cut [12:19:26]*** CUTSNS_PIN = 1 [12:19:26]*** CUTSNS_PIN = 0 [12:19:26]*** Brake cut motor [12:19:26]Read from MH i2c: 01 [12:19:26]MH_I2C_Read... [12:19:26]*** Stop cut motor [12:19:26]*** Cut end [12:19:26]Read from MH i2c: 01 07 00 [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: 01 07 00 C8 33 00 00 00 00 00 FF 0F 10 [12:19:26]process_action close_receipt done [12:19:26]requested_data is exist [12:19:26]produce_requested_data [12:19:26]requested_item fm.sn is exist - process it [12:19:26]wFMCommunicate request_size=4 [12:19:26]MH_SAM_APDU [12:19:26]CAPDU: 80 11 00 00 [12:19:26]Write to MH i2c: E2 08 00 C9 33 80 11 00 00 00 00 00 00 76 [12:19:26]Write i2c OK [12:19:26]MH_I2C_Read... [12:19:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:26]Read from MH i2c: E2 [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: E2 17 00 [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: E2 17 00 C9 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C9 [12: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 [12:19:26]wFMCommunicate OK [12:19:26]requested_item fd.num is exist - process it [12:19:26]SAM_PROTO_GetFieldsCounters [12:19:26]wFMCommunicate request_size=4 [12:19:26]MH_SAM_APDU [12:19:26]CAPDU: 80 13 00 00 [12:19:26]Write to MH i2c: E2 08 00 CA 33 80 13 00 00 00 00 00 00 79 [12:19:26]Write i2c OK [12:19:26]MH_I2C_Read... [12:19:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:27]Read from MH i2c: E2 [12:19:27]MH_I2C_Read... [12:19:27]Read from MH i2c: E2 62 00 [12:19:27]MH_I2C_Read... [12:19:27]Read from MH i2c: E2 62 00 CA 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 75 F1 02 00 0E 04 04 00 20 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 3A [12:19: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 75 F1 02 00 0E 04 04 00 20 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 [12:19:27]wFMCommunicate OK [12:19:27]SAM_PROTO_GetFieldsCounters done [12:19:27]requested_item shift.num is exist - process it [12:19:27]requested_item shift.opened is exist - process it [12:19:27]req_shift_opened [12:19:27]FM_GetShiftState [12:19:27]SAM_PROTO_GetShiftState [12:19:27]wFMCommunicate request_size=4 [12:19:27]MH_SAM_APDU [12:19:27]CAPDU: 80 13 01 00 [12:19:27]Write to MH i2c: E2 08 00 CB 33 80 13 01 00 00 00 00 00 7B [12:19:27]Write i2c OK [12:19:27]MH_I2C_Read... [12:19:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:27]Read from MH i2c: E2 [12:19:27]MH_I2C_Read... [12:19:27]Read from MH i2c: E2 0E 00 [12:19:27]MH_I2C_Read... [12:19:27]Read from MH i2c: E2 0E 00 CB 33 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 81 [12:19:27]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [12:19:27]wFMCommunicate OK [12:19:27]SAM_PROTO_GetShiftState done [12:19:27]FM_GetShiftState done [12:19:27]req_shift_opened done [12:19:27]requested_item shift.open_date is exist - process it [12:19:27]req_shift_open_date [12:19:27]req_shift_open_date done [12:19:27]produce_requested_data done [12:19:27]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192885,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [12:19:27]process_action_free close_receipt [12:19:27]json_value_free [12:19:27]json_value_free done [12:19:27]process_json_proto returns [12:19:27]Send response to host [12:19:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192885,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [12:19:27]free response buf [12:19:27]execute_script done [12:19:27]execute_script returns [12:19:27]free content buf [12:19:27]Sock 9.Close socket [12:19:27]Sock 9.Thread stoped [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:05]OFD Sender: No OFD packet to send [12:20:10]accept exits with 10 [12:20:10]New connection [12:20:10]New thread 3066801508 created [12:20:10]Thread 3066658148 joined [12:20:10]Waiting for new connection... [12:20:10] Sock 10.Parse request [12:20:10]Sock 10.Check first char [12:20:10]Sock 10.First char is OK [12:20:10]request: POST /json_proto HTTP/1.0 [12:20:10]Method: POST [12:20:10]URL: /json_proto [12:20:10]Method is POST - this is cgi request [12:20:10]url: /json_proto [12:20:10]query_string will be loaded in cgi processing [12:20:10]execute_cgi json_proto POST (null) [12:20:10]execute_cgi path=json_proto method=POST [12:20:10]POST find Content-Length [12:20:10]Host: 172.17.63.131:8080 [12:20:10]Content-Length: 676 [12:20:10]Content-Type: application/json [12:20:10] [12:20:10]POST finish read [12:20:10]Found Content-Length = 676 [12:20:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32216", "tax_sys" : 0, "items" : [ { "pre_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" ] } } [12:20:10]execute_script... [12:20:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32216", "tax_sys" : 0, "items" : [ { "pre_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" ] } } [12:20:10]POST & json_proto [12:20:10]process_json_proto [12:20:10]json parsed OK: [12:20:10]protocol is kg_v1.0 [12:20:10]action value=close_receipt [12:20:10]process_action close_receipt [12:20:10]cmd_close_receipt [12:20:10]MH_GetDate [12:20:10]Write to MH i2c: F0 00 00 CC 33 EE [12:20:10]Write i2c OK [12:20:10]MH_I2C_Read... [12:20:10]Read from MH i2c: F0 [12:20:10]MH_I2C_Read... [12:20:10]Read from MH i2c: F0 09 00 [12:20:10]MH_I2C_Read... [12:20:10]Read from MH i2c: F0 09 00 CC 33 00 FF D2 20 67 22 05 6E 64 48 [12:20:10]GetLastDocTimeStamp 1730204367 [12:20:10]current date 1730204415 [12:20:10]FM_GetShiftState [12:20:10]SAM_PROTO_GetShiftState [12:20:10]wFMCommunicate request_size=4 [12:20:10]MH_SAM_APDU [12:20:10]CAPDU: 80 13 01 00 [12:20:10]Write to MH i2c: E2 08 00 CD 33 80 13 01 00 00 00 00 00 7D [12:20:10]Write i2c OK [12:20:10]MH_I2C_Read... [12:20:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:10]Read from MH i2c: E2 [12:20:10]MH_I2C_Read... [12:20:10]Read from MH i2c: E2 0E 00 [12:20:10]MH_I2C_Read... [12:20:10]Read from MH i2c: E2 0E 00 CD 33 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 83 [12:20:10]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [12:20:10]wFMCommunicate OK [12:20:10]SAM_PROTO_GetShiftState done [12:20:10]FM_GetShiftState done [12:20:10]opened in 1730161990 [12:20:10]opened+sec_in_day 1730248390 [12:20:10]quantity*price = 60009 [12:20:10]sum+1 = 60010 [12:20: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 СÐО: Общий режим Чек 92 29.10.2024 12:20 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192886 ФПД: 188050318877388 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T122015&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192886&fm=188050318877388&tin=02508201610067®Number=0000000000091776&sum=60000 [12:20:11]StoreToDocumentArchive [12:20:11]shift 544 fd 192886 [12:20:11]save to /storage/0544/doc_00192886 [12:20:11]save last doc name /storage/0544/doc_00192886 to /storage/kkm_last_doc_name [12:20:11]save OK [12:20:11]Clear old archive folders... [12:20:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:20:11]tlvbuf is 00FCFB90 [12:20:11]SAM_PROTO_ClearQueue [12:20:11]wFMCommunicate request_size=4 [12:20:11]MH_SAM_APDU [12:20:11]CAPDU: 80 09 00 00 [12:20:11]Write to MH i2c: E2 08 00 DA 33 80 09 00 00 00 00 00 00 7F [12:20:11]Write i2c OK [12:20:11]MH_I2C_Read... [12:20:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:11]Read from MH i2c: E2 [12:20:11]MH_I2C_Read... [12:20:11]Read from MH i2c: E2 03 00 [12:20:11]MH_I2C_Read... [12:20:11]Read from MH i2c: E2 03 00 DA 33 00 90 00 81 [12:20:11]RAPDU: 90 00 [12:20:11]wFMCommunicate OK [12:20:11]SAM_PROTO_ClearQueue done [12:20:11]KKMCreateOFDPacket [12:20:11]OFDProtocolAddRootSTLVToBuf [12:20:11]FM_MakeSignedData [12:20:11]FM_MakeSignedData [12:20:11]SAM_PROTO_SignData [12:20:11]wFMCommunicate request_size=4 [12:20:11]MH_SAM_APDU [12:20:11]CAPDU: 80 0D 01 02 [12:20:11]Write to MH i2c: E2 08 00 DB 33 80 0D 01 02 00 00 00 00 87 [12:20:11]Write i2c OK [12:20:11]MH_I2C_Read... [12:20:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:11]Read from MH i2c: E2 [12:20:11]MH_I2C_Read... [12:20:11]Read from MH i2c: E2 03 00 [12:20:11]MH_I2C_Read... [12:20:11]Read from MH i2c: E2 03 00 DB 33 00 90 00 82 [12:20:11]RAPDU: 90 00 [12:20:11]wFMCommunicate OK [12:20:11]wFMCommunicate request_size=255 [12:20:11]MH_SAM_APDU [12:20:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 5C 00 00 00 F4 03 04 00 FF D2 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 AB [12:20:11]Write to MH i2c: E2 02 01 DC 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 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 5C 00 00 00 F4 03 04 00 FF D2 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 AB 00 00 E2 [12:20:11]Write i2c OK [12:20:11]MH_I2C_Read... [12:20:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:12]Read from MH i2c: E2 [12:20:12]MH_I2C_Read... [12:20:12]Read from MH i2c: E2 03 00 [12:20:12]MH_I2C_Read... [12:20:12]Read from MH i2c: E2 03 00 DC 33 00 90 00 83 [12:20:12]RAPDU: 90 00 [12:20:12]wFMCommunicate OK [12:20:12]wFMCommunicate request_size=10 [12:20:12]MH_SAM_APDU [12:20:12]CAPDU: 80 0D 02 02 05 07 E0 74 E2 CC [12:20:12]Write to MH i2c: E2 0D 00 DD 33 80 0D 02 02 05 00 07 E0 74 E2 CC 00 00 9D [12:20:12]Write i2c OK [12:20:12]MH_I2C_Read... [12:20:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:12]Read from MH i2c: E2 [12:20:12]MH_I2C_Read... [12:20:12]Read from MH i2c: E2 03 00 [12:20:12]MH_I2C_Read... [12:20:12]Read from MH i2c: E2 03 00 DD 33 00 90 00 84 [12:20:12]RAPDU: 90 00 [12:20:12]wFMCommunicate OK [12:20:12]wFMCommunicate request_size=4 [12:20:12]MH_SAM_APDU [12:20:12]CAPDU: 80 0D 03 02 [12:20:12]Write to MH i2c: E2 08 00 DE 33 80 0D 03 02 00 00 00 00 8C [12:20:12]Write i2c OK [12:20:12]MH_I2C_Read... [12:20:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:12]Read from MH i2c: E2 [12:20:12]MH_I2C_Read... [12:20:12]Read from MH i2c: E2 0B 00 [12:20:12]MH_I2C_Read... [12:20:12]Read from MH i2c: E2 0B 00 DE 33 00 FC 10 62 3C 2F 43 79 BE 90 00 E0 [12:20:12]RAPDU: FC 10 62 3C 2F 43 79 BE 90 00 [12:20:12]wFMCommunicate OK [12:20:12]SAM_PROTO_SignData done [12:20:12]FM_MakeSignedData done [12:20:12]CreateOFDProtocolMessage [12:20:12]wFMCommunicate request_size=4 [12:20:12]MH_SAM_APDU [12:20:12]CAPDU: 80 11 00 00 [12:20:12]Write to MH i2c: E2 08 00 DF 33 80 11 00 00 00 00 00 00 8C [12:20:12]Write i2c OK [12:20:12]MH_I2C_Read... [12:20:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:12]Read from MH i2c: E2 [12:20:12]MH_I2C_Read... [12:20:12]Read from MH i2c: E2 17 00 [12:20:12]MH_I2C_Read... [12:20:12]Read from MH i2c: E2 17 00 DF 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DF [12:20:12]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:12]wFMCommunicate OK [12:20:12]CreateOFDProtocolMessage done [12:20:12]OFDSenderStorePacket 192886 [12:20:12]StoreOFDPacket docnum=192886 [12:20: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 0B AC 07 01 AF 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 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 5C 00 00 00 F4 03 04 00 FF D2 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 AB 07 E0 74 E2 CC FC 10 62 3C 2F 43 79 BE [12:20:12]CheckFolder [12:20:12]dirname=/storage/ofd_packets [12:20:12]CheckFolder done [12:20:12]ProducePacketName [12:20:12]name=ofd_packets/00192886 [12:20:12]NVStorageSaveData ofd_packets/00192886 [12:20:12]File name is /storage/ofd_packets/00192886 [12:20:12]Write 301 bytes [12:20:12]NVStorageSaveData done [12:20:12]OFDSenderStorePacket done [12:20:12]KKMCreateOFDPacket done [12:20:12]NVStorageSaveData kkm_last_timestamp [12:20:12]File name is /storage/kkm_last_timestamp [12:20:12]Write 4 bytes [12:20:12]NVStorageSaveData done [12:20:12]ExternCall_PrintAddStr [12:20:12]wPrintStart [12:20:12]Write to MH i2c: 01 00 00 E0 33 13 [12:20:12]Write i2c OK [12:20:12]MH_I2C_Read... [12:20:12]Read from MH i2c: 01 [12:20:12]MH_I2C_Read... [12:20:12]Read from MH i2c: 01 07 00 [12:20:12]MH_I2C_Read... [12:20:12]Read from MH i2c: 01 07 00 E0 33 00 00 00 00 00 FF 0F 28 [12:20:12]RasterBufferAndPrint [12:20:12]line Счет N : (1)32216 [12:20:12]line ИÐÐ: 02508201610067 [12:20:12]line Контрольно-КаÑÑовый Чек [12:20:12]line ПРОДÐЖР[12:20:12]line ТРК (МРК, ГÐК) : 21 [12:20:12]line Товар: 2710124130 [12:20:12]line Ðи-92-К-5 [12:20:12]line 8.970 * 66.90 [12:20:12]line = 600.09 [12:20:12]line ÐДС 12% ÐСП 1% [12:20:12]line > о реализуемом товаре [12:20:12]line ОКРУГЛЕÐИЕ: -0.09 [12:20:12]line ИТОГО: 600.00 [12:20:12]line ВнеÑено: 600.00 [12:20:12]line СДÐЧÐ: 0.00 [12:20:12]line ÐСП 1% : 5.31 [12:20:12]line ÐДС 12% : 63.73 [12:20:12]line Ðаличными: 600.00 [12:20:12]line Безнал.: 0.00 [12:20:12]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [12:20:12]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [12:20:12]line СÐО: Общий режим [12:20:12]line Чек 92 29.10.2024 12:20 [12:20:12]line Смена: 544 ФФД: 1.0 [12:20:12]line ЗÐМ: 0300000110 [12:20:12]line РÐМ: 0000000000091776 [12:20:12]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [12:20:12]line ФМ: 0000000000871754 [12:20:12]line ФД: 192886 [12:20:12]line ФПД: 188050318877388 [12:20:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T122015&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192886&fm=188050318877388&tin=02508201610067®Number=0000000000091776&sum=60000 [12:20:12]OFD Sender: Processing packet 192886 [packets to send 75, broken 74] [12:20:12]ProducePacketName [12:20:12]name=ofd_packets/00192886 [12:20:12]OFD Sender: To server: ‡•öpG, [12:20:12]CommunicateWithHost lk.salyk.kg:30040 [12:20:12]ConnectInit lk.salyk.kg [12:20:12]written 0, free lines is 4095 [12:20:12]Connected sock=8 [12:20:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0B AC 07 01 AF 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 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 5C 00 00 00 F4 03 04 00 FF D2 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 AB 07 E0 74 E2 CC FC 10 62 3C 2F 43 79 BE [12:20:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A1 18 47 00 F5 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 76 F1 02 00 F4 03 04 00 BF 77 20 67 B6 04 01 00 00 42 9A 52 DE 56 54 8F A0 [12:20:12]CommunicateWithHost err = 0 [12:20:12]CheckOFDResponse [12:20:12]1017 (14) - 77093643461234 [12:20:12]1041 (16) - 0000000000871754 [12:20:12]1040 (4) - 192886 [12:20:12]1012 (4) - 29.10.2024 05:50 [12:20:12]1206 (1) - 0 [12:20:12]OFD Sender: Remove packet 192886 [12:20:12]ProducePacketName [12:20:12]name=ofd_packets/00192886 [12:20:12]NVStorageDeleteData [12:20:13]Write to MH i2c: 01 00 00 0B 34 3F [12:20:13]Write i2c OK [12:20:13]MH_I2C_Read... [12:20:13]Read from MH i2c: 01 [12:20:13]MH_I2C_Read... [12:20:13]Read from MH i2c: 01 07 00 [12:20:13]MH_I2C_Read... [12:20:13]Read from MH i2c: 01 07 00 0B 34 00 00 00 00 00 A7 0C F9 [12:20:13]RasterBufferAndPrint [12:20:13]line [12:20:13]line [12:20:13]line [12:20:13]line [12:20:13]line [12:20:13]written 0, free lines is 3245 [12:20:13]MH_Cut [12:20:13]Write to MH i2c: D1 01 00 12 34 01 18 [12:20:13]Write i2c OK [12:20:13]MH_I2C_Read... [12:20:13]Read from MH i2c: D1 [12:20:13]MH_I2C_Read... [12:20:13]Read from MH i2c: D1 01 00 [12:20:13]MH_I2C_Read... [12:20:13]Read from MH i2c: D1 01 00 12 34 00 17 [12:20:13]Write to MH i2c: 01 00 00 13 34 47 [12:20:13]Write i2c OK [12:20:13]MH_I2C_Read... [12:20:13]OFD Sender: No OFD packet to send [12:20:13]*** Cut start [12:20:13]*** Partial cut [12:20:13]*** CUTSNS_PIN = 1 [12:20:13]*** CUTSNS_PIN = 0 [12:20:14]*** Brake cut motor [12:20:14]Read from MH i2c: 01 [12:20:14]MH_I2C_Read... [12:20:14]*** Stop cut motor [12:20:14]*** Cut end [12:20:14]Read from MH i2c: 01 07 00 [12:20:14]MH_I2C_Read... [12:20:14]Read from MH i2c: 01 07 00 13 34 00 00 00 00 00 FF 0F 5C [12:20:14]process_action close_receipt done [12:20:14]requested_data is exist [12:20:14]produce_requested_data [12:20:14]requested_item fm.sn is exist - process it [12:20:14]wFMCommunicate request_size=4 [12:20:14]MH_SAM_APDU [12:20:14]CAPDU: 80 11 00 00 [12:20:14]Write to MH i2c: E2 08 00 14 34 80 11 00 00 00 00 00 00 C2 [12:20:14]Write i2c OK [12:20:14]MH_I2C_Read... [12:20:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:14]Read from MH i2c: E2 [12:20:14]MH_I2C_Read... [12:20:14]Read from MH i2c: E2 17 00 [12:20:14]MH_I2C_Read... [12:20:14]Read from MH i2c: E2 17 00 14 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 15 [12:20:14]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:14]wFMCommunicate OK [12:20:14]requested_item fd.num is exist - process it [12:20:14]SAM_PROTO_GetFieldsCounters [12:20:14]wFMCommunicate request_size=4 [12:20:14]MH_SAM_APDU [12:20:14]CAPDU: 80 13 00 00 [12:20:14]Write to MH i2c: E2 08 00 15 34 80 13 00 00 00 00 00 00 C5 [12:20:14]Write i2c OK [12:20:14]MH_I2C_Read... [12:20:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:14]Read from MH i2c: E2 [12:20:14]MH_I2C_Read... [12:20:14]Read from MH i2c: E2 62 00 [12:20:14]MH_I2C_Read... [12:20:14]Read from MH i2c: E2 62 00 15 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 76 F1 02 00 0E 04 04 00 20 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 8A [12:20:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 F1 02 00 0E 04 04 00 20 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 [12:20:14]wFMCommunicate OK [12:20:14]SAM_PROTO_GetFieldsCounters done [12:20:14]requested_item shift.num is exist - process it [12:20:14]requested_item shift.opened is exist - process it [12:20:14]req_shift_opened [12:20:14]FM_GetShiftState [12:20:14]SAM_PROTO_GetShiftState [12:20:14]wFMCommunicate request_size=4 [12:20:14]MH_SAM_APDU [12:20:14]CAPDU: 80 13 01 00 [12:20:14]Write to MH i2c: E2 08 00 16 34 80 13 01 00 00 00 00 00 C7 [12:20:14]Write i2c OK [12:20:14]MH_I2C_Read... [12:20:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:14]Read from MH i2c: E2 [12:20:14]MH_I2C_Read... [12:20:14]Read from MH i2c: E2 0E 00 [12:20:14]MH_I2C_Read... [12:20:14]Read from MH i2c: E2 0E 00 16 34 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 CD [12:20:14]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [12:20:14]wFMCommunicate OK [12:20:14]SAM_PROTO_GetShiftState done [12:20:14]FM_GetShiftState done [12:20:14]req_shift_opened done [12:20:14]requested_item shift.open_date is exist - process it [12:20:14]req_shift_open_date [12:20:14]req_shift_open_date done [12:20:14]produce_requested_data done [12:20:14]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192886,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [12:20:14]process_action_free close_receipt [12:20:14]json_value_free [12:20:14]json_value_free done [12:20:14]process_json_proto returns [12:20:14]Send response to host [12:20:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192886,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [12:20:14]free response buf [12:20:14]execute_script done [12:20:14]execute_script returns [12:20:14]free content buf [12:20:14]Sock 10.Close socket [12:20:14]Sock 10.Thread stoped [12:20:18]OFD Sender: No OFD packet to send [12:20:23]OFD Sender: No OFD packet to send [12:20:28]OFD Sender: No OFD packet to send [12:20:33]OFD Sender: No OFD packet to send [12:20:38]OFD Sender: No OFD packet to send [12:20:43]OFD Sender: No OFD packet to send [12:20:48]OFD Sender: No OFD packet to send [12:20:53]OFD Sender: No OFD packet to send [12:20:58]OFD Sender: No OFD packet to send [12:21:03]OFD Sender: No OFD packet to send [12:21:08]OFD Sender: No OFD packet to send [12:21:13]OFD Sender: No OFD packet to send [12:21:18]OFD Sender: No OFD packet to send [12:21:23]OFD Sender: No OFD packet to send [12:21:28]OFD Sender: No OFD packet to send [12:21:33]OFD Sender: No OFD packet to send [12:21:38]OFD Sender: No OFD packet to send [12:21:43]OFD Sender: No OFD packet to send [12:21:48]OFD Sender: No OFD packet to send [12:21:53]OFD Sender: No OFD packet to send [12:21:58]OFD Sender: No OFD packet to send [12:22:03]OFD Sender: No OFD packet to send [12:22:08]OFD Sender: No OFD packet to send [12:22:13]OFD Sender: No OFD packet to send [12:22:18]OFD Sender: No OFD packet to send [12:22:23]OFD Sender: No OFD packet to send [12:22:28]OFD Sender: No OFD packet to send [12:22:33]OFD Sender: No OFD packet to send [12:22:38]OFD Sender: No OFD packet to send [12:22:43]OFD Sender: No OFD packet to send [12:22:48]OFD Sender: No OFD packet to send [12:22:53]OFD Sender: No OFD packet to send [12:22:57]accept exits with 9 [12:22:57]New connection [12:22:57]New thread 3066658148 created [12:22:57]Thread 3066801508 joined [12:22:57]Waiting for new connection... [12:22:57] Sock 9.Parse request [12:22:57]Sock 9.Check first char [12:22:57]Sock 9.First char is OK [12:22:57]request: POST /json_proto HTTP/1.0 [12:22:57]Method: POST [12:22:57]URL: /json_proto [12:22:57]Method is POST - this is cgi request [12:22:57]url: /json_proto [12:22:57]query_string will be loaded in cgi processing [12:22:57]execute_cgi json_proto POST (null) [12:22:57]execute_cgi path=json_proto method=POST [12:22:57]POST find Content-Length [12:22:57]Host: 172.17.63.131:8080 [12:22:57]Content-Length: 676 [12:22:57]Content-Type: application/json [12:22:57] [12:22:57]POST finish read [12:22:57]Found Content-Length = 676 [12:22:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32217", "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:22:57]execute_script... [12:22: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)32217", "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:22:57]POST & json_proto [12:22:57]process_json_proto [12:22:57]json parsed OK: [12:22:57]protocol is kg_v1.0 [12:22:57]action value=close_receipt [12:22:57]process_action close_receipt [12:22:57]cmd_close_receipt [12:22:57]MH_GetDate [12:22:57]Write to MH i2c: F0 00 00 17 34 3A [12:22:57]Write i2c OK [12:22:57]MH_I2C_Read... [12:22:57]Read from MH i2c: F0 [12:22:57]MH_I2C_Read... [12:22:57]Read from MH i2c: F0 09 00 [12:22:57]MH_I2C_Read... [12:22:57]Read from MH i2c: F0 09 00 17 34 00 A6 D3 20 67 22 05 6E 64 3C [12:22:57]GetLastDocTimeStamp 1730204415 [12:22:57]current date 1730204582 [12:22:57]FM_GetShiftState [12:22:57]SAM_PROTO_GetShiftState [12:22:57]wFMCommunicate request_size=4 [12:22:57]MH_SAM_APDU [12:22:57]CAPDU: 80 13 01 00 [12:22:57]Write to MH i2c: E2 08 00 18 34 80 13 01 00 00 00 00 00 C9 [12:22:57]Write i2c OK [12:22:57]MH_I2C_Read... [12:22:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:57]Read from MH i2c: E2 [12:22:57]MH_I2C_Read... [12:22:57]Read from MH i2c: E2 0E 00 [12:22:57]MH_I2C_Read... [12:22:57]Read from MH i2c: E2 0E 00 18 34 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 CF [12:22:57]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [12:22:57]wFMCommunicate OK [12:22:57]SAM_PROTO_GetShiftState done [12:22:57]FM_GetShiftState done [12:22:57]opened in 1730161990 [12:22:57]opened+sec_in_day 1730248390 [12:22:57]quantity*price = 50041 [12:22:57]sum+1 = 50042 [12:22:57]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 29.10.2024 12:23 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192887 ФПД: 246140455596412 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T122302&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192887&fm=246140455596412&tin=02508201610067®Number=0000000000091776&sum=50000 [12:22:58]StoreToDocumentArchive [12:22:58]shift 544 fd 192887 [12:22:58]save to /storage/0544/doc_00192887 [12:22:58]save last doc name /storage/0544/doc_00192887 to /storage/kkm_last_doc_name [12:22:58]save OK [12:22:58]Clear old archive folders... [12:22:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:22:58]tlvbuf is 00F02110 [12:22:58]SAM_PROTO_ClearQueue [12:22:58]wFMCommunicate request_size=4 [12:22:58]MH_SAM_APDU [12:22:58]CAPDU: 80 09 00 00 [12:22:58]Write to MH i2c: E2 08 00 25 34 80 09 00 00 00 00 00 00 CB [12:22:58]Write i2c OK [12:22:58]MH_I2C_Read... [12:22:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:22:58]Read from MH i2c: E2 [12:22:58]MH_I2C_Read... [12:22:58]Read from MH i2c: E2 03 00 [12:22:58]MH_I2C_Read... [12:22:58]Read from MH i2c: E2 03 00 25 34 00 90 00 CD [12:22:58]RAPDU: 90 00 [12:22:58]wFMCommunicate OK [12:22:58]SAM_PROTO_ClearQueue done [12:22:58]KKMCreateOFDPacket [12:22:58]OFDProtocolAddRootSTLVToBuf [12:22:58]FM_MakeSignedData [12:22:58]FM_MakeSignedData [12:22:58]SAM_PROTO_SignData [12:22:58]wFMCommunicate request_size=4 [12:22:58]MH_SAM_APDU [12:22:58]CAPDU: 80 0D 01 02 [12:22:58]Write to MH i2c: E2 08 00 26 34 80 0D 01 02 00 00 00 00 D3 [12:22:58]Write i2c OK [12:22:58]MH_I2C_Read... [12:22:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:22:58]Read from MH i2c: E2 [12:22:58]MH_I2C_Read... [12:22:58]Read from MH i2c: E2 03 00 [12:22:58]MH_I2C_Read... [12:22:58]Read from MH i2c: E2 03 00 26 34 00 90 00 CE [12:22:58]RAPDU: 90 00 [12:22:58]wFMCommunicate OK [12:22:58]wFMCommunicate request_size=255 [12:22:58]MH_SAM_APDU [12:22:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 A6 D3 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 DF [12:22:58]Write to MH i2c: E2 02 01 27 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 A6 D3 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 DF 00 00 2F [12:22:58]Write i2c OK [12:22:58]MH_I2C_Read... [12:22:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:59]Read from MH i2c: E2 [12:22:59]MH_I2C_Read... [12:22:59]Read from MH i2c: E2 03 00 [12:22:59]MH_I2C_Read... [12:22:59]Read from MH i2c: E2 03 00 27 34 00 90 00 CF [12:22:59]RAPDU: 90 00 [12:22:59]wFMCommunicate OK [12:22:59]wFMCommunicate request_size=10 [12:22:59]MH_SAM_APDU [12:22:59]CAPDU: 80 0D 02 02 05 DD 0A 6B B1 7C [12:22:59]Write to MH i2c: E2 0D 00 28 34 80 0D 02 02 05 00 DD 0A 6B B1 7C 00 00 5F [12:22:59]Write i2c OK [12:22:59]MH_I2C_Read... [12:22:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:59]Read from MH i2c: E2 [12:22:59]MH_I2C_Read... [12:22:59]Read from MH i2c: E2 03 00 [12:22:59]MH_I2C_Read... [12:22:59]Read from MH i2c: E2 03 00 28 34 00 90 00 D0 [12:22:59]RAPDU: 90 00 [12:22:59]wFMCommunicate OK [12:22:59]wFMCommunicate request_size=4 [12:22:59]MH_SAM_APDU [12:22:59]CAPDU: 80 0D 03 02 [12:22:59]Write to MH i2c: E2 08 00 29 34 80 0D 03 02 00 00 00 00 D8 [12:22:59]Write i2c OK [12:22:59]MH_I2C_Read... [12:22:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:22:59]Read from MH i2c: E2 [12:22:59]MH_I2C_Read... [12:22:59]Read from MH i2c: E2 0B 00 [12:22:59]MH_I2C_Read... [12:22:59]Read from MH i2c: E2 0B 00 29 34 00 A1 6C 8E D5 40 E7 FD F4 90 00 61 [12:22:59]RAPDU: A1 6C 8E D5 40 E7 FD F4 90 00 [12:22:59]wFMCommunicate OK [12:22:59]SAM_PROTO_SignData done [12:22:59]FM_MakeSignedData done [12:22:59]CreateOFDProtocolMessage [12:22:59]wFMCommunicate request_size=4 [12:22:59]MH_SAM_APDU [12:22:59]CAPDU: 80 11 00 00 [12:22:59]Write to MH i2c: E2 08 00 2A 34 80 11 00 00 00 00 00 00 D8 [12:22:59]Write i2c OK [12:22:59]MH_I2C_Read... [12:22:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:59]Read from MH i2c: E2 [12:22:59]MH_I2C_Read... [12:22:59]Read from MH i2c: E2 17 00 [12:22:59]MH_I2C_Read... [12:22:59]Read from MH i2c: E2 17 00 2A 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2B [12:22:59]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:59]wFMCommunicate OK [12:22:59]CreateOFDProtocolMessage done [12:22:59]OFDSenderStorePacket 192887 [12:22:59]StoreOFDPacket docnum=192887 [12:22: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 5D 17 07 01 74 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 A6 D3 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 DF DD 0A 6B B1 7C A1 6C 8E D5 40 E7 FD F4 [12:22:59]CheckFolder [12:22:59]dirname=/storage/ofd_packets [12:22:59]CheckFolder done [12:22:59]ProducePacketName [12:22:59]name=ofd_packets/00192887 [12:22:59]NVStorageSaveData ofd_packets/00192887 [12:22:59]File name is /storage/ofd_packets/00192887 [12:22:59]Write 301 bytes [12:22:59]NVStorageSaveData done [12:22:59]OFDSenderStorePacket done [12:22:59]KKMCreateOFDPacket done [12:22:59]NVStorageSaveData kkm_last_timestamp [12:22:59]File name is /storage/kkm_last_timestamp [12:22:59]Write 4 bytes [12:22:59]NVStorageSaveData done [12:22:59]ExternCall_PrintAddStr [12:22:59]wPrintStart [12:22:59]Write to MH i2c: 01 00 00 2B 34 5F [12:22:59]Write i2c OK [12:22:59]MH_I2C_Read... [12:22:59]Read from MH i2c: 01 [12:22:59]MH_I2C_Read... [12:22:59]Read from MH i2c: 01 07 00 [12:22:59]MH_I2C_Read... [12:22:59]Read from MH i2c: 01 07 00 2B 34 00 00 00 00 00 FF 0F 74 [12:22:59]RasterBufferAndPrint [12:22:59]line Счет N : (1)32217 [12:22:59]line ИÐÐ: 02508201610067 [12:22:59]line Контрольно-КаÑÑовый Чек [12:22:59]line ПРОДÐЖР[12:22:59]line ТРК (МРК, ГÐК) : 12 [12:22:59]line Товар: 2710124130 [12:22:59]line Ðи-92-К-5 [12:22:59]line 7.480 * 66.90 [12:22:59]line = 500.41 [12:22:59]line ÐДС 12% ÐСП 1% [12:22:59]line > о реализуемом товаре [12:22:59]line ОКРУГЛЕÐИЕ: -0.41 [12:22:59]line ИТОГО: 500.00 [12:22:59]line ВнеÑено: 500.00 [12:22:59]line СДÐЧÐ: 0.00 [12:22:59]line ÐСП 1% : 4.43 [12:22:59]line ÐДС 12% : 53.14 [12:22:59]line Ðаличными: 500.00 [12:22:59]line Безнал.: 0.00 [12:22:59]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [12:22:59]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [12:22:59]line СÐО: Общий режим [12:22:59]line Чек 93 29.10.2024 12:23 [12:22:59]line Смена: 544 ФФД: 1.0 [12:22:59]line ЗÐМ: 0300000110 [12:22:59]line РÐМ: 0000000000091776 [12:22:59]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [12:22:59]line ФМ: 0000000000871754 [12:22:59]line ФД: 192887 [12:22:59]line ФПД: 246140455596412 [12:22:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T122302&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192887&fm=246140455596412&tin=02508201610067®Number=0000000000091776&sum=50000 [12:22:59]OFD Sender: Processing packet 192887 [packets to send 75, broken 74] [12:22:59]ProducePacketName [12:22:59]name=ofd_packets/00192887 [12:22:59]OFD Sender: To server: ‡•öpG, [12:22:59]CommunicateWithHost lk.salyk.kg:30040 [12:22:59]ConnectInit lk.salyk.kg [12:22:59]written 0, free lines is 4095 [12:23:00]Write to MH i2c: 01 00 00 56 34 8A [12:23:00]Write i2c OK [12:23:00]MH_I2C_Read... [12:23:00]Read from MH i2c: 01 [12:23:00]MH_I2C_Read... [12:23:00]Read from MH i2c: 01 07 00 [12:23:00]MH_I2C_Read... [12:23:00]Read from MH i2c: 01 07 00 56 34 00 00 00 00 00 A7 0C 44 [12:23:00]RasterBufferAndPrint [12:23:00]line [12:23:00]line [12:23:00]line [12:23:00]line [12:23:00]line [12:23:00]written 0, free lines is 3242 [12:23:00]MH_Cut [12:23:00]Write to MH i2c: D1 01 00 5D 34 01 63 [12:23:00]Write i2c OK [12:23:00]MH_I2C_Read... [12:23:00]Read from MH i2c: D1 [12:23:00]MH_I2C_Read... [12:23:00]Read from MH i2c: D1 01 00 [12:23:00]MH_I2C_Read... [12:23:00]Read from MH i2c: D1 01 00 5D 34 00 62 [12:23:00]Write to MH i2c: 01 00 00 5E 34 92 [12:23:00]Write i2c OK [12:23:00]MH_I2C_Read... [12:23:00]*** Cut start [12:23:00]*** Partial cut [12:23:00]*** CUTSNS_PIN = 1 [12:23:00]*** CUTSNS_PIN = 0 [12:23:01]*** Brake cut motor [12:23:01]Read from MH i2c: 01 [12:23:01]MH_I2C_Read... [12:23:01]*** Stop cut motor [12:23:01]*** Cut end [12:23:01]Read from MH i2c: 01 07 00 [12:23:01]MH_I2C_Read... [12:23:01]Read from MH i2c: 01 07 00 5E 34 00 00 00 00 00 FF 0F A7 [12:23:01]process_action close_receipt done [12:23:01]requested_data is exist [12:23:01]produce_requested_data [12:23:01]requested_item fm.sn is exist - process it [12:23:01]wFMCommunicate request_size=4 [12:23:01]MH_SAM_APDU [12:23:01]CAPDU: 80 11 00 00 [12:23:01]Write to MH i2c: E2 08 00 5F 34 80 11 00 00 00 00 00 00 0D [12:23:01]Write i2c OK [12:23:01]MH_I2C_Read... [12:23:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:01]Read from MH i2c: E2 [12:23:01]MH_I2C_Read... [12:23:01]Read from MH i2c: E2 17 00 [12:23:01]MH_I2C_Read... [12:23:01]Read from MH i2c: E2 17 00 5F 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 60 [12:23: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:23:01]wFMCommunicate OK [12:23:01]requested_item fd.num is exist - process it [12:23:01]SAM_PROTO_GetFieldsCounters [12:23:01]wFMCommunicate request_size=4 [12:23:01]MH_SAM_APDU [12:23:01]CAPDU: 80 13 00 00 [12:23:01]Write to MH i2c: E2 08 00 60 34 80 13 00 00 00 00 00 00 10 [12:23:01]Write i2c OK [12:23:01]MH_I2C_Read... [12:23:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:23:01]Read from MH i2c: E2 [12:23:01]MH_I2C_Read... [12:23:01]Read from MH i2c: E2 62 00 [12:23:01]MH_I2C_Read... [12:23:01]Read from MH i2c: E2 62 00 60 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 77 F1 02 00 0E 04 04 00 20 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 D9 [12:23: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 77 F1 02 00 0E 04 04 00 20 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 [12:23:01]wFMCommunicate OK [12:23:01]SAM_PROTO_GetFieldsCounters done [12:23:01]requested_item shift.num is exist - process it [12:23:01]requested_item shift.opened is exist - process it [12:23:01]req_shift_opened [12:23:01]FM_GetShiftState [12:23:01]SAM_PROTO_GetShiftState [12:23:01]wFMCommunicate request_size=4 [12:23:01]MH_SAM_APDU [12:23:01]CAPDU: 80 13 01 00 [12:23:01]Write to MH i2c: E2 08 00 61 34 80 13 01 00 00 00 00 00 12 [12:23:01]Write i2c OK [12:23:01]MH_I2C_Read... [12:23:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:01]Read from MH i2c: E2 [12:23:01]MH_I2C_Read... [12:23:01]Read from MH i2c: E2 0E 00 [12:23:01]MH_I2C_Read... [12:23:01]Read from MH i2c: E2 0E 00 61 34 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 18 [12:23:01]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [12:23:01]wFMCommunicate OK [12:23:01]SAM_PROTO_GetShiftState done [12:23:01]FM_GetShiftState done [12:23:01]req_shift_opened done [12:23:01]requested_item shift.open_date is exist - process it [12:23:01]req_shift_open_date [12:23:01]req_shift_open_date done [12:23:01]produce_requested_data done [12:23:01]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192887,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [12:23:01]process_action_free close_receipt [12:23:01]json_value_free [12:23:01]json_value_free done [12:23:01]process_json_proto returns [12:23:01]Send response to host [12:23:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192887,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [12:23:01]free response buf [12:23:01]execute_script done [12:23:01]execute_script returns [12:23:01]free content buf [12:23:01]Sock 9.Close socket [12:23:01]Sock 9.Thread stoped [12:24:28]accept exits with 8 [12:24:28]New connection [12:24:28]New thread 3066801508 created [12:24:28]Thread 3066658148 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: 681 [12:24:28]Content-Type: application/json [12:24:28] [12:24:28]POST finish read [12:24:28]Found Content-Length = 681 [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)32218", "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: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)32218", "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: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 62 34 85 [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 62 34 00 01 D4 20 67 22 05 6E 64 E3 [12:24:28]GetLastDocTimeStamp 1730204582 [12:24:28]current date 1730204673 [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 63 34 80 13 01 00 00 00 00 00 14 [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 63 34 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 1A [12:24:28]RAPDU: 09 00 01 46 2D 20 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 1730161990 [12:24:28]opened+sec_in_day 1730248390 [12:24:28]quantity*price = 100015 [12:24:28]sum+1 = 100017 [12:24: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 СÐО: Общий режим Чек 94 29.10.2024 12:24 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192888 ФПД: 250202731695482 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T122433&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192888&fm=250202731695482&tin=02508201610067®Number=0000000000091776&sum=100000 [12:24:30]StoreToDocumentArchive [12:24:30]shift 544 fd 192888 [12:24:30]save to /storage/0544/doc_00192888 [12:24:30]save last doc name /storage/0544/doc_00192888 to /storage/kkm_last_doc_name [12:24:30]save OK [12:24:30]Clear old archive folders... [12:24:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:24:30]tlvbuf is 00FF1740 [12:24:30]SAM_PROTO_ClearQueue [12:24:30]wFMCommunicate request_size=4 [12:24:30]MH_SAM_APDU [12:24:30]CAPDU: 80 09 00 00 [12:24:30]Write to MH i2c: E2 08 00 70 34 80 09 00 00 00 00 00 00 16 [12:24:30]Write i2c OK [12:24:30]MH_I2C_Read... [12:24:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:30]Read from MH i2c: E2 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: E2 03 00 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: E2 03 00 70 34 00 90 00 18 [12:24:30]RAPDU: 90 00 [12:24:30]wFMCommunicate OK [12:24:30]SAM_PROTO_ClearQueue done [12:24:30]KKMCreateOFDPacket [12:24:30]OFDProtocolAddRootSTLVToBuf [12:24:30]FM_MakeSignedData [12:24:30]FM_MakeSignedData [12:24:30]SAM_PROTO_SignData [12:24:30]wFMCommunicate request_size=4 [12:24:30]MH_SAM_APDU [12:24:30]CAPDU: 80 0D 01 02 [12:24:30]Write to MH i2c: E2 08 00 71 34 80 0D 01 02 00 00 00 00 1E [12:24:30]Write i2c OK [12:24:30]MH_I2C_Read... [12:24:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:30]Read from MH i2c: E2 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: E2 03 00 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: E2 03 00 71 34 00 90 00 19 [12:24:30]RAPDU: 90 00 [12:24:30]wFMCommunicate OK [12:24:30]wFMCommunicate request_size=255 [12:24:30]MH_SAM_APDU [12:24: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 01 D4 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 E3 [12:24:30]Write to MH i2c: E2 02 01 72 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 01 D4 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 E3 00 00 D6 [12:24:30]Write i2c OK [12:24:30]MH_I2C_Read... [12:24:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:30]Read from MH i2c: E2 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: E2 03 00 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: E2 03 00 72 34 00 90 00 1A [12:24:30]RAPDU: 90 00 [12:24:30]wFMCommunicate OK [12:24:30]wFMCommunicate request_size=10 [12:24:30]MH_SAM_APDU [12:24:30]CAPDU: 80 0D 02 02 05 8E DC F1 CD 7A [12:24:30]Write to MH i2c: E2 0D 00 73 34 80 0D 02 02 05 00 8E DC F1 CD 7A 00 00 CD [12:24:30]Write i2c OK [12:24:30]MH_I2C_Read... [12:24:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:30]Read from MH i2c: E2 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: E2 03 00 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: E2 03 00 73 34 00 90 00 1B [12:24:30]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 74 34 80 0D 03 02 00 00 00 00 23 [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 74 34 00 67 DB 5D C4 84 76 09 37 90 00 C1 [12:24:30]RAPDU: 67 DB 5D C4 84 76 09 37 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 75 34 80 11 00 00 00 00 00 00 23 [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 75 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 76 [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 192888 [12:24:30]StoreOFDPacket docnum=192888 [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 20 5F 07 01 BE 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 01 D4 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 E3 8E DC F1 CD 7A 67 DB 5D C4 84 76 09 37 [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/00192888 [12:24:30]NVStorageSaveData ofd_packets/00192888 [12:24:30]File name is /storage/ofd_packets/00192888 [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 76 34 AA [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 76 34 00 00 00 00 00 FF 0F BF [12:24:30]RasterBufferAndPrint [12:24:30]line Счет N : (1)32218 [12:24:30]line ИÐÐ: 02508201610067 [12:24:30]line Контрольно-КаÑÑовый Чек [12:24:30]line ПРОДÐЖР[12:24:30]line ТРК (МРК, ГÐК) : 12 [12:24:30]line Товар: 2710124130 [12:24:30]line Ðи-92-К-5 [12:24:30]line 14.950 * 66.90 [12:24:30]line = 1000.16 [12:24:30]line ÐДС 12% ÐСП 1% [12:24:30]line > о реализуемом товаре [12:24:30]line ОКРУГЛЕÐИЕ: -0.16 [12:24:30]line ИТОГО: 1000.00 [12:24:30]line ВнеÑено: 1000.00 [12:24:30]line СДÐЧÐ: 0.00 [12:24:30]line ÐСП 1% : 8.85 [12:24:30]line ÐДС 12% : 106.21 [12:24:30]line Ðаличными: 1000.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 Чек 94 29.10.2024 12:24 [12:24:30]line Смена: 544 ФФД: 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 ФД: 192888 [12:24:30]line ФПД: 250202731695482 [12:24:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T122433&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192888&fm=250202731695482&tin=02508201610067®Number=0000000000091776&sum=100000 [12:24:30]written 0, free lines is 4095 [12:24:31]Write to MH i2c: 01 00 00 A1 34 D5 [12:24:31]Write i2c OK [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: 01 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: 01 07 00 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: 01 07 00 A1 34 00 00 00 00 00 AB 0C 93 [12:24:31]RasterBufferAndPrint [12:24:31]line [12:24:31]line [12:24:31]line [12:24:31]line [12:24:31]line [12:24:31]written 0, free lines is 3247 [12:24:31]MH_Cut [12:24:31]Write to MH i2c: D1 01 00 A8 34 01 AE [12:24:31]Write i2c OK [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: D1 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: D1 01 00 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: D1 01 00 A8 34 00 AD [12:24:31]Write to MH i2c: 01 00 00 A9 34 DD [12:24:31]Write i2c OK [12:24:31]MH_I2C_Read... [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 A9 34 00 00 00 00 00 FF 0F F2 [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 AA 34 80 11 00 00 00 00 00 00 58 [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 AA 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AB [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 AB 34 80 13 00 00 00 00 00 00 5B [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 AB 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 78 F1 02 00 0E 04 04 00 20 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 28 [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 78 F1 02 00 0E 04 04 00 20 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 [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 AC 34 80 13 01 00 00 00 00 00 5D [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 AC 34 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 63 [12:24:32]RAPDU: 09 00 01 46 2D 20 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":192888,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [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":192888,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [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:25:12]ConnectInit Can't connect to host [12:25:12]CommunicateWithHost connect error [12:25:12]CommunicateWithHost err = -1 [12:25:12]OFD Sender: Server communicate error [12:25:12]OFD Sender: Processing packet 192887 [packets to send 76, broken 74] [12:25:12]ProducePacketName [12:25:12]name=ofd_packets/00192887 [12:25:12]OFD Sender: To server: ‡•öpG, [12:25:12]CommunicateWithHost lk.salyk.kg:30040 [12:25:12]ConnectInit lk.salyk.kg [12:25:12]Connected sock=8 [12:25: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 5D 17 07 01 74 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 A6 D3 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 DF DD 0A 6B B1 7C A1 6C 8E D5 40 E7 FD F4 [12:25:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A6 43 47 00 AF 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 77 F1 02 00 F4 03 04 00 EC 78 20 67 B6 04 01 00 00 C9 D5 FA 75 7A 87 AE 80 [12:25:13]CommunicateWithHost err = 0 [12:25:13]CheckOFDResponse [12:25:13]1017 (14) - 77093643461234 [12:25:13]1041 (16) - 0000000000871754 [12:25:13]1040 (4) - 192887 [12:25:13]1012 (4) - 29.10.2024 05:55 [12:25:13]1206 (1) - 0 [12:25:13]OFD Sender: Remove packet 192887 [12:25:13]ProducePacketName [12:25:13]name=ofd_packets/00192887 [12:25:13]NVStorageDeleteData [12:25:13]OFD Sender: Processing packet 192888 [packets to send 75, broken 74] [12:25:13]ProducePacketName [12:25:13]name=ofd_packets/00192888 [12:25:13]OFD Sender: To server: ‡•öpG, [12:25:13]CommunicateWithHost lk.salyk.kg:30040 [12:25:13]ConnectInit lk.salyk.kg [12:25:13]Connected sock=8 [12:25:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 20 5F 07 01 BE 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 01 D4 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 E3 8E DC F1 CD 7A 67 DB 5D C4 84 76 09 37 [12:25:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 6A 6E 47 00 45 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 78 F1 02 00 F4 03 04 00 EC 78 20 67 B6 04 01 00 00 DD 02 CF C9 5C AD 64 A3 [12:25:13]CommunicateWithHost err = 0 [12:25:13]CheckOFDResponse [12:25:13]1017 (14) - 77093643461234 [12:25:13]1041 (16) - 0000000000871754 [12:25:13]1040 (4) - 192888 [12:25:13]1012 (4) - 29.10.2024 05:55 [12:25:13]1206 (1) - 0 [12:25:13]OFD Sender: Remove packet 192888 [12:25:13]ProducePacketName [12:25:13]name=ofd_packets/00192888 [12:25:13]NVStorageDeleteData [12:25:14]OFD Sender: No OFD packet to send [12:25:19]OFD Sender: No OFD packet to send [12:25:24]OFD Sender: No OFD packet to send [12:25:29]OFD Sender: No OFD packet to send [12:25:29]accept exits with 9 [12:25:29]New connection [12:25:29]New thread 3066658148 created [12:25:29]Thread 3066801508 joined [12:25:29]Waiting for new connection... [12:25:29] Sock 9.Parse request [12:25:29]Sock 9.Check first char [12:25:29]Sock 9.First char is OK [12:25:29]request: POST /json_proto HTTP/1.0 [12:25:29]Method: POST [12:25:29]URL: /json_proto [12:25:29]Method is POST - this is cgi request [12:25:29]url: /json_proto [12:25:29]query_string will be loaded in cgi processing [12:25:29]execute_cgi json_proto POST (null) [12:25:29]execute_cgi path=json_proto method=POST [12:25:29]POST find Content-Length [12:25:29]Host: 172.17.63.131:8080 [12:25:29]Content-Length: 673 [12:25:29]Content-Type: application/json [12:25:29] [12:25:29]POST finish read [12:25:29]Found Content-Length = 673 [12:25:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32219", "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" ] } } [12:25:29]execute_script... [12:25: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)32219", "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" ] } } [12:25:29]POST & json_proto [12:25:29]process_json_proto [12:25:29]json parsed OK: [12:25:29]protocol is kg_v1.0 [12:25:29]action value=close_receipt [12:25:29]process_action close_receipt [12:25:29]cmd_close_receipt [12:25:29]MH_GetDate [12:25:29]Write to MH i2c: F0 00 00 AD 34 D0 [12:25:29]Write i2c OK [12:25:29]MH_I2C_Read... [12:25:29]Read from MH i2c: F0 [12:25:29]MH_I2C_Read... [12:25:29]Read from MH i2c: F0 09 00 [12:25:29]MH_I2C_Read... [12:25:29]Read from MH i2c: F0 09 00 AD 34 00 3E D4 20 67 22 05 6E 64 6B [12:25:29]GetLastDocTimeStamp 1730204673 [12:25:29]current date 1730204734 [12:25:29]FM_GetShiftState [12:25:29]SAM_PROTO_GetShiftState [12:25:29]wFMCommunicate request_size=4 [12:25:29]MH_SAM_APDU [12:25:29]CAPDU: 80 13 01 00 [12:25:29]Write to MH i2c: E2 08 00 AE 34 80 13 01 00 00 00 00 00 5F [12:25:29]Write i2c OK [12:25:29]MH_I2C_Read... [12:25:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:30]Read from MH i2c: E2 [12:25:30]MH_I2C_Read... [12:25:30]Read from MH i2c: E2 0E 00 [12:25:30]MH_I2C_Read... [12:25:30]Read from MH i2c: E2 0E 00 AE 34 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 65 [12:25:30]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [12:25:30]wFMCommunicate OK [12:25:30]SAM_PROTO_GetShiftState done [12:25:30]FM_GetShiftState done [12:25:30]opened in 1730161990 [12:25:30]opened+sec_in_day 1730248390 [12:25:30]quantity*price = 50063 [12:25:30]sum+1 = 50064 [12:25:30]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 СÐО: Общий режим Чек 95 29.10.2024 12:25 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192889 ФПД: 188610154202588 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T122534&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192889&fm=188610154202588&tin=02508201610067®Number=0000000000091776&sum=50000 [12:25:31]StoreToDocumentArchive [12:25:31]shift 544 fd 192889 [12:25:31]save to /storage/0544/doc_00192889 [12:25:31]save last doc name /storage/0544/doc_00192889 to /storage/kkm_last_doc_name [12:25:31]save OK [12:25:31]Clear old archive folders... [12:25:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:25:31]tlvbuf is 00FB88B0 [12:25:31]SAM_PROTO_ClearQueue [12:25:31]wFMCommunicate request_size=4 [12:25:31]MH_SAM_APDU [12:25:31]CAPDU: 80 09 00 00 [12:25:31]Write to MH i2c: E2 08 00 BB 34 80 09 00 00 00 00 00 00 61 [12:25:31]Write i2c OK [12:25:31]MH_I2C_Read... [12:25:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:25:31]Read from MH i2c: E2 [12:25:31]MH_I2C_Read... [12:25:31]Read from MH i2c: E2 03 00 [12:25:31]MH_I2C_Read... [12:25:31]Read from MH i2c: E2 03 00 BB 34 00 90 00 63 [12:25:31]RAPDU: 90 00 [12:25:31]wFMCommunicate OK [12:25:31]SAM_PROTO_ClearQueue done [12:25:31]KKMCreateOFDPacket [12:25:31]OFDProtocolAddRootSTLVToBuf [12:25:31]FM_MakeSignedData [12:25:31]FM_MakeSignedData [12:25:31]SAM_PROTO_SignData [12:25:31]wFMCommunicate request_size=4 [12:25:31]MH_SAM_APDU [12:25:31]CAPDU: 80 0D 01 02 [12:25:31]Write to MH i2c: E2 08 00 BC 34 80 0D 01 02 00 00 00 00 69 [12:25:31]Write i2c OK [12:25:31]MH_I2C_Read... [12:25:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:25:31]Read from MH i2c: E2 [12:25:31]MH_I2C_Read... [12:25:31]Read from MH i2c: E2 03 00 [12:25:31]MH_I2C_Read... [12:25:31]Read from MH i2c: E2 03 00 BC 34 00 90 00 64 [12:25:31]RAPDU: 90 00 [12:25:31]wFMCommunicate OK [12:25:31]wFMCommunicate request_size=255 [12:25:31]MH_SAM_APDU [12:25: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 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 5F 00 00 00 F4 03 04 00 3E D4 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 AB 8A 39 3E [12:25:31]Write to MH i2c: E2 02 01 BD 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 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 5F 00 00 00 F4 03 04 00 3E D4 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 AB 8A 39 3E 00 00 AD [12:25:31]Write i2c OK [12:25:31]MH_I2C_Read... [12:25:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:31]Read from MH i2c: E2 [12:25:31]MH_I2C_Read... [12:25:31]Read from MH i2c: E2 03 00 [12:25:31]MH_I2C_Read... [12:25:31]Read from MH i2c: E2 03 00 BD 34 00 90 00 65 [12:25:31]RAPDU: 90 00 [12:25:31]wFMCommunicate OK [12:25:31]wFMCommunicate request_size=7 [12:25:31]MH_SAM_APDU [12:25:31]CAPDU: 80 0D 02 02 02 05 DC [12:25:31]Write to MH i2c: E2 0A 00 BE 34 80 0D 02 02 02 00 05 DC 00 00 51 [12:25:31]Write i2c OK [12:25:31]MH_I2C_Read... [12:25:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:31]Read from MH i2c: E2 [12:25:31]MH_I2C_Read... [12:25:31]Read from MH i2c: E2 03 00 [12:25:31]MH_I2C_Read... [12:25:31]Read from MH i2c: E2 03 00 BE 34 00 90 00 66 [12:25:31]RAPDU: 90 00 [12:25:31]wFMCommunicate OK [12:25:31]wFMCommunicate request_size=4 [12:25:31]MH_SAM_APDU [12:25:31]CAPDU: 80 0D 03 02 [12:25:31]Write to MH i2c: E2 08 00 BF 34 80 0D 03 02 00 00 00 00 6E [12:25:31]Write i2c OK [12:25:31]MH_I2C_Read... [12:25:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:25:31]Read from MH i2c: E2 [12:25:31]MH_I2C_Read... [12:25:31]Read from MH i2c: E2 0B 00 [12:25:31]MH_I2C_Read... [12:25:31]Read from MH i2c: E2 0B 00 BF 34 00 77 54 5F 1B D3 C3 D0 E9 90 00 03 [12:25:31]RAPDU: 77 54 5F 1B D3 C3 D0 E9 90 00 [12:25:31]wFMCommunicate OK [12:25:31]SAM_PROTO_SignData done [12:25:31]FM_MakeSignedData done [12:25:31]CreateOFDProtocolMessage [12:25:31]wFMCommunicate request_size=4 [12:25:31]MH_SAM_APDU [12:25:31]CAPDU: 80 11 00 00 [12:25:31]Write to MH i2c: E2 08 00 C0 34 80 11 00 00 00 00 00 00 6E [12:25:31]Write i2c OK [12:25:31]MH_I2C_Read... [12:25:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:31]Read from MH i2c: E2 [12:25:31]MH_I2C_Read... [12:25:31]Read from MH i2c: E2 17 00 [12:25:31]MH_I2C_Read... [12:25:31]Read from MH i2c: E2 17 00 C0 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C1 [12:25: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:25:31]wFMCommunicate OK [12:25:31]CreateOFDProtocolMessage done [12:25:31]OFDSenderStorePacket 192889 [12:25:31]StoreOFDPacket docnum=192889 [12:25: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 C7 DE 04 01 D9 1D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 5F 00 00 00 F4 03 04 00 3E D4 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 AB 8A 39 3E 05 DC 77 54 5F 1B D3 C3 D0 E9 [12:25:31]CheckFolder [12:25:31]dirname=/storage/ofd_packets [12:25:31]CheckFolder done [12:25:31]ProducePacketName [12:25:31]name=ofd_packets/00192889 [12:25:31]NVStorageSaveData ofd_packets/00192889 [12:25:31]File name is /storage/ofd_packets/00192889 [12:25:31]Write 298 bytes [12:25:31]NVStorageSaveData done [12:25:31]OFDSenderStorePacket done [12:25:31]KKMCreateOFDPacket done [12:25:31]NVStorageSaveData kkm_last_timestamp [12:25:31]File name is /storage/kkm_last_timestamp [12:25:31]Write 4 bytes [12:25:31]NVStorageSaveData done [12:25:31]ExternCall_PrintAddStr [12:25:31]wPrintStart [12:25:31]Write to MH i2c: 01 00 00 C1 34 F5 [12:25:31]Write i2c OK [12:25:31]MH_I2C_Read... [12:25:31]Read from MH i2c: 01 [12:25:31]MH_I2C_Read... [12:25:31]Read from MH i2c: 01 07 00 [12:25:31]MH_I2C_Read... [12:25:31]Read from MH i2c: 01 07 00 C1 34 00 00 00 00 00 FF 0F 0A [12:25:31]RasterBufferAndPrint [12:25:31]line Счет N : (1)32219 [12:25:31]line ИÐÐ: 02508201610067 [12:25:31]line Контрольно-КаÑÑовый Чек [12:25:31]line ПРОДÐЖР[12:25:31]line ТРК (МРК, ГÐК) : 11 [12:25:31]line Товар: 2710194210 [12:25:31]line ДТ-К-5 [12:25:31]line 6.570 * 76.20 [12:25:31]line = 500.63 [12:25:31]line ÐДС 12% ÐСП 1% [12:25:31]line > о реализуемом товаре [12:25:31]line ОКРУГЛЕÐИЕ: -0.63 [12:25:31]line ИТОГО: 500.00 [12:25:31]line ВнеÑено: 500.00 [12:25:31]line СДÐЧÐ: 0.00 [12:25:31]line ÐСП 1% : 4.43 [12:25:31]line ÐДС 12% : 53.16 [12:25:31]line Ðаличными: 500.00 [12:25:31]line Безнал.: 0.00 [12:25:31]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [12:25:31]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [12:25:31]line СÐО: Общий режим [12:25:31]line Чек 95 29.10.2024 12:25 [12:25:31]line Смена: 544 ФФД: 1.0 [12:25:31]line ЗÐМ: 0300000110 [12:25:31]line РÐМ: 0000000000091776 [12:25:31]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [12:25:31]line ФМ: 0000000000871754 [12:25:31]line ФД: 192889 [12:25:31]line ФПД: 188610154202588 [12:25:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T122534&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192889&fm=188610154202588&tin=02508201610067®Number=0000000000091776&sum=50000 [12:25:32]OFD Sender: Processing packet 192889 [packets to send 75, broken 74] [12:25:32]ProducePacketName [12:25:32]name=ofd_packets/00192889 [12:25:32]OFD Sender: To server: ‡•öpG, [12:25:32]CommunicateWithHost lk.salyk.kg:30040 [12:25:32]ConnectInit lk.salyk.kg [12:25:32]written 0, free lines is 4095 [12:25:32]Connected sock=10 [12:25: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 C7 DE 04 01 D9 1D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 5F 00 00 00 F4 03 04 00 3E D4 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 AB 8A 39 3E 05 DC 77 54 5F 1B D3 C3 D0 E9 [12:25: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 17 49 47 00 48 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 79 F1 02 00 F4 03 04 00 FF 78 20 67 B6 04 01 00 00 37 22 4C 5B B6 B3 BB BC [12:25:32]CommunicateWithHost err = 0 [12:25:32]CheckOFDResponse [12:25:32]1017 (14) - 77093643461234 [12:25:32]1041 (16) - 0000000000871754 [12:25:32]1040 (4) - 192889 [12:25:32]1012 (4) - 29.10.2024 05:56 [12:25:32]1206 (1) - 0 [12:25:32]OFD Sender: Remove packet 192889 [12:25:32]ProducePacketName [12:25:32]name=ofd_packets/00192889 [12:25:32]NVStorageDeleteData [12:25:32]Write to MH i2c: 01 00 00 EC 34 20 [12:25:32]Write i2c OK [12:25:32]MH_I2C_Read... [12:25:32]Read from MH i2c: 01 [12:25:32]MH_I2C_Read... [12:25:32]Read from MH i2c: 01 07 00 [12:25:32]MH_I2C_Read... [12:25:32]Read from MH i2c: 01 07 00 EC 34 00 00 00 00 00 A5 0C D8 [12:25:32]RasterBufferAndPrint [12:25:32]line [12:25:32]line [12:25:32]line [12:25:32]line [12:25:32]line [12:25:32]written 0, free lines is 3242 [12:25:32]MH_Cut [12:25:32]Write to MH i2c: D1 01 00 F3 34 01 F9 [12:25:32]Write i2c OK [12:25:32]MH_I2C_Read... [12:25:32]Read from MH i2c: D1 [12:25:32]MH_I2C_Read... [12:25:32]Read from MH i2c: D1 01 00 [12:25:32]MH_I2C_Read... [12:25:32]Read from MH i2c: D1 01 00 F3 34 00 F8 [12:25:32]Write to MH i2c: 01 00 00 F4 34 28 [12:25:32]Write i2c OK [12:25:32]MH_I2C_Read... [12:25:32]OFD Sender: No OFD packet to send [12:25:33]*** Cut start [12:25:33]*** Partial cut [12:25:33]*** CUTSNS_PIN = 1 [12:25:33]*** CUTSNS_PIN = 0 [12:25:33]*** Brake cut motor [12:25:33]Read from MH i2c: 01 [12:25:33]MH_I2C_Read... [12:25:33]*** Stop cut motor [12:25:33]*** Cut end [12:25:33]Read from MH i2c: 01 07 00 [12:25:33]MH_I2C_Read... [12:25:33]Read from MH i2c: 01 07 00 F4 34 00 00 00 00 00 FF 0F 3D [12:25:33]process_action close_receipt done [12:25:33]requested_data is exist [12:25:33]produce_requested_data [12:25:33]requested_item fm.sn is exist - process it [12:25:33]wFMCommunicate request_size=4 [12:25:33]MH_SAM_APDU [12:25:33]CAPDU: 80 11 00 00 [12:25:33]Write to MH i2c: E2 08 00 F5 34 80 11 00 00 00 00 00 00 A3 [12:25:33]Write i2c OK [12:25:33]MH_I2C_Read... [12:25:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:34]Read from MH i2c: E2 [12:25:34]MH_I2C_Read... [12:25:34]Read from MH i2c: E2 17 00 [12:25:34]MH_I2C_Read... [12:25:34]Read from MH i2c: E2 17 00 F5 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F6 [12:25: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:25:34]wFMCommunicate OK [12:25:34]requested_item fd.num is exist - process it [12:25:34]SAM_PROTO_GetFieldsCounters [12:25:34]wFMCommunicate request_size=4 [12:25:34]MH_SAM_APDU [12:25:34]CAPDU: 80 13 00 00 [12:25:34]Write to MH i2c: E2 08 00 F6 34 80 13 00 00 00 00 00 00 A6 [12:25:34]Write i2c OK [12:25:34]MH_I2C_Read... [12:25:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:25:34]Read from MH i2c: E2 [12:25:34]MH_I2C_Read... [12:25:34]Read from MH i2c: E2 62 00 [12:25:34]MH_I2C_Read... [12:25:34]Read from MH i2c: E2 62 00 F6 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 79 F1 02 00 0E 04 04 00 20 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 77 [12:25: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 79 F1 02 00 0E 04 04 00 20 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 [12:25:34]wFMCommunicate OK [12:25:34]SAM_PROTO_GetFieldsCounters done [12:25:34]requested_item shift.num is exist - process it [12:25:34]requested_item shift.opened is exist - process it [12:25:34]req_shift_opened [12:25:34]FM_GetShiftState [12:25:34]SAM_PROTO_GetShiftState [12:25:34]wFMCommunicate request_size=4 [12:25:34]MH_SAM_APDU [12:25:34]CAPDU: 80 13 01 00 [12:25:34]Write to MH i2c: E2 08 00 F7 34 80 13 01 00 00 00 00 00 A8 [12:25:34]Write i2c OK [12:25:34]MH_I2C_Read... [12:25:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:34]Read from MH i2c: E2 [12:25:34]MH_I2C_Read... [12:25:34]Read from MH i2c: E2 0E 00 [12:25:34]MH_I2C_Read... [12:25:34]Read from MH i2c: E2 0E 00 F7 34 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 AE [12:25:34]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [12:25:34]wFMCommunicate OK [12:25:34]SAM_PROTO_GetShiftState done [12:25:34]FM_GetShiftState done [12:25:34]req_shift_opened done [12:25:34]requested_item shift.open_date is exist - process it [12:25:34]req_shift_open_date [12:25:34]req_shift_open_date done [12:25:34]produce_requested_data done [12:25:34]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192889,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [12:25:34]process_action_free close_receipt [12:25:34]json_value_free [12:25:34]json_value_free done [12:25:34]process_json_proto returns [12:25:34]Send response to host [12:25:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192889,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [12:25:34]free response buf [12:25:34]execute_script done [12:25:34]execute_script returns [12:25:34]free content buf [12:25:34]Sock 9.Close socket [12:25:34]Sock 9.Thread stoped [12:25:37]OFD Sender: No OFD packet to send [12:25:42]OFD Sender: No OFD packet to send [12:25:47]OFD Sender: No OFD packet to send [12:25:52]OFD Sender: No OFD packet to send [12:25:54]accept exits with 8 [12:25:54]New connection [12:25:54]New thread 3066801508 created [12:25:54]Thread 3066658148 joined [12:25:54]Waiting for new connection... [12:25:54] Sock 8.Parse request [12:25:54]Sock 8.Check first char [12:25:54]Sock 8.First char is OK [12:25:54]request: POST /json_proto HTTP/1.0 [12:25:54]Method: POST [12:25:54]URL: /json_proto [12:25:54]Method is POST - this is cgi request [12:25:54]url: /json_proto [12:25:54]query_string will be loaded in cgi processing [12:25:54]execute_cgi json_proto POST (null) [12:25:54]execute_cgi path=json_proto method=POST [12:25:54]POST find Content-Length [12:25:54]Host: 172.17.63.131:8080 [12:25:54]Content-Length: 676 [12:25:54]Content-Type: application/json [12:25:54] [12:25:54]POST finish read [12:25:54]Found Content-Length = 676 [12:25:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32220", "tax_sys" : 0, "items" : [ { "pre_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:25:54]execute_script... [12:25:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32220", "tax_sys" : 0, "items" : [ { "pre_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:25:54]POST & json_proto [12:25:54]process_json_proto [12:25:54]json parsed OK: [12:25:54]protocol is kg_v1.0 [12:25:54]action value=close_receipt [12:25:54]process_action close_receipt [12:25:54]cmd_close_receipt [12:25:54]MH_GetDate [12:25:54]Write to MH i2c: F0 00 00 F8 34 1B [12:25:54]Write i2c OK [12:25:54]MH_I2C_Read... [12:25:54]Read from MH i2c: F0 [12:25:54]MH_I2C_Read... [12:25:54]Read from MH i2c: F0 09 00 [12:25:54]MH_I2C_Read... [12:25:54]Read from MH i2c: F0 09 00 F8 34 00 56 D4 20 67 22 05 6E 64 CE [12:25:54]GetLastDocTimeStamp 1730204734 [12:25:54]current date 1730204758 [12:25:54]FM_GetShiftState [12:25:54]SAM_PROTO_GetShiftState [12:25:54]wFMCommunicate request_size=4 [12:25:54]MH_SAM_APDU [12:25:54]CAPDU: 80 13 01 00 [12:25:54]Write to MH i2c: E2 08 00 F9 34 80 13 01 00 00 00 00 00 AA [12:25:54]Write i2c OK [12:25:54]MH_I2C_Read... [12:25:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:54]Read from MH i2c: E2 [12:25:54]MH_I2C_Read... [12:25:54]Read from MH i2c: E2 0E 00 [12:25:54]MH_I2C_Read... [12:25:54]Read from MH i2c: E2 0E 00 F9 34 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 B0 [12:25:54]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [12:25:54]wFMCommunicate OK [12:25:54]SAM_PROTO_GetShiftState done [12:25:54]FM_GetShiftState done [12:25:54]opened in 1730161990 [12:25:54]opened+sec_in_day 1730248390 [12:25:54]quantity*price = 50041 [12:25:54]sum+1 = 50042 [12:25: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 СÐО: Общий режим Чек 96 29.10.2024 12:25 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192890 ФПД: 88004625678434 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T122558&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192890&fm=88004625678434&tin=02508201610067®Number=0000000000091776&sum=50000 [12:25:55]StoreToDocumentArchive [12:25:55]shift 544 fd 192890 [12:25:55]save to /storage/0544/doc_00192890 [12:25:55]save last doc name /storage/0544/doc_00192890 to /storage/kkm_last_doc_name [12:25:55]save OK [12:25:55]Clear old archive folders... [12:25:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:25:55]tlvbuf is 00F70050 [12:25:55]SAM_PROTO_ClearQueue [12:25:55]wFMCommunicate request_size=4 [12:25:55]MH_SAM_APDU [12:25:55]CAPDU: 80 09 00 00 [12:25:55]Write to MH i2c: E2 08 00 06 35 80 09 00 00 00 00 00 00 AD [12:25:55]Write i2c OK [12:25:55]MH_I2C_Read... [12:25:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:25:55]Read from MH i2c: E2 [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: E2 03 00 [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: E2 03 00 06 35 00 90 00 AF [12:25:55]RAPDU: 90 00 [12:25:55]wFMCommunicate OK [12:25:55]SAM_PROTO_ClearQueue done [12:25:55]KKMCreateOFDPacket [12:25:55]OFDProtocolAddRootSTLVToBuf [12:25:55]FM_MakeSignedData [12:25:55]FM_MakeSignedData [12:25:55]SAM_PROTO_SignData [12:25:55]wFMCommunicate request_size=4 [12:25:55]MH_SAM_APDU [12:25:55]CAPDU: 80 0D 01 02 [12:25:55]Write to MH i2c: E2 08 00 07 35 80 0D 01 02 00 00 00 00 B5 [12:25:55]Write i2c OK [12:25:55]MH_I2C_Read... [12:25:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:25:55]Read from MH i2c: E2 [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: E2 03 00 [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: E2 03 00 07 35 00 90 00 B0 [12:25:55]RAPDU: 90 00 [12:25:55]wFMCommunicate OK [12:25:55]wFMCommunicate request_size=255 [12:25:55]MH_SAM_APDU [12:25:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 56 D4 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 50 [12:25:55]Write to MH i2c: E2 02 01 08 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 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 56 D4 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 50 00 00 39 [12:25:55]Write i2c OK [12:25:55]MH_I2C_Read... [12:25:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:55]Read from MH i2c: E2 [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: E2 03 00 [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: E2 03 00 08 35 00 90 00 B1 [12:25:55]RAPDU: 90 00 [12:25:55]wFMCommunicate OK [12:25:55]wFMCommunicate request_size=10 [12:25:55]MH_SAM_APDU [12:25:55]CAPDU: 80 0D 02 02 05 0A 2C 73 C0 62 [12:25:55]Write to MH i2c: E2 0D 00 09 35 80 0D 02 02 05 00 0A 2C 73 C0 62 00 00 8D [12:25:55]Write i2c OK [12:25:55]MH_I2C_Read... [12:25:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:55]Read from MH i2c: E2 [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: E2 03 00 [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: E2 03 00 09 35 00 90 00 B2 [12:25:55]RAPDU: 90 00 [12:25:55]wFMCommunicate OK [12:25:55]wFMCommunicate request_size=4 [12:25:55]MH_SAM_APDU [12:25:55]CAPDU: 80 0D 03 02 [12:25:55]Write to MH i2c: E2 08 00 0A 35 80 0D 03 02 00 00 00 00 BA [12:25:55]Write i2c OK [12:25:55]MH_I2C_Read... [12:25:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:25:55]Read from MH i2c: E2 [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: E2 0B 00 [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: E2 0B 00 0A 35 00 C9 32 59 B7 D4 10 00 11 90 00 BB [12:25:55]RAPDU: C9 32 59 B7 D4 10 00 11 90 00 [12:25:55]wFMCommunicate OK [12:25:55]SAM_PROTO_SignData done [12:25:55]FM_MakeSignedData done [12:25:55]CreateOFDProtocolMessage [12:25:55]wFMCommunicate request_size=4 [12:25:55]MH_SAM_APDU [12:25:55]CAPDU: 80 11 00 00 [12:25:55]Write to MH i2c: E2 08 00 0B 35 80 11 00 00 00 00 00 00 BA [12:25:55]Write i2c OK [12:25:55]MH_I2C_Read... [12:25:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:56]Read from MH i2c: E2 [12:25:56]MH_I2C_Read... [12:25:56]Read from MH i2c: E2 17 00 [12:25:56]MH_I2C_Read... [12:25:56]Read from MH i2c: E2 17 00 0B 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0D [12:25:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:25:56]wFMCommunicate OK [12:25:56]CreateOFDProtocolMessage done [12:25:56]OFDSenderStorePacket 192890 [12:25:56]StoreOFDPacket docnum=192890 [12:25: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 11 FE 07 01 38 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 56 D4 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 50 0A 2C 73 C0 62 C9 32 59 B7 D4 10 00 11 [12:25:56]CheckFolder [12:25:56]dirname=/storage/ofd_packets [12:25:56]CheckFolder done [12:25:56]ProducePacketName [12:25:56]name=ofd_packets/00192890 [12:25:56]NVStorageSaveData ofd_packets/00192890 [12:25:56]File name is /storage/ofd_packets/00192890 [12:25:56]Write 301 bytes [12:25:56]NVStorageSaveData done [12:25:56]OFDSenderStorePacket done [12:25:56]KKMCreateOFDPacket done [12:25:56]NVStorageSaveData kkm_last_timestamp [12:25:56]File name is /storage/kkm_last_timestamp [12:25:56]Write 4 bytes [12:25:56]NVStorageSaveData done [12:25:56]ExternCall_PrintAddStr [12:25:56]wPrintStart [12:25:56]Write to MH i2c: 01 00 00 0C 35 41 [12:25:56]Write i2c OK [12:25:56]MH_I2C_Read... [12:25:56]Read from MH i2c: 01 [12:25:56]MH_I2C_Read... [12:25:56]Read from MH i2c: 01 07 00 [12:25:56]MH_I2C_Read... [12:25:56]Read from MH i2c: 01 07 00 0C 35 00 00 00 00 00 FF 0F 56 [12:25:56]RasterBufferAndPrint [12:25:56]line Счет N : (1)32220 [12:25:56]line ИÐÐ: 02508201610067 [12:25:56]line Контрольно-КаÑÑовый Чек [12:25:56]line ПРОДÐЖР[12:25:56]line ТРК (МРК, ГÐК) : 21 [12:25:56]line Товар: 2710124130 [12:25:56]line Ðи-92-К-5 [12:25:56]line 7.480 * 66.90 [12:25:56]line = 500.41 [12:25:56]line ÐДС 12% ÐСП 1% [12:25:56]line > о реализуемом товаре [12:25:56]line ОКРУГЛЕÐИЕ: -0.41 [12:25:56]line ИТОГО: 500.00 [12:25:56]line ВнеÑено: 500.00 [12:25:56]line СДÐЧÐ: 0.00 [12:25:56]line ÐСП 1% : 4.43 [12:25:56]line ÐДС 12% : 53.14 [12:25:56]line Ðаличными: 500.00 [12:25:56]line Безнал.: 0.00 [12:25:56]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [12:25:56]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [12:25:56]line СÐО: Общий режим [12:25:56]line Чек 96 29.10.2024 12:25 [12:25:56]line Смена: 544 ФФД: 1.0 [12:25:56]line ЗÐМ: 0300000110 [12:25:56]line РÐМ: 0000000000091776 [12:25:56]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [12:25:56]line ФМ: 0000000000871754 [12:25:56]line ФД: 192890 [12:25:56]line ФПД: 88004625678434 [12:25:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T122558&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192890&fm=88004625678434&tin=02508201610067®Number=0000000000091776&sum=50000 [12:25:56]OFD Sender: Processing packet 192890 [packets to send 75, broken 74] [12:25:56]ProducePacketName [12:25:56]name=ofd_packets/00192890 [12:25:56]OFD Sender: To server: ‡•öpG, [12:25:56]CommunicateWithHost lk.salyk.kg:30040 [12:25:56]ConnectInit lk.salyk.kg [12:25:56]written 0, free lines is 4095 [12:25:56]Connected sock=10 [12:25: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 11 FE 07 01 38 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 56 D4 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 50 0A 2C 73 C0 62 C9 32 59 B7 D4 10 00 11 [12:25: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 D3 AC 47 00 3D 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 7A F1 02 00 F4 03 04 00 17 79 20 67 B6 04 01 00 00 4E 2E D9 22 05 34 CD 6B [12:25:56]CommunicateWithHost err = 0 [12:25:56]CheckOFDResponse [12:25:56]1017 (14) - 77093643461234 [12:25:56]1041 (16) - 0000000000871754 [12:25:56]1040 (4) - 192890 [12:25:56]1012 (4) - 29.10.2024 05:56 [12:25:56]1206 (1) - 0 [12:25:56]OFD Sender: Remove packet 192890 [12:25:56]ProducePacketName [12:25:56]name=ofd_packets/00192890 [12:25:56]NVStorageDeleteData [12:25:56]Write to MH i2c: 01 00 00 37 35 6C [12:25:56]Write i2c OK [12:25:56]MH_I2C_Read... [12:25:56]Read from MH i2c: 01 [12:25:56]MH_I2C_Read... [12:25:56]Read from MH i2c: 01 07 00 [12:25:56]MH_I2C_Read... [12:25:56]Read from MH i2c: 01 07 00 37 35 00 00 00 00 00 A5 0C 24 [12:25:56]RasterBufferAndPrint [12:25:56]line [12:25:56]line [12:25:56]line [12:25:56]line [12:25:56]line [12:25:56]written 0, free lines is 3242 [12:25:56]MH_Cut [12:25:56]Write to MH i2c: D1 01 00 3E 35 01 45 [12:25:56]Write i2c OK [12:25:56]MH_I2C_Read... [12:25:56]Read from MH i2c: D1 [12:25:56]MH_I2C_Read... [12:25:56]Read from MH i2c: D1 01 00 [12:25:56]MH_I2C_Read... [12:25:56]Read from MH i2c: D1 01 00 3E 35 00 44 [12:25:56]Write to MH i2c: 01 00 00 3F 35 74 [12:25:56]Write i2c OK [12:25:56]MH_I2C_Read... [12:25:57]OFD Sender: No OFD packet to send [12:25:57]*** Cut start [12:25:57]*** Partial cut [12:25:57]*** CUTSNS_PIN = 1 [12:25:57]*** CUTSNS_PIN = 0 [12:25:57]*** Brake cut motor [12:25:58]Read from MH i2c: 01 [12:25:58]MH_I2C_Read... [12:25:58]*** Stop cut motor [12:25:58]*** Cut end [12:25:58]Read from MH i2c: 01 07 00 [12:25:58]MH_I2C_Read... [12:25:58]Read from MH i2c: 01 07 00 3F 35 00 00 00 00 00 FF 0F 89 [12:25:58]process_action close_receipt done [12:25:58]requested_data is exist [12:25:58]produce_requested_data [12:25:58]requested_item fm.sn is exist - process it [12:25:58]wFMCommunicate request_size=4 [12:25:58]MH_SAM_APDU [12:25:58]CAPDU: 80 11 00 00 [12:25:58]Write to MH i2c: E2 08 00 40 35 80 11 00 00 00 00 00 00 EF [12:25:58]Write i2c OK [12:25:58]MH_I2C_Read... [12:25:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:58]Read from MH i2c: E2 [12:25:58]MH_I2C_Read... [12:25:58]Read from MH i2c: E2 17 00 [12:25:58]MH_I2C_Read... [12:25:58]Read from MH i2c: E2 17 00 40 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 42 [12:25:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:25:58]wFMCommunicate OK [12:25:58]requested_item fd.num is exist - process it [12:25:58]SAM_PROTO_GetFieldsCounters [12:25:58]wFMCommunicate request_size=4 [12:25:58]MH_SAM_APDU [12:25:58]CAPDU: 80 13 00 00 [12:25:58]Write to MH i2c: E2 08 00 41 35 80 13 00 00 00 00 00 00 F2 [12:25:58]Write i2c OK [12:25:58]MH_I2C_Read... [12:25:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:25:58]Read from MH i2c: E2 [12:25:58]MH_I2C_Read... [12:25:58]Read from MH i2c: E2 62 00 [12:25:58]MH_I2C_Read... [12:25:58]Read from MH i2c: E2 62 00 41 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 7A F1 02 00 0E 04 04 00 20 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 C7 [12:25: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 7A F1 02 00 0E 04 04 00 20 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 [12:25:58]wFMCommunicate OK [12:25:58]SAM_PROTO_GetFieldsCounters done [12:25:58]requested_item shift.num is exist - process it [12:25:58]requested_item shift.opened is exist - process it [12:25:58]req_shift_opened [12:25:58]FM_GetShiftState [12:25:58]SAM_PROTO_GetShiftState [12:25:58]wFMCommunicate request_size=4 [12:25:58]MH_SAM_APDU [12:25:58]CAPDU: 80 13 01 00 [12:25:58]Write to MH i2c: E2 08 00 42 35 80 13 01 00 00 00 00 00 F4 [12:25:58]Write i2c OK [12:25:58]MH_I2C_Read... [12:25:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:58]Read from MH i2c: E2 [12:25:58]MH_I2C_Read... [12:25:58]Read from MH i2c: E2 0E 00 [12:25:58]MH_I2C_Read... [12:25:58]Read from MH i2c: E2 0E 00 42 35 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 FA [12:25:58]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [12:25:58]wFMCommunicate OK [12:25:58]SAM_PROTO_GetShiftState done [12:25:58]FM_GetShiftState done [12:25:58]req_shift_opened done [12:25:58]requested_item shift.open_date is exist - process it [12:25:58]req_shift_open_date [12:25:58]req_shift_open_date done [12:25:58]produce_requested_data done [12:25:58]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192890,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [12:25:58]process_action_free close_receipt [12:25:58]json_value_free [12:25:58]json_value_free done [12:25:58]process_json_proto returns [12:25:58]Send response to host [12:25:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192890,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [12:25:58]free response buf [12:25:58]execute_script done [12:25:58]execute_script returns [12:25:58]free content buf [12:25:58]Sock 8.Close socket [12:25:58]Sock 8.Thread stoped [12:26:02]OFD Sender: No OFD packet to send [12:26:07]OFD Sender: No OFD packet to send [12:26:11]accept exits with 9 [12:26:11]New connection [12:26:11]New thread 3066658148 created [12:26:11]Thread 3066801508 joined [12:26:11]Waiting for new connection... [12:26:11] Sock 9.Parse request [12:26:11]Sock 9.Check first char [12:26:11]Sock 9.First char is OK [12:26:11]request: POST /json_proto HTTP/1.0 [12:26:11]Method: POST [12:26:11]URL: /json_proto [12:26:11]Method is POST - this is cgi request [12:26:11]url: /json_proto [12:26:11]query_string will be loaded in cgi processing [12:26:11]execute_cgi json_proto POST (null) [12:26:11]execute_cgi path=json_proto method=POST [12:26:11]POST find Content-Length [12:26:11]Host: 172.17.63.131:8080 [12:26:11]Content-Length: 676 [12:26:11]Content-Type: application/json [12:26:11] [12:26:11]POST finish read [12:26:11]Found Content-Length = 676 [12:26:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32221", "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" : 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" ] } } [12:26:11]execute_script... [12:26:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32221", "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" : 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" ] } } [12:26:11]POST & json_proto [12:26:11]process_json_proto [12:26:11]json parsed OK: [12:26:11]protocol is kg_v1.0 [12:26:11]action value=close_receipt [12:26:11]process_action close_receipt [12:26:11]cmd_close_receipt [12:26:11]MH_GetDate [12:26:11]Write to MH i2c: F0 00 00 43 35 67 [12:26:11]Write i2c OK [12:26:11]MH_I2C_Read... [12:26:11]Read from MH i2c: F0 [12:26:11]MH_I2C_Read... [12:26:11]Read from MH i2c: F0 09 00 [12:26:11]MH_I2C_Read... [12:26:11]Read from MH i2c: F0 09 00 43 35 00 68 D4 20 67 22 05 6E 64 2C [12:26:11]GetLastDocTimeStamp 1730204758 [12:26:11]current date 1730204776 [12:26:11]FM_GetShiftState [12:26:11]SAM_PROTO_GetShiftState [12:26:11]wFMCommunicate request_size=4 [12:26:11]MH_SAM_APDU [12:26:11]CAPDU: 80 13 01 00 [12:26:11]Write to MH i2c: E2 08 00 44 35 80 13 01 00 00 00 00 00 F6 [12:26:11]Write i2c OK [12:26:11]MH_I2C_Read... [12:26:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:12]Read from MH i2c: E2 [12:26:12]MH_I2C_Read... [12:26:12]Read from MH i2c: E2 0E 00 [12:26:12]MH_I2C_Read... [12:26:12]Read from MH i2c: E2 0E 00 44 35 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 FC [12:26:12]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [12:26:12]wFMCommunicate OK [12:26:12]SAM_PROTO_GetShiftState done [12:26:12]FM_GetShiftState done [12:26:12]opened in 1730161990 [12:26:12]opened+sec_in_day 1730248390 [12:26:12]quantity*price = 10035 [12:26:12]sum+1 = 10036 [12:26:12]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 СÐО: Общий режим Чек 97 29.10.2024 12:26 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192891 ФПД: 107661060904058 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T122616&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192891&fm=107661060904058&tin=02508201610067®Number=0000000000091776&sum=10000 [12:26:13]StoreToDocumentArchive [12:26:13]shift 544 fd 192891 [12:26:13]save to /storage/0544/doc_00192891 [12:26:13]save last doc name /storage/0544/doc_00192891 to /storage/kkm_last_doc_name [12:26:13]save OK [12:26:13]Clear old archive folders... [12:26:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:26:13]tlvbuf is 00FF1420 [12:26:13]SAM_PROTO_ClearQueue [12:26:13]wFMCommunicate request_size=4 [12:26:13]MH_SAM_APDU [12:26:13]CAPDU: 80 09 00 00 [12:26:13]Write to MH i2c: E2 08 00 51 35 80 09 00 00 00 00 00 00 F8 [12:26:13]Write i2c OK [12:26:13]MH_I2C_Read... [12:26:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:26:13]Read from MH i2c: E2 [12:26:13]MH_I2C_Read... [12:26:13]Read from MH i2c: E2 03 00 [12:26:13]MH_I2C_Read... [12:26:13]Read from MH i2c: E2 03 00 51 35 00 90 00 FA [12:26:13]RAPDU: 90 00 [12:26:13]wFMCommunicate OK [12:26:13]SAM_PROTO_ClearQueue done [12:26:13]KKMCreateOFDPacket [12:26:13]OFDProtocolAddRootSTLVToBuf [12:26:13]FM_MakeSignedData [12:26:13]FM_MakeSignedData [12:26:13]SAM_PROTO_SignData [12:26:13]wFMCommunicate request_size=4 [12:26:13]MH_SAM_APDU [12:26:13]CAPDU: 80 0D 01 02 [12:26:13]Write to MH i2c: E2 08 00 52 35 80 0D 01 02 00 00 00 00 00 [12:26:13]Write i2c OK [12:26:13]MH_I2C_Read... [12:26:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:26:13]Read from MH i2c: E2 [12:26:13]MH_I2C_Read... [12:26:13]Read from MH i2c: E2 03 00 [12:26:13]MH_I2C_Read... [12:26:13]Read from MH i2c: E2 03 00 52 35 00 90 00 FB [12:26:13]RAPDU: 90 00 [12:26:13]wFMCommunicate OK [12:26:13]wFMCommunicate request_size=255 [12:26:13]MH_SAM_APDU [12:26: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 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 61 00 00 00 F4 03 04 00 68 D4 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 61 [12:26:13]Write to MH i2c: E2 02 01 53 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 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 61 00 00 00 F4 03 04 00 68 D4 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 61 00 00 90 [12:26:13]Write i2c OK [12:26:13]MH_I2C_Read... [12:26:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:13]Read from MH i2c: E2 [12:26:13]MH_I2C_Read... [12:26:13]Read from MH i2c: E2 03 00 [12:26:13]MH_I2C_Read... [12:26:13]Read from MH i2c: E2 03 00 53 35 00 90 00 FC [12:26:13]RAPDU: 90 00 [12:26:13]wFMCommunicate OK [12:26:13]wFMCommunicate request_size=10 [12:26:13]MH_SAM_APDU [12:26:13]CAPDU: 80 0D 02 02 05 EA CB 4A 94 7A [12:26:13]Write to MH i2c: E2 0D 00 54 35 80 0D 02 02 05 00 EA CB 4A 94 7A 00 00 1A [12:26:13]Write i2c OK [12:26:13]MH_I2C_Read... [12:26:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:13]Read from MH i2c: E2 [12:26:13]MH_I2C_Read... [12:26:13]Read from MH i2c: E2 03 00 [12:26:13]MH_I2C_Read... [12:26:13]Read from MH i2c: E2 03 00 54 35 00 90 00 FD [12:26:13]RAPDU: 90 00 [12:26:13]wFMCommunicate OK [12:26:13]wFMCommunicate request_size=4 [12:26:13]MH_SAM_APDU [12:26:13]CAPDU: 80 0D 03 02 [12:26:13]Write to MH i2c: E2 08 00 55 35 80 0D 03 02 00 00 00 00 05 [12:26:13]Write i2c OK [12:26:13]MH_I2C_Read... [12:26:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:26:13]Read from MH i2c: E2 [12:26:13]MH_I2C_Read... [12:26:13]Read from MH i2c: E2 0B 00 [12:26:13]MH_I2C_Read... [12:26:13]Read from MH i2c: E2 0B 00 55 35 00 46 50 56 54 8B 38 9D 1F 90 00 C5 [12:26:13]RAPDU: 46 50 56 54 8B 38 9D 1F 90 00 [12:26:13]wFMCommunicate OK [12:26:13]SAM_PROTO_SignData done [12:26:13]FM_MakeSignedData done [12:26:13]CreateOFDProtocolMessage [12:26:13]wFMCommunicate request_size=4 [12:26:13]MH_SAM_APDU [12:26:13]CAPDU: 80 11 00 00 [12:26:13]Write to MH i2c: E2 08 00 56 35 80 11 00 00 00 00 00 00 05 [12:26:13]Write i2c OK [12:26:13]MH_I2C_Read... [12:26:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:13]Read from MH i2c: E2 [12:26:13]MH_I2C_Read... [12:26:13]Read from MH i2c: E2 17 00 [12:26:13]MH_I2C_Read... [12:26:13]Read from MH i2c: E2 17 00 56 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 58 [12:26:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:26:13]wFMCommunicate OK [12:26:13]CreateOFDProtocolMessage done [12:26:13]OFDSenderStorePacket 192891 [12:26:13]StoreOFDPacket docnum=192891 [12:26: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 BD B9 07 01 62 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 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 61 00 00 00 F4 03 04 00 68 D4 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 61 EA CB 4A 94 7A 46 50 56 54 8B 38 9D 1F [12:26:13]CheckFolder [12:26:13]dirname=/storage/ofd_packets [12:26:13]CheckFolder done [12:26:13]ProducePacketName [12:26:13]name=ofd_packets/00192891 [12:26:13]NVStorageSaveData ofd_packets/00192891 [12:26:13]File name is /storage/ofd_packets/00192891 [12:26:13]Write 301 bytes [12:26:13]NVStorageSaveData done [12:26:13]OFDSenderStorePacket done [12:26:13]KKMCreateOFDPacket done [12:26:13]NVStorageSaveData kkm_last_timestamp [12:26:13]File name is /storage/kkm_last_timestamp [12:26:13]Write 4 bytes [12:26:13]NVStorageSaveData done [12:26:13]ExternCall_PrintAddStr [12:26:13]wPrintStart [12:26:13]Write to MH i2c: 01 00 00 57 35 8C [12:26:13]Write i2c OK [12:26:13]MH_I2C_Read... [12:26:13]Read from MH i2c: 01 [12:26:13]MH_I2C_Read... [12:26:13]Read from MH i2c: 01 07 00 [12:26:13]MH_I2C_Read... [12:26:13]Read from MH i2c: 01 07 00 57 35 00 00 00 00 00 FF 0F A1 [12:26:13]RasterBufferAndPrint [12:26:13]line Счет N : (1)32221 [12:26:13]line ИÐÐ: 02508201610067 [12:26:13]line Контрольно-КаÑÑовый Чек [12:26:13]line ПРОДÐЖР[12:26:13]line ТРК (МРК, ГÐК) : 12 [12:26:13]line Товар: 2710124130 [12:26:13]line Ðи-92-К-5 [12:26:13]line 1.500 * 66.90 [12:26:13]line = 100.35 [12:26:13]line ÐДС 12% ÐСП 1% [12:26:13]line > о реализуемом товаре [12:26:13]line ОКРУГЛЕÐИЕ: -0.35 [12:26:13]line ИТОГО: 100.00 [12:26:13]line ВнеÑено: 100.00 [12:26:13]line СДÐЧÐ: 0.00 [12:26:13]line ÐСП 1% : 0.89 [12:26:13]line ÐДС 12% : 10.66 [12:26:13]line Ðаличными: 100.00 [12:26:13]line Безнал.: 0.00 [12:26:13]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [12:26:13]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [12:26:13]line СÐО: Общий режим [12:26:13]line Чек 97 29.10.2024 12:26 [12:26:13]line Смена: 544 ФФД: 1.0 [12:26:13]line ЗÐМ: 0300000110 [12:26:13]line РÐМ: 0000000000091776 [12:26:13]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [12:26:13]line ФМ: 0000000000871754 [12:26:13]line ФД: 192891 [12:26:13]line ФПД: 107661060904058 [12:26:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T122616&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192891&fm=107661060904058&tin=02508201610067®Number=0000000000091776&sum=10000 [12:26:14]OFD Sender: Processing packet 192891 [packets to send 75, broken 74] [12:26:14]ProducePacketName [12:26:14]name=ofd_packets/00192891 [12:26:14]OFD Sender: To server: ‡•öpG, [12:26:14]CommunicateWithHost lk.salyk.kg:30040 [12:26:14]ConnectInit lk.salyk.kg [12:26:14]written 0, free lines is 4095 [12:26:14]Connected sock=10 [12:26: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 BD B9 07 01 62 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 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 61 00 00 00 F4 03 04 00 68 D4 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 61 EA CB 4A 94 7A 46 50 56 54 8B 38 9D 1F [12:26: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 6B 53 47 00 67 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 7B F1 02 00 F4 03 04 00 29 79 20 67 B6 04 01 00 00 01 CA 73 24 7F 41 EF 8E [12:26:14]CommunicateWithHost err = 0 [12:26:14]CheckOFDResponse [12:26:14]1017 (14) - 77093643461234 [12:26:14]1041 (16) - 0000000000871754 [12:26:14]1040 (4) - 192891 [12:26:14]1012 (4) - 29.10.2024 05:56 [12:26:14]1206 (1) - 0 [12:26:14]OFD Sender: Remove packet 192891 [12:26:14]ProducePacketName [12:26:14]name=ofd_packets/00192891 [12:26:14]NVStorageDeleteData [12:26:14]Write to MH i2c: 01 00 00 82 35 B7 [12:26:14]Write i2c OK [12:26:14]MH_I2C_Read... [12:26:14]Read from MH i2c: 01 [12:26:14]MH_I2C_Read... [12:26:14]Read from MH i2c: 01 07 00 [12:26:14]MH_I2C_Read... [12:26:14]Read from MH i2c: 01 07 00 82 35 00 00 00 00 00 A9 0C 73 [12:26:14]RasterBufferAndPrint [12:26:14]line [12:26:14]line [12:26:14]line [12:26:14]line [12:26:14]line [12:26:14]written 0, free lines is 3247 [12:26:14]MH_Cut [12:26:14]Write to MH i2c: D1 01 00 89 35 01 90 [12:26:14]Write i2c OK [12:26:14]MH_I2C_Read... [12:26:14]Read from MH i2c: D1 [12:26:14]MH_I2C_Read... [12:26:14]Read from MH i2c: D1 01 00 [12:26:14]MH_I2C_Read... [12:26:14]Read from MH i2c: D1 01 00 89 35 00 8F [12:26:14]Write to MH i2c: 01 00 00 8A 35 BF [12:26:14]Write i2c OK [12:26:14]MH_I2C_Read... [12:26:14]OFD Sender: No OFD packet to send [12:26:15]*** Cut start [12:26:15]*** Partial cut [12:26:15]*** CUTSNS_PIN = 1 [12:26:15]*** CUTSNS_PIN = 0 [12:26:15]*** Brake cut motor [12:26:15]Read from MH i2c: 01 [12:26:15]MH_I2C_Read... [12:26:15]*** Stop cut motor [12:26:15]*** Cut end [12:26:15]Read from MH i2c: 01 07 00 [12:26:15]MH_I2C_Read... [12:26:15]Read from MH i2c: 01 07 00 8A 35 00 00 00 00 00 FF 0F D4 [12:26:15]process_action close_receipt done [12:26:15]requested_data is exist [12:26:15]produce_requested_data [12:26:15]requested_item fm.sn is exist - process it [12:26:15]wFMCommunicate request_size=4 [12:26:15]MH_SAM_APDU [12:26:15]CAPDU: 80 11 00 00 [12:26:15]Write to MH i2c: E2 08 00 8B 35 80 11 00 00 00 00 00 00 3A [12:26:15]Write i2c OK [12:26:15]MH_I2C_Read... [12:26:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:16]Read from MH i2c: E2 [12:26:16]MH_I2C_Read... [12:26:16]Read from MH i2c: E2 17 00 [12:26:16]MH_I2C_Read... [12:26:16]Read from MH i2c: E2 17 00 8B 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8D [12:26:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:26:16]wFMCommunicate OK [12:26:16]requested_item fd.num is exist - process it [12:26:16]SAM_PROTO_GetFieldsCounters [12:26:16]wFMCommunicate request_size=4 [12:26:16]MH_SAM_APDU [12:26:16]CAPDU: 80 13 00 00 [12:26:16]Write to MH i2c: E2 08 00 8C 35 80 13 00 00 00 00 00 00 3D [12:26:16]Write i2c OK [12:26:16]MH_I2C_Read... [12:26:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:26:16]Read from MH i2c: E2 [12:26:16]MH_I2C_Read... [12:26:16]Read from MH i2c: E2 62 00 [12:26:16]MH_I2C_Read... [12:26:16]Read from MH i2c: E2 62 00 8C 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 7B F1 02 00 0E 04 04 00 20 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 16 [12:26: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 7B F1 02 00 0E 04 04 00 20 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:26:16]wFMCommunicate OK [12:26:16]SAM_PROTO_GetFieldsCounters done [12:26:16]requested_item shift.num is exist - process it [12:26:16]requested_item shift.opened is exist - process it [12:26:16]req_shift_opened [12:26:16]FM_GetShiftState [12:26:16]SAM_PROTO_GetShiftState [12:26:16]wFMCommunicate request_size=4 [12:26:16]MH_SAM_APDU [12:26:16]CAPDU: 80 13 01 00 [12:26:16]Write to MH i2c: E2 08 00 8D 35 80 13 01 00 00 00 00 00 3F [12:26:16]Write i2c OK [12:26:16]MH_I2C_Read... [12:26:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:16]Read from MH i2c: E2 [12:26:16]MH_I2C_Read... [12:26:16]Read from MH i2c: E2 0E 00 [12:26:16]MH_I2C_Read... [12:26:16]Read from MH i2c: E2 0E 00 8D 35 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 45 [12:26:16]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [12:26:16]wFMCommunicate OK [12:26:16]SAM_PROTO_GetShiftState done [12:26:16]FM_GetShiftState done [12:26:16]req_shift_opened done [12:26:16]requested_item shift.open_date is exist - process it [12:26:16]req_shift_open_date [12:26:16]req_shift_open_date done [12:26:16]produce_requested_data done [12:26:16]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192891,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [12:26:16]process_action_free close_receipt [12:26:16]json_value_free [12:26:16]json_value_free done [12:26:16]process_json_proto returns [12:26:16]Send response to host [12:26:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192891,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [12:26:16]free response buf [12:26:16]execute_script done [12:26:16]execute_script returns [12:26:16]free content buf [12:26:16]Sock 9.Close socket [12:26:16]Sock 9.Thread stoped [12:26:19]OFD Sender: No OFD packet to send [12:26:24]OFD Sender: No OFD packet to send [12:26:29]OFD Sender: No OFD packet to send [12:26:34]OFD Sender: No OFD packet to send [12:26:39]OFD Sender: No OFD packet to send [12:26:44]OFD Sender: No OFD packet to send [12:26:49]OFD Sender: No OFD packet to send [12:26:54]OFD Sender: No OFD packet to send [12:26:59]OFD Sender: No OFD packet to send [12:27:04]OFD Sender: No OFD packet to send [12:27:09]OFD Sender: No OFD packet to send [12:27:14]OFD Sender: No OFD packet to send [12:27:19]OFD Sender: No OFD packet to send [12:27:24]OFD Sender: No OFD packet to send [12:27:29]OFD Sender: No OFD packet to send [12:27:34]OFD Sender: No OFD packet to send [12:27:39]OFD Sender: No OFD packet to send [12:27:44]OFD Sender: No OFD packet to send [12:27:49]OFD Sender: No OFD packet to send [12:27:54]OFD Sender: No OFD packet to send [12:27:59]OFD Sender: No OFD packet to send [12:28:04]OFD Sender: No OFD packet to send [12:28:09]OFD Sender: No OFD packet to send [12:28:14]OFD Sender: No OFD packet to send [12:28:19]OFD Sender: No OFD packet to send [12:28:24]OFD Sender: No OFD packet to send [12:28:29]OFD Sender: No OFD packet to send [12:28:34]OFD Sender: No OFD packet to send [12:28:39]OFD Sender: No OFD packet to send [12:28:44]OFD Sender: No OFD packet to send [12:28:49]OFD Sender: No OFD packet to send [12:28:54]OFD Sender: No OFD packet to send [12:29:00]OFD Sender: No OFD packet to send [12:29:05]OFD Sender: No OFD packet to send [12:29:10]OFD Sender: No OFD packet to send [12:29:15]OFD Sender: No OFD packet to send [12:29:20]OFD Sender: No OFD packet to send [12:29:25]OFD Sender: No OFD packet to send [12:29:30]OFD Sender: No OFD packet to send [12:29:35]OFD Sender: No OFD packet to send [12:29:40]OFD Sender: No OFD packet to send [12:29:45]OFD Sender: No OFD packet to send [12:29:50]OFD Sender: No OFD packet to send [12:29:55]OFD Sender: No OFD packet to send [12:30:00]OFD Sender: No OFD packet to send [12:30:05]OFD Sender: No OFD packet to send [12:30:10]OFD Sender: No OFD packet to send [12:30:15]OFD Sender: No OFD packet to send [12:30:20]OFD Sender: No OFD packet to send [12:30:24]accept exits with 8 [12:30:24]New connection [12:30:24]New thread 3066801508 created [12:30:24]Thread 3066658148 joined [12:30:24]Waiting for new connection... [12:30:24] Sock 8.Parse request [12:30:24]Sock 8.Check first char [12:30:24]Sock 8.First char is OK [12:30:24]request: POST /json_proto HTTP/1.0 [12:30:24]Method: POST [12:30:24]URL: /json_proto [12:30:24]Method is POST - this is cgi request [12:30:24]url: /json_proto [12:30:24]query_string will be loaded in cgi processing [12:30:24]execute_cgi json_proto POST (null) [12:30:24]execute_cgi path=json_proto method=POST [12:30:24]POST find Content-Length [12:30:24]Host: 172.17.63.131:8080 [12:30:24]Content-Length: 676 [12:30:24]Content-Type: application/json [12:30:24] [12:30:24]POST finish read [12:30:24]Found Content-Length = 676 [12:30:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32222", "tax_sys" : 0, "items" : [ { "pre_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:30:24]execute_script... [12:30: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)32222", "tax_sys" : 0, "items" : [ { "pre_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:30:24]POST & json_proto [12:30:24]process_json_proto [12:30:24]json parsed OK: [12:30:24]protocol is kg_v1.0 [12:30:24]action value=close_receipt [12:30:24]process_action close_receipt [12:30:24]cmd_close_receipt [12:30:24]MH_GetDate [12:30:24]Write to MH i2c: F0 00 00 8E 35 B2 [12:30:24]Write i2c OK [12:30:24]MH_I2C_Read... [12:30:24]Read from MH i2c: F0 [12:30:24]MH_I2C_Read... [12:30:24]Read from MH i2c: F0 09 00 [12:30:24]MH_I2C_Read... [12:30:24]Read from MH i2c: F0 09 00 8E 35 00 65 D5 20 67 22 05 6E 64 75 [12:30:24]GetLastDocTimeStamp 1730204776 [12:30:24]current date 1730205029 [12:30:24]FM_GetShiftState [12:30:24]SAM_PROTO_GetShiftState [12:30:24]wFMCommunicate request_size=4 [12:30:24]MH_SAM_APDU [12:30:24]CAPDU: 80 13 01 00 [12:30:24]Write to MH i2c: E2 08 00 8F 35 80 13 01 00 00 00 00 00 41 [12:30:24]Write i2c OK [12:30:24]MH_I2C_Read... [12:30:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:24]Read from MH i2c: E2 [12:30:24]MH_I2C_Read... [12:30:24]Read from MH i2c: E2 0E 00 [12:30:24]MH_I2C_Read... [12:30:24]Read from MH i2c: E2 0E 00 8F 35 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 47 [12:30:24]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [12:30:24]wFMCommunicate OK [12:30:24]SAM_PROTO_GetShiftState done [12:30:24]FM_GetShiftState done [12:30:24]opened in 1730161990 [12:30:24]opened+sec_in_day 1730248390 [12:30:24]quantity*price = 30038 [12:30:24]sum+1 = 30039 [12:30: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 СÐО: Общий режим Чек 98 29.10.2024 12:30 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192892 ФПД: 190144775095684 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T123029&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192892&fm=190144775095684&tin=02508201610067®Number=0000000000091776&sum=30000 [12:30:25]StoreToDocumentArchive [12:30:25]shift 544 fd 192892 [12:30:25]save to /storage/0544/doc_00192892 [12:30:25]save last doc name /storage/0544/doc_00192892 to /storage/kkm_last_doc_name [12:30:25]save OK [12:30:25]Clear old archive folders... [12:30:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:30:25]tlvbuf is 00FB2EB0 [12:30:25]SAM_PROTO_ClearQueue [12:30:25]wFMCommunicate request_size=4 [12:30:25]MH_SAM_APDU [12:30:25]CAPDU: 80 09 00 00 [12:30:25]Write to MH i2c: E2 08 00 9C 35 80 09 00 00 00 00 00 00 43 [12:30:25]Write i2c OK [12:30:25]MH_I2C_Read... [12:30:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:30:25]Read from MH i2c: E2 [12:30:25]MH_I2C_Read... [12:30:25]Read from MH i2c: E2 03 00 [12:30:25]MH_I2C_Read... [12:30:25]Read from MH i2c: E2 03 00 9C 35 00 90 00 45 [12:30:25]RAPDU: 90 00 [12:30:25]wFMCommunicate OK [12:30:25]SAM_PROTO_ClearQueue done [12:30:25]KKMCreateOFDPacket [12:30:25]OFDProtocolAddRootSTLVToBuf [12:30:25]FM_MakeSignedData [12:30:25]FM_MakeSignedData [12:30:25]SAM_PROTO_SignData [12:30:25]wFMCommunicate request_size=4 [12:30:25]MH_SAM_APDU [12:30:25]CAPDU: 80 0D 01 02 [12:30:25]Write to MH i2c: E2 08 00 9D 35 80 0D 01 02 00 00 00 00 4B [12:30:25]Write i2c OK [12:30:25]MH_I2C_Read... [12:30:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:30:25]Read from MH i2c: E2 [12:30:25]MH_I2C_Read... [12:30:25]Read from MH i2c: E2 03 00 [12:30:25]MH_I2C_Read... [12:30:25]Read from MH i2c: E2 03 00 9D 35 00 90 00 46 [12:30:25]RAPDU: 90 00 [12:30:25]wFMCommunicate OK [12:30:25]wFMCommunicate request_size=255 [12:30:25]MH_SAM_APDU [12:30: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 62 00 00 00 F4 03 04 00 65 D5 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 AC [12:30:25]Write to MH i2c: E2 02 01 9E 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 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 65 D5 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 AC 00 00 33 [12:30:25]Write i2c OK [12:30:25]MH_I2C_Read... [12:30:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:26]Read from MH i2c: E2 [12:30:26]MH_I2C_Read... [12:30:26]Read from MH i2c: E2 03 00 [12:30:26]MH_I2C_Read... [12:30:26]Read from MH i2c: E2 03 00 9E 35 00 90 00 47 [12:30:26]RAPDU: 90 00 [12:30:26]wFMCommunicate OK [12:30:26]wFMCommunicate request_size=10 [12:30:26]MH_SAM_APDU [12:30:26]CAPDU: 80 0D 02 02 05 EF 87 C6 85 84 [12:30:26]Write to MH i2c: E2 0D 00 9F 35 80 0D 02 02 05 00 EF 87 C6 85 84 00 00 9D [12:30:26]Write i2c OK [12:30:26]MH_I2C_Read... [12:30:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:26]Read from MH i2c: E2 [12:30:26]MH_I2C_Read... [12:30:26]Read from MH i2c: E2 03 00 [12:30:26]MH_I2C_Read... [12:30:26]Read from MH i2c: E2 03 00 9F 35 00 90 00 48 [12:30:26]RAPDU: 90 00 [12:30:26]wFMCommunicate OK [12:30:26]wFMCommunicate request_size=4 [12:30:26]MH_SAM_APDU [12:30:26]CAPDU: 80 0D 03 02 [12:30:26]Write to MH i2c: E2 08 00 A0 35 80 0D 03 02 00 00 00 00 50 [12:30:26]Write i2c OK [12:30:26]MH_I2C_Read... [12:30:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:30:26]Read from MH i2c: E2 [12:30:26]MH_I2C_Read... [12:30:26]Read from MH i2c: E2 0B 00 [12:30:26]MH_I2C_Read... [12:30:26]Read from MH i2c: E2 0B 00 A0 35 00 2B 9E D0 05 89 CE 56 B8 90 00 54 [12:30:26]RAPDU: 2B 9E D0 05 89 CE 56 B8 90 00 [12:30:26]wFMCommunicate OK [12:30:26]SAM_PROTO_SignData done [12:30:26]FM_MakeSignedData done [12:30:26]CreateOFDProtocolMessage [12:30:26]wFMCommunicate request_size=4 [12:30:26]MH_SAM_APDU [12:30:26]CAPDU: 80 11 00 00 [12:30:26]Write to MH i2c: E2 08 00 A1 35 80 11 00 00 00 00 00 00 50 [12:30:26]Write i2c OK [12:30:26]MH_I2C_Read... [12:30:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:26]Read from MH i2c: E2 [12:30:26]MH_I2C_Read... [12:30:26]Read from MH i2c: E2 17 00 [12:30:26]MH_I2C_Read... [12:30:26]Read from MH i2c: E2 17 00 A1 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A3 [12: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 [12:30:26]wFMCommunicate OK [12:30:26]CreateOFDProtocolMessage done [12:30:26]OFDSenderStorePacket 192892 [12:30:26]StoreOFDPacket docnum=192892 [12:30: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 78 9E 07 01 24 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 62 00 00 00 F4 03 04 00 65 D5 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 AC EF 87 C6 85 84 2B 9E D0 05 89 CE 56 B8 [12:30:26]CheckFolder [12:30:26]dirname=/storage/ofd_packets [12:30:26]CheckFolder done [12:30:26]ProducePacketName [12:30:26]name=ofd_packets/00192892 [12:30:26]NVStorageSaveData ofd_packets/00192892 [12:30:26]File name is /storage/ofd_packets/00192892 [12:30:26]Write 301 bytes [12:30:26]NVStorageSaveData done [12:30:26]OFDSenderStorePacket done [12:30:26]KKMCreateOFDPacket done [12:30:26]NVStorageSaveData kkm_last_timestamp [12:30:26]File name is /storage/kkm_last_timestamp [12:30:26]Write 4 bytes [12:30:26]NVStorageSaveData done [12:30:26]ExternCall_PrintAddStr [12:30:26]wPrintStart [12:30:26]Write to MH i2c: 01 00 00 A2 35 D7 [12:30:26]Write i2c OK [12:30:26]MH_I2C_Read... [12:30:26]Read from MH i2c: 01 [12:30:26]MH_I2C_Read... [12:30:26]Read from MH i2c: 01 07 00 [12:30:26]MH_I2C_Read... [12:30:26]Read from MH i2c: 01 07 00 A2 35 00 00 00 00 00 FF 0F EC [12:30:26]RasterBufferAndPrint [12:30:26]line Счет N : (1)32222 [12:30:26]line ИÐÐ: 02508201610067 [12:30:26]line Контрольно-КаÑÑовый Чек [12:30:26]line ПРОДÐЖР[12:30:26]line ТРК (МРК, ГÐК) : 21 [12:30:26]line Товар: 2710124130 [12:30:26]line Ðи-92-К-5 [12:30:26]line 4.490 * 66.90 [12:30:26]line = 300.38 [12:30:26]line ÐДС 12% ÐСП 1% [12:30:26]line > о реализуемом товаре [12:30:26]line ОКРУГЛЕÐИЕ: -0.38 [12:30:26]line ИТОГО: 300.00 [12:30:26]line ВнеÑено: 300.00 [12:30:26]line СДÐЧÐ: 0.00 [12:30:26]line ÐСП 1% : 2.66 [12:30:26]line ÐДС 12% : 31.90 [12:30:26]line Ðаличными: 300.00 [12:30:26]line Безнал.: 0.00 [12:30:26]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [12:30:26]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [12:30:26]line СÐО: Общий режим [12:30:26]line Чек 98 29.10.2024 12:30 [12:30:26]line Смена: 544 ФФД: 1.0 [12:30:26]line ЗÐМ: 0300000110 [12:30:26]line РÐМ: 0000000000091776 [12:30:26]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [12:30:26]line ФМ: 0000000000871754 [12:30:26]line ФД: 192892 [12:30:26]line ФПД: 190144775095684 [12:30:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T123029&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192892&fm=190144775095684&tin=02508201610067®Number=0000000000091776&sum=30000 [12:30:26]OFD Sender: Processing packet 192892 [packets to send 75, broken 74] [12:30:26]ProducePacketName [12:30:26]name=ofd_packets/00192892 [12:30:26]OFD Sender: To server: ‡•öpG, [12:30:26]CommunicateWithHost lk.salyk.kg:30040 [12:30:26]ConnectInit lk.salyk.kg [12:30:26]written 0, free lines is 4095 [12:30:26]Connected sock=9 [12:30: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 78 9E 07 01 24 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 62 00 00 00 F4 03 04 00 65 D5 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 AC EF 87 C6 85 84 2B 9E D0 05 89 CE 56 B8 [12:30: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 11 23 47 00 4E 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7C F1 02 00 F4 03 04 00 25 7A 20 67 B6 04 01 00 00 53 F4 1B 26 54 2D 81 16 [12:30:26]CommunicateWithHost err = 0 [12:30:26]CheckOFDResponse [12:30:26]1017 (14) - 77093643461234 [12:30:26]1041 (16) - 0000000000871754 [12:30:26]1040 (4) - 192892 [12:30:26]1012 (4) - 29.10.2024 06:01 [12:30:26]1206 (1) - 0 [12:30:26]OFD Sender: Remove packet 192892 [12:30:26]ProducePacketName [12:30:26]name=ofd_packets/00192892 [12:30:26]NVStorageDeleteData [12:30:27]Write to MH i2c: 01 00 00 CD 35 02 [12:30:27]Write i2c OK [12:30:27]MH_I2C_Read... [12:30:27]Read from MH i2c: 01 [12:30:27]MH_I2C_Read... [12:30:27]Read from MH i2c: 01 07 00 [12:30:27]MH_I2C_Read... [12:30:27]Read from MH i2c: 01 07 00 CD 35 00 00 00 00 00 B5 0C CA [12:30:27]RasterBufferAndPrint [12:30:27]line [12:30:27]line [12:30:27]line [12:30:27]line [12:30:27]line [12:30:27]written 0, free lines is 3259 [12:30:27]MH_Cut [12:30:27]Write to MH i2c: D1 01 00 D4 35 01 DB [12:30:27]Write i2c OK [12:30:27]MH_I2C_Read... [12:30:27]Read from MH i2c: D1 [12:30:27]MH_I2C_Read... [12:30:27]Read from MH i2c: D1 01 00 [12:30:27]MH_I2C_Read... [12:30:27]Read from MH i2c: D1 01 00 D4 35 00 DA [12:30:27]Write to MH i2c: 01 00 00 D5 35 0A [12:30:27]Write i2c OK [12:30:27]MH_I2C_Read... [12:30:27]OFD Sender: No OFD packet to send [12:30:27]*** Cut start [12:30:27]*** Partial cut [12:30:27]*** CUTSNS_PIN = 1 [12:30:27]*** CUTSNS_PIN = 0 [12:30:28]*** Brake cut motor [12:30:28]Read from MH i2c: 01 [12:30:28]MH_I2C_Read... [12:30:28]*** Stop cut motor [12:30:28]*** Cut end [12:30:28]Read from MH i2c: 01 07 00 [12:30:28]MH_I2C_Read... [12:30:28]Read from MH i2c: 01 07 00 D5 35 00 00 00 00 00 FF 0F 1F [12:30:28]process_action close_receipt done [12:30:28]requested_data is exist [12:30:28]produce_requested_data [12:30:28]requested_item fm.sn is exist - process it [12:30:28]wFMCommunicate request_size=4 [12:30:28]MH_SAM_APDU [12:30:28]CAPDU: 80 11 00 00 [12:30:28]Write to MH i2c: E2 08 00 D6 35 80 11 00 00 00 00 00 00 85 [12:30:28]Write i2c OK [12:30:28]MH_I2C_Read... [12:30:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:28]Read from MH i2c: E2 [12:30:28]MH_I2C_Read... [12:30:28]Read from MH i2c: E2 17 00 [12:30:28]MH_I2C_Read... [12:30:28]Read from MH i2c: E2 17 00 D6 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D8 [12: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 [12:30:28]wFMCommunicate OK [12:30:28]requested_item fd.num is exist - process it [12:30:28]SAM_PROTO_GetFieldsCounters [12:30:28]wFMCommunicate request_size=4 [12:30:28]MH_SAM_APDU [12:30:28]CAPDU: 80 13 00 00 [12:30:28]Write to MH i2c: E2 08 00 D7 35 80 13 00 00 00 00 00 00 88 [12:30:28]Write i2c OK [12:30:28]MH_I2C_Read... [12:30:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:30:28]Read from MH i2c: E2 [12:30:28]MH_I2C_Read... [12:30:28]Read from MH i2c: E2 62 00 [12:30:28]MH_I2C_Read... [12:30:28]Read from MH i2c: E2 62 00 D7 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 7C F1 02 00 0E 04 04 00 20 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 65 [12:30:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 F1 02 00 0E 04 04 00 20 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:30:28]wFMCommunicate OK [12:30:28]SAM_PROTO_GetFieldsCounters done [12:30:28]requested_item shift.num is exist - process it [12:30:28]requested_item shift.opened is exist - process it [12:30:28]req_shift_opened [12:30:28]FM_GetShiftState [12:30:28]SAM_PROTO_GetShiftState [12:30:28]wFMCommunicate request_size=4 [12:30:28]MH_SAM_APDU [12:30:28]CAPDU: 80 13 01 00 [12:30:28]Write to MH i2c: E2 08 00 D8 35 80 13 01 00 00 00 00 00 8A [12:30:28]Write i2c OK [12:30:28]MH_I2C_Read... [12:30:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:28]Read from MH i2c: E2 [12:30:28]MH_I2C_Read... [12:30:28]Read from MH i2c: E2 0E 00 [12:30:28]MH_I2C_Read... [12:30:28]Read from MH i2c: E2 0E 00 D8 35 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 90 [12:30:28]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [12:30:28]wFMCommunicate OK [12:30:28]SAM_PROTO_GetShiftState done [12:30:28]FM_GetShiftState done [12:30:28]req_shift_opened done [12:30:28]requested_item shift.open_date is exist - process it [12:30:28]req_shift_open_date [12:30:28]req_shift_open_date done [12:30:28]produce_requested_data done [12:30:28]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192892,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [12:30:28]process_action_free close_receipt [12:30:28]json_value_free [12:30:28]json_value_free done [12:30:28]process_json_proto returns [12:30:28]Send response to host [12:30:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192892,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [12:30:28]free response buf [12:30:28]execute_script done [12:30:28]execute_script returns [12:30:28]free content buf [12:30:28]Sock 8.Close socket [12:30:28]Sock 8.Thread stoped [12:30:32]OFD Sender: No OFD packet to send [12:30:37]OFD Sender: No OFD packet to send [12:30:42]OFD Sender: No OFD packet to send [12:30:47]OFD Sender: No OFD packet to send [12:30:52]OFD Sender: No OFD packet to send [12:30:57]OFD Sender: No OFD packet to send [12:31:02]OFD Sender: No OFD packet to send [12:31:07]OFD Sender: No OFD packet to send [12:31:12]OFD Sender: No OFD packet to send [12:31:17]OFD Sender: No OFD packet to send [12:31:22]OFD Sender: No OFD packet to send [12:31:27]OFD Sender: No OFD packet to send [12:31:32]OFD Sender: No OFD packet to send [12:31:37]OFD Sender: No OFD packet to send [12:31:42]OFD Sender: No OFD packet to send [12:31:47]OFD Sender: No OFD packet to send [12:31:49]accept exits with 10 [12:31:49]New connection [12:31:49]New thread 3066658148 created [12:31:49]Thread 3066801508 joined [12:31:49]Waiting for new connection... [12:31:49] Sock 10.Parse request [12:31:49]Sock 10.Check first char [12:31:49]Sock 10.First char is OK [12:31:49]request: POST /json_proto HTTP/1.0 [12:31:49]Method: POST [12:31:49]URL: /json_proto [12:31:49]Method is POST - this is cgi request [12:31:49]url: /json_proto [12:31:49]query_string will be loaded in cgi processing [12:31:49]execute_cgi json_proto POST (null) [12:31:49]execute_cgi path=json_proto method=POST [12:31:49]POST find Content-Length [12:31:49]Host: 172.17.63.131:8080 [12:31:49]Content-Length: 676 [12:31:49]Content-Type: application/json [12:31:49] [12:31:49]POST finish read [12:31:49]Found Content-Length = 676 [12:31:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32223", "tax_sys" : 0, "items" : [ { "pre_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:31:49]execute_script... [12:31: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)32223", "tax_sys" : 0, "items" : [ { "pre_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:31:49]POST & json_proto [12:31:49]process_json_proto [12:31:49]json parsed OK: [12:31:49]protocol is kg_v1.0 [12:31:49]action value=close_receipt [12:31:49]process_action close_receipt [12:31:49]cmd_close_receipt [12:31:49]MH_GetDate [12:31:49]Write to MH i2c: F0 00 00 D9 35 FD [12:31:49]Write i2c OK [12:31:49]MH_I2C_Read... [12:31:49]Read from MH i2c: F0 [12:31:49]MH_I2C_Read... [12:31:49]Read from MH i2c: F0 09 00 [12:31:49]MH_I2C_Read... [12:31:49]Read from MH i2c: F0 09 00 D9 35 00 BA D5 20 67 22 05 6E 64 15 [12:31:49]GetLastDocTimeStamp 1730205029 [12:31:49]current date 1730205114 [12:31:49]FM_GetShiftState [12:31:49]SAM_PROTO_GetShiftState [12:31:49]wFMCommunicate request_size=4 [12:31:49]MH_SAM_APDU [12:31:49]CAPDU: 80 13 01 00 [12:31:49]Write to MH i2c: E2 08 00 DA 35 80 13 01 00 00 00 00 00 8C [12:31:49]Write i2c OK [12:31:49]MH_I2C_Read... [12:31:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:49]Read from MH i2c: E2 [12:31:49]MH_I2C_Read... [12:31:49]Read from MH i2c: E2 0E 00 [12:31:49]MH_I2C_Read... [12:31:49]Read from MH i2c: E2 0E 00 DA 35 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 92 [12:31:49]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [12:31:49]wFMCommunicate OK [12:31:49]SAM_PROTO_GetShiftState done [12:31:49]FM_GetShiftState done [12:31:49]opened in 1730161990 [12:31:49]opened+sec_in_day 1730248390 [12:31:49]quantity*price = 30038 [12:31:49]sum+1 = 30039 [12:31:49]Check (price>sum+1) || (price+1 о реализуемом товаре [12:31:51]line ОКРУГЛЕÐИЕ: -0.38 [12:31:51]line ИТОГО: 300.00 [12:31:51]line ВнеÑено: 300.00 [12:31:51]line СДÐЧÐ: 0.00 [12:31:51]line ÐСП 1% : 2.66 [12:31:51]line ÐДС 12% : 31.90 [12:31:51]line Ðаличными: 300.00 [12:31:51]line Безнал.: 0.00 [12:31:51]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [12:31:51]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [12:31:51]line СÐО: Общий режим [12:31:51]line Чек 99 29.10.2024 12:31 [12:31:51]line Смена: 544 ФФД: 1.0 [12:31:51]line ЗÐМ: 0300000110 [12:31:51]line РÐМ: 0000000000091776 [12:31:51]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [12:31:51]line ФМ: 0000000000871754 [12:31:51]line ФД: 192893 [12:31:51]line ФПД: 105217697027467 [12:31:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T123154&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192893&fm=105217697027467&tin=02508201610067®Number=0000000000091776&sum=30000 [12:31:51]written 0, free lines is 4095 [12:31:51]OFD Sender: Processing packet 192893 [packets to send 75, broken 74] [12:31:51]ProducePacketName [12:31:51]name=ofd_packets/00192893 [12:31:51]OFD Sender: To server: ‡•öpG, [12:31:51]CommunicateWithHost lk.salyk.kg:30040 [12:31:51]ConnectInit lk.salyk.kg [12:31:51]Connected sock=11 [12:31: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 42 B9 07 01 F3 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 63 00 00 00 F4 03 04 00 BA D5 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 5F B1 E7 74 95 8B 14 DB EE 02 15 52 F2 59 [12:31: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 8C 47 47 00 D6 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 7D F1 02 00 F4 03 04 00 7B 7A 20 67 B6 04 01 00 00 8F 04 3E 49 2D 8E 65 59 [12:31:51]CommunicateWithHost err = 0 [12:31:51]CheckOFDResponse [12:31:51]1017 (14) - 77093643461234 [12:31:51]1041 (16) - 0000000000871754 [12:31:51]1040 (4) - 192893 [12:31:51]1012 (4) - 29.10.2024 06:02 [12:31:51]1206 (1) - 0 [12:31:51]OFD Sender: Remove packet 192893 [12:31:51]ProducePacketName [12:31:51]name=ofd_packets/00192893 [12:31:51]NVStorageDeleteData [12:31:52]Write to MH i2c: 01 00 00 18 36 4E [12:31:52]Write i2c OK [12:31:52]MH_I2C_Read... [12:31:52]Read from MH i2c: 01 [12:31:52]MH_I2C_Read... [12:31:52]Read from MH i2c: 01 07 00 [12:31:52]MH_I2C_Read... [12:31:52]Read from MH i2c: 01 07 00 18 36 00 00 00 00 00 B2 0C 13 [12:31:52]RasterBufferAndPrint [12:31:52]line [12:31:52]line [12:31:52]line [12:31:52]line [12:31:52]line [12:31:52]written 0, free lines is 3257 [12:31:52]MH_Cut [12:31:52]Write to MH i2c: D1 01 00 1F 36 01 27 [12:31:52]Write i2c OK [12:31:52]MH_I2C_Read... [12:31:52]Read from MH i2c: D1 [12:31:52]MH_I2C_Read... [12:31:52]Read from MH i2c: D1 01 00 [12:31:52]MH_I2C_Read... [12:31:52]Read from MH i2c: D1 01 00 1F 36 00 26 [12:31:52]Write to MH i2c: 01 00 00 20 36 56 [12:31:52]Write i2c OK [12:31:52]MH_I2C_Read... [12:31:52]OFD Sender: No OFD packet to send [12:31:52]*** Cut start [12:31:52]*** Partial cut [12:31:52]*** CUTSNS_PIN = 1 [12:31:52]*** CUTSNS_PIN = 0 [12:31:53]*** Brake cut motor [12:31:53]Read from MH i2c: 01 [12:31:53]MH_I2C_Read... [12:31:53]*** Stop cut motor [12:31:53]*** Cut end [12:31:53]Read from MH i2c: 01 07 00 [12:31:53]MH_I2C_Read... [12:31:53]Read from MH i2c: 01 07 00 20 36 00 00 00 00 00 FF 0F 6B [12:31:53]process_action close_receipt done [12:31:53]requested_data is exist [12:31:53]produce_requested_data [12:31:53]requested_item fm.sn is exist - process it [12:31:53]wFMCommunicate request_size=4 [12:31:53]MH_SAM_APDU [12:31:53]CAPDU: 80 11 00 00 [12:31:53]Write to MH i2c: E2 08 00 21 36 80 11 00 00 00 00 00 00 D1 [12:31:53]Write i2c OK [12:31:53]MH_I2C_Read... [12:31:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:53]Read from MH i2c: E2 [12:31:53]MH_I2C_Read... [12:31:53]Read from MH i2c: E2 17 00 [12:31:53]MH_I2C_Read... [12:31:53]Read from MH i2c: E2 17 00 21 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 24 [12:31: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:31:53]wFMCommunicate OK [12:31:53]requested_item fd.num is exist - process it [12:31:53]SAM_PROTO_GetFieldsCounters [12:31:53]wFMCommunicate request_size=4 [12:31:53]MH_SAM_APDU [12:31:53]CAPDU: 80 13 00 00 [12:31:53]Write to MH i2c: E2 08 00 22 36 80 13 00 00 00 00 00 00 D4 [12:31:53]Write i2c OK [12:31:53]MH_I2C_Read... [12:31:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:31:53]Read from MH i2c: E2 [12:31:53]MH_I2C_Read... [12:31:53]Read from MH i2c: E2 62 00 [12:31:53]MH_I2C_Read... [12:31:53]Read from MH i2c: E2 62 00 22 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 7D F1 02 00 0E 04 04 00 20 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 B5 [12:31: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 7D F1 02 00 0E 04 04 00 20 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:31:53]wFMCommunicate OK [12:31:53]SAM_PROTO_GetFieldsCounters done [12:31:53]requested_item shift.num is exist - process it [12:31:53]requested_item shift.opened is exist - process it [12:31:53]req_shift_opened [12:31:53]FM_GetShiftState [12:31:53]SAM_PROTO_GetShiftState [12:31:53]wFMCommunicate request_size=4 [12:31:53]MH_SAM_APDU [12:31:53]CAPDU: 80 13 01 00 [12:31:53]Write to MH i2c: E2 08 00 23 36 80 13 01 00 00 00 00 00 D6 [12:31:53]Write i2c OK [12:31:53]MH_I2C_Read... [12:31:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:53]Read from MH i2c: E2 [12:31:53]MH_I2C_Read... [12:31:53]Read from MH i2c: E2 0E 00 [12:31:53]MH_I2C_Read... [12:31:53]Read from MH i2c: E2 0E 00 23 36 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 DC [12:31:53]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [12:31:53]wFMCommunicate OK [12:31:53]SAM_PROTO_GetShiftState done [12:31:53]FM_GetShiftState done [12:31:53]req_shift_opened done [12:31:53]requested_item shift.open_date is exist - process it [12:31:53]req_shift_open_date [12:31:53]req_shift_open_date done [12:31:53]produce_requested_data done [12:31:53]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192893,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [12:31:53]process_action_free close_receipt [12:31:53]json_value_free [12:31:53]json_value_free done [12:31:53]process_json_proto returns [12:31:53]Send response to host [12:31:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192893,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [12:31:53]free response buf [12:31:53]execute_script done [12:31:53]execute_script returns [12:31:53]free content buf [12:31:53]Sock 10.Close socket [12:31:53]Sock 10.Thread stoped [12:31:57]OFD Sender: No OFD packet to send [12:32:02]OFD Sender: No OFD packet to send [12:32:07]OFD Sender: No OFD packet to send [12:32:12]OFD Sender: No OFD packet to send [12:32:17]OFD Sender: No OFD packet to send [12:32:22]OFD Sender: No OFD packet to send [12:32:27]OFD Sender: No OFD packet to send [12:32:32]OFD Sender: No OFD packet to send [12:32:37]OFD Sender: No OFD packet to send [12:32:42]OFD Sender: No OFD packet to send [12:32:47]OFD Sender: No OFD packet to send [12:32:52]OFD Sender: No OFD packet to send [12:32:57]OFD Sender: No OFD packet to send [12:33:02]OFD Sender: No OFD packet to send [12:33:07]OFD Sender: No OFD packet to send [12:33:12]OFD Sender: No OFD packet to send [12:33:17]OFD Sender: No OFD packet to send [12:33:22]OFD Sender: No OFD packet to send [12:33:27]OFD Sender: No OFD packet to send [12:33:32]OFD Sender: No OFD packet to send [12:33:37]OFD Sender: No OFD packet to send [12:33:42]OFD Sender: No OFD packet to send [12:33:47]OFD Sender: No OFD packet to send [12:33:52]OFD Sender: No OFD packet to send [12:33:57]OFD Sender: No OFD packet to send [12:34:02]OFD Sender: No OFD packet to send [12:34:07]OFD Sender: No OFD packet to send [12:34:12]OFD Sender: No OFD packet to send [12:34:17]OFD Sender: No OFD packet to send [12:34:22]OFD Sender: No OFD packet to send [12:34:27]OFD Sender: No OFD packet to send [12:34:32]OFD Sender: No OFD packet to send [12:34:37]OFD Sender: No OFD packet to send [12:34:42]OFD Sender: No OFD packet to send [12:34:47]OFD Sender: No OFD packet to send [12:34:52]OFD Sender: No OFD packet to send [12:34:57]OFD Sender: No OFD packet to send [12:35:02]OFD Sender: No OFD packet to send [12:35:07]OFD Sender: No OFD packet to send [12:35:12]OFD Sender: No OFD packet to send [12:35:17]OFD Sender: No OFD packet to send [12:35:22]OFD Sender: No OFD packet to send [12:35:27]OFD Sender: No OFD packet to send [12:35:32]OFD Sender: No OFD packet to send [12:35:37]ConnectInit Can't connect to host [12:35:37]OFD Sender: No OFD packet to send [12:35:42]OFD Sender: No OFD packet to send [12:35:57]OFD Sender: No OFD packet to send [12:36:02]OFD Sender: No OFD packet to send [12:36:07]OFD Sender: No OFD packet to send [12:36:12]OFD Sender: No OFD packet to send [12:36:17]OFD Sender: No OFD packet to send [12:36:22]OFD Sender: No OFD packet to send [12:36:27]OFD Sender: No OFD packet to send [12:36:32]OFD Sender: No OFD packet to send [12:36:37]OFD Sender: No OFD packet to send [12:36:42]OFD Sender: No OFD packet to send [12:36:47]OFD Sender: No OFD packet to send [12:36:52]OFD Sender: No OFD packet to send [12:36:57]OFD Sender: No OFD packet to send [12:37:02]OFD Sender: No OFD packet to send [12:37:07]OFD Sender: No OFD packet to send [12:37:12]OFD Sender: No OFD packet to send [12:37:17]OFD Sender: No OFD packet to send [12:37:22]OFD Sender: No OFD packet to send [12:37:27]OFD Sender: No OFD packet to send [12:37:32]OFD Sender: No OFD packet to send [12:37:37]OFD Sender: No OFD packet to send [12:37:42]OFD Sender: No OFD packet to send [12:37:47]OFD Sender: No OFD packet to send [12:37:52]OFD Sender: No OFD packet to send [12:37:57]OFD Sender: No OFD packet to send [12:38:02]OFD Sender: No OFD packet to send [12:38:05]ConnectInit Can't connect to host [12:38:07]OFD Sender: No OFD packet to send [12:38:12]OFD Sender: No OFD packet to send [12:38:17]OFD Sender: No OFD packet to send [12:38:22]OFD Sender: No OFD packet to send [12:38:27]OFD Sender: No OFD packet to send [12:38:32]OFD Sender: No OFD packet to send [12:38:37]OFD Sender: No OFD packet to send [12:38:42]OFD Sender: No OFD packet to send [12:38:47]OFD Sender: No OFD packet to send [12:38:52]OFD Sender: No OFD packet to send [12:38:54]accept exits with 9 [12:38:54]New connection [12:38:54]New thread 3066801508 created [12:38:54]Thread 3066658148 joined [12:38:54]Waiting for new connection... [12:38:54] Sock 9.Parse request [12:38:54]Sock 9.Check first char [12:38:54]Sock 9.First char is OK [12:38:54]request: POST /json_proto HTTP/1.0 [12:38:54]Method: POST [12:38:54]URL: /json_proto [12:38:54]Method is POST - this is cgi request [12:38:54]url: /json_proto [12:38:54]query_string will be loaded in cgi processing [12:38:54]execute_cgi json_proto POST (null) [12:38:54]execute_cgi path=json_proto method=POST [12:38:54]POST find Content-Length [12:38:54]Host: 172.17.63.131:8080 [12:38:54]Content-Length: 676 [12:38:54]Content-Type: application/json [12:38:54] [12:38:54]POST finish read [12:38:54]Found Content-Length = 676 [12:38:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32225", "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.700, "sum" : 180.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 180.00, "total" : 180.00, "payments": [ { "type": 0, "sum" : 180.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:54]execute_script... [12:38: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)32225", "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.700, "sum" : 180.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 180.00, "total" : 180.00, "payments": [ { "type": 0, "sum" : 180.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:54]POST & json_proto [12:38:54]process_json_proto [12:38:54]json parsed OK: [12:38:54]protocol is kg_v1.0 [12:38:54]action value=close_receipt [12:38:54]process_action close_receipt [12:38:54]cmd_close_receipt [12:38:54]MH_GetDate [12:38:54]Write to MH i2c: F0 00 00 24 36 49 [12:38:54]Write i2c OK [12:38:54]MH_I2C_Read... [12:38:54]Read from MH i2c: F0 [12:38:54]MH_I2C_Read... [12:38:54]Read from MH i2c: F0 09 00 [12:38:54]MH_I2C_Read... [12:38:54]Read from MH i2c: F0 09 00 24 36 00 62 D7 20 67 22 05 6E 64 0B [12:38:54]GetLastDocTimeStamp 1730205114 [12:38:54]current date 1730205538 [12:38:54]FM_GetShiftState [12:38:54]SAM_PROTO_GetShiftState [12:38:54]wFMCommunicate request_size=4 [12:38:54]MH_SAM_APDU [12:38:54]CAPDU: 80 13 01 00 [12:38:54]Write to MH i2c: E2 08 00 25 36 80 13 01 00 00 00 00 00 D8 [12:38:54]Write i2c OK [12:38:54]MH_I2C_Read... [12:38:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:54]Read from MH i2c: E2 [12:38:54]MH_I2C_Read... [12:38:54]Read from MH i2c: E2 0E 00 [12:38:54]MH_I2C_Read... [12:38:54]Read from MH i2c: E2 0E 00 25 36 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 DE [12:38:54]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [12:38:54]wFMCommunicate OK [12:38:54]SAM_PROTO_GetShiftState done [12:38:54]FM_GetShiftState done [12:38:54]opened in 1730161990 [12:38:54]opened+sec_in_day 1730248390 [12:38:54]quantity*price = 18063 [12:38:54]sum+1 = 18064 [12:38:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.63 ИТОГО: 180.00 ВнеÑено: 180.00 СДÐЧÐ: 0.00 ÐСП 1% : 1.60 ÐДС 12% : 19.18 Ðаличными: 180.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 170 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 СÐО: Общий режим Чек 100 29.10.2024 12:38 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192894 ФПД: 112840022366770 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T123858&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192894&fm=112840022366770&tin=02508201610067®Number=0000000000091776&sum=18000 [12:38:55]StoreToDocumentArchive [12:38:55]shift 544 fd 192894 [12:38:55]save to /storage/0544/doc_00192894 [12:38:55]save last doc name /storage/0544/doc_00192894 to /storage/kkm_last_doc_name [12:38:55]save OK [12:38:55]Clear old archive folders... [12:38:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:38:55]tlvbuf is 00F81AD0 [12:38:55]SAM_PROTO_ClearQueue [12:38:55]wFMCommunicate request_size=4 [12:38:55]MH_SAM_APDU [12:38:55]CAPDU: 80 09 00 00 [12:38:55]Write to MH i2c: E2 08 00 32 36 80 09 00 00 00 00 00 00 DA [12:38:55]Write i2c OK [12:38:55]MH_I2C_Read... [12:38:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:38:55]Read from MH i2c: E2 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: E2 03 00 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: E2 03 00 32 36 00 90 00 DC [12:38:55]RAPDU: 90 00 [12:38:55]wFMCommunicate OK [12:38:55]SAM_PROTO_ClearQueue done [12:38:55]KKMCreateOFDPacket [12:38:55]OFDProtocolAddRootSTLVToBuf [12:38:55]FM_MakeSignedData [12:38:55]FM_MakeSignedData [12:38:55]SAM_PROTO_SignData [12:38:55]wFMCommunicate request_size=4 [12:38:55]MH_SAM_APDU [12:38:55]CAPDU: 80 0D 01 02 [12:38:55]Write to MH i2c: E2 08 00 33 36 80 0D 01 02 00 00 00 00 E2 [12:38:55]Write i2c OK [12:38:55]MH_I2C_Read... [12:38:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:38:55]Read from MH i2c: E2 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: E2 03 00 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: E2 03 00 33 36 00 90 00 DD [12:38:55]RAPDU: 90 00 [12:38:55]wFMCommunicate OK [12:38:55]wFMCommunicate request_size=255 [12:38:55]MH_SAM_APDU [12:38: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 8C 0A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8F 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 62 D7 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 66 [12:38:55]Write to MH i2c: E2 02 01 34 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 8C 0A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8F 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 62 D7 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 66 00 00 06 [12:38:55]Write i2c OK [12:38:55]MH_I2C_Read... [12:38:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:55]Read from MH i2c: E2 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: E2 03 00 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: E2 03 00 34 36 00 90 00 DE [12:38:55]RAPDU: 90 00 [12:38:55]wFMCommunicate OK [12:38:55]wFMCommunicate request_size=10 [12:38:55]MH_SAM_APDU [12:38:55]CAPDU: 80 0D 02 02 05 A0 9D 73 1A 32 [12:38:55]Write to MH i2c: E2 0D 00 35 36 80 0D 02 02 05 00 A0 9D 73 1A 32 00 00 EB [12:38:55]Write i2c OK [12:38:55]MH_I2C_Read... [12:38:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:55]Read from MH i2c: E2 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: E2 03 00 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: E2 03 00 35 36 00 90 00 DF [12:38:55]RAPDU: 90 00 [12:38:55]wFMCommunicate OK [12:38:55]wFMCommunicate request_size=4 [12:38:55]MH_SAM_APDU [12:38:55]CAPDU: 80 0D 03 02 [12:38:55]Write to MH i2c: E2 08 00 36 36 80 0D 03 02 00 00 00 00 E7 [12:38:55]Write i2c OK [12:38:55]MH_I2C_Read... [12:38:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:38:55]Read from MH i2c: E2 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: E2 0B 00 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: E2 0B 00 36 36 00 7B 28 AF C8 9D E6 7B 28 90 00 28 [12:38:55]RAPDU: 7B 28 AF C8 9D E6 7B 28 90 00 [12:38:55]wFMCommunicate OK [12:38:55]SAM_PROTO_SignData done [12:38:55]FM_MakeSignedData done [12:38:55]CreateOFDProtocolMessage [12:38:55]wFMCommunicate request_size=4 [12:38:55]MH_SAM_APDU [12:38:55]CAPDU: 80 11 00 00 [12:38:55]Write to MH i2c: E2 08 00 37 36 80 11 00 00 00 00 00 00 E7 [12:38:55]Write i2c OK [12:38:55]MH_I2C_Read... [12:38:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:55]Read from MH i2c: E2 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: E2 17 00 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: E2 17 00 37 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3A [12:38: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:38:55]wFMCommunicate OK [12:38:55]CreateOFDProtocolMessage done [12:38:55]OFDSenderStorePacket 192894 [12:38:55]StoreOFDPacket docnum=192894 [12:38: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 F4 7E 07 01 CB 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 8C 0A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8F 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 62 D7 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 66 A0 9D 73 1A 32 7B 28 AF C8 9D E6 7B 28 [12:38:55]CheckFolder [12:38:55]dirname=/storage/ofd_packets [12:38:55]CheckFolder done [12:38:55]ProducePacketName [12:38:55]name=ofd_packets/00192894 [12:38:55]NVStorageSaveData ofd_packets/00192894 [12:38:55]File name is /storage/ofd_packets/00192894 [12:38:55]Write 301 bytes [12:38:55]NVStorageSaveData done [12:38:55]OFDSenderStorePacket done [12:38:55]KKMCreateOFDPacket done [12:38:55]NVStorageSaveData kkm_last_timestamp [12:38:55]File name is /storage/kkm_last_timestamp [12:38:55]Write 4 bytes [12:38:55]NVStorageSaveData done [12:38:55]ExternCall_PrintAddStr [12:38:55]wPrintStart [12:38:55]Write to MH i2c: 01 00 00 38 36 6E [12:38:55]Write i2c OK [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: 01 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: 01 07 00 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: 01 07 00 38 36 00 00 00 00 00 FF 0F 83 [12:38:55]RasterBufferAndPrint [12:38:55]line Счет N : (1)32225 [12:38:55]line ИÐÐ: 02508201610067 [12:38:55]line Контрольно-КаÑÑовый Чек [12:38:55]line ПРОДÐЖР[12:38:55]line ТРК (МРК, ГÐК) : 12 [12:38:55]line Товар: 2710124130 [12:38:55]line Ðи-92-К-5 [12:38:55]line 2.700 * 66.90 [12:38:55]line = 180.63 [12:38:55]line ÐДС 12% ÐСП 1% [12:38:55]line > о реализуемом товаре [12:38:55]line ОКРУГЛЕÐИЕ: -0.63 [12:38:55]line ИТОГО: 180.00 [12:38:55]line ВнеÑено: 180.00 [12:38:55]line СДÐЧÐ: 0.00 [12:38:55]line ÐСП 1% : 1.60 [12:38:55]line ÐДС 12% : 19.18 [12:38:55]line Ðаличными: 180.00 [12:38:55]line Безнал.: 0.00 [12:38:55]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [12:38:55]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [12:38:55]line СÐО: Общий режим [12:38:55]line Чек 100 29.10.2024 12:38 [12:38:55]line Смена: 544 ФФД: 1.0 [12:38:55]line ЗÐМ: 0300000110 [12:38:55]line РÐМ: 0000000000091776 [12:38:55]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [12:38:55]line ФМ: 0000000000871754 [12:38:55]line ФД: 192894 [12:38:55]line ФПД: 112840022366770 [12:38:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T123858&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192894&fm=112840022366770&tin=02508201610067®Number=0000000000091776&sum=18000 [12:38:56]OFD Sender: Processing packet 192894 [packets to send 75, broken 74] [12:38:56]ProducePacketName [12:38:56]name=ofd_packets/00192894 [12:38:56]OFD Sender: To server: ‡•öpG, [12:38:56]CommunicateWithHost lk.salyk.kg:30040 [12:38:56]ConnectInit lk.salyk.kg [12:38:56]written 0, free lines is 4095 [12:38:56]Connected sock=10 [12:38: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 F4 7E 07 01 CB 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 8C 0A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8F 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 62 D7 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 66 A0 9D 73 1A 32 7B 28 AF C8 9D E6 7B 28 [12:38: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 B0 77 47 00 10 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 7E F1 02 00 F4 03 04 00 23 7C 20 67 B6 04 01 00 00 A7 DF F9 23 DD 35 3D 6B [12:38:56]CommunicateWithHost err = 0 [12:38:56]CheckOFDResponse [12:38:56]1017 (14) - 77093643461234 [12:38:56]1041 (16) - 0000000000871754 [12:38:56]1040 (4) - 192894 [12:38:56]1012 (4) - 29.10.2024 06:09 [12:38:56]1206 (1) - 0 [12:38:56]OFD Sender: Remove packet 192894 [12:38:56]ProducePacketName [12:38:56]name=ofd_packets/00192894 [12:38:56]NVStorageDeleteData [12:38:56]Write to MH i2c: 01 00 00 63 36 99 [12:38:56]Write i2c OK [12:38:56]MH_I2C_Read... [12:38:56]Read from MH i2c: 01 [12:38:56]MH_I2C_Read... [12:38:56]Read from MH i2c: 01 07 00 [12:38:56]MH_I2C_Read... [12:38:56]Read from MH i2c: 01 07 00 63 36 00 00 00 00 00 A8 0C 54 [12:38:56]RasterBufferAndPrint [12:38:56]line [12:38:56]line [12:38:56]line [12:38:56]line [12:38:56]line [12:38:56]written 0, free lines is 3245 [12:38:56]MH_Cut [12:38:56]Write to MH i2c: D1 01 00 6A 36 01 72 [12:38:56]Write i2c OK [12:38:56]MH_I2C_Read... [12:38:56]Read from MH i2c: D1 [12:38:56]MH_I2C_Read... [12:38:56]Read from MH i2c: D1 01 00 [12:38:56]MH_I2C_Read... [12:38:56]Read from MH i2c: D1 01 00 6A 36 00 71 [12:38:56]Write to MH i2c: 01 00 00 6B 36 A1 [12:38:56]Write i2c OK [12:38:56]MH_I2C_Read... [12:38:57]OFD Sender: No OFD packet to send [12:38:57]*** Cut start [12:38:57]*** Partial cut [12:38:57]*** CUTSNS_PIN = 1 [12:38:57]*** CUTSNS_PIN = 0 [12:38:57]*** Brake cut motor [12:38:58]Read from MH i2c: 01 [12:38:58]MH_I2C_Read... [12:38:58]*** Stop cut motor [12:38:58]*** Cut end [12:38:58]Read from MH i2c: 01 07 00 [12:38:58]MH_I2C_Read... [12:38:58]Read from MH i2c: 01 07 00 6B 36 00 00 00 00 00 FF 0F B6 [12:38:58]process_action close_receipt done [12:38:58]requested_data is exist [12:38:58]produce_requested_data [12:38:58]requested_item fm.sn is exist - process it [12:38:58]wFMCommunicate request_size=4 [12:38:58]MH_SAM_APDU [12:38:58]CAPDU: 80 11 00 00 [12:38:58]Write to MH i2c: E2 08 00 6C 36 80 11 00 00 00 00 00 00 1C [12:38:58]Write i2c OK [12:38:58]MH_I2C_Read... [12:38:58]Read from MH i2c: E2 [12:38:58]MH_I2C_Read... [12:38:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:58]Read from MH i2c: E2 17 00 [12:38:58]MH_I2C_Read... [12:38:58]Read from MH i2c: E2 17 00 6C 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6F [12:38:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:38:58]wFMCommunicate OK [12:38:58]requested_item fd.num is exist - process it [12:38:58]SAM_PROTO_GetFieldsCounters [12:38:58]wFMCommunicate request_size=4 [12:38:58]MH_SAM_APDU [12:38:58]CAPDU: 80 13 00 00 [12:38:58]Write to MH i2c: E2 08 00 6D 36 80 13 00 00 00 00 00 00 1F [12:38:58]Write i2c OK [12:38:58]MH_I2C_Read... [12:38:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:38:58]Read from MH i2c: E2 [12:38:58]MH_I2C_Read... [12:38:58]Read from MH i2c: E2 62 00 [12:38:58]MH_I2C_Read... [12:38:58]Read from MH i2c: E2 62 00 6D 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 7E F1 02 00 0E 04 04 00 20 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 04 [12:38:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 F1 02 00 0E 04 04 00 20 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:38:58]wFMCommunicate OK [12:38:58]SAM_PROTO_GetFieldsCounters done [12:38:58]requested_item shift.num is exist - process it [12:38:58]requested_item shift.opened is exist - process it [12:38:58]req_shift_opened [12:38:58]FM_GetShiftState [12:38:58]SAM_PROTO_GetShiftState [12:38:58]wFMCommunicate request_size=4 [12:38:58]MH_SAM_APDU [12:38:58]CAPDU: 80 13 01 00 [12:38:58]Write to MH i2c: E2 08 00 6E 36 80 13 01 00 00 00 00 00 21 [12:38:58]Write i2c OK [12:38:58]MH_I2C_Read... [12:38:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:58]Read from MH i2c: E2 [12:38:58]MH_I2C_Read... [12:38:58]Read from MH i2c: E2 0E 00 [12:38:58]MH_I2C_Read... [12:38:58]Read from MH i2c: E2 0E 00 6E 36 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 27 [12:38:58]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [12:38:58]wFMCommunicate OK [12:38:58]SAM_PROTO_GetShiftState done [12:38:58]FM_GetShiftState done [12:38:58]req_shift_opened done [12:38:58]requested_item shift.open_date is exist - process it [12:38:58]req_shift_open_date [12:38:58]req_shift_open_date done [12:38:58]produce_requested_data done [12:38:58]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192894,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [12:38:58]process_action_free close_receipt [12:38:58]json_value_free [12:38:58]json_value_free done [12:38:58]process_json_proto returns [12:38:58]Send response to host [12:38:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192894,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [12:38:58]free response buf [12:38:58]execute_script done [12:38:58]execute_script returns [12:38:58]free content buf [12:38:58]Sock 9.Close socket [12:38:58]Sock 9.Thread stoped [12:39:02]OFD Sender: No OFD packet to send [12:39:07]OFD Sender: No OFD packet to send [12:39:12]OFD Sender: No OFD packet to send [12:39:17]OFD Sender: No OFD packet to send [12:39:22]OFD Sender: No OFD packet to send [12:39:27]OFD Sender: No OFD packet to send [12:39:32]OFD Sender: No OFD packet to send [12:39:37]OFD Sender: No OFD packet to send [12:39:42]OFD Sender: No OFD packet to send [12:39:47]OFD Sender: No OFD packet to send [12:39:50]accept exits with 8 [12:39:50]New connection [12:39:50]New thread 3066658148 created [12:39:50]Thread 3066801508 joined [12:39:50]Waiting for new connection... [12:39:50] Sock 8.Parse request [12:39:50]Sock 8.Check first char [12:39:50]Sock 8.First char is OK [12:39:50]request: POST /json_proto HTTP/1.0 [12:39:50]Method: POST [12:39:50]URL: /json_proto [12:39:50]Method is POST - this is cgi request [12:39:50]url: /json_proto [12:39:50]query_string will be loaded in cgi processing [12:39:50]execute_cgi json_proto POST (null) [12:39:50]execute_cgi path=json_proto method=POST [12:39:50]POST find Content-Length [12:39:50]Host: 172.17.63.131:8080 [12:39:50]Content-Length: 678 [12:39:50]Content-Type: application/json [12:39:50] [12:39:50]POST finish read [12:39:50]Found Content-Length = 678 [12:39:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32224", "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" ] } } [12:39:50]execute_script... [12:39: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)32224", "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" ] } } [12:39:50]POST & json_proto [12:39:50]process_json_proto [12:39:50]json parsed OK: [12:39:50]protocol is kg_v1.0 [12:39:50]action value=close_receipt [12:39:50]process_action close_receipt [12:39:50]cmd_close_receipt [12:39:50]MH_GetDate [12:39:50]Write to MH i2c: F0 00 00 6F 36 94 [12:39:50]Write i2c OK [12:39:50]MH_I2C_Read... [12:39:50]Read from MH i2c: F0 [12:39:50]MH_I2C_Read... [12:39:50]Read from MH i2c: F0 09 00 [12:39:50]MH_I2C_Read... [12:39:50]Read from MH i2c: F0 09 00 6F 36 00 9A D7 20 67 22 05 6E 64 8E [12:39:50]GetLastDocTimeStamp 1730205538 [12:39:50]current date 1730205594 [12:39:50]FM_GetShiftState [12:39:50]SAM_PROTO_GetShiftState [12:39:50]wFMCommunicate request_size=4 [12:39:50]MH_SAM_APDU [12:39:50]CAPDU: 80 13 01 00 [12:39:50]Write to MH i2c: E2 08 00 70 36 80 13 01 00 00 00 00 00 23 [12:39:50]Write i2c OK [12:39:50]MH_I2C_Read... [12:39:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:50]Read from MH i2c: E2 [12:39:50]MH_I2C_Read... [12:39:50]Read from MH i2c: E2 0E 00 [12:39:50]MH_I2C_Read... [12:39:50]Read from MH i2c: E2 0E 00 70 36 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 29 [12:39:50]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [12:39:50]wFMCommunicate OK [12:39:50]SAM_PROTO_GetShiftState done [12:39:50]FM_GetShiftState done [12:39:50]opened in 1730161990 [12:39:50]opened+sec_in_day 1730248390 [12:39:50]quantity*price = 200025 [12:39:50]sum+1 = 200026 [12:39:50]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 СÐО: Общий режим Чек 101 29.10.2024 12:39 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192895 ФПД: 277686475935044 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T123955&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192895&fm=277686475935044&tin=02508201610067®Number=0000000000091776&sum=200000 [12:39:51]StoreToDocumentArchive [12:39:51]shift 544 fd 192895 [12:39:51]save to /storage/0544/doc_00192895 [12:39:51]save last doc name /storage/0544/doc_00192895 to /storage/kkm_last_doc_name [12:39:51]save OK [12:39:51]Clear old archive folders... [12:39:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:39:51]tlvbuf is 00FA1310 [12:39:51]SAM_PROTO_ClearQueue [12:39:51]wFMCommunicate request_size=4 [12:39:51]MH_SAM_APDU [12:39:51]CAPDU: 80 09 00 00 [12:39:51]Write to MH i2c: E2 08 00 7D 36 80 09 00 00 00 00 00 00 25 [12:39:51]Write i2c OK [12:39:51]MH_I2C_Read... [12:39:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:39:51]Read from MH i2c: E2 [12:39:51]MH_I2C_Read... [12:39:51]Read from MH i2c: E2 03 00 [12:39:51]MH_I2C_Read... [12:39:51]Read from MH i2c: E2 03 00 7D 36 00 90 00 27 [12:39:51]RAPDU: 90 00 [12:39:51]wFMCommunicate OK [12:39:51]SAM_PROTO_ClearQueue done [12:39:51]KKMCreateOFDPacket [12:39:51]OFDProtocolAddRootSTLVToBuf [12:39:51]FM_MakeSignedData [12:39:51]FM_MakeSignedData [12:39:51]SAM_PROTO_SignData [12:39:51]wFMCommunicate request_size=4 [12:39:51]MH_SAM_APDU [12:39:51]CAPDU: 80 0D 01 02 [12:39:51]Write to MH i2c: E2 08 00 7E 36 80 0D 01 02 00 00 00 00 2D [12:39:51]Write i2c OK [12:39:51]MH_I2C_Read... [12:39:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:39:51]Read from MH i2c: E2 [12:39:51]MH_I2C_Read... [12:39:51]Read from MH i2c: E2 03 00 [12:39:51]MH_I2C_Read... [12:39:51]Read from MH i2c: E2 03 00 7E 36 00 90 00 28 [12:39:51]RAPDU: 90 00 [12:39:51]wFMCommunicate OK [12:39:51]wFMCommunicate request_size=255 [12:39:51]MH_SAM_APDU [12:39:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 65 00 00 00 F4 03 04 00 9B D7 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 FC 8D EB C1 [12:39:51]Write to MH i2c: E2 02 01 7F 36 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 65 00 00 00 F4 03 04 00 9B D7 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 FC 8D EB C1 00 00 CC [12:39:51]Write i2c OK [12:39:51]MH_I2C_Read... [12:39:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:51]Read from MH i2c: E2 [12:39:51]MH_I2C_Read... [12:39:51]Read from MH i2c: E2 03 00 [12:39:51]MH_I2C_Read... [12:39:51]Read from MH i2c: E2 03 00 7F 36 00 90 00 29 [12:39:51]RAPDU: 90 00 [12:39:51]wFMCommunicate OK [12:39:51]wFMCommunicate request_size=7 [12:39:51]MH_SAM_APDU [12:39:51]CAPDU: 80 0D 02 02 02 CD 44 [12:39:51]Write to MH i2c: E2 0A 00 80 36 80 0D 02 02 02 00 CD 44 00 00 45 [12:39:51]Write i2c OK [12:39:51]MH_I2C_Read... [12:39:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:51]Read from MH i2c: E2 [12:39:51]MH_I2C_Read... [12:39:51]Read from MH i2c: E2 03 00 [12:39:51]MH_I2C_Read... [12:39:51]Read from MH i2c: E2 03 00 80 36 00 90 00 2A [12:39:51]RAPDU: 90 00 [12:39:51]wFMCommunicate OK [12:39:51]wFMCommunicate request_size=4 [12:39:51]MH_SAM_APDU [12:39:51]CAPDU: 80 0D 03 02 [12:39:51]Write to MH i2c: E2 08 00 81 36 80 0D 03 02 00 00 00 00 32 [12:39:51]Write i2c OK [12:39:51]MH_I2C_Read... [12:39:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:39:51]Read from MH i2c: E2 [12:39:51]MH_I2C_Read... [12:39:51]Read from MH i2c: E2 0B 00 [12:39:51]MH_I2C_Read... [12:39:51]Read from MH i2c: E2 0B 00 81 36 00 22 85 E4 34 CC 66 6F 05 90 00 98 [12:39:51]RAPDU: 22 85 E4 34 CC 66 6F 05 90 00 [12:39:51]wFMCommunicate OK [12:39:51]SAM_PROTO_SignData done [12:39:51]FM_MakeSignedData done [12:39:51]CreateOFDProtocolMessage [12:39:51]wFMCommunicate request_size=4 [12:39:51]MH_SAM_APDU [12:39:51]CAPDU: 80 11 00 00 [12:39:51]Write to MH i2c: E2 08 00 82 36 80 11 00 00 00 00 00 00 32 [12:39:51]Write i2c OK [12:39:51]MH_I2C_Read... [12:39:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:51]Read from MH i2c: E2 [12:39:51]MH_I2C_Read... [12:39:51]Read from MH i2c: E2 17 00 [12:39:51]MH_I2C_Read... [12:39:51]Read from MH i2c: E2 17 00 82 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 85 [12:39: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:39:51]wFMCommunicate OK [12:39:51]CreateOFDProtocolMessage done [12:39:51]OFDSenderStorePacket 192895 [12:39:51]StoreOFDPacket docnum=192895 [12:39: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 0C 01 00 00 28 58 04 01 01 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 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 65 00 00 00 F4 03 04 00 9B D7 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 FC 8D EB C1 CD 44 22 85 E4 34 CC 66 6F 05 [12:39:51]CheckFolder [12:39:51]dirname=/storage/ofd_packets [12:39:51]CheckFolder done [12:39:51]ProducePacketName [12:39:51]name=ofd_packets/00192895 [12:39:51]NVStorageSaveData ofd_packets/00192895 [12:39:51]File name is /storage/ofd_packets/00192895 [12:39:51]Write 298 bytes [12:39:51]NVStorageSaveData done [12:39:51]OFDSenderStorePacket done [12:39:51]KKMCreateOFDPacket done [12:39:51]NVStorageSaveData kkm_last_timestamp [12:39:51]File name is /storage/kkm_last_timestamp [12:39:51]Write 4 bytes [12:39:51]NVStorageSaveData done [12:39:51]ExternCall_PrintAddStr [12:39:51]wPrintStart [12:39:51]Write to MH i2c: 01 00 00 83 36 B9 [12:39:51]Write i2c OK [12:39:51]MH_I2C_Read... [12:39:51]Read from MH i2c: 01 [12:39:51]MH_I2C_Read... [12:39:51]Read from MH i2c: 01 07 00 [12:39:51]MH_I2C_Read... [12:39:51]Read from MH i2c: 01 07 00 83 36 00 00 00 00 00 FF 0F CE [12:39:51]RasterBufferAndPrint [12:39:51]line Счет N : (1)32224 [12:39:51]line ИÐÐ: 02508201610067 [12:39:51]line Контрольно-КаÑÑовый Чек [12:39:51]line ПРОДÐЖР[12:39:51]line ТРК (МРК, ГÐК) : 11 [12:39:51]line Товар: 2710194210 [12:39:51]line ДТ-К-5 [12:39:51]line 26.250 * 76.20 [12:39:51]line = 2000.25 [12:39:51]line ÐДС 12% ÐСП 1% [12:39:51]line > о реализуемом товаре [12:39:51]line ОКРУГЛЕÐИЕ: -0.25 [12:39:51]line ИТОГО: 2000.00 [12:39:51]line ВнеÑено: 2000.00 [12:39:51]line СДÐЧÐ: 0.00 [12:39:51]line ÐСП 1% : 17.70 [12:39:51]line ÐДС 12% : 212.42 [12:39:51]line Ðаличными: 2000.00 [12:39:51]line Безнал.: 0.00 [12:39:51]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [12:39:51]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [12:39:51]line СÐО: Общий режим [12:39:51]line Чек 101 29.10.2024 12:39 [12:39:51]line Смена: 544 ФФД: 1.0 [12:39:51]line ЗÐМ: 0300000110 [12:39:51]line РÐМ: 0000000000091776 [12:39:51]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [12:39:51]line ФМ: 0000000000871754 [12:39:51]line ФД: 192895 [12:39:51]line ФПД: 277686475935044 [12:39:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T123955&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192895&fm=277686475935044&tin=02508201610067®Number=0000000000091776&sum=200000 [12:39:52]OFD Sender: Processing packet 192895 [packets to send 75, broken 74] [12:39:52]ProducePacketName [12:39:52]name=ofd_packets/00192895 [12:39:52]OFD Sender: To server: ‡•öpG, [12:39:52]CommunicateWithHost lk.salyk.kg:30040 [12:39:52]ConnectInit lk.salyk.kg [12:39:52]written 0, free lines is 4095 [12:39:52]Connected sock=10 [12:39: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 0C 01 00 00 28 58 04 01 01 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 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 65 00 00 00 F4 03 04 00 9B D7 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 FC 8D EB C1 CD 44 22 85 E4 34 CC 66 6F 05 [12:39: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 83 1D 47 00 A4 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 7F F1 02 00 F4 03 04 00 5B 7C 20 67 B6 04 01 00 00 CB 71 0E 9D CF B8 48 76 [12:39:52]CommunicateWithHost err = 0 [12:39:52]CheckOFDResponse [12:39:52]1017 (14) - 77093643461234 [12:39:52]1041 (16) - 0000000000871754 [12:39:52]1040 (4) - 192895 [12:39:52]1012 (4) - 29.10.2024 06:10 [12:39:52]1206 (1) - 0 [12:39:52]OFD Sender: Remove packet 192895 [12:39:52]ProducePacketName [12:39:52]name=ofd_packets/00192895 [12:39:52]NVStorageDeleteData [12:39:52]Write to MH i2c: 01 00 00 AE 36 E4 [12:39:52]Write i2c OK [12:39:52]MH_I2C_Read... [12:39:52]Read from MH i2c: 01 [12:39:52]MH_I2C_Read... [12:39:52]Read from MH i2c: 01 07 00 [12:39:52]MH_I2C_Read... [12:39:52]Read from MH i2c: 01 07 00 AE 36 00 00 00 00 00 AB 0C A2 [12:39:52]RasterBufferAndPrint [12:39:52]line [12:39:52]line [12:39:52]line [12:39:52]line [12:39:52]line [12:39:52]written 0, free lines is 3250 [12:39:52]MH_Cut [12:39:52]Write to MH i2c: D1 01 00 B5 36 01 BD [12:39:52]Write i2c OK [12:39:52]MH_I2C_Read... [12:39:52]Read from MH i2c: D1 [12:39:52]MH_I2C_Read... [12:39:52]Read from MH i2c: D1 01 00 [12:39:52]MH_I2C_Read... [12:39:52]Read from MH i2c: D1 01 00 B5 36 00 BC [12:39:52]Write to MH i2c: 01 00 00 B6 36 EC [12:39:52]Write i2c OK [12:39:52]MH_I2C_Read... [12:39:53]OFD Sender: No OFD packet to send [12:39:53]*** Cut start [12:39:53]*** Partial cut [12:39:53]*** CUTSNS_PIN = 1 [12:39:53]*** CUTSNS_PIN = 0 [12:39:53]*** Brake cut motor [12:39:54]Read from MH i2c: 01 [12:39:54]MH_I2C_Read... [12:39:54]*** Stop cut motor [12:39:54]*** Cut end [12:39:54]Read from MH i2c: 01 07 00 [12:39:54]MH_I2C_Read... [12:39:54]Read from MH i2c: 01 07 00 B6 36 00 00 00 00 00 FF 0F 01 [12:39:54]process_action close_receipt done [12:39:54]requested_data is exist [12:39:54]produce_requested_data [12:39:54]requested_item fm.sn is exist - process it [12:39:54]wFMCommunicate request_size=4 [12:39:54]MH_SAM_APDU [12:39:54]CAPDU: 80 11 00 00 [12:39:54]Write to MH i2c: E2 08 00 B7 36 80 11 00 00 00 00 00 00 67 [12:39:54]Write i2c OK [12:39:54]MH_I2C_Read... [12:39:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:54]Read from MH i2c: E2 [12:39:54]MH_I2C_Read... [12:39:54]Read from MH i2c: E2 17 00 [12:39:54]MH_I2C_Read... [12:39:54]Read from MH i2c: E2 17 00 B7 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BA [12:39:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:39:54]wFMCommunicate OK [12:39:54]requested_item fd.num is exist - process it [12:39:54]SAM_PROTO_GetFieldsCounters [12:39:54]wFMCommunicate request_size=4 [12:39:54]MH_SAM_APDU [12:39:54]CAPDU: 80 13 00 00 [12:39:54]Write to MH i2c: E2 08 00 B8 36 80 13 00 00 00 00 00 00 6A [12:39:54]Write i2c OK [12:39:54]MH_I2C_Read... [12:39:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:39:54]Read from MH i2c: E2 [12:39:54]MH_I2C_Read... [12:39:54]Read from MH i2c: E2 62 00 [12:39:54]MH_I2C_Read... [12:39:54]Read from MH i2c: E2 62 00 B8 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 7F F1 02 00 0E 04 04 00 20 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 53 [12:39: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 7F F1 02 00 0E 04 04 00 20 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:39:54]wFMCommunicate OK [12:39:54]SAM_PROTO_GetFieldsCounters done [12:39:54]requested_item shift.num is exist - process it [12:39:54]requested_item shift.opened is exist - process it [12:39:54]req_shift_opened [12:39:54]FM_GetShiftState [12:39:54]SAM_PROTO_GetShiftState [12:39:54]wFMCommunicate request_size=4 [12:39:54]MH_SAM_APDU [12:39:54]CAPDU: 80 13 01 00 [12:39:54]Write to MH i2c: E2 08 00 B9 36 80 13 01 00 00 00 00 00 6C [12:39:54]Write i2c OK [12:39:54]MH_I2C_Read... [12:39:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:54]Read from MH i2c: E2 [12:39:54]MH_I2C_Read... [12:39:54]Read from MH i2c: E2 0E 00 [12:39:54]MH_I2C_Read... [12:39:54]Read from MH i2c: E2 0E 00 B9 36 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 72 [12:39:54]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [12:39:54]wFMCommunicate OK [12:39:54]SAM_PROTO_GetShiftState done [12:39:54]FM_GetShiftState done [12:39:54]req_shift_opened done [12:39:54]requested_item shift.open_date is exist - process it [12:39:54]req_shift_open_date [12:39:54]req_shift_open_date done [12:39:54]produce_requested_data done [12:39:54]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192895,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [12:39:54]process_action_free close_receipt [12:39:54]json_value_free [12:39:54]json_value_free done [12:39:54]process_json_proto returns [12:39:54]Send response to host [12:39:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192895,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [12:39:54]free response buf [12:39:54]execute_script done [12:39:54]execute_script returns [12:39:54]free content buf [12:39:54]Sock 8.Close socket [12:39:54]Sock 8.Thread stoped [12:39:58]OFD Sender: No OFD packet to send [12:40:03]OFD Sender: No OFD packet to send [12:40:08]OFD Sender: No OFD packet to send [12:40:13]OFD Sender: No OFD packet to send [12:40:18]OFD Sender: No OFD packet to send [12:40:23]OFD Sender: No OFD packet to send [12:40:28]OFD Sender: No OFD packet to send [12:40:33]OFD Sender: No OFD packet to send [12:40:38]OFD Sender: No OFD packet to send [12:40:43]OFD Sender: No OFD packet to send [12:40:48]OFD Sender: No OFD packet to send [12:40:53]OFD Sender: No OFD packet to send [12:40:58]OFD Sender: No OFD packet to send [12:41:03]OFD Sender: No OFD packet to send [12:41:08]OFD Sender: No OFD packet to send [12:41:13]OFD Sender: No OFD packet to send [12:41:16]accept exits with 9 [12:41:16]New connection [12:41:16]New thread 3066801508 created [12:41:16]Thread 3066658148 joined [12:41:16]Waiting for new connection... [12:41:16] Sock 9.Parse request [12:41:16]Sock 9.Check first char [12:41:16]Sock 9.First char is OK [12:41:16]request: POST /json_proto HTTP/1.0 [12:41:16]Method: POST [12:41:16]URL: /json_proto [12:41:16]Method is POST - this is cgi request [12:41:16]url: /json_proto [12:41:16]query_string will be loaded in cgi processing [12:41:16]execute_cgi json_proto POST (null) [12:41:16]execute_cgi path=json_proto method=POST [12:41:16]POST find Content-Length [12:41:16]Host: 172.17.63.131:8080 [12:41:16]Content-Length: 676 [12:41:16]Content-Type: application/json [12:41:16] [12:41:16]POST finish read [12:41:16]Found Content-Length = 676 [12:41:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32226", "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:41:16]execute_script... [12:41: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)32226", "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:41:16]POST & json_proto [12:41:16]process_json_proto [12:41:16]json parsed OK: [12:41:16]protocol is kg_v1.0 [12:41:16]action value=close_receipt [12:41:16]process_action close_receipt [12:41:16]cmd_close_receipt [12:41:16]MH_GetDate [12:41:16]Write to MH i2c: F0 00 00 BA 36 DF [12:41:16]Write i2c OK [12:41:16]MH_I2C_Read... [12:41:16]Read from MH i2c: F0 [12:41:16]MH_I2C_Read... [12:41:16]Read from MH i2c: F0 09 00 [12:41:16]MH_I2C_Read... [12:41:16]Read from MH i2c: F0 09 00 BA 36 00 F1 D7 20 67 22 05 6E 64 30 [12:41:16]GetLastDocTimeStamp 1730205595 [12:41:16]current date 1730205681 [12:41:16]FM_GetShiftState [12:41:16]SAM_PROTO_GetShiftState [12:41:16]wFMCommunicate request_size=4 [12:41:16]MH_SAM_APDU [12:41:16]CAPDU: 80 13 01 00 [12:41:16]Write to MH i2c: E2 08 00 BB 36 80 13 01 00 00 00 00 00 6E [12:41:16]Write i2c OK [12:41:16]MH_I2C_Read... [12:41:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:16]Read from MH i2c: E2 [12:41:16]MH_I2C_Read... [12:41:16]Read from MH i2c: E2 0E 00 [12:41:16]MH_I2C_Read... [12:41:16]Read from MH i2c: E2 0E 00 BB 36 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 74 [12:41:16]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [12:41:16]wFMCommunicate OK [12:41:16]SAM_PROTO_GetShiftState done [12:41:16]FM_GetShiftState done [12:41:16]opened in 1730161990 [12:41:16]opened+sec_in_day 1730248390 [12:41:16]quantity*price = 50041 [12:41:16]sum+1 = 50042 [12:41: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 СÐО: Общий режим Чек 102 29.10.2024 12:41 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192896 ФПД: 261358840934190 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T124121&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192896&fm=261358840934190&tin=02508201610067®Number=0000000000091776&sum=50000 [12:41:17]StoreToDocumentArchive [12:41:17]shift 544 fd 192896 [12:41:17]save to /storage/0544/doc_00192896 [12:41:17]save last doc name /storage/0544/doc_00192896 to /storage/kkm_last_doc_name [12:41:17]save OK [12:41:17]Clear old archive folders... [12:41:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:41:17]tlvbuf is 00F945E0 [12:41:17]SAM_PROTO_ClearQueue [12:41:17]wFMCommunicate request_size=4 [12:41:17]MH_SAM_APDU [12:41:17]CAPDU: 80 09 00 00 [12:41:17]Write to MH i2c: E2 08 00 C8 36 80 09 00 00 00 00 00 00 70 [12:41:17]Write i2c OK [12:41:17]MH_I2C_Read... [12:41:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:41:18]Read from MH i2c: E2 [12:41:18]MH_I2C_Read... [12:41:18]Read from MH i2c: E2 03 00 [12:41:18]MH_I2C_Read... [12:41:18]Read from MH i2c: E2 03 00 C8 36 00 90 00 72 [12:41:18]RAPDU: 90 00 [12:41:18]wFMCommunicate OK [12:41:18]SAM_PROTO_ClearQueue done [12:41:18]KKMCreateOFDPacket [12:41:18]OFDProtocolAddRootSTLVToBuf [12:41:18]FM_MakeSignedData [12:41:18]FM_MakeSignedData [12:41:18]SAM_PROTO_SignData [12:41:18]wFMCommunicate request_size=4 [12:41:18]MH_SAM_APDU [12:41:18]CAPDU: 80 0D 01 02 [12:41:18]Write to MH i2c: E2 08 00 C9 36 80 0D 01 02 00 00 00 00 78 [12:41:18]Write i2c OK [12:41:18]MH_I2C_Read... [12:41:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:41:18]Read from MH i2c: E2 [12:41:18]MH_I2C_Read... [12:41:18]Read from MH i2c: E2 03 00 [12:41:18]MH_I2C_Read... [12:41:18]Read from MH i2c: E2 03 00 C9 36 00 90 00 73 [12:41:18]RAPDU: 90 00 [12:41:18]wFMCommunicate OK [12:41:18]wFMCommunicate request_size=255 [12:41:18]MH_SAM_APDU [12:41: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 66 00 00 00 F4 03 04 00 F1 D7 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 ED [12:41:18]Write to MH i2c: E2 02 01 CA 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 66 00 00 00 F4 03 04 00 F1 D7 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 ED 00 00 43 [12:41:18]Write i2c OK [12:41:18]MH_I2C_Read... [12:41:18]OFD Sender: No OFD packet to send [12:41:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:18]Read from MH i2c: E2 [12:41:18]MH_I2C_Read... [12:41:18]Read from MH i2c: E2 03 00 [12:41:18]MH_I2C_Read... [12:41:18]Read from MH i2c: E2 03 00 CA 36 00 90 00 74 [12:41:18]RAPDU: 90 00 [12:41:18]wFMCommunicate OK [12:41:18]wFMCommunicate request_size=10 [12:41:18]MH_SAM_APDU [12:41:18]CAPDU: 80 0D 02 02 05 B4 58 DF 6F 2E [12:41:18]Write to MH i2c: E2 0D 00 CB 36 80 0D 02 02 05 00 B4 58 DF 6F 2E 00 00 0D [12:41:18]Write i2c OK [12:41:18]MH_I2C_Read... [12:41:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:18]Read from MH i2c: E2 [12:41:18]MH_I2C_Read... [12:41:18]Read from MH i2c: E2 03 00 [12:41:18]MH_I2C_Read... [12:41:18]Read from MH i2c: E2 03 00 CB 36 00 90 00 75 [12:41:18]RAPDU: 90 00 [12:41:18]wFMCommunicate OK [12:41:18]wFMCommunicate request_size=4 [12:41:18]MH_SAM_APDU [12:41:18]CAPDU: 80 0D 03 02 [12:41:18]Write to MH i2c: E2 08 00 CC 36 80 0D 03 02 00 00 00 00 7D [12:41:18]Write i2c OK [12:41:18]MH_I2C_Read... [12:41:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:41:18]Read from MH i2c: E2 [12:41:18]MH_I2C_Read... [12:41:18]Read from MH i2c: E2 0B 00 [12:41:18]MH_I2C_Read... [12:41:18]Read from MH i2c: E2 0B 00 CC 36 00 99 1E 91 70 2E 02 1A 80 90 00 00 [12:41:18]RAPDU: 99 1E 91 70 2E 02 1A 80 90 00 [12:41:18]wFMCommunicate OK [12:41:18]SAM_PROTO_SignData done [12:41:18]FM_MakeSignedData done [12:41:18]CreateOFDProtocolMessage [12:41:18]wFMCommunicate request_size=4 [12:41:18]MH_SAM_APDU [12:41:18]CAPDU: 80 11 00 00 [12:41:18]Write to MH i2c: E2 08 00 CD 36 80 11 00 00 00 00 00 00 7D [12:41:18]Write i2c OK [12:41:18]MH_I2C_Read... [12:41:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:18]Read from MH i2c: E2 [12:41:18]MH_I2C_Read... [12:41:18]Read from MH i2c: E2 17 00 [12:41:18]MH_I2C_Read... [12:41:18]Read from MH i2c: E2 17 00 CD 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D0 [12:41:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:41:18]wFMCommunicate OK [12:41:18]CreateOFDProtocolMessage done [12:41:18]OFDSenderStorePacket 192896 [12:41:18]StoreOFDPacket docnum=192896 [12:41: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 E6 E8 07 01 0B 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 F1 D7 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 ED B4 58 DF 6F 2E 99 1E 91 70 2E 02 1A 80 [12:41:18]CheckFolder [12:41:18]dirname=/storage/ofd_packets [12:41:18]CheckFolder done [12:41:18]ProducePacketName [12:41:18]name=ofd_packets/00192896 [12:41:18]NVStorageSaveData ofd_packets/00192896 [12:41:18]File name is /storage/ofd_packets/00192896 [12:41:18]Write 301 bytes [12:41:18]NVStorageSaveData done [12:41:18]OFDSenderStorePacket done [12:41:18]KKMCreateOFDPacket done [12:41:18]NVStorageSaveData kkm_last_timestamp [12:41:18]File name is /storage/kkm_last_timestamp [12:41:18]Write 4 bytes [12:41:18]NVStorageSaveData done [12:41:18]ExternCall_PrintAddStr [12:41:18]wPrintStart [12:41:18]Write to MH i2c: 01 00 00 CE 36 04 [12:41:18]Write i2c OK [12:41:18]MH_I2C_Read... [12:41:18]Read from MH i2c: 01 [12:41:18]MH_I2C_Read... [12:41:18]Read from MH i2c: 01 07 00 [12:41:18]MH_I2C_Read... [12:41:18]Read from MH i2c: 01 07 00 CE 36 00 00 00 00 00 FF 0F 19 [12:41:18]RasterBufferAndPrint [12:41:18]line Счет N : (1)32226 [12:41:18]line ИÐÐ: 02508201610067 [12:41:18]line Контрольно-КаÑÑовый Чек [12:41:18]line ПРОДÐЖР[12:41:18]line ТРК (МРК, ГÐК) : 12 [12:41:18]line Товар: 2710124130 [12:41:18]line Ðи-92-К-5 [12:41:18]line 7.480 * 66.90 [12:41:18]line = 500.41 [12:41:18]line ÐДС 12% ÐСП 1% [12:41:18]line > о реализуемом товаре [12:41:18]line ОКРУГЛЕÐИЕ: -0.41 [12:41:18]line ИТОГО: 500.00 [12:41:18]line ВнеÑено: 500.00 [12:41:18]line СДÐЧÐ: 0.00 [12:41:18]line ÐСП 1% : 4.43 [12:41:18]line ÐДС 12% : 53.14 [12:41:18]line Ðаличными: 500.00 [12:41:18]line Безнал.: 0.00 [12:41:18]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [12:41:18]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [12:41:18]line СÐО: Общий режим [12:41:18]line Чек 102 29.10.2024 12:41 [12:41:18]line Смена: 544 ФФД: 1.0 [12:41:18]line ЗÐМ: 0300000110 [12:41:18]line РÐМ: 0000000000091776 [12:41:18]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [12:41:18]line ФМ: 0000000000871754 [12:41:18]line ФД: 192896 [12:41:18]line ФПД: 261358840934190 [12:41:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T124121&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192896&fm=261358840934190&tin=02508201610067®Number=0000000000091776&sum=50000 [12:41:18]OFD Sender: Processing packet 192896 [packets to send 75, broken 74] [12:41:18]ProducePacketName [12:41:18]name=ofd_packets/00192896 [12:41:18]OFD Sender: To server: ‡•öpG, [12:41:18]CommunicateWithHost lk.salyk.kg:30040 [12:41:18]ConnectInit lk.salyk.kg [12:41:18]written 0, free lines is 4095 [12:41:18]Connected sock=10 [12:41:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E6 E8 07 01 0B 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 F1 D7 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 ED B4 58 DF 6F 2E 99 1E 91 70 2E 02 1A 80 [12:41: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 29 99 47 00 F7 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 80 F1 02 00 F4 03 04 00 B2 7C 20 67 B6 04 01 00 00 48 44 B8 8A BB F9 BA A0 [12:41:19]CommunicateWithHost err = 0 [12:41:19]CheckOFDResponse [12:41:19]1017 (14) - 77093643461234 [12:41:19]1041 (16) - 0000000000871754 [12:41:19]1040 (4) - 192896 [12:41:19]1012 (4) - 29.10.2024 06:12 [12:41:19]1206 (1) - 0 [12:41:19]OFD Sender: Remove packet 192896 [12:41:19]ProducePacketName [12:41:19]name=ofd_packets/00192896 [12:41:19]NVStorageDeleteData [12:41:19]Write to MH i2c: 01 00 00 F9 36 2F [12:41:19]Write i2c OK [12:41:19]MH_I2C_Read... [12:41:19]Read from MH i2c: 01 [12:41:19]MH_I2C_Read... [12:41:19]Read from MH i2c: 01 07 00 [12:41:19]MH_I2C_Read... [12:41:19]Read from MH i2c: 01 07 00 F9 36 00 00 00 00 00 B8 0C FA [12:41:19]RasterBufferAndPrint [12:41:19]line [12:41:19]line [12:41:19]line [12:41:19]line [12:41:19]line [12:41:19]written 0, free lines is 3263 [12:41:19]MH_Cut [12:41:19]Write to MH i2c: D1 01 00 00 37 01 09 [12:41:19]Write i2c OK [12:41:19]MH_I2C_Read... [12:41:19]Read from MH i2c: D1 [12:41:19]MH_I2C_Read... [12:41:19]Read from MH i2c: D1 01 00 [12:41:19]MH_I2C_Read... [12:41:19]Read from MH i2c: D1 01 00 00 37 00 08 [12:41:19]Write to MH i2c: 01 00 00 01 37 38 [12:41:19]Write i2c OK [12:41:19]MH_I2C_Read... [12:41:19]OFD Sender: No OFD packet to send [12:41:20]*** Cut start [12:41:20]*** Partial cut [12:41:20]*** CUTSNS_PIN = 1 [12:41:20]*** CUTSNS_PIN = 0 [12:41:20]*** Brake cut motor [12:41:20]Read from MH i2c: 01 [12:41:20]MH_I2C_Read... [12:41:20]*** Stop cut motor [12:41:20]*** Cut end [12:41:20]Read from MH i2c: 01 07 00 [12:41:20]MH_I2C_Read... [12:41:20]Read from MH i2c: 01 07 00 01 37 00 00 00 00 00 FF 0F 4D [12:41:20]process_action close_receipt done [12:41:20]requested_data is exist [12:41:20]produce_requested_data [12:41:20]requested_item fm.sn is exist - process it [12:41:20]wFMCommunicate request_size=4 [12:41:20]MH_SAM_APDU [12:41:20]CAPDU: 80 11 00 00 [12:41:20]Write to MH i2c: E2 08 00 02 37 80 11 00 00 00 00 00 00 B3 [12:41:20]Write i2c OK [12:41:20]MH_I2C_Read... [12:41:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:20]Read from MH i2c: E2 [12:41:20]MH_I2C_Read... [12:41:20]Read from MH i2c: E2 17 00 [12:41:20]MH_I2C_Read... [12:41:20]Read from MH i2c: E2 17 00 02 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 06 [12:41: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:41:20]wFMCommunicate OK [12:41:20]requested_item fd.num is exist - process it [12:41:20]SAM_PROTO_GetFieldsCounters [12:41:20]wFMCommunicate request_size=4 [12:41:20]MH_SAM_APDU [12:41:20]CAPDU: 80 13 00 00 [12:41:20]Write to MH i2c: E2 08 00 03 37 80 13 00 00 00 00 00 00 B6 [12:41:20]Write i2c OK [12:41:20]MH_I2C_Read... [12:41:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:41:20]Read from MH i2c: E2 [12:41:20]MH_I2C_Read... [12:41:20]Read from MH i2c: E2 62 00 [12:41:20]MH_I2C_Read... [12:41:20]Read from MH i2c: E2 62 00 03 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 80 F1 02 00 0E 04 04 00 20 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 A3 [12:41: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 80 F1 02 00 0E 04 04 00 20 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:41:20]wFMCommunicate OK [12:41:20]SAM_PROTO_GetFieldsCounters done [12:41:20]requested_item shift.num is exist - process it [12:41:20]requested_item shift.opened is exist - process it [12:41:20]req_shift_opened [12:41:20]FM_GetShiftState [12:41:20]SAM_PROTO_GetShiftState [12:41:20]wFMCommunicate request_size=4 [12:41:20]MH_SAM_APDU [12:41:20]CAPDU: 80 13 01 00 [12:41:20]Write to MH i2c: E2 08 00 04 37 80 13 01 00 00 00 00 00 B8 [12:41:20]Write i2c OK [12:41:20]MH_I2C_Read... [12:41:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:21]Read from MH i2c: E2 [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: E2 0E 00 [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: E2 0E 00 04 37 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 BE [12:41:21]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [12:41:21]wFMCommunicate OK [12:41:21]SAM_PROTO_GetShiftState done [12:41:21]FM_GetShiftState done [12:41:21]req_shift_opened done [12:41:21]requested_item shift.open_date is exist - process it [12:41:21]req_shift_open_date [12:41:21]req_shift_open_date done [12:41:21]produce_requested_data done [12:41:21]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192896,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [12:41:21]process_action_free close_receipt [12:41:21]json_value_free [12:41:21]json_value_free done [12:41:21]process_json_proto returns [12:41:21]Send response to host [12:41:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192896,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [12:41:21]free response buf [12:41:21]execute_script done [12:41:21]execute_script returns [12:41:21]free content buf [12:41:21]Sock 9.Close socket [12:41:21]Sock 9.Thread stoped [12:41:24]OFD Sender: No OFD packet to send [12:41:29]OFD Sender: No OFD packet to send [12:41:34]OFD Sender: No OFD packet to send [12:41:39]OFD Sender: No OFD packet to send [12:41:44]OFD Sender: No OFD packet to send [12:41:49]OFD Sender: No OFD packet to send [12:41:54]OFD Sender: No OFD packet to send [12:41:59]OFD Sender: No OFD packet to send [12:42:04]OFD Sender: No OFD packet to send [12:42:09]OFD Sender: No OFD packet to send [12:42:14]OFD Sender: No OFD packet to send [12:42:19]OFD Sender: No OFD packet to send [12:42:24]OFD Sender: No OFD packet to send [12:42:29]OFD Sender: No OFD packet to send [12:42:34]OFD Sender: No OFD packet to send [12:42:39]OFD Sender: No OFD packet to send [12:42:44]OFD Sender: No OFD packet to send [12:42:49]OFD Sender: No OFD packet to send [12:42:54]OFD Sender: No OFD packet to send [12:42:59]OFD Sender: No OFD packet to send [12:43:04]OFD Sender: No OFD packet to send [12:43:09]OFD Sender: No OFD packet to send [12:43:14]OFD Sender: No OFD packet to send [12:43:14]accept exits with 8 [12:43:14]New connection [12:43:14]New thread 3066658148 created [12:43:14]Thread 3066801508 joined [12:43:14]Waiting for new connection... [12:43:14] Sock 8.Parse request [12:43:14]Sock 8.Check first char [12:43:14]Sock 8.First char is OK [12:43:14]request: POST /json_proto HTTP/1.0 [12:43:14]Method: POST [12:43:14]URL: /json_proto [12:43:14]Method is POST - this is cgi request [12:43:14]url: /json_proto [12:43:14]query_string will be loaded in cgi processing [12:43:14]execute_cgi json_proto POST (null) [12:43:14]execute_cgi path=json_proto method=POST [12:43:14]POST find Content-Length [12:43:14]Host: 172.17.63.131:8080 [12:43:14]Content-Length: 674 [12:43:14]Content-Type: application/json [12:43:14] [12:43:14]POST finish read [12:43:14]Found Content-Length = 674 [12:43:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32227", "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" : 1000.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:14]execute_script... [12: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)32227", "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" : 1000.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:14]POST & json_proto [12:43:14]process_json_proto [12:43:14]json parsed OK: [12:43:14]protocol is kg_v1.0 [12:43:14]action value=close_receipt [12:43:14]process_action close_receipt [12:43:14]cmd_close_receipt [12:43:14]MH_GetDate [12:43:14]Write to MH i2c: F0 00 00 05 37 2B [12:43:14]Write i2c OK [12:43:14]MH_I2C_Read... [12:43:14]Read from MH i2c: F0 [12:43:14]MH_I2C_Read... [12:43:14]Read from MH i2c: F0 09 00 [12:43:14]MH_I2C_Read... [12:43:14]Read from MH i2c: F0 09 00 05 37 00 67 D8 20 67 22 05 6E 64 F3 [12:43:14]GetLastDocTimeStamp 1730205681 [12:43:14]current date 1730205799 [12:43:14]FM_GetShiftState [12:43:14]SAM_PROTO_GetShiftState [12:43:14]wFMCommunicate request_size=4 [12:43:14]MH_SAM_APDU [12:43:14]CAPDU: 80 13 01 00 [12:43:14]Write to MH i2c: E2 08 00 06 37 80 13 01 00 00 00 00 00 BA [12:43:14]Write i2c OK [12:43:14]MH_I2C_Read... [12:43:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:14]Read from MH i2c: E2 [12:43:14]MH_I2C_Read... [12:43:14]Read from MH i2c: E2 0E 00 [12:43:14]MH_I2C_Read... [12:43:14]Read from MH i2c: E2 0E 00 06 37 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 C0 [12:43:14]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [12:43:14]wFMCommunicate OK [12:43:14]SAM_PROTO_GetShiftState done [12:43:14]FM_GetShiftState done [12:43:14]opened in 1730161990 [12:43:14]opened+sec_in_day 1730248390 [12:43:14]quantity*price = 50063 [12:43:14]sum+1 = 50064 [12:43:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.63 ИТОГО: 500.00 ВнеÑено: 1000.00 СДÐЧÐ: 500.00 ÐСП 1% : 4.43 ÐДС 12% : 53.16 Ðаличными: 500.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 170 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 СÐО: Общий режим Чек 103 29.10.2024 12:43 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192897 ФПД: 180378886118118 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T124319&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192897&fm=180378886118118&tin=02508201610067®Number=0000000000091776&sum=50000 [12:43:15]StoreToDocumentArchive [12:43:15]shift 544 fd 192897 [12:43:15]save to /storage/0544/doc_00192897 [12:43:15]save last doc name /storage/0544/doc_00192897 to /storage/kkm_last_doc_name [12:43:15]save OK [12:43:15]Clear old archive folders... [12:43:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:43:15]tlvbuf is 00FC2670 [12:43:15]SAM_PROTO_ClearQueue [12:43:15]wFMCommunicate request_size=4 [12:43:15]MH_SAM_APDU [12:43:15]CAPDU: 80 09 00 00 [12:43:15]Write to MH i2c: E2 08 00 13 37 80 09 00 00 00 00 00 00 BC [12:43:15]Write i2c OK [12:43:15]MH_I2C_Read... [12:43:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:43:16]Read from MH i2c: E2 [12:43:16]MH_I2C_Read... [12:43:16]Read from MH i2c: E2 03 00 [12:43:16]MH_I2C_Read... [12:43:16]Read from MH i2c: E2 03 00 13 37 00 90 00 BE [12:43:16]RAPDU: 90 00 [12:43:16]wFMCommunicate OK [12:43:16]SAM_PROTO_ClearQueue done [12:43:16]KKMCreateOFDPacket [12:43:16]OFDProtocolAddRootSTLVToBuf [12:43:16]FM_MakeSignedData [12:43:16]FM_MakeSignedData [12:43:16]SAM_PROTO_SignData [12:43:16]wFMCommunicate request_size=4 [12:43:16]MH_SAM_APDU [12:43:16]CAPDU: 80 0D 01 02 [12:43:16]Write to MH i2c: E2 08 00 14 37 80 0D 01 02 00 00 00 00 C4 [12:43:16]Write i2c OK [12:43:16]MH_I2C_Read... [12:43:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:43:16]Read from MH i2c: E2 [12:43:16]MH_I2C_Read... [12:43:16]Read from MH i2c: E2 03 00 [12:43:16]MH_I2C_Read... [12:43:16]Read from MH i2c: E2 03 00 14 37 00 90 00 BF [12:43:16]RAPDU: 90 00 [12:43:16]wFMCommunicate OK [12:43:16]wFMCommunicate request_size=255 [12:43:16]MH_SAM_APDU [12:43: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 67 00 00 00 F4 03 04 00 67 D8 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 A4 0D BB 6E [12:43:16]Write to MH i2c: E2 02 01 15 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 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 67 00 00 00 F4 03 04 00 67 D8 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 A4 0D BB 6E 00 00 73 [12:43:16]Write i2c OK [12:43:16]MH_I2C_Read... [12:43:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:16]Read from MH i2c: E2 [12:43:16]MH_I2C_Read... [12:43:16]Read from MH i2c: E2 03 00 [12:43:16]MH_I2C_Read... [12:43:16]Read from MH i2c: E2 03 00 15 37 00 90 00 C0 [12:43:16]RAPDU: 90 00 [12:43:16]wFMCommunicate OK [12:43:16]wFMCommunicate request_size=7 [12:43:16]MH_SAM_APDU [12:43:16]CAPDU: 80 0D 02 02 02 9A E6 [12:43:16]Write to MH i2c: E2 0A 00 16 37 80 0D 02 02 02 00 9A E6 00 00 4B [12:43:16]Write i2c OK [12:43:16]MH_I2C_Read... [12:43:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:16]Read from MH i2c: E2 [12:43:16]MH_I2C_Read... [12:43:16]Read from MH i2c: E2 03 00 [12:43:16]MH_I2C_Read... [12:43:16]Read from MH i2c: E2 03 00 16 37 00 90 00 C1 [12:43:16]RAPDU: 90 00 [12:43:16]wFMCommunicate OK [12:43:16]wFMCommunicate request_size=4 [12:43:16]MH_SAM_APDU [12:43:16]CAPDU: 80 0D 03 02 [12:43:16]Write to MH i2c: E2 08 00 17 37 80 0D 03 02 00 00 00 00 C9 [12:43:16]Write i2c OK [12:43:16]MH_I2C_Read... [12:43:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:43:16]Read from MH i2c: E2 [12:43:16]MH_I2C_Read... [12:43:16]Read from MH i2c: E2 0B 00 [12:43:16]MH_I2C_Read... [12:43:16]Read from MH i2c: E2 0B 00 17 37 00 4C 8F D9 84 E6 36 5C D1 90 00 4B [12:43:16]RAPDU: 4C 8F D9 84 E6 36 5C D1 90 00 [12:43:16]wFMCommunicate OK [12:43:16]SAM_PROTO_SignData done [12:43:16]FM_MakeSignedData done [12:43:16]CreateOFDProtocolMessage [12:43:16]wFMCommunicate request_size=4 [12:43:16]MH_SAM_APDU [12:43:16]CAPDU: 80 11 00 00 [12:43:16]Write to MH i2c: E2 08 00 18 37 80 11 00 00 00 00 00 00 C9 [12:43:16]Write i2c OK [12:43:16]MH_I2C_Read... [12:43:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:16]Read from MH i2c: E2 [12:43:16]MH_I2C_Read... [12:43:16]Read from MH i2c: E2 17 00 [12:43:16]MH_I2C_Read... [12:43:16]Read from MH i2c: E2 17 00 18 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1C [12:43:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:43:16]wFMCommunicate OK [12:43:16]CreateOFDProtocolMessage done [12:43:16]OFDSenderStorePacket 192897 [12:43:16]StoreOFDPacket docnum=192897 [12:43: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 D8 15 04 01 EC 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 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 67 00 00 00 F4 03 04 00 67 D8 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 A4 0D BB 6E 9A E6 4C 8F D9 84 E6 36 5C D1 [12:43:16]CheckFolder [12:43:16]dirname=/storage/ofd_packets [12:43:16]CheckFolder done [12:43:16]ProducePacketName [12:43:16]name=ofd_packets/00192897 [12:43:16]NVStorageSaveData ofd_packets/00192897 [12:43:16]File name is /storage/ofd_packets/00192897 [12:43:16]Write 298 bytes [12:43:16]NVStorageSaveData done [12:43:16]OFDSenderStorePacket done [12:43:16]KKMCreateOFDPacket done [12:43:16]NVStorageSaveData kkm_last_timestamp [12:43:16]File name is /storage/kkm_last_timestamp [12:43:16]Write 4 bytes [12:43:16]NVStorageSaveData done [12:43:16]ExternCall_PrintAddStr [12:43:16]wPrintStart [12:43:16]Write to MH i2c: 01 00 00 19 37 50 [12:43:16]Write i2c OK [12:43:16]MH_I2C_Read... [12:43:16]Read from MH i2c: 01 [12:43:16]MH_I2C_Read... [12:43:16]Read from MH i2c: 01 07 00 [12:43:16]MH_I2C_Read... [12:43:16]Read from MH i2c: 01 07 00 19 37 00 00 00 00 00 FF 0F 65 [12:43:16]RasterBufferAndPrint [12:43:16]line Счет N : (1)32227 [12:43:16]line ИÐÐ: 02508201610067 [12:43:16]line Контрольно-КаÑÑовый Чек [12:43:16]line ПРОДÐЖР[12:43:16]line ТРК (МРК, ГÐК) : 11 [12:43:16]line Товар: 2710194210 [12:43:16]line ДТ-К-5 [12:43:16]line 6.570 * 76.20 [12:43:16]line = 500.63 [12:43:16]line ÐДС 12% ÐСП 1% [12:43:16]line > о реализуемом товаре [12:43:16]line ОКРУГЛЕÐИЕ: -0.63 [12:43:16]line ИТОГО: 500.00 [12:43:16]line ВнеÑено: 1000.00 [12:43:16]line СДÐЧÐ: 500.00 [12:43:16]line ÐСП 1% : 4.43 [12:43:16]line ÐДС 12% : 53.16 [12:43:16]line Ðаличными: 500.00 [12:43:16]line Безнал.: 0.00 [12:43:16]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [12:43:16]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [12:43:16]line СÐО: Общий режим [12:43:16]line Чек 103 29.10.2024 12:43 [12:43:16]line Смена: 544 ФФД: 1.0 [12:43:16]line ЗÐМ: 0300000110 [12:43:16]line РÐМ: 0000000000091776 [12:43:16]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [12:43:16]line ФМ: 0000000000871754 [12:43:16]line ФД: 192897 [12:43:16]line ФПД: 180378886118118 [12:43:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T124319&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192897&fm=180378886118118&tin=02508201610067®Number=0000000000091776&sum=50000 [12:43:16]OFD Sender: Processing packet 192897 [packets to send 75, broken 74] [12:43:16]ProducePacketName [12:43:16]name=ofd_packets/00192897 [12:43:16]OFD Sender: To server: ‡•öpG, [12:43:16]CommunicateWithHost lk.salyk.kg:30040 [12:43:16]ConnectInit lk.salyk.kg [12:43:16]written 0, free lines is 4095 [12:43:16]Connected sock=10 [12: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 0C 01 00 00 D8 15 04 01 EC 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 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 67 00 00 00 F4 03 04 00 67 D8 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 A4 0D BB 6E 9A E6 4C 8F D9 84 E6 36 5C D1 [12:43: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 E2 F4 47 00 85 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 81 F1 02 00 F4 03 04 00 28 7D 20 67 B6 04 01 00 00 5E 35 28 F0 5B B7 09 F1 [12:43:17]CommunicateWithHost err = 0 [12:43:17]CheckOFDResponse [12:43:17]1017 (14) - 77093643461234 [12:43:17]1041 (16) - 0000000000871754 [12:43:17]1040 (4) - 192897 [12:43:17]1012 (4) - 29.10.2024 06:14 [12:43:17]1206 (1) - 0 [12:43:17]OFD Sender: Remove packet 192897 [12:43:17]ProducePacketName [12:43:17]name=ofd_packets/00192897 [12:43:17]NVStorageDeleteData [12:43:17]Write to MH i2c: 01 00 00 44 37 7B [12:43:17]Write i2c OK [12:43:17]MH_I2C_Read... [12:43:17]Read from MH i2c: 01 [12:43:17]MH_I2C_Read... [12:43:17]Read from MH i2c: 01 07 00 [12:43:17]MH_I2C_Read... [12:43:17]Read from MH i2c: 01 07 00 44 37 00 00 00 00 00 B9 0C 47 [12:43:17]RasterBufferAndPrint [12:43:17]line [12:43:17]line [12:43:17]line [12:43:17]line [12:43:17]line [12:43:17]written 0, free lines is 3264 [12:43:17]MH_Cut [12:43:17]Write to MH i2c: D1 01 00 4B 37 01 54 [12:43:17]Write i2c OK [12:43:17]MH_I2C_Read... [12:43:17]Read from MH i2c: D1 [12:43:17]MH_I2C_Read... [12:43:17]Read from MH i2c: D1 01 00 [12:43:17]MH_I2C_Read... [12:43:17]Read from MH i2c: D1 01 00 4B 37 00 53 [12:43:17]Write to MH i2c: 01 00 00 4C 37 83 [12:43:17]Write i2c OK [12:43:17]MH_I2C_Read... [12:43:17]OFD Sender: No OFD packet to send [12:43:18]*** Cut start [12:43:18]*** Partial cut [12:43:18]*** CUTSNS_PIN = 1 [12:43:18]*** CUTSNS_PIN = 0 [12:43:18]*** Brake cut motor [12:43:18]Read from MH i2c: 01 [12:43:18]MH_I2C_Read... [12:43:18]*** Stop cut motor [12:43:18]*** Cut end [12:43:18]Read from MH i2c: 01 07 00 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: 01 07 00 4C 37 00 00 00 00 00 FF 0F 98 [12:43:18]process_action close_receipt done [12:43:18]requested_data is exist [12:43:18]produce_requested_data [12:43:18]requested_item fm.sn is exist - process it [12:43:18]wFMCommunicate request_size=4 [12:43:18]MH_SAM_APDU [12:43:18]CAPDU: 80 11 00 00 [12:43:18]Write to MH i2c: E2 08 00 4D 37 80 11 00 00 00 00 00 00 FE [12:43:18]Write i2c OK [12:43:18]MH_I2C_Read... [12:43:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:18]Read from MH i2c: E2 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: E2 17 00 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: E2 17 00 4D 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 51 [12: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 [12:43:18]wFMCommunicate OK [12:43:18]requested_item fd.num is exist - process it [12:43:18]SAM_PROTO_GetFieldsCounters [12:43:18]wFMCommunicate request_size=4 [12:43:18]MH_SAM_APDU [12:43:18]CAPDU: 80 13 00 00 [12:43:18]Write to MH i2c: E2 08 00 4E 37 80 13 00 00 00 00 00 00 01 [12:43:18]Write i2c OK [12:43:18]MH_I2C_Read... [12:43:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:43:18]Read from MH i2c: E2 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: E2 62 00 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: E2 62 00 4E 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 81 F1 02 00 0E 04 04 00 20 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 F2 [12: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 81 F1 02 00 0E 04 04 00 20 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:43:18]wFMCommunicate OK [12:43:18]SAM_PROTO_GetFieldsCounters done [12:43:18]requested_item shift.num is exist - process it [12:43:18]requested_item shift.opened is exist - process it [12:43:18]req_shift_opened [12:43:18]FM_GetShiftState [12:43:18]SAM_PROTO_GetShiftState [12:43:18]wFMCommunicate request_size=4 [12:43:18]MH_SAM_APDU [12:43:18]CAPDU: 80 13 01 00 [12:43:18]Write to MH i2c: E2 08 00 4F 37 80 13 01 00 00 00 00 00 03 [12:43:18]Write i2c OK [12:43:18]MH_I2C_Read... [12:43:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:19]Read from MH i2c: E2 [12:43:19]MH_I2C_Read... [12:43:19]Read from MH i2c: E2 0E 00 [12:43:19]MH_I2C_Read... [12:43:19]Read from MH i2c: E2 0E 00 4F 37 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 09 [12:43:19]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [12:43:19]wFMCommunicate OK [12:43:19]SAM_PROTO_GetShiftState done [12:43:19]FM_GetShiftState done [12:43:19]req_shift_opened done [12:43:19]requested_item shift.open_date is exist - process it [12:43:19]req_shift_open_date [12:43:19]req_shift_open_date done [12:43:19]produce_requested_data done [12:43:19]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192897,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [12:43:19]process_action_free close_receipt [12:43:19]json_value_free [12:43:19]json_value_free done [12:43:19]process_json_proto returns [12:43:19]Send response to host [12:43:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192897,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [12:43:19]free response buf [12:43:19]execute_script done [12:43:19]execute_script returns [12:43:19]free content buf [12:43:19]Sock 8.Close socket [12:43:19]Sock 8.Thread stoped [12:43:22]OFD Sender: No OFD packet to send [12:43:27]OFD Sender: No OFD packet to send [12:43:32]OFD Sender: No OFD packet to send [12:43:37]OFD Sender: No OFD packet to send [12:43:42]OFD Sender: No OFD packet to send [12:43:47]OFD Sender: No OFD packet to send [12:43:52]OFD Sender: No OFD packet to send [12:43:57]OFD Sender: No OFD packet to send [12:44:02]OFD Sender: No OFD packet to send [12:44:07]OFD Sender: No OFD packet to send [12:44:12]OFD Sender: No OFD packet to send [12:44:17]OFD Sender: No OFD packet to send [12:44:22]OFD Sender: No OFD packet to send [12:44:27]OFD Sender: No OFD packet to send [12:44:32]OFD Sender: No OFD packet to send [12:44:37]OFD Sender: No OFD packet to send [12:44:42]OFD Sender: No OFD packet to send [12:44:47]OFD Sender: No OFD packet to send [12:44:52]OFD Sender: No OFD packet to send [12:44:57]OFD Sender: No OFD packet to send [12:45:02]OFD Sender: No OFD packet to send [12:45:07]OFD Sender: No OFD packet to send [12:45:12]OFD Sender: No OFD packet to send [12:45:17]OFD Sender: No OFD packet to send [12:45:22]OFD Sender: No OFD packet to send [12:45:27]OFD Sender: No OFD packet to send [12:45:32]OFD Sender: No OFD packet to send [12:45:37]OFD Sender: No OFD packet to send [12:45:42]OFD Sender: No OFD packet to send [12:45:47]OFD Sender: No OFD packet to send [12:45:52]OFD Sender: No OFD packet to send [12:45:57]OFD Sender: No OFD packet to send [12:46:02]OFD Sender: No OFD packet to send [12:46:07]OFD Sender: No OFD packet to send [12:46:12]OFD Sender: No OFD packet to send [12:46:17]OFD Sender: No OFD packet to send [12:46:22]OFD Sender: No OFD packet to send [12:46:27]OFD Sender: No OFD packet to send [12:46:32]OFD Sender: No OFD packet to send [12:46:37]OFD Sender: No OFD packet to send [12:46:42]OFD Sender: No OFD packet to send [12:46:47]OFD Sender: No OFD packet to send [12:46:50]accept exits with 9 [12:46:50]New connection [12:46:50]New thread 3066801508 created [12:46:50]Thread 3066658148 joined [12:46:50]Waiting for new connection... [12:46:50] Sock 9.Parse request [12:46:50]Sock 9.Check first char [12:46:50]Sock 9.First char is OK [12:46:50]request: POST /json_proto HTTP/1.0 [12:46:50]Method: POST [12:46:50]URL: /json_proto [12:46:50]Method is POST - this is cgi request [12:46:50]url: /json_proto [12:46:50]query_string will be loaded in cgi processing [12:46:50]execute_cgi json_proto POST (null) [12:46:50]execute_cgi path=json_proto method=POST [12:46:50]POST find Content-Length [12:46:50]Host: 172.17.63.131:8080 [12:46:50]Content-Length: 791 [12:46:50]Content-Type: application/json [12:46:50] [12:46:50]POST finish read [12:46:50]Found Content-Length = 791 [12:46:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32228", "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" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00914", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:50]execute_script... [12:46:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32228", "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" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00914", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:50]POST & json_proto [12:46:50]process_json_proto [12:46:50]json parsed OK: [12:46:50]protocol is kg_v1.0 [12:46:50]action value=close_receipt [12:46:50]process_action close_receipt [12:46:50]cmd_close_receipt [12:46:50]MH_GetDate [12:46:50]Write to MH i2c: F0 00 00 50 37 76 [12:46:50]Write i2c OK [12:46:50]MH_I2C_Read... [12:46:50]Read from MH i2c: F0 [12:46:50]MH_I2C_Read... [12:46:50]Read from MH i2c: F0 09 00 [12:46:50]MH_I2C_Read... [12:46:50]Read from MH i2c: F0 09 00 50 37 00 3F D9 20 67 22 05 6E 64 17 [12:46:50]GetLastDocTimeStamp 1730205799 [12:46:50]current date 1730206015 [12:46:50]FM_GetShiftState [12:46:50]SAM_PROTO_GetShiftState [12:46:50]wFMCommunicate request_size=4 [12:46:50]MH_SAM_APDU [12:46:50]CAPDU: 80 13 01 00 [12:46:50]Write to MH i2c: E2 08 00 51 37 80 13 01 00 00 00 00 00 05 [12:46:50]Write i2c OK [12:46:50]MH_I2C_Read... [12:46:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:50]Read from MH i2c: E2 [12:46:50]MH_I2C_Read... [12:46:50]Read from MH i2c: E2 0E 00 [12:46:50]MH_I2C_Read... [12:46:50]Read from MH i2c: E2 0E 00 51 37 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 0B [12:46:50]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [12:46:50]wFMCommunicate OK [12:46:50]SAM_PROTO_GetShiftState done [12:46:50]FM_GetShiftState done [12:46:50]opened in 1730161990 [12:46:50]opened+sec_in_day 1730248390 [12:46:50]quantity*price = 0 [12:46:50]sum+1 = 1 [12:46:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 ÐСП 1% : 0.00 ÐДС 12% : 0.00 Ðаличными: 0.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 170 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 СÐО: Общий режим Чек 104 29.10.2024 12:46 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 Талоны: Ð¢Ð¾Ð¿Ð»Ð¸Ð²Ð½Ð°Ñ ÐšÐ°Ñ€Ñ‚Ð° 00914 ФМ: 0000000000871754 ФД: 192898 ФПД: 39660429608738 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T124655&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192898&fm=39660429608738&tin=02508201610067®Number=0000000000091776&sum=0 [12:46:52]StoreToDocumentArchive [12:46:52]shift 544 fd 192898 [12:46:52]save to /storage/0544/doc_00192898 [12:46:52]save last doc name /storage/0544/doc_00192898 to /storage/kkm_last_doc_name [12:46:52]save OK [12:46:52]Clear old archive folders... [12:46:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:46:52]tlvbuf is B6F33520 [12:46:52]SAM_PROTO_ClearQueue [12:46:52]wFMCommunicate request_size=4 [12:46:52]MH_SAM_APDU [12:46:52]CAPDU: 80 09 00 00 [12:46:52]Write to MH i2c: E2 08 00 5E 37 80 09 00 00 00 00 00 00 07 [12:46:52]Write i2c OK [12:46:52]MH_I2C_Read... [12:46:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:46:52]Read from MH i2c: E2 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: E2 03 00 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: E2 03 00 5E 37 00 90 00 09 [12:46:52]RAPDU: 90 00 [12:46:52]wFMCommunicate OK [12:46:52]SAM_PROTO_ClearQueue done [12:46:52]KKMCreateOFDPacket [12:46:52]OFDProtocolAddRootSTLVToBuf [12:46:52]FM_MakeSignedData [12:46:52]FM_MakeSignedData [12:46:52]SAM_PROTO_SignData [12:46:52]wFMCommunicate request_size=4 [12:46:52]MH_SAM_APDU [12:46:52]CAPDU: 80 0D 01 02 [12:46:52]Write to MH i2c: E2 08 00 5F 37 80 0D 01 02 00 00 00 00 0F [12:46:52]Write i2c OK [12:46:52]MH_I2C_Read... [12:46:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:46:52]Read from MH i2c: E2 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: E2 03 00 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: E2 03 00 5F 37 00 90 00 0A [12:46:52]RAPDU: 90 00 [12:46:52]wFMCommunicate OK [12:46:52]wFMCommunicate request_size=255 [12:46:52]MH_SAM_APDU [12:46:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 3F D9 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 24 [12:46:52]Write to MH i2c: E2 02 01 60 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 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 3F D9 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 24 00 00 F3 [12:46:52]Write i2c OK [12:46:52]MH_I2C_Read... [12:46:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:52]Read from MH i2c: E2 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: E2 03 00 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: E2 03 00 60 37 00 90 00 0B [12:46:52]RAPDU: 90 00 [12:46:52]wFMCommunicate OK [12:46:52]wFMCommunicate request_size=10 [12:46:52]MH_SAM_APDU [12:46:52]CAPDU: 80 0D 02 02 05 12 29 D1 87 22 [12:46:52]Write to MH i2c: E2 0D 00 61 37 80 0D 02 02 05 00 12 29 D1 87 22 00 00 D1 [12:46:52]Write i2c OK [12:46:52]MH_I2C_Read... [12:46:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:52]Read from MH i2c: E2 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: E2 03 00 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: E2 03 00 61 37 00 90 00 0C [12:46:52]RAPDU: 90 00 [12:46:52]wFMCommunicate OK [12:46:52]wFMCommunicate request_size=4 [12:46:52]MH_SAM_APDU [12:46:52]CAPDU: 80 0D 03 02 [12:46:52]Write to MH i2c: E2 08 00 62 37 80 0D 03 02 00 00 00 00 14 [12:46:52]Write i2c OK [12:46:52]MH_I2C_Read... [12:46:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:46:52]Read from MH i2c: E2 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: E2 0B 00 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: E2 0B 00 62 37 00 7E C8 9A 6D F6 37 5D 94 90 00 80 [12:46:52]RAPDU: 7E C8 9A 6D F6 37 5D 94 90 00 [12:46:52]wFMCommunicate OK [12:46:52]SAM_PROTO_SignData done [12:46:52]FM_MakeSignedData done [12:46:52]CreateOFDProtocolMessage [12:46:52]wFMCommunicate request_size=4 [12:46:52]MH_SAM_APDU [12:46:52]CAPDU: 80 11 00 00 [12:46:52]Write to MH i2c: E2 08 00 63 37 80 11 00 00 00 00 00 00 14 [12:46:52]Write i2c OK [12:46:52]MH_I2C_Read... [12:46:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:52]Read from MH i2c: E2 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: E2 17 00 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: E2 17 00 63 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 67 [12:46:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:46:52]wFMCommunicate OK [12:46:52]CreateOFDProtocolMessage done [12:46:52]OFDSenderStorePacket 192898 [12:46:52]StoreOFDPacket docnum=192898 [12:46: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 0F 4A 07 01 B4 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 3F D9 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 24 12 29 D1 87 22 7E C8 9A 6D F6 37 5D 94 [12:46:52]CheckFolder [12:46:52]dirname=/storage/ofd_packets [12:46:52]CheckFolder done [12:46:52]ProducePacketName [12:46:52]name=ofd_packets/00192898 [12:46:52]NVStorageSaveData ofd_packets/00192898 [12:46:52]File name is /storage/ofd_packets/00192898 [12:46:52]Write 301 bytes [12:46:52]NVStorageSaveData done [12:46:52]OFDSenderStorePacket done [12:46:52]KKMCreateOFDPacket done [12:46:52]NVStorageSaveData kkm_last_timestamp [12:46:52]File name is /storage/kkm_last_timestamp [12:46:52]Write 4 bytes [12:46:52]NVStorageSaveData done [12:46:52]ExternCall_PrintAddStr [12:46:52]wPrintStart [12:46:52]Write to MH i2c: 01 00 00 64 37 9B [12:46:52]Write i2c OK [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: 01 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: 01 07 00 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: 01 07 00 64 37 00 00 00 00 00 FF 0F B0 [12:46:52]RasterBufferAndPrint [12:46:52]line Счет N : (1)32228 [12:46:52]line ИÐÐ: 02508201610067 [12:46:52]line Контрольно-КаÑÑовый Чек [12:46:52]line ПРОДÐЖР[12:46:52]line ТРК (МРК, ГÐК) : 12 [12:46:52]line Товар: 2710124130 [12:46:52]line Ðи-92-К-5 [12:46:52]line 50.000 * 0.00 [12:46:52]line = 0.00 [12:46:52]line ÐДС 12% ÐСП 1% [12:46:52]line > о реализуемом товаре [12:46:52]line ИТОГО: 0.00 [12:46:52]line ÐСП 1% : 0.00 [12:46:52]line ÐДС 12% : 0.00 [12:46:52]line Ðаличными: 0.00 [12:46:52]line Безнал.: 0.00 [12:46:52]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [12:46:52]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [12:46:52]line СÐО: Общий режим [12:46:52]line Чек 104 29.10.2024 12:46 [12:46:52]line Смена: 544 ФФД: 1.0 [12:46:52]line ЗÐМ: 0300000110 [12:46:52]line РÐМ: 0000000000091776 [12:46:52]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [12:46:52]line Талоны: Ð¢Ð¾Ð¿Ð»Ð¸Ð²Ð½Ð°Ñ ÐšÐ°Ñ€Ñ‚Ð° [12:46:52]line 00914 [12:46:52]line ФМ: 0000000000871754 [12:46:52]line ФД: 192898 [12:46:52]line ФПД: 39660429608738 [12:46:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T124655&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192898&fm=39660429608738&tin=02508201610067®Number=0000000000091776&sum=0 [12:46:52]written 0, free lines is 4095 [12:46:52]OFD Sender: Processing packet 192898 [packets to send 75, broken 74] [12:46:52]ProducePacketName [12:46:52]name=ofd_packets/00192898 [12:46:52]OFD Sender: To server: ‡•öpG, [12:46:52]CommunicateWithHost lk.salyk.kg:30040 [12:46:52]ConnectInit lk.salyk.kg [12:46:53]Connected sock=10 [12:46:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0F 4A 07 01 B4 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 3F D9 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 24 12 29 D1 87 22 7E C8 9A 6D F6 37 5D 94 [12:46: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 23 6F 47 00 5C 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 82 F1 02 00 F4 03 04 00 00 7E 20 67 B6 04 01 00 00 E1 60 91 C9 9E B2 58 80 [12:46:53]CommunicateWithHost err = 0 [12:46:53]CheckOFDResponse [12:46:53]1017 (14) - 77093643461234 [12:46:53]1041 (16) - 0000000000871754 [12:46:53]1040 (4) - 192898 [12:46:53]1012 (4) - 29.10.2024 06:17 [12:46:53]1206 (1) - 0 [12:46:53]OFD Sender: Remove packet 192898 [12:46:53]ProducePacketName [12:46:53]name=ofd_packets/00192898 [12:46:53]NVStorageDeleteData [12:46:53]Write to MH i2c: 01 00 00 8E 37 C5 [12:46:53]Write i2c OK [12:46:53]MH_I2C_Read... [12:46:53]Read from MH i2c: 01 [12:46:53]MH_I2C_Read... [12:46:53]Read from MH i2c: 01 07 00 [12:46:53]MH_I2C_Read... [12:46:53]Read from MH i2c: 01 07 00 8E 37 00 00 00 00 00 C3 0C 9B [12:46:53]RasterBufferAndPrint [12:46:53]line [12:46:53]line [12:46:53]line [12:46:53]line [12:46:53]line [12:46:53]written 0, free lines is 3272 [12:46:53]MH_Cut [12:46:53]Write to MH i2c: D1 01 00 95 37 01 9E [12:46:53]Write i2c OK [12:46:53]MH_I2C_Read... [12:46:53]Read from MH i2c: D1 [12:46:53]MH_I2C_Read... [12:46:53]Read from MH i2c: D1 01 00 [12:46:53]MH_I2C_Read... [12:46:53]Read from MH i2c: D1 01 00 95 37 00 9D [12:46:53]Write to MH i2c: 01 00 00 96 37 CD [12:46:53]Write i2c OK [12:46:53]MH_I2C_Read... [12:46:53]OFD Sender: No OFD packet to send [12:46:54]*** Cut start [12:46:54]*** Partial cut [12:46:54]*** CUTSNS_PIN = 1 [12:46:54]*** CUTSNS_PIN = 0 [12:46:54]*** Brake cut motor [12:46:54]Read from MH i2c: 01 [12:46:54]MH_I2C_Read... [12:46:54]*** Stop cut motor [12:46:54]*** Cut end [12:46:54]Read from MH i2c: 01 07 00 [12:46:54]MH_I2C_Read... [12:46:54]Read from MH i2c: 01 07 00 96 37 00 00 00 00 00 FF 0F E2 [12:46:54]process_action close_receipt done [12:46:54]requested_data is exist [12:46:54]produce_requested_data [12:46:54]requested_item fm.sn is exist - process it [12:46:54]wFMCommunicate request_size=4 [12:46:54]MH_SAM_APDU [12:46:54]CAPDU: 80 11 00 00 [12:46:54]Write to MH i2c: E2 08 00 97 37 80 11 00 00 00 00 00 00 48 [12:46:54]Write i2c OK [12:46:54]MH_I2C_Read... [12:46:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:54]Read from MH i2c: E2 [12:46:54]MH_I2C_Read... [12:46:54]Read from MH i2c: E2 17 00 [12:46:54]MH_I2C_Read... [12:46:54]Read from MH i2c: E2 17 00 97 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9B [12: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 [12:46:54]wFMCommunicate OK [12:46:54]requested_item fd.num is exist - process it [12:46:54]SAM_PROTO_GetFieldsCounters [12:46:54]wFMCommunicate request_size=4 [12:46:54]MH_SAM_APDU [12:46:54]CAPDU: 80 13 00 00 [12:46:54]Write to MH i2c: E2 08 00 98 37 80 13 00 00 00 00 00 00 4B [12:46:54]Write i2c OK [12:46:54]MH_I2C_Read... [12:46:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:55]Read from MH i2c: E2 [12:46:55]MH_I2C_Read... [12:46:55]Read from MH i2c: E2 62 00 [12:46:55]MH_I2C_Read... [12:46:55]Read from MH i2c: E2 62 00 98 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 82 F1 02 00 0E 04 04 00 20 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 40 [12:46: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 82 F1 02 00 0E 04 04 00 20 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:46:55]wFMCommunicate OK [12:46:55]SAM_PROTO_GetFieldsCounters done [12:46:55]requested_item shift.num is exist - process it [12:46:55]requested_item shift.opened is exist - process it [12:46:55]req_shift_opened [12:46:55]FM_GetShiftState [12:46:55]SAM_PROTO_GetShiftState [12:46:55]wFMCommunicate request_size=4 [12:46:55]MH_SAM_APDU [12:46:55]CAPDU: 80 13 01 00 [12:46:55]Write to MH i2c: E2 08 00 99 37 80 13 01 00 00 00 00 00 4D [12:46:55]Write i2c OK [12:46:55]MH_I2C_Read... [12:46:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:55]Read from MH i2c: E2 [12:46:55]MH_I2C_Read... [12:46:55]Read from MH i2c: E2 0E 00 [12:46:55]MH_I2C_Read... [12:46:55]Read from MH i2c: E2 0E 00 99 37 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 53 [12:46:55]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [12:46:55]wFMCommunicate OK [12:46:55]SAM_PROTO_GetShiftState done [12:46:55]FM_GetShiftState done [12:46:55]req_shift_opened done [12:46:55]requested_item shift.open_date is exist - process it [12:46:55]req_shift_open_date [12:46:55]req_shift_open_date done [12:46:55]produce_requested_data done [12:46:55]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192898,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [12:46:55]process_action_free close_receipt [12:46:55]json_value_free [12:46:55]json_value_free done [12:46:55]process_json_proto returns [12:46:55]Send response to host [12:46:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192898,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [12:46:55]free response buf [12:46:55]execute_script done [12:46:55]execute_script returns [12:46:55]free content buf [12:46:55]Sock 9.Close socket [12:46:55]Sock 9.Thread stoped [12:46:58]OFD Sender: No OFD packet to send [12:47:03]OFD Sender: No OFD packet to send [12:47:08]OFD Sender: No OFD packet to send [12:47:13]OFD Sender: No OFD packet to send [12:47:18]OFD Sender: No OFD packet to send [12:47:23]OFD Sender: No OFD packet to send [12:47:28]OFD Sender: No OFD packet to send [12:47:33]OFD Sender: No OFD packet to send [12:47:38]OFD Sender: No OFD packet to send [12:47:43]OFD Sender: No OFD packet to send [12:47:48]OFD Sender: No OFD packet to send [12:47:53]OFD Sender: No OFD packet to send [12:47:55]accept exits with 8 [12:47:55]New connection [12:47:55]New thread 3066658148 created [12:47:55]Thread 3066801508 joined [12:47:55]Waiting for new connection... [12:47:55] Sock 8.Parse request [12:47:55]Sock 8.Check first char [12:47:55]Sock 8.First char is OK [12:47:55]request: POST /json_proto HTTP/1.0 [12:47:55]Method: POST [12:47:55]URL: /json_proto [12:47:55]Method is POST - this is cgi request [12:47:55]url: /json_proto [12:47:55]query_string will be loaded in cgi processing [12:47:55]execute_cgi json_proto POST (null) [12:47:55]execute_cgi path=json_proto method=POST [12:47:55]POST find Content-Length [12:47:55]Host: 172.17.63.131:8080 [12:47:55]Content-Length: 676 [12:47:55]Content-Type: application/json [12:47:55] [12:47:55]POST finish read [12:47:55]Found Content-Length = 676 [12:47:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32229", "tax_sys" : 0, "items" : [ { "pre_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:47:55]execute_script... [12:47:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32229", "tax_sys" : 0, "items" : [ { "pre_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:47:55]POST & json_proto [12:47:55]process_json_proto [12:47:55]json parsed OK: [12:47:55]protocol is kg_v1.0 [12:47:55]action value=close_receipt [12:47:55]process_action close_receipt [12:47:55]cmd_close_receipt [12:47:55]MH_GetDate [12:47:55]Write to MH i2c: F0 00 00 9A 37 C0 [12:47:55]Write i2c OK [12:47:55]MH_I2C_Read... [12:47:55]Read from MH i2c: F0 [12:47:55]MH_I2C_Read... [12:47:55]Read from MH i2c: F0 09 00 [12:47:55]MH_I2C_Read... [12:47:55]Read from MH i2c: F0 09 00 9A 37 00 80 D9 20 67 22 05 6E 64 A2 [12:47:55]GetLastDocTimeStamp 1730206015 [12:47:55]current date 1730206080 [12:47:55]FM_GetShiftState [12:47:55]SAM_PROTO_GetShiftState [12:47:55]wFMCommunicate request_size=4 [12:47:55]MH_SAM_APDU [12:47:55]CAPDU: 80 13 01 00 [12:47:55]Write to MH i2c: E2 08 00 9B 37 80 13 01 00 00 00 00 00 4F [12:47:55]Write i2c OK [12:47:55]MH_I2C_Read... [12:47:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:56]Read from MH i2c: E2 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: E2 0E 00 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: E2 0E 00 9B 37 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 55 [12:47:56]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [12:47:56]wFMCommunicate OK [12:47:56]SAM_PROTO_GetShiftState done [12:47:56]FM_GetShiftState done [12:47:56]opened in 1730161990 [12:47:56]opened+sec_in_day 1730248390 [12:47:56]quantity*price = 20003 [12:47:56]sum+1 = 20004 [12:47:56]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 СÐО: Общий режим Чек 105 29.10.2024 12:48 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192899 ФПД: 242602244551925 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T124800&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192899&fm=242602244551925&tin=02508201610067®Number=0000000000091776&sum=20000 [12:47:57]StoreToDocumentArchive [12:47:57]shift 544 fd 192899 [12:47:57]save to /storage/0544/doc_00192899 [12:47:57]save last doc name /storage/0544/doc_00192899 to /storage/kkm_last_doc_name [12:47:57]save OK [12:47:57]Clear old archive folders... [12:47:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:47:57]tlvbuf is 00F0FCB0 [12:47:57]SAM_PROTO_ClearQueue [12:47:57]wFMCommunicate request_size=4 [12:47:57]MH_SAM_APDU [12:47:57]CAPDU: 80 09 00 00 [12:47:57]Write to MH i2c: E2 08 00 A8 37 80 09 00 00 00 00 00 00 51 [12:47:57]Write i2c OK [12:47:57]MH_I2C_Read... [12:47:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:47:57]Read from MH i2c: E2 [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: E2 03 00 [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: E2 03 00 A8 37 00 90 00 53 [12:47:57]RAPDU: 90 00 [12:47:57]wFMCommunicate OK [12:47:57]SAM_PROTO_ClearQueue done [12:47:57]KKMCreateOFDPacket [12:47:57]OFDProtocolAddRootSTLVToBuf [12:47:57]FM_MakeSignedData [12:47:57]FM_MakeSignedData [12:47:57]SAM_PROTO_SignData [12:47:57]wFMCommunicate request_size=4 [12:47:57]MH_SAM_APDU [12:47:57]CAPDU: 80 0D 01 02 [12:47:57]Write to MH i2c: E2 08 00 A9 37 80 0D 01 02 00 00 00 00 59 [12:47:57]Write i2c OK [12:47:57]MH_I2C_Read... [12:47:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:47:57]Read from MH i2c: E2 [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: E2 03 00 [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: E2 03 00 A9 37 00 90 00 54 [12:47:57]RAPDU: 90 00 [12:47:57]wFMCommunicate OK [12:47:57]wFMCommunicate request_size=255 [12:47:57]MH_SAM_APDU [12:47:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 80 D9 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 DC [12:47:57]Write to MH i2c: E2 02 01 AA 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 69 00 00 00 F4 03 04 00 80 D9 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 DC 00 00 6C [12:47:57]Write i2c OK [12:47:57]MH_I2C_Read... [12:47:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:57]Read from MH i2c: E2 [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: E2 03 00 [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: E2 03 00 AA 37 00 90 00 55 [12:47:57]RAPDU: 90 00 [12:47:57]wFMCommunicate OK [12:47:57]wFMCommunicate request_size=10 [12:47:57]MH_SAM_APDU [12:47:57]CAPDU: 80 0D 02 02 05 A5 3C 9B B4 F5 [12:47:57]Write to MH i2c: E2 0D 00 AB 37 80 0D 02 02 05 00 A5 3C 9B B4 F5 00 00 8B [12:47:57]Write i2c OK [12:47:57]MH_I2C_Read... [12:47:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:57]Read from MH i2c: E2 [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: E2 03 00 [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: E2 03 00 AB 37 00 90 00 56 [12:47:57]RAPDU: 90 00 [12:47:57]wFMCommunicate OK [12:47:57]wFMCommunicate request_size=4 [12:47:57]MH_SAM_APDU [12:47:57]CAPDU: 80 0D 03 02 [12:47:57]Write to MH i2c: E2 08 00 AC 37 80 0D 03 02 00 00 00 00 5E [12:47:57]Write i2c OK [12:47:57]MH_I2C_Read... [12:47:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:47:57]Read from MH i2c: E2 [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: E2 0B 00 [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: E2 0B 00 AC 37 00 3C D9 62 B0 B0 70 83 64 90 00 8D [12:47:57]RAPDU: 3C D9 62 B0 B0 70 83 64 90 00 [12:47:57]wFMCommunicate OK [12:47:57]SAM_PROTO_SignData done [12:47:57]FM_MakeSignedData done [12:47:57]CreateOFDProtocolMessage [12:47:57]wFMCommunicate request_size=4 [12:47:57]MH_SAM_APDU [12:47:57]CAPDU: 80 11 00 00 [12:47:57]Write to MH i2c: E2 08 00 AD 37 80 11 00 00 00 00 00 00 5E [12:47:57]Write i2c OK [12:47:57]MH_I2C_Read... [12:47:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:57]Read from MH i2c: E2 [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: E2 17 00 [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: E2 17 00 AD 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B1 [12:47:57]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:57]wFMCommunicate OK [12:47:57]CreateOFDProtocolMessage done [12:47:57]OFDSenderStorePacket 192899 [12:47:57]StoreOFDPacket docnum=192899 [12:47: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 C4 48 07 01 C4 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 80 D9 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 DC A5 3C 9B B4 F5 3C D9 62 B0 B0 70 83 64 [12:47:57]CheckFolder [12:47:57]dirname=/storage/ofd_packets [12:47:57]CheckFolder done [12:47:57]ProducePacketName [12:47:57]name=ofd_packets/00192899 [12:47:57]NVStorageSaveData ofd_packets/00192899 [12:47:57]File name is /storage/ofd_packets/00192899 [12:47:57]Write 301 bytes [12:47:57]NVStorageSaveData done [12:47:57]OFDSenderStorePacket done [12:47:57]KKMCreateOFDPacket done [12:47:57]NVStorageSaveData kkm_last_timestamp [12:47:57]File name is /storage/kkm_last_timestamp [12:47:57]Write 4 bytes [12:47:57]NVStorageSaveData done [12:47:57]ExternCall_PrintAddStr [12:47:57]wPrintStart [12:47:57]Write to MH i2c: 01 00 00 AE 37 E5 [12:47:57]Write i2c OK [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: 01 [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: 01 07 00 [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: 01 07 00 AE 37 00 00 00 00 00 FF 0F FA [12:47:57]RasterBufferAndPrint [12:47:57]line Счет N : (1)32229 [12:47:57]line ИÐÐ: 02508201610067 [12:47:57]line Контрольно-КаÑÑовый Чек [12:47:57]line ПРОДÐЖР[12:47:57]line ТРК (МРК, ГÐК) : 21 [12:47:57]line Товар: 2710124130 [12:47:57]line Ðи-92-К-5 [12:47:57]line 2.990 * 66.90 [12:47:57]line = 200.03 [12:47:57]line ÐДС 12% ÐСП 1% [12:47:57]line > о реализуемом товаре [12:47:57]line ОКРУГЛЕÐИЕ: -0.03 [12:47:57]line ИТОГО: 200.00 [12:47:57]line ВнеÑено: 200.00 [12:47:57]line СДÐЧÐ: 0.00 [12:47:57]line ÐСП 1% : 1.77 [12:47:57]line ÐДС 12% : 21.24 [12:47:57]line Ðаличными: 200.00 [12:47:57]line Безнал.: 0.00 [12:47:57]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [12:47:57]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [12:47:57]line СÐО: Общий режим [12:47:57]line Чек 105 29.10.2024 12:48 [12:47:57]line Смена: 544 ФФД: 1.0 [12:47:57]line ЗÐМ: 0300000110 [12:47:57]line РÐМ: 0000000000091776 [12:47:57]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [12:47:57]line ФМ: 0000000000871754 [12:47:57]line ФД: 192899 [12:47:57]line ФПД: 242602244551925 [12:47:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T124800&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192899&fm=242602244551925&tin=02508201610067®Number=0000000000091776&sum=20000 [12:47:58]OFD Sender: Processing packet 192899 [packets to send 75, broken 74] [12:47:58]ProducePacketName [12:47:58]name=ofd_packets/00192899 [12:47:58]OFD Sender: To server: ‡•öpG, [12:47:58]CommunicateWithHost lk.salyk.kg:30040 [12:47:58]ConnectInit lk.salyk.kg [12:47:58]written 0, free lines is 4095 [12:47:58]Write to MH i2c: 01 00 00 D9 37 10 [12:47:58]Write i2c OK [12:47:58]MH_I2C_Read... [12:47:58]Read from MH i2c: 01 [12:47:58]MH_I2C_Read... [12:47:58]Read from MH i2c: 01 07 00 [12:47:58]MH_I2C_Read... [12:47:58]Read from MH i2c: 01 07 00 D9 37 00 00 00 00 00 A8 0C CB [12:47:58]RasterBufferAndPrint [12:47:58]line [12:47:58]line [12:47:58]line [12:47:58]line [12:47:58]line [12:47:58]written 0, free lines is 3245 [12:47:58]MH_Cut [12:47:58]Write to MH i2c: D1 01 00 E0 37 01 E9 [12:47:58]Write i2c OK [12:47:58]MH_I2C_Read... [12:47:58]Read from MH i2c: D1 [12:47:58]MH_I2C_Read... [12:47:58]Read from MH i2c: D1 01 00 [12:47:58]MH_I2C_Read... [12:47:58]Read from MH i2c: D1 01 00 E0 37 00 E8 [12:47:58]Write to MH i2c: 01 00 00 E1 37 18 [12:47:58]Write i2c OK [12:47:58]MH_I2C_Read... [12:47:59]*** Cut start [12:47:59]*** Partial cut [12:47:59]*** CUTSNS_PIN = 1 [12:47:59]*** CUTSNS_PIN = 0 [12:47:59]*** Brake cut motor [12:47:59]Read from MH i2c: 01 [12:47:59]MH_I2C_Read... [12:47:59]*** Stop cut motor [12:47:59]*** Cut end [12:47:59]Read from MH i2c: 01 07 00 [12:47:59]MH_I2C_Read... [12:47:59]Read from MH i2c: 01 07 00 E1 37 00 00 00 00 00 FF 0F 2D [12:47:59]process_action close_receipt done [12:47:59]requested_data is exist [12:47:59]produce_requested_data [12:47:59]requested_item fm.sn is exist - process it [12:47:59]wFMCommunicate request_size=4 [12:47:59]MH_SAM_APDU [12:47:59]CAPDU: 80 11 00 00 [12:47:59]Write to MH i2c: E2 08 00 E2 37 80 11 00 00 00 00 00 00 93 [12:47:59]Write i2c OK [12:47:59]MH_I2C_Read... [12:48:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:00]Read from MH i2c: E2 [12:48:00]MH_I2C_Read... [12:48:00]Read from MH i2c: E2 17 00 [12:48:00]MH_I2C_Read... [12:48:00]Read from MH i2c: E2 17 00 E2 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E6 [12:48:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:48:00]wFMCommunicate OK [12:48:00]requested_item fd.num is exist - process it [12:48:00]SAM_PROTO_GetFieldsCounters [12:48:00]wFMCommunicate request_size=4 [12:48:00]MH_SAM_APDU [12:48:00]CAPDU: 80 13 00 00 [12:48:00]Write to MH i2c: E2 08 00 E3 37 80 13 00 00 00 00 00 00 96 [12:48:00]Write i2c OK [12:48:00]MH_I2C_Read... [12:48:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:48:00]Read from MH i2c: E2 [12:48:00]MH_I2C_Read... [12:48:00]Read from MH i2c: E2 62 00 [12:48:00]MH_I2C_Read... [12:48:00]Read from MH i2c: E2 62 00 E3 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 83 F1 02 00 0E 04 04 00 20 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 8F [12:48: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 83 F1 02 00 0E 04 04 00 20 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:48:00]wFMCommunicate OK [12:48:00]SAM_PROTO_GetFieldsCounters done [12:48:00]requested_item shift.num is exist - process it [12:48:00]requested_item shift.opened is exist - process it [12:48:00]req_shift_opened [12:48:00]FM_GetShiftState [12:48:00]SAM_PROTO_GetShiftState [12:48:00]wFMCommunicate request_size=4 [12:48:00]MH_SAM_APDU [12:48:00]CAPDU: 80 13 01 00 [12:48:00]Write to MH i2c: E2 08 00 E4 37 80 13 01 00 00 00 00 00 98 [12:48:00]Write i2c OK [12:48:00]MH_I2C_Read... [12:48:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:00]Read from MH i2c: E2 [12:48:00]MH_I2C_Read... [12:48:00]Read from MH i2c: E2 0E 00 [12:48:00]MH_I2C_Read... [12:48:00]Read from MH i2c: E2 0E 00 E4 37 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 9E [12:48:00]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [12:48:00]wFMCommunicate OK [12:48:00]SAM_PROTO_GetShiftState done [12:48:00]FM_GetShiftState done [12:48:00]req_shift_opened done [12:48:00]requested_item shift.open_date is exist - process it [12:48:00]req_shift_open_date [12:48:00]req_shift_open_date done [12:48:00]produce_requested_data done [12:48:00]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192899,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [12:48:00]process_action_free close_receipt [12:48:00]json_value_free [12:48:00]json_value_free done [12:48:00]process_json_proto returns [12:48:00]Send response to host [12:48:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192899,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [12:48:00]free response buf [12:48:00]execute_script done [12:48:00]execute_script returns [12:48:00]free content buf [12:48:00]Sock 8.Close socket [12:48:00]Sock 8.Thread stoped [12:48:27]accept exits with 9 [12:48:27]New connection [12:48:27]New thread 3066801508 created [12:48:27]Thread 3066658148 joined [12:48:27]Waiting for new connection... [12:48:27] Sock 9.Parse request [12:48:27]Sock 9.Check first char [12:48:27]Sock 9.First char is OK [12:48:27]request: POST /json_proto HTTP/1.0 [12:48:27]Method: POST [12:48:27]URL: /json_proto [12:48:27]Method is POST - this is cgi request [12:48:27]url: /json_proto [12:48:27]query_string will be loaded in cgi processing [12:48:27]execute_cgi json_proto POST (null) [12:48:27]execute_cgi path=json_proto method=POST [12:48:27]POST find Content-Length [12:48:27]Host: 172.17.63.131:8080 [12:48:27]Content-Length: 676 [12:48:27]Content-Type: application/json [12:48:27] [12:48:27]POST finish read [12:48:27]Found Content-Length = 676 [12:48:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32230", "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.040, "sum" : 270.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 270.00, "total" : 270.00, "payments": [ { "type": 0, "sum" : 270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:27]execute_script... [12:48:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32230", "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.040, "sum" : 270.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 270.00, "total" : 270.00, "payments": [ { "type": 0, "sum" : 270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:27]POST & json_proto [12:48:27]process_json_proto [12:48:27]json parsed OK: [12:48:27]protocol is kg_v1.0 [12:48:27]action value=close_receipt [12:48:27]process_action close_receipt [12:48:27]cmd_close_receipt [12:48:27]MH_GetDate [12:48:27]Write to MH i2c: F0 00 00 E5 37 0B [12:48:27]Write i2c OK [12:48:27]MH_I2C_Read... [12:48:27]Read from MH i2c: F0 [12:48:27]MH_I2C_Read... [12:48:27]Read from MH i2c: F0 09 00 [12:48:27]MH_I2C_Read... [12:48:27]Read from MH i2c: F0 09 00 E5 37 00 9F D9 20 67 22 05 6E 64 0C [12:48:27]GetLastDocTimeStamp 1730206080 [12:48:27]current date 1730206111 [12:48:27]FM_GetShiftState [12:48:27]SAM_PROTO_GetShiftState [12:48:27]wFMCommunicate request_size=4 [12:48:27]MH_SAM_APDU [12:48:27]CAPDU: 80 13 01 00 [12:48:27]Write to MH i2c: E2 08 00 E6 37 80 13 01 00 00 00 00 00 9A [12:48:27]Write i2c OK [12:48:27]MH_I2C_Read... [12:48:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:27]Read from MH i2c: E2 [12:48:27]MH_I2C_Read... [12:48:27]Read from MH i2c: E2 0E 00 [12:48:27]MH_I2C_Read... [12:48:27]Read from MH i2c: E2 0E 00 E6 37 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 A0 [12:48:27]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [12:48:27]wFMCommunicate OK [12:48:27]SAM_PROTO_GetShiftState done [12:48:27]FM_GetShiftState done [12:48:27]opened in 1730161990 [12:48:27]opened+sec_in_day 1730248390 [12:48:27]quantity*price = 27027 [12:48:27]sum+1 = 27029 [12:48:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.28 ИТОГО: 270.00 ВнеÑено: 270.00 СДÐЧÐ: 0.00 ÐСП 1% : 2.39 ÐДС 12% : 28.70 Ðаличными: 270.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 170 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 СÐО: Общий режим Чек 106 29.10.2024 12:48 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192900 ФПД: 266718428610888 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T124832&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192900&fm=266718428610888&tin=02508201610067®Number=0000000000091776&sum=27000 [12:48:28]StoreToDocumentArchive [12:48:28]shift 544 fd 192900 [12:48:28]save to /storage/0544/doc_00192900 [12:48:28]save last doc name /storage/0544/doc_00192900 to /storage/kkm_last_doc_name [12:48:28]save OK [12:48:28]Clear old archive folders... [12:48:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:48:28]tlvbuf is 00FA1280 [12:48:28]SAM_PROTO_ClearQueue [12:48:28]wFMCommunicate request_size=4 [12:48:28]MH_SAM_APDU [12:48:28]CAPDU: 80 09 00 00 [12:48:28]Write to MH i2c: E2 08 00 F3 37 80 09 00 00 00 00 00 00 9C [12:48:28]Write i2c OK [12:48:28]MH_I2C_Read... [12:48:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:48:28]Read from MH i2c: E2 [12:48:28]MH_I2C_Read... [12:48:28]Read from MH i2c: E2 03 00 [12:48:28]MH_I2C_Read... [12:48:28]Read from MH i2c: E2 03 00 F3 37 00 90 00 9E [12:48:28]RAPDU: 90 00 [12:48:28]wFMCommunicate OK [12:48:28]SAM_PROTO_ClearQueue done [12:48:28]KKMCreateOFDPacket [12:48:28]OFDProtocolAddRootSTLVToBuf [12:48:28]FM_MakeSignedData [12:48:28]FM_MakeSignedData [12:48:28]SAM_PROTO_SignData [12:48:28]wFMCommunicate request_size=4 [12:48:28]MH_SAM_APDU [12:48:28]CAPDU: 80 0D 01 02 [12:48:28]Write to MH i2c: E2 08 00 F4 37 80 0D 01 02 00 00 00 00 A4 [12:48:28]Write i2c OK [12:48:28]MH_I2C_Read... [12:48:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:48:28]Read from MH i2c: E2 [12:48:28]MH_I2C_Read... [12:48:28]Read from MH i2c: E2 03 00 [12:48:28]MH_I2C_Read... [12:48:28]Read from MH i2c: E2 03 00 F4 37 00 90 00 9F [12:48:28]RAPDU: 90 00 [12:48:28]wFMCommunicate OK [12:48:28]wFMCommunicate request_size=255 [12:48:28]MH_SAM_APDU [12:48:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 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 A0 D9 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 F2 [12:48:28]Write to MH i2c: E2 02 01 F5 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 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 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 A0 D9 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 F2 00 00 AA [12:48:28]Write i2c OK [12:48:28]MH_I2C_Read... [12:48:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:28]Read from MH i2c: E2 [12:48:28]MH_I2C_Read... [12:48:28]Read from MH i2c: E2 03 00 [12:48:28]MH_I2C_Read... [12:48:28]Read from MH i2c: E2 03 00 F5 37 00 90 00 A0 [12:48:28]RAPDU: 90 00 [12:48:28]wFMCommunicate OK [12:48:28]wFMCommunicate request_size=10 [12:48:28]MH_SAM_APDU [12:48:28]CAPDU: 80 0D 02 02 05 94 39 31 41 48 [12:48:28]Write to MH i2c: E2 0D 00 F6 37 80 0D 02 02 05 00 94 39 31 41 48 00 00 38 [12:48:28]Write i2c OK [12:48:28]MH_I2C_Read... [12:48:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:28]Read from MH i2c: E2 [12:48:28]MH_I2C_Read... [12:48:28]Read from MH i2c: E2 03 00 [12:48:28]MH_I2C_Read... [12:48:28]Read from MH i2c: E2 03 00 F6 37 00 90 00 A1 [12:48:28]RAPDU: 90 00 [12:48:28]wFMCommunicate OK [12:48:28]wFMCommunicate request_size=4 [12:48:28]MH_SAM_APDU [12:48:28]CAPDU: 80 0D 03 02 [12:48:28]Write to MH i2c: E2 08 00 F7 37 80 0D 03 02 00 00 00 00 A9 [12:48:28]Write i2c OK [12:48:28]MH_I2C_Read... [12:48:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:48:28]Read from MH i2c: E2 [12:48:28]MH_I2C_Read... [12:48:28]Read from MH i2c: E2 0B 00 [12:48:28]MH_I2C_Read... [12:48:28]Read from MH i2c: E2 0B 00 F7 37 00 3C 36 6F 0D 14 32 BE 34 90 00 D0 [12:48:28]RAPDU: 3C 36 6F 0D 14 32 BE 34 90 00 [12:48:28]wFMCommunicate OK [12:48:28]SAM_PROTO_SignData done [12:48:28]FM_MakeSignedData done [12:48:28]CreateOFDProtocolMessage [12:48:28]wFMCommunicate request_size=4 [12:48:28]MH_SAM_APDU [12:48:28]CAPDU: 80 11 00 00 [12:48:28]Write to MH i2c: E2 08 00 F8 37 80 11 00 00 00 00 00 00 A9 [12:48:28]Write i2c OK [12:48:28]MH_I2C_Read... [12:48:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:28]Read from MH i2c: E2 [12:48:28]MH_I2C_Read... [12:48:28]Read from MH i2c: E2 17 00 [12:48:28]MH_I2C_Read... [12:48:28]Read from MH i2c: E2 17 00 F8 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FC [12: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 [12:48:28]wFMCommunicate OK [12:48:28]CreateOFDProtocolMessage done [12:48:28]OFDSenderStorePacket 192900 [12:48:28]StoreOFDPacket docnum=192900 [12:48: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 71 4C 07 01 2C 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 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 A0 D9 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 F2 94 39 31 41 48 3C 36 6F 0D 14 32 BE 34 [12:48:28]CheckFolder [12:48:28]dirname=/storage/ofd_packets [12:48:28]CheckFolder done [12:48:28]ProducePacketName [12:48:28]name=ofd_packets/00192900 [12:48:28]NVStorageSaveData ofd_packets/00192900 [12:48:28]File name is /storage/ofd_packets/00192900 [12:48:28]Write 301 bytes [12:48:28]NVStorageSaveData done [12:48:28]OFDSenderStorePacket done [12:48:28]KKMCreateOFDPacket done [12:48:28]NVStorageSaveData kkm_last_timestamp [12:48:28]File name is /storage/kkm_last_timestamp [12:48:28]Write 4 bytes [12:48:28]NVStorageSaveData done [12:48:28]ExternCall_PrintAddStr [12:48:28]wPrintStart [12:48:28]Write to MH i2c: 01 00 00 F9 37 30 [12:48:28]Write i2c OK [12:48:28]MH_I2C_Read... [12:48:28]Read from MH i2c: 01 [12:48:28]MH_I2C_Read... [12:48:28]Read from MH i2c: 01 07 00 [12:48:28]MH_I2C_Read... [12:48:28]Read from MH i2c: 01 07 00 F9 37 00 00 00 00 00 FF 0F 45 [12:48:28]RasterBufferAndPrint [12:48:28]line Счет N : (1)32230 [12:48:28]line ИÐÐ: 02508201610067 [12:48:28]line Контрольно-КаÑÑовый Чек [12:48:28]line ПРОДÐЖР[12:48:28]line ТРК (МРК, ГÐК) : 12 [12:48:28]line Товар: 2710124130 [12:48:28]line Ðи-92-К-5 [12:48:28]line 4.040 * 66.90 [12:48:28]line = 270.28 [12:48:28]line ÐДС 12% ÐСП 1% [12:48:28]line > о реализуемом товаре [12:48:28]line ОКРУГЛЕÐИЕ: -0.28 [12:48:28]line ИТОГО: 270.00 [12:48:28]line ВнеÑено: 270.00 [12:48:28]line СДÐЧÐ: 0.00 [12:48:28]line ÐСП 1% : 2.39 [12:48:28]line ÐДС 12% : 28.70 [12:48:28]line Ðаличными: 270.00 [12:48:28]line Безнал.: 0.00 [12:48:28]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [12:48:28]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [12:48:28]line СÐО: Общий режим [12:48:28]line Чек 106 29.10.2024 12:48 [12:48:28]line Смена: 544 ФФД: 1.0 [12:48:28]line ЗÐМ: 0300000110 [12:48:28]line РÐМ: 0000000000091776 [12:48:28]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [12:48:28]line ФМ: 0000000000871754 [12:48:28]line ФД: 192900 [12:48:28]line ФПД: 266718428610888 [12:48:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T124832&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192900&fm=266718428610888&tin=02508201610067®Number=0000000000091776&sum=27000 [12:48:28]written 0, free lines is 4095 [12:48:29]Write to MH i2c: 01 00 00 24 38 5C [12:48:29]Write i2c OK [12:48:29]MH_I2C_Read... [12:48:29]Read from MH i2c: 01 [12:48:29]MH_I2C_Read... [12:48:29]Read from MH i2c: 01 07 00 [12:48:29]MH_I2C_Read... [12:48:29]Read from MH i2c: 01 07 00 24 38 00 00 00 00 00 AB 0C 1A [12:48:29]RasterBufferAndPrint [12:48:29]line [12:48:29]line [12:48:29]line [12:48:29]line [12:48:29]line [12:48:29]written 0, free lines is 3250 [12:48:29]MH_Cut [12:48:29]Write to MH i2c: D1 01 00 2B 38 01 35 [12:48:29]Write i2c OK [12:48:29]MH_I2C_Read... [12:48:29]Read from MH i2c: D1 [12:48:29]MH_I2C_Read... [12:48:29]Read from MH i2c: D1 01 00 [12:48:29]MH_I2C_Read... [12:48:29]Read from MH i2c: D1 01 00 2B 38 00 34 [12:48:29]Write to MH i2c: 01 00 00 2C 38 64 [12:48:29]Write i2c OK [12:48:29]MH_I2C_Read... [12:48:30]*** Cut start [12:48:30]*** Partial cut [12:48:30]*** CUTSNS_PIN = 1 [12:48:30]*** CUTSNS_PIN = 0 [12:48:30]*** Brake cut motor [12:48:30]Read from MH i2c: 01 [12:48:30]MH_I2C_Read... [12:48:30]*** Stop cut motor [12:48:30]*** Cut end [12:48:30]Read from MH i2c: 01 07 00 [12:48:30]MH_I2C_Read... [12:48:30]Read from MH i2c: 01 07 00 2C 38 00 00 00 00 00 FF 0F 79 [12:48:30]process_action close_receipt done [12:48:30]requested_data is exist [12:48:30]produce_requested_data [12:48:30]requested_item fm.sn is exist - process it [12:48:30]wFMCommunicate request_size=4 [12:48:30]MH_SAM_APDU [12:48:30]CAPDU: 80 11 00 00 [12:48:30]Write to MH i2c: E2 08 00 2D 38 80 11 00 00 00 00 00 00 DF [12:48:30]Write i2c OK [12:48:30]MH_I2C_Read... [12:48:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:30]Read from MH i2c: E2 [12:48:30]MH_I2C_Read... [12:48:30]Read from MH i2c: E2 17 00 [12:48:30]MH_I2C_Read... [12:48:30]Read from MH i2c: E2 17 00 2D 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 32 [12:48: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:48:30]wFMCommunicate OK [12:48:30]requested_item fd.num is exist - process it [12:48:30]SAM_PROTO_GetFieldsCounters [12:48:30]wFMCommunicate request_size=4 [12:48:30]MH_SAM_APDU [12:48:30]CAPDU: 80 13 00 00 [12:48:30]Write to MH i2c: E2 08 00 2E 38 80 13 00 00 00 00 00 00 E2 [12:48:30]Write i2c OK [12:48:30]MH_I2C_Read... [12:48:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:48:31]Read from MH i2c: E2 [12:48:31]MH_I2C_Read... [12:48:31]Read from MH i2c: E2 62 00 [12:48:31]MH_I2C_Read... [12:48:31]Read from MH i2c: E2 62 00 2E 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 84 F1 02 00 0E 04 04 00 20 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 DF [12:48:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 F1 02 00 0E 04 04 00 20 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:48:31]wFMCommunicate OK [12:48:31]SAM_PROTO_GetFieldsCounters done [12:48:31]requested_item shift.num is exist - process it [12:48:31]requested_item shift.opened is exist - process it [12:48:31]req_shift_opened [12:48:31]FM_GetShiftState [12:48:31]SAM_PROTO_GetShiftState [12:48:31]wFMCommunicate request_size=4 [12:48:31]MH_SAM_APDU [12:48:31]CAPDU: 80 13 01 00 [12:48:31]Write to MH i2c: E2 08 00 2F 38 80 13 01 00 00 00 00 00 E4 [12:48:31]Write i2c OK [12:48:31]MH_I2C_Read... [12:48:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:31]Read from MH i2c: E2 [12:48:31]MH_I2C_Read... [12:48:31]Read from MH i2c: E2 0E 00 [12:48:31]MH_I2C_Read... [12:48:31]Read from MH i2c: E2 0E 00 2F 38 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 EA [12:48:31]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [12:48:31]wFMCommunicate OK [12:48:31]SAM_PROTO_GetShiftState done [12:48:31]FM_GetShiftState done [12:48:31]req_shift_opened done [12:48:31]requested_item shift.open_date is exist - process it [12:48:31]req_shift_open_date [12:48:31]req_shift_open_date done [12:48:31]produce_requested_data done [12:48:31]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192900,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [12:48:31]process_action_free close_receipt [12:48:31]json_value_free [12:48:31]json_value_free done [12:48:31]process_json_proto returns [12:48:31]Send response to host [12:48:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192900,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [12:48:31]free response buf [12:48:31]execute_script done [12:48:31]execute_script returns [12:48:31]free content buf [12:48:31]Sock 9.Close socket [12:48:31]Sock 9.Thread stoped [12:50:07]ConnectInit Can't connect to host [12:50:07]CommunicateWithHost connect error [12:50:07]CommunicateWithHost err = -1 [12:50:07]OFD Sender: Server communicate error [12:50:07]OFD Sender: Processing packet 192899 [packets to send 76, broken 74] [12:50:07]ProducePacketName [12:50:07]name=ofd_packets/00192899 [12:50:07]OFD Sender: To server: ‡•öpG, [12:50:07]CommunicateWithHost lk.salyk.kg:30040 [12:50:07]ConnectInit lk.salyk.kg [12:50:07]Connected sock=9 [12:50: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 C4 48 07 01 C4 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 80 D9 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 DC A5 3C 9B B4 F5 3C D9 62 B0 B0 70 83 64 [12:50: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 47 9B 47 00 98 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 83 F1 02 00 F4 03 04 00 C3 7E 20 67 B6 04 01 00 00 E7 C9 56 F1 A6 DB F7 F7 [12:50:08]CommunicateWithHost err = 0 [12:50:08]CheckOFDResponse [12:50:08]1017 (14) - 77093643461234 [12:50:08]1041 (16) - 0000000000871754 [12:50:08]1040 (4) - 192899 [12:50:08]1012 (4) - 29.10.2024 06:20 [12:50:08]1206 (1) - 0 [12:50:08]OFD Sender: Remove packet 192899 [12:50:08]ProducePacketName [12:50:08]name=ofd_packets/00192899 [12:50:08]NVStorageDeleteData [12:50:08]OFD Sender: Processing packet 192900 [packets to send 75, broken 74] [12:50:08]ProducePacketName [12:50:08]name=ofd_packets/00192900 [12:50:08]OFD Sender: To server: ‡•öpG, [12:50:08]CommunicateWithHost lk.salyk.kg:30040 [12:50:08]ConnectInit lk.salyk.kg [12:50:08]Connected sock=9 [12:50: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 71 4C 07 01 2C 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 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 A0 D9 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 F2 94 39 31 41 48 3C 36 6F 0D 14 32 BE 34 [12:50: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 43 B7 47 00 02 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 84 F1 02 00 F4 03 04 00 C3 7E 20 67 B6 04 01 00 00 D2 44 72 13 9A 76 BA B5 [12:50:08]CommunicateWithHost err = 0 [12:50:08]CheckOFDResponse [12:50:08]1017 (14) - 77093643461234 [12:50:08]1041 (16) - 0000000000871754 [12:50:08]1040 (4) - 192900 [12:50:08]1012 (4) - 29.10.2024 06:20 [12:50:08]1206 (1) - 0 [12:50:08]OFD Sender: Remove packet 192900 [12:50:08]ProducePacketName [12:50:08]name=ofd_packets/00192900 [12:50:08]NVStorageDeleteData [12:50:09]OFD Sender: No OFD packet to send [12:50:14]OFD Sender: No OFD packet to send [12:50:19]OFD Sender: No OFD packet to send [12:50:24]OFD Sender: No OFD packet to send [12:50:29]OFD Sender: No OFD packet to send [12:50:34]OFD Sender: No OFD packet to send [12:50:39]OFD Sender: No OFD packet to send [12:50:44]OFD Sender: No OFD packet to send [12:50:49]OFD Sender: No OFD packet to send [12:50:54]OFD Sender: No OFD packet to send [12:50:59]OFD Sender: No OFD packet to send [12:51:04]OFD Sender: No OFD packet to send [12:51:09]OFD Sender: No OFD packet to send [12:51:14]OFD Sender: No OFD packet to send [12:51:19]OFD Sender: No OFD packet to send [12:51:24]OFD Sender: No OFD packet to send [12:51:29]OFD Sender: No OFD packet to send [12:51:34]OFD Sender: No OFD packet to send [12:51:39]accept exits with 8 [12:51:39]New connection [12:51:39]New thread 3066658148 created [12:51:39]Thread 3066801508 joined [12:51:39]Waiting for new connection... [12:51:39] Sock 8.Parse request [12:51:39]Sock 8.Check first char [12:51:39]Sock 8.First char is OK [12:51:39]request: POST /json_proto HTTP/1.0 [12:51:39]Method: POST [12:51:39]URL: /json_proto [12:51:39]Method is POST - this is cgi request [12:51:39]url: /json_proto [12:51:39]query_string will be loaded in cgi processing [12:51:39]execute_cgi json_proto POST (null) [12:51:39]execute_cgi path=json_proto method=POST [12:51:39]POST find Content-Length [12:51:39]Host: 172.17.63.131:8080 [12:51:39]Content-Length: 676 [12:51:39]Content-Type: application/json [12:51:39] [12:51:39]POST finish read [12:51:39]Found Content-Length = 676 [12:51:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32231", "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:51:39]execute_script... [12:51: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)32231", "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:51:39]POST & json_proto [12:51:39]process_json_proto [12:51:39]json parsed OK: [12:51:39]protocol is kg_v1.0 [12:51:39]action value=close_receipt [12:51:39]process_action close_receipt [12:51:39]cmd_close_receipt [12:51:39]MH_GetDate [12:51:39]Write to MH i2c: F0 00 00 30 38 57 [12:51:39]Write i2c OK [12:51:39]MH_I2C_Read... [12:51:39]Read from MH i2c: F0 [12:51:39]MH_I2C_Read... [12:51:39]Read from MH i2c: F0 09 00 [12:51:39]MH_I2C_Read... [12:51:39]Read from MH i2c: F0 09 00 30 38 00 5F DA 20 67 22 05 6E 64 19 [12:51:39]GetLastDocTimeStamp 1730206112 [12:51:39]current date 1730206303 [12:51:39]FM_GetShiftState [12:51:39]SAM_PROTO_GetShiftState [12:51:39]wFMCommunicate request_size=4 [12:51:39]MH_SAM_APDU [12:51:39]CAPDU: 80 13 01 00 [12:51:39]Write to MH i2c: E2 08 00 31 38 80 13 01 00 00 00 00 00 E6 [12:51:39]Write i2c OK [12:51:39]MH_I2C_Read... [12:51:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:39]Read from MH i2c: E2 [12:51:39]MH_I2C_Read... [12:51:39]Read from MH i2c: E2 0E 00 [12:51:39]MH_I2C_Read... [12:51:39]Read from MH i2c: E2 0E 00 31 38 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 EC [12:51:39]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [12:51:39]wFMCommunicate OK [12:51:39]SAM_PROTO_GetShiftState done [12:51:39]FM_GetShiftState done [12:51:39]opened in 1730161990 [12:51:39]opened+sec_in_day 1730248390 [12:51:39]quantity*price = 50041 [12:51:39]sum+1 = 50042 [12:51:39]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 СÐО: Общий режим Чек 107 29.10.2024 12:51 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192901 ФПД: 197455332899800 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T125143&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192901&fm=197455332899800&tin=02508201610067®Number=0000000000091776&sum=50000 [12:51:40]StoreToDocumentArchive [12:51:40]shift 544 fd 192901 [12:51:40]save to /storage/0544/doc_00192901 [12:51:40]save last doc name /storage/0544/doc_00192901 to /storage/kkm_last_doc_name [12:51:40]save OK [12:51:40]Clear old archive folders... [12:51:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:51:40]tlvbuf is B6EB54D0 [12:51:40]SAM_PROTO_ClearQueue [12:51:40]wFMCommunicate request_size=4 [12:51:40]MH_SAM_APDU [12:51:40]CAPDU: 80 09 00 00 [12:51:40]Write to MH i2c: E2 08 00 3E 38 80 09 00 00 00 00 00 00 E8 [12:51:40]Write i2c OK [12:51:40]MH_I2C_Read... [12:51:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:51:40]Read from MH i2c: E2 [12:51:40]MH_I2C_Read... [12:51:40]Read from MH i2c: E2 03 00 [12:51:40]MH_I2C_Read... [12:51:40]Read from MH i2c: E2 03 00 3E 38 00 90 00 EA [12:51:40]RAPDU: 90 00 [12:51:40]wFMCommunicate OK [12:51:40]SAM_PROTO_ClearQueue done [12:51:40]KKMCreateOFDPacket [12:51:40]OFDProtocolAddRootSTLVToBuf [12:51:40]FM_MakeSignedData [12:51:40]FM_MakeSignedData [12:51:40]SAM_PROTO_SignData [12:51:40]wFMCommunicate request_size=4 [12:51:40]MH_SAM_APDU [12:51:40]CAPDU: 80 0D 01 02 [12:51:40]Write to MH i2c: E2 08 00 3F 38 80 0D 01 02 00 00 00 00 F0 [12:51:40]Write i2c OK [12:51:40]MH_I2C_Read... [12:51:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:51:40]Read from MH i2c: E2 [12:51:40]MH_I2C_Read... [12:51:40]Read from MH i2c: E2 03 00 [12:51:40]MH_I2C_Read... [12:51:40]Read from MH i2c: E2 03 00 3F 38 00 90 00 EB [12:51:40]RAPDU: 90 00 [12:51:40]wFMCommunicate OK [12:51:40]wFMCommunicate request_size=255 [12:51:40]MH_SAM_APDU [12:51: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 5F DA 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 B3 [12:51:40]Write to MH i2c: E2 02 01 40 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 6B 00 00 00 F4 03 04 00 5F DA 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 B3 00 00 FC [12:51:40]Write i2c OK [12:51:40]MH_I2C_Read... [12:51:40]Read from MH i2c: E2 [12:51:40]MH_I2C_Read... [12:51:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:40]Read from MH i2c: E2 03 00 [12:51:40]MH_I2C_Read... [12:51:40]Read from MH i2c: E2 03 00 40 38 00 90 00 EC [12:51:40]RAPDU: 90 00 [12:51:40]wFMCommunicate OK [12:51:40]wFMCommunicate request_size=10 [12:51:40]MH_SAM_APDU [12:51:40]CAPDU: 80 0D 02 02 05 95 A6 F9 FB D8 [12:51:40]Write to MH i2c: E2 0D 00 41 38 80 0D 02 02 05 00 95 A6 F9 FB D8 00 00 04 [12:51:40]Write i2c OK [12:51:40]MH_I2C_Read... [12:51:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:40]Read from MH i2c: E2 [12:51:40]MH_I2C_Read... [12:51:40]Read from MH i2c: E2 03 00 [12:51:40]MH_I2C_Read... [12:51:40]Read from MH i2c: E2 03 00 41 38 00 90 00 ED [12:51:40]RAPDU: 90 00 [12:51:40]wFMCommunicate OK [12:51:40]wFMCommunicate request_size=4 [12:51:40]MH_SAM_APDU [12:51:40]CAPDU: 80 0D 03 02 [12:51:40]Write to MH i2c: E2 08 00 42 38 80 0D 03 02 00 00 00 00 F5 [12:51:40]Write i2c OK [12:51:40]MH_I2C_Read... [12:51:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:51:40]Read from MH i2c: E2 [12:51:40]MH_I2C_Read... [12:51:40]Read from MH i2c: E2 0B 00 [12:51:40]MH_I2C_Read... [12:51:40]Read from MH i2c: E2 0B 00 42 38 00 21 D7 F9 96 D7 7E 17 86 90 00 6F [12:51:40]RAPDU: 21 D7 F9 96 D7 7E 17 86 90 00 [12:51:40]wFMCommunicate OK [12:51:40]SAM_PROTO_SignData done [12:51:40]FM_MakeSignedData done [12:51:40]CreateOFDProtocolMessage [12:51:40]wFMCommunicate request_size=4 [12:51:40]MH_SAM_APDU [12:51:40]CAPDU: 80 11 00 00 [12:51:40]Write to MH i2c: E2 08 00 43 38 80 11 00 00 00 00 00 00 F5 [12:51:40]Write i2c OK [12:51:40]MH_I2C_Read... [12:51:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:40]Read from MH i2c: E2 [12:51:40]MH_I2C_Read... [12:51:40]Read from MH i2c: E2 17 00 [12:51:40]MH_I2C_Read... [12:51:40]Read from MH i2c: E2 17 00 43 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 48 [12:51: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:51:40]wFMCommunicate OK [12:51:40]CreateOFDProtocolMessage done [12:51:40]OFDSenderStorePacket 192901 [12:51:40]StoreOFDPacket docnum=192901 [12:51: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 97 05 07 01 E0 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 5F DA 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 B3 95 A6 F9 FB D8 21 D7 F9 96 D7 7E 17 86 [12:51:40]CheckFolder [12:51:40]dirname=/storage/ofd_packets [12:51:40]CheckFolder done [12:51:40]ProducePacketName [12:51:40]name=ofd_packets/00192901 [12:51:40]NVStorageSaveData ofd_packets/00192901 [12:51:40]File name is /storage/ofd_packets/00192901 [12:51:40]Write 301 bytes [12:51:40]NVStorageSaveData done [12:51:40]OFDSenderStorePacket done [12:51:40]KKMCreateOFDPacket done [12:51:40]NVStorageSaveData kkm_last_timestamp [12:51:40]File name is /storage/kkm_last_timestamp [12:51:40]Write 4 bytes [12:51:40]NVStorageSaveData done [12:51:40]ExternCall_PrintAddStr [12:51:40]wPrintStart [12:51:40]Write to MH i2c: 01 00 00 44 38 7C [12:51:40]Write i2c OK [12:51:40]MH_I2C_Read... [12:51:40]Read from MH i2c: 01 [12:51:40]MH_I2C_Read... [12:51:40]Read from MH i2c: 01 07 00 [12:51:40]MH_I2C_Read... [12:51:40]Read from MH i2c: 01 07 00 44 38 00 00 00 00 00 FF 0F 91 [12:51:40]RasterBufferAndPrint [12:51:40]line Счет N : (1)32231 [12:51:40]line ИÐÐ: 02508201610067 [12:51:40]line Контрольно-КаÑÑовый Чек [12:51:40]line ПРОДÐЖР[12:51:40]line ТРК (МРК, ГÐК) : 12 [12:51:40]line Товар: 2710124130 [12:51:40]line Ðи-92-К-5 [12:51:40]line 7.480 * 66.90 [12:51:40]line = 500.41 [12:51:40]line ÐДС 12% ÐСП 1% [12:51:40]line > о реализуемом товаре [12:51:40]line ОКРУГЛЕÐИЕ: -0.41 [12:51:40]line ИТОГО: 500.00 [12:51:40]line ВнеÑено: 500.00 [12:51:40]line СДÐЧÐ: 0.00 [12:51:40]line ÐСП 1% : 4.43 [12:51:40]line ÐДС 12% : 53.14 [12:51:40]line Ðаличными: 500.00 [12:51:40]line Безнал.: 0.00 [12:51:40]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [12:51:40]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [12:51:40]line СÐО: Общий режим [12:51:40]line Чек 107 29.10.2024 12:51 [12:51:40]line Смена: 544 ФФД: 1.0 [12:51:40]line ЗÐМ: 0300000110 [12:51:40]line РÐМ: 0000000000091776 [12:51:40]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [12:51:40]line ФМ: 0000000000871754 [12:51:40]line ФД: 192901 [12:51:40]line ФПД: 197455332899800 [12:51:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T125143&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192901&fm=197455332899800&tin=02508201610067®Number=0000000000091776&sum=50000 [12:51:41]OFD Sender: Processing packet 192901 [packets to send 75, broken 74] [12:51:41]ProducePacketName [12:51:41]name=ofd_packets/00192901 [12:51:41]OFD Sender: To server: ‡•öpG, [12:51:41]CommunicateWithHost lk.salyk.kg:30040 [12:51:41]ConnectInit lk.salyk.kg [12:51:41]written 0, free lines is 4095 [12:51:41]Connected sock=10 [12:51: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 97 05 07 01 E0 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 5F DA 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 B3 95 A6 F9 FB D8 21 D7 F9 96 D7 7E 17 86 [12:51:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F3 D0 47 00 50 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 85 F1 02 00 F4 03 04 00 20 7F 20 67 B6 04 01 00 00 64 CD 09 E8 A7 FE AD DD [12:51:41]CommunicateWithHost err = 0 [12:51:41]CheckOFDResponse [12:51:41]1017 (14) - 77093643461234 [12:51:41]1041 (16) - 0000000000871754 [12:51:41]1040 (4) - 192901 [12:51:41]1012 (4) - 29.10.2024 06:22 [12:51:41]1206 (1) - 0 [12:51:41]OFD Sender: Remove packet 192901 [12:51:41]ProducePacketName [12:51:41]name=ofd_packets/00192901 [12:51:41]NVStorageDeleteData [12:51:41]Write to MH i2c: 01 00 00 6F 38 A7 [12:51:41]Write i2c OK [12:51:41]MH_I2C_Read... [12:51:41]Read from MH i2c: 01 [12:51:41]MH_I2C_Read... [12:51:41]Read from MH i2c: 01 07 00 [12:51:41]MH_I2C_Read... [12:51:41]Read from MH i2c: 01 07 00 6F 38 00 00 00 00 00 A8 0C 62 [12:51:41]RasterBufferAndPrint [12:51:41]line [12:51:41]line [12:51:41]line [12:51:41]line [12:51:41]line [12:51:41]written 0, free lines is 3245 [12:51:41]MH_Cut [12:51:41]Write to MH i2c: D1 01 00 76 38 01 80 [12:51:41]Write i2c OK [12:51:41]MH_I2C_Read... [12:51:41]Read from MH i2c: D1 [12:51:41]MH_I2C_Read... [12:51:41]Read from MH i2c: D1 01 00 [12:51:41]MH_I2C_Read... [12:51:41]Read from MH i2c: D1 01 00 76 38 00 7F [12:51:41]Write to MH i2c: 01 00 00 77 38 AF [12:51:41]Write i2c OK [12:51:41]MH_I2C_Read... [12:51:42]OFD Sender: No OFD packet to send [12:51:42]*** Cut start [12:51:42]*** Partial cut [12:51:42]*** CUTSNS_PIN = 1 [12:51:42]*** CUTSNS_PIN = 0 [12:51:42]*** Brake cut motor [12:51:43]Read from MH i2c: 01 [12:51:43]MH_I2C_Read... [12:51:43]*** Stop cut motor [12:51:43]*** Cut end [12:51:43]Read from MH i2c: 01 07 00 [12:51:43]MH_I2C_Read... [12:51:43]Read from MH i2c: 01 07 00 77 38 00 00 00 00 00 FF 0F C4 [12:51:43]process_action close_receipt done [12:51:43]requested_data is exist [12:51:43]produce_requested_data [12:51:43]requested_item fm.sn is exist - process it [12:51:43]wFMCommunicate request_size=4 [12:51:43]MH_SAM_APDU [12:51:43]CAPDU: 80 11 00 00 [12:51:43]Write to MH i2c: E2 08 00 78 38 80 11 00 00 00 00 00 00 2A [12:51:43]Write i2c OK [12:51:43]MH_I2C_Read... [12:51:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:43]Read from MH i2c: E2 [12:51:43]MH_I2C_Read... [12:51:43]Read from MH i2c: E2 17 00 [12:51:43]MH_I2C_Read... [12:51:43]Read from MH i2c: E2 17 00 78 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7D [12:51: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:51:43]wFMCommunicate OK [12:51:43]requested_item fd.num is exist - process it [12:51:43]SAM_PROTO_GetFieldsCounters [12:51:43]wFMCommunicate request_size=4 [12:51:43]MH_SAM_APDU [12:51:43]CAPDU: 80 13 00 00 [12:51:43]Write to MH i2c: E2 08 00 79 38 80 13 00 00 00 00 00 00 2D [12:51:43]Write i2c OK [12:51:43]MH_I2C_Read... [12:51:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:51:43]Read from MH i2c: E2 [12:51:43]MH_I2C_Read... [12:51:43]Read from MH i2c: E2 62 00 [12:51:43]MH_I2C_Read... [12:51:43]Read from MH i2c: E2 62 00 79 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 85 F1 02 00 0E 04 04 00 20 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 2E [12:51: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 85 F1 02 00 0E 04 04 00 20 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:51:43]wFMCommunicate OK [12:51:43]SAM_PROTO_GetFieldsCounters done [12:51:43]requested_item shift.num is exist - process it [12:51:43]requested_item shift.opened is exist - process it [12:51:43]req_shift_opened [12:51:43]FM_GetShiftState [12:51:43]SAM_PROTO_GetShiftState [12:51:43]wFMCommunicate request_size=4 [12:51:43]MH_SAM_APDU [12:51:43]CAPDU: 80 13 01 00 [12:51:43]Write to MH i2c: E2 08 00 7A 38 80 13 01 00 00 00 00 00 2F [12:51:43]Write i2c OK [12:51:43]MH_I2C_Read... [12:51:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:43]Read from MH i2c: E2 [12:51:43]MH_I2C_Read... [12:51:43]Read from MH i2c: E2 0E 00 [12:51:43]MH_I2C_Read... [12:51:43]Read from MH i2c: E2 0E 00 7A 38 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 35 [12:51:43]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [12:51:43]wFMCommunicate OK [12:51:43]SAM_PROTO_GetShiftState done [12:51:43]FM_GetShiftState done [12:51:43]req_shift_opened done [12:51:43]requested_item shift.open_date is exist - process it [12:51:43]req_shift_open_date [12:51:43]req_shift_open_date done [12:51:43]produce_requested_data done [12:51:43]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192901,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [12:51:43]process_action_free close_receipt [12:51:43]json_value_free [12:51:43]json_value_free done [12:51:43]process_json_proto returns [12:51:43]Send response to host [12:51:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192901,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [12:51:43]free response buf [12:51:43]execute_script done [12:51:43]execute_script returns [12:51:43]free content buf [12:51:43]Sock 8.Close socket [12:51:43]Sock 8.Thread stoped [12:51:47]OFD Sender: No OFD packet to send [12:51:52]OFD Sender: No OFD packet to send [12:51:57]OFD Sender: No OFD packet to send [12:52:02]OFD Sender: No OFD packet to send [12:52:07]OFD Sender: No OFD packet to send [12:52:12]OFD Sender: No OFD packet to send [12:52:17]OFD Sender: No OFD packet to send [12:52:22]OFD Sender: No OFD packet to send [12:52:27]OFD Sender: No OFD packet to send [12:52:32]OFD Sender: No OFD packet to send [12:52:37]OFD Sender: No OFD packet to send [12:52:42]OFD Sender: No OFD packet to send [12:52:47]OFD Sender: No OFD packet to send [12:52:52]OFD Sender: No OFD packet to send [12:52:57]OFD Sender: No OFD packet to send [12:53:02]OFD Sender: No OFD packet to send [12:53:07]OFD Sender: No OFD packet to send [12:53:12]OFD Sender: No OFD packet to send [12:53:17]OFD Sender: No OFD packet to send [12:53:22]OFD Sender: No OFD packet to send [12:53:27]OFD Sender: No OFD packet to send [12:53:32]OFD Sender: No OFD packet to send [12:53:37]OFD Sender: No OFD packet to send [12:53:42]OFD Sender: No OFD packet to send [12:53:47]OFD Sender: No OFD packet to send [12:53:52]OFD Sender: No OFD packet to send [12:53:57]OFD Sender: No OFD packet to send [12:54:02]OFD Sender: No OFD packet to send [12:54:07]OFD Sender: No OFD packet to send [12:54:08]accept exits with 9 [12:54:08]New connection [12:54:08]New thread 3066801508 created [12:54:08]Thread 3066658148 joined [12:54:08]Waiting for new connection... [12:54:08] Sock 9.Parse request [12:54:08]Sock 9.Check first char [12:54:08]Sock 9.First char is OK [12:54:08]request: POST /json_proto HTTP/1.0 [12:54:08]Method: POST [12:54:08]URL: /json_proto [12:54:08]Method is POST - this is cgi request [12:54:08]url: /json_proto [12:54:08]query_string will be loaded in cgi processing [12:54:08]execute_cgi json_proto POST (null) [12:54:08]execute_cgi path=json_proto method=POST [12:54:08]POST find Content-Length [12:54:08]Host: 172.17.63.131:8080 [12:54:08]Content-Length: 676 [12:54:08]Content-Type: application/json [12:54:08] [12:54:08]POST finish read [12:54:08]Found Content-Length = 676 [12:54:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32232", "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:54:08]execute_script... [12:54:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32232", "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:54:08]POST & json_proto [12:54:08]process_json_proto [12:54:08]json parsed OK: [12:54:08]protocol is kg_v1.0 [12:54:08]action value=close_receipt [12:54:08]process_action close_receipt [12:54:08]cmd_close_receipt [12:54:08]MH_GetDate [12:54:08]Write to MH i2c: F0 00 00 7B 38 A2 [12:54:08]Write i2c OK [12:54:08]MH_I2C_Read... [12:54:08]Read from MH i2c: F0 [12:54:08]MH_I2C_Read... [12:54:08]Read from MH i2c: F0 09 00 [12:54:08]MH_I2C_Read... [12:54:08]Read from MH i2c: F0 09 00 7B 38 00 F5 DA 20 67 22 05 6E 64 FA [12:54:08]GetLastDocTimeStamp 1730206303 [12:54:08]current date 1730206453 [12:54:08]FM_GetShiftState [12:54:08]SAM_PROTO_GetShiftState [12:54:08]wFMCommunicate request_size=4 [12:54:08]MH_SAM_APDU [12:54:08]CAPDU: 80 13 01 00 [12:54:08]Write to MH i2c: E2 08 00 7C 38 80 13 01 00 00 00 00 00 31 [12:54:08]Write i2c OK [12:54:08]MH_I2C_Read... [12:54:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:08]Read from MH i2c: E2 [12:54:08]MH_I2C_Read... [12:54:08]Read from MH i2c: E2 0E 00 [12:54:08]MH_I2C_Read... [12:54:08]Read from MH i2c: E2 0E 00 7C 38 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 37 [12:54:08]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [12:54:08]wFMCommunicate OK [12:54:08]SAM_PROTO_GetShiftState done [12:54:08]FM_GetShiftState done [12:54:08]opened in 1730161990 [12:54:08]opened+sec_in_day 1730248390 [12:54:08]quantity*price = 50041 [12:54:08]sum+1 = 50042 [12:54: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 СÐО: Общий режим Чек 108 29.10.2024 12:54 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192902 ФПД: 125057114503086 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T125413&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192902&fm=125057114503086&tin=02508201610067®Number=0000000000091776&sum=50000 [12:54:09]StoreToDocumentArchive [12:54:09]shift 544 fd 192902 [12:54:09]save to /storage/0544/doc_00192902 [12:54:09]save last doc name /storage/0544/doc_00192902 to /storage/kkm_last_doc_name [12:54:09]save OK [12:54:09]Clear old archive folders... [12:54:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:54:09]tlvbuf is 00FA1330 [12:54:09]SAM_PROTO_ClearQueue [12:54:09]wFMCommunicate request_size=4 [12:54:09]MH_SAM_APDU [12:54:09]CAPDU: 80 09 00 00 [12:54:09]Write to MH i2c: E2 08 00 89 38 80 09 00 00 00 00 00 00 33 [12:54:09]Write i2c OK [12:54:09]MH_I2C_Read... [12:54:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:54:09]Read from MH i2c: E2 [12:54:09]MH_I2C_Read... [12:54:09]Read from MH i2c: E2 03 00 [12:54:09]MH_I2C_Read... [12:54:09]Read from MH i2c: E2 03 00 89 38 00 90 00 35 [12:54:09]RAPDU: 90 00 [12:54:09]wFMCommunicate OK [12:54:09]SAM_PROTO_ClearQueue done [12:54:09]KKMCreateOFDPacket [12:54:09]OFDProtocolAddRootSTLVToBuf [12:54:09]FM_MakeSignedData [12:54:09]FM_MakeSignedData [12:54:09]SAM_PROTO_SignData [12:54:09]wFMCommunicate request_size=4 [12:54:09]MH_SAM_APDU [12:54:09]CAPDU: 80 0D 01 02 [12:54:09]Write to MH i2c: E2 08 00 8A 38 80 0D 01 02 00 00 00 00 3B [12:54:09]Write i2c OK [12:54:09]MH_I2C_Read... [12:54:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:54:09]Read from MH i2c: E2 [12:54:09]MH_I2C_Read... [12:54:09]Read from MH i2c: E2 03 00 [12:54:09]MH_I2C_Read... [12:54:09]Read from MH i2c: E2 03 00 8A 38 00 90 00 36 [12:54:09]RAPDU: 90 00 [12:54:09]wFMCommunicate OK [12:54:09]wFMCommunicate request_size=255 [12:54:09]MH_SAM_APDU [12:54:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 F5 DA 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 71 [12:54:09]Write to MH i2c: E2 02 01 8B 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 6C 00 00 00 F4 03 04 00 F5 DA 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 71 00 00 9D [12:54:09]Write i2c OK [12:54:09]MH_I2C_Read... [12:54:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:10]Read from MH i2c: E2 [12:54:10]MH_I2C_Read... [12:54:10]Read from MH i2c: E2 03 00 [12:54:10]MH_I2C_Read... [12:54:10]Read from MH i2c: E2 03 00 8B 38 00 90 00 37 [12:54:10]RAPDU: 90 00 [12:54:10]wFMCommunicate OK [12:54:10]wFMCommunicate request_size=10 [12:54:10]MH_SAM_APDU [12:54:10]CAPDU: 80 0D 02 02 05 BD 20 E2 F7 AE [12:54:10]Write to MH i2c: E2 0D 00 8C 38 80 0D 02 02 05 00 BD 20 E2 F7 AE 00 00 AC [12:54:10]Write i2c OK [12:54:10]MH_I2C_Read... [12:54:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:10]Read from MH i2c: E2 [12:54:10]MH_I2C_Read... [12:54:10]Read from MH i2c: E2 03 00 [12:54:10]MH_I2C_Read... [12:54:10]Read from MH i2c: E2 03 00 8C 38 00 90 00 38 [12:54:10]RAPDU: 90 00 [12:54:10]wFMCommunicate OK [12:54:10]wFMCommunicate request_size=4 [12:54:10]MH_SAM_APDU [12:54:10]CAPDU: 80 0D 03 02 [12:54:10]Write to MH i2c: E2 08 00 8D 38 80 0D 03 02 00 00 00 00 40 [12:54:10]Write i2c OK [12:54:10]MH_I2C_Read... [12:54:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:54:10]Read from MH i2c: E2 [12:54:10]MH_I2C_Read... [12:54:10]Read from MH i2c: E2 0B 00 [12:54:10]MH_I2C_Read... [12:54:10]Read from MH i2c: E2 0B 00 8D 38 00 3C AA C2 6A A8 A3 BC 4E 90 00 A8 [12:54:10]RAPDU: 3C AA C2 6A A8 A3 BC 4E 90 00 [12:54:10]wFMCommunicate OK [12:54:10]SAM_PROTO_SignData done [12:54:10]FM_MakeSignedData done [12:54:10]CreateOFDProtocolMessage [12:54:10]wFMCommunicate request_size=4 [12:54:10]MH_SAM_APDU [12:54:10]CAPDU: 80 11 00 00 [12:54:10]Write to MH i2c: E2 08 00 8E 38 80 11 00 00 00 00 00 00 40 [12:54:10]Write i2c OK [12:54:10]MH_I2C_Read... [12:54:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:10]Read from MH i2c: E2 [12:54:10]MH_I2C_Read... [12:54:10]Read from MH i2c: E2 17 00 [12:54:10]MH_I2C_Read... [12:54:10]Read from MH i2c: E2 17 00 8E 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 93 [12:54: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:54:10]wFMCommunicate OK [12:54:10]CreateOFDProtocolMessage done [12:54:10]OFDSenderStorePacket 192902 [12:54:10]StoreOFDPacket docnum=192902 [12:54: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 BD B3 07 01 0A A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 F5 DA 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 71 BD 20 E2 F7 AE 3C AA C2 6A A8 A3 BC 4E [12:54:10]CheckFolder [12:54:10]dirname=/storage/ofd_packets [12:54:10]CheckFolder done [12:54:10]ProducePacketName [12:54:10]name=ofd_packets/00192902 [12:54:10]NVStorageSaveData ofd_packets/00192902 [12:54:10]File name is /storage/ofd_packets/00192902 [12:54:10]Write 301 bytes [12:54:10]NVStorageSaveData done [12:54:10]OFDSenderStorePacket done [12:54:10]KKMCreateOFDPacket done [12:54:10]NVStorageSaveData kkm_last_timestamp [12:54:10]File name is /storage/kkm_last_timestamp [12:54:10]Write 4 bytes [12:54:10]NVStorageSaveData done [12:54:10]ExternCall_PrintAddStr [12:54:10]wPrintStart [12:54:10]Write to MH i2c: 01 00 00 8F 38 C7 [12:54:10]Write i2c OK [12:54:10]MH_I2C_Read... [12:54:10]Read from MH i2c: 01 [12:54:10]MH_I2C_Read... [12:54:10]Read from MH i2c: 01 07 00 [12:54:10]MH_I2C_Read... [12:54:10]Read from MH i2c: 01 07 00 8F 38 00 00 00 00 00 FF 0F DC [12:54:10]RasterBufferAndPrint [12:54:10]line Счет N : (1)32232 [12:54:10]line ИÐÐ: 02508201610067 [12:54:10]line Контрольно-КаÑÑовый Чек [12:54:10]line ПРОДÐЖР[12:54:10]line ТРК (МРК, ГÐК) : 12 [12:54:10]line Товар: 2710124130 [12:54:10]line Ðи-92-К-5 [12:54:10]line 7.480 * 66.90 [12:54:10]line = 500.41 [12:54:10]line ÐДС 12% ÐСП 1% [12:54:10]line > о реализуемом товаре [12:54:10]line ОКРУГЛЕÐИЕ: -0.41 [12:54:10]line ИТОГО: 500.00 [12:54:10]line ВнеÑено: 500.00 [12:54:10]line СДÐЧÐ: 0.00 [12:54:10]line ÐСП 1% : 4.43 [12:54:10]line ÐДС 12% : 53.14 [12:54:10]line Ðаличными: 500.00 [12:54:10]line Безнал.: 0.00 [12:54:10]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [12:54:10]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [12:54:10]line СÐО: Общий режим [12:54:10]line Чек 108 29.10.2024 12:54 [12:54:10]line Смена: 544 ФФД: 1.0 [12:54:10]line ЗÐМ: 0300000110 [12:54:10]line РÐМ: 0000000000091776 [12:54:10]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [12:54:10]line ФМ: 0000000000871754 [12:54:10]line ФД: 192902 [12:54:10]line ФПД: 125057114503086 [12:54:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T125413&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192902&fm=125057114503086&tin=02508201610067®Number=0000000000091776&sum=50000 [12:54:10]OFD Sender: Processing packet 192902 [packets to send 75, broken 74] [12:54:10]ProducePacketName [12:54:10]name=ofd_packets/00192902 [12:54:10]OFD Sender: To server: ‡•öpG, [12:54:10]CommunicateWithHost lk.salyk.kg:30040 [12:54:10]ConnectInit lk.salyk.kg [12:54:10]written 0, free lines is 4095 [12:54:10]Connected sock=10 [12:54:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BD B3 07 01 0A A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 F5 DA 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 71 BD 20 E2 F7 AE 3C AA C2 6A A8 A3 BC 4E [12:54:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 9C D3 47 00 6A 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 86 F1 02 00 F4 03 04 00 B5 7F 20 67 B6 04 01 00 00 BE 2F 08 27 74 F8 FB 29 [12:54:10]CommunicateWithHost err = 0 [12:54:10]CheckOFDResponse [12:54:10]1017 (14) - 77093643461234 [12:54:10]1041 (16) - 0000000000871754 [12:54:10]1040 (4) - 192902 [12:54:10]1012 (4) - 29.10.2024 06:24 [12:54:10]1206 (1) - 0 [12:54:10]OFD Sender: Remove packet 192902 [12:54:10]ProducePacketName [12:54:10]name=ofd_packets/00192902 [12:54:10]NVStorageDeleteData [12:54:10]Write to MH i2c: 01 00 00 BA 38 F2 [12:54:10]Write i2c OK [12:54:10]MH_I2C_Read... [12:54:10]Read from MH i2c: 01 [12:54:10]MH_I2C_Read... [12:54:10]Read from MH i2c: 01 07 00 [12:54:10]MH_I2C_Read... [12:54:10]Read from MH i2c: 01 07 00 BA 38 00 00 00 00 00 A4 0C A9 [12:54:10]RasterBufferAndPrint [12:54:10]line [12:54:10]line [12:54:10]line [12:54:10]line [12:54:10]line [12:54:10]written 0, free lines is 3242 [12:54:11]MH_Cut [12:54:11]Write to MH i2c: D1 01 00 C1 38 01 CB [12:54:11]Write i2c OK [12:54:11]MH_I2C_Read... [12:54:11]Read from MH i2c: D1 [12:54:11]MH_I2C_Read... [12:54:11]Read from MH i2c: D1 01 00 [12:54:11]MH_I2C_Read... [12:54:11]Read from MH i2c: D1 01 00 C1 38 00 CA [12:54:11]Write to MH i2c: 01 00 00 C2 38 FA [12:54:11]Write i2c OK [12:54:11]MH_I2C_Read... [12:54:11]OFD Sender: No OFD packet to send [12:54:11]*** Cut start [12:54:11]*** Partial cut [12:54:11]*** CUTSNS_PIN = 1 [12:54:11]*** CUTSNS_PIN = 0 [12:54:12]*** Brake cut motor [12:54:12]Read from MH i2c: 01 [12:54:12]MH_I2C_Read... [12:54:12]*** Stop cut motor [12:54:12]*** Cut end [12:54:12]Read from MH i2c: 01 07 00 [12:54:12]MH_I2C_Read... [12:54:12]Read from MH i2c: 01 07 00 C2 38 00 00 00 00 00 FF 0F 0F [12:54:12]process_action close_receipt done [12:54:12]requested_data is exist [12:54:12]produce_requested_data [12:54:12]requested_item fm.sn is exist - process it [12:54:12]wFMCommunicate request_size=4 [12:54:12]MH_SAM_APDU [12:54:12]CAPDU: 80 11 00 00 [12:54:12]Write to MH i2c: E2 08 00 C3 38 80 11 00 00 00 00 00 00 75 [12:54:12]Write i2c OK [12:54:12]MH_I2C_Read... [12:54:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:12]Read from MH i2c: E2 [12:54:12]MH_I2C_Read... [12:54:12]Read from MH i2c: E2 17 00 [12:54:12]MH_I2C_Read... [12:54:12]Read from MH i2c: E2 17 00 C3 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C8 [12:54:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:54:12]wFMCommunicate OK [12:54:12]requested_item fd.num is exist - process it [12:54:12]SAM_PROTO_GetFieldsCounters [12:54:12]wFMCommunicate request_size=4 [12:54:12]MH_SAM_APDU [12:54:12]CAPDU: 80 13 00 00 [12:54:12]Write to MH i2c: E2 08 00 C4 38 80 13 00 00 00 00 00 00 78 [12:54:12]Write i2c OK [12:54:12]MH_I2C_Read... [12:54:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:54:12]Read from MH i2c: E2 [12:54:12]MH_I2C_Read... [12:54:12]Read from MH i2c: E2 62 00 [12:54:12]MH_I2C_Read... [12:54:12]Read from MH i2c: E2 62 00 C4 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 86 F1 02 00 0E 04 04 00 20 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 7D [12:54:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 F1 02 00 0E 04 04 00 20 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:54:12]wFMCommunicate OK [12:54:12]SAM_PROTO_GetFieldsCounters done [12:54:12]requested_item shift.num is exist - process it [12:54:12]requested_item shift.opened is exist - process it [12:54:12]req_shift_opened [12:54:12]FM_GetShiftState [12:54:12]SAM_PROTO_GetShiftState [12:54:12]wFMCommunicate request_size=4 [12:54:12]MH_SAM_APDU [12:54:12]CAPDU: 80 13 01 00 [12:54:12]Write to MH i2c: E2 08 00 C5 38 80 13 01 00 00 00 00 00 7A [12:54:12]Write i2c OK [12:54:12]MH_I2C_Read... [12:54:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:12]Read from MH i2c: E2 [12:54:12]MH_I2C_Read... [12:54:12]Read from MH i2c: E2 0E 00 [12:54:12]MH_I2C_Read... [12:54:12]Read from MH i2c: E2 0E 00 C5 38 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 80 [12:54:12]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [12:54:12]wFMCommunicate OK [12:54:12]SAM_PROTO_GetShiftState done [12:54:12]FM_GetShiftState done [12:54:12]req_shift_opened done [12:54:12]requested_item shift.open_date is exist - process it [12:54:12]req_shift_open_date [12:54:12]req_shift_open_date done [12:54:12]produce_requested_data done [12:54:12]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192902,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [12:54:12]process_action_free close_receipt [12:54:12]json_value_free [12:54:12]json_value_free done [12:54:12]process_json_proto returns [12:54:12]Send response to host [12:54:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192902,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [12:54:12]free response buf [12:54:12]execute_script done [12:54:12]execute_script returns [12:54:12]free content buf [12:54:12]Sock 9.Close socket [12:54:12]Sock 9.Thread stoped [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:51]OFD Sender: No OFD packet to send [12:56:56]OFD Sender: No OFD packet to send [12:57:01]OFD Sender: No OFD packet to send [12:57:06]OFD Sender: No OFD packet to send [12:57:11]OFD Sender: No OFD packet to send [12:57:16]OFD Sender: No OFD packet to send [12:57:21]OFD Sender: No OFD packet to send [12:57:26]OFD Sender: No OFD packet to send [12:57:31]OFD Sender: No OFD packet to send [12:57:36]OFD Sender: No OFD packet to send [12:57:41]OFD Sender: No OFD packet to send [12:57:46]OFD Sender: No OFD packet to send [12:57:51]OFD Sender: No OFD packet to send [12:57:56]OFD Sender: No OFD packet to send [12:58:01]OFD Sender: No OFD packet to send [12:58:06]OFD Sender: No OFD packet to send [12:58:11]OFD Sender: No OFD packet to send [12:58:16]OFD Sender: No OFD packet to send [12:58:21]OFD Sender: No OFD packet to send [12:58:26]OFD Sender: No OFD packet to send [12:58:31]OFD Sender: No OFD packet to send [12:58:36]OFD Sender: No OFD packet to send [12:58:41]OFD Sender: No OFD packet to send [12:58:46]OFD Sender: No OFD packet to send [12:58:51]OFD Sender: No OFD packet to send [12:58:56]OFD Sender: No OFD packet to send [12:59:01]OFD Sender: No OFD packet to send [12:59:06]OFD Sender: No OFD packet to send [12:59:11]OFD Sender: No OFD packet to send [12:59:16]OFD Sender: No OFD packet to send [12:59:21]OFD Sender: No OFD packet to send [12:59:26]OFD Sender: No OFD packet to send [12:59:31]OFD Sender: No OFD packet to send [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:11]OFD Sender: No OFD packet to send [13:00:16]OFD Sender: No OFD packet to send [13:00:21]OFD Sender: No OFD packet to send [13:00:26]OFD Sender: No OFD packet to send [13:00:31]OFD Sender: No OFD packet to send [13:00:36]OFD Sender: No OFD packet to send [13:00:41]OFD Sender: No OFD packet to send [13:00:45]accept exits with 8 [13:00:45]New connection [13:00:45]New thread 3066658148 created [13:00:45]Thread 3066801508 joined [13:00:45]Waiting for new connection... [13:00:45] Sock 8.Parse request [13:00:45]Sock 8.Check first char [13:00:45]Sock 8.First char is OK [13:00:45]request: POST /json_proto HTTP/1.0 [13:00:45]Method: POST [13:00:45]URL: /json_proto [13:00:45]Method is POST - this is cgi request [13:00:45]url: /json_proto [13:00:45]query_string will be loaded in cgi processing [13:00:45]execute_cgi json_proto POST (null) [13:00:45]execute_cgi path=json_proto method=POST [13:00:45]POST find Content-Length [13:00:45]Host: 172.17.63.131:8080 [13:00:45]Content-Length: 681 [13:00:45]Content-Type: application/json [13:00:45] [13:00:45]POST finish read [13:00:45]Found Content-Length = 681 [13:00:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32234", "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" ] } } [13:00:45]execute_script... [13:00: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)32234", "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" ] } } [13:00:45]POST & json_proto [13:00:45]process_json_proto [13:00:45]json parsed OK: [13:00:45]protocol is kg_v1.0 [13:00:45]action value=close_receipt [13:00:45]process_action close_receipt [13:00:45]cmd_close_receipt [13:00:45]MH_GetDate [13:00:45]Write to MH i2c: F0 00 00 C6 38 ED [13:00:45]Write i2c OK [13:00:45]MH_I2C_Read... [13:00:45]Read from MH i2c: F0 [13:00:45]MH_I2C_Read... [13:00:45]Read from MH i2c: F0 09 00 [13:00:45]MH_I2C_Read... [13:00:45]Read from MH i2c: F0 09 00 C6 38 00 82 DC 20 67 22 05 6E 64 D4 [13:00:45]GetLastDocTimeStamp 1730206453 [13:00:45]current date 1730206850 [13:00:45]FM_GetShiftState [13:00:45]SAM_PROTO_GetShiftState [13:00:45]wFMCommunicate request_size=4 [13:00:45]MH_SAM_APDU [13:00:45]CAPDU: 80 13 01 00 [13:00:45]Write to MH i2c: E2 08 00 C7 38 80 13 01 00 00 00 00 00 7C [13:00:45]Write i2c OK [13:00:45]MH_I2C_Read... [13:00:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:45]Read from MH i2c: E2 [13:00:45]MH_I2C_Read... [13:00:45]Read from MH i2c: E2 0E 00 [13:00:45]MH_I2C_Read... [13:00:45]Read from MH i2c: E2 0E 00 C7 38 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 82 [13:00:45]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [13:00:45]wFMCommunicate OK [13:00:45]SAM_PROTO_GetShiftState done [13:00:45]FM_GetShiftState done [13:00:45]opened in 1730161990 [13:00:45]opened+sec_in_day 1730248390 [13:00:45]quantity*price = 100015 [13:00:45]sum+1 = 100017 [13:00:45]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 СÐО: Общий режим Чек 109 29.10.2024 13:00 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192903 ФПД: 50980304600475 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T130050&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192903&fm=50980304600475&tin=02508201610067®Number=0000000000091776&sum=100000 [13:00:46]StoreToDocumentArchive [13:00:46]shift 544 fd 192903 [13:00:46]save to /storage/0544/doc_00192903 [13:00:46]save last doc name /storage/0544/doc_00192903 to /storage/kkm_last_doc_name [13:00:46]save OK [13:00:46]Clear old archive folders... [13:00:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:00:46]tlvbuf is B6D83180 [13:00:46]SAM_PROTO_ClearQueue [13:00:46]wFMCommunicate request_size=4 [13:00:46]MH_SAM_APDU [13:00:46]CAPDU: 80 09 00 00 [13:00:46]Write to MH i2c: E2 08 00 D4 38 80 09 00 00 00 00 00 00 7E [13:00:46]Write i2c OK [13:00:46]MH_I2C_Read... [13:00:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:00:46]Read from MH i2c: E2 [13:00:46]MH_I2C_Read... [13:00:46]Read from MH i2c: E2 03 00 [13:00:46]MH_I2C_Read... [13:00:46]Read from MH i2c: E2 03 00 D4 38 00 90 00 80 [13:00:46]RAPDU: 90 00 [13:00:46]wFMCommunicate OK [13:00:46]SAM_PROTO_ClearQueue done [13:00:46]KKMCreateOFDPacket [13:00:46]OFDProtocolAddRootSTLVToBuf [13:00:46]FM_MakeSignedData [13:00:46]FM_MakeSignedData [13:00:46]SAM_PROTO_SignData [13:00:46]wFMCommunicate request_size=4 [13:00:46]MH_SAM_APDU [13:00:46]CAPDU: 80 0D 01 02 [13:00:46]Write to MH i2c: E2 08 00 D5 38 80 0D 01 02 00 00 00 00 86 [13:00:46]Write i2c OK [13:00:46]MH_I2C_Read... [13:00:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:00:46]Read from MH i2c: E2 [13:00:46]MH_I2C_Read... [13:00:46]Read from MH i2c: E2 03 00 [13:00:46]MH_I2C_Read... [13:00:46]Read from MH i2c: E2 03 00 D5 38 00 90 00 81 [13:00:46]RAPDU: 90 00 [13:00:46]wFMCommunicate OK [13:00:46]wFMCommunicate request_size=255 [13:00:46]MH_SAM_APDU [13:00: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 82 DC 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 2E [13:00:46]Write to MH i2c: E2 02 01 D6 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 82 DC 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 2E 00 00 30 [13:00:46]Write i2c OK [13:00:46]MH_I2C_Read... [13:00:46]OFD Sender: No OFD packet to send [13:00:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:46]Read from MH i2c: E2 [13:00:46]MH_I2C_Read... [13:00:46]Read from MH i2c: E2 03 00 [13:00:46]MH_I2C_Read... [13:00:46]Read from MH i2c: E2 03 00 D6 38 00 90 00 82 [13:00:46]RAPDU: 90 00 [13:00:46]wFMCommunicate OK [13:00:46]wFMCommunicate request_size=10 [13:00:46]MH_SAM_APDU [13:00:46]CAPDU: 80 0D 02 02 05 5D C6 F2 3D 9B [13:00:46]Write to MH i2c: E2 0D 00 D7 38 80 0D 02 02 05 00 5D C6 F2 3D 9B 00 00 80 [13:00:46]Write i2c OK [13:00:46]MH_I2C_Read... [13:00:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:46]Read from MH i2c: E2 [13:00:46]MH_I2C_Read... [13:00:46]Read from MH i2c: E2 03 00 [13:00:46]MH_I2C_Read... [13:00:46]Read from MH i2c: E2 03 00 D7 38 00 90 00 83 [13:00:46]RAPDU: 90 00 [13:00:46]wFMCommunicate OK [13:00:46]wFMCommunicate request_size=4 [13:00:46]MH_SAM_APDU [13:00:46]CAPDU: 80 0D 03 02 [13:00:46]Write to MH i2c: E2 08 00 D8 38 80 0D 03 02 00 00 00 00 8B [13:00:46]Write i2c OK [13:00:46]MH_I2C_Read... [13:00:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:00:47]Read from MH i2c: E2 [13:00:47]MH_I2C_Read... [13:00:47]Read from MH i2c: E2 0B 00 [13:00:47]MH_I2C_Read... [13:00:47]Read from MH i2c: E2 0B 00 D8 38 00 82 91 AF 09 46 4F 0F 88 90 00 83 [13:00:47]RAPDU: 82 91 AF 09 46 4F 0F 88 90 00 [13:00:47]wFMCommunicate OK [13:00:47]SAM_PROTO_SignData done [13:00:47]FM_MakeSignedData done [13:00:47]CreateOFDProtocolMessage [13:00:47]wFMCommunicate request_size=4 [13:00:47]MH_SAM_APDU [13:00:47]CAPDU: 80 11 00 00 [13:00:47]Write to MH i2c: E2 08 00 D9 38 80 11 00 00 00 00 00 00 8B [13:00:47]Write i2c OK [13:00:47]MH_I2C_Read... [13:00:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:47]Read from MH i2c: E2 [13:00:47]MH_I2C_Read... [13:00:47]Read from MH i2c: E2 17 00 [13:00:47]MH_I2C_Read... [13:00:47]Read from MH i2c: E2 17 00 D9 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DE [13:00: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:00:47]wFMCommunicate OK [13:00:47]CreateOFDProtocolMessage done [13:00:47]OFDSenderStorePacket 192903 [13:00:47]StoreOFDPacket docnum=192903 [13:00: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 6F 40 07 01 72 F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 82 DC 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 2E 5D C6 F2 3D 9B 82 91 AF 09 46 4F 0F 88 [13:00:47]CheckFolder [13:00:47]dirname=/storage/ofd_packets [13:00:47]CheckFolder done [13:00:47]ProducePacketName [13:00:47]name=ofd_packets/00192903 [13:00:47]NVStorageSaveData ofd_packets/00192903 [13:00:47]File name is /storage/ofd_packets/00192903 [13:00:47]Write 301 bytes [13:00:47]NVStorageSaveData done [13:00:47]OFDSenderStorePacket done [13:00:47]KKMCreateOFDPacket done [13:00:47]NVStorageSaveData kkm_last_timestamp [13:00:47]File name is /storage/kkm_last_timestamp [13:00:47]Write 4 bytes [13:00:47]NVStorageSaveData done [13:00:47]ExternCall_PrintAddStr [13:00:47]wPrintStart [13:00:47]Write to MH i2c: 01 00 00 DA 38 12 [13:00:47]Write i2c OK [13:00:47]MH_I2C_Read... [13:00:47]Read from MH i2c: 01 [13:00:47]MH_I2C_Read... [13:00:47]Read from MH i2c: 01 07 00 [13:00:47]MH_I2C_Read... [13:00:47]Read from MH i2c: 01 07 00 DA 38 00 00 00 00 00 FF 0F 27 [13:00:47]RasterBufferAndPrint [13:00:47]line Счет N : (1)32234 [13:00:47]line ИÐÐ: 02508201610067 [13:00:47]line Контрольно-КаÑÑовый Чек [13:00:47]line ПРОДÐЖР[13:00:47]line ТРК (МРК, ГÐК) : 12 [13:00:47]line Товар: 2710124130 [13:00:47]line Ðи-92-К-5 [13:00:47]line 14.950 * 66.90 [13:00:47]line = 1000.16 [13:00:47]line ÐДС 12% ÐСП 1% [13:00:47]line > о реализуемом товаре [13:00:47]line ОКРУГЛЕÐИЕ: -0.16 [13:00:47]line ИТОГО: 1000.00 [13:00:47]line ВнеÑено: 1000.00 [13:00:47]line СДÐЧÐ: 0.00 [13:00:47]line ÐСП 1% : 8.85 [13:00:47]line ÐДС 12% : 106.21 [13:00:47]line Ðаличными: 1000.00 [13:00:47]line Безнал.: 0.00 [13:00:47]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [13:00:47]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [13:00:47]line СÐО: Общий режим [13:00:47]line Чек 109 29.10.2024 13:00 [13:00:47]line Смена: 544 ФФД: 1.0 [13:00:47]line ЗÐМ: 0300000110 [13:00:47]line РÐМ: 0000000000091776 [13:00:47]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [13:00:47]line ФМ: 0000000000871754 [13:00:47]line ФД: 192903 [13:00:47]line ФПД: 50980304600475 [13:00:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T130050&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192903&fm=50980304600475&tin=02508201610067®Number=0000000000091776&sum=100000 [13:00:47]OFD Sender: Processing packet 192903 [packets to send 75, broken 74] [13:00:47]ProducePacketName [13:00:47]name=ofd_packets/00192903 [13:00:47]OFD Sender: To server: ‡•öpG, [13:00:47]CommunicateWithHost lk.salyk.kg:30040 [13:00:47]ConnectInit lk.salyk.kg [13:00:47]written 0, free lines is 4095 [13:00:47]Connected sock=10 [13:00: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 6F 40 07 01 72 F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 82 DC 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 2E 5D C6 F2 3D 9B 82 91 AF 09 46 4F 0F 88 [13:00: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 51 8B 47 00 03 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 87 F1 02 00 F4 03 04 00 42 81 20 67 B6 04 01 00 00 60 B2 19 BC 5E 3B 4A B6 [13:00:47]CommunicateWithHost err = 0 [13:00:47]CheckOFDResponse [13:00:47]1017 (14) - 77093643461234 [13:00:47]1041 (16) - 0000000000871754 [13:00:47]1040 (4) - 192903 [13:00:47]1012 (4) - 29.10.2024 06:31 [13:00:47]1206 (1) - 0 [13:00:47]OFD Sender: Remove packet 192903 [13:00:47]ProducePacketName [13:00:47]name=ofd_packets/00192903 [13:00:47]NVStorageDeleteData [13:00:47]Write to MH i2c: 01 00 00 05 39 3E [13:00:47]Write i2c OK [13:00:47]MH_I2C_Read... [13:00:47]Read from MH i2c: 01 [13:00:47]MH_I2C_Read... [13:00:47]Read from MH i2c: 01 07 00 [13:00:47]MH_I2C_Read... [13:00:47]Read from MH i2c: 01 07 00 05 39 00 00 00 00 00 AF 0C 00 [13:00:47]RasterBufferAndPrint [13:00:47]line [13:00:47]line [13:00:47]line [13:00:47]line [13:00:47]line [13:00:47]written 0, free lines is 3253 [13:00:47]MH_Cut [13:00:47]Write to MH i2c: D1 01 00 0C 39 01 17 [13:00:47]Write i2c OK [13:00:47]MH_I2C_Read... [13:00:47]Read from MH i2c: D1 [13:00:47]MH_I2C_Read... [13:00:47]Read from MH i2c: D1 01 00 [13:00:47]MH_I2C_Read... [13:00:47]Read from MH i2c: D1 01 00 0C 39 00 16 [13:00:47]Write to MH i2c: 01 00 00 0D 39 46 [13:00:47]Write i2c OK [13:00:47]MH_I2C_Read... [13:00:48]OFD Sender: No OFD packet to send [13:00:48]*** Cut start [13:00:48]*** Partial cut [13:00:48]*** CUTSNS_PIN = 1 [13:00:48]*** CUTSNS_PIN = 0 [13:00:48]*** Brake cut motor [13:00:49]Read from MH i2c: 01 [13:00:49]MH_I2C_Read... [13:00:49]*** Stop cut motor [13:00:49]*** Cut end [13:00:49]Read from MH i2c: 01 07 00 [13:00:49]MH_I2C_Read... [13:00:49]Read from MH i2c: 01 07 00 0D 39 00 00 00 00 00 FF 0F 5B [13:00:49]process_action close_receipt done [13:00:49]requested_data is exist [13:00:49]produce_requested_data [13:00:49]requested_item fm.sn is exist - process it [13:00:49]wFMCommunicate request_size=4 [13:00:49]MH_SAM_APDU [13:00:49]CAPDU: 80 11 00 00 [13:00:49]Write to MH i2c: E2 08 00 0E 39 80 11 00 00 00 00 00 00 C1 [13:00:49]Write i2c OK [13:00:49]MH_I2C_Read... [13:00:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:49]Read from MH i2c: E2 [13:00:49]MH_I2C_Read... [13:00:49]Read from MH i2c: E2 17 00 [13:00:49]MH_I2C_Read... [13:00:49]Read from MH i2c: E2 17 00 0E 39 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:00: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:00:49]wFMCommunicate OK [13:00:49]requested_item fd.num is exist - process it [13:00:49]SAM_PROTO_GetFieldsCounters [13:00:49]wFMCommunicate request_size=4 [13:00:49]MH_SAM_APDU [13:00:49]CAPDU: 80 13 00 00 [13:00:49]Write to MH i2c: E2 08 00 0F 39 80 13 00 00 00 00 00 00 C4 [13:00:49]Write i2c OK [13:00:49]MH_I2C_Read... [13:00:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:00:49]Read from MH i2c: E2 [13:00:49]MH_I2C_Read... [13:00:49]Read from MH i2c: E2 62 00 [13:00:49]MH_I2C_Read... [13:00:49]Read from MH i2c: E2 62 00 0F 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 87 F1 02 00 0E 04 04 00 20 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 CD [13:00: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 87 F1 02 00 0E 04 04 00 20 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 [13:00:49]wFMCommunicate OK [13:00:49]SAM_PROTO_GetFieldsCounters done [13:00:49]requested_item shift.num is exist - process it [13:00:49]requested_item shift.opened is exist - process it [13:00:49]req_shift_opened [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 10 39 80 13 01 00 00 00 00 00 C6 [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 10 39 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 CC [13:00:49]RAPDU: 09 00 01 46 2D 20 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]req_shift_opened done [13:00:49]requested_item shift.open_date is exist - process it [13:00:49]req_shift_open_date [13:00:49]req_shift_open_date done [13:00:49]produce_requested_data done [13:00:49]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192903,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [13:00:49]process_action_free close_receipt [13:00:49]json_value_free [13:00:49]json_value_free done [13:00:49]process_json_proto returns [13:00:49]Send response to host [13:00:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192903,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [13:00:49]free response buf [13:00:49]execute_script done [13:00:49]execute_script returns [13:00:49]free content buf [13:00:49]Sock 8.Close socket [13:00:49]Sock 8.Thread stoped [13:00:49]accept exits with 9 [13:00:49]New connection [13:00:49]New thread 3066801508 created [13:00:49]Thread 3066658148 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)32235", "tax_sys" : 0, "items" : [ { "pre_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: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)32235", "tax_sys" : 0, "items" : [ { "pre_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: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 11 39 39 [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 11 39 00 86 DC 20 67 22 05 6E 64 24 [13:00:49]GetLastDocTimeStamp 1730206850 [13:00:49]current date 1730206854 [13:00:50]FM_GetShiftState [13:00:50]SAM_PROTO_GetShiftState [13:00:50]wFMCommunicate request_size=4 [13:00:50]MH_SAM_APDU [13:00:50]CAPDU: 80 13 01 00 [13:00:50]Write to MH i2c: E2 08 00 12 39 80 13 01 00 00 00 00 00 C8 [13:00:50]Write i2c OK [13:00:50]MH_I2C_Read... [13:00:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:50]Read from MH i2c: E2 [13:00:50]MH_I2C_Read... [13:00:50]Read from MH i2c: E2 0E 00 [13:00:50]MH_I2C_Read... [13:00:50]Read from MH i2c: E2 0E 00 12 39 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 CE [13:00:50]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [13:00:50]wFMCommunicate OK [13:00:50]SAM_PROTO_GetShiftState done [13:00:50]FM_GetShiftState done [13:00:50]opened in 1730161990 [13:00:50]opened+sec_in_day 1730248390 [13:00:50]quantity*price = 50041 [13:00:50]sum+1 = 50042 [13:00: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 СÐО: Общий режим Чек 110 29.10.2024 13:00 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192904 ФПД: 112059574660537 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T130054&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192904&fm=112059574660537&tin=02508201610067®Number=0000000000091776&sum=50000 [13:00:51]StoreToDocumentArchive [13:00:51]shift 544 fd 192904 [13:00:51]save to /storage/0544/doc_00192904 [13:00:51]save last doc name /storage/0544/doc_00192904 to /storage/kkm_last_doc_name [13:00:51]save OK [13:00:51]Clear old archive folders... [13:00:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:00:51]tlvbuf is B6F30320 [13:00:51]SAM_PROTO_ClearQueue [13:00:51]wFMCommunicate request_size=4 [13:00:51]MH_SAM_APDU [13:00:51]CAPDU: 80 09 00 00 [13:00:51]Write to MH i2c: E2 08 00 1F 39 80 09 00 00 00 00 00 00 CA [13:00:51]Write i2c OK [13:00:51]MH_I2C_Read... [13:00:51]*** iso7816_exchange 80 09 00 00... 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 1F 39 00 90 00 CC [13:00:51]RAPDU: 90 00 [13:00:51]wFMCommunicate OK [13:00:51]SAM_PROTO_ClearQueue done [13:00:51]KKMCreateOFDPacket [13:00:51]OFDProtocolAddRootSTLVToBuf [13:00:51]FM_MakeSignedData [13:00:51]FM_MakeSignedData [13:00:51]SAM_PROTO_SignData [13:00:51]wFMCommunicate request_size=4 [13:00:51]MH_SAM_APDU [13:00:51]CAPDU: 80 0D 01 02 [13:00:51]Write to MH i2c: E2 08 00 20 39 80 0D 01 02 00 00 00 00 D2 [13:00:51]Write i2c OK [13:00:51]MH_I2C_Read... [13:00:51]*** 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 20 39 00 90 00 CD [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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 86 DC 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 65 [13:00:51]Write to MH i2c: E2 02 01 21 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 6E 00 00 00 F4 03 04 00 86 DC 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 65 00 00 BF [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 21 39 00 90 00 CE [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 EA E7 24 2D B9 [13:00:51]Write to MH i2c: E2 0D 00 22 39 80 0D 02 02 05 00 EA E7 24 2D B9 00 00 BA [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 22 39 00 90 00 CF [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 23 39 80 0D 03 02 00 00 00 00 D7 [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 23 39 00 21 04 F1 C6 A9 AD D7 A1 90 00 82 [13:00:51]RAPDU: 21 04 F1 C6 A9 AD D7 A1 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 24 39 80 11 00 00 00 00 00 00 D7 [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 24 39 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:00:52]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:52]wFMCommunicate OK [13:00:52]CreateOFDProtocolMessage done [13:00:52]OFDSenderStorePacket 192904 [13:00:52]StoreOFDPacket docnum=192904 [13:00: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 2E CB 07 01 2C 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 6E 00 00 00 F4 03 04 00 86 DC 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 65 EA E7 24 2D B9 21 04 F1 C6 A9 AD D7 A1 [13:00:52]CheckFolder [13:00:52]dirname=/storage/ofd_packets [13:00:52]CheckFolder done [13:00:52]ProducePacketName [13:00:52]name=ofd_packets/00192904 [13:00:52]NVStorageSaveData ofd_packets/00192904 [13:00:52]File name is /storage/ofd_packets/00192904 [13:00:52]Write 301 bytes [13:00:52]NVStorageSaveData done [13:00:52]OFDSenderStorePacket done [13:00:52]KKMCreateOFDPacket done [13:00:52]NVStorageSaveData kkm_last_timestamp [13:00:52]File name is /storage/kkm_last_timestamp [13:00:52]Write 4 bytes [13:00:52]NVStorageSaveData done [13:00:52]ExternCall_PrintAddStr [13:00:52]wPrintStart [13:00:52]Write to MH i2c: 01 00 00 25 39 5E [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 25 39 00 00 00 00 00 FF 0F 73 [13:00:52]RasterBufferAndPrint [13:00:52]line Счет N : (1)32235 [13:00:52]line ИÐÐ: 02508201610067 [13:00:52]line Контрольно-КаÑÑовый Чек [13:00:52]line ПРОДÐЖР[13:00:52]line ТРК (МРК, ГÐК) : 21 [13:00:52]line Товар: 2710124130 [13:00:52]line Ðи-92-К-5 [13:00:52]line 7.480 * 66.90 [13:00:52]line = 500.41 [13:00:52]line ÐДС 12% ÐСП 1% [13:00:52]line > о реализуемом товаре [13:00:52]line ОКРУГЛЕÐИЕ: -0.41 [13:00:52]line ИТОГО: 500.00 [13:00:52]line ВнеÑено: 500.00 [13:00:52]line СДÐЧÐ: 0.00 [13:00:52]line ÐСП 1% : 4.43 [13:00:52]line ÐДС 12% : 53.14 [13:00:52]line Ðаличными: 500.00 [13:00:52]line Безнал.: 0.00 [13:00:52]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [13:00:52]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [13:00:52]line СÐО: Общий режим [13:00:52]line Чек 110 29.10.2024 13:00 [13:00:52]line Смена: 544 ФФД: 1.0 [13:00:52]line ЗÐМ: 0300000110 [13:00:52]line РÐМ: 0000000000091776 [13:00:52]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [13:00:52]line ФМ: 0000000000871754 [13:00:52]line ФД: 192904 [13:00:52]line ФПД: 112059574660537 [13:00:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T130054&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192904&fm=112059574660537&tin=02508201610067®Number=0000000000091776&sum=50000 [13:00:52]OFD Sender: Processing packet 192904 [packets to send 75, broken 74] [13:00:52]ProducePacketName [13:00:52]name=ofd_packets/00192904 [13:00:52]written 0, free lines is 4095 [13:00:52]OFD Sender: To server: ‡•öpG, [13:00:52]CommunicateWithHost lk.salyk.kg:30040 [13:00:52]ConnectInit lk.salyk.kg [13:00:52]Connected sock=10 [13:00: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 2E CB 07 01 2C 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 6E 00 00 00 F4 03 04 00 86 DC 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 65 EA E7 24 2D B9 21 04 F1 C6 A9 AD D7 A1 [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 F0 A8 47 00 1A 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 88 F1 02 00 F4 03 04 00 47 81 20 67 B6 04 01 00 00 BC 85 01 B9 B7 6F 6F 4F [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) - 192904 [13:00:52]1012 (4) - 29.10.2024 06:31 [13:00:52]1206 (1) - 0 [13:00:52]OFD Sender: Remove packet 192904 [13:00:52]ProducePacketName [13:00:52]name=ofd_packets/00192904 [13:00:52]NVStorageDeleteData [13:00:52]Write to MH i2c: 01 00 00 50 39 89 [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 50 39 00 00 00 00 00 AF 0C 4B [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 3260 [13:00:52]MH_Cut [13:00:52]Write to MH i2c: D1 01 00 57 39 01 62 [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 57 39 00 61 [13:00:52]Write to MH i2c: 01 00 00 58 39 91 [13:00:52]Write i2c OK [13:00:52]MH_I2C_Read... [13:00:53]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:54]Read from MH i2c: 01 [13:00:54]MH_I2C_Read... [13:00:54]*** Stop cut motor [13:00:54]*** Cut end [13:00:54]Read from MH i2c: 01 07 00 [13:00:54]MH_I2C_Read... [13:00:54]Read from MH i2c: 01 07 00 58 39 00 00 00 00 00 FF 0F A6 [13:00:54]process_action close_receipt done [13:00:54]requested_data is exist [13:00:54]produce_requested_data [13:00:54]requested_item fm.sn is exist - process it [13:00:54]wFMCommunicate request_size=4 [13:00:54]MH_SAM_APDU [13:00:54]CAPDU: 80 11 00 00 [13:00:54]Write to MH i2c: E2 08 00 59 39 80 11 00 00 00 00 00 00 0C [13:00:54]Write i2c OK [13:00:54]MH_I2C_Read... [13:00:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:54]Read from MH i2c: E2 [13:00:54]MH_I2C_Read... [13:00:54]Read from MH i2c: E2 17 00 [13:00:54]MH_I2C_Read... [13:00:54]Read from MH i2c: E2 17 00 59 39 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:00:54]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:54]wFMCommunicate OK [13:00:54]requested_item fd.num is exist - process it [13:00:54]SAM_PROTO_GetFieldsCounters [13:00:54]wFMCommunicate request_size=4 [13:00:54]MH_SAM_APDU [13:00:54]CAPDU: 80 13 00 00 [13:00:54]Write to MH i2c: E2 08 00 5A 39 80 13 00 00 00 00 00 00 0F [13:00:54]Write i2c OK [13:00:54]MH_I2C_Read... [13:00:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:00:54]Read from MH i2c: E2 [13:00:54]MH_I2C_Read... [13:00:54]Read from MH i2c: E2 62 00 [13:00:54]MH_I2C_Read... [13:00:54]Read from MH i2c: E2 62 00 5A 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 88 F1 02 00 0E 04 04 00 20 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 1C [13:00: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 88 F1 02 00 0E 04 04 00 20 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 [13:00:54]wFMCommunicate OK [13:00:54]SAM_PROTO_GetFieldsCounters done [13:00:54]requested_item shift.num is exist - process it [13:00:54]requested_item shift.opened is exist - process it [13:00:54]req_shift_opened [13:00:54]FM_GetShiftState [13:00:54]SAM_PROTO_GetShiftState [13:00:54]wFMCommunicate request_size=4 [13:00:54]MH_SAM_APDU [13:00:54]CAPDU: 80 13 01 00 [13:00:54]Write to MH i2c: E2 08 00 5B 39 80 13 01 00 00 00 00 00 11 [13:00:54]Write i2c OK [13:00:54]MH_I2C_Read... [13:00:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:54]Read from MH i2c: E2 [13:00:54]MH_I2C_Read... [13:00:54]Read from MH i2c: E2 0E 00 [13:00:54]MH_I2C_Read... [13:00:54]Read from MH i2c: E2 0E 00 5B 39 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 17 [13:00:54]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [13:00:54]wFMCommunicate OK [13:00:54]SAM_PROTO_GetShiftState done [13:00:54]FM_GetShiftState done [13:00:54]req_shift_opened done [13:00:54]requested_item shift.open_date is exist - process it [13:00:54]req_shift_open_date [13:00:54]req_shift_open_date done [13:00:54]produce_requested_data done [13:00:54]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192904,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [13:00:54]process_action_free close_receipt [13:00:54]json_value_free [13:00:54]json_value_free done [13:00:54]process_json_proto returns [13:00:54]Send response to host [13:00:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192904,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [13:00:54]free response buf [13:00:54]execute_script done [13:00:54]execute_script returns [13:00:54]free content buf [13:00:54]Sock 9.Close socket [13:00:54]Sock 9.Thread stoped [13:00:58]OFD Sender: No OFD packet to send [13:01:03]OFD Sender: No OFD packet to send [13:01:08]OFD Sender: No OFD packet to send [13:01:13]OFD Sender: No OFD packet to send [13:01:18]OFD Sender: No OFD packet to send [13:01:23]OFD Sender: No OFD packet to send [13:01:28]OFD Sender: No OFD packet to send [13:01:33]OFD Sender: No OFD packet to send [13:01:38]OFD Sender: No OFD packet to send [13:01:43]OFD Sender: No OFD packet to send [13:01:48]OFD Sender: No OFD packet to send [13:01:53]OFD Sender: No OFD packet to send [13:01:58]OFD Sender: No OFD packet to send [13:02:03]OFD Sender: No OFD packet to send [13:02:08]OFD Sender: No OFD packet to send [13:02:13]OFD Sender: No OFD packet to send [13:02:18]OFD Sender: No OFD packet to send [13:02:23]OFD Sender: No OFD packet to send [13:02:28]OFD Sender: No OFD packet to send [13:02:33]OFD Sender: No OFD packet to send [13:02:38]OFD Sender: No OFD packet to send [13:02:43]OFD Sender: No OFD packet to send [13:02:48]OFD Sender: No OFD packet to send [13:02:53]OFD Sender: No OFD packet to send [13:02:58]OFD Sender: No OFD packet to send [13:03:03]OFD Sender: No OFD packet to send [13:03:08]OFD Sender: No OFD packet to send [13:03:13]OFD Sender: No OFD packet to send [13:03:18]OFD Sender: No OFD packet to send [13:03:23]OFD Sender: No OFD packet to send [13:03:28]OFD Sender: No OFD packet to send [13:03:33]OFD Sender: No OFD packet to send [13:03:36]accept exits with 8 [13:03:36]New connection [13:03:36]New thread 3066658148 created [13:03:36]Thread 3066801508 joined [13:03:36]Waiting for new connection... [13:03:36] Sock 8.Parse request [13:03:36]Sock 8.Check first char [13:03:36]Sock 8.First char is OK [13:03:36]request: POST /json_proto HTTP/1.0 [13:03:36]Method: POST [13:03:36]URL: /json_proto [13:03:36]Method is POST - this is cgi request [13:03:36]url: /json_proto [13:03:36]query_string will be loaded in cgi processing [13:03:36]execute_cgi json_proto POST (null) [13:03:36]execute_cgi path=json_proto method=POST [13:03:36]POST find Content-Length [13:03:36]Host: 172.17.63.131:8080 [13:03:36]Content-Length: 681 [13:03:36]Content-Type: application/json [13:03:36] [13:03:36]POST finish read [13:03:36]Found Content-Length = 681 [13:03:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32236", "tax_sys" : 0, "items" : [ { "pre_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:03:36]execute_script... [13:03: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)32236", "tax_sys" : 0, "items" : [ { "pre_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:03:36]POST & json_proto [13:03:36]process_json_proto [13:03:36]json parsed OK: [13:03:36]protocol is kg_v1.0 [13:03:36]action value=close_receipt [13:03:36]process_action close_receipt [13:03:36]cmd_close_receipt [13:03:36]MH_GetDate [13:03:36]Write to MH i2c: F0 00 00 5C 39 84 [13:03:36]Write i2c OK [13:03:36]MH_I2C_Read... [13:03:36]Read from MH i2c: F0 [13:03:36]MH_I2C_Read... [13:03:36]Read from MH i2c: F0 09 00 [13:03:36]MH_I2C_Read... [13:03:36]Read from MH i2c: F0 09 00 5C 39 00 2C DD 20 67 22 05 6E 64 16 [13:03:36]GetLastDocTimeStamp 1730206854 [13:03:36]current date 1730207020 [13:03:36]FM_GetShiftState [13:03:36]SAM_PROTO_GetShiftState [13:03:36]wFMCommunicate request_size=4 [13:03:36]MH_SAM_APDU [13:03:36]CAPDU: 80 13 01 00 [13:03:36]Write to MH i2c: E2 08 00 5D 39 80 13 01 00 00 00 00 00 13 [13:03:36]Write i2c OK [13:03:36]MH_I2C_Read... [13:03:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:36]Read from MH i2c: E2 [13:03:36]MH_I2C_Read... [13:03:36]Read from MH i2c: E2 0E 00 [13:03:36]MH_I2C_Read... [13:03:36]Read from MH i2c: E2 0E 00 5D 39 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 19 [13:03:36]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [13:03:36]wFMCommunicate OK [13:03:36]SAM_PROTO_GetShiftState done [13:03:36]FM_GetShiftState done [13:03:36]opened in 1730161990 [13:03:36]opened+sec_in_day 1730248390 [13:03:36]quantity*price = 100015 [13:03:36]sum+1 = 100017 [13:03: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 СÐО: Общий режим Чек 111 29.10.2024 13:03 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192905 ФПД: 26101095954117 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T130340&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192905&fm=26101095954117&tin=02508201610067®Number=0000000000091776&sum=100000 [13:03:37]StoreToDocumentArchive [13:03:37]shift 544 fd 192905 [13:03:37]save to /storage/0544/doc_00192905 [13:03:37]save last doc name /storage/0544/doc_00192905 to /storage/kkm_last_doc_name [13:03:37]save OK [13:03:37]Clear old archive folders... [13:03:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:03:37]tlvbuf is 00FCF8B0 [13:03:37]SAM_PROTO_ClearQueue [13:03:37]wFMCommunicate request_size=4 [13:03:37]MH_SAM_APDU [13:03:37]CAPDU: 80 09 00 00 [13:03:37]Write to MH i2c: E2 08 00 6A 39 80 09 00 00 00 00 00 00 15 [13:03:37]Write i2c OK [13:03:37]MH_I2C_Read... [13:03:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:03:37]Read from MH i2c: E2 [13:03:37]MH_I2C_Read... [13:03:37]Read from MH i2c: E2 03 00 [13:03:37]MH_I2C_Read... [13:03:37]Read from MH i2c: E2 03 00 6A 39 00 90 00 17 [13:03:37]RAPDU: 90 00 [13:03:37]wFMCommunicate OK [13:03:37]SAM_PROTO_ClearQueue done [13:03:37]KKMCreateOFDPacket [13:03:37]OFDProtocolAddRootSTLVToBuf [13:03:37]FM_MakeSignedData [13:03:37]FM_MakeSignedData [13:03:37]SAM_PROTO_SignData [13:03:37]wFMCommunicate request_size=4 [13:03:37]MH_SAM_APDU [13:03:37]CAPDU: 80 0D 01 02 [13:03:37]Write to MH i2c: E2 08 00 6B 39 80 0D 01 02 00 00 00 00 1D [13:03:37]Write i2c OK [13:03:37]MH_I2C_Read... [13:03:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:03:37]Read from MH i2c: E2 [13:03:37]MH_I2C_Read... [13:03:37]Read from MH i2c: E2 03 00 [13:03:37]MH_I2C_Read... [13:03:37]Read from MH i2c: E2 03 00 6B 39 00 90 00 18 [13:03:37]RAPDU: 90 00 [13:03:37]wFMCommunicate OK [13:03:37]wFMCommunicate request_size=255 [13:03:37]MH_SAM_APDU [13:03: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 6F 00 00 00 F4 03 04 00 2C DD 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 17 [13:03:37]Write to MH i2c: E2 02 01 6C 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 6F 00 00 00 F4 03 04 00 2C DD 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 17 00 00 5F [13:03:37]Write i2c OK [13:03:37]MH_I2C_Read... [13:03:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:37]Read from MH i2c: E2 [13:03:37]MH_I2C_Read... [13:03:37]Read from MH i2c: E2 03 00 [13:03:37]MH_I2C_Read... [13:03:37]Read from MH i2c: E2 03 00 6C 39 00 90 00 19 [13:03:37]RAPDU: 90 00 [13:03:37]wFMCommunicate OK [13:03:37]wFMCommunicate request_size=10 [13:03:37]MH_SAM_APDU [13:03:37]CAPDU: 80 0D 02 02 05 BD 22 8D 76 C5 [13:03:37]Write to MH i2c: E2 0D 00 6D 39 80 0D 02 02 05 00 BD 22 8D 76 C5 00 00 D1 [13:03:37]Write i2c OK [13:03:37]MH_I2C_Read... [13:03:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:37]Read from MH i2c: E2 [13:03:37]MH_I2C_Read... [13:03:37]Read from MH i2c: E2 03 00 [13:03:37]MH_I2C_Read... [13:03:37]Read from MH i2c: E2 03 00 6D 39 00 90 00 1A [13:03:37]RAPDU: 90 00 [13:03:37]wFMCommunicate OK [13:03:37]wFMCommunicate request_size=4 [13:03:37]MH_SAM_APDU [13:03:37]CAPDU: 80 0D 03 02 [13:03:37]Write to MH i2c: E2 08 00 6E 39 80 0D 03 02 00 00 00 00 22 [13:03:37]Write i2c OK [13:03:37]MH_I2C_Read... [13:03:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:03:37]Read from MH i2c: E2 [13:03:37]MH_I2C_Read... [13:03:37]Read from MH i2c: E2 0B 00 [13:03:37]MH_I2C_Read... [13:03:37]Read from MH i2c: E2 0B 00 6E 39 00 D5 5A A1 17 B6 97 A2 23 90 00 1C [13:03:37]RAPDU: D5 5A A1 17 B6 97 A2 23 90 00 [13:03:37]wFMCommunicate OK [13:03:37]SAM_PROTO_SignData done [13:03:37]FM_MakeSignedData done [13:03:37]CreateOFDProtocolMessage [13:03:37]wFMCommunicate request_size=4 [13:03:37]MH_SAM_APDU [13:03:37]CAPDU: 80 11 00 00 [13:03:37]Write to MH i2c: E2 08 00 6F 39 80 11 00 00 00 00 00 00 22 [13:03:37]Write i2c OK [13:03:37]MH_I2C_Read... [13:03:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:37]Read from MH i2c: E2 [13:03:37]MH_I2C_Read... [13:03:37]Read from MH i2c: E2 17 00 [13:03:37]MH_I2C_Read... [13:03:37]Read from MH i2c: E2 17 00 6F 39 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:03: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:03:37]wFMCommunicate OK [13:03:37]CreateOFDProtocolMessage done [13:03:37]OFDSenderStorePacket 192905 [13:03:37]StoreOFDPacket docnum=192905 [13:03: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 78 FD 07 01 F2 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 2C DD 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 17 BD 22 8D 76 C5 D5 5A A1 17 B6 97 A2 23 [13:03:37]CheckFolder [13:03:37]dirname=/storage/ofd_packets [13:03:37]CheckFolder done [13:03:37]ProducePacketName [13:03:37]name=ofd_packets/00192905 [13:03:37]NVStorageSaveData ofd_packets/00192905 [13:03:37]File name is /storage/ofd_packets/00192905 [13:03:37]Write 301 bytes [13:03:37]NVStorageSaveData done [13:03:37]OFDSenderStorePacket done [13:03:37]KKMCreateOFDPacket done [13:03:37]NVStorageSaveData kkm_last_timestamp [13:03:37]File name is /storage/kkm_last_timestamp [13:03:37]Write 4 bytes [13:03:37]NVStorageSaveData done [13:03:37]ExternCall_PrintAddStr [13:03:37]wPrintStart [13:03:37]Write to MH i2c: 01 00 00 70 39 A9 [13:03:37]Write i2c OK [13:03:37]MH_I2C_Read... [13:03:37]Read from MH i2c: 01 [13:03:37]MH_I2C_Read... [13:03:37]Read from MH i2c: 01 07 00 [13:03:37]MH_I2C_Read... [13:03:37]Read from MH i2c: 01 07 00 70 39 00 00 00 00 00 FF 0F BE [13:03:37]RasterBufferAndPrint [13:03:37]line Счет N : (1)32236 [13:03:37]line ИÐÐ: 02508201610067 [13:03:37]line Контрольно-КаÑÑовый Чек [13:03:37]line ПРОДÐЖР[13:03:37]line ТРК (МРК, ГÐК) : 21 [13:03:37]line Товар: 2710124130 [13:03:37]line Ðи-92-К-5 [13:03:37]line 14.950 * 66.90 [13:03:37]line = 1000.16 [13:03:37]line ÐДС 12% ÐСП 1% [13:03:37]line > о реализуемом товаре [13:03:37]line ОКРУГЛЕÐИЕ: -0.16 [13:03:37]line ИТОГО: 1000.00 [13:03:37]line ВнеÑено: 1000.00 [13:03:37]line СДÐЧÐ: 0.00 [13:03:37]line ÐСП 1% : 8.85 [13:03:37]line ÐДС 12% : 106.21 [13:03:37]line Ðаличными: 1000.00 [13:03:37]line Безнал.: 0.00 [13:03:37]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [13:03:37]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [13:03:37]line СÐО: Общий режим [13:03:37]line Чек 111 29.10.2024 13:03 [13:03:37]line Смена: 544 ФФД: 1.0 [13:03:37]line ЗÐМ: 0300000110 [13:03:37]line РÐМ: 0000000000091776 [13:03:37]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [13:03:37]line ФМ: 0000000000871754 [13:03:37]line ФД: 192905 [13:03:37]line ФПД: 26101095954117 [13:03:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T130340&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192905&fm=26101095954117&tin=02508201610067®Number=0000000000091776&sum=100000 [13:03:38]OFD Sender: Processing packet 192905 [packets to send 75, broken 74] [13:03:38]ProducePacketName [13:03:38]name=ofd_packets/00192905 [13:03:38]OFD Sender: To server: ‡•öpG, [13:03:38]CommunicateWithHost lk.salyk.kg:30040 [13:03:38]ConnectInit lk.salyk.kg [13:03:38]written 0, free lines is 4095 [13:03:38]Connected sock=10 [13:03: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 78 FD 07 01 F2 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 2C DD 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 17 BD 22 8D 76 C5 D5 5A A1 17 B6 97 A2 23 [13:03: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 DE DC 47 00 33 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 89 F1 02 00 F4 03 04 00 ED 81 20 67 B6 04 01 00 00 D5 EE A8 AE CA B9 43 62 [13:03:38]CommunicateWithHost err = 0 [13:03:38]CheckOFDResponse [13:03:38]1017 (14) - 77093643461234 [13:03:38]1041 (16) - 0000000000871754 [13:03:38]1040 (4) - 192905 [13:03:38]1012 (4) - 29.10.2024 06:34 [13:03:38]1206 (1) - 0 [13:03:38]OFD Sender: Remove packet 192905 [13:03:38]ProducePacketName [13:03:38]name=ofd_packets/00192905 [13:03:38]NVStorageDeleteData [13:03:38]Write to MH i2c: 01 00 00 9B 39 D4 [13:03:38]Write i2c OK [13:03:38]MH_I2C_Read... [13:03:38]Read from MH i2c: 01 [13:03:38]MH_I2C_Read... [13:03:38]Read from MH i2c: 01 07 00 [13:03:38]MH_I2C_Read... [13:03:38]Read from MH i2c: 01 07 00 9B 39 00 00 00 00 00 A5 0C 8C [13:03:38]RasterBufferAndPrint [13:03:38]line [13:03:38]line [13:03:38]line [13:03:38]line [13:03:38]line [13:03:38]written 0, free lines is 3242 [13:03:38]MH_Cut [13:03:38]Write to MH i2c: D1 01 00 A2 39 01 AD [13:03:38]Write i2c OK [13:03:38]MH_I2C_Read... [13:03:38]Read from MH i2c: D1 [13:03:38]MH_I2C_Read... [13:03:38]Read from MH i2c: D1 01 00 [13:03:38]MH_I2C_Read... [13:03:38]Read from MH i2c: D1 01 00 A2 39 00 AC [13:03:38]Write to MH i2c: 01 00 00 A3 39 DC [13:03:38]Write i2c OK [13:03:38]MH_I2C_Read... [13:03:38]OFD Sender: No OFD packet to send [13:03:39]*** Cut start [13:03:39]*** Partial cut [13:03:39]*** CUTSNS_PIN = 1 [13:03:39]*** CUTSNS_PIN = 0 [13:03:39]*** Brake cut motor [13:03:40]Read from MH i2c: 01 [13:03:40]MH_I2C_Read... [13:03:40]*** Stop cut motor [13:03:40]*** Cut end [13:03:40]Read from MH i2c: 01 07 00 [13:03:40]MH_I2C_Read... [13:03:40]Read from MH i2c: 01 07 00 A3 39 00 00 00 00 00 FF 0F F1 [13:03:40]process_action close_receipt done [13:03:40]requested_data is exist [13:03:40]produce_requested_data [13:03:40]requested_item fm.sn is exist - process it [13:03:40]wFMCommunicate request_size=4 [13:03:40]MH_SAM_APDU [13:03:40]CAPDU: 80 11 00 00 [13:03:40]Write to MH i2c: E2 08 00 A4 39 80 11 00 00 00 00 00 00 57 [13:03:40]Write i2c OK [13:03:40]MH_I2C_Read... [13:03:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:40]Read from MH i2c: E2 [13:03:40]MH_I2C_Read... [13:03:40]Read from MH i2c: E2 17 00 [13:03:40]MH_I2C_Read... [13:03:40]Read from MH i2c: E2 17 00 A4 39 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:03: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:03:40]wFMCommunicate OK [13:03:40]requested_item fd.num is exist - process it [13:03:40]SAM_PROTO_GetFieldsCounters [13:03:40]wFMCommunicate request_size=4 [13:03:40]MH_SAM_APDU [13:03:40]CAPDU: 80 13 00 00 [13:03:40]Write to MH i2c: E2 08 00 A5 39 80 13 00 00 00 00 00 00 5A [13:03:40]Write i2c OK [13:03:40]MH_I2C_Read... [13:03:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:03:40]Read from MH i2c: E2 [13:03:40]MH_I2C_Read... [13:03:40]Read from MH i2c: E2 62 00 [13:03:40]MH_I2C_Read... [13:03:40]Read from MH i2c: E2 62 00 A5 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 89 F1 02 00 0E 04 04 00 20 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 6B [13:03: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 89 F1 02 00 0E 04 04 00 20 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 [13:03:40]wFMCommunicate OK [13:03:40]SAM_PROTO_GetFieldsCounters done [13:03:40]requested_item shift.num is exist - process it [13:03:40]requested_item shift.opened is exist - process it [13:03:40]req_shift_opened [13:03:40]FM_GetShiftState [13:03:40]SAM_PROTO_GetShiftState [13:03:40]wFMCommunicate request_size=4 [13:03:40]MH_SAM_APDU [13:03:40]CAPDU: 80 13 01 00 [13:03:40]Write to MH i2c: E2 08 00 A6 39 80 13 01 00 00 00 00 00 5C [13:03:40]Write i2c OK [13:03:40]MH_I2C_Read... [13:03:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:40]Read from MH i2c: E2 [13:03:40]MH_I2C_Read... [13:03:40]Read from MH i2c: E2 0E 00 [13:03:40]MH_I2C_Read... [13:03:40]Read from MH i2c: E2 0E 00 A6 39 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 62 [13:03:40]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [13:03:40]wFMCommunicate OK [13:03:40]SAM_PROTO_GetShiftState done [13:03:40]FM_GetShiftState done [13:03:40]req_shift_opened done [13:03:40]requested_item shift.open_date is exist - process it [13:03:40]req_shift_open_date [13:03:40]req_shift_open_date done [13:03:40]produce_requested_data done [13:03:40]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192905,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [13:03:40]process_action_free close_receipt [13:03:40]json_value_free [13:03:40]json_value_free done [13:03:40]process_json_proto returns [13:03:40]Send response to host [13:03:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192905,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [13:03:40]free response buf [13:03:40]execute_script done [13:03:40]execute_script returns [13:03:40]free content buf [13:03:40]Sock 8.Close socket [13:03:40]Sock 8.Thread stoped [13:03:43]OFD Sender: No OFD packet to send [13:03:48]OFD Sender: No OFD packet to send [13:03:53]OFD Sender: No OFD packet to send [13:03:58]OFD Sender: No OFD packet to send [13:04:03]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:31]accept exits with 9 [13:04:31]New connection [13:04:31]New thread 3066801508 created [13:04:31]Thread 3066658148 joined [13:04:31]Waiting for new connection... [13:04:31] Sock 9.Parse request [13:04:31]Sock 9.Check first char [13:04:31]Sock 9.First char is OK [13:04:31]request: POST /json_proto HTTP/1.0 [13:04:31]Method: POST [13:04:31]URL: /json_proto [13:04:31]Method is POST - this is cgi request [13:04:31]url: /json_proto [13:04:31]query_string will be loaded in cgi processing [13:04:31]execute_cgi json_proto POST (null) [13:04:31]execute_cgi path=json_proto method=POST [13:04:31]POST find Content-Length [13:04:31]Host: 172.17.63.131:8080 [13:04:31]Content-Length: 676 [13:04:31]Content-Type: application/json [13:04:31] [13:04:31]POST finish read [13:04:31]Found Content-Length = 676 [13:04:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32237", "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:04:31]execute_script... [13:04: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)32237", "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:04:31]POST & json_proto [13:04:31]process_json_proto [13:04:31]json parsed OK: [13:04:31]protocol is kg_v1.0 [13:04:31]action value=close_receipt [13:04:31]process_action close_receipt [13:04:31]cmd_close_receipt [13:04:31]MH_GetDate [13:04:31]Write to MH i2c: F0 00 00 A7 39 CF [13:04:31]Write i2c OK [13:04:31]MH_I2C_Read... [13:04:31]Read from MH i2c: F0 [13:04:31]MH_I2C_Read... [13:04:31]Read from MH i2c: F0 09 00 [13:04:31]MH_I2C_Read... [13:04:31]Read from MH i2c: F0 09 00 A7 39 00 64 DD 20 67 22 05 6E 64 99 [13:04:31]GetLastDocTimeStamp 1730207020 [13:04:31]current date 1730207076 [13:04:31]FM_GetShiftState [13:04:31]SAM_PROTO_GetShiftState [13:04:31]wFMCommunicate request_size=4 [13:04:31]MH_SAM_APDU [13:04:31]CAPDU: 80 13 01 00 [13:04:31]Write to MH i2c: E2 08 00 A8 39 80 13 01 00 00 00 00 00 5E [13:04:31]Write i2c OK [13:04:31]MH_I2C_Read... [13:04:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:31]Read from MH i2c: E2 [13:04:31]MH_I2C_Read... [13:04:31]Read from MH i2c: E2 0E 00 [13:04:31]MH_I2C_Read... [13:04:31]Read from MH i2c: E2 0E 00 A8 39 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 64 [13:04:31]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [13:04:31]wFMCommunicate OK [13:04:31]SAM_PROTO_GetShiftState done [13:04:31]FM_GetShiftState done [13:04:31]opened in 1730161990 [13:04:31]opened+sec_in_day 1730248390 [13:04:31]quantity*price = 40006 [13:04:31]sum+1 = 40007 [13:04: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 СÐО: Общий режим Чек 112 29.10.2024 13:04 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192906 ФПД: 39606140306824 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T130436&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192906&fm=39606140306824&tin=02508201610067®Number=0000000000091776&sum=40000 [13:04:32]StoreToDocumentArchive [13:04:32]shift 544 fd 192906 [13:04:32]save to /storage/0544/doc_00192906 [13:04:32]save last doc name /storage/0544/doc_00192906 to /storage/kkm_last_doc_name [13:04:32]save OK [13:04:32]Clear old archive folders... [13:04:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:04:32]tlvbuf is 00FB8430 [13:04:32]SAM_PROTO_ClearQueue [13:04:32]wFMCommunicate request_size=4 [13:04:32]MH_SAM_APDU [13:04:32]CAPDU: 80 09 00 00 [13:04:32]Write to MH i2c: E2 08 00 B5 39 80 09 00 00 00 00 00 00 60 [13:04:32]Write i2c OK [13:04:32]MH_I2C_Read... [13:04:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:04:32]Read from MH i2c: E2 [13:04:32]MH_I2C_Read... [13:04:32]Read from MH i2c: E2 03 00 [13:04:32]MH_I2C_Read... [13:04:32]Read from MH i2c: E2 03 00 B5 39 00 90 00 62 [13:04:32]RAPDU: 90 00 [13:04:32]wFMCommunicate OK [13:04:32]SAM_PROTO_ClearQueue done [13:04:32]KKMCreateOFDPacket [13:04:32]OFDProtocolAddRootSTLVToBuf [13:04:32]FM_MakeSignedData [13:04:32]FM_MakeSignedData [13:04:32]SAM_PROTO_SignData [13:04:32]wFMCommunicate request_size=4 [13:04:32]MH_SAM_APDU [13:04:32]CAPDU: 80 0D 01 02 [13:04:32]Write to MH i2c: E2 08 00 B6 39 80 0D 01 02 00 00 00 00 68 [13:04:32]Write i2c OK [13:04:32]MH_I2C_Read... [13:04:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:04:32]Read from MH i2c: E2 [13:04:32]MH_I2C_Read... [13:04:32]Read from MH i2c: E2 03 00 [13:04:32]MH_I2C_Read... [13:04:32]Read from MH i2c: E2 03 00 B6 39 00 90 00 63 [13:04:32]RAPDU: 90 00 [13:04:32]wFMCommunicate OK [13:04:32]wFMCommunicate request_size=255 [13:04:32]MH_SAM_APDU [13:04: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 70 00 00 00 F4 03 04 00 64 DD 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 24 [13:04:32]Write to MH i2c: E2 02 01 B7 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 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 70 00 00 00 F4 03 04 00 64 DD 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 24 00 00 C6 [13:04:33]Write i2c OK [13:04:33]MH_I2C_Read... [13:04:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:33]Read from MH i2c: E2 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: E2 03 00 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: E2 03 00 B7 39 00 90 00 64 [13:04:33]RAPDU: 90 00 [13:04:33]wFMCommunicate OK [13:04:33]wFMCommunicate request_size=10 [13:04:33]MH_SAM_APDU [13:04:33]CAPDU: 80 0D 02 02 05 05 85 EC 85 88 [13:04:33]Write to MH i2c: E2 0D 00 B8 39 80 0D 02 02 05 00 05 85 EC 85 88 00 00 F8 [13:04:33]Write i2c OK [13:04:33]MH_I2C_Read... [13:04:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:33]Read from MH i2c: E2 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: E2 03 00 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: E2 03 00 B8 39 00 90 00 65 [13:04:33]RAPDU: 90 00 [13:04:33]wFMCommunicate OK [13:04:33]wFMCommunicate request_size=4 [13:04:33]MH_SAM_APDU [13:04:33]CAPDU: 80 0D 03 02 [13:04:33]Write to MH i2c: E2 08 00 B9 39 80 0D 03 02 00 00 00 00 6D [13:04:33]Write i2c OK [13:04:33]MH_I2C_Read... [13:04:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:04:33]Read from MH i2c: E2 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: E2 0B 00 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: E2 0B 00 B9 39 00 12 4E 00 DC CA 99 F4 4E 90 00 4F [13:04:33]RAPDU: 12 4E 00 DC CA 99 F4 4E 90 00 [13:04:33]wFMCommunicate OK [13:04:33]SAM_PROTO_SignData done [13:04:33]FM_MakeSignedData done [13:04:33]CreateOFDProtocolMessage [13:04:33]wFMCommunicate request_size=4 [13:04:33]MH_SAM_APDU [13:04:33]CAPDU: 80 11 00 00 [13:04:33]Write to MH i2c: E2 08 00 BA 39 80 11 00 00 00 00 00 00 6D [13:04:33]Write i2c OK [13:04:33]MH_I2C_Read... [13:04:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:33]Read from MH i2c: E2 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: E2 17 00 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: E2 17 00 BA 39 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:04:33]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:33]wFMCommunicate OK [13:04:33]CreateOFDProtocolMessage done [13:04:33]OFDSenderStorePacket 192906 [13:04:33]StoreOFDPacket docnum=192906 [13:04: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 8F 44 07 01 76 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 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 70 00 00 00 F4 03 04 00 64 DD 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 24 05 85 EC 85 88 12 4E 00 DC CA 99 F4 4E [13:04:33]CheckFolder [13:04:33]dirname=/storage/ofd_packets [13:04:33]CheckFolder done [13:04:33]ProducePacketName [13:04:33]name=ofd_packets/00192906 [13:04:33]NVStorageSaveData ofd_packets/00192906 [13:04:33]File name is /storage/ofd_packets/00192906 [13:04:33]Write 301 bytes [13:04:33]NVStorageSaveData done [13:04:33]OFDSenderStorePacket done [13:04:33]KKMCreateOFDPacket done [13:04:33]NVStorageSaveData kkm_last_timestamp [13:04:33]File name is /storage/kkm_last_timestamp [13:04:33]Write 4 bytes [13:04:33]NVStorageSaveData done [13:04:33]ExternCall_PrintAddStr [13:04:33]wPrintStart [13:04:33]Write to MH i2c: 01 00 00 BB 39 F4 [13:04:33]Write i2c OK [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: 01 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: 01 07 00 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: 01 07 00 BB 39 00 00 00 00 00 FF 0F 09 [13:04:33]RasterBufferAndPrint [13:04:33]line Счет N : (1)32237 [13:04:33]line ИÐÐ: 02508201610067 [13:04:33]line Контрольно-КаÑÑовый Чек [13:04:33]line ПРОДÐЖР[13:04:33]line ТРК (МРК, ГÐК) : 12 [13:04:33]line Товар: 2710124130 [13:04:33]line Ðи-92-К-5 [13:04:33]line 5.980 * 66.90 [13:04:33]line = 400.06 [13:04:33]line ÐДС 12% ÐСП 1% [13:04:33]line > о реализуемом товаре [13:04:33]line ОКРУГЛЕÐИЕ: -0.06 [13:04:33]line ИТОГО: 400.00 [13:04:33]line ВнеÑено: 400.00 [13:04:33]line СДÐЧÐ: 0.00 [13:04:33]line ÐСП 1% : 3.54 [13:04:33]line ÐДС 12% : 42.48 [13:04:33]line Ðаличными: 400.00 [13:04:33]line Безнал.: 0.00 [13:04:33]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [13:04:33]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [13:04:33]line СÐО: Общий режим [13:04:33]line Чек 112 29.10.2024 13:04 [13:04:33]line Смена: 544 ФФД: 1.0 [13:04:33]line ЗÐМ: 0300000110 [13:04:33]line РÐМ: 0000000000091776 [13:04:33]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [13:04:33]line ФМ: 0000000000871754 [13:04:33]line ФД: 192906 [13:04:33]line ФПД: 39606140306824 [13:04:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T130436&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192906&fm=39606140306824&tin=02508201610067®Number=0000000000091776&sum=40000 [13:04:33]OFD Sender: Processing packet 192906 [packets to send 75, broken 74] [13:04:33]ProducePacketName [13:04:33]name=ofd_packets/00192906 [13:04:33]OFD Sender: To server: ‡•öpG, [13:04:33]CommunicateWithHost lk.salyk.kg:30040 [13:04:33]ConnectInit lk.salyk.kg [13:04:33]written 0, free lines is 4095 [13:04:33]Connected sock=10 [13:04: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 8F 44 07 01 76 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 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 70 00 00 00 F4 03 04 00 64 DD 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 24 05 85 EC 85 88 12 4E 00 DC CA 99 F4 4E [13:04: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 C1 1E 47 00 C5 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 8A F1 02 00 F4 03 04 00 25 82 20 67 B6 04 01 00 00 C4 40 C9 8A 16 81 AB 38 [13:04:34]CommunicateWithHost err = 0 [13:04:34]CheckOFDResponse [13:04:34]1017 (14) - 77093643461234 [13:04:34]1041 (16) - 0000000000871754 [13:04:34]1040 (4) - 192906 [13:04:34]1012 (4) - 29.10.2024 06:35 [13:04:34]1206 (1) - 0 [13:04:34]OFD Sender: Remove packet 192906 [13:04:34]ProducePacketName [13:04:34]name=ofd_packets/00192906 [13:04:34]NVStorageDeleteData [13:04:34]Write to MH i2c: 01 00 00 E6 39 1F [13:04:34]Write i2c OK [13:04:34]MH_I2C_Read... [13:04:34]Read from MH i2c: 01 [13:04:34]MH_I2C_Read... [13:04:34]Read from MH i2c: 01 07 00 [13:04:34]MH_I2C_Read... [13:04:34]Read from MH i2c: 01 07 00 E6 39 00 00 00 00 00 A9 0C DB [13:04:34]RasterBufferAndPrint [13:04:34]line [13:04:34]line [13:04:34]line [13:04:34]line [13:04:34]line [13:04:34]written 0, free lines is 3247 [13:04:34]MH_Cut [13:04:34]Write to MH i2c: D1 01 00 ED 39 01 F8 [13:04:34]Write i2c OK [13:04:34]MH_I2C_Read... [13:04:34]Read from MH i2c: D1 [13:04:34]MH_I2C_Read... [13:04:34]Read from MH i2c: D1 01 00 [13:04:34]MH_I2C_Read... [13:04:34]Read from MH i2c: D1 01 00 ED 39 00 F7 [13:04:34]Write to MH i2c: 01 00 00 EE 39 27 [13:04:34]Write i2c OK [13:04:34]MH_I2C_Read... [13:04:34]OFD Sender: No OFD packet to send [13:04:35]*** Cut start [13:04:35]*** Partial cut [13:04:35]*** CUTSNS_PIN = 1 [13:04:35]*** CUTSNS_PIN = 0 [13:04:35]*** Brake cut motor [13:04:35]Read from MH i2c: 01 [13:04:35]MH_I2C_Read... [13:04:35]*** Stop cut motor [13:04:35]*** Cut end [13:04:35]Read from MH i2c: 01 07 00 [13:04:35]MH_I2C_Read... [13:04:35]Read from MH i2c: 01 07 00 EE 39 00 00 00 00 00 FF 0F 3C [13:04:35]process_action close_receipt done [13:04:35]requested_data is exist [13:04:35]produce_requested_data [13:04:35]requested_item fm.sn is exist - process it [13:04:35]wFMCommunicate request_size=4 [13:04:35]MH_SAM_APDU [13:04:35]CAPDU: 80 11 00 00 [13:04:35]Write to MH i2c: E2 08 00 EF 39 80 11 00 00 00 00 00 00 A2 [13:04:35]Write i2c OK [13:04:35]MH_I2C_Read... [13:04:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:35]Read from MH i2c: E2 [13:04:35]MH_I2C_Read... [13:04:35]Read from MH i2c: E2 17 00 [13:04:35]MH_I2C_Read... [13:04:35]Read from MH i2c: E2 17 00 EF 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F5 [13:04:35]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:35]wFMCommunicate OK [13:04:35]requested_item fd.num is exist - process it [13:04:35]SAM_PROTO_GetFieldsCounters [13:04:35]wFMCommunicate request_size=4 [13:04:35]MH_SAM_APDU [13:04:35]CAPDU: 80 13 00 00 [13:04:35]Write to MH i2c: E2 08 00 F0 39 80 13 00 00 00 00 00 00 A5 [13:04:35]Write i2c OK [13:04:35]MH_I2C_Read... [13:04:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:04:35]Read from MH i2c: E2 [13:04:35]MH_I2C_Read... [13:04:35]Read from MH i2c: E2 62 00 [13:04:35]MH_I2C_Read... [13:04:35]Read from MH i2c: E2 62 00 F0 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 8A F1 02 00 0E 04 04 00 20 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 BA [13:04:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 F1 02 00 0E 04 04 00 20 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 [13:04:35]wFMCommunicate OK [13:04:35]SAM_PROTO_GetFieldsCounters done [13:04:35]requested_item shift.num is exist - process it [13:04:35]requested_item shift.opened is exist - process it [13:04:35]req_shift_opened [13:04:35]FM_GetShiftState [13:04:35]SAM_PROTO_GetShiftState [13:04:35]wFMCommunicate request_size=4 [13:04:35]MH_SAM_APDU [13:04:35]CAPDU: 80 13 01 00 [13:04:35]Write to MH i2c: E2 08 00 F1 39 80 13 01 00 00 00 00 00 A7 [13:04:35]Write i2c OK [13:04:35]MH_I2C_Read... [13:04:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:35]Read from MH i2c: E2 [13:04:35]MH_I2C_Read... [13:04:35]Read from MH i2c: E2 0E 00 [13:04:35]MH_I2C_Read... [13:04:35]Read from MH i2c: E2 0E 00 F1 39 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 AD [13:04:35]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [13:04:35]wFMCommunicate OK [13:04:35]SAM_PROTO_GetShiftState done [13:04:35]FM_GetShiftState done [13:04:35]req_shift_opened done [13:04:35]requested_item shift.open_date is exist - process it [13:04:35]req_shift_open_date [13:04:35]req_shift_open_date done [13:04:35]produce_requested_data done [13:04:35]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192906,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [13:04:35]process_action_free close_receipt [13:04:35]json_value_free [13:04:35]json_value_free done [13:04:35]process_json_proto returns [13:04:35]Send response to host [13:04:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192906,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [13:04:35]free response buf [13:04:35]execute_script done [13:04:35]execute_script returns [13:04:35]free content buf [13:04:35]Sock 9.Close socket [13:04:35]Sock 9.Thread stoped [13:04:39]OFD Sender: No OFD packet to send [13:04:44]OFD Sender: No OFD packet to send [13:04:49]OFD Sender: No OFD packet to send [13:04:54]OFD Sender: No OFD packet to send [13:04:59]OFD Sender: No OFD packet to send [13:05:04]OFD Sender: No OFD packet to send [13:05:09]OFD Sender: No OFD packet to send [13:05:14]OFD Sender: No OFD packet to send [13:05:19]OFD Sender: No OFD packet to send [13:05:24]OFD Sender: No OFD packet to send [13:05:29]OFD Sender: No OFD packet to send [13:05:34]OFD Sender: No OFD packet to send [13:05:39]OFD Sender: No OFD packet to send [13:05:44]OFD Sender: No OFD packet to send [13:05:49]OFD Sender: No OFD packet to send [13:05:54]OFD Sender: No OFD packet to send [13:05:59]OFD Sender: No OFD packet to send [13:06:04]OFD Sender: No OFD packet to send [13:06:09]OFD Sender: No OFD packet to send [13:06:14]OFD Sender: No OFD packet to send [13:06:19]OFD Sender: No OFD packet to send [13:06:24]OFD Sender: No OFD packet to send [13:06:29]OFD Sender: No OFD packet to send [13:06:34]OFD Sender: No OFD packet to send [13:06:39]OFD Sender: No OFD packet to send [13:06:44]OFD Sender: No OFD packet to send [13:06:49]OFD Sender: No OFD packet to send [13:06:54]OFD Sender: No OFD packet to send [13:06:59]OFD Sender: No OFD packet to send [13:07:04]OFD Sender: No OFD packet to send [13:07:09]OFD Sender: No OFD packet to send [13:07:14]OFD Sender: No OFD packet to send [13:07:19]OFD Sender: No OFD packet to send [13:07:24]OFD Sender: No OFD packet to send [13:07:27]accept exits with 8 [13:07:27]New connection [13:07:27]New thread 3066658148 created [13:07:27]Thread 3066801508 joined [13:07:27]Waiting for new connection... [13:07:27] Sock 8.Parse request [13:07:27]Sock 8.Check first char [13:07:27]Sock 8.First char is OK [13:07:27]request: POST /json_proto HTTP/1.0 [13:07:27]Method: POST [13:07:27]URL: /json_proto [13:07:27]Method is POST - this is cgi request [13:07:27]url: /json_proto [13:07:27]query_string will be loaded in cgi processing [13:07:27]execute_cgi json_proto POST (null) [13:07:27]execute_cgi path=json_proto method=POST [13:07:27]POST find Content-Length [13:07:27]Host: 172.17.63.131:8080 [13:07:27]Content-Length: 676 [13:07:27]Content-Type: application/json [13:07:27] [13:07:27]POST finish read [13:07:27]Found Content-Length = 676 [13:07:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32238", "tax_sys" : 0, "items" : [ { "pre_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" ] } } [13:07:27]execute_script... [13: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)32238", "tax_sys" : 0, "items" : [ { "pre_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" ] } } [13:07:27]POST & json_proto [13:07:27]process_json_proto [13:07:27]json parsed OK: [13:07:27]protocol is kg_v1.0 [13:07:27]action value=close_receipt [13:07:27]process_action close_receipt [13:07:27]cmd_close_receipt [13:07:27]MH_GetDate [13:07:27]Write to MH i2c: F0 00 00 F2 39 1A [13:07:27]Write i2c OK [13:07:27]MH_I2C_Read... [13:07:27]Read from MH i2c: F0 [13:07:27]MH_I2C_Read... [13:07:27]Read from MH i2c: F0 09 00 [13:07:27]MH_I2C_Read... [13:07:27]Read from MH i2c: F0 09 00 F2 39 00 13 DE 20 67 22 05 6E 64 94 [13:07:27]GetLastDocTimeStamp 1730207076 [13:07:27]current date 1730207251 [13:07:27]FM_GetShiftState [13:07:27]SAM_PROTO_GetShiftState [13:07:27]wFMCommunicate request_size=4 [13:07:27]MH_SAM_APDU [13:07:27]CAPDU: 80 13 01 00 [13:07:27]Write to MH i2c: E2 08 00 F3 39 80 13 01 00 00 00 00 00 A9 [13:07:27]Write i2c OK [13:07:27]MH_I2C_Read... [13:07:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:27]Read from MH i2c: E2 [13:07:27]MH_I2C_Read... [13:07:27]Read from MH i2c: E2 0E 00 [13:07:27]MH_I2C_Read... [13:07:27]Read from MH i2c: E2 0E 00 F3 39 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 AF [13:07:27]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [13:07:27]wFMCommunicate OK [13:07:27]SAM_PROTO_GetShiftState done [13:07:27]FM_GetShiftState done [13:07:27]opened in 1730161990 [13:07:27]opened+sec_in_day 1730248390 [13:07:27]quantity*price = 60009 [13:07:27]sum+1 = 60010 [13: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 СÐО: Общий режим Чек 113 29.10.2024 13:07 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192907 ФПД: 69759184781303 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T130731&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192907&fm=69759184781303&tin=02508201610067®Number=0000000000091776&sum=60000 [13:07:28]StoreToDocumentArchive [13:07:28]shift 544 fd 192907 [13:07:28]save to /storage/0544/doc_00192907 [13:07:28]save last doc name /storage/0544/doc_00192907 to /storage/kkm_last_doc_name [13:07:28]save OK [13:07:28]Clear old archive folders... [13:07:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:07:28]tlvbuf is 00EFDD60 [13:07:28]SAM_PROTO_ClearQueue [13:07:28]wFMCommunicate request_size=4 [13:07:28]MH_SAM_APDU [13:07:28]CAPDU: 80 09 00 00 [13:07:28]Write to MH i2c: E2 08 00 00 3A 80 09 00 00 00 00 00 00 AC [13:07:28]Write i2c OK [13:07:28]MH_I2C_Read... [13:07:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:07:28]Read from MH i2c: E2 [13:07:28]MH_I2C_Read... [13:07:28]Read from MH i2c: E2 03 00 [13:07:28]MH_I2C_Read... [13:07:28]Read from MH i2c: E2 03 00 00 3A 00 90 00 AE [13:07:28]RAPDU: 90 00 [13:07:28]wFMCommunicate OK [13:07:28]SAM_PROTO_ClearQueue done [13:07:28]KKMCreateOFDPacket [13:07:28]OFDProtocolAddRootSTLVToBuf [13:07:28]FM_MakeSignedData [13:07:28]FM_MakeSignedData [13:07:28]SAM_PROTO_SignData [13:07:28]wFMCommunicate request_size=4 [13:07:28]MH_SAM_APDU [13:07:28]CAPDU: 80 0D 01 02 [13:07:28]Write to MH i2c: E2 08 00 01 3A 80 0D 01 02 00 00 00 00 B4 [13:07:28]Write i2c OK [13:07:28]MH_I2C_Read... [13:07:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:07:28]Read from MH i2c: E2 [13:07:28]MH_I2C_Read... [13:07:28]Read from MH i2c: E2 03 00 [13:07:28]MH_I2C_Read... [13:07:28]Read from MH i2c: E2 03 00 01 3A 00 90 00 AF [13:07:28]RAPDU: 90 00 [13:07:28]wFMCommunicate OK [13:07:28]wFMCommunicate request_size=255 [13:07:28]MH_SAM_APDU [13:07:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 71 00 00 00 F4 03 04 00 13 DE 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 3F [13:07:28]Write to MH i2c: E2 02 01 02 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 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 71 00 00 00 F4 03 04 00 13 DE 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 3F 00 00 ED [13:07:28]Write i2c OK [13:07:28]MH_I2C_Read... [13:07:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:28]Read from MH i2c: E2 [13:07:28]MH_I2C_Read... [13:07:28]Read from MH i2c: E2 03 00 [13:07:28]MH_I2C_Read... [13:07:28]Read from MH i2c: E2 03 00 02 3A 00 90 00 B0 [13:07:28]RAPDU: 90 00 [13:07:28]wFMCommunicate OK [13:07:28]wFMCommunicate request_size=10 [13:07:28]MH_SAM_APDU [13:07:28]CAPDU: 80 0D 02 02 05 72 13 6D BF F7 [13:07:28]Write to MH i2c: E2 0D 00 03 3A 80 0D 02 02 05 00 72 13 6D BF F7 00 00 69 [13:07:28]Write i2c OK [13:07:28]MH_I2C_Read... [13:07:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:28]Read from MH i2c: E2 [13:07:28]MH_I2C_Read... [13:07:28]Read from MH i2c: E2 03 00 [13:07:28]MH_I2C_Read... [13:07:28]Read from MH i2c: E2 03 00 03 3A 00 90 00 B1 [13:07:28]RAPDU: 90 00 [13:07:28]wFMCommunicate OK [13:07:28]wFMCommunicate request_size=4 [13:07:28]MH_SAM_APDU [13:07:28]CAPDU: 80 0D 03 02 [13:07:28]Write to MH i2c: E2 08 00 04 3A 80 0D 03 02 00 00 00 00 B9 [13:07:28]Write i2c OK [13:07:28]MH_I2C_Read... [13:07:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:07:28]Read from MH i2c: E2 [13:07:28]MH_I2C_Read... [13:07:28]Read from MH i2c: E2 0B 00 [13:07:28]MH_I2C_Read... [13:07:28]Read from MH i2c: E2 0B 00 04 3A 00 19 5A 20 0A E7 F2 17 54 90 00 9B [13:07:28]RAPDU: 19 5A 20 0A E7 F2 17 54 90 00 [13:07:28]wFMCommunicate OK [13:07:28]SAM_PROTO_SignData done [13:07:28]FM_MakeSignedData done [13:07:28]CreateOFDProtocolMessage [13:07:28]wFMCommunicate request_size=4 [13:07:28]MH_SAM_APDU [13:07:28]CAPDU: 80 11 00 00 [13:07:28]Write to MH i2c: E2 08 00 05 3A 80 11 00 00 00 00 00 00 B9 [13:07:28]Write i2c OK [13:07:28]MH_I2C_Read... [13:07:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:28]Read from MH i2c: E2 [13:07:28]MH_I2C_Read... [13:07:28]Read from MH i2c: E2 17 00 [13:07:28]MH_I2C_Read... [13:07:28]Read from MH i2c: E2 17 00 05 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0C [13:07:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:07:28]wFMCommunicate OK [13:07:28]CreateOFDProtocolMessage done [13:07:28]OFDSenderStorePacket 192907 [13:07:28]StoreOFDPacket docnum=192907 [13:07: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 D8 B3 07 01 A7 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 71 00 00 00 F4 03 04 00 13 DE 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 3F 72 13 6D BF F7 19 5A 20 0A E7 F2 17 54 [13:07:28]CheckFolder [13:07:28]dirname=/storage/ofd_packets [13:07:28]CheckFolder done [13:07:28]ProducePacketName [13:07:28]name=ofd_packets/00192907 [13:07:28]NVStorageSaveData ofd_packets/00192907 [13:07:28]File name is /storage/ofd_packets/00192907 [13:07:28]Write 301 bytes [13:07:28]NVStorageSaveData done [13:07:28]OFDSenderStorePacket done [13:07:28]KKMCreateOFDPacket done [13:07:28]NVStorageSaveData kkm_last_timestamp [13:07:28]File name is /storage/kkm_last_timestamp [13:07:28]Write 4 bytes [13:07:28]NVStorageSaveData done [13:07:28]ExternCall_PrintAddStr [13:07:28]wPrintStart [13:07:28]Write to MH i2c: 01 00 00 06 3A 40 [13:07:28]Write i2c OK [13:07:28]MH_I2C_Read... [13:07:28]Read from MH i2c: 01 [13:07:28]MH_I2C_Read... [13:07:28]Read from MH i2c: 01 07 00 [13:07:28]MH_I2C_Read... [13:07:28]Read from MH i2c: 01 07 00 06 3A 00 00 00 00 00 FF 0F 55 [13:07:28]RasterBufferAndPrint [13:07:28]line Счет N : (1)32238 [13:07:28]line ИÐÐ: 02508201610067 [13:07:28]line Контрольно-КаÑÑовый Чек [13:07:28]line ПРОДÐЖР[13:07:28]line ТРК (МРК, ГÐК) : 21 [13:07:28]line Товар: 2710124130 [13:07:28]line Ðи-92-К-5 [13:07:28]line 8.970 * 66.90 [13:07:28]line = 600.09 [13:07:28]line ÐДС 12% ÐСП 1% [13:07:28]line > о реализуемом товаре [13:07:28]line ОКРУГЛЕÐИЕ: -0.09 [13:07:28]line ИТОГО: 600.00 [13:07:28]line ВнеÑено: 600.00 [13:07:28]line СДÐЧÐ: 0.00 [13:07:28]line ÐСП 1% : 5.31 [13:07:28]line ÐДС 12% : 63.73 [13:07:28]line Ðаличными: 600.00 [13:07:28]line Безнал.: 0.00 [13:07:28]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [13:07:28]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [13:07:28]line СÐО: Общий режим [13:07:28]line Чек 113 29.10.2024 13:07 [13:07:28]line Смена: 544 ФФД: 1.0 [13:07:28]line ЗÐМ: 0300000110 [13:07:28]line РÐМ: 0000000000091776 [13:07:28]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [13:07:28]line ФМ: 0000000000871754 [13:07:28]line ФД: 192907 [13:07:28]line ФПД: 69759184781303 [13:07:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T130731&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192907&fm=69759184781303&tin=02508201610067®Number=0000000000091776&sum=60000 [13:07:29]OFD Sender: Processing packet 192907 [packets to send 75, broken 74] [13:07:29]ProducePacketName [13:07:29]name=ofd_packets/00192907 [13:07:29]OFD Sender: To server: ‡•öpG, [13:07:29]CommunicateWithHost lk.salyk.kg:30040 [13:07:29]ConnectInit lk.salyk.kg [13:07:29]written 0, free lines is 4095 [13:07:29]Connected sock=10 [13: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 D8 B3 07 01 A7 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 71 00 00 00 F4 03 04 00 13 DE 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 3F 72 13 6D BF F7 19 5A 20 0A E7 F2 17 54 [13:07:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 93 FD 47 00 ED 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 8B F1 02 00 F4 03 04 00 D4 82 20 67 B6 04 01 00 00 F2 E1 DF 54 E4 6A 39 11 [13:07:29]CommunicateWithHost err = 0 [13:07:29]CheckOFDResponse [13:07:29]1017 (14) - 77093643461234 [13:07:29]1041 (16) - 0000000000871754 [13:07:29]1040 (4) - 192907 [13:07:29]1012 (4) - 29.10.2024 06:38 [13:07:29]1206 (1) - 0 [13:07:29]OFD Sender: Remove packet 192907 [13:07:29]ProducePacketName [13:07:29]name=ofd_packets/00192907 [13:07:29]NVStorageDeleteData [13:07:29]Write to MH i2c: 01 00 00 31 3A 6B [13:07:29]Write i2c OK [13:07:29]MH_I2C_Read... [13:07:29]Read from MH i2c: 01 [13:07:29]MH_I2C_Read... [13:07:29]Read from MH i2c: 01 07 00 [13:07:29]MH_I2C_Read... [13:07:29]Read from MH i2c: 01 07 00 31 3A 00 00 00 00 00 B4 0C 32 [13:07:29]RasterBufferAndPrint [13:07:29]line [13:07:29]line [13:07:29]line [13:07:29]line [13:07:29]line [13:07:29]written 0, free lines is 3258 [13:07:29]MH_Cut [13:07:29]Write to MH i2c: D1 01 00 38 3A 01 44 [13:07:29]Write i2c OK [13:07:29]MH_I2C_Read... [13:07:29]Read from MH i2c: D1 [13:07:29]MH_I2C_Read... [13:07:29]Read from MH i2c: D1 01 00 [13:07:29]MH_I2C_Read... [13:07:29]Read from MH i2c: D1 01 00 38 3A 00 43 [13:07:29]Write to MH i2c: 01 00 00 39 3A 73 [13:07:29]Write i2c OK [13:07:29]MH_I2C_Read... [13:07:29]OFD Sender: No OFD packet to send [13:07:30]*** Cut start [13:07:30]*** Partial cut [13:07:30]*** CUTSNS_PIN = 1 [13:07:30]*** CUTSNS_PIN = 0 [13:07:30]*** Brake cut motor [13:07:31]Read from MH i2c: 01 [13:07:31]MH_I2C_Read... [13:07:31]*** Stop cut motor [13:07:31]*** Cut end [13:07:31]Read from MH i2c: 01 07 00 [13:07:31]MH_I2C_Read... [13:07:31]Read from MH i2c: 01 07 00 39 3A 00 00 00 00 00 FF 0F 88 [13:07:31]process_action close_receipt done [13:07:31]requested_data is exist [13:07:31]produce_requested_data [13:07:31]requested_item fm.sn is exist - process it [13:07:31]wFMCommunicate request_size=4 [13:07:31]MH_SAM_APDU [13:07:31]CAPDU: 80 11 00 00 [13:07:31]Write to MH i2c: E2 08 00 3A 3A 80 11 00 00 00 00 00 00 EE [13:07:31]Write i2c OK [13:07:31]MH_I2C_Read... [13:07:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:31]Read from MH i2c: E2 [13:07:31]MH_I2C_Read... [13:07:31]Read from MH i2c: E2 17 00 [13:07:31]MH_I2C_Read... [13:07:31]Read from MH i2c: E2 17 00 3A 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 41 [13: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 [13:07:31]wFMCommunicate OK [13:07:31]requested_item fd.num is exist - process it [13:07:31]SAM_PROTO_GetFieldsCounters [13:07:31]wFMCommunicate request_size=4 [13:07:31]MH_SAM_APDU [13:07:31]CAPDU: 80 13 00 00 [13:07:31]Write to MH i2c: E2 08 00 3B 3A 80 13 00 00 00 00 00 00 F1 [13:07:31]Write i2c OK [13:07:31]MH_I2C_Read... [13:07:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:07:31]Read from MH i2c: E2 [13:07:31]MH_I2C_Read... [13:07:31]Read from MH i2c: E2 62 00 [13:07:31]MH_I2C_Read... [13:07:31]Read from MH i2c: E2 62 00 3B 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 8B F1 02 00 0E 04 04 00 20 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 0A [13:07:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 F1 02 00 0E 04 04 00 20 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 [13:07:31]wFMCommunicate OK [13:07:31]SAM_PROTO_GetFieldsCounters done [13:07:31]requested_item shift.num is exist - process it [13:07:31]requested_item shift.opened is exist - process it [13:07:31]req_shift_opened [13:07:31]FM_GetShiftState [13:07:31]SAM_PROTO_GetShiftState [13:07:31]wFMCommunicate request_size=4 [13:07:31]MH_SAM_APDU [13:07:31]CAPDU: 80 13 01 00 [13:07:31]Write to MH i2c: E2 08 00 3C 3A 80 13 01 00 00 00 00 00 F3 [13:07:31]Write i2c OK [13:07:31]MH_I2C_Read... [13:07:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:31]Read from MH i2c: E2 [13:07:31]MH_I2C_Read... [13:07:31]Read from MH i2c: E2 0E 00 [13:07:31]MH_I2C_Read... [13:07:31]Read from MH i2c: E2 0E 00 3C 3A 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 F9 [13:07:31]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [13:07:31]wFMCommunicate OK [13:07:31]SAM_PROTO_GetShiftState done [13:07:31]FM_GetShiftState done [13:07:31]req_shift_opened done [13:07:31]requested_item shift.open_date is exist - process it [13:07:31]req_shift_open_date [13:07:31]req_shift_open_date done [13:07:31]produce_requested_data done [13:07:31]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192907,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [13:07:31]process_action_free close_receipt [13:07:31]json_value_free [13:07:31]json_value_free done [13:07:31]process_json_proto returns [13:07:31]Send response to host [13:07:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192907,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [13:07:31]free response buf [13:07:31]execute_script done [13:07:31]execute_script returns [13:07:31]free content buf [13:07:31]Sock 8.Close socket [13:07:31]Sock 8.Thread stoped [13:07:34]OFD Sender: No OFD packet to send [13:07:39]OFD Sender: No OFD packet to send [13:07:44]OFD Sender: No OFD packet to send [13:07:49]OFD Sender: No OFD packet to send [13:07:54]OFD Sender: No OFD packet to send [13:07:59]OFD Sender: No OFD packet to send [13:08:04]OFD Sender: No OFD packet to send [13:08:09]OFD Sender: No OFD packet to send [13:08:14]OFD Sender: No OFD packet to send [13:08:19]OFD Sender: No OFD packet to send [13:08:24]OFD Sender: No OFD packet to send [13:08:29]OFD Sender: No OFD packet to send [13:08:34]OFD Sender: No OFD packet to send [13:08:40]OFD Sender: No OFD packet to send [13:08:45]OFD Sender: No OFD packet to send [13:08:50]OFD Sender: No OFD packet to send [13:08:55]OFD Sender: No OFD packet to send [13:09:00]OFD Sender: No OFD packet to send [13:09:05]OFD Sender: No OFD packet to send [13:09:10]OFD Sender: No OFD packet to send [13:09:15]OFD Sender: No OFD packet to send [13:09:20]OFD Sender: No OFD packet to send [13:09:25]OFD Sender: No OFD packet to send [13:09:30]OFD Sender: No OFD packet to send [13:09:35]OFD Sender: No OFD packet to send [13:09:40]OFD Sender: No OFD packet to send [13:09:45]OFD Sender: No OFD packet to send [13:09:50]OFD Sender: No OFD packet to send [13:09:55]OFD Sender: No OFD packet to send [13:10:00]OFD Sender: No OFD packet to send [13:10:05]OFD Sender: No OFD packet to send [13:10:07]accept exits with 9 [13:10:07]New connection [13:10:07]New thread 3066801508 created [13:10:07]Thread 3066658148 joined [13:10:07]Waiting for new connection... [13:10:07] Sock 9.Parse request [13:10:07]Sock 9.Check first char [13:10:07]Sock 9.First char is OK [13:10:07]request: POST /json_proto HTTP/1.0 [13:10:07]Method: POST [13:10:07]URL: /json_proto [13:10:07]Method is POST - this is cgi request [13:10:07]url: /json_proto [13:10:07]query_string will be loaded in cgi processing [13:10:07]execute_cgi json_proto POST (null) [13:10:07]execute_cgi path=json_proto method=POST [13:10:07]POST find Content-Length [13:10:07]Host: 172.17.63.131:8080 [13:10:07]Content-Length: 673 [13:10:07]Content-Type: application/json [13:10:07] [13:10:07]POST finish read [13:10:07]Found Content-Length = 673 [13:10:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32239", "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" : 7.620, "sum" : 580.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 580.00, "total" : 580.00, "payments": [ { "type": 0, "sum" : 580.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:07]execute_script... [13:10:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32239", "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" : 7.620, "sum" : 580.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 580.00, "total" : 580.00, "payments": [ { "type": 0, "sum" : 580.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:07]POST & json_proto [13:10:07]process_json_proto [13:10:07]json parsed OK: [13:10:07]protocol is kg_v1.0 [13:10:07]action value=close_receipt [13:10:07]process_action close_receipt [13:10:07]cmd_close_receipt [13:10:07]MH_GetDate [13:10:07]Write to MH i2c: F0 00 00 3D 3A 66 [13:10:07]Write i2c OK [13:10:07]MH_I2C_Read... [13:10:07]Read from MH i2c: F0 [13:10:07]MH_I2C_Read... [13:10:07]Read from MH i2c: F0 09 00 [13:10:07]MH_I2C_Read... [13:10:07]Read from MH i2c: F0 09 00 3D 3A 00 B4 DE 20 67 22 05 6E 64 81 [13:10:07]GetLastDocTimeStamp 1730207251 [13:10:07]current date 1730207412 [13:10:07]FM_GetShiftState [13:10:07]SAM_PROTO_GetShiftState [13:10:07]wFMCommunicate request_size=4 [13:10:07]MH_SAM_APDU [13:10:07]CAPDU: 80 13 01 00 [13:10:07]Write to MH i2c: E2 08 00 3E 3A 80 13 01 00 00 00 00 00 F5 [13:10:07]Write i2c OK [13:10:07]MH_I2C_Read... [13:10:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:07]Read from MH i2c: E2 [13:10:07]MH_I2C_Read... [13:10:07]Read from MH i2c: E2 0E 00 [13:10:07]MH_I2C_Read... [13:10:07]Read from MH i2c: E2 0E 00 3E 3A 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 FB [13:10:07]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [13:10:07]wFMCommunicate OK [13:10:07]SAM_PROTO_GetShiftState done [13:10:07]FM_GetShiftState done [13:10:07]opened in 1730161990 [13:10:07]opened+sec_in_day 1730248390 [13:10:07]quantity*price = 58064 [13:10:07]sum+1 = 58065 [13:10:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.64 ИТОГО: 580.00 ВнеÑено: 580.00 СДÐЧÐ: 0.00 ÐСП 1% : 5.14 ÐДС 12% : 61.66 Ðаличными: 580.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 170 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 СÐО: Общий режим Чек 114 29.10.2024 13:10 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192908 ФПД: 269600261057191 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T131012&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192908&fm=269600261057191&tin=02508201610067®Number=0000000000091776&sum=58000 [13:10:08]StoreToDocumentArchive [13:10:08]shift 544 fd 192908 [13:10:08]save to /storage/0544/doc_00192908 [13:10:08]save last doc name /storage/0544/doc_00192908 to /storage/kkm_last_doc_name [13:10:08]save OK [13:10:08]Clear old archive folders... [13:10:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:10:08]tlvbuf is 00F942F0 [13:10:08]SAM_PROTO_ClearQueue [13:10:08]wFMCommunicate request_size=4 [13:10:08]MH_SAM_APDU [13:10:08]CAPDU: 80 09 00 00 [13:10:08]Write to MH i2c: E2 08 00 4B 3A 80 09 00 00 00 00 00 00 F7 [13:10:08]Write i2c OK [13:10:08]MH_I2C_Read... [13:10:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:10:08]Read from MH i2c: E2 [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: E2 03 00 [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: E2 03 00 4B 3A 00 90 00 F9 [13:10:08]RAPDU: 90 00 [13:10:08]wFMCommunicate OK [13:10:08]SAM_PROTO_ClearQueue done [13:10:08]KKMCreateOFDPacket [13:10:08]OFDProtocolAddRootSTLVToBuf [13:10:08]FM_MakeSignedData [13:10:08]FM_MakeSignedData [13:10:08]SAM_PROTO_SignData [13:10:08]wFMCommunicate request_size=4 [13:10:08]MH_SAM_APDU [13:10:08]CAPDU: 80 0D 01 02 [13:10:08]Write to MH i2c: E2 08 00 4C 3A 80 0D 01 02 00 00 00 00 FF [13:10:08]Write i2c OK [13:10:08]MH_I2C_Read... [13:10:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:10:08]Read from MH i2c: E2 [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: E2 03 00 [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: E2 03 00 4C 3A 00 90 00 FA [13:10:08]RAPDU: 90 00 [13:10:08]wFMCommunicate OK [13:10:08]wFMCommunicate request_size=255 [13:10:08]MH_SAM_APDU [13:10: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 C4 1D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D0 E2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 E2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 18 00 00 00 00 07 04 06 00 90 E2 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 B4 DE 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 F5 33 33 CA [13:10:08]Write to MH i2c: E2 02 01 4D 3A 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 C4 1D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D0 E2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 E2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 18 00 00 00 00 07 04 06 00 90 E2 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 B4 DE 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 F5 33 33 CA 00 00 3C [13:10:08]Write i2c OK [13:10:08]MH_I2C_Read... [13:10:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:08]Read from MH i2c: E2 [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: E2 03 00 [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: E2 03 00 4D 3A 00 90 00 FB [13:10:08]RAPDU: 90 00 [13:10:08]wFMCommunicate OK [13:10:08]wFMCommunicate request_size=7 [13:10:08]MH_SAM_APDU [13:10:08]CAPDU: 80 0D 02 02 02 AA A7 [13:10:08]Write to MH i2c: E2 0A 00 4E 3A 80 0D 02 02 02 00 AA A7 00 00 57 [13:10:08]Write i2c OK [13:10:08]MH_I2C_Read... [13:10:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:08]Read from MH i2c: E2 [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: E2 03 00 [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: E2 03 00 4E 3A 00 90 00 FC [13:10:08]RAPDU: 90 00 [13:10:08]wFMCommunicate OK [13:10:08]wFMCommunicate request_size=4 [13:10:08]MH_SAM_APDU [13:10:08]CAPDU: 80 0D 03 02 [13:10:08]Write to MH i2c: E2 08 00 4F 3A 80 0D 03 02 00 00 00 00 04 [13:10:08]Write i2c OK [13:10:08]MH_I2C_Read... [13:10:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:10:08]Read from MH i2c: E2 [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: E2 0B 00 [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: E2 0B 00 4F 3A 00 52 D9 B2 71 F7 34 8E 0D 90 00 19 [13:10:08]RAPDU: 52 D9 B2 71 F7 34 8E 0D 90 00 [13:10:08]wFMCommunicate OK [13:10:08]SAM_PROTO_SignData done [13:10:08]FM_MakeSignedData done [13:10:08]CreateOFDProtocolMessage [13:10:08]wFMCommunicate request_size=4 [13:10:08]MH_SAM_APDU [13:10:08]CAPDU: 80 11 00 00 [13:10:08]Write to MH i2c: E2 08 00 50 3A 80 11 00 00 00 00 00 00 04 [13:10:08]Write i2c OK [13:10:08]MH_I2C_Read... [13:10:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:08]Read from MH i2c: E2 [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: E2 17 00 [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: E2 17 00 50 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 57 [13: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 [13:10:08]wFMCommunicate OK [13:10:08]CreateOFDProtocolMessage done [13:10:08]OFDSenderStorePacket 192908 [13:10:08]StoreOFDPacket docnum=192908 [13:10: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 B4 64 04 01 0B 03 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C4 1D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D0 E2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 E2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 18 00 00 00 00 07 04 06 00 90 E2 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 B4 DE 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 F5 33 33 CA AA A7 52 D9 B2 71 F7 34 8E 0D [13:10:08]CheckFolder [13:10:08]dirname=/storage/ofd_packets [13:10:08]CheckFolder done [13:10:08]ProducePacketName [13:10:08]name=ofd_packets/00192908 [13:10:08]NVStorageSaveData ofd_packets/00192908 [13:10:08]File name is /storage/ofd_packets/00192908 [13:10:08]Write 298 bytes [13:10:08]NVStorageSaveData done [13:10:08]OFDSenderStorePacket done [13:10:08]KKMCreateOFDPacket done [13:10:08]NVStorageSaveData kkm_last_timestamp [13:10:08]File name is /storage/kkm_last_timestamp [13:10:08]Write 4 bytes [13:10:08]NVStorageSaveData done [13:10:08]ExternCall_PrintAddStr [13:10:08]wPrintStart [13:10:08]Write to MH i2c: 01 00 00 51 3A 8B [13:10:08]Write i2c OK [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: 01 [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: 01 07 00 [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: 01 07 00 51 3A 00 00 00 00 00 FF 0F A0 [13:10:08]RasterBufferAndPrint [13:10:08]line Счет N : (1)32239 [13:10:08]line ИÐÐ: 02508201610067 [13:10:08]line Контрольно-КаÑÑовый Чек [13:10:08]line ПРОДÐЖР[13:10:08]line ТРК (МРК, ГÐК) : 11 [13:10:08]line Товар: 2710194210 [13:10:08]line ДТ-К-5 [13:10:08]line 7.620 * 76.20 [13:10:08]line = 580.64 [13:10:08]line ÐДС 12% ÐСП 1% [13:10:08]line > о реализуемом товаре [13:10:08]line ОКРУГЛЕÐИЕ: -0.64 [13:10:08]line ИТОГО: 580.00 [13:10:08]line ВнеÑено: 580.00 [13:10:08]line СДÐЧÐ: 0.00 [13:10:08]line ÐСП 1% : 5.14 [13:10:08]line ÐДС 12% : 61.66 [13:10:08]line Ðаличными: 580.00 [13:10:08]line Безнал.: 0.00 [13:10:08]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [13:10:08]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [13:10:08]line СÐО: Общий режим [13:10:08]line Чек 114 29.10.2024 13:10 [13:10:08]line Смена: 544 ФФД: 1.0 [13:10:08]line ЗÐМ: 0300000110 [13:10:08]line РÐМ: 0000000000091776 [13:10:08]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [13:10:08]line ФМ: 0000000000871754 [13:10:08]line ФД: 192908 [13:10:08]line ФПД: 269600261057191 [13:10:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T131012&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192908&fm=269600261057191&tin=02508201610067®Number=0000000000091776&sum=58000 [13:10:09]OFD Sender: Processing packet 192908 [packets to send 75, broken 74] [13:10:09]ProducePacketName [13:10:09]name=ofd_packets/00192908 [13:10:09]OFD Sender: To server: ‡•öpG, [13:10:09]CommunicateWithHost lk.salyk.kg:30040 [13:10:09]ConnectInit lk.salyk.kg [13:10:09]written 0, free lines is 4095 [13:10:09]Connected sock=10 [13:10:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 B4 64 04 01 0B 03 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C4 1D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D0 E2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 E2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 18 00 00 00 00 07 04 06 00 90 E2 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 B4 DE 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 F5 33 33 CA AA A7 52 D9 B2 71 F7 34 8E 0D [13:10: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 95 B0 47 00 18 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 8C F1 02 00 F4 03 04 00 74 83 20 67 B6 04 01 00 00 00 39 56 27 DB 19 0D 53 [13:10:09]CommunicateWithHost err = 0 [13:10:09]CheckOFDResponse [13:10:09]1017 (14) - 77093643461234 [13:10:09]1041 (16) - 0000000000871754 [13:10:09]1040 (4) - 192908 [13:10:09]1012 (4) - 29.10.2024 06:40 [13:10:09]1206 (1) - 0 [13:10:09]OFD Sender: Remove packet 192908 [13:10:09]ProducePacketName [13:10:09]name=ofd_packets/00192908 [13:10:09]NVStorageDeleteData [13:10:09]Write to MH i2c: 01 00 00 7C 3A B6 [13:10:09]Write i2c OK [13:10:09]MH_I2C_Read... [13:10:09]Read from MH i2c: 01 [13:10:09]MH_I2C_Read... [13:10:09]Read from MH i2c: 01 07 00 [13:10:09]MH_I2C_Read... [13:10:09]Read from MH i2c: 01 07 00 7C 3A 00 00 00 00 00 B0 0C 79 [13:10:09]RasterBufferAndPrint [13:10:09]line [13:10:09]line [13:10:09]line [13:10:09]line [13:10:09]line [13:10:09]written 0, free lines is 3257 [13:10:09]MH_Cut [13:10:09]Write to MH i2c: D1 01 00 83 3A 01 8F [13:10:09]Write i2c OK [13:10:09]MH_I2C_Read... [13:10:09]Read from MH i2c: D1 [13:10:09]MH_I2C_Read... [13:10:09]Read from MH i2c: D1 01 00 [13:10:09]MH_I2C_Read... [13:10:09]Read from MH i2c: D1 01 00 83 3A 00 8E [13:10:09]Write to MH i2c: 01 00 00 84 3A BE [13:10:09]Write i2c OK [13:10:09]MH_I2C_Read... [13:10:10]OFD Sender: No OFD packet to send [13:10:10]*** Cut start [13:10:10]*** Partial cut [13:10:10]*** CUTSNS_PIN = 1 [13:10:10]*** CUTSNS_PIN = 0 [13:10:10]*** Brake cut motor [13:10:11]Read from MH i2c: 01 [13:10:11]MH_I2C_Read... [13:10:11]*** Stop cut motor [13:10:11]*** Cut end [13:10:11]Read from MH i2c: 01 07 00 [13:10:11]MH_I2C_Read... [13:10:11]Read from MH i2c: 01 07 00 84 3A 00 00 00 00 00 FF 0F D3 [13:10:11]process_action close_receipt done [13:10:11]requested_data is exist [13:10:11]produce_requested_data [13:10:11]requested_item fm.sn is exist - process it [13:10:11]wFMCommunicate request_size=4 [13:10:11]MH_SAM_APDU [13:10:11]CAPDU: 80 11 00 00 [13:10:11]Write to MH i2c: E2 08 00 85 3A 80 11 00 00 00 00 00 00 39 [13:10:11]Write i2c OK [13:10:11]MH_I2C_Read... [13:10:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:11]Read from MH i2c: E2 [13:10:11]MH_I2C_Read... [13:10:11]Read from MH i2c: E2 17 00 [13:10:11]MH_I2C_Read... [13:10:11]Read from MH i2c: E2 17 00 85 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8C [13:10: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:10:11]wFMCommunicate OK [13:10:11]requested_item fd.num is exist - process it [13:10:11]SAM_PROTO_GetFieldsCounters [13:10:11]wFMCommunicate request_size=4 [13:10:11]MH_SAM_APDU [13:10:11]CAPDU: 80 13 00 00 [13:10:11]Write to MH i2c: E2 08 00 86 3A 80 13 00 00 00 00 00 00 3C [13:10:11]Write i2c OK [13:10:11]MH_I2C_Read... [13:10:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:10:11]Read from MH i2c: E2 [13:10:11]MH_I2C_Read... [13:10:11]Read from MH i2c: E2 62 00 [13:10:11]MH_I2C_Read... [13:10:11]Read from MH i2c: E2 62 00 86 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 8C F1 02 00 0E 04 04 00 20 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 59 [13:10:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 F1 02 00 0E 04 04 00 20 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 [13:10:11]wFMCommunicate OK [13:10:11]SAM_PROTO_GetFieldsCounters done [13:10:11]requested_item shift.num is exist - process it [13:10:11]requested_item shift.opened is exist - process it [13:10:11]req_shift_opened [13:10:11]FM_GetShiftState [13:10:11]SAM_PROTO_GetShiftState [13:10:11]wFMCommunicate request_size=4 [13:10:11]MH_SAM_APDU [13:10:11]CAPDU: 80 13 01 00 [13:10:11]Write to MH i2c: E2 08 00 87 3A 80 13 01 00 00 00 00 00 3E [13:10:11]Write i2c OK [13:10:11]MH_I2C_Read... [13:10:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:11]Read from MH i2c: E2 [13:10:11]MH_I2C_Read... [13:10:11]Read from MH i2c: E2 0E 00 [13:10:11]MH_I2C_Read... [13:10:11]Read from MH i2c: E2 0E 00 87 3A 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 44 [13:10:11]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [13:10:11]wFMCommunicate OK [13:10:11]SAM_PROTO_GetShiftState done [13:10:11]FM_GetShiftState done [13:10:11]req_shift_opened done [13:10:11]requested_item shift.open_date is exist - process it [13:10:11]req_shift_open_date [13:10:11]req_shift_open_date done [13:10:11]produce_requested_data done [13:10:11]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192908,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [13:10:11]process_action_free close_receipt [13:10:11]json_value_free [13:10:11]json_value_free done [13:10:11]process_json_proto returns [13:10:11]Send response to host [13:10:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192908,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [13:10:11]free response buf [13:10:11]execute_script done [13:10:11]execute_script returns [13:10:11]free content buf [13:10:11]Sock 9.Close socket [13:10:11]Sock 9.Thread stoped [13:10:15]OFD Sender: No OFD packet to send [13:10:20]OFD Sender: No OFD packet to send [13:10:25]OFD Sender: No OFD packet to send [13:10:30]OFD Sender: No OFD packet to send [13:10:35]OFD Sender: No OFD packet to send [13:10:40]OFD Sender: No OFD packet to send [13:10:41]accept exits with 8 [13:10:41]New connection [13:10:41]New thread 3066658148 created [13:10:41]Thread 3066801508 joined [13:10:41]Waiting for new connection... [13:10:41] Sock 8.Parse request [13:10:41]Sock 8.Check first char [13:10:41]Sock 8.First char is OK [13:10:41]request: POST /json_proto HTTP/1.0 [13:10:41]Method: POST [13:10:41]URL: /json_proto [13:10:41]Method is POST - this is cgi request [13:10:41]url: /json_proto [13:10:41]query_string will be loaded in cgi processing [13:10:41]execute_cgi json_proto POST (null) [13:10:41]execute_cgi path=json_proto method=POST [13:10:41]POST find Content-Length [13:10:41]Host: 172.17.63.131:8080 [13:10:41]Content-Length: 681 [13:10:41]Content-Type: application/json [13:10:41] [13:10:41]POST finish read [13:10:41]Found Content-Length = 681 [13:10:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32240", "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" ] } } [13:10:41]execute_script... [13:10:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32240", "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" ] } } [13:10:41]POST & json_proto [13:10:41]process_json_proto [13:10:41]json parsed OK: [13:10:41]protocol is kg_v1.0 [13:10:41]action value=close_receipt [13:10:41]process_action close_receipt [13:10:41]cmd_close_receipt [13:10:41]MH_GetDate [13:10:41]Write to MH i2c: F0 00 00 88 3A B1 [13:10:41]Write i2c OK [13:10:41]MH_I2C_Read... [13:10:41]Read from MH i2c: F0 [13:10:41]MH_I2C_Read... [13:10:41]Read from MH i2c: F0 09 00 [13:10:41]MH_I2C_Read... [13:10:41]Read from MH i2c: F0 09 00 88 3A 00 D6 DE 20 67 22 05 6E 64 EE [13:10:41]GetLastDocTimeStamp 1730207412 [13:10:41]current date 1730207446 [13:10:41]FM_GetShiftState [13:10:41]SAM_PROTO_GetShiftState [13:10:41]wFMCommunicate request_size=4 [13:10:41]MH_SAM_APDU [13:10:41]CAPDU: 80 13 01 00 [13:10:41]Write to MH i2c: E2 08 00 89 3A 80 13 01 00 00 00 00 00 40 [13:10:41]Write i2c OK [13:10:41]MH_I2C_Read... [13:10:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:41]Read from MH i2c: E2 [13:10:41]MH_I2C_Read... [13:10:41]Read from MH i2c: E2 0E 00 [13:10:41]MH_I2C_Read... [13:10:41]Read from MH i2c: E2 0E 00 89 3A 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 46 [13:10:41]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [13:10:41]wFMCommunicate OK [13:10:41]SAM_PROTO_GetShiftState done [13:10:41]FM_GetShiftState done [13:10:41]opened in 1730161990 [13:10:41]opened+sec_in_day 1730248390 [13:10:41]quantity*price = 100015 [13:10:41]sum+1 = 100017 [13:10:41]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 СÐО: Общий режим Чек 115 29.10.2024 13:10 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192909 ФПД: 209666883538364 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T131046&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192909&fm=209666883538364&tin=02508201610067®Number=0000000000091776&sum=100000 [13:10:42]StoreToDocumentArchive [13:10:42]shift 544 fd 192909 [13:10:42]save to /storage/0544/doc_00192909 [13:10:42]save last doc name /storage/0544/doc_00192909 to /storage/kkm_last_doc_name [13:10:42]save OK [13:10:42]Clear old archive folders... [13:10:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:10:42]tlvbuf is 0103CC60 [13:10:42]SAM_PROTO_ClearQueue [13:10:42]wFMCommunicate request_size=4 [13:10:42]MH_SAM_APDU [13:10:42]CAPDU: 80 09 00 00 [13:10:42]Write to MH i2c: E2 08 00 96 3A 80 09 00 00 00 00 00 00 42 [13:10:42]Write i2c OK [13:10:42]MH_I2C_Read... [13:10:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:10:42]Read from MH i2c: E2 [13:10:42]MH_I2C_Read... [13:10:42]Read from MH i2c: E2 03 00 [13:10:42]MH_I2C_Read... [13:10:42]Read from MH i2c: E2 03 00 96 3A 00 90 00 44 [13:10:42]RAPDU: 90 00 [13:10:42]wFMCommunicate OK [13:10:42]SAM_PROTO_ClearQueue done [13:10:42]KKMCreateOFDPacket [13:10:42]OFDProtocolAddRootSTLVToBuf [13:10:42]FM_MakeSignedData [13:10:42]FM_MakeSignedData [13:10:42]SAM_PROTO_SignData [13:10:42]wFMCommunicate request_size=4 [13:10:42]MH_SAM_APDU [13:10:42]CAPDU: 80 0D 01 02 [13:10:42]Write to MH i2c: E2 08 00 97 3A 80 0D 01 02 00 00 00 00 4A [13:10:42]Write i2c OK [13:10:42]MH_I2C_Read... [13:10:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:10:42]Read from MH i2c: E2 [13:10:42]MH_I2C_Read... [13:10:42]Read from MH i2c: E2 03 00 [13:10:42]MH_I2C_Read... [13:10:42]Read from MH i2c: E2 03 00 97 3A 00 90 00 45 [13:10:42]RAPDU: 90 00 [13:10:42]wFMCommunicate OK [13:10:42]wFMCommunicate request_size=255 [13:10:42]MH_SAM_APDU [13:10: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 D6 DE 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 BE [13:10:42]Write to MH i2c: E2 02 01 98 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 73 00 00 00 F4 03 04 00 D6 DE 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 BE 00 00 E6 [13:10:42]Write i2c OK [13:10:42]MH_I2C_Read... [13:10:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:43]Read from MH i2c: E2 [13:10:43]MH_I2C_Read... [13:10:43]Read from MH i2c: E2 03 00 [13:10:43]MH_I2C_Read... [13:10:43]Read from MH i2c: E2 03 00 98 3A 00 90 00 46 [13:10:43]RAPDU: 90 00 [13:10:43]wFMCommunicate OK [13:10:43]wFMCommunicate request_size=10 [13:10:43]MH_SAM_APDU [13:10:43]CAPDU: 80 0D 02 02 05 B0 E0 1D 4D BC [13:10:43]Write to MH i2c: E2 0D 00 99 3A 80 0D 02 02 05 00 B0 E0 1D 4D BC 00 00 0D [13:10:43]Write i2c OK [13:10:43]MH_I2C_Read... [13:10:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:43]Read from MH i2c: E2 [13:10:43]MH_I2C_Read... [13:10:43]Read from MH i2c: E2 03 00 [13:10:43]MH_I2C_Read... [13:10:43]Read from MH i2c: E2 03 00 99 3A 00 90 00 47 [13:10:43]RAPDU: 90 00 [13:10:43]wFMCommunicate OK [13:10:43]wFMCommunicate request_size=4 [13:10:43]MH_SAM_APDU [13:10:43]CAPDU: 80 0D 03 02 [13:10:43]Write to MH i2c: E2 08 00 9A 3A 80 0D 03 02 00 00 00 00 4F [13:10:43]Write i2c OK [13:10:43]MH_I2C_Read... [13:10:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:10:43]Read from MH i2c: E2 [13:10:43]MH_I2C_Read... [13:10:43]Read from MH i2c: E2 0B 00 [13:10:43]MH_I2C_Read... [13:10:43]Read from MH i2c: E2 0B 00 9A 3A 00 5E 2F 08 51 AC 4A A0 29 90 00 F5 [13:10:43]RAPDU: 5E 2F 08 51 AC 4A A0 29 90 00 [13:10:43]wFMCommunicate OK [13:10:43]SAM_PROTO_SignData done [13:10:43]FM_MakeSignedData done [13:10:43]CreateOFDProtocolMessage [13:10:43]wFMCommunicate request_size=4 [13:10:43]MH_SAM_APDU [13:10:43]CAPDU: 80 11 00 00 [13:10:43]Write to MH i2c: E2 08 00 9B 3A 80 11 00 00 00 00 00 00 4F [13:10:43]Write i2c OK [13:10:43]MH_I2C_Read... [13:10:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:43]Read from MH i2c: E2 [13:10:43]MH_I2C_Read... [13:10:43]Read from MH i2c: E2 17 00 [13:10:43]MH_I2C_Read... [13:10:43]Read from MH i2c: E2 17 00 9B 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A2 [13: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 [13:10:43]wFMCommunicate OK [13:10:43]CreateOFDProtocolMessage done [13:10:43]OFDSenderStorePacket 192909 [13:10:43]StoreOFDPacket docnum=192909 [13:10: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 9C 49 07 01 EC 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 D6 DE 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 BE B0 E0 1D 4D BC 5E 2F 08 51 AC 4A A0 29 [13:10:43]CheckFolder [13:10:43]dirname=/storage/ofd_packets [13:10:43]CheckFolder done [13:10:43]ProducePacketName [13:10:43]name=ofd_packets/00192909 [13:10:43]NVStorageSaveData ofd_packets/00192909 [13:10:43]File name is /storage/ofd_packets/00192909 [13:10:43]Write 301 bytes [13:10:43]NVStorageSaveData done [13:10:43]OFDSenderStorePacket done [13:10:43]KKMCreateOFDPacket done [13:10:43]NVStorageSaveData kkm_last_timestamp [13:10:43]File name is /storage/kkm_last_timestamp [13:10:43]Write 4 bytes [13:10:43]NVStorageSaveData done [13:10:43]ExternCall_PrintAddStr [13:10:43]wPrintStart [13:10:43]Write to MH i2c: 01 00 00 9C 3A D6 [13:10:43]Write i2c OK [13:10:43]MH_I2C_Read... [13:10:43]Read from MH i2c: 01 [13:10:43]MH_I2C_Read... [13:10:43]Read from MH i2c: 01 07 00 [13:10:43]MH_I2C_Read... [13:10:43]Read from MH i2c: 01 07 00 9C 3A 00 00 00 00 00 FF 0F EB [13:10:43]RasterBufferAndPrint [13:10:43]line Счет N : (1)32240 [13:10:43]line ИÐÐ: 02508201610067 [13:10:43]line Контрольно-КаÑÑовый Чек [13:10:43]line ПРОДÐЖР[13:10:43]line ТРК (МРК, ГÐК) : 12 [13:10:43]line Товар: 2710124130 [13:10:43]line Ðи-92-К-5 [13:10:43]line 14.950 * 66.90 [13:10:43]line = 1000.16 [13:10:43]line ÐДС 12% ÐСП 1% [13:10:43]line > о реализуемом товаре [13:10:43]line ОКРУГЛЕÐИЕ: -0.16 [13:10:43]line ИТОГО: 1000.00 [13:10:43]line ВнеÑено: 1000.00 [13:10:43]line СДÐЧÐ: 0.00 [13:10:43]line ÐСП 1% : 8.85 [13:10:43]line ÐДС 12% : 106.21 [13:10:43]line Ðаличными: 1000.00 [13:10:43]line Безнал.: 0.00 [13:10:43]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [13:10:43]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [13:10:43]line СÐО: Общий режим [13:10:43]line Чек 115 29.10.2024 13:10 [13:10:43]line Смена: 544 ФФД: 1.0 [13:10:43]line ЗÐМ: 0300000110 [13:10:43]line РÐМ: 0000000000091776 [13:10:43]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [13:10:43]line ФМ: 0000000000871754 [13:10:43]line ФД: 192909 [13:10:43]line ФПД: 209666883538364 [13:10:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T131046&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192909&fm=209666883538364&tin=02508201610067®Number=0000000000091776&sum=100000 [13:10:43]OFD Sender: Processing packet 192909 [packets to send 75, broken 74] [13:10:43]ProducePacketName [13:10:43]name=ofd_packets/00192909 [13:10:43]OFD Sender: To server: ‡•öpG, [13:10:43]CommunicateWithHost lk.salyk.kg:30040 [13:10:43]ConnectInit lk.salyk.kg [13:10:43]written 0, free lines is 4095 [13:10:43]Connected sock=10 [13:10:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 9C 49 07 01 EC 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 D6 DE 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 BE B0 E0 1D 4D BC 5E 2F 08 51 AC 4A A0 29 [13:10:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 6D AF 47 00 8D 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 8D F1 02 00 F4 03 04 00 96 83 20 67 B6 04 01 00 00 AF AB C8 58 90 8A 24 B0 [13:10:43]CommunicateWithHost err = 0 [13:10:43]CheckOFDResponse [13:10:43]1017 (14) - 77093643461234 [13:10:43]1041 (16) - 0000000000871754 [13:10:43]1040 (4) - 192909 [13:10:43]1012 (4) - 29.10.2024 06:41 [13:10:43]1206 (1) - 0 [13:10:43]OFD Sender: Remove packet 192909 [13:10:43]ProducePacketName [13:10:43]name=ofd_packets/00192909 [13:10:43]NVStorageDeleteData [13:10:44]Write to MH i2c: 01 00 00 C7 3A 01 [13:10:44]Write i2c OK [13:10:44]MH_I2C_Read... [13:10:44]Read from MH i2c: 01 [13:10:44]MH_I2C_Read... [13:10:44]Read from MH i2c: 01 07 00 [13:10:44]MH_I2C_Read... [13:10:44]Read from MH i2c: 01 07 00 C7 3A 00 00 00 00 00 B1 0C C5 [13:10:44]RasterBufferAndPrint [13:10:44]line [13:10:44]line [13:10:44]line [13:10:44]line [13:10:44]line [13:10:44]written 0, free lines is 3254 [13:10:44]MH_Cut [13:10:44]Write to MH i2c: D1 01 00 CE 3A 01 DA [13:10:44]Write i2c OK [13:10:44]MH_I2C_Read... [13:10:44]Read from MH i2c: D1 [13:10:44]MH_I2C_Read... [13:10:44]Read from MH i2c: D1 01 00 [13:10:44]MH_I2C_Read... [13:10:44]Read from MH i2c: D1 01 00 CE 3A 00 D9 [13:10:44]Write to MH i2c: 01 00 00 CF 3A 09 [13:10:44]Write i2c OK [13:10:44]MH_I2C_Read... [13:10:44]OFD Sender: No OFD packet to send [13:10:44]*** Cut start [13:10:44]*** Partial cut [13:10:44]*** CUTSNS_PIN = 1 [13:10:44]*** CUTSNS_PIN = 0 [13:10:45]*** Brake cut motor [13:10:45]Read from MH i2c: 01 [13:10:45]MH_I2C_Read... [13:10:45]*** Stop cut motor [13:10:45]*** Cut end [13:10:45]Read from MH i2c: 01 07 00 [13:10:45]MH_I2C_Read... [13:10:45]Read from MH i2c: 01 07 00 CF 3A 00 00 00 00 00 FF 0F 1E [13:10:45]process_action close_receipt done [13:10:45]requested_data is exist [13:10:45]produce_requested_data [13:10:45]requested_item fm.sn is exist - process it [13:10:45]wFMCommunicate request_size=4 [13:10:45]MH_SAM_APDU [13:10:45]CAPDU: 80 11 00 00 [13:10:45]Write to MH i2c: E2 08 00 D0 3A 80 11 00 00 00 00 00 00 84 [13:10:45]Write i2c OK [13:10:45]MH_I2C_Read... [13:10:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:45]Read from MH i2c: E2 [13:10:45]MH_I2C_Read... [13:10:45]Read from MH i2c: E2 17 00 [13:10:45]MH_I2C_Read... [13:10:45]Read from MH i2c: E2 17 00 D0 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D7 [13:10: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:10:45]wFMCommunicate OK [13:10:45]requested_item fd.num is exist - process it [13:10:45]SAM_PROTO_GetFieldsCounters [13:10:45]wFMCommunicate request_size=4 [13:10:45]MH_SAM_APDU [13:10:45]CAPDU: 80 13 00 00 [13:10:45]Write to MH i2c: E2 08 00 D1 3A 80 13 00 00 00 00 00 00 87 [13:10:45]Write i2c OK [13:10:45]MH_I2C_Read... [13:10:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:10:45]Read from MH i2c: E2 [13:10:45]MH_I2C_Read... [13:10:45]Read from MH i2c: E2 62 00 [13:10:45]MH_I2C_Read... [13:10:45]Read from MH i2c: E2 62 00 D1 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 8D F1 02 00 0E 04 04 00 20 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 A8 [13:10: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 8D F1 02 00 0E 04 04 00 20 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 [13:10:45]wFMCommunicate OK [13:10:45]SAM_PROTO_GetFieldsCounters done [13:10:45]requested_item shift.num is exist - process it [13:10:45]requested_item shift.opened is exist - process it [13:10:45]req_shift_opened [13:10:45]FM_GetShiftState [13:10:45]SAM_PROTO_GetShiftState [13:10:45]wFMCommunicate request_size=4 [13:10:45]MH_SAM_APDU [13:10:45]CAPDU: 80 13 01 00 [13:10:45]Write to MH i2c: E2 08 00 D2 3A 80 13 01 00 00 00 00 00 89 [13:10:45]Write i2c OK [13:10:45]MH_I2C_Read... [13:10:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:45]Read from MH i2c: E2 [13:10:45]MH_I2C_Read... [13:10:45]Read from MH i2c: E2 0E 00 [13:10:45]MH_I2C_Read... [13:10:45]Read from MH i2c: E2 0E 00 D2 3A 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 8F [13:10:45]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [13:10:45]wFMCommunicate OK [13:10:45]SAM_PROTO_GetShiftState done [13:10:45]FM_GetShiftState done [13:10:45]req_shift_opened done [13:10:45]requested_item shift.open_date is exist - process it [13:10:45]req_shift_open_date [13:10:45]req_shift_open_date done [13:10:45]produce_requested_data done [13:10:45]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192909,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [13:10:45]process_action_free close_receipt [13:10:45]json_value_free [13:10:45]json_value_free done [13:10:45]process_json_proto returns [13:10:45]Send response to host [13:10:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192909,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [13:10:45]free response buf [13:10:45]execute_script done [13:10:45]execute_script returns [13:10:45]free content buf [13:10:45]Sock 8.Close socket [13:10:45]Sock 8.Thread stoped [13:10:49]OFD Sender: No OFD packet to send [13:10:54]OFD Sender: No OFD packet to send [13:10:59]OFD Sender: No OFD packet to send [13:11:01]accept exits with 9 [13:11:01]New connection [13:11:01]New thread 3066801508 created [13:11:01]Thread 3066658148 joined [13:11:01]Waiting for new connection... [13:11:01] Sock 9.Parse request [13:11:01]Sock 9.Check first char [13:11:01]Sock 9.First char is OK [13:11:01]request: POST /json_proto HTTP/1.0 [13:11:01]Method: POST [13:11:01]URL: /json_proto [13:11:01]Method is POST - this is cgi request [13:11:01]url: /json_proto [13:11:01]query_string will be loaded in cgi processing [13:11:01]execute_cgi json_proto POST (null) [13:11:01]execute_cgi path=json_proto method=POST [13:11:01]POST find Content-Length [13:11:01]Host: 172.17.63.131:8080 [13:11:01]Content-Length: 673 [13:11:01]Content-Type: application/json [13:11:01] [13:11:01]POST finish read [13:11:01]Found Content-Length = 673 [13:11:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32241", "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" : 1.320, "sum" : 100.58, "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" ] } } [13:11:01]execute_script... [13:11: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)32241", "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" : 1.320, "sum" : 100.58, "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" ] } } [13:11:01]POST & json_proto [13:11:01]process_json_proto [13:11:01]json parsed OK: [13:11:01]protocol is kg_v1.0 [13:11:01]action value=close_receipt [13:11:01]process_action close_receipt [13:11:01]cmd_close_receipt [13:11:01]MH_GetDate [13:11:01]Write to MH i2c: F0 00 00 D3 3A FC [13:11:01]Write i2c OK [13:11:01]MH_I2C_Read... [13:11:01]Read from MH i2c: F0 [13:11:01]MH_I2C_Read... [13:11:01]Read from MH i2c: F0 09 00 [13:11:01]MH_I2C_Read... [13:11:01]Read from MH i2c: F0 09 00 D3 3A 00 EA DE 20 67 22 05 6E 64 4D [13:11:01]GetLastDocTimeStamp 1730207446 [13:11:01]current date 1730207466 [13:11:01]FM_GetShiftState [13:11:01]SAM_PROTO_GetShiftState [13:11:01]wFMCommunicate request_size=4 [13:11:01]MH_SAM_APDU [13:11:01]CAPDU: 80 13 01 00 [13:11:01]Write to MH i2c: E2 08 00 D4 3A 80 13 01 00 00 00 00 00 8B [13:11:01]Write i2c OK [13:11:01]MH_I2C_Read... [13:11:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:01]Read from MH i2c: E2 [13:11:01]MH_I2C_Read... [13:11:01]Read from MH i2c: E2 0E 00 [13:11:01]MH_I2C_Read... [13:11:01]Read from MH i2c: E2 0E 00 D4 3A 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 91 [13:11:01]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [13:11:01]wFMCommunicate OK [13:11:01]SAM_PROTO_GetShiftState done [13:11:01]FM_GetShiftState done [13:11:01]opened in 1730161990 [13:11:01]opened+sec_in_day 1730248390 [13:11:01]quantity*price = 10058 [13:11:01]sum+1 = 10059 [13:11:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.58 ИТОГО: 100.00 ВнеÑено: 100.00 СДÐЧÐ: 0.00 ÐСП 1% : 0.89 ÐДС 12% : 10.68 Ðаличными: 100.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 170 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 СÐО: Общий режим Чек 116 29.10.2024 13:11 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192910 ФПД: 244714914007057 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T131106&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192910&fm=244714914007057&tin=02508201610067®Number=0000000000091776&sum=10000 [13:11:03]StoreToDocumentArchive [13:11:03]shift 544 fd 192910 [13:11:03]save to /storage/0544/doc_00192910 [13:11:03]save last doc name /storage/0544/doc_00192910 to /storage/kkm_last_doc_name [13:11:03]save OK [13:11:03]Clear old archive folders... [13:11:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:11:03]tlvbuf is 00F704E0 [13:11:03]SAM_PROTO_ClearQueue [13:11:03]wFMCommunicate request_size=4 [13:11:03]MH_SAM_APDU [13:11:03]CAPDU: 80 09 00 00 [13:11:03]Write to MH i2c: E2 08 00 E1 3A 80 09 00 00 00 00 00 00 8D [13:11:03]Write i2c OK [13:11:03]MH_I2C_Read... [13:11:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:11:03]Read from MH i2c: E2 [13:11:03]MH_I2C_Read... [13:11:03]Read from MH i2c: E2 03 00 [13:11:03]MH_I2C_Read... [13:11:03]Read from MH i2c: E2 03 00 E1 3A 00 90 00 8F [13:11:03]RAPDU: 90 00 [13:11:03]wFMCommunicate OK [13:11:03]SAM_PROTO_ClearQueue done [13:11:03]KKMCreateOFDPacket [13:11:03]OFDProtocolAddRootSTLVToBuf [13:11:03]FM_MakeSignedData [13:11:03]FM_MakeSignedData [13:11:03]SAM_PROTO_SignData [13:11:03]wFMCommunicate request_size=4 [13:11:03]MH_SAM_APDU [13:11:03]CAPDU: 80 0D 01 02 [13:11:03]Write to MH i2c: E2 08 00 E2 3A 80 0D 01 02 00 00 00 00 95 [13:11:03]Write i2c OK [13:11:03]MH_I2C_Read... [13:11:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:11:03]Read from MH i2c: E2 [13:11:03]MH_I2C_Read... [13:11:03]Read from MH i2c: E2 03 00 [13:11:03]MH_I2C_Read... [13:11:03]Read from MH i2c: E2 03 00 E2 3A 00 90 00 90 [13:11:03]RAPDU: 90 00 [13:11:03]wFMCommunicate OK [13:11:03]wFMCommunicate request_size=255 [13:11:03]MH_SAM_APDU [13:11: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 28 05 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 EA DE 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 DE 91 21 85 [13:11:03]Write to MH i2c: E2 02 01 E3 3A 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 28 05 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 EA DE 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 DE 91 21 85 00 00 E8 [13:11:03]Write i2c OK [13:11:03]MH_I2C_Read... [13:11:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:03]Read from MH i2c: E2 [13:11:03]MH_I2C_Read... [13:11:03]Read from MH i2c: E2 03 00 [13:11:03]MH_I2C_Read... [13:11:03]Read from MH i2c: E2 03 00 E3 3A 00 90 00 91 [13:11:03]RAPDU: 90 00 [13:11:03]wFMCommunicate OK [13:11:03]wFMCommunicate request_size=7 [13:11:03]MH_SAM_APDU [13:11:03]CAPDU: 80 0D 02 02 02 48 11 [13:11:03]Write to MH i2c: E2 0A 00 E4 3A 80 0D 02 02 02 00 48 11 00 00 F5 [13:11:03]Write i2c OK [13:11:03]MH_I2C_Read... [13:11:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:03]Read from MH i2c: E2 [13:11:03]MH_I2C_Read... [13:11:03]Read from MH i2c: E2 03 00 [13:11:03]MH_I2C_Read... [13:11:03]Read from MH i2c: E2 03 00 E4 3A 00 90 00 92 [13:11:03]RAPDU: 90 00 [13:11:03]wFMCommunicate OK [13:11:03]wFMCommunicate request_size=4 [13:11:03]MH_SAM_APDU [13:11:03]CAPDU: 80 0D 03 02 [13:11:03]Write to MH i2c: E2 08 00 E5 3A 80 0D 03 02 00 00 00 00 9A [13:11:03]Write i2c OK [13:11:03]MH_I2C_Read... [13:11:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:11:03]Read from MH i2c: E2 [13:11:03]MH_I2C_Read... [13:11:03]Read from MH i2c: E2 0B 00 [13:11:03]MH_I2C_Read... [13:11:03]Read from MH i2c: E2 0B 00 E5 3A 00 35 00 ED 01 FE 9D B8 F0 90 00 01 [13:11:03]RAPDU: 35 00 ED 01 FE 9D B8 F0 90 00 [13:11:03]wFMCommunicate OK [13:11:03]SAM_PROTO_SignData done [13:11:03]FM_MakeSignedData done [13:11:03]CreateOFDProtocolMessage [13:11:03]wFMCommunicate request_size=4 [13:11:03]MH_SAM_APDU [13:11:03]CAPDU: 80 11 00 00 [13:11:03]Write to MH i2c: E2 08 00 E6 3A 80 11 00 00 00 00 00 00 9A [13:11:03]Write i2c OK [13:11:03]MH_I2C_Read... [13:11:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:03]Read from MH i2c: E2 [13:11:03]MH_I2C_Read... [13:11:03]Read from MH i2c: E2 17 00 [13:11:03]MH_I2C_Read... [13:11:03]Read from MH i2c: E2 17 00 E6 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 ED [13:11: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:11:03]wFMCommunicate OK [13:11:03]CreateOFDProtocolMessage done [13:11:03]OFDSenderStorePacket 192910 [13:11:03]StoreOFDPacket docnum=192910 [13:11: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 0C 01 00 00 04 39 04 01 83 64 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 05 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 EA DE 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 DE 91 21 85 48 11 35 00 ED 01 FE 9D B8 F0 [13:11:03]CheckFolder [13:11:03]dirname=/storage/ofd_packets [13:11:03]CheckFolder done [13:11:03]ProducePacketName [13:11:03]name=ofd_packets/00192910 [13:11:03]NVStorageSaveData ofd_packets/00192910 [13:11:03]File name is /storage/ofd_packets/00192910 [13:11:03]Write 298 bytes [13:11:03]NVStorageSaveData done [13:11:03]OFDSenderStorePacket done [13:11:03]KKMCreateOFDPacket done [13:11:03]NVStorageSaveData kkm_last_timestamp [13:11:03]File name is /storage/kkm_last_timestamp [13:11:03]Write 4 bytes [13:11:03]NVStorageSaveData done [13:11:03]ExternCall_PrintAddStr [13:11:03]wPrintStart [13:11:03]Write to MH i2c: 01 00 00 E7 3A 21 [13:11:03]Write i2c OK [13:11:03]MH_I2C_Read... [13:11:03]Read from MH i2c: 01 [13:11:03]MH_I2C_Read... [13:11:03]Read from MH i2c: 01 07 00 [13:11:03]MH_I2C_Read... [13:11:03]Read from MH i2c: 01 07 00 E7 3A 00 00 00 00 00 FF 0F 36 [13:11:03]RasterBufferAndPrint [13:11:03]line Счет N : (1)32241 [13:11:03]line ИÐÐ: 02508201610067 [13:11:03]line Контрольно-КаÑÑовый Чек [13:11:03]line ПРОДÐЖР[13:11:03]line ТРК (МРК, ГÐК) : 11 [13:11:03]line Товар: 2710194210 [13:11:03]line ДТ-К-5 [13:11:03]line 1.320 * 76.20 [13:11:03]line = 100.58 [13:11:03]line ÐДС 12% ÐСП 1% [13:11:03]line > о реализуемом товаре [13:11:03]line ОКРУГЛЕÐИЕ: -0.58 [13:11:03]line ИТОГО: 100.00 [13:11:03]line ВнеÑено: 100.00 [13:11:03]line СДÐЧÐ: 0.00 [13:11:03]line ÐСП 1% : 0.89 [13:11:03]line ÐДС 12% : 10.68 [13:11:03]line Ðаличными: 100.00 [13:11:03]line Безнал.: 0.00 [13:11:03]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [13:11:03]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [13:11:03]line СÐО: Общий режим [13:11:03]line Чек 116 29.10.2024 13:11 [13:11:03]line Смена: 544 ФФД: 1.0 [13:11:03]line ЗÐМ: 0300000110 [13:11:03]line РÐМ: 0000000000091776 [13:11:03]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [13:11:03]line ФМ: 0000000000871754 [13:11:03]line ФД: 192910 [13:11:03]line ФПД: 244714914007057 [13:11:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T131106&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192910&fm=244714914007057&tin=02508201610067®Number=0000000000091776&sum=10000 [13:11:03]OFD Sender: Processing packet 192910 [packets to send 75, broken 74] [13:11:03]ProducePacketName [13:11:03]name=ofd_packets/00192910 [13:11:03]OFD Sender: To server: ‡•öpG, [13:11:03]CommunicateWithHost lk.salyk.kg:30040 [13:11:03]ConnectInit lk.salyk.kg [13:11:03]written 0, free lines is 4095 [13:11:04]Connected sock=10 [13:11: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 04 39 04 01 83 64 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 05 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 EA DE 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 DE 91 21 85 48 11 35 00 ED 01 FE 9D B8 F0 [13:11: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 08 BB 47 00 94 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 8E F1 02 00 F4 03 04 00 AB 83 20 67 B6 04 01 00 00 D7 FF D4 06 BE AA A7 8C [13:11:04]CommunicateWithHost err = 0 [13:11:04]CheckOFDResponse [13:11:04]1017 (14) - 77093643461234 [13:11:04]1041 (16) - 0000000000871754 [13:11:04]1040 (4) - 192910 [13:11:04]1012 (4) - 29.10.2024 06:41 [13:11:04]1206 (1) - 0 [13:11:04]OFD Sender: Remove packet 192910 [13:11:04]ProducePacketName [13:11:04]name=ofd_packets/00192910 [13:11:04]NVStorageDeleteData [13:11:04]Write to MH i2c: 01 00 00 12 3B 4D [13:11:04]Write i2c OK [13:11:04]MH_I2C_Read... [13:11:04]Read from MH i2c: 01 [13:11:04]MH_I2C_Read... [13:11:04]Read from MH i2c: 01 07 00 [13:11:04]MH_I2C_Read... [13:11:04]Read from MH i2c: 01 07 00 12 3B 00 00 00 00 00 B2 0C 12 [13:11:04]RasterBufferAndPrint [13:11:04]line [13:11:04]line [13:11:04]line [13:11:04]line [13:11:04]line [13:11:04]written 0, free lines is 3254 [13:11:04]MH_Cut [13:11:04]Write to MH i2c: D1 01 00 19 3B 01 26 [13:11:04]Write i2c OK [13:11:04]MH_I2C_Read... [13:11:04]Read from MH i2c: D1 [13:11:04]MH_I2C_Read... [13:11:04]Read from MH i2c: D1 01 00 [13:11:04]MH_I2C_Read... [13:11:04]Read from MH i2c: D1 01 00 19 3B 00 25 [13:11:04]Write to MH i2c: 01 00 00 1A 3B 55 [13:11:04]Write i2c OK [13:11:04]MH_I2C_Read... [13:11:04]OFD Sender: No OFD packet to send [13:11:05]*** Cut start [13:11:05]*** Partial cut [13:11:05]*** CUTSNS_PIN = 1 [13:11:05]*** CUTSNS_PIN = 0 [13:11:05]*** Brake cut motor [13:11:05]Read from MH i2c: 01 [13:11:05]MH_I2C_Read... [13:11:05]*** Stop cut motor [13:11:05]*** Cut end [13:11:05]Read from MH i2c: 01 07 00 [13:11:05]MH_I2C_Read... [13:11:05]Read from MH i2c: 01 07 00 1A 3B 00 00 00 00 00 FF 0F 6A [13:11:05]process_action close_receipt done [13:11:05]requested_data is exist [13:11:05]produce_requested_data [13:11:05]requested_item fm.sn is exist - process it [13:11:05]wFMCommunicate request_size=4 [13:11:05]MH_SAM_APDU [13:11:05]CAPDU: 80 11 00 00 [13:11:05]Write to MH i2c: E2 08 00 1B 3B 80 11 00 00 00 00 00 00 D0 [13:11:05]Write i2c OK [13:11:05]MH_I2C_Read... [13:11:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:05]Read from MH i2c: E2 [13:11:05]MH_I2C_Read... [13:11:05]Read from MH i2c: E2 17 00 [13:11:05]MH_I2C_Read... [13:11:05]Read from MH i2c: E2 17 00 1B 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 23 [13:11:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:11:05]wFMCommunicate OK [13:11:05]requested_item fd.num is exist - process it [13:11:05]SAM_PROTO_GetFieldsCounters [13:11:05]wFMCommunicate request_size=4 [13:11:05]MH_SAM_APDU [13:11:05]CAPDU: 80 13 00 00 [13:11:05]Write to MH i2c: E2 08 00 1C 3B 80 13 00 00 00 00 00 00 D3 [13:11:05]Write i2c OK [13:11:05]MH_I2C_Read... [13:11:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:11:06]Read from MH i2c: E2 [13:11:06]MH_I2C_Read... [13:11:06]Read from MH i2c: E2 62 00 [13:11:06]MH_I2C_Read... [13:11:06]Read from MH i2c: E2 62 00 1C 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 8E F1 02 00 0E 04 04 00 20 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 F8 [13:11: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 8E F1 02 00 0E 04 04 00 20 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 [13:11:06]wFMCommunicate OK [13:11:06]SAM_PROTO_GetFieldsCounters done [13:11:06]requested_item shift.num is exist - process it [13:11:06]requested_item shift.opened is exist - process it [13:11:06]req_shift_opened [13:11:06]FM_GetShiftState [13:11:06]SAM_PROTO_GetShiftState [13:11:06]wFMCommunicate request_size=4 [13:11:06]MH_SAM_APDU [13:11:06]CAPDU: 80 13 01 00 [13:11:06]Write to MH i2c: E2 08 00 1D 3B 80 13 01 00 00 00 00 00 D5 [13:11:06]Write i2c OK [13:11:06]MH_I2C_Read... [13:11:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:06]Read from MH i2c: E2 [13:11:06]MH_I2C_Read... [13:11:06]Read from MH i2c: E2 0E 00 [13:11:06]MH_I2C_Read... [13:11:06]Read from MH i2c: E2 0E 00 1D 3B 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 DB [13:11:06]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [13:11:06]wFMCommunicate OK [13:11:06]SAM_PROTO_GetShiftState done [13:11:06]FM_GetShiftState done [13:11:06]req_shift_opened done [13:11:06]requested_item shift.open_date is exist - process it [13:11:06]req_shift_open_date [13:11:06]req_shift_open_date done [13:11:06]produce_requested_data done [13:11:06]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192910,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [13:11:06]process_action_free close_receipt [13:11:06]json_value_free [13:11:06]json_value_free done [13:11:06]process_json_proto returns [13:11:06]Send response to host [13:11:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192910,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [13:11:06]free response buf [13:11:06]execute_script done [13:11:06]execute_script returns [13:11:06]free content buf [13:11:06]Sock 9.Close socket [13:11:06]Sock 9.Thread stoped [13:11:09]OFD Sender: No OFD packet to send [13:11:14]OFD Sender: No OFD packet to send [13:11:19]OFD Sender: No OFD packet to send [13:11:24]OFD Sender: No OFD packet to send [13:11:29]OFD Sender: No OFD packet to send [13:11:34]OFD Sender: No OFD packet to send [13:11:39]OFD Sender: No OFD packet to send [13:11:44]OFD Sender: No OFD packet to send [13:11:49]OFD Sender: No OFD packet to send [13:11:54]OFD Sender: No OFD packet to send [13:11:59]OFD Sender: No OFD packet to send [13:12:04]OFD Sender: No OFD packet to send [13:12:09]OFD Sender: No OFD packet to send [13:12:14]OFD Sender: No OFD packet to send [13:12:17]accept exits with 8 [13:12:17]New connection [13:12:17]New thread 3066658148 created [13:12:17]Thread 3066801508 joined [13:12:17]Waiting for new connection... [13:12:17] Sock 8.Parse request [13:12:17]Sock 8.Check first char [13:12:17]Sock 8.First char is OK [13:12:17]request: POST /json_proto HTTP/1.0 [13:12:17]Method: POST [13:12:17]URL: /json_proto [13:12:17]Method is POST - this is cgi request [13:12:17]url: /json_proto [13:12:17]query_string will be loaded in cgi processing [13:12:17]execute_cgi json_proto POST (null) [13:12:17]execute_cgi path=json_proto method=POST [13:12:17]POST find Content-Length [13:12:17]Host: 172.17.63.131:8080 [13:12:17]Content-Length: 676 [13:12:17]Content-Type: application/json [13:12:17] [13:12:17]POST finish read [13:12:17]Found Content-Length = 676 [13:12:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32242", "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.590, "sum" : 240.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:17]execute_script... [13:12: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)32242", "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.590, "sum" : 240.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:17]POST & json_proto [13:12:17]process_json_proto [13:12:17]json parsed OK: [13:12:17]protocol is kg_v1.0 [13:12:17]action value=close_receipt [13:12:17]process_action close_receipt [13:12:17]cmd_close_receipt [13:12:17]MH_GetDate [13:12:17]Write to MH i2c: F0 00 00 1E 3B 48 [13:12:17]Write i2c OK [13:12:17]MH_I2C_Read... [13:12:17]Read from MH i2c: F0 [13:12:17]MH_I2C_Read... [13:12:17]Read from MH i2c: F0 09 00 [13:12:17]MH_I2C_Read... [13:12:17]Read from MH i2c: F0 09 00 1E 3B 00 36 DF 20 67 22 05 6E 64 E6 [13:12:17]GetLastDocTimeStamp 1730207466 [13:12:17]current date 1730207542 [13:12:17]FM_GetShiftState [13:12:17]SAM_PROTO_GetShiftState [13:12:17]wFMCommunicate request_size=4 [13:12:17]MH_SAM_APDU [13:12:17]CAPDU: 80 13 01 00 [13:12:17]Write to MH i2c: E2 08 00 1F 3B 80 13 01 00 00 00 00 00 D7 [13:12:17]Write i2c OK [13:12:17]MH_I2C_Read... [13:12:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:17]Read from MH i2c: E2 [13:12:17]MH_I2C_Read... [13:12:17]Read from MH i2c: E2 0E 00 [13:12:17]MH_I2C_Read... [13:12:17]Read from MH i2c: E2 0E 00 1F 3B 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 DD [13:12:17]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [13:12:17]wFMCommunicate OK [13:12:17]SAM_PROTO_GetShiftState done [13:12:17]FM_GetShiftState done [13:12:17]opened in 1730161990 [13:12:17]opened+sec_in_day 1730248390 [13:12:17]quantity*price = 24017 [13:12:17]sum+1 = 24018 [13:12:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.17 ИТОГО: 240.00 ВнеÑено: 240.00 СДÐЧÐ: 0.00 ÐСП 1% : 2.12 ÐДС 12% : 25.50 Ðаличными: 240.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 170 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 СÐО: Общий режим Чек 117 29.10.2024 13:12 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192911 ФПД: 104691246356504 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T131222&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192911&fm=104691246356504&tin=02508201610067®Number=0000000000091776&sum=24000 [13:12:18]StoreToDocumentArchive [13:12:18]shift 544 fd 192911 [13:12:18]save to /storage/0544/doc_00192911 [13:12:18]save last doc name /storage/0544/doc_00192911 to /storage/kkm_last_doc_name [13:12:18]save OK [13:12:18]Clear old archive folders... [13:12:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:12:18]tlvbuf is 00F55260 [13:12:18]SAM_PROTO_ClearQueue [13:12:18]wFMCommunicate request_size=4 [13:12:18]MH_SAM_APDU [13:12:18]CAPDU: 80 09 00 00 [13:12:18]Write to MH i2c: E2 08 00 2C 3B 80 09 00 00 00 00 00 00 D9 [13:12:18]Write i2c OK [13:12:18]MH_I2C_Read... [13:12:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:12:18]Read from MH i2c: E2 [13:12:18]MH_I2C_Read... [13:12:18]Read from MH i2c: E2 03 00 [13:12:18]MH_I2C_Read... [13:12:18]Read from MH i2c: E2 03 00 2C 3B 00 90 00 DB [13:12:18]RAPDU: 90 00 [13:12:18]wFMCommunicate OK [13:12:18]SAM_PROTO_ClearQueue done [13:12:18]KKMCreateOFDPacket [13:12:18]OFDProtocolAddRootSTLVToBuf [13:12:18]FM_MakeSignedData [13:12:18]FM_MakeSignedData [13:12:18]SAM_PROTO_SignData [13:12:18]wFMCommunicate request_size=4 [13:12:18]MH_SAM_APDU [13:12:18]CAPDU: 80 0D 01 02 [13:12:18]Write to MH i2c: E2 08 00 2D 3B 80 0D 01 02 00 00 00 00 E1 [13:12:18]Write i2c OK [13:12:18]MH_I2C_Read... [13:12:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:12:18]Read from MH i2c: E2 [13:12:18]MH_I2C_Read... [13:12:18]Read from MH i2c: E2 03 00 [13:12:18]MH_I2C_Read... [13:12:18]Read from MH i2c: E2 03 00 2D 3B 00 90 00 DC [13:12:18]RAPDU: 90 00 [13:12:18]wFMCommunicate OK [13:12:18]wFMCommunicate request_size=255 [13:12:18]MH_SAM_APDU [13:12: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 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 36 DF 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 5F [13:12:18]Write to MH i2c: E2 02 01 2E 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 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 36 DF 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 5F 00 00 8F [13:12:18]Write i2c OK [13:12:18]MH_I2C_Read... [13:12:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:18]Read from MH i2c: E2 [13:12:18]MH_I2C_Read... [13:12:18]Read from MH i2c: E2 03 00 [13:12:18]MH_I2C_Read... [13:12:18]Read from MH i2c: E2 03 00 2E 3B 00 90 00 DD [13:12:18]RAPDU: 90 00 [13:12:18]wFMCommunicate OK [13:12:18]wFMCommunicate request_size=10 [13:12:18]MH_SAM_APDU [13:12:18]CAPDU: 80 0D 02 02 05 37 54 8C D8 18 [13:12:18]Write to MH i2c: E2 0D 00 2F 3B 80 0D 02 02 05 00 37 54 8C D8 18 00 00 F5 [13:12:18]Write i2c OK [13:12:18]MH_I2C_Read... [13:12:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:18]Read from MH i2c: E2 [13:12:18]MH_I2C_Read... [13:12:18]Read from MH i2c: E2 03 00 [13:12:18]MH_I2C_Read... [13:12:18]Read from MH i2c: E2 03 00 2F 3B 00 90 00 DE [13:12:18]RAPDU: 90 00 [13:12:18]wFMCommunicate OK [13:12:18]wFMCommunicate request_size=4 [13:12:18]MH_SAM_APDU [13:12:18]CAPDU: 80 0D 03 02 [13:12:18]Write to MH i2c: E2 08 00 30 3B 80 0D 03 02 00 00 00 00 E6 [13:12:18]Write i2c OK [13:12:18]MH_I2C_Read... [13:12:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:12:18]Read from MH i2c: E2 [13:12:18]MH_I2C_Read... [13:12:18]Read from MH i2c: E2 0B 00 [13:12:18]MH_I2C_Read... [13:12:18]Read from MH i2c: E2 0B 00 30 3B 00 6C 60 D7 95 57 66 F6 FF 90 00 D1 [13:12:18]RAPDU: 6C 60 D7 95 57 66 F6 FF 90 00 [13:12:18]wFMCommunicate OK [13:12:18]SAM_PROTO_SignData done [13:12:18]FM_MakeSignedData done [13:12:18]CreateOFDProtocolMessage [13:12:18]wFMCommunicate request_size=4 [13:12:18]MH_SAM_APDU [13:12:18]CAPDU: 80 11 00 00 [13:12:18]Write to MH i2c: E2 08 00 31 3B 80 11 00 00 00 00 00 00 E6 [13:12:18]Write i2c OK [13:12:18]MH_I2C_Read... [13:12:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:18]Read from MH i2c: E2 [13:12:18]MH_I2C_Read... [13:12:18]Read from MH i2c: E2 17 00 [13:12:18]MH_I2C_Read... [13:12:18]Read from MH i2c: E2 17 00 31 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 39 [13:12:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:12:18]wFMCommunicate OK [13:12:18]CreateOFDProtocolMessage done [13:12:18]OFDSenderStorePacket 192911 [13:12:18]StoreOFDPacket docnum=192911 [13:12: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 F2 1B 07 01 5E 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 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 36 DF 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 5F 37 54 8C D8 18 6C 60 D7 95 57 66 F6 FF [13:12:18]CheckFolder [13:12:18]dirname=/storage/ofd_packets [13:12:18]CheckFolder done [13:12:18]ProducePacketName [13:12:18]name=ofd_packets/00192911 [13:12:18]NVStorageSaveData ofd_packets/00192911 [13:12:18]File name is /storage/ofd_packets/00192911 [13:12:18]Write 301 bytes [13:12:18]NVStorageSaveData done [13:12:18]OFDSenderStorePacket done [13:12:18]KKMCreateOFDPacket done [13:12:18]NVStorageSaveData kkm_last_timestamp [13:12:18]File name is /storage/kkm_last_timestamp [13:12:18]Write 4 bytes [13:12:18]NVStorageSaveData done [13:12:18]ExternCall_PrintAddStr [13:12:18]wPrintStart [13:12:18]Write to MH i2c: 01 00 00 32 3B 6D [13:12:18]Write i2c OK [13:12:18]MH_I2C_Read... [13:12:18]Read from MH i2c: 01 [13:12:18]MH_I2C_Read... [13:12:18]Read from MH i2c: 01 07 00 [13:12:18]MH_I2C_Read... [13:12:18]Read from MH i2c: 01 07 00 32 3B 00 00 00 00 00 FF 0F 82 [13:12:18]RasterBufferAndPrint [13:12:18]line Счет N : (1)32242 [13:12:18]line ИÐÐ: 02508201610067 [13:12:18]line Контрольно-КаÑÑовый Чек [13:12:18]line ПРОДÐЖР[13:12:18]line ТРК (МРК, ГÐК) : 12 [13:12:18]line Товар: 2710124130 [13:12:18]line Ðи-92-К-5 [13:12:18]line 3.590 * 66.90 [13:12:18]line = 240.17 [13:12:18]line ÐДС 12% ÐСП 1% [13:12:18]line > о реализуемом товаре [13:12:18]line ОКРУГЛЕÐИЕ: -0.17 [13:12:18]line ИТОГО: 240.00 [13:12:18]line ВнеÑено: 240.00 [13:12:18]line СДÐЧÐ: 0.00 [13:12:18]line ÐСП 1% : 2.12 [13:12:18]line ÐДС 12% : 25.50 [13:12:18]line Ðаличными: 240.00 [13:12:18]line Безнал.: 0.00 [13:12:18]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [13:12:18]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [13:12:18]line СÐО: Общий режим [13:12:18]line Чек 117 29.10.2024 13:12 [13:12:18]line Смена: 544 ФФД: 1.0 [13:12:18]line ЗÐМ: 0300000110 [13:12:18]line РÐМ: 0000000000091776 [13:12:18]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [13:12:18]line ФМ: 0000000000871754 [13:12:18]line ФД: 192911 [13:12:18]line ФПД: 104691246356504 [13:12:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T131222&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192911&fm=104691246356504&tin=02508201610067®Number=0000000000091776&sum=24000 [13:12:19]OFD Sender: Processing packet 192911 [packets to send 75, broken 74] [13:12:19]ProducePacketName [13:12:19]name=ofd_packets/00192911 [13:12:19]OFD Sender: To server: ‡•öpG, [13:12:19]CommunicateWithHost lk.salyk.kg:30040 [13:12:19]ConnectInit lk.salyk.kg [13:12:19]written 0, free lines is 4095 [13:12:19]Connected sock=10 [13:12: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 F2 1B 07 01 5E 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 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 36 DF 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 5F 37 54 8C D8 18 6C 60 D7 95 57 66 F6 FF [13:12: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 A4 D8 47 00 8A 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 8F F1 02 00 F4 03 04 00 F6 83 20 67 B6 04 01 00 00 03 69 6A 51 72 EE 35 C9 [13:12:19]CommunicateWithHost err = 0 [13:12:19]CheckOFDResponse [13:12:19]1017 (14) - 77093643461234 [13:12:19]1041 (16) - 0000000000871754 [13:12:19]1040 (4) - 192911 [13:12:19]1012 (4) - 29.10.2024 06:43 [13:12:19]1206 (1) - 0 [13:12:19]OFD Sender: Remove packet 192911 [13:12:19]ProducePacketName [13:12:19]name=ofd_packets/00192911 [13:12:19]NVStorageDeleteData [13:12:19]Write to MH i2c: 01 00 00 5D 3B 98 [13:12:19]Write i2c OK [13:12:19]MH_I2C_Read... [13:12:19]Read from MH i2c: 01 [13:12:19]MH_I2C_Read... [13:12:19]Read from MH i2c: 01 07 00 [13:12:19]MH_I2C_Read... [13:12:19]Read from MH i2c: 01 07 00 5D 3B 00 00 00 00 00 AF 0C 5A [13:12:19]RasterBufferAndPrint [13:12:19]line [13:12:19]line [13:12:19]line [13:12:19]line [13:12:19]line [13:12:19]written 0, free lines is 3252 [13:12:19]MH_Cut [13:12:19]Write to MH i2c: D1 01 00 64 3B 01 71 [13:12:19]Write i2c OK [13:12:19]MH_I2C_Read... [13:12:19]Read from MH i2c: D1 [13:12:19]MH_I2C_Read... [13:12:19]Read from MH i2c: D1 01 00 [13:12:19]MH_I2C_Read... [13:12:19]Read from MH i2c: D1 01 00 64 3B 00 70 [13:12:19]Write to MH i2c: 01 00 00 65 3B A0 [13:12:19]Write i2c OK [13:12:19]MH_I2C_Read... [13:12:20]OFD Sender: No OFD packet to send [13:12:20]*** Cut start [13:12:20]*** Partial cut [13:12:20]*** CUTSNS_PIN = 1 [13:12:20]*** CUTSNS_PIN = 0 [13:12:20]*** Brake cut motor [13:12:21]Read from MH i2c: 01 [13:12:21]MH_I2C_Read... [13:12:21]*** Stop cut motor [13:12:21]*** Cut end [13:12:21]Read from MH i2c: 01 07 00 [13:12:21]MH_I2C_Read... [13:12:21]Read from MH i2c: 01 07 00 65 3B 00 00 00 00 00 FF 0F B5 [13:12:21]process_action close_receipt done [13:12:21]requested_data is exist [13:12:21]produce_requested_data [13:12:21]requested_item fm.sn is exist - process it [13:12:21]wFMCommunicate request_size=4 [13:12:21]MH_SAM_APDU [13:12:21]CAPDU: 80 11 00 00 [13:12:21]Write to MH i2c: E2 08 00 66 3B 80 11 00 00 00 00 00 00 1B [13:12:21]Write i2c OK [13:12:21]MH_I2C_Read... [13:12:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:21]Read from MH i2c: E2 [13:12:21]MH_I2C_Read... [13:12:21]Read from MH i2c: E2 17 00 [13:12:21]MH_I2C_Read... [13:12:21]Read from MH i2c: E2 17 00 66 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6E [13:12: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:12:21]wFMCommunicate OK [13:12:21]requested_item fd.num is exist - process it [13:12:21]SAM_PROTO_GetFieldsCounters [13:12:21]wFMCommunicate request_size=4 [13:12:21]MH_SAM_APDU [13:12:21]CAPDU: 80 13 00 00 [13:12:21]Write to MH i2c: E2 08 00 67 3B 80 13 00 00 00 00 00 00 1E [13:12:21]Write i2c OK [13:12:21]MH_I2C_Read... [13:12:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:12:21]Read from MH i2c: E2 [13:12:21]MH_I2C_Read... [13:12:21]Read from MH i2c: E2 62 00 [13:12:21]MH_I2C_Read... [13:12:21]Read from MH i2c: E2 62 00 67 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 8F F1 02 00 0E 04 04 00 20 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 47 [13:12: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 8F F1 02 00 0E 04 04 00 20 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 [13:12:21]wFMCommunicate OK [13:12:21]SAM_PROTO_GetFieldsCounters done [13:12:21]requested_item shift.num is exist - process it [13:12:21]requested_item shift.opened is exist - process it [13:12:21]req_shift_opened [13:12:21]FM_GetShiftState [13:12:21]SAM_PROTO_GetShiftState [13:12:21]wFMCommunicate request_size=4 [13:12:21]MH_SAM_APDU [13:12:21]CAPDU: 80 13 01 00 [13:12:21]Write to MH i2c: E2 08 00 68 3B 80 13 01 00 00 00 00 00 20 [13:12:21]Write i2c OK [13:12:21]MH_I2C_Read... [13:12:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:21]Read from MH i2c: E2 [13:12:21]MH_I2C_Read... [13:12:21]Read from MH i2c: E2 0E 00 [13:12:21]MH_I2C_Read... [13:12:21]Read from MH i2c: E2 0E 00 68 3B 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 26 [13:12:21]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [13:12:21]wFMCommunicate OK [13:12:21]SAM_PROTO_GetShiftState done [13:12:21]FM_GetShiftState done [13:12:21]req_shift_opened done [13:12:21]requested_item shift.open_date is exist - process it [13:12:21]req_shift_open_date [13:12:21]req_shift_open_date done [13:12:21]produce_requested_data done [13:12:21]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192911,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [13:12:21]process_action_free close_receipt [13:12:21]json_value_free [13:12:21]json_value_free done [13:12:21]process_json_proto returns [13:12:21]Send response to host [13:12:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192911,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [13:12:21]free response buf [13:12:21]execute_script done [13:12:21]execute_script returns [13:12:21]free content buf [13:12:21]Sock 8.Close socket [13:12:21]Sock 8.Thread stoped [13:12:25]OFD Sender: No OFD packet to send [13:12:30]OFD Sender: No OFD packet to send [13:12:35]OFD Sender: No OFD packet to send [13:12:40]OFD Sender: No OFD packet to send [13:12:45]OFD Sender: No OFD packet to send [13:12:50]OFD Sender: No OFD packet to send [13:12:55]OFD Sender: No OFD packet to send [13:13:00]OFD Sender: No OFD packet to send [13:13:00]accept exits with 9 [13:13:00]New connection [13:13:00]New thread 3066801508 created [13:13:00]Thread 3066658148 joined [13:13:00]Waiting for new connection... [13:13:00] Sock 9.Parse request [13:13:00]Sock 9.Check first char [13:13:00]Sock 9.First char is OK [13:13:00]request: POST /json_proto HTTP/1.0 [13:13:00]Method: POST [13:13:00]URL: /json_proto [13:13:00]Method is POST - this is cgi request [13:13:00]url: /json_proto [13:13:00]query_string will be loaded in cgi processing [13:13:00]execute_cgi json_proto POST (null) [13:13:00]execute_cgi path=json_proto method=POST [13:13:00]POST find Content-Length [13:13:00]Host: 172.17.63.131:8080 [13:13:00]Content-Length: 676 [13:13:00]Content-Type: application/json [13:13:00] [13:13:00]POST finish read [13:13:00]Found Content-Length = 676 [13:13:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32244", "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" ] } } [13:13:00]execute_script... [13:13: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)32244", "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" ] } } [13:13:00]POST & json_proto [13:13:00]process_json_proto [13:13:00]json parsed OK: [13:13:00]protocol is kg_v1.0 [13:13:00]action value=close_receipt [13:13:00]process_action close_receipt [13:13:00]cmd_close_receipt [13:13:00]MH_GetDate [13:13:00]Write to MH i2c: F0 00 00 69 3B 93 [13:13:00]Write i2c OK [13:13:00]MH_I2C_Read... [13:13:00]Read from MH i2c: F0 [13:13:00]MH_I2C_Read... [13:13:00]Read from MH i2c: F0 09 00 [13:13:00]MH_I2C_Read... [13:13:00]Read from MH i2c: F0 09 00 69 3B 00 61 DF 20 67 22 05 6E 64 5C [13:13:00]GetLastDocTimeStamp 1730207542 [13:13:00]current date 1730207585 [13:13:00]FM_GetShiftState [13:13:00]SAM_PROTO_GetShiftState [13:13:00]wFMCommunicate request_size=4 [13:13:00]MH_SAM_APDU [13:13:00]CAPDU: 80 13 01 00 [13:13:00]Write to MH i2c: E2 08 00 6A 3B 80 13 01 00 00 00 00 00 22 [13:13:00]Write i2c OK [13:13:00]MH_I2C_Read... [13:13:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:00]Read from MH i2c: E2 [13:13:00]MH_I2C_Read... [13:13:00]Read from MH i2c: E2 0E 00 [13:13:00]MH_I2C_Read... [13:13:01]Read from MH i2c: E2 0E 00 6A 3B 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 28 [13:13:01]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [13:13:01]wFMCommunicate OK [13:13:01]SAM_PROTO_GetShiftState done [13:13:01]FM_GetShiftState done [13:13:01]opened in 1730161990 [13:13:01]opened+sec_in_day 1730248390 [13:13:01]quantity*price = 30038 [13:13:01]sum+1 = 30039 [13:13: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 СÐО: Общий режим Чек 118 29.10.2024 13:13 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192912 ФПД: 172029885800177 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T131305&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192912&fm=172029885800177&tin=02508201610067®Number=0000000000091776&sum=30000 [13:13:02]StoreToDocumentArchive [13:13:02]shift 544 fd 192912 [13:13:02]save to /storage/0544/doc_00192912 [13:13:02]save last doc name /storage/0544/doc_00192912 to /storage/kkm_last_doc_name [13:13:02]save OK [13:13:02]Clear old archive folders... [13:13:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:13:02]tlvbuf is 00FF17E0 [13:13:02]SAM_PROTO_ClearQueue [13:13:02]wFMCommunicate request_size=4 [13:13:02]MH_SAM_APDU [13:13:02]CAPDU: 80 09 00 00 [13:13:02]Write to MH i2c: E2 08 00 77 3B 80 09 00 00 00 00 00 00 24 [13:13:02]Write i2c OK [13:13:02]MH_I2C_Read... [13:13:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:13:02]Read from MH i2c: E2 [13:13:02]MH_I2C_Read... [13:13:02]Read from MH i2c: E2 03 00 [13:13:02]MH_I2C_Read... [13:13:02]Read from MH i2c: E2 03 00 77 3B 00 90 00 26 [13:13:02]RAPDU: 90 00 [13:13:02]wFMCommunicate OK [13:13:02]SAM_PROTO_ClearQueue done [13:13:02]KKMCreateOFDPacket [13:13:02]OFDProtocolAddRootSTLVToBuf [13:13:02]FM_MakeSignedData [13:13:02]FM_MakeSignedData [13:13:02]SAM_PROTO_SignData [13:13:02]wFMCommunicate request_size=4 [13:13:02]MH_SAM_APDU [13:13:02]CAPDU: 80 0D 01 02 [13:13:02]Write to MH i2c: E2 08 00 78 3B 80 0D 01 02 00 00 00 00 2C [13:13:02]Write i2c OK [13:13:02]MH_I2C_Read... [13:13:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:13:02]Read from MH i2c: E2 [13:13:02]MH_I2C_Read... [13:13:02]Read from MH i2c: E2 03 00 [13:13:02]MH_I2C_Read... [13:13:02]Read from MH i2c: E2 03 00 78 3B 00 90 00 27 [13:13:02]RAPDU: 90 00 [13:13:02]wFMCommunicate OK [13:13:02]wFMCommunicate request_size=255 [13:13:02]MH_SAM_APDU [13:13:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 76 00 00 00 F4 03 04 00 61 DF 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 9C [13:13:02]Write to MH i2c: E2 02 01 79 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 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 76 00 00 00 F4 03 04 00 61 DF 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 9C 00 00 32 [13:13:02]Write i2c OK [13:13:02]MH_I2C_Read... [13:13:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:02]Read from MH i2c: E2 [13:13:02]MH_I2C_Read... [13:13:02]Read from MH i2c: E2 03 00 [13:13:02]MH_I2C_Read... [13:13:02]Read from MH i2c: E2 03 00 79 3B 00 90 00 28 [13:13:02]RAPDU: 90 00 [13:13:02]wFMCommunicate OK [13:13:02]wFMCommunicate request_size=10 [13:13:02]MH_SAM_APDU [13:13:02]CAPDU: 80 0D 02 02 05 75 D4 3B DE F1 [13:13:02]Write to MH i2c: E2 0D 00 7A 3B 80 0D 02 02 05 00 75 D4 3B DE F1 00 00 8C [13:13:02]Write i2c OK [13:13:02]MH_I2C_Read... [13:13:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:02]Read from MH i2c: E2 [13:13:02]MH_I2C_Read... [13:13:02]Read from MH i2c: E2 03 00 [13:13:02]MH_I2C_Read... [13:13:02]Read from MH i2c: E2 03 00 7A 3B 00 90 00 29 [13:13:02]RAPDU: 90 00 [13:13:02]wFMCommunicate OK [13:13:02]wFMCommunicate request_size=4 [13:13:02]MH_SAM_APDU [13:13:02]CAPDU: 80 0D 03 02 [13:13:02]Write to MH i2c: E2 08 00 7B 3B 80 0D 03 02 00 00 00 00 31 [13:13:02]Write i2c OK [13:13:02]MH_I2C_Read... [13:13:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:13:02]Read from MH i2c: E2 [13:13:02]MH_I2C_Read... [13:13:02]Read from MH i2c: E2 0B 00 [13:13:02]MH_I2C_Read... [13:13:02]Read from MH i2c: E2 0B 00 7B 3B 00 66 28 7A AA 97 5B 91 53 90 00 BA [13:13:02]RAPDU: 66 28 7A AA 97 5B 91 53 90 00 [13:13:02]wFMCommunicate OK [13:13:02]SAM_PROTO_SignData done [13:13:02]FM_MakeSignedData done [13:13:02]CreateOFDProtocolMessage [13:13:02]wFMCommunicate request_size=4 [13:13:02]MH_SAM_APDU [13:13:02]CAPDU: 80 11 00 00 [13:13:02]Write to MH i2c: E2 08 00 7C 3B 80 11 00 00 00 00 00 00 31 [13:13:02]Write i2c OK [13:13:02]MH_I2C_Read... [13:13:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:02]Read from MH i2c: E2 [13:13:02]MH_I2C_Read... [13:13:02]Read from MH i2c: E2 17 00 [13:13:02]MH_I2C_Read... [13:13:02]Read from MH i2c: E2 17 00 7C 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 84 [13:13:02]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:02]wFMCommunicate OK [13:13:02]CreateOFDProtocolMessage done [13:13:02]OFDSenderStorePacket 192912 [13:13:02]StoreOFDPacket docnum=192912 [13:13: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 6D 93 07 01 C1 B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 61 DF 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 9C 75 D4 3B DE F1 66 28 7A AA 97 5B 91 53 [13:13:02]CheckFolder [13:13:02]dirname=/storage/ofd_packets [13:13:02]CheckFolder done [13:13:02]ProducePacketName [13:13:02]name=ofd_packets/00192912 [13:13:02]NVStorageSaveData ofd_packets/00192912 [13:13:02]File name is /storage/ofd_packets/00192912 [13:13:02]Write 301 bytes [13:13:02]NVStorageSaveData done [13:13:02]OFDSenderStorePacket done [13:13:02]KKMCreateOFDPacket done [13:13:02]NVStorageSaveData kkm_last_timestamp [13:13:02]File name is /storage/kkm_last_timestamp [13:13:02]Write 4 bytes [13:13:02]NVStorageSaveData done [13:13:02]ExternCall_PrintAddStr [13:13:02]wPrintStart [13:13:02]Write to MH i2c: 01 00 00 7D 3B B8 [13:13:02]Write i2c OK [13:13:02]MH_I2C_Read... [13:13:02]Read from MH i2c: 01 [13:13:02]MH_I2C_Read... [13:13:02]Read from MH i2c: 01 07 00 [13:13:02]MH_I2C_Read... [13:13:02]Read from MH i2c: 01 07 00 7D 3B 00 00 00 00 00 FF 0F CD [13:13:02]RasterBufferAndPrint [13:13:02]line Счет N : (1)32244 [13:13:02]line ИÐÐ: 02508201610067 [13:13:02]line Контрольно-КаÑÑовый Чек [13:13:02]line ПРОДÐЖР[13:13:02]line ТРК (МРК, ГÐК) : 12 [13:13:02]line Товар: 2710124130 [13:13:02]line Ðи-92-К-5 [13:13:02]line 4.490 * 66.90 [13:13:02]line = 300.38 [13:13:02]line ÐДС 12% ÐСП 1% [13:13:02]line > о реализуемом товаре [13:13:02]line ОКРУГЛЕÐИЕ: -0.38 [13:13:02]line ИТОГО: 300.00 [13:13:02]line ВнеÑено: 300.00 [13:13:02]line СДÐЧÐ: 0.00 [13:13:02]line ÐСП 1% : 2.66 [13:13:02]line ÐДС 12% : 31.90 [13:13:02]line Ðаличными: 300.00 [13:13:02]line Безнал.: 0.00 [13:13:02]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [13:13:02]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [13:13:02]line СÐО: Общий режим [13:13:02]line Чек 118 29.10.2024 13:13 [13:13:02]line Смена: 544 ФФД: 1.0 [13:13:02]line ЗÐМ: 0300000110 [13:13:02]line РÐМ: 0000000000091776 [13:13:02]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [13:13:02]line ФМ: 0000000000871754 [13:13:02]line ФД: 192912 [13:13:02]line ФПД: 172029885800177 [13:13:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T131305&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192912&fm=172029885800177&tin=02508201610067®Number=0000000000091776&sum=30000 [13:13:03]OFD Sender: Processing packet 192912 [packets to send 75, broken 74] [13:13:03]ProducePacketName [13:13:03]name=ofd_packets/00192912 [13:13:03]OFD Sender: To server: ‡•öpG, [13:13:03]CommunicateWithHost lk.salyk.kg:30040 [13:13:03]ConnectInit lk.salyk.kg [13:13:03]written 0, free lines is 4095 [13:13:03]Connected sock=8 [13:13:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6D 93 07 01 C1 B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 61 DF 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 9C 75 D4 3B DE F1 66 28 7A AA 97 5B 91 53 [13:13:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 61 A9 47 00 91 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 90 F1 02 00 F4 03 04 00 22 84 20 67 B6 04 01 00 00 27 73 8D E7 89 76 56 E0 [13:13:03]CommunicateWithHost err = 0 [13:13:03]CheckOFDResponse [13:13:03]1017 (14) - 77093643461234 [13:13:03]1041 (16) - 0000000000871754 [13:13:03]1040 (4) - 192912 [13:13:03]1012 (4) - 29.10.2024 06:43 [13:13:03]1206 (1) - 0 [13:13:03]OFD Sender: Remove packet 192912 [13:13:03]ProducePacketName [13:13:03]name=ofd_packets/00192912 [13:13:03]NVStorageDeleteData [13:13:03]Write to MH i2c: 01 00 00 A8 3B E3 [13:13:03]Write i2c OK [13:13:03]MH_I2C_Read... [13:13:03]Read from MH i2c: 01 [13:13:03]MH_I2C_Read... [13:13:03]Read from MH i2c: 01 07 00 [13:13:03]MH_I2C_Read... [13:13:03]Read from MH i2c: 01 07 00 A8 3B 00 00 00 00 00 B2 0C A8 [13:13:03]RasterBufferAndPrint [13:13:03]line [13:13:03]line [13:13:03]line [13:13:03]line [13:13:03]line [13:13:03]written 0, free lines is 3257 [13:13:03]MH_Cut [13:13:03]Write to MH i2c: D1 01 00 AF 3B 01 BC [13:13:03]Write i2c OK [13:13:03]MH_I2C_Read... [13:13:03]Read from MH i2c: D1 [13:13:03]MH_I2C_Read... [13:13:03]Read from MH i2c: D1 01 00 [13:13:03]MH_I2C_Read... [13:13:03]Read from MH i2c: D1 01 00 AF 3B 00 BB [13:13:03]Write to MH i2c: 01 00 00 B0 3B EB [13:13:03]Write i2c OK [13:13:03]MH_I2C_Read... [13:13:03]OFD Sender: No OFD packet to send [13:13:04]*** Cut start [13:13:04]*** Partial cut [13:13:04]*** CUTSNS_PIN = 1 [13:13:04]*** CUTSNS_PIN = 0 [13:13:04]*** Brake cut motor [13:13:04]Read from MH i2c: 01 [13:13:04]MH_I2C_Read... [13:13:04]*** Stop cut motor [13:13:04]*** Cut end [13:13:04]Read from MH i2c: 01 07 00 [13:13:04]MH_I2C_Read... [13:13:04]Read from MH i2c: 01 07 00 B0 3B 00 00 00 00 00 FF 0F 00 [13:13:04]process_action close_receipt done [13:13:04]requested_data is exist [13:13:04]produce_requested_data [13:13:04]requested_item fm.sn is exist - process it [13:13:04]wFMCommunicate request_size=4 [13:13:04]MH_SAM_APDU [13:13:04]CAPDU: 80 11 00 00 [13:13:04]Write to MH i2c: E2 08 00 B1 3B 80 11 00 00 00 00 00 00 66 [13:13:04]Write i2c OK [13:13:04]MH_I2C_Read... [13:13:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:04]Read from MH i2c: E2 [13:13:04]MH_I2C_Read... [13:13:04]Read from MH i2c: E2 17 00 [13:13:04]MH_I2C_Read... [13:13:04]Read from MH i2c: E2 17 00 B1 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B9 [13: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 [13:13:04]wFMCommunicate OK [13:13:04]requested_item fd.num is exist - process it [13:13:04]SAM_PROTO_GetFieldsCounters [13:13:04]wFMCommunicate request_size=4 [13:13:04]MH_SAM_APDU [13:13:04]CAPDU: 80 13 00 00 [13:13:04]Write to MH i2c: E2 08 00 B2 3B 80 13 00 00 00 00 00 00 69 [13:13:04]Write i2c OK [13:13:04]MH_I2C_Read... [13:13:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:13:05]Read from MH i2c: E2 [13:13:05]MH_I2C_Read... [13:13:05]Read from MH i2c: E2 62 00 [13:13:05]MH_I2C_Read... [13:13:05]Read from MH i2c: E2 62 00 B2 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 90 F1 02 00 0E 04 04 00 20 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [13:13: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 90 F1 02 00 0E 04 04 00 20 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:13:05]wFMCommunicate OK [13:13:05]SAM_PROTO_GetFieldsCounters done [13:13:05]requested_item shift.num is exist - process it [13:13:05]requested_item shift.opened is exist - process it [13:13:05]req_shift_opened [13:13:05]FM_GetShiftState [13:13:05]SAM_PROTO_GetShiftState [13:13:05]wFMCommunicate request_size=4 [13:13:05]MH_SAM_APDU [13:13:05]CAPDU: 80 13 01 00 [13:13:05]Write to MH i2c: E2 08 00 B3 3B 80 13 01 00 00 00 00 00 6B [13:13:05]Write i2c OK [13:13:05]MH_I2C_Read... [13:13:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:05]Read from MH i2c: E2 [13:13:05]MH_I2C_Read... [13:13:05]Read from MH i2c: E2 0E 00 [13:13:05]MH_I2C_Read... [13:13:05]Read from MH i2c: E2 0E 00 B3 3B 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 71 [13:13:05]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [13:13:05]wFMCommunicate OK [13:13:05]SAM_PROTO_GetShiftState done [13:13:05]FM_GetShiftState done [13:13:05]req_shift_opened done [13:13:05]requested_item shift.open_date is exist - process it [13:13:05]req_shift_open_date [13:13:05]req_shift_open_date done [13:13:05]produce_requested_data done [13:13:05]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192912,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [13:13:05]process_action_free close_receipt [13:13:05]json_value_free [13:13:05]json_value_free done [13:13:05]process_json_proto returns [13:13:05]Send response to host [13:13:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192912,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [13:13:05]free response buf [13:13:05]execute_script done [13:13:05]execute_script returns [13:13:05]free content buf [13:13:05]Sock 9.Close socket [13:13:05]Sock 9.Thread stoped [13:13:06]accept exits with 10 [13:13:06]New connection [13:13:06]New thread 3066658148 created [13:13:06]Thread 3066801508 joined [13:13:06]Waiting for new connection... [13:13:06] Sock 10.Parse request [13:13:06]Sock 10.Check first char [13:13:06]Sock 10.First char is OK [13:13:06]request: POST /json_proto HTTP/1.0 [13:13:06]Method: POST [13:13:06]URL: /json_proto [13:13:06]Method is POST - this is cgi request [13:13:06]url: /json_proto [13:13:06]query_string will be loaded in cgi processing [13:13:06]execute_cgi json_proto POST (null) [13:13:06]execute_cgi path=json_proto method=POST [13:13:06]POST find Content-Length [13:13:06]Host: 172.17.63.131:8080 [13:13:06]Content-Length: 681 [13:13:06]Content-Type: application/json [13:13:06] [13:13:06]POST finish read [13:13:06]Found Content-Length = 681 [13:13:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32243", "tax_sys" : 0, "items" : [ { "pre_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" ] } } [13:13:06]execute_script... [13: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)32243", "tax_sys" : 0, "items" : [ { "pre_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" ] } } [13:13:06]POST & json_proto [13:13:06]process_json_proto [13:13:06]json parsed OK: [13:13:06]protocol is kg_v1.0 [13:13:06]action value=close_receipt [13:13:06]process_action close_receipt [13:13:06]cmd_close_receipt [13:13:06]MH_GetDate [13:13:06]Write to MH i2c: F0 00 00 B4 3B DE [13:13:06]Write i2c OK [13:13:06]MH_I2C_Read... [13:13:06]Read from MH i2c: F0 [13:13:06]MH_I2C_Read... [13:13:06]Read from MH i2c: F0 09 00 [13:13:06]MH_I2C_Read... [13:13:06]Read from MH i2c: F0 09 00 B4 3B 00 67 DF 20 67 22 05 6E 64 AD [13:13:06]GetLastDocTimeStamp 1730207585 [13:13:06]current date 1730207591 [13:13:06]FM_GetShiftState [13:13:06]SAM_PROTO_GetShiftState [13:13:06]wFMCommunicate request_size=4 [13:13:06]MH_SAM_APDU [13:13:06]CAPDU: 80 13 01 00 [13:13:06]Write to MH i2c: E2 08 00 B5 3B 80 13 01 00 00 00 00 00 6D [13:13:06]Write i2c OK [13:13:06]MH_I2C_Read... [13:13:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:06]Read from MH i2c: E2 [13:13:06]MH_I2C_Read... [13:13:06]Read from MH i2c: E2 0E 00 [13:13:06]MH_I2C_Read... [13:13:06]Read from MH i2c: E2 0E 00 B5 3B 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 73 [13:13:06]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [13:13:06]wFMCommunicate OK [13:13:06]SAM_PROTO_GetShiftState done [13:13:06]FM_GetShiftState done [13:13:06]opened in 1730161990 [13:13:06]opened+sec_in_day 1730248390 [13:13:06]quantity*price = 120018 [13:13:06]sum+1 = 120020 [13:13:06]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 СÐО: Общий режим Чек 119 29.10.2024 13:13 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192913 ФПД: 80461713498480 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T131311&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192913&fm=80461713498480&tin=02508201610067®Number=0000000000091776&sum=120000 [13:13:07]StoreToDocumentArchive [13:13:07]shift 544 fd 192913 [13:13:07]save to /storage/0544/doc_00192913 [13:13:07]save last doc name /storage/0544/doc_00192913 to /storage/kkm_last_doc_name [13:13:07]save OK [13:13:07]Clear old archive folders... [13:13:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:13:07]tlvbuf is 0105D1C0 [13:13:07]SAM_PROTO_ClearQueue [13:13:07]wFMCommunicate request_size=4 [13:13:07]MH_SAM_APDU [13:13:07]CAPDU: 80 09 00 00 [13:13:07]Write to MH i2c: E2 08 00 C2 3B 80 09 00 00 00 00 00 00 6F [13:13:07]Write i2c OK [13:13:07]MH_I2C_Read... [13:13:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:13:07]Read from MH i2c: E2 [13:13:07]MH_I2C_Read... [13:13:07]Read from MH i2c: E2 03 00 [13:13:07]MH_I2C_Read... [13:13:07]Read from MH i2c: E2 03 00 C2 3B 00 90 00 71 [13:13:07]RAPDU: 90 00 [13:13:07]wFMCommunicate OK [13:13:07]SAM_PROTO_ClearQueue done [13:13:07]KKMCreateOFDPacket [13:13:07]OFDProtocolAddRootSTLVToBuf [13:13:07]FM_MakeSignedData [13:13:07]FM_MakeSignedData [13:13:07]SAM_PROTO_SignData [13:13:07]wFMCommunicate request_size=4 [13:13:07]MH_SAM_APDU [13:13:07]CAPDU: 80 0D 01 02 [13:13:07]Write to MH i2c: E2 08 00 C3 3B 80 0D 01 02 00 00 00 00 77 [13:13:07]Write i2c OK [13:13:07]MH_I2C_Read... [13:13:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:13:07]Read from MH i2c: E2 [13:13:07]MH_I2C_Read... [13:13:07]Read from MH i2c: E2 03 00 [13:13:07]MH_I2C_Read... [13:13:07]Read from MH i2c: E2 03 00 C3 3B 00 90 00 72 [13:13:07]RAPDU: 90 00 [13:13:07]wFMCommunicate OK [13:13:07]wFMCommunicate request_size=255 [13:13:07]MH_SAM_APDU [13:13: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 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 77 00 00 00 F4 03 04 00 67 DF 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 49 [13:13:07]Write to MH i2c: E2 02 01 C4 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 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 77 00 00 00 F4 03 04 00 67 DF 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 49 00 00 45 [13:13:07]Write i2c OK [13:13:07]MH_I2C_Read... [13:13:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:08]Read from MH i2c: E2 [13:13:08]MH_I2C_Read... [13:13:08]Read from MH i2c: E2 03 00 [13:13:08]MH_I2C_Read... [13:13:08]Read from MH i2c: E2 03 00 C4 3B 00 90 00 73 [13:13:08]RAPDU: 90 00 [13:13:08]wFMCommunicate OK [13:13:08]wFMCommunicate request_size=10 [13:13:08]MH_SAM_APDU [13:13:08]CAPDU: 80 0D 02 02 05 2D F3 D9 E1 70 [13:13:08]Write to MH i2c: E2 0D 00 C5 3B 80 0D 02 02 05 00 2D F3 D9 E1 70 00 00 CE [13:13:08]Write i2c OK [13:13:08]MH_I2C_Read... [13:13:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:08]Read from MH i2c: E2 [13:13:08]MH_I2C_Read... [13:13:08]Read from MH i2c: E2 03 00 [13:13:08]MH_I2C_Read... [13:13:08]Read from MH i2c: E2 03 00 C5 3B 00 90 00 74 [13:13:08]RAPDU: 90 00 [13:13:08]wFMCommunicate OK [13:13:08]wFMCommunicate request_size=4 [13:13:08]MH_SAM_APDU [13:13:08]CAPDU: 80 0D 03 02 [13:13:08]Write to MH i2c: E2 08 00 C6 3B 80 0D 03 02 00 00 00 00 7C [13:13:08]Write i2c OK [13:13:08]MH_I2C_Read... [13:13:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:13:08]Read from MH i2c: E2 [13:13:08]MH_I2C_Read... [13:13:08]Read from MH i2c: E2 0B 00 [13:13:08]MH_I2C_Read... [13:13:08]Read from MH i2c: E2 0B 00 C6 3B 00 5D 15 D1 E9 38 4C 47 05 90 00 79 [13:13:08]RAPDU: 5D 15 D1 E9 38 4C 47 05 90 00 [13:13:08]wFMCommunicate OK [13:13:08]SAM_PROTO_SignData done [13:13:08]FM_MakeSignedData done [13:13:08]CreateOFDProtocolMessage [13:13:08]wFMCommunicate request_size=4 [13:13:08]MH_SAM_APDU [13:13:08]CAPDU: 80 11 00 00 [13:13:08]Write to MH i2c: E2 08 00 C7 3B 80 11 00 00 00 00 00 00 7C [13:13:08]Write i2c OK [13:13:08]MH_I2C_Read... [13:13:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:08]Read from MH i2c: E2 [13:13:08]MH_I2C_Read... [13:13:08]Read from MH i2c: E2 17 00 [13:13:08]MH_I2C_Read... [13:13:08]Read from MH i2c: E2 17 00 C7 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CF [13: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 [13:13:08]wFMCommunicate OK [13:13:08]CreateOFDProtocolMessage done [13:13:08]OFDSenderStorePacket 192913 [13:13:08]StoreOFDPacket docnum=192913 [13: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 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 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 77 00 00 00 F4 03 04 00 67 DF 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 49 2D F3 D9 E1 70 5D 15 D1 E9 38 4C 47 05 [13:13:08]CheckFolder [13:13:08]dirname=/storage/ofd_packets [13:13:08]CheckFolder done [13:13:08]ProducePacketName [13:13:08]name=ofd_packets/00192913 [13:13:08]NVStorageSaveData ofd_packets/00192913 [13:13:08]File name is /storage/ofd_packets/00192913 [13:13:08]Write 301 bytes [13:13:08]NVStorageSaveData done [13:13:08]OFDSenderStorePacket done [13:13:08]KKMCreateOFDPacket done [13:13:08]NVStorageSaveData kkm_last_timestamp [13:13:08]File name is /storage/kkm_last_timestamp [13:13:08]Write 4 bytes [13:13:08]NVStorageSaveData done [13:13:08]ExternCall_PrintAddStr [13:13:08]wPrintStart [13:13:08]Write to MH i2c: 01 00 00 C8 3B 03 [13:13:08]Write i2c OK [13:13:08]MH_I2C_Read... [13:13:08]Read from MH i2c: 01 [13:13:08]MH_I2C_Read... [13:13:08]OFD Sender: Processing packet 192913 [packets to send 75, broken 74] [13:13:08]ProducePacketName [13:13:08]name=ofd_packets/00192913 [13:13:08]OFD Sender: To server: ‡•öpG, [13:13:08]CommunicateWithHost lk.salyk.kg:30040 [13:13:08]ConnectInit lk.salyk.kg [13:13:08]Read from MH i2c: 01 07 00 [13:13:08]MH_I2C_Read... [13:13:08]Read from MH i2c: 01 07 00 C8 3B 00 00 00 00 00 FF 0F 18 [13:13:08]RasterBufferAndPrint [13:13:08]line Счет N : (1)32243 [13:13:08]line ИÐÐ: 02508201610067 [13:13:08]line Контрольно-КаÑÑовый Чек [13:13:08]line ПРОДÐЖР[13:13:08]line ТРК (МРК, ГÐК) : 21 [13:13:08]line Товар: 2710124130 [13:13:08]line Ðи-92-К-5 [13:13:08]line 17.940 * 66.90 [13:13:08]line = 1200.19 [13:13:08]line ÐДС 12% ÐСП 1% [13:13:08]line > о реализуемом товаре [13:13:08]line ОКРУГЛЕÐИЕ: -0.19 [13:13:08]line ИТОГО: 1200.00 [13:13:08]line ВнеÑено: 1200.00 [13:13:08]line СДÐЧÐ: 0.00 [13:13:08]line ÐСП 1% : 10.62 [13:13:08]line ÐДС 12% : 127.45 [13:13:08]line Ðаличными: 1200.00 [13:13:08]line Безнал.: 0.00 [13:13:08]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [13:13:08]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [13:13:08]line СÐО: Общий режим [13:13:08]line Чек 119 29.10.2024 13:13 [13:13:08]line Смена: 544 ФФД: 1.0 [13:13:08]line ЗÐМ: 0300000110 [13:13:08]line РÐМ: 0000000000091776 [13:13:08]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [13:13:08]line ФМ: 0000000000871754 [13:13:08]line ФД: 192913 [13:13:08]line ФПД: 80461713498480 [13:13:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T131311&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192913&fm=80461713498480&tin=02508201610067®Number=0000000000091776&sum=120000 [13:13:08]written 0, free lines is 4095 [13:13:08]Connected sock=8 [13: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 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 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 77 00 00 00 F4 03 04 00 67 DF 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 49 2D F3 D9 E1 70 5D 15 D1 E9 38 4C 47 05 [13:13: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 B0 EE 47 00 30 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 91 F1 02 00 F4 03 04 00 27 84 20 67 B6 04 01 00 00 67 8A 4E B9 50 02 B8 5B [13:13:08]CommunicateWithHost err = 0 [13:13:08]CheckOFDResponse [13:13:08]1017 (14) - 77093643461234 [13:13:08]1041 (16) - 0000000000871754 [13:13:08]1040 (4) - 192913 [13:13:08]1012 (4) - 29.10.2024 06:43 [13:13:08]1206 (1) - 0 [13:13:08]OFD Sender: Remove packet 192913 [13:13:08]ProducePacketName [13:13:08]name=ofd_packets/00192913 [13:13:08]NVStorageDeleteData [13:13:08]Write to MH i2c: 01 00 00 F3 3B 2E [13:13:08]Write i2c OK [13:13:08]MH_I2C_Read... [13:13:08]Read from MH i2c: 01 [13:13:08]MH_I2C_Read... [13:13:08]Read from MH i2c: 01 07 00 [13:13:08]MH_I2C_Read... [13:13:08]Read from MH i2c: 01 07 00 F3 3B 00 00 00 00 00 C3 0C 04 [13:13:08]RasterBufferAndPrint [13:13:08]line [13:13:08]line [13:13:08]line [13:13:08]line [13:13:08]line [13:13:08]written 0, free lines is 3280 [13:13:08]MH_Cut [13:13:08]Write to MH i2c: D1 01 00 FA 3B 01 07 [13:13:08]Write i2c OK [13:13:08]MH_I2C_Read... [13:13:08]Read from MH i2c: D1 [13:13:08]MH_I2C_Read... [13:13:08]Read from MH i2c: D1 01 00 [13:13:08]MH_I2C_Read... [13:13:08]Read from MH i2c: D1 01 00 FA 3B 00 06 [13:13:08]Write to MH i2c: 01 00 00 FB 3B 36 [13:13:08]Write i2c OK [13:13:08]MH_I2C_Read... [13:13:09]OFD Sender: No OFD packet to send [13:13:09]*** Cut start [13:13:09]*** Partial cut [13:13:09]*** CUTSNS_PIN = 1 [13:13:09]*** CUTSNS_PIN = 0 [13:13:09]*** Brake cut motor [13:13:10]Read from MH i2c: 01 [13:13:10]MH_I2C_Read... [13:13:10]*** Stop cut motor [13:13:10]*** Cut end [13:13:10]Read from MH i2c: 01 07 00 [13:13:10]MH_I2C_Read... [13:13:10]Read from MH i2c: 01 07 00 FB 3B 00 00 00 00 00 FF 0F 4B [13:13:10]process_action close_receipt done [13:13:10]requested_data is exist [13:13:10]produce_requested_data [13:13:10]requested_item fm.sn is exist - process it [13:13:10]wFMCommunicate request_size=4 [13:13:10]MH_SAM_APDU [13:13:10]CAPDU: 80 11 00 00 [13:13:10]Write to MH i2c: E2 08 00 FC 3B 80 11 00 00 00 00 00 00 B1 [13:13:10]Write i2c OK [13:13:10]MH_I2C_Read... [13:13:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:10]Read from MH i2c: E2 [13:13:10]MH_I2C_Read... [13:13:10]Read from MH i2c: E2 17 00 [13:13:10]MH_I2C_Read... [13:13:10]Read from MH i2c: E2 17 00 FC 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 04 [13: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 [13:13:10]wFMCommunicate OK [13:13:10]requested_item fd.num is exist - process it [13:13:10]SAM_PROTO_GetFieldsCounters [13:13:10]wFMCommunicate request_size=4 [13:13:10]MH_SAM_APDU [13:13:10]CAPDU: 80 13 00 00 [13:13:10]Write to MH i2c: E2 08 00 FD 3B 80 13 00 00 00 00 00 00 B4 [13:13:10]Write i2c OK [13:13:10]MH_I2C_Read... [13:13:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:13:10]Read from MH i2c: E2 [13:13:10]MH_I2C_Read... [13:13:10]Read from MH i2c: E2 62 00 [13:13:10]MH_I2C_Read... [13:13:10]Read from MH i2c: E2 62 00 FD 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 91 F1 02 00 0E 04 04 00 20 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 E5 [13: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 91 F1 02 00 0E 04 04 00 20 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 [13:13:10]wFMCommunicate OK [13:13:10]SAM_PROTO_GetFieldsCounters done [13:13:10]requested_item shift.num is exist - process it [13:13:10]requested_item shift.opened is exist - process it [13:13:10]req_shift_opened [13:13:10]FM_GetShiftState [13:13:10]SAM_PROTO_GetShiftState [13:13:10]wFMCommunicate request_size=4 [13:13:10]MH_SAM_APDU [13:13:10]CAPDU: 80 13 01 00 [13:13:10]Write to MH i2c: E2 08 00 FE 3B 80 13 01 00 00 00 00 00 B6 [13:13:10]Write i2c OK [13:13:10]MH_I2C_Read... [13:13:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:10]Read from MH i2c: E2 [13:13:10]MH_I2C_Read... [13:13:10]Read from MH i2c: E2 0E 00 [13:13:10]MH_I2C_Read... [13:13:10]Read from MH i2c: E2 0E 00 FE 3B 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 BC [13:13:10]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [13:13:10]wFMCommunicate OK [13:13:10]SAM_PROTO_GetShiftState done [13:13:10]FM_GetShiftState done [13:13:10]req_shift_opened done [13:13:10]requested_item shift.open_date is exist - process it [13:13:10]req_shift_open_date [13:13:10]req_shift_open_date done [13:13:10]produce_requested_data done [13:13:10]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192913,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [13:13:10]process_action_free close_receipt [13:13:10]json_value_free [13:13:10]json_value_free done [13:13:10]process_json_proto returns [13:13:10]Send response to host [13:13:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192913,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [13:13:10]free response buf [13:13:10]execute_script done [13:13:10]execute_script returns [13:13:10]free content buf [13:13:10]Sock 10.Close socket [13:13:10]Sock 10.Thread stoped [13:13:14]OFD Sender: No OFD packet to send [13:13:19]OFD Sender: No OFD packet to send [13:13:24]OFD Sender: No OFD packet to send [13:13:29]OFD Sender: No OFD packet to send [13:13:34]OFD Sender: No OFD packet to send [13:13:39]OFD Sender: No OFD packet to send [13:13:44]OFD Sender: No OFD packet to send [13:13:49]OFD Sender: No OFD packet to send [13:13:54]OFD Sender: No OFD packet to send [13:13:59]OFD Sender: No OFD packet to send [13:14:04]OFD Sender: No OFD packet to send [13:14:09]OFD Sender: No OFD packet to send [13:14:14]OFD Sender: No OFD packet to send [13:14:19]OFD Sender: No OFD packet to send [13:14:24]OFD Sender: No OFD packet to send [13:14:29]OFD Sender: No OFD packet to send [13:14:34]OFD Sender: No OFD packet to send [13:14:39]OFD Sender: No OFD packet to send [13:14:44]OFD Sender: No OFD packet to send [13:14:49]OFD Sender: No OFD packet to send [13:14:54]OFD Sender: No OFD packet to send [13:14:59]OFD Sender: No OFD packet to send [13:15:04]OFD Sender: No OFD packet to send [13:15:09]OFD Sender: No OFD packet to send [13:15:14]OFD Sender: No OFD packet to send [13:15:19]OFD Sender: No OFD packet to send [13:15:24]OFD Sender: No OFD packet to send [13:15:29]OFD Sender: No OFD packet to send [13:15:34]OFD Sender: No OFD packet to send [13:15:39]OFD Sender: No OFD packet to send [13:15:44]OFD Sender: No OFD packet to send [13:15:49]OFD Sender: No OFD packet to send [13:15:54]OFD Sender: No OFD packet to send [13:15:59]OFD Sender: No OFD packet to send [13:16:04]OFD Sender: No OFD packet to send [13:16:09]OFD Sender: No OFD packet to send [13:16:14]OFD Sender: No OFD packet to send [13:16:19]OFD Sender: No OFD packet to send [13:16:24]OFD Sender: No OFD packet to send [13:16:29]OFD Sender: No OFD packet to send [13:16:34]OFD Sender: No OFD packet to send [13:16:39]OFD Sender: No OFD packet to send [13:16:44]OFD Sender: No OFD packet to send [13:16:49]OFD Sender: No OFD packet to send [13:16:54]OFD Sender: No OFD packet to send [13:16:59]OFD Sender: No OFD packet to send [13:17:04]OFD Sender: No OFD packet to send [13:17:09]OFD Sender: No OFD packet to send [13:17:14]OFD Sender: No OFD packet to send [13:17:19]OFD Sender: No OFD packet to send [13:17:21]accept exits with 9 [13:17:21]New connection [13:17:21]New thread 3066801508 created [13:17:21] Sock 9.Parse request [13:17:21]Thread 3066658148 joined [13:17:21]Sock 9.Check first char [13:17:21]Waiting for new connection... [13:17:21]Sock 9.First char is OK [13:17:21]request: POST /json_proto HTTP/1.0 [13:17:21]Method: POST [13:17:21]URL: /json_proto [13:17:21]Method is POST - this is cgi request [13:17:21]url: /json_proto [13:17:21]query_string will be loaded in cgi processing [13:17:21]execute_cgi json_proto POST (null) [13:17:21]execute_cgi path=json_proto method=POST [13:17:21]POST find Content-Length [13:17:21]Host: 172.17.63.131:8080 [13:17:21]Content-Length: 676 [13:17:21]Content-Type: application/json [13:17:21] [13:17:21]POST finish read [13:17:21]Found Content-Length = 676 [13:17:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32245", "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:17:21]execute_script... [13:17: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)32245", "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:17:21]POST & json_proto [13:17:21]process_json_proto [13:17:21]json parsed OK: [13:17:21]protocol is kg_v1.0 [13:17:21]action value=close_receipt [13:17:21]process_action close_receipt [13:17:21]cmd_close_receipt [13:17:21]MH_GetDate [13:17:21]Write to MH i2c: F0 00 00 FF 3B 29 [13:17:21]Write i2c OK [13:17:21]MH_I2C_Read... [13:17:21]Read from MH i2c: F0 [13:17:21]MH_I2C_Read... [13:17:21]Read from MH i2c: F0 09 00 [13:17:21]MH_I2C_Read... [13:17:21]Read from MH i2c: F0 09 00 FF 3B 00 65 E0 20 67 22 05 6E 64 F7 [13:17:21]GetLastDocTimeStamp 1730207591 [13:17:21]current date 1730207845 [13:17:21]FM_GetShiftState [13:17:21]SAM_PROTO_GetShiftState [13:17:21]wFMCommunicate request_size=4 [13:17:21]MH_SAM_APDU [13:17:21]CAPDU: 80 13 01 00 [13:17:21]Write to MH i2c: E2 08 00 00 3C 80 13 01 00 00 00 00 00 B9 [13:17:21]Write i2c OK [13:17:21]MH_I2C_Read... [13:17:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:21]Read from MH i2c: E2 [13:17:21]MH_I2C_Read... [13:17:21]Read from MH i2c: E2 0E 00 [13:17:21]MH_I2C_Read... [13:17:21]Read from MH i2c: E2 0E 00 00 3C 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 BF [13:17:21]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [13:17:21]wFMCommunicate OK [13:17:21]SAM_PROTO_GetShiftState done [13:17:21]FM_GetShiftState done [13:17:21]opened in 1730161990 [13:17:21]opened+sec_in_day 1730248390 [13:17:21]quantity*price = 40006 [13:17:21]sum+1 = 40007 [13:17:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.06 ИТОГО: 400.00 ВнеÑено: 400.00 СДÐЧÐ: 0.00 ÐСП 1% : 3.54 ÐДС 12% : 42.48 Ðаличными: 400.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 170 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 СÐО: Общий режим Чек 120 29.10.2024 13:17 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192914 ФПД: 195234783300296 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T131725&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192914&fm=195234783300296&tin=02508201610067®Number=0000000000091776&sum=40000 [13:17:22]StoreToDocumentArchive [13:17:22]shift 544 fd 192914 [13:17:22]save to /storage/0544/doc_00192914 [13:17:22]save last doc name /storage/0544/doc_00192914 to /storage/kkm_last_doc_name [13:17:22]save OK [13:17:22]Clear old archive folders... [13:17:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:17:22]tlvbuf is 00F01E30 [13:17:22]SAM_PROTO_ClearQueue [13:17:22]wFMCommunicate request_size=4 [13:17:22]MH_SAM_APDU [13:17:22]CAPDU: 80 09 00 00 [13:17:22]Write to MH i2c: E2 08 00 0D 3C 80 09 00 00 00 00 00 00 BB [13:17:22]Write i2c OK [13:17:22]MH_I2C_Read... [13:17:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:17:22]Read from MH i2c: E2 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 03 00 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 03 00 0D 3C 00 90 00 BD [13:17:22]RAPDU: 90 00 [13:17:22]wFMCommunicate OK [13:17:22]SAM_PROTO_ClearQueue done [13:17:22]KKMCreateOFDPacket [13:17:22]OFDProtocolAddRootSTLVToBuf [13:17:22]FM_MakeSignedData [13:17:22]FM_MakeSignedData [13:17:22]SAM_PROTO_SignData [13:17:22]wFMCommunicate request_size=4 [13:17:22]MH_SAM_APDU [13:17:22]CAPDU: 80 0D 01 02 [13:17:22]Write to MH i2c: E2 08 00 0E 3C 80 0D 01 02 00 00 00 00 C3 [13:17:22]Write i2c OK [13:17:22]MH_I2C_Read... [13:17:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:17:22]Read from MH i2c: E2 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 03 00 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 03 00 0E 3C 00 90 00 BE [13:17:22]RAPDU: 90 00 [13:17:22]wFMCommunicate OK [13:17:22]wFMCommunicate request_size=255 [13:17:22]MH_SAM_APDU [13:17:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 65 E0 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 B1 [13:17:22]Write to MH i2c: E2 02 01 0F 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 65 E0 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 B1 00 00 C2 [13:17:22]Write i2c OK [13:17:22]MH_I2C_Read... [13:17:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:22]Read from MH i2c: E2 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 03 00 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 03 00 0F 3C 00 90 00 BF [13:17:22]RAPDU: 90 00 [13:17:22]wFMCommunicate OK [13:17:22]wFMCommunicate request_size=10 [13:17:22]MH_SAM_APDU [13:17:22]CAPDU: 80 0D 02 02 05 90 A3 E8 0A C8 [13:17:22]Write to MH i2c: E2 0D 00 10 3C 80 0D 02 02 05 00 90 A3 E8 0A C8 00 00 BD [13:17:22]Write i2c OK [13:17:22]MH_I2C_Read... [13:17:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:22]Read from MH i2c: E2 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 03 00 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 03 00 10 3C 00 90 00 C0 [13:17:22]RAPDU: 90 00 [13:17:22]wFMCommunicate OK [13:17:22]wFMCommunicate request_size=4 [13:17:22]MH_SAM_APDU [13:17:22]CAPDU: 80 0D 03 02 [13:17:22]Write to MH i2c: E2 08 00 11 3C 80 0D 03 02 00 00 00 00 C8 [13:17:22]Write i2c OK [13:17:22]MH_I2C_Read... [13:17:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:17:22]Read from MH i2c: E2 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 0B 00 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 0B 00 11 3C 00 CB 7D B2 46 3E 0D A0 6B 90 00 5F [13:17:22]RAPDU: CB 7D B2 46 3E 0D A0 6B 90 00 [13:17:22]wFMCommunicate OK [13:17:22]SAM_PROTO_SignData done [13:17:22]FM_MakeSignedData done [13:17:22]CreateOFDProtocolMessage [13:17:22]wFMCommunicate request_size=4 [13:17:22]MH_SAM_APDU [13:17:22]CAPDU: 80 11 00 00 [13:17:22]Write to MH i2c: E2 08 00 12 3C 80 11 00 00 00 00 00 00 C8 [13:17:22]Write i2c OK [13:17:22]MH_I2C_Read... [13:17:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:22]Read from MH i2c: E2 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 17 00 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 17 00 12 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1B [13:17: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:17:22]wFMCommunicate OK [13:17:22]CreateOFDProtocolMessage done [13:17:22]OFDSenderStorePacket 192914 [13:17:22]StoreOFDPacket docnum=192914 [13:17: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 86 B4 07 01 4B 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 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 78 00 00 00 F4 03 04 00 65 E0 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 B1 90 A3 E8 0A C8 CB 7D B2 46 3E 0D A0 6B [13:17:22]CheckFolder [13:17:22]dirname=/storage/ofd_packets [13:17:22]CheckFolder done [13:17:22]ProducePacketName [13:17:22]name=ofd_packets/00192914 [13:17:22]NVStorageSaveData ofd_packets/00192914 [13:17:22]File name is /storage/ofd_packets/00192914 [13:17:22]Write 301 bytes [13:17:22]NVStorageSaveData done [13:17:22]OFDSenderStorePacket done [13:17:22]KKMCreateOFDPacket done [13:17:22]NVStorageSaveData kkm_last_timestamp [13:17:22]File name is /storage/kkm_last_timestamp [13:17:22]Write 4 bytes [13:17:22]NVStorageSaveData done [13:17:22]ExternCall_PrintAddStr [13:17:22]wPrintStart [13:17:22]Write to MH i2c: 01 00 00 13 3C 4F [13:17:22]Write i2c OK [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: 01 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: 01 07 00 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: 01 07 00 13 3C 00 00 00 00 00 FF 0F 64 [13:17:22]RasterBufferAndPrint [13:17:22]line Счет N : (1)32245 [13:17:22]line ИÐÐ: 02508201610067 [13:17:22]line Контрольно-КаÑÑовый Чек [13:17:22]line ПРОДÐЖР[13:17:22]line ТРК (МРК, ГÐК) : 12 [13:17:22]line Товар: 2710124130 [13:17:22]line Ðи-92-К-5 [13:17:22]line 5.980 * 66.90 [13:17:22]line = 400.06 [13:17:22]line ÐДС 12% ÐСП 1% [13:17:22]line > о реализуемом товаре [13:17:22]line ОКРУГЛЕÐИЕ: -0.06 [13:17:22]line ИТОГО: 400.00 [13:17:22]line ВнеÑено: 400.00 [13:17:22]line СДÐЧÐ: 0.00 [13:17:22]line ÐСП 1% : 3.54 [13:17:22]line ÐДС 12% : 42.48 [13:17:22]line Ðаличными: 400.00 [13:17:22]line Безнал.: 0.00 [13:17:22]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [13:17:22]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [13:17:22]line СÐО: Общий режим [13:17:22]line Чек 120 29.10.2024 13:17 [13:17:22]line Смена: 544 ФФД: 1.0 [13:17:22]line ЗÐМ: 0300000110 [13:17:22]line РÐМ: 0000000000091776 [13:17:22]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [13:17:22]line ФМ: 0000000000871754 [13:17:22]line ФД: 192914 [13:17:22]line ФПД: 195234783300296 [13:17:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T131725&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192914&fm=195234783300296&tin=02508201610067®Number=0000000000091776&sum=40000 [13:17:23]OFD Sender: Processing packet 192914 [packets to send 75, broken 74] [13:17:23]ProducePacketName [13:17:23]name=ofd_packets/00192914 [13:17:23]OFD Sender: To server: ‡•öpG, [13:17:23]CommunicateWithHost lk.salyk.kg:30040 [13:17:23]ConnectInit lk.salyk.kg [13:17:23]written 0, free lines is 4095 [13:17:23]Connected sock=10 [13:17: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 86 B4 07 01 4B 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 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 78 00 00 00 F4 03 04 00 65 E0 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 B1 90 A3 E8 0A C8 CB 7D B2 46 3E 0D A0 6B [13:17: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 A3 D0 47 00 90 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 92 F1 02 00 F4 03 04 00 26 85 20 67 B6 04 01 00 00 96 E9 73 F5 34 A8 A1 92 [13:17:23]CommunicateWithHost err = 0 [13:17:23]CheckOFDResponse [13:17:23]1017 (14) - 77093643461234 [13:17:23]1041 (16) - 0000000000871754 [13:17:23]1040 (4) - 192914 [13:17:23]1012 (4) - 29.10.2024 06:48 [13:17:23]1206 (1) - 0 [13:17:23]OFD Sender: Remove packet 192914 [13:17:23]ProducePacketName [13:17:23]name=ofd_packets/00192914 [13:17:23]NVStorageDeleteData [13:17:23]Write to MH i2c: 01 00 00 3E 3C 7A [13:17:23]Write i2c OK [13:17:23]MH_I2C_Read... [13:17:23]Read from MH i2c: 01 [13:17:23]MH_I2C_Read... [13:17:23]Read from MH i2c: 01 07 00 [13:17:23]MH_I2C_Read... [13:17:23]Read from MH i2c: 01 07 00 3E 3C 00 00 00 00 00 CD 0C 5A [13:17:23]RasterBufferAndPrint [13:17:23]line [13:17:23]line [13:17:23]line [13:17:23]line [13:17:23]line [13:17:23]written 0, free lines is 3286 [13:17:23]MH_Cut [13:17:23]Write to MH i2c: D1 01 00 45 3C 01 53 [13:17:23]Write i2c OK [13:17:23]MH_I2C_Read... [13:17:23]Read from MH i2c: D1 [13:17:23]MH_I2C_Read... [13:17:23]Read from MH i2c: D1 01 00 [13:17:23]MH_I2C_Read... [13:17:23]Read from MH i2c: D1 01 00 45 3C 00 52 [13:17:23]Write to MH i2c: 01 00 00 46 3C 82 [13:17:23]Write i2c OK [13:17:23]MH_I2C_Read... [13:17:24]OFD Sender: No OFD packet to send [13:17:24]*** Cut start [13:17:24]*** Partial cut [13:17:24]*** CUTSNS_PIN = 1 [13:17:24]*** CUTSNS_PIN = 0 [13:17:24]*** Brake cut motor [13:17:25]Read from MH i2c: 01 [13:17:25]MH_I2C_Read... [13:17:25]*** Stop cut motor [13:17:25]*** Cut end [13:17:25]Read from MH i2c: 01 07 00 [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: 01 07 00 46 3C 00 00 00 00 00 FF 0F 97 [13:17:25]process_action close_receipt done [13:17:25]requested_data is exist [13:17:25]produce_requested_data [13:17:25]requested_item fm.sn is exist - process it [13:17:25]wFMCommunicate request_size=4 [13:17:25]MH_SAM_APDU [13:17:25]CAPDU: 80 11 00 00 [13:17:25]Write to MH i2c: E2 08 00 47 3C 80 11 00 00 00 00 00 00 FD [13:17:25]Write i2c OK [13:17:25]MH_I2C_Read... [13:17:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:25]Read from MH i2c: E2 [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: E2 17 00 [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: E2 17 00 47 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 50 [13:17: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:17:25]wFMCommunicate OK [13:17:25]requested_item fd.num is exist - process it [13:17:25]SAM_PROTO_GetFieldsCounters [13:17:25]wFMCommunicate request_size=4 [13:17:25]MH_SAM_APDU [13:17:25]CAPDU: 80 13 00 00 [13:17:25]Write to MH i2c: E2 08 00 48 3C 80 13 00 00 00 00 00 00 00 [13:17:25]Write i2c OK [13:17:25]MH_I2C_Read... [13:17:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:17:25]Read from MH i2c: E2 [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: E2 62 00 [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: E2 62 00 48 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 92 F1 02 00 0E 04 04 00 20 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 35 [13:17:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 F1 02 00 0E 04 04 00 20 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 [13:17:25]wFMCommunicate OK [13:17:25]SAM_PROTO_GetFieldsCounters done [13:17:25]requested_item shift.num is exist - process it [13:17:25]requested_item shift.opened is exist - process it [13:17:25]req_shift_opened [13:17:25]FM_GetShiftState [13:17:25]SAM_PROTO_GetShiftState [13:17:25]wFMCommunicate request_size=4 [13:17:25]MH_SAM_APDU [13:17:25]CAPDU: 80 13 01 00 [13:17:25]Write to MH i2c: E2 08 00 49 3C 80 13 01 00 00 00 00 00 02 [13:17:25]Write i2c OK [13:17:25]MH_I2C_Read... [13:17:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:25]Read from MH i2c: E2 [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: E2 0E 00 [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: E2 0E 00 49 3C 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 08 [13:17:25]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [13:17:25]wFMCommunicate OK [13:17:25]SAM_PROTO_GetShiftState done [13:17:25]FM_GetShiftState done [13:17:25]req_shift_opened done [13:17:25]requested_item shift.open_date is exist - process it [13:17:25]req_shift_open_date [13:17:25]req_shift_open_date done [13:17:25]produce_requested_data done [13:17:25]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192914,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [13:17:25]process_action_free close_receipt [13:17:25]json_value_free [13:17:25]json_value_free done [13:17:25]process_json_proto returns [13:17:25]Send response to host [13:17:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192914,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [13:17:25]free response buf [13:17:25]execute_script done [13:17:25]execute_script returns [13:17:25]free content buf [13:17:25]Sock 9.Close socket [13:17:25]Sock 9.Thread stoped [13:17:29]OFD Sender: No OFD packet to send [13:17:34]OFD Sender: No OFD packet to send [13:17:39]OFD Sender: No OFD packet to send [13:17:44]OFD Sender: No OFD packet to send [13:17:49]OFD Sender: No OFD packet to send [13:17:54]OFD Sender: No OFD packet to send [13:17:59]OFD Sender: No OFD packet to send [13:18:04]OFD Sender: No OFD packet to send [13:18:09]OFD Sender: No OFD packet to send [13:18:14]OFD Sender: No OFD packet to send [13:18:19]OFD Sender: No OFD packet to send [13:18:24]OFD Sender: No OFD packet to send [13:18:29]OFD Sender: No OFD packet to send [13:18:34]OFD Sender: No OFD packet to send [13:18:35]accept exits with 8 [13:18:35]New connection [13:18:35]New thread 3066658148 created [13:18:35]Thread 3066801508 joined [13:18:35]Waiting for new connection... [13:18:35] Sock 8.Parse request [13:18:35]Sock 8.Check first char [13:18:35]Sock 8.First char is OK [13:18:35]request: POST /json_proto HTTP/1.0 [13:18:35]Method: POST [13:18:35]URL: /json_proto [13:18:35]Method is POST - this is cgi request [13:18:35]url: /json_proto [13:18:35]query_string will be loaded in cgi processing [13:18:35]execute_cgi json_proto POST (null) [13:18:35]execute_cgi path=json_proto method=POST [13:18:35]POST find Content-Length [13:18:35]Host: 172.17.63.131:8080 [13:18:35]Content-Length: 677 [13:18:35]Content-Type: application/json [13:18:35] [13:18:35]POST finish read [13:18:35]Found Content-Length = 677 [13:18:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32246", "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" ] } } [13:18:35]execute_script... [13:18: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)32246", "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" ] } } [13:18:35]POST & json_proto [13:18:35]process_json_proto [13:18:35]json parsed OK: [13:18:35]protocol is kg_v1.0 [13:18:35]action value=close_receipt [13:18:35]process_action close_receipt [13:18:35]cmd_close_receipt [13:18:35]MH_GetDate [13:18:35]Write to MH i2c: F0 00 00 4A 3C 75 [13:18:35]Write i2c OK [13:18:35]MH_I2C_Read... [13:18:35]Read from MH i2c: F0 [13:18:35]MH_I2C_Read... [13:18:35]Read from MH i2c: F0 09 00 [13:18:35]MH_I2C_Read... [13:18:35]Read from MH i2c: F0 09 00 4A 3C 00 B0 E0 20 67 22 05 6E 64 8E [13:18:35]GetLastDocTimeStamp 1730207845 [13:18:35]current date 1730207920 [13:18:35]FM_GetShiftState [13:18:35]SAM_PROTO_GetShiftState [13:18:35]wFMCommunicate request_size=4 [13:18:35]MH_SAM_APDU [13:18:35]CAPDU: 80 13 01 00 [13:18:35]Write to MH i2c: E2 08 00 4B 3C 80 13 01 00 00 00 00 00 04 [13:18:35]Write i2c OK [13:18:35]MH_I2C_Read... [13:18:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:35]Read from MH i2c: E2 [13:18:35]MH_I2C_Read... [13:18:35]Read from MH i2c: E2 0E 00 [13:18:35]MH_I2C_Read... [13:18:35]Read from MH i2c: E2 0E 00 4B 3C 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 0A [13:18:35]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [13:18:35]wFMCommunicate OK [13:18:35]SAM_PROTO_GetShiftState done [13:18:35]FM_GetShiftState done [13:18:35]opened in 1730161990 [13:18:35]opened+sec_in_day 1730248390 [13:18:35]quantity*price = 80012 [13:18:35]sum+1 = 80013 [13:18:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.12 ИТОГО: 800.00 ВнеÑено: 800.00 СДÐЧÐ: 0.00 ÐСП 1% : 7.08 ÐДС 12% : 84.97 Ðаличными: 800.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 170 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 СÐО: Общий режим Чек 121 29.10.2024 13:18 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192915 ФПД: 240138452175329 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T131840&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192915&fm=240138452175329&tin=02508201610067®Number=0000000000091776&sum=80000 [13:18:36]StoreToDocumentArchive [13:18:36]shift 544 fd 192915 [13:18:36]save to /storage/0544/doc_00192915 [13:18:36]save last doc name /storage/0544/doc_00192915 to /storage/kkm_last_doc_name [13:18:36]save OK [13:18:36]Clear old archive folders... [13:18:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:18:36]tlvbuf is 00F0F1B0 [13:18:36]SAM_PROTO_ClearQueue [13:18:36]wFMCommunicate request_size=4 [13:18:36]MH_SAM_APDU [13:18:36]CAPDU: 80 09 00 00 [13:18:36]Write to MH i2c: E2 08 00 58 3C 80 09 00 00 00 00 00 00 06 [13:18:36]Write i2c OK [13:18:36]MH_I2C_Read... [13:18:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:18:36]Read from MH i2c: E2 [13:18:36]MH_I2C_Read... [13:18:36]Read from MH i2c: E2 03 00 [13:18:36]MH_I2C_Read... [13:18:36]Read from MH i2c: E2 03 00 58 3C 00 90 00 08 [13:18:36]RAPDU: 90 00 [13:18:36]wFMCommunicate OK [13:18:36]SAM_PROTO_ClearQueue done [13:18:36]KKMCreateOFDPacket [13:18:36]OFDProtocolAddRootSTLVToBuf [13:18:36]FM_MakeSignedData [13:18:36]FM_MakeSignedData [13:18:36]SAM_PROTO_SignData [13:18:36]wFMCommunicate request_size=4 [13:18:36]MH_SAM_APDU [13:18:36]CAPDU: 80 0D 01 02 [13:18:36]Write to MH i2c: E2 08 00 59 3C 80 0D 01 02 00 00 00 00 0E [13:18:36]Write i2c OK [13:18:36]MH_I2C_Read... [13:18:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:18:36]Read from MH i2c: E2 [13:18:36]MH_I2C_Read... [13:18:36]Read from MH i2c: E2 03 00 [13:18:36]MH_I2C_Read... [13:18:36]Read from MH i2c: E2 03 00 59 3C 00 90 00 09 [13:18:36]RAPDU: 90 00 [13:18:36]wFMCommunicate OK [13:18:36]wFMCommunicate request_size=255 [13:18:36]MH_SAM_APDU [13:18:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 B0 E0 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 DA [13:18:36]Write to MH i2c: E2 02 01 5A 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 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 79 00 00 00 F4 03 04 00 B0 E0 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 DA 00 00 A0 [13:18:36]Write i2c OK [13:18:36]MH_I2C_Read... [13:18:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:37]Read from MH i2c: E2 [13:18:37]MH_I2C_Read... [13:18:37]Read from MH i2c: E2 03 00 [13:18:37]MH_I2C_Read... [13:18:37]Read from MH i2c: E2 03 00 5A 3C 00 90 00 0A [13:18:37]RAPDU: 90 00 [13:18:37]wFMCommunicate OK [13:18:37]wFMCommunicate request_size=10 [13:18:37]MH_SAM_APDU [13:18:37]CAPDU: 80 0D 02 02 05 67 97 23 89 E1 [13:18:37]Write to MH i2c: E2 0D 00 5B 3C 80 0D 02 02 05 00 67 97 23 89 E1 00 00 A6 [13:18:37]Write i2c OK [13:18:37]MH_I2C_Read... [13:18:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:37]Read from MH i2c: E2 [13:18:37]MH_I2C_Read... [13:18:37]Read from MH i2c: E2 03 00 [13:18:37]MH_I2C_Read... [13:18:37]Read from MH i2c: E2 03 00 5B 3C 00 90 00 0B [13:18:37]RAPDU: 90 00 [13:18:37]wFMCommunicate OK [13:18:37]wFMCommunicate request_size=4 [13:18:37]MH_SAM_APDU [13:18:37]CAPDU: 80 0D 03 02 [13:18:37]Write to MH i2c: E2 08 00 5C 3C 80 0D 03 02 00 00 00 00 13 [13:18:37]Write i2c OK [13:18:37]MH_I2C_Read... [13:18:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:18:37]Read from MH i2c: E2 [13:18:37]MH_I2C_Read... [13:18:37]Read from MH i2c: E2 0B 00 [13:18:37]MH_I2C_Read... [13:18:37]Read from MH i2c: E2 0B 00 5C 3C 00 6C 51 28 4F D9 EE 59 A3 90 00 0B [13:18:37]RAPDU: 6C 51 28 4F D9 EE 59 A3 90 00 [13:18:37]wFMCommunicate OK [13:18:37]SAM_PROTO_SignData done [13:18:37]FM_MakeSignedData done [13:18:37]CreateOFDProtocolMessage [13:18:37]wFMCommunicate request_size=4 [13:18:37]MH_SAM_APDU [13:18:37]CAPDU: 80 11 00 00 [13:18:37]Write to MH i2c: E2 08 00 5D 3C 80 11 00 00 00 00 00 00 13 [13:18:37]Write i2c OK [13:18:37]MH_I2C_Read... [13:18:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:37]Read from MH i2c: E2 [13:18:37]MH_I2C_Read... [13:18:37]Read from MH i2c: E2 17 00 [13:18:37]MH_I2C_Read... [13:18:37]Read from MH i2c: E2 17 00 5D 3C 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:18: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:18:37]wFMCommunicate OK [13:18:37]CreateOFDProtocolMessage done [13:18:37]OFDSenderStorePacket 192915 [13:18:37]StoreOFDPacket docnum=192915 [13:18: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 E3 D2 07 01 95 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 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 79 00 00 00 F4 03 04 00 B0 E0 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 DA 67 97 23 89 E1 6C 51 28 4F D9 EE 59 A3 [13:18:37]CheckFolder [13:18:37]dirname=/storage/ofd_packets [13:18:37]CheckFolder done [13:18:37]ProducePacketName [13:18:37]name=ofd_packets/00192915 [13:18:37]NVStorageSaveData ofd_packets/00192915 [13:18:37]File name is /storage/ofd_packets/00192915 [13:18:37]Write 301 bytes [13:18:37]NVStorageSaveData done [13:18:37]OFDSenderStorePacket done [13:18:37]KKMCreateOFDPacket done [13:18:37]NVStorageSaveData kkm_last_timestamp [13:18:37]File name is /storage/kkm_last_timestamp [13:18:37]Write 4 bytes [13:18:37]NVStorageSaveData done [13:18:37]ExternCall_PrintAddStr [13:18:37]wPrintStart [13:18:37]Write to MH i2c: 01 00 00 5E 3C 9A [13:18:37]Write i2c OK [13:18:37]MH_I2C_Read... [13:18:37]Read from MH i2c: 01 [13:18:37]MH_I2C_Read... [13:18:37]Read from MH i2c: 01 07 00 [13:18:37]MH_I2C_Read... [13:18:37]Read from MH i2c: 01 07 00 5E 3C 00 00 00 00 00 FF 0F AF [13:18:37]RasterBufferAndPrint [13:18:37]line Счет N : (1)32246 [13:18:37]line ИÐÐ: 02508201610067 [13:18:37]line Контрольно-КаÑÑовый Чек [13:18:37]line ПРОДÐЖР[13:18:37]line ТРК (МРК, ГÐК) : 12 [13:18:37]line Товар: 2710124130 [13:18:37]line Ðи-92-К-5 [13:18:37]line 11.960 * 66.90 [13:18:37]line = 800.12 [13:18:37]line ÐДС 12% ÐСП 1% [13:18:37]line > о реализуемом товаре [13:18:37]line ОКРУГЛЕÐИЕ: -0.12 [13:18:37]line ИТОГО: 800.00 [13:18:37]line ВнеÑено: 800.00 [13:18:37]line СДÐЧÐ: 0.00 [13:18:37]line ÐСП 1% : 7.08 [13:18:37]line ÐДС 12% : 84.97 [13:18:37]line Ðаличными: 800.00 [13:18:37]line Безнал.: 0.00 [13:18:37]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [13:18:37]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [13:18:37]line СÐО: Общий режим [13:18:37]line Чек 121 29.10.2024 13:18 [13:18:37]line Смена: 544 ФФД: 1.0 [13:18:37]line ЗÐМ: 0300000110 [13:18:37]line РÐМ: 0000000000091776 [13:18:37]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [13:18:37]line ФМ: 0000000000871754 [13:18:37]line ФД: 192915 [13:18:37]line ФПД: 240138452175329 [13:18:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T131840&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192915&fm=240138452175329&tin=02508201610067®Number=0000000000091776&sum=80000 [13:18:37]OFD Sender: Processing packet 192915 [packets to send 75, broken 74] [13:18:37]ProducePacketName [13:18:37]name=ofd_packets/00192915 [13:18:37]OFD Sender: To server: ‡•öpG, [13:18:37]CommunicateWithHost lk.salyk.kg:30040 [13:18:37]ConnectInit lk.salyk.kg [13:18:37]written 0, free lines is 4095 [13:18:37]Connected sock=10 [13:18: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 E3 D2 07 01 95 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 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 79 00 00 00 F4 03 04 00 B0 E0 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 DA 67 97 23 89 E1 6C 51 28 4F D9 EE 59 A3 [13:18: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 40 06 47 00 B9 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 93 F1 02 00 F4 03 04 00 70 85 20 67 B6 04 01 00 00 7B 4A AE F9 66 4F 66 57 [13:18:37]CommunicateWithHost err = 0 [13:18:37]CheckOFDResponse [13:18:37]1017 (14) - 77093643461234 [13:18:37]1041 (16) - 0000000000871754 [13:18:37]1040 (4) - 192915 [13:18:37]1012 (4) - 29.10.2024 06:49 [13:18:37]1206 (1) - 0 [13:18:37]OFD Sender: Remove packet 192915 [13:18:37]ProducePacketName [13:18:37]name=ofd_packets/00192915 [13:18:37]NVStorageDeleteData [13:18:37]Write to MH i2c: 01 00 00 89 3C C5 [13:18:37]Write i2c OK [13:18:37]MH_I2C_Read... [13:18:37]Read from MH i2c: 01 [13:18:37]MH_I2C_Read... [13:18:37]Read from MH i2c: 01 07 00 [13:18:37]MH_I2C_Read... [13:18:37]Read from MH i2c: 01 07 00 89 3C 00 00 00 00 00 C5 0C 9D [13:18:37]RasterBufferAndPrint [13:18:37]line [13:18:37]line [13:18:37]line [13:18:37]line [13:18:37]line [13:18:37]written 0, free lines is 3275 [13:18:38]MH_Cut [13:18:38]Write to MH i2c: D1 01 00 90 3C 01 9E [13:18:38]Write i2c OK [13:18:38]MH_I2C_Read... [13:18:38]Read from MH i2c: D1 [13:18:38]MH_I2C_Read... [13:18:38]Read from MH i2c: D1 01 00 [13:18:38]MH_I2C_Read... [13:18:38]Read from MH i2c: D1 01 00 90 3C 00 9D [13:18:38]Write to MH i2c: 01 00 00 91 3C CD [13:18:38]Write i2c OK [13:18:38]MH_I2C_Read... [13:18:38]OFD Sender: No OFD packet to send [13:18:38]*** Cut start [13:18:38]*** Partial cut [13:18:38]*** CUTSNS_PIN = 1 [13:18:38]*** CUTSNS_PIN = 0 [13:18:39]*** Brake cut motor [13:18:39]Read from MH i2c: 01 [13:18:39]MH_I2C_Read... [13:18:39]*** Stop cut motor [13:18:39]*** Cut end [13:18:39]Read from MH i2c: 01 07 00 [13:18:39]MH_I2C_Read... [13:18:39]Read from MH i2c: 01 07 00 91 3C 00 00 00 00 00 FF 0F E2 [13:18:39]process_action close_receipt done [13:18:39]requested_data is exist [13:18:39]produce_requested_data [13:18:39]requested_item fm.sn is exist - process it [13:18:39]wFMCommunicate request_size=4 [13:18:39]MH_SAM_APDU [13:18:39]CAPDU: 80 11 00 00 [13:18:39]Write to MH i2c: E2 08 00 92 3C 80 11 00 00 00 00 00 00 48 [13:18:39]Write i2c OK [13:18:39]MH_I2C_Read... [13:18:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:39]Read from MH i2c: E2 [13:18:39]MH_I2C_Read... [13:18:39]Read from MH i2c: E2 17 00 [13:18:39]MH_I2C_Read... [13:18:39]Read from MH i2c: E2 17 00 92 3C 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:18: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:18:39]wFMCommunicate OK [13:18:39]requested_item fd.num is exist - process it [13:18:39]SAM_PROTO_GetFieldsCounters [13:18:39]wFMCommunicate request_size=4 [13:18:39]MH_SAM_APDU [13:18:39]CAPDU: 80 13 00 00 [13:18:39]Write to MH i2c: E2 08 00 93 3C 80 13 00 00 00 00 00 00 4B [13:18:39]Write i2c OK [13:18:39]MH_I2C_Read... [13:18:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:18:39]Read from MH i2c: E2 [13:18:39]MH_I2C_Read... [13:18:39]Read from MH i2c: E2 62 00 [13:18:39]MH_I2C_Read... [13:18:39]Read from MH i2c: E2 62 00 93 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 93 F1 02 00 0E 04 04 00 20 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 84 [13:18: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 93 F1 02 00 0E 04 04 00 20 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 [13:18:39]wFMCommunicate OK [13:18:39]SAM_PROTO_GetFieldsCounters done [13:18:39]requested_item shift.num is exist - process it [13:18:39]requested_item shift.opened is exist - process it [13:18:39]req_shift_opened [13:18:39]FM_GetShiftState [13:18:39]SAM_PROTO_GetShiftState [13:18:39]wFMCommunicate request_size=4 [13:18:39]MH_SAM_APDU [13:18:39]CAPDU: 80 13 01 00 [13:18:39]Write to MH i2c: E2 08 00 94 3C 80 13 01 00 00 00 00 00 4D [13:18:39]Write i2c OK [13:18:39]MH_I2C_Read... [13:18:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:39]Read from MH i2c: E2 [13:18:39]MH_I2C_Read... [13:18:39]Read from MH i2c: E2 0E 00 [13:18:39]MH_I2C_Read... [13:18:39]Read from MH i2c: E2 0E 00 94 3C 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 53 [13:18:39]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [13:18:39]wFMCommunicate OK [13:18:39]SAM_PROTO_GetShiftState done [13:18:39]FM_GetShiftState done [13:18:39]req_shift_opened done [13:18:39]requested_item shift.open_date is exist - process it [13:18:39]req_shift_open_date [13:18:39]req_shift_open_date done [13:18:39]produce_requested_data done [13:18:39]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192915,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [13:18:39]process_action_free close_receipt [13:18:39]json_value_free [13:18:39]json_value_free done [13:18:39]process_json_proto returns [13:18:39]Send response to host [13:18:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192915,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [13:18:39]free response buf [13:18:39]execute_script done [13:18:39]execute_script returns [13:18:39]free content buf [13:18:39]Sock 8.Close socket [13:18:39]Sock 8.Thread stoped [13:18:43]OFD Sender: No OFD packet to send [13:18:48]OFD Sender: No OFD packet to send [13:18:53]OFD Sender: No OFD packet to send [13:18:58]OFD Sender: No OFD packet to send [13:19:03]OFD Sender: No OFD packet to send [13:19:08]OFD Sender: No OFD packet to send [13:19:13]OFD Sender: No OFD packet to send [13:19:18]OFD Sender: No OFD packet to send [13:19:23]OFD Sender: No OFD packet to send [13:19:28]OFD Sender: No OFD packet to send [13:19:33]OFD Sender: No OFD packet to send [13:19:38]OFD Sender: No OFD packet to send [13:19:43]OFD Sender: No OFD packet to send [13:19:48]OFD Sender: No OFD packet to send [13:19:53]OFD Sender: No OFD packet to send [13:19:58]OFD Sender: No OFD packet to send [13:20:03]OFD Sender: No OFD packet to send [13:20:08]OFD Sender: No OFD packet to send [13:20:13]OFD Sender: No OFD packet to send [13:20:18]OFD Sender: No OFD packet to send [13:20:21]accept exits with 9 [13:20:21]New connection [13:20:21]New thread 3066801508 created [13:20:21]Thread 3066658148 joined [13:20:21]Waiting for new connection... [13:20:21] Sock 9.Parse request [13:20:21]Sock 9.Check first char [13:20:21]Sock 9.First char is OK [13:20:21]request: POST /json_proto HTTP/1.0 [13:20:21]Method: POST [13:20:21]URL: /json_proto [13:20:21]Method is POST - this is cgi request [13:20:21]url: /json_proto [13:20:21]query_string will be loaded in cgi processing [13:20:21]execute_cgi json_proto POST (null) [13:20:21]execute_cgi path=json_proto method=POST [13:20:21]POST find Content-Length [13:20:21]Host: 172.17.63.131:8080 [13:20:21]Content-Length: 676 [13:20:21]Content-Type: application/json [13:20:21] [13:20:21]POST finish read [13:20:21]Found Content-Length = 676 [13:20:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32248", "tax_sys" : 0, "items" : [ { "pre_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" ] } } [13:20:21]execute_script... [13:20: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)32248", "tax_sys" : 0, "items" : [ { "pre_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" ] } } [13:20:21]POST & json_proto [13:20:21]process_json_proto [13:20:21]json parsed OK: [13:20:21]protocol is kg_v1.0 [13:20:21]action value=close_receipt [13:20:21]process_action close_receipt [13:20:21]cmd_close_receipt [13:20:21]MH_GetDate [13:20:21]Write to MH i2c: F0 00 00 95 3C C0 [13:20:21]Write i2c OK [13:20:21]MH_I2C_Read... [13:20:21]Read from MH i2c: F0 [13:20:21]MH_I2C_Read... [13:20:21]Read from MH i2c: F0 09 00 [13:20:21]MH_I2C_Read... [13:20:21]Read from MH i2c: F0 09 00 95 3C 00 19 E1 20 67 22 05 6E 64 43 [13:20:21]GetLastDocTimeStamp 1730207920 [13:20:21]current date 1730208025 [13:20:21]FM_GetShiftState [13:20:21]SAM_PROTO_GetShiftState [13:20:21]wFMCommunicate request_size=4 [13:20:21]MH_SAM_APDU [13:20:21]CAPDU: 80 13 01 00 [13:20:21]Write to MH i2c: E2 08 00 96 3C 80 13 01 00 00 00 00 00 4F [13:20:21]Write i2c OK [13:20:21]MH_I2C_Read... [13:20:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:21]Read from MH i2c: E2 [13:20:21]MH_I2C_Read... [13:20:21]Read from MH i2c: E2 0E 00 [13:20:21]MH_I2C_Read... [13:20:21]Read from MH i2c: E2 0E 00 96 3C 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 55 [13:20:21]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [13:20:21]wFMCommunicate OK [13:20:21]SAM_PROTO_GetShiftState done [13:20:21]FM_GetShiftState done [13:20:21]opened in 1730161990 [13:20:21]opened+sec_in_day 1730248390 [13:20:21]quantity*price = 34052 [13:20:21]sum+1 = 34053 [13:20:21]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 СÐО: Общий режим Чек 122 29.10.2024 13:20 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192916 ФПД: 226174241794466 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T132025&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192916&fm=226174241794466&tin=02508201610067®Number=0000000000091776&sum=34000 [13:20:22]StoreToDocumentArchive [13:20:22]shift 544 fd 192916 [13:20:22]save to /storage/0544/doc_00192916 [13:20:22]save last doc name /storage/0544/doc_00192916 to /storage/kkm_last_doc_name [13:20:22]save OK [13:20:22]Clear old archive folders... [13:20:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:20:22]tlvbuf is 00FC26D0 [13:20:22]SAM_PROTO_ClearQueue [13:20:22]wFMCommunicate request_size=4 [13:20:22]MH_SAM_APDU [13:20:22]CAPDU: 80 09 00 00 [13:20:22]Write to MH i2c: E2 08 00 A3 3C 80 09 00 00 00 00 00 00 51 [13:20:22]Write i2c OK [13:20:22]MH_I2C_Read... [13:20:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:20:22]Read from MH i2c: E2 [13:20:22]MH_I2C_Read... [13:20:22]Read from MH i2c: E2 03 00 [13:20:22]MH_I2C_Read... [13:20:22]Read from MH i2c: E2 03 00 A3 3C 00 90 00 53 [13:20:22]RAPDU: 90 00 [13:20:22]wFMCommunicate OK [13:20:22]SAM_PROTO_ClearQueue done [13:20:22]KKMCreateOFDPacket [13:20:22]OFDProtocolAddRootSTLVToBuf [13:20:22]FM_MakeSignedData [13:20:22]FM_MakeSignedData [13:20:22]SAM_PROTO_SignData [13:20:22]wFMCommunicate request_size=4 [13:20:22]MH_SAM_APDU [13:20:22]CAPDU: 80 0D 01 02 [13:20:22]Write to MH i2c: E2 08 00 A4 3C 80 0D 01 02 00 00 00 00 59 [13:20:22]Write i2c OK [13:20:22]MH_I2C_Read... [13:20:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:20:22]Read from MH i2c: E2 [13:20:22]MH_I2C_Read... [13:20:22]Read from MH i2c: E2 03 00 [13:20:22]MH_I2C_Read... [13:20:22]Read from MH i2c: E2 03 00 A4 3C 00 90 00 54 [13:20:22]RAPDU: 90 00 [13:20:22]wFMCommunicate OK [13:20:22]wFMCommunicate request_size=255 [13:20:22]MH_SAM_APDU [13:20: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 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 7A 00 00 00 F4 03 04 00 19 E1 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 CD [13:20:22]Write to MH i2c: E2 02 01 A5 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 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 7A 00 00 00 F4 03 04 00 19 E1 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 CD 00 00 97 [13:20:22]Write i2c OK [13:20:22]MH_I2C_Read... [13:20:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:22]Read from MH i2c: E2 [13:20:22]MH_I2C_Read... [13:20:22]Read from MH i2c: E2 03 00 [13:20:22]MH_I2C_Read... [13:20:22]Read from MH i2c: E2 03 00 A5 3C 00 90 00 55 [13:20:22]RAPDU: 90 00 [13:20:22]wFMCommunicate OK [13:20:22]wFMCommunicate request_size=10 [13:20:22]MH_SAM_APDU [13:20:22]CAPDU: 80 0D 02 02 05 B4 4B 56 E9 A2 [13:20:22]Write to MH i2c: E2 0D 00 A6 3C 80 0D 02 02 05 00 B4 4B 56 E9 A2 00 00 46 [13:20:22]Write i2c OK [13:20:22]MH_I2C_Read... [13:20:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:22]Read from MH i2c: E2 [13:20:22]MH_I2C_Read... [13:20:22]Read from MH i2c: E2 03 00 [13:20:22]MH_I2C_Read... [13:20:22]Read from MH i2c: E2 03 00 A6 3C 00 90 00 56 [13:20:22]RAPDU: 90 00 [13:20:22]wFMCommunicate OK [13:20:22]wFMCommunicate request_size=4 [13:20:22]MH_SAM_APDU [13:20:22]CAPDU: 80 0D 03 02 [13:20:22]Write to MH i2c: E2 08 00 A7 3C 80 0D 03 02 00 00 00 00 5E [13:20:22]Write i2c OK [13:20:22]MH_I2C_Read... [13:20:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:20:22]Read from MH i2c: E2 [13:20:22]MH_I2C_Read... [13:20:22]Read from MH i2c: E2 0B 00 [13:20:22]MH_I2C_Read... [13:20:22]Read from MH i2c: E2 0B 00 A7 3C 00 D3 15 57 77 A9 AC A5 40 90 00 4F [13:20:22]RAPDU: D3 15 57 77 A9 AC A5 40 90 00 [13:20:22]wFMCommunicate OK [13:20:22]SAM_PROTO_SignData done [13:20:22]FM_MakeSignedData done [13:20:22]CreateOFDProtocolMessage [13:20:22]wFMCommunicate request_size=4 [13:20:22]MH_SAM_APDU [13:20:22]CAPDU: 80 11 00 00 [13:20:22]Write to MH i2c: E2 08 00 A8 3C 80 11 00 00 00 00 00 00 5E [13:20:22]Write i2c OK [13:20:22]MH_I2C_Read... [13:20:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:22]Read from MH i2c: E2 [13:20:22]MH_I2C_Read... [13:20:22]Read from MH i2c: E2 17 00 [13:20:22]MH_I2C_Read... [13:20:22]Read from MH i2c: E2 17 00 A8 3C 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:20: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:20:22]wFMCommunicate OK [13:20:22]CreateOFDProtocolMessage done [13:20:22]OFDSenderStorePacket 192916 [13:20:22]StoreOFDPacket docnum=192916 [13:20: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 A5 3E 07 01 FD 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 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 7A 00 00 00 F4 03 04 00 19 E1 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 CD B4 4B 56 E9 A2 D3 15 57 77 A9 AC A5 40 [13:20:22]CheckFolder [13:20:22]dirname=/storage/ofd_packets [13:20:22]CheckFolder done [13:20:22]ProducePacketName [13:20:22]name=ofd_packets/00192916 [13:20:22]NVStorageSaveData ofd_packets/00192916 [13:20:22]File name is /storage/ofd_packets/00192916 [13:20:22]Write 301 bytes [13:20:22]NVStorageSaveData done [13:20:22]OFDSenderStorePacket done [13:20:22]KKMCreateOFDPacket done [13:20:22]NVStorageSaveData kkm_last_timestamp [13:20:22]File name is /storage/kkm_last_timestamp [13:20:22]Write 4 bytes [13:20:22]NVStorageSaveData done [13:20:22]OFD Sender: Processing packet 192916 [packets to send 75, broken 74] [13:20:22]ProducePacketName [13:20:22]name=ofd_packets/00192916 [13:20:22]OFD Sender: To server: ‡•öpG, [13:20:22]CommunicateWithHost lk.salyk.kg:30040 [13:20:22]ConnectInit lk.salyk.kg [13:20:22]ExternCall_PrintAddStr [13:20:22]wPrintStart [13:20:22]Write to MH i2c: 01 00 00 A9 3C E5 [13:20:22]Write i2c OK [13:20:22]MH_I2C_Read... [13:20:22]Read from MH i2c: 01 [13:20:22]MH_I2C_Read... [13:20:22]Read from MH i2c: 01 07 00 [13:20:22]MH_I2C_Read... [13:20:22]Read from MH i2c: 01 07 00 A9 3C 00 00 00 00 00 FF 0F FA [13:20:22]RasterBufferAndPrint [13:20:22]line Счет N : (1)32248 [13:20:22]line ИÐÐ: 02508201610067 [13:20:22]line Контрольно-КаÑÑовый Чек [13:20:22]line ПРОДÐЖР[13:20:22]line ТРК (МРК, ГÐК) : 21 [13:20:22]line Товар: 2710124130 [13:20:22]line Ðи-92-К-5 [13:20:22]line 5.090 * 66.90 [13:20:22]line = 340.52 [13:20:22]line ÐДС 12% ÐСП 1% [13:20:22]line > о реализуемом товаре [13:20:22]line ОКРУГЛЕÐИЕ: -0.52 [13:20:22]line ИТОГО: 340.00 [13:20:22]line ВнеÑено: 340.00 [13:20:22]line СДÐЧÐ: 0.00 [13:20:22]line ÐСП 1% : 3.01 [13:20:22]line ÐДС 12% : 36.16 [13:20:22]line Ðаличными: 340.00 [13:20:22]line Безнал.: 0.00 [13:20:22]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [13:20:22]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [13:20:22]line СÐО: Общий режим [13:20:22]line Чек 122 29.10.2024 13:20 [13:20:22]line Смена: 544 ФФД: 1.0 [13:20:22]line ЗÐМ: 0300000110 [13:20:22]line РÐМ: 0000000000091776 [13:20:22]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [13:20:22]line ФМ: 0000000000871754 [13:20:22]line ФД: 192916 [13:20:22]line ФПД: 226174241794466 [13:20:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T132025&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192916&fm=226174241794466&tin=02508201610067®Number=0000000000091776&sum=34000 [13:20:23]Connected sock=11 [13:20: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 A5 3E 07 01 FD 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 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 7A 00 00 00 F4 03 04 00 19 E1 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 CD B4 4B 56 E9 A2 D3 15 57 77 A9 AC A5 40 [13:20:23]written 0, free lines is 4095 [13:20: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 D2 89 47 00 29 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 94 F1 02 00 F4 03 04 00 DA 85 20 67 B6 04 01 00 00 90 F3 6F 44 35 3F A3 63 [13:20:23]CommunicateWithHost err = 0 [13:20:23]CheckOFDResponse [13:20:23]1017 (14) - 77093643461234 [13:20:23]1041 (16) - 0000000000871754 [13:20:23]1040 (4) - 192916 [13:20:23]1012 (4) - 29.10.2024 06:51 [13:20:23]1206 (1) - 0 [13:20:23]OFD Sender: Remove packet 192916 [13:20:23]ProducePacketName [13:20:23]name=ofd_packets/00192916 [13:20:23]NVStorageDeleteData [13:20:23]Write to MH i2c: 01 00 00 D4 3C 10 [13:20:23]Write i2c OK [13:20:23]MH_I2C_Read... [13:20:23]Read from MH i2c: 01 [13:20:23]MH_I2C_Read... [13:20:23]Read from MH i2c: 01 07 00 [13:20:23]MH_I2C_Read... [13:20:23]Read from MH i2c: 01 07 00 D4 3C 00 00 00 00 00 C0 0C E3 [13:20:23]RasterBufferAndPrint [13:20:23]line [13:20:23]line [13:20:23]line [13:20:23]line [13:20:23]line [13:20:23]written 0, free lines is 3273 [13:20:23]MH_Cut [13:20:23]Write to MH i2c: D1 01 00 DB 3C 01 E9 [13:20:23]Write i2c OK [13:20:23]MH_I2C_Read... [13:20:23]Read from MH i2c: D1 [13:20:23]MH_I2C_Read... [13:20:23]Read from MH i2c: D1 01 00 [13:20:23]MH_I2C_Read... [13:20:23]Read from MH i2c: D1 01 00 DB 3C 00 E8 [13:20:23]Write to MH i2c: 01 00 00 DC 3C 18 [13:20:23]Write i2c OK [13:20:23]MH_I2C_Read... [13:20:23]OFD Sender: No OFD packet to send [13:20:24]*** Cut start [13:20:24]*** Partial cut [13:20:24]*** CUTSNS_PIN = 1 [13:20:24]*** CUTSNS_PIN = 0 [13:20:24]*** Brake cut motor [13:20:25]Read from MH i2c: 01 [13:20:25]MH_I2C_Read... [13:20:25]Read from MH i2c: 01 07 00 [13:20:25]MH_I2C_Read... [13:20:25]*** Stop cut motor [13:20:25]*** Cut end [13:20:25]Read from MH i2c: 01 07 00 DC 3C 00 00 00 00 00 FF 0F 2D [13:20:25]process_action close_receipt done [13:20:25]requested_data is exist [13:20:25]produce_requested_data [13:20:25]requested_item fm.sn is exist - process it [13:20:25]wFMCommunicate request_size=4 [13:20:25]MH_SAM_APDU [13:20:25]CAPDU: 80 11 00 00 [13:20:25]Write to MH i2c: E2 08 00 DD 3C 80 11 00 00 00 00 00 00 93 [13:20:25]Write i2c OK [13:20:25]MH_I2C_Read... [13:20:25]Read from MH i2c: E2 [13:20:25]MH_I2C_Read... [13:20:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:25]Read from MH i2c: E2 17 00 [13:20:25]MH_I2C_Read... [13:20:25]Read from MH i2c: E2 17 00 DD 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E6 [13:20: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:20:25]wFMCommunicate OK [13:20:25]requested_item fd.num is exist - process it [13:20:25]SAM_PROTO_GetFieldsCounters [13:20:25]wFMCommunicate request_size=4 [13:20:25]MH_SAM_APDU [13:20:25]CAPDU: 80 13 00 00 [13:20:25]Write to MH i2c: E2 08 00 DE 3C 80 13 00 00 00 00 00 00 96 [13:20:25]Write i2c OK [13:20:25]MH_I2C_Read... [13:20:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:20:25]Read from MH i2c: E2 [13:20:25]MH_I2C_Read... [13:20:25]Read from MH i2c: E2 62 00 [13:20:25]MH_I2C_Read... [13:20:25]Read from MH i2c: E2 62 00 DE 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 94 F1 02 00 0E 04 04 00 20 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 D3 [13:20: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 94 F1 02 00 0E 04 04 00 20 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 [13:20:25]wFMCommunicate OK [13:20:25]SAM_PROTO_GetFieldsCounters done [13:20:25]requested_item shift.num is exist - process it [13:20:25]requested_item shift.opened is exist - process it [13:20:25]req_shift_opened [13:20:25]FM_GetShiftState [13:20:25]SAM_PROTO_GetShiftState [13:20:25]wFMCommunicate request_size=4 [13:20:25]MH_SAM_APDU [13:20:25]CAPDU: 80 13 01 00 [13:20:25]Write to MH i2c: E2 08 00 DF 3C 80 13 01 00 00 00 00 00 98 [13:20:25]Write i2c OK [13:20:25]MH_I2C_Read... [13:20:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:25]Read from MH i2c: E2 [13:20:25]MH_I2C_Read... [13:20:25]Read from MH i2c: E2 0E 00 [13:20:25]MH_I2C_Read... [13:20:25]Read from MH i2c: E2 0E 00 DF 3C 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 9E [13:20:25]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [13:20:25]wFMCommunicate OK [13:20:25]SAM_PROTO_GetShiftState done [13:20:25]FM_GetShiftState done [13:20:25]req_shift_opened done [13:20:25]requested_item shift.open_date is exist - process it [13:20:25]req_shift_open_date [13:20:25]req_shift_open_date done [13:20:25]produce_requested_data done [13:20:25]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192916,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [13:20:25]process_action_free close_receipt [13:20:25]json_value_free [13:20:25]json_value_free done [13:20:25]process_json_proto returns [13:20:25]Send response to host [13:20:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192916,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [13:20:25]free response buf [13:20:25]execute_script done [13:20:25]execute_script returns [13:20:25]free content buf [13:20:25]Sock 9.Close socket [13:20:25]Sock 9.Thread stoped [13:20:28]OFD Sender: No OFD packet to send [13:20:32]accept exits with 8 [13:20:32]New connection [13:20:32]New thread 3066658148 created [13:20:32]Thread 3066801508 joined [13:20:32]Waiting for new connection... [13:20:32] Sock 8.Parse request [13:20:32]Sock 8.Check first char [13:20:32]Sock 8.First char is OK [13:20:32]request: POST /json_proto HTTP/1.0 [13:20:32]Method: POST [13:20:32]URL: /json_proto [13:20:32]Method is POST - this is cgi request [13:20:32]url: /json_proto [13:20:32]query_string will be loaded in cgi processing [13:20:32]execute_cgi json_proto POST (null) [13:20:32]execute_cgi path=json_proto method=POST [13:20:32]POST find Content-Length [13:20:32]Host: 172.17.63.131:8080 [13:20:32]Content-Length: 678 [13:20:32]Content-Type: application/json [13:20:32] [13:20:32]POST finish read [13:20:32]Found Content-Length = 678 [13:20:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32247", "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" ] } } [13:20:32]execute_script... [13:20:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32247", "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" ] } } [13:20:32]POST & json_proto [13:20:32]process_json_proto [13:20:32]json parsed OK: [13:20:32]protocol is kg_v1.0 [13:20:32]action value=close_receipt [13:20:32]process_action close_receipt [13:20:32]cmd_close_receipt [13:20:32]MH_GetDate [13:20:32]Write to MH i2c: F0 00 00 E0 3C 0B [13:20:32]Write i2c OK [13:20:32]MH_I2C_Read... [13:20:32]Read from MH i2c: F0 [13:20:32]MH_I2C_Read... [13:20:32]Read from MH i2c: F0 09 00 [13:20:32]MH_I2C_Read... [13:20:32]Read from MH i2c: F0 09 00 E0 3C 00 25 E1 20 67 22 05 6E 64 9A [13:20:32]GetLastDocTimeStamp 1730208025 [13:20:32]current date 1730208037 [13:20:32]FM_GetShiftState [13:20:32]SAM_PROTO_GetShiftState [13:20:32]wFMCommunicate request_size=4 [13:20:32]MH_SAM_APDU [13:20:32]CAPDU: 80 13 01 00 [13:20:32]Write to MH i2c: E2 08 00 E1 3C 80 13 01 00 00 00 00 00 9A [13:20:32]Write i2c OK [13:20:32]MH_I2C_Read... [13:20:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:32]Read from MH i2c: E2 [13:20:32]MH_I2C_Read... [13:20:32]Read from MH i2c: E2 0E 00 [13:20:32]MH_I2C_Read... [13:20:32]Read from MH i2c: E2 0E 00 E1 3C 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 A0 [13:20:32]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [13:20:32]wFMCommunicate OK [13:20:32]SAM_PROTO_GetShiftState done [13:20:32]FM_GetShiftState done [13:20:32]opened in 1730161990 [13:20:32]opened+sec_in_day 1730248390 [13:20:32]quantity*price = 100050 [13:20:32]sum+1 = 100052 [13:20:32]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 СÐО: Общий режим Чек 123 29.10.2024 13:20 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192917 ФПД: 280926026882967 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T132037&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192917&fm=280926026882967&tin=02508201610067®Number=0000000000091776&sum=100000 [13:20:33]StoreToDocumentArchive [13:20:33]shift 544 fd 192917 [13:20:33]save to /storage/0544/doc_00192917 [13:20:33]save last doc name /storage/0544/doc_00192917 to /storage/kkm_last_doc_name [13:20:33]save OK [13:20:33]Clear old archive folders... [13:20:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:20:33]tlvbuf is B6E83090 [13:20:33]SAM_PROTO_ClearQueue [13:20:33]wFMCommunicate request_size=4 [13:20:33]MH_SAM_APDU [13:20:33]CAPDU: 80 09 00 00 [13:20:33]Write to MH i2c: E2 08 00 EE 3C 80 09 00 00 00 00 00 00 9C [13:20:33]Write i2c OK [13:20:33]MH_I2C_Read... [13:20:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:20:33]Read from MH i2c: E2 [13:20:33]MH_I2C_Read... [13:20:33]Read from MH i2c: E2 03 00 [13:20:33]MH_I2C_Read... [13:20:33]Read from MH i2c: E2 03 00 EE 3C 00 90 00 9E [13:20:33]RAPDU: 90 00 [13:20:33]wFMCommunicate OK [13:20:33]SAM_PROTO_ClearQueue done [13:20:33]KKMCreateOFDPacket [13:20:33]OFDProtocolAddRootSTLVToBuf [13:20:33]FM_MakeSignedData [13:20:33]FM_MakeSignedData [13:20:33]SAM_PROTO_SignData [13:20:33]wFMCommunicate request_size=4 [13:20:33]MH_SAM_APDU [13:20:33]CAPDU: 80 0D 01 02 [13:20:33]Write to MH i2c: E2 08 00 EF 3C 80 0D 01 02 00 00 00 00 A4 [13:20:33]Write i2c OK [13:20:33]MH_I2C_Read... [13:20:33]OFD Sender: No OFD packet to send [13:20:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:20:33]Read from MH i2c: E2 [13:20:33]MH_I2C_Read... [13:20:33]Read from MH i2c: E2 03 00 [13:20:33]MH_I2C_Read... [13:20:33]Read from MH i2c: E2 03 00 EF 3C 00 90 00 9F [13:20:33]RAPDU: 90 00 [13:20:33]wFMCommunicate OK [13:20:33]wFMCommunicate request_size=255 [13:20:33]MH_SAM_APDU [13:20:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 7B 00 00 00 F4 03 04 00 25 E1 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 FF 80 30 0A [13:20:33]Write to MH i2c: E2 02 01 F0 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 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 7B 00 00 00 F4 03 04 00 25 E1 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 FF 80 30 0A 00 00 99 [13:20:33]Write i2c OK [13:20:33]MH_I2C_Read... [13:20:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:34]Read from MH i2c: E2 [13:20:34]MH_I2C_Read... [13:20:34]Read from MH i2c: E2 03 00 [13:20:34]MH_I2C_Read... [13:20:34]Read from MH i2c: E2 03 00 F0 3C 00 90 00 A0 [13:20:34]RAPDU: 90 00 [13:20:34]wFMCommunicate OK [13:20:34]wFMCommunicate request_size=7 [13:20:34]MH_SAM_APDU [13:20:34]CAPDU: 80 0D 02 02 02 5F 97 [13:20:34]Write to MH i2c: E2 0A 00 F1 3C 80 0D 02 02 02 00 5F 97 00 00 A1 [13:20:34]Write i2c OK [13:20:34]MH_I2C_Read... [13:20:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:34]Read from MH i2c: E2 [13:20:34]MH_I2C_Read... [13:20:34]Read from MH i2c: E2 03 00 [13:20:34]MH_I2C_Read... [13:20:34]Read from MH i2c: E2 03 00 F1 3C 00 90 00 A1 [13:20:34]RAPDU: 90 00 [13:20:34]wFMCommunicate OK [13:20:34]wFMCommunicate request_size=4 [13:20:34]MH_SAM_APDU [13:20:34]CAPDU: 80 0D 03 02 [13:20:34]Write to MH i2c: E2 08 00 F2 3C 80 0D 03 02 00 00 00 00 A9 [13:20:34]Write i2c OK [13:20:34]MH_I2C_Read... [13:20:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:20:34]Read from MH i2c: E2 [13:20:34]MH_I2C_Read... [13:20:34]Read from MH i2c: E2 0B 00 [13:20:34]MH_I2C_Read... [13:20:34]Read from MH i2c: E2 0B 00 F2 3C 00 38 5E 8F 2C CF 46 D3 3F 90 00 22 [13:20:34]RAPDU: 38 5E 8F 2C CF 46 D3 3F 90 00 [13:20:34]wFMCommunicate OK [13:20:34]SAM_PROTO_SignData done [13:20:34]FM_MakeSignedData done [13:20:34]CreateOFDProtocolMessage [13:20:34]wFMCommunicate request_size=4 [13:20:34]MH_SAM_APDU [13:20:34]CAPDU: 80 11 00 00 [13:20:34]Write to MH i2c: E2 08 00 F3 3C 80 11 00 00 00 00 00 00 A9 [13:20:34]Write i2c OK [13:20:34]MH_I2C_Read... [13:20:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:34]Read from MH i2c: E2 [13:20:34]MH_I2C_Read... [13:20:34]Read from MH i2c: E2 17 00 [13:20:34]MH_I2C_Read... [13:20:34]Read from MH i2c: E2 17 00 F3 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FC [13:20: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:20:34]wFMCommunicate OK [13:20:34]CreateOFDProtocolMessage done [13:20:34]OFDSenderStorePacket 192917 [13:20:34]StoreOFDPacket docnum=192917 [13:20: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 0C 01 00 00 DC A6 04 01 8F 2C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 7B 00 00 00 F4 03 04 00 25 E1 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 FF 80 30 0A 5F 97 38 5E 8F 2C CF 46 D3 3F [13:20:34]CheckFolder [13:20:34]dirname=/storage/ofd_packets [13:20:34]CheckFolder done [13:20:34]ProducePacketName [13:20:34]name=ofd_packets/00192917 [13:20:34]NVStorageSaveData ofd_packets/00192917 [13:20:34]File name is /storage/ofd_packets/00192917 [13:20:34]Write 298 bytes [13:20:34]NVStorageSaveData done [13:20:34]OFDSenderStorePacket done [13:20:34]KKMCreateOFDPacket done [13:20:34]NVStorageSaveData kkm_last_timestamp [13:20:34]File name is /storage/kkm_last_timestamp [13:20:34]Write 4 bytes [13:20:34]NVStorageSaveData done [13:20:34]ExternCall_PrintAddStr [13:20:34]wPrintStart [13:20:34]Write to MH i2c: 01 00 00 F4 3C 30 [13:20:34]Write i2c OK [13:20:34]MH_I2C_Read... [13:20:34]Read from MH i2c: 01 [13:20:34]MH_I2C_Read... [13:20:34]Read from MH i2c: 01 07 00 [13:20:34]MH_I2C_Read... [13:20:34]Read from MH i2c: 01 07 00 F4 3C 00 00 00 00 00 FF 0F 45 [13:20:34]RasterBufferAndPrint [13:20:34]line Счет N : (1)32247 [13:20:34]line ИÐÐ: 02508201610067 [13:20:34]line Контрольно-КаÑÑовый Чек [13:20:34]line ПРОДÐЖР[13:20:34]line ТРК (МРК, ГÐК) : 11 [13:20:34]line Товар: 2710194210 [13:20:34]line ДТ-К-5 [13:20:34]line 13.130 * 76.20 [13:20:34]line = 1000.51 [13:20:34]line ÐДС 12% ÐСП 1% [13:20:34]line > о реализуемом товаре [13:20:34]line ОКРУГЛЕÐИЕ: -0.51 [13:20:34]line ИТОГО: 1000.00 [13:20:34]line ВнеÑено: 1000.00 [13:20:34]line СДÐЧÐ: 0.00 [13:20:34]line ÐСП 1% : 8.85 [13:20:34]line ÐДС 12% : 106.25 [13:20:34]line Ðаличными: 1000.00 [13:20:34]line Безнал.: 0.00 [13:20:34]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [13:20:34]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [13:20:34]line СÐО: Общий режим [13:20:34]line Чек 123 29.10.2024 13:20 [13:20:34]line Смена: 544 ФФД: 1.0 [13:20:34]line ЗÐМ: 0300000110 [13:20:34]line РÐМ: 0000000000091776 [13:20:34]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [13:20:34]line ФМ: 0000000000871754 [13:20:34]line ФД: 192917 [13:20:34]line ФПД: 280926026882967 [13:20:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T132037&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192917&fm=280926026882967&tin=02508201610067®Number=0000000000091776&sum=100000 [13:20:34]OFD Sender: Processing packet 192917 [packets to send 75, broken 74] [13:20:34]ProducePacketName [13:20:34]name=ofd_packets/00192917 [13:20:34]OFD Sender: To server: ‡•öpG, [13:20:34]CommunicateWithHost lk.salyk.kg:30040 [13:20:34]ConnectInit lk.salyk.kg [13:20:34]written 0, free lines is 4095 [13:20:34]Connected sock=10 [13:20:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 DC A6 04 01 8F 2C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 7B 00 00 00 F4 03 04 00 25 E1 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 FF 80 30 0A 5F 97 38 5E 8F 2C CF 46 D3 3F [13:20:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 0B 88 47 00 CD A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 95 F1 02 00 F4 03 04 00 E5 85 20 67 B6 04 01 00 00 CB 75 E4 1B 42 80 5A 90 [13:20:34]CommunicateWithHost err = 0 [13:20:34]CheckOFDResponse [13:20:34]1017 (14) - 77093643461234 [13:20:34]1041 (16) - 0000000000871754 [13:20:34]1040 (4) - 192917 [13:20:34]1012 (4) - 29.10.2024 06:51 [13:20:34]1206 (1) - 0 [13:20:34]OFD Sender: Remove packet 192917 [13:20:34]ProducePacketName [13:20:34]name=ofd_packets/00192917 [13:20:34]NVStorageDeleteData [13:20:34]Write to MH i2c: 01 00 00 1F 3D 5C [13:20:34]Write i2c OK [13:20:34]MH_I2C_Read... [13:20:34]Read from MH i2c: 01 [13:20:34]MH_I2C_Read... [13:20:34]Read from MH i2c: 01 07 00 [13:20:34]MH_I2C_Read... [13:20:34]Read from MH i2c: 01 07 00 1F 3D 00 00 00 00 00 CF 0C 3E [13:20:34]RasterBufferAndPrint [13:20:34]line [13:20:34]line [13:20:34]line [13:20:34]line [13:20:34]line [13:20:34]written 0, free lines is 3287 [13:20:34]MH_Cut [13:20:34]Write to MH i2c: D1 01 00 26 3D 01 35 [13:20:34]Write i2c OK [13:20:34]MH_I2C_Read... [13:20:34]Read from MH i2c: D1 [13:20:34]MH_I2C_Read... [13:20:34]Read from MH i2c: D1 01 00 [13:20:34]MH_I2C_Read... [13:20:34]Read from MH i2c: D1 01 00 26 3D 00 34 [13:20:34]Write to MH i2c: 01 00 00 27 3D 64 [13:20:34]Write i2c OK [13:20:34]MH_I2C_Read... [13:20:35]OFD Sender: No OFD packet to send [13:20:35]*** Cut start [13:20:35]*** Partial cut [13:20:35]*** CUTSNS_PIN = 1 [13:20:35]*** CUTSNS_PIN = 0 [13:20:35]*** Brake cut motor [13:20:36]Read from MH i2c: 01 [13:20:36]MH_I2C_Read... [13:20:36]*** Stop cut motor [13:20:36]*** Cut end [13:20:36]Read from MH i2c: 01 07 00 [13:20:36]MH_I2C_Read... [13:20:36]Read from MH i2c: 01 07 00 27 3D 00 00 00 00 00 FF 0F 79 [13:20:36]process_action close_receipt done [13:20:36]requested_data is exist [13:20:36]produce_requested_data [13:20:36]requested_item fm.sn is exist - process it [13:20:36]wFMCommunicate request_size=4 [13:20:36]MH_SAM_APDU [13:20:36]CAPDU: 80 11 00 00 [13:20:36]Write to MH i2c: E2 08 00 28 3D 80 11 00 00 00 00 00 00 DF [13:20:36]Write i2c OK [13:20:36]MH_I2C_Read... [13:20:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:36]Read from MH i2c: E2 [13:20:36]MH_I2C_Read... [13:20:36]Read from MH i2c: E2 17 00 [13:20:36]MH_I2C_Read... [13:20:36]Read from MH i2c: E2 17 00 28 3D 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:20:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:20:36]wFMCommunicate OK [13:20:36]requested_item fd.num is exist - process it [13:20:36]SAM_PROTO_GetFieldsCounters [13:20:36]wFMCommunicate request_size=4 [13:20:36]MH_SAM_APDU [13:20:36]CAPDU: 80 13 00 00 [13:20:36]Write to MH i2c: E2 08 00 29 3D 80 13 00 00 00 00 00 00 E2 [13:20:36]Write i2c OK [13:20:36]MH_I2C_Read... [13:20:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:20:36]Read from MH i2c: E2 [13:20:36]MH_I2C_Read... [13:20:36]Read from MH i2c: E2 62 00 [13:20:36]MH_I2C_Read... [13:20:36]Read from MH i2c: E2 62 00 29 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 95 F1 02 00 0E 04 04 00 20 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 23 [13:20: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 95 F1 02 00 0E 04 04 00 20 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 [13:20:36]wFMCommunicate OK [13:20:36]SAM_PROTO_GetFieldsCounters done [13:20:36]requested_item shift.num is exist - process it [13:20:36]requested_item shift.opened is exist - process it [13:20:36]req_shift_opened [13:20:36]FM_GetShiftState [13:20:36]SAM_PROTO_GetShiftState [13:20:36]wFMCommunicate request_size=4 [13:20:36]MH_SAM_APDU [13:20:36]CAPDU: 80 13 01 00 [13:20:36]Write to MH i2c: E2 08 00 2A 3D 80 13 01 00 00 00 00 00 E4 [13:20:36]Write i2c OK [13:20:36]MH_I2C_Read... [13:20:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:36]Read from MH i2c: E2 [13:20:36]MH_I2C_Read... [13:20:36]Read from MH i2c: E2 0E 00 [13:20:36]MH_I2C_Read... [13:20:36]Read from MH i2c: E2 0E 00 2A 3D 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 EA [13:20:36]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [13:20:36]wFMCommunicate OK [13:20:36]SAM_PROTO_GetShiftState done [13:20:36]FM_GetShiftState done [13:20:36]req_shift_opened done [13:20:36]requested_item shift.open_date is exist - process it [13:20:36]req_shift_open_date [13:20:36]req_shift_open_date done [13:20:36]produce_requested_data done [13:20:36]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192917,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [13:20:36]process_action_free close_receipt [13:20:36]json_value_free [13:20:36]json_value_free done [13:20:36]process_json_proto returns [13:20:36]Send response to host [13:20:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192917,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [13:20:36]free response buf [13:20:36]execute_script done [13:20:36]execute_script returns [13:20:36]free content buf [13:20:36]Sock 8.Close socket [13:20:36]Sock 8.Thread stoped [13:20:40]OFD Sender: No OFD packet to send [13:20:45]OFD Sender: No OFD packet to send [13:20:50]OFD Sender: No OFD packet to send [13:20:55]OFD Sender: No OFD packet to send [13:21:00]OFD Sender: No OFD packet to send [13:21:05]OFD Sender: No OFD packet to send [13:21:10]OFD Sender: No OFD packet to send [13:21:15]OFD Sender: No OFD packet to send [13:21:20]OFD Sender: No OFD packet to send [13:21:25]OFD Sender: No OFD packet to send [13:21:30]OFD Sender: No OFD packet to send [13:21:35]OFD Sender: No OFD packet to send [13:21:40]OFD Sender: No OFD packet to send [13:21:45]OFD Sender: No OFD packet to send [13:21:50]OFD Sender: No OFD packet to send [13:21:55]OFD Sender: No OFD packet to send [13:22:00]OFD Sender: No OFD packet to send [13:22:05]OFD Sender: No OFD packet to send [13:22:10]OFD Sender: No OFD packet to send [13:22:15]OFD Sender: No OFD packet to send [13:22:20]OFD Sender: No OFD packet to send [13:22:25]OFD Sender: No OFD packet to send [13:22:30]OFD Sender: No OFD packet to send [13:22:35]OFD Sender: No OFD packet to send [13:22:40]OFD Sender: No OFD packet to send [13:22:45]OFD Sender: No OFD packet to send [13:22:50]OFD Sender: No OFD packet to send [13:22:55]OFD Sender: No OFD packet to send [13:23:00]OFD Sender: No OFD packet to send [13:23:05]OFD Sender: No OFD packet to send [13:23:10]OFD Sender: No OFD packet to send [13:23:14]accept exits with 9 [13:23:14]New connection [13:23:14]New thread 3066801508 created [13:23:14]Thread 3066658148 joined [13:23:14]Waiting for new connection... [13:23:14] Sock 9.Parse request [13:23:14]Sock 9.Check first char [13:23:14]Sock 9.First char is OK [13:23:14]request: POST /json_proto HTTP/1.0 [13:23:14]Method: POST [13:23:14]URL: /json_proto [13:23:14]Method is POST - this is cgi request [13:23:14]url: /json_proto [13:23:14]query_string will be loaded in cgi processing [13:23:14]execute_cgi json_proto POST (null) [13:23:14]execute_cgi path=json_proto method=POST [13:23:14]POST find Content-Length [13:23:14]Host: 172.17.63.131:8080 [13:23:14]Content-Length: 676 [13:23:14]Content-Type: application/json [13:23:14] [13:23:14]POST finish read [13:23:14]Found Content-Length = 676 [13:23:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32249", "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:23:14]execute_script... [13:23: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)32249", "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:23:14]POST & json_proto [13:23:14]process_json_proto [13:23:14]json parsed OK: [13:23:14]protocol is kg_v1.0 [13:23:14]action value=close_receipt [13:23:14]process_action close_receipt [13:23:14]cmd_close_receipt [13:23:14]MH_GetDate [13:23:14]Write to MH i2c: F0 00 00 2B 3D 57 [13:23:14]Write i2c OK [13:23:14]MH_I2C_Read... [13:23:14]Read from MH i2c: F0 [13:23:14]MH_I2C_Read... [13:23:14]Read from MH i2c: F0 09 00 [13:23:14]MH_I2C_Read... [13:23:14]Read from MH i2c: F0 09 00 2B 3D 00 C7 E1 20 67 22 05 6E 64 88 [13:23:14]GetLastDocTimeStamp 1730208037 [13:23:14]current date 1730208199 [13:23:14]FM_GetShiftState [13:23:14]SAM_PROTO_GetShiftState [13:23:14]wFMCommunicate request_size=4 [13:23:14]MH_SAM_APDU [13:23:14]CAPDU: 80 13 01 00 [13:23:14]Write to MH i2c: E2 08 00 2C 3D 80 13 01 00 00 00 00 00 E6 [13:23:14]Write i2c OK [13:23:14]MH_I2C_Read... [13:23:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:14]Read from MH i2c: E2 [13:23:14]MH_I2C_Read... [13:23:14]Read from MH i2c: E2 0E 00 [13:23:14]MH_I2C_Read... [13:23:14]Read from MH i2c: E2 0E 00 2C 3D 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 EC [13:23:14]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [13:23:14]wFMCommunicate OK [13:23:14]SAM_PROTO_GetShiftState done [13:23:14]FM_GetShiftState done [13:23:14]opened in 1730161990 [13:23:14]opened+sec_in_day 1730248390 [13:23:14]quantity*price = 50041 [13:23:14]sum+1 = 50042 [13:23: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 СÐО: Общий режим Чек 124 29.10.2024 13:23 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192918 ФПД: 35450549692596 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T132319&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192918&fm=35450549692596&tin=02508201610067®Number=0000000000091776&sum=50000 [13:23:15]StoreToDocumentArchive [13:23:15]shift 544 fd 192918 [13:23:15]save to /storage/0544/doc_00192918 [13:23:15]save last doc name /storage/0544/doc_00192918 to /storage/kkm_last_doc_name [13:23:15]save OK [13:23:15]Clear old archive folders... [13:23:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:23:15]tlvbuf is 00FF1380 [13:23:15]SAM_PROTO_ClearQueue [13:23:15]wFMCommunicate request_size=4 [13:23:15]MH_SAM_APDU [13:23:15]CAPDU: 80 09 00 00 [13:23:15]Write to MH i2c: E2 08 00 39 3D 80 09 00 00 00 00 00 00 E8 [13:23:15]Write i2c OK [13:23:15]MH_I2C_Read... [13:23:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:23:15]Read from MH i2c: E2 [13:23:15]MH_I2C_Read... [13:23:15]Read from MH i2c: E2 03 00 [13:23:15]MH_I2C_Read... [13:23:15]Read from MH i2c: E2 03 00 39 3D 00 90 00 EA [13:23:15]RAPDU: 90 00 [13:23:15]wFMCommunicate OK [13:23:15]SAM_PROTO_ClearQueue done [13:23:15]KKMCreateOFDPacket [13:23:15]OFDProtocolAddRootSTLVToBuf [13:23:15]FM_MakeSignedData [13:23:15]FM_MakeSignedData [13:23:15]SAM_PROTO_SignData [13:23:15]wFMCommunicate request_size=4 [13:23:15]MH_SAM_APDU [13:23:15]CAPDU: 80 0D 01 02 [13:23:15]Write to MH i2c: E2 08 00 3A 3D 80 0D 01 02 00 00 00 00 F0 [13:23:15]Write i2c OK [13:23:15]MH_I2C_Read... [13:23:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:23:16]Read from MH i2c: E2 [13:23:16]MH_I2C_Read... [13:23:16]Read from MH i2c: E2 03 00 [13:23:16]MH_I2C_Read... [13:23:16]Read from MH i2c: E2 03 00 3A 3D 00 90 00 EB [13:23:16]RAPDU: 90 00 [13:23:16]wFMCommunicate OK [13:23:16]wFMCommunicate request_size=255 [13:23:16]MH_SAM_APDU [13:23: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 7C 00 00 00 F4 03 04 00 C7 E1 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 20 [13:23:16]Write to MH i2c: E2 02 01 3B 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 C7 E1 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 20 00 00 FA [13:23:16]Write i2c OK [13:23:16]MH_I2C_Read... [13:23:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:16]Read from MH i2c: E2 [13:23:16]MH_I2C_Read... [13:23:16]Read from MH i2c: E2 03 00 [13:23:16]MH_I2C_Read... [13:23:16]Read from MH i2c: E2 03 00 3B 3D 00 90 00 EC [13:23:16]RAPDU: 90 00 [13:23:16]wFMCommunicate OK [13:23:16]wFMCommunicate request_size=10 [13:23:16]MH_SAM_APDU [13:23:16]CAPDU: 80 0D 02 02 05 3D F9 6B E8 B4 [13:23:16]Write to MH i2c: E2 0D 00 3C 3D 80 0D 02 02 05 00 3D F9 6B E8 B4 00 00 3A [13:23:16]Write i2c OK [13:23:16]MH_I2C_Read... [13:23:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:16]Read from MH i2c: E2 [13:23:16]MH_I2C_Read... [13:23:16]Read from MH i2c: E2 03 00 [13:23:16]MH_I2C_Read... [13:23:16]Read from MH i2c: E2 03 00 3C 3D 00 90 00 ED [13:23:16]RAPDU: 90 00 [13:23:16]wFMCommunicate OK [13:23:16]wFMCommunicate request_size=4 [13:23:16]MH_SAM_APDU [13:23:16]CAPDU: 80 0D 03 02 [13:23:16]Write to MH i2c: E2 08 00 3D 3D 80 0D 03 02 00 00 00 00 F5 [13:23:16]Write i2c OK [13:23:16]MH_I2C_Read... [13:23:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:23:16]Read from MH i2c: E2 [13:23:16]MH_I2C_Read... [13:23:16]Read from MH i2c: E2 0B 00 [13:23:16]MH_I2C_Read... [13:23:16]Read from MH i2c: E2 0B 00 3D 3D 00 41 94 95 00 33 FC 3C 0E 90 00 D9 [13:23:16]RAPDU: 41 94 95 00 33 FC 3C 0E 90 00 [13:23:16]wFMCommunicate OK [13:23:16]SAM_PROTO_SignData done [13:23:16]FM_MakeSignedData done [13:23:16]CreateOFDProtocolMessage [13:23:16]wFMCommunicate request_size=4 [13:23:16]MH_SAM_APDU [13:23:16]CAPDU: 80 11 00 00 [13:23:16]Write to MH i2c: E2 08 00 3E 3D 80 11 00 00 00 00 00 00 F5 [13:23:16]Write i2c OK [13:23:16]MH_I2C_Read... [13:23:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:16]Read from MH i2c: E2 [13:23:16]MH_I2C_Read... [13:23:16]Read from MH i2c: E2 17 00 [13:23:16]MH_I2C_Read... [13:23:16]Read from MH i2c: E2 17 00 3E 3D 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:23:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:23:16]wFMCommunicate OK [13:23:16]CreateOFDProtocolMessage done [13:23:16]OFDSenderStorePacket 192918 [13:23:16]StoreOFDPacket docnum=192918 [13:23: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 41 DF 07 01 FC 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 C7 E1 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 20 3D F9 6B E8 B4 41 94 95 00 33 FC 3C 0E [13:23:16]CheckFolder [13:23:16]dirname=/storage/ofd_packets [13:23:16]CheckFolder done [13:23:16]ProducePacketName [13:23:16]name=ofd_packets/00192918 [13:23:16]NVStorageSaveData ofd_packets/00192918 [13:23:16]File name is /storage/ofd_packets/00192918 [13:23:16]Write 301 bytes [13:23:16]NVStorageSaveData done [13:23:16]OFDSenderStorePacket done [13:23:16]KKMCreateOFDPacket done [13:23:16]NVStorageSaveData kkm_last_timestamp [13:23:16]File name is /storage/kkm_last_timestamp [13:23:16]Write 4 bytes [13:23:16]NVStorageSaveData done [13:23:16]ExternCall_PrintAddStr [13:23:16]wPrintStart [13:23:16]Write to MH i2c: 01 00 00 3F 3D 7C [13:23:16]Write i2c OK [13:23:16]MH_I2C_Read... [13:23:16]Read from MH i2c: 01 [13:23:16]MH_I2C_Read... [13:23:16]Read from MH i2c: 01 07 00 [13:23:16]MH_I2C_Read... [13:23:16]Read from MH i2c: 01 07 00 3F 3D 00 00 00 00 00 FF 0F 91 [13:23:16]RasterBufferAndPrint [13:23:16]line Счет N : (1)32249 [13:23:16]line ИÐÐ: 02508201610067 [13:23:16]line Контрольно-КаÑÑовый Чек [13:23:16]line ПРОДÐЖР[13:23:16]line ТРК (МРК, ГÐК) : 12 [13:23:16]line Товар: 2710124130 [13:23:16]line Ðи-92-К-5 [13:23:16]line 7.480 * 66.90 [13:23:16]line = 500.41 [13:23:16]line ÐДС 12% ÐСП 1% [13:23:16]line > о реализуемом товаре [13:23:16]line ОКРУГЛЕÐИЕ: -0.41 [13:23:16]line ИТОГО: 500.00 [13:23:16]line ВнеÑено: 500.00 [13:23:16]line СДÐЧÐ: 0.00 [13:23:16]line ÐСП 1% : 4.43 [13:23:16]line ÐДС 12% : 53.14 [13:23:16]line Ðаличными: 500.00 [13:23:16]line Безнал.: 0.00 [13:23:16]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [13:23:16]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [13:23:16]line СÐО: Общий режим [13:23:16]line Чек 124 29.10.2024 13:23 [13:23:16]line Смена: 544 ФФД: 1.0 [13:23:16]line ЗÐМ: 0300000110 [13:23:16]line РÐМ: 0000000000091776 [13:23:16]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [13:23:16]line ФМ: 0000000000871754 [13:23:16]line ФД: 192918 [13:23:16]line ФПД: 35450549692596 [13:23:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T132319&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192918&fm=35450549692596&tin=02508201610067®Number=0000000000091776&sum=50000 [13:23:16]OFD Sender: Processing packet 192918 [packets to send 75, broken 74] [13:23:16]ProducePacketName [13:23:16]name=ofd_packets/00192918 [13:23:16]OFD Sender: To server: ‡•öpG, [13:23:16]CommunicateWithHost lk.salyk.kg:30040 [13:23:16]ConnectInit lk.salyk.kg [13:23:16]written 0, free lines is 4095 [13:23:16]Connected sock=8 [13:23: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 41 DF 07 01 FC 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 C7 E1 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 20 3D F9 6B E8 B4 41 94 95 00 33 FC 3C 0E [13:23: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 76 A0 47 00 0C 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 96 F1 02 00 F4 03 04 00 88 86 20 67 B6 04 01 00 00 ED 0F A8 B1 76 E1 12 CA [13:23:17]CommunicateWithHost err = 0 [13:23:17]CheckOFDResponse [13:23:17]1017 (14) - 77093643461234 [13:23:17]1041 (16) - 0000000000871754 [13:23:17]1040 (4) - 192918 [13:23:17]1012 (4) - 29.10.2024 06:54 [13:23:17]1206 (1) - 0 [13:23:17]OFD Sender: Remove packet 192918 [13:23:17]ProducePacketName [13:23:17]name=ofd_packets/00192918 [13:23:17]NVStorageDeleteData [13:23:17]Write to MH i2c: 01 00 00 6A 3D A7 [13:23:17]Write i2c OK [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: 01 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: 01 07 00 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: 01 07 00 6A 3D 00 00 00 00 00 C6 0C 80 [13:23:17]RasterBufferAndPrint [13:23:17]line [13:23:17]line [13:23:17]line [13:23:17]line [13:23:17]line [13:23:17]written 0, free lines is 3276 [13:23:17]MH_Cut [13:23:17]Write to MH i2c: D1 01 00 71 3D 01 80 [13:23:17]Write i2c OK [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: D1 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: D1 01 00 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: D1 01 00 71 3D 00 7F [13:23:17]Write to MH i2c: 01 00 00 72 3D AF [13:23:17]Write i2c OK [13:23:17]MH_I2C_Read... [13:23:17]OFD Sender: No OFD packet to send [13:23:18]*** Cut start [13:23:18]*** Partial cut [13:23:18]*** CUTSNS_PIN = 1 [13:23:18]*** CUTSNS_PIN = 0 [13:23:18]*** Brake cut motor [13:23:18]Read from MH i2c: 01 [13:23:18]MH_I2C_Read... [13:23:18]*** Stop cut motor [13:23:18]*** Cut end [13:23:18]Read from MH i2c: 01 07 00 [13:23:18]MH_I2C_Read... [13:23:18]Read from MH i2c: 01 07 00 72 3D 00 00 00 00 00 FF 0F C4 [13:23:18]process_action close_receipt done [13:23:18]requested_data is exist [13:23:18]produce_requested_data [13:23:18]requested_item fm.sn is exist - process it [13:23:18]wFMCommunicate request_size=4 [13:23:18]MH_SAM_APDU [13:23:18]CAPDU: 80 11 00 00 [13:23:18]Write to MH i2c: E2 08 00 73 3D 80 11 00 00 00 00 00 00 2A [13:23:18]Write i2c OK [13:23:18]MH_I2C_Read... [13:23:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:18]Read from MH i2c: E2 [13:23:18]MH_I2C_Read... [13:23:18]Read from MH i2c: E2 17 00 [13:23:18]MH_I2C_Read... [13:23:18]Read from MH i2c: E2 17 00 73 3D 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:23:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:23:18]wFMCommunicate OK [13:23:18]requested_item fd.num is exist - process it [13:23:18]SAM_PROTO_GetFieldsCounters [13:23:18]wFMCommunicate request_size=4 [13:23:18]MH_SAM_APDU [13:23:18]CAPDU: 80 13 00 00 [13:23:18]Write to MH i2c: E2 08 00 74 3D 80 13 00 00 00 00 00 00 2D [13:23:18]Write i2c OK [13:23:18]MH_I2C_Read... [13:23:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:23:18]Read from MH i2c: E2 [13:23:18]MH_I2C_Read... [13:23:18]Read from MH i2c: E2 62 00 [13:23:18]MH_I2C_Read... [13:23:18]Read from MH i2c: E2 62 00 74 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 96 F1 02 00 0E 04 04 00 20 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 72 [13:23: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 96 F1 02 00 0E 04 04 00 20 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:23:18]wFMCommunicate OK [13:23:18]SAM_PROTO_GetFieldsCounters done [13:23:18]requested_item shift.num is exist - process it [13:23:18]requested_item shift.opened is exist - process it [13:23:18]req_shift_opened [13:23:18]FM_GetShiftState [13:23:18]SAM_PROTO_GetShiftState [13:23:18]wFMCommunicate request_size=4 [13:23:18]MH_SAM_APDU [13:23:18]CAPDU: 80 13 01 00 [13:23:18]Write to MH i2c: E2 08 00 75 3D 80 13 01 00 00 00 00 00 2F [13:23:18]Write i2c OK [13:23:18]MH_I2C_Read... [13:23:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:18]Read from MH i2c: E2 [13:23:18]MH_I2C_Read... [13:23:18]Read from MH i2c: E2 0E 00 [13:23:18]MH_I2C_Read... [13:23:18]Read from MH i2c: E2 0E 00 75 3D 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 35 [13:23:18]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [13:23:18]wFMCommunicate OK [13:23:18]SAM_PROTO_GetShiftState done [13:23:18]FM_GetShiftState done [13:23:18]req_shift_opened done [13:23:18]requested_item shift.open_date is exist - process it [13:23:18]req_shift_open_date [13:23:18]req_shift_open_date done [13:23:18]produce_requested_data done [13:23:18]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192918,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [13:23:18]process_action_free close_receipt [13:23:18]json_value_free [13:23:18]json_value_free done [13:23:18]process_json_proto returns [13:23:18]Send response to host [13:23:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192918,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [13:23:18]free response buf [13:23:18]execute_script done [13:23:18]execute_script returns [13:23:18]free content buf [13:23:18]Sock 9.Close socket [13:23:18]Sock 9.Thread stoped [13:23:22]OFD Sender: No OFD packet to send [13:23:27]OFD Sender: No OFD packet to send [13:23:32]OFD Sender: No OFD packet to send [13:23:37]OFD Sender: No OFD packet to send [13:23:42]OFD Sender: No OFD packet to send [13:23:47]OFD Sender: No OFD packet to send [13:23:52]OFD Sender: No OFD packet to send [13:23:57]OFD Sender: No OFD packet to send [13:24:02]OFD Sender: No OFD packet to send [13:24:07]OFD Sender: No OFD packet to send [13:24:12]OFD Sender: No OFD packet to send [13:24:17]OFD Sender: No OFD packet to send [13:24:22]OFD Sender: No OFD packet to send [13:24:27]OFD Sender: No OFD packet to send [13:24:32]OFD Sender: No OFD packet to send [13:24:37]OFD Sender: No OFD packet to send [13:24:42]OFD Sender: No OFD packet to send [13:24:47]OFD Sender: No OFD packet to send [13:24:52]OFD Sender: No OFD packet to send [13:24:57]OFD Sender: No OFD packet to send [13:25:02]OFD Sender: No OFD packet to send [13:25:07]OFD Sender: No OFD packet to send [13:25:12]OFD Sender: No OFD packet to send [13:25:17]OFD Sender: No OFD packet to send [13:25:22]OFD Sender: No OFD packet to send [13:25:27]OFD Sender: No OFD packet to send [13:25:32]OFD Sender: No OFD packet to send [13:25:37]OFD Sender: No OFD packet to send [13:25:42]OFD Sender: No OFD packet to send [13:25:47]OFD Sender: No OFD packet to send [13:25:52]OFD Sender: No OFD packet to send [13:25:57]OFD Sender: No OFD packet to send [13:26:02]OFD Sender: No OFD packet to send [13:26:07]OFD Sender: No OFD packet to send [13:26:12]OFD Sender: No OFD packet to send [13:26:17]OFD Sender: No OFD packet to send [13:26:22]OFD Sender: No OFD packet to send [13:26:27]OFD Sender: No OFD packet to send [13:26:32]OFD Sender: No OFD packet to send [13:26:37]OFD Sender: No OFD packet to send [13:26:42]OFD Sender: No OFD packet to send [13:26:47]OFD Sender: No OFD packet to send [13:26:52]OFD Sender: No OFD packet to send [13:26:57]OFD Sender: No OFD packet to send [13:27:02]OFD Sender: No OFD packet to send [13:27:07]OFD Sender: No OFD packet to send [13:27:12]OFD Sender: No OFD packet to send [13:27:17]OFD Sender: No OFD packet to send [13:27:22]OFD Sender: No OFD packet to send [13:27:27]OFD Sender: No OFD packet to send [13:27:32]OFD Sender: No OFD packet to send [13:27:37]OFD Sender: No OFD packet to send [13:27:42]OFD Sender: No OFD packet to send [13:27:46]accept exits with 10 [13:27:46]New connection [13:27:46]New thread 3066658148 created [13:27:46]Thread 3066801508 joined [13:27:46]Waiting for new connection... [13:27:46] Sock 10.Parse request [13:27:46]Sock 10.Check first char [13:27:46]Sock 10.First char is OK [13:27:46]request: POST /json_proto HTTP/1.0 [13:27:46]Method: POST [13:27:46]URL: /json_proto [13:27:46]Method is POST - this is cgi request [13:27:46]url: /json_proto [13:27:46]query_string will be loaded in cgi processing [13:27:46]execute_cgi json_proto POST (null) [13:27:46]execute_cgi path=json_proto method=POST [13:27:46]POST find Content-Length [13:27:46]Host: 172.17.63.131:8080 [13:27:46]Content-Length: 681 [13:27:46]Content-Type: application/json [13:27:46] [13:27:46]POST finish read [13:27:46]Found Content-Length = 681 [13:27:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32250", "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" ] } } [13:27:46]execute_script... [13: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)32250", "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" ] } } [13:27:46]POST & json_proto [13:27:46]process_json_proto [13:27:46]json parsed OK: [13:27:46]protocol is kg_v1.0 [13:27:46]action value=close_receipt [13:27:46]process_action close_receipt [13:27:46]cmd_close_receipt [13:27:46]MH_GetDate [13:27:46]Write to MH i2c: F0 00 00 76 3D A2 [13:27:46]Write i2c OK [13:27:46]MH_I2C_Read... [13:27:46]Read from MH i2c: F0 [13:27:46]MH_I2C_Read... [13:27:46]Read from MH i2c: F0 09 00 [13:27:46]MH_I2C_Read... [13:27:46]Read from MH i2c: F0 09 00 76 3D 00 D6 E2 20 67 22 05 6E 64 E3 [13:27:46]GetLastDocTimeStamp 1730208199 [13:27:46]current date 1730208470 [13:27:46]FM_GetShiftState [13:27:46]SAM_PROTO_GetShiftState [13:27:46]wFMCommunicate request_size=4 [13:27:46]MH_SAM_APDU [13:27:46]CAPDU: 80 13 01 00 [13:27:46]Write to MH i2c: E2 08 00 77 3D 80 13 01 00 00 00 00 00 31 [13:27:46]Write i2c OK [13:27:46]MH_I2C_Read... [13:27:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:46]Read from MH i2c: E2 [13:27:46]MH_I2C_Read... [13:27:46]Read from MH i2c: E2 0E 00 [13:27:46]MH_I2C_Read... [13:27:46]Read from MH i2c: E2 0E 00 77 3D 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 37 [13:27:46]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [13:27:46]wFMCommunicate OK [13:27:46]SAM_PROTO_GetShiftState done [13:27:46]FM_GetShiftState done [13:27:46]opened in 1730161990 [13:27:46]opened+sec_in_day 1730248390 [13:27:46]quantity*price = 100015 [13:27:46]sum+1 = 100017 [13:27: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 СÐО: Общий режим Чек 125 29.10.2024 13:27 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192919 ФПД: 215454394271818 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T132750&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192919&fm=215454394271818&tin=02508201610067®Number=0000000000091776&sum=100000 [13:27:47]StoreToDocumentArchive [13:27:47]shift 544 fd 192919 [13:27:47]save to /storage/0544/doc_00192919 [13:27:47]save last doc name /storage/0544/doc_00192919 to /storage/kkm_last_doc_name [13:27:47]save OK [13:27:47]Clear old archive folders... [13:27:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:27:47]tlvbuf is 00F0FC50 [13:27:47]SAM_PROTO_ClearQueue [13:27:47]wFMCommunicate request_size=4 [13:27:47]MH_SAM_APDU [13:27:47]CAPDU: 80 09 00 00 [13:27:47]Write to MH i2c: E2 08 00 84 3D 80 09 00 00 00 00 00 00 33 [13:27:47]Write i2c OK [13:27:47]MH_I2C_Read... [13:27:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:27:47]Read from MH i2c: E2 [13:27:47]MH_I2C_Read... [13:27:47]Read from MH i2c: E2 03 00 [13:27:47]MH_I2C_Read... [13:27:47]Read from MH i2c: E2 03 00 84 3D 00 90 00 35 [13:27:47]RAPDU: 90 00 [13:27:47]wFMCommunicate OK [13:27:47]SAM_PROTO_ClearQueue done [13:27:47]KKMCreateOFDPacket [13:27:47]OFDProtocolAddRootSTLVToBuf [13:27:47]FM_MakeSignedData [13:27:47]FM_MakeSignedData [13:27:47]SAM_PROTO_SignData [13:27:47]wFMCommunicate request_size=4 [13:27:47]MH_SAM_APDU [13:27:47]CAPDU: 80 0D 01 02 [13:27:47]Write to MH i2c: E2 08 00 85 3D 80 0D 01 02 00 00 00 00 3B [13:27:47]Write i2c OK [13:27:47]MH_I2C_Read... [13:27:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:27:47]Read from MH i2c: E2 [13:27:47]MH_I2C_Read... [13:27:47]Read from MH i2c: E2 03 00 [13:27:47]MH_I2C_Read... [13:27:47]Read from MH i2c: E2 03 00 85 3D 00 90 00 36 [13:27:47]RAPDU: 90 00 [13:27:47]wFMCommunicate OK [13:27:47]wFMCommunicate request_size=255 [13:27:47]MH_SAM_APDU [13: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 D6 E2 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 C3 [13:27:47]Write to MH i2c: E2 02 01 86 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 D6 E2 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 C3 00 00 F4 [13:27:47]Write i2c OK [13:27:47]MH_I2C_Read... [13:27:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:47]Read from MH i2c: E2 [13:27:47]MH_I2C_Read... [13:27:47]Read from MH i2c: E2 03 00 [13:27:47]MH_I2C_Read... [13:27:47]Read from MH i2c: E2 03 00 86 3D 00 90 00 37 [13:27:47]RAPDU: 90 00 [13:27:47]wFMCommunicate OK [13:27:47]wFMCommunicate request_size=10 [13:27:47]MH_SAM_APDU [13:27:47]CAPDU: 80 0D 02 02 05 F4 62 A2 C8 4A [13:27:47]Write to MH i2c: E2 0D 00 87 3D 80 0D 02 02 05 00 F4 62 A2 C8 4A 00 00 52 [13:27:47]Write i2c OK [13:27:47]MH_I2C_Read... [13:27:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:47]Read from MH i2c: E2 [13:27:47]MH_I2C_Read... [13:27:47]Read from MH i2c: E2 03 00 [13:27:47]MH_I2C_Read... [13:27:47]Read from MH i2c: E2 03 00 87 3D 00 90 00 38 [13:27:47]RAPDU: 90 00 [13:27:47]wFMCommunicate OK [13:27:47]wFMCommunicate request_size=4 [13:27:47]MH_SAM_APDU [13:27:47]CAPDU: 80 0D 03 02 [13:27:47]Write to MH i2c: E2 08 00 88 3D 80 0D 03 02 00 00 00 00 40 [13:27:47]Write i2c OK [13:27:47]MH_I2C_Read... [13:27:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:27:47]Read from MH i2c: E2 [13:27:47]MH_I2C_Read... [13:27:47]Read from MH i2c: E2 0B 00 [13:27:47]MH_I2C_Read... [13:27:47]Read from MH i2c: E2 0B 00 88 3D 00 30 6D E8 DB 76 3E 6E FD 90 00 C0 [13:27:47]RAPDU: 30 6D E8 DB 76 3E 6E FD 90 00 [13:27:47]wFMCommunicate OK [13:27:47]SAM_PROTO_SignData done [13:27:47]FM_MakeSignedData done [13:27:47]CreateOFDProtocolMessage [13:27:47]wFMCommunicate request_size=4 [13:27:47]MH_SAM_APDU [13:27:47]CAPDU: 80 11 00 00 [13:27:47]Write to MH i2c: E2 08 00 89 3D 80 11 00 00 00 00 00 00 40 [13:27:47]Write i2c OK [13:27:47]MH_I2C_Read... [13:27:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:47]Read from MH i2c: E2 [13:27:47]MH_I2C_Read... [13:27:47]Read from MH i2c: E2 17 00 [13:27:47]MH_I2C_Read... [13:27:47]Read from MH i2c: E2 17 00 89 3D 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:27: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:27:47]wFMCommunicate OK [13:27:47]CreateOFDProtocolMessage done [13:27:47]OFDSenderStorePacket 192919 [13:27:47]StoreOFDPacket docnum=192919 [13:27: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 DD 20 07 01 B2 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 7D 00 00 00 F4 03 04 00 D6 E2 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 C3 F4 62 A2 C8 4A 30 6D E8 DB 76 3E 6E FD [13:27:47]CheckFolder [13:27:47]dirname=/storage/ofd_packets [13:27:47]CheckFolder done [13:27:47]ProducePacketName [13:27:47]name=ofd_packets/00192919 [13:27:47]NVStorageSaveData ofd_packets/00192919 [13:27:47]File name is /storage/ofd_packets/00192919 [13:27:47]Write 301 bytes [13:27:47]NVStorageSaveData done [13:27:47]OFDSenderStorePacket done [13:27:47]KKMCreateOFDPacket done [13:27:47]NVStorageSaveData kkm_last_timestamp [13:27:47]File name is /storage/kkm_last_timestamp [13:27:47]Write 4 bytes [13:27:47]NVStorageSaveData done [13:27:47]ExternCall_PrintAddStr [13:27:47]wPrintStart [13:27:47]Write to MH i2c: 01 00 00 8A 3D C7 [13:27:47]Write i2c OK [13:27:47]MH_I2C_Read... [13:27:47]Read from MH i2c: 01 [13:27:47]MH_I2C_Read... [13:27:47]Read from MH i2c: 01 07 00 [13:27:47]MH_I2C_Read... [13:27:47]Read from MH i2c: 01 07 00 8A 3D 00 00 00 00 00 FF 0F DC [13:27:47]RasterBufferAndPrint [13:27:47]line Счет N : (1)32250 [13:27:47]line ИÐÐ: 02508201610067 [13:27:47]line Контрольно-КаÑÑовый Чек [13:27:47]line ПРОДÐЖР[13:27:47]line ТРК (МРК, ГÐК) : 12 [13:27:47]line Товар: 2710124130 [13:27:47]line Ðи-92-К-5 [13:27:47]line 14.950 * 66.90 [13:27:47]line = 1000.16 [13:27:47]line ÐДС 12% ÐСП 1% [13:27:47]line > о реализуемом товаре [13:27:47]line ОКРУГЛЕÐИЕ: -0.16 [13:27:47]line ИТОГО: 1000.00 [13:27:47]line ВнеÑено: 1000.00 [13:27:47]line СДÐЧÐ: 0.00 [13:27:47]line ÐСП 1% : 8.85 [13:27:47]line ÐДС 12% : 106.21 [13:27:47]line Ðаличными: 1000.00 [13:27:47]line Безнал.: 0.00 [13:27:47]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [13:27:47]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [13:27:47]line СÐО: Общий режим [13:27:47]line Чек 125 29.10.2024 13:27 [13:27:47]line Смена: 544 ФФД: 1.0 [13:27:47]line ЗÐМ: 0300000110 [13:27:47]line РÐМ: 0000000000091776 [13:27:47]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [13:27:47]line ФМ: 0000000000871754 [13:27:47]line ФД: 192919 [13:27:47]line ФПД: 215454394271818 [13:27:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T132750&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192919&fm=215454394271818&tin=02508201610067®Number=0000000000091776&sum=100000 [13:27:48]OFD Sender: Processing packet 192919 [packets to send 75, broken 74] [13:27:48]ProducePacketName [13:27:48]name=ofd_packets/00192919 [13:27:48]OFD Sender: To server: ‡•öpG, [13:27:48]CommunicateWithHost lk.salyk.kg:30040 [13:27:48]ConnectInit lk.salyk.kg [13:27:48]written 0, free lines is 4095 [13:27:48]Connected sock=9 [13: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 DD 20 07 01 B2 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 7D 00 00 00 F4 03 04 00 D6 E2 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 C3 F4 62 A2 C8 4A 30 6D E8 DB 76 3E 6E FD [13: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 65 B9 47 00 19 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 97 F1 02 00 F4 03 04 00 97 87 20 67 B6 04 01 00 00 79 3D 07 2B 84 E9 C8 C1 [13:27:48]CommunicateWithHost err = 0 [13:27:48]CheckOFDResponse [13:27:48]1017 (14) - 77093643461234 [13:27:48]1041 (16) - 0000000000871754 [13:27:48]1040 (4) - 192919 [13:27:48]1012 (4) - 29.10.2024 06:58 [13:27:48]1206 (1) - 0 [13:27:48]OFD Sender: Remove packet 192919 [13:27:48]ProducePacketName [13:27:48]name=ofd_packets/00192919 [13:27:48]NVStorageDeleteData [13:27:48]Write to MH i2c: 01 00 00 B5 3D F2 [13:27:48]Write i2c OK [13:27:48]MH_I2C_Read... [13:27:48]Read from MH i2c: 01 [13:27:48]MH_I2C_Read... [13:27:48]Read from MH i2c: 01 07 00 [13:27:48]MH_I2C_Read... [13:27:48]Read from MH i2c: 01 07 00 B5 3D 00 00 00 00 00 BC 0C C1 [13:27:48]RasterBufferAndPrint [13:27:48]line [13:27:48]line [13:27:48]line [13:27:48]line [13:27:48]line [13:27:48]written 0, free lines is 3267 [13:27:48]MH_Cut [13:27:48]Write to MH i2c: D1 01 00 BC 3D 01 CB [13:27:48]Write i2c OK [13:27:48]MH_I2C_Read... [13:27:48]Read from MH i2c: D1 [13:27:48]MH_I2C_Read... [13:27:48]Read from MH i2c: D1 01 00 [13:27:48]MH_I2C_Read... [13:27:48]Read from MH i2c: D1 01 00 BC 3D 00 CA [13:27:48]Write to MH i2c: 01 00 00 BD 3D FA [13:27:48]Write i2c OK [13:27:48]MH_I2C_Read... [13:27:48]OFD Sender: No OFD packet to send [13:27:49]*** Cut start [13:27:49]*** Partial cut [13:27:49]*** CUTSNS_PIN = 1 [13:27:49]*** CUTSNS_PIN = 0 [13:27:49]*** Brake cut motor [13:27:50]Read from MH i2c: 01 [13:27:50]MH_I2C_Read... [13:27:50]*** Stop cut motor [13:27:50]*** Cut end [13:27:50]Read from MH i2c: 01 07 00 [13:27:50]MH_I2C_Read... [13:27:50]Read from MH i2c: 01 07 00 BD 3D 00 00 00 00 00 FF 0F 0F [13:27:50]process_action close_receipt done [13:27:50]requested_data is exist [13:27:50]produce_requested_data [13:27:50]requested_item fm.sn is exist - process it [13:27:50]wFMCommunicate request_size=4 [13:27:50]MH_SAM_APDU [13:27:50]CAPDU: 80 11 00 00 [13:27:50]Write to MH i2c: E2 08 00 BE 3D 80 11 00 00 00 00 00 00 75 [13:27:50]Write i2c OK [13:27:50]MH_I2C_Read... [13:27:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:50]Read from MH i2c: E2 [13:27:50]MH_I2C_Read... [13:27:50]Read from MH i2c: E2 17 00 [13:27:50]MH_I2C_Read... [13:27:50]Read from MH i2c: E2 17 00 BE 3D 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: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 [13:27:50]wFMCommunicate OK [13:27:50]requested_item fd.num is exist - process it [13:27:50]SAM_PROTO_GetFieldsCounters [13:27:50]wFMCommunicate request_size=4 [13:27:50]MH_SAM_APDU [13:27:50]CAPDU: 80 13 00 00 [13:27:50]Write to MH i2c: E2 08 00 BF 3D 80 13 00 00 00 00 00 00 78 [13:27:50]Write i2c OK [13:27:50]MH_I2C_Read... [13:27:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:27:50]Read from MH i2c: E2 [13:27:50]MH_I2C_Read... [13:27:50]Read from MH i2c: E2 62 00 [13:27:50]MH_I2C_Read... [13:27:50]Read from MH i2c: E2 62 00 BF 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 97 F1 02 00 0E 04 04 00 20 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 C1 [13: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 97 F1 02 00 0E 04 04 00 20 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:27:50]wFMCommunicate OK [13:27:50]SAM_PROTO_GetFieldsCounters done [13:27:50]requested_item shift.num is exist - process it [13:27:50]requested_item shift.opened is exist - process it [13:27:50]req_shift_opened [13:27:50]FM_GetShiftState [13:27:50]SAM_PROTO_GetShiftState [13:27:50]wFMCommunicate request_size=4 [13:27:50]MH_SAM_APDU [13:27:50]CAPDU: 80 13 01 00 [13:27:50]Write to MH i2c: E2 08 00 C0 3D 80 13 01 00 00 00 00 00 7A [13:27:50]Write i2c OK [13:27:50]MH_I2C_Read... [13:27:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:50]Read from MH i2c: E2 [13:27:50]MH_I2C_Read... [13:27:50]Read from MH i2c: E2 0E 00 [13:27:50]MH_I2C_Read... [13:27:50]Read from MH i2c: E2 0E 00 C0 3D 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 80 [13:27:50]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [13:27:50]wFMCommunicate OK [13:27:50]SAM_PROTO_GetShiftState done [13:27:50]FM_GetShiftState done [13:27:50]req_shift_opened done [13:27:50]requested_item shift.open_date is exist - process it [13:27:50]req_shift_open_date [13:27:50]req_shift_open_date done [13:27:50]produce_requested_data done [13:27:50]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192919,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [13:27:50]process_action_free close_receipt [13:27:50]json_value_free [13:27:50]json_value_free done [13:27:50]process_json_proto returns [13:27:50]Send response to host [13:27:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192919,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [13:27:50]free response buf [13:27:50]execute_script done [13:27:50]execute_script returns [13:27:50]free content buf [13:27:50]Sock 10.Close socket [13:27:50]Sock 10.Thread stoped [13:27:53]OFD Sender: No OFD packet to send [13:27:58]OFD Sender: No OFD packet to send [13:28:03]OFD Sender: No OFD packet to send [13:28:08]OFD Sender: No OFD packet to send [13:28:13]OFD Sender: No OFD packet to send [13:28:18]OFD Sender: No OFD packet to send [13:28:20]accept exits with 8 [13:28:20]New connection [13:28:20]New thread 3066801508 created [13:28:20]Thread 3066658148 joined [13:28:20]Waiting for new connection... [13:28:20] Sock 8.Parse request [13:28:20]Sock 8.Check first char [13:28:20]Sock 8.First char is OK [13:28:20]request: POST /json_proto HTTP/1.0 [13:28:20]Method: POST [13:28:20]URL: /json_proto [13:28:20]Method is POST - this is cgi request [13:28:20]url: /json_proto [13:28:20]query_string will be loaded in cgi processing [13:28:20]execute_cgi json_proto POST (null) [13:28:20]execute_cgi path=json_proto method=POST [13:28:20]POST find Content-Length [13:28:20]Host: 172.17.63.131:8080 [13:28:20]Content-Length: 677 [13:28:20]Content-Type: application/json [13:28:20] [13:28:20]POST finish read [13:28:20]Found Content-Length = 677 [13:28:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32251", "tax_sys" : 0, "items" : [ { "pre_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.220, "sum" : 750.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:20]execute_script... [13:28: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)32251", "tax_sys" : 0, "items" : [ { "pre_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.220, "sum" : 750.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:20]POST & json_proto [13:28:20]process_json_proto [13:28:20]json parsed OK: [13:28:20]protocol is kg_v1.0 [13:28:20]action value=close_receipt [13:28:20]process_action close_receipt [13:28:20]cmd_close_receipt [13:28:20]MH_GetDate [13:28:20]Write to MH i2c: F0 00 00 C1 3D ED [13:28:20]Write i2c OK [13:28:20]MH_I2C_Read... [13:28:20]Read from MH i2c: F0 [13:28:20]MH_I2C_Read... [13:28:20]Read from MH i2c: F0 09 00 [13:28:20]MH_I2C_Read... [13:28:20]Read from MH i2c: F0 09 00 C1 3D 00 F9 E2 20 67 22 05 6E 64 51 [13:28:20]GetLastDocTimeStamp 1730208470 [13:28:20]current date 1730208505 [13:28:20]FM_GetShiftState [13:28:20]SAM_PROTO_GetShiftState [13:28:20]wFMCommunicate request_size=4 [13:28:20]MH_SAM_APDU [13:28:20]CAPDU: 80 13 01 00 [13:28:20]Write to MH i2c: E2 08 00 C2 3D 80 13 01 00 00 00 00 00 7C [13:28:20]Write i2c OK [13:28:20]MH_I2C_Read... [13:28:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:20]Read from MH i2c: E2 [13:28:20]MH_I2C_Read... [13:28:20]Read from MH i2c: E2 0E 00 [13:28:20]MH_I2C_Read... [13:28:20]Read from MH i2c: E2 0E 00 C2 3D 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 82 [13:28:20]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [13:28:20]wFMCommunicate OK [13:28:20]SAM_PROTO_GetShiftState done [13:28:20]FM_GetShiftState done [13:28:20]opened in 1730161990 [13:28:20]opened+sec_in_day 1730248390 [13:28:20]quantity*price = 75061 [13:28:20]sum+1 = 75063 [13:28:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.62 ИТОГО: 750.00 ВнеÑено: 750.00 СДÐЧÐ: 0.00 ÐСП 1% : 6.64 ÐДС 12% : 79.71 Ðаличными: 750.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 170 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 СÐО: Общий режим Чек 126 29.10.2024 13:28 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 192920 ФПД: 242934982355982 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T132825&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192920&fm=242934982355982&tin=02508201610067®Number=0000000000091776&sum=75000 [13:28:21]StoreToDocumentArchive [13:28:21]shift 544 fd 192920 [13:28:21]save to /storage/0544/doc_00192920 [13:28:21]save last doc name /storage/0544/doc_00192920 to /storage/kkm_last_doc_name [13:28:21]save OK [13:28:21]Clear old archive folders... [13:28:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:28:21]tlvbuf is 00FC2D70 [13:28:21]SAM_PROTO_ClearQueue [13:28:21]wFMCommunicate request_size=4 [13:28:21]MH_SAM_APDU [13:28:21]CAPDU: 80 09 00 00 [13:28:21]Write to MH i2c: E2 08 00 CF 3D 80 09 00 00 00 00 00 00 7E [13:28:21]Write i2c OK [13:28:21]MH_I2C_Read... [13:28:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:28:21]Read from MH i2c: E2 [13:28:21]MH_I2C_Read... [13:28:21]Read from MH i2c: E2 03 00 [13:28:21]MH_I2C_Read... [13:28:21]Read from MH i2c: E2 03 00 CF 3D 00 90 00 80 [13:28:21]RAPDU: 90 00 [13:28:21]wFMCommunicate OK [13:28:21]SAM_PROTO_ClearQueue done [13:28:21]KKMCreateOFDPacket [13:28:21]OFDProtocolAddRootSTLVToBuf [13:28:21]FM_MakeSignedData [13:28:21]FM_MakeSignedData [13:28:21]SAM_PROTO_SignData [13:28:21]wFMCommunicate request_size=4 [13:28:21]MH_SAM_APDU [13:28:21]CAPDU: 80 0D 01 02 [13:28:21]Write to MH i2c: E2 08 00 D0 3D 80 0D 01 02 00 00 00 00 86 [13:28:21]Write i2c OK [13:28:21]MH_I2C_Read... [13:28:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:28:21]Read from MH i2c: E2 [13:28:21]MH_I2C_Read... [13:28:21]Read from MH i2c: E2 03 00 [13:28:21]MH_I2C_Read... [13:28:21]Read from MH i2c: E2 03 00 D0 3D 00 90 00 81 [13:28:21]RAPDU: 90 00 [13:28:21]wFMCommunicate OK [13:28:21]wFMCommunicate request_size=255 [13:28:21]MH_SAM_APDU [13:28: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 D4 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 F9 E2 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 DC [13:28:21]Write to MH i2c: E2 02 01 D1 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 D4 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 F9 E2 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 DC 00 00 AB [13:28:21]Write i2c OK [13:28:21]MH_I2C_Read... [13:28:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:21]Read from MH i2c: E2 [13:28:21]MH_I2C_Read... [13:28:21]Read from MH i2c: E2 03 00 [13:28:21]MH_I2C_Read... [13:28:21]Read from MH i2c: E2 03 00 D1 3D 00 90 00 82 [13:28:21]RAPDU: 90 00 [13:28:21]wFMCommunicate OK [13:28:21]wFMCommunicate request_size=10 [13:28:21]MH_SAM_APDU [13:28:21]CAPDU: 80 0D 02 02 05 F2 B5 53 AC 0E [13:28:21]Write to MH i2c: E2 0D 00 D2 3D 80 0D 02 02 05 00 F2 B5 53 AC 0E 00 00 47 [13:28:21]Write i2c OK [13:28:21]MH_I2C_Read... [13:28:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:21]Read from MH i2c: E2 [13:28:21]MH_I2C_Read... [13:28:21]Read from MH i2c: E2 03 00 [13:28:21]MH_I2C_Read... [13:28:21]Read from MH i2c: E2 03 00 D2 3D 00 90 00 83 [13:28:21]RAPDU: 90 00 [13:28:21]wFMCommunicate OK [13:28:21]wFMCommunicate request_size=4 [13:28:21]MH_SAM_APDU [13:28:21]CAPDU: 80 0D 03 02 [13:28:21]Write to MH i2c: E2 08 00 D3 3D 80 0D 03 02 00 00 00 00 8B [13:28:21]Write i2c OK [13:28:21]MH_I2C_Read... [13:28:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:28:21]Read from MH i2c: E2 [13:28:21]MH_I2C_Read... [13:28:21]Read from MH i2c: E2 0B 00 [13:28:21]MH_I2C_Read... [13:28:21]Read from MH i2c: E2 0B 00 D3 3D 00 83 C4 03 60 5A D3 85 8A 90 00 72 [13:28:21]RAPDU: 83 C4 03 60 5A D3 85 8A 90 00 [13:28:21]wFMCommunicate OK [13:28:21]SAM_PROTO_SignData done [13:28:21]FM_MakeSignedData done [13:28:21]CreateOFDProtocolMessage [13:28:21]wFMCommunicate request_size=4 [13:28:21]MH_SAM_APDU [13:28:21]CAPDU: 80 11 00 00 [13:28:21]Write to MH i2c: E2 08 00 D4 3D 80 11 00 00 00 00 00 00 8B [13:28:21]Write i2c OK [13:28:21]MH_I2C_Read... [13:28:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:21]Read from MH i2c: E2 [13:28:21]MH_I2C_Read... [13:28:21]Read from MH i2c: E2 17 00 [13:28:21]MH_I2C_Read... [13:28:21]Read from MH i2c: E2 17 00 D4 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DE [13:28: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:28:21]wFMCommunicate OK [13:28:21]CreateOFDProtocolMessage done [13:28:21]OFDSenderStorePacket 192920 [13:28:21]StoreOFDPacket docnum=192920 [13:28: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 32 7D 07 01 F8 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 F9 E2 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 DC F2 B5 53 AC 0E 83 C4 03 60 5A D3 85 8A [13:28:21]CheckFolder [13:28:21]dirname=/storage/ofd_packets [13:28:21]CheckFolder done [13:28:21]ProducePacketName [13:28:21]name=ofd_packets/00192920 [13:28:21]NVStorageSaveData ofd_packets/00192920 [13:28:21]File name is /storage/ofd_packets/00192920 [13:28:21]Write 301 bytes [13:28:21]NVStorageSaveData done [13:28:21]OFDSenderStorePacket done [13:28:21]KKMCreateOFDPacket done [13:28:21]NVStorageSaveData kkm_last_timestamp [13:28:21]File name is /storage/kkm_last_timestamp [13:28:21]Write 4 bytes [13:28:21]NVStorageSaveData done [13:28:21]ExternCall_PrintAddStr [13:28:21]wPrintStart [13:28:21]Write to MH i2c: 01 00 00 D5 3D 12 [13:28:21]Write i2c OK [13:28:21]MH_I2C_Read... [13:28:21]Read from MH i2c: 01 [13:28:21]MH_I2C_Read... [13:28:21]Read from MH i2c: 01 07 00 [13:28:21]MH_I2C_Read... [13:28:21]Read from MH i2c: 01 07 00 D5 3D 00 00 00 00 00 FF 0F 27 [13:28:21]RasterBufferAndPrint [13:28:21]line Счет N : (1)32251 [13:28:21]line ИÐÐ: 02508201610067 [13:28:21]line Контрольно-КаÑÑовый Чек [13:28:21]line ПРОДÐЖР[13:28:21]line ТРК (МРК, ГÐК) : 21 [13:28:21]line Товар: 2710124130 [13:28:21]line Ðи-92-К-5 [13:28:21]line 11.220 * 66.90 [13:28:21]line = 750.62 [13:28:21]line ÐДС 12% ÐСП 1% [13:28:21]line > о реализуемом товаре [13:28:21]line ОКРУГЛЕÐИЕ: -0.62 [13:28:21]line ИТОГО: 750.00 [13:28:21]line ВнеÑено: 750.00 [13:28:21]line СДÐЧÐ: 0.00 [13:28:21]line ÐСП 1% : 6.64 [13:28:21]line ÐДС 12% : 79.71 [13:28:21]line Ðаличными: 750.00 [13:28:21]line Безнал.: 0.00 [13:28:21]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [13:28:21]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [13:28:21]line СÐО: Общий режим [13:28:21]line Чек 126 29.10.2024 13:28 [13:28:21]line Смена: 544 ФФД: 1.0 [13:28:21]line ЗÐМ: 0300000110 [13:28:21]line РÐМ: 0000000000091776 [13:28:21]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [13:28:21]line ФМ: 0000000000871754 [13:28:21]line ФД: 192920 [13:28:21]line ФПД: 242934982355982 [13:28:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T132825&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192920&fm=242934982355982&tin=02508201610067®Number=0000000000091776&sum=75000 [13:28:22]OFD Sender: Processing packet 192920 [packets to send 75, broken 74] [13:28:22]ProducePacketName [13:28:22]name=ofd_packets/00192920 [13:28:22]OFD Sender: To server: ‡•öpG, [13:28:22]CommunicateWithHost lk.salyk.kg:30040 [13:28:22]ConnectInit lk.salyk.kg [13:28:22]written 0, free lines is 4095 [13:28:22]Connected sock=10 [13:28: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 32 7D 07 01 F8 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 F9 E2 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 DC F2 B5 53 AC 0E 83 C4 03 60 5A D3 85 8A [13:28: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 72 8F 47 00 62 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 98 F1 02 00 F4 03 04 00 B9 87 20 67 B6 04 01 00 00 BC 9E 7F 49 50 3C CC F9 [13:28:22]CommunicateWithHost err = 0 [13:28:22]CheckOFDResponse [13:28:22]1017 (14) - 77093643461234 [13:28:22]1041 (16) - 0000000000871754 [13:28:22]1040 (4) - 192920 [13:28:22]1012 (4) - 29.10.2024 06:59 [13:28:22]1206 (1) - 0 [13:28:22]OFD Sender: Remove packet 192920 [13:28:22]ProducePacketName [13:28:22]name=ofd_packets/00192920 [13:28:22]NVStorageDeleteData [13:28:22]Write to MH i2c: 01 00 00 00 3E 3E [13:28:22]Write i2c OK [13:28:22]MH_I2C_Read... [13:28:22]Read from MH i2c: 01 [13:28:22]MH_I2C_Read... [13:28:22]Read from MH i2c: 01 07 00 [13:28:22]MH_I2C_Read... [13:28:22]Read from MH i2c: 01 07 00 00 3E 00 00 00 00 00 C1 0C 12 [13:28:22]RasterBufferAndPrint [13:28:22]line [13:28:22]line [13:28:22]line [13:28:22]line [13:28:22]line [13:28:22]written 0, free lines is 3271 [13:28:22]MH_Cut [13:28:22]Write to MH i2c: D1 01 00 07 3E 01 17 [13:28:22]Write i2c OK [13:28:22]MH_I2C_Read... [13:28:22]Read from MH i2c: D1 [13:28:22]MH_I2C_Read... [13:28:22]Read from MH i2c: D1 01 00 [13:28:22]MH_I2C_Read... [13:28:22]Read from MH i2c: D1 01 00 07 3E 00 16 [13:28:22]Write to MH i2c: 01 00 00 08 3E 46 [13:28:22]Write i2c OK [13:28:22]MH_I2C_Read... [13:28:23]OFD Sender: No OFD packet to send [13:28:23]*** Cut start [13:28:23]*** Partial cut [13:28:23]*** CUTSNS_PIN = 1 [13:28:23]*** CUTSNS_PIN = 0 [13:28:23]*** Brake cut motor [13:28:24]Read from MH i2c: 01 [13:28:24]MH_I2C_Read... [13:28:24]*** Stop cut motor [13:28:24]*** Cut end [13:28:24]Read from MH i2c: 01 07 00 [13:28:24]MH_I2C_Read... [13:28:24]Read from MH i2c: 01 07 00 08 3E 00 00 00 00 00 FF 0F 5B [13:28:24]process_action close_receipt done [13:28:24]requested_data is exist [13:28:24]produce_requested_data [13:28:24]requested_item fm.sn is exist - process it [13:28:24]wFMCommunicate request_size=4 [13:28:24]MH_SAM_APDU [13:28:24]CAPDU: 80 11 00 00 [13:28:24]Write to MH i2c: E2 08 00 09 3E 80 11 00 00 00 00 00 00 C1 [13:28:24]Write i2c OK [13:28:24]MH_I2C_Read... [13:28:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:24]Read from MH i2c: E2 [13:28:24]MH_I2C_Read... [13:28:24]Read from MH i2c: E2 17 00 [13:28:24]MH_I2C_Read... [13:28:24]Read from MH i2c: E2 17 00 09 3E 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:28:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:28:24]wFMCommunicate OK [13:28:24]requested_item fd.num is exist - process it [13:28:24]SAM_PROTO_GetFieldsCounters [13:28:24]wFMCommunicate request_size=4 [13:28:24]MH_SAM_APDU [13:28:24]CAPDU: 80 13 00 00 [13:28:24]Write to MH i2c: E2 08 00 0A 3E 80 13 00 00 00 00 00 00 C4 [13:28:24]Write i2c OK [13:28:24]MH_I2C_Read... [13:28:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:28:24]Read from MH i2c: E2 [13:28:24]MH_I2C_Read... [13:28:24]Read from MH i2c: E2 62 00 [13:28:24]MH_I2C_Read... [13:28:24]Read from MH i2c: E2 62 00 0A 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 98 F1 02 00 0E 04 04 00 20 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 11 [13:28:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 F1 02 00 0E 04 04 00 20 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:28:24]wFMCommunicate OK [13:28:24]SAM_PROTO_GetFieldsCounters done [13:28:24]requested_item shift.num is exist - process it [13:28:24]requested_item shift.opened is exist - process it [13:28:24]req_shift_opened [13:28:24]FM_GetShiftState [13:28:24]SAM_PROTO_GetShiftState [13:28:24]wFMCommunicate request_size=4 [13:28:24]MH_SAM_APDU [13:28:24]CAPDU: 80 13 01 00 [13:28:24]Write to MH i2c: E2 08 00 0B 3E 80 13 01 00 00 00 00 00 C6 [13:28:24]Write i2c OK [13:28:24]MH_I2C_Read... [13:28:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:24]Read from MH i2c: E2 [13:28:24]MH_I2C_Read... [13:28:24]Read from MH i2c: E2 0E 00 [13:28:24]MH_I2C_Read... [13:28:24]Read from MH i2c: E2 0E 00 0B 3E 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 CC [13:28:24]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [13:28:24]wFMCommunicate OK [13:28:24]SAM_PROTO_GetShiftState done [13:28:24]FM_GetShiftState done [13:28:24]req_shift_opened done [13:28:24]requested_item shift.open_date is exist - process it [13:28:24]req_shift_open_date [13:28:24]req_shift_open_date done [13:28:24]produce_requested_data done [13:28:24]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192920,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [13:28:24]process_action_free close_receipt [13:28:24]json_value_free [13:28:24]json_value_free done [13:28:24]process_json_proto returns [13:28:24]Send response to host [13:28:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192920,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [13:28:24]free response buf [13:28:24]execute_script done [13:28:24]execute_script returns [13:28:24]free content buf [13:28:24]Sock 8.Close socket [13:28:24]Sock 8.Thread stoped [13:28:28]OFD Sender: No OFD packet to send [13:28:33]OFD Sender: No OFD packet to send [13:28:38]OFD Sender: No OFD packet to send [13:28:43]OFD Sender: No OFD packet to send [13:28:48]OFD Sender: No OFD packet to send [13:28:53]OFD Sender: No OFD packet to send [13:28:58]OFD Sender: No OFD packet to send [13:29:03]OFD Sender: No OFD packet to send [13:29:08]OFD Sender: No OFD packet to send [13:29:13]OFD Sender: No OFD packet to send [13:29:18]OFD Sender: No OFD packet to send [13:29:23]OFD Sender: No OFD packet to send [13:29:28]OFD Sender: No OFD packet to send [13:29:33]OFD Sender: No OFD packet to send [13:29:38]OFD Sender: No OFD packet to send [13:29:43]OFD Sender: No OFD packet to send [13:29:48]OFD Sender: No OFD packet to send [13:29:53]OFD Sender: No OFD packet to send [13:29:58]OFD Sender: No OFD packet to send [13:30:03]OFD Sender: No OFD packet to send [13:30:08]OFD Sender: No OFD packet to send [13:30:13]OFD Sender: No OFD packet to send [13:30:18]OFD Sender: No OFD packet to send [13:30:23]OFD Sender: No OFD packet to send C9 15 21 67 [17:05:14]Write to MH i2c: E2 10 00 72 00 80 15 02 00 08 00 F4 03 04 00 C9 15 21 67 00 00 63 [17:05:14]Write i2c OK [17:05:14]MH_I2C_Read... [17:05:14]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:05:14]Read from MH i2c: E2 [17:05:14]MH_I2C_Read... [17:05:14]Read from MH i2c: E2 03 00 [17:05:14]MH_I2C_Read... [17:05:14]Read from MH i2c: E2 03 00 72 00 00 90 00 E6 [17:05:14]RAPDU: 90 00 [17:05:14]wFMCommunicate OK [17:05:14]wFMCommunicate request_size=25 [17:05:14]MH_SAM_APDU [17:05:14]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 [17:05:14]Write to MH i2c: E2 1C 00 73 00 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 5A [17:05:14]Write i2c OK [17:05:14]MH_I2C_Read... [17:05:14]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:05:14]Read from MH i2c: E2 [17:05:14]MH_I2C_Read... [17:05:14]Read from MH i2c: E2 03 00 [17:05:14]MH_I2C_Read... [17:05:14]Read from MH i2c: E2 03 00 73 00 00 90 00 E7 [17:05:14]RAPDU: 90 00 [17:05:14]wFMCommunicate OK [17:05:14]wFMCommunicate request_size=4 [17:05:14]MH_SAM_APDU [17:05:14]CAPDU: 80 15 03 00 [17:05:14]Write to MH i2c: E2 08 00 74 00 80 15 03 00 00 00 00 00 F5 [17:05:14]Write i2c OK [17:05:14]MH_I2C_Read... [17:05:14]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [17:05:14]Read from MH i2c: E2 [17:05:14]MH_I2C_Read... [17:05:14]Read from MH i2c: E2 40 00 [17:05:14]MH_I2C_Read... [17:05:14]Read from MH i2c: E2 40 00 74 00 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 E9 F1 02 00 0E 04 04 00 20 02 00 00 12 04 04 00 CF 00 00 00 35 04 06 00 81 F2 DF 58 D4 97 90 00 CD [17:05:14]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 E9 F1 02 00 0E 04 04 00 20 02 00 00 12 04 04 00 CF 00 00 00 35 04 06 00 81 F2 DF 58 D4 97 90 00 [17:05:14]wFMCommunicate OK [17:05:14]SAM_PROTO_ProcessDocument answer len = 59 [17:05:14]SAM_PROTO_ProcessDocument done [17:05:14]SetTLVBufToDocument [17:05:14]Processing tag 1209 (04B9) [17:05:14]Malloc new data [17:05:14]Processing tag 1041 (0411) [17:05:14]Processing tag 1040 (0410) [17:05:14]Malloc new data [17:05:14]Processing tag 1038 (040E) [17:05:14]Malloc new data [17:05:14]Processing tag 1042 (0412) [17:05:14]Malloc new data [17:05:14]Processing tag 1077 (0435) [17:05:14]Malloc new data [17:05:14]SetTLVBufToDocument err=0 [17:05:14]KKMLoadAndSignReceiptData store KKM data [17:05:14]KKMLoadAndSignReceiptData err=0 [17:05:14]wFMCommunicate request_size=4 [17:05:14]MH_SAM_APDU [17:05:14]CAPDU: 80 11 00 00 [17:05:14]Write to MH i2c: E2 08 00 75 00 80 11 00 00 00 00 00 00 EF [17:05:14]Write i2c OK [17:05:14]MH_I2C_Read... [17:05:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:14]Read from MH i2c: E2 [17:05:14]MH_I2C_Read... [17:05:14]Read from MH i2c: E2 17 00 [17:05:14]MH_I2C_Read... [17:05:14]Read from MH i2c: E2 17 00 75 00 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:05:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:05:14]wFMCommunicate OK [17:05:14]Счет N : (1)32332 ИÐÐ: 02508201610067 Контрольно-КаÑÑовый Чек ПРОДÐЖРТРК (МРК, ГÐК) : 12 Товар: 2710124130 Ðи-92-К-5 0.010 * 66.90 = 0.67 ÐДС 12% ÐСП 1% > о реализуемом товаре ОКРУГЛЕÐИЕ: -0.67 ИТОГО: 0.00 ВнеÑено: 400.00 СДÐЧÐ: 400.00 ÐСП 1% : 0.01 ÐДС 12% : 0.07 Ðаличными: 0.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 170 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 СÐО: Общий режим Чек 207 29.10.2024 17:05 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 193001 ФПД: 142880129209495 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T170513&type=1&operation_type=1&fn_number=0000000000871754&fd_number=193001&fm=142880129209495&tin=02508201610067®Number=0000000000091776&sum=0 [17:05:14]StoreToDocumentArchive [17:05:14]shift 544 fd 193001 [17:05:14]save to /storage/0544/doc_00193001 [17:05:14]save last doc name /storage/0544/doc_00193001 to /storage/kkm_last_doc_name [17:05:14]save OK [17:05:14]Clear old archive folders... [17:05:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:05:14]tlvbuf is 00AA8810 [17:05:14]SAM_PROTO_ClearQueue [17:05:14]wFMCommunicate request_size=4 [17:05:14]MH_SAM_APDU [17:05:14]CAPDU: 80 09 00 00 [17:05:14]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [17:05:14]Write i2c OK [17:05:14]MH_I2C_Read... [17:05:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:05:14]Read from MH i2c: E2 [17:05:14]MH_I2C_Read... [17:05:14]Read from MH i2c: E2 03 00 [17:05:14]MH_I2C_Read... [17:05:14]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [17:05:14]RAPDU: 90 00 [17:05:14]wFMCommunicate OK [17:05:14]SAM_PROTO_ClearQueue done [17:05:14]KKMCreateOFDPacket [17:05:14]OFDProtocolAddRootSTLVToBuf [17:05:14]FM_MakeSignedData [17:05:14]FM_MakeSignedData [17:05:14]SAM_PROTO_SignData [17:05:14]wFMCommunicate request_size=4 [17:05:14]MH_SAM_APDU [17:05:14]CAPDU: 80 0D 01 02 [17:05:14]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [17:05:14]Write i2c OK [17:05:14]MH_I2C_Read... [17:05:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:05:14]Read from MH i2c: E2 [17:05:14]MH_I2C_Read... [17:05:14]Read from MH i2c: E2 03 00 [17:05:14]MH_I2C_Read... [17:05:14]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [17:05:14]RAPDU: 90 00 [17:05:14]wFMCommunicate OK [17:05:14]wFMCommunicate request_size=255 [17:05:14]MH_SAM_APDU [17:05:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 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 CF 00 00 00 F4 03 04 00 C9 15 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 81 [17:05:14]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 CF 00 00 00 F4 03 04 00 C9 15 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 81 00 00 44 [17:05:14]Write i2c OK [17:05:14]MH_I2C_Read... [17:05:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:14]Read from MH i2c: E2 [17:05:14]MH_I2C_Read... [17:05:14]Read from MH i2c: E2 03 00 [17:05:14]MH_I2C_Read... [17:05:14]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [17:05:14]RAPDU: 90 00 [17:05:14]wFMCommunicate OK [17:05:14]wFMCommunicate request_size=10 [17:05:14]MH_SAM_APDU [17:05:14]CAPDU: 80 0D 02 02 05 F2 DF 58 D4 97 [17:05:14]Write to MH i2c: E2 0D 00 79 00 80 0D 02 02 05 00 F2 DF 58 D4 97 00 00 91 [17:05:14]Write i2c OK [17:05:14]MH_I2C_Read... [17:05:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:14]Read from MH i2c: E2 [17:05:14]MH_I2C_Read... [17:05:14]Read from MH i2c: E2 03 00 [17:05:14]MH_I2C_Read... [17:05:14]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [17:05:14]RAPDU: 90 00 [17:05:14]wFMCommunicate OK [17:05:14]wFMCommunicate request_size=4 [17:05:14]MH_SAM_APDU [17:05:14]CAPDU: 80 0D 03 02 [17:05:14]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [17:05:14]Write i2c OK [17:05:14]MH_I2C_Read... [17:05:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:05:14]Read from MH i2c: E2 [17:05:14]MH_I2C_Read... [17:05:14]Read from MH i2c: E2 0B 00 [17:05:14]MH_I2C_Read... [17:05:14]Read from MH i2c: E2 0B 00 7A 00 00 27 C3 7A C0 9F C0 66 4B 90 00 2A [17:05:14]RAPDU: 27 C3 7A C0 9F C0 66 4B 90 00 [17:05:14]wFMCommunicate OK [17:05:14]SAM_PROTO_SignData done [17:05:14]FM_MakeSignedData done [17:05:14]CreateOFDProtocolMessage [17:05:14]wFMCommunicate request_size=4 [17:05:14]MH_SAM_APDU [17:05:14]CAPDU: 80 11 00 00 [17:05:14]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [17:05:14]Write i2c OK [17:05:14]MH_I2C_Read... [17:05:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:15]Read from MH i2c: E2 [17:05:15]MH_I2C_Read... [17:05:15]Read from MH i2c: E2 17 00 [17:05:15]MH_I2C_Read... [17:05:15]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 48 [17:05:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:05:15]wFMCommunicate OK [17:05:15]CreateOFDProtocolMessage done [17:05:15]OFDSenderStorePacket 193001 [17:05:15]StoreOFDPacket docnum=193001 [17:05: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 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 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 CF 00 00 00 F4 03 04 00 C9 15 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 81 F2 DF 58 D4 97 27 C3 7A C0 9F C0 66 4B [17:05:15]CheckFolder [17:05:15]dirname=/storage/ofd_packets [17:05:15]CheckFolder done [17:05:15]ProducePacketName [17:05:15]name=ofd_packets/00193001 [17:05:15]NVStorageSaveData ofd_packets/00193001 [17:05:15]File name is /storage/ofd_packets/00193001 [17:05:15]Write 301 bytes [17:05:15]NVStorageSaveData done [17:05:15]OFDSenderStorePacket done [17:05:15]KKMCreateOFDPacket done [17:05:15]NVStorageSaveData kkm_last_timestamp [17:05:15]File name is /storage/kkm_last_timestamp [17:05:15]Write 4 bytes [17:05:15]NVStorageSaveData done [17:05:15]ExternCall_PrintAddStr [17:05:15]wPrintStart [17:05:15]Write to MH i2c: 01 00 00 7C 00 7C [17:05:15]Write i2c OK [17:05:15]MH_I2C_Read... [17:05:15]Read from MH i2c: 01 [17:05:15]MH_I2C_Read... [17:05:15]Read from MH i2c: 01 07 00 [17:05:15]MH_I2C_Read... [17:05:15]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [17:05:15]RasterBufferAndPrint [17:05:15]line Счет N : (1)32332 [17:05:15]line ИÐÐ: 02508201610067 [17:05:15]line Контрольно-КаÑÑовый Чек [17:05:15]line ПРОДÐЖР[17:05:15]line ТРК (МРК, ГÐК) : 12 [17:05:15]line Товар: 2710124130 [17:05:15]line Ðи-92-К-5 [17:05:15]line 0.010 * 66.90 [17:05:15]line = 0.67 [17:05:15]line ÐДС 12% ÐСП 1% [17:05:15]line > о реализуемом товаре [17:05:15]line ОКРУГЛЕÐИЕ: -0.67 [17:05:15]line ИТОГО: 0.00 [17:05:15]line ВнеÑено: 400.00 [17:05:15]line СДÐЧÐ: 400.00 [17:05:15]line ÐСП 1% : 0.01 [17:05:15]line ÐДС 12% : 0.07 [17:05:15]line Ðаличными: 0.00 [17:05:15]line Безнал.: 0.00 [17:05:15]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [17:05:15]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [17:05:15]line СÐО: Общий режим [17:05:15]line Чек 207 29.10.2024 17:05 [17:05:15]line Смена: 544 ФФД: 1.0 [17:05:15]line ЗÐМ: 0300000110 [17:05:15]line РÐМ: 0000000000091776 [17:05:15]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [17:05:15]line ФМ: 0000000000871754 [17:05:15]line ФД: 193001 [17:05:15]line ФПД: 142880129209495 [17:05:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T170513&type=1&operation_type=1&fn_number=0000000000871754&fd_number=193001&fm=142880129209495&tin=02508201610067®Number=0000000000091776&sum=0 [17:05:15]written 0, free lines is 4095 [17:05:15]Write to MH i2c: 01 00 00 A7 00 A7 [17:05:15]Write i2c OK [17:05:15]MH_I2C_Read... [17:05:15]Read from MH i2c: 01 [17:05:15]MH_I2C_Read... [17:05:15]Read from MH i2c: 01 07 00 [17:05:15]MH_I2C_Read... [17:05:15]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 A7 0C 61 [17:05:15]RasterBufferAndPrint [17:05:15]line [17:05:15]line [17:05:15]line [17:05:15]line [17:05:15]line [17:05:15]written 0, free lines is 3245 [17:05:15]MH_Cut [17:05:15]Write to MH i2c: D1 01 00 AE 00 01 80 [17:05:15]Write i2c OK [17:05:15]MH_I2C_Read... [17:05:15]Read from MH i2c: D1 [17:05:15]MH_I2C_Read... [17:05:15]Read from MH i2c: D1 01 00 [17:05:15]MH_I2C_Read... [17:05:15]Read from MH i2c: D1 01 00 AE 00 00 7F [17:05:15]Write to MH i2c: 01 00 00 AF 00 AF [17:05:15]Write i2c OK [17:05:15]MH_I2C_Read... [17:05:15]ConnectInit Can't take IP for lk.salyk.kg [17:05:15]CommunicateWithHost connect error [17:05:15]CommunicateWithHost err = -1 [17:05:15]OFD Sender: Server communicate error [17:05:16]OFD Sender: Processing packet 192922 [packets to send 154, broken 74] [17:05:16]ProducePacketName [17:05:16]name=ofd_packets/00192922 [17:05:16]OFD Sender: To server: ‡•öpG, [17:05:16]CommunicateWithHost lk.salyk.kg:30040 [17:05:16]ConnectInit lk.salyk.kg [17:05:16]*** Cut start [17:05:16]*** Partial cut [17:05:16]*** CUTSNS_PIN = 1 [17:05:16]*** CUTSNS_PIN = 0 [17:05:16]*** Brake cut motor [17:05:16]ConnectInit Can't connect to host [17:05:17]Read from MH i2c: 01 [17:05:17]MH_I2C_Read... [17:05:17]*** Stop cut motor [17:05:17]*** Cut end [17:05:17]Read from MH i2c: 01 07 00 [17:05:17]MH_I2C_Read... [17:05:17]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [17:05:17]process_action close_receipt done [17:05:17]requested_data is exist [17:05:17]produce_requested_data [17:05:17]requested_item fm.sn is exist - process it [17:05:17]wFMCommunicate request_size=4 [17:05:17]MH_SAM_APDU [17:05:17]CAPDU: 80 11 00 00 [17:05:17]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [17:05:17]Write i2c OK [17:05:17]MH_I2C_Read... [17:05:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:17]Read from MH i2c: E2 [17:05:17]MH_I2C_Read... [17:05:17]Read from MH i2c: E2 17 00 [17:05:17]MH_I2C_Read... [17:05:17]Read from MH i2c: E2 17 00 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7D [17:05:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:05:17]wFMCommunicate OK [17:05:17]requested_item fd.num is exist - process it [17:05:17]SAM_PROTO_GetFieldsCounters [17:05:17]wFMCommunicate request_size=4 [17:05:17]MH_SAM_APDU [17:05:17]CAPDU: 80 13 00 00 [17:05:17]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [17:05:17]Write i2c OK [17:05:17]MH_I2C_Read... [17:05:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:05:17]Read from MH i2c: E2 [17:05:17]MH_I2C_Read... [17:05:17]Read from MH i2c: E2 62 00 [17:05:17]MH_I2C_Read... [17:05:17]Read from MH i2c: E2 62 00 B1 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 F1 02 00 0E 04 04 00 20 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 BE [17:05:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 F1 02 00 0E 04 04 00 20 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 [17:05:17]wFMCommunicate OK [17:05:17]SAM_PROTO_GetFieldsCounters done [17:05:17]requested_item shift.num is exist - process it [17:05:17]requested_item shift.opened is exist - process it [17:05:17]req_shift_opened [17:05:17]FM_GetShiftState [17:05:17]SAM_PROTO_GetShiftState [17:05:17]wFMCommunicate request_size=4 [17:05:17]MH_SAM_APDU [17:05:17]CAPDU: 80 13 01 00 [17:05:17]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [17:05:17]Write i2c OK [17:05:17]MH_I2C_Read... [17:05:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:17]Read from MH i2c: E2 [17:05:17]MH_I2C_Read... [17:05:17]Read from MH i2c: E2 0E 00 [17:05:17]MH_I2C_Read... [17:05:17]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 35 [17:05:17]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [17:05:17]wFMCommunicate OK [17:05:17]SAM_PROTO_GetShiftState done [17:05:17]FM_GetShiftState done [17:05:17]req_shift_opened done [17:05:17]requested_item shift.open_date is exist - process it [17:05:17]req_shift_open_date [17:05:17]req_shift_open_date done [17:05:17]produce_requested_data done [17:05:17]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":193001,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [17:05:17]process_action_free close_receipt [17:05:17]json_value_free [17:05:17]json_value_free done [17:05:17]process_json_proto returns [17:05:17]Send response to host [17:05:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":193001,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [17:05:17]free response buf [17:05:17]execute_script done [17:05:17]execute_script returns [17:05:17]free content buf [17:05:17]Sock 7.Close socket [17:05:17]Sock 7.Thread stoped [17:05:21]ConnectInit Can't take IP for lk.salyk.kg [17:05:21]CommunicateWithHost connect error [17:05:21]CommunicateWithHost err = -1 [17:05:21]OFD Sender: Server communicate error [17:05:26]OFD Sender: Processing packet 192922 [packets to send 154, broken 74] [17:05:26]ProducePacketName [17:05:26]name=ofd_packets/00192922 [17:05:26]OFD Sender: To server: ‡•öpG, [17:05:26]CommunicateWithHost lk.salyk.kg:30040 [17:05:26]ConnectInit lk.salyk.kg [17:05:26]Connected sock=7 [17:05: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 11 51 07 01 8F 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 80 00 00 00 F4 03 04 00 29 EE 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 4E 17 3B 9F 45 5B 16 23 B6 EE E6 5C 60 46 [17:05: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 EC 87 47 00 DB 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9A F1 02 00 F4 03 04 00 94 BA 20 67 B6 04 01 00 00 16 82 EE F3 C2 BB 21 33 [17:05:26]CommunicateWithHost err = 0 [17:05:26]CheckOFDResponse [17:05:26]1017 (14) - 77093643461234 [17:05:26]1041 (16) - 0000000000871754 [17:05:26]1040 (4) - 192922 [17:05:26]1012 (4) - 29.10.2024 10:36 [17:05:26]1206 (1) - 0 [17:05:26]OFD Sender: Remove packet 192922 [17:05:26]ProducePacketName [17:05:26]name=ofd_packets/00192922 [17:05:26]NVStorageDeleteData [17:05:26]OFD Sender: Processing packet 192923 [packets to send 153, broken 74] [17:05:26]ProducePacketName [17:05:26]name=ofd_packets/00192923 [17:05:26]OFD Sender: To server: ‡•öpG, [17:05:26]CommunicateWithHost lk.salyk.kg:30040 [17:05:26]ConnectInit lk.salyk.kg [17:05:27]Connected sock=7 [17:05: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 DE 98 07 01 1C 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 A8 61 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 81 00 00 00 F4 03 04 00 94 EE 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 EF F9 D9 53 F2 44 10 AE EB A4 7A 04 F5 86 [17:05: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 7F C3 47 00 1B 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 9B F1 02 00 F4 03 04 00 95 BA 20 67 B6 04 01 00 00 00 71 73 43 C6 21 7C FF [17:05:27]CommunicateWithHost err = 0 [17:05:27]CheckOFDResponse [17:05:27]1017 (14) - 77093643461234 [17:05:27]1041 (16) - 0000000000871754 [17:05:27]1040 (4) - 192923 [17:05:27]1012 (4) - 29.10.2024 10:36 [17:05:27]1206 (1) - 0 [17:05:27]OFD Sender: Remove packet 192923 [17:05:27]ProducePacketName [17:05:27]name=ofd_packets/00192923 [17:05:27]NVStorageDeleteData [17:05:27]OFD Sender: Processing packet 192924 [packets to send 152, broken 74] [17:05:27]ProducePacketName [17:05:27]name=ofd_packets/00192924 [17:05:27]OFD Sender: To server: ‡•öpG, [17:05:27]CommunicateWithHost lk.salyk.kg:30040 [17:05:27]ConnectInit lk.salyk.kg [17:05:27]Connected sock=7 [17:05: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 2F 6C 07 01 50 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 82 00 00 00 F4 03 04 00 CD EE 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 CC 75 E1 10 6A 3B 3A 91 0D 65 B2 2C E4 26 [17:05: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 6F 07 47 00 76 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 9C F1 02 00 F4 03 04 00 96 BA 20 67 B6 04 01 00 00 E1 09 98 D6 18 6D 31 B9 [17:05:28]CommunicateWithHost err = 0 [17:05:28]CheckOFDResponse [17:05:28]1017 (14) - 77093643461234 [17:05:28]1041 (16) - 0000000000871754 [17:05:28]1040 (4) - 192924 [17:05:28]1012 (4) - 29.10.2024 10:36 [17:05:28]1206 (1) - 0 [17:05:28]OFD Sender: Remove packet 192924 [17:05:28]ProducePacketName [17:05:28]name=ofd_packets/00192924 [17:05:28]NVStorageDeleteData [17:05:28]OFD Sender: Processing packet 192925 [packets to send 151, broken 74] [17:05:28]ProducePacketName [17:05:28]name=ofd_packets/00192925 [17:05:28]OFD Sender: To server: ‡•öpG, [17:05:28]CommunicateWithHost lk.salyk.kg:30040 [17:05:28]ConnectInit lk.salyk.kg [17:05:28]Connected sock=7 [17:05: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 58 FA 07 01 3D 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 DB EE 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 C9 B9 C1 E2 03 EC D4 DF 81 7C 23 B2 75 55 [17:05: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 F6 4C 47 00 A3 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 9D F1 02 00 F4 03 04 00 97 BA 20 67 B6 04 01 00 00 69 33 82 B6 2F E4 4B E0 [17:05:28]CommunicateWithHost err = 0 [17:05:28]CheckOFDResponse [17:05:28]1017 (14) - 77093643461234 [17:05:28]1041 (16) - 0000000000871754 [17:05:28]1040 (4) - 192925 [17:05:28]1012 (4) - 29.10.2024 10:36 [17:05:28]1206 (1) - 0 [17:05:28]OFD Sender: Remove packet 192925 [17:05:28]ProducePacketName [17:05:28]name=ofd_packets/00192925 [17:05:28]NVStorageDeleteData [17:05:29]OFD Sender: Processing packet 192926 [packets to send 150, broken 74] [17:05:29]ProducePacketName [17:05:29]name=ofd_packets/00192926 [17:05:29]OFD Sender: To server: ‡•öpG, [17:05:29]CommunicateWithHost lk.salyk.kg:30040 [17:05:29]ConnectInit lk.salyk.kg [17:05:29]Connected sock=7 [17:05: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 3C 2F 07 01 63 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 84 00 00 00 F4 03 04 00 EB EE 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 1C 56 E9 25 A1 DA 38 2E 98 CE BE 01 B6 D4 [17:05: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 FF 85 47 00 69 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9E F1 02 00 F4 03 04 00 98 BA 20 67 B6 04 01 00 00 75 68 2A 24 52 01 C4 82 [17:05:29]CommunicateWithHost err = 0 [17:05:29]CheckOFDResponse [17:05:29]1017 (14) - 77093643461234 [17:05:29]1041 (16) - 0000000000871754 [17:05:29]1040 (4) - 192926 [17:05:29]1012 (4) - 29.10.2024 10:36 [17:05:29]1206 (1) - 0 [17:05:29]OFD Sender: Remove packet 192926 [17:05:29]ProducePacketName [17:05:29]name=ofd_packets/00192926 [17:05:29]NVStorageDeleteData [17:05:30]OFD Sender: Processing packet 192927 [packets to send 149, broken 74] [17:05:30]ProducePacketName [17:05:30]name=ofd_packets/00192927 [17:05:30]OFD Sender: To server: ‡•öpG, [17:05:30]CommunicateWithHost lk.salyk.kg:30040 [17:05:30]ConnectInit lk.salyk.kg [17:05:30]Connected sock=7 [17:05: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 0E BE 07 01 EB 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 BB EF 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 1A 9D F1 E9 D0 4C C1 F2 79 87 6B 86 51 33 [17:05: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 8A 72 47 00 8B 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9F F1 02 00 F4 03 04 00 98 BA 20 67 B6 04 01 00 00 F4 EA 8F 41 60 11 EF 80 [17:05:30]CommunicateWithHost err = 0 [17:05:30]CheckOFDResponse [17:05:30]1017 (14) - 77093643461234 [17:05:30]1041 (16) - 0000000000871754 [17:05:30]1040 (4) - 192927 [17:05:30]1012 (4) - 29.10.2024 10:36 [17:05:30]1206 (1) - 0 [17:05:30]OFD Sender: Remove packet 192927 [17:05:30]ProducePacketName [17:05:30]name=ofd_packets/00192927 [17:05:30]NVStorageDeleteData [17:05:31]OFD Sender: Processing packet 192928 [packets to send 148, broken 74] [17:05:31]ProducePacketName [17:05:31]name=ofd_packets/00192928 [17:05:31]OFD Sender: To server: ‡•öpG, [17:05:31]CommunicateWithHost lk.salyk.kg:30040 [17:05:31]ConnectInit lk.salyk.kg [17:05:31]Connected sock=7 [17:05: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 40 B2 04 01 80 5F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 F4 F0 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 2E A0 08 C2 29 C9 93 60 2F 67 49 CD D5 2E [17:05: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 13 39 47 00 3B 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 A0 F1 02 00 F4 03 04 00 99 BA 20 67 B6 04 01 00 00 A4 B6 BF 84 87 67 C1 AE [17:05:31]CommunicateWithHost err = 0 [17:05:31]CheckOFDResponse [17:05:31]1017 (14) - 77093643461234 [17:05:31]1041 (16) - 0000000000871754 [17:05:31]1040 (4) - 192928 [17:05:31]1012 (4) - 29.10.2024 10:36 [17:05:31]1206 (1) - 0 [17:05:31]OFD Sender: Remove packet 192928 [17:05:31]ProducePacketName [17:05:31]name=ofd_packets/00192928 [17:05:31]NVStorageDeleteData [17:05:31]OFD Sender: Processing packet 192929 [packets to send 147, broken 74] [17:05:31]ProducePacketName [17:05:31]name=ofd_packets/00192929 [17:05:31]OFD Sender: To server: ‡•öpG, [17:05:31]CommunicateWithHost lk.salyk.kg:30040 [17:05:31]ConnectInit lk.salyk.kg [17:05:32]Connected sock=7 [17:05:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D1 3B 07 01 7D BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 10 F1 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 B7 02 77 2E D0 30 56 11 67 0C B6 58 30 F1 [17:05:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 22 1A 47 00 BA 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 A1 F1 02 00 F4 03 04 00 9A BA 20 67 B6 04 01 00 00 F8 05 07 AE 9E 90 5F 11 [17:05:32]CommunicateWithHost err = 0 [17:05:32]CheckOFDResponse [17:05:32]1017 (14) - 77093643461234 [17:05:32]1041 (16) - 0000000000871754 [17:05:32]1040 (4) - 192929 [17:05:32]1012 (4) - 29.10.2024 10:36 [17:05:32]1206 (1) - 0 [17:05:32]OFD Sender: Remove packet 192929 [17:05:32]ProducePacketName [17:05:32]name=ofd_packets/00192929 [17:05:32]NVStorageDeleteData [17:05:32]OFD Sender: Processing packet 192930 [packets to send 146, broken 74] [17:05:32]ProducePacketName [17:05:32]name=ofd_packets/00192930 [17:05:32]OFD Sender: To server: ‡•öpG, [17:05:32]CommunicateWithHost lk.salyk.kg:30040 [17:05:32]ConnectInit lk.salyk.kg [17:05:32]Connected sock=9 [17:05:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 76 06 04 01 83 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 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 88 00 00 00 F4 03 04 00 6A F1 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 72 D4 68 B4 CF EA 63 17 03 32 99 12 69 69 [17:05: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 AF 9D 47 00 FA 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 A2 F1 02 00 F4 03 04 00 9B BA 20 67 B6 04 01 00 00 64 44 0E 3A D9 FB 9D 57 [17:05:33]CommunicateWithHost err = 0 [17:05:33]CheckOFDResponse [17:05:33]1017 (14) - 77093643461234 [17:05:33]1041 (16) - 0000000000871754 [17:05:33]1040 (4) - 192930 [17:05:33]1012 (4) - 29.10.2024 10:36 [17:05:33]1206 (1) - 0 [17:05:33]OFD Sender: Remove packet 192930 [17:05:33]ProducePacketName [17:05:33]name=ofd_packets/00192930 [17:05:33]NVStorageDeleteData [17:05:33]OFD Sender: Processing packet 192931 [packets to send 145, broken 74] [17:05:33]ProducePacketName [17:05:33]name=ofd_packets/00192931 [17:05:33]OFD Sender: To server: ‡•öpG, [17:05:33]CommunicateWithHost lk.salyk.kg:30040 [17:05:33]ConnectInit lk.salyk.kg [17:05:33]Connected sock=7 [17:05: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 80 71 04 01 C9 E0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 05 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 8D F1 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 FE 90 2E 50 43 AF 0C C3 9B 9C D2 26 5F 5B [17:05: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 81 3B 47 00 A6 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 A3 F1 02 00 F4 03 04 00 9C BA 20 67 B6 04 01 00 00 F9 14 64 A6 20 D4 2A B5 [17:05:33]CommunicateWithHost err = 0 [17:05:33]CheckOFDResponse [17:05:33]1017 (14) - 77093643461234 [17:05:33]1041 (16) - 0000000000871754 [17:05:33]1040 (4) - 192931 [17:05:33]1012 (4) - 29.10.2024 10:36 [17:05:33]1206 (1) - 0 [17:05:33]OFD Sender: Remove packet 192931 [17:05:33]ProducePacketName [17:05:33]name=ofd_packets/00192931 [17:05:33]NVStorageDeleteData [17:05:34]OFD Sender: Processing packet 192932 [packets to send 144, broken 74] [17:05:34]ProducePacketName [17:05:34]name=ofd_packets/00192932 [17:05:34]OFD Sender: To server: ‡•öpG, [17:05:34]CommunicateWithHost lk.salyk.kg:30040 [17:05:34]ConnectInit lk.salyk.kg [17:05:34]Connected sock=7 [17: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 D3 21 07 01 8D 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 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 8A 00 00 00 F4 03 04 00 C7 F1 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 92 6D B1 04 28 7D AA FA 69 1F CA DA 02 1C [17: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 EE 4F 47 00 9D 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 A4 F1 02 00 F4 03 04 00 9C BA 20 67 B6 04 01 00 00 AD 20 7D C4 CF 18 AC 5A [17:05:34]CommunicateWithHost err = 0 [17:05:34]CheckOFDResponse [17:05:34]1017 (14) - 77093643461234 [17:05:34]1041 (16) - 0000000000871754 [17:05:34]1040 (4) - 192932 [17:05:34]1012 (4) - 29.10.2024 10:36 [17:05:34]1206 (1) - 0 [17:05:34]OFD Sender: Remove packet 192932 [17:05:34]ProducePacketName [17:05:34]name=ofd_packets/00192932 [17:05:34]NVStorageDeleteData [17:05:35]OFD Sender: Processing packet 192933 [packets to send 143, broken 74] [17:05:35]ProducePacketName [17:05:35]name=ofd_packets/00192933 [17:05:35]OFD Sender: To server: ‡•öpG, [17:05:35]CommunicateWithHost lk.salyk.kg:30040 [17:05:35]ConnectInit lk.salyk.kg [17:05:35]Connected sock=7 [17:05: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 0C 01 00 00 B7 FE 04 01 27 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 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 51 F2 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 DE EE C9 9F AD FC 4E A8 88 65 4A 38 BB 40 [17:05: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 E1 1A 47 00 00 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 A5 F1 02 00 F4 03 04 00 9D BA 20 67 B6 04 01 00 00 58 5C E5 80 04 6F 94 93 [17:05:35]CommunicateWithHost err = 0 [17:05:35]CheckOFDResponse [17:05:35]1017 (14) - 77093643461234 [17:05:35]1041 (16) - 0000000000871754 [17:05:35]1040 (4) - 192933 [17:05:35]1012 (4) - 29.10.2024 10:36 [17:05:35]1206 (1) - 0 [17:05:35]OFD Sender: Remove packet 192933 [17:05:35]ProducePacketName [17:05:35]name=ofd_packets/00192933 [17:05:35]NVStorageDeleteData [17:05:36]OFD Sender: Processing packet 192934 [packets to send 142, broken 74] [17:05:36]ProducePacketName [17:05:36]name=ofd_packets/00192934 [17:05:36]OFD Sender: To server: ‡•öpG, [17:05:36]CommunicateWithHost lk.salyk.kg:30040 [17:05:36]ConnectInit lk.salyk.kg [17:05:36]Connected sock=7 [17:05: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 7A B8 07 01 F2 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 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 8C 00 00 00 F4 03 04 00 B1 F2 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 F6 59 85 00 AB BD DE 39 41 3F 8D DB 12 3C [17:05: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 21 45 47 00 45 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A6 F1 02 00 F4 03 04 00 9E BA 20 67 B6 04 01 00 00 5F 08 17 30 85 A9 DC 55 [17:05:36]CommunicateWithHost err = 0 [17:05:36]CheckOFDResponse [17:05:36]1017 (14) - 77093643461234 [17:05:36]1041 (16) - 0000000000871754 [17:05:36]1040 (4) - 192934 [17:05:36]1012 (4) - 29.10.2024 10:36 [17:05:36]1206 (1) - 0 [17:05:36]OFD Sender: Remove packet 192934 [17:05:36]ProducePacketName [17:05:36]name=ofd_packets/00192934 [17:05:36]NVStorageDeleteData [17:05:36]OFD Sender: Processing packet 192935 [packets to send 141, broken 74] [17:05:36]ProducePacketName [17:05:36]name=ofd_packets/00192935 [17:05:36]OFD Sender: To server: ‡•öpG, [17:05:36]CommunicateWithHost lk.salyk.kg:30040 [17:05:36]ConnectInit lk.salyk.kg [17:05:36]Connected sock=7 [17:05: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 35 B5 07 01 79 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 58 F3 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 C4 AC 46 32 B3 2F E0 07 CC DA 3B B2 F1 75 [17:05: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 D8 D5 47 00 5F 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 A7 F1 02 00 F4 03 04 00 9F BA 20 67 B6 04 01 00 00 65 D2 33 B1 A6 F7 38 78 [17:05:37]CommunicateWithHost err = 0 [17:05:37]CheckOFDResponse [17:05:37]1017 (14) - 77093643461234 [17:05:37]1041 (16) - 0000000000871754 [17:05:37]1040 (4) - 192935 [17:05:37]1012 (4) - 29.10.2024 10:36 [17:05:37]1206 (1) - 0 [17:05:37]OFD Sender: Remove packet 192935 [17:05:37]ProducePacketName [17:05:37]name=ofd_packets/00192935 [17:05:37]NVStorageDeleteData [17:05:37]OFD Sender: Processing packet 192936 [packets to send 140, broken 74] [17:05:37]ProducePacketName [17:05:37]name=ofd_packets/00192936 [17:05:37]OFD Sender: To server: ‡•öpG, [17:05:37]CommunicateWithHost lk.salyk.kg:30040 [17:05:37]ConnectInit lk.salyk.kg [17:05:37]Connected sock=7 [17:05:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 6E E4 04 01 7F A4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 8E 00 00 00 F4 03 04 00 5D F3 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 71 6F 0A 3E F8 B3 E7 D2 45 15 3D 78 4E 98 [17:05:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 32 C9 47 00 2D 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 A8 F1 02 00 F4 03 04 00 A0 BA 20 67 B6 04 01 00 00 59 0B 01 3D 36 63 44 56 [17:05:38]CommunicateWithHost err = 0 [17:05:38]CheckOFDResponse [17:05:38]1017 (14) - 77093643461234 [17:05:38]1041 (16) - 0000000000871754 [17:05:38]1040 (4) - 192936 [17:05:38]1012 (4) - 29.10.2024 10:36 [17:05:38]1206 (1) - 0 [17:05:38]OFD Sender: Remove packet 192936 [17:05:38]ProducePacketName [17:05:38]name=ofd_packets/00192936 [17:05:38]NVStorageDeleteData [17:05:38]OFD Sender: Processing packet 192937 [packets to send 139, broken 74] [17:05:38]ProducePacketName [17:05:38]name=ofd_packets/00192937 [17:05:38]OFD Sender: To server: ‡•öpG, [17:05:38]CommunicateWithHost lk.salyk.kg:30040 [17:05:38]ConnectInit lk.salyk.kg [17:05:38]Connected sock=7 [17:05:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 18 61 07 01 00 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 FE 01 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 01 00 00 00 00 07 04 06 00 48 0D 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 0D F5 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 68 21 9F B1 61 0B 24 D9 D2 5F A6 B3 94 72 [17:05:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 EB BC 47 00 59 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 A9 F1 02 00 F4 03 04 00 A1 BA 20 67 B6 04 01 00 00 BD 7B 3D B9 D9 2A F5 B2 [17:05:38]CommunicateWithHost err = 0 [17:05:38]CheckOFDResponse [17:05:38]1017 (14) - 77093643461234 [17:05:38]1041 (16) - 0000000000871754 [17:05:38]1040 (4) - 192937 [17:05:38]1012 (4) - 29.10.2024 10:36 [17:05:38]1206 (1) - 0 [17:05:38]OFD Sender: Remove packet 192937 [17:05:38]ProducePacketName [17:05:38]name=ofd_packets/00192937 [17:05:38]NVStorageDeleteData [17:05:39]OFD Sender: Processing packet 192938 [packets to send 138, broken 74] [17:05:39]ProducePacketName [17:05:39]name=ofd_packets/00192938 [17:05:39]OFD Sender: To server: ‡•öpG, [17:05:39]CommunicateWithHost lk.salyk.kg:30040 [17:05:39]ConnectInit lk.salyk.kg [17:05:39]Connected sock=7 [17:05:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0E 3A 07 01 98 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 12 41 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 93 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 06 00 00 00 00 07 04 06 00 D8 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 5C F5 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 ED 91 F9 90 C9 94 32 20 09 FF 2D 2C D7 DE [17:05:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D5 C9 47 00 F7 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 AA F1 02 00 F4 03 04 00 A1 BA 20 67 B6 04 01 00 00 16 AB 5D E9 01 BD 8C 67 [17:05:39]CommunicateWithHost err = 0 [17:05:39]CheckOFDResponse [17:05:39]1017 (14) - 77093643461234 [17:05:39]1041 (16) - 0000000000871754 [17:05:39]1040 (4) - 192938 [17:05:39]1012 (4) - 29.10.2024 10:36 [17:05:39]1206 (1) - 0 [17:05:39]OFD Sender: Remove packet 192938 [17:05:39]ProducePacketName [17:05:39]name=ofd_packets/00192938 [17:05:39]NVStorageDeleteData [17:05:40]OFD Sender: Processing packet 192939 [packets to send 137, broken 74] [17:05:40]ProducePacketName [17:05:40]name=ofd_packets/00192939 [17:05:40]OFD Sender: To server: ‡•öpG, [17:05:40]CommunicateWithHost lk.salyk.kg:30040 [17:05:40]ConnectInit lk.salyk.kg [17:05:40]Connected sock=7 [17: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 0F 01 00 00 A8 84 07 01 F5 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 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 91 00 00 00 F4 03 04 00 89 F5 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 0A 68 4D C4 AB 8E CB 93 8D 9F DC 18 46 94 [17: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 28 19 47 00 F2 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AB F1 02 00 F4 03 04 00 A2 BA 20 67 B6 04 01 00 00 9E E8 D0 47 02 1E BF D7 [17:05:40]CommunicateWithHost err = 0 [17:05:40]CheckOFDResponse [17:05:40]1017 (14) - 77093643461234 [17:05:40]1041 (16) - 0000000000871754 [17:05:40]1040 (4) - 192939 [17:05:40]1012 (4) - 29.10.2024 10:36 [17:05:40]1206 (1) - 0 [17:05:40]OFD Sender: Remove packet 192939 [17:05:40]ProducePacketName [17:05:40]name=ofd_packets/00192939 [17:05:40]NVStorageDeleteData [17:05:41]OFD Sender: Processing packet 192940 [packets to send 136, broken 74] [17:05:41]ProducePacketName [17:05:41]name=ofd_packets/00192940 [17:05:41]OFD Sender: To server: ‡•öpG, [17:05:41]CommunicateWithHost lk.salyk.kg:30040 [17:05:41]ConnectInit lk.salyk.kg [17:05:41]Connected sock=7 [17:05: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 10 0F 07 01 45 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 EF F5 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 C6 D8 84 0E 4C 75 13 B3 58 E0 6B 49 16 D1 [17:05: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 C9 D5 47 00 CB 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 AC F1 02 00 F4 03 04 00 A3 BA 20 67 B6 04 01 00 00 25 D9 DD E6 35 5A 11 59 [17:05:41]CommunicateWithHost err = 0 [17:05:41]CheckOFDResponse [17:05:41]1017 (14) - 77093643461234 [17:05:41]1041 (16) - 0000000000871754 [17:05:41]1040 (4) - 192940 [17:05:41]1012 (4) - 29.10.2024 10:36 [17:05:41]1206 (1) - 0 [17:05:41]OFD Sender: Remove packet 192940 [17:05:41]ProducePacketName [17:05:41]name=ofd_packets/00192940 [17:05:41]NVStorageDeleteData [17:05:41]OFD Sender: Processing packet 192941 [packets to send 135, broken 74] [17:05:41]ProducePacketName [17:05:41]name=ofd_packets/00192941 [17:05:41]OFD Sender: To server: ‡•öpG, [17:05:41]CommunicateWithHost lk.salyk.kg:30040 [17:05:41]ConnectInit lk.salyk.kg [17:05:41]Connected sock=7 [17:05: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 D3 6F 07 01 24 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 AF F6 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 5F 08 F4 F7 A3 EB E7 D2 22 E9 4B 12 3B 51 [17:05: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 57 B1 47 00 B1 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AD F1 02 00 F4 03 04 00 A4 BA 20 67 B6 04 01 00 00 59 63 3C 40 AB 4F F9 2B [17:05:42]CommunicateWithHost err = 0 [17:05:42]CheckOFDResponse [17:05:42]1017 (14) - 77093643461234 [17:05:42]1041 (16) - 0000000000871754 [17:05:42]1040 (4) - 192941 [17:05:42]1012 (4) - 29.10.2024 10:36 [17:05:42]1206 (1) - 0 [17:05:42]OFD Sender: Remove packet 192941 [17:05:42]ProducePacketName [17:05:42]name=ofd_packets/00192941 [17:05:42]NVStorageDeleteData [17:05:42]OFD Sender: Processing packet 192942 [packets to send 134, broken 74] [17:05:42]ProducePacketName [17:05:42]name=ofd_packets/00192942 [17:05:42]OFD Sender: To server: ‡•öpG, [17:05:42]CommunicateWithHost lk.salyk.kg:30040 [17:05:42]ConnectInit lk.salyk.kg [17:05:42]Connected sock=7 [17:05: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 61 17 07 01 4C 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 94 00 00 00 F4 03 04 00 4D F7 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 2F 03 EF BD 64 1F 4E 64 FF EA 46 E5 7E 38 [17:05: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 5F C7 47 00 DE 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AE F1 02 00 F4 03 04 00 A5 BA 20 67 B6 04 01 00 00 7D 98 8C 3B 64 45 1B EA [17:05:43]CommunicateWithHost err = 0 [17:05:43]CheckOFDResponse [17:05:43]1017 (14) - 77093643461234 [17:05:43]1041 (16) - 0000000000871754 [17:05:43]1040 (4) - 192942 [17:05:43]1012 (4) - 29.10.2024 10:36 [17:05:43]1206 (1) - 0 [17:05:43]OFD Sender: Remove packet 192942 [17:05:43]ProducePacketName [17:05:43]name=ofd_packets/00192942 [17:05:43]NVStorageDeleteData [17:05:43]OFD Sender: Processing packet 192943 [packets to send 133, broken 74] [17:05:43]ProducePacketName [17:05:43]name=ofd_packets/00192943 [17:05:43]OFD Sender: To server: ‡•öpG, [17:05:43]CommunicateWithHost lk.salyk.kg:30040 [17:05:43]ConnectInit lk.salyk.kg [17:05:43]Connected sock=7 [17:05: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 82 01 04 01 A0 AB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 CE F7 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 A6 B9 6C AD 5F F9 7A 8A B2 8A DE CE FD B0 [17:05: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 CB 1D 47 00 8D 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 AF F1 02 00 F4 03 04 00 A6 BA 20 67 B6 04 01 00 00 78 4B D7 FD 58 C9 D6 9D [17:05:43]CommunicateWithHost err = 0 [17:05:43]CheckOFDResponse [17:05:43]1017 (14) - 77093643461234 [17:05:43]1041 (16) - 0000000000871754 [17:05:43]1040 (4) - 192943 [17:05:43]1012 (4) - 29.10.2024 10:36 [17:05:43]1206 (1) - 0 [17:05:43]OFD Sender: Remove packet 192943 [17:05:43]ProducePacketName [17:05:43]name=ofd_packets/00192943 [17:05:43]NVStorageDeleteData [17:05:44]OFD Sender: Processing packet 192944 [packets to send 132, broken 74] [17:05:44]ProducePacketName [17:05:44]name=ofd_packets/00192944 [17:05:44]OFD Sender: To server: ‡•öpG, [17:05:44]CommunicateWithHost lk.salyk.kg:30040 [17:05:44]ConnectInit lk.salyk.kg [17:05:44]Connected sock=7 [17:05: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 46 2D 07 01 E0 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 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 96 00 00 00 F4 03 04 00 EC F9 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 81 12 22 46 95 29 23 B3 B8 57 F0 36 A4 C7 [17:05: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 72 CB 47 00 FB 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 B0 F1 02 00 F4 03 04 00 A6 BA 20 67 B6 04 01 00 00 BB E3 B7 0D 0F 3E 30 45 [17:05:44]CommunicateWithHost err = 0 [17:05:44]CheckOFDResponse [17:05:44]1017 (14) - 77093643461234 [17:05:44]1041 (16) - 0000000000871754 [17:05:44]1040 (4) - 192944 [17:05:44]1012 (4) - 29.10.2024 10:36 [17:05:44]1206 (1) - 0 [17:05:44]OFD Sender: Remove packet 192944 [17:05:44]ProducePacketName [17:05:44]name=ofd_packets/00192944 [17:05:44]NVStorageDeleteData [17:05:45]OFD Sender: Processing packet 192945 [packets to send 131, broken 74] [17:05:45]ProducePacketName [17:05:45]name=ofd_packets/00192945 [17:05:45]OFD Sender: To server: ‡•öpG, [17:05:45]CommunicateWithHost lk.salyk.kg:30040 [17:05:45]ConnectInit lk.salyk.kg [17:05:45]Connected sock=7 [17:05: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 AD 66 07 01 F6 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 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 97 00 00 00 F4 03 04 00 1F FA 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 55 37 2E D3 0E BC E4 45 09 3E C2 C9 C1 97 [17:05: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 C2 B7 47 00 48 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 B1 F1 02 00 F4 03 04 00 A7 BA 20 67 B6 04 01 00 00 E7 27 33 C5 16 AC 31 2A [17:05:45]CommunicateWithHost err = 0 [17:05:45]CheckOFDResponse [17:05:45]1017 (14) - 77093643461234 [17:05:45]1041 (16) - 0000000000871754 [17:05:45]1040 (4) - 192945 [17:05:45]1012 (4) - 29.10.2024 10:36 [17:05:45]1206 (1) - 0 [17:05:45]OFD Sender: Remove packet 192945 [17:05:45]ProducePacketName [17:05:45]name=ofd_packets/00192945 [17:05:45]NVStorageDeleteData [17:05:45]accept exits with 11 [17:05:45]New connection [17:05:45]New thread 3067350372 created [17:05:45]Thread 3067207012 joined [17:05:45]Waiting for new connection... [17:05:45] Sock 11.Parse request [17:05:45]Sock 11.Check first char [17:05:45]Sock 11.First char is OK [17:05:45]request: POST /json_proto HTTP/1.0 [17:05:45]Method: POST [17:05:45]URL: /json_proto [17:05:45]Method is POST - this is cgi request [17:05:45]url: /json_proto [17:05:45]query_string will be loaded in cgi processing [17:05:45]execute_cgi json_proto POST (null) [17:05:45]execute_cgi path=json_proto method=POST [17:05:45]POST find Content-Length [17:05:45]Host: 172.17.63.131:8080 [17:05:45]Content-Length: 676 [17:05:45]Content-Type: application/json [17:05:45] [17:05:45]POST finish read [17:05:45]Found Content-Length = 676 [17:05:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32334", "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:05:45]execute_script... [17:05: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)32334", "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:05:45]POST & json_proto [17:05:45]process_json_proto [17:05:45]json parsed OK: [17:05:45]protocol is kg_v1.0 [17:05:45]action value=close_receipt [17:05:45]process_action close_receipt [17:05:45]cmd_close_receipt [17:05:45]MH_GetDate [17:05:45]Write to MH i2c: F0 00 00 B3 00 A2 [17:05:45]Write i2c OK [17:05:45]MH_I2C_Read... [17:05:45]Read from MH i2c: F0 [17:05:45]MH_I2C_Read... [17:05:45]Read from MH i2c: F0 09 00 [17:05:45]MH_I2C_Read... [17:05:45]Read from MH i2c: F0 09 00 B3 00 00 EA 15 21 67 22 05 6E 64 2B [17:05:45]GetLastDocTimeStamp 1730221513 [17:05:45]current date 1730221546 [17:05:45]FM_GetShiftState [17:05:45]SAM_PROTO_GetShiftState [17:05:45]wFMCommunicate request_size=4 [17:05:45]MH_SAM_APDU [17:05:45]CAPDU: 80 13 01 00 [17:05:45]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [17:05:45]Write i2c OK [17:05:45]MH_I2C_Read... [17:05:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:45]Read from MH i2c: E2 [17:05:45]MH_I2C_Read... [17:05:45]Read from MH i2c: E2 0E 00 [17:05:45]MH_I2C_Read... [17:05:45]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 37 [17:05:45]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [17:05:45]wFMCommunicate OK [17:05:45]SAM_PROTO_GetShiftState done [17:05:45]FM_GetShiftState done [17:05:45]opened in 1730161990 [17:05:45]opened+sec_in_day 1730248390 [17:05:45]quantity*price = 40006 [17:05:45]sum+1 = 40007 [17:05:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.06 ИТОГО: 400.00 ВнеÑено: 400.00 СДÐЧÐ: 0.00 ÐСП 1% : 3.54 ÐДС 12% : 42.48 Ðаличными: 400.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 170 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 СÐО: Общий режим Чек 208 29.10.2024 17:05 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 193002 ФПД: 91420710432791 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T170546&type=1&operation_type=1&fn_number=0000000000871754&fd_number=193002&fm=91420710432791&tin=02508201610067®Number=0000000000091776&sum=40000 [17:05:47]StoreToDocumentArchive [17:05:47]shift 544 fd 193002 [17:05:47]save to /storage/0544/doc_00193002 [17:05:47]save last doc name /storage/0544/doc_00193002 to /storage/kkm_last_doc_name [17:05:47]save OK [17:05:47]Clear old archive folders... [17:05:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:05:47]tlvbuf is 00AC2EC0 [17:05:47]SAM_PROTO_ClearQueue [17:05:47]wFMCommunicate request_size=4 [17:05:47]MH_SAM_APDU [17:05:47]CAPDU: 80 09 00 00 [17:05:47]Write to MH i2c: E2 08 00 C1 00 80 09 00 00 00 00 00 00 33 [17:05:47]Write i2c OK [17:05:47]MH_I2C_Read... [17:05:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:05:47]Read from MH i2c: E2 [17:05:47]MH_I2C_Read... [17:05:47]Read from MH i2c: E2 03 00 [17:05:47]MH_I2C_Read... [17:05:47]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [17:05:47]RAPDU: 90 00 [17:05:47]wFMCommunicate OK [17:05:47]SAM_PROTO_ClearQueue done [17:05:47]KKMCreateOFDPacket [17:05:47]OFDProtocolAddRootSTLVToBuf [17:05:47]FM_MakeSignedData [17:05:47]FM_MakeSignedData [17:05:47]SAM_PROTO_SignData [17:05:47]wFMCommunicate request_size=4 [17:05:47]MH_SAM_APDU [17:05:47]CAPDU: 80 0D 01 02 [17:05:47]Write to MH i2c: E2 08 00 C2 00 80 0D 01 02 00 00 00 00 3B [17:05:47]Write i2c OK [17:05:47]MH_I2C_Read... [17:05:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:05:47]Read from MH i2c: E2 [17:05:47]MH_I2C_Read... [17:05:47]Read from MH i2c: E2 03 00 [17:05:47]MH_I2C_Read... [17:05:47]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [17:05:47]RAPDU: 90 00 [17:05:47]wFMCommunicate OK [17:05:47]wFMCommunicate request_size=255 [17:05:47]MH_SAM_APDU [17:05: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 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 D0 00 00 00 F4 03 04 00 EA 15 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 53 [17:05:47]Write to MH i2c: E2 02 01 C3 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 D0 00 00 00 F4 03 04 00 EA 15 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 53 00 00 47 [17:05:47]OFD Sender: Processing packet 192947 [packets to send 129, broken 74] [17:05:47]ProducePacketName [17:05:47]name=ofd_packets/00192947 [17:05:47]OFD Sender: To server: ‡•öpG, [17:05:47]CommunicateWithHost lk.salyk.kg:30040 [17:05:47]ConnectInit lk.salyk.kg [17:05:47]Write i2c OK [17:05:47]MH_I2C_Read... [17:05:47]Connected sock=9 [17:05: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 60 16 07 01 76 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 99 00 00 00 F4 03 04 00 94 FA 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 3C 65 0C CA DC 50 66 EB 41 32 62 48 58 5A [17:05:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:47]Read from MH i2c: E2 [17:05:47]MH_I2C_Read... [17:05:47]Read from MH i2c: E2 03 00 [17:05:47]MH_I2C_Read... [17:05:47]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [17:05:47]RAPDU: 90 00 [17:05:47]wFMCommunicate OK [17:05:47]wFMCommunicate request_size=10 [17:05:47]MH_SAM_APDU [17:05:47]CAPDU: 80 0D 02 02 05 25 8A F8 70 17 [17:05:47]Write to MH i2c: E2 0D 00 C4 00 80 0D 02 02 05 00 25 8A F8 70 17 00 00 76 [17:05:47]Write i2c OK [17:05:47]MH_I2C_Read... [17:05:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:47]Read from MH i2c: E2 [17:05:47]MH_I2C_Read... [17:05:47]Read from MH i2c: E2 03 00 [17:05:47]MH_I2C_Read... [17:05:47]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [17:05:47]RAPDU: 90 00 [17:05:47]wFMCommunicate OK [17:05:47]wFMCommunicate request_size=4 [17:05:47]MH_SAM_APDU [17:05:47]CAPDU: 80 0D 03 02 [17:05:47]Write to MH i2c: E2 08 00 C5 00 80 0D 03 02 00 00 00 00 40 [17:05:47]Write i2c OK [17:05:47]MH_I2C_Read... [17:05: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 A3 3D 47 00 03 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 B3 F1 02 00 F4 03 04 00 A9 BA 20 67 B6 04 01 00 00 E7 74 75 62 CE 09 E2 B0 [17:05:47]CommunicateWithHost err = 0 [17:05:47]CheckOFDResponse [17:05:47]1017 (14) - 77093643461234 [17:05:47]1041 (16) - 0000000000871754 [17:05:47]1040 (4) - 192947 [17:05:47]1012 (4) - 29.10.2024 10:36 [17:05:47]1206 (1) - 0 [17:05:47]OFD Sender: Remove packet 192947 [17:05:47]ProducePacketName [17:05:47]name=ofd_packets/00192947 [17:05:47]NVStorageDeleteData [17:05:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:05:47]Read from MH i2c: E2 [17:05:47]MH_I2C_Read... [17:05:47]Read from MH i2c: E2 0B 00 [17:05:47]MH_I2C_Read... [17:05:47]Read from MH i2c: E2 0B 00 C5 00 00 3C A4 FB D1 68 0B BC 40 90 00 5C [17:05:47]RAPDU: 3C A4 FB D1 68 0B BC 40 90 00 [17:05:47]wFMCommunicate OK [17:05:47]SAM_PROTO_SignData done [17:05:47]FM_MakeSignedData done [17:05:47]CreateOFDProtocolMessage [17:05:47]wFMCommunicate request_size=4 [17:05:47]MH_SAM_APDU [17:05:47]CAPDU: 80 11 00 00 [17:05:47]Write to MH i2c: E2 08 00 C6 00 80 11 00 00 00 00 00 00 40 [17:05:47]Write i2c OK [17:05:47]MH_I2C_Read... [17:05:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:47]Read from MH i2c: E2 [17:05:47]MH_I2C_Read... [17:05:47]Read from MH i2c: E2 17 00 [17:05:47]MH_I2C_Read... [17:05:47]Read from MH i2c: E2 17 00 C6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 93 [17:05: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:05:47]wFMCommunicate OK [17:05:47]CreateOFDProtocolMessage done [17:05:47]OFDSenderStorePacket 193002 [17:05:47]StoreOFDPacket docnum=193002 [17:05: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 16 33 07 01 9B 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 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 D0 00 00 00 F4 03 04 00 EA 15 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 53 25 8A F8 70 17 3C A4 FB D1 68 0B BC 40 [17:05:47]CheckFolder [17:05:47]dirname=/storage/ofd_packets [17:05:47]CheckFolder done [17:05:47]ProducePacketName [17:05:47]name=ofd_packets/00193002 [17:05:47]NVStorageSaveData ofd_packets/00193002 [17:05:47]File name is /storage/ofd_packets/00193002 [17:05:47]Write 301 bytes [17:05:47]NVStorageSaveData done [17:05:47]OFDSenderStorePacket done [17:05:47]KKMCreateOFDPacket done [17:05:47]NVStorageSaveData kkm_last_timestamp [17:05:47]File name is /storage/kkm_last_timestamp [17:05:47]Write 4 bytes [17:05:47]NVStorageSaveData done [17:05:47]ExternCall_PrintAddStr [17:05:47]wPrintStart [17:05:47]Write to MH i2c: 01 00 00 C7 00 C7 [17:05:47]Write i2c OK [17:05:47]MH_I2C_Read... [17:05:47]Read from MH i2c: 01 [17:05:47]MH_I2C_Read... [17:05:47]Read from MH i2c: 01 07 00 [17:05:47]MH_I2C_Read... [17:05:47]Read from MH i2c: 01 07 00 C7 00 00 00 00 00 00 FF 0F DC [17:05:47]RasterBufferAndPrint [17:05:47]line Счет N : (1)32334 [17:05:47]line ИÐÐ: 02508201610067 [17:05:47]line Контрольно-КаÑÑовый Чек [17:05:47]line ПРОДÐЖР[17:05:47]line ТРК (МРК, ГÐК) : 12 [17:05:47]line Товар: 2710124130 [17:05:47]line Ðи-92-К-5 [17:05:47]line 5.980 * 66.90 [17:05:47]line = 400.06 [17:05:47]line ÐДС 12% ÐСП 1% [17:05:47]line > о реализуемом товаре [17:05:47]line ОКРУГЛЕÐИЕ: -0.06 [17:05:47]line ИТОГО: 400.00 [17:05:47]line ВнеÑено: 400.00 [17:05:47]line СДÐЧÐ: 0.00 [17:05:47]line ÐСП 1% : 3.54 [17:05:47]line ÐДС 12% : 42.48 [17:05:47]line Ðаличными: 400.00 [17:05:47]line Безнал.: 0.00 [17:05:47]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [17:05:47]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [17:05:47]line СÐО: Общий режим [17:05:47]line Чек 208 29.10.2024 17:05 [17:05:47]line Смена: 544 ФФД: 1.0 [17:05:47]line ЗÐМ: 0300000110 [17:05:47]line РÐМ: 0000000000091776 [17:05:47]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [17:05:47]line ФМ: 0000000000871754 [17:05:47]line ФД: 193002 [17:05:47]line ФПД: 91420710432791 [17:05:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T170546&type=1&operation_type=1&fn_number=0000000000871754&fd_number=193002&fm=91420710432791&tin=02508201610067®Number=0000000000091776&sum=40000 [17:05:47]written 0, free lines is 4095 [17:05:48]OFD Sender: Processing packet 192948 [packets to send 129, broken 74] [17:05:48]ProducePacketName [17:05:48]name=ofd_packets/00192948 [17:05:48]OFD Sender: To server: ‡•öpG, [17:05:48]CommunicateWithHost lk.salyk.kg:30040 [17:05:48]ConnectInit lk.salyk.kg [17:05:48]Write to MH i2c: 01 00 00 F2 00 F2 [17:05:48]Write i2c OK [17:05:48]MH_I2C_Read... [17:05:48]Read from MH i2c: 01 [17:05:48]MH_I2C_Read... [17:05:48]Read from MH i2c: 01 07 00 [17:05:48]MH_I2C_Read... [17:05:48]Read from MH i2c: 01 07 00 F2 00 00 00 00 00 00 B5 0C BA [17:05:48]RasterBufferAndPrint [17:05:48]line [17:05:48]line [17:05:48]line [17:05:48]line [17:05:48]line [17:05:48]written 0, free lines is 3272 [17:05:48]Connected sock=9 [17:05:48]MH_Cut [17:05:48]Data to sent: Write to MH i2c: 87 D1 95 01 F6 00 70 F9 47 00 2C 01 01 CB 00 [17:05:48]30 30 30 30 Write i2c OK [17:05:48]30 MH_I2C_Read... [17:05:48]Read from MH i2c: D1 [17:05:48]MH_I2C_Read... [17:05:48]Read from MH i2c: D1 01 00 [17:05:48]MH_I2C_Read... [17:05:48]Read from MH i2c: D1 01 00 F9 00 00 CA [17:05:48]Write to MH i2c: 01 00 00 FA 00 FA [17:05:48]Write i2c OK [17:05:48]MH_I2C_Read... [17:05:48]30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A1 B2 07 01 46 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 B9 FA 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 85 0A 94 AC 0C 10 66 D2 E8 FF 38 82 60 91 [17:05: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 5D ED 47 00 A2 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 B4 F1 02 00 F4 03 04 00 AA BA 20 67 B6 04 01 00 00 60 2B AB A9 23 7A AD 00 [17:05:48]CommunicateWithHost err = 0 [17:05:48]CheckOFDResponse [17:05:48]1017 (14) - 77093643461234 [17:05:48]1041 (16) - 0000000000871754 [17:05:48]1040 (4) - 192948 [17:05:48]1012 (4) - 29.10.2024 10:36 [17:05:48]1206 (1) - 0 [17:05:48]OFD Sender: Remove packet 192948 [17:05:48]ProducePacketName [17:05:48]name=ofd_packets/00192948 [17:05:48]NVStorageDeleteData [17:05:49]*** Cut start [17:05:49]*** Partial cut [17:05:49]*** CUTSNS_PIN = 1 [17:05:49]*** CUTSNS_PIN = 0 [17:05:49]OFD Sender: Processing packet 192949 [packets to send 128, broken 74] [17:05:49]ProducePacketName [17:05:49]name=ofd_packets/00192949 [17:05:49]OFD Sender: To server: ‡•öpG, [17:05:49]CommunicateWithHost lk.salyk.kg:30040 [17:05:49]ConnectInit lk.salyk.kg [17:05:49]Connected sock=9 [17:05: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 B7 0D 07 01 E2 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 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 9B 00 00 00 F4 03 04 00 BE FA 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 C9 7E CD 30 2F 81 F2 B5 25 DE EF 92 FB C0 [17:05:49]*** Brake cut motor [17:05: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 5F 98 47 00 E0 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B5 F1 02 00 F4 03 04 00 AB BA 20 67 B6 04 01 00 00 A3 D0 59 3F FC 73 5D E7 [17:05:49]CommunicateWithHost err = 0 [17:05:49]CheckOFDResponse [17:05:49]1017 (14) - 77093643461234 [17:05:49]1041 (16) - 0000000000871754 [17:05:49]1040 (4) - 192949 [17:05:49]1012 (4) - 29.10.2024 10:36 [17:05:49]1206 (1) - 0 [17:05:49]OFD Sender: Remove packet 192949 [17:05:49]ProducePacketName [17:05:49]name=ofd_packets/00192949 [17:05:49]NVStorageDeleteData [17:05:49]Read from MH i2c: 01 [17:05:49]MH_I2C_Read... [17:05:49]*** Stop cut motor [17:05:49]*** Cut end [17:05:49]Read from MH i2c: 01 07 00 [17:05:49]MH_I2C_Read... [17:05:49]Read from MH i2c: 01 07 00 FA 00 00 00 00 00 00 FF 0F 0F [17:05:49]process_action close_receipt done [17:05:49]requested_data is exist [17:05:49]produce_requested_data [17:05:49]requested_item fm.sn is exist - process it [17:05:49]wFMCommunicate request_size=4 [17:05:49]MH_SAM_APDU [17:05:49]CAPDU: 80 11 00 00 [17:05:49]Write to MH i2c: E2 08 00 FB 00 80 11 00 00 00 00 00 00 75 [17:05:49]Write i2c OK [17:05:49]MH_I2C_Read... [17:05:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:49]Read from MH i2c: E2 [17:05:49]MH_I2C_Read... [17:05:49]Read from MH i2c: E2 17 00 [17:05:49]MH_I2C_Read... [17:05:49]Read from MH i2c: E2 17 00 FB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C8 [17:05: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:05:49]wFMCommunicate OK [17:05:49]requested_item fd.num is exist - process it [17:05:49]SAM_PROTO_GetFieldsCounters [17:05:49]wFMCommunicate request_size=4 [17:05:49]MH_SAM_APDU [17:05:49]CAPDU: 80 13 00 00 [17:05:49]Write to MH i2c: E2 08 00 FC 00 80 13 00 00 00 00 00 00 78 [17:05:49]Write i2c OK [17:05:49]MH_I2C_Read... [17:05:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:05:49]Read from MH i2c: E2 [17:05:49]MH_I2C_Read... [17:05:49]Read from MH i2c: E2 62 00 [17:05:49]MH_I2C_Read... [17:05:49]Read from MH i2c: E2 62 00 FC 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 F1 02 00 0E 04 04 00 20 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 0D [17:05:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 F1 02 00 0E 04 04 00 20 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 [17:05:49]wFMCommunicate OK [17:05:49]SAM_PROTO_GetFieldsCounters done [17:05:49]requested_item shift.num is exist - process it [17:05:49]requested_item shift.opened is exist - process it [17:05:49]req_shift_opened [17:05:49]FM_GetShiftState [17:05:49]SAM_PROTO_GetShiftState [17:05:49]wFMCommunicate request_size=4 [17:05:49]MH_SAM_APDU [17:05:49]CAPDU: 80 13 01 00 [17:05:50]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [17:05:50]Write i2c OK [17:05:50]MH_I2C_Read... [17:05:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:50]Read from MH i2c: E2 [17:05:50]MH_I2C_Read... [17:05:50]Read from MH i2c: E2 0E 00 [17:05:50]MH_I2C_Read... [17:05:50]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 80 [17:05:50]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [17:05:50]wFMCommunicate OK [17:05:50]SAM_PROTO_GetShiftState done [17:05:50]FM_GetShiftState done [17:05:50]req_shift_opened done [17:05:50]requested_item shift.open_date is exist - process it [17:05:50]req_shift_open_date [17:05:50]req_shift_open_date done [17:05:50]produce_requested_data done [17:05:50]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":193002,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [17:05:50]process_action_free close_receipt [17:05:50]json_value_free [17:05:50]json_value_free done [17:05:50]process_json_proto returns [17:05:50]Send response to host [17:05:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":193002,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [17:05:50]free response buf [17:05:50]execute_script done [17:05:50]execute_script returns [17:05:50]free content buf [17:05:50]Sock 11.Close socket [17:05:50]Sock 11.Thread stoped [17:05:50]OFD Sender: Processing packet 192950 [packets to send 127, broken 74] [17:05:50]ProducePacketName [17:05:50]name=ofd_packets/00192950 [17:05:50]OFD Sender: To server: ‡•öpG, [17:05:50]CommunicateWithHost lk.salyk.kg:30040 [17:05:50]ConnectInit lk.salyk.kg [17:05:50]Connected sock=9 [17:05: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 1B AD 07 01 1D 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 3A FB 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 1C 57 06 4E D4 7D 41 0F 0B 47 67 E3 8F A0 [17:05: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 3B F6 47 00 B6 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 B6 F1 02 00 F4 03 04 00 AC BA 20 67 B6 04 01 00 00 C6 23 31 E5 C1 A3 A3 9B [17:05:50]CommunicateWithHost err = 0 [17:05:50]CheckOFDResponse [17:05:50]1017 (14) - 77093643461234 [17:05:50]1041 (16) - 0000000000871754 [17:05:50]1040 (4) - 192950 [17:05:50]1012 (4) - 29.10.2024 10:36 [17:05:50]1206 (1) - 0 [17:05:50]OFD Sender: Remove packet 192950 [17:05:50]ProducePacketName [17:05:50]name=ofd_packets/00192950 [17:05:50]NVStorageDeleteData [17:05:51]OFD Sender: Processing packet 192951 [packets to send 126, broken 74] [17:05:51]ProducePacketName [17:05:51]name=ofd_packets/00192951 [17:05:51]OFD Sender: To server: ‡•öpG, [17:05:51]CommunicateWithHost lk.salyk.kg:30040 [17:05:51]ConnectInit lk.salyk.kg [17:05:51]Connected sock=9 [17:05: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 8D AB 07 01 64 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 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 9D 00 00 00 F4 03 04 00 C3 FB 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 DC 0D FE 7A FD A7 D0 54 C9 EF 69 34 7E 0E [17:05: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 72 BF 47 00 6B 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 B7 F1 02 00 F4 03 04 00 AD BA 20 67 B6 04 01 00 00 CF F0 4C 90 46 CB 48 8D [17:05:51]CommunicateWithHost err = 0 [17:05:51]CheckOFDResponse [17:05:51]1017 (14) - 77093643461234 [17:05:51]1041 (16) - 0000000000871754 [17:05:51]1040 (4) - 192951 [17:05:51]1012 (4) - 29.10.2024 10:36 [17:05:51]1206 (1) - 0 [17:05:51]OFD Sender: Remove packet 192951 [17:05:51]ProducePacketName [17:05:51]name=ofd_packets/00192951 [17:05:51]NVStorageDeleteData [17:05:51]OFD Sender: Processing packet 192952 [packets to send 125, broken 74] [17:05:51]ProducePacketName [17:05:51]name=ofd_packets/00192952 [17:05:51]OFD Sender: To server: ‡•öpG, [17:05:51]CommunicateWithHost lk.salyk.kg:30040 [17:05:51]ConnectInit lk.salyk.kg [17:05:51]Connected sock=9 [17:05: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 E0 09 07 01 6A 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 0A FC 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 31 47 F1 99 9A 50 C2 04 A9 5B 54 FF 8A 59 [17:05: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 FF 58 47 00 D0 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 B8 F1 02 00 F4 03 04 00 AE BA 20 67 B6 04 01 00 00 1A FF AD 2E BD F3 41 AF [17:05:52]CommunicateWithHost err = 0 [17:05:52]CheckOFDResponse [17:05:52]1017 (14) - 77093643461234 [17:05:52]1041 (16) - 0000000000871754 [17:05:52]1040 (4) - 192952 [17:05:52]1012 (4) - 29.10.2024 10:36 [17:05:52]1206 (1) - 0 [17:05:52]OFD Sender: Remove packet 192952 [17:05:52]ProducePacketName [17:05:52]name=ofd_packets/00192952 [17:05:52]NVStorageDeleteData [17:05:52]OFD Sender: Processing packet 192953 [packets to send 124, broken 74] [17:05:52]ProducePacketName [17:05:52]name=ofd_packets/00192953 [17:05:52]OFD Sender: To server: ‡•öpG, [17:05:52]CommunicateWithHost lk.salyk.kg:30040 [17:05:52]ConnectInit lk.salyk.kg [17:05:52]Connected sock=9 [17:05:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 7D C7 04 01 3A 5F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 23 FC 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 ED D0 77 71 12 A0 4A A7 A2 C2 4B 8C FE 9D [17:05:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 24 BA 47 00 B9 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 B9 F1 02 00 F4 03 04 00 AF BA 20 67 B6 04 01 00 00 64 BB 78 57 22 77 DA B3 [17:05:53]CommunicateWithHost err = 0 [17:05:53]CheckOFDResponse [17:05:53]1017 (14) - 77093643461234 [17:05:53]1041 (16) - 0000000000871754 [17:05:53]1040 (4) - 192953 [17:05:53]1012 (4) - 29.10.2024 10:36 [17:05:53]1206 (1) - 0 [17:05:53]OFD Sender: Remove packet 192953 [17:05:53]ProducePacketName [17:05:53]name=ofd_packets/00192953 [17:05:53]NVStorageDeleteData [17:05:53]OFD Sender: Processing packet 192954 [packets to send 123, broken 74] [17:05:53]ProducePacketName [17:05:53]name=ofd_packets/00192954 [17:05:53]OFD Sender: To server: ‡•öpG, [17:05:53]CommunicateWithHost lk.salyk.kg:30040 [17:05:53]ConnectInit lk.salyk.kg [17:05:53]Connected sock=9 [17:05: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 83 48 07 01 DC 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 77 FC 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 25 AE 62 A0 EB 20 C6 B1 4C 60 B1 1F 75 B1 [17: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 E3 AA 47 00 CD 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 BA F1 02 00 F4 03 04 00 B0 BA 20 67 B6 04 01 00 00 A1 44 C8 DA DB F3 C5 93 [17:05:54]CommunicateWithHost err = 0 [17:05:54]CheckOFDResponse [17:05:54]1017 (14) - 77093643461234 [17:05:54]1041 (16) - 0000000000871754 [17:05:54]1040 (4) - 192954 [17:05:54]1012 (4) - 29.10.2024 10:36 [17:05:54]1206 (1) - 0 [17:05:54]OFD Sender: Remove packet 192954 [17:05:54]ProducePacketName [17:05:54]name=ofd_packets/00192954 [17:05:54]NVStorageDeleteData [17:05:54]OFD Sender: Processing packet 192955 [packets to send 122, broken 74] [17:05:54]ProducePacketName [17:05:54]name=ofd_packets/00192955 [17:05:54]OFD Sender: To server: ‡•öpG, [17:05:54]CommunicateWithHost lk.salyk.kg:30040 [17:05:54]ConnectInit lk.salyk.kg [17:05:54]Connected sock=9 [17: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 F6 B6 07 01 49 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 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 A1 00 00 00 F4 03 04 00 9A FC 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 53 14 5B F6 01 02 1C 32 D3 BF BE B6 A1 99 [17: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 40 06 47 00 9A 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 BB F1 02 00 F4 03 04 00 B1 BA 20 67 B6 04 01 00 00 BF A0 64 43 25 7A FC 52 [17:05:54]CommunicateWithHost err = 0 [17:05:54]CheckOFDResponse [17:05:54]1017 (14) - 77093643461234 [17:05:54]1041 (16) - 0000000000871754 [17:05:54]1040 (4) - 192955 [17:05:54]1012 (4) - 29.10.2024 10:36 [17:05:54]1206 (1) - 0 [17:05:54]OFD Sender: Remove packet 192955 [17:05:54]ProducePacketName [17:05:54]name=ofd_packets/00192955 [17:05:54]NVStorageDeleteData [17:05:55]OFD Sender: Processing packet 192956 [packets to send 121, broken 74] [17:05:55]ProducePacketName [17:05:55]name=ofd_packets/00192956 [17:05:55]OFD Sender: To server: ‡•öpG, [17:05:55]CommunicateWithHost lk.salyk.kg:30040 [17:05:55]ConnectInit lk.salyk.kg [17:05:55]Connected sock=9 [17:05: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 8A 30 07 01 C6 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 36 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 6A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 6A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 26 00 00 00 00 07 04 06 00 1C 6A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 24 FD 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 95 05 6F 60 8A 09 D1 96 8F 28 30 D8 46 C8 [17:05: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 8C ED 47 00 6E 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BC F1 02 00 F4 03 04 00 B2 BA 20 67 B6 04 01 00 00 C0 EB F4 6C 81 80 5A 66 [17:05:55]CommunicateWithHost err = 0 [17:05:55]CheckOFDResponse [17:05:55]1017 (14) - 77093643461234 [17:05:55]1041 (16) - 0000000000871754 [17:05:55]1040 (4) - 192956 [17:05:55]1012 (4) - 29.10.2024 10:36 [17:05:55]1206 (1) - 0 [17:05:55]OFD Sender: Remove packet 192956 [17:05:55]ProducePacketName [17:05:55]name=ofd_packets/00192956 [17:05:55]NVStorageDeleteData [17:05:56]OFD Sender: Processing packet 192957 [packets to send 120, broken 74] [17:05:56]ProducePacketName [17:05:56]name=ofd_packets/00192957 [17:05:56]OFD Sender: To server: ‡•öpG, [17:05:56]CommunicateWithHost lk.salyk.kg:30040 [17:05:56]ConnectInit lk.salyk.kg [17:05:56]Connected sock=9 [17:05:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 59 68 07 01 96 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 DA B1 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 0B 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 77 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 A3 00 00 00 F4 03 04 00 48 FD 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 07 A2 0A B1 F0 4E 39 03 77 90 09 4C AE 05 [17:05:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 6F D9 47 00 7D 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 BD F1 02 00 F4 03 04 00 B2 BA 20 67 B6 04 01 00 00 A6 FC 86 FA B4 30 0E 77 [17:05:56]CommunicateWithHost err = 0 [17:05:56]CheckOFDResponse [17:05:56]1017 (14) - 77093643461234 [17:05:56]1041 (16) - 0000000000871754 [17:05:56]1040 (4) - 192957 [17:05:56]1012 (4) - 29.10.2024 10:36 [17:05:56]1206 (1) - 0 [17:05:56]OFD Sender: Remove packet 192957 [17:05:56]ProducePacketName [17:05:56]name=ofd_packets/00192957 [17:05:56]NVStorageDeleteData [17:05:57]OFD Sender: Processing packet 192958 [packets to send 119, broken 74] [17:05:57]ProducePacketName [17:05:57]name=ofd_packets/00192958 [17:05:57]OFD Sender: To server: ‡•öpG, [17:05:57]CommunicateWithHost lk.salyk.kg:30040 [17:05:57]ConnectInit lk.salyk.kg [17:05:57]Connected sock=9 [17:05: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 74 7A 07 01 E6 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 A5 FE 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 B5 82 A5 42 25 74 61 0F 77 38 E0 DB 20 CB [17:05: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 93 0B 47 00 D9 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 BE F1 02 00 F4 03 04 00 B3 BA 20 67 B6 04 01 00 00 22 33 E3 67 28 D4 55 4E [17:05:57]CommunicateWithHost err = 0 [17:05:57]CheckOFDResponse [17:05:57]1017 (14) - 77093643461234 [17:05:57]1041 (16) - 0000000000871754 [17:05:57]1040 (4) - 192958 [17:05:57]1012 (4) - 29.10.2024 10:36 [17:05:57]1206 (1) - 0 [17:05:57]OFD Sender: Remove packet 192958 [17:05:57]ProducePacketName [17:05:57]name=ofd_packets/00192958 [17:05:57]NVStorageDeleteData [17:05:58]OFD Sender: Processing packet 192959 [packets to send 118, broken 74] [17:05:58]ProducePacketName [17:05:58]name=ofd_packets/00192959 [17:05:58]OFD Sender: To server: ‡•öpG, [17:05:58]CommunicateWithHost lk.salyk.kg:30040 [17:05:58]ConnectInit lk.salyk.kg [17:05:58]Connected sock=9 [17:05: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 0C 01 00 00 1E 2C 04 01 48 AA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 A5 00 00 00 F4 03 04 00 48 FF 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 40 C1 D5 9D BA D2 ED 8C 94 94 D8 8C 9C 91 [17:05: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 79 8E 47 00 EE 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 BF F1 02 00 F4 03 04 00 B4 BA 20 67 B6 04 01 00 00 BE AB 4E B7 F5 92 3A 78 [17:05:58]CommunicateWithHost err = 0 [17:05:58]CheckOFDResponse [17:05:58]1017 (14) - 77093643461234 [17:05:58]1041 (16) - 0000000000871754 [17:05:58]1040 (4) - 192959 [17:05:58]1012 (4) - 29.10.2024 10:36 [17:05:58]1206 (1) - 0 [17:05:58]OFD Sender: Remove packet 192959 [17:05:58]ProducePacketName [17:05:58]name=ofd_packets/00192959 [17:05:58]NVStorageDeleteData [17:05:59]OFD Sender: Processing packet 192960 [packets to send 117, broken 74] [17:05:59]ProducePacketName [17:05:59]name=ofd_packets/00192960 [17:05:59]OFD Sender: To server: ‡•öpG, [17:05:59]CommunicateWithHost lk.salyk.kg:30040 [17:05:59]ConnectInit lk.salyk.kg [17:06:18]accept exits with 7 [17:06:18]New connection [17:06:18]New thread 3067207012 created [17:06:18]Thread 3067350372 joined [17:06:18]Waiting for new connection... [17:06:18] Sock 7.Parse request [17:06:18]Sock 7.Check first char [17:06:18]Sock 7.First char is OK [17:06:18]request: POST /json_proto HTTP/1.0 [17:06:18]Method: POST [17:06:18]URL: /json_proto [17:06:18]Method is POST - this is cgi request [17:06:18]url: /json_proto [17:06:18]query_string will be loaded in cgi processing [17:06:18]execute_cgi json_proto POST (null) [17:06:18]execute_cgi path=json_proto method=POST [17:06:18]POST find Content-Length [17:06:18]Host: 172.17.63.131:8080 [17:06:18]Content-Length: 862 [17:06:18]Content-Type: application/json [17:06:18] [17:06:18]POST finish read [17:06:18]Found Content-Length = 862 [17:06:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32333", "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" ] } } [17:06:18]execute_script... [17:06: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)32333", "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" ] } } [17:06:18]POST & json_proto [17:06:18]process_json_proto [17:06:18]json parsed OK: [17:06:18]protocol is kg_v1.0 [17:06:18]action value=close_receipt [17:06:18]process_action close_receipt [17:06:18]cmd_close_receipt [17:06:18]MH_GetDate [17:06:18]Write to MH i2c: F0 00 00 FE 00 ED [17:06:18]Write i2c OK [17:06:18]MH_I2C_Read... [17:06:18]Read from MH i2c: F0 [17:06:18]MH_I2C_Read... [17:06:18]Read from MH i2c: F0 09 00 [17:06:18]MH_I2C_Read... [17:06:18]Read from MH i2c: F0 09 00 FE 00 00 0A 16 21 67 22 05 6E 64 97 [17:06:18]GetLastDocTimeStamp 1730221546 [17:06:18]current date 1730221578 [17:06:18]FM_GetShiftState [17:06:18]SAM_PROTO_GetShiftState [17:06:18]wFMCommunicate request_size=4 [17:06:18]MH_SAM_APDU [17:06:18]CAPDU: 80 13 01 00 [17:06:18]Write to MH i2c: E2 08 00 FF 00 80 13 01 00 00 00 00 00 7C [17:06:18]Write i2c OK [17:06:18]MH_I2C_Read... [17:06:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:18]Read from MH i2c: E2 [17:06:18]MH_I2C_Read... [17:06:18]Read from MH i2c: E2 0E 00 [17:06:18]MH_I2C_Read... [17:06:18]Read from MH i2c: E2 0E 00 FF 00 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 82 [17:06:18]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [17:06:18]wFMCommunicate OK [17:06:18]SAM_PROTO_GetShiftState done [17:06:18]FM_GetShiftState done [17:06:18]opened in 1730161990 [17:06:18]opened+sec_in_day 1730248390 [17:06:18]quantity*price = 100050 [17:06:18]sum+1 = 100052 [17:06:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 ÐСП 1% : 8.85 ÐДС 12% : 106.25 Ðаличными: 0.00 Безнал.: 1000.51 МеÑто: ÐЗС â„– 170 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 СÐО: Общий режим Чек 209 29.10.2024 17:06 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 193003 ФПД: 46623256442752 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T170618&type=1&operation_type=1&fn_number=0000000000871754&fd_number=193003&fm=46623256442752&tin=02508201610067®Number=0000000000091776&sum=100051 [17:06:19]StoreToDocumentArchive [17:06:19]shift 544 fd 193003 [17:06:19]save to /storage/0544/doc_00193003 [17:06:19]save last doc name /storage/0544/doc_00193003 to /storage/kkm_last_doc_name [17:06:19]save OK [17:06:19]Clear old archive folders... [17:06:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:06:19]tlvbuf is 00AA91B0 [17:06:19]SAM_PROTO_ClearQueue [17:06:19]wFMCommunicate request_size=4 [17:06:19]MH_SAM_APDU [17:06:19]CAPDU: 80 09 00 00 [17:06:19]Write to MH i2c: E2 08 00 0C 01 80 09 00 00 00 00 00 00 7F [17:06:19]Write i2c OK [17:06:19]MH_I2C_Read... [17:06:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:06:19]Read from MH i2c: E2 [17:06:19]MH_I2C_Read... [17:06:19]Read from MH i2c: E2 03 00 [17:06:19]MH_I2C_Read... [17:06:19]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [17:06:19]RAPDU: 90 00 [17:06:19]wFMCommunicate OK [17:06:19]SAM_PROTO_ClearQueue done [17:06:19]KKMCreateOFDPacket [17:06:19]OFDProtocolAddRootSTLVToBuf [17:06:19]FM_MakeSignedData [17:06:19]FM_MakeSignedData [17:06:19]SAM_PROTO_SignData [17:06:19]wFMCommunicate request_size=4 [17:06:19]MH_SAM_APDU [17:06:19]CAPDU: 80 0D 01 02 [17:06:19]Write to MH i2c: E2 08 00 0D 01 80 0D 01 02 00 00 00 00 87 [17:06:19]Write i2c OK [17:06:19]MH_I2C_Read... [17:06:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:06:19]Read from MH i2c: E2 [17:06:19]MH_I2C_Read... [17:06:19]Read from MH i2c: E2 03 00 [17:06:19]MH_I2C_Read... [17:06:19]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [17:06:19]RAPDU: 90 00 [17:06:19]wFMCommunicate OK [17:06:19]wFMCommunicate request_size=255 [17:06:19]MH_SAM_APDU [17:06:19]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 D1 00 00 00 F4 03 04 00 0A 16 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 2A 67 52 A3 [17:06:19]Write to MH i2c: E2 02 01 0E 01 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 D1 00 00 00 F4 03 04 00 0A 16 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 2A 67 52 A3 00 00 76 [17:06:19]Write i2c OK [17:06:19]MH_I2C_Read... [17:06:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:19]Read from MH i2c: E2 [17:06:19]MH_I2C_Read... [17:06:19]Read from MH i2c: E2 03 00 [17:06:19]MH_I2C_Read... [17:06:19]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [17:06:19]RAPDU: 90 00 [17:06:19]wFMCommunicate OK [17:06:19]wFMCommunicate request_size=7 [17:06:19]MH_SAM_APDU [17:06:19]CAPDU: 80 0D 02 02 02 77 80 [17:06:19]Write to MH i2c: E2 0A 00 0F 01 80 0D 02 02 02 00 77 80 00 00 85 [17:06:19]Write i2c OK [17:06:19]MH_I2C_Read... [17:06:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:19]Read from MH i2c: E2 [17:06:19]MH_I2C_Read... [17:06:19]Read from MH i2c: E2 03 00 [17:06:19]MH_I2C_Read... [17:06:19]Read from MH i2c: E2 03 00 0F 01 00 90 00 84 [17:06:19]RAPDU: 90 00 [17:06:19]wFMCommunicate OK [17:06:19]wFMCommunicate request_size=4 [17:06:19]MH_SAM_APDU [17:06:19]CAPDU: 80 0D 03 02 [17:06:19]Write to MH i2c: E2 08 00 10 01 80 0D 03 02 00 00 00 00 8C [17:06:19]Write i2c OK [17:06:19]MH_I2C_Read... [17:06:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:06:19]Read from MH i2c: E2 [17:06:19]MH_I2C_Read... [17:06:19]Read from MH i2c: E2 0B 00 [17:06:19]MH_I2C_Read... [17:06:19]Read from MH i2c: E2 0B 00 10 01 00 13 18 1F A7 CF 36 1C E0 90 00 7F [17:06:19]RAPDU: 13 18 1F A7 CF 36 1C E0 90 00 [17:06:19]wFMCommunicate OK [17:06:19]SAM_PROTO_SignData done [17:06:19]FM_MakeSignedData done [17:06:19]CreateOFDProtocolMessage [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 11 01 80 11 00 00 00 00 00 00 8C [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 11 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DF [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]CreateOFDProtocolMessage done [17:06:19]OFDSenderStorePacket 193003 [17:06:19]StoreOFDPacket docnum=193003 [17:06: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 0C 01 00 00 2C 93 04 01 A8 C8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 D1 00 00 00 F4 03 04 00 0A 16 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 2A 67 52 A3 77 80 13 18 1F A7 CF 36 1C E0 [17:06:19]CheckFolder [17:06:19]dirname=/storage/ofd_packets [17:06:19]CheckFolder done [17:06:19]ProducePacketName [17:06:19]name=ofd_packets/00193003 [17:06:19]NVStorageSaveData ofd_packets/00193003 [17:06:19]File name is /storage/ofd_packets/00193003 [17:06:19]Write 298 bytes [17:06:19]NVStorageSaveData done [17:06:19]OFDSenderStorePacket done [17:06:19]KKMCreateOFDPacket done [17:06:19]NVStorageSaveData kkm_last_timestamp [17:06:19]File name is /storage/kkm_last_timestamp [17:06:19]Write 4 bytes [17:06:19]NVStorageSaveData done [17:06:19]ExternCall_PrintAddStr [17:06:19]wPrintStart [17:06:19]Write to MH i2c: 01 00 00 12 01 13 [17:06:19]Write i2c OK [17:06:19]MH_I2C_Read... [17:06:19]Read from MH i2c: 01 [17:06:19]MH_I2C_Read... [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 12 01 00 00 00 00 00 FF 0F 28 [17:06:19]RasterBufferAndPrint [17:06:19]line Счет N : (1)32333 [17:06:19]line ИÐÐ: 02508201610067 [17:06:19]line Контрольно-КаÑÑовый Чек [17:06:19]line ПРОДÐЖР[17:06:19]line ТРК (МРК, ГÐК) : 11 [17:06:19]line Товар: 2710194210 [17:06:19]line ДТ-К-5 [17:06:19]line 13.130 * 76.20 [17:06:19]line = 1000.51 [17:06:19]line ÐДС 12% ÐСП 1% [17:06:19]line > о реализуемом товаре [17:06:19]line ИТОГО: 1000.51 [17:06:19]line ÐСП 1% : 8.85 [17:06:19]line ÐДС 12% : 106.25 [17:06:19]line Ðаличными: 0.00 [17:06:19]line Безнал.: 1000.51 [17:06:19]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [17:06:19]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [17:06:19]line СÐО: Общий режим [17:06:19]line Чек 209 29.10.2024 17:06 [17:06:19]line Смена: 544 ФФД: 1.0 [17:06:19]line ЗÐМ: 0300000110 [17:06:19]line РÐМ: 0000000000091776 [17:06:19]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [17:06:19]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Кыргызкоммерцбанк [17:06:19]line ФМ: 0000000000871754 [17:06:19]line ФД: 193003 [17:06:19]line ФПД: 46623256442752 [17:06:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T170618&type=1&operation_type=1&fn_number=0000000000871754&fd_number=193003&fm=46623256442752&tin=02508201610067®Number=0000000000091776&sum=100051 [17:06:19]written 0, free lines is 4095 [17:06:20]Write to MH i2c: 01 00 00 3C 01 3D [17:06:20]Write i2c OK [17:06:20]MH_I2C_Read... [17:06:20]Read from MH i2c: 01 [17:06:20]MH_I2C_Read... [17:06:20]Read from MH i2c: 01 07 00 [17:06:20]MH_I2C_Read... [17:06:20]Read from MH i2c: 01 07 00 3C 01 00 00 00 00 00 C3 0C 13 [17:06:20]RasterBufferAndPrint [17:06:20]line [17:06:20]line [17:06:20]line [17:06:20]line [17:06:20]line [17:06:20]written 0, free lines is 3272 [17:06:20]MH_Cut [17:06:20]Write to MH i2c: D1 01 00 43 01 01 16 [17:06:20]Write i2c OK [17:06:20]MH_I2C_Read... [17:06:20]Read from MH i2c: D1 [17:06:20]MH_I2C_Read... [17:06:20]Read from MH i2c: D1 01 00 [17:06:20]MH_I2C_Read... [17:06:20]Read from MH i2c: D1 01 00 43 01 00 15 [17:06:20]Write to MH i2c: 01 00 00 44 01 45 [17:06:20]Write i2c OK [17:06:20]MH_I2C_Read... [17:06:21]*** Cut start [17:06:21]*** Partial cut [17:06:21]*** CUTSNS_PIN = 1 [17:06:21]*** CUTSNS_PIN = 0 [17:06:21]*** Brake cut motor [17:06:21]Read from MH i2c: 01 [17:06:21]MH_I2C_Read... [17:06:21]*** Stop cut motor [17:06:21]*** Cut end [17:06:21]Read from MH i2c: 01 07 00 [17:06:21]MH_I2C_Read... [17:06:21]Read from MH i2c: 01 07 00 44 01 00 00 00 00 00 FF 0F 5A [17:06:21]process_action close_receipt done [17:06:21]requested_data is exist [17:06:21]produce_requested_data [17:06:21]requested_item fm.sn is exist - process it [17:06:21]wFMCommunicate request_size=4 [17:06:21]MH_SAM_APDU [17:06:21]CAPDU: 80 11 00 00 [17:06:21]Write to MH i2c: E2 08 00 45 01 80 11 00 00 00 00 00 00 C0 [17:06:21]Write i2c OK [17:06:21]MH_I2C_Read... [17:06:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:21]Read from MH i2c: E2 [17:06:21]MH_I2C_Read... [17:06:21]Read from MH i2c: E2 17 00 [17:06:21]MH_I2C_Read... [17:06:21]Read from MH i2c: E2 17 00 45 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 13 [17:06:21]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:21]wFMCommunicate OK [17:06:21]requested_item fd.num is exist - process it [17:06:21]SAM_PROTO_GetFieldsCounters [17:06:21]wFMCommunicate request_size=4 [17:06:21]MH_SAM_APDU [17:06:21]CAPDU: 80 13 00 00 [17:06:21]Write to MH i2c: E2 08 00 46 01 80 13 00 00 00 00 00 00 C3 [17:06:21]Write i2c OK [17:06:21]MH_I2C_Read... [17:06:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:06:22]Read from MH i2c: E2 [17:06:22]MH_I2C_Read... [17:06:22]Read from MH i2c: E2 62 00 [17:06:22]MH_I2C_Read... [17:06:22]Read from MH i2c: E2 62 00 46 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 EB F1 02 00 0E 04 04 00 20 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 5C [17:06: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 EB F1 02 00 0E 04 04 00 20 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 [17:06:22]wFMCommunicate OK [17:06:22]SAM_PROTO_GetFieldsCounters done [17:06:22]requested_item shift.num is exist - process it [17:06:22]requested_item shift.opened is exist - process it [17:06:22]req_shift_opened [17:06:22]FM_GetShiftState [17:06:22]SAM_PROTO_GetShiftState [17:06:22]wFMCommunicate request_size=4 [17:06:22]MH_SAM_APDU [17:06:22]CAPDU: 80 13 01 00 [17:06:22]Write to MH i2c: E2 08 00 47 01 80 13 01 00 00 00 00 00 C5 [17:06:22]Write i2c OK [17:06:22]MH_I2C_Read... [17:06:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:22]Read from MH i2c: E2 [17:06:22]MH_I2C_Read... [17:06:22]Read from MH i2c: E2 0E 00 [17:06:22]MH_I2C_Read... [17:06:22]Read from MH i2c: E2 0E 00 47 01 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 CB [17:06:22]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [17:06:22]wFMCommunicate OK [17:06:22]SAM_PROTO_GetShiftState done [17:06:22]FM_GetShiftState done [17:06:22]req_shift_opened done [17:06:22]requested_item shift.open_date is exist - process it [17:06:22]req_shift_open_date [17:06:22]req_shift_open_date done [17:06:22]produce_requested_data done [17:06:22]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":193003,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [17:06:22]process_action_free close_receipt [17:06:22]json_value_free [17:06:22]json_value_free done [17:06:22]process_json_proto returns [17:06:22]Send response to host [17:06:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":193003,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [17:06:22]free response buf [17:06:22]execute_script done [17:06:22]execute_script returns [17:06:22]free content buf [17:06:22]Sock 7.Close socket [17:06:22]Sock 7.Thread stoped [17:08:12]ConnectInit Can't connect to host [17:08:12]CommunicateWithHost connect error [17:08:12]CommunicateWithHost err = -1 [17:08:12]OFD Sender: Server communicate error [17:08:13]OFD Sender: Processing packet 192960 [packets to send 118, broken 74] [17:08:13]ProducePacketName [17:08:13]name=ofd_packets/00192960 [17:08:13]OFD Sender: To server: ‡•öpG, [17:08:13]CommunicateWithHost lk.salyk.kg:30040 [17:08:13]ConnectInit lk.salyk.kg [17:08:13]Connected sock=7 [17:08: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 9B 78 07 01 DB 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 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 A6 00 00 00 F4 03 04 00 5C FF 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 03 D4 97 28 B0 57 FE 11 96 E3 B3 37 8D 19 [17:08: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 64 BB 47 00 DD 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 C0 F1 02 00 F4 03 04 00 3B BB 20 67 B6 04 01 00 00 38 00 DB 63 67 DE B5 7C [17:08:13]CommunicateWithHost err = 0 [17:08:13]CheckOFDResponse [17:08:13]1017 (14) - 77093643461234 [17:08:13]1041 (16) - 0000000000871754 [17:08:13]1040 (4) - 192960 [17:08:13]1012 (4) - 29.10.2024 10:38 [17:08:13]1206 (1) - 0 [17:08:13]OFD Sender: Remove packet 192960 [17:08:13]ProducePacketName [17:08:13]name=ofd_packets/00192960 [17:08:13]NVStorageDeleteData [17:08:13]OFD Sender: Processing packet 192961 [packets to send 117, broken 74] [17:08:13]ProducePacketName [17:08:13]name=ofd_packets/00192961 [17:08:13]OFD Sender: To server: ‡•öpG, [17:08:13]CommunicateWithHost lk.salyk.kg:30040 [17:08:13]ConnectInit lk.salyk.kg [17:08:14]Connected sock=7 [17:08: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 89 FC 04 01 7C C9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 05 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 68 FF 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 02 01 A1 61 06 A1 F1 E2 80 43 EE CE 83 95 [17:08: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 19 1D 47 00 C6 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 C1 F1 02 00 F4 03 04 00 3C BB 20 67 B6 04 01 00 00 A6 C0 66 09 83 90 82 65 [17:08:14]CommunicateWithHost err = 0 [17:08:14]CheckOFDResponse [17:08:14]1017 (14) - 77093643461234 [17:08:14]1041 (16) - 0000000000871754 [17:08:14]1040 (4) - 192961 [17:08:14]1012 (4) - 29.10.2024 10:38 [17:08:14]1206 (1) - 0 [17:08:14]OFD Sender: Remove packet 192961 [17:08:14]ProducePacketName [17:08:14]name=ofd_packets/00192961 [17:08:14]NVStorageDeleteData [17:08:14]OFD Sender: Processing packet 192962 [packets to send 116, broken 74] [17:08:14]ProducePacketName [17:08:14]name=ofd_packets/00192962 [17:08:14]OFD Sender: To server: ‡•öpG, [17:08:14]CommunicateWithHost lk.salyk.kg:30040 [17:08:14]ConnectInit lk.salyk.kg [17:08:14]Connected sock=7 [17:08: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 81 02 07 01 11 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 C1 FF 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 E8 6A 64 AA EC E6 13 5C D6 EC 55 7A 76 D2 [17:08: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 9D 28 47 00 10 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 C2 F1 02 00 F4 03 04 00 3D BB 20 67 B6 04 01 00 00 A1 C2 90 B7 8D 81 EC 16 [17:08:15]CommunicateWithHost err = 0 [17:08:15]CheckOFDResponse [17:08:15]1017 (14) - 77093643461234 [17:08:15]1041 (16) - 0000000000871754 [17:08:15]1040 (4) - 192962 [17:08:15]1012 (4) - 29.10.2024 10:38 [17:08:15]1206 (1) - 0 [17:08:15]OFD Sender: Remove packet 192962 [17:08:15]ProducePacketName [17:08:15]name=ofd_packets/00192962 [17:08:15]NVStorageDeleteData [17:08:15]OFD Sender: Processing packet 192963 [packets to send 115, broken 74] [17:08:15]ProducePacketName [17:08:15]name=ofd_packets/00192963 [17:08:15]OFD Sender: To server: ‡•öpG, [17:08:15]CommunicateWithHost lk.salyk.kg:30040 [17:08:15]ConnectInit lk.salyk.kg [17:08:15]Connected sock=7 [17:08: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 0C DF 04 01 57 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 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 A9 00 00 00 F4 03 04 00 11 01 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 A3 49 1A BA CC C2 AC 32 10 DE EC 38 13 E0 [17:08: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 F3 76 47 00 96 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 C3 F1 02 00 F4 03 04 00 3E BB 20 67 B6 04 01 00 00 56 DF D8 70 21 E2 8E C2 [17:08:15]CommunicateWithHost err = 0 [17:08:15]CheckOFDResponse [17:08:15]1017 (14) - 77093643461234 [17:08:15]1041 (16) - 0000000000871754 [17:08:15]1040 (4) - 192963 [17:08:15]1012 (4) - 29.10.2024 10:38 [17:08:15]1206 (1) - 0 [17:08:15]OFD Sender: Remove packet 192963 [17:08:15]ProducePacketName [17:08:15]name=ofd_packets/00192963 [17:08:15]NVStorageDeleteData [17:08:16]OFD Sender: Processing packet 192964 [packets to send 114, broken 74] [17:08:16]ProducePacketName [17:08:16]name=ofd_packets/00192964 [17:08:16]OFD Sender: To server: ‡•öpG, [17:08:16]CommunicateWithHost lk.salyk.kg:30040 [17:08:16]ConnectInit lk.salyk.kg [17:08:16]Connected sock=7 [17:08: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 F3 4A 04 01 3F 34 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 AA 00 00 00 F4 03 04 00 CD 01 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 75 F4 CA A7 0E 98 D4 66 9B 9E 28 E5 1E 26 [17:08: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 AA 02 47 00 BB 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C4 F1 02 00 F4 03 04 00 3E BB 20 67 B6 04 01 00 00 EE 6F 2F A9 D7 DF 5C 92 [17:08:16]CommunicateWithHost err = 0 [17:08:16]CheckOFDResponse [17:08:16]1017 (14) - 77093643461234 [17:08:16]1041 (16) - 0000000000871754 [17:08:16]1040 (4) - 192964 [17:08:16]1012 (4) - 29.10.2024 10:38 [17:08:16]1206 (1) - 0 [17:08:16]OFD Sender: Remove packet 192964 [17:08:16]ProducePacketName [17:08:16]name=ofd_packets/00192964 [17:08:16]NVStorageDeleteData [17:08:17]OFD Sender: Processing packet 192965 [packets to send 113, broken 74] [17:08:17]ProducePacketName [17:08:17]name=ofd_packets/00192965 [17:08:17]OFD Sender: To server: ‡•öpG, [17:08:17]CommunicateWithHost lk.salyk.kg:30040 [17:08:17]ConnectInit lk.salyk.kg [17:08:17]Connected sock=7 [17:08: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 CD 24 07 01 22 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 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 AB 00 00 00 F4 03 04 00 D7 01 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 23 35 C0 E1 AB 1A B6 B1 A9 12 0D 37 83 1C [17:08: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 07 C5 47 00 84 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 C5 F1 02 00 F4 03 04 00 3F BB 20 67 B6 04 01 00 00 F6 52 66 49 6E 4E 81 76 [17:08:17]CommunicateWithHost err = 0 [17:08:17]CheckOFDResponse [17:08:17]1017 (14) - 77093643461234 [17:08:17]1041 (16) - 0000000000871754 [17:08:17]1040 (4) - 192965 [17:08:17]1012 (4) - 29.10.2024 10:38 [17:08:17]1206 (1) - 0 [17:08:17]OFD Sender: Remove packet 192965 [17:08:17]ProducePacketName [17:08:17]name=ofd_packets/00192965 [17:08:17]NVStorageDeleteData [17:08:18]OFD Sender: Processing packet 192966 [packets to send 112, broken 74] [17:08:18]ProducePacketName [17:08:18]name=ofd_packets/00192966 [17:08:18]OFD Sender: To server: ‡•öpG, [17:08:18]CommunicateWithHost lk.salyk.kg:30040 [17:08:18]ConnectInit lk.salyk.kg [17:08:18]Connected sock=7 [17:08:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2E BC 07 01 06 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 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 AC 00 00 00 F4 03 04 00 16 02 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 F1 81 CB D4 7D 4E 38 33 D0 DF 16 10 2C E7 [17:08:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 B2 52 47 00 83 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C6 F1 02 00 F4 03 04 00 40 BB 20 67 B6 04 01 00 00 A9 55 21 16 21 68 5F 9E [17:08:18]CommunicateWithHost err = 0 [17:08:18]CheckOFDResponse [17:08:18]1017 (14) - 77093643461234 [17:08:18]1041 (16) - 0000000000871754 [17:08:18]1040 (4) - 192966 [17:08:18]1012 (4) - 29.10.2024 10:38 [17:08:18]1206 (1) - 0 [17:08:18]OFD Sender: Remove packet 192966 [17:08:18]ProducePacketName [17:08:18]name=ofd_packets/00192966 [17:08:18]NVStorageDeleteData [17:08:18]OFD Sender: Processing packet 192967 [packets to send 111, broken 74] [17:08:18]ProducePacketName [17:08:18]name=ofd_packets/00192967 [17:08:18]OFD Sender: To server: ‡•öpG, [17:08:18]CommunicateWithHost lk.salyk.kg:30040 [17:08:18]ConnectInit lk.salyk.kg [17:08:19]Connected sock=7 [17:08: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 06 E5 04 01 8C 1D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 AD 00 00 00 F4 03 04 00 99 02 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 BE AB D6 8E 96 E3 C2 16 C5 A0 F5 A4 AD 58 [17:08: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 DD 0E 47 00 A4 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 C7 F1 02 00 F4 03 04 00 41 BB 20 67 B6 04 01 00 00 AC BC A6 9B F3 C5 92 B9 [17:08:19]CommunicateWithHost err = 0 [17:08:19]CheckOFDResponse [17:08:19]1017 (14) - 77093643461234 [17:08:19]1041 (16) - 0000000000871754 [17:08:19]1040 (4) - 192967 [17:08:19]1012 (4) - 29.10.2024 10:38 [17:08:19]1206 (1) - 0 [17:08:19]OFD Sender: Remove packet 192967 [17:08:19]ProducePacketName [17:08:19]name=ofd_packets/00192967 [17:08:19]NVStorageDeleteData [17:08:19]OFD Sender: Processing packet 192968 [packets to send 110, broken 74] [17:08:19]ProducePacketName [17:08:19]name=ofd_packets/00192968 [17:08:19]OFD Sender: To server: ‡•öpG, [17:08:19]CommunicateWithHost lk.salyk.kg:30040 [17:08:19]ConnectInit lk.salyk.kg [17:08:19]Connected sock=7 [17:08: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 DC D8 07 01 B9 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 08 03 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 A1 BE EE CA B6 C3 EC 2D BB 99 F6 BD D5 7F [17:08: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 E9 D1 47 00 6B 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 C8 F1 02 00 F4 03 04 00 42 BB 20 67 B6 04 01 00 00 EC 10 35 9D 29 A9 02 E6 [17:08:20]CommunicateWithHost err = 0 [17:08:20]CheckOFDResponse [17:08:20]1017 (14) - 77093643461234 [17:08:20]1041 (16) - 0000000000871754 [17:08:20]1040 (4) - 192968 [17:08:20]1012 (4) - 29.10.2024 10:38 [17:08:20]1206 (1) - 0 [17:08:20]OFD Sender: Remove packet 192968 [17:08:20]ProducePacketName [17:08:20]name=ofd_packets/00192968 [17:08:20]NVStorageDeleteData [17:08:20]OFD Sender: Processing packet 192969 [packets to send 109, broken 74] [17:08:20]ProducePacketName [17:08:20]name=ofd_packets/00192969 [17:08:20]OFD Sender: To server: ‡•öpG, [17:08:20]CommunicateWithHost lk.salyk.kg:30040 [17:08:20]ConnectInit lk.salyk.kg [17:08:20]Connected sock=7 [17:08: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 A3 1A 07 01 0C E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 AF 00 00 00 F4 03 04 00 4F 04 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 29 32 D8 C8 EF A4 8C 13 6A 87 F4 F4 84 B5 [17:08: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 71 52 47 00 7F 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C9 F1 02 00 F4 03 04 00 43 BB 20 67 B6 04 01 00 00 3E F9 7B 3E BD AD 7E 7E [17:08:20]CommunicateWithHost err = 0 [17:08:20]CheckOFDResponse [17:08:20]1017 (14) - 77093643461234 [17:08:20]1041 (16) - 0000000000871754 [17:08:20]1040 (4) - 192969 [17:08:20]1012 (4) - 29.10.2024 10:38 [17:08:20]1206 (1) - 0 [17:08:20]OFD Sender: Remove packet 192969 [17:08:20]ProducePacketName [17:08:20]name=ofd_packets/00192969 [17:08:20]NVStorageDeleteData [17:08:21]OFD Sender: Processing packet 192970 [packets to send 108, broken 74] [17:08:21]ProducePacketName [17:08:21]name=ofd_packets/00192970 [17:08:21]OFD Sender: To server: ‡•öpG, [17:08:21]CommunicateWithHost lk.salyk.kg:30040 [17:08:21]ConnectInit lk.salyk.kg [17:08:21]Connected sock=7 [17:08: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 57 2B 07 01 54 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 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 B0 00 00 00 F4 03 04 00 93 04 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 74 F1 E5 E5 93 DB D5 67 1B 5C 7F 1B 87 6C [17:08: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 78 B0 47 00 1B 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 CA F1 02 00 F4 03 04 00 43 BB 20 67 B6 04 01 00 00 5B F3 7B 56 BF 6D BE FC [17:08:21]CommunicateWithHost err = 0 [17:08:21]CheckOFDResponse [17:08:21]1017 (14) - 77093643461234 [17:08:21]1041 (16) - 0000000000871754 [17:08:21]1040 (4) - 192970 [17:08:21]1012 (4) - 29.10.2024 10:38 [17:08:21]1206 (1) - 0 [17:08:21]OFD Sender: Remove packet 192970 [17:08:21]ProducePacketName [17:08:21]name=ofd_packets/00192970 [17:08:21]NVStorageDeleteData [17:08:22]OFD Sender: Processing packet 192971 [packets to send 107, broken 74] [17:08:22]ProducePacketName [17:08:22]name=ofd_packets/00192971 [17:08:22]OFD Sender: To server: ‡•öpG, [17:08:22]CommunicateWithHost lk.salyk.kg:30040 [17:08:22]ConnectInit lk.salyk.kg [17:08:22]Connected sock=9 [17:08: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 57 93 07 01 86 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B1 00 00 00 F4 03 04 00 CA 04 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 32 58 B2 48 67 9C 01 CA 9D E5 E0 E4 7A B4 [17:08: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 E3 E2 47 00 09 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 CB F1 02 00 F4 03 04 00 44 BB 20 67 B6 04 01 00 00 41 A9 4D 5C F4 D6 74 38 [17:08:22]CommunicateWithHost err = 0 [17:08:22]CheckOFDResponse [17:08:22]1017 (14) - 77093643461234 [17:08:22]1041 (16) - 0000000000871754 [17:08:22]1040 (4) - 192971 [17:08:22]1012 (4) - 29.10.2024 10:39 [17:08:22]1206 (1) - 0 [17:08:22]OFD Sender: Remove packet 192971 [17:08:22]ProducePacketName [17:08:22]name=ofd_packets/00192971 [17:08:22]NVStorageDeleteData [17:08:23]OFD Sender: Processing packet 192972 [packets to send 106, broken 74] [17:08:23]ProducePacketName [17:08:23]name=ofd_packets/00192972 [17:08:23]OFD Sender: To server: ‡•öpG, [17:08:23]CommunicateWithHost lk.salyk.kg:30040 [17:08:23]ConnectInit lk.salyk.kg [17:08:23]Connected sock=7 [17:08: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 43 96 04 01 15 13 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 B2 00 00 00 F4 03 04 00 20 05 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 77 3D 50 E7 46 5C A5 7A D7 F1 90 E7 30 26 [17:08: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 5F A4 47 00 97 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CC F1 02 00 F4 03 04 00 45 BB 20 67 B6 04 01 00 00 37 2D B1 86 86 6D 0E 66 [17:08:23]CommunicateWithHost err = 0 [17:08:23]CheckOFDResponse [17:08:23]1017 (14) - 77093643461234 [17:08:23]1041 (16) - 0000000000871754 [17:08:23]1040 (4) - 192972 [17:08:23]1012 (4) - 29.10.2024 10:39 [17:08:23]1206 (1) - 0 [17:08:23]OFD Sender: Remove packet 192972 [17:08:23]ProducePacketName [17:08:23]name=ofd_packets/00192972 [17:08:23]NVStorageDeleteData [17:08:23]OFD Sender: Processing packet 192973 [packets to send 105, broken 74] [17:08:23]ProducePacketName [17:08:23]name=ofd_packets/00192973 [17:08:23]OFD Sender: To server: ‡•öpG, [17:08:23]CommunicateWithHost lk.salyk.kg:30040 [17:08:23]ConnectInit lk.salyk.kg [17:08:24]Connected sock=7 [17:08: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 C8 21 07 01 84 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 3E 05 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 D3 7E 26 BD 80 08 86 43 1D 9F A7 31 29 D4 [17:08: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 04 A9 47 00 C0 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 CD F1 02 00 F4 03 04 00 46 BB 20 67 B6 04 01 00 00 FD 7C 9D 0D F7 F0 8B B5 [17:08:24]CommunicateWithHost err = 0 [17:08:24]CheckOFDResponse [17:08:24]1017 (14) - 77093643461234 [17:08:24]1041 (16) - 0000000000871754 [17:08:24]1040 (4) - 192973 [17:08:24]1012 (4) - 29.10.2024 10:39 [17:08:24]1206 (1) - 0 [17:08:24]OFD Sender: Remove packet 192973 [17:08:24]ProducePacketName [17:08:24]name=ofd_packets/00192973 [17:08:24]NVStorageDeleteData [17:08:24]OFD Sender: Processing packet 192974 [packets to send 104, broken 74] [17:08:24]ProducePacketName [17:08:24]name=ofd_packets/00192974 [17:08:24]OFD Sender: To server: ‡•öpG, [17:08:24]CommunicateWithHost lk.salyk.kg:30040 [17:08:24]ConnectInit lk.salyk.kg [17:08:24]Connected sock=7 [17:08: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 1A F9 07 01 BF 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 A2 05 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 8D DD 67 45 01 2F 56 F4 9E C7 C4 09 0E CB [17:08: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 9C E3 47 00 25 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CE F1 02 00 F4 03 04 00 47 BB 20 67 B6 04 01 00 00 0D 04 06 11 B4 4D 73 BE [17:08:25]CommunicateWithHost err = 0 [17:08:25]CheckOFDResponse [17:08:25]1017 (14) - 77093643461234 [17:08:25]1041 (16) - 0000000000871754 [17:08:25]1040 (4) - 192974 [17:08:25]1012 (4) - 29.10.2024 10:39 [17:08:25]1206 (1) - 0 [17:08:25]OFD Sender: Remove packet 192974 [17:08:25]ProducePacketName [17:08:25]name=ofd_packets/00192974 [17:08:25]NVStorageDeleteData [17:08:25]OFD Sender: Processing packet 192975 [packets to send 103, broken 74] [17:08:25]ProducePacketName [17:08:25]name=ofd_packets/00192975 [17:08:25]OFD Sender: To server: ‡•öpG, [17:08:25]CommunicateWithHost lk.salyk.kg:30040 [17:08:25]ConnectInit lk.salyk.kg [17:08:25]Connected sock=7 [17:08: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 AD 17 07 01 67 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 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 B5 00 00 00 F4 03 04 00 55 06 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 43 83 EE C9 1F 18 20 EA 28 13 B5 30 ED 95 [17:08: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 D4 D0 47 00 B7 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 CF F1 02 00 F4 03 04 00 48 BB 20 67 B6 04 01 00 00 16 A7 EC 84 6B 3C DD 5D [17:08:25]CommunicateWithHost err = 0 [17:08:25]CheckOFDResponse [17:08:25]1017 (14) - 77093643461234 [17:08:25]1041 (16) - 0000000000871754 [17:08:25]1040 (4) - 192975 [17:08:25]1012 (4) - 29.10.2024 10:39 [17:08:25]1206 (1) - 0 [17:08:25]OFD Sender: Remove packet 192975 [17:08:25]ProducePacketName [17:08:25]name=ofd_packets/00192975 [17:08:25]NVStorageDeleteData [17:08:26]OFD Sender: Processing packet 192976 [packets to send 102, broken 74] [17:08:26]ProducePacketName [17:08:26]name=ofd_packets/00192976 [17:08:26]OFD Sender: To server: ‡•öpG, [17:08:26]CommunicateWithHost lk.salyk.kg:30040 [17:08:26]ConnectInit lk.salyk.kg [17:08:26]Connected sock=7 [17:08:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 71 B5 07 01 1D 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 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 B6 00 00 00 F4 03 04 00 B5 06 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 F7 B1 54 EE A4 45 D7 A1 E6 48 F6 D6 AA C5 [17:08: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 0E FA 47 00 59 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D0 F1 02 00 F4 03 04 00 49 BB 20 67 B6 04 01 00 00 98 C5 3F E5 29 A4 2E 32 [17:08:26]CommunicateWithHost err = 0 [17:08:26]CheckOFDResponse [17:08:26]1017 (14) - 77093643461234 [17:08:26]1041 (16) - 0000000000871754 [17:08:26]1040 (4) - 192976 [17:08:26]1012 (4) - 29.10.2024 10:39 [17:08:26]1206 (1) - 0 [17:08:26]OFD Sender: Remove packet 192976 [17:08:26]ProducePacketName [17:08:26]name=ofd_packets/00192976 [17:08:26]NVStorageDeleteData [17:08:27]OFD Sender: Processing packet 192977 [packets to send 101, broken 74] [17:08:27]ProducePacketName [17:08:27]name=ofd_packets/00192977 [17:08:27]OFD Sender: To server: ‡•öpG, [17:08:27]CommunicateWithHost lk.salyk.kg:30040 [17:08:27]ConnectInit lk.salyk.kg [17:08:27]Connected sock=7 [17:08:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8E E6 07 01 28 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 37 07 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 3F AB B0 85 82 E3 24 B4 D9 35 93 4A 26 7B [17:08:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 B0 1B 47 00 95 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D1 F1 02 00 F4 03 04 00 49 BB 20 67 B6 04 01 00 00 FA 1D EA 2C 84 37 AC 60 [17:08:27]CommunicateWithHost err = 0 [17:08:27]CheckOFDResponse [17:08:27]1017 (14) - 77093643461234 [17:08:27]1041 (16) - 0000000000871754 [17:08:27]1040 (4) - 192977 [17:08:27]1012 (4) - 29.10.2024 10:39 [17:08:27]1206 (1) - 0 [17:08:27]OFD Sender: Remove packet 192977 [17:08:27]ProducePacketName [17:08:27]name=ofd_packets/00192977 [17:08:27]NVStorageDeleteData [17:08:28]OFD Sender: Processing packet 192978 [packets to send 100, broken 74] [17:08:28]ProducePacketName [17:08:28]name=ofd_packets/00192978 [17:08:28]OFD Sender: To server: ‡•öpG, [17:08:28]CommunicateWithHost lk.salyk.kg:30040 [17:08:28]ConnectInit lk.salyk.kg [17:08:28]Connected sock=7 [17:08: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 51 90 07 01 60 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 1E 69 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 B9 B4 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 B4 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 49 00 00 00 00 07 04 06 00 94 B4 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 56 07 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 9D F2 2F 6A 96 17 6E 17 24 7A 2B 0A 09 5C [17:08:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 5D 0F 47 00 DE B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D2 F1 02 00 F4 03 04 00 4A BB 20 67 B6 04 01 00 00 BF DF 7D 01 D4 C0 74 B8 [17:08:28]CommunicateWithHost err = 0 [17:08:28]CheckOFDResponse [17:08:28]1017 (14) - 77093643461234 [17:08:28]1041 (16) - 0000000000871754 [17:08:28]1040 (4) - 192978 [17:08:28]1012 (4) - 29.10.2024 10:39 [17:08:28]1206 (1) - 0 [17:08:28]OFD Sender: Remove packet 192978 [17:08:28]ProducePacketName [17:08:28]name=ofd_packets/00192978 [17:08:28]NVStorageDeleteData [17:08:28]OFD Sender: Processing packet 192979 [packets to send 99, broken 74] [17:08:28]ProducePacketName [17:08:28]name=ofd_packets/00192979 [17:08:28]OFD Sender: To server: ‡•öpG, [17:08:28]CommunicateWithHost lk.salyk.kg:30040 [17:08:28]ConnectInit lk.salyk.kg [17:08:29]Connected sock=7 [17:08: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 FB 95 07 01 3F 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 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 B9 00 00 00 F4 03 04 00 86 07 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 AD 83 C5 60 66 B2 97 35 C1 AC B2 76 56 5A [17:08: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 CB E7 47 00 81 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 D3 F1 02 00 F4 03 04 00 4B BB 20 67 B6 04 01 00 00 54 7E 39 B4 85 BE B7 1A [17:08:29]CommunicateWithHost err = 0 [17:08:29]CheckOFDResponse [17:08:29]1017 (14) - 77093643461234 [17:08:29]1041 (16) - 0000000000871754 [17:08:29]1040 (4) - 192979 [17:08:29]1012 (4) - 29.10.2024 10:39 [17:08:29]1206 (1) - 0 [17:08:29]OFD Sender: Remove packet 192979 [17:08:29]ProducePacketName [17:08:29]name=ofd_packets/00192979 [17:08:29]NVStorageDeleteData [17:08:29]OFD Sender: Processing packet 192980 [packets to send 98, broken 74] [17:08:29]ProducePacketName [17:08:29]name=ofd_packets/00192980 [17:08:29]OFD Sender: To server: ‡•öpG, [17:08:29]CommunicateWithHost lk.salyk.kg:30040 [17:08:29]ConnectInit lk.salyk.kg [17:08:29]Connected sock=7 [17:08: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 86 90 07 01 C5 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 BA 00 00 00 F4 03 04 00 2A 09 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 C2 B7 47 AC E8 E0 ED 75 DA 9B E5 A4 F1 53 [17:08: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 4B 13 47 00 18 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 D4 F1 02 00 F4 03 04 00 4C BB 20 67 B6 04 01 00 00 0F FD 8B F6 69 1A 1A 77 [17:08:30]CommunicateWithHost err = 0 [17:08:30]CheckOFDResponse [17:08:30]1017 (14) - 77093643461234 [17:08:30]1041 (16) - 0000000000871754 [17:08:30]1040 (4) - 192980 [17:08:30]1012 (4) - 29.10.2024 10:39 [17:08:30]1206 (1) - 0 [17:08:30]OFD Sender: Remove packet 192980 [17:08:30]ProducePacketName [17:08:30]name=ofd_packets/00192980 [17:08:30]NVStorageDeleteData [17:08:30]OFD Sender: Processing packet 192981 [packets to send 97, broken 74] [17:08:30]ProducePacketName [17:08:30]name=ofd_packets/00192981 [17:08:30]OFD Sender: To server: ‡•öpG, [17:08:30]CommunicateWithHost lk.salyk.kg:30040 [17:08:30]ConnectInit lk.salyk.kg [17:08:30]Connected sock=7 [17:08:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6B 84 07 01 DB 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 7E 09 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 41 EC E7 94 51 21 23 5C D4 BF 21 28 23 B7 [17:08: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 DA 90 47 00 71 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 D5 F1 02 00 F4 03 04 00 4D BB 20 67 B6 04 01 00 00 B1 89 55 6A 49 CF E8 F4 [17:08:30]CommunicateWithHost err = 0 [17:08:30]CheckOFDResponse [17:08:30]1017 (14) - 77093643461234 [17:08:30]1041 (16) - 0000000000871754 [17:08:30]1040 (4) - 192981 [17:08:30]1012 (4) - 29.10.2024 10:39 [17:08:30]1206 (1) - 0 [17:08:30]OFD Sender: Remove packet 192981 [17:08:30]ProducePacketName [17:08:30]name=ofd_packets/00192981 [17:08:30]NVStorageDeleteData [17:08:31]OFD Sender: Processing packet 192982 [packets to send 96, broken 74] [17:08:31]ProducePacketName [17:08:31]name=ofd_packets/00192982 [17:08:31]OFD Sender: To server: ‡•öpG, [17:08:31]CommunicateWithHost lk.salyk.kg:30040 [17:08:31]ConnectInit lk.salyk.kg [17:08:31]Connected sock=7 [17:08: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 AE 28 07 01 A4 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 DC 09 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 C3 42 2A 82 A7 29 39 92 70 92 66 5A E1 E7 [17:08: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 F3 AB 47 00 69 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 D6 F1 02 00 F4 03 04 00 4E BB 20 67 B6 04 01 00 00 3C E5 52 92 0A F5 C1 2F [17:08:31]CommunicateWithHost err = 0 [17:08:31]CheckOFDResponse [17:08:31]1017 (14) - 77093643461234 [17:08:31]1041 (16) - 0000000000871754 [17:08:31]1040 (4) - 192982 [17:08:31]1012 (4) - 29.10.2024 10:39 [17:08:31]1206 (1) - 0 [17:08:31]OFD Sender: Remove packet 192982 [17:08:31]ProducePacketName [17:08:31]name=ofd_packets/00192982 [17:08:31]NVStorageDeleteData [17:08:32]OFD Sender: Processing packet 192983 [packets to send 95, broken 74] [17:08:32]ProducePacketName [17:08:32]name=ofd_packets/00192983 [17:08:32]OFD Sender: To server: ‡•öpG, [17:08:32]CommunicateWithHost lk.salyk.kg:30040 [17:08:32]ConnectInit lk.salyk.kg [17:08:32]Connected sock=7 [17:08: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 6E 8D 04 01 14 D6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DE 66 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 91 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 91 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 22 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 91 AE 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 5A 0A 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 8C D8 08 30 7D 1A 8D 4A 4D A4 A0 A7 1B B6 [17:08: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 4A 42 47 00 DA 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 D7 F1 02 00 F4 03 04 00 4E BB 20 67 B6 04 01 00 00 AC 8A 75 82 6B 7B EB A5 [17:08:32]CommunicateWithHost err = 0 [17:08:32]CheckOFDResponse [17:08:32]1017 (14) - 77093643461234 [17:08:32]1041 (16) - 0000000000871754 [17:08:32]1040 (4) - 192983 [17:08:32]1012 (4) - 29.10.2024 10:39 [17:08:32]1206 (1) - 0 [17:08:32]OFD Sender: Remove packet 192983 [17:08:32]ProducePacketName [17:08:32]name=ofd_packets/00192983 [17:08:32]NVStorageDeleteData [17:08:33]OFD Sender: Processing packet 192984 [packets to send 94, broken 74] [17:08:33]ProducePacketName [17:08:33]name=ofd_packets/00192984 [17:08:33]OFD Sender: To server: ‡•öpG, [17:08:33]CommunicateWithHost lk.salyk.kg:30040 [17:08:33]ConnectInit lk.salyk.kg [17:08:33]Connected sock=7 [17:08:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0C 7A 07 01 BA 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 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 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 F9 0A 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 A1 EA 12 6E A6 03 A1 06 9F 3F DC 5D D5 A3 [17:08:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 99 37 47 00 54 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 D8 F1 02 00 F4 03 04 00 4F BB 20 67 B6 04 01 00 00 A6 F1 42 41 10 8C F1 4D [17:08:33]CommunicateWithHost err = 0 [17:08:33]CheckOFDResponse [17:08:33]1017 (14) - 77093643461234 [17:08:33]1041 (16) - 0000000000871754 [17:08:33]1040 (4) - 192984 [17:08:33]1012 (4) - 29.10.2024 10:39 [17:08:33]1206 (1) - 0 [17:08:33]OFD Sender: Remove packet 192984 [17:08:33]ProducePacketName [17:08:33]name=ofd_packets/00192984 [17:08:33]NVStorageDeleteData [17:08:33]OFD Sender: Processing packet 192985 [packets to send 93, broken 74] [17:08:33]ProducePacketName [17:08:33]name=ofd_packets/00192985 [17:08:33]OFD Sender: To server: ‡•öpG, [17:08:33]CommunicateWithHost lk.salyk.kg:30040 [17:08:33]ConnectInit lk.salyk.kg [17:08:34]Connected sock=7 [17:08: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 21 D9 07 01 E9 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 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 BF 00 00 00 F4 03 04 00 3D 0B 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 3C 53 3C 19 16 2F 2A 5C 33 FD 3E A8 AB 4F [17:08: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 68 0F 47 00 09 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 D9 F1 02 00 F4 03 04 00 50 BB 20 67 B6 04 01 00 00 E2 5A 47 69 B0 D3 69 DC [17:08:34]CommunicateWithHost err = 0 [17:08:34]CheckOFDResponse [17:08:34]1017 (14) - 77093643461234 [17:08:34]1041 (16) - 0000000000871754 [17:08:34]1040 (4) - 192985 [17:08:34]1012 (4) - 29.10.2024 10:39 [17:08:34]1206 (1) - 0 [17:08:34]OFD Sender: Remove packet 192985 [17:08:34]ProducePacketName [17:08:34]name=ofd_packets/00192985 [17:08:34]NVStorageDeleteData [17:08:34]OFD Sender: Processing packet 192986 [packets to send 92, broken 74] [17:08:34]ProducePacketName [17:08:34]name=ofd_packets/00192986 [17:08:34]OFD Sender: To server: ‡•öpG, [17:08:34]CommunicateWithHost lk.salyk.kg:30040 [17:08:34]ConnectInit lk.salyk.kg [17:08:34]Connected sock=7 [17:08: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 AE 44 07 01 BF 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 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 C0 00 00 00 F4 03 04 00 A2 0B 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 AE F0 F8 35 6C 7E A3 6A D9 A6 06 60 19 87 [17:08: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 1B 07 47 00 D6 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 DA F1 02 00 F4 03 04 00 51 BB 20 67 B6 04 01 00 00 B1 77 BC 5C 81 16 5B 16 [17:08:35]CommunicateWithHost err = 0 [17:08:35]CheckOFDResponse [17:08:35]1017 (14) - 77093643461234 [17:08:35]1041 (16) - 0000000000871754 [17:08:35]1040 (4) - 192986 [17:08:35]1012 (4) - 29.10.2024 10:39 [17:08:35]1206 (1) - 0 [17:08:35]OFD Sender: Remove packet 192986 [17:08:35]ProducePacketName [17:08:35]name=ofd_packets/00192986 [17:08:35]NVStorageDeleteData [17:08:35]OFD Sender: Processing packet 192987 [packets to send 91, broken 74] [17:08:35]ProducePacketName [17:08:35]name=ofd_packets/00192987 [17:08:35]OFD Sender: To server: ‡•öpG, [17:08:35]CommunicateWithHost lk.salyk.kg:30040 [17:08:35]ConnectInit lk.salyk.kg [17:08:35]Connected sock=7 [17:08:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C8 33 07 01 C3 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 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 C1 00 00 00 F4 03 04 00 18 0C 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 4F 45 B5 B8 F9 7B A2 9E B7 8B 2C 47 C1 3D [17:08: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 1B 4F 47 00 12 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DB F1 02 00 F4 03 04 00 52 BB 20 67 B6 04 01 00 00 6A 90 4A 26 CF 4D 97 D4 [17:08:35]CommunicateWithHost err = 0 [17:08:35]CheckOFDResponse [17:08:35]1017 (14) - 77093643461234 [17:08:35]1041 (16) - 0000000000871754 [17:08:35]1040 (4) - 192987 [17:08:35]1012 (4) - 29.10.2024 10:39 [17:08:35]1206 (1) - 0 [17:08:35]OFD Sender: Remove packet 192987 [17:08:35]ProducePacketName [17:08:35]name=ofd_packets/00192987 [17:08:35]NVStorageDeleteData [17:08:36]OFD Sender: Processing packet 192988 [packets to send 90, broken 74] [17:08:36]ProducePacketName [17:08:36]name=ofd_packets/00192988 [17:08:36]OFD Sender: To server: ‡•öpG, [17:08:36]CommunicateWithHost lk.salyk.kg:30040 [17:08:36]ConnectInit lk.salyk.kg [17:08:36]Connected sock=7 [17:08:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 6B 12 04 01 41 2C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 4A 0C 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 B8 7D B5 C0 28 2F A6 EA CC B0 E8 DB B9 61 [17:08:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 EC F3 47 00 0D 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 DC F1 02 00 F4 03 04 00 53 BB 20 67 B6 04 01 00 00 F4 CC 5C 99 C2 83 B1 03 [17:08:36]CommunicateWithHost err = 0 [17:08:36]CheckOFDResponse [17:08:36]1017 (14) - 77093643461234 [17:08:36]1041 (16) - 0000000000871754 [17:08:36]1040 (4) - 192988 [17:08:36]1012 (4) - 29.10.2024 10:39 [17:08:36]1206 (1) - 0 [17:08:36]OFD Sender: Remove packet 192988 [17:08:36]ProducePacketName [17:08:36]name=ofd_packets/00192988 [17:08:36]NVStorageDeleteData [17:08:37]OFD Sender: Processing packet 192989 [packets to send 89, broken 74] [17:08:37]ProducePacketName [17:08:37]name=ofd_packets/00192989 [17:08:37]OFD Sender: To server: ‡•öpG, [17:08:37]CommunicateWithHost lk.salyk.kg:30040 [17:08:37]ConnectInit lk.salyk.kg [17:08:37]Connected sock=7 [17:08: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 21 BA 07 01 B8 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 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 C3 00 00 00 F4 03 04 00 CC 0C 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 FD 27 A9 1F C4 B1 0B D4 3B C8 D9 EE D9 38 [17:08:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 B6 E8 47 00 F5 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 DD F1 02 00 F4 03 04 00 53 BB 20 67 B6 04 01 00 00 29 7F EA 04 B3 CE 39 C5 [17:08:37]CommunicateWithHost err = 0 [17:08:37]CheckOFDResponse [17:08:37]1017 (14) - 77093643461234 [17:08:37]1041 (16) - 0000000000871754 [17:08:37]1040 (4) - 192989 [17:08:37]1012 (4) - 29.10.2024 10:39 [17:08:37]1206 (1) - 0 [17:08:37]OFD Sender: Remove packet 192989 [17:08:37]ProducePacketName [17:08:37]name=ofd_packets/00192989 [17:08:37]NVStorageDeleteData [17:08:38]OFD Sender: Processing packet 192990 [packets to send 88, broken 74] [17:08:38]ProducePacketName [17:08:38]name=ofd_packets/00192990 [17:08:38]OFD Sender: To server: ‡•öpG, [17:08:38]CommunicateWithHost lk.salyk.kg:30040 [17:08:38]ConnectInit lk.salyk.kg [17:08:38]Connected sock=9 [17: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 D4 BF 07 01 8A AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 C4 00 00 00 F4 03 04 00 2D 0D 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 3C 7D 1C 8F D3 C0 A1 16 52 32 38 83 A4 99 [17: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 AE 12 47 00 56 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DE F1 02 00 F4 03 04 00 54 BB 20 67 B6 04 01 00 00 6A 86 25 16 BD F3 F2 47 [17:08:38]CommunicateWithHost err = 0 [17:08:38]CheckOFDResponse [17:08:38]1017 (14) - 77093643461234 [17:08:38]1041 (16) - 0000000000871754 [17:08:38]1040 (4) - 192990 [17:08:38]1012 (4) - 29.10.2024 10:39 [17:08:38]1206 (1) - 0 [17:08:38]OFD Sender: Remove packet 192990 [17:08:38]ProducePacketName [17:08:38]name=ofd_packets/00192990 [17:08:38]NVStorageDeleteData [17:08:38]OFD Sender: Processing packet 192991 [packets to send 87, broken 74] [17:08:38]ProducePacketName [17:08:38]name=ofd_packets/00192991 [17:08:38]OFD Sender: To server: ‡•öpG, [17:08:38]CommunicateWithHost lk.salyk.kg:30040 [17:08:38]ConnectInit lk.salyk.kg [17:08:39]Connected sock=7 [17: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 0C 01 00 00 D1 F1 04 01 32 8A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 C5 00 00 00 F4 03 04 00 B9 0D 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 24 81 44 7B 7D 50 43 CF 43 78 07 26 62 8D [17:08: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 B3 81 47 00 E5 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DF F1 02 00 F4 03 04 00 55 BB 20 67 B6 04 01 00 00 BB 8D 92 97 D4 74 E3 5B [17:08:39]CommunicateWithHost err = 0 [17:08:39]CheckOFDResponse [17:08:39]1017 (14) - 77093643461234 [17:08:39]1041 (16) - 0000000000871754 [17:08:39]1040 (4) - 192991 [17:08:39]1012 (4) - 29.10.2024 10:39 [17:08:39]1206 (1) - 0 [17:08:39]OFD Sender: Remove packet 192991 [17:08:39]ProducePacketName [17:08:39]name=ofd_packets/00192991 [17:08:39]NVStorageDeleteData [17:08:39]OFD Sender: Processing packet 192992 [packets to send 86, broken 74] [17:08:39]ProducePacketName [17:08:39]name=ofd_packets/00192992 [17:08:39]OFD Sender: To server: ‡•öpG, [17:08:39]CommunicateWithHost lk.salyk.kg:30040 [17:08:39]ConnectInit lk.salyk.kg [17:08:39]Connected sock=7 [17: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 2C DD 07 01 0F 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 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 C6 00 00 00 F4 03 04 00 6E 0E 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 D9 8A 4F 5A 29 10 22 9A 8D BE 70 EF 67 49 [17: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 27 E9 47 00 5D 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 E0 F1 02 00 F4 03 04 00 56 BB 20 67 B6 04 01 00 00 71 3F 5F CB D6 9F 43 27 [17:08:40]CommunicateWithHost err = 0 [17:08:40]CheckOFDResponse [17:08:40]1017 (14) - 77093643461234 [17:08:40]1041 (16) - 0000000000871754 [17:08:40]1040 (4) - 192992 [17:08:40]1012 (4) - 29.10.2024 10:39 [17:08:40]1206 (1) - 0 [17:08:40]OFD Sender: Remove packet 192992 [17:08:40]ProducePacketName [17:08:40]name=ofd_packets/00192992 [17:08:40]NVStorageDeleteData [17:08:40]OFD Sender: Processing packet 192993 [packets to send 85, broken 74] [17:08:40]ProducePacketName [17:08:40]name=ofd_packets/00192993 [17:08:40]OFD Sender: To server: ‡•öpG, [17:08:40]CommunicateWithHost lk.salyk.kg:30040 [17:08:40]ConnectInit lk.salyk.kg [17:08:40]Connected sock=7 [17:08: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 34 CF 07 01 3D 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 1C 0F 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 BA 5E C1 E9 95 A1 09 8C 52 37 47 77 68 54 [17:08: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 C7 47 47 00 3E 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E1 F1 02 00 F4 03 04 00 57 BB 20 67 B6 04 01 00 00 85 1B 8F EA 5E 43 FA E4 [17:08:41]CommunicateWithHost err = 0 [17:08:41]CheckOFDResponse [17:08:41]1017 (14) - 77093643461234 [17:08:41]1041 (16) - 0000000000871754 [17:08:41]1040 (4) - 192993 [17:08:41]1012 (4) - 29.10.2024 10:39 [17:08:41]1206 (1) - 0 [17:08:41]OFD Sender: Remove packet 192993 [17:08:41]ProducePacketName [17:08:41]name=ofd_packets/00192993 [17:08:41]NVStorageDeleteData [17:08:41]OFD Sender: Processing packet 192994 [packets to send 84, broken 74] [17:08:41]ProducePacketName [17:08:41]name=ofd_packets/00192994 [17:08:41]OFD Sender: To server: ‡•öpG, [17:08:41]CommunicateWithHost lk.salyk.kg:30040 [17:08:41]ConnectInit lk.salyk.kg [17:08:41]Connected sock=7 [17:08: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 5A B3 07 01 69 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 93 0F 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 D2 F4 6A 73 D0 23 3E 6B 8A 2A B0 56 8D 03 [17:08: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 EC 72 47 00 7E 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E2 F1 02 00 F4 03 04 00 58 BB 20 67 B6 04 01 00 00 89 39 BA 8F 18 B8 9E EA [17:08:41]CommunicateWithHost err = 0 [17:08:41]CheckOFDResponse [17:08:41]1017 (14) - 77093643461234 [17:08:41]1041 (16) - 0000000000871754 [17:08:41]1040 (4) - 192994 [17:08:41]1012 (4) - 29.10.2024 10:39 [17:08:41]1206 (1) - 0 [17:08:41]OFD Sender: Remove packet 192994 [17:08:41]ProducePacketName [17:08:41]name=ofd_packets/00192994 [17:08:41]NVStorageDeleteData [17:08:42]OFD Sender: Processing packet 192995 [packets to send 83, broken 74] [17:08:42]ProducePacketName [17:08:42]name=ofd_packets/00192995 [17:08:42]OFD Sender: To server: ‡•öpG, [17:08:42]CommunicateWithHost lk.salyk.kg:30040 [17:08:42]ConnectInit lk.salyk.kg [17:08:42]Connected sock=7 [17:08: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 0C 01 00 00 FF E3 04 01 E4 FB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 C9 00 00 00 F4 03 04 00 B3 0F 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 91 57 15 CD 01 5A 5B 7D 07 80 3E 77 35 11 [17:08: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 5C C4 47 00 EB 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 E3 F1 02 00 F4 03 04 00 58 BB 20 67 B6 04 01 00 00 3E 9D ED 1F 7E 76 E0 D0 [17:08:42]CommunicateWithHost err = 0 [17:08:42]CheckOFDResponse [17:08:42]1017 (14) - 77093643461234 [17:08:42]1041 (16) - 0000000000871754 [17:08:42]1040 (4) - 192995 [17:08:42]1012 (4) - 29.10.2024 10:39 [17:08:42]1206 (1) - 0 [17:08:42]OFD Sender: Remove packet 192995 [17:08:42]ProducePacketName [17:08:42]name=ofd_packets/00192995 [17:08:42]NVStorageDeleteData [17:08:43]OFD Sender: Processing packet 192996 [packets to send 82, broken 74] [17:08:43]ProducePacketName [17:08:43]name=ofd_packets/00192996 [17:08:43]OFD Sender: To server: ‡•öpG, [17:08:43]CommunicateWithHost lk.salyk.kg:30040 [17:08:43]ConnectInit lk.salyk.kg [17:09:03]accept exits with 10 [17:09:03]New connection [17:09:03]New thread 3067350372 created [17:09:03]Thread 3067207012 joined [17:09:03]Waiting for new connection... [17:09:03] Sock 10.Parse request [17:09:03]Sock 10.Check first char [17:09:03]Sock 10.First char is OK [17:09:03]request: POST /json_proto HTTP/1.0 [17:09:03]Method: POST [17:09:03]URL: /json_proto [17:09:03]Method is POST - this is cgi request [17:09:03]url: /json_proto [17:09:03]query_string will be loaded in cgi processing [17:09:03]execute_cgi json_proto POST (null) [17:09:03]execute_cgi path=json_proto method=POST [17:09:03]POST find Content-Length [17:09:03]Host: 172.17.63.131:8080 [17:09:03]Content-Length: 676 [17:09:03]Content-Type: application/json [17:09:03] [17:09:03]POST finish read [17:09:03]Found Content-Length = 676 [17:09:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.290, "sum" : 220.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:03]execute_script... [17:09: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)32335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.290, "sum" : 220.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:03]POST & json_proto [17:09:03]process_json_proto [17:09:03]json parsed OK: [17:09:03]protocol is kg_v1.0 [17:09:03]action value=close_receipt [17:09:03]process_action close_receipt [17:09:03]cmd_close_receipt [17:09:03]MH_GetDate [17:09:03]Write to MH i2c: F0 00 00 48 01 38 [17:09:03]Write i2c OK [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: F0 [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: F0 09 00 [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: F0 09 00 48 01 00 B0 16 21 67 22 05 6E 64 88 [17:09:03]GetLastDocTimeStamp 1730221578 [17:09:03]current date 1730221744 [17:09:03]FM_GetShiftState [17:09:03]SAM_PROTO_GetShiftState [17:09:03]wFMCommunicate request_size=4 [17:09:03]MH_SAM_APDU [17:09:03]CAPDU: 80 13 01 00 [17:09:03]Write to MH i2c: E2 08 00 49 01 80 13 01 00 00 00 00 00 C7 [17:09:03]Write i2c OK [17:09:03]MH_I2C_Read... [17:09:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:03]Read from MH i2c: E2 [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: E2 0E 00 [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: E2 0E 00 49 01 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 CD [17:09:03]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [17:09:03]wFMCommunicate OK [17:09:03]SAM_PROTO_GetShiftState done [17:09:03]FM_GetShiftState done [17:09:03]opened in 1730161990 [17:09:03]opened+sec_in_day 1730248390 [17:09:03]quantity*price = 22010 [17:09:03]sum+1 = 22011 [17:09:03]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 СÐО: Общий режим Чек 210 29.10.2024 17:09 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 193004 ФПД: 245491640295095 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T170904&type=1&operation_type=1&fn_number=0000000000871754&fd_number=193004&fm=245491640295095&tin=02508201610067®Number=0000000000091776&sum=22000 [17:09:04]StoreToDocumentArchive [17:09:04]shift 544 fd 193004 [17:09:04]save to /storage/0544/doc_00193004 [17:09:04]save last doc name /storage/0544/doc_00193004 to /storage/kkm_last_doc_name [17:09:04]save OK [17:09:04]Clear old archive folders... [17:09:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:09:04]tlvbuf is B6FB68E0 [17:09:04]SAM_PROTO_ClearQueue [17:09:04]wFMCommunicate request_size=4 [17:09:04]MH_SAM_APDU [17:09:04]CAPDU: 80 09 00 00 [17:09:04]Write to MH i2c: E2 08 00 56 01 80 09 00 00 00 00 00 00 C9 [17:09:04]Write i2c OK [17:09:04]MH_I2C_Read... [17:09:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:09:04]Read from MH i2c: E2 [17:09:04]MH_I2C_Read... [17:09:04]Read from MH i2c: E2 03 00 [17:09:04]MH_I2C_Read... [17:09:04]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [17:09:04]RAPDU: 90 00 [17:09:04]wFMCommunicate OK [17:09:04]SAM_PROTO_ClearQueue done [17:09:04]KKMCreateOFDPacket [17:09:04]OFDProtocolAddRootSTLVToBuf [17:09:04]FM_MakeSignedData [17:09:04]FM_MakeSignedData [17:09:04]SAM_PROTO_SignData [17:09:04]wFMCommunicate request_size=4 [17:09:04]MH_SAM_APDU [17:09:04]CAPDU: 80 0D 01 02 [17:09:04]Write to MH i2c: E2 08 00 57 01 80 0D 01 02 00 00 00 00 D1 [17:09:04]Write i2c OK [17:09:04]MH_I2C_Read... [17:09:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:09:04]Read from MH i2c: E2 [17:09:04]MH_I2C_Read... [17:09:04]Read from MH i2c: E2 03 00 [17:09:04]MH_I2C_Read... [17:09:04]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [17:09:04]RAPDU: 90 00 [17:09:04]wFMCommunicate OK [17:09:04]wFMCommunicate request_size=255 [17:09:04]MH_SAM_APDU [17:09: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 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 D2 00 00 00 F4 03 04 00 B0 16 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 DF [17:09:04]Write to MH i2c: E2 02 01 58 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 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 D2 00 00 00 F4 03 04 00 B0 16 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 DF 00 00 C8 [17:09:04]Write i2c OK [17:09:04]MH_I2C_Read... [17:09:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:04]Read from MH i2c: E2 [17:09:04]MH_I2C_Read... [17:09:04]Read from MH i2c: E2 03 00 [17:09:04]MH_I2C_Read... [17:09:04]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [17:09:04]RAPDU: 90 00 [17:09:04]wFMCommunicate OK [17:09:04]wFMCommunicate request_size=10 [17:09:04]MH_SAM_APDU [17:09:04]CAPDU: 80 0D 02 02 05 45 FA 03 DE B7 [17:09:04]Write to MH i2c: E2 0D 00 59 01 80 0D 02 02 05 00 45 FA 03 DE B7 00 00 B5 [17:09:04]Write i2c OK [17:09:04]MH_I2C_Read... [17:09:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:04]Read from MH i2c: E2 [17:09:04]MH_I2C_Read... [17:09:04]Read from MH i2c: E2 03 00 [17:09:04]MH_I2C_Read... [17:09:04]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [17:09:04]RAPDU: 90 00 [17:09:04]wFMCommunicate OK [17:09:04]wFMCommunicate request_size=4 [17:09:04]MH_SAM_APDU [17:09:04]CAPDU: 80 0D 03 02 [17:09:04]Write to MH i2c: E2 08 00 5A 01 80 0D 03 02 00 00 00 00 D6 [17:09:04]Write i2c OK [17:09:04]MH_I2C_Read... [17:09:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:09:04]Read from MH i2c: E2 [17:09:04]MH_I2C_Read... [17:09:04]Read from MH i2c: E2 0B 00 [17:09:04]MH_I2C_Read... [17:09:04]Read from MH i2c: E2 0B 00 5A 01 00 85 56 76 54 9F 58 66 EE 90 00 C7 [17:09:04]RAPDU: 85 56 76 54 9F 58 66 EE 90 00 [17:09:04]wFMCommunicate OK [17:09:04]SAM_PROTO_SignData done [17:09:04]FM_MakeSignedData done [17:09:04]CreateOFDProtocolMessage [17:09:04]wFMCommunicate request_size=4 [17:09:04]MH_SAM_APDU [17:09:04]CAPDU: 80 11 00 00 [17:09:04]Write to MH i2c: E2 08 00 5B 01 80 11 00 00 00 00 00 00 D6 [17:09:04]Write i2c OK [17:09:04]MH_I2C_Read... [17:09:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:04]Read from MH i2c: E2 [17:09:04]MH_I2C_Read... [17:09:04]Read from MH i2c: E2 17 00 [17:09:04]MH_I2C_Read... [17:09:04]Read from MH i2c: E2 17 00 5B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 29 [17:09:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:09:04]wFMCommunicate OK [17:09:04]CreateOFDProtocolMessage done [17:09:04]OFDSenderStorePacket 193004 [17:09:04]StoreOFDPacket docnum=193004 [17:09: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 5C 68 07 01 95 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 B0 16 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 DF 45 FA 03 DE B7 85 56 76 54 9F 58 66 EE [17:09:04]CheckFolder [17:09:04]dirname=/storage/ofd_packets [17:09:04]CheckFolder done [17:09:04]ProducePacketName [17:09:04]name=ofd_packets/00193004 [17:09:04]NVStorageSaveData ofd_packets/00193004 [17:09:04]File name is /storage/ofd_packets/00193004 [17:09:04]Write 301 bytes [17:09:04]NVStorageSaveData done [17:09:04]OFDSenderStorePacket done [17:09:04]KKMCreateOFDPacket done [17:09:04]NVStorageSaveData kkm_last_timestamp [17:09:04]File name is /storage/kkm_last_timestamp [17:09:04]Write 4 bytes [17:09:04]NVStorageSaveData done [17:09:04]ExternCall_PrintAddStr [17:09:04]wPrintStart [17:09:04]Write to MH i2c: 01 00 00 5C 01 5D [17:09:04]Write i2c OK [17:09:04]MH_I2C_Read... [17:09:04]Read from MH i2c: 01 [17:09:04]MH_I2C_Read... [17:09:04]Read from MH i2c: 01 07 00 [17:09:04]MH_I2C_Read... [17:09:04]Read from MH i2c: 01 07 00 5C 01 00 00 00 00 00 FF 0F 72 [17:09:04]RasterBufferAndPrint [17:09:04]line Счет N : (1)32335 [17:09:04]line ИÐÐ: 02508201610067 [17:09:04]line Контрольно-КаÑÑовый Чек [17:09:04]line ПРОДÐЖР[17:09:04]line ТРК (МРК, ГÐК) : 21 [17:09:04]line Товар: 2710124130 [17:09:04]line Ðи-92-К-5 [17:09:04]line 3.290 * 66.90 [17:09:04]line = 220.10 [17:09:04]line ÐДС 12% ÐСП 1% [17:09:04]line > о реализуемом товаре [17:09:04]line ОКРУГЛЕÐИЕ: -0.10 [17:09:04]line ИТОГО: 220.00 [17:09:04]line ВнеÑено: 220.00 [17:09:04]line СДÐЧÐ: 0.00 [17:09:04]line ÐСП 1% : 1.95 [17:09:04]line ÐДС 12% : 23.37 [17:09:04]line Ðаличными: 220.00 [17:09:04]line Безнал.: 0.00 [17:09:04]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [17:09:04]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [17:09:04]line СÐО: Общий режим [17:09:04]line Чек 210 29.10.2024 17:09 [17:09:04]line Смена: 544 ФФД: 1.0 [17:09:04]line ЗÐМ: 0300000110 [17:09:04]line РÐМ: 0000000000091776 [17:09:04]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [17:09:04]line ФМ: 0000000000871754 [17:09:04]line ФД: 193004 [17:09:04]line ФПД: 245491640295095 [17:09:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T170904&type=1&operation_type=1&fn_number=0000000000871754&fd_number=193004&fm=245491640295095&tin=02508201610067®Number=0000000000091776&sum=22000 [17:09:05]written 0, free lines is 4095 [17:09:05]Write to MH i2c: 01 00 00 87 01 88 [17:09:05]Write i2c OK [17:09:05]MH_I2C_Read... [17:09:05]Read from MH i2c: 01 [17:09:05]MH_I2C_Read... [17:09:05]Read from MH i2c: 01 07 00 [17:09:05]MH_I2C_Read... [17:09:05]Read from MH i2c: 01 07 00 87 01 00 00 00 00 00 AE 0C 49 [17:09:05]RasterBufferAndPrint [17:09:05]line [17:09:05]line [17:09:05]line [17:09:05]line [17:09:05]line [17:09:05]written 0, free lines is 3249 [17:09:05]MH_Cut [17:09:05]Write to MH i2c: D1 01 00 8E 01 01 61 [17:09:05]Write i2c OK [17:09:05]MH_I2C_Read... [17:09:05]Read from MH i2c: D1 [17:09:05]MH_I2C_Read... [17:09:05]Read from MH i2c: D1 01 00 [17:09:05]MH_I2C_Read... [17:09:05]Read from MH i2c: D1 01 00 8E 01 00 60 [17:09:05]Write to MH i2c: 01 00 00 8F 01 90 [17:09:05]Write i2c OK [17:09:05]MH_I2C_Read... [17:09:06]*** Cut start [17:09:06]*** Partial cut [17:09:06]*** CUTSNS_PIN = 1 [17:09:06]*** CUTSNS_PIN = 0 [17:09:06]*** Brake cut motor [17:09:07]Read from MH i2c: 01 [17:09:07]MH_I2C_Read... [17:09:07]*** Stop cut motor [17:09:07]*** Cut end [17:09:07]Read from MH i2c: 01 07 00 [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: 01 07 00 8F 01 00 00 00 00 00 FF 0F A5 [17:09:07]process_action close_receipt done [17:09:07]requested_data is exist [17:09:07]produce_requested_data [17:09:07]requested_item fm.sn is exist - process it [17:09:07]wFMCommunicate request_size=4 [17:09:07]MH_SAM_APDU [17:09:07]CAPDU: 80 11 00 00 [17:09:07]Write to MH i2c: E2 08 00 90 01 80 11 00 00 00 00 00 00 0B [17:09:07]Write i2c OK [17:09:07]MH_I2C_Read... [17:09:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:07]Read from MH i2c: E2 [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: E2 17 00 [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: E2 17 00 90 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5E [17:09:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:09:07]wFMCommunicate OK [17:09:07]requested_item fd.num is exist - process it [17:09:07]SAM_PROTO_GetFieldsCounters [17:09:07]wFMCommunicate request_size=4 [17:09:07]MH_SAM_APDU [17:09:07]CAPDU: 80 13 00 00 [17:09:07]Write to MH i2c: E2 08 00 91 01 80 13 00 00 00 00 00 00 0E [17:09:07]Write i2c OK [17:09:07]MH_I2C_Read... [17:09:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:09:07]Read from MH i2c: E2 [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: E2 62 00 [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: E2 62 00 91 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 F1 02 00 0E 04 04 00 20 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 AB [17:09: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 EC F1 02 00 0E 04 04 00 20 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 [17:09:07]wFMCommunicate OK [17:09:07]SAM_PROTO_GetFieldsCounters done [17:09:07]requested_item shift.num is exist - process it [17:09:07]requested_item shift.opened is exist - process it [17:09:07]req_shift_opened [17:09:07]FM_GetShiftState [17:09:07]SAM_PROTO_GetShiftState [17:09:07]wFMCommunicate request_size=4 [17:09:07]MH_SAM_APDU [17:09:07]CAPDU: 80 13 01 00 [17:09:07]Write to MH i2c: E2 08 00 92 01 80 13 01 00 00 00 00 00 10 [17:09:07]Write i2c OK [17:09:07]MH_I2C_Read... [17:09:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:07]Read from MH i2c: E2 [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: E2 0E 00 [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: E2 0E 00 92 01 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 16 [17:09:07]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [17:09:07]wFMCommunicate OK [17:09:07]SAM_PROTO_GetShiftState done [17:09:07]FM_GetShiftState done [17:09:07]req_shift_opened done [17:09:07]requested_item shift.open_date is exist - process it [17:09:07]req_shift_open_date [17:09:07]req_shift_open_date done [17:09:07]produce_requested_data done [17:09:07]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":193004,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [17:09:07]process_action_free close_receipt [17:09:07]json_value_free [17:09:07]json_value_free done [17:09:07]process_json_proto returns [17:09:07]Send response to host [17:09:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":193004,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [17:09:07]free response buf [17:09:07]execute_script done [17:09:07]execute_script returns [17:09:07]free content buf [17:09:07]Sock 10.Close socket [17:09:07]Sock 10.Thread stoped [17:10:56]ConnectInit Can't connect to host [17:10:56]CommunicateWithHost connect error [17:10:56]CommunicateWithHost err = -1 [17:10:56]OFD Sender: Server communicate error [17:10:56]OFD Sender: Processing packet 192996 [packets to send 83, broken 74] [17:10:56]ProducePacketName [17:10:56]name=ofd_packets/00192996 [17:10:56]OFD Sender: To server: ‡•öpG, [17:10:56]CommunicateWithHost lk.salyk.kg:30040 [17:10:56]ConnectInit lk.salyk.kg [17:10:57]Connected sock=7 [17:10: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 66 62 07 01 BA 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 C7 10 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 CD ED 39 64 B0 10 B3 AB B0 21 6B 6E 49 0E [17:10: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 10 12 47 00 77 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E4 F1 02 00 F4 03 04 00 DF BB 20 67 B6 04 01 00 00 1E BA 87 BF B0 7F 3B F3 [17:10:57]CommunicateWithHost err = 0 [17:10:57]CheckOFDResponse [17:10:57]1017 (14) - 77093643461234 [17:10:57]1041 (16) - 0000000000871754 [17:10:57]1040 (4) - 192996 [17:10:57]1012 (4) - 29.10.2024 10:41 [17:10:57]1206 (1) - 0 [17:10:57]OFD Sender: Remove packet 192996 [17:10:57]ProducePacketName [17:10:57]name=ofd_packets/00192996 [17:10:57]NVStorageDeleteData [17:10:57]OFD Sender: Processing packet 192997 [packets to send 82, broken 74] [17:10:57]ProducePacketName [17:10:57]name=ofd_packets/00192997 [17:10:57]OFD Sender: To server: ‡•öpG, [17:10:57]CommunicateWithHost lk.salyk.kg:30040 [17:10:57]ConnectInit lk.salyk.kg [17:10:57]Connected sock=7 [17:10: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 2D 20 07 01 26 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 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 CB 00 00 00 F4 03 04 00 CE 10 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 31 24 7D D6 24 B4 64 0E 3F 0B FB 3D 6F 1D [17:10: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 92 1D 47 00 13 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 E5 F1 02 00 F4 03 04 00 E0 BB 20 67 B6 04 01 00 00 CC F3 22 66 FF 18 4B BE [17:10:58]CommunicateWithHost err = 0 [17:10:58]CheckOFDResponse [17:10:58]1017 (14) - 77093643461234 [17:10:58]1041 (16) - 0000000000871754 [17:10:58]1040 (4) - 192997 [17:10:58]1012 (4) - 29.10.2024 10:41 [17:10:58]1206 (1) - 0 [17:10:58]OFD Sender: Remove packet 192997 [17:10:58]ProducePacketName [17:10:58]name=ofd_packets/00192997 [17:10:58]NVStorageDeleteData [17:10:58]OFD Sender: Processing packet 192998 [packets to send 81, broken 74] [17:10:58]ProducePacketName [17:10:58]name=ofd_packets/00192998 [17:10:58]OFD Sender: To server: ‡•öpG, [17:10:58]CommunicateWithHost lk.salyk.kg:30040 [17:10:58]ConnectInit lk.salyk.kg [17:10:58]Connected sock=7 [17:10: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 47 83 07 01 6D 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E8 C1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 C1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 14 00 00 00 00 07 04 06 00 C0 C1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 9A 11 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 61 8C 48 3E C8 6E 54 35 89 75 A1 D2 49 AA [17:10: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 22 EF 47 00 1F 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 E6 F1 02 00 F4 03 04 00 E1 BB 20 67 B6 04 01 00 00 56 80 96 E0 DC 51 19 60 [17:10:58]CommunicateWithHost err = 0 [17:10:58]CheckOFDResponse [17:10:58]1017 (14) - 77093643461234 [17:10:58]1041 (16) - 0000000000871754 [17:10:58]1040 (4) - 192998 [17:10:58]1012 (4) - 29.10.2024 10:41 [17:10:58]1206 (1) - 0 [17:10:58]OFD Sender: Remove packet 192998 [17:10:58]ProducePacketName [17:10:58]name=ofd_packets/00192998 [17:10:58]NVStorageDeleteData [17:10:59]OFD Sender: Processing packet 192999 [packets to send 80, broken 74] [17:10:59]ProducePacketName [17:10:59]name=ofd_packets/00192999 [17:10:59]OFD Sender: To server: ‡•öpG, [17:10:59]CommunicateWithHost lk.salyk.kg:30040 [17:10:59]ConnectInit lk.salyk.kg [17:10:59]Connected sock=7 [17: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 0F 01 00 00 F3 7C 07 01 17 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 EC 11 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 65 42 99 BB 5C 5E 38 15 DB 17 CB 1D 03 62 [17:10: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 AC 6B 47 00 2C 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 E7 F1 02 00 F4 03 04 00 E1 BB 20 67 B6 04 01 00 00 2F C0 B5 B6 7F 67 44 B0 [17:10:59]CommunicateWithHost err = 0 [17:10:59]CheckOFDResponse [17:10:59]1017 (14) - 77093643461234 [17:10:59]1041 (16) - 0000000000871754 [17:10:59]1040 (4) - 192999 [17:10:59]1012 (4) - 29.10.2024 10:41 [17:10:59]1206 (1) - 0 [17:10:59]OFD Sender: Remove packet 192999 [17:10:59]ProducePacketName [17:10:59]name=ofd_packets/00192999 [17:10:59]NVStorageDeleteData [17:11:00]OFD Sender: Processing packet 193000 [packets to send 79, broken 74] [17:11:00]ProducePacketName [17:11:00]name=ofd_packets/00193000 [17:11:00]OFD Sender: To server: ‡•öpG, [17:11:00]CommunicateWithHost lk.salyk.kg:30040 [17:11:00]ConnectInit lk.salyk.kg [17:11:00]Connected sock=10 [17:11: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 E3 A5 07 01 BF 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 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 CE 00 00 00 F4 03 04 00 5C 15 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 FD E8 C0 39 F1 A8 37 63 E0 60 B3 66 1F 73 [17: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 95 8C 47 00 6F 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 E8 F1 02 00 F4 03 04 00 E2 BB 20 67 B6 04 01 00 00 77 0B 76 38 22 84 47 9B [17:11:00]CommunicateWithHost err = 0 [17:11:00]CheckOFDResponse [17:11:00]1017 (14) - 77093643461234 [17:11:00]1041 (16) - 0000000000871754 [17:11:00]1040 (4) - 193000 [17:11:00]1012 (4) - 29.10.2024 10:41 [17:11:00]1206 (1) - 0 [17:11:00]OFD Sender: Remove packet 193000 [17:11:00]ProducePacketName [17:11:00]name=ofd_packets/00193000 [17:11:00]NVStorageDeleteData [17:11:01]OFD Sender: Processing packet 193001 [packets to send 78, broken 74] [17:11:01]ProducePacketName [17:11:01]name=ofd_packets/00193001 [17:11:01]OFD Sender: To server: ‡•öpG, [17:11:01]CommunicateWithHost lk.salyk.kg:30040 [17:11:01]ConnectInit lk.salyk.kg [17:11:01]Connected sock=7 [17:11:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 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 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 CF 00 00 00 F4 03 04 00 C9 15 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 81 F2 DF 58 D4 97 27 C3 7A C0 9F C0 66 4B [17:11: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 46 60 47 00 E2 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 E9 F1 02 00 F4 03 04 00 E3 BB 20 67 B6 04 01 00 00 7B 76 A3 BF 76 EB 73 05 [17:11:01]CommunicateWithHost err = 0 [17:11:01]CheckOFDResponse [17:11:01]1017 (14) - 77093643461234 [17:11:01]1041 (16) - 0000000000871754 [17:11:01]1040 (4) - 193001 [17:11:01]1012 (4) - 29.10.2024 10:41 [17:11:01]1206 (1) - 0 [17:11:01]OFD Sender: Remove packet 193001 [17:11:01]ProducePacketName [17:11:01]name=ofd_packets/00193001 [17:11:01]NVStorageDeleteData [17:11:01]OFD Sender: Processing packet 193002 [packets to send 77, broken 74] [17:11:01]ProducePacketName [17:11:01]name=ofd_packets/00193002 [17:11:01]OFD Sender: To server: ‡•öpG, [17:11:01]CommunicateWithHost lk.salyk.kg:30040 [17:11:01]ConnectInit lk.salyk.kg [17:11:01]Connected sock=7 [17:11:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 16 33 07 01 9B 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 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 D0 00 00 00 F4 03 04 00 EA 15 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 53 25 8A F8 70 17 3C A4 FB D1 68 0B BC 40 [17:11: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 87 97 47 00 DB 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EA F1 02 00 F4 03 04 00 E4 BB 20 67 B6 04 01 00 00 D8 57 E7 2F 07 23 6B FC [17:11:02]CommunicateWithHost err = 0 [17:11:02]CheckOFDResponse [17:11:02]1017 (14) - 77093643461234 [17:11:02]1041 (16) - 0000000000871754 [17:11:02]1040 (4) - 193002 [17:11:02]1012 (4) - 29.10.2024 10:41 [17:11:02]1206 (1) - 0 [17:11:02]OFD Sender: Remove packet 193002 [17:11:02]ProducePacketName [17:11:02]name=ofd_packets/00193002 [17:11:02]NVStorageDeleteData [17:11:02]OFD Sender: Processing packet 193003 [packets to send 76, broken 74] [17:11:02]ProducePacketName [17:11:02]name=ofd_packets/00193003 [17:11:02]OFD Sender: To server: ‡•öpG, [17:11:02]CommunicateWithHost lk.salyk.kg:30040 [17:11:02]ConnectInit lk.salyk.kg [17:11:02]Connected sock=7 [17:11: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 2C 93 04 01 A8 C8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 D1 00 00 00 F4 03 04 00 0A 16 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 2A 67 52 A3 77 80 13 18 1F A7 CF 36 1C E0 [17:11: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 4E 16 47 00 CB 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EB F1 02 00 F4 03 04 00 E5 BB 20 67 B6 04 01 00 00 27 13 99 85 39 7E 1D 53 [17:11:02]CommunicateWithHost err = 0 [17:11:02]CheckOFDResponse [17:11:02]1017 (14) - 77093643461234 [17:11:02]1041 (16) - 0000000000871754 [17:11:02]1040 (4) - 193003 [17:11:02]1012 (4) - 29.10.2024 10:41 [17:11:02]1206 (1) - 0 [17:11:02]OFD Sender: Remove packet 193003 [17:11:02]ProducePacketName [17:11:02]name=ofd_packets/00193003 [17:11:02]NVStorageDeleteData [17:11:03]OFD Sender: Processing packet 193004 [packets to send 75, broken 74] [17:11:03]ProducePacketName [17:11:03]name=ofd_packets/00193004 [17:11:03]OFD Sender: To server: ‡•öpG, [17:11:03]CommunicateWithHost lk.salyk.kg:30040 [17:11:03]ConnectInit lk.salyk.kg [17:11:03]Connected sock=7 [17:11: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 5C 68 07 01 95 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 B0 16 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 DF 45 FA 03 DE B7 85 56 76 54 9F 58 66 EE [17:11: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 27 58 47 00 61 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 EC F1 02 00 F4 03 04 00 E6 BB 20 67 B6 04 01 00 00 1D 14 6C D3 E2 41 56 8F [17:11:03]CommunicateWithHost err = 0 [17:11:03]CheckOFDResponse [17:11:03]1017 (14) - 77093643461234 [17:11:03]1041 (16) - 0000000000871754 [17:11:03]1040 (4) - 193004 [17:11:03]1012 (4) - 29.10.2024 10:41 [17:11:03]1206 (1) - 0 [17:11:03]OFD Sender: Remove packet 193004 [17:11:03]ProducePacketName [17:11:03]name=ofd_packets/00193004 [17:11:03]NVStorageDeleteData [17:11:04]OFD Sender: No OFD packet to send [17:11:09]OFD Sender: No OFD packet to send [17:11:14]OFD Sender: No OFD packet to send [17:11:19]OFD Sender: No OFD packet to send [17:11:24]OFD Sender: No OFD packet to send [17:11:29]OFD Sender: No OFD packet to send [17:11:34]OFD Sender: No OFD packet to send [17:11:39]OFD Sender: No OFD packet to send [17:11:44]OFD Sender: No OFD packet to send [17:11:49]OFD Sender: No OFD packet to send [17:11:54]OFD Sender: No OFD packet to send [17:11:59]OFD Sender: No OFD packet to send [17:12:04]OFD Sender: No OFD packet to send [17:12:09]OFD Sender: No OFD packet to send [17:12:14]OFD Sender: No OFD packet to send [17:12:19]OFD Sender: No OFD packet to send [17:12:24]OFD Sender: No OFD packet to send [17:12:29]OFD Sender: No OFD packet to send [17:12:34]OFD Sender: No OFD packet to send [17:12:39]OFD Sender: No OFD packet to send [17:12:43]accept exits with 9 [17:12:43]New connection [17:12:43]New thread 3067207012 created [17:12:43]Thread 3067350372 joined [17:12:43]Waiting for new connection... [17:12:43] Sock 9.Parse request [17:12:43]Sock 9.Check first char [17:12:43]Sock 9.First char is OK [17:12:43]request: POST /json_proto HTTP/1.0 [17:12:43]Method: POST [17:12:43]URL: /json_proto [17:12:43]Method is POST - this is cgi request [17:12:43]url: /json_proto [17:12:43]query_string will be loaded in cgi processing [17:12:43]execute_cgi json_proto POST (null) [17:12:43]execute_cgi path=json_proto method=POST [17:12:43]POST find Content-Length [17:12:43]Host: 172.17.63.131:8080 [17:12:43]Content-Length: 676 [17:12:43]Content-Type: application/json [17:12:43] [17:12:43]POST finish read [17:12:43]Found Content-Length = 676 [17:12:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32336", "tax_sys" : 0, "items" : [ { "pre_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 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:43]execute_script... [17:12: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)32336", "tax_sys" : 0, "items" : [ { "pre_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 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:43]POST & json_proto [17:12:43]process_json_proto [17:12:43]json parsed OK: [17:12:43]protocol is kg_v1.0 [17:12:43]action value=close_receipt [17:12:43]process_action close_receipt [17:12:43]cmd_close_receipt [17:12:43]MH_GetDate [17:12:43]Write to MH i2c: F0 00 00 93 01 83 [17:12:43]Write i2c OK [17:12:43]MH_I2C_Read... [17:12:43]Read from MH i2c: F0 [17:12:43]MH_I2C_Read... [17:12:43]Read from MH i2c: F0 09 00 [17:12:43]MH_I2C_Read... [17:12:43]Read from MH i2c: F0 09 00 93 01 00 8C 17 21 67 22 05 6E 64 B0 [17:12:43]GetLastDocTimeStamp 1730221744 [17:12:43]current date 1730221964 [17:12:43]FM_GetShiftState [17:12:43]SAM_PROTO_GetShiftState [17:12:43]wFMCommunicate request_size=4 [17:12:43]MH_SAM_APDU [17:12:43]CAPDU: 80 13 01 00 [17:12:43]Write to MH i2c: E2 08 00 94 01 80 13 01 00 00 00 00 00 12 [17:12:43]Write i2c OK [17:12:43]MH_I2C_Read... [17:12:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:43]Read from MH i2c: E2 [17:12:43]MH_I2C_Read... [17:12:43]Read from MH i2c: E2 0E 00 [17:12:43]MH_I2C_Read... [17:12:43]Read from MH i2c: E2 0E 00 94 01 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 18 [17:12:43]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [17:12:43]wFMCommunicate OK [17:12:43]SAM_PROTO_GetShiftState done [17:12:43]FM_GetShiftState done [17:12:43]opened in 1730161990 [17:12:43]opened+sec_in_day 1730248390 [17:12:43]quantity*price = 65026 [17:12:43]sum+1 = 65028 [17:12:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.27 ИТОГО: 650.00 ВнеÑено: 650.00 СДÐЧÐ: 0.00 ÐСП 1% : 5.75 ÐДС 12% : 69.05 Ðаличными: 650.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 170 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 СÐО: Общий режим Чек 211 29.10.2024 17:12 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 193005 ФПД: 156586776040974 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T171244&type=1&operation_type=1&fn_number=0000000000871754&fd_number=193005&fm=156586776040974&tin=02508201610067®Number=0000000000091776&sum=65000 [17:12:44]StoreToDocumentArchive [17:12:44]shift 544 fd 193005 [17:12:44]save to /storage/0544/doc_00193005 [17:12:44]save last doc name /storage/0544/doc_00193005 to /storage/kkm_last_doc_name [17:12:44]save OK [17:12:44]Clear old archive folders... [17:12:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:12:44]tlvbuf is 00AC9230 [17:12:44]SAM_PROTO_ClearQueue [17:12:44]wFMCommunicate request_size=4 [17:12:44]MH_SAM_APDU [17:12:44]CAPDU: 80 09 00 00 [17:12:44]Write to MH i2c: E2 08 00 A1 01 80 09 00 00 00 00 00 00 14 [17:12:44]Write i2c OK [17:12:44]MH_I2C_Read... [17:12:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:12:44]Read from MH i2c: E2 [17:12:44]MH_I2C_Read... [17:12:44]Read from MH i2c: E2 03 00 [17:12:44]MH_I2C_Read... [17:12:44]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [17:12:44]RAPDU: 90 00 [17:12:44]wFMCommunicate OK [17:12:44]SAM_PROTO_ClearQueue done [17:12:44]KKMCreateOFDPacket [17:12:44]OFDProtocolAddRootSTLVToBuf [17:12:44]FM_MakeSignedData [17:12:44]FM_MakeSignedData [17:12:44]SAM_PROTO_SignData [17:12:44]wFMCommunicate request_size=4 [17:12:44]MH_SAM_APDU [17:12:44]CAPDU: 80 0D 01 02 [17:12:44]Write to MH i2c: E2 08 00 A2 01 80 0D 01 02 00 00 00 00 1C [17:12:44]Write i2c OK [17:12:44]MH_I2C_Read... [17:12:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:12:45]Read from MH i2c: E2 [17:12:45]MH_I2C_Read... [17:12:45]Read from MH i2c: E2 03 00 [17:12:45]MH_I2C_Read... [17:12:45]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [17:12:45]RAPDU: 90 00 [17:12:45]wFMCommunicate OK [17:12:45]wFMCommunicate request_size=255 [17:12:45]MH_SAM_APDU [17:12: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 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 8C 17 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 8E [17:12:45]Write to MH i2c: E2 02 01 A3 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 8C 17 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 8E 00 00 31 [17:12:45]Write i2c OK [17:12:45]MH_I2C_Read... [17:12:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:45]Read from MH i2c: E2 [17:12:45]MH_I2C_Read... [17:12:45]Read from MH i2c: E2 03 00 [17:12:45]MH_I2C_Read... [17:12:45]Read from MH i2c: E2 03 00 A3 01 00 90 00 18 [17:12:45]RAPDU: 90 00 [17:12:45]wFMCommunicate OK [17:12:45]wFMCommunicate request_size=10 [17:12:45]MH_SAM_APDU [17:12:45]CAPDU: 80 0D 02 02 05 6A 33 29 96 0E [17:12:45]Write to MH i2c: E2 0D 00 A4 01 80 0D 02 02 05 00 6A 33 29 96 0E 00 00 93 [17:12:45]Write i2c OK [17:12:45]MH_I2C_Read... [17:12:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:45]Read from MH i2c: E2 [17:12:45]MH_I2C_Read... [17:12:45]Read from MH i2c: E2 03 00 [17:12:45]MH_I2C_Read... [17:12:45]Read from MH i2c: E2 03 00 A4 01 00 90 00 19 [17:12:45]RAPDU: 90 00 [17:12:45]wFMCommunicate OK [17:12:45]wFMCommunicate request_size=4 [17:12:45]MH_SAM_APDU [17:12:45]CAPDU: 80 0D 03 02 [17:12:45]Write to MH i2c: E2 08 00 A5 01 80 0D 03 02 00 00 00 00 21 [17:12:45]Write i2c OK [17:12:45]MH_I2C_Read... [17:12:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:12:45]Read from MH i2c: E2 [17:12:45]MH_I2C_Read... [17:12:45]Read from MH i2c: E2 0B 00 [17:12:45]MH_I2C_Read... [17:12:45]Read from MH i2c: E2 0B 00 A5 01 00 D1 2E 1C 8E 73 1B C8 1C 90 00 3D [17:12:45]RAPDU: D1 2E 1C 8E 73 1B C8 1C 90 00 [17:12:45]wFMCommunicate OK [17:12:45]SAM_PROTO_SignData done [17:12:45]FM_MakeSignedData done [17:12:45]CreateOFDProtocolMessage [17:12:45]wFMCommunicate request_size=4 [17:12:45]MH_SAM_APDU [17:12:45]CAPDU: 80 11 00 00 [17:12:45]Write to MH i2c: E2 08 00 A6 01 80 11 00 00 00 00 00 00 21 [17:12:45]Write i2c OK [17:12:45]MH_I2C_Read... [17:12:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:45]Read from MH i2c: E2 [17:12:45]MH_I2C_Read... [17:12:45]Read from MH i2c: E2 17 00 [17:12:45]MH_I2C_Read... [17:12:45]Read from MH i2c: E2 17 00 A6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 74 [17:12: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:12:45]wFMCommunicate OK [17:12:45]CreateOFDProtocolMessage done [17:12:45]OFDSenderStorePacket 193005 [17:12:45]StoreOFDPacket docnum=193005 [17:12: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 59 2C 07 01 D0 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 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 8C 17 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 8E 6A 33 29 96 0E D1 2E 1C 8E 73 1B C8 1C [17:12:45]CheckFolder [17:12:45]dirname=/storage/ofd_packets [17:12:45]CheckFolder done [17:12:45]ProducePacketName [17:12:45]name=ofd_packets/00193005 [17:12:45]NVStorageSaveData ofd_packets/00193005 [17:12:45]File name is /storage/ofd_packets/00193005 [17:12:45]Write 301 bytes [17:12:45]NVStorageSaveData done [17:12:45]OFDSenderStorePacket done [17:12:45]KKMCreateOFDPacket done [17:12:45]NVStorageSaveData kkm_last_timestamp [17:12:45]File name is /storage/kkm_last_timestamp [17:12:45]Write 4 bytes [17:12:45]NVStorageSaveData done [17:12:45]ExternCall_PrintAddStr [17:12:45]wPrintStart [17:12:45]Write to MH i2c: 01 00 00 A7 01 A8 [17:12:45]Write i2c OK [17:12:45]MH_I2C_Read... [17:12:45]Read from MH i2c: 01 [17:12:45]MH_I2C_Read... [17:12:45]Read from MH i2c: 01 07 00 [17:12:45]MH_I2C_Read... [17:12:45]Read from MH i2c: 01 07 00 A7 01 00 00 00 00 00 FF 0F BD [17:12:45]RasterBufferAndPrint [17:12:45]line Счет N : (1)32336 [17:12:45]line ИÐÐ: 02508201610067 [17:12:45]line Контрольно-КаÑÑовый Чек [17:12:45]line ПРОДÐЖР[17:12:45]line ТРК (МРК, ГÐК) : 21 [17:12:45]line Товар: 2710124130 [17:12:45]line Ðи-92-К-5 [17:12:45]line 9.720 * 66.90 [17:12:45]line = 650.27 [17:12:45]line ÐДС 12% ÐСП 1% [17:12:45]line > о реализуемом товаре [17:12:45]line ОКРУГЛЕÐИЕ: -0.27 [17:12:45]line ИТОГО: 650.00 [17:12:45]line ВнеÑено: 650.00 [17:12:45]line СДÐЧÐ: 0.00 [17:12:45]line ÐСП 1% : 5.75 [17:12:45]line ÐДС 12% : 69.05 [17:12:45]line Ðаличными: 650.00 [17:12:45]line Безнал.: 0.00 [17:12:45]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [17:12:45]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [17:12:45]line СÐО: Общий режим [17:12:45]line Чек 211 29.10.2024 17:12 [17:12:45]line Смена: 544 ФФД: 1.0 [17:12:45]line ЗÐМ: 0300000110 [17:12:45]line РÐМ: 0000000000091776 [17:12:45]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [17:12:45]line ФМ: 0000000000871754 [17:12:45]line ФД: 193005 [17:12:45]line ФПД: 156586776040974 [17:12:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T171244&type=1&operation_type=1&fn_number=0000000000871754&fd_number=193005&fm=156586776040974&tin=02508201610067®Number=0000000000091776&sum=65000 [17:12:45]OFD Sender: Processing packet 193005 [packets to send 75, broken 74] [17:12:45]ProducePacketName [17:12:45]name=ofd_packets/00193005 [17:12:45]OFD Sender: To server: ‡•öpG, [17:12:45]CommunicateWithHost lk.salyk.kg:30040 [17:12:45]ConnectInit lk.salyk.kg [17:12:45]written 0, free lines is 4095 [17:12:45]Connected sock=10 [17:12: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 59 2C 07 01 D0 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 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 8C 17 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 8E 6A 33 29 96 0E D1 2E 1C 8E 73 1B C8 1C [17:12: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 52 3A 47 00 DD 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 ED F1 02 00 F4 03 04 00 4C BC 20 67 B6 04 01 00 00 74 EB F3 E5 FA AD 99 F3 [17:12:46]CommunicateWithHost err = 0 [17:12:46]CheckOFDResponse [17:12:46]1017 (14) - 77093643461234 [17:12:46]1041 (16) - 0000000000871754 [17:12:46]1040 (4) - 193005 [17:12:46]1012 (4) - 29.10.2024 10:43 [17:12:46]1206 (1) - 0 [17:12:46]OFD Sender: Remove packet 193005 [17:12:46]ProducePacketName [17:12:46]name=ofd_packets/00193005 [17:12:46]NVStorageDeleteData [17:12:46]Write to MH i2c: 01 00 00 D2 01 D3 [17:12:46]Write i2c OK [17:12:46]MH_I2C_Read... [17:12:46]Read from MH i2c: 01 [17:12:46]MH_I2C_Read... [17:12:46]Read from MH i2c: 01 07 00 [17:12:46]MH_I2C_Read... [17:12:46]Read from MH i2c: 01 07 00 D2 01 00 00 00 00 00 B8 0C 9E [17:12:46]RasterBufferAndPrint [17:12:46]line [17:12:46]line [17:12:46]line [17:12:46]line [17:12:46]line [17:12:46]written 0, free lines is 3263 [17:12:46]MH_Cut [17:12:46]Write to MH i2c: D1 01 00 D9 01 01 AC [17:12:46]Write i2c OK [17:12:46]MH_I2C_Read... [17:12:46]Read from MH i2c: D1 [17:12:46]MH_I2C_Read... [17:12:46]Read from MH i2c: D1 01 00 [17:12:46]MH_I2C_Read... [17:12:46]Read from MH i2c: D1 01 00 D9 01 00 AB [17:12:46]Write to MH i2c: 01 00 00 DA 01 DB [17:12:46]Write i2c OK [17:12:46]MH_I2C_Read... [17:12:46]OFD Sender: No OFD packet to send [17:12:47]*** Cut start [17:12:47]*** Partial cut [17:12:47]*** CUTSNS_PIN = 1 [17:12:47]*** CUTSNS_PIN = 0 [17:12:47]*** Brake cut motor [17:12:47]Read from MH i2c: 01 [17:12:47]MH_I2C_Read... [17:12:47]*** Stop cut motor [17:12:47]*** Cut end [17:12:47]Read from MH i2c: 01 07 00 [17:12:47]MH_I2C_Read... [17:12:47]Read from MH i2c: 01 07 00 DA 01 00 00 00 00 00 FF 0F F0 [17:12:47]process_action close_receipt done [17:12:47]requested_data is exist [17:12:47]produce_requested_data [17:12:47]requested_item fm.sn is exist - process it [17:12:47]wFMCommunicate request_size=4 [17:12:47]MH_SAM_APDU [17:12:47]CAPDU: 80 11 00 00 [17:12:47]Write to MH i2c: E2 08 00 DB 01 80 11 00 00 00 00 00 00 56 [17:12:47]Write i2c OK [17:12:47]MH_I2C_Read... [17:12:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:47]Read from MH i2c: E2 [17:12:47]MH_I2C_Read... [17:12:47]Read from MH i2c: E2 17 00 [17:12:47]MH_I2C_Read... [17:12:47]Read from MH i2c: E2 17 00 DB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A9 [17:12: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:12:47]wFMCommunicate OK [17:12:47]requested_item fd.num is exist - process it [17:12:47]SAM_PROTO_GetFieldsCounters [17:12:47]wFMCommunicate request_size=4 [17:12:47]MH_SAM_APDU [17:12:47]CAPDU: 80 13 00 00 [17:12:47]Write to MH i2c: E2 08 00 DC 01 80 13 00 00 00 00 00 00 59 [17:12:47]Write i2c OK [17:12:47]MH_I2C_Read... [17:12:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:12:47]Read from MH i2c: E2 [17:12:47]MH_I2C_Read... [17:12:47]Read from MH i2c: E2 62 00 [17:12:47]MH_I2C_Read... [17:12:47]Read from MH i2c: E2 62 00 DC 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 F1 02 00 0E 04 04 00 20 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 FA [17:12: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 ED F1 02 00 0E 04 04 00 20 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 [17:12:47]wFMCommunicate OK [17:12:47]SAM_PROTO_GetFieldsCounters done [17:12:47]requested_item shift.num is exist - process it [17:12:47]requested_item shift.opened is exist - process it [17:12:47]req_shift_opened [17:12:47]FM_GetShiftState [17:12:47]SAM_PROTO_GetShiftState [17:12:47]wFMCommunicate request_size=4 [17:12:47]MH_SAM_APDU [17:12:47]CAPDU: 80 13 01 00 [17:12:47]Write to MH i2c: E2 08 00 DD 01 80 13 01 00 00 00 00 00 5B [17:12:47]Write i2c OK [17:12:47]MH_I2C_Read... [17:12:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:47]Read from MH i2c: E2 [17:12:47]MH_I2C_Read... [17:12:47]Read from MH i2c: E2 0E 00 [17:12:47]MH_I2C_Read... [17:12:47]Read from MH i2c: E2 0E 00 DD 01 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 61 [17:12:47]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [17:12:47]wFMCommunicate OK [17:12:47]SAM_PROTO_GetShiftState done [17:12:47]FM_GetShiftState done [17:12:47]req_shift_opened done [17:12:47]requested_item shift.open_date is exist - process it [17:12:47]req_shift_open_date [17:12:47]req_shift_open_date done [17:12:47]produce_requested_data done [17:12:47]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":193005,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [17:12:47]process_action_free close_receipt [17:12:47]json_value_free [17:12:47]json_value_free done [17:12:47]process_json_proto returns [17:12:47]Send response to host [17:12:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":193005,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [17:12:47]free response buf [17:12:47]execute_script done [17:12:47]execute_script returns [17:12:47]free content buf [17:12:47]Sock 9.Close socket [17:12:47]Sock 9.Thread stoped [17:12:51]OFD Sender: No OFD packet to send [17:12:56]OFD Sender: No OFD packet to send [17:13:01]OFD Sender: No OFD packet to send [17:13:06]OFD Sender: No OFD packet to send [17:13:11]OFD Sender: No OFD packet to send [17:13:16]OFD Sender: No OFD packet to send [17:13:21]OFD Sender: No OFD packet to send [17:13:24]accept exits with 7 [17:13:24]New connection [17:13:24]New thread 3067350372 created [17:13:24]Thread 3067207012 joined [17:13:24]Waiting for new connection... [17:13:24] Sock 7.Parse request [17:13:24]Sock 7.Check first char [17:13:24]Sock 7.First char is OK [17:13:24]request: POST /json_proto HTTP/1.0 [17:13:24]Method: POST [17:13:24]URL: /json_proto [17:13:24]Method is POST - this is cgi request [17:13:24]url: /json_proto [17:13:24]query_string will be loaded in cgi processing [17:13:24]execute_cgi json_proto POST (null) [17:13:24]execute_cgi path=json_proto method=POST [17:13:24]POST find Content-Length [17:13:24]Host: 172.17.63.131:8080 [17:13:24]Content-Length: 678 [17:13:24]Content-Type: application/json [17:13:24] [17:13:24]POST finish read [17:13:24]Found Content-Length = 678 [17:13:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32337", "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" ] } } [17:13:24]execute_script... [17:13: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)32337", "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" ] } } [17:13:24]POST & json_proto [17:13:24]process_json_proto [17:13:24]json parsed OK: [17:13:24]protocol is kg_v1.0 [17:13:24]action value=close_receipt [17:13:24]process_action close_receipt [17:13:24]cmd_close_receipt [17:13:24]MH_GetDate [17:13:24]Write to MH i2c: F0 00 00 DE 01 CE [17:13:24]Write i2c OK [17:13:24]MH_I2C_Read... [17:13:24]Read from MH i2c: F0 [17:13:24]MH_I2C_Read... [17:13:24]Read from MH i2c: F0 09 00 [17:13:24]MH_I2C_Read... [17:13:24]Read from MH i2c: F0 09 00 DE 01 00 B5 17 21 67 22 05 6E 64 24 [17:13:24]GetLastDocTimeStamp 1730221964 [17:13:24]current date 1730222005 [17:13:24]FM_GetShiftState [17:13:24]SAM_PROTO_GetShiftState [17:13:24]wFMCommunicate request_size=4 [17:13:24]MH_SAM_APDU [17:13:24]CAPDU: 80 13 01 00 [17:13:24]Write to MH i2c: E2 08 00 DF 01 80 13 01 00 00 00 00 00 5D [17:13:24]Write i2c OK [17:13:24]MH_I2C_Read... [17:13:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:24]Read from MH i2c: E2 [17:13:24]MH_I2C_Read... [17:13:24]Read from MH i2c: E2 0E 00 [17:13:24]MH_I2C_Read... [17:13:24]Read from MH i2c: E2 0E 00 DF 01 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 63 [17:13:24]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [17:13:24]wFMCommunicate OK [17:13:24]SAM_PROTO_GetShiftState done [17:13:24]FM_GetShiftState done [17:13:24]opened in 1730161990 [17:13:24]opened+sec_in_day 1730248390 [17:13:24]quantity*price = 100050 [17:13:24]sum+1 = 100052 [17:13:24]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 СÐО: Общий режим Чек 212 29.10.2024 17:13 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 193006 ФПД: 227655317055920 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T171325&type=1&operation_type=1&fn_number=0000000000871754&fd_number=193006&fm=227655317055920&tin=02508201610067®Number=0000000000091776&sum=100000 [17:13:26]StoreToDocumentArchive [17:13:26]shift 544 fd 193006 [17:13:26]save to /storage/0544/doc_00193006 [17:13:26]save last doc name /storage/0544/doc_00193006 to /storage/kkm_last_doc_name [17:13:26]save OK [17:13:26]Clear old archive folders... [17:13:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:13:26]tlvbuf is 00ACE460 [17:13:26]SAM_PROTO_ClearQueue [17:13:26]wFMCommunicate request_size=4 [17:13:26]MH_SAM_APDU [17:13:26]CAPDU: 80 09 00 00 [17:13:26]Write to MH i2c: E2 08 00 EC 01 80 09 00 00 00 00 00 00 5F [17:13:26]Write i2c OK [17:13:26]MH_I2C_Read... [17:13:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:13:26]Read from MH i2c: E2 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: E2 03 00 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: E2 03 00 EC 01 00 90 00 61 [17:13:26]RAPDU: 90 00 [17:13:26]wFMCommunicate OK [17:13:26]SAM_PROTO_ClearQueue done [17:13:26]KKMCreateOFDPacket [17:13:26]OFDProtocolAddRootSTLVToBuf [17:13:26]FM_MakeSignedData [17:13:26]FM_MakeSignedData [17:13:26]SAM_PROTO_SignData [17:13:26]wFMCommunicate request_size=4 [17:13:26]MH_SAM_APDU [17:13:26]CAPDU: 80 0D 01 02 [17:13:26]Write to MH i2c: E2 08 00 ED 01 80 0D 01 02 00 00 00 00 67 [17:13:26]Write i2c OK [17:13:26]MH_I2C_Read... [17:13:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:13:26]Read from MH i2c: E2 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: E2 03 00 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: E2 03 00 ED 01 00 90 00 62 [17:13:26]RAPDU: 90 00 [17:13:26]wFMCommunicate OK [17:13:26]wFMCommunicate request_size=255 [17:13:26]MH_SAM_APDU [17:13: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 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 D4 00 00 00 F4 03 04 00 B5 17 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 CF 0D 22 4D [17:13:26]Write to MH i2c: E2 02 01 EE 01 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 D4 00 00 00 F4 03 04 00 B5 17 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 CF 0D 22 4D 00 00 67 [17:13:26]Write i2c OK [17:13:26]MH_I2C_Read... [17:13:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:26]Read from MH i2c: E2 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: E2 03 00 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: E2 03 00 EE 01 00 90 00 63 [17:13:26]RAPDU: 90 00 [17:13:26]wFMCommunicate OK [17:13:26]wFMCommunicate request_size=7 [17:13:26]MH_SAM_APDU [17:13:26]CAPDU: 80 0D 02 02 02 E9 B0 [17:13:26]Write to MH i2c: E2 0A 00 EF 01 80 0D 02 02 02 00 E9 B0 00 00 07 [17:13:26]Write i2c OK [17:13:26]MH_I2C_Read... [17:13:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:26]Read from MH i2c: E2 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: E2 03 00 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: E2 03 00 EF 01 00 90 00 64 [17:13:26]RAPDU: 90 00 [17:13:26]wFMCommunicate OK [17:13:26]wFMCommunicate request_size=4 [17:13:26]MH_SAM_APDU [17:13:26]CAPDU: 80 0D 03 02 [17:13:26]Write to MH i2c: E2 08 00 F0 01 80 0D 03 02 00 00 00 00 6C [17:13:26]Write i2c OK [17:13:26]MH_I2C_Read... [17:13:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:13:26]Read from MH i2c: E2 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: E2 0B 00 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: E2 0B 00 F0 01 00 B5 12 C3 76 4B C6 95 30 90 00 43 [17:13:26]RAPDU: B5 12 C3 76 4B C6 95 30 90 00 [17:13:26]wFMCommunicate OK [17:13:26]SAM_PROTO_SignData done [17:13:26]FM_MakeSignedData done [17:13:26]CreateOFDProtocolMessage [17:13:26]wFMCommunicate request_size=4 [17:13:26]MH_SAM_APDU [17:13:26]CAPDU: 80 11 00 00 [17:13:26]Write to MH i2c: E2 08 00 F1 01 80 11 00 00 00 00 00 00 6C [17:13:26]Write i2c OK [17:13:26]MH_I2C_Read... [17:13:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:26]Read from MH i2c: E2 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: E2 17 00 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: E2 17 00 F1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BF [17:13: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:13:26]wFMCommunicate OK [17:13:26]CreateOFDProtocolMessage done [17:13:26]OFDSenderStorePacket 193006 [17:13:26]StoreOFDPacket docnum=193006 [17:13: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 C8 2B 04 01 5D 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 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 D4 00 00 00 F4 03 04 00 B5 17 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 CF 0D 22 4D E9 B0 B5 12 C3 76 4B C6 95 30 [17:13:26]CheckFolder [17:13:26]dirname=/storage/ofd_packets [17:13:26]CheckFolder done [17:13:26]ProducePacketName [17:13:26]name=ofd_packets/00193006 [17:13:26]NVStorageSaveData ofd_packets/00193006 [17:13:26]File name is /storage/ofd_packets/00193006 [17:13:26]Write 298 bytes [17:13:26]NVStorageSaveData done [17:13:26]OFDSenderStorePacket done [17:13:26]KKMCreateOFDPacket done [17:13:26]NVStorageSaveData kkm_last_timestamp [17:13:26]File name is /storage/kkm_last_timestamp [17:13:26]Write 4 bytes [17:13:26]NVStorageSaveData done [17:13:26]ExternCall_PrintAddStr [17:13:26]wPrintStart [17:13:26]Write to MH i2c: 01 00 00 F2 01 F3 [17:13:26]Write i2c OK [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: 01 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: 01 07 00 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: 01 07 00 F2 01 00 00 00 00 00 FF 0F 08 [17:13:26]RasterBufferAndPrint [17:13:26]line Счет N : (1)32337 [17:13:26]line ИÐÐ: 02508201610067 [17:13:26]line Контрольно-КаÑÑовый Чек [17:13:26]line ПРОДÐЖР[17:13:26]line ТРК (МРК, ГÐК) : 11 [17:13:26]line Товар: 2710194210 [17:13:26]line ДТ-К-5 [17:13:26]line 13.130 * 76.20 [17:13:26]line = 1000.51 [17:13:26]line ÐДС 12% ÐСП 1% [17:13:26]line > о реализуемом товаре [17:13:26]line ОКРУГЛЕÐИЕ: -0.51 [17:13:26]line ИТОГО: 1000.00 [17:13:26]line ВнеÑено: 1000.00 [17:13:26]line СДÐЧÐ: 0.00 [17:13:26]line ÐСП 1% : 8.85 [17:13:26]line ÐДС 12% : 106.25 [17:13:26]line Ðаличными: 1000.00 [17:13:26]line Безнал.: 0.00 [17:13:26]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [17:13:26]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [17:13:26]line СÐО: Общий режим [17:13:26]line Чек 212 29.10.2024 17:13 [17:13:26]line Смена: 544 ФФД: 1.0 [17:13:26]line ЗÐМ: 0300000110 [17:13:26]line РÐМ: 0000000000091776 [17:13:26]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [17:13:26]line ФМ: 0000000000871754 [17:13:26]line ФД: 193006 [17:13:26]line ФПД: 227655317055920 [17:13:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T171325&type=1&operation_type=1&fn_number=0000000000871754&fd_number=193006&fm=227655317055920&tin=02508201610067®Number=0000000000091776&sum=100000 [17:13:26]OFD Sender: Processing packet 193006 [packets to send 75, broken 74] [17:13:26]ProducePacketName [17:13:26]name=ofd_packets/00193006 [17:13:26]OFD Sender: To server: ‡•öpG, [17:13:26]CommunicateWithHost lk.salyk.kg:30040 [17:13:26]ConnectInit lk.salyk.kg [17:13:26]written 0, free lines is 4095 [17:13:27]Connected sock=10 [17:13: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 C8 2B 04 01 5D 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 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 D4 00 00 00 F4 03 04 00 B5 17 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 CF 0D 22 4D E9 B0 B5 12 C3 76 4B C6 95 30 [17:13: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 87 49 47 00 F3 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 EE F1 02 00 F4 03 04 00 75 BC 20 67 B6 04 01 00 00 0C 2D 83 D9 E3 6A E5 21 [17:13:27]CommunicateWithHost err = 0 [17:13:27]CheckOFDResponse [17:13:27]1017 (14) - 77093643461234 [17:13:27]1041 (16) - 0000000000871754 [17:13:27]1040 (4) - 193006 [17:13:27]1012 (4) - 29.10.2024 10:44 [17:13:27]1206 (1) - 0 [17:13:27]OFD Sender: Remove packet 193006 [17:13:27]ProducePacketName [17:13:27]name=ofd_packets/00193006 [17:13:27]NVStorageDeleteData [17:13:27]Write to MH i2c: 01 00 00 1D 02 1F [17:13:27]Write i2c OK [17:13:27]MH_I2C_Read... [17:13:27]Read from MH i2c: 01 [17:13:27]MH_I2C_Read... [17:13:27]Read from MH i2c: 01 07 00 [17:13:27]MH_I2C_Read... [17:13:27]Read from MH i2c: 01 07 00 1D 02 00 00 00 00 00 B6 0C E8 [17:13:27]RasterBufferAndPrint [17:13:27]line [17:13:27]line [17:13:27]line [17:13:27]line [17:13:27]line [17:13:27]written 0, free lines is 3260 [17:13:27]MH_Cut [17:13:27]Write to MH i2c: D1 01 00 24 02 01 F8 [17:13:27]Write i2c OK [17:13:27]MH_I2C_Read... [17:13:27]Read from MH i2c: D1 [17:13:27]MH_I2C_Read... [17:13:27]Read from MH i2c: D1 01 00 [17:13:27]MH_I2C_Read... [17:13:27]Read from MH i2c: D1 01 00 24 02 00 F7 [17:13:27]Write to MH i2c: 01 00 00 25 02 27 [17:13:27]Write i2c OK [17:13:27]MH_I2C_Read... [17:13:27]OFD Sender: No OFD packet to send [17:13:28]*** Cut start [17:13:28]*** Partial cut [17:13:28]*** CUTSNS_PIN = 1 [17:13:28]*** CUTSNS_PIN = 0 [17:13:28]*** Brake cut motor [17:13:28]Read from MH i2c: 01 [17:13:28]MH_I2C_Read... [17:13:28]*** Stop cut motor [17:13:28]*** Cut end [17:13:28]Read from MH i2c: 01 07 00 [17:13:28]MH_I2C_Read... [17:13:28]Read from MH i2c: 01 07 00 25 02 00 00 00 00 00 FF 0F 3C [17:13:28]process_action close_receipt done [17:13:28]requested_data is exist [17:13:28]produce_requested_data [17:13:28]requested_item fm.sn is exist - process it [17:13:28]wFMCommunicate request_size=4 [17:13:28]MH_SAM_APDU [17:13:28]CAPDU: 80 11 00 00 [17:13:28]Write to MH i2c: E2 08 00 26 02 80 11 00 00 00 00 00 00 A2 [17:13:28]Write i2c OK [17:13:28]MH_I2C_Read... [17:13:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:28]Read from MH i2c: E2 [17:13:28]MH_I2C_Read... [17:13:28]Read from MH i2c: E2 17 00 [17:13:28]MH_I2C_Read... [17:13:28]Read from MH i2c: E2 17 00 26 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F5 [17: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 [17:13:28]wFMCommunicate OK [17:13:28]requested_item fd.num is exist - process it [17:13:28]SAM_PROTO_GetFieldsCounters [17:13:28]wFMCommunicate request_size=4 [17:13:28]MH_SAM_APDU [17:13:28]CAPDU: 80 13 00 00 [17:13:28]Write to MH i2c: E2 08 00 27 02 80 13 00 00 00 00 00 00 A5 [17:13:28]Write i2c OK [17:13:28]MH_I2C_Read... [17:13:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:13:29]Read from MH i2c: E2 [17:13:29]MH_I2C_Read... [17:13:29]Read from MH i2c: E2 62 00 [17:13:29]MH_I2C_Read... [17:13:29]Read from MH i2c: E2 62 00 27 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 F1 02 00 0E 04 04 00 20 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 4A [17:13: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 EE F1 02 00 0E 04 04 00 20 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 [17:13:29]wFMCommunicate OK [17:13:29]SAM_PROTO_GetFieldsCounters done [17:13:29]requested_item shift.num is exist - process it [17:13:29]requested_item shift.opened is exist - process it [17:13:29]req_shift_opened [17:13:29]FM_GetShiftState [17:13:29]SAM_PROTO_GetShiftState [17:13:29]wFMCommunicate request_size=4 [17:13:29]MH_SAM_APDU [17:13:29]CAPDU: 80 13 01 00 [17:13:29]Write to MH i2c: E2 08 00 28 02 80 13 01 00 00 00 00 00 A7 [17:13:29]Write i2c OK [17:13:29]MH_I2C_Read... [17:13:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:29]Read from MH i2c: E2 [17:13:29]MH_I2C_Read... [17:13:29]Read from MH i2c: E2 0E 00 [17:13:29]MH_I2C_Read... [17:13:29]Read from MH i2c: E2 0E 00 28 02 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 AD [17:13:29]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [17:13:29]wFMCommunicate OK [17:13:29]SAM_PROTO_GetShiftState done [17:13:29]FM_GetShiftState done [17:13:29]req_shift_opened done [17:13:29]requested_item shift.open_date is exist - process it [17:13:29]req_shift_open_date [17:13:29]req_shift_open_date done [17:13:29]produce_requested_data done [17:13:29]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":193006,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [17:13:29]process_action_free close_receipt [17:13:29]json_value_free [17:13:29]json_value_free done [17:13:29]process_json_proto returns [17:13:29]Send response to host [17:13:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":193006,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [17:13:29]free response buf [17:13:29]execute_script done [17:13:29]execute_script returns [17:13:29]free content buf [17:13:29]Sock 7.Close socket [17:13:29]Sock 7.Thread stoped [17:13:32]OFD Sender: No OFD packet to send [17:13:37]OFD Sender: No OFD packet to send [17:13:42]OFD Sender: No OFD packet to send [17:13:47]OFD Sender: No OFD packet to send [17:13:52]OFD Sender: No OFD packet to send [17:13:57]OFD Sender: No OFD packet to send [17:14:02]OFD Sender: No OFD packet to send [17:14:07]OFD Sender: No OFD packet to send [17:14:12]OFD Sender: No OFD packet to send [17:14:17]OFD Sender: No OFD packet to send [17:14:22]OFD Sender: No OFD packet to send [17:14:27]OFD Sender: No OFD packet to send [17:14:32]OFD Sender: No OFD packet to send [17:14:37]OFD Sender: No OFD packet to send [17:14:42]OFD Sender: No OFD packet to send [17:14:47]OFD Sender: No OFD packet to send [17:14:52]OFD Sender: No OFD packet to send [17:14:57]OFD Sender: No OFD packet to send [17:15:02]OFD Sender: No OFD packet to send [17:15:07]OFD Sender: No OFD packet to send [17:15:12]OFD Sender: No OFD packet to send [17:15:17]OFD Sender: No OFD packet to send [17:15:22]OFD Sender: No OFD packet to send [17:15:27]OFD Sender: No OFD packet to send [17:15:32]OFD Sender: No OFD packet to send [17:15:37]OFD Sender: No OFD packet to send [17:15:42]OFD Sender: No OFD packet to send [17:15:47]OFD Sender: No OFD packet to send [17:15:52]OFD Sender: No OFD packet to send [17:15:57]OFD Sender: No OFD packet to send [17:16:02]OFD Sender: No OFD packet to send [17:16:07]OFD Sender: No OFD packet to send [17:16:12]OFD Sender: No OFD packet to send [17:16:17]OFD Sender: No OFD packet to send [17:16:22]OFD Sender: No OFD packet to send [17:16:27]OFD Sender: No OFD packet to send [17:16:32]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:08]accept exits with 9 [17:19:08]New connection [17:19:08]New thread 3067207012 created [17:19:08]Thread 3067350372 joined [17:19:08]Waiting for new connection... [17:19:08] Sock 9.Parse request [17:19:08]Sock 9.Check first char [17:19:08]Sock 9.First char is OK [17:19:08]request: POST /json_proto HTTP/1.0 [17:19:08]Method: POST [17:19:08]URL: /json_proto [17:19:08]Method is POST - this is cgi request [17:19:08]url: /json_proto [17:19:08]query_string will be loaded in cgi processing [17:19:08]execute_cgi json_proto POST (null) [17:19:08]execute_cgi path=json_proto method=POST [17:19:08]POST find Content-Length [17:19:08]Host: 172.17.63.131:8080 [17:19:08]Content-Length: 676 [17:19:08]Content-Type: application/json [17:19:08] [17:19:08]POST finish read [17:19:08]Found Content-Length = 676 [17:19:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32338", "tax_sys" : 0, "items" : [ { "pre_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" ] } } [17:19:08]execute_script... [17:19:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32338", "tax_sys" : 0, "items" : [ { "pre_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" ] } } [17:19:08]POST & json_proto [17:19:08]process_json_proto [17:19:08]json parsed OK: [17:19:08]protocol is kg_v1.0 [17:19:08]action value=close_receipt [17:19:08]process_action close_receipt [17:19:08]cmd_close_receipt [17:19:08]MH_GetDate [17:19:08]Write to MH i2c: F0 00 00 29 02 1A [17:19:08]Write i2c OK [17:19:08]MH_I2C_Read... [17:19:08]Read from MH i2c: F0 [17:19:08]MH_I2C_Read... [17:19:08]Read from MH i2c: F0 09 00 [17:19:08]MH_I2C_Read... [17:19:08]Read from MH i2c: F0 09 00 29 02 00 0D 19 21 67 22 05 6E 64 CA [17:19:08]GetLastDocTimeStamp 1730222005 [17:19:08]current date 1730222349 [17:19:08]FM_GetShiftState [17:19:08]SAM_PROTO_GetShiftState [17:19:08]wFMCommunicate request_size=4 [17:19:08]MH_SAM_APDU [17:19:08]CAPDU: 80 13 01 00 [17:19:08]Write to MH i2c: E2 08 00 2A 02 80 13 01 00 00 00 00 00 A9 [17:19:08]Write i2c OK [17:19:08]MH_I2C_Read... [17:19:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:08]Read from MH i2c: E2 [17:19:08]MH_I2C_Read... [17:19:08]Read from MH i2c: E2 0E 00 [17:19:08]MH_I2C_Read... [17:19:08]Read from MH i2c: E2 0E 00 2A 02 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 AF [17:19:08]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [17:19:08]wFMCommunicate OK [17:19:08]SAM_PROTO_GetShiftState done [17:19:08]FM_GetShiftState done [17:19:08]opened in 1730161990 [17:19:08]opened+sec_in_day 1730248390 [17:19:08]quantity*price = 40006 [17:19:08]sum+1 = 40007 [17:19:08]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 СÐО: Общий режим Чек 213 29.10.2024 17:19 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 193007 ФПД: 91737140687140 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T171909&type=1&operation_type=1&fn_number=0000000000871754&fd_number=193007&fm=91737140687140&tin=02508201610067®Number=0000000000091776&sum=40000 [17:19:09]StoreToDocumentArchive [17:19:09]shift 544 fd 193007 [17:19:09]save to /storage/0544/doc_00193007 [17:19:09]save last doc name /storage/0544/doc_00193007 to /storage/kkm_last_doc_name [17:19:09]save OK [17:19:09]Clear old archive folders... [17:19:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:19:09]tlvbuf is 00AAB820 [17:19:09]SAM_PROTO_ClearQueue [17:19:09]wFMCommunicate request_size=4 [17:19:09]MH_SAM_APDU [17:19:09]CAPDU: 80 09 00 00 [17:19:09]Write to MH i2c: E2 08 00 37 02 80 09 00 00 00 00 00 00 AB [17:19:09]Write i2c OK [17:19:09]MH_I2C_Read... [17:19:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:19:09]Read from MH i2c: E2 [17:19:09]MH_I2C_Read... [17:19:09]Read from MH i2c: E2 03 00 [17:19:09]MH_I2C_Read... [17:19:09]Read from MH i2c: E2 03 00 37 02 00 90 00 AD [17:19:09]RAPDU: 90 00 [17:19:09]wFMCommunicate OK [17:19:09]SAM_PROTO_ClearQueue done [17:19:09]KKMCreateOFDPacket [17:19:09]OFDProtocolAddRootSTLVToBuf [17:19:09]FM_MakeSignedData [17:19:09]FM_MakeSignedData [17:19:09]SAM_PROTO_SignData [17:19:09]wFMCommunicate request_size=4 [17:19:09]MH_SAM_APDU [17:19:09]CAPDU: 80 0D 01 02 [17:19:09]Write to MH i2c: E2 08 00 38 02 80 0D 01 02 00 00 00 00 B3 [17:19:09]Write i2c OK [17:19:09]MH_I2C_Read... [17:19:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:19:09]Read from MH i2c: E2 [17:19:09]MH_I2C_Read... [17:19:09]Read from MH i2c: E2 03 00 [17:19:09]MH_I2C_Read... [17:19:09]Read from MH i2c: E2 03 00 38 02 00 90 00 AE [17:19:09]RAPDU: 90 00 [17:19:09]wFMCommunicate OK [17:19:09]wFMCommunicate request_size=255 [17:19:09]MH_SAM_APDU [17:19:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 D5 00 00 00 F4 03 04 00 0D 19 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 53 [17:19:09]Write to MH i2c: E2 02 01 39 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 D5 00 00 00 F4 03 04 00 0D 19 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 53 00 00 F0 [17:19:09]Write i2c OK [17:19:09]MH_I2C_Read... [17:19:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:10]Read from MH i2c: E2 [17:19:10]MH_I2C_Read... [17:19:10]Read from MH i2c: E2 03 00 [17:19:10]MH_I2C_Read... [17:19:10]Read from MH i2c: E2 03 00 39 02 00 90 00 AF [17:19:10]RAPDU: 90 00 [17:19:10]wFMCommunicate OK [17:19:10]wFMCommunicate request_size=10 [17:19:10]MH_SAM_APDU [17:19:10]CAPDU: 80 0D 02 02 05 6F 37 AE F1 24 [17:19:10]Write to MH i2c: E2 0D 00 3A 02 80 0D 02 02 05 00 6F 37 AE F1 24 00 00 29 [17:19:10]Write i2c OK [17:19:10]MH_I2C_Read... [17:19:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:10]Read from MH i2c: E2 [17:19:10]MH_I2C_Read... [17:19:10]Read from MH i2c: E2 03 00 [17:19:10]MH_I2C_Read... [17:19:10]Read from MH i2c: E2 03 00 3A 02 00 90 00 B0 [17:19:10]RAPDU: 90 00 [17:19:10]wFMCommunicate OK [17:19:10]wFMCommunicate request_size=4 [17:19:10]MH_SAM_APDU [17:19:10]CAPDU: 80 0D 03 02 [17:19:10]Write to MH i2c: E2 08 00 3B 02 80 0D 03 02 00 00 00 00 B8 [17:19:10]Write i2c OK [17:19:10]MH_I2C_Read... [17:19:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:19:10]Read from MH i2c: E2 [17:19:10]MH_I2C_Read... [17:19:10]Read from MH i2c: E2 0B 00 [17:19:10]MH_I2C_Read... [17:19:10]Read from MH i2c: E2 0B 00 3B 02 00 9D FA 16 1A 67 64 17 D2 90 00 34 [17:19:10]RAPDU: 9D FA 16 1A 67 64 17 D2 90 00 [17:19:10]wFMCommunicate OK [17:19:10]SAM_PROTO_SignData done [17:19:10]FM_MakeSignedData done [17:19:10]CreateOFDProtocolMessage [17:19:10]wFMCommunicate request_size=4 [17:19:10]MH_SAM_APDU [17:19:10]CAPDU: 80 11 00 00 [17:19:10]Write to MH i2c: E2 08 00 3C 02 80 11 00 00 00 00 00 00 B8 [17:19:10]Write i2c OK [17:19:10]MH_I2C_Read... [17:19:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:10]Read from MH i2c: E2 [17:19:10]MH_I2C_Read... [17:19:10]Read from MH i2c: E2 17 00 [17:19:10]MH_I2C_Read... [17:19:10]Read from MH i2c: E2 17 00 3C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0B [17: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 [17:19:10]wFMCommunicate OK [17:19:10]CreateOFDProtocolMessage done [17:19:10]OFDSenderStorePacket 193007 [17:19:10]StoreOFDPacket docnum=193007 [17:19: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 1F 95 07 01 A7 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 D5 00 00 00 F4 03 04 00 0D 19 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 53 6F 37 AE F1 24 9D FA 16 1A 67 64 17 D2 [17:19:10]CheckFolder [17:19:10]dirname=/storage/ofd_packets [17:19:10]CheckFolder done [17:19:10]ProducePacketName [17:19:10]name=ofd_packets/00193007 [17:19:10]NVStorageSaveData ofd_packets/00193007 [17:19:10]File name is /storage/ofd_packets/00193007 [17:19:10]Write 301 bytes [17:19:10]NVStorageSaveData done [17:19:10]OFDSenderStorePacket done [17:19:10]KKMCreateOFDPacket done [17:19:10]NVStorageSaveData kkm_last_timestamp [17:19:10]File name is /storage/kkm_last_timestamp [17:19:10]Write 4 bytes [17:19:10]NVStorageSaveData done [17:19:10]ExternCall_PrintAddStr [17:19:10]wPrintStart [17:19:10]Write to MH i2c: 01 00 00 3D 02 3F [17:19:10]Write i2c OK [17:19:10]MH_I2C_Read... [17:19:10]Read from MH i2c: 01 [17:19:10]MH_I2C_Read... [17:19:10]Read from MH i2c: 01 07 00 [17:19:10]MH_I2C_Read... [17:19:10]Read from MH i2c: 01 07 00 3D 02 00 00 00 00 00 FF 0F 54 [17:19:10]RasterBufferAndPrint [17:19:10]line Счет N : (1)32338 [17:19:10]line ИÐÐ: 02508201610067 [17:19:10]line Контрольно-КаÑÑовый Чек [17:19:10]line ПРОДÐЖР[17:19:10]line ТРК (МРК, ГÐК) : 21 [17:19:10]line Товар: 2710124130 [17:19:10]line Ðи-92-К-5 [17:19:10]line 5.980 * 66.90 [17:19:10]line = 400.06 [17:19:10]line ÐДС 12% ÐСП 1% [17:19:10]line > о реализуемом товаре [17:19:10]line ОКРУГЛЕÐИЕ: -0.06 [17:19:10]line ИТОГО: 400.00 [17:19:10]line ВнеÑено: 400.00 [17:19:10]line СДÐЧÐ: 0.00 [17:19:10]line ÐСП 1% : 3.54 [17:19:10]line ÐДС 12% : 42.48 [17:19:10]line Ðаличными: 400.00 [17:19:10]line Безнал.: 0.00 [17:19:10]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [17:19:10]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [17:19:10]line СÐО: Общий режим [17:19:10]line Чек 213 29.10.2024 17:19 [17:19:10]line Смена: 544 ФФД: 1.0 [17:19:10]line ЗÐМ: 0300000110 [17:19:10]line РÐМ: 0000000000091776 [17:19:10]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [17:19:10]line ФМ: 0000000000871754 [17:19:10]line ФД: 193007 [17:19:10]line ФПД: 91737140687140 [17:19:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T171909&type=1&operation_type=1&fn_number=0000000000871754&fd_number=193007&fm=91737140687140&tin=02508201610067®Number=0000000000091776&sum=40000 [17:19:10]OFD Sender: Processing packet 193007 [packets to send 75, broken 74] [17:19:10]ProducePacketName [17:19:10]name=ofd_packets/00193007 [17:19:10]OFD Sender: To server: ‡•öpG, [17:19:10]CommunicateWithHost lk.salyk.kg:30040 [17:19:10]ConnectInit lk.salyk.kg [17:19:10]written 0, free lines is 4095 [17:19:10]Connected sock=10 [17:19:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1F 95 07 01 A7 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 D5 00 00 00 F4 03 04 00 0D 19 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 53 6F 37 AE F1 24 9D FA 16 1A 67 64 17 D2 [17:19: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 38 82 47 00 E7 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 EF F1 02 00 F4 03 04 00 CD BD 20 67 B6 04 01 00 00 86 13 1C C8 F1 84 05 63 [17:19:11]CommunicateWithHost err = 0 [17:19:11]CheckOFDResponse [17:19:11]1017 (14) - 77093643461234 [17:19:11]1041 (16) - 0000000000871754 [17:19:11]1040 (4) - 193007 [17:19:11]1012 (4) - 29.10.2024 10:49 [17:19:11]1206 (1) - 0 [17:19:11]OFD Sender: Remove packet 193007 [17:19:11]ProducePacketName [17:19:11]name=ofd_packets/00193007 [17:19:11]NVStorageDeleteData [17:19:11]Write to MH i2c: 01 00 00 68 02 6A [17:19:11]Write i2c OK [17:19:11]MH_I2C_Read... [17:19:11]Read from MH i2c: 01 [17:19:11]MH_I2C_Read... [17:19:11]Read from MH i2c: 01 07 00 [17:19:11]MH_I2C_Read... [17:19:11]Read from MH i2c: 01 07 00 68 02 00 00 00 00 00 B5 0C 32 [17:19:11]RasterBufferAndPrint [17:19:11]line [17:19:11]line [17:19:11]line [17:19:11]line [17:19:11]line [17:19:11]written 0, free lines is 3262 [17:19:11]MH_Cut [17:19:11]Write to MH i2c: D1 01 00 6F 02 01 43 [17:19:11]Write i2c OK [17:19:11]MH_I2C_Read... [17:19:11]Read from MH i2c: D1 [17:19:11]MH_I2C_Read... [17:19:11]Read from MH i2c: D1 01 00 [17:19:11]MH_I2C_Read... [17:19:11]Read from MH i2c: D1 01 00 6F 02 00 42 [17:19:11]Write to MH i2c: 01 00 00 70 02 72 [17:19:11]Write i2c OK [17:19:11]MH_I2C_Read... [17:19:11]OFD Sender: No OFD packet to send [17:19:12]*** Cut start [17:19:12]*** Partial cut [17:19:12]*** CUTSNS_PIN = 1 [17:19:12]*** CUTSNS_PIN = 0 [17:19:12]*** Brake cut motor [17:19:12]Read from MH i2c: 01 [17:19:12]MH_I2C_Read... [17:19:12]*** Stop cut motor [17:19:12]*** Cut end [17:19:12]Read from MH i2c: 01 07 00 [17:19:12]MH_I2C_Read... [17:19:12]Read from MH i2c: 01 07 00 70 02 00 00 00 00 00 FF 0F 87 [17:19:12]process_action close_receipt done [17:19:12]requested_data is exist [17:19:12]produce_requested_data [17:19:12]requested_item fm.sn is exist - process it [17:19:12]wFMCommunicate request_size=4 [17:19:12]MH_SAM_APDU [17:19:12]CAPDU: 80 11 00 00 [17:19:12]Write to MH i2c: E2 08 00 71 02 80 11 00 00 00 00 00 00 ED [17:19:12]Write i2c OK [17:19:12]MH_I2C_Read... [17:19:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:12]Read from MH i2c: E2 [17:19:12]MH_I2C_Read... [17:19:12]Read from MH i2c: E2 17 00 [17:19:12]MH_I2C_Read... [17:19:12]Read from MH i2c: E2 17 00 71 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 40 [17:19:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:19:12]wFMCommunicate OK [17:19:12]requested_item fd.num is exist - process it [17:19:12]SAM_PROTO_GetFieldsCounters [17:19:12]wFMCommunicate request_size=4 [17:19:12]MH_SAM_APDU [17:19:12]CAPDU: 80 13 00 00 [17:19:12]Write to MH i2c: E2 08 00 72 02 80 13 00 00 00 00 00 00 F0 [17:19:12]Write i2c OK [17:19:12]MH_I2C_Read... [17:19:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:19:12]Read from MH i2c: E2 [17:19:12]MH_I2C_Read... [17:19:12]Read from MH i2c: E2 62 00 [17:19:12]MH_I2C_Read... [17:19:12]Read from MH i2c: E2 62 00 72 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 F1 02 00 0E 04 04 00 20 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 99 [17:19:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 F1 02 00 0E 04 04 00 20 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 [17:19:12]wFMCommunicate OK [17:19:12]SAM_PROTO_GetFieldsCounters done [17:19:12]requested_item shift.num is exist - process it [17:19:12]requested_item shift.opened is exist - process it [17:19:12]req_shift_opened [17:19:12]FM_GetShiftState [17:19:12]SAM_PROTO_GetShiftState [17:19:12]wFMCommunicate request_size=4 [17:19:12]MH_SAM_APDU [17:19:12]CAPDU: 80 13 01 00 [17:19:12]Write to MH i2c: E2 08 00 73 02 80 13 01 00 00 00 00 00 F2 [17:19:12]Write i2c OK [17:19:12]MH_I2C_Read... [17:19:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:12]Read from MH i2c: E2 [17:19:12]MH_I2C_Read... [17:19:12]Read from MH i2c: E2 0E 00 [17:19:12]MH_I2C_Read... [17:19:12]Read from MH i2c: E2 0E 00 73 02 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 F8 [17:19:12]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [17:19:12]wFMCommunicate OK [17:19:12]SAM_PROTO_GetShiftState done [17:19:12]FM_GetShiftState done [17:19:12]req_shift_opened done [17:19:12]requested_item shift.open_date is exist - process it [17:19:12]req_shift_open_date [17:19:12]req_shift_open_date done [17:19:12]produce_requested_data done [17:19:12]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":193007,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [17:19:12]process_action_free close_receipt [17:19:12]json_value_free [17:19:12]json_value_free done [17:19:12]process_json_proto returns [17:19:12]Send response to host [17:19:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":193007,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [17:19:12]free response buf [17:19:12]execute_script done [17:19:12]execute_script returns [17:19:12]free content buf [17:19:12]Sock 9.Close socket [17:19:12]Sock 9.Thread stoped [17:19:16]OFD Sender: No OFD packet to send [17:19:21]OFD Sender: No OFD packet to send [17:19:26]OFD Sender: No OFD packet to send [17:19:31]OFD Sender: No OFD packet to send [17:19:36]OFD Sender: No OFD packet to send [17:19:41]OFD Sender: No OFD packet to send [17:19:46]OFD Sender: No OFD packet to send [17:19:51]OFD Sender: No OFD packet to send [17:19:56]OFD Sender: No OFD packet to send [17:20:01]OFD Sender: No OFD packet to send [17:20:06]OFD Sender: No OFD packet to send [17:20:11]OFD Sender: No OFD packet to send [17:20:16]OFD Sender: No OFD packet to send [17:20:21]OFD Sender: No OFD packet to send [17:20:26]OFD Sender: No OFD packet to send [17:20:31]OFD Sender: No OFD packet to send [17:20:36]OFD Sender: No OFD packet to send [17:20:41]OFD Sender: No OFD packet to send [17:20:46]OFD Sender: No OFD packet to send [17:20:51]OFD Sender: No OFD packet to send [17:20:56]OFD Sender: No OFD packet to send [17:21:01]OFD Sender: No OFD packet to send [17:21:06]OFD Sender: No OFD packet to send [17:21:11]OFD Sender: No OFD packet to send [17:21:16]OFD Sender: No OFD packet to send [17:21:21]OFD Sender: No OFD packet to send [17:21:26]OFD Sender: No OFD packet to send [17:21:31]OFD Sender: No OFD packet to send [17:21:36]OFD Sender: No OFD packet to send [17:21:41]OFD Sender: No OFD packet to send [17:21:46]OFD Sender: No OFD packet to send [17:21:51]OFD Sender: No OFD packet to send [17:21:56]OFD Sender: No OFD packet to send [17:22:01]OFD Sender: No OFD packet to send [17:22:06]OFD Sender: No OFD packet to send [17:22:11]OFD Sender: No OFD packet to send [17:22:16]OFD Sender: No OFD packet to send [17:22:21]OFD Sender: No OFD packet to send [17:22:26]OFD Sender: No OFD packet to send [17:22:31]OFD Sender: No OFD packet to send [17:22:36]OFD Sender: No OFD packet to send [17:22:41]OFD Sender: No OFD packet to send [17:22:46]OFD Sender: No OFD packet to send [17:22:51]OFD Sender: No OFD packet to send [17:22:56]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:18]accept exits with 7 [17:23:18]New connection [17:23:18]New thread 3067350372 created [17:23:18]Thread 3067207012 joined [17:23:18]Waiting for new connection... [17:23:18] Sock 7.Parse request [17:23:18]Sock 7.Check first char [17:23:18]Sock 7.First char is OK [17:23:18]request: POST /json_proto HTTP/1.0 [17:23:18]Method: POST [17:23:18]URL: /json_proto [17:23:18]Method is POST - this is cgi request [17:23:18]url: /json_proto [17:23:18]query_string will be loaded in cgi processing [17:23:18]execute_cgi json_proto POST (null) [17:23:18]execute_cgi path=json_proto method=POST [17:23:18]POST find Content-Length [17:23:18]Host: 172.17.63.131:8080 [17:23:18]Content-Length: 676 [17:23:18]Content-Type: application/json [17:23:18] [17:23:18]POST finish read [17:23:18]Found Content-Length = 676 [17:23:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32339", "tax_sys" : 0, "items" : [ { "pre_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:18]execute_script... [17:23: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)32339", "tax_sys" : 0, "items" : [ { "pre_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:18]POST & json_proto [17:23:18]process_json_proto [17:23:18]json parsed OK: [17:23:18]protocol is kg_v1.0 [17:23:18]action value=close_receipt [17:23:18]process_action close_receipt [17:23:18]cmd_close_receipt [17:23:18]MH_GetDate [17:23:18]Write to MH i2c: F0 00 00 74 02 65 [17:23:18]Write i2c OK [17:23:18]MH_I2C_Read... [17:23:18]Read from MH i2c: F0 [17:23:18]MH_I2C_Read... [17:23:18]Read from MH i2c: F0 09 00 [17:23:18]MH_I2C_Read... [17:23:18]Read from MH i2c: F0 09 00 74 02 00 07 1A 21 67 22 05 6E 64 10 [17:23:18]GetLastDocTimeStamp 1730222349 [17:23:18]current date 1730222599 [17:23:18]FM_GetShiftState [17:23:18]SAM_PROTO_GetShiftState [17:23:18]wFMCommunicate request_size=4 [17:23:18]MH_SAM_APDU [17:23:18]CAPDU: 80 13 01 00 [17:23:18]Write to MH i2c: E2 08 00 75 02 80 13 01 00 00 00 00 00 F4 [17:23:18]Write i2c OK [17:23:18]MH_I2C_Read... [17:23:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:23:18]Read from MH i2c: E2 [17:23:18]MH_I2C_Read... [17:23:18]Read from MH i2c: E2 0E 00 [17:23:18]MH_I2C_Read... [17:23:18]Read from MH i2c: E2 0E 00 75 02 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 FA [17:23:18]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [17:23:18]wFMCommunicate OK [17:23:18]SAM_PROTO_GetShiftState done [17:23:18]FM_GetShiftState done [17:23:18]opened in 1730161990 [17:23:18]opened+sec_in_day 1730248390 [17:23:18]quantity*price = 50041 [17:23:18]sum+1 = 50042 [17:23: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 СÐО: Общий режим Чек 214 29.10.2024 17:23 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 193008 ФПД: 116149353616029 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T172319&type=1&operation_type=1&fn_number=0000000000871754&fd_number=193008&fm=116149353616029&tin=02508201610067®Number=0000000000091776&sum=50000 [17:23:19]StoreToDocumentArchive [17:23:19]shift 544 fd 193008 [17:23:19]save to /storage/0544/doc_00193008 [17:23:19]save last doc name /storage/0544/doc_00193008 to /storage/kkm_last_doc_name [17:23:19]save OK [17:23:19]Clear old archive folders... [17:23:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:23:19]tlvbuf is 00AEF8F0 [17:23:19]SAM_PROTO_ClearQueue [17:23:19]wFMCommunicate request_size=4 [17:23:19]MH_SAM_APDU [17:23:19]CAPDU: 80 09 00 00 [17:23:19]Write to MH i2c: E2 08 00 82 02 80 09 00 00 00 00 00 00 F6 [17:23:19]Write i2c OK [17:23:19]MH_I2C_Read... [17:23:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:23:19]Read from MH i2c: E2 [17:23:19]MH_I2C_Read... [17:23:19]Read from MH i2c: E2 03 00 [17:23:19]MH_I2C_Read... [17:23:19]Read from MH i2c: E2 03 00 82 02 00 90 00 F8 [17:23:19]RAPDU: 90 00 [17:23:19]wFMCommunicate OK [17:23:19]SAM_PROTO_ClearQueue done [17:23:19]KKMCreateOFDPacket [17:23:19]OFDProtocolAddRootSTLVToBuf [17:23:19]FM_MakeSignedData [17:23:19]FM_MakeSignedData [17:23:19]SAM_PROTO_SignData [17:23:19]wFMCommunicate request_size=4 [17:23:19]MH_SAM_APDU [17:23:19]CAPDU: 80 0D 01 02 [17:23:19]Write to MH i2c: E2 08 00 83 02 80 0D 01 02 00 00 00 00 FE [17:23:19]Write i2c OK [17:23:19]MH_I2C_Read... [17:23:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:23:20]Read from MH i2c: E2 [17:23:20]MH_I2C_Read... [17:23:20]Read from MH i2c: E2 03 00 [17:23:20]MH_I2C_Read... [17:23:20]Read from MH i2c: E2 03 00 83 02 00 90 00 F9 [17:23:20]RAPDU: 90 00 [17:23:20]wFMCommunicate OK [17:23:20]wFMCommunicate request_size=255 [17:23:20]MH_SAM_APDU [17:23: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 D6 00 00 00 F4 03 04 00 07 1A 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 69 [17:23:20]Write to MH i2c: E2 02 01 84 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 07 1A 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 69 00 00 7F [17:23:20]Write i2c OK [17:23:20]MH_I2C_Read... [17:23:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:23:20]Read from MH i2c: E2 [17:23:20]MH_I2C_Read... [17:23:20]Read from MH i2c: E2 03 00 [17:23:20]MH_I2C_Read... [17:23:20]Read from MH i2c: E2 03 00 84 02 00 90 00 FA [17:23:20]RAPDU: 90 00 [17:23:20]wFMCommunicate OK [17:23:20]wFMCommunicate request_size=10 [17:23:20]MH_SAM_APDU [17:23:20]CAPDU: 80 0D 02 02 05 A3 20 F6 92 9D [17:23:20]Write to MH i2c: E2 0D 00 85 02 80 0D 02 02 05 00 A3 20 F6 92 9D 00 00 F3 [17:23:20]Write i2c OK [17:23:20]MH_I2C_Read... [17:23:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:23:20]Read from MH i2c: E2 [17:23:20]MH_I2C_Read... [17:23:20]Read from MH i2c: E2 03 00 [17:23:20]MH_I2C_Read... [17:23:20]Read from MH i2c: E2 03 00 85 02 00 90 00 FB [17:23:20]RAPDU: 90 00 [17:23:20]wFMCommunicate OK [17:23:20]wFMCommunicate request_size=4 [17:23:20]MH_SAM_APDU [17:23:20]CAPDU: 80 0D 03 02 [17:23:20]Write to MH i2c: E2 08 00 86 02 80 0D 03 02 00 00 00 00 03 [17:23:20]Write i2c OK [17:23:20]MH_I2C_Read... [17:23:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:23:20]Read from MH i2c: E2 [17:23:20]MH_I2C_Read... [17:23:20]Read from MH i2c: E2 0B 00 [17:23:20]MH_I2C_Read... [17:23:20]Read from MH i2c: E2 0B 00 86 02 00 C1 45 10 52 9E 0D 13 3F 90 00 69 [17:23:20]RAPDU: C1 45 10 52 9E 0D 13 3F 90 00 [17:23:20]wFMCommunicate OK [17:23:20]SAM_PROTO_SignData done [17:23:20]FM_MakeSignedData done [17:23:20]CreateOFDProtocolMessage [17:23:20]wFMCommunicate request_size=4 [17:23:20]MH_SAM_APDU [17:23:20]CAPDU: 80 11 00 00 [17:23:20]Write to MH i2c: E2 08 00 87 02 80 11 00 00 00 00 00 00 03 [17:23:20]Write i2c OK [17:23:20]MH_I2C_Read... [17:23:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:23:20]Read from MH i2c: E2 [17:23:20]MH_I2C_Read... [17:23:20]Read from MH i2c: E2 17 00 [17:23:20]MH_I2C_Read... [17:23:20]Read from MH i2c: E2 17 00 87 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 56 [17:23:20]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:20]wFMCommunicate OK [17:23:20]CreateOFDProtocolMessage done [17:23:20]OFDSenderStorePacket 193008 [17:23:20]StoreOFDPacket docnum=193008 [17:23: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 23 63 07 01 63 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 07 1A 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 69 A3 20 F6 92 9D C1 45 10 52 9E 0D 13 3F [17:23:20]CheckFolder [17:23:20]dirname=/storage/ofd_packets [17:23:20]CheckFolder done [17:23:20]ProducePacketName [17:23:20]name=ofd_packets/00193008 [17:23:20]NVStorageSaveData ofd_packets/00193008 [17:23:20]File name is /storage/ofd_packets/00193008 [17:23:20]Write 301 bytes [17:23:20]NVStorageSaveData done [17:23:20]OFDSenderStorePacket done [17:23:20]KKMCreateOFDPacket done [17:23:20]NVStorageSaveData kkm_last_timestamp [17:23:20]File name is /storage/kkm_last_timestamp [17:23:20]Write 4 bytes [17:23:20]NVStorageSaveData done [17:23:20]OFD Sender: Processing packet 193008 [packets to send 75, broken 74] [17:23:20]ProducePacketName [17:23:20]name=ofd_packets/00193008 [17:23:20]OFD Sender: To server: ‡•öpG, [17:23:20]CommunicateWithHost lk.salyk.kg:30040 [17:23:20]ConnectInit lk.salyk.kg [17:23:20]ExternCall_PrintAddStr [17:23:20]wPrintStart [17:23:20]Write to MH i2c: 01 00 00 88 02 8A [17:23:20]Write i2c OK [17:23:20]MH_I2C_Read... [17:23:20]Read from MH i2c: 01 [17:23:20]MH_I2C_Read... [17:23:20]Read from MH i2c: 01 07 00 [17:23:20]MH_I2C_Read... [17:23:20]Read from MH i2c: 01 07 00 88 02 00 00 00 00 00 FF 0F 9F [17:23:20]RasterBufferAndPrint [17:23:20]line Счет N : (1)32339 [17:23:20]line ИÐÐ: 02508201610067 [17:23:20]line Контрольно-КаÑÑовый Чек [17:23:20]line ПРОДÐЖР[17:23:20]line ТРК (МРК, ГÐК) : 21 [17:23:20]line Товар: 2710124130 [17:23:20]line Ðи-92-К-5 [17:23:20]line 7.480 * 66.90 [17:23:20]line = 500.41 [17:23:20]line ÐДС 12% ÐСП 1% [17:23:20]line > о реализуемом товаре [17:23:20]line ОКРУГЛЕÐИЕ: -0.41 [17:23:20]line ИТОГО: 500.00 [17:23:20]line ВнеÑено: 500.00 [17:23:20]line СДÐЧÐ: 0.00 [17:23:20]line ÐСП 1% : 4.43 [17:23:20]line ÐДС 12% : 53.14 [17:23:20]line Ðаличными: 500.00 [17:23:20]line Безнал.: 0.00 [17:23:20]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [17:23:20]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [17:23:20]line СÐО: Общий режим [17:23:20]line Чек 214 29.10.2024 17:23 [17:23:20]line Смена: 544 ФФД: 1.0 [17:23:20]line ЗÐМ: 0300000110 [17:23:20]line РÐМ: 0000000000091776 [17:23:20]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [17:23:20]line ФМ: 0000000000871754 [17:23:20]line ФД: 193008 [17:23:20]line ФПД: 116149353616029 [17:23:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T172319&type=1&operation_type=1&fn_number=0000000000871754&fd_number=193008&fm=116149353616029&tin=02508201610067®Number=0000000000091776&sum=50000 [17:23:20]Connected sock=11 [17:23: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 23 63 07 01 63 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 07 1A 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 69 A3 20 F6 92 9D C1 45 10 52 9E 0D 13 3F [17:23:20]written 0, free lines is 4095 [17:23: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 BA 81 47 00 98 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 F0 F1 02 00 F4 03 04 00 C7 BE 20 67 B6 04 01 00 00 52 C4 1B 3B 4F D6 57 52 [17:23:20]CommunicateWithHost err = 0 [17:23:20]CheckOFDResponse [17:23:20]1017 (14) - 77093643461234 [17:23:20]1041 (16) - 0000000000871754 [17:23:20]1040 (4) - 193008 [17:23:20]1012 (4) - 29.10.2024 10:53 [17:23:20]1206 (1) - 0 [17:23:20]OFD Sender: Remove packet 193008 [17:23:20]ProducePacketName [17:23:20]name=ofd_packets/00193008 [17:23:20]NVStorageDeleteData [17:23:21]Write to MH i2c: 01 00 00 B3 02 B5 [17:23:21]Write i2c OK [17:23:21]MH_I2C_Read... [17:23:21]Read from MH i2c: 01 [17:23:21]MH_I2C_Read... [17:23:21]Read from MH i2c: 01 07 00 [17:23:21]MH_I2C_Read... [17:23:21]Read from MH i2c: 01 07 00 B3 02 00 00 00 00 00 A7 0C 6F [17:23:21]RasterBufferAndPrint [17:23:21]line [17:23:21]line [17:23:21]line [17:23:21]line [17:23:21]line [17:23:21]written 0, free lines is 3245 [17:23:21]MH_Cut [17:23:21]Write to MH i2c: D1 01 00 BA 02 01 8E [17:23:21]Write i2c OK [17:23:21]MH_I2C_Read... [17:23:21]Read from MH i2c: D1 [17:23:21]MH_I2C_Read... [17:23:21]Read from MH i2c: D1 01 00 [17:23:21]MH_I2C_Read... [17:23:21]Read from MH i2c: D1 01 00 BA 02 00 8D [17:23:21]Write to MH i2c: 01 00 00 BB 02 BD [17:23:21]Write i2c OK [17:23:21]MH_I2C_Read... [17:23:21]OFD Sender: No OFD packet to send [17:23:22]*** Cut start [17:23:22]*** Partial cut [17:23:22]*** CUTSNS_PIN = 1 [17:23:22]*** CUTSNS_PIN = 0 [17:23:22]*** Brake cut motor [17:23:22]Read from MH i2c: 01 [17:23:22]MH_I2C_Read... [17:23:22]*** Stop cut motor [17:23:22]*** Cut end [17:23:22]Read from MH i2c: 01 07 00 [17:23:22]MH_I2C_Read... [17:23:22]Read from MH i2c: 01 07 00 BB 02 00 00 00 00 00 FF 0F D2 [17:23:22]process_action close_receipt done [17:23:22]requested_data is exist [17:23:22]produce_requested_data [17:23:22]requested_item fm.sn is exist - process it [17:23:22]wFMCommunicate request_size=4 [17:23:22]MH_SAM_APDU [17:23:22]CAPDU: 80 11 00 00 [17:23:22]Write to MH i2c: E2 08 00 BC 02 80 11 00 00 00 00 00 00 38 [17:23:22]Write i2c OK [17:23:22]MH_I2C_Read... [17:23:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:23:22]Read from MH i2c: E2 [17:23:22]MH_I2C_Read... [17:23:22]Read from MH i2c: E2 17 00 [17:23:22]MH_I2C_Read... [17:23:22]Read from MH i2c: E2 17 00 BC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8B [17:23: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:23:22]wFMCommunicate OK [17:23:22]requested_item fd.num is exist - process it [17:23:22]SAM_PROTO_GetFieldsCounters [17:23:22]wFMCommunicate request_size=4 [17:23:22]MH_SAM_APDU [17:23:22]CAPDU: 80 13 00 00 [17:23:22]Write to MH i2c: E2 08 00 BD 02 80 13 00 00 00 00 00 00 3B [17:23:22]Write i2c OK [17:23:22]MH_I2C_Read... [17:23:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:23:22]Read from MH i2c: E2 [17:23:22]MH_I2C_Read... [17:23:22]Read from MH i2c: E2 62 00 [17:23:22]MH_I2C_Read... [17:23:22]Read from MH i2c: E2 62 00 BD 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 F1 02 00 0E 04 04 00 20 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 E8 [17:23: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 F0 F1 02 00 0E 04 04 00 20 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 [17:23:22]wFMCommunicate OK [17:23:22]SAM_PROTO_GetFieldsCounters done [17:23:22]requested_item shift.num is exist - process it [17:23:22]requested_item shift.opened is exist - process it [17:23:22]req_shift_opened [17:23:22]FM_GetShiftState [17:23:22]SAM_PROTO_GetShiftState [17:23:22]wFMCommunicate request_size=4 [17:23:22]MH_SAM_APDU [17:23:22]CAPDU: 80 13 01 00 [17:23:22]Write to MH i2c: E2 08 00 BE 02 80 13 01 00 00 00 00 00 3D [17:23:22]Write i2c OK [17:23:22]MH_I2C_Read... [17:23:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:23:22]Read from MH i2c: E2 [17:23:22]MH_I2C_Read... [17:23:22]Read from MH i2c: E2 0E 00 [17:23:22]MH_I2C_Read... [17:23:22]Read from MH i2c: E2 0E 00 BE 02 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 43 [17:23:23]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [17:23:23]wFMCommunicate OK [17:23:23]SAM_PROTO_GetShiftState done [17:23:23]FM_GetShiftState done [17:23:23]req_shift_opened done [17:23:23]requested_item shift.open_date is exist - process it [17:23:23]req_shift_open_date [17:23:23]req_shift_open_date done [17:23:23]produce_requested_data done [17:23:23]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":193008,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [17:23:23]process_action_free close_receipt [17:23:23]json_value_free [17:23:23]json_value_free done [17:23:23]process_json_proto returns [17:23:23]Send response to host [17:23:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":193008,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [17:23:23]free response buf [17:23:23]execute_script done [17:23:23]execute_script returns [17:23:23]free content buf [17:23:23]Sock 7.Close socket [17:23:23]Sock 7.Thread stoped [17:23:26]OFD Sender: No OFD packet to send [17:23:31]OFD Sender: No OFD packet to send [17:23:36]OFD Sender: No OFD packet to send [17:23:41]OFD Sender: No OFD packet to send [17:23:46]OFD Sender: No OFD packet to send [17:23:51]OFD Sender: No OFD packet to send [17:23:56]OFD Sender: No OFD packet to send [17:24:01]OFD Sender: No OFD packet to send [17:24:06]OFD Sender: No OFD packet to send [17:24:11]OFD Sender: No OFD packet to send [17:24:16]OFD Sender: No OFD packet to send [17:24:21]OFD Sender: No OFD packet to send [17:24:26]OFD Sender: No OFD packet to send [17:24:31]OFD Sender: No OFD packet to send [17:24:36]OFD Sender: No OFD packet to send [17:24:41]OFD Sender: No OFD packet to send [17:24:46]OFD Sender: No OFD packet to send [17:24:51]OFD Sender: No OFD packet to send [17:24:56]OFD Sender: No OFD packet to send [17:25:01]OFD Sender: No OFD packet to send [17:25:06]OFD Sender: No OFD packet to send [17:25:11]OFD Sender: No OFD packet to send [17:25:16]OFD Sender: No OFD packet to send [17:25:21]OFD Sender: No OFD packet to send [17:25:26]OFD Sender: No OFD packet to send [17:25:31]OFD Sender: No OFD packet to send [17:25:36]OFD Sender: No OFD packet to send [17:25:41]OFD Sender: No OFD packet to send [17:25:46]OFD Sender: No OFD packet to send [17:25:51]OFD Sender: No OFD packet to send [17:25:56]OFD Sender: No OFD packet to send [17:26:01]OFD Sender: No OFD packet to send [17:26:06]OFD Sender: No OFD packet to send [17:26:11]OFD Sender: No OFD packet to send [17:26:16]OFD Sender: No OFD packet to send [17:26:21]OFD Sender: No OFD packet to send [17:26:26]OFD Sender: No OFD packet to send [17:26: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:04]accept exits with 9 [17:27:04]New connection [17:27:04]New thread 3067207012 created [17:27:04]Thread 3067350372 joined [17:27:04]Waiting for new connection... [17:27:04] Sock 9.Parse request [17:27:04]Sock 9.Check first char [17:27:04]Sock 9.First char is OK [17:27:04]request: POST /json_proto HTTP/1.0 [17:27:04]Method: POST [17:27:04]URL: /json_proto [17:27:04]Method is POST - this is cgi request [17:27:04]url: /json_proto [17:27:04]query_string will be loaded in cgi processing [17:27:04]execute_cgi json_proto POST (null) [17:27:04]execute_cgi path=json_proto method=POST [17:27:04]POST find Content-Length [17:27:04]Host: 172.17.63.131:8080 [17:27:04]Content-Length: 676 [17:27:04]Content-Type: application/json [17:27:04] [17:27:04]POST finish read [17:27:04]Found Content-Length = 676 [17:27:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32340", "tax_sys" : 0, "items" : [ { "pre_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:27:04]execute_script... [17:27:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32340", "tax_sys" : 0, "items" : [ { "pre_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:27:04]POST & json_proto [17:27:04]process_json_proto [17:27:04]json parsed OK: [17:27:04]protocol is kg_v1.0 [17:27:04]action value=close_receipt [17:27:04]process_action close_receipt [17:27:04]cmd_close_receipt [17:27:04]MH_GetDate [17:27:04]Write to MH i2c: F0 00 00 BF 02 B0 [17:27:04]Write i2c OK [17:27:04]MH_I2C_Read... [17:27:04]Read from MH i2c: F0 [17:27:04]MH_I2C_Read... [17:27:04]Read from MH i2c: F0 09 00 [17:27:04]MH_I2C_Read... [17:27:04]Read from MH i2c: F0 09 00 BF 02 00 E9 1A 21 67 22 05 6E 64 3D [17:27:04]GetLastDocTimeStamp 1730222599 [17:27:04]current date 1730222825 [17:27:04]FM_GetShiftState [17:27:04]SAM_PROTO_GetShiftState [17:27:04]wFMCommunicate request_size=4 [17:27:04]MH_SAM_APDU [17:27:04]CAPDU: 80 13 01 00 [17:27:04]Write to MH i2c: E2 08 00 C0 02 80 13 01 00 00 00 00 00 3F [17:27:04]Write i2c OK [17:27:04]MH_I2C_Read... [17:27:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:04]Read from MH i2c: E2 [17:27:04]MH_I2C_Read... [17:27:04]Read from MH i2c: E2 0E 00 [17:27:04]MH_I2C_Read... [17:27:04]Read from MH i2c: E2 0E 00 C0 02 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 45 [17:27:04]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [17:27:04]wFMCommunicate OK [17:27:04]SAM_PROTO_GetShiftState done [17:27:04]FM_GetShiftState done [17:27:04]opened in 1730161990 [17:27:04]opened+sec_in_day 1730248390 [17:27:04]quantity*price = 30038 [17:27:04]sum+1 = 30039 [17:27: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 СÐО: Общий режим Чек 215 29.10.2024 17:27 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 193009 ФПД: 199067808522310 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T172705&type=1&operation_type=1&fn_number=0000000000871754&fd_number=193009&fm=199067808522310&tin=02508201610067®Number=0000000000091776&sum=30000 [17:27:05]StoreToDocumentArchive [17:27:05]shift 544 fd 193009 [17:27:05]save to /storage/0544/doc_00193009 [17:27:05]save last doc name /storage/0544/doc_00193009 to /storage/kkm_last_doc_name [17:27:05]save OK [17:27:05]Clear old archive folders... [17:27:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:27:05]tlvbuf is 00AF13A0 [17:27:05]SAM_PROTO_ClearQueue [17:27:05]wFMCommunicate request_size=4 [17:27:05]MH_SAM_APDU [17:27:05]CAPDU: 80 09 00 00 [17:27:05]Write to MH i2c: E2 08 00 CD 02 80 09 00 00 00 00 00 00 41 [17:27:05]Write i2c OK [17:27:05]MH_I2C_Read... [17:27:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:27:05]Read from MH i2c: E2 [17:27:05]MH_I2C_Read... [17:27:05]Read from MH i2c: E2 03 00 [17:27:05]MH_I2C_Read... [17:27:05]Read from MH i2c: E2 03 00 CD 02 00 90 00 43 [17:27:05]RAPDU: 90 00 [17:27:05]wFMCommunicate OK [17:27:05]SAM_PROTO_ClearQueue done [17:27:05]KKMCreateOFDPacket [17:27:05]OFDProtocolAddRootSTLVToBuf [17:27:05]FM_MakeSignedData [17:27:05]FM_MakeSignedData [17:27:05]SAM_PROTO_SignData [17:27:05]wFMCommunicate request_size=4 [17:27:05]MH_SAM_APDU [17:27:05]CAPDU: 80 0D 01 02 [17:27:05]Write to MH i2c: E2 08 00 CE 02 80 0D 01 02 00 00 00 00 49 [17:27:05]Write i2c OK [17:27:05]MH_I2C_Read... [17:27:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:27:05]Read from MH i2c: E2 [17:27:05]MH_I2C_Read... [17:27:05]Read from MH i2c: E2 03 00 [17:27:05]MH_I2C_Read... [17:27:05]Read from MH i2c: E2 03 00 CE 02 00 90 00 44 [17:27:05]RAPDU: 90 00 [17:27:05]wFMCommunicate OK [17:27:05]wFMCommunicate request_size=255 [17:27:05]MH_SAM_APDU [17:27:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 E9 1A 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 B5 [17:27:05]Write to MH i2c: E2 02 01 CF 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 E9 1A 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 B5 00 00 EE [17:27:05]Write i2c OK [17:27:05]MH_I2C_Read... [17:27:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:06]Read from MH i2c: E2 [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: E2 03 00 [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: E2 03 00 CF 02 00 90 00 45 [17:27:06]RAPDU: 90 00 [17:27:06]wFMCommunicate OK [17:27:06]wFMCommunicate request_size=10 [17:27:06]MH_SAM_APDU [17:27:06]CAPDU: 80 0D 02 02 05 0D 16 03 60 46 [17:27:06]Write to MH i2c: E2 0D 00 D0 02 80 0D 02 02 05 00 0D 16 03 60 46 00 00 22 [17:27:06]Write i2c OK [17:27:06]MH_I2C_Read... [17:27:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:06]Read from MH i2c: E2 [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: E2 03 00 [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: E2 03 00 D0 02 00 90 00 46 [17:27:06]RAPDU: 90 00 [17:27:06]wFMCommunicate OK [17:27:06]wFMCommunicate request_size=4 [17:27:06]MH_SAM_APDU [17:27:06]CAPDU: 80 0D 03 02 [17:27:06]Write to MH i2c: E2 08 00 D1 02 80 0D 03 02 00 00 00 00 4E [17:27:06]Write i2c OK [17:27:06]MH_I2C_Read... [17:27:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:27:06]Read from MH i2c: E2 [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: E2 0B 00 [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: E2 0B 00 D1 02 00 CD F8 04 20 28 81 62 1F 90 00 62 [17:27:06]RAPDU: CD F8 04 20 28 81 62 1F 90 00 [17:27:06]wFMCommunicate OK [17:27:06]SAM_PROTO_SignData done [17:27:06]FM_MakeSignedData done [17:27:06]CreateOFDProtocolMessage [17:27:06]wFMCommunicate request_size=4 [17:27:06]MH_SAM_APDU [17:27:06]CAPDU: 80 11 00 00 [17:27:06]Write to MH i2c: E2 08 00 D2 02 80 11 00 00 00 00 00 00 4E [17:27:06]Write i2c OK [17:27:06]MH_I2C_Read... [17:27:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:06]Read from MH i2c: E2 [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: E2 17 00 [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: E2 17 00 D2 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A1 [17: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 [17:27:06]wFMCommunicate OK [17:27:06]CreateOFDProtocolMessage done [17:27:06]OFDSenderStorePacket 193009 [17:27:06]StoreOFDPacket docnum=193009 [17: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 AD 1E 07 01 11 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 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 E9 1A 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 B5 0D 16 03 60 46 CD F8 04 20 28 81 62 1F [17:27:06]CheckFolder [17:27:06]dirname=/storage/ofd_packets [17:27:06]CheckFolder done [17:27:06]ProducePacketName [17:27:06]name=ofd_packets/00193009 [17:27:06]NVStorageSaveData ofd_packets/00193009 [17:27:06]File name is /storage/ofd_packets/00193009 [17:27:06]Write 301 bytes [17:27:06]NVStorageSaveData done [17:27:06]OFDSenderStorePacket done [17:27:06]KKMCreateOFDPacket done [17:27:06]NVStorageSaveData kkm_last_timestamp [17:27:06]File name is /storage/kkm_last_timestamp [17:27:06]Write 4 bytes [17:27:06]NVStorageSaveData done [17:27:06]ExternCall_PrintAddStr [17:27:06]wPrintStart [17:27:06]Write to MH i2c: 01 00 00 D3 02 D5 [17:27:06]Write i2c OK [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: 01 [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: 01 07 00 [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: 01 07 00 D3 02 00 00 00 00 00 FF 0F EA [17:27:06]RasterBufferAndPrint [17:27:06]line Счет N : (1)32340 [17:27:06]line ИÐÐ: 02508201610067 [17:27:06]line Контрольно-КаÑÑовый Чек [17:27:06]line ПРОДÐЖР[17:27:06]line ТРК (МРК, ГÐК) : 21 [17:27:06]line Товар: 2710124130 [17:27:06]line Ðи-92-К-5 [17:27:06]line 4.490 * 66.90 [17:27:06]line = 300.38 [17:27:06]line ÐДС 12% ÐСП 1% [17:27:06]line > о реализуемом товаре [17:27:06]line ОКРУГЛЕÐИЕ: -0.38 [17:27:06]line ИТОГО: 300.00 [17:27:06]line ВнеÑено: 300.00 [17:27:06]line СДÐЧÐ: 0.00 [17:27:06]line ÐСП 1% : 2.66 [17:27:06]line ÐДС 12% : 31.90 [17:27:06]line Ðаличными: 300.00 [17:27:06]line Безнал.: 0.00 [17:27:06]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [17:27:06]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [17:27:06]line СÐО: Общий режим [17:27:06]line Чек 215 29.10.2024 17:27 [17:27:06]line Смена: 544 ФФД: 1.0 [17:27:06]line ЗÐМ: 0300000110 [17:27:06]line РÐМ: 0000000000091776 [17:27:06]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [17:27:06]line ФМ: 0000000000871754 [17:27:06]line ФД: 193009 [17:27:06]line ФПД: 199067808522310 [17:27:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T172705&type=1&operation_type=1&fn_number=0000000000871754&fd_number=193009&fm=199067808522310&tin=02508201610067®Number=0000000000091776&sum=30000 [17:27:06]OFD Sender: Processing packet 193009 [packets to send 75, broken 74] [17:27:06]ProducePacketName [17:27:06]name=ofd_packets/00193009 [17:27:06]OFD Sender: To server: ‡•öpG, [17:27:06]CommunicateWithHost lk.salyk.kg:30040 [17:27:06]ConnectInit lk.salyk.kg [17:27:06]written 0, free lines is 4095 [17:27:06]Connected sock=7 [17:27:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 AD 1E 07 01 11 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 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 E9 1A 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 B5 0D 16 03 60 46 CD F8 04 20 28 81 62 1F [17:27: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 99 2C 47 00 D0 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 F1 F1 02 00 F4 03 04 00 A9 BF 20 67 B6 04 01 00 00 E7 0B 47 91 7B 3D B6 48 [17:27:06]CommunicateWithHost err = 0 [17:27:06]CheckOFDResponse [17:27:06]1017 (14) - 77093643461234 [17:27:06]1041 (16) - 0000000000871754 [17:27:06]1040 (4) - 193009 [17:27:06]1012 (4) - 29.10.2024 10:57 [17:27:06]1206 (1) - 0 [17:27:06]OFD Sender: Remove packet 193009 [17:27:06]ProducePacketName [17:27:06]name=ofd_packets/00193009 [17:27:06]NVStorageDeleteData [17:27:06]Write to MH i2c: 01 00 00 FE 02 00 [17:27:06]Write i2c OK [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: 01 [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: 01 07 00 [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: 01 07 00 FE 02 00 00 00 00 00 AB 0C BE [17:27:06]RasterBufferAndPrint [17:27:06]line [17:27:06]line [17:27:06]line [17:27:06]line [17:27:06]line [17:27:06]written 0, free lines is 3253 [17:27:06]MH_Cut [17:27:06]Write to MH i2c: D1 01 00 05 03 01 DA [17:27:06]Write i2c OK [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: D1 [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: D1 01 00 [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: D1 01 00 05 03 00 D9 [17:27:06]Write to MH i2c: 01 00 00 06 03 09 [17:27:06]Write i2c OK [17:27:06]MH_I2C_Read... [17:27:07]OFD Sender: No OFD packet to send [17:27:07]*** Cut start [17:27:07]*** Partial cut [17:27:07]*** CUTSNS_PIN = 1 [17:27:07]*** CUTSNS_PIN = 0 [17:27:08]*** Brake cut motor [17:27:08]Read from MH i2c: 01 [17:27:08]MH_I2C_Read... [17:27:08]*** Stop cut motor [17:27:08]*** Cut end [17:27:08]Read from MH i2c: 01 07 00 [17:27:08]MH_I2C_Read... [17:27:08]Read from MH i2c: 01 07 00 06 03 00 00 00 00 00 FF 0F 1E [17:27:08]process_action close_receipt done [17:27:08]requested_data is exist [17:27:08]produce_requested_data [17:27:08]requested_item fm.sn is exist - process it [17:27:08]wFMCommunicate request_size=4 [17:27:08]MH_SAM_APDU [17:27:08]CAPDU: 80 11 00 00 [17:27:08]Write to MH i2c: E2 08 00 07 03 80 11 00 00 00 00 00 00 84 [17:27:08]Write i2c OK [17:27:08]MH_I2C_Read... [17:27:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:08]Read from MH i2c: E2 [17:27:08]MH_I2C_Read... [17:27:08]Read from MH i2c: E2 17 00 [17:27:08]MH_I2C_Read... [17:27:08]Read from MH i2c: E2 17 00 07 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D7 [17:27: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:27:08]wFMCommunicate OK [17:27:08]requested_item fd.num is exist - process it [17:27:08]SAM_PROTO_GetFieldsCounters [17:27:08]wFMCommunicate request_size=4 [17:27:08]MH_SAM_APDU [17:27:08]CAPDU: 80 13 00 00 [17:27:08]Write to MH i2c: E2 08 00 08 03 80 13 00 00 00 00 00 00 87 [17:27:08]Write i2c OK [17:27:08]MH_I2C_Read... [17:27:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:27:08]Read from MH i2c: E2 [17:27:08]MH_I2C_Read... [17:27:08]Read from MH i2c: E2 62 00 [17:27:08]MH_I2C_Read... [17:27:08]Read from MH i2c: E2 62 00 08 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 F1 02 00 0E 04 04 00 20 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 38 [17:27:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 F1 02 00 0E 04 04 00 20 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 [17:27:08]wFMCommunicate OK [17:27:08]SAM_PROTO_GetFieldsCounters done [17:27:08]requested_item shift.num is exist - process it [17:27:08]requested_item shift.opened is exist - process it [17:27:08]req_shift_opened [17:27:08]FM_GetShiftState [17:27:08]SAM_PROTO_GetShiftState [17:27:08]wFMCommunicate request_size=4 [17:27:08]MH_SAM_APDU [17:27:08]CAPDU: 80 13 01 00 [17:27:08]Write to MH i2c: E2 08 00 09 03 80 13 01 00 00 00 00 00 89 [17:27:08]Write i2c OK [17:27:08]MH_I2C_Read... [17:27:08]Read from MH i2c: E2 [17:27:08]MH_I2C_Read... [17:27:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:08]Read from MH i2c: E2 0E 00 [17:27:08]MH_I2C_Read... [17:27:08]Read from MH i2c: E2 0E 00 09 03 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 8F [17:27:08]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [17:27:08]wFMCommunicate OK [17:27:08]SAM_PROTO_GetShiftState done [17:27:08]FM_GetShiftState done [17:27:08]req_shift_opened done [17:27:08]requested_item shift.open_date is exist - process it [17:27:08]req_shift_open_date [17:27:08]req_shift_open_date done [17:27:08]produce_requested_data done [17:27:08]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":193009,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [17:27:08]process_action_free close_receipt [17:27:08]json_value_free [17:27:08]json_value_free done [17:27:08]process_json_proto returns [17:27:08]Send response to host [17:27:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":193009,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [17:27:08]free response buf [17:27:08]execute_script done [17:27:08]execute_script returns [17:27:08]free content buf [17:27:08]Sock 9.Close socket [17:27:08]Sock 9.Thread stoped [17:27:12]OFD Sender: No OFD packet to send [17:27:17]OFD Sender: No OFD packet to send [17:27:22]OFD Sender: No OFD packet to send [17:27:27]OFD Sender: No OFD packet to send [17:27:32]OFD Sender: No OFD packet to send [17:27:37]OFD Sender: No OFD packet to send [17:27:42]OFD Sender: No OFD packet to send [17:27:47]OFD Sender: No OFD packet to send [17:27:52]OFD Sender: No OFD packet to send [17:27:57]OFD Sender: No OFD packet to send [17:28:02]OFD Sender: No OFD packet to send [17:28:07]OFD Sender: No OFD packet to send [17:28:12]OFD Sender: No OFD packet to send [17:28:17]OFD Sender: No OFD packet to send [17:28:22]OFD Sender: No OFD packet to send [17:28:27]OFD Sender: No OFD packet to send [17:28:32]OFD Sender: No OFD packet to send [17:28:37]OFD Sender: No OFD packet to send [17:28:42]OFD Sender: No OFD packet to send [17:28:46]accept exits with 10 [17:28:46]New connection [17:28:46]New thread 3067350372 created [17:28:46]Thread 3067207012 joined [17:28:46]Waiting for new connection... [17:28:46] Sock 10.Parse request [17:28:46]Sock 10.Check first char [17:28:46]Sock 10.First char is OK [17:28:46]request: POST /json_proto HTTP/1.0 [17:28:46]Method: POST [17:28:46]URL: /json_proto [17:28:46]Method is POST - this is cgi request [17:28:46]url: /json_proto [17:28:46]query_string will be loaded in cgi processing [17:28:46]execute_cgi json_proto POST (null) [17:28:46]execute_cgi path=json_proto method=POST [17:28:46]POST find Content-Length [17:28:46]Host: 172.17.63.131:8080 [17:28:46]Content-Length: 678 [17:28:46]Content-Type: application/json [17:28:46] [17:28:46]POST finish read [17:28:46]Found Content-Length = 678 [17:28:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32341", "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" ] } } [17:28:46]execute_script... [17:28: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)32341", "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" ] } } [17:28:46]POST & json_proto [17:28:46]process_json_proto [17:28:46]json parsed OK: [17:28:46]protocol is kg_v1.0 [17:28:46]action value=close_receipt [17:28:46]process_action close_receipt [17:28:46]cmd_close_receipt [17:28:46]MH_GetDate [17:28:46]Write to MH i2c: F0 00 00 0A 03 FC [17:28:46]Write i2c OK [17:28:46]MH_I2C_Read... [17:28:46]Read from MH i2c: F0 [17:28:46]MH_I2C_Read... [17:28:46]Read from MH i2c: F0 09 00 [17:28:46]MH_I2C_Read... [17:28:46]Read from MH i2c: F0 09 00 0A 03 00 4F 1B 21 67 22 05 6E 64 F0 [17:28:46]GetLastDocTimeStamp 1730222825 [17:28:46]current date 1730222927 [17:28:46]FM_GetShiftState [17:28:46]SAM_PROTO_GetShiftState [17:28:46]wFMCommunicate request_size=4 [17:28:46]MH_SAM_APDU [17:28:46]CAPDU: 80 13 01 00 [17:28:46]Write to MH i2c: E2 08 00 0B 03 80 13 01 00 00 00 00 00 8B [17:28:46]Write i2c OK [17:28:46]MH_I2C_Read... [17:28:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:46]Read from MH i2c: E2 [17:28:46]MH_I2C_Read... [17:28:46]Read from MH i2c: E2 0E 00 [17:28:46]MH_I2C_Read... [17:28:46]Read from MH i2c: E2 0E 00 0B 03 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 91 [17:28:46]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [17:28:46]wFMCommunicate OK [17:28:46]SAM_PROTO_GetShiftState done [17:28:46]FM_GetShiftState done [17:28:46]opened in 1730161990 [17:28:46]opened+sec_in_day 1730248390 [17:28:46]quantity*price = 100050 [17:28:46]sum+1 = 100052 [17:28:46]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 СÐО: Общий режим Чек 216 29.10.2024 17:28 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 193010 ФПД: 34153940418073 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T172847&type=1&operation_type=1&fn_number=0000000000871754&fd_number=193010&fm=34153940418073&tin=02508201610067®Number=0000000000091776&sum=100000 [17:28:47]StoreToDocumentArchive [17:28:47]shift 544 fd 193010 [17:28:47]save to /storage/0544/doc_00193010 [17:28:47]save last doc name /storage/0544/doc_00193010 to /storage/kkm_last_doc_name [17:28:47]save OK [17:28:47]Clear old archive folders... [17:28:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:28:47]tlvbuf is 00AD34D0 [17:28:47]SAM_PROTO_ClearQueue [17:28:47]wFMCommunicate request_size=4 [17:28:47]MH_SAM_APDU [17:28:47]CAPDU: 80 09 00 00 [17:28:47]Write to MH i2c: E2 08 00 18 03 80 09 00 00 00 00 00 00 8D [17:28:47]Write i2c OK [17:28:47]MH_I2C_Read... [17:28:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:28:47]Read from MH i2c: E2 [17:28:47]MH_I2C_Read... [17:28:47]Read from MH i2c: E2 03 00 [17:28:47]MH_I2C_Read... [17:28:47]Read from MH i2c: E2 03 00 18 03 00 90 00 8F [17:28:47]RAPDU: 90 00 [17:28:47]wFMCommunicate OK [17:28:47]SAM_PROTO_ClearQueue done [17:28:47]KKMCreateOFDPacket [17:28:47]OFDProtocolAddRootSTLVToBuf [17:28:47]FM_MakeSignedData [17:28:47]FM_MakeSignedData [17:28:47]SAM_PROTO_SignData [17:28:47]wFMCommunicate request_size=4 [17:28:47]MH_SAM_APDU [17:28:47]CAPDU: 80 0D 01 02 [17:28:47]Write to MH i2c: E2 08 00 19 03 80 0D 01 02 00 00 00 00 95 [17:28:47]Write i2c OK [17:28:47]MH_I2C_Read... [17:28:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:28:47]Read from MH i2c: E2 [17:28:47]MH_I2C_Read... [17:28:47]Read from MH i2c: E2 03 00 [17:28:47]MH_I2C_Read... [17:28:47]Read from MH i2c: E2 03 00 19 03 00 90 00 90 [17:28:47]RAPDU: 90 00 [17:28:47]wFMCommunicate OK [17:28:47]wFMCommunicate request_size=255 [17:28:47]MH_SAM_APDU [17:28: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 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 D8 00 00 00 F4 03 04 00 4F 1B 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 1F 10 15 7C [17:28:47]Write to MH i2c: E2 02 01 1A 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 D8 00 00 00 F4 03 04 00 4F 1B 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 1F 10 15 7C 00 00 B0 [17:28:47]Write i2c OK [17:28:47]MH_I2C_Read... [17:28:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:48]Read from MH i2c: E2 [17:28:48]MH_I2C_Read... [17:28:48]Read from MH i2c: E2 03 00 [17:28:48]MH_I2C_Read... [17:28:48]Read from MH i2c: E2 03 00 1A 03 00 90 00 91 [17:28:48]RAPDU: 90 00 [17:28:48]wFMCommunicate OK [17:28:48]wFMCommunicate request_size=7 [17:28:48]MH_SAM_APDU [17:28:48]CAPDU: 80 0D 02 02 02 7E 19 [17:28:48]Write to MH i2c: E2 0A 00 1B 03 80 0D 02 02 02 00 7E 19 00 00 33 [17:28:48]Write i2c OK [17:28:48]MH_I2C_Read... [17:28:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:48]Read from MH i2c: E2 [17:28:48]MH_I2C_Read... [17:28:48]Read from MH i2c: E2 03 00 [17:28:48]MH_I2C_Read... [17:28:48]Read from MH i2c: E2 03 00 1B 03 00 90 00 92 [17:28:48]RAPDU: 90 00 [17:28:48]wFMCommunicate OK [17:28:48]wFMCommunicate request_size=4 [17:28:48]MH_SAM_APDU [17:28:48]CAPDU: 80 0D 03 02 [17:28:48]Write to MH i2c: E2 08 00 1C 03 80 0D 03 02 00 00 00 00 9A [17:28:48]Write i2c OK [17:28:48]MH_I2C_Read... [17:28:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:28:48]Read from MH i2c: E2 [17:28:48]MH_I2C_Read... [17:28:48]Read from MH i2c: E2 0B 00 [17:28:48]MH_I2C_Read... [17:28:48]Read from MH i2c: E2 0B 00 1C 03 00 09 7E 89 0F 40 75 D9 F5 90 00 3D [17:28:48]RAPDU: 09 7E 89 0F 40 75 D9 F5 90 00 [17:28:48]wFMCommunicate OK [17:28:48]SAM_PROTO_SignData done [17:28:48]FM_MakeSignedData done [17:28:48]CreateOFDProtocolMessage [17:28:48]wFMCommunicate request_size=4 [17:28:48]MH_SAM_APDU [17:28:48]CAPDU: 80 11 00 00 [17:28:48]Write to MH i2c: E2 08 00 1D 03 80 11 00 00 00 00 00 00 9A [17:28:48]Write i2c OK [17:28:48]MH_I2C_Read... [17:28:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:48]Read from MH i2c: E2 [17:28:48]MH_I2C_Read... [17:28:48]Read from MH i2c: E2 17 00 [17:28:48]MH_I2C_Read... [17:28:48]Read from MH i2c: E2 17 00 1D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 ED [17:28: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:28:48]wFMCommunicate OK [17:28:48]CreateOFDProtocolMessage done [17:28:48]OFDSenderStorePacket 193010 [17:28:48]StoreOFDPacket docnum=193010 [17:28: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 2C C6 04 01 63 75 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 D8 00 00 00 F4 03 04 00 4F 1B 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 1F 10 15 7C 7E 19 09 7E 89 0F 40 75 D9 F5 [17:28:48]CheckFolder [17:28:48]dirname=/storage/ofd_packets [17:28:48]CheckFolder done [17:28:48]ProducePacketName [17:28:48]name=ofd_packets/00193010 [17:28:48]NVStorageSaveData ofd_packets/00193010 [17:28:48]File name is /storage/ofd_packets/00193010 [17:28:48]Write 298 bytes [17:28:48]NVStorageSaveData done [17:28:48]OFDSenderStorePacket done [17:28:48]KKMCreateOFDPacket done [17:28:48]NVStorageSaveData kkm_last_timestamp [17:28:48]File name is /storage/kkm_last_timestamp [17:28:48]Write 4 bytes [17:28:48]NVStorageSaveData done [17:28:48]ExternCall_PrintAddStr [17:28:48]wPrintStart [17:28:48]Write to MH i2c: 01 00 00 1E 03 21 [17:28:48]Write i2c OK [17:28:48]MH_I2C_Read... [17:28:48]Read from MH i2c: 01 [17:28:48]MH_I2C_Read... [17:28:48]Read from MH i2c: 01 07 00 [17:28:48]MH_I2C_Read... [17:28:48]Read from MH i2c: 01 07 00 1E 03 00 00 00 00 00 FF 0F 36 [17:28:48]RasterBufferAndPrint [17:28:48]line Счет N : (1)32341 [17:28:48]line ИÐÐ: 02508201610067 [17:28:48]line Контрольно-КаÑÑовый Чек [17:28:48]line ПРОДÐЖР[17:28:48]line ТРК (МРК, ГÐК) : 11 [17:28:48]line Товар: 2710194210 [17:28:48]line ДТ-К-5 [17:28:48]line 13.130 * 76.20 [17:28:48]line = 1000.51 [17:28:48]line ÐДС 12% ÐСП 1% [17:28:48]line > о реализуемом товаре [17:28:48]line ОКРУГЛЕÐИЕ: -0.51 [17:28:48]line ИТОГО: 1000.00 [17:28:48]line ВнеÑено: 1000.00 [17:28:48]line СДÐЧÐ: 0.00 [17:28:48]line ÐСП 1% : 8.85 [17:28:48]line ÐДС 12% : 106.25 [17:28:48]line Ðаличными: 1000.00 [17:28:48]line Безнал.: 0.00 [17:28:48]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [17:28:48]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [17:28:48]line СÐО: Общий режим [17:28:48]line Чек 216 29.10.2024 17:28 [17:28:48]line Смена: 544 ФФД: 1.0 [17:28:48]line ЗÐМ: 0300000110 [17:28:48]line РÐМ: 0000000000091776 [17:28:48]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [17:28:48]line ФМ: 0000000000871754 [17:28:48]line ФД: 193010 [17:28:48]line ФПД: 34153940418073 [17:28:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T172847&type=1&operation_type=1&fn_number=0000000000871754&fd_number=193010&fm=34153940418073&tin=02508201610067®Number=0000000000091776&sum=100000 [17:28:48]OFD Sender: Processing packet 193010 [packets to send 75, broken 74] [17:28:48]ProducePacketName [17:28:48]name=ofd_packets/00193010 [17:28:48]OFD Sender: To server: ‡•öpG, [17:28:48]CommunicateWithHost lk.salyk.kg:30040 [17:28:48]ConnectInit lk.salyk.kg [17:28:48]written 0, free lines is 4095 [17:28:48]Connected sock=9 [17:28: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 2C C6 04 01 63 75 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 D8 00 00 00 F4 03 04 00 4F 1B 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 1F 10 15 7C 7E 19 09 7E 89 0F 40 75 D9 F5 [17:28: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 44 32 47 00 15 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 F2 F1 02 00 F4 03 04 00 0F C0 20 67 B6 04 01 00 00 5E 51 2E EB E7 54 C5 1C [17:28:48]CommunicateWithHost err = 0 [17:28:48]CheckOFDResponse [17:28:48]1017 (14) - 77093643461234 [17:28:48]1041 (16) - 0000000000871754 [17:28:48]1040 (4) - 193010 [17:28:48]1012 (4) - 29.10.2024 10:59 [17:28:48]1206 (1) - 0 [17:28:48]OFD Sender: Remove packet 193010 [17:28:48]ProducePacketName [17:28:48]name=ofd_packets/00193010 [17:28:48]NVStorageDeleteData [17:28:49]Write to MH i2c: 01 00 00 49 03 4C [17:28:49]Write i2c OK [17:28:49]MH_I2C_Read... [17:28:49]Read from MH i2c: 01 [17:28:49]MH_I2C_Read... [17:28:49]Read from MH i2c: 01 07 00 [17:28:49]MH_I2C_Read... [17:28:49]Read from MH i2c: 01 07 00 49 03 00 00 00 00 00 9B 0C FA [17:28:49]RasterBufferAndPrint [17:28:49]line [17:28:49]line [17:28:49]line [17:28:49]line [17:28:49]line [17:28:49]written 0, free lines is 3235 [17:28:49]MH_Cut [17:28:49]Write to MH i2c: D1 01 00 50 03 01 25 [17:28:49]Write i2c OK [17:28:49]MH_I2C_Read... [17:28:49]Read from MH i2c: D1 [17:28:49]MH_I2C_Read... [17:28:49]Read from MH i2c: D1 01 00 [17:28:49]MH_I2C_Read... [17:28:49]Read from MH i2c: D1 01 00 50 03 00 24 [17:28:49]Write to MH i2c: 01 00 00 51 03 54 [17:28:49]Write i2c OK [17:28:49]MH_I2C_Read... [17:28:49]OFD Sender: No OFD packet to send [17:28:49]*** Cut start [17:28:49]*** Partial cut [17:28:49]*** CUTSNS_PIN = 1 [17:28:49]*** CUTSNS_PIN = 0 [17:28:50]*** Brake cut motor [17:28:50]Read from MH i2c: 01 [17:28:50]MH_I2C_Read... [17:28:50]*** Stop cut motor [17:28:50]*** Cut end [17:28:50]Read from MH i2c: 01 07 00 [17:28:50]MH_I2C_Read... [17:28:50]Read from MH i2c: 01 07 00 51 03 00 00 00 00 00 FF 0F 69 [17:28:50]process_action close_receipt done [17:28:50]requested_data is exist [17:28:50]produce_requested_data [17:28:50]requested_item fm.sn is exist - process it [17:28:50]wFMCommunicate request_size=4 [17:28:50]MH_SAM_APDU [17:28:50]CAPDU: 80 11 00 00 [17:28:50]Write to MH i2c: E2 08 00 52 03 80 11 00 00 00 00 00 00 CF [17:28:50]Write i2c OK [17:28:50]MH_I2C_Read... [17:28:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:50]Read from MH i2c: E2 [17:28:50]MH_I2C_Read... [17:28:50]Read from MH i2c: E2 17 00 [17:28:50]MH_I2C_Read... [17:28:50]Read from MH i2c: E2 17 00 52 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 22 [17:28:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:28:50]wFMCommunicate OK [17:28:50]requested_item fd.num is exist - process it [17:28:50]SAM_PROTO_GetFieldsCounters [17:28:50]wFMCommunicate request_size=4 [17:28:50]MH_SAM_APDU [17:28:50]CAPDU: 80 13 00 00 [17:28:50]Write to MH i2c: E2 08 00 53 03 80 13 00 00 00 00 00 00 D2 [17:28:50]Write i2c OK [17:28:50]MH_I2C_Read... [17:28:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:28:50]Read from MH i2c: E2 [17:28:50]MH_I2C_Read... [17:28:50]Read from MH i2c: E2 62 00 [17:28:50]MH_I2C_Read... [17:28:50]Read from MH i2c: E2 62 00 53 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 F2 F1 02 00 0E 04 04 00 20 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 87 [17:28: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 F2 F1 02 00 0E 04 04 00 20 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 [17:28:50]wFMCommunicate OK [17:28:50]SAM_PROTO_GetFieldsCounters done [17:28:50]requested_item shift.num is exist - process it [17:28:50]requested_item shift.opened is exist - process it [17:28:50]req_shift_opened [17:28:50]FM_GetShiftState [17:28:50]SAM_PROTO_GetShiftState [17:28:50]wFMCommunicate request_size=4 [17:28:50]MH_SAM_APDU [17:28:50]CAPDU: 80 13 01 00 [17:28:50]Write to MH i2c: E2 08 00 54 03 80 13 01 00 00 00 00 00 D4 [17:28:50]Write i2c OK [17:28:50]MH_I2C_Read... [17:28:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:50]Read from MH i2c: E2 [17:28:50]MH_I2C_Read... [17:28:50]Read from MH i2c: E2 0E 00 [17:28:50]MH_I2C_Read... [17:28:50]Read from MH i2c: E2 0E 00 54 03 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 DA [17:28:50]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [17:28:50]wFMCommunicate OK [17:28:50]SAM_PROTO_GetShiftState done [17:28:50]FM_GetShiftState done [17:28:50]req_shift_opened done [17:28:50]requested_item shift.open_date is exist - process it [17:28:50]req_shift_open_date [17:28:50]req_shift_open_date done [17:28:50]produce_requested_data done [17:28:50]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":193010,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [17:28:50]process_action_free close_receipt [17:28:50]json_value_free [17:28:50]json_value_free done [17:28:50]process_json_proto returns [17:28:50]Send response to host [17:28:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":193010,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [17:28:50]free response buf [17:28:50]execute_script done [17:28:50]execute_script returns [17:28:50]free content buf [17:28:50]Sock 10.Close socket [17:28:50]Sock 10.Thread stoped [17:28:54]OFD Sender: No OFD packet to send [17:28:59]OFD Sender: No OFD packet to send [17:29:04]OFD Sender: No OFD packet to send [17:29:09]OFD Sender: No OFD packet to send [17:29:14]OFD Sender: No OFD packet to send [17:29:19]OFD Sender: No OFD packet to send [17:29:24]OFD Sender: No OFD packet to send [17:29:29]OFD Sender: No OFD packet to send [17:29:34]OFD Sender: No OFD packet to send [17:29:39]OFD Sender: No OFD packet to send [17:29:44]OFD Sender: No OFD packet to send [17:29:49]OFD Sender: No OFD packet to send [17:29:54]OFD Sender: No OFD packet to send [17:29:59]OFD Sender: No OFD packet to send [17:30:04]OFD Sender: No OFD packet to send [17:30:09]OFD Sender: No OFD packet to send [17:30:14]OFD Sender: No OFD packet to send [17:30:19]OFD Sender: No OFD packet to send [17:30:24]OFD Sender: No OFD packet to send [17:30:29]OFD Sender: No OFD packet to send [17:30:34]OFD Sender: No OFD packet to send [17:30:39]OFD Sender: No OFD packet to send [17:30:44]OFD Sender: No OFD packet to send [17:30:49]OFD Sender: No OFD packet to send [17:30:54]OFD Sender: No OFD packet to send [17:30:59]OFD Sender: No OFD packet to send [17:31:04]OFD Sender: No OFD packet to send [17:31:09]OFD Sender: No OFD packet to send [17:31:14]OFD Sender: No OFD packet to send [17:31:19]OFD Sender: No OFD packet to send [17:31:24]OFD Sender: No OFD packet to send [17:31:29]OFD Sender: No OFD packet to send [17:31:34]OFD Sender: No OFD packet to send [17:31:39]OFD Sender: No OFD packet to send [17:31:44]OFD Sender: No OFD packet to send [17:31:49]OFD Sender: No OFD packet to send [17:31:54]OFD Sender: No OFD packet to send [17:31:59]OFD Sender: No OFD packet to send [17:32:04]OFD Sender: No OFD packet to send [17:32:09]OFD Sender: No OFD packet to send [17:32:14]OFD Sender: No OFD packet to send [17:32:19]OFD Sender: No OFD packet to send [17:32:24]OFD Sender: No OFD packet to send [17:32:29]OFD Sender: No OFD packet to send [17:32:34]OFD Sender: No OFD packet to send [17:32:39]OFD Sender: No OFD packet to send [17:32:44]OFD Sender: No OFD packet to send [17:32:49]OFD Sender: No OFD packet to send [17:32:54]OFD Sender: No OFD packet to send [17:32:59]OFD Sender: No OFD packet to send [17:33:04]OFD Sender: No OFD packet to send [17:33:09]OFD Sender: No OFD packet to send [17:33:14]OFD Sender: No OFD packet to send [17:33:19]OFD Sender: No OFD packet to send [17:33:24]OFD Sender: No OFD packet to send [17:33:29]OFD Sender: No OFD packet to send [17:33:34]OFD Sender: No OFD packet to send [17:33:39]OFD Sender: No OFD packet to send [17:33:44]OFD Sender: No OFD packet to send [17:33:54]OFD Sender: No OFD packet to send [17:33:59]OFD Sender: No OFD packet to send [17:34:04]OFD Sender: No OFD packet to send [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:31]accept exits with 7 [17:34:31]New connection [17:34:31]New thread 3067207012 created [17:34:31]Thread 3067350372 joined [17:34:31]Waiting for new connection... [17:34:31] Sock 7.Parse request [17:34:31]Sock 7.Check first char [17:34:31]Sock 7.First char is OK [17:34:31]request: POST /json_proto HTTP/1.0 [17:34:31]Method: POST [17:34:31]URL: /json_proto [17:34:31]Method is POST - this is cgi request [17:34:31]url: /json_proto [17:34:31]query_string will be loaded in cgi processing [17:34:31]execute_cgi json_proto POST (null) [17:34:31]execute_cgi path=json_proto method=POST [17:34:31]POST find Content-Length [17:34:31]Host: 172.17.63.131:8080 [17:34:31]Content-Length: 865 [17:34:31]Content-Type: application/json [17:34:31] [17:34:31]POST finish read [17:34:31]Found Content-Length = 865 [17:34:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32342", "tax_sys" : 0, "items" : [ { "pre_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" ] } } [17:34:31]execute_script... [17:34:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32342", "tax_sys" : 0, "items" : [ { "pre_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" ] } } [17:34:31]POST & json_proto [17:34:31]process_json_proto [17:34:31]json parsed OK: [17:34:31]protocol is kg_v1.0 [17:34:31]action value=close_receipt [17:34:31]process_action close_receipt [17:34:31]cmd_close_receipt [17:34:31]MH_GetDate [17:34:31]Write to MH i2c: F0 00 00 55 03 47 [17:34:31]Write i2c OK [17:34:31]MH_I2C_Read... [17:34:31]Read from MH i2c: F0 [17:34:31]MH_I2C_Read... [17:34:31]Read from MH i2c: F0 09 00 [17:34:31]MH_I2C_Read... [17:34:31]Read from MH i2c: F0 09 00 55 03 00 A8 1C 21 67 22 05 6E 64 95 [17:34:31]GetLastDocTimeStamp 1730222927 [17:34:31]current date 1730223272 [17:34:31]FM_GetShiftState [17:34:31]SAM_PROTO_GetShiftState [17:34:31]wFMCommunicate request_size=4 [17:34:31]MH_SAM_APDU [17:34:31]CAPDU: 80 13 01 00 [17:34:31]Write to MH i2c: E2 08 00 56 03 80 13 01 00 00 00 00 00 D6 [17:34:31]Write i2c OK [17:34:31]MH_I2C_Read... [17:34:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:31]Read from MH i2c: E2 [17:34:31]MH_I2C_Read... [17:34:31]Read from MH i2c: E2 0E 00 [17:34:31]MH_I2C_Read... [17:34:31]Read from MH i2c: E2 0E 00 56 03 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 DC [17:34:31]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [17:34:31]wFMCommunicate OK [17:34:31]SAM_PROTO_GetShiftState done [17:34:31]FM_GetShiftState done [17:34:31]opened in 1730161990 [17:34:31]opened+sec_in_day 1730248390 [17:34:31]quantity*price = 100015 [17:34:31]sum+1 = 100017 [17:34:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 ÐСП 1% : 8.85 ÐДС 12% : 106.21 Ðаличными: 0.00 Безнал.: 1000.16 МеÑто: ÐЗС â„– 170 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 СÐО: Общий режим Чек 217 29.10.2024 17:34 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 193011 ФПД: 40547318545257 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T173432&type=1&operation_type=1&fn_number=0000000000871754&fd_number=193011&fm=40547318545257&tin=02508201610067®Number=0000000000091776&sum=100016 [17:34:32]StoreToDocumentArchive [17:34:32]shift 544 fd 193011 [17:34:32]save to /storage/0544/doc_00193011 [17:34:32]save last doc name /storage/0544/doc_00193011 to /storage/kkm_last_doc_name [17:34:32]save OK [17:34:32]Clear old archive folders... [17:34:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:34:32]tlvbuf is 00AEF410 [17:34:32]SAM_PROTO_ClearQueue [17:34:32]wFMCommunicate request_size=4 [17:34:32]MH_SAM_APDU [17:34:32]CAPDU: 80 09 00 00 [17:34:32]Write to MH i2c: E2 08 00 63 03 80 09 00 00 00 00 00 00 D8 [17:34:32]Write i2c OK [17:34:32]MH_I2C_Read... [17:34:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:34:32]Read from MH i2c: E2 [17:34:32]MH_I2C_Read... [17:34:32]Read from MH i2c: E2 03 00 [17:34:32]MH_I2C_Read... [17:34:32]Read from MH i2c: E2 03 00 63 03 00 90 00 DA [17:34:32]RAPDU: 90 00 [17:34:32]wFMCommunicate OK [17:34:32]SAM_PROTO_ClearQueue done [17:34:32]KKMCreateOFDPacket [17:34:32]OFDProtocolAddRootSTLVToBuf [17:34:32]FM_MakeSignedData [17:34:32]FM_MakeSignedData [17:34:32]SAM_PROTO_SignData [17:34:32]wFMCommunicate request_size=4 [17:34:32]MH_SAM_APDU [17:34:32]CAPDU: 80 0D 01 02 [17:34:32]Write to MH i2c: E2 08 00 64 03 80 0D 01 02 00 00 00 00 E0 [17:34:32]Write i2c OK [17:34:32]MH_I2C_Read... [17:34:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:34:32]Read from MH i2c: E2 [17:34:32]MH_I2C_Read... [17:34:32]Read from MH i2c: E2 03 00 [17:34:32]MH_I2C_Read... [17:34:32]Read from MH i2c: E2 03 00 64 03 00 90 00 DB [17:34:32]RAPDU: 90 00 [17:34:32]wFMCommunicate OK [17:34:32]wFMCommunicate request_size=255 [17:34:32]MH_SAM_APDU [17:34:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 D9 00 00 00 F4 03 04 00 A8 1C 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 24 [17:34:32]Write to MH i2c: E2 02 01 65 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 D9 00 00 00 F4 03 04 00 A8 1C 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 24 00 00 DF [17:34:32]Write i2c OK [17:34:32]MH_I2C_Read... [17:34:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:33]Read from MH i2c: E2 [17:34:33]MH_I2C_Read... [17:34:33]Read from MH i2c: E2 03 00 [17:34:33]MH_I2C_Read... [17:34:33]Read from MH i2c: E2 03 00 65 03 00 90 00 DC [17:34:33]RAPDU: 90 00 [17:34:33]wFMCommunicate OK [17:34:33]wFMCommunicate request_size=10 [17:34:33]MH_SAM_APDU [17:34:33]CAPDU: 80 0D 02 02 05 E0 A8 84 BB 69 [17:34:33]Write to MH i2c: E2 0D 00 66 03 80 0D 02 02 05 00 E0 A8 84 BB 69 00 00 1D [17:34:33]Write i2c OK [17:34:33]MH_I2C_Read... [17:34:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:33]Read from MH i2c: E2 [17:34:33]MH_I2C_Read... [17:34:33]Read from MH i2c: E2 03 00 [17:34:33]MH_I2C_Read... [17:34:33]Read from MH i2c: E2 03 00 66 03 00 90 00 DD [17:34:33]RAPDU: 90 00 [17:34:33]wFMCommunicate OK [17:34:33]wFMCommunicate request_size=4 [17:34:33]MH_SAM_APDU [17:34:33]CAPDU: 80 0D 03 02 [17:34:33]Write to MH i2c: E2 08 00 67 03 80 0D 03 02 00 00 00 00 E5 [17:34:33]Write i2c OK [17:34:33]MH_I2C_Read... [17:34:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:34:33]Read from MH i2c: E2 [17:34:33]MH_I2C_Read... [17:34:33]Read from MH i2c: E2 0B 00 [17:34:33]MH_I2C_Read... [17:34:33]Read from MH i2c: E2 0B 00 67 03 00 E6 72 6F CB D8 B5 AA C1 90 00 70 [17:34:33]RAPDU: E6 72 6F CB D8 B5 AA C1 90 00 [17:34:33]wFMCommunicate OK [17:34:33]SAM_PROTO_SignData done [17:34:33]FM_MakeSignedData done [17:34:33]CreateOFDProtocolMessage [17:34:33]wFMCommunicate request_size=4 [17:34:33]MH_SAM_APDU [17:34:33]CAPDU: 80 11 00 00 [17:34:33]Write to MH i2c: E2 08 00 68 03 80 11 00 00 00 00 00 00 E5 [17:34:33]Write i2c OK [17:34:33]MH_I2C_Read... [17:34:35]requested_item shift.open_date is exist - process it [17:34:35]req_shift_open_date [17:34:35]req_shift_open_date done [17:34:35]produce_requested_data done [17:34:35]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":193011,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [17:34:35]process_action_free close_receipt [17:34:35]json_value_free [17:34:35]json_value_free done [17:34:35]process_json_proto returns [17:34:35]Send response to host [17:34:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":193011,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [17:34:35]free response buf [17:34:35]execute_script done [17:34:35]execute_script returns [17:34:35]free content buf [17:34:35]Sock 7.Close socket [17:34:35]Sock 7.Thread stoped [17:34:39]OFD Sender: No OFD packet to send [17:34:44]OFD Sender: No OFD packet to send [17:34:49]OFD Sender: No OFD packet to send [17:34:54]OFD Sender: No OFD packet to send [17:34:59]OFD Sender: No OFD packet to send [17:35:04]OFD Sender: No OFD packet to send [17:35:09]OFD Sender: No OFD packet to send [17:35:14]OFD Sender: No OFD packet to send [17:35:19]OFD Sender: No OFD packet to send [17:35:24]OFD Sender: No OFD packet to send [17:35:29]OFD Sender: No OFD packet to send [17:35:34]OFD Sender: No OFD packet to send [17:35:39]OFD Sender: No OFD packet to send [17:35:44]OFD Sender: No OFD packet to send [17:35:49]OFD Sender: No OFD packet to send [17:35:54]OFD Sender: No OFD packet to send [17:35:59]OFD Sender: No OFD packet to send [17:36:02]ConnectInit Can't connect to host [17:36:04]OFD Sender: No OFD packet to send [17:36:09]OFD Sender: No OFD packet to send [17:36:13]accept exits with 10 [17:36:13]New connection [17:36:13]New thread 3067350372 created [17:36:13]Thread 3067207012 joined [17:36:13]Waiting for new connection... [17:36:13] Sock 10.Parse request [17:36:13]Sock 10.Check first char [17:36:13]Sock 10.First char is OK [17:36:13]request: POST /json_proto HTTP/1.0 [17:36:13]Method: POST [17:36:13]URL: /json_proto [17:36:13]Method is POST - this is cgi request [17:36:13]url: /json_proto [17:36:13]query_string will be loaded in cgi processing [17:36:13]execute_cgi json_proto POST (null) [17:36:13]execute_cgi path=json_proto method=POST [17:36:13]POST find Content-Length [17:36:13]Host: 172.17.63.131:8080 [17:36:13]Content-Length: 681 [17:36:13]Content-Type: application/json [17:36:13] [17:36:13]POST finish read [17:36:13]Found Content-Length = 681 [17:36:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32343", "tax_sys" : 0, "items" : [ { "pre_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:36:13]execute_script... [17:36: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)32343", "tax_sys" : 0, "items" : [ { "pre_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:36:13]POST & json_proto [17:36:13]process_json_proto [17:36:13]json parsed OK: [17:36:13]protocol is kg_v1.0 [17:36:13]action value=close_receipt [17:36:13]process_action close_receipt [17:36:13]cmd_close_receipt [17:36:13]MH_GetDate [17:36:13]Write to MH i2c: F0 00 00 9F 03 91 [17:36:13]Write i2c OK [17:36:13]MH_I2C_Read... [17:36:13]Read from MH i2c: F0 [17:36:13]MH_I2C_Read... [17:36:13]Read from MH i2c: F0 09 00 [17:36:13]MH_I2C_Read... [17:36:13]Read from MH i2c: F0 09 00 9F 03 00 0E 1D 21 67 22 05 6E 64 46 [17:36:13]GetLastDocTimeStamp 1730223272 [17:36:13]current date 1730223374 [17:36:13]FM_GetShiftState [17:36:13]SAM_PROTO_GetShiftState [17:36:13]wFMCommunicate request_size=4 [17:36:13]MH_SAM_APDU [17:36:13]CAPDU: 80 13 01 00 [17:36:13]Write to MH i2c: E2 08 00 A0 03 80 13 01 00 00 00 00 00 20 [17:36:13]Write i2c OK [17:36:13]MH_I2C_Read... [17:36:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:13]Read from MH i2c: E2 [17:36:13]MH_I2C_Read... [17:36:13]Read from MH i2c: E2 0E 00 [17:36:13]MH_I2C_Read... [17:36:13]Read from MH i2c: E2 0E 00 A0 03 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 26 [17:36:13]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [17:36:13]wFMCommunicate OK [17:36:13]SAM_PROTO_GetShiftState done [17:36:13]FM_GetShiftState done [17:36:13]opened in 1730161990 [17:36:13]opened+sec_in_day 1730248390 [17:36:13]quantity*price = 100015 [17:36:13]sum+1 = 100017 [17:36:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.16 ИТОГО: 1000.00 ВнеÑено: 1000.00 СДÐЧÐ: 0.00 ÐСП 1% : 8.85 ÐДС 12% : 106.21 Ðаличными: 1000.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 170 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 СÐО: Общий режим Чек 218 29.10.2024 17:36 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 193012 ФПД: 49638316377280 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T173614&type=1&operation_type=1&fn_number=0000000000871754&fd_number=193012&fm=49638316377280&tin=02508201610067®Number=0000000000091776&sum=100000 [17:36:15]StoreToDocumentArchive [17:36:15]shift 544 fd 193012 [17:36:15]save to /storage/0544/doc_00193012 [17:36:15]save last doc name /storage/0544/doc_00193012 to /storage/kkm_last_doc_name [17:36:15]save OK [17:36:15]Clear old archive folders... [17:36:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:36:15]tlvbuf is 00ABD400 [17:36:15]SAM_PROTO_ClearQueue [17:36:15]wFMCommunicate request_size=4 [17:36:15]MH_SAM_APDU [17:36:15]CAPDU: 80 09 00 00 [17:36:15]Write to MH i2c: E2 08 00 AD 03 80 09 00 00 00 00 00 00 22 [17:36:15]Write i2c OK [17:36:15]MH_I2C_Read... [17:36:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:36:15]Read from MH i2c: E2 [17:36:15]MH_I2C_Read... [17:36:15]Read from MH i2c: E2 03 00 [17:36:15]MH_I2C_Read... [17:36:15]Read from MH i2c: E2 03 00 AD 03 00 90 00 24 [17:36:15]RAPDU: 90 00 [17:36:15]wFMCommunicate OK [17:36:15]SAM_PROTO_ClearQueue done [17:36:15]KKMCreateOFDPacket [17:36:15]OFDProtocolAddRootSTLVToBuf [17:36:15]FM_MakeSignedData [17:36:15]FM_MakeSignedData [17:36:15]SAM_PROTO_SignData [17:36:15]wFMCommunicate request_size=4 [17:36:15]MH_SAM_APDU [17:36:15]CAPDU: 80 0D 01 02 [17:36:15]Write to MH i2c: E2 08 00 AE 03 80 0D 01 02 00 00 00 00 2A [17:36:15]Write i2c OK [17:36:15]MH_I2C_Read... [17:36:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:36:15]Read from MH i2c: E2 [17:36:15]MH_I2C_Read... [17:36:15]Read from MH i2c: E2 03 00 [17:36:15]MH_I2C_Read... [17:36:15]Read from MH i2c: E2 03 00 AE 03 00 90 00 25 [17:36:15]RAPDU: 90 00 [17:36:15]wFMCommunicate OK [17:36:15]wFMCommunicate request_size=255 [17:36:15]MH_SAM_APDU [17:36:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 0E 1D 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 2D [17:36:15]Write to MH i2c: E2 02 01 AF 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 0E 1D 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 2D 00 00 7B [17:36:15]Write i2c OK [17:36:15]MH_I2C_Read... [17:36:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:15]Read from MH i2c: E2 [17:36:15]MH_I2C_Read... [17:36:15]Read from MH i2c: E2 03 00 [17:36:15]MH_I2C_Read... [17:36:15]Read from MH i2c: E2 03 00 AF 03 00 90 00 26 [17:36:15]RAPDU: 90 00 [17:36:15]wFMCommunicate OK [17:36:15]wFMCommunicate request_size=10 [17:36:15]MH_SAM_APDU [17:36:15]CAPDU: 80 0D 02 02 05 25 52 37 04 C0 [17:36:15]Write to MH i2c: E2 0D 00 B0 03 80 0D 02 02 05 00 25 52 37 04 C0 00 00 A9 [17:36:15]Write i2c OK [17:36:15]MH_I2C_Read... [17:36:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:15]Read from MH i2c: E2 [17:36:15]MH_I2C_Read... [17:36:15]Read from MH i2c: E2 03 00 [17:36:15]MH_I2C_Read... [17:36:15]Read from MH i2c: E2 03 00 B0 03 00 90 00 27 [17:36:15]RAPDU: 90 00 [17:36:15]wFMCommunicate OK [17:36:15]wFMCommunicate request_size=4 [17:36:15]MH_SAM_APDU [17:36:15]CAPDU: 80 0D 03 02 [17:36:15]Write to MH i2c: E2 08 00 B1 03 80 0D 03 02 00 00 00 00 2F [17:36:15]Write i2c OK [17:36:15]MH_I2C_Read... [17:36:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:36:15]Read from MH i2c: E2 [17:36:15]MH_I2C_Read... [17:36:15]Read from MH i2c: E2 0B 00 [17:36:15]MH_I2C_Read... [17:36:15]Read from MH i2c: E2 0B 00 B1 03 00 B2 00 E4 46 B2 7D 81 F4 90 00 B0 [17:36:15]RAPDU: B2 00 E4 46 B2 7D 81 F4 90 00 [17:36:15]wFMCommunicate OK [17:36:15]SAM_PROTO_SignData done [17:36:15]FM_MakeSignedData done [17:36:15]CreateOFDProtocolMessage [17:36:15]wFMCommunicate request_size=4 [17:36:15]MH_SAM_APDU [17:36:15]CAPDU: 80 11 00 00 [17:36:15]Write to MH i2c: E2 08 00 B2 03 80 11 00 00 00 00 00 00 2F [17:36:15]Write i2c OK [17:36:15]MH_I2C_Read... [17:36:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:15]Read from MH i2c: E2 [17:36:15]MH_I2C_Read... [17:36:15]Read from MH i2c: E2 17 00 [17:36:15]MH_I2C_Read... [17:36:15]Read from MH i2c: E2 17 00 B2 03 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: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 [17:36:15]wFMCommunicate OK [17:36:15]CreateOFDProtocolMessage done [17:36:15]OFDSenderStorePacket 193012 [17:36:15]StoreOFDPacket docnum=193012 [17:36:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B3 D4 07 01 C1 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 0E 1D 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 2D 25 52 37 04 C0 B2 00 E4 46 B2 7D 81 F4 [17:36:15]CheckFolder [17:36:15]dirname=/storage/ofd_packets [17:36:15]CheckFolder done [17:36:15]ProducePacketName [17:36:15]name=ofd_packets/00193012 [17:36:15]NVStorageSaveData ofd_packets/00193012 [17:36:15]File name is /storage/ofd_packets/00193012 [17:36:15]Write 301 bytes [17:36:15]NVStorageSaveData done [17:36:15]OFDSenderStorePacket done [17:36:15]KKMCreateOFDPacket done [17:36:15]NVStorageSaveData kkm_last_timestamp [17:36:15]File name is /storage/kkm_last_timestamp [17:36:15]Write 4 bytes [17:36:15]NVStorageSaveData done [17:36:15]ExternCall_PrintAddStr [17:36:15]wPrintStart [17:36:15]Write to MH i2c: 01 00 00 B3 03 B6 [17:36:15]Write i2c OK [17:36:15]MH_I2C_Read... [17:36:15]Read from MH i2c: 01 [17:36:15]MH_I2C_Read... [17:36:15]Read from MH i2c: 01 07 00 [17:36:15]MH_I2C_Read... [17:36:15]Read from MH i2c: 01 07 00 B3 03 00 00 00 00 00 FF 0F CB [17:36:15]RasterBufferAndPrint [17:36:15]line Счет N : (1)32343 [17:36:15]line ИÐÐ: 02508201610067 [17:36:15]line Контрольно-КаÑÑовый Чек [17:36:15]line ПРОДÐЖР[17:36:15]line ТРК (МРК, ГÐК) : 21 [17:36:15]line Товар: 2710124130 [17:36:15]line Ðи-92-К-5 [17:36:15]line 14.950 * 66.90 [17:36:15]line = 1000.16 [17:36:15]line ÐДС 12% ÐСП 1% [17:36:15]line > о реализуемом товаре [17:36:15]line ОКРУГЛЕÐИЕ: -0.16 [17:36:15]line ИТОГО: 1000.00 [17:36:15]line ВнеÑено: 1000.00 [17:36:15]line СДÐЧÐ: 0.00 [17:36:15]line ÐСП 1% : 8.85 [17:36:15]line ÐДС 12% : 106.21 [17:36:15]line Ðаличными: 1000.00 [17:36:15]line Безнал.: 0.00 [17:36:15]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [17:36:15]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [17:36:15]line СÐО: Общий режим [17:36:15]line Чек 218 29.10.2024 17:36 [17:36:15]line Смена: 544 ФФД: 1.0 [17:36:15]line ЗÐМ: 0300000110 [17:36:15]line РÐМ: 0000000000091776 [17:36:15]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [17:36:15]line ФМ: 0000000000871754 [17:36:15]OFD Sender: Processing packet 193012 [packets to send 75, broken 74] [17:36:15]ProducePacketName [17:36:15]name=ofd_packets/00193012 [17:36:15]OFD Sender: To server: ‡•öpG, [17:36:15]CommunicateWithHost lk.salyk.kg:30040 [17:36:15]ConnectInit lk.salyk.kg [17:36:15]line ФД: 193012 [17:36:15]line ФПД: 49638316377280 [17:36:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T173614&type=1&operation_type=1&fn_number=0000000000871754&fd_number=193012&fm=49638316377280&tin=02508201610067®Number=0000000000091776&sum=100000 [17:36:15]written 0, free lines is 4095 [17:36:15]Connected sock=11 [17: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 B3 D4 07 01 C1 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 0E 1D 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 2D 25 52 37 04 C0 B2 00 E4 46 B2 7D 81 F4 [17: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 9B E4 47 00 96 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 F4 F1 02 00 F4 03 04 00 CE C1 20 67 B6 04 01 00 00 BA E3 71 0B 8F EC AB B4 [17:36:15]CommunicateWithHost err = 0 [17:36:15]CheckOFDResponse [17:36:15]1017 (14) - 77093643461234 [17:36:15]1041 (16) - 0000000000871754 [17:36:15]1040 (4) - 193012 [17:36:15]1012 (4) - 29.10.2024 11:06 [17:36:15]1206 (1) - 0 [17:36:15]OFD Sender: Remove packet 193012 [17:36:15]ProducePacketName [17:36:15]name=ofd_packets/00193012 [17:36:15]NVStorageDeleteData [17:36:16]Write to MH i2c: 01 00 00 DE 03 E1 [17:36:16]Write i2c OK [17:36:16]MH_I2C_Read... [17:36:16]Read from MH i2c: 01 [17:36:16]MH_I2C_Read... [17:36:16]Read from MH i2c: 01 07 00 [17:36:16]MH_I2C_Read... [17:36:16]Read from MH i2c: 01 07 00 DE 03 00 00 00 00 00 BB 0C AF [17:36:16]RasterBufferAndPrint [17:36:16]line [17:36:16]line [17:36:16]line [17:36:16]line [17:36:16]line [17:36:16]written 0, free lines is 3272 [17:36:16]MH_Cut [17:36:16]Write to MH i2c: D1 01 00 E5 03 01 BA [17:36:16]Write i2c OK [17:36:16]MH_I2C_Read... [17:36:16]Read from MH i2c: D1 [17:36:16]MH_I2C_Read... [17:36:16]Read from MH i2c: D1 01 00 [17:36:16]MH_I2C_Read... [17:36:16]Read from MH i2c: D1 01 00 E5 03 00 B9 [17:36:16]Write to MH i2c: 01 00 00 E6 03 E9 [17:36:16]Write i2c OK [17:36:16]MH_I2C_Read... [17:36:16]OFD Sender: No OFD packet to send [17:36:16]*** Cut start [17:36:16]*** Partial cut [17:36:16]*** CUTSNS_PIN = 1 [17:36:16]*** CUTSNS_PIN = 0 [17:36:17]*** Brake cut motor [17:36:17]Read from MH i2c: 01 [17:36:17]MH_I2C_Read... [17:36:17]*** Stop cut motor [17:36:17]*** Cut end [17:36:17]Read from MH i2c: 01 07 00 [17:36:17]MH_I2C_Read... [17:36:17]Read from MH i2c: 01 07 00 E6 03 00 00 00 00 00 FF 0F FE [17:36:17]process_action close_receipt done [17:36:17]requested_data is exist [17:36:17]produce_requested_data [17:36:17]requested_item fm.sn is exist - process it [17:36:17]wFMCommunicate request_size=4 [17:36:17]MH_SAM_APDU [17:36:17]CAPDU: 80 11 00 00 [17:36:17]Write to MH i2c: E2 08 00 E7 03 80 11 00 00 00 00 00 00 64 [17:36:17]Write i2c OK [17:36:17]MH_I2C_Read... [17:36:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:17]Read from MH i2c: E2 [17:36:17]MH_I2C_Read... [17:36:17]Read from MH i2c: E2 17 00 [17:36:17]MH_I2C_Read... [17:36:17]Read from MH i2c: E2 17 00 E7 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B7 [17: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 [17:36:17]wFMCommunicate OK [17:36:17]requested_item fd.num is exist - process it [17:36:17]SAM_PROTO_GetFieldsCounters [17:36:17]wFMCommunicate request_size=4 [17:36:17]MH_SAM_APDU [17:36:17]CAPDU: 80 13 00 00 [17:36:17]Write to MH i2c: E2 08 00 E8 03 80 13 00 00 00 00 00 00 67 [17:36:17]Write i2c OK [17:36:17]MH_I2C_Read... [17:36:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:36:17]Read from MH i2c: E2 [17:36:17]MH_I2C_Read... [17:36:17]Read from MH i2c: E2 62 00 [17:36:17]MH_I2C_Read... [17:36:17]Read from MH i2c: E2 62 00 E8 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 F4 F1 02 00 0E 04 04 00 20 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 24 [17: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 F4 F1 02 00 0E 04 04 00 20 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 [17:36:17]wFMCommunicate OK [17:36:17]SAM_PROTO_GetFieldsCounters done [17:36:17]requested_item shift.num is exist - process it [17:36:17]requested_item shift.opened is exist - process it [17:36:17]req_shift_opened [17:36:17]FM_GetShiftState [17:36:17]SAM_PROTO_GetShiftState [17:36:17]wFMCommunicate request_size=4 [17:36:17]MH_SAM_APDU [17:36:17]CAPDU: 80 13 01 00 [17:36:17]Write to MH i2c: E2 08 00 E9 03 80 13 01 00 00 00 00 00 69 [17:36:17]Write i2c OK [17:36:17]MH_I2C_Read... [17:36:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:17]Read from MH i2c: E2 [17:36:17]MH_I2C_Read... [17:36:17]Read from MH i2c: E2 0E 00 [17:36:17]MH_I2C_Read... [17:36:17]Read from MH i2c: E2 0E 00 E9 03 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 6F [17:36:17]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [17:36:17]wFMCommunicate OK [17:36:17]SAM_PROTO_GetShiftState done [17:36:17]FM_GetShiftState done [17:36:17]req_shift_opened done [17:36:17]requested_item shift.open_date is exist - process it [17:36:17]req_shift_open_date [17:36:17]req_shift_open_date done [17:36:17]produce_requested_data done [17:36:17]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":193012,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [17:36:17]process_action_free close_receipt [17:36:17]json_value_free [17:36:17]json_value_free done [17:36:17]process_json_proto returns [17:36:17]Send response to host [17:36:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":193012,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [17:36:17]free response buf [17:36:17]execute_script done [17:36:17]execute_script returns [17:36:17]free content buf [17:36:17]Sock 10.Close socket [17:36:17]Sock 10.Thread stoped [17:36:21]OFD Sender: No OFD packet to send [17:36:26]OFD Sender: No OFD packet to send [17:36:31]OFD Sender: No OFD packet to send [17:36:33]accept exits with 9 [17:36:33]New connection [17:36:33]New thread 3067207012 created [17:36:33]Thread 3067350372 joined [17:36:33]Waiting for new connection... [17:36:33] Sock 9.Parse request [17:36:33]Sock 9.Check first char [17:36:33]Sock 9.First char is OK [17:36:33]request: POST /json_proto HTTP/1.0 [17:36:33]Method: POST [17:36:33]URL: /json_proto [17:36:33]Method is POST - this is cgi request [17:36:33]url: /json_proto [17:36:33]query_string will be loaded in cgi processing [17:36:33]execute_cgi json_proto POST (null) [17:36:33]execute_cgi path=json_proto method=POST [17:36:33]POST find Content-Length [17:36:33]Host: 172.17.63.131:8080 [17:36:33]Content-Length: 670 [17:36:33]Content-Type: application/json [17:36:33] [17:36:33]POST finish read [17:36:33]Found Content-Length = 670 [17:36:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32344", "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" : 320.00, "total" : 0.00, "payments": [ { "type": 0, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:33]execute_script... [17:36: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)32344", "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" : 320.00, "total" : 0.00, "payments": [ { "type": 0, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:33]POST & json_proto [17:36:33]process_json_proto [17:36:33]json parsed OK: [17:36:33]protocol is kg_v1.0 [17:36:33]action value=close_receipt [17:36:33]process_action close_receipt [17:36:33]cmd_close_receipt [17:36:33]MH_GetDate [17:36:33]Write to MH i2c: F0 00 00 EA 03 DC [17:36:33]Write i2c OK [17:36:33]MH_I2C_Read... [17:36:33]Read from MH i2c: F0 [17:36:33]MH_I2C_Read... [17:36:33]Read from MH i2c: F0 09 00 [17:36:33]MH_I2C_Read... [17:36:33]Read from MH i2c: F0 09 00 EA 03 00 22 1D 21 67 22 05 6E 64 A5 [17:36:33]GetLastDocTimeStamp 1730223374 [17:36:33]current date 1730223394 [17:36:33]FM_GetShiftState [17:36:33]SAM_PROTO_GetShiftState [17:36:33]wFMCommunicate request_size=4 [17:36:33]MH_SAM_APDU [17:36:33]CAPDU: 80 13 01 00 [17:36:33]Write to MH i2c: E2 08 00 EB 03 80 13 01 00 00 00 00 00 6B [17:36:33]Write i2c OK [17:36:33]MH_I2C_Read... [17:36:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:34]Read from MH i2c: E2 [17:36:34]MH_I2C_Read... [17:36:34]Read from MH i2c: E2 0E 00 [17:36:34]MH_I2C_Read... [17:36:34]Read from MH i2c: E2 0E 00 EB 03 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 71 [17:36:34]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [17:36:34]wFMCommunicate OK [17:36:34]SAM_PROTO_GetShiftState done [17:36:34]FM_GetShiftState done [17:36:34]opened in 1730161990 [17:36:34]opened+sec_in_day 1730248390 [17:36:34]quantity*price = 66 [17:36:34]sum+1 = 68 [17:36:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.67 ИТОГО: 0.00 ВнеÑено: 320.00 СДÐЧÐ: 320.00 ÐСП 1% : 0.01 ÐДС 12% : 0.07 Ðаличными: 0.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 170 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 СÐО: Общий режим Чек 219 29.10.2024 17:36 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 193013 ФПД: 67706713242586 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T173634&type=1&operation_type=1&fn_number=0000000000871754&fd_number=193013&fm=67706713242586&tin=02508201610067®Number=0000000000091776&sum=0 [17:36:34]StoreToDocumentArchive [17:36:34]shift 544 fd 193013 [17:36:34]save to /storage/0544/doc_00193013 [17:36:34]save last doc name /storage/0544/doc_00193013 to /storage/kkm_last_doc_name [17:36:34]save OK [17:36:34]Clear old archive folders... [17:36:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:36:34]tlvbuf is 00B04840 [17:36:34]SAM_PROTO_ClearQueue [17:36:34]wFMCommunicate request_size=4 [17:36:34]MH_SAM_APDU [17:36:34]CAPDU: 80 09 00 00 [17:36:34]Write to MH i2c: E2 08 00 F8 03 80 09 00 00 00 00 00 00 6D [17:36:34]Write i2c OK [17:36:34]MH_I2C_Read... [17:36:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:36:35]Read from MH i2c: E2 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 03 00 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 03 00 F8 03 00 90 00 6F [17:36:35]RAPDU: 90 00 [17:36:35]wFMCommunicate OK [17:36:35]SAM_PROTO_ClearQueue done [17:36:35]KKMCreateOFDPacket [17:36:35]OFDProtocolAddRootSTLVToBuf [17:36:35]FM_MakeSignedData [17:36:35]FM_MakeSignedData [17:36:35]SAM_PROTO_SignData [17:36:35]wFMCommunicate request_size=4 [17:36:35]MH_SAM_APDU [17:36:35]CAPDU: 80 0D 01 02 [17:36:35]Write to MH i2c: E2 08 00 F9 03 80 0D 01 02 00 00 00 00 75 [17:36:35]Write i2c OK [17:36:35]MH_I2C_Read... [17:36:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:36:35]Read from MH i2c: E2 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 03 00 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 03 00 F9 03 00 90 00 70 [17:36:35]RAPDU: 90 00 [17:36:35]wFMCommunicate OK [17:36:35]wFMCommunicate request_size=255 [17:36:35]MH_SAM_APDU [17:36: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 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 DB 00 00 00 F4 03 04 00 22 1D 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 3D [17:36:35]Write to MH i2c: E2 02 01 FA 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 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 DB 00 00 00 F4 03 04 00 22 1D 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 3D 00 00 FE [17:36:35]Write i2c OK [17:36:35]MH_I2C_Read... [17:36:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:35]Read from MH i2c: E2 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 03 00 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 03 00 FA 03 00 90 00 71 [17:36:35]RAPDU: 90 00 [17:36:35]wFMCommunicate OK [17:36:35]wFMCommunicate request_size=10 [17:36:35]MH_SAM_APDU [17:36:35]CAPDU: 80 0D 02 02 05 94 32 97 7B DA [17:36:35]Write to MH i2c: E2 0D 00 FB 03 80 0D 02 02 05 00 94 32 97 7B DA 00 00 34 [17:36:35]Write i2c OK [17:36:35]MH_I2C_Read... [17:36:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:35]Read from MH i2c: E2 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 03 00 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 03 00 FB 03 00 90 00 72 [17:36:35]RAPDU: 90 00 [17:36:35]wFMCommunicate OK [17:36:35]wFMCommunicate request_size=4 [17:36:35]MH_SAM_APDU [17:36:35]CAPDU: 80 0D 03 02 [17:36:35]Write to MH i2c: E2 08 00 FC 03 80 0D 03 02 00 00 00 00 7A [17:36:35]Write i2c OK [17:36:35]MH_I2C_Read... [17:36:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:36:35]Read from MH i2c: E2 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 0B 00 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 0B 00 FC 03 00 B4 64 66 AD 8C 46 52 94 90 00 5E [17:36:35]RAPDU: B4 64 66 AD 8C 46 52 94 90 00 [17:36:35]wFMCommunicate OK [17:36:35]SAM_PROTO_SignData done [17:36:35]FM_MakeSignedData done [17:36:35]CreateOFDProtocolMessage [17:36:35]wFMCommunicate request_size=4 [17:36:35]MH_SAM_APDU [17:36:35]CAPDU: 80 11 00 00 [17:36:35]Write to MH i2c: E2 08 00 FD 03 80 11 00 00 00 00 00 00 7A [17:36:35]Write i2c OK [17:36:35]MH_I2C_Read... [17:36:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:35]Read from MH i2c: E2 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 17 00 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 17 00 FD 03 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:35]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:35]wFMCommunicate OK [17:36:35]CreateOFDProtocolMessage done [17:36:35]OFDSenderStorePacket 193013 [17:36:35]StoreOFDPacket docnum=193013 [17:36: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 E5 E8 07 01 F0 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 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 DB 00 00 00 F4 03 04 00 22 1D 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 3D 94 32 97 7B DA B4 64 66 AD 8C 46 52 94 [17:36:35]CheckFolder [17:36:35]dirname=/storage/ofd_packets [17:36:35]CheckFolder done [17:36:35]ProducePacketName [17:36:35]name=ofd_packets/00193013 [17:36:35]NVStorageSaveData ofd_packets/00193013 [17:36:35]File name is /storage/ofd_packets/00193013 [17:36:35]Write 301 bytes [17:36:35]NVStorageSaveData done [17:36:35]OFDSenderStorePacket done [17:36:35]KKMCreateOFDPacket done [17:36:35]NVStorageSaveData kkm_last_timestamp [17:36:35]File name is /storage/kkm_last_timestamp [17:36:35]Write 4 bytes [17:36:35]NVStorageSaveData done [17:36:35]ExternCall_PrintAddStr [17:36:35]wPrintStart [17:36:35]Write to MH i2c: 01 00 00 FE 03 01 [17:36:35]Write i2c OK [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: 01 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: 01 07 00 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: 01 07 00 FE 03 00 00 00 00 00 FF 0F 16 [17:36:35]RasterBufferAndPrint [17:36:35]line Счет N : (1)32344 [17:36:35]line ИÐÐ: 02508201610067 [17:36:35]line Контрольно-КаÑÑовый Чек [17:36:35]line ПРОДÐЖР[17:36:35]line ТРК (МРК, ГÐК) : 12 [17:36:35]line Товар: 2710124130 [17:36:35]line Ðи-92-К-5 [17:36:35]line 0.010 * 66.90 [17:36:35]line = 0.67 [17:36:35]line ÐДС 12% ÐСП 1% [17:36:35]line > о реализуемом товаре [17:36:35]line ОКРУГЛЕÐИЕ: -0.67 [17:36:35]line ИТОГО: 0.00 [17:36:35]line ВнеÑено: 320.00 [17:36:35]line СДÐЧÐ: 320.00 [17:36:35]line ÐСП 1% : 0.01 [17:36:35]line ÐДС 12% : 0.07 [17:36:35]line Ðаличными: 0.00 [17:36:35]line Безнал.: 0.00 [17:36:35]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [17:36:35]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [17:36:35]line СÐО: Общий режим [17:36:35]line Чек 219 29.10.2024 17:36 [17:36:35]line Смена: 544 ФФД: 1.0 [17:36:35]line ЗÐМ: 0300000110 [17:36:35]line РÐМ: 0000000000091776 [17:36:35]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [17:36:35]line ФМ: 0000000000871754 [17:36:35]line ФД: 193013 [17:36:35]line ФПД: 67706713242586 [17:36:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T173634&type=1&operation_type=1&fn_number=0000000000871754&fd_number=193013&fm=67706713242586&tin=02508201610067®Number=0000000000091776&sum=0 [17:36:35]written 0, free lines is 4095 [17:36:35]OFD Sender: Processing packet 193013 [packets to send 75, broken 74] [17:36:35]ProducePacketName [17:36:35]name=ofd_packets/00193013 [17:36:35]OFD Sender: To server: ‡•öpG, [17:36:35]CommunicateWithHost lk.salyk.kg:30040 [17:36:35]ConnectInit lk.salyk.kg [17:36:35]Connected sock=11 [17:36: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 E5 E8 07 01 F0 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 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 DB 00 00 00 F4 03 04 00 22 1D 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 3D 94 32 97 7B DA B4 64 66 AD 8C 46 52 94 [17:36: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 69 6E 47 00 C2 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 F5 F1 02 00 F4 03 04 00 E2 C1 20 67 B6 04 01 00 00 33 20 F8 31 7F 0A 70 90 [17:36:36]CommunicateWithHost err = 0 [17:36:36]CheckOFDResponse [17:36:36]1017 (14) - 77093643461234 [17:36:36]1041 (16) - 0000000000871754 [17:36:36]1040 (4) - 193013 [17:36:36]1012 (4) - 29.10.2024 11:07 [17:36:36]1206 (1) - 0 [17:36:36]OFD Sender: Remove packet 193013 [17:36:36]ProducePacketName [17:36:36]name=ofd_packets/00193013 [17:36:36]NVStorageDeleteData [17:36:36]Write to MH i2c: 01 00 00 29 04 2D [17:36:36]Write i2c OK [17:36:36]MH_I2C_Read... [17:36:36]Read from MH i2c: 01 [17:36:36]MH_I2C_Read... [17:36:36]Read from MH i2c: 01 07 00 [17:36:36]MH_I2C_Read... [17:36:36]Read from MH i2c: 01 07 00 29 04 00 00 00 00 00 AB 0C EB [17:36:36]RasterBufferAndPrint [17:36:36]line [17:36:36]line [17:36:36]line [17:36:36]line [17:36:36]line [17:36:36]written 0, free lines is 3261 [17:36:36]MH_Cut [17:36:36]Write to MH i2c: D1 01 00 30 04 01 06 [17:36:36]Write i2c OK [17:36:36]MH_I2C_Read... [17:36:36]Read from MH i2c: D1 [17:36:36]MH_I2C_Read... [17:36:36]Read from MH i2c: D1 01 00 [17:36:36]MH_I2C_Read... [17:36:36]Read from MH i2c: D1 01 00 30 04 00 05 [17:36:36]Write to MH i2c: 01 00 00 31 04 35 [17:36:36]Write i2c OK [17:36:36]MH_I2C_Read... [17:36:36]OFD Sender: No OFD packet to send [17:36:36]*** Cut start [17:36:36]*** Partial cut [17:36:36]*** CUTSNS_PIN = 1 [17:36:37]*** CUTSNS_PIN = 0 [17:36:37]*** Brake cut motor [17:36:37]Read from MH i2c: 01 [17:36:37]MH_I2C_Read... [17:36:37]*** Stop cut motor [17:36:37]*** Cut end [17:36:37]Read from MH i2c: 01 07 00 [17:36:37]MH_I2C_Read... [17:36:37]Read from MH i2c: 01 07 00 31 04 00 00 00 00 00 FF 0F 4A [17:36:37]process_action close_receipt done [17:36:37]requested_data is exist [17:36:37]produce_requested_data [17:36:37]requested_item fm.sn is exist - process it [17:36:37]wFMCommunicate request_size=4 [17:36:37]MH_SAM_APDU [17:36:37]CAPDU: 80 11 00 00 [17:36:37]Write to MH i2c: E2 08 00 32 04 80 11 00 00 00 00 00 00 B0 [17:36:37]Write i2c OK [17:36:37]MH_I2C_Read... [17:36:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:37]Read from MH i2c: E2 [17:36:37]MH_I2C_Read... [17:36:37]Read from MH i2c: E2 17 00 [17:36:37]MH_I2C_Read... [17:36:37]Read from MH i2c: E2 17 00 32 04 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:36: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:36:37]wFMCommunicate OK [17:36:37]requested_item fd.num is exist - process it [17:36:37]SAM_PROTO_GetFieldsCounters [17:36:37]wFMCommunicate request_size=4 [17:36:37]MH_SAM_APDU [17:36:37]CAPDU: 80 13 00 00 [17:36:37]Write to MH i2c: E2 08 00 33 04 80 13 00 00 00 00 00 00 B3 [17:36:37]Write i2c OK [17:36:37]MH_I2C_Read... [17:36:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:36:37]Read from MH i2c: E2 [17:36:37]MH_I2C_Read... [17:36:37]Read from MH i2c: E2 62 00 [17:36:37]MH_I2C_Read... [17:36:37]Read from MH i2c: E2 62 00 33 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 F5 F1 02 00 0E 04 04 00 20 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 74 [17:36: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 F5 F1 02 00 0E 04 04 00 20 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 [17:36:37]wFMCommunicate OK [17:36:37]SAM_PROTO_GetFieldsCounters done [17:36:37]requested_item shift.num is exist - process it [17:36:37]requested_item shift.opened is exist - process it [17:36:37]req_shift_opened [17:36:37]FM_GetShiftState [17:36:37]SAM_PROTO_GetShiftState [17:36:37]wFMCommunicate request_size=4 [17:36:37]MH_SAM_APDU [17:36:37]CAPDU: 80 13 01 00 [17:36:37]Write to MH i2c: E2 08 00 34 04 80 13 01 00 00 00 00 00 B5 [17:36:37]Write i2c OK [17:36:37]MH_I2C_Read... [17:36:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:37]Read from MH i2c: E2 [17:36:37]MH_I2C_Read... [17:36:37]Read from MH i2c: E2 0E 00 [17:36:37]MH_I2C_Read... [17:36:37]Read from MH i2c: E2 0E 00 34 04 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 BB [17:36:37]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [17:36:37]wFMCommunicate OK [17:36:37]SAM_PROTO_GetShiftState done [17:36:37]FM_GetShiftState done [17:36:37]req_shift_opened done [17:36:37]requested_item shift.open_date is exist - process it [17:36:37]req_shift_open_date [17:36:37]req_shift_open_date done [17:36:37]produce_requested_data done [17:36:37]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":193013,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [17:36:37]process_action_free close_receipt [17:36:37]json_value_free [17:36:37]json_value_free done [17:36:37]process_json_proto returns [17:36:37]Send response to host [17:36:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":193013,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [17:36:37]free response buf [17:36:37]execute_script done [17:36:37]execute_script returns [17:36:37]free content buf [17:36:37]Sock 9.Close socket [17:36:37]Sock 9.Thread stoped [17:36:41]OFD Sender: No OFD packet to send [17:36:46]OFD Sender: No OFD packet to send [17:36:51]OFD Sender: No OFD packet to send [17:36:56]OFD Sender: No OFD packet to send [17:37:01]OFD Sender: No OFD packet to send [17:37:06]OFD Sender: No OFD packet to send [17:37:11]OFD Sender: No OFD packet to send [17:37:16]OFD Sender: No OFD packet to send [17:37:21]OFD Sender: No OFD packet to send [17:37:22]accept exits with 10 [17:37:22]New connection [17:37:22]New thread 3067350372 created [17:37:22]Thread 3067207012 joined [17:37:22]Waiting for new connection... [17:37:22] Sock 10.Parse request [17:37:22]Sock 10.Check first char [17:37:22]Sock 10.First char is OK [17:37:22]request: POST /json_proto HTTP/1.0 [17:37:22]Method: POST [17:37:22]URL: /json_proto [17:37:22]Method is POST - this is cgi request [17:37:22]url: /json_proto [17:37:22]query_string will be loaded in cgi processing [17:37:22]execute_cgi json_proto POST (null) [17:37:22]execute_cgi path=json_proto method=POST [17:37:22]POST find Content-Length [17:37:22]Host: 172.17.63.131:8080 [17:37:22]Content-Length: 681 [17:37:22]Content-Type: application/json [17:37:22] [17:37:22]POST finish read [17:37:22]Found Content-Length = 681 [17:37:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32345", "tax_sys" : 0, "items" : [ { "pre_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:37:22]execute_script... [17:37: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)32345", "tax_sys" : 0, "items" : [ { "pre_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:37:22]POST & json_proto [17:37:22]process_json_proto [17:37:22]json parsed OK: [17:37:22]protocol is kg_v1.0 [17:37:22]action value=close_receipt [17:37:22]process_action close_receipt [17:37:22]cmd_close_receipt [17:37:22]MH_GetDate [17:37:22]Write to MH i2c: F0 00 00 35 04 28 [17:37:22]Write i2c OK [17:37:22]MH_I2C_Read... [17:37:22]Read from MH i2c: F0 [17:37:22]MH_I2C_Read... [17:37:22]Read from MH i2c: F0 09 00 [17:37:22]MH_I2C_Read... [17:37:22]Read from MH i2c: F0 09 00 35 04 00 53 1D 21 67 22 05 6E 64 22 [17:37:22]GetLastDocTimeStamp 1730223394 [17:37:22]current date 1730223443 [17:37:22]FM_GetShiftState [17:37:22]SAM_PROTO_GetShiftState [17:37:22]wFMCommunicate request_size=4 [17:37:22]MH_SAM_APDU [17:37:22]CAPDU: 80 13 01 00 [17:37:22]Write to MH i2c: E2 08 00 36 04 80 13 01 00 00 00 00 00 B7 [17:37:22]Write i2c OK [17:37:22]MH_I2C_Read... [17:37:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:22]Read from MH i2c: E2 [17:37:22]MH_I2C_Read... [17:37:22]Read from MH i2c: E2 0E 00 [17:37:22]MH_I2C_Read... [17:37:22]Read from MH i2c: E2 0E 00 36 04 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 BD [17:37:22]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [17:37:22]wFMCommunicate OK [17:37:22]SAM_PROTO_GetShiftState done [17:37:22]FM_GetShiftState done [17:37:22]opened in 1730161990 [17:37:22]opened+sec_in_day 1730248390 [17:37:22]quantity*price = 100015 [17:37:22]sum+1 = 100017 [17:37: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 СÐО: Общий режим Чек 220 29.10.2024 17:37 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 193014 ФПД: 128141354311586 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T173723&type=1&operation_type=1&fn_number=0000000000871754&fd_number=193014&fm=128141354311586&tin=02508201610067®Number=0000000000091776&sum=100000 [17:37:24]StoreToDocumentArchive [17:37:24]shift 544 fd 193014 [17:37:24]save to /storage/0544/doc_00193014 [17:37:24]save last doc name /storage/0544/doc_00193014 to /storage/kkm_last_doc_name [17:37:24]save OK [17:37:24]Clear old archive folders... [17:37:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:37:24]tlvbuf is 00B4BEF0 [17:37:24]SAM_PROTO_ClearQueue [17:37:24]wFMCommunicate request_size=4 [17:37:24]MH_SAM_APDU [17:37:24]CAPDU: 80 09 00 00 [17:37:24]Write to MH i2c: E2 08 00 43 04 80 09 00 00 00 00 00 00 B9 [17:37:24]Write i2c OK [17:37:24]MH_I2C_Read... [17:37:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:37:24]Read from MH i2c: E2 [17:37:24]MH_I2C_Read... [17:37:24]Read from MH i2c: E2 03 00 [17:37:24]MH_I2C_Read... [17:37:24]Read from MH i2c: E2 03 00 43 04 00 90 00 BB [17:37:24]RAPDU: 90 00 [17:37:24]wFMCommunicate OK [17:37:24]SAM_PROTO_ClearQueue done [17:37:24]KKMCreateOFDPacket [17:37:24]OFDProtocolAddRootSTLVToBuf [17:37:24]FM_MakeSignedData [17:37:24]FM_MakeSignedData [17:37:24]SAM_PROTO_SignData [17:37:24]wFMCommunicate request_size=4 [17:37:24]MH_SAM_APDU [17:37:24]CAPDU: 80 0D 01 02 [17:37:24]Write to MH i2c: E2 08 00 44 04 80 0D 01 02 00 00 00 00 C1 [17:37:24]Write i2c OK [17:37:24]MH_I2C_Read... [17:37:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:37:24]Read from MH i2c: E2 [17:37:24]MH_I2C_Read... [17:37:24]Read from MH i2c: E2 03 00 [17:37:24]MH_I2C_Read... [17:37:24]Read from MH i2c: E2 03 00 44 04 00 90 00 BC [17:37:24]RAPDU: 90 00 [17:37:24]wFMCommunicate OK [17:37:24]wFMCommunicate request_size=255 [17:37:24]MH_SAM_APDU [17:37: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 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 53 1D 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 74 [17:37:24]Write to MH i2c: E2 02 01 45 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 53 1D 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 74 00 00 A2 [17:37:24]Write i2c OK [17:37:24]MH_I2C_Read... [17:37:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:24]Read from MH i2c: E2 [17:37:24]MH_I2C_Read... [17:37:24]Read from MH i2c: E2 03 00 [17:37:24]MH_I2C_Read... [17:37:24]Read from MH i2c: E2 03 00 45 04 00 90 00 BD [17:37:24]RAPDU: 90 00 [17:37:24]wFMCommunicate OK [17:37:24]wFMCommunicate request_size=10 [17:37:24]MH_SAM_APDU [17:37:24]CAPDU: 80 0D 02 02 05 8B 3B E7 9F A2 [17:37:24]Write to MH i2c: E2 0D 00 46 04 80 0D 02 02 05 00 8B 3B E7 9F A2 00 00 BC [17:37:24]Write i2c OK [17:37:24]MH_I2C_Read... [17:37:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:24]Read from MH i2c: E2 [17:37:24]MH_I2C_Read... [17:37:24]Read from MH i2c: E2 03 00 [17:37:24]MH_I2C_Read... [17:37:24]Read from MH i2c: E2 03 00 46 04 00 90 00 BE [17:37:24]RAPDU: 90 00 [17:37:24]wFMCommunicate OK [17:37:24]wFMCommunicate request_size=4 [17:37:24]MH_SAM_APDU [17:37:24]CAPDU: 80 0D 03 02 [17:37:24]Write to MH i2c: E2 08 00 47 04 80 0D 03 02 00 00 00 00 C6 [17:37:24]Write i2c OK [17:37:24]MH_I2C_Read... [17:37:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:37:24]Read from MH i2c: E2 [17:37:24]MH_I2C_Read... [17:37:24]Read from MH i2c: E2 0B 00 [17:37:24]MH_I2C_Read... [17:37:24]Read from MH i2c: E2 0B 00 47 04 00 09 8F C7 DC E3 2A 8F 46 90 00 E4 [17:37:24]RAPDU: 09 8F C7 DC E3 2A 8F 46 90 00 [17:37:24]wFMCommunicate OK [17:37:24]SAM_PROTO_SignData done [17:37:24]FM_MakeSignedData done [17:37:24]CreateOFDProtocolMessage [17:37:24]wFMCommunicate request_size=4 [17:37:24]MH_SAM_APDU [17:37:24]CAPDU: 80 11 00 00 [17:37:24]Write to MH i2c: E2 08 00 48 04 80 11 00 00 00 00 00 00 C6 [17:37:24]Write i2c OK [17:37:24]MH_I2C_Read... [17:37:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:25]Read from MH i2c: E2 [17:37:25]MH_I2C_Read... [17:37:25]Read from MH i2c: E2 17 00 [17:37:25]MH_I2C_Read... [17:37:25]Read from MH i2c: E2 17 00 48 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 19 [17:37:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:37:25]wFMCommunicate OK [17:37:25]CreateOFDProtocolMessage done [17:37:25]OFDSenderStorePacket 193014 [17:37:25]StoreOFDPacket docnum=193014 [17:37: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 A1 9C 07 01 27 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 DC 00 00 00 F4 03 04 00 53 1D 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 74 8B 3B E7 9F A2 09 8F C7 DC E3 2A 8F 46 [17:37:25]CheckFolder [17:37:25]dirname=/storage/ofd_packets [17:37:25]CheckFolder done [17:37:25]ProducePacketName [17:37:25]name=ofd_packets/00193014 [17:37:25]NVStorageSaveData ofd_packets/00193014 [17:37:25]File name is /storage/ofd_packets/00193014 [17:37:25]Write 301 bytes [17:37:25]NVStorageSaveData done [17:37:25]OFDSenderStorePacket done [17:37:25]KKMCreateOFDPacket done [17:37:25]NVStorageSaveData kkm_last_timestamp [17:37:25]File name is /storage/kkm_last_timestamp [17:37:25]Write 4 bytes [17:37:25]NVStorageSaveData done [17:37:25]ExternCall_PrintAddStr [17:37:25]wPrintStart [17:37:25]Write to MH i2c: 01 00 00 49 04 4D [17:37:25]Write i2c OK [17:37:25]MH_I2C_Read... [17:37:25]Read from MH i2c: 01 [17:37:25]MH_I2C_Read... [17:37:25]Read from MH i2c: 01 07 00 [17:37:25]MH_I2C_Read... [17:37:25]Read from MH i2c: 01 07 00 49 04 00 00 00 00 00 FF 0F 62 [17:37:25]RasterBufferAndPrint [17:37:25]line Счет N : (1)32345 [17:37:25]line ИÐÐ: 02508201610067 [17:37:25]line Контрольно-КаÑÑовый Чек [17:37:25]line ПРОДÐЖР[17:37:25]line ТРК (МРК, ГÐК) : 21 [17:37:25]line Товар: 2710124130 [17:37:25]line Ðи-92-К-5 [17:37:25]line 14.950 * 66.90 [17:37:25]line = 1000.16 [17:37:25]line ÐДС 12% ÐСП 1% [17:37:25]line > о реализуемом товаре [17:37:25]line ОКРУГЛЕÐИЕ: -0.16 [17:37:25]line ИТОГО: 1000.00 [17:37:25]line ВнеÑено: 1000.00 [17:37:25]line СДÐЧÐ: 0.00 [17:37:25]line ÐСП 1% : 8.85 [17:37:25]line ÐДС 12% : 106.21 [17:37:25]line Ðаличными: 1000.00 [17:37:25]line Безнал.: 0.00 [17:37:25]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [17:37:25]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [17:37:25]line СÐО: Общий режим [17:37:25]line Чек 220 29.10.2024 17:37 [17:37:25]line Смена: 544 ФФД: 1.0 [17:37:25]line ЗÐМ: 0300000110 [17:37:25]line РÐМ: 0000000000091776 [17:37:25]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [17:37:25]line ФМ: 0000000000871754 [17:37:25]line ФД: 193014 [17:37:25]line ФПД: 128141354311586 [17:37:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T173723&type=1&operation_type=1&fn_number=0000000000871754&fd_number=193014&fm=128141354311586&tin=02508201610067®Number=0000000000091776&sum=100000 [17:37:25]written 0, free lines is 4095 [17:37:25]OFD Sender: Processing packet 193014 [packets to send 75, broken 74] [17:37:25]ProducePacketName [17:37:25]name=ofd_packets/00193014 [17:37:25]OFD Sender: To server: ‡•öpG, [17:37:25]CommunicateWithHost lk.salyk.kg:30040 [17:37:25]ConnectInit lk.salyk.kg [17:37:25]Connected sock=11 [17:37: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 A1 9C 07 01 27 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 DC 00 00 00 F4 03 04 00 53 1D 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 74 8B 3B E7 9F A2 09 8F C7 DC E3 2A 8F 46 [17:37: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 BA 5F 47 00 93 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 F6 F1 02 00 F4 03 04 00 13 C2 20 67 B6 04 01 00 00 40 C2 79 17 95 83 24 0D [17:37:25]CommunicateWithHost err = 0 [17:37:25]CheckOFDResponse [17:37:25]1017 (14) - 77093643461234 [17:37:25]1041 (16) - 0000000000871754 [17:37:25]1040 (4) - 193014 [17:37:25]1012 (4) - 29.10.2024 11:08 [17:37:25]1206 (1) - 0 [17:37:25]OFD Sender: Remove packet 193014 [17:37:25]ProducePacketName [17:37:25]name=ofd_packets/00193014 [17:37:25]NVStorageDeleteData [17:37:25]Write to MH i2c: 01 00 00 74 04 78 [17:37:25]Write i2c OK [17:37:25]MH_I2C_Read... [17:37:25]Read from MH i2c: 01 [17:37:25]MH_I2C_Read... [17:37:25]Read from MH i2c: 01 07 00 [17:37:25]MH_I2C_Read... [17:37:25]Read from MH i2c: 01 07 00 74 04 00 00 00 00 00 2D 0D B9 [17:37:25]RasterBufferAndPrint [17:37:25]line [17:37:25]line [17:37:25]line [17:37:25]line [17:37:25]line [17:37:25]written 0, free lines is 3398 [17:37:25]MH_Cut [17:37:25]Write to MH i2c: D1 01 00 7B 04 01 51 [17:37:25]Write i2c OK [17:37:25]MH_I2C_Read... [17:37:25]Read from MH i2c: D1 [17:37:25]MH_I2C_Read... [17:37:25]Read from MH i2c: D1 01 00 [17:37:25]MH_I2C_Read... [17:37:25]Read from MH i2c: D1 01 00 7B 04 00 50 [17:37:25]Write to MH i2c: 01 00 00 7C 04 80 [17:37:25]Write i2c OK [17:37:25]MH_I2C_Read... [17:37:26]OFD Sender: No OFD packet to send [17:37:26]*** Cut start [17:37:26]*** Partial cut [17:37:26]*** CUTSNS_PIN = 1 [17:37:26]*** CUTSNS_PIN = 0 [17:37:26]*** Brake cut motor [17:37:27]Read from MH i2c: 01 [17:37:27]MH_I2C_Read... [17:37:27]*** Stop cut motor [17:37:27]*** Cut end [17:37:27]Read from MH i2c: 01 07 00 [17:37:27]MH_I2C_Read... [17:37:27]Read from MH i2c: 01 07 00 7C 04 00 00 00 00 00 FF 0F 95 [17:37:27]process_action close_receipt done [17:37:27]requested_data is exist [17:37:27]produce_requested_data [17:37:27]requested_item fm.sn is exist - process it [17:37:27]wFMCommunicate request_size=4 [17:37:27]MH_SAM_APDU [17:37:27]CAPDU: 80 11 00 00 [17:37:27]Write to MH i2c: E2 08 00 7D 04 80 11 00 00 00 00 00 00 FB [17:37:27]Write i2c OK [17:37:27]MH_I2C_Read... [17:37:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:27]Read from MH i2c: E2 [17:37:27]MH_I2C_Read... [17:37:27]Read from MH i2c: E2 17 00 [17:37:27]MH_I2C_Read... [17:37:27]Read from MH i2c: E2 17 00 7D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4E [17:37: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:37:27]wFMCommunicate OK [17:37:27]requested_item fd.num is exist - process it [17:37:27]SAM_PROTO_GetFieldsCounters [17:37:27]wFMCommunicate request_size=4 [17:37:27]MH_SAM_APDU [17:37:27]CAPDU: 80 13 00 00 [17:37:27]Write to MH i2c: E2 08 00 7E 04 80 13 00 00 00 00 00 00 FE [17:37:27]Write i2c OK [17:37:27]MH_I2C_Read... [17:37:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:37:27]Read from MH i2c: E2 [17:37:27]MH_I2C_Read... [17:37:27]Read from MH i2c: E2 62 00 [17:37:27]MH_I2C_Read... [17:37:27]Read from MH i2c: E2 62 00 7E 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 F6 F1 02 00 0E 04 04 00 20 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 C3 [17:37: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 F6 F1 02 00 0E 04 04 00 20 02 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:37:27]wFMCommunicate OK [17:37:27]SAM_PROTO_GetFieldsCounters done [17:37:27]requested_item shift.num is exist - process it [17:37:27]requested_item shift.opened is exist - process it [17:37:27]req_shift_opened [17:37:27]FM_GetShiftState [17:37:27]SAM_PROTO_GetShiftState [17:37:27]wFMCommunicate request_size=4 [17:37:27]MH_SAM_APDU [17:37:27]CAPDU: 80 13 01 00 [17:37:27]Write to MH i2c: E2 08 00 7F 04 80 13 01 00 00 00 00 00 00 [17:37:27]Write i2c OK [17:37:27]MH_I2C_Read... [17:37:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:27]Read from MH i2c: E2 [17:37:27]MH_I2C_Read... [17:37:27]Read from MH i2c: E2 0E 00 [17:37:27]MH_I2C_Read... [17:37:27]Read from MH i2c: E2 0E 00 7F 04 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 06 [17:37:27]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [17:37:27]wFMCommunicate OK [17:37:27]SAM_PROTO_GetShiftState done [17:37:27]FM_GetShiftState done [17:37:27]req_shift_opened done [17:37:27]requested_item shift.open_date is exist - process it [17:37:27]req_shift_open_date [17:37:27]req_shift_open_date done [17:37:27]produce_requested_data done [17:37:27]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":193014,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [17:37:27]process_action_free close_receipt [17:37:27]json_value_free [17:37:27]json_value_free done [17:37:27]process_json_proto returns [17:37:27]Send response to host [17:37:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":193014,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [17:37:27]free response buf [17:37:27]execute_script done [17:37:27]execute_script returns [17:37:27]free content buf [17:37:27]Sock 10.Close socket [17:37:27]Sock 10.Thread stoped [17:37:27]accept exits with 9 [17:37:27]New connection [17:37:27]New thread 3067207012 created [17:37:27]Thread 3067350372 joined [17:37:27]Waiting for new connection... [17:37:27] Sock 9.Parse request [17:37:27]Sock 9.Check first char [17:37:27]Sock 9.First char is OK [17:37:27]request: POST /json_proto HTTP/1.0 [17:37:27]Method: POST [17:37:27]URL: /json_proto [17:37:27]Method is POST - this is cgi request [17:37:27]url: /json_proto [17:37:27]query_string will be loaded in cgi processing [17:37:27]execute_cgi json_proto POST (null) [17:37:27]execute_cgi path=json_proto method=POST [17:37:27]POST find Content-Length [17:37:27]Host: 172.17.63.131:8080 [17:37:27]Content-Length: 676 [17:37:27]Content-Type: application/json [17:37:27] [17:37:27]POST finish read [17:37:27]Found Content-Length = 676 [17:37:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32346", "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.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" ] } } [17:37:27]execute_script... [17: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)32346", "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.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" ] } } [17:37:27]POST & json_proto [17:37:27]process_json_proto [17:37:27]json parsed OK: [17:37:27]protocol is kg_v1.0 [17:37:27]action value=close_receipt [17:37:27]process_action close_receipt [17:37:27]cmd_close_receipt [17:37:27]MH_GetDate [17:37:27]Write to MH i2c: F0 00 00 80 04 73 [17:37:27]Write i2c OK [17:37:27]MH_I2C_Read... [17:37:27]Read from MH i2c: F0 [17:37:27]MH_I2C_Read... [17:37:27]Read from MH i2c: F0 09 00 [17:37:27]MH_I2C_Read... [17:37:27]Read from MH i2c: F0 09 00 80 04 00 58 1D 21 67 22 05 6E 64 72 [17:37:27]GetLastDocTimeStamp 1730223443 [17:37:27]current date 1730223448 [17:37:27]FM_GetShiftState [17:37:27]SAM_PROTO_GetShiftState [17:37:27]wFMCommunicate request_size=4 [17:37:27]MH_SAM_APDU [17:37:27]CAPDU: 80 13 01 00 [17:37:27]Write to MH i2c: E2 08 00 81 04 80 13 01 00 00 00 00 00 02 [17:37:27]Write i2c OK [17:37:27]MH_I2C_Read... [17:37:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:28]Read from MH i2c: E2 [17:37:28]MH_I2C_Read... [17:37:28]Read from MH i2c: E2 0E 00 [17:37:28]MH_I2C_Read... [17:37:28]Read from MH i2c: E2 0E 00 81 04 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 08 [17:37:28]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [17:37:28]wFMCommunicate OK [17:37:28]SAM_PROTO_GetShiftState done [17:37:28]FM_GetShiftState done [17:37:28]opened in 1730161990 [17:37:28]opened+sec_in_day 1730248390 [17:37:28]quantity*price = 32045 [17:37:28]sum+1 = 32046 [17:37:28]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 СÐО: Общий режим Чек 221 29.10.2024 17:37 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 193015 ФПД: 152997924230044 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T173728&type=1&operation_type=1&fn_number=0000000000871754&fd_number=193015&fm=152997924230044&tin=02508201610067®Number=0000000000091776&sum=32000 [17:37:29]StoreToDocumentArchive [17:37:29]shift 544 fd 193015 [17:37:29]save to /storage/0544/doc_00193015 [17:37:29]save last doc name /storage/0544/doc_00193015 to /storage/kkm_last_doc_name [17:37:29]save OK [17:37:29]Clear old archive folders... [17:37:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:37:29]tlvbuf is 00B4B7B0 [17:37:29]SAM_PROTO_ClearQueue [17:37:29]wFMCommunicate request_size=4 [17:37:29]MH_SAM_APDU [17:37:29]CAPDU: 80 09 00 00 [17:37:29]Write to MH i2c: E2 08 00 8E 04 80 09 00 00 00 00 00 00 04 [17:37:29]Write i2c OK [17:37:29]MH_I2C_Read... [17:37:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:37:29]Read from MH i2c: E2 [17:37:29]MH_I2C_Read... [17:37:29]Read from MH i2c: E2 03 00 [17:37:29]MH_I2C_Read... [17:37:29]Read from MH i2c: E2 03 00 8E 04 00 90 00 06 [17:37:29]RAPDU: 90 00 [17:37:29]wFMCommunicate OK [17:37:29]SAM_PROTO_ClearQueue done [17:37:29]KKMCreateOFDPacket [17:37:29]OFDProtocolAddRootSTLVToBuf [17:37:29]FM_MakeSignedData [17:37:29]FM_MakeSignedData [17:37:29]SAM_PROTO_SignData [17:37:29]wFMCommunicate request_size=4 [17:37:29]MH_SAM_APDU [17:37:29]CAPDU: 80 0D 01 02 [17:37:29]Write to MH i2c: E2 08 00 8F 04 80 0D 01 02 00 00 00 00 0C [17:37:29]Write i2c OK [17:37:29]MH_I2C_Read... [17:37:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:37:29]Read from MH i2c: E2 [17:37:29]MH_I2C_Read... [17:37:29]Read from MH i2c: E2 03 00 [17:37:29]MH_I2C_Read... [17:37:29]Read from MH i2c: E2 03 00 8F 04 00 90 00 07 [17:37:29]RAPDU: 90 00 [17:37:29]wFMCommunicate OK [17:37:29]wFMCommunicate request_size=255 [17:37:29]MH_SAM_APDU [17:37: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 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 DD 00 00 00 F4 03 04 00 58 1D 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 8B [17:37:30]Write to MH i2c: E2 02 01 90 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 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 DD 00 00 00 F4 03 04 00 58 1D 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 8B 00 00 A9 [17:37:30]Write i2c OK [17:37:30]MH_I2C_Read... [17:37:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:30]Read from MH i2c: E2 [17:37:30]MH_I2C_Read... [17:37:30]Read from MH i2c: E2 03 00 [17:37:30]MH_I2C_Read... [17:37:30]Read from MH i2c: E2 03 00 90 04 00 90 00 08 [17:37:30]RAPDU: 90 00 [17:37:30]wFMCommunicate OK [17:37:30]wFMCommunicate request_size=10 [17:37:30]MH_SAM_APDU [17:37:30]CAPDU: 80 0D 02 02 05 26 9A EC D3 9C [17:37:30]Write to MH i2c: E2 0D 00 91 04 80 0D 02 02 05 00 26 9A EC D3 9C 00 00 34 [17:37:30]Write i2c OK [17:37:30]MH_I2C_Read... [17:37:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:30]Read from MH i2c: E2 [17:37:30]MH_I2C_Read... [17:37:30]Read from MH i2c: E2 03 00 [17:37:30]MH_I2C_Read... [17:37:30]Read from MH i2c: E2 03 00 91 04 00 90 00 09 [17:37:30]RAPDU: 90 00 [17:37:30]wFMCommunicate OK [17:37:30]wFMCommunicate request_size=4 [17:37:30]MH_SAM_APDU [17:37:30]CAPDU: 80 0D 03 02 [17:37:30]Write to MH i2c: E2 08 00 92 04 80 0D 03 02 00 00 00 00 11 [17:37:30]Write i2c OK [17:37:30]MH_I2C_Read... [17:37:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:37:30]Read from MH i2c: E2 [17:37:30]MH_I2C_Read... [17:37:30]Read from MH i2c: E2 0B 00 [17:37:30]MH_I2C_Read... [17:37:30]Read from MH i2c: E2 0B 00 92 04 00 65 08 12 F6 E8 02 72 45 90 00 28 [17:37:30]RAPDU: 65 08 12 F6 E8 02 72 45 90 00 [17:37:30]wFMCommunicate OK [17:37:30]SAM_PROTO_SignData done [17:37:30]FM_MakeSignedData done [17:37:30]CreateOFDProtocolMessage [17:37:30]wFMCommunicate request_size=4 [17:37:30]MH_SAM_APDU [17:37:30]CAPDU: 80 11 00 00 [17:37:30]Write to MH i2c: E2 08 00 93 04 80 11 00 00 00 00 00 00 11 [17:37:30]Write i2c OK [17:37:30]MH_I2C_Read... [17:37:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:30]Read from MH i2c: E2 [17:37:30]MH_I2C_Read... [17:37:30]Read from MH i2c: E2 17 00 [17:37:30]MH_I2C_Read... [17:37:30]Read from MH i2c: E2 17 00 93 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 64 [17:37: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:37:30]wFMCommunicate OK [17:37:30]CreateOFDProtocolMessage done [17:37:30]OFDSenderStorePacket 193015 [17:37:30]StoreOFDPacket docnum=193015 [17:37: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 01 E4 07 01 3C 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 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 DD 00 00 00 F4 03 04 00 58 1D 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 8B 26 9A EC D3 9C 65 08 12 F6 E8 02 72 45 [17:37:30]CheckFolder [17:37:30]dirname=/storage/ofd_packets [17:37:30]CheckFolder done [17:37:30]ProducePacketName [17:37:30]name=ofd_packets/00193015 [17:37:30]NVStorageSaveData ofd_packets/00193015 [17:37:30]File name is /storage/ofd_packets/00193015 [17:37:30]Write 301 bytes [17:37:30]NVStorageSaveData done [17:37:30]OFDSenderStorePacket done [17:37:30]KKMCreateOFDPacket done [17:37:30]NVStorageSaveData kkm_last_timestamp [17:37:30]File name is /storage/kkm_last_timestamp [17:37:30]Write 4 bytes [17:37:30]NVStorageSaveData done [17:37:30]ExternCall_PrintAddStr [17:37:30]wPrintStart [17:37:30]Write to MH i2c: 01 00 00 94 04 98 [17:37:30]OFD Sender: Processing packet 193015 [packets to send 75, broken 74] [17:37:30]ProducePacketName [17:37:30]name=ofd_packets/00193015 [17:37:30]OFD Sender: To server: ‡•öpG, [17:37:30]CommunicateWithHost lk.salyk.kg:30040 [17:37:30]ConnectInit lk.salyk.kg [17:37:30]Write i2c OK [17:37:30]MH_I2C_Read... [17:37:30]Read from MH i2c: 01 [17:37:30]MH_I2C_Read... [17:37:30]Read from MH i2c: 01 07 00 [17:37:30]MH_I2C_Read... [17:37:30]Read from MH i2c: 01 07 00 94 04 00 00 00 00 00 FF 0F AD [17:37:30]RasterBufferAndPrint [17:37:30]line Счет N : (1)32346 [17:37:30]line ИÐÐ: 02508201610067 [17:37:30]line Контрольно-КаÑÑовый Чек [17:37:30]line ПРОДÐЖР[17:37:30]line ТРК (МРК, ГÐК) : 12 [17:37:30]line Товар: 2710124130 [17:37:30]line Ðи-92-К-5 [17:37:30]line 4.790 * 66.90 [17:37:30]line = 320.45 [17:37:30]line ÐДС 12% ÐСП 1% [17:37:30]line > о реализуемом товаре [17:37:30]line ОКРУГЛЕÐИЕ: -0.45 [17:37:30]line ИТОГО: 320.00 [17:37:30]line ВнеÑено: 320.00 [17:37:30]line СДÐЧÐ: 0.00 [17:37:30]line ÐСП 1% : 2.84 [17:37:30]line ÐДС 12% : 34.03 [17:37:30]line Ðаличными: 320.00 [17:37:30]line Безнал.: 0.00 [17:37:30]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [17:37:30]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [17:37:30]line СÐО: Общий режим [17:37:30]line Чек 221 29.10.2024 17:37 [17:37:30]line Смена: 544 ФФД: 1.0 [17:37:30]line ЗÐМ: 0300000110 [17:37:30]line РÐМ: 0000000000091776 [17:37:30]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [17:37:30]line ФМ: 0000000000871754 [17:37:30]line ФД: 193015 [17:37:30]line ФПД: 152997924230044 [17:37:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T173728&type=1&operation_type=1&fn_number=0000000000871754&fd_number=193015&fm=152997924230044&tin=02508201610067®Number=0000000000091776&sum=32000 [17:37:30]written 0, free lines is 4095 [17:37:30]Connected sock=11 [17:37: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 01 E4 07 01 3C 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 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 DD 00 00 00 F4 03 04 00 58 1D 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 8B 26 9A EC D3 9C 65 08 12 F6 E8 02 72 45 [17:37:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 67 DB 47 00 A1 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 F7 F1 02 00 F4 03 04 00 19 C2 20 67 B6 04 01 00 00 A0 34 CF 49 BA 70 7D 09 [17:37:31]CommunicateWithHost err = 0 [17:37:31]CheckOFDResponse [17:37:31]1017 (14) - 77093643461234 [17:37:31]1041 (16) - 0000000000871754 [17:37:31]1040 (4) - 193015 [17:37:31]1012 (4) - 29.10.2024 11:08 [17:37:31]1206 (1) - 0 [17:37:31]OFD Sender: Remove packet 193015 [17:37:31]ProducePacketName [17:37:31]name=ofd_packets/00193015 [17:37:31]NVStorageDeleteData [17:37:31]Write to MH i2c: 01 00 00 BF 04 C3 [17:37:31]Write i2c OK [17:37:31]MH_I2C_Read... [17:37:31]Read from MH i2c: 01 [17:37:31]MH_I2C_Read... [17:37:31]Read from MH i2c: 01 07 00 [17:37:31]MH_I2C_Read... [17:37:31]Read from MH i2c: 01 07 00 BF 04 00 00 00 00 00 4D 0D 24 [17:37:31]RasterBufferAndPrint [17:37:31]line [17:37:31]line [17:37:31]line [17:37:31]line [17:37:31]line [17:37:31]written 0, free lines is 3438 [17:37:31]MH_Cut [17:37:31]Write to MH i2c: D1 01 00 C6 04 01 9C [17:37:31]Write i2c OK [17:37:31]MH_I2C_Read... [17:37:31]Read from MH i2c: D1 [17:37:31]MH_I2C_Read... [17:37:31]Read from MH i2c: D1 01 00 [17:37:31]MH_I2C_Read... [17:37:31]Read from MH i2c: D1 01 00 C6 04 00 9B [17:37:31]Write to MH i2c: 01 00 00 C7 04 CB [17:37:31]Write i2c OK [17:37:31]MH_I2C_Read... [17:37:31]OFD Sender: No OFD packet to send [17:37:32]*** Cut start [17:37:32]*** Partial cut [17:37:32]*** CUTSNS_PIN = 1 [17:37:32]*** CUTSNS_PIN = 0 [17:37:32]*** Brake cut motor [17:37:32]Read from MH i2c: 01 [17:37:32]MH_I2C_Read... [17:37:32]*** Stop cut motor [17:37:32]*** Cut end [17:37:32]Read from MH i2c: 01 07 00 [17:37:32]MH_I2C_Read... [17:37:32]Read from MH i2c: 01 07 00 C7 04 00 00 00 00 00 FF 0F E0 [17:37:32]process_action close_receipt done [17:37:32]requested_data is exist [17:37:32]produce_requested_data [17:37:32]requested_item fm.sn is exist - process it [17:37:32]wFMCommunicate request_size=4 [17:37:32]MH_SAM_APDU [17:37:32]CAPDU: 80 11 00 00 [17:37:32]Write to MH i2c: E2 08 00 C8 04 80 11 00 00 00 00 00 00 46 [17:37:32]Write i2c OK [17:37:32]MH_I2C_Read... [17:37:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:32]Read from MH i2c: E2 [17:37:32]MH_I2C_Read... [17:37:32]Read from MH i2c: E2 17 00 [17:37:32]MH_I2C_Read... [17:37:32]Read from MH i2c: E2 17 00 C8 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 99 [17:37:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:37:32]wFMCommunicate OK [17:37:32]requested_item fd.num is exist - process it [17:37:32]SAM_PROTO_GetFieldsCounters [17:37:32]wFMCommunicate request_size=4 [17:37:32]MH_SAM_APDU [17:37:32]CAPDU: 80 13 00 00 [17:37:32]Write to MH i2c: E2 08 00 C9 04 80 13 00 00 00 00 00 00 49 [17:37:32]Write i2c OK [17:37:32]MH_I2C_Read... [17:37:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:37:33]Read from MH i2c: E2 [17:37:33]MH_I2C_Read... [17:37:33]Read from MH i2c: E2 62 00 [17:37:33]MH_I2C_Read... [17:37:33]Read from MH i2c: E2 62 00 C9 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 F7 F1 02 00 0E 04 04 00 20 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 12 [17:37:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 F1 02 00 0E 04 04 00 20 02 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:37:33]wFMCommunicate OK [17:37:33]SAM_PROTO_GetFieldsCounters done [17:37:33]requested_item shift.num is exist - process it [17:37:33]requested_item shift.opened is exist - process it [17:37:33]req_shift_opened [17:37:33]FM_GetShiftState [17:37:33]SAM_PROTO_GetShiftState [17:37:33]wFMCommunicate request_size=4 [17:37:33]MH_SAM_APDU [17:37:33]CAPDU: 80 13 01 00 [17:37:33]Write to MH i2c: E2 08 00 CA 04 80 13 01 00 00 00 00 00 4B [17:37:33]Write i2c OK [17:37:33]MH_I2C_Read... [17:37:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:33]Read from MH i2c: E2 [17:37:33]MH_I2C_Read... [17:37:33]Read from MH i2c: E2 0E 00 [17:37:33]MH_I2C_Read... [17:37:33]Read from MH i2c: E2 0E 00 CA 04 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 51 [17:37:33]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [17:37:33]wFMCommunicate OK [17:37:33]SAM_PROTO_GetShiftState done [17:37:33]FM_GetShiftState done [17:37:33]req_shift_opened done [17:37:33]requested_item shift.open_date is exist - process it [17:37:33]req_shift_open_date [17:37:33]req_shift_open_date done [17:37:33]produce_requested_data done [17:37:33]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":193015,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [17:37:33]process_action_free close_receipt [17:37:33]json_value_free [17:37:33]json_value_free done [17:37:33]process_json_proto returns [17:37:33]Send response to host [17:37:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":193015,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [17:37:33]free response buf [17:37:33]execute_script done [17:37:33]execute_script returns [17:37:33]free content buf [17:37:33]Sock 9.Close socket [17:37:33]Sock 9.Thread stoped [17:37:36]OFD Sender: No OFD packet to send [17:37:41]OFD Sender: No OFD packet to send [17:37:46]OFD Sender: No OFD packet to send [17:37:51]OFD Sender: No OFD packet to send [17:37:56]OFD Sender: No OFD packet to send [17:38:01]OFD Sender: No OFD packet to send [17:38:02]accept exits with 10 [17:38:02]New connection [17:38:02]New thread 3067350372 created [17:38:02]Thread 3067207012 joined [17:38:02]Waiting for new connection... [17:38:02] Sock 10.Parse request [17:38:02]Sock 10.Check first char [17:38:02]Sock 10.First char is OK [17:38:02]request: POST /json_proto HTTP/1.0 [17:38:02]Method: POST [17:38:02]URL: /json_proto [17:38:02]Method is POST - this is cgi request [17:38:02]url: /json_proto [17:38:02]query_string will be loaded in cgi processing [17:38:02]execute_cgi json_proto POST (null) [17:38:02]execute_cgi path=json_proto method=POST [17:38:02]POST find Content-Length [17:38:02]Host: 172.17.63.131:8080 [17:38:02]Content-Length: 676 [17:38:02]Content-Type: application/json [17:38:02] [17:38:02]POST finish read [17:38:02]Found Content-Length = 676 [17:38:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32347", "tax_sys" : 0, "items" : [ { "pre_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" ] } } [17:38:02]execute_script... [17:38: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)32347", "tax_sys" : 0, "items" : [ { "pre_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" ] } } [17:38:02]POST & json_proto [17:38:02]process_json_proto [17:38:02]json parsed OK: [17:38:02]protocol is kg_v1.0 [17:38:02]action value=close_receipt [17:38:02]process_action close_receipt [17:38:02]cmd_close_receipt [17:38:02]MH_GetDate [17:38:02]Write to MH i2c: F0 00 00 CB 04 BE [17:38:02]Write i2c OK [17:38:02]MH_I2C_Read... [17:38:02]Read from MH i2c: F0 [17:38:02]MH_I2C_Read... [17:38:02]Read from MH i2c: F0 09 00 [17:38:02]MH_I2C_Read... [17:38:02]Read from MH i2c: F0 09 00 CB 04 00 7A 1D 21 67 22 05 6E 64 DF [17:38:02]GetLastDocTimeStamp 1730223448 [17:38:02]current date 1730223482 [17:38:02]FM_GetShiftState [17:38:02]SAM_PROTO_GetShiftState [17:38:02]wFMCommunicate request_size=4 [17:38:02]MH_SAM_APDU [17:38:02]CAPDU: 80 13 01 00 [17:38:02]Write to MH i2c: E2 08 00 CC 04 80 13 01 00 00 00 00 00 4D [17:38:02]Write i2c OK [17:38:02]MH_I2C_Read... [17:38:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:02]Read from MH i2c: E2 [17:38:02]MH_I2C_Read... [17:38:02]Read from MH i2c: E2 0E 00 [17:38:02]MH_I2C_Read... [17:38:02]Read from MH i2c: E2 0E 00 CC 04 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 53 [17:38:02]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [17:38:02]wFMCommunicate OK [17:38:02]SAM_PROTO_GetShiftState done [17:38:02]FM_GetShiftState done [17:38:02]opened in 1730161990 [17:38:02]opened+sec_in_day 1730248390 [17:38:02]quantity*price = 20003 [17:38:02]sum+1 = 20004 [17:38:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.03 ИТОГО: 200.00 ВнеÑено: 200.00 СДÐЧÐ: 0.00 ÐСП 1% : 1.77 ÐДС 12% : 21.24 Ðаличными: 200.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 170 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 СÐО: Общий режим Чек 222 29.10.2024 17:38 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 193016 ФПД: 230060274896876 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T173802&type=1&operation_type=1&fn_number=0000000000871754&fd_number=193016&fm=230060274896876&tin=02508201610067®Number=0000000000091776&sum=20000 [17:38:03]StoreToDocumentArchive [17:38:03]shift 544 fd 193016 [17:38:03]save to /storage/0544/doc_00193016 [17:38:03]save last doc name /storage/0544/doc_00193016 to /storage/kkm_last_doc_name [17:38:03]save OK [17:38:03]Clear old archive folders... [17:38:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:38:03]tlvbuf is 00B6B630 [17:38:03]SAM_PROTO_ClearQueue [17:38:03]wFMCommunicate request_size=4 [17:38:03]MH_SAM_APDU [17:38:03]CAPDU: 80 09 00 00 [17:38:03]Write to MH i2c: E2 08 00 D9 04 80 09 00 00 00 00 00 00 4F [17:38:03]Write i2c OK [17:38:03]MH_I2C_Read... [17:38:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:38:03]Read from MH i2c: E2 [17:38:03]MH_I2C_Read... [17:38:03]Read from MH i2c: E2 03 00 [17:38:03]MH_I2C_Read... [17:38:03]Read from MH i2c: E2 03 00 D9 04 00 90 00 51 [17:38:03]RAPDU: 90 00 [17:38:03]wFMCommunicate OK [17:38:03]SAM_PROTO_ClearQueue done [17:38:03]KKMCreateOFDPacket [17:38:03]OFDProtocolAddRootSTLVToBuf [17:38:03]FM_MakeSignedData [17:38:03]FM_MakeSignedData [17:38:03]SAM_PROTO_SignData [17:38:03]wFMCommunicate request_size=4 [17:38:03]MH_SAM_APDU [17:38:03]CAPDU: 80 0D 01 02 [17:38:03]Write to MH i2c: E2 08 00 DA 04 80 0D 01 02 00 00 00 00 57 [17:38:03]Write i2c OK [17:38:03]MH_I2C_Read... [17:38:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:38:03]Read from MH i2c: E2 [17:38:03]MH_I2C_Read... [17:38:03]Read from MH i2c: E2 03 00 [17:38:03]MH_I2C_Read... [17:38:03]Read from MH i2c: E2 03 00 DA 04 00 90 00 52 [17:38:03]RAPDU: 90 00 [17:38:03]wFMCommunicate OK [17:38:03]wFMCommunicate request_size=255 [17:38:03]MH_SAM_APDU [17:38:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 7A 1D 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 D1 [17:38:04]Write to MH i2c: E2 02 01 DB 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 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 DE 00 00 00 F4 03 04 00 7A 1D 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 D1 00 00 88 [17:38:04]Write i2c OK [17:38:04]MH_I2C_Read... [17:38:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:04]Read from MH i2c: E2 [17:38:04]MH_I2C_Read... [17:38:04]Read from MH i2c: E2 03 00 [17:38:04]MH_I2C_Read... [17:38:04]Read from MH i2c: E2 03 00 DB 04 00 90 00 53 [17:38:04]RAPDU: 90 00 [17:38:04]wFMCommunicate OK [17:38:04]wFMCommunicate request_size=10 [17:38:04]MH_SAM_APDU [17:38:04]CAPDU: 80 0D 02 02 05 3D 14 F6 4F EC [17:38:04]Write to MH i2c: E2 0D 00 DC 04 80 0D 02 02 05 00 3D 14 F6 4F EC 00 00 E6 [17:38:04]Write i2c OK [17:38:04]MH_I2C_Read... [17:38:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:04]Read from MH i2c: E2 [17:38:04]MH_I2C_Read... [17:38:04]Read from MH i2c: E2 03 00 [17:38:04]MH_I2C_Read... [17:38:04]Read from MH i2c: E2 03 00 DC 04 00 90 00 54 [17:38:04]RAPDU: 90 00 [17:38:04]wFMCommunicate OK [17:38:04]wFMCommunicate request_size=4 [17:38:04]MH_SAM_APDU [17:38:04]CAPDU: 80 0D 03 02 [17:38:04]Write to MH i2c: E2 08 00 DD 04 80 0D 03 02 00 00 00 00 5C [17:38:04]Write i2c OK [17:38:04]MH_I2C_Read... [17:38:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:38:04]Read from MH i2c: E2 [17:38:04]MH_I2C_Read... [17:38:04]Read from MH i2c: E2 0B 00 [17:38:04]MH_I2C_Read... [17:38:04]Read from MH i2c: E2 0B 00 DD 04 00 8C 39 74 21 16 BC BF AE 90 00 F6 [17:38:04]RAPDU: 8C 39 74 21 16 BC BF AE 90 00 [17:38:04]wFMCommunicate OK [17:38:04]SAM_PROTO_SignData done [17:38:04]FM_MakeSignedData done [17:38:04]CreateOFDProtocolMessage [17:38:04]wFMCommunicate request_size=4 [17:38:04]MH_SAM_APDU [17:38:04]CAPDU: 80 11 00 00 [17:38:04]Write to MH i2c: E2 08 00 DE 04 80 11 00 00 00 00 00 00 5C [17:38:04]Write i2c OK [17:38:04]MH_I2C_Read... [17:38:04]Read from MH i2c: E2 [17:38:04]MH_I2C_Read... [17:38:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:04]Read from MH i2c: E2 17 00 [17:38:04]MH_I2C_Read... [17:38:04]Read from MH i2c: E2 17 00 DE 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AF [17:38:04]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:04]wFMCommunicate OK [17:38:04]CreateOFDProtocolMessage done [17:38:04]OFDSenderStorePacket 193016 [17:38:04]StoreOFDPacket docnum=193016 [17:38: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 61 DD 07 01 11 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 7A 1D 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 D1 3D 14 F6 4F EC 8C 39 74 21 16 BC BF AE [17:38:04]CheckFolder [17:38:04]dirname=/storage/ofd_packets [17:38:04]CheckFolder done [17:38:04]ProducePacketName [17:38:04]name=ofd_packets/00193016 [17:38:04]NVStorageSaveData ofd_packets/00193016 [17:38:04]File name is /storage/ofd_packets/00193016 [17:38:04]Write 301 bytes [17:38:04]NVStorageSaveData done [17:38:04]OFDSenderStorePacket done [17:38:04]KKMCreateOFDPacket done [17:38:04]NVStorageSaveData kkm_last_timestamp [17:38:04]File name is /storage/kkm_last_timestamp [17:38:04]Write 4 bytes [17:38:04]NVStorageSaveData done [17:38:04]ExternCall_PrintAddStr [17:38:04]wPrintStart [17:38:04]Write to MH i2c: 01 00 00 DF 04 E3 [17:38:04]Write i2c OK [17:38:04]MH_I2C_Read... [17:38:04]Read from MH i2c: 01 [17:38:04]MH_I2C_Read... [17:38:04]OFD Sender: Processing packet 193016 [packets to send 75, broken 74] [17:38:04]ProducePacketName [17:38:04]name=ofd_packets/00193016 [17:38:04]OFD Sender: To server: ‡•öpG, [17:38:04]CommunicateWithHost lk.salyk.kg:30040 [17:38:04]ConnectInit lk.salyk.kg [17:38:04]Read from MH i2c: 01 07 00 [17:38:04]MH_I2C_Read... [17:38:04]Read from MH i2c: 01 07 00 DF 04 00 00 00 00 00 FF 0F F8 [17:38:04]RasterBufferAndPrint [17:38:04]line Счет N : (1)32347 [17:38:04]line ИÐÐ: 02508201610067 [17:38:04]line Контрольно-КаÑÑовый Чек [17:38:04]line ПРОДÐЖР[17:38:04]line ТРК (МРК, ГÐК) : 21 [17:38:04]line Товар: 2710124130 [17:38:04]line Ðи-92-К-5 [17:38:04]line 2.990 * 66.90 [17:38:04]line = 200.03 [17:38:04]line ÐДС 12% ÐСП 1% [17:38:04]line > о реализуемом товаре [17:38:04]line ОКРУГЛЕÐИЕ: -0.03 [17:38:04]line ИТОГО: 200.00 [17:38:04]line ВнеÑено: 200.00 [17:38:04]line СДÐЧÐ: 0.00 [17:38:04]line ÐСП 1% : 1.77 [17:38:04]line ÐДС 12% : 21.24 [17:38:04]line Ðаличными: 200.00 [17:38:04]line Безнал.: 0.00 [17:38:04]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [17:38:04]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [17:38:04]line СÐО: Общий режим [17:38:04]line Чек 222 29.10.2024 17:38 [17:38:04]line Смена: 544 ФФД: 1.0 [17:38:04]line ЗÐМ: 0300000110 [17:38:04]line РÐМ: 0000000000091776 [17:38:04]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [17:38:04]line ФМ: 0000000000871754 [17:38:04]line ФД: 193016 [17:38:04]line ФПД: 230060274896876 [17:38:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T173802&type=1&operation_type=1&fn_number=0000000000871754&fd_number=193016&fm=230060274896876&tin=02508201610067®Number=0000000000091776&sum=20000 [17:38:04]written 0, free lines is 4095 [17:38:05]Connected sock=11 [17:38: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 DD 07 01 11 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 7A 1D 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 D1 3D 14 F6 4F EC 8C 39 74 21 16 BC BF AE [17:38: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 46 47 00 1B 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F8 F1 02 00 F4 03 04 00 3B C2 20 67 B6 04 01 00 00 4C 09 F1 31 91 04 A8 D1 [17:38:05]CommunicateWithHost err = 0 [17:38:05]CheckOFDResponse [17:38:05]1017 (14) - 77093643461234 [17:38:05]1041 (16) - 0000000000871754 [17:38:05]1040 (4) - 193016 [17:38:05]1012 (4) - 29.10.2024 11:08 [17:38:05]1206 (1) - 0 [17:38:05]OFD Sender: Remove packet 193016 [17:38:05]ProducePacketName [17:38:05]name=ofd_packets/00193016 [17:38:05]NVStorageDeleteData [17:38:05]Write to MH i2c: 01 00 00 0A 05 0F [17:38:05]Write i2c OK [17:38:05]MH_I2C_Read... [17:38:05]Read from MH i2c: 01 [17:38:05]MH_I2C_Read... [17:38:05]Read from MH i2c: 01 07 00 [17:38:05]MH_I2C_Read... [17:38:05]Read from MH i2c: 01 07 00 0A 05 00 00 00 00 00 BC 0D DF [17:38:05]RasterBufferAndPrint [17:38:05]line [17:38:05]line [17:38:05]line [17:38:05]line [17:38:05]line [17:38:05]written 0, free lines is 3545 [17:38:05]MH_Cut [17:38:05]Write to MH i2c: D1 01 00 11 05 01 E8 [17:38:05]Write i2c OK [17:38:05]MH_I2C_Read... [17:38:05]Read from MH i2c: D1 [17:38:05]MH_I2C_Read... [17:38:05]Read from MH i2c: D1 01 00 [17:38:05]MH_I2C_Read... [17:38:05]Read from MH i2c: D1 01 00 11 05 00 E7 [17:38:05]Write to MH i2c: 01 00 00 12 05 17 [17:38:05]Write i2c OK [17:38:05]MH_I2C_Read... [17:38:06]OFD Sender: No OFD packet to send [17:38:06]*** Cut start [17:38:06]*** Partial cut [17:38:06]*** CUTSNS_PIN = 1 [17:38:06]*** CUTSNS_PIN = 0 [17:38:06]*** Brake cut motor [17:38:06]Read from MH i2c: 01 [17:38:06]MH_I2C_Read... [17:38:06]*** Stop cut motor [17:38:06]*** Cut end [17:38:06]Read from MH i2c: 01 07 00 [17:38:06]MH_I2C_Read... [17:38:06]Read from MH i2c: 01 07 00 12 05 00 00 00 00 00 FF 0F 2C [17:38:06]process_action close_receipt done [17:38:06]requested_data is exist [17:38:06]produce_requested_data [17:38:06]requested_item fm.sn is exist - process it [17:38:06]wFMCommunicate request_size=4 [17:38:06]MH_SAM_APDU [17:38:06]CAPDU: 80 11 00 00 [17:38:06]Write to MH i2c: E2 08 00 13 05 80 11 00 00 00 [17:38:12]Write i2c OK [17:38:12]MH_I2C_Read... [17:38:12]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:38:12]Read from MH i2c: E2 [17:38:12]MH_I2C_Read... [17:38:12]Read from MH i2c: E2 03 00 [17:38:12]MH_I2C_Read... [17:38:12]Read from MH i2c: E2 03 00 1A 05 00 90 00 93 [17:38:12]RAPDU: 90 00 [17:38:12]wFMCommunicate OK [17:38:12]wFMCommunicate request_size=15 [17:38:12]MH_SAM_APDU [17:38:12]CAPDU: 80 15 02 00 0A FC 03 06 00 A8 61 00 00 00 00 [17:38:12]Write to MH i2c: E2 12 00 1B 05 80 15 02 00 0A 00 FC 03 06 00 A8 61 00 00 00 00 00 00 C2 [17:38:12]Write i2c OK [17:38:12]MH_I2C_Read... [17:38:12]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:38:12]Read from MH i2c: E2 [17:38:12]MH_I2C_Read... [17:38:12]Read from MH i2c: E2 03 00 [17:38:12]MH_I2C_Read... [17:38:12]Read from MH i2c: E2 03 00 1B 05 00 90 00 94 [17:38:12]RAPDU: 90 00 [17:38:12]wFMCommunicate OK [17:38:12]wFMCommunicate request_size=47 [17:38:12]MH_SAM_APDU [17:38:12]CAPDU: 80 15 02 00 2A 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 [17:38:12]Write to MH i2c: E2 32 00 1C 05 80 15 02 00 2A 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 00 00 40 [17:38:12]Write i2c OK [17:38:12]MH_I2C_Read... [17:38:12]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:38:12]Read from MH i2c: E2 [17:38:12]MH_I2C_Read... [17:38:12]Read from MH i2c: E2 03 00 [17:38:12]MH_I2C_Read... [17:38:12]Read from MH i2c: E2 03 00 1C 05 00 90 00 95 [17:38:12]RAPDU: 90 00 [17:38:12]wFMCommunicate OK [17:38:12]wFMCommunicate request_size=15 [17:38:12]MH_SAM_APDU [17:38:12]CAPDU: 80 15 02 00 0A 07 04 06 00 A8 61 00 00 00 00 [17:38:13]Write to MH i2c: E2 12 00 1D 05 80 15 02 00 0A 00 07 04 06 00 A8 61 00 00 00 00 00 00 D0 [17:38:13]Write i2c OK [17:38:13]MH_I2C_Read... [17:38:13]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:38:13]Read from MH i2c: E2 [17:38:13]MH_I2C_Read... [17:38:13]Read from MH i2c: E2 03 00 [17:38:13]MH_I2C_Read... [17:38:13]Read from MH i2c: E2 03 00 1D 05 00 90 00 96 [17:38:13]RAPDU: 90 00 [17:38:13]wFMCommunicate OK [17:38:13]wFMCommunicate request_size=15 [17:38:13]MH_SAM_APDU [17:38:13]CAPDU: 80 15 02 00 0A 39 04 06 00 00 00 00 00 00 00 [17:38:13]Write to MH i2c: E2 12 00 1E 05 80 15 02 00 0A 00 39 04 06 00 00 00 00 00 00 00 00 00 FA [17:38:13]Write i2c OK [17:38:13]MH_I2C_Read... [17:38:13]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:38:13]Read from MH i2c: E2 [17:38:13]MH_I2C_Read... [17:38:13]Read from MH i2c: E2 03 00 [17:38:13]MH_I2C_Read... [17:38:13]Read from MH i2c: E2 03 00 1E 05 00 90 00 97 [17:38:13]RAPDU: 90 00 [17:38:13]wFMCommunicate OK [17:38:13]wFMCommunicate request_size=11 [17:38:13]MH_SAM_APDU [17:38:13]CAPDU: 80 15 02 00 06 1F 04 02 00 01 00 [17:38:13]Write to MH i2c: E2 0E 00 1F 05 80 15 02 00 06 00 1F 04 02 00 01 00 00 00 D6 [17:38:13]Write i2c OK [17:38:13]MH_I2C_Read... [17:38:13]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:38:13]Read from MH i2c: E2 [17:38:13]MH_I2C_Read... [17:38:13]Read from MH i2c: E2 03 00 [17:38:13]MH_I2C_Read... [17:38:13]Read from MH i2c: E2 03 00 1F 05 00 90 00 98 [17:38:13]RAPDU: 90 00 [17:38:13]wFMCommunicate OK [17:38:13]wFMCommunicate request_size=13 [17:38:13]MH_SAM_APDU [17:38:13]CAPDU: 80 15 02 00 08 F4 03 04 00 85 1D 21 67 [17:38:13]Write to MH i2c: E2 10 00 20 05 80 15 02 00 08 00 F4 03 04 00 85 1D 21 67 00 00 DA [17:38:13]Write i2c OK [17:38:13]MH_I2C_Read... [17:38:13]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:38:13]Read from MH i2c: E2 [17:38:13]MH_I2C_Read... [17:38:13]Read from MH i2c: E2 03 00 [17:38:13]MH_I2C_Read... [17:38:13]Read from MH i2c: E2 03 00 20 05 00 90 00 99 [17:38:13]RAPDU: 90 00 [17:38:13]wFMCommunicate OK [17:38:13]wFMCommunicate request_size=25 [17:38:13]MH_SAM_APDU [17:38:13]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 [17:38:13]Write to MH i2c: E2 1C 00 21 05 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 0D [17:38:13]Write i2c OK [17:38:13]MH_I2C_Read... [17:38:13]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:38:13]Read from MH i2c: E2 [17:38:13]MH_I2C_Read... [17:38:13]Read from MH i2c: E2 03 00 [17:38:13]MH_I2C_Read... [17:38:13]Read from MH i2c: E2 03 00 21 05 00 90 00 9A [17:38:13]RAPDU: 90 00 [17:38:13]wFMCommunicate OK [17:38:13]wFMCommunicate request_size=4 [17:38:13]MH_SAM_APDU [17:38:13]CAPDU: 80 15 03 00 [17:38:13]Write to MH i2c: E2 08 00 22 05 80 15 03 00 00 00 00 00 A8 [17:38:13]Write i2c OK [17:38:13]MH_I2C_Read... [17:38:13]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [17:38:13]Read from MH i2c: E2 [17:38:13]MH_I2C_Read... [17:38:13]Read from MH i2c: E2 40 00 [17:38:13]MH_I2C_Read... [17:38:13]Read from MH i2c: E2 40 00 22 05 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 F9 F1 02 00 0E 04 04 00 20 02 00 00 12 04 04 00 DF 00 00 00 35 04 06 00 B9 04 03 C4 09 5C 90 00 74 [17:38:13]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 F9 F1 02 00 0E 04 04 00 20 02 00 00 12 04 04 00 DF 00 00 00 35 04 06 00 B9 04 03 C4 09 5C 90 00 [17:38:13]wFMCommunicate OK [17:38:13]SAM_PROTO_ProcessDocument answer len = 59 [17:38:13]SAM_PROTO_ProcessDocument done [17:38:13]SetTLVBufToDocument [17:38:13]Processing tag 1209 (04B9) [17:38:13]Malloc new data [17:38:13]Processing tag 1041 (0411) [17:38:13]Processing tag 1040 (0410) [17:38:13]Malloc new data [17:38:13]Processing tag 1038 (040E) [17:38:13]Malloc new data [17:38:13]Processing tag 1042 (0412) [17:38:13]Malloc new data [17:38:13]Processing tag 1077 (0435) [17:38:13]Malloc new data [17:38:13]SetTLVBufToDocument err=0 [17:38:13]KKMLoadAndSignReceiptData store KKM data [17:38:13]KKMLoadAndSignReceiptData err=0 [17:38:13]wFMCommunicate request_size=4 [17:38:13]MH_SAM_APDU [17:38:13]CAPDU: 80 11 00 00 [17:38:13]Write to MH i2c: E2 08 00 23 05 80 11 00 00 00 00 00 00 A2 [17:38:13]Write i2c OK [17:38:13]MH_I2C_Read... [17:38:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:13]Read from MH i2c: E2 [17:38:13]MH_I2C_Read... [17:38:13]Read from MH i2c: E2 17 00 [17:38:13]MH_I2C_Read... [17:38:13]Read from MH i2c: E2 17 00 23 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F5 [17:38:13]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:14]wFMCommunicate OK [17:38:14]Счет N : (1)32348 ИÐÐ: 02508201610067 Контрольно-КаÑÑовый Чек ПРОДÐЖРТРК (МРК, ГÐК) : 12 Товар: 2710124130 Ðи-92-К-5 3.740 * 66.90 = 250.21 ÐДС 12% ÐСП 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 СÐО: Общий режим Чек 223 29.10.2024 17:38 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 193017 ФПД: 203426894186844 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T173813&type=1&operation_type=1&fn_number=0000000000871754&fd_number=193017&fm=203426894186844&tin=02508201610067®Number=0000000000091776&sum=25000 [17:38:14]StoreToDocumentArchive [17:38:14]shift 544 fd 193017 [17:38:14]save to /storage/0544/doc_00193017 [17:38:14]save last doc name /storage/0544/doc_00193017 to /storage/kkm_last_doc_name [17:38:14]save OK [17:38:14]Clear old archive folders... [17:38:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:38:14]tlvbuf is 00BAA450 [17:38:14]SAM_PROTO_ClearQueue [17:38:14]wFMCommunicate request_size=4 [17:38:14]MH_SAM_APDU [17:38:14]CAPDU: 80 09 00 00 [17:38:14]Write to MH i2c: E2 08 00 24 05 80 09 00 00 00 00 00 00 9B [17:38:14]Write i2c OK [17:38:14]MH_I2C_Read... [17:38:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:38:14]Read from MH i2c: E2 [17:38:14]MH_I2C_Read... [17:38:14]Read from MH i2c: E2 03 00 [17:38:14]MH_I2C_Read... [17:38:14]Read from MH i2c: E2 03 00 24 05 00 90 00 9D [17:38:14]RAPDU: 90 00 [17:38:14]wFMCommunicate OK [17:38:14]SAM_PROTO_ClearQueue done [17:38:14]KKMCreateOFDPacket [17:38:14]OFDProtocolAddRootSTLVToBuf [17:38:14]FM_MakeSignedData [17:38:14]FM_MakeSignedData [17:38:14]SAM_PROTO_SignData [17:38:14]wFMCommunicate request_size=4 [17:38:14]MH_SAM_APDU [17:38:14]CAPDU: 80 0D 01 02 [17:38:14]Write to MH i2c: E2 08 00 25 05 80 0D 01 02 00 00 00 00 A3 [17:38:14]Write i2c OK [17:38:14]MH_I2C_Read... [17:38:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:38:14]Read from MH i2c: E2 [17:38:14]MH_I2C_Read... [17:38:14]Read from MH i2c: E2 03 00 [17:38:14]MH_I2C_Read... [17:38:14]Read from MH i2c: E2 03 00 25 05 00 90 00 9E [17:38:14]RAPDU: 90 00 [17:38:14]wFMCommunicate OK [17:38:14]wFMCommunicate request_size=255 [17:38:14]MH_SAM_APDU [17:38: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 DF 00 00 00 F4 03 04 00 85 1D 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 B9 [17:38:14]Write to MH i2c: E2 02 01 26 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 DF 00 00 00 F4 03 04 00 85 1D 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 B9 00 00 E0 [17:38:14]Write i2c OK [17:38:14]MH_I2C_Read... [17:38:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:14]Read from MH i2c: E2 [17:38:14]MH_I2C_Read... [17:38:14]Read from MH i2c: E2 03 00 [17:38:14]MH_I2C_Read... [17:38:14]Read from MH i2c: E2 03 00 26 05 00 90 00 9F [17:38:14]RAPDU: 90 00 [17:38:14]wFMCommunicate OK [17:38:14]wFMCommunicate request_size=10 [17:38:14]MH_SAM_APDU [17:38:14]CAPDU: 80 0D 02 02 05 04 03 C4 09 5C [17:38:14]Write to MH i2c: E2 0D 00 27 05 80 0D 02 02 05 00 04 03 C4 09 5C 00 00 E0 [17:38:14]Write i2c OK [17:38:14]MH_I2C_Read... [17:38:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:14]Read from MH i2c: E2 [17:38:15]MH_I2C_Read... [17:38:15]Read from MH i2c: E2 03 00 [17:38:15]MH_I2C_Read... [17:38:15]Read from MH i2c: E2 03 00 27 05 00 90 00 A0 [17:38:15]RAPDU: 90 00 [17:38:15]wFMCommunicate OK [17:38:15]wFMCommunicate request_size=4 [17:38:15]MH_SAM_APDU [17:38:15]CAPDU: 80 0D 03 02 [17:38:15]Write to MH i2c: E2 08 00 28 05 80 0D 03 02 00 00 00 00 A8 [17:38:15]Write i2c OK [17:38:15]MH_I2C_Read... [17:38:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:38:15]Read from MH i2c: E2 [17:38:15]MH_I2C_Read... [17:38:15]Read from MH i2c: E2 0B 00 [17:38:15]MH_I2C_Read... [17:38:15]Read from MH i2c: E2 0B 00 28 05 00 A9 2A D9 23 AE ED C8 6D 90 00 48 [17:38:15]RAPDU: A9 2A D9 23 AE ED C8 6D 90 00 [17:38:15]wFMCommunicate OK [17:38:15]SAM_PROTO_SignData done [17:38:15]FM_MakeSignedData done [17:38:15]CreateOFDProtocolMessage [17:38:15]wFMCommunicate request_size=4 [17:38:15]MH_SAM_APDU [17:38:15]CAPDU: 80 11 00 00 [17:38:15]Write to MH i2c: E2 08 00 29 05 80 11 00 00 00 00 00 00 A8 [17:38:15]Write i2c OK [17:38:15]MH_I2C_Read... [17:38:15]Read from MH i2c: E2 [17:38:15]MH_I2C_Read... [17:38:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:15]Read from MH i2c: E2 17 00 [17:38:15]MH_I2C_Read... [17:38:15]Read from MH i2c: E2 17 00 29 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FB [17:38:15]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:15]wFMCommunicate OK [17:38:15]CreateOFDProtocolMessage done [17:38:15]OFDSenderStorePacket 193017 [17:38:15]StoreOFDPacket docnum=193017 [17:38: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 91 44 07 01 7C 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 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 DF 00 00 00 F4 03 04 00 85 1D 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 B9 04 03 C4 09 5C A9 2A D9 23 AE ED C8 6D [17:38:15]CheckFolder [17:38:15]dirname=/storage/ofd_packets [17:38:15]CheckFolder done [17:38:15]ProducePacketName [17:38:15]name=ofd_packets/00193017 [17:38:15]NVStorageSaveData ofd_packets/00193017 [17:38:15]File name is /storage/ofd_packets/00193017 [17:38:15]Write 301 bytes [17:38:15]NVStorageSaveData done [17:38:15]OFDSenderStorePacket done [17:38:15]KKMCreateOFDPacket done [17:38:15]NVStorageSaveData kkm_last_timestamp [17:38:15]File name is /storage/kkm_last_timestamp [17:38:15]Write 4 bytes [17:38:15]NVStorageSaveData done [17:38:15]ExternCall_PrintAddStr [17:38:15]wPrintStart [17:38:15]Write to MH i2c: 01 00 00 2A 05 2F [17:38:15]Write i2c OK [17:38:15]MH_I2C_Read... [17:38:15]Read from MH i2c: 01 [17:38:15]MH_I2C_Read... [17:38:15]Read from MH i2c: 01 07 00 [17:38:15]MH_I2C_Read... [17:38:15]Read from MH i2c: 01 07 00 2A 05 00 00 00 00 00 FF 0F 44 [17:38:15]RasterBufferAndPrint [17:38:15]line Счет N : (1)32348 [17:38:15]line ИÐÐ: 02508201610067 [17:38:15]line Контрольно-КаÑÑовый Чек [17:38:15]line ПРОДÐЖР[17:38:15]line ТРК (МРК, ГÐК) : 12 [17:38:15]line Товар: 2710124130 [17:38:15]line Ðи-92-К-5 [17:38:15]line 3.740 * 66.90 [17:38:15]line = 250.21 [17:38:15]line ÐДС 12% ÐСП 1% [17:38:15]line > о реализуемом товаре [17:38:15]line ОКРУГЛЕÐИЕ: -0.21 [17:38:15]line ИТОГО: 250.00 [17:38:15]line ВнеÑено: 250.00 [17:38:15]line СДÐЧÐ: 0.00 [17:38:15]line ÐСП 1% : 2.21 [17:38:15]line ÐДС 12% : 26.57 [17:38:15]line Ðаличными: 250.00 [17:38:15]line Безнал.: 0.00 [17:38:15]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [17:38:15]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [17:38:15]line СÐО: Общий режим [17:38:15]line Чек 223 29.10.2024 17:38 [17:38:15]line Смена: 544 ФФД: 1.0 [17:38:15]line ЗÐМ: 0300000110 [17:38:15]line РÐМ: 0000000000091776 [17:38:15]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [17:38:15]line ФМ: 0000000000871754 [17:38:15]line ФД: 193017 [17:38:15]line ФПД: 203426894186844 [17:38:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T173813&type=1&operation_type=1&fn_number=0000000000871754&fd_number=193017&fm=203426894186844&tin=02508201610067®Number=0000000000091776&sum=25000 [17:38:15]written 0, free lines is 4095 [17:38:15]OFD Sender: Processing packet 193017 [packets to send 75, broken 74] [17:38:15]ProducePacketName [17:38:15]name=ofd_packets/00193017 [17:38:15]OFD Sender: To server: ‡•öpG, [17:38:15]CommunicateWithHost lk.salyk.kg:30040 [17:38:15]ConnectInit lk.salyk.kg [17:38:15]Connected sock=11 [17:38: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 91 44 07 01 7C 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 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 DF 00 00 00 F4 03 04 00 85 1D 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 B9 04 03 C4 09 5C A9 2A D9 23 AE ED C8 6D [17:38:15]Write to MH i2c: 01 00 00 55 05 5A [17:38:15]Write i2c OK [17:38:15]MH_I2C_Read... [17:38:15]Read from MH i2c: 01 [17:38:15]MH_I2C_Read... [17:38:15]Read from MH i2c: 01 07 00 [17:38:15]MH_I2C_Read... [17:38:15]Read from MH i2c: 01 07 00 55 05 00 00 00 00 00 CD 0C 3A [17:38:15]RasterBufferAndPrint [17:38:15]line [17:38:15]line [17:38:15]line [17:38:15]line [17:38:15]line [17:38:15]written 0, free lines is 3328 [17:38:15]MH_Cut [17:38:15]Write to MH i2c: D1 01 00 5C 05 01 33 [17:38:15]Write i2c OK [17:38:15]MH_I2C_Read... [17:38:15]Read from MH i2c: D1 [17:38:15]MH_I2C_Read... [17:38:15]Read from MH i2c: D1 01 00 [17:38:15]MH_I2C_Read... [17:38:15]Read from MH i2c: D1 01 00 5C 05 00 32 [17:38:15]Write to MH i2c: 01 00 00 5D 05 62 [17:38:15]Write i2c OK [17:38:15]MH_I2C_Read... [17:38: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 A9 FB 47 00 E7 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 F9 F1 02 00 F4 03 04 00 46 C2 20 67 B6 04 01 00 00 A8 A3 EA CE 0C 57 51 4F [17:38:16]CommunicateWithHost err = 0 [17:38:16]CheckOFDResponse [17:38:16]1017 (14) - 77093643461234 [17:38:16]1041 (16) - 0000000000871754 [17:38:16]1040 (4) - 193017 [17:38:16]1012 (4) - 29.10.2024 11:08 [17:38:16]1206 (1) - 0 [17:38:16]OFD Sender: Remove packet 193017 [17:38:16]ProducePacketName [17:38:16]name=ofd_packets/00193017 [17:38:16]NVStorageDeleteData [17:38:16]OFD Sender: No OFD packet to send [17:38:16]*** Cut start [17:38:16]*** Partial cut [17:38:16]*** CUTSNS_PIN = 1 [17:38:16]*** CUTSNS_PIN = 0 [17:38:16]*** Brake cut motor [17:38:17]Read from MH i2c: 01 [17:38:17]MH_I2C_Read... [17:38:17]*** Stop cut motor [17:38:17]*** Cut end [17:38:17]Read from MH i2c: 01 07 00 [17:38:17]MH_I2C_Read... [17:38:17]Read from MH i2c: 01 07 00 5D 05 00 00 00 00 00 FF 0F 77 [17:38:17]process_action close_receipt done [17:38:17]requested_data is exist [17:38:17]produce_requested_data [17:40:07]free (receipt_item_data.post_item_text) [17:40:07]done [17:40:07]Malloc new data [17:40:07]Malloc new data [17:40:07]Malloc new data [17:40:07]KKMSetReceiptData OK [17:40:07]Malloc new data [17:40:07]Malloc new data [17:40:07]Malloc new data [17:40:07]Malloc new data [17:40:07]ProcessDocumentItem done err = 0, tmpTLVsize=111 [17:40:07]tlvbuf is B6F3BD40 [17:40:07]KKMLoadAndSignReceiptData [17:40:07]SAM_PROTO_ProcessDocument [17:40:07]wFMCommunicate request_size=9 [17:40:07]MH_SAM_APDU [17:40:07]CAPDU: 80 15 01 00 04 03 00 6F 00 [17:40:08]Write to MH i2c: E2 0C 00 64 05 80 15 01 00 04 00 03 00 6F 00 00 00 62 [17:40:08]Write i2c OK [17:40:08]MH_I2C_Read... [17:40:08]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [17:40:08]Read from MH i2c: E2 [17:40:08]MH_I2C_Read... [17:40:08]Read from MH i2c: E2 03 00 [17:40:08]MH_I2C_Read... [17:40:08]Read from MH i2c: E2 03 00 64 05 00 90 00 DD [17:40:08]RAPDU: 90 00 [17:40:08]wFMCommunicate OK [17:40:08]wFMCommunicate request_size=10 [17:40:08]MH_SAM_APDU [17:40:08]CAPDU: 80 15 02 00 05 1E 04 01 00 01 [17:40:08]Write to MH i2c: E2 0D 00 65 05 80 15 02 00 05 00 1E 04 01 00 01 00 00 18 [17:40:08]Write i2c OK [17:40:08]MH_I2C_Read... [17:40:08]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:40:08]Read from MH i2c: E2 [17:40:08]MH_I2C_Read... [17:40:08]Read from MH i2c: E2 03 00 [17:40:08]MH_I2C_Read... [17:40:08]Read from MH i2c: E2 03 00 65 05 00 90 00 DE [17:40:08]RAPDU: 90 00 [17:40:08]wFMCommunicate OK [17:40:08]wFMCommunicate request_size=15 [17:40:08]MH_SAM_APDU [17:40:08]CAPDU: 80 15 02 00 0A FC 03 06 00 50 C3 00 00 00 00 [17:40:08]Write to MH i2c: E2 12 00 66 05 80 15 02 00 0A 00 FC 03 06 00 50 C3 00 00 00 00 00 00 17 [17:40:08]Write i2c OK [17:40:08]MH_I2C_Read... [17:40:08]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:40:08]Read from MH i2c: E2 [17:40:08]MH_I2C_Read... [17:40:08]Read from MH i2c: E2 03 00 [17:40:08]MH_I2C_Read... [17:40:08]Read from MH i2c: E2 03 00 66 05 00 90 00 DF [17:40:08]RAPDU: 90 00 [17:40:08]wFMCommunicate OK [17:40:08]wFMCommunicate request_size=47 [17:40:08]MH_SAM_APDU [17:40:08]CAPDU: 80 15 02 00 2A EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 [17:40:08]Write to MH i2c: E2 32 00 67 05 80 15 02 00 2A 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 00 00 D5 [17:40:08]Write i2c OK [17:40:08]MH_I2C_Read... [17:40:08]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:40:08]Read from MH i2c: E2 [17:40:08]MH_I2C_Read... [17:40:08]Read from MH i2c: E2 03 00 [17:40:08]MH_I2C_Read... [17:40:08]Read from MH i2c: E2 03 00 67 05 00 90 00 E0 [17:40:08]RAPDU: 90 00 [17:40:08]wFMCommunicate OK [17:40:08]wFMCommunicate request_size=15 [17:40:08]MH_SAM_APDU [17:40:08]CAPDU: 80 15 02 00 0A 07 04 06 00 50 C3 00 00 00 00 [17:40:08]Write to MH i2c: E2 12 00 68 05 80 15 02 00 0A 00 07 04 06 00 50 C3 00 00 00 00 00 00 25 [17:40:08]Write i2c OK [17:40:08]MH_I2C_Read... [17:40:08]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:40:08]Read from MH i2c: E2 [17:40:08]MH_I2C_Read... [17:40:08]Read from MH i2c: E2 03 00 [17:40:08]MH_I2C_Read... [17:40:08]Read from MH i2c: E2 03 00 68 05 00 90 00 E1 [17:40:08]RAPDU: 90 00 [17:40:08]wFMCommunicate OK [17:40:08]wFMCommunicate request_size=15 [17:40:08]MH_SAM_APDU [17:40:08]CAPDU: 80 15 02 00 0A 39 04 06 00 00 00 00 00 00 00 [17:40:08]Write to MH i2c: E2 12 00 69 05 80 15 02 00 0A 00 39 04 06 00 00 00 00 00 00 00 00 00 45 [17:40:08]Write i2c OK [17:40:08]MH_I2C_Read... [17:40:08]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:40:08]Read from MH i2c: E2 [17:40:08]MH_I2C_Read... [17:40:08]Read from MH i2c: E2 03 00 [17:40:08]MH_I2C_Read... [17:40:08]Read from MH i2c: E2 03 00 69 05 00 90 00 E2 [17:40:08]RAPDU: 90 00 [17:40:08]wFMCommunicate OK [17:40:08]wFMCommunicate request_size=11 [17:40:08]MH_SAM_APDU [17:40:08]CAPDU: 80 15 02 00 06 1F 04 02 00 01 00 [17:40:08]Write to MH i2c: E2 0E 00 6A 05 80 15 02 00 06 00 1F 04 02 00 01 00 00 00 21 [17:40:08]Write i2c OK [17:40:08]MH_I2C_Read... [17:40:08]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:40:08]Read from MH i2c: E2 [17:40:08]MH_I2C_Read... [17:40:08]Read from MH i2c: E2 03 00 [17:40:08]MH_I2C_Read... [17:40:08]Read from MH i2c: E2 03 00 6A 05 00 90 00 E3 [17:40:08]RAPDU: 90 00 [17:40:08]wFMCommunicate OK [17:40:08]wFMCommunicate request_size=13 [17:40:08]MH_SAM_APDU [17:40:08]CAPDU: 80 15 02 00 08 F4 03 04 00 F8 1D 21 67 [17:40:08]Write to MH i2c: E2 10 00 6B 05 80 15 02 00 08 00 F4 03 04 00 F8 1D 21 67 00 00 98 [17:40:08]Write i2c OK [17:40:08]MH_I2C_Read... [17:40:08]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:40:08]Read from MH i2c: E2 [17:40:08]MH_I2C_Read... [17:40:08]Read from MH i2c: E2 03 00 [17:40:08]MH_I2C_Read... [17:40:08]Read from MH i2c: E2 03 00 6B 05 00 90 00 E4 [17:40:08]RAPDU: 90 00 [17:40:08]wFMCommunicate OK [17:40:08]wFMCommunicate request_size=25 [17:40:08]MH_SAM_APDU [17:40:08]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 [17:40:08]Write to MH i2c: E2 1C 00 6C 05 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 58 [17:40:08]Write i2c OK [17:40:08]MH_I2C_Read... [17:40:09]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:40:09]Read from MH i2c: E2 [17:40:09]MH_I2C_Read... [17:40:09]Read from MH i2c: E2 03 00 [17:40:09]MH_I2C_Read... [17:40:09]Read from MH i2c: E2 03 00 6C 05 00 90 00 E5 [17:40:09]RAPDU: 90 00 [17:40:09]wFMCommunicate OK [17:40:09]wFMCommunicate request_size=4 [17:40:09]MH_SAM_APDU [17:40:09]CAPDU: 80 15 03 00 [17:40:09]Write to MH i2c: E2 08 00 6D 05 80 15 03 00 00 00 00 00 F3 [17:40:09]Write i2c OK [17:40:09]MH_I2C_Read... [17:40:09]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [17:40:09]Read from MH i2c: E2 [17:40:09]MH_I2C_Read... [17:40:09]Read from MH i2c: E2 40 00 [17:40:09]MH_I2C_Read... [17:40:09]Read from MH i2c: E2 40 00 6D 05 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 FA F1 02 00 0E 04 04 00 20 02 00 00 12 04 04 00 E0 00 00 00 35 04 06 00 67 91 B2 48 7B 3E 90 00 83 [17:40:09]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 FA F1 02 00 0E 04 04 00 20 02 00 00 12 04 04 00 E0 00 00 00 35 04 06 00 67 91 B2 48 7B 3E 90 00 [17:40:09]wFMCommunicate OK [17:40:09]SAM_PROTO_ProcessDocument answer len = 59 [17:40:09]SAM_PROTO_ProcessDocument done [17:40:09]SetTLVBufToDocument [17:40:09]Processing tag 1209 (04B9) [17:40:09]Malloc new data [17:40:09]Processing tag 1041 (0411) [17:40:09]Processing tag 1040 (0410) [17:40:09]Malloc new data [17:40:09]Processing tag 1038 (040E) [17:40:09]Malloc new data [17:40:09]Processing tag 1042 (0412) [17:40:09]Malloc new data [17:40:09]Processing tag 1077 (0435) [17:40:09]Malloc new data [17:40:09]SetTLVBufToDocument err=0 [17:40:09]KKMLoadAndSignReceiptData store KKM data [17:40:09]KKMLoadAndSignReceiptData err=0 [17:40:09]wFMCommunicate request_size=4 [17:40:09]MH_SAM_APDU [17:40:09]CAPDU: 80 11 00 00 [17:40:09]Write to MH i2c: E2 08 00 6E 05 80 11 00 00 00 00 00 00 ED [17:40:09]Write i2c OK [17:40:09]MH_I2C_Read... [17:40:09]Read from MH i2c: E2 [17:40:09]MH_I2C_Read... [17:40:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:09]Read from MH i2c: E2 17 00 [17:40:09]MH_I2C_Read... [17:40:09]Read from MH i2c: E2 17 00 6E 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 40 [17:40:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:40:09]wFMCommunicate OK [17:40:09]Счет N : (1)32349 ИÐÐ: 02508201610067 Контрольно-КаÑÑовый Чек ПРОДÐЖРТРК (МРК, ГÐК) : 12 Товар: 2710124130 Ðи-92-К-5 7.480 * 66.90 = 500.41 ÐДС 12% ÐСП 1% > о реализуемом товаре ОКРУГЛЕÐИЕ: -0.41 ИТОГО: 500.00 ВнеÑено: 500.00 СДÐЧÐ: 0.00 ÐСП 1% : 4.43 ÐДС 12% : 53.14 Ðаличными: 500.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 170 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 СÐО: Общий режим Чек 224 29.10.2024 17:40 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 193018 ФПД: 113875459013438 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T174008&type=1&operation_type=1&fn_number=0000000000871754&fd_number=193018&fm=113875459013438&tin=02508201610067®Number=0000000000091776&sum=50000 [17:40:09]StoreToDocumentArchive [17:40:09]shift 544 fd 193018 [17:40:09]save to /storage/0544/doc_00193018 [17:40:09]save last doc name /storage/0544/doc_00193018 to /storage/kkm_last_doc_name [17:40:09]save OK [17:40:09]Clear old archive folders... [17:40:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:40:09]tlvbuf is 00AB7CA0 [17:40:09]SAM_PROTO_ClearQueue [17:40:09]wFMCommunicate request_size=4 [17:40:09]MH_SAM_APDU [17:40:09]CAPDU: 80 09 00 00 [17:40:09]Write to MH i2c: E2 08 00 6F 05 80 09 00 00 00 00 00 00 E6 [17:40:09]Write i2c OK [17:40:09]MH_I2C_Read... [17:40:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:40:09]Read from MH i2c: E2 [17:40:09]MH_I2C_Read... [17:40:09]Read from MH i2c: E2 03 00 [17:40:09]MH_I2C_Read... [17:40:09]Read from MH i2c: E2 03 00 6F 05 00 90 00 E8 [17:40:09]RAPDU: 90 00 [17:40:09]wFMCommunicate OK [17:40:09]SAM_PROTO_ClearQueue done [17:40:09]KKMCreateOFDPacket [17:40:09]OFDProtocolAddRootSTLVToBuf [17:40:09]FM_MakeSignedData [17:40:09]FM_MakeSignedData [17:40:09]SAM_PROTO_SignData [17:40:09]wFMCommunicate request_size=4 [17:40:09]MH_SAM_APDU [17:40:09]CAPDU: 80 0D 01 02 [17:40:09]Write to MH i2c: E2 08 00 70 05 80 0D 01 02 00 00 00 00 EE [17:40:09]Write i2c OK [17:40:09]MH_I2C_Read... [17:40:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:40:09]Read from MH i2c: E2 [17:40:09]MH_I2C_Read... [17:40:09]Read from MH i2c: E2 03 00 [17:40:09]MH_I2C_Read... [17:40:09]Read from MH i2c: E2 03 00 70 05 00 90 00 E9 [17:40:09]RAPDU: 90 00 [17:40:09]wFMCommunicate OK [17:40:09]wFMCommunicate request_size=255 [17:40:09]MH_SAM_APDU [17:40: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 E0 00 00 00 F4 03 04 00 F8 1D 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 67 [17:40:10]Write to MH i2c: E2 02 01 71 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 E0 00 00 00 F4 03 04 00 F8 1D 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 67 00 00 75 [17:40:10]Write i2c OK [17:40:10]MH_I2C_Read... [17:40:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:10]Read from MH i2c: E2 [17:40:10]MH_I2C_Read... [17:40:10]Read from MH i2c: E2 03 00 [17:40:10]MH_I2C_Read... [17:40:10]Read from MH i2c: E2 03 00 71 05 00 90 00 EA [17:40:10]RAPDU: 90 00 [17:40:10]wFMCommunicate OK [17:40:10]wFMCommunicate request_size=10 [17:40:10]MH_SAM_APDU [17:40:10]CAPDU: 80 0D 02 02 05 91 B2 48 7B 3E [17:40:10]Write to MH i2c: E2 0D 00 72 05 80 0D 02 02 05 00 91 B2 48 7B 3E 00 00 3F [17:40:10]Write i2c OK [17:40:10]MH_I2C_Read... [17:40:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:10]Read from MH i2c: E2 [17:40:10]MH_I2C_Read... [17:40:10]Read from MH i2c: E2 03 00 [17:40:10]MH_I2C_Read... [17:40:10]Read from MH i2c: E2 03 00 72 05 00 90 00 EB [17:40:10]RAPDU: 90 00 [17:40:10]wFMCommunicate OK [17:40:10]wFMCommunicate request_size=4 [17:40:10]MH_SAM_APDU [17:40:10]CAPDU: 80 0D 03 02 [17:40:10]Write to MH i2c: E2 08 00 73 05 80 0D 03 02 00 00 00 00 F3 [17:40:10]Write i2c OK [17:40:10]MH_I2C_Read... [17:40:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:40:10]Read from MH i2c: E2 [17:40:10]MH_I2C_Read... [17:40:10]Read from MH i2c: E2 0B 00 [17:40:10]MH_I2C_Read... [17:40:10]Read from MH i2c: E2 0B 00 73 05 00 1E 9B 5C D3 4A 59 91 5E 90 00 6E [17:40:10]RAPDU: 1E 9B 5C D3 4A 59 91 5E 90 00 [17:40:10]wFMCommunicate OK [17:40:10]SAM_PROTO_SignData done [17:40:10]FM_MakeSignedData done [17:40:10]CreateOFDProtocolMessage [17:40:10]wFMCommunicate request_size=4 [17:40:10]MH_SAM_APDU [17:40:10]CAPDU: 80 11 00 00 [17:40:10]Write to MH i2c: E2 08 00 74 05 80 11 00 00 00 00 00 00 F3 [17:40:10]Write i2c OK [17:40:10]MH_I2C_Read... [17:40:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:10]Read from MH i2c: E2 [17:40:10]MH_I2C_Read... [17:40:10]Read from MH i2c: E2 17 00 [17:40:10]MH_I2C_Read... [17:40:10]Read from MH i2c: E2 17 00 74 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 46 [17:40:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:40:10]wFMCommunicate OK [17:40:10]CreateOFDProtocolMessage done [17:40:10]OFDSenderStorePacket 193018 [17:40:10]StoreOFDPacket docnum=193018 [17:40: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 62 90 07 01 DA 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 E0 00 00 00 F4 03 04 00 F8 1D 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 67 91 B2 48 7B 3E 1E 9B 5C D3 4A 59 91 5E [17:40:10]CheckFolder [17:40:10]dirname=/storage/ofd_packets [17:40:10]CheckFolder done [17:40:10]ProducePacketName [17:40:10]name=ofd_packets/00193018 [17:40:10]NVStorageSaveData ofd_packets/00193018 [17:40:10]File name is /storage/ofd_packets/00193018 [17:40:10]Write 301 bytes [17:40:10]NVStorageSaveData done [17:40:10]OFDSenderStorePacket done [17:40:10]KKMCreateOFDPacket done [17:40:10]NVStorageSaveData kkm_last_timestamp [17:40:10]File name is /storage/kkm_last_timestamp [17:40:10]Write 4 bytes [17:40:10]NVStorageSaveData done [17:40:10]ExternCall_PrintAddStr [17:40:10]wPrintStart [17:40:10]Write to MH i2c: 01 00 00 75 05 7A [17:40:10]Write i2c OK [17:40:10]MH_I2C_Read... [17:40:10]Read from MH i2c: 01 [17:40:10]MH_I2C_Read... [17:40:10]Read from MH i2c: 01 07 00 [17:40:10]MH_I2C_Read... [17:40:10]Read from MH i2c: 01 07 00 75 05 00 00 00 00 00 FF 0F 8F [17:40:10]RasterBufferAndPrint [17:40:10]line Счет N : (1)32349 [17:40:10]line ИÐÐ: 02508201610067 [17:40:10]line Контрольно-КаÑÑовый Чек [17:40:10]line ПРОДÐЖР[17:40:10]line ТРК (МРК, ГÐК) : 12 [17:40:10]line Товар: 2710124130 [17:40:10]line Ðи-92-К-5 [17:40:10]line 7.480 * 66.90 [17:40:10]line = 500.41 [17:40:10]line ÐДС 12% ÐСП 1% [17:40:10]line > о реализуемом товаре [17:40:10]line ОКРУГЛЕÐИЕ: -0.41 [17:40:10]line ИТОГО: 500.00 [17:40:11]line ВнеÑено: 500.00 [17:40:11]line СДÐЧÐ: 0.00 [17:40:11]line ÐСП 1% : 4.43 [17:40:11]line ÐДС 12% : 53.14 [17:40:11]line Ðаличными: 500.00 [17:40:11]line Безнал.: 0.00 [17:40:11]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [17:40:11]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [17:40:11]line СÐО: Общий режим [17:40:11]line Чек 224 29.10.2024 17:40 [17:40:11]line Смена: 544 ФФД: 1.0 [17:40:11]line ЗÐМ: 0300000110 [17:40:11]line РÐМ: 0000000000091776 [17:40:11]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [17:40:11]line ФМ: 0000000000871754 [17:40:11]line ФД: 193018 [17:40:11]line ФПД: 113875459013438 [17:40:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T174008&type=1&operation_type=1&fn_number=0000000000871754&fd_number=193018&fm=113875459013438&tin=02508201610067®Number=0000000000091776&sum=50000 [17:40:11]OFD Sender: Processing packet 193018 [packets to send 75, broken 74] [17:40:11]ProducePacketName [17:40:11]name=ofd_packets/00193018 [17:40:11]OFD Sender: To server: ‡•öpG, [17:40:11]CommunicateWithHost lk.salyk.kg:30040 [17:40:11]written 0, free lines is 4095 [17:40:11]ConnectInit lk.salyk.kg [17:40:11]Connected sock=9 [17:40:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 62 90 07 01 DA 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 E0 00 00 00 F4 03 04 00 F8 1D 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 67 91 B2 48 7B 3E 1E 9B 5C D3 4A 59 91 5E [17:40:11]Write to MH i2c: 01 00 00 A0 05 A5 [17:40:11]Write i2c OK [17:40:11]MH_I2C_Read... [17:40:11]Read from MH i2c: 01 [17:40:11]MH_I2C_Read... [17:40:11]Read from MH i2c: 01 07 00 [17:40:11]MH_I2C_Read... [17:40:11]Read from MH i2c: 01 07 00 A0 05 00 00 00 00 00 1C 0D D5 [17:40:11]RasterBufferAndPrint [17:40:11]line [17:40:11]line [17:40:11]line [17:40:11]line [17:40:11]line [17:40:11]written 0, free lines is 3404 [17:40:11]MH_Cut [17:40:11]Write to MH i2c: D1 01 00 A7 05 01 7E [17:40:11]Write i2c OK [17:40:11]MH_I2C_Read... [17:40:11]Read from MH i2c: D1 [17:40:11]MH_I2C_Read... [17:40:11]Read from MH i2c: D1 01 00 [17:40:11]MH_I2C_Read... [17:40:11]Read from MH i2c: D1 01 00 A7 05 00 7D [17:40:11]Write to MH i2c: 01 00 00 A8 05 AD [17:40:11]Write i2c OK [17:40:11]MH_I2C_Read... [17:40: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 DA D8 47 00 96 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 FA F1 02 00 F4 03 04 00 BA C2 20 67 B6 04 01 00 00 F3 7C 9D D6 06 D5 98 E4 [17:40:11]CommunicateWithHost err = 0 [17:40:11]CheckOFDResponse [17:40:11]1017 (14) - 77093643461234 [17:40:11]1041 (16) - 0000000000871754 [17:40:11]1040 (4) - 193018 [17:40:11]1012 (4) - 29.10.2024 11:10 [17:40:11]1206 (1) - 0 [17:40:11]OFD Sender: Remove packet 193018 [17:40:11]ProducePacketName [17:40:11]name=ofd_packets/00193018 [17:40:11]NVStorageDeleteData [17:40:12]*** Cut start [17:40:12]*** Partial cut [17:40:12]*** CUTSNS_PIN = 1 [17:40:12]*** CUTSNS_PIN = 0 [17:40:12]OFD Sender: No OFD packet to send [17:40:12]*** Brake cut motor [17:40:12]Read from MH i2c: 01 [17:40:12]MH_I2C_Read... [17:40:12]*** Stop cut motor [17:40:12]*** Cut end [17:40:12]Read from MH i2c: 01 07 00 [17:40:12]MH_I2C_Read... [17:40:12]Read from MH i2c: 01 07 00 A8 05 00 00 00 00 00 FF 0F C2 [17:40:12]process_action close_receipt done [17:40:12]requested_data is exist [17:40:12]produce_requested_data [17:40:12]requested_item fm.sn is exist - process it [17:40:12]wFMCommunicate request_size=4 [17:40:12]MH_SAM_APDU [17:40:12]CAPDU: 80 11 00 00 [17:40:12]Write to MH i2c: E2 08 00 A9 05 80 11 00 00 00 00 00 00 28 [17:40:12]Write i2c OK [17:40:13]MH_I2C_Read... [17:40:13]Read from MH i2c: E2 [17:40:13]MH_I2C_Read... [17:40:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:13]Read from MH i2c: E2 17 00 [17:40:13]MH_I2C_Read... [17:40:13]Read from MH i2c: E2 17 00 A9 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7B [17:40:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:40:13]wFMCommunicate OK [17:40:13]requested_item fd.num is exist - process it [17:40:13]SAM_PROTO_GetFieldsCounters [17:40:13]wFMCommunicate request_size=4 [17:40:13]MH_SAM_APDU [17:40:13]CAPDU: 80 13 00 00 [17:40:13]Write to MH i2c: E2 08 00 AA 05 80 13 00 00 00 00 00 00 2B [17:40:13]Write i2c OK [17:40:13]MH_I2C_Read... [17:40:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:40:13]Read from MH i2c: E2 [17:40:13]MH_I2C_Read... [17:40:13]Read from MH i2c: E2 62 00 [17:40:13]MH_I2C_Read... [17:40:13]Read from MH i2c: E2 62 00 AA 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 FA F1 02 00 0E 04 04 00 20 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 00 [17:40:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 F1 02 00 0E 04 04 00 20 02 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:40:13]wFMCommunicate OK [17:40:13]SAM_PROTO_GetFieldsCounters done [17:40:13]requested_item shift.num is exist - process it [17:40:13]requested_item shift.opened is exist - process it [17:40:13]req_shift_opened [17:40:13]FM_GetShiftState [17:40:13]SAM_PROTO_GetShiftState [17:40:13]wFMCommunicate request_size=4 [17:40:13]MH_SAM_APDU [17:40:13]CAPDU: 80 13 01 00 [17:40:13]Write to MH i2c: E2 08 00 AB 05 80 13 01 00 00 00 00 00 2D [17:40:13]Write i2c OK [17:40:13]MH_I2C_Read... [17:40:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:13]Read from MH i2c: E2 [17:40:13]MH_I2C_Read... [17:40:13]Read from MH i2c: E2 0E 00 [17:40:13]MH_I2C_Read... [17:40:13]Read from MH i2c: E2 0E 00 AB 05 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 33 [17:40:13]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [17:40:13]wFMCommunicate OK [17:40:13]SAM_PROTO_GetShiftState done [17:40:13]FM_GetShiftState done [17:40:13]req_shift_opened done [17:40:13]requested_item shift.open_date is exist - process it [17:40:13]req_shift_open_date [17:40:13]req_shift_open_date done [17:40:13]produce_requested_data done [17:40:13]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":193018,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [17:40:13]process_action_free close_receipt [17:40:13]json_value_free [17:40:13]json_value_free done [17:40:13]process_json_proto returns [17:40:13]Send response to host [17:40:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":193018,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [17:40:13]free response buf [17:40:13]execute_script done [17:40:13]execute_script returns [17:40:13]free content buf [17:40:13]Sock 10.Close socket [17:40:13]Sock 10.Thread stoped [17:40:17]OFD Sender: No OFD packet to send [17:40:22]OFD Sender: No OFD packet to send [17:40:24]recv_with_timeout no data received [17:40:27]OFD Sender: No OFD packet to send [17:40:32]OFD Sender: No OFD packet to send [17:40:37]OFD Sender: No OFD packet to send [17:40:42]OFD Sender: No OFD packet to send [17:40:47]OFD Sender: No OFD packet to send [17:40:52]OFD Sender: No OFD packet to send [17:40:57]OFD Sender: No OFD packet to send [17:41:02]OFD Sender: No OFD packet to send [17:41:07]OFD Sender: No OFD packet to send [17:41:12]OFD Sender: No OFD packet to send [17:41:17]OFD Sender: No OFD packet to send [17:41:22]OFD Sender: No OFD packet to send [17:41:27]OFD Sender: No OFD packet to send [17:41:32]OFD Sender: No OFD packet to send [17:41:37]OFD Sender: No OFD packet to send [17:41:42]OFD Sender: No OFD packet to send [17:41:47]OFD Sender: No OFD packet to send [17:41:52]OFD Sender: No OFD packet to send [17:41:57]OFD Sender: No OFD packet to send [17:42:02]OFD Sender: No OFD packet to send [17:42:07]OFD Sender: No OFD packet to send [17:42:12]OFD Sender: No OFD packet to send [17:42:17]OFD Sender: No OFD packet to send [17:42:22]OFD Sender: No OFD packet to send [17:42:27]OFD Sender: No OFD packet to send [17:42:32]OFD Sender: No OFD packet to send [17:42:37]OFD Sender: No OFD packet to send [17:42:42]OFD Sender: No OFD packet to send [17:42:47]OFD Sender: No OFD packet to send [17:42:52]OFD Sender: No OFD packet to send [17:42:57]OFD Sender: No OFD packet to send [17:43:02]OFD Sender: No OFD packet to send [17:43:07]OFD Sender: No OFD packet to send [17:43:12]OFD Sender: No OFD packet to send [17:43:17]OFD Sender: No OFD packet to send [17:43:22]OFD Sender: No OFD packet to send [17:43:27]OFD Sender: No OFD packet to send [17:43:32]OFD Sender: No OFD packet to send [17:43:37]OFD Sender: No OFD packet to send [17:43:42]OFD Sender: No OFD packet to send [17:43:45]accept exits with 7 [17:43:45]New connection [17:43:45]New thread 3067207012 created [17:43:45]Thread 3067350372 joined [17:43:45]Waiting for new connection... [17:43:45] Sock 7.Parse request [17:43:45]Sock 7.Check first char [17:43:45]Sock 7.First char is OK [17:43:45]request: POST /json_proto HTTP/1.0 [17:43:45]Method: POST [17:43:45]URL: /json_proto [17:43:45]Method is POST - this is cgi request [17:43:45]url: /json_proto [17:43:45]query_string will be loaded in cgi processing [17:43:45]execute_cgi json_proto POST (null) [17:43:45]execute_cgi path=json_proto method=POST [17:43:45]POST find Content-Length [17:43:45]Host: 172.17.63.131:8080 [17:43:45]Content-Length: 676 [17:43:45]Content-Type: application/json [17:43:45] [17:43:45]POST finish read [17:43:45]Found Content-Length = 676 [17:43:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32350", "tax_sys" : 0, "items" : [ { "pre_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:43:45]execute_script... [17:43: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)32350", "tax_sys" : 0, "items" : [ { "pre_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:43:45]POST & json_proto [17:43:45]process_json_proto [17:43:45]json parsed OK: [17:43:45]protocol is kg_v1.0 [17:43:45]action value=close_receipt [17:43:45]process_action close_receipt [17:43:45]cmd_close_receipt [17:43:45]MH_GetDate [17:43:45]Write to MH i2c: F0 00 00 AC 05 A0 [17:43:45]Write i2c OK [17:43:45]MH_I2C_Read... [17:43:45]Read from MH i2c: F0 [17:43:45]MH_I2C_Read... [17:43:45]Read from MH i2c: F0 09 00 [17:43:45]MH_I2C_Read... [17:43:45]Read from MH i2c: F0 09 00 AC 05 00 D2 1E 21 67 22 05 6E 64 1A [17:43:45]GetLastDocTimeStamp 1730223608 [17:43:45]current date 1730223826 [17:43:45]FM_GetShiftState [17:43:45]SAM_PROTO_GetShiftState [17:43:45]wFMCommunicate request_size=4 [17:43:45]MH_SAM_APDU [17:43:45]CAPDU: 80 13 01 00 [17:43:45]Write to MH i2c: E2 08 00 AD 05 80 13 01 00 00 00 00 00 2F [17:43:45]Write i2c OK [17:43:45]MH_I2C_Read... [17:43:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:46]Read from MH i2c: E2 [17:43:46]MH_I2C_Read... [17:43:46]Read from MH i2c: E2 0E 00 [17:43:46]MH_I2C_Read... [17:43:46]Read from MH i2c: E2 0E 00 AD 05 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 35 [17:43:46]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [17:43:46]wFMCommunicate OK [17:43:46]SAM_PROTO_GetShiftState done [17:43:46]FM_GetShiftState done [17:43:46]opened in 1730161990 [17:43:46]opened+sec_in_day 1730248390 [17:43:46]quantity*price = 50041 [17:43:46]sum+1 = 50042 [17:43:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.41 ИТОГО: 500.00 ВнеÑено: 500.00 СДÐЧÐ: 0.00 ÐСП 1% : 4.43 ÐДС 12% : 53.14 Ðаличными: 500.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 170 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 СÐО: Общий режим Чек 225 29.10.2024 17:43 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 193019 ФПД: 83636614767313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T174346&type=1&operation_type=1&fn_number=0000000000871754&fd_number=193019&fm=83636614767313&tin=02508201610067®Number=0000000000091776&sum=50000 [17:43:47]StoreToDocumentArchive [17:43:47]shift 544 fd 193019 [17:43:47]save to /storage/0544/doc_00193019 [17:43:47]save last doc name /storage/0544/doc_00193019 to /storage/kkm_last_doc_name [17:43:47]save OK [17:43:47]Clear old archive folders... [17:43:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:43:47]tlvbuf is 00AB95E0 [17:43:47]SAM_PROTO_ClearQueue [17:43:47]wFMCommunicate request_size=4 [17:43:47]MH_SAM_APDU [17:43:47]CAPDU: 80 09 00 00 [17:43:47]Write to MH i2c: E2 08 00 BA 05 80 09 00 00 00 00 00 00 31 [17:43:47]Write i2c OK [17:43:47]MH_I2C_Read... [17:43:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:43:47]Read from MH i2c: E2 [17:43:47]MH_I2C_Read... [17:43:47]Read from MH i2c: E2 03 00 [17:43:47]MH_I2C_Read... [17:43:47]Read from MH i2c: E2 03 00 BA 05 00 90 00 33 [17:43:47]RAPDU: 90 00 [17:43:47]wFMCommunicate OK [17:43:47]SAM_PROTO_ClearQueue done [17:43:47]KKMCreateOFDPacket [17:43:47]OFDProtocolAddRootSTLVToBuf [17:43:47]FM_MakeSignedData [17:43:47]FM_MakeSignedData [17:43:47]SAM_PROTO_SignData [17:43:47]wFMCommunicate request_size=4 [17:43:47]MH_SAM_APDU [17:43:47]CAPDU: 80 0D 01 02 [17:43:47]Write to MH i2c: E2 08 00 BB 05 80 0D 01 02 00 00 00 00 39 [17:43:47]Write i2c OK [17:43:47]MH_I2C_Read... [17:43:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:43:47]Read from MH i2c: E2 [17:43:47]MH_I2C_Read... [17:43:47]Read from MH i2c: E2 03 00 [17:43:47]MH_I2C_Read... [17:43:47]Read from MH i2c: E2 03 00 BB 05 00 90 00 34 [17:43:47]RAPDU: 90 00 [17:43:47]wFMCommunicate OK [17:43:47]wFMCommunicate request_size=255 [17:43:47]MH_SAM_APDU [17:43:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 D2 1E 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 4C [17:43:47]Write to MH i2c: E2 02 01 BC 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 OFD Sender: No OFD packet to send [17:43:47]01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 D2 1E 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 4C 00 00 82 [17:43:48]Write i2c OK [17:43:48]MH_I2C_Read... [17:43:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:48]Read from MH i2c: E2 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: E2 03 00 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: E2 03 00 BC 05 00 90 00 35 [17:43:48]RAPDU: 90 00 [17:43:48]wFMCommunicate OK [17:43:48]wFMCommunicate request_size=10 [17:43:48]MH_SAM_APDU [17:43:48]CAPDU: 80 0D 02 02 05 11 2A B6 A2 D1 [17:43:48]Write to MH i2c: E2 0D 00 BD 05 80 0D 02 02 05 00 11 2A B6 A2 D1 00 00 AA [17:43:48]Write i2c OK [17:43:48]MH_I2C_Read... [17:43:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:48]Read from MH i2c: E2 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: E2 03 00 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: E2 03 00 BD 05 00 90 00 36 [17:43:48]RAPDU: 90 00 [17:43:48]wFMCommunicate OK [17:43:48]wFMCommunicate request_size=4 [17:43:48]MH_SAM_APDU [17:43:48]CAPDU: 80 0D 03 02 [17:43:48]Write to MH i2c: E2 08 00 BE 05 80 0D 03 02 00 00 00 00 3E [17:43:48]Write i2c OK [17:43:48]MH_I2C_Read... [17:43:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:43:48]Read from MH i2c: E2 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: E2 0B 00 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: E2 0B 00 BE 05 00 C2 5D AA 08 1E E6 3A 5D 90 00 AB [17:43:48]RAPDU: C2 5D AA 08 1E E6 3A 5D 90 00 [17:43:48]wFMCommunicate OK [17:43:48]SAM_PROTO_SignData done [17:43:48]FM_MakeSignedData done [17:43:48]CreateOFDProtocolMessage [17:43:48]wFMCommunicate request_size=4 [17:43:48]MH_SAM_APDU [17:43:48]CAPDU: 80 11 00 00 [17:43:48]Write to MH i2c: E2 08 00 BF 05 80 11 00 00 00 00 00 00 3E [17:43:48]Write i2c OK [17:43:48]MH_I2C_Read... [17:43:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:48]Read from MH i2c: E2 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: E2 17 00 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: E2 17 00 BF 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 91 [17: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 [17:43:48]wFMCommunicate OK [17:43:48]CreateOFDProtocolMessage done [17:43:48]OFDSenderStorePacket 193019 [17:43:48]StoreOFDPacket docnum=193019 [17: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 7E 02 07 01 07 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 D2 1E 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 4C 11 2A B6 A2 D1 C2 5D AA 08 1E E6 3A 5D [17:43:48]CheckFolder [17:43:48]dirname=/storage/ofd_packets [17:43:48]CheckFolder done [17:43:48]ProducePacketName [17:43:48]name=ofd_packets/00193019 [17:43:48]NVStorageSaveData ofd_packets/00193019 [17:43:48]File name is /storage/ofd_packets/00193019 [17:43:48]Write 301 bytes [17:43:48]NVStorageSaveData done [17:43:48]OFDSenderStorePacket done [17:43:48]KKMCreateOFDPacket done [17:43:48]NVStorageSaveData kkm_last_timestamp [17:43:48]File name is /storage/kkm_last_timestamp [17:43:48]Write 4 bytes [17:43:48]NVStorageSaveData done [17:43:48]ExternCall_PrintAddStr [17:43:48]wPrintStart [17:43:48]Write to MH i2c: 01 00 00 C0 05 C5 [17:43:48]Write i2c OK [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: 01 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: 01 07 00 [17:43:48]MH_I2C_Read... [17:43:48]OFD Sender: Processing packet 193019 [packets to send 75, broken 74] [17:43:48]ProducePacketName [17:43:48]name=ofd_packets/00193019 [17:43:48]OFD Sender: To server: ‡•öpG, [17:43:48]CommunicateWithHost lk.salyk.kg:30040 [17:43:48]ConnectInit lk.salyk.kg [17:43:48]Read from MH i2c: 01 07 00 C0 05 00 00 00 00 00 FF 0F DA [17:43:48]RasterBufferAndPrint [17:43:48]line Счет N : (1)32350 [17:43:48]line ИÐÐ: 02508201610067 [17:43:48]line Контрольно-КаÑÑовый Чек [17:43:48]line ПРОДÐЖР[17:43:48]line ТРК (МРК, ГÐК) : 21 [17:43:48]line Товар: 2710124130 [17:43:48]line Ðи-92-К-5 [17:43:48]line 7.480 * 66.90 [17:43:48]line = 500.41 [17:43:48]line ÐДС 12% ÐСП 1% [17:43:48]line > о реализуемом товаре [17:43:48]line ОКРУГЛЕÐИЕ: -0.41 [17:43:48]line ИТОГО: 500.00 [17:43:48]line ВнеÑено: 500.00 [17:43:48]line СДÐЧÐ: 0.00 [17:43:48]line ÐСП 1% : 4.43 [17:43:48]line ÐДС 12% : 53.14 [17:43:48]line Ðаличными: 500.00 [17:43:48]line Безнал.: 0.00 [17:43:48]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [17:43:48]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [17:43:48]line СÐО: Общий режим [17:43:48]line Чек 225 29.10.2024 17:43 [17:43:48]line Смена: 544 ФФД: 1.0 [17:43:48]line ЗÐМ: 0300000110 [17:43:48]line РÐМ: 0000000000091776 [17:43:48]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [17:43:48]line ФМ: 0000000000871754 [17:43:48]line ФД: 193019 [17:43:48]line ФПД: 83636614767313 [17:43:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T174346&type=1&operation_type=1&fn_number=0000000000871754&fd_number=193019&fm=83636614767313&tin=02508201610067®Number=0000000000091776&sum=50000 [17:43:48]written 0, free lines is 4095 [17:43:48]Connected sock=11 [17:43:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7E 02 07 01 07 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 D2 1E 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 4C 11 2A B6 A2 D1 C2 5D AA 08 1E E6 3A 5D [17:43:49]Write to MH i2c: 01 00 00 EB 05 F0 [17:43:49]Write i2c OK [17:43:49]MH_I2C_Read... [17:43:49]Read from MH i2c: 01 [17:43:49]MH_I2C_Read... [17:43:49]Read from MH i2c: 01 07 00 [17:43:49]MH_I2C_Read... [17:43:49]Read from MH i2c: 01 07 00 EB 05 00 00 00 00 00 BA 0C BD [17:43:49]RasterBufferAndPrint [17:43:49]line [17:43:49]line [17:43:49]line [17:43:49]line [17:43:49]line [17:43:49]written 0, free lines is 3302 [17:43:49]MH_Cut [17:43:49]Write to MH i2c: D1 01 00 F2 05 01 C9 [17:43:49]Write i2c OK [17:43:49]MH_I2C_Read... [17:43:49]Read from MH i2c: D1 [17:43:49]MH_I2C_Read... [17:43:49]Read from MH i2c: D1 01 00 [17:43:49]MH_I2C_Read... [17: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 CD E1 47 00 44 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 FB F1 02 00 F4 03 04 00 93 C3 20 67 B6 04 01 00 00 8A 8C 51 AE 89 7A D1 9B [17:43:49]CommunicateWithHost err = 0 [17:43:49]CheckOFDResponse [17:43:49]1017 (14) - 77093643461234 [17:43:49]1041 (16) - 0000000000871754 [17:43:49]1040 (4) - 193019 [17:43:49]1012 (4) - 29.10.2024 11:14 [17:43:49]1206 (1) - 0 [17:43:49]OFD Sender: Remove packet 193019 [17:43:49]ProducePacketName [17:43:49]name=ofd_packets/00193019 [17:43:49]NVStorageDeleteData [17:43:49]Read from MH i2c: D1 01 00 F2 05 00 C8 [17:43:49]Write to MH i2c: 01 00 00 F3 05 F8 [17:43:49]Write i2c OK [17:43:49]MH_I2C_Read... [17:43:49]OFD Sender: No OFD packet to send [17:43:49]*** Cut start [17:43:49]*** Partial cut [17:43:49]*** CUTSNS_PIN = 1 [17:43:50]*** CUTSNS_PIN = 0 [17:43:50]*** Brake cut motor [17:43:50]Read from MH i2c: 01 [17:43:50]MH_I2C_Read... [17:43:50]*** Stop cut motor [17:43:50]*** Cut end [17:43:50]Read from MH i2c: 01 07 00 [17:43:50]MH_I2C_Read... [17:43:50]Read from MH i2c: 01 07 00 F3 05 00 00 00 00 00 FF 0F 0D [17:43:50]process_action close_receipt done [17:43:50]requested_data is exist [17:43:50]produce_requested_data [17:43:50]requested_item fm.sn is exist - process it [17:43:50]wFMCommunicate request_size=4 [17:43:50]MH_SAM_APDU [17:43:50]CAPDU: 80 11 00 00 [17:43:50]Write to MH i2c: E2 08 00 F4 05 80 11 00 00 00 00 00 00 73 [17:43:50]Write i2c OK [17:43:50]MH_I2C_Read... [17:43:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:50]Read from MH i2c: E2 [17:43:50]MH_I2C_Read... [17:43:50]Read from MH i2c: E2 17 00 [17:43:50]MH_I2C_Read... [17:43:50]Read from MH i2c: E2 17 00 F4 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C6 [17: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 [17:43:50]wFMCommunicate OK [17:43:50]requested_item fd.num is exist - process it [17:43:50]SAM_PROTO_GetFieldsCounters [17:43:50]wFMCommunicate request_size=4 [17:43:50]MH_SAM_APDU [17:43:50]CAPDU: 80 13 00 00 [17:43:50]Write to MH i2c: E2 08 00 F5 05 80 13 00 00 00 00 00 00 76 [17:43:50]Write i2c OK [17:43:50]MH_I2C_Read... [17:43:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:43:50]Read from MH i2c: E2 [17:43:50]MH_I2C_Read... [17:43:50]Read from MH i2c: E2 62 00 [17:43:50]MH_I2C_Read... [17:43:50]Read from MH i2c: E2 62 00 F5 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 FB F1 02 00 0E 04 04 00 20 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 4F [17:43:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 F1 02 00 0E 04 04 00 20 02 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:43:51]wFMCommunicate OK [17:43:51]SAM_PROTO_GetFieldsCounters done [17:43:51]requested_item shift.num is exist - process it [17:43:51]requested_item shift.opened is exist - process it [17:43:51]req_shift_opened [17:43:51]FM_GetShiftState [17:43:51]SAM_PROTO_GetShiftState [17:43:51]wFMCommunicate request_size=4 [17:43:51]MH_SAM_APDU [17:43:51]CAPDU: 80 13 01 00 [17:43:51]Write to MH i2c: E2 08 00 F6 05 80 13 01 00 00 00 00 00 78 [17:43:51]Write i2c OK [17:43:51]MH_I2C_Read... [17:43:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:51]Read from MH i2c: E2 [17:43:51]MH_I2C_Read... [17:43:51]Read from MH i2c: E2 0E 00 [17:43:51]MH_I2C_Read... [17:43:51]Read from MH i2c: E2 0E 00 F6 05 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 7E [17:43:51]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [17:43:51]wFMCommunicate OK [17:43:51]SAM_PROTO_GetShiftState done [17:43:51]FM_GetShiftState done [17:43:51]req_shift_opened done [17:43:51]requested_item shift.open_date is exist - process it [17:43:51]req_shift_open_date [17:43:51]req_shift_open_date done [17:43:51]produce_requested_data done [17:43:51]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":193019,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [17:43:51]process_action_free close_receipt [17:43:51]json_value_free [17:43:51]json_value_free done [17:43:51]process_json_proto returns [17:43:51]Send response to host [17:43:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":193019,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [17:43:51]free response buf [17:43:51]execute_script done [17:43:51]execute_script returns [17:43:51]free content buf [17:43:51]Sock 7.Close socket [17:43:51]Sock 7.Thread stoped [17:43:54]OFD Sender: No OFD packet to send [17:43:59]OFD Sender: No OFD packet to send [17:44:04]OFD Sender: No OFD packet to send [17:44:09]OFD Sender: No OFD packet to send [17:44:14]OFD Sender: No OFD packet to send [17:44:19]OFD Sender: No OFD packet to send [17:44:24]OFD Sender: No OFD packet to send [17:44:29]OFD Sender: No OFD packet to send [17:44:34]OFD Sender: No OFD packet to send [17:44:39]OFD Sender: No OFD packet to send [17:44:44]OFD Sender: No OFD packet to send [17:44:49]OFD Sender: No OFD packet to send [17:44:54]OFD Sender: No OFD packet to send [17:44:59]OFD Sender: No OFD packet to send [17:45:04]OFD Sender: No OFD packet to send [17:45:09]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:22]accept exits with 10 [17:45:22]New connection [17:45:22]New thread 3067350372 created [17:45:22]Thread 3067207012 joined [17:45:22]Waiting for new connection... [17:45:22] Sock 10.Parse request [17:45:22]Sock 10.Check first char [17:45:22]Sock 10.First char is OK [17:45:22]request: POST /json_proto HTTP/1.0 [17:45:22]Method: POST [17:45:22]URL: /json_proto [17:45:22]Method is POST - this is cgi request [17:45:22]url: /json_proto [17:45:22]query_string will be loaded in cgi processing [17:45:22]execute_cgi json_proto POST (null) [17:45:22]execute_cgi path=json_proto method=POST [17:45:22]POST find Content-Length [17:45:22]Host: 172.17.63.131:8080 [17:45:22]Content-Length: 676 [17:45:22]Content-Type: application/json [17:45:22] [17:45:22]POST finish read [17:45:22]Found Content-Length = 676 [17:45:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32351", "tax_sys" : 0, "items" : [ { "pre_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:45:22]execute_script... [17:45:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32351", "tax_sys" : 0, "items" : [ { "pre_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:45:22]POST & json_proto [17:45:22]process_json_proto [17:45:22]json parsed OK: [17:45:22]protocol is kg_v1.0 [17:45:22]action value=close_receipt [17:45:22]process_action close_receipt [17:45:22]cmd_close_receipt [17:45:22]MH_GetDate [17:45:22]Write to MH i2c: F0 00 00 F7 05 EB [17:45:22]Write i2c OK [17:45:22]MH_I2C_Read... [17:45:22]Read from MH i2c: F0 [17:45:22]MH_I2C_Read... [17:45:22]Read from MH i2c: F0 09 00 [17:45:22]MH_I2C_Read... [17:45:22]Read from MH i2c: F0 09 00 F7 05 00 33 1F 21 67 22 05 6E 64 C7 [17:45:22]GetLastDocTimeStamp 1730223826 [17:45:22]current date 1730223923 [17:45:22]FM_GetShiftState [17:45:22]SAM_PROTO_GetShiftState [17:45:22]wFMCommunicate request_size=4 [17:45:22]MH_SAM_APDU [17:45:22]CAPDU: 80 13 01 00 [17:45:22]Write to MH i2c: E2 08 00 F8 05 80 13 01 00 00 00 00 00 7A [17:45:22]Write i2c OK [17:45:22]MH_I2C_Read... [17:45:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:23]Read from MH i2c: E2 [17:45:23]MH_I2C_Read... [17:45:23]Read from MH i2c: E2 0E 00 [17:45:23]MH_I2C_Read... [17:45:23]Read from MH i2c: E2 0E 00 F8 05 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 80 [17:45:23]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [17:45:23]wFMCommunicate OK [17:45:23]SAM_PROTO_GetShiftState done [17:45:23]FM_GetShiftState done [17:45:23]opened in 1730161990 [17:45:23]opened+sec_in_day 1730248390 [17:45:23]quantity*price = 50041 [17:45:23]sum+1 = 50042 [17:45:23]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 СÐО: Общий режим Чек 226 29.10.2024 17:45 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 193020 ФПД: 128890947796668 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T174523&type=1&operation_type=1&fn_number=0000000000871754&fd_number=193020&fm=128890947796668&tin=02508201610067®Number=0000000000091776&sum=50000 [17:45:24]StoreToDocumentArchive [17:45:24]shift 544 fd 193020 [17:45:24]save to /storage/0544/doc_00193020 [17:45:24]save last doc name /storage/0544/doc_00193020 to /storage/kkm_last_doc_name [17:45:24]save OK [17:45:24]Clear old archive folders... [17:45:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:45:24]tlvbuf is 00B4E070 [17:45:24]SAM_PROTO_ClearQueue [17:45:24]wFMCommunicate request_size=4 [17:45:24]MH_SAM_APDU [17:45:24]CAPDU: 80 09 00 00 [17:45:24]Write to MH i2c: E2 08 00 05 06 80 09 00 00 00 00 00 00 7D [17:45:24]Write i2c OK [17:45:24]MH_I2C_Read... [17:45:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:45:24]Read from MH i2c: E2 [17:45:24]MH_I2C_Read... [17:45:24]Read from MH i2c: E2 03 00 [17:45:24]MH_I2C_Read... [17:45:24]Read from MH i2c: E2 03 00 05 06 00 90 00 7F [17:45:24]RAPDU: 90 00 [17:45:24]wFMCommunicate OK [17:45:24]SAM_PROTO_ClearQueue done [17:45:24]KKMCreateOFDPacket [17:45:24]OFDProtocolAddRootSTLVToBuf [17:45:24]FM_MakeSignedData [17:45:24]FM_MakeSignedData [17:45:24]SAM_PROTO_SignData [17:45:24]wFMCommunicate request_size=4 [17:45:24]MH_SAM_APDU [17:45:24]CAPDU: 80 0D 01 02 [17:45:24]Write to MH i2c: E2 08 00 06 06 80 0D 01 02 00 00 00 00 85 [17:45:24]Write i2c OK [17:45:24]MH_I2C_Read... [17:45:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:45:24]Read from MH i2c: E2 [17:45:24]MH_I2C_Read... [17:45:24]Read from MH i2c: E2 03 00 [17:45:24]MH_I2C_Read... [17:45:24]Read from MH i2c: E2 03 00 06 06 00 90 00 80 [17:45:24]RAPDU: 90 00 [17:45:24]wFMCommunicate OK [17:45:24]wFMCommunicate request_size=255 [17:45:24]MH_SAM_APDU [17:45: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 E2 00 00 00 F4 03 04 00 33 1F 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 75 [17:45:24]Write to MH i2c: E2 02 01 07 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 E2 00 00 00 F4 03 04 00 33 1F 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 75 00 00 5B [17:45:24]Write i2c OK [17:45:24]MH_I2C_Read... [17:45:25]OFD Sender: No OFD packet to send [17:45:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:25]Read from MH i2c: E2 [17:45:25]MH_I2C_Read... [17:45:25]Read from MH i2c: E2 03 00 [17:45:25]MH_I2C_Read... [17:45:25]Read from MH i2c: E2 03 00 07 06 00 90 00 81 [17:45:25]RAPDU: 90 00 [17:45:25]wFMCommunicate OK [17:45:25]wFMCommunicate request_size=10 [17:45:25]MH_SAM_APDU [17:45:25]CAPDU: 80 0D 02 02 05 39 C3 28 7E BC [17:45:25]Write to MH i2c: E2 0D 00 08 06 80 0D 02 02 05 00 39 C3 28 7E BC 00 00 F0 [17:45:25]Write i2c OK [17:45:25]MH_I2C_Read... [17:45:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:25]Read from MH i2c: E2 [17:45:25]MH_I2C_Read... [17:45:25]Read from MH i2c: E2 03 00 [17:45:25]MH_I2C_Read... [17:45:25]Read from MH i2c: E2 03 00 08 06 00 90 00 82 [17:45:25]RAPDU: 90 00 [17:45:25]wFMCommunicate OK [17:45:25]wFMCommunicate request_size=4 [17:45:25]MH_SAM_APDU [17:45:25]CAPDU: 80 0D 03 02 [17:45:25]Write to MH i2c: E2 08 00 09 06 80 0D 03 02 00 00 00 00 8A [17:45:25]Write i2c OK [17:45:25]MH_I2C_Read... [17:45:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:45:25]Read from MH i2c: E2 [17:45:25]MH_I2C_Read... [17:45:25]Read from MH i2c: E2 0B 00 [17:45:25]MH_I2C_Read... [17:45:25]Read from MH i2c: E2 0B 00 09 06 00 D8 98 A0 AD 19 C8 95 84 90 00 42 [17:45:25]RAPDU: D8 98 A0 AD 19 C8 95 84 90 00 [17:45:25]wFMCommunicate OK [17:45:25]SAM_PROTO_SignData done [17:45:25]FM_MakeSignedData done [17:45:25]CreateOFDProtocolMessage [17:45:25]wFMCommunicate request_size=4 [17:45:25]MH_SAM_APDU [17:45:25]CAPDU: 80 11 00 00 [17:45:25]Write to MH i2c: E2 08 00 0A 06 80 11 00 00 00 00 00 00 8A [17:45:25]Write i2c OK [17:45:25]MH_I2C_Read... [17:45:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:25]Read from MH i2c: E2 [17:45:25]MH_I2C_Read... [17:45:25]Read from MH i2c: E2 17 00 [17:45:25]MH_I2C_Read... [17:45:25]Read from MH i2c: E2 17 00 0A 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DD [17:45:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:45:25]wFMCommunicate OK [17:45:25]CreateOFDProtocolMessage done [17:45:25]OFDSenderStorePacket 193020 [17:45:25]StoreOFDPacket docnum=193020 [17:45: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 D8 AB 07 01 88 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 E2 00 00 00 F4 03 04 00 33 1F 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 75 39 C3 28 7E BC D8 98 A0 AD 19 C8 95 84 [17:45:25]CheckFolder [17:45:25]dirname=/storage/ofd_packets [17:45:25]CheckFolder done [17:45:25]ProducePacketName [17:45:25]name=ofd_packets/00193020 [17:45:25]NVStorageSaveData ofd_packets/00193020 [17:45:25]File name is /storage/ofd_packets/00193020 [17:45:25]Write 301 bytes [17:45:25]NVStorageSaveData done [17:45:25]OFDSenderStorePacket done [17:45:25]KKMCreateOFDPacket done [17:45:25]NVStorageSaveData kkm_last_timestamp [17:45:25]File name is /storage/kkm_last_timestamp [17:45:25]Write 4 bytes [17:45:25]NVStorageSaveData done [17:45:25]ExternCall_PrintAddStr [17:45:25]wPrintStart [17:45:25]Write to MH i2c: 01 00 00 0B 06 11 [17:45:25]Write i2c OK [17:45:25]MH_I2C_Read... [17:45:25]Read from MH i2c: 01 [17:45:25]MH_I2C_Read... [17:45:25]Read from MH i2c: 01 07 00 [17:45:25]MH_I2C_Read... [17:45:25]Read from MH i2c: 01 07 00 0B 06 00 00 00 00 00 FF 0F 26 [17:45:25]RasterBufferAndPrint [17:45:25]line Счет N : (1)32351 [17:45:25]line ИÐÐ: 02508201610067 [17:45:25]line Контрольно-КаÑÑовый Чек [17:45:25]line ПРОДÐЖР[17:45:25]line ТРК (МРК, ГÐК) : 21 [17:45:25]line Товар: 2710124130 [17:45:25]line Ðи-92-К-5 [17:45:25]line 7.480 * 66.90 [17:45:25]line = 500.41 [17:45:25]line ÐДС 12% ÐСП 1% [17:45:25]line > о реализуемом товаре [17:45:25]line ОКРУГЛЕÐИЕ: -0.41 [17:45:25]line ИТОГО: 500.00 [17:45:25]line ВнеÑено: 500.00 [17:45:25]line СДÐЧÐ: 0.00 [17:45:25]line ÐСП 1% : 4.43 [17:45:25]line ÐДС 12% : 53.14 [17:45:25]line Ðаличными: 500.00 [17:45:25]line Безнал.: 0.00 [17:45:25]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [17:45:25]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [17:45:25]line СÐО: Общий режим [17:45:25]line Чек 226 29.10.2024 17:45 [17:45:25]line Смена: 544 ФФД: 1.0 [17:45:25]line ЗÐМ: 0300000110 [17:45:25]line РÐМ: 0000000000091776 [17:45:25]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [17:45:25]line ФМ: 0000000000871754 [17:45:25]line ФД: 193020 [17:45:25]line ФПД: 128890947796668 [17:45:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T174523&type=1&operation_type=1&fn_number=0000000000871754&fd_number=193020&fm=128890947796668&tin=02508201610067®Number=0000000000091776&sum=50000 [17:45:25]written 0, free lines is 4095 [17:45:25]OFD Sender: Processing packet 193020 [packets to send 75, broken 74] [17:45:25]ProducePacketName [17:45:25]name=ofd_packets/00193020 [17:45:25]OFD Sender: To server: ‡•öpG, [17:45:25]CommunicateWithHost lk.salyk.kg:30040 [17:45:25]ConnectInit lk.salyk.kg [17:45:25]Connected sock=11 [17:45: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 D8 AB 07 01 88 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 E2 00 00 00 F4 03 04 00 33 1F 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 75 39 C3 28 7E BC D8 98 A0 AD 19 C8 95 84 [17:45:25]Write to MH i2c: 01 00 00 36 06 3C [17:45:25]Write i2c OK [17:45:25]MH_I2C_Read... [17:45:25]Read from MH i2c: 01 [17:45:25]MH_I2C_Read... [17:45:25]Read from MH i2c: 01 07 00 [17:45:25]MH_I2C_Read... [17:45:25]Read from MH i2c: 01 07 00 36 06 00 00 00 00 00 D5 0C 24 [17:45:25]RasterBufferAndPrint [17:45:25]line [17:45:25]line [17:45:25]line [17:45:25]line [17:45:25]line [17:45:25]written 0, free lines is 3323 [17:45:25]MH_Cut [17:45:25]Write to MH i2c: D1 01 00 3D 06 01 15 [17:45:25]Write i2c OK [17:45:25]MH_I2C_Read... [17:45:25]Read from MH i2c: D1 [17:45:25]MH_I2C_Read... [17:45:25]Read from MH i2c: D1 01 00 [17:45:25]MH_I2C_Read... [17:45: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 74 1C 47 00 F9 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 FC F1 02 00 F4 03 04 00 F4 C3 20 67 B6 04 01 00 00 4E CC E9 A1 70 9B 27 54 [17:45:26]CommunicateWithHost err = 0 [17:45:26]CheckOFDResponse [17:45:26]1017 (14) - 77093643461234 [17:45:26]1041 (16) - 0000000000871754 [17:45:26]1040 (4) - 193020 [17:45:26]1012 (4) - 29.10.2024 11:16 [17:45:26]1206 (1) - 0 [17:45:26]OFD Sender: Remove packet 193020 [17:45:26]ProducePacketName [17:45:26]name=ofd_packets/00193020 [17:45:26]NVStorageDeleteData [17:45:26]Read from MH i2c: D1 01 00 3D 06 00 14 [17:45:26]Write to MH i2c: 01 00 00 3E 06 44 [17:45:26]Write i2c OK [17:45:26]MH_I2C_Read... [17:45:26]OFD Sender: No OFD packet to send [17:45:26]*** Cut start [17:45:26]*** Partial cut [17:45:26]*** CUTSNS_PIN = 1 [17:45:26]*** CUTSNS_PIN = 0 [17:45:26]*** Brake cut motor [17:45:27]Read from MH i2c: 01 [17:45:27]MH_I2C_Read... [17:45:27]*** Stop cut motor [17:45:27]*** Cut end [17:45:27]Read from MH i2c: 01 07 00 [17:45:27]MH_I2C_Read... [17:45:27]Read from MH i2c: 01 07 00 3E 06 00 00 00 00 00 FF 0F 59 [17:45:27]process_action close_receipt done [17:45:27]requested_data is exist [17:45:27]produce_requested_data [17:45:27]requested_item fm.sn is exist - process it [17:45:27]wFMCommunicate request_size=4 [17:45:27]MH_SAM_APDU [17:45:27]CAPDU: 80 11 00 00 [17:45:27]Write to MH i2c: E2 08 00 3F 06 80 11 00 00 00 00 00 00 BF [17:45:27]Write i2c OK [17:45:27]MH_I2C_Read... [17:45:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:27]Read from MH i2c: E2 [17:45:27]MH_I2C_Read... [17:45:27]Read from MH i2c: E2 17 00 [17:45:27]MH_I2C_Read... [17:45:27]Read from MH i2c: E2 17 00 3F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 12 [17:45: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:45:27]wFMCommunicate OK [17:45:27]requested_item fd.num is exist - process it [17:45:27]SAM_PROTO_GetFieldsCounters [17:45:27]wFMCommunicate request_size=4 [17:45:27]MH_SAM_APDU [17:45:27]CAPDU: 80 13 00 00 [17:45:27]Write to MH i2c: E2 08 00 40 06 80 13 00 00 00 00 00 00 C2 [17:45:27]Write i2c OK [17:45:27]MH_I2C_Read... [17:45:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:45:27]Read from MH i2c: E2 [17:45:27]MH_I2C_Read... [17:45:27]Read from MH i2c: E2 62 00 [17:45:27]MH_I2C_Read... [17:45:27]Read from MH i2c: E2 62 00 40 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 FC F1 02 00 0E 04 04 00 20 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 9F [17:45: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 FC F1 02 00 0E 04 04 00 20 02 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:45:27]wFMCommunicate OK [17:45:27]SAM_PROTO_GetFieldsCounters done [17:45:27]requested_item shift.num is exist - process it [17:45:27]requested_item shift.opened is exist - process it [17:45:27]req_shift_opened [17:45:27]FM_GetShiftState [17:45:27]SAM_PROTO_GetShiftState [17:45:27]wFMCommunicate request_size=4 [17:45:27]MH_SAM_APDU [17:45:27]CAPDU: 80 13 01 00 [17:45:27]Write to MH i2c: E2 08 00 41 06 80 13 01 00 00 00 00 00 C4 [17:45:27]Write i2c OK [17:45:27]MH_I2C_Read... [17:45:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:27]Read from MH i2c: E2 [17:45:27]MH_I2C_Read... [17:45:27]Read from MH i2c: E2 0E 00 [17:45:27]MH_I2C_Read... [17:45:27]Read from MH i2c: E2 0E 00 41 06 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 CA [17:45:27]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [17:45:27]wFMCommunicate OK [17:45:27]SAM_PROTO_GetShiftState done [17:45:27]FM_GetShiftState done [17:45:27]req_shift_opened done [17:45:27]requested_item shift.open_date is exist - process it [17:45:27]req_shift_open_date [17:45:27]req_shift_open_date done [17:45:27]produce_requested_data done [17:45:27]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":193020,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [17:45:27]process_action_free close_receipt [17:45:27]json_value_free [17:45:27]json_value_free done [17:45:27]process_json_proto returns [17:45:27]Send response to host [17:45:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":193020,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [17:45:27]free response buf [17:45:27]execute_script done [17:45:27]execute_script returns [17:45:27]free content buf [17:45:27]Sock 10.Close socket [17:45:27]Sock 10.Thread stoped [17:45:31]OFD Sender: No OFD packet to send [17:45:36]OFD Sender: No OFD packet to send [17:45:41]OFD Sender: No OFD packet to send [17:45:46]OFD Sender: No OFD packet to send [17:45:51]OFD Sender: No OFD packet to send [17:45:56]OFD Sender: No OFD packet to send [17:46:01]OFD Sender: No OFD packet to send [17:46:06]OFD Sender: No OFD packet to send [17:46:11]OFD Sender: No OFD packet to send [17:46:12]accept exits with 9 [17:46:12]New connection [17:46:12]New thread 3067207012 created [17:46:12]Thread 3067350372 joined [17:46:12]Waiting for new connection... [17:46:12] Sock 9.Parse request [17:46:12]Sock 9.Check first char [17:46:12]Sock 9.First char is OK [17:46:12]request: POST /json_proto HTTP/1.0 [17:46:12]Method: POST [17:46:12]URL: /json_proto [17:46:12]Method is POST - this is cgi request [17:46:12]url: /json_proto [17:46:12]query_string will be loaded in cgi processing [17:46:12]execute_cgi json_proto POST (null) [17:46:12]execute_cgi path=json_proto method=POST [17:46:12]POST find Content-Length [17:46:12]Host: 172.17.63.131:8080 [17:46:12]Content-Length: 676 [17:46:12]Content-Type: application/json [17:46:12] [17:46:12]POST finish read [17:46:12]Found Content-Length = 676 [17:46:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32352", "tax_sys" : 0, "items" : [ { "pre_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" ] } } [17:46:12]execute_script... [17:46: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)32352", "tax_sys" : 0, "items" : [ { "pre_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" ] } } [17:46:12]POST & json_proto [17:46:12]process_json_proto [17:46:12]json parsed OK: [17:46:12]protocol is kg_v1.0 [17:46:12]action value=close_receipt [17:46:12]process_action close_receipt [17:46:12]cmd_close_receipt [17:46:12]MH_GetDate [17:46:12]Write to MH i2c: F0 00 00 42 06 37 [17:46:12]Write i2c OK [17:46:12]MH_I2C_Read... [17:46:12]Read from MH i2c: F0 [17:46:12]MH_I2C_Read... [17:46:12]Read from MH i2c: F0 09 00 [17:46:12]MH_I2C_Read... [17:46:12]Read from MH i2c: F0 09 00 42 06 00 64 1F 21 67 22 05 6E 64 44 [17:46:12]GetLastDocTimeStamp 1730223923 [17:46:12]current date 1730223972 [17:46:12]FM_GetShiftState [17:46:12]SAM_PROTO_GetShiftState [17:46:12]wFMCommunicate request_size=4 [17:46:12]MH_SAM_APDU [17:46:12]CAPDU: 80 13 01 00 [17:46:12]Write to MH i2c: E2 08 00 43 06 80 13 01 00 00 00 00 00 C6 [17:46:12]Write i2c OK [17:46:12]MH_I2C_Read... [17:46:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:12]Read from MH i2c: E2 [17:46:12]MH_I2C_Read... [17:46:12]Read from MH i2c: E2 0E 00 [17:46:12]MH_I2C_Read... [17:46:12]Read from MH i2c: E2 0E 00 43 06 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 CC [17:46:12]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [17:46:12]wFMCommunicate OK [17:46:12]SAM_PROTO_GetShiftState done [17:46:12]FM_GetShiftState done [17:46:12]opened in 1730161990 [17:46:12]opened+sec_in_day 1730248390 [17:46:12]quantity*price = 20003 [17:46:12]sum+1 = 20004 [17:46: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 СÐО: Общий режим Чек 227 29.10.2024 17:46 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 193021 ФПД: 23109307208200 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T174613&type=1&operation_type=1&fn_number=0000000000871754&fd_number=193021&fm=23109307208200&tin=02508201610067®Number=0000000000091776&sum=20000 [17:46:13]StoreToDocumentArchive [17:46:13]shift 544 fd 193021 [17:46:13]save to /storage/0544/doc_00193021 [17:46:13]save last doc name /storage/0544/doc_00193021 to /storage/kkm_last_doc_name [17:46:13]save OK [17:46:13]Clear old archive folders... [17:46:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:46:13]tlvbuf is 00B1C190 [17:46:13]SAM_PROTO_ClearQueue [17:46:13]wFMCommunicate request_size=4 [17:46:13]MH_SAM_APDU [17:46:13]CAPDU: 80 09 00 00 [17:46:13]Write to MH i2c: E2 08 00 50 06 80 09 00 00 00 00 00 00 C8 [17:46:13]Write i2c OK [17:46:13]MH_I2C_Read... [17:46:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:46:13]Read from MH i2c: E2 [17:46:13]MH_I2C_Read... [17:46:13]Read from MH i2c: E2 03 00 [17:46:13]MH_I2C_Read... [17:46:13]Read from MH i2c: E2 03 00 50 06 00 90 00 CA [17:46:13]RAPDU: 90 00 [17:46:13]wFMCommunicate OK [17:46:13]SAM_PROTO_ClearQueue done [17:46:13]KKMCreateOFDPacket [17:46:13]OFDProtocolAddRootSTLVToBuf [17:46:13]FM_MakeSignedData [17:46:13]FM_MakeSignedData [17:46:13]SAM_PROTO_SignData [17:46:13]wFMCommunicate request_size=4 [17:46:13]MH_SAM_APDU [17:46:13]CAPDU: 80 0D 01 02 [17:46:13]Write to MH i2c: E2 08 00 51 06 80 0D 01 02 00 00 00 00 D0 [17:46:13]Write i2c OK [17:46:13]MH_I2C_Read... [17:46:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:46:14]Read from MH i2c: E2 [17:46:14]MH_I2C_Read... [17:46:14]Read from MH i2c: E2 03 00 [17:46:14]MH_I2C_Read... [17:46:14]Read from MH i2c: E2 03 00 51 06 00 90 00 CB [17:46:14]RAPDU: 90 00 [17:46:14]wFMCommunicate OK [17:46:14]wFMCommunicate request_size=255 [17:46:14]MH_SAM_APDU [17:46: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 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 E3 00 00 00 F4 03 04 00 65 1F 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 15 [17:46:14]Write to MH i2c: E2 02 01 52 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 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 E3 00 00 00 F4 03 04 00 65 1F 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 15 00 00 3C [17:46:14]Write i2c OK [17:46:14]MH_I2C_Read... [17:46:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:14]Read from MH i2c: E2 [17:46:14]MH_I2C_Read... [17:46:14]Read from MH i2c: E2 03 00 [17:46:14]MH_I2C_Read... [17:46:14]Read from MH i2c: E2 03 00 52 06 00 90 00 CC [17:46:14]RAPDU: 90 00 [17:46:14]wFMCommunicate OK [17:46:14]wFMCommunicate request_size=10 [17:46:14]MH_SAM_APDU [17:46:14]CAPDU: 80 0D 02 02 05 04 8E 0C 12 08 [17:46:14]Write to MH i2c: E2 0D 00 53 06 80 0D 02 02 05 00 04 8E 0C 12 08 00 00 95 [17:46:14]Write i2c OK [17:46:14]MH_I2C_Read... [17:46:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:14]Read from MH i2c: E2 [17:46:14]MH_I2C_Read... [17:46:14]Read from MH i2c: E2 03 00 [17:46:14]MH_I2C_Read... [17:46:14]Read from MH i2c: E2 03 00 53 06 00 90 00 CD [17:46:14]RAPDU: 90 00 [17:46:14]wFMCommunicate OK [17:46:14]wFMCommunicate request_size=4 [17:46:14]MH_SAM_APDU [17:46:14]CAPDU: 80 0D 03 02 [17:46:14]Write to MH i2c: E2 08 00 54 06 80 0D 03 02 00 00 00 00 D5 [17:46:14]Write i2c OK [17:46:14]MH_I2C_Read... [17:46:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:46:14]Read from MH i2c: E2 [17:46:14]MH_I2C_Read... [17:46:14]Read from MH i2c: E2 0B 00 [17:46:14]MH_I2C_Read... [17:46:14]Read from MH i2c: E2 0B 00 54 06 00 EF F3 03 32 83 09 77 BD 90 00 AD [17:46:14]RAPDU: EF F3 03 32 83 09 77 BD 90 00 [17:46:14]wFMCommunicate OK [17:46:14]SAM_PROTO_SignData done [17:46:14]FM_MakeSignedData done [17:46:14]CreateOFDProtocolMessage [17:46:14]wFMCommunicate request_size=4 [17:46:14]MH_SAM_APDU [17:46:14]CAPDU: 80 11 00 00 [17:46:14]Write to MH i2c: E2 08 00 55 06 80 11 00 00 00 00 00 00 D5 [17:46:14]Write i2c OK [17:46:14]MH_I2C_Read... [17:46:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:14]Read from MH i2c: E2 [17:46:14]MH_I2C_Read... [17:46:14]Read from MH i2c: E2 17 00 [17:46:14]MH_I2C_Read... [17:46:14]Read from MH i2c: E2 17 00 55 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 28 [17:46:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:46:14]wFMCommunicate OK [17:46:14]CreateOFDProtocolMessage done [17:46:14]OFDSenderStorePacket 193021 [17:46:14]StoreOFDPacket docnum=193021 [17:46: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 ED 2C 07 01 A7 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 E3 00 00 00 F4 03 04 00 65 1F 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 15 04 8E 0C 12 08 EF F3 03 32 83 09 77 BD [17:46:14]CheckFolder [17:46:14]dirname=/storage/ofd_packets [17:46:15]CheckFolder done [17:46:15]ProducePacketName [17:46:15]name=ofd_packets/00193021 [17:46:15]NVStorageSaveData ofd_packets/00193021 [17:46:15]File name is /storage/ofd_packets/00193021 [17:46:15]Write 301 bytes [17:46:15]NVStorageSaveData done [17:46:15]OFDSenderStorePacket done [17:46:15]KKMCreateOFDPacket done [17:46:15]NVStorageSaveData kkm_last_timestamp [17:46:15]File name is /storage/kkm_last_timestamp [17:46:15]Write 4 bytes [17:46:15]NVStorageSaveData done [17:46:15]ExternCall_PrintAddStr [17:46:15]wPrintStart [17:46:15]Write to MH i2c: 01 00 00 56 06 5C [17:46:15]Write i2c OK [17:46:15]MH_I2C_Read... [17:46:15]Read from MH i2c: 01 [17:46:15]MH_I2C_Read... [17:46:15]Read from MH i2c: 01 07 00 [17:46:15]MH_I2C_Read... [17:46:15]Read from MH i2c: 01 07 00 56 06 00 00 00 00 00 FF 0F 71 [17:46:15]RasterBufferAndPrint [17:46:15]line Счет N : (1)32352 [17:46:15]line ИÐÐ: 02508201610067 [17:46:15]line Контрольно-КаÑÑовый Чек [17:46:15]line ПРОДÐЖР[17:46:15]line ТРК (МРК, ГÐК) : 21 [17:46:15]line Товар: 2710124130 [17:46:15]line Ðи-92-К-5 [17:46:15]line 2.990 * 66.90 [17:46:15]line = 200.03 [17:46:15]line ÐДС 12% ÐСП 1% [17:46:15]line > о реализуемом товаре [17:46:15]line ОКРУГЛЕÐИЕ: -0.03 [17:46:15]line ИТОГО: 200.00 [17:46:15]line ВнеÑено: 200.00 [17:46:15]line СДÐЧÐ: 0.00 [17:46:15]line ÐСП 1% : 1.77 [17:46:15]line ÐДС 12% : 21.24 [17:46:15]line Ðаличными: 200.00 [17:46:15]line Безнал.: 0.00 [17:46:15]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [17:46:15]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [17:46:15]line СÐО: Общий режим [17:46:15]line Чек 227 29.10.2024 17:46 [17:46:15]line Смена: 544 ФФД: 1.0 [17:46:15]line ЗÐМ: 0300000110 [17:46:15]line РÐМ: 0000000000091776 [17:46:15]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [17:46:15]line ФМ: 0000000000871754 [17:46:15]line ФД: 193021 [17:46:15]line ФПД: 23109307208200 [17:46:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T174613&type=1&operation_type=1&fn_number=0000000000871754&fd_number=193021&fm=23109307208200&tin=02508201610067®Number=0000000000091776&sum=20000 [17:46:15]written 0, free lines is 4095 [17:46:15]OFD Sender: Processing packet 193021 [packets to send 75, broken 74] [17:46:15]ProducePacketName [17:46:15]name=ofd_packets/00193021 [17:46:15]OFD Sender: To server: ‡•öpG, [17:46:15]CommunicateWithHost lk.salyk.kg:30040 [17:46:15]ConnectInit lk.salyk.kg [17:46:15]Connected sock=11 [17:46: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 ED 2C 07 01 A7 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 E3 00 00 00 F4 03 04 00 65 1F 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 15 04 8E 0C 12 08 EF F3 03 32 83 09 77 BD [17:46:15]Write to MH i2c: 01 00 00 81 06 87 [17:46:15]Write i2c OK [17:46:15]MH_I2C_Read... [17:46:15]Read from MH i2c: 01 [17:46:15]MH_I2C_Read... [17:46:15]Read from MH i2c: 01 07 00 [17:46:15]MH_I2C_Read... [17:46:15]Read from MH i2c: 01 07 00 81 06 00 00 00 00 00 FF 0C 99 [17:46:15]RasterBufferAndPrint [17:46:15]line [17:46:15]line [17:46:15]line [17:46:15]line [17:46:15]line [17:46:15]written 0, free lines is 3369 [17:46:15]MH_Cut [17:46:15]Write to MH i2c: D1 01 00 88 06 01 60 [17:46:15]Write i2c OK [17:46:15]MH_I2C_Read... [17:46:15]Read from MH i2c: D1 [17:46:15]MH_I2C_Read... [17:46:15]Read from MH i2c: D1 01 00 [17:46:15]MH_I2C_Read... [17:46:15]Read from MH i2c: D1 01 00 88 06 00 5F [17:46:15]Write to MH i2c: 01 00 00 89 06 8F [17:46:15]Write i2c OK [17:46:15]MH_I2C_Read... [17:46: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 51 11 47 00 91 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 FD F1 02 00 F4 03 04 00 25 C4 20 67 B6 04 01 00 00 36 E7 B7 F5 C0 9B 60 38 [17:46:15]CommunicateWithHost err = 0 [17:46:15]CheckOFDResponse [17:46:15]1017 (14) - 77093643461234 [17:46:15]1041 (16) - 0000000000871754 [17:46:15]1040 (4) - 193021 [17:46:15]1012 (4) - 29.10.2024 11:16 [17:46:15]1206 (1) - 0 [17:46:15]OFD Sender: Remove packet 193021 [17:46:15]ProducePacketName [17:46:15]name=ofd_packets/00193021 [17:46:15]NVStorageDeleteData [17:46:16]*** Cut start [17:46:16]*** Partial cut [17:46:16]*** CUTSNS_PIN = 1 [17:46:16]OFD Sender: No OFD packet to send [17:46:16]*** CUTSNS_PIN = 0 [17:46:16]*** Brake cut motor [17:46:16]Read from MH i2c: 01 [17:46:16]MH_I2C_Read... [17:46:16]*** Stop cut motor [17:46:16]*** Cut end [17:46:17]Read from MH i2c: 01 07 00 [17:46:17]MH_I2C_Read... [17:46:17]Read from MH i2c: 01 07 00 89 06 00 00 00 00 00 FF 0F A4 [17:46:17]process_action close_receipt done [17:46:17]requested_data is exist [17:46:17]produce_requested_data [17:46:17]requested_item fm.sn is exist - process it [17:46:17]wFMCommunicate request_size=4 [17:46:17]MH_SAM_APDU [17:46:17]CAPDU: 80 11 00 00 [17:46:17]Write to MH i2c: E2 08 00 8A 06 80 11 00 00 00 00 00 00 0A [17:46:17]Write i2c OK [17:46:17]MH_I2C_Read... [17:46:17]Read from MH i2c: E2 [17:46:17]MH_I2C_Read... [17:46:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:17]Read from MH i2c: E2 17 00 [17:46:17]MH_I2C_Read... [17:46:17]Read from MH i2c: E2 17 00 8A 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5D [17:46:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:46:17]wFMCommunicate OK [17:46:17]requested_item fd.num is exist - process it [17:46:17]SAM_PROTO_GetFieldsCounters [17:46:17]wFMCommunicate request_size=4 [17:46:17]MH_SAM_APDU [17:46:17]CAPDU: 80 13 00 00 [17:46:17]Write to MH i2c: E2 08 00 8B 06 80 13 00 00 00 00 00 00 0D [17:46:17]Write i2c OK [17:46:17]MH_I2C_Read... [17:46:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:46:17]Read from MH i2c: E2 [17:46:17]MH_I2C_Read... [17:46:17]Read from MH i2c: E2 62 00 [17:46:17]MH_I2C_Read... [17:46:17]Read from MH i2c: E2 62 00 8B 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 FD F1 02 00 0E 04 04 00 20 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 EE [17:46: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 FD F1 02 00 0E 04 04 00 20 02 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:46:17]wFMCommunicate OK [17:46:17]SAM_PROTO_GetFieldsCounters done [17:46:17]requested_item shift.num is exist - process it [17:46:17]requested_item shift.opened is exist - process it [17:46:17]req_shift_opened [17:46:17]FM_GetShiftState [17:46:17]SAM_PROTO_GetShiftState [17:46:17]wFMCommunicate request_size=4 [17:46:17]MH_SAM_APDU [17:46:17]CAPDU: 80 13 01 00 [17:46:17]Write to MH i2c: E2 08 00 8C 06 80 13 01 00 00 00 00 00 0F [17:46:17]Write i2c OK [17:46:17]MH_I2C_Read... [17:46:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:17]Read from MH i2c: E2 [17:46:17]MH_I2C_Read... [17:46:17]Read from MH i2c: E2 0E 00 [17:46:17]MH_I2C_Read... [17:46:17]Read from MH i2c: E2 0E 00 8C 06 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 15 [17:46:17]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [17:46:17]wFMCommunicate OK [17:46:17]SAM_PROTO_GetShiftState done [17:46:17]FM_GetShiftState done [17:46:17]req_shift_opened done [17:46:17]requested_item shift.open_date is exist - process it [17:46:17]req_shift_open_date [17:46:17]req_shift_open_date done [17:46:17]produce_requested_data done [17:46:17]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":193021,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [17:46:17]process_action_free close_receipt [17:46:17]json_value_free [17:46:17]json_value_free done [17:46:17]process_json_proto returns [17:46:17]Send response to host [17:46:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":193021,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [17:46:17]free response buf [17:46:17]execute_script done [17:46:17]execute_script returns [17:46:17]free content buf [17:46:17]Sock 9.Close socket [17:46:17]Sock 9.Thread stoped [17:46:21]OFD Sender: No OFD packet to send [17:46:26]OFD Sender: No OFD packet to send [17:46:31]OFD Sender: No OFD packet to send [17:46:36]OFD Sender: No OFD packet to send [17:46:41]OFD Sender: No OFD packet to send [17:46:46]OFD Sender: No OFD packet to send [17:46:51]OFD Sender: No OFD packet to send [17:46:52]accept exits with 10 [17:46:52]New connection [17:46:52]New thread 3067350372 created [17:46:52]Thread 3067207012 joined [17:46:52]Waiting for new connection... [17:46:52] Sock 10.Parse request [17:46:52]Sock 10.Check first char [17:46:52]Sock 10.First char is OK [17:46:52]request: POST /json_proto HTTP/1.0 [17:46:52]Method: POST [17:46:52]URL: /json_proto [17:46:52]Method is POST - this is cgi request [17:46:52]url: /json_proto [17:46:52]query_string will be loaded in cgi processing [17:46:52]execute_cgi json_proto POST (null) [17:46:52]execute_cgi path=json_proto method=POST [17:46:52]POST find Content-Length [17:46:52]Host: 172.17.63.131:8080 [17:46:52]Content-Length: 676 [17:46:52]Content-Type: application/json [17:46:52] [17:46:52]POST finish read [17:46:52]Found Content-Length = 676 [17:46:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32353", "tax_sys" : 0, "items" : [ { "pre_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:46:52]execute_script... [17:46: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)32353", "tax_sys" : 0, "items" : [ { "pre_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:46:52]POST & json_proto [17:46:52]process_json_proto [17:46:52]json parsed OK: [17:46:52]protocol is kg_v1.0 [17:46:52]action value=close_receipt [17:46:52]process_action close_receipt [17:46:52]cmd_close_receipt [17:46:52]MH_GetDate [17:46:52]Write to MH i2c: F0 00 00 8D 06 82 [17:46:52]Write i2c OK [17:46:52]MH_I2C_Read... [17:46:52]Read from MH i2c: F0 [17:46:52]MH_I2C_Read... [17:46:52]Read from MH i2c: F0 09 00 [17:46:52]MH_I2C_Read... [17:46:52]Read from MH i2c: F0 09 00 8D 06 00 8C 1F 21 67 22 05 6E 64 B7 [17:46:52]GetLastDocTimeStamp 1730223973 [17:46:52]current date 1730224012 [17:46:52]FM_GetShiftState [17:46:52]SAM_PROTO_GetShiftState [17:46:52]wFMCommunicate request_size=4 [17:46:52]MH_SAM_APDU [17:46:52]CAPDU: 80 13 01 00 [17:46:52]Write to MH i2c: E2 08 00 8E 06 80 13 01 00 00 00 00 00 11 [17:46:52]Write i2c OK [17:46:52]MH_I2C_Read... [17:46:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:52]Read from MH i2c: E2 [17:46:52]MH_I2C_Read... [17:46:52]Read from MH i2c: E2 0E 00 [17:46:52]MH_I2C_Read... [17:46:52]Read from MH i2c: E2 0E 00 8E 06 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 17 [17:46:52]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [17:46:52]wFMCommunicate OK [17:46:52]SAM_PROTO_GetShiftState done [17:46:52]FM_GetShiftState done [17:46:52]opened in 1730161990 [17:46:52]opened+sec_in_day 1730248390 [17:46:52]quantity*price = 30038 [17:46:52]sum+1 = 30039 [17:46:52]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 СÐО: Общий режим Чек 228 29.10.2024 17:46 Смена: 544 ФФД: 1.0 ЗÐМ: 0300000110 РÐМ: 0000000000091776 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000871754 ФД: 193022 ФПД: 216462336079241 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T174653&type=1&operation_type=1&fn_number=0000000000871754&fd_number=193022&fm=216462336079241&tin=02508201610067®Number=0000000000091776&sum=30000 [17:46:53]StoreToDocumentArchive [17:46:53]shift 544 fd 193022 [17:46:53]save to /storage/0544/doc_00193022 [17:46:53]save last doc name /storage/0544/doc_00193022 to /storage/kkm_last_doc_name [17:46:53]save OK [17:46:53]Clear old archive folders... [17:46:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:46:53]tlvbuf is 00BEB2A0 [17:46:53]SAM_PROTO_ClearQueue [17:46:53]wFMCommunicate request_size=4 [17:46:53]MH_SAM_APDU [17:46:53]CAPDU: 80 09 00 00 [17:46:53]Write to MH i2c: E2 08 00 9B 06 80 09 00 00 00 00 00 00 13 [17:46:54]Write i2c OK [17:46:54]MH_I2C_Read... [17:46:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:46:54]Read from MH i2c: E2 [17:46:54]MH_I2C_Read... [17:46:54]Read from MH i2c: E2 03 00 [17:46:54]MH_I2C_Read... [17:46:54]Read from MH i2c: E2 03 00 9B 06 00 90 00 15 [17:46:54]RAPDU: 90 00 [17:46:54]wFMCommunicate OK [17:46:54]SAM_PROTO_ClearQueue done [17:46:54]KKMCreateOFDPacket [17:46:54]OFDProtocolAddRootSTLVToBuf [17:46:54]FM_MakeSignedData [17:46:54]FM_MakeSignedData [17:46:54]SAM_PROTO_SignData [17:46:54]wFMCommunicate request_size=4 [17:46:54]MH_SAM_APDU [17:46:54]CAPDU: 80 0D 01 02 [17:46:54]Write to MH i2c: E2 08 00 9C 06 80 0D 01 02 00 00 00 00 1B [17:46:54]Write i2c OK [17:46:54]MH_I2C_Read... [17:46:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:46:54]Read from MH i2c: E2 [17:46:54]MH_I2C_Read... [17:46:54]Read from MH i2c: E2 03 00 [17:46:54]MH_I2C_Read... [17:46:54]Read from MH i2c: E2 03 00 9C 06 00 90 00 16 [17:46:54]RAPDU: 90 00 [17:46:54]wFMCommunicate OK [17:46:54]wFMCommunicate request_size=255 [17:46:54]MH_SAM_APDU [17:46: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 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 E4 00 00 00 F4 03 04 00 8D 1F 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 C4 [17:46:54]Write to MH i2c: E2 02 01 9D 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 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 E4 00 00 00 F4 03 04 00 8D 1F 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 C4 00 00 92 [17:46:54]Write i2c OK [17:46:54]MH_I2C_Read... [17:46:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:54]Read from MH i2c: E2 [17:46:54]MH_I2C_Read... [17:46:54]Read from MH i2c: E2 03 00 [17:46:54]MH_I2C_Read... [17:46:54]Read from MH i2c: E2 03 00 9D 06 00 90 00 17 [17:46:54]RAPDU: 90 00 [17:46:54]wFMCommunicate OK [17:46:54]wFMCommunicate request_size=10 [17:46:54]MH_SAM_APDU [17:46:54]CAPDU: 80 0D 02 02 05 DF 10 A6 35 89 [17:46:54]Write to MH i2c: E2 0D 00 9E 06 80 0D 02 02 05 00 DF 10 A6 35 89 00 00 7B [17:46:54]Write i2c OK [17:46:54]MH_I2C_Read... [17:46:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:54]Read from MH i2c: E2 [17:46:54]MH_I2C_Read... [17:46:54]Read from MH i2c: E2 03 00 [17:46:54]MH_I2C_Read... [17:46:54]Read from MH i2c: E2 03 00 9E 06 00 90 00 18 [17:46:54]RAPDU: 90 00 [17:46:54]wFMCommunicate OK [17:46:54]wFMCommunicate request_size=4 [17:46:54]MH_SAM_APDU [17:46:54]CAPDU: 80 0D 03 02 [17:46:54]Write to MH i2c: E2 08 00 9F 06 80 0D 03 02 00 00 00 00 20 [17:46:55]Write i2c OK [17:46:55]MH_I2C_Read... [17:46:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:46:55]Read from MH i2c: E2 [17:46:55]MH_I2C_Read... [17:46:55]Read from MH i2c: E2 0B 00 [17:46:55]MH_I2C_Read... [17:46:55]Read from MH i2c: E2 0B 00 9F 06 00 52 F3 85 7C E2 27 B3 6B 90 00 8E [17:46:55]RAPDU: 52 F3 85 7C E2 27 B3 6B 90 00 [17:46:55]wFMCommunicate OK [17:46:55]SAM_PROTO_SignData done [17:46:55]FM_MakeSignedData done [17:46:55]CreateOFDProtocolMessage [17:46:55]wFMCommunicate request_size=4 [17:46:55]MH_SAM_APDU [17:46:55]CAPDU: 80 11 00 00 [17:46:55]Write to MH i2c: E2 08 00 A0 06 80 11 00 00 00 00 00 00 20 [17:46:55]Write i2c OK [17:46:55]MH_I2C_Read... [17:46:55]Read from MH i2c: E2 [17:46:55]MH_I2C_Read... [17:46:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:55]Read from MH i2c: E2 17 00 [17:46:55]MH_I2C_Read... [17:46:55]Read from MH i2c: E2 17 00 A0 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 73 [17:46: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:46:55]wFMCommunicate OK [17:46:55]CreateOFDProtocolMessage done [17:46:55]OFDSenderStorePacket 193022 [17:46:55]StoreOFDPacket docnum=193022 [17:46: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 0A 0E 07 01 F1 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 E4 00 00 00 F4 03 04 00 8D 1F 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 C4 DF 10 A6 35 89 52 F3 85 7C E2 27 B3 6B [17:46:55]CheckFolder [17:46:55]dirname=/storage/ofd_packets [17:46:55]CheckFolder done [17:46:55]ProducePacketName [17:46:55]name=ofd_packets/00193022 [17:46:55]NVStorageSaveData ofd_packets/00193022 [17:46:55]File name is /storage/ofd_packets/00193022 [17:46:55]Write 301 bytes [17:46:55]NVStorageSaveData done [17:46:55]OFDSenderStorePacket done [17:46:55]KKMCreateOFDPacket done [17:46:55]NVStorageSaveData kkm_last_timestamp [17:46:55]File name is /storage/kkm_last_timestamp [17:46:55]Write 4 bytes [17:46:55]NVStorageSaveData done [17:46:55]ExternCall_PrintAddStr [17:46:55]wPrintStart [17:46:55]Write to MH i2c: 01 00 00 A1 06 A7 [17:46:55]OFD Sender: Processing packet 193022 [packets to send 75, broken 74] [17:46:55]ProducePacketName [17:46:55]name=ofd_packets/00193022 [17:46:55]OFD Sender: To server: ‡•öpG, [17:46:55]CommunicateWithHost lk.salyk.kg:30040 [17:46:55]ConnectInit lk.salyk.kg [17:46:55]Write i2c OK [17:46:55]MH_I2C_Read... [17:46:55]Read from MH i2c: 01 [17:46:55]MH_I2C_Read... [17:46:55]Read from MH i2c: 01 07 00 [17:46:55]MH_I2C_Read... [17:46:55]Read from MH i2c: 01 07 00 A1 06 00 00 00 00 00 FF 0F BC [17:46:55]RasterBufferAndPrint [17:46:55]line Счет N : (1)32353 [17:46:55]line ИÐÐ: 02508201610067 [17:46:55]line Контрольно-КаÑÑовый Чек [17:46:55]line ПРОДÐЖР[17:46:55]line ТРК (МРК, ГÐК) : 21 [17:46:55]line Товар: 2710124130 [17:46:55]line Ðи-92-К-5 [17:46:55]line 4.490 * 66.90 [17:46:55]line = 300.38 [17:46:55]line ÐДС 12% ÐСП 1% [17:46:55]line > о реализуемом товаре [17:46:55]line ОКРУГЛЕÐИЕ: -0.38 [17:46:55]line ИТОГО: 300.00 [17:46:55]line ВнеÑено: 300.00 [17:46:55]line СДÐЧÐ: 0.00 [17:46:55]line ÐСП 1% : 2.66 [17:46:55]line ÐДС 12% : 31.90 [17:46:55]line Ðаличными: 300.00 [17:46:55]line Безнал.: 0.00 [17:46:55]line МеÑто: ÐЗС â„– 170 "Партнер Ðефть" [17:46:55]line ÐдреÑ: 720001, Ñ. Орукту, траÑÑа Чаткал-Ðла Бука, 40.895315, 73.002522 [17:46:55]line СÐО: Общий режим [17:46:55]line Чек 228 29.10.2024 17:46 [17:46:55]line Смена: 544 ФФД: 1.0 [17:46:55]line ЗÐМ: 0300000110 [17:46:55]line РÐМ: 0000000000091776 [17:46:55]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [17:46:55]line ФМ: 0000000000871754 [17:46:55]line ФД: 193022 [17:46:55]line ФПД: 216462336079241 [17:46:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T174653&type=1&operation_type=1&fn_number=0000000000871754&fd_number=193022&fm=216462336079241&tin=02508201610067®Number=0000000000091776&sum=30000 [17:46:55]written 0, free lines is 4095 [17:46:55]Connected sock=11 [17:46: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 0A 0E 07 01 F1 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 E4 00 00 00 F4 03 04 00 8D 1F 21 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 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 F1 02 00 35 04 06 00 C4 DF 10 A6 35 89 52 F3 85 7C E2 27 B3 6B [17:46:55]Write to MH i2c: 01 00 00 CC 06 D2 [17:46:55]Write i2c OK [17:46:55]MH_I2C_Read... [17:46:55]Read from MH i2c: 01 [17:46:55]MH_I2C_Read... [17:46:55]Read from MH i2c: 01 07 00 [17:46:55]MH_I2C_Read... [17:46:55]Read from MH i2c: 01 07 00 CC 06 00 00 00 00 00 CE 0C B3 [17:46:55]RasterBufferAndPrint [17:46:55]line [17:46:55]line [17:46:55]line [17:46:55]line [17:46:55]line [17:46:55]written 0, free lines is 3333 [17:46:55]MH_Cut [17:46:55]Write to MH i2c: D1 01 00 D3 06 01 AB [17:46:55]Write i2c OK [17:46:55]MH_I2C_Read... [17:46:55]Read from MH i2c: D1 [17:46:55]MH_I2C_Read... [17:46:55]Read from MH i2c: D1 01 00 [17:46:55]MH_I2C_Read... [17:46:55]Read from MH i2c: D1 01 00 D3 06 00 AA [17:46:55]Write to MH i2c: 01 00 00 D4 06 DA [17:46:55]Write i2c OK [17:46:55]MH_I2C_Read... [17:46: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 36 43 47 00 14 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 FE F1 02 00 F4 03 04 00 4E C4 20 67 B6 04 01 00 00 56 CE 92 FA 7F A2 04 05 [17:46:56]CommunicateWithHost err = 0 [17:46:56]CheckOFDResponse [17:46:56]1017 (14) - 77093643461234 [17:46:56]1041 (16) - 0000000000871754 [17:46:56]1040 (4) - 193022 [17:46:56]1012 (4) - 29.10.2024 11:17 [17:46:56]1206 (1) - 0 [17:46:56]OFD Sender: Remove packet 193022 [17:46:56]ProducePacketName [17:46:56]name=ofd_packets/00193022 [17:46:56]NVStorageDeleteData [17:46:56]*** Cut start [17:46:56]*** Partial cut [17:46:56]*** CUTSNS_PIN = 1 [17:46:56]*** CUTSNS_PIN = 0 [17:46:56]OFD Sender: No OFD packet to send [17:46:56]*** Brake cut motor [17:46:57]Read from MH i2c: 01 [17:46:57]MH_I2C_Read... [17:46:57]*** Stop cut motor [17:46:57]*** Cut end [17:46:57]Read from MH i2c: 01 07 00 [17:46:57]MH_I2C_Read... [17:46:57]Read from MH i2c: 01 07 00 D4 06 00 00 00 00 00 FF 0F EF [17:46:57]process_action close_receipt done [17:46:57]requested_data is exist [17:46:57]produce_requested_data [17:46:57]requested_item fm.sn is exist - process it [17:46:57]wFMCommunicate request_size=4 [17:46:57]MH_SAM_APDU [17:46:57]CAPDU: 80 11 00 00 [17:46:57]Write to MH i2c: E2 08 00 D5 06 80 11 00 00 00 00 00 00 55 [17:46:57]Write i2c OK [17:46:57]MH_I2C_Read... [17:46:57]Read from MH i2c: E2 [17:46:57]MH_I2C_Read... [17:46:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:57]Read from MH i2c: E2 17 00 [17:46:57]MH_I2C_Read... [17:46:57]Read from MH i2c: E2 17 00 D5 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A8 [17:46: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:46:57]wFMCommunicate OK [17:46:57]requested_item fd.num is exist - process it [17:46:57]SAM_PROTO_GetFieldsCounters [17:46:57]wFMCommunicate request_size=4 [17:46:57]MH_SAM_APDU [17:46:57]CAPDU: 80 13 00 00 [17:46:57]Write to MH i2c: E2 08 00 D6 06 80 13 00 00 00 00 00 00 58 [17:46:57]Write i2c OK [17:46:57]MH_I2C_Read... [17:46:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:46:57]Read from MH i2c: E2 [17:46:57]MH_I2C_Read... [17:46:57]Read from MH i2c: E2 62 00 [17:46:57]MH_I2C_Read... [17:46:57]Read from MH i2c: E2 62 00 D6 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 FE F1 02 00 0E 04 04 00 20 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 3D [17:46: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 FE F1 02 00 0E 04 04 00 20 02 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:46:57]wFMCommunicate OK [17:46:57]SAM_PROTO_GetFieldsCounters done [17:46:57]requested_item shift.num is exist - process it [17:46:57]requested_item shift.opened is exist - process it [17:46:57]req_shift_opened [17:46:57]FM_GetShiftState [17:46:57]SAM_PROTO_GetShiftState [17:46:57]wFMCommunicate request_size=4 [17:46:57]MH_SAM_APDU [17:46:57]CAPDU: 80 13 01 00 [17:46:57]Write to MH i2c: E2 08 00 D7 06 80 13 01 00 00 00 00 00 5A [17:46:57]Write i2c OK [17:46:57]MH_I2C_Read... [17:46:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:57]Read from MH i2c: E2 [17:46:57]MH_I2C_Read... [17:46:57]Read from MH i2c: E2 0E 00 [17:46:57]MH_I2C_Read... [17:46:57]Read from MH i2c: E2 0E 00 D7 06 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 60 [17:46:57]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [17:46:57]wFMCommunicate OK [17:46:57]SAM_PROTO_GetShiftState done [17:46:57]FM_GetShiftState done [17:46:57]req_shift_opened done [17:46:57]requested_item shift.open_date is exist - process it [17:46:57]req_shift_open_date [17:46:57]req_shift_open_date done [17:46:57]produce_requested_data done [17:46:57]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":193022,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [17:46:57]process_action_free close_receipt [17:46:57]json_value_free [17:46:57]json_value_free done [17:46:57]process_json_proto returns [17:46:57]Send response to host [17:46:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":193022,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [17:46:57]free response buf [17:46:57]execute_script done [17:46:57]execute_script returns [17:46:57]free content buf [17:46:57]Sock 10.Close socket [17:46:57]Sock 10.Thread stoped [17:47:01]OFD Sender: No OFD packet to send [17:47:05]accept exits with 9 [17:47:05]New connection [17:47:05]New thread 3067207012 created [17:47:05]Thread 3067350372 joined [17:47:05]Waiting for new connection... [17:47:05] Sock 9.Parse request [17:47:05]Sock 9.Check first char [17:47:05]Sock 9.First char is OK [17:47:05]request: POST /json_proto HTTP/1.0 [17:47:05]Method: POST [17:47:05]URL: /json_proto [17:47:05]Method is POST - this is cgi request [17:47:05]url: /json_proto [17:47:05]query_string will be loaded in cgi processing [17:47:05]execute_cgi json_proto POST (null) [17:47:05]execute_cgi path=json_proto method=POST [17:47:05]POST find Content-Length [17:47:05]Host: 172.17.63.131:8080 [17:47:05]Content-Length: 215 [17:47:05]Content-Type: application/json [17:47:05] [17:47:05]POST finish read [17:47:05]Found Content-Length = 215 [17:47:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:05]execute_script... [17:47:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:05]POST & json_proto [17:47:05]process_json_proto [17:47:05]json parsed OK: [17:47:05]protocol is kg_v1.0 [17:47:05]action value=get_value [17:47:05]process_action get_value [17:47:05]cmd_get_value [17:47:05]process_action get_value done [17:47:05]requested_data is exist [17:47:05]produce_requested_data [17:47:05]requested_item kkm.sn is exist - process it [17:47:05]requested_item kkm.ver is exist - process it [17:47:05]requested_item fm.sn is exist - process it [17:47:05]wFMCommunicate request_size=4 [17:47:05]MH_SAM_APDU [17:47:05]CAPDU: 80 11 00 00 [17:47:05]Write to MH i2c: E2 08 00 D8 06 80 11 00 00 00 00 00 00 58 [17:47:05]Write i2c OK [17:47:05]MH_I2C_Read... [17:47:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:05]Read from MH i2c: E2 [17:47:05]MH_I2C_Read... [17:47:05]Read from MH i2c: E2 17 00 [17:47:05]MH_I2C_Read... [17:47:05]Read from MH i2c: E2 17 00 D8 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AB [17:47: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:47:05]wFMCommunicate OK [17:47:05]requested_item fd.num is exist - process it [17:47:05]SAM_PROTO_GetFieldsCounters [17:47:05]wFMCommunicate request_size=4 [17:47:05]MH_SAM_APDU [17:47:05]CAPDU: 80 13 00 00 [17:47:05]Write to MH i2c: E2 08 00 D9 06 80 13 00 00 00 00 00 00 5B [17:47:05]Write i2c OK [17:47:05]MH_I2C_Read... [17:47:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:47:05]Read from MH i2c: E2 [17:47:05]MH_I2C_Read... [17:47:05]Read from MH i2c: E2 62 00 [17:47:05]MH_I2C_Read... [17:47:05]Read from MH i2c: E2 62 00 D9 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 FE F1 02 00 0E 04 04 00 20 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 40 [17:47:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 F1 02 00 0E 04 04 00 20 02 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:47:05]wFMCommunicate OK [17:47:05]SAM_PROTO_GetFieldsCounters done [17:47:05]requested_item shift.num is exist - process it [17:47:05]requested_item shift.opened is exist - process it [17:47:05]req_shift_opened [17:47:05]FM_GetShiftState [17:47:05]SAM_PROTO_GetShiftState [17:47:05]wFMCommunicate request_size=4 [17:47:05]MH_SAM_APDU [17:47:05]CAPDU: 80 13 01 00 [17:47:05]Write to MH i2c: E2 08 00 DA 06 80 13 01 00 00 00 00 00 5D [17:47:05]Write i2c OK [17:47:05]MH_I2C_Read... [17:47:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:05]Read from MH i2c: E2 [17:47:05]MH_I2C_Read... [17:47:05]Read from MH i2c: E2 0E 00 [17:47:05]MH_I2C_Read... [17:47:05]Read from MH i2c: E2 0E 00 DA 06 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 63 [17:47:05]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [17:47:05]wFMCommunicate OK [17:47:05]SAM_PROTO_GetShiftState done [17:47:05]FM_GetShiftState done [17:47:05]req_shift_opened done [17:47:05]requested_item shift.open_date is exist - process it [17:47:05]req_shift_open_date [17:47:05]req_shift_open_date done [17:47:05]produce_requested_data done [17:47:05]produce_requested_data return {"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":193022,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [17:47:05]process_action_free get_value [17:47:05]json_value_free [17:47:05]json_value_free done [17:47:05]process_json_proto returns [17:47:05]Send response to host [17:47:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":193022,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [17:47:05]free response buf [17:47:05]execute_script done [17:47:05]execute_script returns [17:47:05]free content buf [17:47:05]Sock 9.Close socket [17:47:05]Sock 9.Thread stoped [17:47:05]accept exits with 10 [17:47:05]New connection [17:47:05]New thread 3067350372 created [17:47:05]Thread 3067207012 joined [17:47:05]Waiting for new connection... [17:47:05] Sock 10.Parse request [17:47:05]Sock 10.Check first char [17:47:05]Sock 10.First char is OK [17:47:05]request: POST /json_proto HTTP/1.0 [17:47:05]Method: POST [17:47:05]URL: /json_proto [17:47:05]Method is POST - this is cgi request [17:47:05]url: /json_proto [17:47:05]query_string will be loaded in cgi processing [17:47:05]execute_cgi json_proto POST (null) [17:47:05]execute_cgi path=json_proto method=POST [17:47:05]POST find Content-Length [17:47:05]Host: 172.17.63.131:8080 [17:47:05]Content-Length: 331 [17:47:05]Content-Type: application/json [17:47:05] [17:47:05]POST finish read [17:47:05]Found Content-Length = 331 [17:47:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:47:05]execute_script... [17:47: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" ] } } [17:47:05]POST & json_proto [17:47:05]process_json_proto [17:47:05]json parsed OK: [17:47:05]protocol is kg_v1.0 [17:47:05]action value=get_value [17:47:05]process_action get_value [17:47:05]cmd_get_value [17:47:05]process_action get_value done [17:47:05]requested_data is exist [17:47:05]produce_requested_data [17:47:05]requested_item fm.sale.total is exist - process it [17:47:05]SAM_PROTO_GetFMData [17:47:05]wFMCommunicate request_size=4 [17:47:05]MH_SAM_APDU [17:47:05]CAPDU: 80 13 03 00 [17:47:05]Write to MH i2c: E2 08 00 DB 06 80 13 03 00 00 00 00 00 60 [17:47:05]Write i2c OK [17:47:05]MH_I2C_Read... [17:47:06]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:47:06]Read from MH i2c: E2 [17:47:06]MH_I2C_Read... [17:47:06]Read from MH i2c: E2 FD 00 [17:47:06]MH_I2C_Read... [17:47:06]Read from MH i2c: E2 FD 00 DB 06 00 C1 04 85 04 BD 04 6E 04 04 00 BE ED 02 00 69 04 A3 00 6F 04 04 00 B4 ED 02 00 B1 04 05 00 7D 6C 58 B9 03 70 04 05 00 3C A0 D5 8B 03 72 04 04 00 41 CC 82 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 47 5A 47 65 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 59 70 70 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 17 [17:47:06]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 BE ED 02 00 69 04 A3 00 6F 04 04 00 B4 ED 02 00 B1 04 05 00 7D 6C 58 B9 03 70 04 05 00 3C A0 D5 8B 03 72 04 04 00 41 CC 82 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 47 5A 47 65 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 59 70 70 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 [17:47:06]wFMCommunicate OK [17:47:06]wFMCommunicate request_size=4 [17:47:06]MH_SAM_APDU [17:47:06]CAPDU: 80 17 00 00 [17:47:06]Write to MH i2c: E2 08 00 DC 06 80 17 00 00 00 00 00 00 62 [17:47:06]OFD Sender: No OFD packet to send [17:47:06]Write i2c OK [17:47:06]MH_I2C_Read... [17:47:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:47:07]Read from MH i2c: E2 [17:47:07]MH_I2C_Read... [17:47:07]Read from MH i2c: E2 FD 00 [17:47:07]MH_I2C_Read... [17:47:07]Read from MH i2c: E2 FD 00 DC 06 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 73 [17:47:07]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 [17:47:07]wFMCommunicate OK [17:47:07]wFMCommunicate request_size=4 [17:47:07]MH_SAM_APDU [17:47:07]CAPDU: 80 17 00 00 [17:47:07]Write to MH i2c: E2 08 00 DD 06 80 17 00 00 00 00 00 00 63 [17:47:07]Write i2c OK [17:47:07]MH_I2C_Read... [17:47:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:47:07]Read from MH i2c: E2 [17:47:07]MH_I2C_Read... [17:47:07]Read from MH i2c: E2 FD 00 [17:47:07]MH_I2C_Read... [17:47:07]Read from MH i2c: E2 FD 00 DD 06 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 03 [17:47:08]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 [17:47:08]wFMCommunicate OK [17:47:08]wFMCommunicate request_size=4 [17:47:08]MH_SAM_APDU [17:47:08]CAPDU: 80 17 00 00 [17:47:08]Write to MH i2c: E2 08 00 DE 06 80 17 00 00 00 00 00 00 64 [17:47:08]Write i2c OK [17:47:08]MH_I2C_Read... [17:47:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:47:08]Read from MH i2c: E2 [17:47:08]MH_I2C_Read... [17:47:08]Read from MH i2c: E2 FD 00 [17:47:08]MH_I2C_Read... [17:47:08]Read from MH i2c: E2 FD 00 DE 06 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 E9 [17:47:08]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 [17:47:09]wFMCommunicate OK [17:47:09]wFMCommunicate request_size=4 [17:47:09]MH_SAM_APDU [17:47:09]CAPDU: 80 17 00 00 [17:47:09]Write to MH i2c: E2 08 00 DF 06 80 17 00 00 00 00 00 00 65 [17:47:09]Write i2c OK [17:47:09]MH_I2C_Read... [17:47:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [17:47:09]Read from MH i2c: E2 [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: E2 DE 00 [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: E2 DE 00 DF 06 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 44 [17:47:09]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 [17:47:09]wFMCommunicate OK [17:47:09]SAM_PROTO_GetFMData done [17:47:09]requested_item fm.sale_refund.total is exist - process it [17:47:09]requested_item fm.buy.total is exist - process it [17:47:09]requested_item shift.sale.total is exist - process it [17:47:09]SAM_PROTO_GetShiftData [17:47:09]wFMCommunicate request_size=4 [17:47:09]MH_SAM_APDU [17:47:09]CAPDU: 80 13 02 00 [17:47:09]Write to MH i2c: E2 08 00 E0 06 80 13 02 00 00 00 00 00 64 [17:47:09]Write i2c OK [17:47:09]MH_I2C_Read... [17:47:10]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:47:10]Read from MH i2c: E2 [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: E2 FD 00 [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: E2 FD 00 E0 06 00 AF 04 AA 04 AB 04 6E 04 04 00 E4 00 00 00 69 04 9C 00 6F 04 04 00 E4 00 00 00 B1 04 03 00 33 4E D7 70 04 03 00 8C FB BD 72 04 03 00 A7 52 19 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 DF 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 00 E8 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 70 [17:47:10]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 E4 00 00 00 69 04 9C 00 6F 04 04 00 E4 00 00 00 B1 04 03 00 33 4E D7 70 04 03 00 8C FB BD 72 04 03 00 A7 52 19 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 DF 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 00 E8 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 [17:47:10]wFMCommunicate OK [17:47:10]wFMCommunicate request_size=4 [17:47:10]MH_SAM_APDU [17:47:10]CAPDU: 80 17 00 00 [17:47:10]Write to MH i2c: E2 08 00 E1 06 80 17 00 00 00 00 00 00 67 [17:47:11]Write i2c OK [17:47:11]MH_I2C_Read... [17:47:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:47:11]Read from MH i2c: E2 [17:47:11]MH_I2C_Read... [17:47:11]Read from MH i2c: E2 FD 00 [17:47:11]MH_I2C_Read... [17:47:11]Read from MH i2c: E2 FD 00 E1 06 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 80 [17:47:11]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 [17:47:11]wFMCommunicate OK [17:47:11]wFMCommunicate request_size=4 [17:47:11]MH_SAM_APDU [17:47:11]CAPDU: 80 17 00 00 [17:47:11]Write to MH i2c: E2 08 00 E2 06 80 17 00 00 00 00 00 00 68 [17:47:11]Write i2c OK [17:47:11]MH_I2C_Read... [17:47:11]OFD Sender: No OFD packet to send [17:47:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:47:12]Read from MH i2c: E2 [17:47:12]MH_I2C_Read... [17:47:12]Read from MH i2c: E2 FD 00 [17:47:12]MH_I2C_Read... [17:47:12]Read from MH i2c: E2 FD 00 E2 06 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 1C [17:47:12]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 [17:47:12]wFMCommunicate OK [17:47:12]wFMCommunicate request_size=4 [17:47:12]MH_SAM_APDU [17:47:12]CAPDU: 80 17 00 00 [17:47:12]Write to MH i2c: E2 08 00 E3 06 80 17 00 00 00 00 00 00 69 [17:47:12]Write i2c OK [17:47:12]MH_I2C_Read... [17:47:12]ConnectInit Can't connect to host [17:47:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:47:12]Read from MH i2c: E2 [17:47:12]MH_I2C_Read... [17:47:12]Read from MH i2c: E2 FD 00 [17:47:12]MH_I2C_Read... [17:47:12]Read from MH i2c: E2 FD 00 E3 06 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 E7 [17:47:13]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 [17:47:13]wFMCommunicate OK [17:47:13]wFMCommunicate request_size=4 [17:47:13]MH_SAM_APDU [17:47:13]CAPDU: 80 17 00 00 [17:47:13]Write to MH i2c: E2 08 00 E4 06 80 17 00 00 00 00 00 00 6A [17:47:13]Write i2c OK [17:47:13]MH_I2C_Read... [17:47:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [17:47:13]Read from MH i2c: E2 [17:47:13]MH_I2C_Read... [17:47:13]Read from MH i2c: E2 CC 00 [17:47:13]MH_I2C_Read... [17:47:13]Read from MH i2c: E2 CC 00 E4 06 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 4B [17:47:14]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 [17:47:14]wFMCommunicate OK [17:47:14]SAM_PROTO_GetShiftData done [17:47:14]requested_item shift.sale.total_cash is exist - process it [17:47:14]requested_item shift.sale_refund.total is exist - process it [17:47:14]requested_item shift.sale_refund.total_cash is exist - process it [17:47:14]requested_item shift.buy.total is exist - process it [17:47:14]requested_item shift.buy.total_cash is exist - process it [17:47:14]produce_requested_data done [17:47:14]produce_requested_data return {"fm.sale.total":159944817.89,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":141102.59,"shift.sale.total_cash":124507.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} [17:47:14]process_action_free get_value [17:47:14]json_value_free [17:47:14]json_value_free done [17:47:14]process_json_proto returns [17:47:14]Send response to host [17:47:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":159944817.89,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":141102.59,"shift.sale.total_cash":124507.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}}} [17:47:14]free response buf [17:47:14]execute_script done [17:47:14]execute_script returns [17:47:14]free content buf [17:47:14]Sock 10.Close socket [17:47:14]Sock 10.Thread stoped [17:47:16]OFD Sender: No OFD packet to send [17:47:21]OFD Sender: No OFD packet to send [17:47:26]OFD Sender: No OFD packet to send [17:47:31]OFD Sender: No OFD packet to send [17:47:36]accept exits with 9 [17:47:36]New connection [17:47:36]New thread 3067207012 created [17:47:36]Thread 3067350372 joined [17:47:36]Waiting for new connection... [17:47:36] Sock 9.Parse request [17:47:36]Sock 9.Check first char [17:47:36]Sock 9.First char is OK [17:47:36]request: POST /json_proto HTTP/1.0 [17:47:36]Method: POST [17:47:36]URL: /json_proto [17:47:36]Method is POST - this is cgi request [17:47:36]url: /json_proto [17:47:36]query_string will be loaded in cgi processing [17:47:36]execute_cgi json_proto POST (null) [17:47:36]execute_cgi path=json_proto method=POST [17:47:36]POST find Content-Length [17:47:36]Host: 172.17.63.131:8080 [17:47:36]Content-Length: 215 [17:47:36]Content-Type: application/json [17:47:36] [17:47:36]POST finish read [17:47:36]Found Content-Length = 215 [17:47:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:36]execute_script... [17:47:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:36]POST & json_proto [17:47:36]process_json_proto [17:47:36]json parsed OK: [17:47:36]protocol is kg_v1.0 [17:47:36]action value=get_value [17:47:36]process_action get_value [17:47:36]cmd_get_value [17:47:36]process_action get_value done [17:47:36]requested_data is exist [17:47:36]produce_requested_data [17:47:36]requested_item kkm.sn is exist - process it [17:47:36]requested_item kkm.ver is exist - process it [17:47:36]requested_item fm.sn is exist - process it [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 E5 06 80 11 00 00 00 00 00 00 65 [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 E5 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B8 [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]requested_item fd.num is exist - process it [17:47:36]SAM_PROTO_GetFieldsCounters [17:47:36]wFMCommunicate request_size=4 [17:47:36]MH_SAM_APDU [17:47:36]CAPDU: 80 13 00 00 [17:47:36]Write to MH i2c: E2 08 00 E6 06 80 13 00 00 00 00 00 00 68 [17:47:36]Write i2c OK [17:47:36]MH_I2C_Read... [17:47:36]OFD Sender: No OFD packet to send [17:47:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:47:37]Read from MH i2c: E2 [17:47:37]MH_I2C_Read... [17:47:37]Read from MH i2c: E2 62 00 [17:47:37]MH_I2C_Read... [17:47:37]Read from MH i2c: E2 62 00 E6 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 FE F1 02 00 0E 04 04 00 20 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 4D [17: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 FE F1 02 00 0E 04 04 00 20 02 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:47:37]wFMCommunicate OK [17:47:37]SAM_PROTO_GetFieldsCounters done [17:47:37]requested_item shift.num is exist - process it [17:47:37]requested_item shift.opened is exist - process it [17:47:37]req_shift_opened [17:47:37]FM_GetShiftState [17:47:37]SAM_PROTO_GetShiftState [17:47:37]wFMCommunicate request_size=4 [17:47:37]MH_SAM_APDU [17:47:37]CAPDU: 80 13 01 00 [17:47:37]Write to MH i2c: E2 08 00 E7 06 80 13 01 00 00 00 00 00 6A [17:47:37]Write i2c OK [17:47:37]MH_I2C_Read... [17:47:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:37]Read from MH i2c: E2 [17:47:37]MH_I2C_Read... [17:47:37]Read from MH i2c: E2 0E 00 [17:47:37]MH_I2C_Read... [17:47:37]Read from MH i2c: E2 0E 00 E7 06 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 70 [17:47:37]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [17:47:37]wFMCommunicate OK [17:47:37]SAM_PROTO_GetShiftState done [17:47:37]FM_GetShiftState done [17:47:37]req_shift_opened done [17:47:37]requested_item shift.open_date is exist - process it [17:47:37]req_shift_open_date [17:47:37]req_shift_open_date done [17:47:37]produce_requested_data done [17:47:37]produce_requested_data return {"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":193022,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [17:47:37]process_action_free get_value [17:47:37]json_value_free [17:47:37]json_value_free done [17:47:37]process_json_proto returns [17:47:37]Send response to host [17:47:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":193022,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [17:47:37]free response buf [17:47:37]execute_script done [17:47:37]execute_script returns [17:47:37]free content buf [17:47:37]Sock 9.Close socket [17:47:37]Sock 9.Thread stoped [17:47:37]accept exits with 10 [17:47:37]New connection [17:47:37]New thread 3067350372 created [17:47:37]Thread 3067207012 joined [17:47:37]Waiting for new connection... [17:47:37] Sock 10.Parse request [17:47:37]Sock 10.Check first char [17:47:37]Sock 10.First char is OK [17:47:37]request: POST /json_proto HTTP/1.0 [17:47:37]Method: POST [17:47:37]URL: /json_proto [17:47:37]Method is POST - this is cgi request [17:47:37]url: /json_proto [17:47:37]query_string will be loaded in cgi processing [17:47:37]execute_cgi json_proto POST (null) [17:47:37]execute_cgi path=json_proto method=POST [17:47:37]POST find Content-Length [17:47:37]Host: 172.17.63.131:8080 [17:47:37]Content-Length: 331 [17:47:37]Content-Type: application/json [17:47:37] [17:47:37]POST finish read [17:47:37]Found Content-Length = 331 [17:47:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:47:37]execute_script... [17:47:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:47:37]POST & json_proto [17:47:37]process_json_proto [17:47:37]json parsed OK: [17:47:37]protocol is kg_v1.0 [17:47:37]action value=get_value [17:47:37]process_action get_value [17:47:37]cmd_get_value [17:47:37]process_action get_value done [17:47:37]requested_data is exist [17:47:37]produce_requested_data [17:47:37]requested_item fm.sale.total is exist - process it [17:47:37]SAM_PROTO_GetFMData [17:47:37]wFMCommunicate request_size=4 [17:47:37]MH_SAM_APDU [17:47:37]CAPDU: 80 13 03 00 [17:47:37]Write to MH i2c: E2 08 00 E8 06 80 13 03 00 00 00 00 00 6D [17:47:37]Write i2c OK [17:47:37]MH_I2C_Read... [17:47:37]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:47:37]Read from MH i2c: E2 [17:47:37]MH_I2C_Read... [17:47:37]Read from MH i2c: E2 FD 00 [17:47:37]MH_I2C_Read... [17:47:37]Read from MH i2c: E2 FD 00 E8 06 00 C1 04 85 04 BD 04 6E 04 04 00 BE ED 02 00 69 04 A3 00 6F 04 04 00 B4 ED 02 00 B1 04 05 00 7D 6C 58 B9 03 70 04 05 00 3C A0 D5 8B 03 72 04 04 00 41 CC 82 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 47 5A 47 65 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 59 70 70 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 24 [17:47:38]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 BE ED 02 00 69 04 A3 00 6F 04 04 00 B4 ED 02 00 B1 04 05 00 7D 6C 58 B9 03 70 04 05 00 3C A0 D5 8B 03 72 04 04 00 41 CC 82 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 47 5A 47 65 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 59 70 70 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 [17:47:38]wFMCommunicate OK [17:47:38]wFMCommunicate request_size=4 [17:47:38]MH_SAM_APDU [17:47:38]CAPDU: 80 17 00 00 [17:47:38]Write to MH i2c: E2 08 00 E9 06 80 17 00 00 00 00 00 00 6F [17:47:38]Write i2c OK [17:47:38]MH_I2C_Read... [17:47:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:47:38]Read from MH i2c: E2 [17:47:38]MH_I2C_Read... [17:47:38]Read from MH i2c: E2 FD 00 [17:47:38]MH_I2C_Read... [17:47:38]Read from MH i2c: E2 FD 00 E9 06 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 80 [17:47: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 [17:47:39]wFMCommunicate OK [17:47:39]wFMCommunicate request_size=4 [17:47:39]MH_SAM_APDU [17:47:39]CAPDU: 80 17 00 00 [17:47:39]Write to MH i2c: E2 08 00 EA 06 80 17 00 00 00 00 00 00 70 [17:47:39]Write i2c OK [17:47:39]MH_I2C_Read... [17:47:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:47:39]Read from MH i2c: E2 [17:47:39]MH_I2C_Read... [17:47:39]Read from MH i2c: E2 FD 00 [17:47:39]MH_I2C_Read... [17:47:39]Read from MH i2c: E2 FD 00 EA 06 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 10 [17:47: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 [17:47:40]wFMCommunicate OK [17:47:40]wFMCommunicate request_size=4 [17:47:40]MH_SAM_APDU [17:47:40]CAPDU: 80 17 00 00 [17:47:40]Write to MH i2c: E2 08 00 EB 06 80 17 00 00 00 00 00 00 71 [17:47:40]Write i2c OK [17:47:40]MH_I2C_Read... [17:47:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:47:40]Read from MH i2c: E2 [17:47:40]MH_I2C_Read... [17:47:40]Read from MH i2c: E2 FD 00 [17:47:40]MH_I2C_Read... [17:47:40]Read from MH i2c: E2 FD 00 EB 06 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 F6 [17:47:40]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 [17:47:40]wFMCommunicate OK [17:47:40]wFMCommunicate request_size=4 [17:47:40]MH_SAM_APDU [17:47:40]CAPDU: 80 17 00 00 [17:47:40]Write to MH i2c: E2 08 00 EC 06 80 17 00 00 00 00 00 00 72 [17:47:40]Write i2c OK [17:47:40]MH_I2C_Read... [17:47:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [17:47:41]Read from MH i2c: E2 [17:47:41]MH_I2C_Read... [17:47:41]Read from MH i2c: E2 DE 00 [17:47:41]MH_I2C_Read... [17:47:41]Read from MH i2c: E2 DE 00 EC 06 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 51 [17:47:41]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 [17:47:41]wFMCommunicate OK [17:47:41]SAM_PROTO_GetFMData done [17:47:41]requested_item fm.sale_refund.total is exist - process it [17:47:41]requested_item fm.buy.total is exist - process it [17:47:41]requested_item shift.sale.total is exist - process it [17:47:41]SAM_PROTO_GetShiftData [17:47:41]wFMCommunicate request_size=4 [17:47:41]MH_SAM_APDU [17:47:41]CAPDU: 80 13 02 00 [17:47:41]Write to MH i2c: E2 08 00 ED 06 80 13 02 00 00 00 00 00 71 [17:47:41]Write i2c OK [17:47:41]MH_I2C_Read... [17:47:42]OFD Sender: No OFD packet to send [17:47:42]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:47:42]Read from MH i2c: E2 [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: E2 FD 00 [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: E2 FD 00 ED 06 00 AF 04 AA 04 AB 04 6E 04 04 00 E4 00 00 00 69 04 9C 00 6F 04 04 00 E4 00 00 00 B1 04 03 00 33 4E D7 70 04 03 00 8C FB BD 72 04 03 00 A7 52 19 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 DF 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 00 E8 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 7D [17:47:42]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 E4 00 00 00 69 04 9C 00 6F 04 04 00 E4 00 00 00 B1 04 03 00 33 4E D7 70 04 03 00 8C FB BD 72 04 03 00 A7 52 19 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 DF 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 00 E8 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 [17:47:42]wFMCommunicate OK [17:47:42]wFMCommunicate request_size=4 [17:47:42]MH_SAM_APDU [17:47:42]CAPDU: 80 17 00 00 [17:47:42]Write to MH i2c: E2 08 00 EE 06 80 17 00 00 00 00 00 00 74 [17:47:42]Write i2c OK [17:47:42]MH_I2C_Read... [17:47:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:47:43]Read from MH i2c: E2 [17:47:43]MH_I2C_Read... [17:47:43]Read from MH i2c: E2 FD 00 [17:47:43]MH_I2C_Read... [17:47:43]Read from MH i2c: E2 FD 00 EE 06 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 8D [17:47:43]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 [17:47:43]wFMCommunicate OK [17:47:43]wFMCommunicate request_size=4 [17:47:43]MH_SAM_APDU [17:47:43]CAPDU: 80 17 00 00 [17:47:43]Write to MH i2c: E2 08 00 EF 06 80 17 00 00 00 00 00 00 75 [17:47:43]Write i2c OK [17:47:43]MH_I2C_Read... [17:47:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:47:43]Read from MH i2c: E2 [17:47:43]MH_I2C_Read... [17:47:43]Read from MH i2c: E2 FD 00 [17:47:43]MH_I2C_Read... [17:47:43]Read from MH i2c: E2 FD 00 EF 06 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 29 [17:47:44]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 [17:47:44]wFMCommunicate OK [17:47:44]wFMCommunicate request_size=4 [17:47:44]MH_SAM_APDU [17:47:44]CAPDU: 80 17 00 00 [17:47:44]Write to MH i2c: E2 08 00 F0 06 80 17 00 00 00 00 00 00 76 [17:47:44]Write i2c OK [17:47:44]MH_I2C_Read... [17:47:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:47:44]Read from MH i2c: E2 [17:47:44]MH_I2C_Read... [17:47:44]Read from MH i2c: E2 FD 00 [17:47:44]MH_I2C_Read... [17:47:44]Read from MH i2c: E2 FD 00 F0 06 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 F4 [17:47:45]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 [17:47:45]wFMCommunicate OK [17:47:45]wFMCommunicate request_size=4 [17:47:45]MH_SAM_APDU [17:47:45]CAPDU: 80 17 00 00 [17:47:45]Write to MH i2c: E2 08 00 F1 06 80 17 00 00 00 00 00 00 77 [17:47:45]Write i2c OK [17:47:45]MH_I2C_Read... [17:47:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [17:47:45]Read from MH i2c: E2 [17:47:45]MH_I2C_Read... [17:47:45]Read from MH i2c: E2 CC 00 [17:47:45]MH_I2C_Read... [17:47:45]Read from MH i2c: E2 CC 00 F1 06 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 58 [17:47:46]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 [17:47:46]wFMCommunicate OK [17:47:46]SAM_PROTO_GetShiftData done [17:47:46]requested_item shift.sale.total_cash is exist - process it [17:47:46]requested_item shift.sale_refund.total is exist - process it [17:47:46]requested_item shift.sale_refund.total_cash is exist - process it [17:47:46]requested_item shift.buy.total is exist - process it [17:47:46]requested_item shift.buy.total_cash is exist - process it [17:47:46]produce_requested_data done [17:47:46]produce_requested_data return {"fm.sale.total":159944817.89,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":141102.59,"shift.sale.total_cash":124507.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} [17:47:46]process_action_free get_value [17:47:46]json_value_free [17:47:46]json_value_free done [17:47:46]process_json_proto returns [17:47:46]Send response to host [17:47:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":159944817.89,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":141102.59,"shift.sale.total_cash":124507.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}}} [17:47:46]free response buf [17:47:46]execute_script done [17:47:46]execute_script returns [17:47:46]free content buf [17:47:46]Sock 10.Close socket [17:47:46]Sock 10.Thread stoped [17:47:46]accept exits with 9 [17:47:46]New connection [17:47:46]New thread 3067207012 created [17:47:46]Thread 3067350372 joined [17:47:46]Waiting for new connection... [17:47:46] Sock 9.Parse request [17:47:46]Sock 9.Check first char [17:47:46]Sock 9.First char is OK [17:47:46]request: POST /json_proto HTTP/1.0 [17:47:46]Method: POST [17:47:46]URL: /json_proto [17:47:46]Method is POST - this is cgi request [17:47:46]url: /json_proto [17:47:46]query_string will be loaded in cgi processing [17:47:46]execute_cgi json_proto POST (null) [17:47:46]execute_cgi path=json_proto method=POST [17:47:46]POST find Content-Length [17:47:46]Host: 172.17.63.131:8080 [17:47:46]Content-Length: 331 [17:47:46]Content-Type: application/json [17:47:46] [17:47:46]POST finish read [17:47:46]Found Content-Length = 331 [17:47:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:47:46]execute_script... [17:47:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:47:46]POST & json_proto [17:47:46]process_json_proto [17:47:46]json parsed OK: [17:47:46]protocol is kg_v1.0 [17:47:46]action value=get_value [17:47:46]process_action get_value [17:47:46]cmd_get_value [17:47:46]process_action get_value done [17:47:46]requested_data is exist [17:47:46]produce_requested_data [17:47:46]requested_item fm.sale.total is exist - process it [17:47:46]SAM_PROTO_GetFMData [17:47:46]wFMCommunicate request_size=4 [17:47:46]MH_SAM_APDU [17:47:46]CAPDU: 80 13 03 00 [17:47:46]Write to MH i2c: E2 08 00 F2 06 80 13 03 00 00 00 00 00 77 [17:47:46]Write i2c OK [17:47:46]MH_I2C_Read... [17:47:46]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:47:46]Read from MH i2c: E2 [17:47:46]MH_I2C_Read... [17:47:46]Read from MH i2c: E2 FD 00 [17:47:46]MH_I2C_Read... [17:47:46]Read from MH i2c: E2 FD 00 F2 06 00 C1 04 85 04 BD 04 6E 04 04 00 BE ED 02 00 69 04 A3 00 6F 04 04 00 B4 ED 02 00 B1 04 05 00 7D 6C 58 B9 03 70 04 05 00 3C A0 D5 8B 03 72 04 04 00 41 CC 82 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 47 5A 47 65 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 59 70 70 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 OFD Sender: No OFD packet to send [17:47:47]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 2E [17:47:47]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 BE ED 02 00 69 04 A3 00 6F 04 04 00 B4 ED 02 00 B1 04 05 00 7D 6C 58 B9 03 70 04 05 00 3C A0 D5 8B 03 72 04 04 00 41 CC 82 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 47 5A 47 65 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 59 70 70 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 [17:47:47]wFMCommunicate OK [17:47:47]wFMCommunicate request_size=4 [17:47:47]MH_SAM_APDU [17:47:47]CAPDU: 80 17 00 00 [17:47:47]Write to MH i2c: E2 08 00 F3 06 80 17 00 00 00 00 00 00 79 [17:47:47]Write i2c OK [17:47:47]MH_I2C_Read... [17:47:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:47:47]Read from MH i2c: E2 [17:47:47]MH_I2C_Read... [17:47:47]Read from MH i2c: E2 FD 00 [17:47:47]MH_I2C_Read... [17:47:47]Read from MH i2c: E2 FD 00 F3 06 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 8A [17:47:48]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 [17:47:48]wFMCommunicate OK [17:47:48]wFMCommunicate request_size=4 [17:47:48]MH_SAM_APDU [17:47:48]CAPDU: 80 17 00 00 [17:47:48]Write to MH i2c: E2 08 00 F4 06 80 17 00 00 00 00 00 00 7A [17:47:48]Write i2c OK [17:47:48]MH_I2C_Read... [17:47:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:47:48]Read from MH i2c: E2 [17:47:48]MH_I2C_Read... [17:47:48]Read from MH i2c: E2 FD 00 [17:47:48]MH_I2C_Read... [17:47:48]Read from MH i2c: E2 FD 00 F4 06 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 1A [17:47:49]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 [17:47:49]wFMCommunicate OK [17:47:49]wFMCommunicate request_size=4 [17:47:49]MH_SAM_APDU [17:47:49]CAPDU: 80 17 00 00 [17:47:49]Write to MH i2c: E2 08 00 F5 06 80 17 00 00 00 00 00 00 7B [17:47:49]Write i2c OK [17:47:49]MH_I2C_Read... [17:47:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:47:49]Read from MH i2c: E2 [17:47:49]MH_I2C_Read... [17:47:49]Read from MH i2c: E2 FD 00 [17:47:49]MH_I2C_Read... [17:47:49]Read from MH i2c: E2 FD 00 F5 06 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 00 [17:47:50]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 [17:47:50]wFMCommunicate OK [17:47:50]wFMCommunicate request_size=4 [17:47:50]MH_SAM_APDU [17:47:50]CAPDU: 80 17 00 00 [17:47:50]Write to MH i2c: E2 08 00 F6 06 80 17 00 00 00 00 00 00 7C [17:47:50]Write i2c OK [17:47:50]MH_I2C_Read... [17:47:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [17:47:50]Read from MH i2c: E2 [17:47:50]MH_I2C_Read... [17:47:50]Read from MH i2c: E2 DE 00 [17:47:50]MH_I2C_Read... [17:47:50]Read from MH i2c: E2 DE 00 F6 06 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 5B [17:47:50]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 [17:47:51]wFMCommunicate OK [17:47:51]SAM_PROTO_GetFMData done [17:47:51]requested_item fm.sale_refund.total is exist - process it [17:47:51]requested_item fm.buy.total is exist - process it [17:47:51]requested_item shift.sale.total is exist - process it [17:47:51]SAM_PROTO_GetShiftData [17:47:51]wFMCommunicate request_size=4 [17:47:51]MH_SAM_APDU [17:47:51]CAPDU: 80 13 02 00 [17:47:51]Write to MH i2c: E2 08 00 F7 06 80 13 02 00 00 00 00 00 7B [17:47:51]Write i2c OK [17:47:51]MH_I2C_Read... [17:47:51]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:47:51]Read from MH i2c: E2 [17:47:51]MH_I2C_Read... [17:47:51]Read from MH i2c: E2 FD 00 [17:47:51]MH_I2C_Read... [17:47:51]Read from MH i2c: E2 FD 00 F7 06 00 AF 04 AA 04 AB 04 6E 04 04 00 E4 00 00 00 69 04 9C 00 6F 04 04 00 E4 00 00 00 B1 04 03 00 33 4E D7 70 04 03 00 8C FB BD 72 04 03 00 A7 52 19 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 DF 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 00 E8 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 87 [17:47:52]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 E4 00 00 00 69 04 9C 00 6F 04 04 00 E4 00 00 00 B1 04 03 00 33 4E D7 70 04 03 00 8C FB BD 72 04 03 00 A7 52 19 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 DF 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 00 E8 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 OFD Sender: No OFD packet to send [17:47:52]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 [17:47:52]wFMCommunicate OK [17:47:52]wFMCommunicate request_size=4 [17:47:52]MH_SAM_APDU [17:47:52]CAPDU: 80 17 00 00 [17:47:52]Write to MH i2c: E2 08 00 F8 06 80 17 00 00 00 00 00 00 7E [17:47:52]Write i2c OK [17:47:52]MH_I2C_Read... [17:47:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:47:52]Read from MH i2c: E2 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: E2 FD 00 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: E2 FD 00 F8 06 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 97 [17:47:53]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 [17:47:53]wFMCommunicate OK [17:47:53]wFMCommunicate request_size=4 [17:47:53]MH_SAM_APDU [17:47:53]CAPDU: 80 17 00 00 [17:47:53]Write to MH i2c: E2 08 00 F9 06 80 17 00 00 00 00 00 00 7F [17:47:53]Write i2c OK [17:47:53]MH_I2C_Read... [17:47:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:47:53]Read from MH i2c: E2 [17:47:53]MH_I2C_Read... [17:47:53]Read from MH i2c: E2 FD 00 [17:47:53]MH_I2C_Read... [17:47:53]Read from MH i2c: E2 FD 00 F9 06 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 33 [17:47:54]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 [17:47:54]wFMCommunicate OK [17:47:54]wFMCommunicate request_size=4 [17:47:54]MH_SAM_APDU [17:47:54]CAPDU: 80 17 00 00 [17:47:54]Write to MH i2c: E2 08 00 FA 06 80 17 00 00 00 00 00 00 80 [17:47:54]Write i2c OK [17:47:54]MH_I2C_Read... [17:47:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:47:54]Read from MH i2c: E2 [17:47:54]MH_I2C_Read... [17:47:54]Read from MH i2c: E2 FD 00 [17:47:54]MH_I2C_Read... [17:47:54]Read from MH i2c: E2 FD 00 FA 06 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 FE [17:47:55]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 [17:47:55]wFMCommunicate OK [17:47:55]wFMCommunicate request_size=4 [17:47:55]MH_SAM_APDU [17:47:55]CAPDU: 80 17 00 00 [17:47:55]Write to MH i2c: E2 08 00 FB 06 80 17 00 00 00 00 00 00 81 [17:47:55]Write i2c OK [17:47:55]MH_I2C_Read... [17:47:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [17:47:55]Read from MH i2c: E2 [17:47:55]MH_I2C_Read... [17:47:55]Read from MH i2c: E2 CC 00 [17:47:55]MH_I2C_Read... [17:47:55]Read from MH i2c: E2 CC 00 FB 06 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