[03:22:05]OFD Sender: No OFD packet to send [03:22:10]OFD Sender: No OFD packet to send [03:22:15]OFD Sender: No OFD packet to send [03:22:20]OFD Sender: No OFD packet to send [03:22:25]OFD Sender: No OFD packet to send [03:22:30]OFD Sender: No OFD packet to send [03:22:35]OFD Sender: No OFD packet to send [03:22:40]OFD Sender: No OFD packet to send [03:22:45]OFD Sender: No OFD packet to send [03:22:50]OFD Sender: No OFD packet to send [03:22:55]OFD Sender: No OFD packet to send [03:23:00]OFD Sender: No OFD packet to send [03:23:05]OFD Sender: No OFD packet to send [03:23:10]OFD Sender: No OFD packet to send [03:23:15]OFD Sender: No OFD packet to send [03:23:20]OFD Sender: No OFD packet to send [03:23:25]OFD Sender: No OFD packet to send [03:23:30]OFD Sender: No OFD packet to send [03:23:35]OFD Sender: No OFD packet to send [03:23:40]OFD Sender: No OFD packet to send [03:23:45]OFD Sender: No OFD packet to send [03:23:50]OFD Sender: No OFD packet to send [03:23:55]OFD Sender: No OFD packet to send [03:24:00]OFD Sender: No OFD packet to send [03:24:05]OFD Sender: No OFD packet to send [03:24:10]OFD Sender: No OFD packet to send [03:24:15]OFD Sender: No OFD packet to send [03:24:20]OFD Sender: No OFD packet to send [03:24:25]OFD Sender: No OFD packet to send [03:24:30]OFD Sender: No OFD packet to send [03:24:35]OFD Sender: No OFD packet to send [03:24:40]OFD Sender: No OFD packet to send [03:24:45]OFD Sender: No OFD packet to send [03:24:50]OFD Sender: No OFD packet to send [03:24:55]OFD Sender: No OFD packet to send [03:25:00]OFD Sender: No OFD packet to send [03:25:05]OFD Sender: No OFD packet to send [03:25:10]OFD Sender: No OFD packet to send [03:25:15]OFD Sender: No OFD packet to send [03:25:20]OFD Sender: No OFD packet to send [03:25:25]OFD Sender: No OFD packet to send [03:25:30]OFD Sender: No OFD packet to send [03:25:35]OFD Sender: No OFD packet to send [03:25:40]OFD Sender: No OFD packet to send [03:25:45]OFD Sender: No OFD packet to send [03:25:50]OFD Sender: No OFD packet to send [03:25:55]OFD Sender: No OFD packet to send [03:26:00]OFD Sender: No OFD packet to send [03:26:05]OFD Sender: No OFD packet to send [03:26:10]OFD Sender: No OFD packet to send [03:26:15]OFD Sender: No OFD packet to send [03:26:20]OFD Sender: No OFD packet to send [03:26:25]OFD Sender: No OFD packet to send [03:26:30]OFD Sender: No OFD packet to send [03:26:35]OFD Sender: No OFD packet to send [03:26:40]OFD Sender: No OFD packet to send [03:26:45]OFD Sender: No OFD packet to send [03:26:50]OFD Sender: No OFD packet to send [03:26:55]OFD Sender: No OFD packet to send [03:27:00]OFD Sender: No OFD packet to send [03:27:05]OFD Sender: No OFD packet to send [03:27:10]OFD Sender: No OFD packet to send [03:27:15]OFD Sender: No OFD packet to send [03:27:20]OFD Sender: No OFD packet to send [03:27:25]OFD Sender: No OFD packet to send [03:27:30]OFD Sender: No OFD packet to send [03:27:35]OFD Sender: No OFD packet to send [03:27:40]OFD Sender: No OFD packet to send [03:27:45]OFD Sender: No OFD packet to send [03:27:50]OFD Sender: No OFD packet to send [03:27:55]OFD Sender: No OFD packet to send [03:28:00]OFD Sender: No OFD packet to send [03:28:05]OFD Sender: No OFD packet to send [03:28:10]OFD Sender: No OFD packet to send [03:28:15]OFD Sender: No OFD packet to send [03:28:20]OFD Sender: No OFD packet to send [03:28:25]OFD Sender: No OFD packet to send [03:28:30]OFD Sender: No OFD packet to send [03:28:35]OFD Sender: No OFD packet to send [03:28:40]OFD Sender: No OFD packet to send [03:28:45]OFD Sender: No OFD packet to send [03:28:50]OFD Sender: No OFD packet to send [03:28:55]OFD Sender: No OFD packet to send [03:29:00]OFD Sender: No OFD packet to send [03:29:05]OFD Sender: No OFD packet to send [03:29:10]OFD Sender: No OFD packet to send [03:29:15]OFD Sender: No OFD packet to send [03:29:20]OFD Sender: No OFD packet to send [03:29:25]OFD Sender: No OFD packet to send [03:29:30]OFD Sender: No OFD packet to send [03:29:35]OFD Sender: No OFD packet to send [03:29:40]OFD Sender: No OFD packet to send [03:29:45]OFD Sender: No OFD packet to send [03:29:50]OFD Sender: No OFD packet to send [03:29:55]OFD Sender: No OFD packet to send [03:30:00]OFD Sender: No OFD packet to send [03:30:05]OFD Sender: No OFD packet to send [03:30:10]OFD Sender: No OFD packet to send [03:30:15]OFD Sender: No OFD packet to send [03:30:20]OFD Sender: No OFD packet to send [03:30:25]OFD Sender: No OFD packet to send [03:30:30]OFD Sender: No OFD packet to send [03:30:35]OFD Sender: No OFD packet to send [03:30:40]OFD Sender: No OFD packet to send [03:30:45]OFD Sender: No OFD packet to send [03:30:50]OFD Sender: No OFD packet to send [03:30:55]OFD Sender: No OFD packet to send [03:31:00]OFD Sender: No OFD packet to send [03:31:05]OFD Sender: No OFD packet to send [03:31:10]OFD Sender: No OFD packet to send [03:31:15]OFD Sender: No OFD packet to send [03:31:20]OFD Sender: No OFD packet to send [03:31:25]OFD Sender: No OFD packet to send [03:31:30]OFD Sender: No OFD packet to send [03:31:35]OFD Sender: No OFD packet to send [03:31:40]OFD Sender: No OFD packet to send [03:31:45]OFD Sender: No OFD packet to send [03:31:50]OFD Sender: No OFD packet to send [03:31:55]OFD Sender: No OFD packet to send [03:32:00]OFD Sender: No OFD packet to send [03:32:05]OFD Sender: No OFD packet to send [03:32:10]OFD Sender: No OFD packet to send [03:32:15]OFD Sender: No OFD packet to send [03:32:20]OFD Sender: No OFD packet to send [03:32:25]OFD Sender: No OFD packet to send [03:32:30]OFD Sender: No OFD packet to send [03:32:35]OFD Sender: No OFD packet to send [03:32:40]OFD Sender: No OFD packet to send [03:32:45]OFD Sender: No OFD packet to send [03:32:50]OFD Sender: No OFD packet to send [03:32:55]OFD Sender: No OFD packet to send [03:33:00]OFD Sender: No OFD packet to send [03:33:05]OFD Sender: No OFD packet to send [03:33:10]OFD Sender: No OFD packet to send [03:33:15]OFD Sender: No OFD packet to send [03:33:20]OFD Sender: No OFD packet to send [03:33:25]OFD Sender: No OFD packet to send [03:33:30]OFD Sender: No OFD packet to send [03:33:35]OFD Sender: No OFD packet to send [03:33:40]OFD Sender: No OFD packet to send [03:33:45]OFD Sender: No OFD packet to send [03:33:50]OFD Sender: No OFD packet to send [03:33:55]OFD Sender: No OFD packet to send [03:34:00]OFD Sender: No OFD packet to send [03:34:05]OFD Sender: No OFD packet to send [03:34:10]OFD Sender: No OFD packet to send [03:34:15]OFD Sender: No OFD packet to send [03:34:20]OFD Sender: No OFD packet to send [03:34:25]OFD Sender: No OFD packet to send [03:34:30]OFD Sender: No OFD packet to send [03:34:35]OFD Sender: No OFD packet to send [03:34:40]OFD Sender: No OFD packet to send [03:34:45]OFD Sender: No OFD packet to send [03:34:50]OFD Sender: No OFD packet to send [03:34:55]OFD Sender: No OFD packet to send [03:35:00]OFD Sender: No OFD packet to send [03:35:05]OFD Sender: No OFD packet to send [03:35:10]OFD Sender: No OFD packet to send [03:35:15]OFD Sender: No OFD packet to send [03:35:20]OFD Sender: No OFD packet to send [03:35:25]OFD Sender: No OFD packet to send [03:35:30]OFD Sender: No OFD packet to send [03:35:35]OFD Sender: No OFD packet to send [03:35:40]OFD Sender: No OFD packet to send [03:35:45]OFD Sender: No OFD packet to send [03:35:50]OFD Sender: No OFD packet to send [03:35:55]OFD Sender: No OFD packet to send [03:36:00]OFD Sender: No OFD packet to send [03:36:05]OFD Sender: No OFD packet to send [03:36:10]OFD Sender: No OFD packet to send [03:36:15]OFD Sender: No OFD packet to send [03:36:20]OFD Sender: No OFD packet to send [03:36:25]OFD Sender: No OFD packet to send [03:36:30]OFD Sender: No OFD packet to send [03:36:35]OFD Sender: No OFD packet to send [03:36:40]OFD Sender: No OFD packet to send [03:36:46]OFD Sender: No OFD packet to send [03:36:51]OFD Sender: No OFD packet to send [03:36:56]OFD Sender: No OFD packet to send [03:37:01]OFD Sender: No OFD packet to send [03:37:06]OFD Sender: No OFD packet to send [03:37:11]OFD Sender: No OFD packet to send [03:37:16]OFD Sender: No OFD packet to send [03:37:21]OFD Sender: No OFD packet to send [03:37:26]OFD Sender: No OFD packet to send [03:37:31]OFD Sender: No OFD packet to send [03:37:36]OFD Sender: No OFD packet to send [03:37:41]OFD Sender: No OFD packet to send [03:37:46]OFD Sender: No OFD packet to send [03:37:51]OFD Sender: No OFD packet to send [03:37:56]OFD Sender: No OFD packet to send [03:38:01]OFD Sender: No OFD packet to send [03:38:06]OFD Sender: No OFD packet to send [03:38:11]OFD Sender: No OFD packet to send [03:38:16]OFD Sender: No OFD packet to send [03:38:21]OFD Sender: No OFD packet to send [03:38:26]OFD Sender: No OFD packet to send [03:38:31]OFD Sender: No OFD packet to send [03:38:36]OFD Sender: No OFD packet to send [03:38:41]OFD Sender: No OFD packet to send [03:38:46]OFD Sender: No OFD packet to send [03:38:51]OFD Sender: No OFD packet to send [03:38:56]OFD Sender: No OFD packet to send [03:39:01]OFD Sender: No OFD packet to send [03:39:06]OFD Sender: No OFD packet to send [03:39:11]OFD Sender: No OFD packet to send [03:39:16]OFD Sender: No OFD packet to send [03:39:21]OFD Sender: No OFD packet to send [03:39:26]OFD Sender: No OFD packet to send [03:39:31]OFD Sender: No OFD packet to send [03:39:36]OFD Sender: No OFD packet to send [03:39:41]OFD Sender: No OFD packet to send [03:39:46]OFD Sender: No OFD packet to send [03:39:51]OFD Sender: No OFD packet to send [03:39:56]OFD Sender: No OFD packet to send [03:40:01]OFD Sender: No OFD packet to send [03:40:06]OFD Sender: No OFD packet to send [03:40:11]OFD Sender: No OFD packet to send [03:40:16]OFD Sender: No OFD packet to send [03:40:21]OFD Sender: No OFD packet to send [03:40:26]OFD Sender: No OFD packet to send [03:40:31]OFD Sender: No OFD packet to send [03:40:36]OFD Sender: No OFD packet to send [03:40:41]OFD Sender: No OFD packet to send [03:40:46]OFD Sender: No OFD packet to send [03:40:51]OFD Sender: No OFD packet to send [03:40:56]OFD Sender: No OFD packet to send [03:41:01]OFD Sender: No OFD packet to send [03:41:06]OFD Sender: No OFD packet to send [03:41:11]OFD Sender: No OFD packet to send [03:41:16]OFD Sender: No OFD packet to send [03:41:21]OFD Sender: No OFD packet to send [03:41:26]OFD Sender: No OFD packet to send [03:41:31]OFD Sender: No OFD packet to send [03:41:36]OFD Sender: No OFD packet to send [03:41:41]OFD Sender: No OFD packet to send [03:41:46]OFD Sender: No OFD packet to send [03:41:51]OFD Sender: No OFD packet to send [03:41:56]OFD Sender: No OFD packet to send [03:42:01]OFD Sender: No OFD packet to send [03:42:06]OFD Sender: No OFD packet to send [03:42:11]OFD Sender: No OFD packet to send [03:42:16]OFD Sender: No OFD packet to send [03:42:21]OFD Sender: No OFD packet to send [03:42:26]OFD Sender: No OFD packet to send [03:42:31]OFD Sender: No OFD packet to send [03:42:36]OFD Sender: No OFD packet to send [03:42:41]OFD Sender: No OFD packet to send [03:42:46]OFD Sender: No OFD packet to send [03:42:51]OFD Sender: No OFD packet to send [03:42:56]OFD Sender: No OFD packet to send [03:43:01]OFD Sender: No OFD packet to send [03:43:06]OFD Sender: No OFD packet to send [03:43:11]OFD Sender: No OFD packet to send [03:43:16]OFD Sender: No OFD packet to send [03:43:21]OFD Sender: No OFD packet to send [03:43:26]OFD Sender: No OFD packet to send [03:43:31]OFD Sender: No OFD packet to send [03:43:36]OFD Sender: No OFD packet to send [03:43:41]OFD Sender: No OFD packet to send [03:43:46]OFD Sender: No OFD packet to send [03:43:51]OFD Sender: No OFD packet to send [03:43:56]OFD Sender: No OFD packet to send [03:44:01]OFD Sender: No OFD packet to send [03:44:06]OFD Sender: No OFD packet to send [03:44: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:42]OFD Sender: No OFD packet to send [03:53:47]OFD Sender: No OFD packet to send [03:53:52]OFD Sender: No OFD packet to send [03:53:57]OFD Sender: No OFD packet to send [03:54:02]OFD Sender: No OFD packet to send [03:54:07]OFD Sender: No OFD packet to send [03:54:12]OFD Sender: No OFD packet to send [03:54:17]OFD Sender: No OFD packet to send [03:54:22]OFD Sender: No OFD packet to send [03:54:27]OFD Sender: No OFD packet to send [03:54:32]OFD Sender: No OFD packet to send [03:54:37]OFD Sender: No OFD packet to send [03:54:42]OFD Sender: No OFD packet to send [03:54:47]OFD Sender: No OFD packet to send [03:54:52]OFD Sender: No OFD packet to send [03:54:57]OFD Sender: No OFD packet to send [03:55:02]OFD Sender: No OFD packet to send [03:55:07]OFD Sender: No OFD packet to send [03:55:12]OFD Sender: No OFD packet to send [03:55:17]OFD Sender: No OFD packet to send [03:55:22]OFD Sender: No OFD packet to send [03:55:27]OFD Sender: No OFD packet to send [03:55:32]OFD Sender: No OFD packet to send [03:55:37]OFD Sender: No OFD packet to send [03:55:42]OFD Sender: No OFD packet to send [03:55:47]OFD Sender: No OFD packet to send [03:55:52]OFD Sender: No OFD packet to send [03:55:57]OFD Sender: No OFD packet to send [03:56:02]OFD Sender: No OFD packet to send [03:56:07]OFD Sender: No OFD packet to send [03:56:12]OFD Sender: No OFD packet to send [03:56:17]OFD Sender: No OFD packet to send [03:56:22]OFD Sender: No OFD packet to send [03:56:27]OFD Sender: No OFD packet to send [03:56:32]OFD Sender: No OFD packet to send [03:56:37]OFD Sender: No OFD packet to send [03:56:42]OFD Sender: No OFD packet to send [03:56:47]OFD Sender: No OFD packet to send [03:56:52]OFD Sender: No OFD packet to send [03:56:57]OFD Sender: No OFD packet to send [03:57:02]OFD Sender: No OFD packet to send [03:57:07]OFD Sender: No OFD packet to send [03:57:12]OFD Sender: No OFD packet to send [03:57:17]OFD Sender: No OFD packet to send [03:57:22]OFD Sender: No OFD packet to send [03:57:27]OFD Sender: No OFD packet to send [03:57:32]OFD Sender: No OFD packet to send [03:57:37]OFD Sender: No OFD packet to send [03:57:42]OFD Sender: No OFD packet to send [03:57:47]OFD Sender: No OFD packet to send [03:57:52]OFD Sender: No OFD packet to send [03:57:57]OFD Sender: No OFD packet to send [03:58:02]OFD Sender: No OFD packet to send [03:58:07]OFD Sender: No OFD packet to send [03:58:12]OFD Sender: No OFD packet to send [03:58:17]OFD Sender: No OFD packet to send [03:58:22]OFD Sender: No OFD packet to send [03:58:27]OFD Sender: No OFD packet to send [03:58:32]OFD Sender: No OFD packet to send [03:58:37]OFD Sender: No OFD packet to send [03:58:42]OFD Sender: No OFD packet to send [03:58:47]OFD Sender: No OFD packet to send [03:58:52]OFD Sender: No OFD packet to send [03:58:57]OFD Sender: No OFD packet to send [03:59:02]OFD Sender: No OFD packet to send [03:59:07]OFD Sender: No OFD packet to send [03:59:12]OFD Sender: No OFD packet to send [03:59:17]OFD Sender: No OFD packet to send [03:59:22]OFD Sender: No OFD packet to send [03:59:27]OFD Sender: No OFD packet to send [03:59:32]OFD Sender: No OFD packet to send [03:59:37]OFD Sender: No OFD packet to send [03:59:42]OFD Sender: No OFD packet to send [03:59:47]OFD Sender: No OFD packet to send [03:59:52]OFD Sender: No OFD packet to send [03:59:57]OFD Sender: No OFD packet to send [04:00:02]OFD Sender: No OFD packet to send [04:00:07]OFD Sender: No OFD packet to send [04:00:12]OFD Sender: No OFD packet to send [04:00:17]OFD Sender: No OFD packet to send [04:00:22]OFD Sender: No OFD packet to send [04:00:27]OFD Sender: No OFD packet to send [04:00:32]OFD Sender: No OFD packet to send [04:00:37]OFD Sender: No OFD packet to send [04:00:42]OFD Sender: No OFD packet to send [04:00:47]OFD Sender: No OFD packet to send [04:00:52]OFD Sender: No OFD packet to send [04:00:57]OFD Sender: No OFD packet to send [04:01:02]OFD Sender: No OFD packet to send [04:01:07]OFD Sender: No OFD packet to send [04:01:12]OFD Sender: No OFD packet to send [04:01:17]OFD Sender: No OFD packet to send [04:01:22]OFD Sender: No OFD packet to send [04:01:27]OFD Sender: No OFD packet to send [04:01:32]OFD Sender: No OFD packet to send [04:01:37]OFD Sender: No OFD packet to send [04:01:42]OFD Sender: No OFD packet to send [04:01:47]OFD Sender: No OFD packet to send [04:01:52]OFD Sender: No OFD packet to send [04:01:57]OFD Sender: No OFD packet to send [04:02:02]OFD Sender: No OFD packet to send [04:02:07]OFD Sender: No OFD packet to send [04:02:12]OFD Sender: No OFD packet to send [04:02:17]OFD Sender: No OFD packet to send [04:02:22]OFD Sender: No OFD packet to send [04:02:27]OFD Sender: No OFD packet to send [04:02: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:43]OFD Sender: No OFD packet to send [04:10:48]OFD Sender: No OFD packet to send [04:10:53]OFD Sender: No OFD packet to send [04:10:58]OFD Sender: No OFD packet to send [04:11:03]OFD Sender: No OFD packet to send [04:11:08]OFD Sender: No OFD packet to send [04:11:13]OFD Sender: No OFD packet to send [04:11:18]OFD Sender: No OFD packet to send [04:11:23]OFD Sender: No OFD packet to send [04:11:28]OFD Sender: No OFD packet to send [04:11:33]OFD Sender: No OFD packet to send [04:11:38]OFD Sender: No OFD packet to send [04:11:43]OFD Sender: No OFD packet to send [04:11:48]OFD Sender: No OFD packet to send [04:11:53]OFD Sender: No OFD packet to send [04:11:58]OFD Sender: No OFD packet to send [04:12:03]OFD Sender: No OFD packet to send [04:12:08]OFD Sender: No OFD packet to send [04:12:13]OFD Sender: No OFD packet to send [04:12:18]OFD Sender: No OFD packet to send [04:12:23]OFD Sender: No OFD packet to send [04:12:28]OFD Sender: No OFD packet to send [04:12:33]OFD Sender: No OFD packet to send [04:12:38]OFD Sender: No OFD packet to send [04:12:43]OFD Sender: No OFD packet to send [04:12:48]OFD Sender: No OFD packet to send [04:12:53]OFD Sender: No OFD packet to send [04:12:58]OFD Sender: No OFD packet to send [04:13:03]OFD Sender: No OFD packet to send [04:13:08]OFD Sender: No OFD packet to send [04:13:13]OFD Sender: No OFD packet to send [04:13:18]OFD Sender: No OFD packet to send [04:13:23]OFD Sender: No OFD packet to send [04:13:28]OFD Sender: No OFD packet to send [04:13:33]OFD Sender: No OFD packet to send [04:13:38]OFD Sender: No OFD packet to send [04:13:43]OFD Sender: No OFD packet to send [04:13:48]OFD Sender: No OFD packet to send [04:13:53]OFD Sender: No OFD packet to send [04:13:58]OFD Sender: No OFD packet to send [04:14:03]OFD Sender: No OFD packet to send [04:14:08]OFD Sender: No OFD packet to send [04:14:13]OFD Sender: No OFD packet to send [04:14:18]OFD Sender: No OFD packet to send [04:14:23]OFD Sender: No OFD packet to send [04:14:28]OFD Sender: No OFD packet to send [04:14:33]OFD Sender: No OFD packet to send [04:14:38]OFD Sender: No OFD packet to send [04:14:43]OFD Sender: No OFD packet to send [04:14:48]OFD Sender: No OFD packet to send [04:14:53]OFD Sender: No OFD packet to send [04:14:58]OFD Sender: No OFD packet to send [04:15:03]OFD Sender: No OFD packet to send [04:15:08]OFD Sender: No OFD packet to send [04:15:13]OFD Sender: No OFD packet to send [04:15:18]OFD Sender: No OFD packet to send [04:15:23]OFD Sender: No OFD packet to send [04:15:28]OFD Sender: No OFD packet to send [04:15:33]OFD Sender: No OFD packet to send [04:15:38]OFD Sender: No OFD packet to send [04:15:43]OFD Sender: No OFD packet to send [04:15:48]OFD Sender: No OFD packet to send [04:15:53]OFD Sender: No OFD packet to send [04:15:58]OFD Sender: No OFD packet to send [04:16:03]OFD Sender: No OFD packet to send [04:16:08]OFD Sender: No OFD packet to send [04:16:13]OFD Sender: No OFD packet to send [04:16:18]OFD Sender: No OFD packet to send [04:16:23]OFD Sender: No OFD packet to send [04:16:28]OFD Sender: No OFD packet to send [04:16:33]OFD Sender: No OFD packet to send [04:16:38]OFD Sender: No OFD packet to send [04:16:43]OFD Sender: No OFD packet to send [04:16:48]OFD Sender: No OFD packet to send [04:16:53]OFD Sender: No OFD packet to send [04:16:58]OFD Sender: No OFD packet to send [04:17:03]OFD Sender: No OFD packet to send [04:17:08]OFD Sender: No OFD packet to send [04:17:13]OFD Sender: No OFD packet to send [04:17:18]OFD Sender: No OFD packet to send [04:17:23]OFD Sender: No OFD packet to send [04:17:28]OFD Sender: No OFD packet to send [04:17:33]OFD Sender: No OFD packet to send [04:17:38]OFD Sender: No OFD packet to send [04:17:43]OFD Sender: No OFD packet to send [04:17:48]OFD Sender: No OFD packet to send [04:17:53]OFD Sender: No OFD packet to send [04:17:58]OFD Sender: No OFD packet to send [04:18:03]OFD Sender: No OFD packet to send [04:18:08]OFD Sender: No OFD packet to send [04:18:13]OFD Sender: No OFD packet to send [04:18:18]OFD Sender: No OFD packet to send [04:18:23]OFD Sender: No OFD packet to send [04:18:28]OFD Sender: No OFD packet to send [04:18:33]OFD Sender: No OFD packet to send [04:18:38]OFD Sender: No OFD packet to send [04:18:43]OFD Sender: No OFD packet to send [04:18:48]OFD Sender: No OFD packet to send [04:18:53]OFD Sender: No OFD packet to send [04:18:58]OFD Sender: No OFD packet to send [04:19:03]OFD Sender: No OFD packet to send [04:19:08]OFD Sender: No OFD packet to send [04:19:13]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:44]OFD Sender: No OFD packet to send [04:27:49]OFD Sender: No OFD packet to send [04:27:54]OFD Sender: No OFD packet to send [04:27:59]OFD Sender: No OFD packet to send [04:28:04]OFD Sender: No OFD packet to send [04:28:09]OFD Sender: No OFD packet to send [04:28:14]OFD Sender: No OFD packet to send [04:28:19]OFD Sender: No OFD packet to send [04:28:24]OFD Sender: No OFD packet to send [04:28:29]OFD Sender: No OFD packet to send [04:28:34]OFD Sender: No OFD packet to send [04:28:39]OFD Sender: No OFD packet to send [04:28:44]OFD Sender: No OFD packet to send [04:28:49]OFD Sender: No OFD packet to send [04:28:54]OFD Sender: No OFD packet to send [04:28:59]OFD Sender: No OFD packet to send [04:29:04]OFD Sender: No OFD packet to send [04:29:09]OFD Sender: No OFD packet to send [04:29:14]OFD Sender: No OFD packet to send [04:29:19]OFD Sender: No OFD packet to send [04:29:24]OFD Sender: No OFD packet to send [04:29:29]OFD Sender: No OFD packet to send [04:29:34]OFD Sender: No OFD packet to send [04:29:39]OFD Sender: No OFD packet to send [04:29:44]OFD Sender: No OFD packet to send [04:29:49]OFD Sender: No OFD packet to send [04:29:54]OFD Sender: No OFD packet to send [04:29:59]OFD Sender: No OFD packet to send [04:30:04]OFD Sender: No OFD packet to send [04:30:09]OFD Sender: No OFD packet to send [04:30:14]OFD Sender: No OFD packet to send [04:30:19]OFD Sender: No OFD packet to send [04:30:24]OFD Sender: No OFD packet to send [04:30:29]OFD Sender: No OFD packet to send [04:30:34]OFD Sender: No OFD packet to send [04:30:39]OFD Sender: No OFD packet to send [04:30:44]OFD Sender: No OFD packet to send [04:30:49]OFD Sender: No OFD packet to send [04:30:54]OFD Sender: No OFD packet to send [04:30:59]OFD Sender: No OFD packet to send [04:31:04]OFD Sender: No OFD packet to send [04:31:09]OFD Sender: No OFD packet to send [04:31:14]OFD Sender: No OFD packet to send [04:31:19]OFD Sender: No OFD packet to send [04:31:24]OFD Sender: No OFD packet to send [04:31:29]OFD Sender: No OFD packet to send [04:31:34]OFD Sender: No OFD packet to send [04:31:39]OFD Sender: No OFD packet to send [04:31:44]OFD Sender: No OFD packet to send [04:31:49]OFD Sender: No OFD packet to send [04:31:54]OFD Sender: No OFD packet to send [04:31:59]OFD Sender: No OFD packet to send [04:32:04]OFD Sender: No OFD packet to send [04:32:09]OFD Sender: No OFD packet to send [04:32:14]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:45]OFD Sender: No OFD packet to send [04:44:50]OFD Sender: No OFD packet to send [04:44:55]OFD Sender: No OFD packet to send [04:45:00]OFD Sender: No OFD packet to send [04:45:05]OFD Sender: No OFD packet to send [04:45:10]OFD Sender: No OFD packet to send [04:45:15]OFD Sender: No OFD packet to send [04:45:20]OFD Sender: No OFD packet to send [04:45:25]OFD Sender: No OFD packet to send [04:45:30]OFD Sender: No OFD packet to send [04:45:35]OFD Sender: No OFD packet to send [04:45:40]OFD Sender: No OFD packet to send [04:45:45]OFD Sender: No OFD packet to send [04:45:50]OFD Sender: No OFD packet to send [04:45:55]OFD Sender: No OFD packet to send [04:46:00]OFD Sender: No OFD packet to send [04:46:05]OFD Sender: No OFD packet to send [04:46:10]OFD Sender: No OFD packet to send [04:46:15]OFD Sender: No OFD packet to send [04:46:20]OFD Sender: No OFD packet to send [04:46:25]OFD Sender: No OFD packet to send [04:46:30]OFD Sender: No OFD packet to send [04:46:35]OFD Sender: No OFD packet to send [04:46:40]OFD Sender: No OFD packet to send [04:46:45]OFD Sender: No OFD packet to send [04:46:50]OFD Sender: No OFD packet to send [04:46:55]OFD Sender: No OFD packet to send [04:47:00]OFD Sender: No OFD packet to send [04:47:05]OFD Sender: No OFD packet to send [04:47:10]OFD Sender: No OFD packet to send [04:47:15]OFD Sender: No OFD packet to send [04:47:20]OFD Sender: No OFD packet to send [04:47:25]OFD Sender: No OFD packet to send [04:47:30]OFD Sender: No OFD packet to send [04:47:35]OFD Sender: No OFD packet to send [04:47:40]OFD Sender: No OFD packet to send [04:47:45]OFD Sender: No OFD packet to send [04:47:50]OFD Sender: No OFD packet to send [04:47:55]OFD Sender: No OFD packet to send [04:48:00]OFD Sender: No OFD packet to send [04:48:05]OFD Sender: No OFD packet to send [04:48:10]OFD Sender: No OFD packet to send [04:48:15]OFD Sender: No OFD packet to send [04:48:20]OFD Sender: No OFD packet to send [04:48:25]OFD Sender: No OFD packet to send [04:48:30]OFD Sender: No OFD packet to send [04:48:35]OFD Sender: No OFD packet to send [04:48:40]OFD Sender: No OFD packet to send [04:48:45]OFD Sender: No OFD packet to send [04:48:50]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:41]OFD Sender: No OFD packet to send [05:01:46]OFD Sender: No OFD packet to send [05:01:51]OFD Sender: No OFD packet to send [05:01:56]OFD Sender: No OFD packet to send [05:02:01]OFD Sender: No OFD packet to send [05:02:06]OFD Sender: No OFD packet to send [05:02:11]OFD Sender: No OFD packet to send [05:02:16]OFD Sender: No OFD packet to send [05:02:21]OFD Sender: No OFD packet to send [05:02:26]OFD Sender: No OFD packet to send [05:02:31]OFD Sender: No OFD packet to send [05:02:36]OFD Sender: No OFD packet to send [05:02:41]OFD Sender: No OFD packet to send [05:02:46]OFD Sender: No OFD packet to send [05:02:51]OFD Sender: No OFD packet to send [05:02:56]OFD Sender: No OFD packet to send [05:03:01]OFD Sender: No OFD packet to send [05:03:06]OFD Sender: No OFD packet to send [05:03:11]OFD Sender: No OFD packet to send [05:03:16]OFD Sender: No OFD packet to send [05:03:21]OFD Sender: No OFD packet to send [05:03:26]OFD Sender: No OFD packet to send [05:03:31]OFD Sender: No OFD packet to send [05:03:36]OFD Sender: No OFD packet to send [05:03:41]OFD Sender: No OFD packet to send [05:03:46]OFD Sender: No OFD packet to send [05:03:51]OFD Sender: No OFD packet to send [05:03:56]OFD Sender: No OFD packet to send [05:04:01]OFD Sender: No OFD packet to send [05:04:06]OFD Sender: No OFD packet to send [05:04:11]OFD Sender: No OFD packet to send [05:04:16]OFD Sender: No OFD packet to send [05:04:21]OFD Sender: No OFD packet to send [05:04:26]OFD Sender: No OFD packet to send [05:04:31]OFD Sender: No OFD packet to send [05:04:36]OFD Sender: No OFD packet to send [05:04:41]OFD Sender: No OFD packet to send [05:04:46]OFD Sender: No OFD packet to send [05:04:51]OFD Sender: No OFD packet to send [05:04:56]OFD Sender: No OFD packet to send [05:05:01]OFD Sender: No OFD packet to send [05:05:06]OFD Sender: No OFD packet to send [05:05:11]OFD Sender: No OFD packet to send [05:05:16]OFD Sender: No OFD packet to send [05:05:21]OFD Sender: No OFD packet to send [05:05:26]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:42]OFD Sender: No OFD packet to send [05:18:47]OFD Sender: No OFD packet to send [05:18:52]OFD Sender: No OFD packet to send [05:18:57]OFD Sender: No OFD packet to send [05:19:02]OFD Sender: No OFD packet to send [05:19:07]OFD Sender: No OFD packet to send [05:19:12]OFD Sender: No OFD packet to send [05:19:17]OFD Sender: No OFD packet to send [05:19:22]OFD Sender: No OFD packet to send [05:19:27]OFD Sender: No OFD packet to send [05:19:32]OFD Sender: No OFD packet to send [05:19:37]OFD Sender: No OFD packet to send [05:19:42]OFD Sender: No OFD packet to send [05:19:47]OFD Sender: No OFD packet to send [05:19:52]OFD Sender: No OFD packet to send [05:19:57]OFD Sender: No OFD packet to send [05:20:02]OFD Sender: No OFD packet to send [05:20:07]OFD Sender: No OFD packet to send [05:20:12]OFD Sender: No OFD packet to send [05:20:17]OFD Sender: No OFD packet to send [05:20:22]OFD Sender: No OFD packet to send [05:20:27]OFD Sender: No OFD packet to send [05:20:32]OFD Sender: No OFD packet to send [05:20:37]OFD Sender: No OFD packet to send [05:20:42]OFD Sender: No OFD packet to send [05:20:47]OFD Sender: No OFD packet to send [05:20:52]OFD Sender: No OFD packet to send [05:20:57]OFD Sender: No OFD packet to send [05:21:02]OFD Sender: No OFD packet to send [05:21:07]OFD Sender: No OFD packet to send [05:21:12]OFD Sender: No OFD packet to send [05:21:17]OFD Sender: No OFD packet to send [05:21:22]OFD Sender: No OFD packet to send [05:21:27]OFD Sender: No OFD packet to send [05:21:32]OFD Sender: No OFD packet to send [05:21:37]OFD Sender: No OFD packet to send [05:21:42]OFD Sender: No OFD packet to send [05:21:47]OFD Sender: No OFD packet to send [05:21:52]OFD Sender: No OFD packet to send [05:21:57]OFD Sender: No OFD packet to send [05:22:02]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:38]OFD Sender: No OFD packet to send [05:35:43]OFD Sender: No OFD packet to send [05:35:48]OFD Sender: No OFD packet to send [05:35:53]OFD Sender: No OFD packet to send [05:35:58]OFD Sender: No OFD packet to send [05:36:03]OFD Sender: No OFD packet to send [05:36:08]OFD Sender: No OFD packet to send [05:36:13]OFD Sender: No OFD packet to send [05:36:18]OFD Sender: No OFD packet to send [05:36:23]OFD Sender: No OFD packet to send [05:36:28]OFD Sender: No OFD packet to send [05:36:33]OFD Sender: No OFD packet to send [05:36:38]OFD Sender: No OFD packet to send [05:36:43]OFD Sender: No OFD packet to send [05:36:48]OFD Sender: No OFD packet to send [05:36:53]OFD Sender: No OFD packet to send [05:36:58]OFD Sender: No OFD packet to send [05:37:03]OFD Sender: No OFD packet to send [05:37:08]OFD Sender: No OFD packet to send [05:37:13]OFD Sender: No OFD packet to send [05:37:18]OFD Sender: No OFD packet to send [05:37:23]OFD Sender: No OFD packet to send [05:37:28]OFD Sender: No OFD packet to send [05:37:33]OFD Sender: No OFD packet to send [05:37:38]OFD Sender: No OFD packet to send [05:37:43]OFD Sender: No OFD packet to send [05:37:48]OFD Sender: No OFD packet to send [05:37:53]OFD Sender: No OFD packet to send [05:37:58]OFD Sender: No OFD packet to send [05:38:03]OFD Sender: No OFD packet to send [05:38:08]OFD Sender: No OFD packet to send [05:38:13]OFD Sender: No OFD packet to send [05:38:18]OFD Sender: No OFD packet to send [05:38:23]OFD Sender: No OFD packet to send [05:38:28]OFD Sender: No OFD packet to send [05:38:33]OFD Sender: No OFD packet to send [05:38:38]OFD Sender: No OFD packet to send [05:38:43]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:34]OFD Sender: No OFD packet to send [05:52:39]OFD Sender: No OFD packet to send [05:52:44]OFD Sender: No OFD packet to send [05:52:49]OFD Sender: No OFD packet to send [05:52:54]OFD Sender: No OFD packet to send [05:52:59]OFD Sender: No OFD packet to send [05:53:04]OFD Sender: No OFD packet to send [05:53:09]OFD Sender: No OFD packet to send [05:53:14]OFD Sender: No OFD packet to send [05:53:19]OFD Sender: No OFD packet to send [05:53:24]OFD Sender: No OFD packet to send [05:53:29]OFD Sender: No OFD packet to send [05:53:34]OFD Sender: No OFD packet to send [05:53:39]OFD Sender: No OFD packet to send [05:53:44]OFD Sender: No OFD packet to send [05:53:49]OFD Sender: No OFD packet to send [05:53:54]OFD Sender: No OFD packet to send [05:53:59]OFD Sender: No OFD packet to send [05:54:04]OFD Sender: No OFD packet to send [05:54:09]OFD Sender: No OFD packet to send [05:54:14]OFD Sender: No OFD packet to send [05:54:19]OFD Sender: No OFD packet to send [05:54:24]OFD Sender: No OFD packet to send [05:54:29]OFD Sender: No OFD packet to send [05:54:34]OFD Sender: No OFD packet to send [05:54:39]OFD Sender: No OFD packet to send [05:54:44]OFD Sender: No OFD packet to send [05:54:49]OFD Sender: No OFD packet to send [05:54:54]OFD Sender: No OFD packet to send [05:54:59]OFD Sender: No OFD packet to send [05:55:04]OFD Sender: No OFD packet to send [05:55:09]OFD Sender: No OFD packet to send [05:55:14]OFD Sender: No OFD packet to send [05:55:19]OFD Sender: No OFD packet to send [05:55:24]OFD Sender: No OFD packet to send [05:55:29]OFD Sender: No OFD packet to send [05:55:34]OFD Sender: No OFD packet to send [05:55:39]OFD Sender: No OFD packet to send [05:55:44]OFD Sender: No OFD packet to send [05:55:49]OFD Sender: No OFD packet to send [05:55:54]OFD Sender: No OFD packet to send [05:55:59]OFD Sender: No OFD packet to send [05:56:04]OFD Sender: No OFD packet to send [05:56:09]OFD Sender: No OFD packet to send [05:56:14]OFD Sender: No OFD packet to send [05:56:19]OFD Sender: No OFD packet to send [05:56:24]OFD Sender: No OFD packet to send [05:56:29]OFD Sender: No OFD packet to send [05:56:34]OFD Sender: No OFD packet to send [05:56:39]OFD Sender: No OFD packet to send [05:56:44]OFD Sender: No OFD packet to send [05:56:49]OFD Sender: No OFD packet to send [05:56:54]OFD Sender: No OFD packet to send [05:56:59]OFD Sender: No OFD packet to send [05:57:04]OFD Sender: No OFD packet to send [05:57:09]OFD Sender: No OFD packet to send [05:57:14]OFD Sender: No OFD packet to send [05:57:19]OFD Sender: No OFD packet to send [05:57:24]OFD Sender: No OFD packet to send [05:57:29]OFD Sender: No OFD packet to send [05:57:34]OFD Sender: No OFD packet to send [05:57:39]OFD Sender: No OFD packet to send [05:57:44]OFD Sender: No OFD packet to send [05:57:49]OFD Sender: No OFD packet to send [05:57:54]OFD Sender: No OFD packet to send [05:57:59]OFD Sender: No OFD packet to send [05:58:04]OFD Sender: No OFD packet to send [05:58:09]OFD Sender: No OFD packet to send [05:58:14]OFD Sender: No OFD packet to send [05:58:19]OFD Sender: No OFD packet to send [05:58:24]OFD Sender: No OFD packet to send [05:58: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:30]OFD Sender: No OFD packet to send [06:09:35]OFD Sender: No OFD packet to send [06:09:40]OFD Sender: No OFD packet to send [06:09:45]OFD Sender: No OFD packet to send [06:09:50]OFD Sender: No OFD packet to send [06:09:55]OFD Sender: No OFD packet to send [06:10:00]OFD Sender: No OFD packet to send [06:10:05]OFD Sender: No OFD packet to send [06:10:10]OFD Sender: No OFD packet to send [06:10:15]OFD Sender: No OFD packet to send [06:10:20]OFD Sender: No OFD packet to send [06:10:25]OFD Sender: No OFD packet to send [06:10:30]OFD Sender: No OFD packet to send [06:10:35]OFD Sender: No OFD packet to send [06:10:40]OFD Sender: No OFD packet to send [06:10:45]OFD Sender: No OFD packet to send [06:10:50]OFD Sender: No OFD packet to send [06:10:55]OFD Sender: No OFD packet to send [06:11:00]OFD Sender: No OFD packet to send [06:11:05]OFD Sender: No OFD packet to send [06:11:10]OFD Sender: No OFD packet to send [06:11:15]OFD Sender: No OFD packet to send [06:11:20]OFD Sender: No OFD packet to send [06:11:25]OFD Sender: No OFD packet to send [06:11:30]OFD Sender: No OFD packet to send [06:11:35]OFD Sender: No OFD packet to send [06:11:40]OFD Sender: No OFD packet to send [06:11:45]OFD Sender: No OFD packet to send [06:11:50]OFD Sender: No OFD packet to send [06:11:55]OFD Sender: No OFD packet to send [06:12:00]OFD Sender: No OFD packet to send [06:12:05]OFD Sender: No OFD packet to send [06:12:10]OFD Sender: No OFD packet to send [06:12:15]OFD Sender: No OFD packet to send [06:12:20]OFD Sender: No OFD packet to send [06:12:25]OFD Sender: No OFD packet to send [06:12:30]OFD Sender: No OFD packet to send [06:12:35]OFD Sender: No OFD packet to send [06:12:40]OFD Sender: No OFD packet to send [06:12:45]OFD Sender: No OFD packet to send [06:12:50]OFD Sender: No OFD packet to send [06:12:55]OFD Sender: No OFD packet to send [06: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:26]OFD Sender: No OFD packet to send [06:26:31]OFD Sender: No OFD packet to send [06:26:36]OFD Sender: No OFD packet to send [06:26:41]OFD Sender: No OFD packet to send [06:26:46]OFD Sender: No OFD packet to send [06:26:51]OFD Sender: No OFD packet to send [06:26:56]OFD Sender: No OFD packet to send [06:27:01]OFD Sender: No OFD packet to send [06:27:06]OFD Sender: No OFD packet to send [06:27:11]OFD Sender: No OFD packet to send [06:27:16]OFD Sender: No OFD packet to send [06:27:21]OFD Sender: No OFD packet to send [06:27:26]OFD Sender: No OFD packet to send [06:27:31]OFD Sender: No OFD packet to send [06:27:36]OFD Sender: No OFD packet to send [06:27:41]OFD Sender: No OFD packet to send [06:27:46]OFD Sender: No OFD packet to send [06:27:51]OFD Sender: No OFD packet to send [06:27:56]OFD Sender: No OFD packet to send [06:28:00]accept exits with 9 [06:28:00]New connection [06:28:00]New thread 3066563940 created [06:28:00]Thread 3066707300 joined [06:28:00]Waiting for new connection... [06:28:00] Sock 9.Parse request [06:28:00]Sock 9.Check first char [06:28:00]Sock 9.First char is OK [06:28:00]request: POST /json_proto HTTP/1.0 [06:28:00]Method: POST [06:28:00]URL: /json_proto [06:28:00]Method is POST - this is cgi request [06:28:00]url: /json_proto [06:28:00]query_string will be loaded in cgi processing [06:28:00]execute_cgi json_proto POST (null) [06:28:00]execute_cgi path=json_proto method=POST [06:28:00]POST find Content-Length [06:28:00]Host: 172.17.58.3:8080 [06:28:00]Content-Length: 676 [06:28:00]Content-Type: application/json [06:28:00] [06:28:00]POST finish read [06:28:00]Found Content-Length = 676 [06:28:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160727", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 9.110, "sum" : 600.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:28:00]execute_script... [06:28:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160727", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 9.110, "sum" : 600.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:28:00]POST & json_proto [06:28:00]process_json_proto [06:28:00]json parsed OK: [06:28:00]protocol is kg_v1.0 [06:28:00]action value=close_receipt [06:28:00]process_action close_receipt [06:28:00]cmd_close_receipt [06:28:00]MH_GetDate [06:28:00]Write to MH i2c: F0 00 00 96 13 98 [06:28:00]Write i2c OK [06:28:00]MH_I2C_Read... [06:28:00]Read from MH i2c: F0 [06:28:00]MH_I2C_Read... [06:28:00]Read from MH i2c: F0 09 00 [06:28:00]MH_I2C_Read... [06:28:00]Read from MH i2c: F0 09 00 96 13 00 F3 FC BA 66 DC E4 6D 64 41 [06:28:00]GetLastDocTimeStamp 1723518023 [06:28:00]current date 1723530483 [06:28:00]FM_GetShiftState [06:28:00]SAM_PROTO_GetShiftState [06:28:00]wFMCommunicate request_size=4 [06:28:00]MH_SAM_APDU [06:28:00]CAPDU: 80 13 01 00 [06:28:00]Write to MH i2c: E2 08 00 97 13 80 13 01 00 00 00 00 00 27 [06:28:00]Write i2c OK [06:28:00]MH_I2C_Read... [06:28:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:28:00]Read from MH i2c: E2 [06:28:00]MH_I2C_Read... [06:28:00]Read from MH i2c: E2 0E 00 [06:28:00]MH_I2C_Read... [06:28:00]Read from MH i2c: E2 0E 00 97 13 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 45 [06:28:00]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [06:28:00]wFMCommunicate OK [06:28:00]SAM_PROTO_GetShiftState done [06:28:00]FM_GetShiftState done [06:28:00]opened in 1723506770 [06:28:00]opened+sec_in_day 1723593170 [06:28:00]quantity*price = 60034 [06:28:00]sum+1 = 60036 [06:28:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 7 13.08.2024 06:28 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103096 ФПД: 53728444152134 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T062803&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103096&fm=53728444152134&tin=02508201610067®Number=0000000000092718&sum=60000 [06:28:01]StoreToDocumentArchive [06:28:01]shift 464 fd 103096 [06:28:01]save to /storage/0464/doc_00103096 [06:28:01]save last doc name /storage/0464/doc_00103096 to /storage/kkm_last_doc_name [06:28:01]save OK [06:28:01]Clear old archive folders... [06:28:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:28:01]tlvbuf is B6E6C7B0 [06:28:01]SAM_PROTO_ClearQueue [06:28:01]wFMCommunicate request_size=4 [06:28:01]MH_SAM_APDU [06:28:01]CAPDU: 80 09 00 00 [06:28:01]Write to MH i2c: E2 08 00 A4 13 80 09 00 00 00 00 00 00 29 [06:28:01]Write i2c OK [06:28:01]MH_I2C_Read... [06:28:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:28:01]Read from MH i2c: E2 [06:28:01]MH_I2C_Read... [06:28:01]Read from MH i2c: E2 03 00 [06:28:01]MH_I2C_Read... [06:28:01]Read from MH i2c: E2 03 00 A4 13 00 90 00 2B [06:28:01]RAPDU: 90 00 [06:28:01]wFMCommunicate OK [06:28:01]SAM_PROTO_ClearQueue done [06:28:01]KKMCreateOFDPacket [06:28:01]OFDProtocolAddRootSTLVToBuf [06:28:01]FM_MakeSignedData [06:28:01]FM_MakeSignedData [06:28:01]SAM_PROTO_SignData [06:28:01]wFMCommunicate request_size=4 [06:28:01]MH_SAM_APDU [06:28:01]CAPDU: 80 0D 01 02 [06:28:01]Write to MH i2c: E2 08 00 A5 13 80 0D 01 02 00 00 00 00 31 [06:28:01]Write i2c OK [06:28:01]MH_I2C_Read... [06:28:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:28:01]Read from MH i2c: E2 [06:28:01]MH_I2C_Read... [06:28:01]Read from MH i2c: E2 03 00 [06:28:01]MH_I2C_Read... [06:28:01]Read from MH i2c: E2 03 00 A5 13 00 90 00 2C [06:28:01]RAPDU: 90 00 [06:28:01]wFMCommunicate OK [06:28:01]wFMCommunicate request_size=255 [06:28:01]MH_SAM_APDU [06:28: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 96 23 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 F3 FC BA 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 B8 92 01 00 35 04 06 00 30 [06:28:01]Write to MH i2c: E2 02 01 A6 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 23 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 F3 FC BA 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 B8 92 01 00 35 04 06 00 30 00 00 45 [06:28:01]Write i2c OK [06:28:01]MH_I2C_Read... [06:28:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:28:02]Read from MH i2c: E2 [06:28:02]MH_I2C_Read... [06:28:02]Read from MH i2c: E2 03 00 [06:28:02]MH_I2C_Read... [06:28:02]Read from MH i2c: E2 03 00 A6 13 00 90 00 2D [06:28:02]RAPDU: 90 00 [06:28:02]wFMCommunicate OK [06:28:02]wFMCommunicate request_size=10 [06:28:02]MH_SAM_APDU [06:28:02]CAPDU: 80 0D 02 02 05 DD A0 D3 F9 46 [06:28:02]Write to MH i2c: E2 0D 00 A7 13 80 0D 02 02 05 00 DD A0 D3 F9 46 00 00 CD [06:28:02]Write i2c OK [06:28:02]MH_I2C_Read... [06:28:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:28:02]Read from MH i2c: E2 [06:28:02]MH_I2C_Read... [06:28:02]Read from MH i2c: E2 03 00 [06:28:02]MH_I2C_Read... [06:28:02]Read from MH i2c: E2 03 00 A7 13 00 90 00 2E [06:28:02]RAPDU: 90 00 [06:28:02]wFMCommunicate OK [06:28:02]wFMCommunicate request_size=4 [06:28:02]MH_SAM_APDU [06:28:02]CAPDU: 80 0D 03 02 [06:28:02]Write to MH i2c: E2 08 00 A8 13 80 0D 03 02 00 00 00 00 36 [06:28:02]Write i2c OK [06:28:02]MH_I2C_Read... [06:28:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:28:02]Read from MH i2c: E2 [06:28:02]MH_I2C_Read... [06:28:02]Read from MH i2c: E2 0B 00 [06:28:02]MH_I2C_Read... [06:28:02]Read from MH i2c: E2 0B 00 A8 13 00 16 DE F8 19 21 4B C9 23 90 00 94 [06:28:02]RAPDU: 16 DE F8 19 21 4B C9 23 90 00 [06:28:02]wFMCommunicate OK [06:28:02]SAM_PROTO_SignData done [06:28:02]FM_MakeSignedData done [06:28:02]CreateOFDProtocolMessage [06:28:02]wFMCommunicate request_size=4 [06:28:02]MH_SAM_APDU [06:28:02]CAPDU: 80 11 00 00 [06:28:02]Write to MH i2c: E2 08 00 A9 13 80 11 00 00 00 00 00 00 36 [06:28:02]Write i2c OK [06:28:02]MH_I2C_Read... [06:28:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:28:02]Read from MH i2c: E2 [06:28:02]MH_I2C_Read... [06:28:02]Read from MH i2c: E2 17 00 [06:28:02]MH_I2C_Read... [06:28:02]Read from MH i2c: E2 17 00 A9 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 8A [06:28:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [06:28:02]wFMCommunicate OK [06:28:02]CreateOFDProtocolMessage done [06:28:02]OFDSenderStorePacket 103096 [06:28:02]StoreOFDPacket docnum=103096 [06:28:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 CF AB 07 01 36 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 96 23 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 F3 FC BA 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 B8 92 01 00 35 04 06 00 30 DD A0 D3 F9 46 16 DE F8 19 21 4B C9 23 [06:28:02]CheckFolder [06:28:02]dirname=/storage/ofd_packets [06:28:02]CheckFolder done [06:28:02]ProducePacketName [06:28:02]name=ofd_packets/00103096 [06:28:02]NVStorageSaveData ofd_packets/00103096 [06:28:02]File name is /storage/ofd_packets/00103096 [06:28:02]Write 301 bytes [06:28:02]NVStorageSaveData done [06:28:02]OFDSenderStorePacket done [06:28:02]KKMCreateOFDPacket done [06:28:02]NVStorageSaveData kkm_last_timestamp [06:28:02]File name is /storage/kkm_last_timestamp [06:28:02]Write 4 bytes [06:28:02]NVStorageSaveData done [06:28:02]ExternCall_PrintAddStr [06:28:02]wPrintStart [06:28:02]Write to MH i2c: 01 00 00 AA 13 BD [06:28:02]Write i2c OK [06:28:02]MH_I2C_Read... [06:28:02]Read from MH i2c: 01 [06:28:02]MH_I2C_Read... [06:28:02]Read from MH i2c: 01 07 00 [06:28:02]MH_I2C_Read... [06:28:02]Read from MH i2c: 01 07 00 AA 13 00 00 00 00 00 FF 0F D2 [06:28:02]RasterBufferAndPrint [06:28:02]line Счет N : (1)160727 [06:28:02]line ИНН: 02508201610067 [06:28:02]line Контрольно-Кассовый Чек [06:28:02]line ПРОДАЖА [06:28:02]line ТРК (МРК, ГНК) : 3 [06:28:02]line Товар: 2710124130 [06:28:02]line Аи-92-К-5 [06:28:02]line 9.110 * 65.90 [06:28:02]line = 600.35 [06:28:02]line НДС 12% НСП 1% [06:28:02]line > о реализуемом товаре [06:28:02]line ОКРУГЛЕНИЕ: -0.35 [06:28:02]line ИТОГО: 600.00 [06:28:02]line Внесено: 600.00 [06:28:02]line СДАЧА: 0.00 [06:28:02]line НСП 1% : 5.31 [06:28:02]line НДС 12% : 63.75 [06:28:02]line Наличными: 600.00 [06:28:02]line Безнал.: 0.00 [06:28:02]line Место: АЗС № 38 "Партнер Нефть" [06:28:02]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [06:28:02]line СНО: Общий режим [06:28:02]line Чек 7 13.08.2024 06:28 [06:28:02]line Смена: 464 ФФД: 1.0 [06:28:02]line ЗНМ: 0300000126 [06:28:02]line РНМ: 0000000000092718 [06:28:02]line Версия ККМ: 001 [06:28:02]line ФМ: 0000000000875058 [06:28:02]line ФД: 103096 [06:28:02]line ФПД: 53728444152134 [06:28:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T062803&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103096&fm=53728444152134&tin=02508201610067®Number=0000000000092718&sum=60000 [06:28:02]OFD Sender: Processing packet 103096 [packets to send 69, broken 68] [06:28:02]ProducePacketName [06:28:02]name=ofd_packets/00103096 [06:28:02]OFD Sender: To server: pG, [06:28:02]CommunicateWithHost lk.salyk.kg:30040 [06:28:02]ConnectInit lk.salyk.kg [06:28:02]written 0, free lines is 4095 [06:28:02]Connected sock=10 [06:28:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 CF AB 07 01 36 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 96 23 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 F3 FC BA 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 B8 92 01 00 35 04 06 00 30 DD A0 D3 F9 46 16 DE F8 19 21 4B C9 23 [06:28:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 A4 82 47 00 22 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 B8 92 01 00 F4 03 04 00 67 A3 BA 66 B6 04 01 00 00 8D 54 77 26 D7 07 1E 0D [06:28:02]CommunicateWithHost err = 0 [06:28:02]CheckOFDResponse [06:28:02]1017 (14) - 77093643461234 [06:28:02]1041 (16) - 0000000000875058 [06:28:02]1040 (4) - 103096 [06:28:02]1012 (4) - 13.08.2024 00:05 [06:28:02]1206 (1) - 0 [06:28:02]OFD Sender: Remove packet 103096 [06:28:02]ProducePacketName [06:28:02]name=ofd_packets/00103096 [06:28:02]NVStorageDeleteData [06:28:03]Write to MH i2c: 01 00 00 D5 13 E8 [06:28:03]Write i2c OK [06:28:03]MH_I2C_Read... [06:28:03]Read from MH i2c: 01 [06:28:03]MH_I2C_Read... [06:28:03]Read from MH i2c: 01 07 00 [06:28:03]MH_I2C_Read... [06:28:03]Read from MH i2c: 01 07 00 D5 13 00 00 00 00 00 D4 0C CF [06:28:03]RasterBufferAndPrint [06:28:03]line [06:28:03]line [06:28:03]line [06:28:03]line [06:28:03]line [06:28:03]written 0, free lines is 3294 [06:28:03]MH_Cut [06:28:03]Write to MH i2c: D1 01 00 DC 13 01 C1 [06:28:03]Write i2c OK [06:28:03]MH_I2C_Read... [06:28:03]Read from MH i2c: D1 [06:28:03]MH_I2C_Read... [06:28:03]Read from MH i2c: D1 01 00 [06:28:03]MH_I2C_Read... [06:28:03]Read from MH i2c: D1 01 00 DC 13 00 C0 [06:28:03]Write to MH i2c: 01 00 00 DD 13 F0 [06:28:03]Write i2c OK [06:28:03]MH_I2C_Read... [06:28:03]OFD Sender: No OFD packet to send [06:28:03]*** Cut start [06:28:03]*** Purtial cut [06:28:03]*** CUTSNS_PIN = 0 [06:28:04]*** Stage 1: CUTSNS_PIN = 1 [06:28:05]Read from MH i2c: 01 [06:28:05]MH_I2C_Read... [06:28:05]*** Stop cut motor [06:28:05]*** Cut end [06:28:05]Read from MH i2c: 01 07 00 [06:28:05]MH_I2C_Read... [06:28:05]Read from MH i2c: 01 07 00 DD 13 00 00 00 00 00 FF 0F 05 [06:28:05]process_action close_receipt done [06:28:05]requested_data is exist [06:28:05]produce_requested_data [06:28:05]requested_item fm.sn is exist - process it [06:28:05]wFMCommunicate request_size=4 [06:28:05]MH_SAM_APDU [06:28:05]CAPDU: 80 11 00 00 [06:28:05]Write to MH i2c: E2 08 00 DE 13 80 11 00 00 00 00 00 00 6B [06:28:05]Write i2c OK [06:28:05]MH_I2C_Read... [06:28:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:28:05]Read from MH i2c: E2 [06:28:05]MH_I2C_Read... [06:28:05]Read from MH i2c: E2 17 00 [06:28:05]MH_I2C_Read... [06:28:05]Read from MH i2c: E2 17 00 DE 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 BF [06:28:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [06:28:05]wFMCommunicate OK [06:28:05]requested_item fd.num is exist - process it [06:28:05]SAM_PROTO_GetFieldsCounters [06:28:05]wFMCommunicate request_size=4 [06:28:05]MH_SAM_APDU [06:28:05]CAPDU: 80 13 00 00 [06:28:05]Write to MH i2c: E2 08 00 DF 13 80 13 00 00 00 00 00 00 6E [06:28:05]Write i2c OK [06:28:05]MH_I2C_Read... [06:28:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:28:06]Read from MH i2c: E2 [06:28:06]MH_I2C_Read... [06:28:06]Read from MH i2c: E2 62 00 [06:28:06]MH_I2C_Read... [06:28:06]Read from MH i2c: E2 62 00 DF 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 B8 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [06:28:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 B8 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:28:06]wFMCommunicate OK [06:28:06]SAM_PROTO_GetFieldsCounters done [06:28:06]requested_item shift.num is exist - process it [06:28:06]requested_item shift.opened is exist - process it [06:28:06]req_shift_opened [06:28:06]FM_GetShiftState [06:28:06]SAM_PROTO_GetShiftState [06:28:06]wFMCommunicate request_size=4 [06:28:06]MH_SAM_APDU [06:28:06]CAPDU: 80 13 01 00 [06:28:06]Write to MH i2c: E2 08 00 E0 13 80 13 01 00 00 00 00 00 70 [06:28:06]Write i2c OK [06:28:06]MH_I2C_Read... [06:28:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:28:06]Read from MH i2c: E2 [06:28:06]MH_I2C_Read... [06:28:06]Read from MH i2c: E2 0E 00 [06:28:06]MH_I2C_Read... [06:28:06]Read from MH i2c: E2 0E 00 E0 13 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 8E [06:28:06]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [06:28:06]wFMCommunicate OK [06:28:06]SAM_PROTO_GetShiftState done [06:28:06]FM_GetShiftState done [06:28:06]req_shift_opened done [06:28:06]requested_item shift.open_date is exist - process it [06:28:06]req_shift_open_date [06:28:06]req_shift_open_date done [06:28:06]produce_requested_data done [06:28:06]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103096,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [06:28:06]process_action_free close_receipt [06:28:06]json_value_free [06:28:06]json_value_free done [06:28:06]process_json_proto returns [06:28:06]Send response to host [06:28:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103096,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [06:28:06]free response buf [06:28:06]execute_script done [06:28:06]execute_script returns [06:28:06]free content buf [06:28:06]Sock 9.Close socket [06:28:06]Sock 9.Thread stoped [06:28:08]OFD Sender: No OFD packet to send [06:28:13]OFD Sender: No OFD packet to send [06:28:18]OFD Sender: No OFD packet to send [06:28:23]OFD Sender: No OFD packet to send [06:28:28]OFD Sender: No OFD packet to send [06:28:33]OFD Sender: No OFD packet to send [06:28:38]OFD Sender: No OFD packet to send [06:28:43]OFD Sender: No OFD packet to send [06:28:48]OFD Sender: No OFD packet to send [06:28:53]OFD Sender: No OFD packet to send [06:28:58]OFD Sender: No OFD packet to send [06:29:03]OFD Sender: No OFD packet to send [06:29:08]OFD Sender: No OFD packet to send [06:29:13]OFD Sender: No OFD packet to send [06:29:18]OFD Sender: No OFD packet to send [06:29:23]OFD Sender: No OFD packet to send [06:29:28]OFD Sender: No OFD packet to send [06:29:33]OFD Sender: No OFD packet to send [06:29:38]OFD Sender: No OFD packet to send [06:29:43]OFD Sender: No OFD packet to send [06:29:48]OFD Sender: No OFD packet to send [06:29:53]OFD Sender: No OFD packet to send [06:29:58]OFD Sender: No OFD packet to send [06:30:03]OFD Sender: No OFD packet to send [06:30:08]OFD Sender: No OFD packet to send [06:30:13]OFD Sender: No OFD packet to send [06:30:18]OFD Sender: No OFD packet to send [06:30:23]OFD Sender: No OFD packet to send [06:30:28]OFD Sender: No OFD packet to send [06:30:33]OFD Sender: No OFD packet to send [06:30:38]OFD Sender: No OFD packet to send [06:30:43]OFD Sender: No OFD packet to send [06:30:48]OFD Sender: No OFD packet to send [06:30:53]OFD Sender: No OFD packet to send [06:30:58]OFD Sender: No OFD packet to send [06:31:03]OFD Sender: No OFD packet to send [06:31:08]OFD Sender: No OFD packet to send [06:31:13]OFD Sender: No OFD packet to send [06:31:18]OFD Sender: No OFD packet to send [06:31:23]OFD Sender: No OFD packet to send [06:31:28]OFD Sender: No OFD packet to send [06:31:33]OFD Sender: No OFD packet to send [06:31:38]OFD Sender: No OFD packet to send [06:31:43]OFD Sender: No OFD packet to send [06:31:48]OFD Sender: No OFD packet to send [06:31:53]OFD Sender: No OFD packet to send [06:31:58]OFD Sender: No OFD packet to send [06:32:03]OFD Sender: No OFD packet to send [06:32:08]OFD Sender: No OFD packet to send [06:32:13]OFD Sender: No OFD packet to send [06:32:18]OFD Sender: No OFD packet to send [06:32:23]OFD Sender: No OFD packet to send [06:32:28]OFD Sender: No OFD packet to send [06:32:33]OFD Sender: No OFD packet to send [06:32:38]OFD Sender: No OFD packet to send [06:32:43]OFD Sender: No OFD packet to send [06:32:48]OFD Sender: No OFD packet to send [06:32:53]OFD Sender: No OFD packet to send [06:32:58]OFD Sender: No OFD packet to send [06:33:03]OFD Sender: No OFD packet to send [06:33:08]OFD Sender: No OFD packet to send [06:33:13]OFD Sender: No OFD packet to send [06:33:18]OFD Sender: No OFD packet to send [06:33:23]OFD Sender: No OFD packet to send [06:33:28]OFD Sender: No OFD packet to send [06:33:33]OFD Sender: No OFD packet to send [06:33:38]OFD Sender: No OFD packet to send [06:33:43]OFD Sender: No OFD packet to send [06:33:48]OFD Sender: No OFD packet to send [06:33:53]OFD Sender: No OFD packet to send [06:33:58]OFD Sender: No OFD packet to send [06:34:03]OFD Sender: No OFD packet to send [06:34:08]OFD Sender: No OFD packet to send [06:34:13]OFD Sender: No OFD packet to send [06:34:18]OFD Sender: No OFD packet to send [06:34:23]OFD Sender: No OFD packet to send [06:34:28]OFD Sender: No OFD packet to send [06:34:33]OFD Sender: No OFD packet to send [06:34:38]OFD Sender: No OFD packet to send [06:34:43]OFD Sender: No OFD packet to send [06:34:48]OFD Sender: No OFD packet to send [06:34:53]OFD Sender: No OFD packet to send [06:34:58]OFD Sender: No OFD packet to send [06:35:03]OFD Sender: No OFD packet to send [06:35:08]OFD Sender: No OFD packet to send [06:35:13]OFD Sender: No OFD packet to send [06:35:18]OFD Sender: No OFD packet to send [06:35:23]OFD Sender: No OFD packet to send [06:35:28]OFD Sender: No OFD packet to send [06:35:33]OFD Sender: No OFD packet to send [06:35:38]OFD Sender: No OFD packet to send [06:35:43]OFD Sender: No OFD packet to send [06:35:48]OFD Sender: No OFD packet to send [06:35:53]OFD Sender: No OFD packet to send [06:35:58]OFD Sender: No OFD packet to send [06:36:03]OFD Sender: No OFD packet to send [06:36:08]OFD Sender: No OFD packet to send [06:36:13]OFD Sender: No OFD packet to send [06:36:18]OFD Sender: No OFD packet to send [06:36:23]OFD Sender: No OFD packet to send [06:36:28]OFD Sender: No OFD packet to send [06:36:33]OFD Sender: No OFD packet to send [06:36:38]OFD Sender: No OFD packet to send [06:36:43]OFD Sender: No OFD packet to send [06:36:48]OFD Sender: No OFD packet to send [06:36:53]OFD Sender: No OFD packet to send [06:36:58]OFD Sender: No OFD packet to send [06:37:03]OFD Sender: No OFD packet to send [06:37:08]OFD Sender: No OFD packet to send [06:37:13]OFD Sender: No OFD packet to send [06:37:18]OFD Sender: No OFD packet to send [06:37:23]OFD Sender: No OFD packet to send [06:37:28]OFD Sender: No OFD packet to send [06:37:33]OFD Sender: No OFD packet to send [06:37:38]OFD Sender: No OFD packet to send [06:37:43]OFD Sender: No OFD packet to send [06:37:49]OFD Sender: No OFD packet to send [06:37:54]OFD Sender: No OFD packet to send [06:37:59]OFD Sender: No OFD packet to send [06:38:04]OFD Sender: No OFD packet to send [06:38:09]OFD Sender: No OFD packet to send [06:38:14]OFD Sender: No OFD packet to send [06:38:19]OFD Sender: No OFD packet to send [06:38:24]OFD Sender: No OFD packet to send [06:38:29]OFD Sender: No OFD packet to send [06:38:34]OFD Sender: No OFD packet to send [06:38:39]OFD Sender: No OFD packet to send [06:38:44]OFD Sender: No OFD packet to send [06:38:49]OFD Sender: No OFD packet to send [06:38:54]OFD Sender: No OFD packet to send [06:38:56]accept exits with 7 [06:38:56]New connection [06:38:56]New thread 3066707300 created [06:38:56]Thread 3066563940 joined [06:38:56]Waiting for new connection... [06:38:56] Sock 7.Parse request [06:38:56]Sock 7.Check first char [06:38:56]Sock 7.First char is OK [06:38:56]request: POST /json_proto HTTP/1.0 [06:38:56]Method: POST [06:38:56]URL: /json_proto [06:38:56]Method is POST - this is cgi request [06:38:56]url: /json_proto [06:38:56]query_string will be loaded in cgi processing [06:38:56]execute_cgi json_proto POST (null) [06:38:56]execute_cgi path=json_proto method=POST [06:38:56]POST find Content-Length [06:38:56]Host: 172.17.58.3:8080 [06:38:56]Content-Length: 677 [06:38:56]Content-Type: application/json [06:38:56] [06:38:56]POST finish read [06:38:56]Found Content-Length = 677 [06:38:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 10.630, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:38:56]execute_script... [06:38:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 10.630, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:38:56]POST & json_proto [06:38:56]process_json_proto [06:38:56]json parsed OK: [06:38:56]protocol is kg_v1.0 [06:38:56]action value=close_receipt [06:38:56]process_action close_receipt [06:38:56]cmd_close_receipt [06:38:56]MH_GetDate [06:38:56]Write to MH i2c: F0 00 00 E1 13 E3 [06:38:56]Write i2c OK [06:38:56]MH_I2C_Read... [06:38:56]Read from MH i2c: F0 [06:38:56]MH_I2C_Read... [06:38:56]Read from MH i2c: F0 09 00 [06:38:56]MH_I2C_Read... [06:38:56]Read from MH i2c: F0 09 00 E1 13 00 83 FF BA 66 DC E4 6D 64 1F [06:38:56]GetLastDocTimeStamp 1723530483 [06:38:56]current date 1723531139 [06:38:56]FM_GetShiftState [06:38:56]SAM_PROTO_GetShiftState [06:38:56]wFMCommunicate request_size=4 [06:38:56]MH_SAM_APDU [06:38:56]CAPDU: 80 13 01 00 [06:38:56]Write to MH i2c: E2 08 00 E2 13 80 13 01 00 00 00 00 00 72 [06:38:56]Write i2c OK [06:38:56]MH_I2C_Read... [06:38:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:38:56]Read from MH i2c: E2 [06:38:56]MH_I2C_Read... [06:38:56]Read from MH i2c: E2 0E 00 [06:38:56]MH_I2C_Read... [06:38:56]Read from MH i2c: E2 0E 00 E2 13 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 90 [06:38:56]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [06:38:56]wFMCommunicate OK [06:38:56]SAM_PROTO_GetShiftState done [06:38:56]FM_GetShiftState done [06:38:56]opened in 1723506770 [06:38:56]opened+sec_in_day 1723593170 [06:38:56]quantity*price = 70051 [06:38:56]sum+1 = 70053 [06:38:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 8 13.08.2024 06:38 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103097 ФПД: 82201318833308 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T063859&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103097&fm=82201318833308&tin=02508201610067®Number=0000000000092718&sum=70000 [06:38:57]StoreToDocumentArchive [06:38:57]shift 464 fd 103097 [06:38:57]save to /storage/0464/doc_00103097 [06:38:57]save last doc name /storage/0464/doc_00103097 to /storage/kkm_last_doc_name [06:38:57]save OK [06:38:57]Clear old archive folders... [06:38:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:38:57]tlvbuf is B6E6C300 [06:38:57]SAM_PROTO_ClearQueue [06:38:57]wFMCommunicate request_size=4 [06:38:57]MH_SAM_APDU [06:38:57]CAPDU: 80 09 00 00 [06:38:57]Write to MH i2c: E2 08 00 EF 13 80 09 00 00 00 00 00 00 74 [06:38:57]Write i2c OK [06:38:57]MH_I2C_Read... [06:38:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:38:57]Read from MH i2c: E2 [06:38:57]MH_I2C_Read... [06:38:57]Read from MH i2c: E2 03 00 [06:38:57]MH_I2C_Read... [06:38:57]Read from MH i2c: E2 03 00 EF 13 00 90 00 76 [06:38:57]RAPDU: 90 00 [06:38:57]wFMCommunicate OK [06:38:57]SAM_PROTO_ClearQueue done [06:38:57]KKMCreateOFDPacket [06:38:57]OFDProtocolAddRootSTLVToBuf [06:38:57]FM_MakeSignedData [06:38:57]FM_MakeSignedData [06:38:57]SAM_PROTO_SignData [06:38:57]wFMCommunicate request_size=4 [06:38:57]MH_SAM_APDU [06:38:57]CAPDU: 80 0D 01 02 [06:38:57]Write to MH i2c: E2 08 00 F0 13 80 0D 01 02 00 00 00 00 7C [06:38:57]Write i2c OK [06:38:57]MH_I2C_Read... [06:38:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:38:57]Read from MH i2c: E2 [06:38:57]MH_I2C_Read... [06:38:57]Read from MH i2c: E2 03 00 [06:38:57]MH_I2C_Read... [06:38:57]Read from MH i2c: E2 03 00 F0 13 00 90 00 77 [06:38:57]RAPDU: 90 00 [06:38:57]wFMCommunicate OK [06:38:57]wFMCommunicate request_size=255 [06:38:57]MH_SAM_APDU [06:38: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 86 29 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 83 FF BA 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 B9 92 01 00 35 04 06 00 4A [06:38:57]Write to MH i2c: E2 02 01 F1 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 29 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 83 FF BA 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 B9 92 01 00 35 04 06 00 4A 00 00 74 [06:38:57]Write i2c OK [06:38:57]MH_I2C_Read... [06:38:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:38:57]Read from MH i2c: E2 [06:38:57]MH_I2C_Read... [06:38:57]Read from MH i2c: E2 03 00 [06:38:57]MH_I2C_Read... [06:38:57]Read from MH i2c: E2 03 00 F1 13 00 90 00 78 [06:38:57]RAPDU: 90 00 [06:38:57]wFMCommunicate OK [06:38:57]wFMCommunicate request_size=10 [06:38:57]MH_SAM_APDU [06:38:57]CAPDU: 80 0D 02 02 05 C2 FC 68 BC 9C [06:38:57]Write to MH i2c: E2 0D 00 F2 13 80 0D 02 02 05 00 C2 FC 68 BC 9C 00 00 07 [06:38:57]Write i2c OK [06:38:57]MH_I2C_Read... [06:38:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:38:57]Read from MH i2c: E2 [06:38:57]MH_I2C_Read... [06:38:57]Read from MH i2c: E2 03 00 [06:38:57]MH_I2C_Read... [06:38:57]Read from MH i2c: E2 03 00 F2 13 00 90 00 79 [06:38:57]RAPDU: 90 00 [06:38:57]wFMCommunicate OK [06:38:57]wFMCommunicate request_size=4 [06:38:57]MH_SAM_APDU [06:38:57]CAPDU: 80 0D 03 02 [06:38:57]Write to MH i2c: E2 08 00 F3 13 80 0D 03 02 00 00 00 00 81 [06:38:57]Write i2c OK [06:38:57]MH_I2C_Read... [06:38:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:38:57]Read from MH i2c: E2 [06:38:57]MH_I2C_Read... [06:38:57]Read from MH i2c: E2 0B 00 [06:38:57]MH_I2C_Read... [06:38:57]Read from MH i2c: E2 0B 00 F3 13 00 B7 6B BB 98 30 30 D6 77 90 00 A4 [06:38:57]RAPDU: B7 6B BB 98 30 30 D6 77 90 00 [06:38:57]wFMCommunicate OK [06:38:57]SAM_PROTO_SignData done [06:38:57]FM_MakeSignedData done [06:38:57]CreateOFDProtocolMessage [06:38:57]wFMCommunicate request_size=4 [06:38:57]MH_SAM_APDU [06:38:57]CAPDU: 80 11 00 00 [06:38:57]Write to MH i2c: E2 08 00 F4 13 80 11 00 00 00 00 00 00 81 [06:38:57]Write i2c OK [06:38:57]MH_I2C_Read... [06:38:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:38:58]Read from MH i2c: E2 [06:38:58]MH_I2C_Read... [06:38:58]Read from MH i2c: E2 17 00 [06:38:58]MH_I2C_Read... [06:38:58]Read from MH i2c: E2 17 00 F4 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 D5 [06:38:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [06:38:58]wFMCommunicate OK [06:38:58]CreateOFDProtocolMessage done [06:38:58]OFDSenderStorePacket 103097 [06:38:58]StoreOFDPacket docnum=103097 [06:38:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 C6 D0 07 01 B5 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 29 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 83 FF BA 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 B9 92 01 00 35 04 06 00 4A C2 FC 68 BC 9C B7 6B BB 98 30 30 D6 77 [06:38:58]CheckFolder [06:38:58]dirname=/storage/ofd_packets [06:38:58]CheckFolder done [06:38:58]ProducePacketName [06:38:58]name=ofd_packets/00103097 [06:38:58]NVStorageSaveData ofd_packets/00103097 [06:38:58]File name is /storage/ofd_packets/00103097 [06:38:58]Write 301 bytes [06:38:58]NVStorageSaveData done [06:38:58]OFDSenderStorePacket done [06:38:58]KKMCreateOFDPacket done [06:38:58]NVStorageSaveData kkm_last_timestamp [06:38:58]File name is /storage/kkm_last_timestamp [06:38:58]Write 4 bytes [06:38:58]NVStorageSaveData done [06:38:58]ExternCall_PrintAddStr [06:38:58]wPrintStart [06:38:58]Write to MH i2c: 01 00 00 F5 13 08 [06:38:58]Write i2c OK [06:38:58]MH_I2C_Read... [06:38:58]Read from MH i2c: 01 [06:38:58]MH_I2C_Read... [06:38:58]Read from MH i2c: 01 07 00 [06:38:58]MH_I2C_Read... [06:38:58]Read from MH i2c: 01 07 00 F5 13 00 00 00 00 00 FF 0F 1D [06:38:58]RasterBufferAndPrint [06:38:58]line Счет N : (1)160728 [06:38:58]line ИНН: 02508201610067 [06:38:58]line Контрольно-Кассовый Чек [06:38:58]line ПРОДАЖА [06:38:58]line ТРК (МРК, ГНК) : 7 [06:38:58]line Товар: 2710124130 [06:38:58]line Аи-92-К-5 [06:38:58]line 10.630 * 65.90 [06:38:58]line = 700.52 [06:38:58]line НДС 12% НСП 1% [06:38:58]line > о реализуемом товаре [06:38:58]line ОКРУГЛЕНИЕ: -0.52 [06:38:58]line ИТОГО: 700.00 [06:38:58]line Внесено: 700.00 [06:38:58]line СДАЧА: 0.00 [06:38:58]line НСП 1% : 6.20 [06:38:58]line НДС 12% : 74.39 [06:38:58]line Наличными: 700.00 [06:38:58]line Безнал.: 0.00 [06:38:58]line Место: АЗС № 38 "Партнер Нефть" [06:38:58]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [06:38:58]line СНО: Общий режим [06:38:58]line Чек 8 13.08.2024 06:38 [06:38:58]line Смена: 464 ФФД: 1.0 [06:38:58]line ЗНМ: 0300000126 [06:38:58]line РНМ: 0000000000092718 [06:38:58]line Версия ККМ: 001 [06:38:58]line ФМ: 0000000000875058 [06:38:58]line ФД: 103097 [06:38:58]line ФПД: 82201318833308 [06:38:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T063859&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103097&fm=82201318833308&tin=02508201610067®Number=0000000000092718&sum=70000 [06:38:58]OFD Sender: Processing packet 103097 [packets to send 69, broken 68] [06:38:58]ProducePacketName [06:38:58]name=ofd_packets/00103097 [06:38:58]OFD Sender: To server: pG, [06:38:58]CommunicateWithHost lk.salyk.kg:30040 [06:38:58]ConnectInit lk.salyk.kg [06:38:58]written 0, free lines is 4095 [06:38:58]Connected sock=10 [06:38:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 C6 D0 07 01 B5 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 29 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 83 FF BA 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 B9 92 01 00 35 04 06 00 4A C2 FC 68 BC 9C B7 6B BB 98 30 30 D6 77 [06:38:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 76 BE 47 00 3D 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 B9 92 01 00 F4 03 04 00 F7 A5 BA 66 B6 04 01 00 00 43 82 9B EF 0B 03 AB 81 [06:38:58]CommunicateWithHost err = 0 [06:38:58]CheckOFDResponse [06:38:58]1017 (14) - 77093643461234 [06:38:58]1041 (16) - 0000000000875058 [06:38:58]1040 (4) - 103097 [06:38:58]1012 (4) - 13.08.2024 00:16 [06:38:58]1206 (1) - 0 [06:38:58]OFD Sender: Remove packet 103097 [06:38:58]ProducePacketName [06:38:58]name=ofd_packets/00103097 [06:38:58]NVStorageDeleteData [06:38:58]Write to MH i2c: 01 00 00 20 14 34 [06:38:58]Write i2c OK [06:38:58]MH_I2C_Read... [06:38:58]Read from MH i2c: 01 [06:38:58]MH_I2C_Read... [06:38:58]Read from MH i2c: 01 07 00 [06:38:58]MH_I2C_Read... [06:38:58]Read from MH i2c: 01 07 00 20 14 00 00 00 00 00 E0 0C 27 [06:38:58]RasterBufferAndPrint [06:38:58]line [06:38:58]line [06:38:58]line [06:38:58]line [06:38:58]line [06:38:58]written 0, free lines is 3302 [06:38:58]MH_Cut [06:38:58]Write to MH i2c: D1 01 00 27 14 01 0D [06:38:58]Write i2c OK [06:38:58]MH_I2C_Read... [06:38:58]Read from MH i2c: D1 [06:38:58]MH_I2C_Read... [06:38:58]Read from MH i2c: D1 01 00 [06:38:58]MH_I2C_Read... [06:38:58]Read from MH i2c: D1 01 00 27 14 00 0C [06:38:58]Write to MH i2c: 01 00 00 28 14 3C [06:38:58]Write i2c OK [06:38:58]MH_I2C_Read... [06:38:59]OFD Sender: No OFD packet to send [06:38:59]*** Cut start [06:38:59]*** Purtial cut [06:38:59]*** Stage 1: CUTSNS_PIN = 1 [06:38:59]Read from MH i2c: 01 [06:38:59]MH_I2C_Read... [06:38:59]*** Stop cut motor [06:38:59]*** Cut end [06:38:59]Read from MH i2c: 01 07 00 [06:38:59]MH_I2C_Read... [06:38:59]Read from MH i2c: 01 07 00 28 14 00 00 00 00 00 FF 0F 51 [06:38:59]process_action close_receipt done [06:38:59]requested_data is exist [06:38:59]produce_requested_data [06:38:59]requested_item fm.sn is exist - process it [06:38:59]wFMCommunicate request_size=4 [06:38:59]MH_SAM_APDU [06:38:59]CAPDU: 80 11 00 00 [06:38:59]Write to MH i2c: E2 08 00 29 14 80 11 00 00 00 00 00 00 B7 [06:38:59]Write i2c OK [06:38:59]MH_I2C_Read... [06:38:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:38:59]Read from MH i2c: E2 [06:38:59]MH_I2C_Read... [06:38:59]Read from MH i2c: E2 17 00 [06:38:59]MH_I2C_Read... [06:38:59]Read from MH i2c: E2 17 00 29 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 0B [06:38:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [06:38:59]wFMCommunicate OK [06:38:59]requested_item fd.num is exist - process it [06:38:59]SAM_PROTO_GetFieldsCounters [06:38:59]wFMCommunicate request_size=4 [06:38:59]MH_SAM_APDU [06:38:59]CAPDU: 80 13 00 00 [06:38:59]Write to MH i2c: E2 08 00 2A 14 80 13 00 00 00 00 00 00 BA [06:38:59]Write i2c OK [06:38:59]MH_I2C_Read... [06:39:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:39:00]Read from MH i2c: E2 [06:39:00]MH_I2C_Read... [06:39:00]Read from MH i2c: E2 62 00 [06:39:00]MH_I2C_Read... [06:39:00]Read from MH i2c: E2 62 00 2A 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 B9 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [06:39:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 B9 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:39:00]wFMCommunicate OK [06:39:00]SAM_PROTO_GetFieldsCounters done [06:39:00]requested_item shift.num is exist - process it [06:39:00]requested_item shift.opened is exist - process it [06:39:00]req_shift_opened [06:39:00]FM_GetShiftState [06:39:00]SAM_PROTO_GetShiftState [06:39:00]wFMCommunicate request_size=4 [06:39:00]MH_SAM_APDU [06:39:00]CAPDU: 80 13 01 00 [06:39:00]Write to MH i2c: E2 08 00 2B 14 80 13 01 00 00 00 00 00 BC [06:39:00]Write i2c OK [06:39:00]MH_I2C_Read... [06:39:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:39:00]Read from MH i2c: E2 [06:39:00]MH_I2C_Read... [06:39:00]Read from MH i2c: E2 0E 00 [06:39:00]MH_I2C_Read... [06:39:00]Read from MH i2c: E2 0E 00 2B 14 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 DA [06:39:00]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [06:39:00]wFMCommunicate OK [06:39:00]SAM_PROTO_GetShiftState done [06:39:00]FM_GetShiftState done [06:39:00]req_shift_opened done [06:39:00]requested_item shift.open_date is exist - process it [06:39:00]req_shift_open_date [06:39:00]req_shift_open_date done [06:39:00]produce_requested_data done [06:39:00]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103097,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [06:39:00]process_action_free close_receipt [06:39:00]json_value_free [06:39:00]json_value_free done [06:39:00]process_json_proto returns [06:39:00]Send response to host [06:39:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103097,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [06:39:00]free response buf [06:39:00]execute_script done [06:39:00]execute_script returns [06:39:00]free content buf [06:39:00]Sock 7.Close socket [06:39:00]Sock 7.Thread stoped [06:39:04]OFD Sender: No OFD packet to send [06:39:09]OFD Sender: No OFD packet to send [06:39:14]OFD Sender: No OFD packet to send [06:39:19]OFD Sender: No OFD packet to send [06:39:24]OFD Sender: No OFD packet to send [06:39:29]OFD Sender: No OFD packet to send [06:39:34]OFD Sender: No OFD packet to send [06:39:39]OFD Sender: No OFD packet to send [06:39:44]OFD Sender: No OFD packet to send [06:39:49]OFD Sender: No OFD packet to send [06:39:54]OFD Sender: No OFD packet to send [06:39:59]OFD Sender: No OFD packet to send [06:40:04]OFD Sender: No OFD packet to send [06:40:09]OFD Sender: No OFD packet to send [06:40:14]OFD Sender: No OFD packet to send [06:40:19]OFD Sender: No OFD packet to send [06:40:24]OFD Sender: No OFD packet to send [06:40:29]OFD Sender: No OFD packet to send [06:40:34]OFD Sender: No OFD packet to send [06:40:39]OFD Sender: No OFD packet to send [06:40:44]OFD Sender: No OFD packet to send [06:40:49]OFD Sender: No OFD packet to send [06:40:54]OFD Sender: No OFD packet to send [06:40:59]OFD Sender: No OFD packet to send [06:41:04]OFD Sender: No OFD packet to send [06:41:09]OFD Sender: No OFD packet to send [06:41:14]OFD Sender: No OFD packet to send [06:41:19]OFD Sender: No OFD packet to send [06:41:24]OFD Sender: No OFD packet to send [06:41:29]OFD Sender: No OFD packet to send [06:41:34]OFD Sender: No OFD packet to send [06:41:39]OFD Sender: No OFD packet to send [06:41:44]OFD Sender: No OFD packet to send [06:41:49]OFD Sender: No OFD packet to send [06:41:54]OFD Sender: No OFD packet to send [06:41:59]OFD Sender: No OFD packet to send [06:42:04]OFD Sender: No OFD packet to send [06:42:09]OFD Sender: No OFD packet to send [06:42:14]OFD Sender: No OFD packet to send [06:42:19]OFD Sender: No OFD packet to send [06:42:24]OFD Sender: No OFD packet to send [06:42:29]OFD Sender: No OFD packet to send [06:42:34]OFD Sender: No OFD packet to send [06:42:39]OFD Sender: No OFD packet to send [06:42:44]OFD Sender: No OFD packet to send [06:42:49]OFD Sender: No OFD packet to send [06:42:54]OFD Sender: No OFD packet to send [06:42:59]OFD Sender: No OFD packet to send [06:43:04]OFD Sender: No OFD packet to send [06:43:09]OFD Sender: No OFD packet to send [06:43:14]OFD Sender: No OFD packet to send [06:43:19]OFD Sender: No OFD packet to send [06:43:24]OFD Sender: No OFD packet to send [06:43:29]OFD Sender: No OFD packet to send [06:43:34]OFD Sender: No OFD packet to send [06:43:39]OFD Sender: No OFD packet to send [06:43:44]OFD Sender: No OFD packet to send [06:43:49]OFD Sender: No OFD packet to send [06:43:54]OFD Sender: No OFD packet to send [06:43:59]OFD Sender: No OFD packet to send [06:44:04]OFD Sender: No OFD packet to send [06:44:09]OFD Sender: No OFD packet to send [06:44:14]OFD Sender: No OFD packet to send [06:44:19]OFD Sender: No OFD packet to send [06:44:24]OFD Sender: No OFD packet to send [06:44:29]OFD Sender: No OFD packet to send [06:44:34]OFD Sender: No OFD packet to send [06:44:39]OFD Sender: No OFD packet to send [06:44:44]OFD Sender: No OFD packet to send [06:44:49]OFD Sender: No OFD packet to send [06:44:54]OFD Sender: No OFD packet to send [06:44:59]OFD Sender: No OFD packet to send [06:45:04]OFD Sender: No OFD packet to send [06:45:09]OFD Sender: No OFD packet to send [06:45:14]OFD Sender: No OFD packet to send [06:45:19]OFD Sender: No OFD packet to send [06:45:24]OFD Sender: No OFD packet to send [06:45:29]OFD Sender: No OFD packet to send [06:45:34]OFD Sender: No OFD packet to send [06:45:39]OFD Sender: No OFD packet to send [06:45:44]OFD Sender: No OFD packet to send [06:45:49]OFD Sender: No OFD packet to send [06:45:54]OFD Sender: No OFD packet to send [06:45:59]OFD Sender: No OFD packet to send [06:46:04]OFD Sender: No OFD packet to send [06:46:09]OFD Sender: No OFD packet to send [06:46:14]OFD Sender: No OFD packet to send [06:46:19]OFD Sender: No OFD packet to send [06:46:24]OFD Sender: No OFD packet to send [06:46:29]OFD Sender: No OFD packet to send [06:46:34]OFD Sender: No OFD packet to send [06:46:39]OFD Sender: No OFD packet to send [06:46:44]OFD Sender: No OFD packet to send [06:46:49]OFD Sender: No OFD packet to send [06:46:54]OFD Sender: No OFD packet to send [06:46:59]OFD Sender: No OFD packet to send [06:47:04]OFD Sender: No OFD packet to send [06:47:09]OFD Sender: No OFD packet to send [06:47:14]OFD Sender: No OFD packet to send [06:47:19]OFD Sender: No OFD packet to send [06:47:24]OFD Sender: No OFD packet to send [06:47:29]OFD Sender: No OFD packet to send [06:47:34]OFD Sender: No OFD packet to send [06:47:39]OFD Sender: No OFD packet to send [06:47:44]OFD Sender: No OFD packet to send [06:47:49]OFD Sender: No OFD packet to send [06:47:54]OFD Sender: No OFD packet to send [06:47:59]OFD Sender: No OFD packet to send [06:48:04]OFD Sender: No OFD packet to send [06:48:09]OFD Sender: No OFD packet to send [06:48:14]OFD Sender: No OFD packet to send [06:48:19]OFD Sender: No OFD packet to send [06:48:24]OFD Sender: No OFD packet to send [06:48:29]OFD Sender: No OFD packet to send [06:48:34]OFD Sender: No OFD packet to send [06:48:39]OFD Sender: No OFD packet to send [06:48:44]OFD Sender: No OFD packet to send [06:48:49]OFD Sender: No OFD packet to send [06:48:54]OFD Sender: No OFD packet to send [06:48:59]OFD Sender: No OFD packet to send [06:49:04]OFD Sender: No OFD packet to send [06:49:09]OFD Sender: No OFD packet to send [06:49:14]OFD Sender: No OFD packet to send [06:49:19]OFD Sender: No OFD packet to send [06:49:24]OFD Sender: No OFD packet to send [06:49:29]OFD Sender: No OFD packet to send [06:49:34]OFD Sender: No OFD packet to send [06:49:39]OFD Sender: No OFD packet to send [06:49:44]OFD Sender: No OFD packet to send [06:49:49]OFD Sender: No OFD packet to send [06:49:54]OFD Sender: No OFD packet to send [06:49:59]OFD Sender: No OFD packet to send [06:50:04]OFD Sender: No OFD packet to send [06:50:09]OFD Sender: No OFD packet to send [06:50:14]OFD Sender: No OFD packet to send [06:50:19]OFD Sender: No OFD packet to send [06:50:24]OFD Sender: No OFD packet to send [06:50:29]OFD Sender: No OFD packet to send [06:50:34]OFD Sender: No OFD packet to send [06:50:39]OFD Sender: No OFD packet to send [06:50:44]OFD Sender: No OFD packet to send [06:50:49]OFD Sender: No OFD packet to send [06:50:54]OFD Sender: No OFD packet to send [06:50:59]OFD Sender: No OFD packet to send [06:51:04]OFD Sender: No OFD packet to send [06:51:09]OFD Sender: No OFD packet to send [06:51:14]OFD Sender: No OFD packet to send [06:51:19]OFD Sender: No OFD packet to send [06:51:24]OFD Sender: No OFD packet to send [06:51:29]OFD Sender: No OFD packet to send [06:51:34]OFD Sender: No OFD packet to send [06:51:39]OFD Sender: No OFD packet to send [06:51:44]OFD Sender: No OFD packet to send [06:51:49]OFD Sender: No OFD packet to send [06:51:54]OFD Sender: No OFD packet to send [06:51:59]OFD Sender: No OFD packet to send [06:52:04]OFD Sender: No OFD packet to send [06:52:09]OFD Sender: No OFD packet to send [06:52:14]OFD Sender: No OFD packet to send [06:52:19]OFD Sender: No OFD packet to send [06:52:24]OFD Sender: No OFD packet to send [06:52:29]OFD Sender: No OFD packet to send [06:52:34]OFD Sender: No OFD packet to send [06:52:39]OFD Sender: No OFD packet to send [06:52:44]OFD Sender: No OFD packet to send [06:52:49]OFD Sender: No OFD packet to send [06:52:54]OFD Sender: No OFD packet to send [06:53:00]OFD Sender: No OFD packet to send [06:53:05]OFD Sender: No OFD packet to send [06:53:10]OFD Sender: No OFD packet to send [06:53:15]OFD Sender: No OFD packet to send [06:53:20]OFD Sender: No OFD packet to send [06:53:25]OFD Sender: No OFD packet to send [06:53:30]OFD Sender: No OFD packet to send [06:53:35]OFD Sender: No OFD packet to send [06:53:40]OFD Sender: No OFD packet to send [06:53:45]OFD Sender: No OFD packet to send [06:53:50]OFD Sender: No OFD packet to send [06:53:55]OFD Sender: No OFD packet to send [06:54:00]OFD Sender: No OFD packet to send [06:54:05]OFD Sender: No OFD packet to send [06:54:10]OFD Sender: No OFD packet to send [06:54:15]OFD Sender: No OFD packet to send [06:54:20]OFD Sender: No OFD packet to send [06:54:25]OFD Sender: No OFD packet to send [06:54:30]OFD Sender: No OFD packet to send [06:54:35]OFD Sender: No OFD packet to send [06:54:40]OFD Sender: No OFD packet to send [06:54:45]OFD Sender: No OFD packet to send [06:54:50]OFD Sender: No OFD packet to send [06:54:55]OFD Sender: No OFD packet to send [06:55:00]OFD Sender: No OFD packet to send [06:55:05]OFD Sender: No OFD packet to send [06:55:10]OFD Sender: No OFD packet to send [06:55:15]OFD Sender: No OFD packet to send [06:55:20]OFD Sender: No OFD packet to send [06:55:25]OFD Sender: No OFD packet to send [06:55:30]OFD Sender: No OFD packet to send [06:55:35]OFD Sender: No OFD packet to send [06:55:40]OFD Sender: No OFD packet to send [06:55:45]OFD Sender: No OFD packet to send [06:55:50]OFD Sender: No OFD packet to send [06:55:55]OFD Sender: No OFD packet to send [06:56:00]OFD Sender: No OFD packet to send [06:56:05]OFD Sender: No OFD packet to send [06:56:10]OFD Sender: No OFD packet to send [06:56:15]OFD Sender: No OFD packet to send [06:56:20]OFD Sender: No OFD packet to send [06:56:25]OFD Sender: No OFD packet to send [06:56:30]OFD Sender: No OFD packet to send [06:56:35]OFD Sender: No OFD packet to send [06:56:40]OFD Sender: No OFD packet to send [06:56:45]OFD Sender: No OFD packet to send [06:56:50]OFD Sender: No OFD packet to send [06:56:55]OFD Sender: No OFD packet to send [06:57:00]OFD Sender: No OFD packet to send [06:57:05]OFD Sender: No OFD packet to send [06:57:10]OFD Sender: No OFD packet to send [06:57:15]OFD Sender: No OFD packet to send [06:57:20]OFD Sender: No OFD packet to send [06:57:25]OFD Sender: No OFD packet to send [06:57:30]OFD Sender: No OFD packet to send [06:57:35]OFD Sender: No OFD packet to send [06:57:40]OFD Sender: No OFD packet to send [06:57:45]OFD Sender: No OFD packet to send [06:57:50]OFD Sender: No OFD packet to send [06:57:55]OFD Sender: No OFD packet to send [06:58:00]OFD Sender: No OFD packet to send [06:58:05]OFD Sender: No OFD packet to send [06:58:10]OFD Sender: No OFD packet to send [06:58:15]OFD Sender: No OFD packet to send [06:58:20]OFD Sender: No OFD packet to send [06:58:22]accept exits with 9 [06:58:22]New connection [06:58:22]New thread 3066563940 created [06:58:22]Thread 3066707300 joined [06:58:22]Waiting for new connection... [06:58:22] Sock 9.Parse request [06:58:22]Sock 9.Check first char [06:58:22]Sock 9.First char is OK [06:58:22]request: POST /json_proto HTTP/1.0 [06:58:22]Method: POST [06:58:22]URL: /json_proto [06:58:22]Method is POST - this is cgi request [06:58:22]url: /json_proto [06:58:22]query_string will be loaded in cgi processing [06:58:22]execute_cgi json_proto POST (null) [06:58:22]execute_cgi path=json_proto method=POST [06:58:22]POST find Content-Length [06:58:22]Host: 172.17.58.3:8080 [06:58:22]Content-Length: 681 [06:58:22]Content-Type: application/json [06:58:22] [06:58:22]POST finish read [06:58:22]Found Content-Length = 681 [06:58:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160729", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:58:22]execute_script... [06:58:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160729", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:58:22]POST & json_proto [06:58:22]process_json_proto [06:58:22]json parsed OK: [06:58:22]protocol is kg_v1.0 [06:58:22]action value=close_receipt [06:58:22]process_action close_receipt [06:58:22]cmd_close_receipt [06:58:22]MH_GetDate [06:58:22]Write to MH i2c: F0 00 00 2C 14 2F [06:58:22]Write i2c OK [06:58:22]MH_I2C_Read... [06:58:22]Read from MH i2c: F0 [06:58:22]MH_I2C_Read... [06:58:22]Read from MH i2c: F0 09 00 [06:58:22]MH_I2C_Read... [06:58:22]Read from MH i2c: F0 09 00 2C 14 00 11 04 BB 66 DC E4 6D 64 FF [06:58:22]GetLastDocTimeStamp 1723531139 [06:58:22]current date 1723532305 [06:58:22]FM_GetShiftState [06:58:22]SAM_PROTO_GetShiftState [06:58:22]wFMCommunicate request_size=4 [06:58:22]MH_SAM_APDU [06:58:22]CAPDU: 80 13 01 00 [06:58:22]Write to MH i2c: E2 08 00 2D 14 80 13 01 00 00 00 00 00 BE [06:58:22]Write i2c OK [06:58:22]MH_I2C_Read... [06:58:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:58:22]Read from MH i2c: E2 [06:58:22]MH_I2C_Read... [06:58:22]Read from MH i2c: E2 0E 00 [06:58:22]MH_I2C_Read... [06:58:22]Read from MH i2c: E2 0E 00 2D 14 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 DC [06:58:22]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [06:58:22]wFMCommunicate OK [06:58:22]SAM_PROTO_GetShiftState done [06:58:22]FM_GetShiftState done [06:58:22]opened in 1723506770 [06:58:22]opened+sec_in_day 1723593170 [06:58:22]quantity*price = 100036 [06:58:22]sum+1 = 100037 [06:58:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 9 13.08.2024 06:58 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103098 ФПД: 228960267009882 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T065825&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103098&fm=228960267009882&tin=02508201610067®Number=0000000000092718&sum=100000 [06:58:23]StoreToDocumentArchive [06:58:23]shift 464 fd 103098 [06:58:23]save to /storage/0464/doc_00103098 [06:58:23]save last doc name /storage/0464/doc_00103098 to /storage/kkm_last_doc_name [06:58:23]save OK [06:58:23]Clear old archive folders... [06:58:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:58:23]tlvbuf is B6E6CDE0 [06:58:23]SAM_PROTO_ClearQueue [06:58:23]wFMCommunicate request_size=4 [06:58:23]MH_SAM_APDU [06:58:23]CAPDU: 80 09 00 00 [06:58:23]Write to MH i2c: E2 08 00 3A 14 80 09 00 00 00 00 00 00 C0 [06:58:23]Write i2c OK [06:58:23]MH_I2C_Read... [06:58:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:58:23]Read from MH i2c: E2 [06:58:23]MH_I2C_Read... [06:58:23]Read from MH i2c: E2 03 00 [06:58:23]MH_I2C_Read... [06:58:23]Read from MH i2c: E2 03 00 3A 14 00 90 00 C2 [06:58:23]RAPDU: 90 00 [06:58:23]wFMCommunicate OK [06:58:23]SAM_PROTO_ClearQueue done [06:58:23]KKMCreateOFDPacket [06:58:23]OFDProtocolAddRootSTLVToBuf [06:58:23]FM_MakeSignedData [06:58:23]FM_MakeSignedData [06:58:23]SAM_PROTO_SignData [06:58:23]wFMCommunicate request_size=4 [06:58:23]MH_SAM_APDU [06:58:23]CAPDU: 80 0D 01 02 [06:58:23]Write to MH i2c: E2 08 00 3B 14 80 0D 01 02 00 00 00 00 C8 [06:58:23]Write i2c OK [06:58:23]MH_I2C_Read... [06:58:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:58:23]Read from MH i2c: E2 [06:58:23]MH_I2C_Read... [06:58:23]Read from MH i2c: E2 03 00 [06:58:23]MH_I2C_Read... [06:58:23]Read from MH i2c: E2 03 00 3B 14 00 90 00 C3 [06:58:23]RAPDU: 90 00 [06:58:23]wFMCommunicate OK [06:58:23]wFMCommunicate request_size=255 [06:58:23]MH_SAM_APDU [06:58:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 11 04 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 BA 92 01 00 35 04 06 00 D0 [06:58:23]Write to MH i2c: E2 02 01 3C 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 11 04 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 BA 92 01 00 35 04 06 00 D0 00 00 19 [06:58:23]Write i2c OK [06:58:23]MH_I2C_Read... [06:58:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:58:24]Read from MH i2c: E2 [06:58:24]MH_I2C_Read... [06:58:24]Read from MH i2c: E2 03 00 [06:58:24]MH_I2C_Read... [06:58:24]Read from MH i2c: E2 03 00 3C 14 00 90 00 C4 [06:58:24]RAPDU: 90 00 [06:58:24]wFMCommunicate OK [06:58:24]wFMCommunicate request_size=10 [06:58:24]MH_SAM_APDU [06:58:24]CAPDU: 80 0D 02 02 05 3C F7 61 FF 5A [06:58:24]Write to MH i2c: E2 0D 00 3D 14 80 0D 02 02 05 00 3C F7 61 FF 5A 00 00 C2 [06:58:24]Write i2c OK [06:58:24]MH_I2C_Read... [06:58:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:58:24]Read from MH i2c: E2 [06:58:24]MH_I2C_Read... [06:58:24]Read from MH i2c: E2 03 00 [06:58:24]MH_I2C_Read... [06:58:24]Read from MH i2c: E2 03 00 3D 14 00 90 00 C5 [06:58:24]RAPDU: 90 00 [06:58:24]wFMCommunicate OK [06:58:24]wFMCommunicate request_size=4 [06:58:24]MH_SAM_APDU [06:58:24]CAPDU: 80 0D 03 02 [06:58:24]Write to MH i2c: E2 08 00 3E 14 80 0D 03 02 00 00 00 00 CD [06:58:24]Write i2c OK [06:58:24]MH_I2C_Read... [06:58:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:58:24]Read from MH i2c: E2 [06:58:24]MH_I2C_Read... [06:58:24]Read from MH i2c: E2 0B 00 [06:58:24]MH_I2C_Read... [06:58:24]Read from MH i2c: E2 0B 00 3E 14 00 BC 08 BB DF 35 D1 27 FC 90 00 55 [06:58:24]RAPDU: BC 08 BB DF 35 D1 27 FC 90 00 [06:58:24]wFMCommunicate OK [06:58:24]SAM_PROTO_SignData done [06:58:24]FM_MakeSignedData done [06:58:24]CreateOFDProtocolMessage [06:58:24]wFMCommunicate request_size=4 [06:58:24]MH_SAM_APDU [06:58:24]CAPDU: 80 11 00 00 [06:58:24]Write to MH i2c: E2 08 00 3F 14 80 11 00 00 00 00 00 00 CD [06:58:24]Write i2c OK [06:58:24]MH_I2C_Read... [06:58:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:58:24]Read from MH i2c: E2 [06:58:24]MH_I2C_Read... [06:58:24]Read from MH i2c: E2 17 00 [06:58:24]MH_I2C_Read... [06:58:24]Read from MH i2c: E2 17 00 3F 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 21 [06:58:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [06:58:24]wFMCommunicate OK [06:58:24]CreateOFDProtocolMessage done [06:58:24]OFDSenderStorePacket 103098 [06:58:24]StoreOFDPacket docnum=103098 [06:58:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 58 E1 07 01 45 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 11 04 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 BA 92 01 00 35 04 06 00 D0 3C F7 61 FF 5A BC 08 BB DF 35 D1 27 FC [06:58:24]CheckFolder [06:58:24]dirname=/storage/ofd_packets [06:58:24]CheckFolder done [06:58:24]ProducePacketName [06:58:24]name=ofd_packets/00103098 [06:58:24]NVStorageSaveData ofd_packets/00103098 [06:58:24]File name is /storage/ofd_packets/00103098 [06:58:24]Write 301 bytes [06:58:24]NVStorageSaveData done [06:58:24]OFDSenderStorePacket done [06:58:24]KKMCreateOFDPacket done [06:58:24]NVStorageSaveData kkm_last_timestamp [06:58:24]File name is /storage/kkm_last_timestamp [06:58:24]Write 4 bytes [06:58:24]NVStorageSaveData done [06:58:24]ExternCall_PrintAddStr [06:58:24]wPrintStart [06:58:24]Write to MH i2c: 01 00 00 40 14 54 [06:58:24]Write i2c OK [06:58:24]MH_I2C_Read... [06:58:24]Read from MH i2c: 01 [06:58:24]MH_I2C_Read... [06:58:24]Read from MH i2c: 01 07 00 [06:58:24]MH_I2C_Read... [06:58:24]Read from MH i2c: 01 07 00 40 14 00 00 00 00 00 FF 0F 69 [06:58:24]RasterBufferAndPrint [06:58:24]line Счет N : (1)160729 [06:58:24]line ИНН: 02508201610067 [06:58:24]line Контрольно-Кассовый Чек [06:58:24]line ПРОДАЖА [06:58:24]line ТРК (МРК, ГНК) : 7 [06:58:24]line Товар: 2710124130 [06:58:24]line Аи-92-К-5 [06:58:24]line 15.180 * 65.90 [06:58:24]line = 1000.36 [06:58:24]line НДС 12% НСП 1% [06:58:24]line > о реализуемом товаре [06:58:24]line ОКРУГЛЕНИЕ: -0.36 [06:58:24]line ИТОГО: 1000.00 [06:58:24]line Внесено: 1000.00 [06:58:24]line СДАЧА: 0.00 [06:58:24]line НСП 1% : 8.85 [06:58:24]line НДС 12% : 106.23 [06:58:24]line Наличными: 1000.00 [06:58:24]line Безнал.: 0.00 [06:58:24]line Место: АЗС № 38 "Партнер Нефть" [06:58:24]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [06:58:24]line СНО: Общий режим [06:58:24]line Чек 9 13.08.2024 06:58 [06:58:24]line Смена: 464 ФФД: 1.0 [06:58:24]line ЗНМ: 0300000126 [06:58:24]line РНМ: 0000000000092718 [06:58:24]line Версия ККМ: 001 [06:58:24]line ФМ: 0000000000875058 [06:58:24]line ФД: 103098 [06:58:24]line ФПД: 228960267009882 [06:58:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T065825&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103098&fm=228960267009882&tin=02508201610067®Number=0000000000092718&sum=100000 [06:58:24]OFD Sender: Processing packet 103098 [packets to send 69, broken 68] [06:58:24]ProducePacketName [06:58:24]name=ofd_packets/00103098 [06:58:24]OFD Sender: To server: pG, [06:58:24]CommunicateWithHost lk.salyk.kg:30040 [06:58:24]ConnectInit lk.salyk.kg [06:58:24]written 0, free lines is 4095 [06:58:24]Connected sock=10 [06:58:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 58 E1 07 01 45 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 11 04 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 BA 92 01 00 35 04 06 00 D0 3C F7 61 FF 5A BC 08 BB DF 35 D1 27 FC [06:58:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 5A 3D 47 00 97 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 35 30 35 38 10 04 04 00 BA 92 01 00 F4 03 04 00 85 AA BA 66 B6 04 01 00 00 E2 E7 96 13 52 7C A8 B2 [06:58:24]CommunicateWithHost err = 0 [06:58:24]CheckOFDResponse [06:58:24]1017 (14) - 77093643461234 [06:58:24]1041 (16) - 0000000000875058 [06:58:24]1040 (4) - 103098 [06:58:24]1012 (4) - 13.08.2024 00:36 [06:58:24]1206 (1) - 0 [06:58:24]OFD Sender: Remove packet 103098 [06:58:24]ProducePacketName [06:58:24]name=ofd_packets/00103098 [06:58:24]NVStorageDeleteData [06:58:25]Write to MH i2c: 01 00 00 6B 14 7F [06:58:25]Write i2c OK [06:58:25]MH_I2C_Read... [06:58:25]Read from MH i2c: 01 [06:58:25]MH_I2C_Read... [06:58:25]Read from MH i2c: 01 07 00 [06:58:25]MH_I2C_Read... [06:58:25]Read from MH i2c: 01 07 00 6B 14 00 00 00 00 00 EE 0C 80 [06:58:25]RasterBufferAndPrint [06:58:25]line [06:58:25]line [06:58:25]line [06:58:25]line [06:58:25]line [06:58:25]written 0, free lines is 3319 [06:58:25]MH_Cut [06:58:25]Write to MH i2c: D1 01 00 72 14 01 58 [06:58:25]Write i2c OK [06:58:25]MH_I2C_Read... [06:58:25]Read from MH i2c: D1 [06:58:25]MH_I2C_Read... [06:58:25]Read from MH i2c: D1 01 00 [06:58:25]MH_I2C_Read... [06:58:25]Read from MH i2c: D1 01 00 72 14 00 57 [06:58:25]Write to MH i2c: 01 00 00 73 14 87 [06:58:25]Write i2c OK [06:58:25]MH_I2C_Read... [06:58:25]OFD Sender: No OFD packet to send [06:58:25]*** Cut start [06:58:25]*** Purtial cut [06:58:25]*** CUTSNS_PIN = 0 [06:58:26]*** Stage 1: CUTSNS_PIN = 1 [06:58:27]Read from MH i2c: 01 [06:58:27]MH_I2C_Read... [06:58:27]*** Stop cut motor [06:58:27]*** Cut end [06:58:27]Read from MH i2c: 01 07 00 [06:58:27]MH_I2C_Read... [06:58:27]Read from MH i2c: 01 07 00 73 14 00 00 00 00 00 FF 0F 9C [06:58:27]process_action close_receipt done [06:58:27]requested_data is exist [06:58:27]produce_requested_data [06:58:27]requested_item fm.sn is exist - process it [06:58:27]wFMCommunicate request_size=4 [06:58:27]MH_SAM_APDU [06:58:27]CAPDU: 80 11 00 00 [06:58:27]Write to MH i2c: E2 08 00 74 14 80 11 00 00 00 00 00 00 02 [06:58:27]Write i2c OK [06:58:27]MH_I2C_Read... [06:58:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:58:27]Read from MH i2c: E2 [06:58:27]MH_I2C_Read... [06:58:27]Read from MH i2c: E2 17 00 [06:58:27]MH_I2C_Read... [06:58:27]Read from MH i2c: E2 17 00 74 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 56 [06:58:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [06:58:27]wFMCommunicate OK [06:58:27]requested_item fd.num is exist - process it [06:58:27]SAM_PROTO_GetFieldsCounters [06:58:27]wFMCommunicate request_size=4 [06:58:27]MH_SAM_APDU [06:58:27]CAPDU: 80 13 00 00 [06:58:27]Write to MH i2c: E2 08 00 75 14 80 13 00 00 00 00 00 00 05 [06:58:27]Write i2c OK [06:58:27]MH_I2C_Read... [06:58:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:58:28]Read from MH i2c: E2 [06:58:28]MH_I2C_Read... [06:58:28]Read from MH i2c: E2 62 00 [06:58:28]MH_I2C_Read... [06:58:28]Read from MH i2c: E2 62 00 75 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 BA 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [06:58:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 BA 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:58:28]wFMCommunicate OK [06:58:28]SAM_PROTO_GetFieldsCounters done [06:58:28]requested_item shift.num is exist - process it [06:58:28]requested_item shift.opened is exist - process it [06:58:28]req_shift_opened [06:58:28]FM_GetShiftState [06:58:28]SAM_PROTO_GetShiftState [06:58:28]wFMCommunicate request_size=4 [06:58:28]MH_SAM_APDU [06:58:28]CAPDU: 80 13 01 00 [06:58:28]Write to MH i2c: E2 08 00 76 14 80 13 01 00 00 00 00 00 07 [06:58:28]Write i2c OK [06:58:28]MH_I2C_Read... [06:58:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:58:28]Read from MH i2c: E2 [06:58:28]MH_I2C_Read... [06:58:28]Read from MH i2c: E2 0E 00 [06:58:28]MH_I2C_Read... [06:58:28]Read from MH i2c: E2 0E 00 76 14 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 25 [06:58:28]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [06:58:28]wFMCommunicate OK [06:58:28]SAM_PROTO_GetShiftState done [06:58:28]FM_GetShiftState done [06:58:28]req_shift_opened done [06:58:28]requested_item shift.open_date is exist - process it [06:58:28]req_shift_open_date [06:58:28]req_shift_open_date done [06:58:28]produce_requested_data done [06:58:28]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103098,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [06:58:28]process_action_free close_receipt [06:58:28]json_value_free [06:58:28]json_value_free done [06:58:28]process_json_proto returns [06:58:28]Send response to host [06:58:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103098,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [06:58:28]free response buf [06:58:28]execute_script done [06:58:28]execute_script returns [06:58:28]free content buf [06:58:28]Sock 9.Close socket [06:58:28]Sock 9.Thread stoped [06:58:30]OFD Sender: No OFD packet to send [06:58:35]OFD Sender: No OFD packet to send [06:58:40]OFD Sender: No OFD packet to send [06:58:45]OFD Sender: No OFD packet to send [06:58:50]OFD Sender: No OFD packet to send [06:58:55]OFD Sender: No OFD packet to send [06:59:00]OFD Sender: No OFD packet to send [06:59:05]OFD Sender: No OFD packet to send [06:59:10]OFD Sender: No OFD packet to send [06:59:15]OFD Sender: No OFD packet to send [06:59:20]OFD Sender: No OFD packet to send [06:59:25]OFD Sender: No OFD packet to send [06:59:30]OFD Sender: No OFD packet to send [06:59:35]OFD Sender: No OFD packet to send [06:59:40]OFD Sender: No OFD packet to send [06:59:45]OFD Sender: No OFD packet to send [06:59:50]OFD Sender: No OFD packet to send [06:59:55]OFD Sender: No OFD packet to send [07:00:00]OFD Sender: No OFD packet to send [07:00:05]OFD Sender: No OFD packet to send [07:00:10]OFD Sender: No OFD packet to send [07:00:15]OFD Sender: No OFD packet to send [07:00:20]OFD Sender: No OFD packet to send [07:00:25]OFD Sender: No OFD packet to send [07:00:30]OFD Sender: No OFD packet to send [07:00:35]OFD Sender: No OFD packet to send [07:00:40]OFD Sender: No OFD packet to send [07:00:45]OFD Sender: No OFD packet to send [07:00:50]OFD Sender: No OFD packet to send [07:00:55]OFD Sender: No OFD packet to send [07:01:00]OFD Sender: No OFD packet to send [07:01:05]OFD Sender: No OFD packet to send [07:01:10]OFD Sender: No OFD packet to send [07:01:15]OFD Sender: No OFD packet to send [07:01:20]OFD Sender: No OFD packet to send [07:01:25]OFD Sender: No OFD packet to send [07:01:30]OFD Sender: No OFD packet to send [07:01:35]OFD Sender: No OFD packet to send [07:01:40]OFD Sender: No OFD packet to send [07:01:45]OFD Sender: No OFD packet to send [07:01:50]OFD Sender: No OFD packet to send [07:01:55]OFD Sender: No OFD packet to send [07:02:00]OFD Sender: No OFD packet to send [07:02:05]OFD Sender: No OFD packet to send [07:02:10]OFD Sender: No OFD packet to send [07:02:15]OFD Sender: No OFD packet to send [07:02:16]accept exits with 7 [07:02:16]New connection [07:02:16]New thread 3066707300 created [07:02:16]Thread 3066563940 joined [07:02:16]Waiting for new connection... [07:02:16] Sock 7.Parse request [07:02:16]Sock 7.Check first char [07:02:16]Sock 7.First char is OK [07:02:16]request: POST /json_proto HTTP/1.0 [07:02:16]Method: POST [07:02:16]URL: /json_proto [07:02:16]Method is POST - this is cgi request [07:02:16]url: /json_proto [07:02:16]query_string will be loaded in cgi processing [07:02:16]execute_cgi json_proto POST (null) [07:02:16]execute_cgi path=json_proto method=POST [07:02:16]POST find Content-Length [07:02:16]Host: 172.17.58.3:8080 [07:02:16]Content-Length: 681 [07:02:16]Content-Type: application/json [07:02:16] [07:02:16]POST finish read [07:02:16]Found Content-Length = 681 [07:02:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160730", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:02:16]execute_script... [07:02:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160730", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:02:16]POST & json_proto [07:02:16]process_json_proto [07:02:16]json parsed OK: [07:02:16]protocol is kg_v1.0 [07:02:16]action value=close_receipt [07:02:16]process_action close_receipt [07:02:16]cmd_close_receipt [07:02:16]MH_GetDate [07:02:16]Write to MH i2c: F0 00 00 77 14 7A [07:02:16]Write i2c OK [07:02:16]MH_I2C_Read... [07:02:16]Read from MH i2c: F0 [07:02:16]MH_I2C_Read... [07:02:16]Read from MH i2c: F0 09 00 [07:02:16]MH_I2C_Read... [07:02:16]Read from MH i2c: F0 09 00 77 14 00 FB 04 BB 66 DC E4 6D 64 34 [07:02:16]GetLastDocTimeStamp 1723532305 [07:02:16]current date 1723532539 [07:02:16]FM_GetShiftState [07:02:16]SAM_PROTO_GetShiftState [07:02:16]wFMCommunicate request_size=4 [07:02:16]MH_SAM_APDU [07:02:16]CAPDU: 80 13 01 00 [07:02:16]Write to MH i2c: E2 08 00 78 14 80 13 01 00 00 00 00 00 09 [07:02:16]Write i2c OK [07:02:16]MH_I2C_Read... [07:02:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:02:16]Read from MH i2c: E2 [07:02:16]MH_I2C_Read... [07:02:16]Read from MH i2c: E2 0E 00 [07:02:16]MH_I2C_Read... [07:02:16]Read from MH i2c: E2 0E 00 78 14 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 27 [07:02:16]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [07:02:16]wFMCommunicate OK [07:02:16]SAM_PROTO_GetShiftState done [07:02:16]FM_GetShiftState done [07:02:16]opened in 1723506770 [07:02:16]opened+sec_in_day 1723593170 [07:02:16]quantity*price = 100036 [07:02:16]sum+1 = 100037 [07:02:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 10 13.08.2024 07:02 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103099 ФПД: 139969204566074 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T070219&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103099&fm=139969204566074&tin=02508201610067®Number=0000000000092718&sum=100000 [07:02:17]StoreToDocumentArchive [07:02:17]shift 464 fd 103099 [07:02:17]save to /storage/0464/doc_00103099 [07:02:17]save last doc name /storage/0464/doc_00103099 to /storage/kkm_last_doc_name [07:02:17]save OK [07:02:17]Clear old archive folders... [07:02:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:02:17]tlvbuf is B6E85840 [07:02:17]SAM_PROTO_ClearQueue [07:02:17]wFMCommunicate request_size=4 [07:02:17]MH_SAM_APDU [07:02:17]CAPDU: 80 09 00 00 [07:02:17]Write to MH i2c: E2 08 00 85 14 80 09 00 00 00 00 00 00 0B [07:02:17]Write i2c OK [07:02:17]MH_I2C_Read... [07:02:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:02:17]Read from MH i2c: E2 [07:02:17]MH_I2C_Read... [07:02:17]Read from MH i2c: E2 03 00 [07:02:17]MH_I2C_Read... [07:02:17]Read from MH i2c: E2 03 00 85 14 00 90 00 0D [07:02:17]RAPDU: 90 00 [07:02:17]wFMCommunicate OK [07:02:17]SAM_PROTO_ClearQueue done [07:02:17]KKMCreateOFDPacket [07:02:17]OFDProtocolAddRootSTLVToBuf [07:02:17]FM_MakeSignedData [07:02:17]FM_MakeSignedData [07:02:17]SAM_PROTO_SignData [07:02:17]wFMCommunicate request_size=4 [07:02:17]MH_SAM_APDU [07:02:17]CAPDU: 80 0D 01 02 [07:02:17]Write to MH i2c: E2 08 00 86 14 80 0D 01 02 00 00 00 00 13 [07:02:17]Write i2c OK [07:02:17]MH_I2C_Read... [07:02:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:02:17]Read from MH i2c: E2 [07:02:17]MH_I2C_Read... [07:02:17]Read from MH i2c: E2 03 00 [07:02:17]MH_I2C_Read... [07:02:17]Read from MH i2c: E2 03 00 86 14 00 90 00 0E [07:02:17]RAPDU: 90 00 [07:02:17]wFMCommunicate OK [07:02:17]wFMCommunicate request_size=255 [07:02:17]MH_SAM_APDU [07:02:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 FB 04 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 BB 92 01 00 35 04 06 00 7F [07:02:17]Write to MH i2c: E2 02 01 87 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 FB 04 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 BB 92 01 00 35 04 06 00 7F 00 00 FF [07:02:17]Write i2c OK [07:02:17]MH_I2C_Read... [07:02:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:02:18]Read from MH i2c: E2 [07:02:18]MH_I2C_Read... [07:02:18]Read from MH i2c: E2 03 00 [07:02:18]MH_I2C_Read... [07:02:18]Read from MH i2c: E2 03 00 87 14 00 90 00 0F [07:02:18]RAPDU: 90 00 [07:02:18]wFMCommunicate OK [07:02:18]wFMCommunicate request_size=10 [07:02:18]MH_SAM_APDU [07:02:18]CAPDU: 80 0D 02 02 05 4D 1E B7 B8 3A [07:02:18]Write to MH i2c: E2 0D 00 88 14 80 0D 02 02 05 00 4D 1E B7 B8 3A 00 00 34 [07:02:18]Write i2c OK [07:02:18]MH_I2C_Read... [07:02:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:02:18]Read from MH i2c: E2 [07:02:18]MH_I2C_Read... [07:02:18]Read from MH i2c: E2 03 00 [07:02:18]MH_I2C_Read... [07:02:18]Read from MH i2c: E2 03 00 88 14 00 90 00 10 [07:02:18]RAPDU: 90 00 [07:02:18]wFMCommunicate OK [07:02:18]wFMCommunicate request_size=4 [07:02:18]MH_SAM_APDU [07:02:18]CAPDU: 80 0D 03 02 [07:02:18]Write to MH i2c: E2 08 00 89 14 80 0D 03 02 00 00 00 00 18 [07:02:18]Write i2c OK [07:02:18]MH_I2C_Read... [07:02:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:02:18]Read from MH i2c: E2 [07:02:18]MH_I2C_Read... [07:02:18]Read from MH i2c: E2 0B 00 [07:02:18]MH_I2C_Read... [07:02:18]Read from MH i2c: E2 0B 00 89 14 00 74 8F D3 C5 40 1D 96 54 90 00 FB [07:02:18]RAPDU: 74 8F D3 C5 40 1D 96 54 90 00 [07:02:18]wFMCommunicate OK [07:02:18]SAM_PROTO_SignData done [07:02:18]FM_MakeSignedData done [07:02:18]CreateOFDProtocolMessage [07:02:18]wFMCommunicate request_size=4 [07:02:18]MH_SAM_APDU [07:02:18]CAPDU: 80 11 00 00 [07:02:18]Write to MH i2c: E2 08 00 8A 14 80 11 00 00 00 00 00 00 18 [07:02:18]Write i2c OK [07:02:18]MH_I2C_Read... [07:02:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:02:18]Read from MH i2c: E2 [07:02:18]MH_I2C_Read... [07:02:18]Read from MH i2c: E2 17 00 [07:02:18]MH_I2C_Read... [07:02:18]Read from MH i2c: E2 17 00 8A 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 6C [07:02:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [07:02:18]wFMCommunicate OK [07:02:18]CreateOFDProtocolMessage done [07:02:18]OFDSenderStorePacket 103099 [07:02:18]StoreOFDPacket docnum=103099 [07:02:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 5D 35 07 01 8F 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 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 FB 04 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 BB 92 01 00 35 04 06 00 7F 4D 1E B7 B8 3A 74 8F D3 C5 40 1D 96 54 [07:02:18]CheckFolder [07:02:18]dirname=/storage/ofd_packets [07:02:18]CheckFolder done [07:02:18]ProducePacketName [07:02:18]name=ofd_packets/00103099 [07:02:18]NVStorageSaveData ofd_packets/00103099 [07:02:18]File name is /storage/ofd_packets/00103099 [07:02:18]Write 301 bytes [07:02:18]NVStorageSaveData done [07:02:18]OFDSenderStorePacket done [07:02:18]KKMCreateOFDPacket done [07:02:18]NVStorageSaveData kkm_last_timestamp [07:02:18]File name is /storage/kkm_last_timestamp [07:02:18]Write 4 bytes [07:02:18]NVStorageSaveData done [07:02:18]ExternCall_PrintAddStr [07:02:18]wPrintStart [07:02:18]Write to MH i2c: 01 00 00 8B 14 9F [07:02:18]Write i2c OK [07:02:18]MH_I2C_Read... [07:02:18]Read from MH i2c: 01 [07:02:18]MH_I2C_Read... [07:02:18]Read from MH i2c: 01 07 00 [07:02:18]MH_I2C_Read... [07:02:18]Read from MH i2c: 01 07 00 8B 14 00 00 00 00 00 FF 0F B4 [07:02:18]RasterBufferAndPrint [07:02:18]line Счет N : (1)160730 [07:02:18]line ИНН: 02508201610067 [07:02:18]line Контрольно-Кассовый Чек [07:02:18]line ПРОДАЖА [07:02:18]line ТРК (МРК, ГНК) : 3 [07:02:18]line Товар: 2710124130 [07:02:18]line Аи-92-К-5 [07:02:18]line 15.180 * 65.90 [07:02:18]line = 1000.36 [07:02:18]line НДС 12% НСП 1% [07:02:18]line > о реализуемом товаре [07:02:18]line ОКРУГЛЕНИЕ: -0.36 [07:02:18]line ИТОГО: 1000.00 [07:02:18]line Внесено: 1000.00 [07:02:18]line СДАЧА: 0.00 [07:02:18]line НСП 1% : 8.85 [07:02:18]line НДС 12% : 106.23 [07:02:18]line Наличными: 1000.00 [07:02:18]line Безнал.: 0.00 [07:02:18]line Место: АЗС № 38 "Партнер Нефть" [07:02:18]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [07:02:18]line СНО: Общий режим [07:02:18]line Чек 10 13.08.2024 07:02 [07:02:18]line Смена: 464 ФФД: 1.0 [07:02:18]line ЗНМ: 0300000126 [07:02:18]line РНМ: 0000000000092718 [07:02:18]line Версия ККМ: 001 [07:02:18]line ФМ: 0000000000875058 [07:02:18]line ФД: 103099 [07:02:18]line ФПД: 139969204566074 [07:02:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T070219&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103099&fm=139969204566074&tin=02508201610067®Number=0000000000092718&sum=100000 [07:02:18]OFD Sender: Processing packet 103099 [packets to send 69, broken 68] [07:02:18]ProducePacketName [07:02:18]name=ofd_packets/00103099 [07:02:18]OFD Sender: To server: pG, [07:02:18]CommunicateWithHost lk.salyk.kg:30040 [07:02:18]ConnectInit lk.salyk.kg [07:02:18]written 0, free lines is 4095 [07:02:18]Connected sock=6 [07:02:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 5D 35 07 01 8F 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 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 FB 04 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 BB 92 01 00 35 04 06 00 7F 4D 1E B7 B8 3A 74 8F D3 C5 40 1D 96 54 [07:02:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 02 C5 47 00 C1 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 BB 92 01 00 F4 03 04 00 6F AB BA 66 B6 04 01 00 00 BA 1E 77 BE 93 9E FE 98 [07:02:19]CommunicateWithHost err = 0 [07:02:19]CheckOFDResponse [07:02:19]1017 (14) - 77093643461234 [07:02:19]1041 (16) - 0000000000875058 [07:02:19]1040 (4) - 103099 [07:02:19]1012 (4) - 13.08.2024 00:40 [07:02:19]1206 (1) - 0 [07:02:19]OFD Sender: Remove packet 103099 [07:02:19]ProducePacketName [07:02:19]name=ofd_packets/00103099 [07:02:19]NVStorageDeleteData [07:02:19]Write to MH i2c: 01 00 00 B6 14 CA [07:02:19]Write i2c OK [07:02:19]MH_I2C_Read... [07:02:19]Read from MH i2c: 01 [07:02:19]MH_I2C_Read... [07:02:19]Read from MH i2c: 01 07 00 [07:02:19]MH_I2C_Read... [07:02:19]Read from MH i2c: 01 07 00 B6 14 00 00 00 00 00 DF 0C BC [07:02:19]RasterBufferAndPrint [07:02:19]line [07:02:19]line [07:02:19]line [07:02:19]line [07:02:19]line [07:02:19]written 0, free lines is 3304 [07:02:19]MH_Cut [07:02:19]Write to MH i2c: D1 01 00 BD 14 01 A3 [07:02:19]Write i2c OK [07:02:19]MH_I2C_Read... [07:02:19]Read from MH i2c: D1 [07:02:19]MH_I2C_Read... [07:02:19]Read from MH i2c: D1 01 00 [07:02:19]MH_I2C_Read... [07:02:19]Read from MH i2c: D1 01 00 BD 14 00 A2 [07:02:19]Write to MH i2c: 01 00 00 BE 14 D2 [07:02:19]Write i2c OK [07:02:19]MH_I2C_Read... [07:02:19]OFD Sender: No OFD packet to send [07:02:19]*** Cut start [07:02:19]*** Purtial cut [07:02:19]*** Stage 1: CUTSNS_PIN = 1 [07:02:20]Read from MH i2c: 01 [07:02:20]MH_I2C_Read... [07:02:20]*** Stop cut motor [07:02:20]*** Cut end [07:02:20]Read from MH i2c: 01 07 00 [07:02:20]MH_I2C_Read... [07:02:20]Read from MH i2c: 01 07 00 BE 14 00 00 00 00 00 FF 0F E7 [07:02:20]process_action close_receipt done [07:02:20]requested_data is exist [07:02:20]produce_requested_data [07:02:20]requested_item fm.sn is exist - process it [07:02:20]wFMCommunicate request_size=4 [07:02:20]MH_SAM_APDU [07:02:20]CAPDU: 80 11 00 00 [07:02:20]Write to MH i2c: E2 08 00 BF 14 80 11 00 00 00 00 00 00 4D [07:02:20]Write i2c OK [07:02:20]MH_I2C_Read... [07:02:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:02:20]Read from MH i2c: E2 [07:02:20]MH_I2C_Read... [07:02:20]Read from MH i2c: E2 17 00 [07:02:20]MH_I2C_Read... [07:02:20]Read from MH i2c: E2 17 00 BF 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 A1 [07:02:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [07:02:20]wFMCommunicate OK [07:02:20]requested_item fd.num is exist - process it [07:02:20]SAM_PROTO_GetFieldsCounters [07:02:20]wFMCommunicate request_size=4 [07:02:20]MH_SAM_APDU [07:02:20]CAPDU: 80 13 00 00 [07:02:20]Write to MH i2c: E2 08 00 C0 14 80 13 00 00 00 00 00 00 50 [07:02:20]Write i2c OK [07:02:20]MH_I2C_Read... [07:02:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:02:20]Read from MH i2c: E2 [07:02:20]MH_I2C_Read... [07:02:20]Read from MH i2c: E2 62 00 [07:02:20]MH_I2C_Read... [07:02:20]Read from MH i2c: E2 62 00 C0 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 BB 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [07:02:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 BB 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:02:20]wFMCommunicate OK [07:02:20]SAM_PROTO_GetFieldsCounters done [07:02:20]requested_item shift.num is exist - process it [07:02:20]requested_item shift.opened is exist - process it [07:02:20]req_shift_opened [07:02:20]FM_GetShiftState [07:02:20]SAM_PROTO_GetShiftState [07:02:20]wFMCommunicate request_size=4 [07:02:20]MH_SAM_APDU [07:02:20]CAPDU: 80 13 01 00 [07:02:20]Write to MH i2c: E2 08 00 C1 14 80 13 01 00 00 00 00 00 52 [07:02:20]Write i2c OK [07:02:20]MH_I2C_Read... [07:02:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:02:20]Read from MH i2c: E2 [07:02:20]MH_I2C_Read... [07:02:20]Read from MH i2c: E2 0E 00 [07:02:20]MH_I2C_Read... [07:02:20]Read from MH i2c: E2 0E 00 C1 14 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 70 [07:02:20]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [07:02:20]wFMCommunicate OK [07:02:20]SAM_PROTO_GetShiftState done [07:02:20]FM_GetShiftState done [07:02:20]req_shift_opened done [07:02:20]requested_item shift.open_date is exist - process it [07:02:20]req_shift_open_date [07:02:20]req_shift_open_date done [07:02:20]produce_requested_data done [07:02:20]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103099,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [07:02:20]process_action_free close_receipt [07:02:20]json_value_free [07:02:20]json_value_free done [07:02:20]process_json_proto returns [07:02:20]Send response to host [07:02:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103099,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [07:02:20]free response buf [07:02:20]execute_script done [07:02:20]execute_script returns [07:02:20]free content buf [07:02:20]Sock 7.Close socket [07:02:20]Sock 7.Thread stoped [07:02:24]OFD Sender: No OFD packet to send [07:02:29]OFD Sender: No OFD packet to send [07:02:34]OFD Sender: No OFD packet to send [07:02:39]OFD Sender: No OFD packet to send [07:02:44]OFD Sender: No OFD packet to send [07:02:49]OFD Sender: No OFD packet to send [07:02:54]OFD Sender: No OFD packet to send [07:02:59]OFD Sender: No OFD packet to send [07:03:04]OFD Sender: No OFD packet to send [07:03:09]OFD Sender: No OFD packet to send [07:03:14]OFD Sender: No OFD packet to send [07:03:19]OFD Sender: No OFD packet to send [07:03:24]OFD Sender: No OFD packet to send [07:03:29]OFD Sender: No OFD packet to send [07:03:34]OFD Sender: No OFD packet to send [07:03:39]OFD Sender: No OFD packet to send [07:03:44]OFD Sender: No OFD packet to send [07:03:49]OFD Sender: No OFD packet to send [07:03:54]OFD Sender: No OFD packet to send [07:03:59]OFD Sender: No OFD packet to send [07:04:04]OFD Sender: No OFD packet to send [07:04:09]OFD Sender: No OFD packet to send [07:04:14]OFD Sender: No OFD packet to send [07:04:19]OFD Sender: No OFD packet to send [07:04:24]OFD Sender: No OFD packet to send [07:04:29]OFD Sender: No OFD packet to send [07:04:34]OFD Sender: No OFD packet to send [07:04:39]OFD Sender: No OFD packet to send [07:04:44]OFD Sender: No OFD packet to send [07:04:49]OFD Sender: No OFD packet to send [07:04:54]OFD Sender: No OFD packet to send [07:04:59]OFD Sender: No OFD packet to send [07:05:04]OFD Sender: No OFD packet to send [07:05:09]OFD Sender: No OFD packet to send [07:05:14]OFD Sender: No OFD packet to send [07:05:19]OFD Sender: No OFD packet to send [07:05:24]OFD Sender: No OFD packet to send [07:05:29]OFD Sender: No OFD packet to send [07:05:34]OFD Sender: No OFD packet to send [07:05:39]OFD Sender: No OFD packet to send [07:05:44]OFD Sender: No OFD packet to send [07:05:49]OFD Sender: No OFD packet to send [07:05:54]OFD Sender: No OFD packet to send [07:05:59]OFD Sender: No OFD packet to send [07:06:04]OFD Sender: No OFD packet to send [07:06:09]OFD Sender: No OFD packet to send [07:06:14]OFD Sender: No OFD packet to send [07:06:19]OFD Sender: No OFD packet to send [07:06:24]OFD Sender: No OFD packet to send [07:06:29]OFD Sender: No OFD packet to send [07:06:34]OFD Sender: No OFD packet to send [07:06:39]OFD Sender: No OFD packet to send [07:06:44]OFD Sender: No OFD packet to send [07:06:49]OFD Sender: No OFD packet to send [07:06:54]OFD Sender: No OFD packet to send [07:06:59]OFD Sender: No OFD packet to send [07:07:04]OFD Sender: No OFD packet to send [07:07:09]OFD Sender: No OFD packet to send [07:07:14]OFD Sender: No OFD packet to send [07:07:19]OFD Sender: No OFD packet to send [07:07:24]OFD Sender: No OFD packet to send [07:07:29]OFD Sender: No OFD packet to send [07:07:34]OFD Sender: No OFD packet to send [07:07:39]OFD Sender: No OFD packet to send [07:07:44]OFD Sender: No OFD packet to send [07:07:49]OFD Sender: No OFD packet to send [07:07:54]OFD Sender: No OFD packet to send [07:07:59]OFD Sender: No OFD packet to send [07:08:04]OFD Sender: No OFD packet to send [07:08:09]OFD Sender: No OFD packet to send [07:08:14]OFD Sender: No OFD packet to send [07:08:19]OFD Sender: No OFD packet to send [07:08:24]OFD Sender: No OFD packet to send [07:08:29]OFD Sender: No OFD packet to send [07:08:34]OFD Sender: No OFD packet to send [07:08:39]OFD Sender: No OFD packet to send [07:08:44]OFD Sender: No OFD packet to send [07:08:49]OFD Sender: No OFD packet to send [07:08:54]OFD Sender: No OFD packet to send [07:08:59]OFD Sender: No OFD packet to send [07:09:04]OFD Sender: No OFD packet to send [07:09:09]OFD Sender: No OFD packet to send [07:09:14]OFD Sender: No OFD packet to send [07:09:19]OFD Sender: No OFD packet to send [07:09:24]OFD Sender: No OFD packet to send [07:09:29]OFD Sender: No OFD packet to send [07:09:34]OFD Sender: No OFD packet to send [07:09:39]OFD Sender: No OFD packet to send [07:09:44]OFD Sender: No OFD packet to send [07:09:49]OFD Sender: No OFD packet to send [07:09:54]OFD Sender: No OFD packet to send [07:09:59]OFD Sender: No OFD packet to send [07:10:04]OFD Sender: No OFD packet to send [07:10:09]OFD Sender: No OFD packet to send [07:10:14]OFD Sender: No OFD packet to send [07:10:19]OFD Sender: No OFD packet to send [07:10:24]OFD Sender: No OFD packet to send [07:10:30]OFD Sender: No OFD packet to send [07:10:35]OFD Sender: No OFD packet to send [07:10:40]OFD Sender: No OFD packet to send [07:10:45]OFD Sender: No OFD packet to send [07:10:50]OFD Sender: No OFD packet to send [07:10:55]OFD Sender: No OFD packet to send [07:11:00]OFD Sender: No OFD packet to send [07:11:05]OFD Sender: No OFD packet to send [07:11:10]OFD Sender: No OFD packet to send [07:11:15]OFD Sender: No OFD packet to send [07:11:20]OFD Sender: No OFD packet to send [07:11:25]OFD Sender: No OFD packet to send [07:11:30]OFD Sender: No OFD packet to send [07:11:35]OFD Sender: No OFD packet to send [07:11:40]OFD Sender: No OFD packet to send [07:11:45]OFD Sender: No OFD packet to send [07:11:50]OFD Sender: No OFD packet to send [07:11:55]OFD Sender: No OFD packet to send [07:12:00]OFD Sender: No OFD packet to send [07:12:05]OFD Sender: No OFD packet to send [07:12:10]OFD Sender: No OFD packet to send [07:12:15]OFD Sender: No OFD packet to send [07:12:20]OFD Sender: No OFD packet to send [07:12:25]OFD Sender: No OFD packet to send [07:12:30]OFD Sender: No OFD packet to send [07:12:35]OFD Sender: No OFD packet to send [07:12:40]OFD Sender: No OFD packet to send [07:12:45]OFD Sender: No OFD packet to send [07:12:50]OFD Sender: No OFD packet to send [07:12:55]OFD Sender: No OFD packet to send [07:13:00]OFD Sender: No OFD packet to send [07:13:05]OFD Sender: No OFD packet to send [07:13:10]OFD Sender: No OFD packet to send [07:13:15]OFD Sender: No OFD packet to send [07:13:20]OFD Sender: No OFD packet to send [07:13:25]OFD Sender: No OFD packet to send [07:13:30]OFD Sender: No OFD packet to send [07:13:35]OFD Sender: No OFD packet to send [07:13:40]OFD Sender: No OFD packet to send [07:13:45]OFD Sender: No OFD packet to send [07:13:50]OFD Sender: No OFD packet to send [07:13:55]OFD Sender: No OFD packet to send [07:14:00]OFD Sender: No OFD packet to send [07:14:05]OFD Sender: No OFD packet to send [07:14:10]OFD Sender: No OFD packet to send [07:14:15]OFD Sender: No OFD packet to send [07:14:20]OFD Sender: No OFD packet to send [07:14:25]OFD Sender: No OFD packet to send [07:14:30]OFD Sender: No OFD packet to send [07:14:35]OFD Sender: No OFD packet to send [07:14:40]OFD Sender: No OFD packet to send [07:14:45]OFD Sender: No OFD packet to send [07:14:50]OFD Sender: No OFD packet to send [07:14:55]OFD Sender: No OFD packet to send [07:15:00]OFD Sender: No OFD packet to send [07:15:05]OFD Sender: No OFD packet to send [07:15:10]OFD Sender: No OFD packet to send [07:15:15]OFD Sender: No OFD packet to send [07:15:20]OFD Sender: No OFD packet to send [07:15:25]OFD Sender: No OFD packet to send [07:15:30]OFD Sender: No OFD packet to send [07:15:35]OFD Sender: No OFD packet to send [07:15:40]OFD Sender: No OFD packet to send [07:15:45]OFD Sender: No OFD packet to send [07:15:50]OFD Sender: No OFD packet to send [07:15:55]OFD Sender: No OFD packet to send [07:16:00]OFD Sender: No OFD packet to send [07:16:05]OFD Sender: No OFD packet to send [07:16:10]OFD Sender: No OFD packet to send [07:16:15]OFD Sender: No OFD packet to send [07:16:20]OFD Sender: No OFD packet to send [07:16:25]OFD Sender: No OFD packet to send [07:16:30]OFD Sender: No OFD packet to send [07:16:35]OFD Sender: No OFD packet to send [07:16:40]OFD Sender: No OFD packet to send [07:16:45]OFD Sender: No OFD packet to send [07:16:50]OFD Sender: No OFD packet to send [07:16:55]OFD Sender: No OFD packet to send [07:17:00]OFD Sender: No OFD packet to send [07:17:05]OFD Sender: No OFD packet to send [07:17:10]OFD Sender: No OFD packet to send [07:17:15]OFD Sender: No OFD packet to send [07:17:20]OFD Sender: No OFD packet to send [07:17:25]OFD Sender: No OFD packet to send [07:17:30]OFD Sender: No OFD packet to send [07:17:35]OFD Sender: No OFD packet to send [07:17:40]OFD Sender: No OFD packet to send [07:17:45]OFD Sender: No OFD packet to send [07:17:50]OFD Sender: No OFD packet to send [07:17:55]OFD Sender: No OFD packet to send [07:18:00]OFD Sender: No OFD packet to send [07:18:05]OFD Sender: No OFD packet to send [07:18:10]OFD Sender: No OFD packet to send [07:18:15]OFD Sender: No OFD packet to send [07:18:20]OFD Sender: No OFD packet to send [07:18:25]OFD Sender: No OFD packet to send [07:18:30]OFD Sender: No OFD packet to send [07:18:35]OFD Sender: No OFD packet to send [07:18:40]OFD Sender: No OFD packet to send [07:18:45]OFD Sender: No OFD packet to send [07:18:50]OFD Sender: No OFD packet to send [07:18:55]OFD Sender: No OFD packet to send [07:19:00]OFD Sender: No OFD packet to send [07:19:05]OFD Sender: No OFD packet to send [07:19:10]OFD Sender: No OFD packet to send [07:19:15]OFD Sender: No OFD packet to send [07:19:20]OFD Sender: No OFD packet to send [07:19:25]OFD Sender: No OFD packet to send [07:19:30]OFD Sender: No OFD packet to send [07:19:35]OFD Sender: No OFD packet to send [07:19:40]OFD Sender: No OFD packet to send [07:19:45]OFD Sender: No OFD packet to send [07:19:50]OFD Sender: No OFD packet to send [07:19:55]OFD Sender: No OFD packet to send [07:20:00]OFD Sender: No OFD packet to send [07:20:05]OFD Sender: No OFD packet to send [07:20:10]OFD Sender: No OFD packet to send [07:20:15]OFD Sender: No OFD packet to send [07:20:20]OFD Sender: No OFD packet to send [07:20:25]OFD Sender: No OFD packet to send [07:20:30]OFD Sender: No OFD packet to send [07:20:35]OFD Sender: No OFD packet to send [07:20:40]OFD Sender: No OFD packet to send [07:20:45]OFD Sender: No OFD packet to send [07:20:50]OFD Sender: No OFD packet to send [07:20:55]OFD Sender: No OFD packet to send [07:21:00]OFD Sender: No OFD packet to send [07:21:05]OFD Sender: No OFD packet to send [07:21:10]OFD Sender: No OFD packet to send [07:21:15]OFD Sender: No OFD packet to send [07:21:20]OFD Sender: No OFD packet to send [07:21:21]accept exits with 9 [07:21:21]New connection [07:21:21]New thread 3066563940 created [07:21:21]Thread 3066707300 joined [07:21:21]Waiting for new connection... [07:21:21] Sock 9.Parse request [07:21:21]Sock 9.Check first char [07:21:21]Sock 9.First char is OK [07:21:21]request: POST /json_proto HTTP/1.0 [07:21:21]Method: POST [07:21:21]URL: /json_proto [07:21:21]Method is POST - this is cgi request [07:21:21]url: /json_proto [07:21:21]query_string will be loaded in cgi processing [07:21:21]execute_cgi json_proto POST (null) [07:21:21]execute_cgi path=json_proto method=POST [07:21:21]POST find Content-Length [07:21:21]Host: 172.17.58.3:8080 [07:21:21]Content-Length: 679 [07:21:21]Content-Type: application/json [07:21:21] [07:21:21]POST finish read [07:21:21]Found Content-Length = 679 [07:21:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160731", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 27.110, "sum" : 2000.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:21:21]execute_script... [07:21: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)160731", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 27.110, "sum" : 2000.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:21:21]POST & json_proto [07:21:21]process_json_proto [07:21:21]json parsed OK: [07:21:21]protocol is kg_v1.0 [07:21:21]action value=close_receipt [07:21:21]process_action close_receipt [07:21:21]cmd_close_receipt [07:21:21]MH_GetDate [07:21:21]Write to MH i2c: F0 00 00 C2 14 C5 [07:21:21]Write i2c OK [07:21:21]MH_I2C_Read... [07:21:21]Read from MH i2c: F0 [07:21:21]MH_I2C_Read... [07:21:21]Read from MH i2c: F0 09 00 [07:21:21]MH_I2C_Read... [07:21:21]Read from MH i2c: F0 09 00 C2 14 00 75 09 BB 66 DC E4 6D 64 FE [07:21:21]GetLastDocTimeStamp 1723532539 [07:21:21]current date 1723533685 [07:21:21]FM_GetShiftState [07:21:21]SAM_PROTO_GetShiftState [07:21:21]wFMCommunicate request_size=4 [07:21:21]MH_SAM_APDU [07:21:21]CAPDU: 80 13 01 00 [07:21:21]Write to MH i2c: E2 08 00 C3 14 80 13 01 00 00 00 00 00 54 [07:21:21]Write i2c OK [07:21:21]MH_I2C_Read... [07:21:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:21:21]Read from MH i2c: E2 [07:21:21]MH_I2C_Read... [07:21:21]Read from MH i2c: E2 0E 00 [07:21:21]MH_I2C_Read... [07:21:21]Read from MH i2c: E2 0E 00 C3 14 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 72 [07:21:21]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [07:21:21]wFMCommunicate OK [07:21:21]SAM_PROTO_GetShiftState done [07:21:21]FM_GetShiftState done [07:21:21]opened in 1723506770 [07:21:21]opened+sec_in_day 1723593170 [07:21:21]quantity*price = 200071 [07:21:21]sum+1 = 200073 [07:21:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.72 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.47 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 11 13.08.2024 07:21 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103100 ФПД: 267339727845302 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T072125&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103100&fm=267339727845302&tin=02508201610067®Number=0000000000092718&sum=200000 [07:21:22]StoreToDocumentArchive [07:21:22]shift 464 fd 103100 [07:21:22]save to /storage/0464/doc_00103100 [07:21:22]save last doc name /storage/0464/doc_00103100 to /storage/kkm_last_doc_name [07:21:22]save OK [07:21:22]Clear old archive folders... [07:21:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:21:22]tlvbuf is 0029DF60 [07:21:22]SAM_PROTO_ClearQueue [07:21:22]wFMCommunicate request_size=4 [07:21:22]MH_SAM_APDU [07:21:22]CAPDU: 80 09 00 00 [07:21:22]Write to MH i2c: E2 08 00 D0 14 80 09 00 00 00 00 00 00 56 [07:21:22]Write i2c OK [07:21:22]MH_I2C_Read... [07:21:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:21:22]Read from MH i2c: E2 [07:21:22]MH_I2C_Read... [07:21:22]Read from MH i2c: E2 03 00 [07:21:22]MH_I2C_Read... [07:21:22]Read from MH i2c: E2 03 00 D0 14 00 90 00 58 [07:21:22]RAPDU: 90 00 [07:21:22]wFMCommunicate OK [07:21:22]SAM_PROTO_ClearQueue done [07:21:22]KKMCreateOFDPacket [07:21:22]OFDProtocolAddRootSTLVToBuf [07:21:22]FM_MakeSignedData [07:21:22]FM_MakeSignedData [07:21:22]SAM_PROTO_SignData [07:21:22]wFMCommunicate request_size=4 [07:21:22]MH_SAM_APDU [07:21:22]CAPDU: 80 0D 01 02 [07:21:22]Write to MH i2c: E2 08 00 D1 14 80 0D 01 02 00 00 00 00 5E [07:21:22]Write i2c OK [07:21:22]MH_I2C_Read... [07:21:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:21:22]Read from MH i2c: E2 [07:21:22]MH_I2C_Read... [07:21:22]Read from MH i2c: E2 03 00 [07:21:22]MH_I2C_Read... [07:21:22]Read from MH i2c: E2 03 00 D1 14 00 90 00 59 [07:21:22]RAPDU: 90 00 [07:21:22]wFMCommunicate OK [07:21:22]wFMCommunicate request_size=255 [07:21:22]MH_SAM_APDU [07:21:22]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 69 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 88 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 FF 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 0B 00 00 00 F4 03 04 00 75 09 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 BC 92 01 00 35 04 06 00 F3 24 E1 83 [07:21:23]Write to MH i2c: E2 02 01 D2 14 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 69 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 88 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 FF 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 0B 00 00 00 F4 03 04 00 75 09 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 BC 92 01 00 35 04 06 00 F3 24 E1 83 00 00 BB [07:21:23]Write i2c OK [07:21:23]MH_I2C_Read... [07:21:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:21:23]Read from MH i2c: E2 [07:21:23]MH_I2C_Read... [07:21:23]Read from MH i2c: E2 03 00 [07:21:23]MH_I2C_Read... [07:21:23]Read from MH i2c: E2 03 00 D2 14 00 90 00 5A [07:21:23]RAPDU: 90 00 [07:21:23]wFMCommunicate OK [07:21:23]wFMCommunicate request_size=7 [07:21:23]MH_SAM_APDU [07:21:23]CAPDU: 80 0D 02 02 02 37 B6 [07:21:23]Write to MH i2c: E2 0A 00 D3 14 80 0D 02 02 02 00 37 B6 00 00 52 [07:21:23]Write i2c OK [07:21:23]MH_I2C_Read... [07:21:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:21:23]Read from MH i2c: E2 [07:21:23]MH_I2C_Read... [07:21:23]Read from MH i2c: E2 03 00 [07:21:23]MH_I2C_Read... [07:21:23]Read from MH i2c: E2 03 00 D3 14 00 90 00 5B [07:21:23]RAPDU: 90 00 [07:21:23]wFMCommunicate OK [07:21:23]wFMCommunicate request_size=4 [07:21:23]MH_SAM_APDU [07:21:23]CAPDU: 80 0D 03 02 [07:21:23]Write to MH i2c: E2 08 00 D4 14 80 0D 03 02 00 00 00 00 63 [07:21:23]Write i2c OK [07:21:23]MH_I2C_Read... [07:21:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:21:23]Read from MH i2c: E2 [07:21:23]MH_I2C_Read... [07:21:23]Read from MH i2c: E2 0B 00 [07:21:23]MH_I2C_Read... [07:21:23]Read from MH i2c: E2 0B 00 D4 14 00 64 62 08 6E 82 22 E1 C0 90 00 E5 [07:21:23]RAPDU: 64 62 08 6E 82 22 E1 C0 90 00 [07:21:23]wFMCommunicate OK [07:21:23]SAM_PROTO_SignData done [07:21:23]FM_MakeSignedData done [07:21:23]CreateOFDProtocolMessage [07:21:23]wFMCommunicate request_size=4 [07:21:23]MH_SAM_APDU [07:21:23]CAPDU: 80 11 00 00 [07:21:23]Write to MH i2c: E2 08 00 D5 14 80 11 00 00 00 00 00 00 63 [07:21:23]Write i2c OK [07:21:23]MH_I2C_Read... [07:21:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:21:23]Read from MH i2c: E2 [07:21:23]MH_I2C_Read... [07:21:23]Read from MH i2c: E2 17 00 [07:21:23]MH_I2C_Read... [07:21:23]Read from MH i2c: E2 17 00 D5 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 B7 [07:21:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [07:21:23]wFMCommunicate OK [07:21:23]CreateOFDProtocolMessage done [07:21:23]OFDSenderStorePacket 103100 [07:21:23]StoreOFDPacket docnum=103100 [07:21:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 6F B0 04 01 3C 14 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 69 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 88 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 FF 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 0B 00 00 00 F4 03 04 00 75 09 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 BC 92 01 00 35 04 06 00 F3 24 E1 83 37 B6 64 62 08 6E 82 22 E1 C0 [07:21:23]CheckFolder [07:21:23]dirname=/storage/ofd_packets [07:21:23]CheckFolder done [07:21:23]ProducePacketName [07:21:23]name=ofd_packets/00103100 [07:21:23]NVStorageSaveData ofd_packets/00103100 [07:21:23]File name is /storage/ofd_packets/00103100 [07:21:23]Write 298 bytes [07:21:23]NVStorageSaveData done [07:21:23]OFDSenderStorePacket done [07:21:23]KKMCreateOFDPacket done [07:21:23]NVStorageSaveData kkm_last_timestamp [07:21:23]File name is /storage/kkm_last_timestamp [07:21:23]Write 4 bytes [07:21:23]NVStorageSaveData done [07:21:23]ExternCall_PrintAddStr [07:21:23]wPrintStart [07:21:23]Write to MH i2c: 01 00 00 D6 14 EA [07:21:23]Write i2c OK [07:21:23]MH_I2C_Read... [07:21:23]Read from MH i2c: 01 [07:21:23]MH_I2C_Read... [07:21:23]Read from MH i2c: 01 07 00 [07:21:23]MH_I2C_Read... [07:21:23]Read from MH i2c: 01 07 00 D6 14 00 00 00 00 00 FF 0F FF [07:21:23]RasterBufferAndPrint [07:21:23]line Счет N : (1)160731 [07:21:23]line ИНН: 02508201610067 [07:21:23]line Контрольно-Кассовый Чек [07:21:23]line ПРОДАЖА [07:21:23]line ТРК (МРК, ГНК) : 13 [07:21:23]line Товар: 2710194210 [07:21:23]line ДТ-К-5 [07:21:23]line 27.110 * 73.80 [07:21:23]line = 2000.72 [07:21:23]line НДС 12% НСП 1% [07:21:23]line > о реализуемом товаре [07:21:23]line ОКРУГЛЕНИЕ: -0.72 [07:21:23]line ИТОГО: 2000.00 [07:21:23]line Внесено: 2000.00 [07:21:23]line СДАЧА: 0.00 [07:21:23]line НСП 1% : 17.70 [07:21:23]line НДС 12% : 212.47 [07:21:23]line Наличными: 2000.00 [07:21:23]line Безнал.: 0.00 [07:21:23]line Место: АЗС № 38 "Партнер Нефть" [07:21:23]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [07:21:23]line СНО: Общий режим [07:21:23]line Чек 11 13.08.2024 07:21 [07:21:23]line Смена: 464 ФФД: 1.0 [07:21:23]line ЗНМ: 0300000126 [07:21:23]line РНМ: 0000000000092718 [07:21:23]line Версия ККМ: 001 [07:21:23]line ФМ: 0000000000875058 [07:21:23]line ФД: 103100 [07:21:23]line ФПД: 267339727845302 [07:21:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T072125&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103100&fm=267339727845302&tin=02508201610067®Number=0000000000092718&sum=200000 [07:21:23]OFD Sender: Processing packet 103100 [packets to send 69, broken 68] [07:21:23]ProducePacketName [07:21:23]name=ofd_packets/00103100 [07:21:23]OFD Sender: To server: pG, [07:21:23]CommunicateWithHost lk.salyk.kg:30040 [07:21:23]ConnectInit lk.salyk.kg [07:21:23]written 0, free lines is 4095 [07:21:23]Connected sock=10 [07:21:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 6F B0 04 01 3C 14 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 69 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 88 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 FF 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 0B 00 00 00 F4 03 04 00 75 09 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 BC 92 01 00 35 04 06 00 F3 24 E1 83 37 B6 64 62 08 6E 82 22 E1 C0 [07:21:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 ED BF 47 00 29 B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 BC 92 01 00 F4 03 04 00 E8 AF BA 66 B6 04 01 00 00 2D D2 1A 86 A5 EB DB 55 [07:21:24]CommunicateWithHost err = 0 [07:21:24]CheckOFDResponse [07:21:24]1017 (14) - 77093643461234 [07:21:24]1041 (16) - 0000000000875058 [07:21:24]1040 (4) - 103100 [07:21:24]1012 (4) - 13.08.2024 00:59 [07:21:24]1206 (1) - 0 [07:21:24]OFD Sender: Remove packet 103100 [07:21:24]ProducePacketName [07:21:24]name=ofd_packets/00103100 [07:21:24]NVStorageDeleteData [07:21:24]Write to MH i2c: 01 00 00 01 15 16 [07:21:24]Write i2c OK [07:21:24]MH_I2C_Read... [07:21:24]Read from MH i2c: 01 [07:21:24]MH_I2C_Read... [07:21:24]Read from MH i2c: 01 07 00 [07:21:24]MH_I2C_Read... [07:21:24]Read from MH i2c: 01 07 00 01 15 00 00 00 00 00 D4 0C FD [07:21:24]RasterBufferAndPrint [07:21:24]line [07:21:24]line [07:21:24]line [07:21:24]line [07:21:24]line [07:21:24]written 0, free lines is 3290 [07:21:24]MH_Cut [07:21:24]Write to MH i2c: D1 01 00 08 15 01 EF [07:21:24]Write i2c OK [07:21:24]MH_I2C_Read... [07:21:24]Read from MH i2c: D1 [07:21:24]MH_I2C_Read... [07:21:24]Read from MH i2c: D1 01 00 [07:21:24]MH_I2C_Read... [07:21:24]Read from MH i2c: D1 01 00 08 15 00 EE [07:21:24]Write to MH i2c: 01 00 00 09 15 1E [07:21:24]Write i2c OK [07:21:24]MH_I2C_Read... [07:21:24]OFD Sender: No OFD packet to send [07:21:24]*** Cut start [07:21:24]*** Purtial cut [07:21:24]*** CUTSNS_PIN = 0 [07:21:25]*** Stage 1: CUTSNS_PIN = 1 [07:21:27]Read from MH i2c: 01 [07:21:27]MH_I2C_Read... [07:21:27]*** Stop cut motor [07:21:27]*** Cut end [07:21:27]Read from MH i2c: 01 07 00 [07:21:27]MH_I2C_Read... [07:21:27]Read from MH i2c: 01 07 00 09 15 00 00 00 00 00 FF 0F 33 [07:21:27]process_action close_receipt done [07:21:27]requested_data is exist [07:21:27]produce_requested_data [07:21:27]requested_item fm.sn is exist - process it [07:21:27]wFMCommunicate request_size=4 [07:21:27]MH_SAM_APDU [07:21:27]CAPDU: 80 11 00 00 [07:21:27]Write to MH i2c: E2 08 00 0A 15 80 11 00 00 00 00 00 00 99 [07:21:27]Write i2c OK [07:21:27]MH_I2C_Read... [07:21:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:21:27]Read from MH i2c: E2 [07:21:27]MH_I2C_Read... [07:21:27]Read from MH i2c: E2 17 00 [07:21:27]MH_I2C_Read... [07:21:27]Read from MH i2c: E2 17 00 0A 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 ED [07:21:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [07:21:27]wFMCommunicate OK [07:21:27]requested_item fd.num is exist - process it [07:21:27]SAM_PROTO_GetFieldsCounters [07:21:27]wFMCommunicate request_size=4 [07:21:27]MH_SAM_APDU [07:21:27]CAPDU: 80 13 00 00 [07:21:27]Write to MH i2c: E2 08 00 0B 15 80 13 00 00 00 00 00 00 9C [07:21:27]Write i2c OK [07:21:27]MH_I2C_Read... [07:21:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:21:27]Read from MH i2c: E2 [07:21:27]MH_I2C_Read... [07:21:27]Read from MH i2c: E2 62 00 [07:21:27]MH_I2C_Read... [07:21:27]Read from MH i2c: E2 62 00 0B 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 BC 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [07:21:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 BC 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:21:27]wFMCommunicate OK [07:21:27]SAM_PROTO_GetFieldsCounters done [07:21:27]requested_item shift.num is exist - process it [07:21:27]requested_item shift.opened is exist - process it [07:21:27]req_shift_opened [07:21:27]FM_GetShiftState [07:21:27]SAM_PROTO_GetShiftState [07:21:27]wFMCommunicate request_size=4 [07:21:27]MH_SAM_APDU [07:21:27]CAPDU: 80 13 01 00 [07:21:27]Write to MH i2c: E2 08 00 0C 15 80 13 01 00 00 00 00 00 9E [07:21:27]Write i2c OK [07:21:27]MH_I2C_Read... [07:21:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:21:27]Read from MH i2c: E2 [07:21:27]MH_I2C_Read... [07:21:27]Read from MH i2c: E2 0E 00 [07:21:27]MH_I2C_Read... [07:21:27]Read from MH i2c: E2 0E 00 0C 15 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 BC [07:21:27]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [07:21:27]wFMCommunicate OK [07:21:27]SAM_PROTO_GetShiftState done [07:21:27]FM_GetShiftState done [07:21:27]req_shift_opened done [07:21:27]requested_item shift.open_date is exist - process it [07:21:27]req_shift_open_date [07:21:27]req_shift_open_date done [07:21:27]produce_requested_data done [07:21:27]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103100,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [07:21:27]process_action_free close_receipt [07:21:27]json_value_free [07:21:27]json_value_free done [07:21:27]process_json_proto returns [07:21:27]Send response to host [07:21:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103100,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [07:21:27]free response buf [07:21:27]execute_script done [07:21:27]execute_script returns [07:21:27]free content buf [07:21:27]Sock 9.Close socket [07:21:27]Sock 9.Thread stoped [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:56]accept exits with 7 [07:21:56]New connection [07:21:56]New thread 3066707300 created [07:21:56]Thread 3066563940 joined [07:21:56]Waiting for new connection... [07:21:56] Sock 7.Parse request [07:21:56]Sock 7.Check first char [07:21:56]Sock 7.First char is OK [07:21:56]request: POST /json_proto HTTP/1.0 [07:21:56]Method: POST [07:21:56]URL: /json_proto [07:21:56]Method is POST - this is cgi request [07:21:56]url: /json_proto [07:21:56]query_string will be loaded in cgi processing [07:21:56]execute_cgi json_proto POST (null) [07:21:56]execute_cgi path=json_proto method=POST [07:21:56]POST find Content-Length [07:21:56]Host: 172.17.58.3:8080 [07:21:56]Content-Length: 681 [07:21:56]Content-Type: application/json [07:21:56] [07:21:56]POST finish read [07:21:56]Found Content-Length = 681 [07:21:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160732", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 48.560, "sum" : 3200.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3200.00, "total" : 3200.00, "payments": [ { "type": 0, "sum" : 3200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:21:56]execute_script... [07:21:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160732", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 48.560, "sum" : 3200.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3200.00, "total" : 3200.00, "payments": [ { "type": 0, "sum" : 3200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:21:56]POST & json_proto [07:21:56]process_json_proto [07:21:56]json parsed OK: [07:21:56]protocol is kg_v1.0 [07:21:56]action value=close_receipt [07:21:56]process_action close_receipt [07:21:56]cmd_close_receipt [07:21:56]MH_GetDate [07:21:56]Write to MH i2c: F0 00 00 0D 15 11 [07:21:56]Write i2c OK [07:21:56]MH_I2C_Read... [07:21:56]Read from MH i2c: F0 [07:21:56]MH_I2C_Read... [07:21:56]Read from MH i2c: F0 09 00 [07:21:56]MH_I2C_Read... [07:21:56]Read from MH i2c: F0 09 00 0D 15 00 97 09 BB 66 DC E4 6D 64 6C [07:21:56]GetLastDocTimeStamp 1723533685 [07:21:56]current date 1723533719 [07:21:56]FM_GetShiftState [07:21:56]SAM_PROTO_GetShiftState [07:21:56]wFMCommunicate request_size=4 [07:21:56]MH_SAM_APDU [07:21:56]CAPDU: 80 13 01 00 [07:21:56]Write to MH i2c: E2 08 00 0E 15 80 13 01 00 00 00 00 00 A0 [07:21:56]Write i2c OK [07:21:56]MH_I2C_Read... [07:21:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:21:56]Read from MH i2c: E2 [07:21:56]MH_I2C_Read... [07:21:56]Read from MH i2c: E2 0E 00 [07:21:56]MH_I2C_Read... [07:21:56]Read from MH i2c: E2 0E 00 0E 15 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 BE [07:21:56]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [07:21:56]wFMCommunicate OK [07:21:56]SAM_PROTO_GetShiftState done [07:21:56]FM_GetShiftState done [07:21:56]opened in 1723506770 [07:21:56]opened+sec_in_day 1723593170 [07:21:56]quantity*price = 320010 [07:21:56]sum+1 = 320011 [07:21:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 3200.00 Внесено: 3200.00 СДАЧА: 0.00 НСП 1% : 28.32 НДС 12% : 339.83 Наличными: 3200.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 12 13.08.2024 07:21 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103101 ФПД: 136520953737075 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T072159&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103101&fm=136520953737075&tin=02508201610067®Number=0000000000092718&sum=320000 [07:21:57]StoreToDocumentArchive [07:21:57]shift 464 fd 103101 [07:21:57]save to /storage/0464/doc_00103101 [07:21:57]save last doc name /storage/0464/doc_00103101 to /storage/kkm_last_doc_name [07:21:57]save OK [07:21:57]Clear old archive folders... [07:21:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:21:57]tlvbuf is 002A5810 [07:21:57]SAM_PROTO_ClearQueue [07:21:57]wFMCommunicate request_size=4 [07:21:57]MH_SAM_APDU [07:21:57]CAPDU: 80 09 00 00 [07:21:57]Write to MH i2c: E2 08 00 1B 15 80 09 00 00 00 00 00 00 A2 [07:21:57]Write i2c OK [07:21:57]MH_I2C_Read... [07:21:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:21:57]Read from MH i2c: E2 [07:21:57]MH_I2C_Read... [07:21:57]Read from MH i2c: E2 03 00 [07:21:57]MH_I2C_Read... [07:21:57]Read from MH i2c: E2 03 00 1B 15 00 90 00 A4 [07:21:57]RAPDU: 90 00 [07:21:57]wFMCommunicate OK [07:21:57]SAM_PROTO_ClearQueue done [07:21:57]KKMCreateOFDPacket [07:21:57]OFDProtocolAddRootSTLVToBuf [07:21:57]FM_MakeSignedData [07:21:57]FM_MakeSignedData [07:21:57]SAM_PROTO_SignData [07:21:57]wFMCommunicate request_size=4 [07:21:57]MH_SAM_APDU [07:21:57]CAPDU: 80 0D 01 02 [07:21:57]Write to MH i2c: E2 08 00 1C 15 80 0D 01 02 00 00 00 00 AA [07:21:57]Write i2c OK [07:21:57]MH_I2C_Read... [07:21:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:21:57]Read from MH i2c: E2 [07:21:57]MH_I2C_Read... [07:21:57]Read from MH i2c: E2 03 00 [07:21:57]MH_I2C_Read... [07:21:57]Read from MH i2c: E2 03 00 1C 15 00 90 00 A5 [07:21:57]RAPDU: 90 00 [07:21:57]wFMCommunicate OK [07:21:57]wFMCommunicate request_size=255 [07:21:57]MH_SAM_APDU [07:21: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 B0 BD 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 0A E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E2 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 84 00 00 00 00 07 04 06 00 00 E2 04 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 97 09 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 BD 92 01 00 35 04 06 00 7C [07:21:57]Write to MH i2c: E2 02 01 1D 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 BD 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 0A E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E2 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 84 00 00 00 00 07 04 06 00 00 E2 04 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 97 09 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 BD 92 01 00 35 04 06 00 7C 00 00 7F [07:21:57]Write i2c OK [07:21:57]MH_I2C_Read... [07:21:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:21:57]Read from MH i2c: E2 [07:21:57]MH_I2C_Read... [07:21:57]Read from MH i2c: E2 03 00 [07:21:57]MH_I2C_Read... [07:21:57]Read from MH i2c: E2 03 00 1D 15 00 90 00 A6 [07:21:57]RAPDU: 90 00 [07:21:57]wFMCommunicate OK [07:21:57]wFMCommunicate request_size=10 [07:21:57]MH_SAM_APDU [07:21:57]CAPDU: 80 0D 02 02 05 2A 42 F3 AF 73 [07:21:57]Write to MH i2c: E2 0D 00 1E 15 80 0D 02 02 05 00 2A 42 F3 AF 73 00 00 38 [07:21:57]Write i2c OK [07:21:57]MH_I2C_Read... [07:21:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:21:57]Read from MH i2c: E2 [07:21:57]MH_I2C_Read... [07:21:57]Read from MH i2c: E2 03 00 [07:21:57]MH_I2C_Read... [07:21:57]Read from MH i2c: E2 03 00 1E 15 00 90 00 A7 [07:21:57]RAPDU: 90 00 [07:21:57]wFMCommunicate OK [07:21:57]wFMCommunicate request_size=4 [07:21:57]MH_SAM_APDU [07:21:57]CAPDU: 80 0D 03 02 [07:21:57]Write to MH i2c: E2 08 00 1F 15 80 0D 03 02 00 00 00 00 AF [07:21:57]Write i2c OK [07:21:57]MH_I2C_Read... [07:21:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:21:58]Read from MH i2c: E2 [07:21:58]MH_I2C_Read... [07:21:58]Read from MH i2c: E2 0B 00 [07:21:58]MH_I2C_Read... [07:21:58]Read from MH i2c: E2 0B 00 1F 15 00 47 96 C6 22 77 0A 4C FF 90 00 41 [07:21:58]RAPDU: 47 96 C6 22 77 0A 4C FF 90 00 [07:21:58]wFMCommunicate OK [07:21:58]SAM_PROTO_SignData done [07:21:58]FM_MakeSignedData done [07:21:58]CreateOFDProtocolMessage [07:21:58]wFMCommunicate request_size=4 [07:21:58]MH_SAM_APDU [07:21:58]CAPDU: 80 11 00 00 [07:21:58]Write to MH i2c: E2 08 00 20 15 80 11 00 00 00 00 00 00 AF [07:21:58]Write i2c OK [07:21:58]MH_I2C_Read... [07:21:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:21:58]Read from MH i2c: E2 [07:21:58]MH_I2C_Read... [07:21:58]Read from MH i2c: E2 17 00 [07:21:58]MH_I2C_Read... [07:21:58]Read from MH i2c: E2 17 00 20 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 03 [07:21:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [07:21:58]wFMCommunicate OK [07:21:58]CreateOFDProtocolMessage done [07:21:58]OFDSenderStorePacket 103101 [07:21:58]StoreOFDPacket docnum=103101 [07:21:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 D4 40 07 01 CE DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 BD 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 0A E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E2 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 84 00 00 00 00 07 04 06 00 00 E2 04 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 97 09 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 BD 92 01 00 35 04 06 00 7C 2A 42 F3 AF 73 47 96 C6 22 77 0A 4C FF [07:21:58]CheckFolder [07:21:58]dirname=/storage/ofd_packets [07:21:58]CheckFolder done [07:21:58]ProducePacketName [07:21:58]name=ofd_packets/00103101 [07:21:58]NVStorageSaveData ofd_packets/00103101 [07:21:58]File name is /storage/ofd_packets/00103101 [07:21:58]Write 301 bytes [07:21:58]NVStorageSaveData done [07:21:58]OFDSenderStorePacket done [07:21:58]KKMCreateOFDPacket done [07:21:58]NVStorageSaveData kkm_last_timestamp [07:21:58]File name is /storage/kkm_last_timestamp [07:21:58]Write 4 bytes [07:21:58]NVStorageSaveData done [07:21:58]ExternCall_PrintAddStr [07:21:58]wPrintStart [07:21:58]Write to MH i2c: 01 00 00 21 15 36 [07:21:58]Write i2c OK [07:21:58]MH_I2C_Read... [07:21:58]Read from MH i2c: 01 [07:21:58]MH_I2C_Read... [07:21:58]Read from MH i2c: 01 07 00 [07:21:58]MH_I2C_Read... [07:21:58]Read from MH i2c: 01 07 00 21 15 00 00 00 00 00 FF 0F 4B [07:21:58]RasterBufferAndPrint [07:21:58]line Счет N : (1)160732 [07:21:58]line ИНН: 02508201610067 [07:21:58]line Контрольно-Кассовый Чек [07:21:58]line ПРОДАЖА [07:21:58]line ТРК (МРК, ГНК) : 3 [07:21:58]line Товар: 2710124130 [07:21:58]line Аи-92-К-5 [07:21:58]line 48.560 * 65.90 [07:21:58]line = 3200.10 [07:21:58]line НДС 12% НСП 1% [07:21:58]line > о реализуемом товаре [07:21:58]line ОКРУГЛЕНИЕ: -0.10 [07:21:58]line ИТОГО: 3200.00 [07:21:58]line Внесено: 3200.00 [07:21:58]line СДАЧА: 0.00 [07:21:58]line НСП 1% : 28.32 [07:21:58]line НДС 12% : 339.83 [07:21:58]line Наличными: 3200.00 [07:21:58]line Безнал.: 0.00 [07:21:58]line Место: АЗС № 38 "Партнер Нефть" [07:21:58]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [07:21:58]line СНО: Общий режим [07:21:58]line Чек 12 13.08.2024 07:21 [07:21:58]line Смена: 464 ФФД: 1.0 [07:21:58]line ЗНМ: 0300000126 [07:21:58]line РНМ: 0000000000092718 [07:21:58]line Версия ККМ: 001 [07:21:58]line ФМ: 0000000000875058 [07:21:58]line ФД: 103101 [07:21:58]line ФПД: 136520953737075 [07:21:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T072159&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103101&fm=136520953737075&tin=02508201610067®Number=0000000000092718&sum=320000 [07:21:58]OFD Sender: Processing packet 103101 [packets to send 69, broken 68] [07:21:58]ProducePacketName [07:21:58]name=ofd_packets/00103101 [07:21:58]OFD Sender: To server: pG, [07:21:58]CommunicateWithHost lk.salyk.kg:30040 [07:21:58]ConnectInit lk.salyk.kg [07:21:58]written 0, free lines is 4095 [07:21:58]Connected sock=10 [07:21:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 D4 40 07 01 CE DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 BD 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 0A E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E2 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 84 00 00 00 00 07 04 06 00 00 E2 04 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 97 09 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 BD 92 01 00 35 04 06 00 7C 2A 42 F3 AF 73 47 96 C6 22 77 0A 4C FF [07:21:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 2D AB 47 00 7F 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 BD 92 01 00 F4 03 04 00 0B B0 BA 66 B6 04 01 00 00 ED C2 F1 C4 F7 77 03 D9 [07:21:58]CommunicateWithHost err = 0 [07:21:58]CheckOFDResponse [07:21:58]1017 (14) - 77093643461234 [07:21:58]1041 (16) - 0000000000875058 [07:21:58]1040 (4) - 103101 [07:21:58]1012 (4) - 13.08.2024 00:59 [07:21:58]1206 (1) - 0 [07:21:58]OFD Sender: Remove packet 103101 [07:21:58]ProducePacketName [07:21:58]name=ofd_packets/00103101 [07:21:58]NVStorageDeleteData [07:21:58]Write to MH i2c: 01 00 00 4C 15 61 [07:21:58]Write i2c OK [07:21:58]MH_I2C_Read... [07:21:58]Read from MH i2c: 01 [07:21:58]MH_I2C_Read... [07:21:58]Read from MH i2c: 01 07 00 [07:21:58]MH_I2C_Read... [07:21:58]Read from MH i2c: 01 07 00 4C 15 00 00 00 00 00 DD 0C 51 [07:21:58]RasterBufferAndPrint [07:21:58]line [07:21:58]line [07:21:58]line [07:21:58]line [07:21:58]line [07:21:58]written 0, free lines is 3298 [07:21:58]MH_Cut [07:21:58]Write to MH i2c: D1 01 00 53 15 01 3A [07:21:58]Write i2c OK [07:21:58]MH_I2C_Read... [07:21:58]Read from MH i2c: D1 [07:21:58]MH_I2C_Read... [07:21:58]Read from MH i2c: D1 01 00 [07:21:58]MH_I2C_Read... [07:21:58]Read from MH i2c: D1 01 00 53 15 00 39 [07:21:58]Write to MH i2c: 01 00 00 54 15 69 [07:21:58]Write i2c OK [07:21:58]MH_I2C_Read... [07:21:59]OFD Sender: No OFD packet to send [07:21:59]*** Cut start [07:21:59]*** Purtial cut [07:21:59]*** Stage 1: CUTSNS_PIN = 1 [07:21:59]Read from MH i2c: 01 [07:21:59]MH_I2C_Read... [07:21:59]*** Stop cut motor [07:21:59]*** Cut end [07:21:59]Read from MH i2c: 01 07 00 [07:21:59]MH_I2C_Read... [07:21:59]Read from MH i2c: 01 07 00 54 15 00 00 00 00 00 FF 0F 7E [07:21:59]process_action close_receipt done [07:21:59]requested_data is exist [07:21:59]produce_requested_data [07:21:59]requested_item fm.sn is exist - process it [07:21:59]wFMCommunicate request_size=4 [07:21:59]MH_SAM_APDU [07:21:59]CAPDU: 80 11 00 00 [07:21:59]Write to MH i2c: E2 08 00 55 15 80 11 00 00 00 00 00 00 E4 [07:21:59]Write i2c OK [07:21:59]MH_I2C_Read... [07:22:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:22:00]Read from MH i2c: E2 [07:22:00]MH_I2C_Read... [07:22:00]Read from MH i2c: E2 17 00 [07:22:00]MH_I2C_Read... [07:22:00]Read from MH i2c: E2 17 00 55 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 38 [07:22:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [07:22:00]wFMCommunicate OK [07:22:00]requested_item fd.num is exist - process it [07:22:00]SAM_PROTO_GetFieldsCounters [07:22:00]wFMCommunicate request_size=4 [07:22:00]MH_SAM_APDU [07:22:00]CAPDU: 80 13 00 00 [07:22:00]Write to MH i2c: E2 08 00 56 15 80 13 00 00 00 00 00 00 E7 [07:22:00]Write i2c OK [07:22:00]MH_I2C_Read... [07:22:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:22:00]Read from MH i2c: E2 [07:22:00]MH_I2C_Read... [07:22:00]Read from MH i2c: E2 62 00 [07:22:00]MH_I2C_Read... [07:22:00]Read from MH i2c: E2 62 00 56 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 BD 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [07:22:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 BD 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:22:00]wFMCommunicate OK [07:22:00]SAM_PROTO_GetFieldsCounters done [07:22:00]requested_item shift.num is exist - process it [07:22:00]requested_item shift.opened is exist - process it [07:22:00]req_shift_opened [07:22:00]FM_GetShiftState [07:22:00]SAM_PROTO_GetShiftState [07:22:00]wFMCommunicate request_size=4 [07:22:00]MH_SAM_APDU [07:22:00]CAPDU: 80 13 01 00 [07:22:00]Write to MH i2c: E2 08 00 57 15 80 13 01 00 00 00 00 00 E9 [07:22:00]Write i2c OK [07:22:00]MH_I2C_Read... [07:22:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:22:00]Read from MH i2c: E2 [07:22:00]MH_I2C_Read... [07:22:00]Read from MH i2c: E2 0E 00 [07:22:00]MH_I2C_Read... [07:22:00]Read from MH i2c: E2 0E 00 57 15 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 07 [07:22:00]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [07:22:00]wFMCommunicate OK [07:22:00]SAM_PROTO_GetShiftState done [07:22:00]FM_GetShiftState done [07:22:00]req_shift_opened done [07:22:00]requested_item shift.open_date is exist - process it [07:22:00]req_shift_open_date [07:22:00]req_shift_open_date done [07:22:00]produce_requested_data done [07:22:00]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103101,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [07:22:00]process_action_free close_receipt [07:22:00]json_value_free [07:22:00]json_value_free done [07:22:00]process_json_proto returns [07:22:00]Send response to host [07:22:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103101,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [07:22:00]free response buf [07:22:00]execute_script done [07:22:00]execute_script returns [07:22:00]free content buf [07:22:00]Sock 7.Close socket [07:22:00]Sock 7.Thread stoped [07:22:04]OFD Sender: No OFD packet to send [07:22:09]OFD Sender: No OFD packet to send [07:22:14]OFD Sender: No OFD packet to send [07:22:19]OFD Sender: No OFD packet to send [07:22:24]OFD Sender: No OFD packet to send [07:22:29]OFD Sender: No OFD packet to send [07:22:34]OFD Sender: No OFD packet to send [07:22:39]OFD Sender: No OFD packet to send [07:22:44]OFD Sender: No OFD packet to send [07:22:49]OFD Sender: No OFD packet to send [07:22:54]OFD Sender: No OFD packet to send [07:22:59]OFD Sender: No OFD packet to send [07:23:04]OFD Sender: No OFD packet to send [07:23:09]OFD Sender: No OFD packet to send [07:23:14]OFD Sender: No OFD packet to send [07:23:19]OFD Sender: No OFD packet to send [07:23:24]OFD Sender: No OFD packet to send [07:23:29]OFD Sender: No OFD packet to send [07:23:34]OFD Sender: No OFD packet to send [07:23:39]OFD Sender: No OFD packet to send [07:23:44]OFD Sender: No OFD packet to send [07:23:49]OFD Sender: No OFD packet to send [07:23:54]OFD Sender: No OFD packet to send [07:23:59]OFD Sender: No OFD packet to send [07:24:04]OFD Sender: No OFD packet to send [07:24:09]OFD Sender: No OFD packet to send [07:24:14]OFD Sender: No OFD packet to send [07:24:19]OFD Sender: No OFD packet to send [07:24:24]OFD Sender: No OFD packet to send [07:24:29]OFD Sender: No OFD packet to send [07:24:34]OFD Sender: No OFD packet to send [07:24:39]OFD Sender: No OFD packet to send [07:24:44]OFD Sender: No OFD packet to send [07:24:49]OFD Sender: No OFD packet to send [07:24:50]accept exits with 9 [07:24:50]New connection [07:24:50]New thread 3066563940 created [07:24:50]Thread 3066707300 joined [07:24:50]Waiting for new connection... [07:24:50] Sock 9.Parse request [07:24:50]Sock 9.Check first char [07:24:50]Sock 9.First char is OK [07:24:50]request: POST /json_proto HTTP/1.0 [07:24:50]Method: POST [07:24:50]URL: /json_proto [07:24:50]Method is POST - this is cgi request [07:24:50]url: /json_proto [07:24:50]query_string will be loaded in cgi processing [07:24:50]execute_cgi json_proto POST (null) [07:24:50]execute_cgi path=json_proto method=POST [07:24:50]POST find Content-Length [07:24:50]Host: 172.17.58.3:8080 [07:24:50]Content-Length: 674 [07:24:50]Content-Type: application/json [07:24:50] [07:24:50]POST finish read [07:24:50]Found Content-Length = 674 [07:24:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160733", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 2.990, "sum" : 220.66, "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" ] } } [07:24:50]execute_script... [07:24: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)160733", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 2.990, "sum" : 220.66, "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" ] } } [07:24:50]POST & json_proto [07:24:50]process_json_proto [07:24:50]json parsed OK: [07:24:50]protocol is kg_v1.0 [07:24:50]action value=close_receipt [07:24:50]process_action close_receipt [07:24:50]cmd_close_receipt [07:24:50]MH_GetDate [07:24:50]Write to MH i2c: F0 00 00 58 15 5C [07:24:50]Write i2c OK [07:24:50]MH_I2C_Read... [07:24:50]Read from MH i2c: F0 [07:24:50]MH_I2C_Read... [07:24:50]Read from MH i2c: F0 09 00 [07:24:50]MH_I2C_Read... [07:24:50]Read from MH i2c: F0 09 00 58 15 00 46 0A BB 66 DC E4 6D 64 67 [07:24:50]GetLastDocTimeStamp 1723533719 [07:24:50]current date 1723533894 [07:24:50]FM_GetShiftState [07:24:50]SAM_PROTO_GetShiftState [07:24:50]wFMCommunicate request_size=4 [07:24:50]MH_SAM_APDU [07:24:50]CAPDU: 80 13 01 00 [07:24:50]Write to MH i2c: E2 08 00 59 15 80 13 01 00 00 00 00 00 EB [07:24:50]Write i2c OK [07:24:50]MH_I2C_Read... [07:24:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:24:50]Read from MH i2c: E2 [07:24:50]MH_I2C_Read... [07:24:50]Read from MH i2c: E2 0E 00 [07:24:50]MH_I2C_Read... [07:24:50]Read from MH i2c: E2 0E 00 59 15 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 09 [07:24:50]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [07:24:50]wFMCommunicate OK [07:24:50]SAM_PROTO_GetShiftState done [07:24:50]FM_GetShiftState done [07:24:50]opened in 1723506770 [07:24:50]opened+sec_in_day 1723593170 [07:24:50]quantity*price = 22066 [07:24:50]sum+1 = 22067 [07:24:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.43 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 13 13.08.2024 07:24 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103102 ФПД: 87864663031957 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T072454&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103102&fm=87864663031957&tin=02508201610067®Number=0000000000092718&sum=22000 [07:24:52]StoreToDocumentArchive [07:24:52]shift 464 fd 103102 [07:24:52]save to /storage/0464/doc_00103102 [07:24:52]save last doc name /storage/0464/doc_00103102 to /storage/kkm_last_doc_name [07:24:52]save OK [07:24:52]Clear old archive folders... [07:24:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:24:52]tlvbuf is 0029DF60 [07:24:52]SAM_PROTO_ClearQueue [07:24:52]wFMCommunicate request_size=4 [07:24:52]MH_SAM_APDU [07:24:52]CAPDU: 80 09 00 00 [07:24:52]Write to MH i2c: E2 08 00 66 15 80 09 00 00 00 00 00 00 ED [07:24:52]Write i2c OK [07:24:52]MH_I2C_Read... [07:24:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:24:52]Read from MH i2c: E2 [07:24:52]MH_I2C_Read... [07:24:52]Read from MH i2c: E2 03 00 [07:24:52]MH_I2C_Read... [07:24:52]Read from MH i2c: E2 03 00 66 15 00 90 00 EF [07:24:52]RAPDU: 90 00 [07:24:52]wFMCommunicate OK [07:24:52]SAM_PROTO_ClearQueue done [07:24:52]KKMCreateOFDPacket [07:24:52]OFDProtocolAddRootSTLVToBuf [07:24:52]FM_MakeSignedData [07:24:52]FM_MakeSignedData [07:24:52]SAM_PROTO_SignData [07:24:52]wFMCommunicate request_size=4 [07:24:52]MH_SAM_APDU [07:24:52]CAPDU: 80 0D 01 02 [07:24:52]Write to MH i2c: E2 08 00 67 15 80 0D 01 02 00 00 00 00 F5 [07:24:52]Write i2c OK [07:24:52]MH_I2C_Read... [07:24:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:24:52]Read from MH i2c: E2 [07:24:52]MH_I2C_Read... [07:24:52]Read from MH i2c: E2 03 00 [07:24:52]MH_I2C_Read... [07:24:52]Read from MH i2c: E2 03 00 67 15 00 90 00 F0 [07:24:52]RAPDU: 90 00 [07:24:52]wFMCommunicate OK [07:24:52]wFMCommunicate request_size=255 [07:24:52]MH_SAM_APDU [07:24:52]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 32 56 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 27 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 0D 00 00 00 F4 03 04 00 46 0A BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 BE 92 01 00 35 04 06 00 4F E9 96 07 [07:24:52]Write to MH i2c: E2 02 01 68 15 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 32 56 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 27 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 0D 00 00 00 F4 03 04 00 46 0A BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 BE 92 01 00 35 04 06 00 4F E9 96 07 00 00 78 [07:24:52]Write i2c OK [07:24:52]MH_I2C_Read... [07:24:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:24:52]Read from MH i2c: E2 [07:24:52]MH_I2C_Read... [07:24:52]Read from MH i2c: E2 03 00 [07:24:52]MH_I2C_Read... [07:24:52]Read from MH i2c: E2 03 00 68 15 00 90 00 F1 [07:24:52]RAPDU: 90 00 [07:24:52]wFMCommunicate OK [07:24:52]wFMCommunicate request_size=7 [07:24:52]MH_SAM_APDU [07:24:52]CAPDU: 80 0D 02 02 02 40 95 [07:24:52]Write to MH i2c: E2 0A 00 69 15 80 0D 02 02 02 00 40 95 00 00 D1 [07:24:52]Write i2c OK [07:24:52]MH_I2C_Read... [07:24:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:24:52]Read from MH i2c: E2 [07:24:52]MH_I2C_Read... [07:24:52]Read from MH i2c: E2 03 00 [07:24:52]MH_I2C_Read... [07:24:52]Read from MH i2c: E2 03 00 69 15 00 90 00 F2 [07:24:52]RAPDU: 90 00 [07:24:52]wFMCommunicate OK [07:24:52]wFMCommunicate request_size=4 [07:24:52]MH_SAM_APDU [07:24:52]CAPDU: 80 0D 03 02 [07:24:52]Write to MH i2c: E2 08 00 6A 15 80 0D 03 02 00 00 00 00 FA [07:24:52]Write i2c OK [07:24:52]MH_I2C_Read... [07:24:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:24:52]Read from MH i2c: E2 [07:24:52]MH_I2C_Read... [07:24:52]Read from MH i2c: E2 0B 00 [07:24:52]MH_I2C_Read... [07:24:52]Read from MH i2c: E2 0B 00 6A 15 00 C9 55 83 6F 6B C2 7C 82 90 00 36 [07:24:52]RAPDU: C9 55 83 6F 6B C2 7C 82 90 00 [07:24:52]wFMCommunicate OK [07:24:52]SAM_PROTO_SignData done [07:24:52]FM_MakeSignedData done [07:24:52]CreateOFDProtocolMessage [07:24:52]wFMCommunicate request_size=4 [07:24:52]MH_SAM_APDU [07:24:52]CAPDU: 80 11 00 00 [07:24:52]Write to MH i2c: E2 08 00 6B 15 80 11 00 00 00 00 00 00 FA [07:24:52]Write i2c OK [07:24:52]MH_I2C_Read... [07:24:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:24:52]Read from MH i2c: E2 [07:24:52]MH_I2C_Read... [07:24:52]Read from MH i2c: E2 17 00 [07:24:52]MH_I2C_Read... [07:24:52]Read from MH i2c: E2 17 00 6B 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 4E [07:24:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [07:24:52]wFMCommunicate OK [07:24:52]CreateOFDProtocolMessage done [07:24:52]OFDSenderStorePacket 103102 [07:24:52]StoreOFDPacket docnum=103102 [07:24:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 AB 42 04 01 0F F7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 32 56 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 27 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 0D 00 00 00 F4 03 04 00 46 0A BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 BE 92 01 00 35 04 06 00 4F E9 96 07 40 95 C9 55 83 6F 6B C2 7C 82 [07:24:52]CheckFolder [07:24:52]dirname=/storage/ofd_packets [07:24:52]CheckFolder done [07:24:52]ProducePacketName [07:24:52]name=ofd_packets/00103102 [07:24:52]NVStorageSaveData ofd_packets/00103102 [07:24:52]File name is /storage/ofd_packets/00103102 [07:24:52]Write 298 bytes [07:24:52]NVStorageSaveData done [07:24:52]OFDSenderStorePacket done [07:24:52]KKMCreateOFDPacket done [07:24:52]NVStorageSaveData kkm_last_timestamp [07:24:52]File name is /storage/kkm_last_timestamp [07:24:52]Write 4 bytes [07:24:52]NVStorageSaveData done [07:24:52]ExternCall_PrintAddStr [07:24:52]wPrintStart [07:24:52]Write to MH i2c: 01 00 00 6C 15 81 [07:24:52]Write i2c OK [07:24:52]MH_I2C_Read... [07:24:52]Read from MH i2c: 01 [07:24:52]MH_I2C_Read... [07:24:52]Read from MH i2c: 01 07 00 [07:24:52]MH_I2C_Read... [07:24:52]Read from MH i2c: 01 07 00 6C 15 00 00 00 00 00 FF 0F 96 [07:24:52]RasterBufferAndPrint [07:24:52]line Счет N : (1)160733 [07:24:52]line ИНН: 02508201610067 [07:24:52]line Контрольно-Кассовый Чек [07:24:52]line ПРОДАЖА [07:24:52]line ТРК (МРК, ГНК) : 13 [07:24:52]line Товар: 2710194210 [07:24:52]line ДТ-К-5 [07:24:52]line 2.990 * 73.80 [07:24:52]line = 220.66 [07:24:52]line НДС 12% НСП 1% [07:24:52]line > о реализуемом товаре [07:24:52]line ОКРУГЛЕНИЕ: -0.66 [07:24:52]line ИТОГО: 220.00 [07:24:52]line Внесено: 220.00 [07:24:52]line СДАЧА: 0.00 [07:24:52]line НСП 1% : 1.95 [07:24:52]line НДС 12% : 23.43 [07:24:52]line Наличными: 220.00 [07:24:52]line Безнал.: 0.00 [07:24:52]line Место: АЗС № 38 "Партнер Нефть" [07:24:52]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [07:24:52]line СНО: Общий режим [07:24:52]line Чек 13 13.08.2024 07:24 [07:24:52]line Смена: 464 ФФД: 1.0 [07:24:52]line ЗНМ: 0300000126 [07:24:52]line РНМ: 0000000000092718 [07:24:52]line Версия ККМ: 001 [07:24:52]line ФМ: 0000000000875058 [07:24:52]line ФД: 103102 [07:24:52]line ФПД: 87864663031957 [07:24:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T072454&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103102&fm=87864663031957&tin=02508201610067®Number=0000000000092718&sum=22000 [07:24:52]OFD Sender: Processing packet 103102 [packets to send 69, broken 68] [07:24:52]ProducePacketName [07:24:52]name=ofd_packets/00103102 [07:24:52]OFD Sender: To server: pG, [07:24:52]CommunicateWithHost lk.salyk.kg:30040 [07:24:52]ConnectInit lk.salyk.kg [07:24:52]written 0, free lines is 4095 [07:24:52]Connected sock=10 [07:24:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 AB 42 04 01 0F F7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 32 56 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 27 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 0D 00 00 00 F4 03 04 00 46 0A BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 BE 92 01 00 35 04 06 00 4F E9 96 07 40 95 C9 55 83 6F 6B C2 7C 82 [07:24:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 B7 83 47 00 22 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 BE 92 01 00 F4 03 04 00 B9 B0 BA 66 B6 04 01 00 00 2C 69 CC 16 E0 13 EB A6 [07:24:53]CommunicateWithHost err = 0 [07:24:53]CheckOFDResponse [07:24:53]1017 (14) - 77093643461234 [07:24:53]1041 (16) - 0000000000875058 [07:24:53]1040 (4) - 103102 [07:24:53]1012 (4) - 13.08.2024 01:02 [07:24:53]1206 (1) - 0 [07:24:53]OFD Sender: Remove packet 103102 [07:24:53]ProducePacketName [07:24:53]name=ofd_packets/00103102 [07:24:53]NVStorageDeleteData [07:24:53]Write to MH i2c: 01 00 00 97 15 AC [07:24:53]Write i2c OK [07:24:53]MH_I2C_Read... [07:24:53]Read from MH i2c: 01 [07:24:53]MH_I2C_Read... [07:24:53]Read from MH i2c: 01 07 00 [07:24:53]MH_I2C_Read... [07:24:53]Read from MH i2c: 01 07 00 97 15 00 00 00 00 00 CD 0C 8C [07:24:53]RasterBufferAndPrint [07:24:53]line [07:24:53]line [07:24:53]line [07:24:53]line [07:24:53]line [07:24:53]written 0, free lines is 3285 [07:24:53]MH_Cut [07:24:53]Write to MH i2c: D1 01 00 9E 15 01 85 [07:24:53]Write i2c OK [07:24:53]MH_I2C_Read... [07:24:53]Read from MH i2c: D1 [07:24:53]MH_I2C_Read... [07:24:53]Read from MH i2c: D1 01 00 [07:24:53]MH_I2C_Read... [07:24:53]Read from MH i2c: D1 01 00 9E 15 00 84 [07:24:53]Write to MH i2c: 01 00 00 9F 15 B4 [07:24:53]Write i2c OK [07:24:53]MH_I2C_Read... [07:24:53]OFD Sender: No OFD packet to send [07:24:54]*** Cut start [07:24:54]*** Purtial cut [07:24:54]*** CUTSNS_PIN = 0 [07:24:54]*** Stage 1: CUTSNS_PIN = 1 [07:24:56]Read from MH i2c: 01 [07:24:56]MH_I2C_Read... [07:24:56]*** Stop cut motor [07:24:56]*** Cut end [07:24:56]Read from MH i2c: 01 07 00 [07:24:56]MH_I2C_Read... [07:24:56]Read from MH i2c: 01 07 00 9F 15 00 00 00 00 00 FF 0F C9 [07:24:56]process_action close_receipt done [07:24:56]requested_data is exist [07:24:56]produce_requested_data [07:24:56]requested_item fm.sn is exist - process it [07:24:56]wFMCommunicate request_size=4 [07:24:56]MH_SAM_APDU [07:24:56]CAPDU: 80 11 00 00 [07:24:56]Write to MH i2c: E2 08 00 A0 15 80 11 00 00 00 00 00 00 2F [07:24:56]Write i2c OK [07:24:56]MH_I2C_Read... [07:24:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:24:56]Read from MH i2c: E2 [07:24:56]MH_I2C_Read... [07:24:56]Read from MH i2c: E2 17 00 [07:24:56]MH_I2C_Read... [07:24:56]Read from MH i2c: E2 17 00 A0 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 83 [07:24:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [07:24:56]wFMCommunicate OK [07:24:56]requested_item fd.num is exist - process it [07:24:56]SAM_PROTO_GetFieldsCounters [07:24:56]wFMCommunicate request_size=4 [07:24:56]MH_SAM_APDU [07:24:56]CAPDU: 80 13 00 00 [07:24:56]Write to MH i2c: E2 08 00 A1 15 80 13 00 00 00 00 00 00 32 [07:24:56]Write i2c OK [07:24:56]MH_I2C_Read... [07:24:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:24:56]Read from MH i2c: E2 [07:24:56]MH_I2C_Read... [07:24:56]Read from MH i2c: E2 62 00 [07:24:56]MH_I2C_Read... [07:24:56]Read from MH i2c: E2 62 00 A1 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 BE 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [07:24:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 BE 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:24:56]wFMCommunicate OK [07:24:56]SAM_PROTO_GetFieldsCounters done [07:24:56]requested_item shift.num is exist - process it [07:24:56]requested_item shift.opened is exist - process it [07:24:56]req_shift_opened [07:24:56]FM_GetShiftState [07:24:56]SAM_PROTO_GetShiftState [07:24:56]wFMCommunicate request_size=4 [07:24:56]MH_SAM_APDU [07:24:56]CAPDU: 80 13 01 00 [07:24:56]Write to MH i2c: E2 08 00 A2 15 80 13 01 00 00 00 00 00 34 [07:24:56]Write i2c OK [07:24:56]MH_I2C_Read... [07:24:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:24:56]Read from MH i2c: E2 [07:24:56]MH_I2C_Read... [07:24:56]Read from MH i2c: E2 0E 00 [07:24:56]MH_I2C_Read... [07:24:56]Read from MH i2c: E2 0E 00 A2 15 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 52 [07:24:56]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [07:24:56]wFMCommunicate OK [07:24:56]SAM_PROTO_GetShiftState done [07:24:56]FM_GetShiftState done [07:24:56]req_shift_opened done [07:24:56]requested_item shift.open_date is exist - process it [07:24:56]req_shift_open_date [07:24:56]req_shift_open_date done [07:24:56]produce_requested_data done [07:24:56]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103102,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [07:24:56]process_action_free close_receipt [07:24:56]json_value_free [07:24:56]json_value_free done [07:24:56]process_json_proto returns [07:24:56]Send response to host [07:24:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103102,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [07:24:56]free response buf [07:24:56]execute_script done [07:24:56]execute_script returns [07:24:56]free content buf [07:24:56]Sock 9.Close socket [07:24:56]Sock 9.Thread stoped [07:24:58]OFD Sender: No OFD packet to send [07:25:03]OFD Sender: No OFD packet to send [07:25:08]OFD Sender: No OFD packet to send [07:25:13]OFD Sender: No OFD packet to send [07:25:18]OFD Sender: No OFD packet to send [07:25:23]OFD Sender: No OFD packet to send [07:25:28]OFD Sender: No OFD packet to send [07:25:33]OFD Sender: No OFD packet to send [07:25:38]OFD Sender: No OFD packet to send [07:25:43]OFD Sender: No OFD packet to send [07:25:48]OFD Sender: No OFD packet to send [07:25:53]OFD Sender: No OFD packet to send [07:25:58]OFD Sender: No OFD packet to send [07:26:03]OFD Sender: No OFD packet to send [07:26:08]OFD Sender: No OFD packet to send [07:26:13]OFD Sender: No OFD packet to send [07:26:18]OFD Sender: No OFD packet to send [07:26:23]OFD Sender: No OFD packet to send [07:26:28]OFD Sender: No OFD packet to send [07:26:33]OFD Sender: No OFD packet to send [07:26:38]OFD Sender: No OFD packet to send [07:26:43]OFD Sender: No OFD packet to send [07:26:48]OFD Sender: No OFD packet to send [07:26:53]OFD Sender: No OFD packet to send [07:26:58]OFD Sender: No OFD packet to send [07:27:03]OFD Sender: No OFD packet to send [07:27:08]OFD Sender: No OFD packet to send [07:27:13]OFD Sender: No OFD packet to send [07:27:18]OFD Sender: No OFD packet to send [07:27:23]OFD Sender: No OFD packet to send [07:27:28]OFD Sender: No OFD packet to send [07:27:33]OFD Sender: No OFD packet to send [07:27:38]OFD Sender: No OFD packet to send [07:27:43]OFD Sender: No OFD packet to send [07:27:48]OFD Sender: No OFD packet to send [07:27:53]OFD Sender: No OFD packet to send [07:27:58]OFD Sender: No OFD packet to send [07:28:03]OFD Sender: No OFD packet to send [07:28:08]OFD Sender: No OFD packet to send [07:28:13]OFD Sender: No OFD packet to send [07:28:18]OFD Sender: No OFD packet to send [07:28:23]OFD Sender: No OFD packet to send [07:28:28]OFD Sender: No OFD packet to send [07:28:33]OFD Sender: No OFD packet to send [07:28:38]OFD Sender: No OFD packet to send [07:28:43]OFD Sender: No OFD packet to send [07:28:48]OFD Sender: No OFD packet to send [07:28:53]OFD Sender: No OFD packet to send [07:28:58]OFD Sender: No OFD packet to send [07:29:03]OFD Sender: No OFD packet to send [07:29:08]OFD Sender: No OFD packet to send [07:29:13]OFD Sender: No OFD packet to send [07:29:18]OFD Sender: No OFD packet to send [07:29:23]OFD Sender: No OFD packet to send [07:29:28]OFD Sender: No OFD packet to send [07:29:33]OFD Sender: No OFD packet to send [07:29:38]OFD Sender: No OFD packet to send [07:29:43]OFD Sender: No OFD packet to send [07:29:48]OFD Sender: No OFD packet to send [07:29:53]OFD Sender: No OFD packet to send [07:29:58]OFD Sender: No OFD packet to send [07:30:03]OFD Sender: No OFD packet to send [07:30:08]OFD Sender: No OFD packet to send [07:30:13]OFD Sender: No OFD packet to send [07:30:18]OFD Sender: No OFD packet to send [07:30: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:19]OFD Sender: No OFD packet to send [07:42:24]OFD Sender: No OFD packet to send [07:42:29]OFD Sender: No OFD packet to send [07:42:34]OFD Sender: No OFD packet to send [07:42:39]OFD Sender: No OFD packet to send [07:42:44]OFD Sender: No OFD packet to send [07:42:49]OFD Sender: No OFD packet to send [07:42:54]OFD Sender: No OFD packet to send [07:42:59]OFD Sender: No OFD packet to send [07:43:04]OFD Sender: No OFD packet to send [07:43:09]OFD Sender: No OFD packet to send [07:43:14]OFD Sender: No OFD packet to send [07:43:19]OFD Sender: No OFD packet to send [07:43:24]OFD Sender: No OFD packet to send [07:43:29]OFD Sender: No OFD packet to send [07:43:34]OFD Sender: No OFD packet to send [07:43:39]OFD Sender: No OFD packet to send [07:43:44]OFD Sender: No OFD packet to send [07:43:49]OFD Sender: No OFD packet to send [07:43:54]OFD Sender: No OFD packet to send [07:43:59]OFD Sender: No OFD packet to send [07:44:04]OFD Sender: No OFD packet to send [07:44:09]OFD Sender: No OFD packet to send [07:44:14]OFD Sender: No OFD packet to send [07:44:19]OFD Sender: No OFD packet to send [07:44:24]OFD Sender: No OFD packet to send [07:44:29]OFD Sender: No OFD packet to send [07:44:34]OFD Sender: No OFD packet to send [07:44:39]OFD Sender: No OFD packet to send [07:44:44]OFD Sender: No OFD packet to send [07:44:49]OFD Sender: No OFD packet to send [07:44:54]OFD Sender: No OFD packet to send [07:44:59]OFD Sender: No OFD packet to send [07:45:04]OFD Sender: No OFD packet to send [07:45:09]OFD Sender: No OFD packet to send [07:45:14]OFD Sender: No OFD packet to send [07:45:19]OFD Sender: No OFD packet to send [07:45:24]OFD Sender: No OFD packet to send [07:45:29]OFD Sender: No OFD packet to send [07:45:34]OFD Sender: No OFD packet to send [07:45:39]OFD Sender: No OFD packet to send [07:45:44]OFD Sender: No OFD packet to send [07:45:49]OFD Sender: No OFD packet to send [07:45:54]OFD Sender: No OFD packet to send [07:45:59]OFD Sender: No OFD packet to send [07:46:04]OFD Sender: No OFD packet to send [07:46:09]OFD Sender: No OFD packet to send [07:46:14]OFD Sender: No OFD packet to send [07:46:19]OFD Sender: No OFD packet to send [07:46:24]OFD Sender: No OFD packet to send [07:46:29]OFD Sender: No OFD packet to send [07:46:34]OFD Sender: No OFD packet to send [07:46:39]OFD Sender: No OFD packet to send [07:46:44]OFD Sender: No OFD packet to send [07:46:49]OFD Sender: No OFD packet to send [07:46:54]OFD Sender: No OFD packet to send [07:46:59]OFD Sender: No OFD packet to send [07:47:04]OFD Sender: No OFD packet to send [07:47:09]OFD Sender: No OFD packet to send [07:47:14]OFD Sender: No OFD packet to send [07:47:19]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:32]accept exits with 7 [07:50:32]New connection [07:50:32]New thread 3066707300 created [07:50:32]Thread 3066563940 joined [07:50:32]Waiting for new connection... [07:50:32] Sock 7.Parse request [07:50:32]Sock 7.Check first char [07:50:32]Sock 7.First char is OK [07:50:32]request: POST /json_proto HTTP/1.0 [07:50:32]Method: POST [07:50:32]URL: /json_proto [07:50:32]Method is POST - this is cgi request [07:50:32]url: /json_proto [07:50:32]query_string will be loaded in cgi processing [07:50:32]execute_cgi json_proto POST (null) [07:50:32]execute_cgi path=json_proto method=POST [07:50:32]POST find Content-Length [07:50:32]Host: 172.17.58.3:8080 [07:50:32]Content-Length: 676 [07:50:32]Content-Type: application/json [07:50:32] [07:50:32]POST finish read [07:50:32]Found Content-Length = 676 [07:50:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:50:32]execute_script... [07:50: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)160734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:50:32]POST & json_proto [07:50:32]process_json_proto [07:50:32]json parsed OK: [07:50:32]protocol is kg_v1.0 [07:50:32]action value=close_receipt [07:50:32]process_action close_receipt [07:50:32]cmd_close_receipt [07:50:32]MH_GetDate [07:50:32]Write to MH i2c: F0 00 00 A3 15 A7 [07:50:32]Write i2c OK [07:50:32]MH_I2C_Read... [07:50:32]Read from MH i2c: F0 [07:50:32]MH_I2C_Read... [07:50:32]Read from MH i2c: F0 09 00 [07:50:32]MH_I2C_Read... [07:50:32]Read from MH i2c: F0 09 00 A3 15 00 4B 10 BB 66 DC E4 6D 64 BD [07:50:32]GetLastDocTimeStamp 1723533894 [07:50:32]current date 1723535435 [07:50:32]FM_GetShiftState [07:50:32]SAM_PROTO_GetShiftState [07:50:32]wFMCommunicate request_size=4 [07:50:32]MH_SAM_APDU [07:50:32]CAPDU: 80 13 01 00 [07:50:32]Write to MH i2c: E2 08 00 A4 15 80 13 01 00 00 00 00 00 36 [07:50:32]Write i2c OK [07:50:32]MH_I2C_Read... [07:50:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:50:32]Read from MH i2c: E2 [07:50:32]MH_I2C_Read... [07:50:32]Read from MH i2c: E2 0E 00 [07:50:32]MH_I2C_Read... [07:50:32]Read from MH i2c: E2 0E 00 A4 15 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 54 [07:50:32]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [07:50:32]wFMCommunicate OK [07:50:32]SAM_PROTO_GetShiftState done [07:50:32]FM_GetShiftState done [07:50:32]opened in 1723506770 [07:50:32]opened+sec_in_day 1723593170 [07:50:32]quantity*price = 50018 [07:50:32]sum+1 = 50019 [07:50:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 14 13.08.2024 07:50 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103103 ФПД: 3838201091314 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T075035&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103103&fm=3838201091314&tin=02508201610067®Number=0000000000092718&sum=50000 [07:50:33]StoreToDocumentArchive [07:50:33]shift 464 fd 103103 [07:50:33]save to /storage/0464/doc_00103103 [07:50:33]save last doc name /storage/0464/doc_00103103 to /storage/kkm_last_doc_name [07:50:33]save OK [07:50:33]Clear old archive folders... [07:50:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:50:33]tlvbuf is 0025E450 [07:50:33]SAM_PROTO_ClearQueue [07:50:33]wFMCommunicate request_size=4 [07:50:33]MH_SAM_APDU [07:50:33]CAPDU: 80 09 00 00 [07:50:33]Write to MH i2c: E2 08 00 B1 15 80 09 00 00 00 00 00 00 38 [07:50:33]Write i2c OK [07:50:33]MH_I2C_Read... [07:50:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:50:33]Read from MH i2c: E2 [07:50:33]MH_I2C_Read... [07:50:33]Read from MH i2c: E2 03 00 [07:50:33]MH_I2C_Read... [07:50:33]Read from MH i2c: E2 03 00 B1 15 00 90 00 3A [07:50:33]RAPDU: 90 00 [07:50:33]wFMCommunicate OK [07:50:33]SAM_PROTO_ClearQueue done [07:50:33]KKMCreateOFDPacket [07:50:33]OFDProtocolAddRootSTLVToBuf [07:50:33]FM_MakeSignedData [07:50:33]FM_MakeSignedData [07:50:33]SAM_PROTO_SignData [07:50:33]wFMCommunicate request_size=4 [07:50:33]MH_SAM_APDU [07:50:33]CAPDU: 80 0D 01 02 [07:50:33]Write to MH i2c: E2 08 00 B2 15 80 0D 01 02 00 00 00 00 40 [07:50:33]Write i2c OK [07:50:33]MH_I2C_Read... [07:50:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:50:33]Read from MH i2c: E2 [07:50:33]MH_I2C_Read... [07:50:33]Read from MH i2c: E2 03 00 [07:50:33]MH_I2C_Read... [07:50:33]Read from MH i2c: E2 03 00 B2 15 00 90 00 3B [07:50:33]RAPDU: 90 00 [07:50:33]wFMCommunicate OK [07:50:33]wFMCommunicate request_size=255 [07:50:33]MH_SAM_APDU [07:50: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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 4B 10 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 BF 92 01 00 35 04 06 00 03 [07:50:33]Write to MH i2c: E2 02 01 B3 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 4B 10 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 BF 92 01 00 35 04 06 00 03 00 00 72 [07:50:33]Write i2c OK [07:50:33]MH_I2C_Read... [07:50:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:50:33]Read from MH i2c: E2 [07:50:33]MH_I2C_Read... [07:50:33]Read from MH i2c: E2 03 00 [07:50:33]MH_I2C_Read... [07:50:33]Read from MH i2c: E2 03 00 B3 15 00 90 00 3C [07:50:33]RAPDU: 90 00 [07:50:33]wFMCommunicate OK [07:50:33]wFMCommunicate request_size=10 [07:50:33]MH_SAM_APDU [07:50:33]CAPDU: 80 0D 02 02 05 7D A6 9C D4 F2 [07:50:33]Write to MH i2c: E2 0D 00 B4 15 80 0D 02 02 05 00 7D A6 9C D4 F2 00 00 D2 [07:50:33]Write i2c OK [07:50:33]MH_I2C_Read... [07:50:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:50:33]Read from MH i2c: E2 [07:50:33]MH_I2C_Read... [07:50:33]Read from MH i2c: E2 03 00 [07:50:33]MH_I2C_Read... [07:50:33]Read from MH i2c: E2 03 00 B4 15 00 90 00 3D [07:50:33]RAPDU: 90 00 [07:50:33]wFMCommunicate OK [07:50:33]wFMCommunicate request_size=4 [07:50:33]MH_SAM_APDU [07:50:33]CAPDU: 80 0D 03 02 [07:50:33]Write to MH i2c: E2 08 00 B5 15 80 0D 03 02 00 00 00 00 45 [07:50:33]Write i2c OK [07:50:33]MH_I2C_Read... [07:50:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:50:33]Read from MH i2c: E2 [07:50:33]MH_I2C_Read... [07:50:33]Read from MH i2c: E2 0B 00 [07:50:33]MH_I2C_Read... [07:50:33]Read from MH i2c: E2 0B 00 B5 15 00 5D FF 9D 8B 8E 50 7A 33 90 00 55 [07:50:33]RAPDU: 5D FF 9D 8B 8E 50 7A 33 90 00 [07:50:33]wFMCommunicate OK [07:50:33]SAM_PROTO_SignData done [07:50:33]FM_MakeSignedData done [07:50:33]CreateOFDProtocolMessage [07:50:33]wFMCommunicate request_size=4 [07:50:33]MH_SAM_APDU [07:50:33]CAPDU: 80 11 00 00 [07:50:33]Write to MH i2c: E2 08 00 B6 15 80 11 00 00 00 00 00 00 45 [07:50:33]Write i2c OK [07:50:33]MH_I2C_Read... [07:50:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:50:33]Read from MH i2c: E2 [07:50:33]MH_I2C_Read... [07:50:33]Read from MH i2c: E2 17 00 [07:50:33]MH_I2C_Read... [07:50:33]Read from MH i2c: E2 17 00 B6 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 99 [07:50:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [07:50:33]wFMCommunicate OK [07:50:33]CreateOFDProtocolMessage done [07:50:33]OFDSenderStorePacket 103103 [07:50:33]StoreOFDPacket docnum=103103 [07:50:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 B2 04 07 01 59 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 4B 10 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 BF 92 01 00 35 04 06 00 03 7D A6 9C D4 F2 5D FF 9D 8B 8E 50 7A 33 [07:50:33]CheckFolder [07:50:33]dirname=/storage/ofd_packets [07:50:33]CheckFolder done [07:50:33]ProducePacketName [07:50:33]name=ofd_packets/00103103 [07:50:33]NVStorageSaveData ofd_packets/00103103 [07:50:33]File name is /storage/ofd_packets/00103103 [07:50:33]Write 301 bytes [07:50:33]NVStorageSaveData done [07:50:33]OFDSenderStorePacket done [07:50:33]KKMCreateOFDPacket done [07:50:33]NVStorageSaveData kkm_last_timestamp [07:50:33]File name is /storage/kkm_last_timestamp [07:50:33]Write 4 bytes [07:50:33]NVStorageSaveData done [07:50:33]ExternCall_PrintAddStr [07:50:33]wPrintStart [07:50:33]Write to MH i2c: 01 00 00 B7 15 CC [07:50:33]Write i2c OK [07:50:33]MH_I2C_Read... [07:50:33]Read from MH i2c: 01 [07:50:33]MH_I2C_Read... [07:50:33]Read from MH i2c: 01 07 00 [07:50:33]MH_I2C_Read... [07:50:33]Read from MH i2c: 01 07 00 B7 15 00 00 00 00 00 FF 0F E1 [07:50:33]RasterBufferAndPrint [07:50:33]line Счет N : (1)160734 [07:50:33]line ИНН: 02508201610067 [07:50:33]line Контрольно-Кассовый Чек [07:50:33]line ПРОДАЖА [07:50:33]line ТРК (МРК, ГНК) : 3 [07:50:33]line Товар: 2710124130 [07:50:33]line Аи-92-К-5 [07:50:33]line 7.590 * 65.90 [07:50:33]line = 500.18 [07:50:33]line НДС 12% НСП 1% [07:50:33]line > о реализуемом товаре [07:50:33]line ОКРУГЛЕНИЕ: -0.18 [07:50:33]line ИТОГО: 500.00 [07:50:33]line Внесено: 500.00 [07:50:33]line СДАЧА: 0.00 [07:50:33]line НСП 1% : 4.43 [07:50:33]line НДС 12% : 53.12 [07:50:33]line Наличными: 500.00 [07:50:33]line Безнал.: 0.00 [07:50:33]line Место: АЗС № 38 "Партнер Нефть" [07:50:33]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [07:50:33]line СНО: Общий режим [07:50:33]line Чек 14 13.08.2024 07:50 [07:50:33]line Смена: 464 ФФД: 1.0 [07:50:33]line ЗНМ: 0300000126 [07:50:33]line РНМ: 0000000000092718 [07:50:33]line Версия ККМ: 001 [07:50:33]line ФМ: 0000000000875058 [07:50:33]line ФД: 103103 [07:50:33]line ФПД: 3838201091314 [07:50:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T075035&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103103&fm=3838201091314&tin=02508201610067®Number=0000000000092718&sum=50000 [07:50:34]OFD Sender: Processing packet 103103 [packets to send 69, broken 68] [07:50:34]ProducePacketName [07:50:34]name=ofd_packets/00103103 [07:50:34]OFD Sender: To server: pG, [07:50:34]CommunicateWithHost lk.salyk.kg:30040 [07:50:34]ConnectInit lk.salyk.kg [07:50:34]written 0, free lines is 4095 [07:50:34]Connected sock=10 [07:50:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 B2 04 07 01 59 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 4B 10 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 BF 92 01 00 35 04 06 00 03 7D A6 9C D4 F2 5D FF 9D 8B 8E 50 7A 33 [07:50:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 4C E4 47 00 DE 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 35 30 35 38 10 04 04 00 BF 92 01 00 F4 03 04 00 BF B6 BA 66 B6 04 01 00 00 0E 1C 82 E2 30 50 05 5E [07:50:34]CommunicateWithHost err = 0 [07:50:34]CheckOFDResponse [07:50:34]1017 (14) - 77093643461234 [07:50:34]1041 (16) - 0000000000875058 [07:50:34]1040 (4) - 103103 [07:50:34]1012 (4) - 13.08.2024 01:28 [07:50:34]1206 (1) - 0 [07:50:34]OFD Sender: Remove packet 103103 [07:50:34]ProducePacketName [07:50:34]name=ofd_packets/00103103 [07:50:34]NVStorageDeleteData [07:50:34]Write to MH i2c: 01 00 00 E2 15 F7 [07:50:34]Write i2c OK [07:50:34]MH_I2C_Read... [07:50:34]Read from MH i2c: 01 [07:50:34]MH_I2C_Read... [07:50:34]Read from MH i2c: 01 07 00 [07:50:34]MH_I2C_Read... [07:50:34]Read from MH i2c: 01 07 00 E2 15 00 00 00 00 00 D1 0C DB [07:50:34]RasterBufferAndPrint [07:50:34]line [07:50:34]line [07:50:34]line [07:50:34]line [07:50:34]line [07:50:34]written 0, free lines is 3287 [07:50:34]MH_Cut [07:50:34]Write to MH i2c: D1 01 00 E9 15 01 D0 [07:50:34]Write i2c OK [07:50:34]MH_I2C_Read... [07:50:34]Read from MH i2c: D1 [07:50:34]MH_I2C_Read... [07:50:34]Read from MH i2c: D1 01 00 [07:50:34]MH_I2C_Read... [07:50:34]Read from MH i2c: D1 01 00 E9 15 00 CF [07:50:34]Write to MH i2c: 01 00 00 EA 15 FF [07:50:34]Write i2c OK [07:50:34]MH_I2C_Read... [07:50:34]OFD Sender: No OFD packet to send [07:50:35]*** Cut start [07:50:35]*** Purtial cut [07:50:35]*** Stage 1: CUTSNS_PIN = 1 [07:50:35]Read from MH i2c: 01 [07:50:35]MH_I2C_Read... [07:50:35]*** Stop cut motor [07:50:35]*** Cut end [07:50:35]Read from MH i2c: 01 07 00 [07:50:35]MH_I2C_Read... [07:50:35]Read from MH i2c: 01 07 00 EA 15 00 00 00 00 00 FF 0F 14 [07:50:35]process_action close_receipt done [07:50:35]requested_data is exist [07:50:35]produce_requested_data [07:50:35]requested_item fm.sn is exist - process it [07:50:35]wFMCommunicate request_size=4 [07:50:35]MH_SAM_APDU [07:50:35]CAPDU: 80 11 00 00 [07:50:35]Write to MH i2c: E2 08 00 EB 15 80 11 00 00 00 00 00 00 7A [07:50:35]Write i2c OK [07:50:35]MH_I2C_Read... [07:50:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:50:35]Read from MH i2c: E2 [07:50:35]MH_I2C_Read... [07:50:35]Read from MH i2c: E2 17 00 [07:50:35]MH_I2C_Read... [07:50:35]Read from MH i2c: E2 17 00 EB 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 CE [07:50:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [07:50:35]wFMCommunicate OK [07:50:35]requested_item fd.num is exist - process it [07:50:35]SAM_PROTO_GetFieldsCounters [07:50:35]wFMCommunicate request_size=4 [07:50:35]MH_SAM_APDU [07:50:35]CAPDU: 80 13 00 00 [07:50:35]Write to MH i2c: E2 08 00 EC 15 80 13 00 00 00 00 00 00 7D [07:50:35]Write i2c OK [07:50:35]MH_I2C_Read... [07:50:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:50:35]Read from MH i2c: E2 [07:50:35]MH_I2C_Read... [07:50:35]Read from MH i2c: E2 62 00 [07:50:35]MH_I2C_Read... [07:50:35]Read from MH i2c: E2 62 00 EC 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 BF 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [07:50:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 BF 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:50:35]wFMCommunicate OK [07:50:35]SAM_PROTO_GetFieldsCounters done [07:50:35]requested_item shift.num is exist - process it [07:50:35]requested_item shift.opened is exist - process it [07:50:35]req_shift_opened [07:50:35]FM_GetShiftState [07:50:35]SAM_PROTO_GetShiftState [07:50:35]wFMCommunicate request_size=4 [07:50:35]MH_SAM_APDU [07:50:35]CAPDU: 80 13 01 00 [07:50:35]Write to MH i2c: E2 08 00 ED 15 80 13 01 00 00 00 00 00 7F [07:50:35]Write i2c OK [07:50:35]MH_I2C_Read... [07:50:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:50:35]Read from MH i2c: E2 [07:50:35]MH_I2C_Read... [07:50:35]Read from MH i2c: E2 0E 00 [07:50:35]MH_I2C_Read... [07:50:35]Read from MH i2c: E2 0E 00 ED 15 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 9D [07:50:35]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [07:50:35]wFMCommunicate OK [07:50:35]SAM_PROTO_GetShiftState done [07:50:35]FM_GetShiftState done [07:50:35]req_shift_opened done [07:50:35]requested_item shift.open_date is exist - process it [07:50:35]req_shift_open_date [07:50:35]req_shift_open_date done [07:50:35]produce_requested_data done [07:50:35]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103103,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [07:50:35]process_action_free close_receipt [07:50:35]json_value_free [07:50:35]json_value_free done [07:50:35]process_json_proto returns [07:50:35]Send response to host [07:50:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103103,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [07:50:35]free response buf [07:50:35]execute_script done [07:50:35]execute_script returns [07:50:35]free content buf [07:50:35]Sock 7.Close socket [07:50:35]Sock 7.Thread stoped [07:50:39]OFD Sender: No OFD packet to send [07:50:44]OFD Sender: No OFD packet to send [07:50:49]OFD Sender: No OFD packet to send [07:50:54]OFD Sender: No OFD packet to send [07:50:59]OFD Sender: No OFD packet to send [07:51:04]OFD Sender: No OFD packet to send [07:51:09]OFD Sender: No OFD packet to send [07:51:14]OFD Sender: No OFD packet to send [07:51:19]OFD Sender: No OFD packet to send [07:51:24]OFD Sender: No OFD packet to send [07:51:29]OFD Sender: No OFD packet to send [07:51:34]OFD Sender: No OFD packet to send [07:51:39]OFD Sender: No OFD packet to send [07:51:40]accept exits with 9 [07:51:40]New connection [07:51:40]New thread 3066563940 created [07:51:40]Thread 3066707300 joined [07:51:40]Waiting for new connection... [07:51:40] Sock 9.Parse request [07:51:40]Sock 9.Check first char [07:51:40]Sock 9.First char is OK [07:51:40]request: POST /json_proto HTTP/1.0 [07:51:40]Method: POST [07:51:40]URL: /json_proto [07:51:40]Method is POST - this is cgi request [07:51:40]url: /json_proto [07:51:40]query_string will be loaded in cgi processing [07:51:40]execute_cgi json_proto POST (null) [07:51:40]execute_cgi path=json_proto method=POST [07:51:40]POST find Content-Length [07:51:40]Host: 172.17.58.3:8080 [07:51:40]Content-Length: 678 [07:51:40]Content-Type: application/json [07:51:40] [07:51:40]POST finish read [07:51:40]Found Content-Length = 678 [07:51:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160735", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 20.330, "sum" : 1500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:51:40]execute_script... [07:51: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)160735", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 20.330, "sum" : 1500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:51:40]POST & json_proto [07:51:40]process_json_proto [07:51:40]json parsed OK: [07:51:40]protocol is kg_v1.0 [07:51:40]action value=close_receipt [07:51:40]process_action close_receipt [07:51:40]cmd_close_receipt [07:51:40]MH_GetDate [07:51:40]Write to MH i2c: F0 00 00 EE 15 F2 [07:51:40]Write i2c OK [07:51:40]MH_I2C_Read... [07:51:40]Read from MH i2c: F0 [07:51:40]MH_I2C_Read... [07:51:40]Read from MH i2c: F0 09 00 [07:51:40]MH_I2C_Read... [07:51:40]Read from MH i2c: F0 09 00 EE 15 00 8F 10 BB 66 DC E4 6D 64 4C [07:51:40]GetLastDocTimeStamp 1723535435 [07:51:40]current date 1723535503 [07:51:40]FM_GetShiftState [07:51:40]SAM_PROTO_GetShiftState [07:51:40]wFMCommunicate request_size=4 [07:51:40]MH_SAM_APDU [07:51:40]CAPDU: 80 13 01 00 [07:51:40]Write to MH i2c: E2 08 00 EF 15 80 13 01 00 00 00 00 00 81 [07:51:40]Write i2c OK [07:51:40]MH_I2C_Read... [07:51:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:51:40]Read from MH i2c: E2 [07:51:40]MH_I2C_Read... [07:51:40]Read from MH i2c: E2 0E 00 [07:51:40]MH_I2C_Read... [07:51:40]Read from MH i2c: E2 0E 00 EF 15 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 9F [07:51:40]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [07:51:40]wFMCommunicate OK [07:51:40]SAM_PROTO_GetShiftState done [07:51:40]FM_GetShiftState done [07:51:40]opened in 1723506770 [07:51:40]opened+sec_in_day 1723593170 [07:51:40]quantity*price = 150035 [07:51:40]sum+1 = 150036 [07:51:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 15 13.08.2024 07:51 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103104 ФПД: 32381124536661 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T075143&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103104&fm=32381124536661&tin=02508201610067®Number=0000000000092718&sum=150000 [07:51:41]StoreToDocumentArchive [07:51:41]shift 464 fd 103104 [07:51:41]save to /storage/0464/doc_00103104 [07:51:41]save last doc name /storage/0464/doc_00103104 to /storage/kkm_last_doc_name [07:51:41]save OK [07:51:41]Clear old archive folders... [07:51:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:51:41]tlvbuf is 0025EC90 [07:51:41]SAM_PROTO_ClearQueue [07:51:41]wFMCommunicate request_size=4 [07:51:41]MH_SAM_APDU [07:51:41]CAPDU: 80 09 00 00 [07:51:41]Write to MH i2c: E2 08 00 FC 15 80 09 00 00 00 00 00 00 83 [07:51:41]Write i2c OK [07:51:41]MH_I2C_Read... [07:51:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:51:41]Read from MH i2c: E2 [07:51:41]MH_I2C_Read... [07:51:41]Read from MH i2c: E2 03 00 [07:51:41]MH_I2C_Read... [07:51:41]Read from MH i2c: E2 03 00 FC 15 00 90 00 85 [07:51:41]RAPDU: 90 00 [07:51:41]wFMCommunicate OK [07:51:41]SAM_PROTO_ClearQueue done [07:51:41]KKMCreateOFDPacket [07:51:41]OFDProtocolAddRootSTLVToBuf [07:51:41]FM_MakeSignedData [07:51:41]FM_MakeSignedData [07:51:41]SAM_PROTO_SignData [07:51:41]wFMCommunicate request_size=4 [07:51:41]MH_SAM_APDU [07:51:41]CAPDU: 80 0D 01 02 [07:51:41]Write to MH i2c: E2 08 00 FD 15 80 0D 01 02 00 00 00 00 8B [07:51:41]Write i2c OK [07:51:41]MH_I2C_Read... [07:51:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:51:41]Read from MH i2c: E2 [07:51:41]MH_I2C_Read... [07:51:41]Read from MH i2c: E2 03 00 [07:51:41]MH_I2C_Read... [07:51:41]Read from MH i2c: E2 03 00 FD 15 00 90 00 86 [07:51:41]RAPDU: 90 00 [07:51:41]wFMCommunicate OK [07:51:41]wFMCommunicate request_size=255 [07:51:41]MH_SAM_APDU [07:51:41]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 6A 4F 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 13 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 0F 00 00 00 F4 03 04 00 8F 10 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 C0 92 01 00 35 04 06 00 1D 73 51 6C [07:51:41]Write to MH i2c: E2 02 01 FE 15 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6A 4F 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 13 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 0F 00 00 00 F4 03 04 00 8F 10 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 C0 92 01 00 35 04 06 00 1D 73 51 6C 00 00 59 [07:51:41]Write i2c OK [07:51:41]MH_I2C_Read... [07:51:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:51:41]Read from MH i2c: E2 [07:51:41]MH_I2C_Read... [07:51:41]Read from MH i2c: E2 03 00 [07:51:41]MH_I2C_Read... [07:51:41]Read from MH i2c: E2 03 00 FE 15 00 90 00 87 [07:51:41]RAPDU: 90 00 [07:51:41]wFMCommunicate OK [07:51:41]wFMCommunicate request_size=7 [07:51:41]MH_SAM_APDU [07:51:41]CAPDU: 80 0D 02 02 02 E9 55 [07:51:41]Write to MH i2c: E2 0A 00 FF 15 80 0D 02 02 02 00 E9 55 00 00 D0 [07:51:41]Write i2c OK [07:51:41]MH_I2C_Read... [07:51:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:51:41]Read from MH i2c: E2 [07:51:41]MH_I2C_Read... [07:51:41]Read from MH i2c: E2 03 00 [07:51:41]MH_I2C_Read... [07:51:41]Read from MH i2c: E2 03 00 FF 15 00 90 00 88 [07:51:41]RAPDU: 90 00 [07:51:41]wFMCommunicate OK [07:51:41]wFMCommunicate request_size=4 [07:51:41]MH_SAM_APDU [07:51:41]CAPDU: 80 0D 03 02 [07:51:41]Write to MH i2c: E2 08 00 00 16 80 0D 03 02 00 00 00 00 91 [07:51:41]Write i2c OK [07:51:41]MH_I2C_Read... [07:51:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:51:41]Read from MH i2c: E2 [07:51:41]MH_I2C_Read... [07:51:41]Read from MH i2c: E2 0B 00 [07:51:41]MH_I2C_Read... [07:51:41]Read from MH i2c: E2 0B 00 00 16 00 9F D6 CF 32 7F C1 57 E9 90 00 88 [07:51:41]RAPDU: 9F D6 CF 32 7F C1 57 E9 90 00 [07:51:41]wFMCommunicate OK [07:51:41]SAM_PROTO_SignData done [07:51:41]FM_MakeSignedData done [07:51:41]CreateOFDProtocolMessage [07:51:41]wFMCommunicate request_size=4 [07:51:41]MH_SAM_APDU [07:51:41]CAPDU: 80 11 00 00 [07:51:41]Write to MH i2c: E2 08 00 01 16 80 11 00 00 00 00 00 00 91 [07:51:41]Write i2c OK [07:51:41]MH_I2C_Read... [07:51:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:51:41]Read from MH i2c: E2 [07:51:41]MH_I2C_Read... [07:51:41]Read from MH i2c: E2 17 00 [07:51:41]MH_I2C_Read... [07:51:41]Read from MH i2c: E2 17 00 01 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 E5 [07:51:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [07:51:41]wFMCommunicate OK [07:51:41]CreateOFDProtocolMessage done [07:51:41]OFDSenderStorePacket 103104 [07:51:41]StoreOFDPacket docnum=103104 [07:51:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 7B 2A 04 01 35 02 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6A 4F 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 13 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 0F 00 00 00 F4 03 04 00 8F 10 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 C0 92 01 00 35 04 06 00 1D 73 51 6C E9 55 9F D6 CF 32 7F C1 57 E9 [07:51:41]CheckFolder [07:51:41]dirname=/storage/ofd_packets [07:51:41]CheckFolder done [07:51:41]ProducePacketName [07:51:41]name=ofd_packets/00103104 [07:51:41]NVStorageSaveData ofd_packets/00103104 [07:51:41]File name is /storage/ofd_packets/00103104 [07:51:41]Write 298 bytes [07:51:41]NVStorageSaveData done [07:51:41]OFDSenderStorePacket done [07:51:41]KKMCreateOFDPacket done [07:51:41]NVStorageSaveData kkm_last_timestamp [07:51:41]File name is /storage/kkm_last_timestamp [07:51:41]Write 4 bytes [07:51:41]NVStorageSaveData done [07:51:41]ExternCall_PrintAddStr [07:51:41]wPrintStart [07:51:41]Write to MH i2c: 01 00 00 02 16 18 [07:51:41]Write i2c OK [07:51:41]MH_I2C_Read... [07:51:41]Read from MH i2c: 01 [07:51:41]MH_I2C_Read... [07:51:41]Read from MH i2c: 01 07 00 [07:51:41]MH_I2C_Read... [07:51:41]Read from MH i2c: 01 07 00 02 16 00 00 00 00 00 FF 0F 2D [07:51:41]RasterBufferAndPrint [07:51:41]line Счет N : (1)160735 [07:51:41]line ИНН: 02508201610067 [07:51:41]line Контрольно-Кассовый Чек [07:51:41]line ПРОДАЖА [07:51:41]line ТРК (МРК, ГНК) : 5 [07:51:41]line Товар: 2710194210 [07:51:41]line ДТ-К-5 [07:51:41]line 20.330 * 73.80 [07:51:41]line = 1500.35 [07:51:41]line НДС 12% НСП 1% [07:51:41]line > о реализуемом товаре [07:51:41]line ОКРУГЛЕНИЕ: -0.35 [07:51:41]line ИТОГО: 1500.00 [07:51:41]line Внесено: 1500.00 [07:51:41]line СДАЧА: 0.00 [07:51:41]line НСП 1% : 13.28 [07:51:41]line НДС 12% : 159.33 [07:51:41]line Наличными: 1500.00 [07:51:41]line Безнал.: 0.00 [07:51:41]line Место: АЗС № 38 "Партнер Нефть" [07:51:41]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [07:51:41]line СНО: Общий режим [07:51:41]line Чек 15 13.08.2024 07:51 [07:51:41]line Смена: 464 ФФД: 1.0 [07:51:41]line ЗНМ: 0300000126 [07:51:41]line РНМ: 0000000000092718 [07:51:41]line Версия ККМ: 001 [07:51:41]line ФМ: 0000000000875058 [07:51:41]line ФД: 103104 [07:51:41]line ФПД: 32381124536661 [07:51:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T075143&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103104&fm=32381124536661&tin=02508201610067®Number=0000000000092718&sum=150000 [07:51:42]OFD Sender: Processing packet 103104 [packets to send 69, broken 68] [07:51:42]ProducePacketName [07:51:42]name=ofd_packets/00103104 [07:51:42]OFD Sender: To server: pG, [07:51:42]CommunicateWithHost lk.salyk.kg:30040 [07:51:42]ConnectInit lk.salyk.kg [07:51:42]written 0, free lines is 4095 [07:51:42]Connected sock=7 [07:51:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 7B 2A 04 01 35 02 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6A 4F 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 13 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 0F 00 00 00 F4 03 04 00 8F 10 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 C0 92 01 00 35 04 06 00 1D 73 51 6C E9 55 9F D6 CF 32 7F C1 57 E9 [07:51:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 64 1B 47 00 3F B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 C0 92 01 00 F4 03 04 00 03 B7 BA 66 B6 04 01 00 00 93 93 A9 68 A1 D4 F7 5C [07:51:42]CommunicateWithHost err = 0 [07:51:42]CheckOFDResponse [07:51:42]1017 (14) - 77093643461234 [07:51:42]1041 (16) - 0000000000875058 [07:51:42]1040 (4) - 103104 [07:51:42]1012 (4) - 13.08.2024 01:29 [07:51:42]1206 (1) - 0 [07:51:42]OFD Sender: Remove packet 103104 [07:51:42]ProducePacketName [07:51:42]name=ofd_packets/00103104 [07:51:42]NVStorageDeleteData [07:51:42]Write to MH i2c: 01 00 00 2D 16 43 [07:51:42]Write i2c OK [07:51:42]MH_I2C_Read... [07:51:42]Read from MH i2c: 01 [07:51:42]MH_I2C_Read... [07:51:42]Read from MH i2c: 01 07 00 [07:51:42]MH_I2C_Read... [07:51:42]Read from MH i2c: 01 07 00 2D 16 00 00 00 00 00 D7 0C 2D [07:51:42]RasterBufferAndPrint [07:51:42]line [07:51:42]line [07:51:42]line [07:51:42]line [07:51:42]line [07:51:42]written 0, free lines is 3295 [07:51:42]MH_Cut [07:51:42]Write to MH i2c: D1 01 00 34 16 01 1C [07:51:42]Write i2c OK [07:51:42]MH_I2C_Read... [07:51:42]Read from MH i2c: D1 [07:51:42]MH_I2C_Read... [07:51:42]Read from MH i2c: D1 01 00 [07:51:42]MH_I2C_Read... [07:51:42]Read from MH i2c: D1 01 00 34 16 00 1B [07:51:42]Write to MH i2c: 01 00 00 35 16 4B [07:51:42]Write i2c OK [07:51:42]MH_I2C_Read... [07:51:42]OFD Sender: No OFD packet to send [07:51:43]*** Cut start [07:51:43]*** Purtial cut [07:51:43]*** CUTSNS_PIN = 0 [07:51:43]*** Stage 1: CUTSNS_PIN = 1 [07:51:45]Read from MH i2c: 01 [07:51:45]MH_I2C_Read... [07:51:45]*** Stop cut motor [07:51:45]*** Cut end [07:51:45]Read from MH i2c: 01 07 00 [07:51:45]MH_I2C_Read... [07:51:45]Read from MH i2c: 01 07 00 35 16 00 00 00 00 00 FF 0F 60 [07:51:45]process_action close_receipt done [07:51:45]requested_data is exist [07:51:45]produce_requested_data [07:51:45]requested_item fm.sn is exist - process it [07:51:45]wFMCommunicate request_size=4 [07:51:45]MH_SAM_APDU [07:51:45]CAPDU: 80 11 00 00 [07:51:45]Write to MH i2c: E2 08 00 36 16 80 11 00 00 00 00 00 00 C6 [07:51:45]Write i2c OK [07:51:45]MH_I2C_Read... [07:51:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:51:45]Read from MH i2c: E2 [07:51:45]MH_I2C_Read... [07:51:45]Read from MH i2c: E2 17 00 [07:51:45]MH_I2C_Read... [07:51:45]Read from MH i2c: E2 17 00 36 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 1A [07:51:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [07:51:45]wFMCommunicate OK [07:51:45]requested_item fd.num is exist - process it [07:51:45]SAM_PROTO_GetFieldsCounters [07:51:45]wFMCommunicate request_size=4 [07:51:45]MH_SAM_APDU [07:51:45]CAPDU: 80 13 00 00 [07:51:45]Write to MH i2c: E2 08 00 37 16 80 13 00 00 00 00 00 00 C9 [07:51:45]Write i2c OK [07:51:45]MH_I2C_Read... [07:51:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:51:45]Read from MH i2c: E2 [07:51:45]MH_I2C_Read... [07:51:45]Read from MH i2c: E2 62 00 [07:51:45]MH_I2C_Read... [07:51:45]Read from MH i2c: E2 62 00 37 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 C0 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [07:51:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 C0 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:51:45]wFMCommunicate OK [07:51:45]SAM_PROTO_GetFieldsCounters done [07:51:45]requested_item shift.num is exist - process it [07:51:45]requested_item shift.opened is exist - process it [07:51:45]req_shift_opened [07:51:45]FM_GetShiftState [07:51:45]SAM_PROTO_GetShiftState [07:51:45]wFMCommunicate request_size=4 [07:51:45]MH_SAM_APDU [07:51:45]CAPDU: 80 13 01 00 [07:51:45]Write to MH i2c: E2 08 00 38 16 80 13 01 00 00 00 00 00 CB [07:51:45]Write i2c OK [07:51:45]MH_I2C_Read... [07:51:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:51:45]Read from MH i2c: E2 [07:51:45]MH_I2C_Read... [07:51:45]Read from MH i2c: E2 0E 00 [07:51:45]MH_I2C_Read... [07:51:45]Read from MH i2c: E2 0E 00 38 16 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 E9 [07:51:45]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [07:51:45]wFMCommunicate OK [07:51:45]SAM_PROTO_GetShiftState done [07:51:45]FM_GetShiftState done [07:51:45]req_shift_opened done [07:51:45]requested_item shift.open_date is exist - process it [07:51:45]req_shift_open_date [07:51:45]req_shift_open_date done [07:51:45]produce_requested_data done [07:51:45]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103104,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [07:51:45]process_action_free close_receipt [07:51:45]json_value_free [07:51:45]json_value_free done [07:51:45]process_json_proto returns [07:51:45]Send response to host [07:51:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103104,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [07:51:45]free response buf [07:51:45]execute_script done [07:51:45]execute_script returns [07:51:45]free content buf [07:51:45]Sock 9.Close socket [07:51:45]Sock 9.Thread stoped [07:51:47]OFD Sender: No OFD packet to send [07:51:52]OFD Sender: No OFD packet to send [07:51:57]OFD Sender: No OFD packet to send [07:52:02]OFD Sender: No OFD packet to send [07:52:07]OFD Sender: No OFD packet to send [07:52:12]OFD Sender: No OFD packet to send [07:52:16]accept exits with 10 [07:52:16]New connection [07:52:16]New thread 3066707300 created [07:52:16]Thread 3066563940 joined [07:52:16]Waiting for new connection... [07:52:16] Sock 10.Parse request [07:52:16]Sock 10.Check first char [07:52:16]Sock 10.First char is OK [07:52:16]request: POST /json_proto HTTP/1.0 [07:52:16]Method: POST [07:52:16]URL: /json_proto [07:52:16]Method is POST - this is cgi request [07:52:16]url: /json_proto [07:52:16]query_string will be loaded in cgi processing [07:52:16]execute_cgi json_proto POST (null) [07:52:16]execute_cgi path=json_proto method=POST [07:52:16]POST find Content-Length [07:52:16]Host: 172.17.58.3:8080 [07:52:16]Content-Length: 745 [07:52:16]Content-Type: application/json [07:52:16] [07:52:16]POST finish read [07:52:16]Found Content-Length = 745 [07:52:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)34505", "tax_sys" : 0, "items" : [ { "code": "4607014827898", "name": "\u041B\u044E\u0431\u0438\u043C\u044B\u0439 \u043D\u0430\u043F\u0438\u0442\u043E\u043A \u0442\u0440\u043E\u043F\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043C\u0438\u043A\u0441 0,95\u043B", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:52:16]execute_script... [07:52: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 : (3)34505", "tax_sys" : 0, "items" : [ { "code": "4607014827898", "name": "\u041B\u044E\u0431\u0438\u043C\u044B\u0439 \u043D\u0430\u043F\u0438\u0442\u043E\u043A \u0442\u0440\u043E\u043F\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043C\u0438\u043A\u0441 0,95\u043B", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:52:16]POST & json_proto [07:52:16]process_json_proto [07:52:16]json parsed OK: [07:52:16]protocol is kg_v1.0 [07:52:16]action value=close_receipt [07:52:16]process_action close_receipt [07:52:16]cmd_close_receipt [07:52:16]MH_GetDate [07:52:16]Write to MH i2c: F0 00 00 39 16 3E [07:52:16]Write i2c OK [07:52:16]MH_I2C_Read... [07:52:16]Read from MH i2c: F0 [07:52:16]MH_I2C_Read... [07:52:16]Read from MH i2c: F0 09 00 [07:52:16]MH_I2C_Read... [07:52:16]Read from MH i2c: F0 09 00 39 16 00 B4 10 BB 66 DC E4 6D 64 BD [07:52:16]GetLastDocTimeStamp 1723535503 [07:52:16]current date 1723535540 [07:52:16]FM_GetShiftState [07:52:16]SAM_PROTO_GetShiftState [07:52:16]wFMCommunicate request_size=4 [07:52:16]MH_SAM_APDU [07:52:16]CAPDU: 80 13 01 00 [07:52:16]Write to MH i2c: E2 08 00 3A 16 80 13 01 00 00 00 00 00 CD [07:52:16]Write i2c OK [07:52:16]MH_I2C_Read... [07:52:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:52:16]Read from MH i2c: E2 [07:52:16]MH_I2C_Read... [07:52:16]Read from MH i2c: E2 0E 00 [07:52:16]MH_I2C_Read... [07:52:16]Read from MH i2c: E2 0E 00 3A 16 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 EB [07:52:16]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [07:52:16]wFMCommunicate OK [07:52:16]SAM_PROTO_GetShiftState done [07:52:16]FM_GetShiftState done [07:52:16]opened in 1723506770 [07:52:16]opened+sec_in_day 1723593170 [07:52:16]quantity*price = 11500 [07:52:16]sum+1 = 11501 [07:52:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 16 13.08.2024 07:52 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103105 ФПД: 127723541294806 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T075220&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103105&fm=127723541294806&tin=02508201610067®Number=0000000000092718&sum=11500 0 [07:52:17]StoreToDocumentArchive [07:52:17]shift 464 fd 103105 [07:52:17]save to /storage/0464/doc_00103105 [07:52:17]save last doc name /storage/0464/doc_00103105 to /storage/kkm_last_doc_name [07:52:17]save OK [07:52:17]Clear old archive folders... [07:52:17]ProcessDocumentItem done err = 0, tmpTLVsize=310 [07:52:17]tlvbuf is 00296930 [07:52:17]SAM_PROTO_ClearQueue [07:52:17]wFMCommunicate request_size=4 [07:52:17]MH_SAM_APDU [07:52:17]CAPDU: 80 09 00 00 [07:52:17]Write to MH i2c: E2 08 00 47 16 80 09 00 00 00 00 00 00 CF [07:52:17]Write i2c OK [07:52:17]MH_I2C_Read... [07:52:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:52:17]Read from MH i2c: E2 [07:52:17]MH_I2C_Read... [07:52:17]Read from MH i2c: E2 03 00 [07:52:17]MH_I2C_Read... [07:52:17]Read from MH i2c: E2 03 00 47 16 00 90 00 D1 [07:52:17]RAPDU: 90 00 [07:52:17]wFMCommunicate OK [07:52:17]SAM_PROTO_ClearQueue done [07:52:17]KKMCreateOFDPacket [07:52:17]OFDProtocolAddRootSTLVToBuf [07:52:17]FM_MakeSignedData [07:52:17]FM_MakeSignedData [07:52:17]SAM_PROTO_SignData [07:52:17]wFMCommunicate request_size=4 [07:52:17]MH_SAM_APDU [07:52:17]CAPDU: 80 0D 01 02 [07:52:17]Write to MH i2c: E2 08 00 48 16 80 0D 01 02 00 00 00 00 D7 [07:52:17]Write i2c OK [07:52:17]MH_I2C_Read... [07:52:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:52:17]Read from MH i2c: E2 [07:52:17]MH_I2C_Read... [07:52:17]Read from MH i2c: E2 03 00 [07:52:17]MH_I2C_Read... [07:52:17]Read from MH i2c: E2 03 00 48 16 00 90 00 D2 [07:52:17]RAPDU: 90 00 [07:52:17]wFMCommunicate OK [07:52:17]wFMCommunicate request_size=255 [07:52:17]MH_SAM_APDU [07:52:17]CAPDU: 80 0D 02 02 FA 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 36 30 37 30 31 34 38 32 37 38 39 38 06 04 44 00 D0 9B D1 8E D0 B1 D0 B8 D0 BC D1 8B D0 B9 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 82 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BC D0 B8 D0 BA D1 81 20 30 2C 39 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 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 B4 10 BB 66 0E 04 04 00 D0 01 00 [07:52:17]Write to MH i2c: E2 02 01 49 16 80 0D 02 02 FA 00 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 36 30 37 30 31 34 38 32 37 38 39 38 06 04 44 00 D0 9B D1 8E D0 B1 D0 B8 D0 BC D1 8B D0 B9 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 82 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BC D0 B8 D0 BA D1 81 20 30 2C 39 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 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 B4 10 BB 66 0E 04 04 00 D0 01 00 00 00 2B [07:52:17]Write i2c OK [07:52:17]MH_I2C_Read... [07:52:18]OFD Sender: No OFD packet to send [07:52:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:52:18]Read from MH i2c: E2 [07:52:18]MH_I2C_Read... [07:52:18]Read from MH i2c: E2 03 00 [07:52:18]MH_I2C_Read... [07:52:18]Read from MH i2c: E2 03 00 49 16 00 90 00 D3 [07:52:18]RAPDU: 90 00 [07:52:18]wFMCommunicate OK [07:52:18]wFMCommunicate request_size=69 [07:52:18]MH_SAM_APDU [07:52:18]CAPDU: 80 0D 02 02 40 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 C1 92 01 00 35 04 06 00 74 29 F4 4E EE D6 [07:52:18]Write to MH i2c: E2 48 00 4A 16 80 0D 02 02 40 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 C1 92 01 00 35 04 06 00 74 29 F4 4E EE D6 00 00 E9 [07:52:18]Write i2c OK [07:52:18]MH_I2C_Read... [07:52:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:52:18]Read from MH i2c: E2 [07:52:18]MH_I2C_Read... [07:52:18]Read from MH i2c: E2 03 00 [07:52:18]MH_I2C_Read... [07:52:18]Read from MH i2c: E2 03 00 4A 16 00 90 00 D4 [07:52:18]RAPDU: 90 00 [07:52:18]wFMCommunicate OK [07:52:18]wFMCommunicate request_size=4 [07:52:18]MH_SAM_APDU [07:52:18]CAPDU: 80 0D 03 02 [07:52:18]Write to MH i2c: E2 08 00 4B 16 80 0D 03 02 00 00 00 00 DC [07:52:18]Write i2c OK [07:52:18]MH_I2C_Read... [07:52:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:52:18]Read from MH i2c: E2 [07:52:18]MH_I2C_Read... [07:52:18]Read from MH i2c: E2 0B 00 [07:52:18]MH_I2C_Read... [07:52:18]Read from MH i2c: E2 0B 00 4B 16 00 81 11 9B F6 7C CE BF 02 90 00 0B [07:52:18]RAPDU: 81 11 9B F6 7C CE BF 02 90 00 [07:52:18]wFMCommunicate OK [07:52:18]SAM_PROTO_SignData done [07:52:18]FM_MakeSignedData done [07:52:18]CreateOFDProtocolMessage [07:52:18]wFMCommunicate request_size=4 [07:52:18]MH_SAM_APDU [07:52:18]CAPDU: 80 11 00 00 [07:52:18]Write to MH i2c: E2 08 00 4C 16 80 11 00 00 00 00 00 00 DC [07:52:18]Write i2c OK [07:52:18]MH_I2C_Read... [07:52:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:52:18]Read from MH i2c: E2 [07:52:18]MH_I2C_Read... [07:52:18]Read from MH i2c: E2 17 00 [07:52:18]MH_I2C_Read... [07:52:18]Read from MH i2c: E2 17 00 4C 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 30 [07:52:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [07:52:18]wFMCommunicate OK [07:52:18]CreateOFDProtocolMessage done [07:52:18]OFDSenderStorePacket 103105 [07:52:18]StoreOFDPacket docnum=103105 [07:52:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4A 01 00 00 6F 3A 42 01 F3 8F 5A 03 01 00 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 36 30 37 30 31 34 38 32 37 38 39 38 06 04 44 00 D0 9B D1 8E D0 B1 D0 B8 D0 BC D1 8B D0 B9 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 82 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BC D0 B8 D0 BA D1 81 20 30 2C 39 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 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 B4 10 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 C1 92 01 00 35 04 06 00 74 29 F4 4E EE D6 81 11 9B F6 7C CE BF 02 [07:52:18]CheckFolder [07:52:18]dirname=/storage/ofd_packets [07:52:18]CheckFolder done [07:52:18]ProducePacketName [07:52:18]name=ofd_packets/00103105 [07:52:18]NVStorageSaveData ofd_packets/00103105 [07:52:18]File name is /storage/ofd_packets/00103105 [07:52:18]Write 360 bytes [07:52:18]NVStorageSaveData done [07:52:18]OFDSenderStorePacket done [07:52:18]KKMCreateOFDPacket done [07:52:18]NVStorageSaveData kkm_last_timestamp [07:52:18]File name is /storage/kkm_last_timestamp [07:52:18]Write 4 bytes [07:52:18]NVStorageSaveData done [07:52:18]ExternCall_PrintAddStr [07:52:18]wPrintStart [07:52:18]Write to MH i2c: 01 00 00 4D 16 63 [07:52:18]Write i2c OK [07:52:18]MH_I2C_Read... [07:52:18]Read from MH i2c: 01 [07:52:18]MH_I2C_Read... [07:52:18]Read from MH i2c: 01 07 00 [07:52:18]MH_I2C_Read... [07:52:18]Read from MH i2c: 01 07 00 4D 16 00 00 00 00 00 FF 0F 78 [07:52:18]RasterBufferAndPrint [07:52:18]line Счет N : (3)34505 [07:52:18]line ИНН: 02508201610067 [07:52:18]line Контрольно-Кассовый Чек [07:52:18]line ПРОДАЖА [07:52:18]line Товар: 4607014827898 [07:52:18]line Любимый напиток тропический микс 0,95л [07:52:18]line 1.000 * 115.00 [07:52:18]line = 115.00 [07:52:18]line НДС 12% НСП 1% [07:52:18]line > о реализуемом товаре [07:52:18]line ИТОГО: 115.00 [07:52:18]line НСП 1% : 1.02 [07:52:18]line НДС 12% : 12.21 [07:52:18]line Наличными: 115.00 [07:52:18]line Безнал.: 0.00 [07:52:18]line Место: АЗС № 38 "Партнер Нефть" [07:52:18]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [07:52:18]line СНО: Общий режим [07:52:18]line Чек 16 13.08.2024 07:52 [07:52:18]line Смена: 464 ФФД: 1.0 [07:52:18]line ЗНМ: 0300000126 [07:52:18]line РНМ: 0000000000092718 [07:52:18]line Версия ККМ: 001 [07:52:18]line ФМ: 0000000000875058 [07:52:18]line ФД: 103105 [07:52:18]line ФПД: 127723541294806 [07:52:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T075220&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103105&fm=127723541294806&tin=02508201610067®Number=0000000000092718&sum=11500 [07:52:18]line 0 [07:52:18]OFD Sender: Processing packet 103105 [packets to send 69, broken 68] [07:52:18]ProducePacketName [07:52:18]name=ofd_packets/00103105 [07:52:18]OFD Sender: To server: pG, [07:52:18]CommunicateWithHost lk.salyk.kg:30040 [07:52:18]ConnectInit lk.salyk.kg [07:52:18]written 0, free lines is 4095 [07:52:18]Connected sock=7 [07:52:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4A 01 00 00 6F 3A 42 01 F3 8F 5A 03 01 00 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 36 30 37 30 31 34 38 32 37 38 39 38 06 04 44 00 D0 9B D1 8E D0 B1 D0 B8 D0 BC D1 8B D0 B9 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 82 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BC D0 B8 D0 BA D1 81 20 30 2C 39 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 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 B4 10 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 C1 92 01 00 35 04 06 00 74 29 F4 4E EE D6 81 11 9B F6 7C CE BF 02 [07:52:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 C0 1A 47 00 25 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 35 30 35 38 10 04 04 00 C1 92 01 00 F4 03 04 00 27 B7 BA 66 B6 04 01 00 00 86 8F 05 61 09 3E CD 83 [07:52:19]CommunicateWithHost err = 0 [07:52:19]CheckOFDResponse [07:52:19]1017 (14) - 77093643461234 [07:52:19]1041 (16) - 0000000000875058 [07:52:19]1040 (4) - 103105 [07:52:19]1012 (4) - 13.08.2024 01:30 [07:52:19]1206 (1) - 0 [07:52:19]OFD Sender: Remove packet 103105 [07:52:19]ProducePacketName [07:52:19]name=ofd_packets/00103105 [07:52:19]NVStorageDeleteData [07:52:19]Write to MH i2c: 01 00 00 76 16 8C [07:52:19]Write i2c OK [07:52:19]MH_I2C_Read... [07:52:19]Read from MH i2c: 01 [07:52:19]MH_I2C_Read... [07:52:19]Read from MH i2c: 01 07 00 [07:52:19]MH_I2C_Read... [07:52:19]Read from MH i2c: 01 07 00 76 16 00 00 00 00 00 DA 0C 79 [07:52:19]RasterBufferAndPrint [07:52:19]line [07:52:19]line [07:52:19]line [07:52:19]line [07:52:19]line [07:52:19]written 0, free lines is 3299 [07:52:19]MH_Cut [07:52:19]Write to MH i2c: D1 01 00 7D 16 01 65 [07:52:19]Write i2c OK [07:52:19]MH_I2C_Read... [07:52:19]Read from MH i2c: D1 [07:52:19]MH_I2C_Read... [07:52:19]Read from MH i2c: D1 01 00 [07:52:19]MH_I2C_Read... [07:52:19]Read from MH i2c: D1 01 00 7D 16 00 64 [07:52:19]Write to MH i2c: 01 00 00 7E 16 94 [07:52:19]Write i2c OK [07:52:19]MH_I2C_Read... [07:52:19]OFD Sender: No OFD packet to send [07:52:19]*** Cut start [07:52:19]*** Purtial cut [07:52:19]*** Stage 1: CUTSNS_PIN = 1 [07:52:20]Read from MH i2c: 01 [07:52:20]MH_I2C_Read... [07:52:20]*** Stop cut motor [07:52:20]*** Cut end [07:52:20]Read from MH i2c: 01 07 00 [07:52:20]MH_I2C_Read... [07:52:20]Read from MH i2c: 01 07 00 7E 16 00 00 00 00 00 FF 0F A9 [07:52:20]process_action close_receipt done [07:52:20]requested_data is exist [07:52:20]produce_requested_data [07:52:20]requested_item fm.sn is exist - process it [07:52:20]wFMCommunicate request_size=4 [07:52:20]MH_SAM_APDU [07:52:20]CAPDU: 80 11 00 00 [07:52:20]Write to MH i2c: E2 08 00 7F 16 80 11 00 00 00 00 00 00 0F [07:52:20]Write i2c OK [07:52:20]MH_I2C_Read... [07:52:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:52:20]Read from MH i2c: E2 [07:52:20]MH_I2C_Read... [07:52:20]Read from MH i2c: E2 17 00 [07:52:20]MH_I2C_Read... [07:52:20]Read from MH i2c: E2 17 00 7F 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 63 [07:52:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [07:52:20]wFMCommunicate OK [07:52:20]requested_item fd.num is exist - process it [07:52:20]SAM_PROTO_GetFieldsCounters [07:52:20]wFMCommunicate request_size=4 [07:52:20]MH_SAM_APDU [07:52:20]CAPDU: 80 13 00 00 [07:52:20]Write to MH i2c: E2 08 00 80 16 80 13 00 00 00 00 00 00 12 [07:52:20]Write i2c OK [07:52:20]MH_I2C_Read... [07:52:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:52:20]Read from MH i2c: E2 [07:52:20]MH_I2C_Read... [07:52:20]Read from MH i2c: E2 62 00 [07:52:20]MH_I2C_Read... [07:52:20]Read from MH i2c: E2 62 00 80 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 C1 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [07:52:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 C1 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:52:20]wFMCommunicate OK [07:52:20]SAM_PROTO_GetFieldsCounters done [07:52:20]requested_item shift.num is exist - process it [07:52:20]requested_item shift.opened is exist - process it [07:52:20]req_shift_opened [07:52:20]FM_GetShiftState [07:52:20]SAM_PROTO_GetShiftState [07:52:20]wFMCommunicate request_size=4 [07:52:20]MH_SAM_APDU [07:52:20]CAPDU: 80 13 01 00 [07:52:20]Write to MH i2c: E2 08 00 81 16 80 13 01 00 00 00 00 00 14 [07:52:20]Write i2c OK [07:52:20]MH_I2C_Read... [07:52:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:52:20]Read from MH i2c: E2 [07:52:20]MH_I2C_Read... [07:52:20]Read from MH i2c: E2 0E 00 [07:52:20]MH_I2C_Read... [07:52:20]Read from MH i2c: E2 0E 00 81 16 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 32 [07:52:20]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [07:52:20]wFMCommunicate OK [07:52:20]SAM_PROTO_GetShiftState done [07:52:20]FM_GetShiftState done [07:52:20]req_shift_opened done [07:52:20]requested_item shift.open_date is exist - process it [07:52:20]req_shift_open_date [07:52:20]req_shift_open_date done [07:52:20]produce_requested_data done [07:52:20]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103105,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [07:52:20]process_action_free close_receipt [07:52:20]json_value_free [07:52:20]json_value_free done [07:52:20]process_json_proto returns [07:52:20]Send response to host [07:52:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103105,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [07:52:20]free response buf [07:52:20]execute_script done [07:52:20]execute_script returns [07:52:20]free content buf [07:52:20]Sock 10.Close socket [07:52:20]Sock 10.Thread stoped [07:52:24]OFD Sender: No OFD packet to send [07:52:29]OFD Sender: No OFD packet to send [07:52:34]OFD Sender: No OFD packet to send [07:52:39]OFD Sender: No OFD packet to send [07:52:44]OFD Sender: No OFD packet to send [07:52:49]OFD Sender: No OFD packet to send [07:52:54]OFD Sender: No OFD packet to send [07:52:59]OFD Sender: No OFD packet to send [07:53:04]OFD Sender: No OFD packet to send [07:53:09]OFD Sender: No OFD packet to send [07:53:14]OFD Sender: No OFD packet to send [07:53:19]OFD Sender: No OFD packet to send [07:53:24]OFD Sender: No OFD packet to send [07:53:29]OFD Sender: No OFD packet to send [07:53:34]OFD Sender: No OFD packet to send [07:53:39]OFD Sender: No OFD packet to send [07:53:44]OFD Sender: No OFD packet to send [07:53:49]OFD Sender: No OFD packet to send [07:53:54]OFD Sender: No OFD packet to send [07:53:59]OFD Sender: No OFD packet to send [07:54:04]OFD Sender: No OFD packet to send [07:54:09]OFD Sender: No OFD packet to send [07:54:14]OFD Sender: No OFD packet to send [07:54:19]OFD Sender: No OFD packet to send [07:54:24]OFD Sender: No OFD packet to send [07:54:29]OFD Sender: No OFD packet to send [07:54:34]OFD Sender: No OFD packet to send [07:54:39]OFD Sender: No OFD packet to send [07:54:44]OFD Sender: No OFD packet to send [07:54:49]OFD Sender: No OFD packet to send [07:54:54]OFD Sender: No OFD packet to send [07:54:59]OFD Sender: No OFD packet to send [07:55:04]OFD Sender: No OFD packet to send [07:55:09]OFD Sender: No OFD packet to send [07:55:14]OFD Sender: No OFD packet to send [07:55:19]OFD Sender: No OFD packet to send [07:55:24]OFD Sender: No OFD packet to send [07:55:29]OFD Sender: No OFD packet to send [07:55:34]OFD Sender: No OFD packet to send [07:55:39]OFD Sender: No OFD packet to send [07:55:44]OFD Sender: No OFD packet to send [07:55:49]OFD Sender: No OFD packet to send [07:55:54]OFD Sender: No OFD packet to send [07:55:59]OFD Sender: No OFD packet to send [07:56:04]OFD Sender: No OFD packet to send [07:56:09]OFD Sender: No OFD packet to send [07:56:14]OFD Sender: No OFD packet to send [07:56:19]OFD Sender: No OFD packet to send [07:56:24]OFD Sender: No OFD packet to send [07:56:29]OFD Sender: No OFD packet to send [07:56:34]OFD Sender: No OFD packet to send [07:56:39]OFD Sender: No OFD packet to send [07:56:44]OFD Sender: No OFD packet to send [07:56:49]OFD Sender: No OFD packet to send [07:56:54]OFD Sender: No OFD packet to send [07:56:59]OFD Sender: No OFD packet to send [07:57:04]OFD Sender: No OFD packet to send [07:57:09]OFD Sender: No OFD packet to send [07:57:14]OFD Sender: No OFD packet to send [07:57:19]OFD Sender: No OFD packet to send [07:57:24]OFD Sender: No OFD packet to send [07:57:29]OFD Sender: No OFD packet to send [07:57:34]OFD Sender: No OFD packet to send [07:57:39]OFD Sender: No OFD packet to send [07:57:44]OFD Sender: No OFD packet to send [07:57:49]OFD Sender: No OFD packet to send [07:57:54]OFD Sender: No OFD packet to send [07:57:59]OFD Sender: No OFD packet to send [07:58:04]OFD Sender: No OFD packet to send [07:58:09]OFD Sender: No OFD packet to send [07:58:14]OFD Sender: No OFD packet to send [07:58:19]OFD Sender: No OFD packet to send [07:58:24]OFD Sender: No OFD packet to send [07:58:29]OFD Sender: No OFD packet to send [07:58:34]OFD Sender: No OFD packet to send [07:58:39]OFD Sender: No OFD packet to send [07:58:44]OFD Sender: No OFD packet to send [07:58:49]OFD Sender: No OFD packet to send [07:58:54]OFD Sender: No OFD packet to send [07:58:59]OFD Sender: No OFD packet to send [07:59:04]OFD Sender: No OFD packet to send [07:59:09]OFD Sender: No OFD packet to send [07:59:14]OFD Sender: No OFD packet to send [07:59:19]OFD Sender: No OFD packet to send [07:59:24]OFD Sender: No OFD packet to send [07:59:29]OFD Sender: No OFD packet to send [07:59:34]OFD Sender: No OFD packet to send [07:59:39]OFD Sender: No OFD packet to send [07:59:44]OFD Sender: No OFD packet to send [07:59:49]OFD Sender: No OFD packet to send [07:59:54]OFD Sender: No OFD packet to send [07:59:59]OFD Sender: No OFD packet to send [08:00:05]OFD Sender: No OFD packet to send [08:00:10]OFD Sender: No OFD packet to send [08:00:15]OFD Sender: No OFD packet to send [08:00:20]OFD Sender: No OFD packet to send [08:00:25]OFD Sender: No OFD packet to send [08:00:30]OFD Sender: No OFD packet to send [08:00:35]OFD Sender: No OFD packet to send [08:00:40]OFD Sender: No OFD packet to send [08:00:45]OFD Sender: No OFD packet to send [08:00:50]OFD Sender: No OFD packet to send [08:00:55]OFD Sender: No OFD packet to send [08:01:00]OFD Sender: No OFD packet to send [08:01:05]OFD Sender: No OFD packet to send [08:01:10]OFD Sender: No OFD packet to send [08:01:15]OFD Sender: No OFD packet to send [08:01:20]OFD Sender: No OFD packet to send [08:01:25]OFD Sender: No OFD packet to send [08:01:30]OFD Sender: No OFD packet to send [08:01:35]OFD Sender: No OFD packet to send [08:01:40]OFD Sender: No OFD packet to send [08:01:45]OFD Sender: No OFD packet to send [08:01:50]OFD Sender: No OFD packet to send [08:01:55]OFD Sender: No OFD packet to send [08:02:00]OFD Sender: No OFD packet to send [08:02:05]OFD Sender: No OFD packet to send [08:02:10]OFD Sender: No OFD packet to send [08:02:15]OFD Sender: No OFD packet to send [08:02:20]OFD Sender: No OFD packet to send [08:02:25]OFD Sender: No OFD packet to send [08:02:30]OFD Sender: No OFD packet to send [08:02:35]OFD Sender: No OFD packet to send [08:02:40]OFD Sender: No OFD packet to send [08:02:45]OFD Sender: No OFD packet to send [08:02:50]OFD Sender: No OFD packet to send [08:02:55]OFD Sender: No OFD packet to send [08:03:00]OFD Sender: No OFD packet to send [08:03:05]OFD Sender: No OFD packet to send [08:03:10]OFD Sender: No OFD packet to send [08:03:15]OFD Sender: No OFD packet to send [08:03:20]OFD Sender: No OFD packet to send [08:03:25]OFD Sender: No OFD packet to send [08:03:30]OFD Sender: No OFD packet to send [08:03:35]OFD Sender: No OFD packet to send [08:03:40]OFD Sender: No OFD packet to send [08:03:45]OFD Sender: No OFD packet to send [08:03:50]OFD Sender: No OFD packet to send [08:03:55]OFD Sender: No OFD packet to send [08:04:00]OFD Sender: No OFD packet to send [08:04:05]OFD Sender: No OFD packet to send [08:04:10]OFD Sender: No OFD packet to send [08:04:15]OFD Sender: No OFD packet to send [08:04:20]OFD Sender: No OFD packet to send [08:04:25]OFD Sender: No OFD packet to send [08:04:30]OFD Sender: No OFD packet to send [08:04:35]OFD Sender: No OFD packet to send [08:04:40]OFD Sender: No OFD packet to send [08:04:45]OFD Sender: No OFD packet to send [08:04:50]OFD Sender: No OFD packet to send [08:04:55]OFD Sender: No OFD packet to send [08:05:00]OFD Sender: No OFD packet to send [08:05:05]OFD Sender: No OFD packet to send [08:05:08]accept exits with 9 [08:05:08]New connection [08:05:08]New thread 3066563940 created [08:05:08]Thread 3066707300 joined [08:05:08]Waiting for new connection... [08:05:08] Sock 9.Parse request [08:05:08]Sock 9.Check first char [08:05:08]Sock 9.First char is OK [08:05:08]request: POST /json_proto HTTP/1.0 [08:05:08]Method: POST [08:05:08]URL: /json_proto [08:05:08]Method is POST - this is cgi request [08:05:08]url: /json_proto [08:05:08]query_string will be loaded in cgi processing [08:05:08]execute_cgi json_proto POST (null) [08:05:08]execute_cgi path=json_proto method=POST [08:05:08]POST find Content-Length [08:05:08]Host: 172.17.58.3:8080 [08:05:08]Content-Length: 670 [08:05:08]Content-Type: application/json [08:05:08] [08:05:08]POST finish read [08:05:08]Found Content-Length = 670 [08:05:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160736", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 66.90, "quantity" : 10.020, "sum" : 670.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:05:08]execute_script... [08:05:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160736", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 66.90, "quantity" : 10.020, "sum" : 670.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:05:08]POST & json_proto [08:05:08]process_json_proto [08:05:08]json parsed OK: [08:05:08]protocol is kg_v1.0 [08:05:08]action value=close_receipt [08:05:08]process_action close_receipt [08:05:08]cmd_close_receipt [08:05:08]MH_GetDate [08:05:08]Write to MH i2c: F0 00 00 82 16 87 [08:05:08]Write i2c OK [08:05:08]MH_I2C_Read... [08:05:08]Read from MH i2c: F0 [08:05:08]MH_I2C_Read... [08:05:08]Read from MH i2c: F0 09 00 [08:05:08]MH_I2C_Read... [08:05:08]Read from MH i2c: F0 09 00 82 16 00 B7 13 BB 66 DC E4 6D 64 0C [08:05:08]GetLastDocTimeStamp 1723535540 [08:05:08]current date 1723536311 [08:05:08]FM_GetShiftState [08:05:08]SAM_PROTO_GetShiftState [08:05:08]wFMCommunicate request_size=4 [08:05:08]MH_SAM_APDU [08:05:08]CAPDU: 80 13 01 00 [08:05:08]Write to MH i2c: E2 08 00 83 16 80 13 01 00 00 00 00 00 16 [08:05:08]Write i2c OK [08:05:08]MH_I2C_Read... [08:05:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:05:08]Read from MH i2c: E2 [08:05:08]MH_I2C_Read... [08:05:08]Read from MH i2c: E2 0E 00 [08:05:08]MH_I2C_Read... [08:05:08]Read from MH i2c: E2 0E 00 83 16 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 34 [08:05:08]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [08:05:08]wFMCommunicate OK [08:05:08]SAM_PROTO_GetShiftState done [08:05:08]FM_GetShiftState done [08:05:08]opened in 1723506770 [08:05:08]opened+sec_in_day 1723593170 [08:05:08]quantity*price = 67033 [08:05:08]sum+1 = 67035 [08:05:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 670.00 Внесено: 670.00 СДАЧА: 0.00 НСП 1% : 5.93 НДС 12% : 71.19 Наличными: 670.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 17 13.08.2024 08:05 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103106 ФПД: 124237708800470 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T080511&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103106&fm=124237708800470&tin=02508201610067®Number=0000000000092718&sum=67000 [08:05:09]StoreToDocumentArchive [08:05:09]shift 464 fd 103106 [08:05:09]save to /storage/0464/doc_00103106 [08:05:09]save last doc name /storage/0464/doc_00103106 to /storage/kkm_last_doc_name [08:05:09]save OK [08:05:09]Clear old archive folders... [08:05:09]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:05:09]tlvbuf is 0025B790 [08:05:09]SAM_PROTO_ClearQueue [08:05:09]wFMCommunicate request_size=4 [08:05:09]MH_SAM_APDU [08:05:09]CAPDU: 80 09 00 00 [08:05:09]Write to MH i2c: E2 08 00 90 16 80 09 00 00 00 00 00 00 18 [08:05:09]Write i2c OK [08:05:09]MH_I2C_Read... [08:05:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:05:09]Read from MH i2c: E2 [08:05:09]MH_I2C_Read... [08:05:09]Read from MH i2c: E2 03 00 [08:05:09]MH_I2C_Read... [08:05:09]Read from MH i2c: E2 03 00 90 16 00 90 00 1A [08:05:09]RAPDU: 90 00 [08:05:09]wFMCommunicate OK [08:05:09]SAM_PROTO_ClearQueue done [08:05:09]KKMCreateOFDPacket [08:05:09]OFDProtocolAddRootSTLVToBuf [08:05:09]FM_MakeSignedData [08:05:09]FM_MakeSignedData [08:05:09]SAM_PROTO_SignData [08:05:09]wFMCommunicate request_size=4 [08:05:09]MH_SAM_APDU [08:05:09]CAPDU: 80 0D 01 02 [08:05:09]Write to MH i2c: E2 08 00 91 16 80 0D 01 02 00 00 00 00 20 [08:05:09]Write i2c OK [08:05:09]MH_I2C_Read... [08:05:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:05:09]Read from MH i2c: E2 [08:05:09]MH_I2C_Read... [08:05:09]Read from MH i2c: E2 03 00 [08:05:09]MH_I2C_Read... [08:05:09]Read from MH i2c: E2 03 00 91 16 00 90 00 1B [08:05:09]RAPDU: 90 00 [08:05:09]wFMCommunicate OK [08:05:09]wFMCommunicate request_size=255 [08:05:09]MH_SAM_APDU [08:05:09]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 B7 13 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 C2 92 01 00 35 04 06 00 [08:05:09]Write to MH i2c: E2 02 01 92 16 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 B7 13 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 C2 92 01 00 35 04 06 00 00 00 0C [08:05:09]Write i2c OK [08:05:09]MH_I2C_Read... [08:05:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:05:09]Read from MH i2c: E2 [08:05:09]MH_I2C_Read... [08:05:09]Read from MH i2c: E2 03 00 [08:05:09]MH_I2C_Read... [08:05:09]Read from MH i2c: E2 03 00 92 16 00 90 00 1C [08:05:09]RAPDU: 90 00 [08:05:09]wFMCommunicate OK [08:05:09]wFMCommunicate request_size=11 [08:05:09]MH_SAM_APDU [08:05:09]CAPDU: 80 0D 02 02 06 70 FE 58 80 31 D6 [08:05:09]Write to MH i2c: E2 0E 00 93 16 80 0D 02 02 06 00 70 FE 58 80 31 D6 00 00 7C [08:05:09]Write i2c OK [08:05:09]MH_I2C_Read... [08:05:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:05:09]Read from MH i2c: E2 [08:05:09]MH_I2C_Read... [08:05:09]Read from MH i2c: E2 03 00 [08:05:09]MH_I2C_Read... [08:05:09]Read from MH i2c: E2 03 00 93 16 00 90 00 1D [08:05:09]RAPDU: 90 00 [08:05:09]wFMCommunicate OK [08:05:09]wFMCommunicate request_size=4 [08:05:09]MH_SAM_APDU [08:05:09]CAPDU: 80 0D 03 02 [08:05:09]Write to MH i2c: E2 08 00 94 16 80 0D 03 02 00 00 00 00 25 [08:05:09]Write i2c OK [08:05:09]MH_I2C_Read... [08:05:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:05:09]Read from MH i2c: E2 [08:05:09]MH_I2C_Read... [08:05:09]Read from MH i2c: E2 0B 00 [08:05:09]MH_I2C_Read... [08:05:09]Read from MH i2c: E2 0B 00 94 16 00 F4 44 9E 61 29 6B F9 11 90 00 FB [08:05:09]RAPDU: F4 44 9E 61 29 6B F9 11 90 00 [08:05:09]wFMCommunicate OK [08:05:09]SAM_PROTO_SignData done [08:05:09]FM_MakeSignedData done [08:05:09]CreateOFDProtocolMessage [08:05:09]wFMCommunicate request_size=4 [08:05:09]MH_SAM_APDU [08:05:09]CAPDU: 80 11 00 00 [08:05:09]Write to MH i2c: E2 08 00 95 16 80 11 00 00 00 00 00 00 25 [08:05:09]Write i2c OK [08:05:09]MH_I2C_Read... [08:05:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:05:10]Read from MH i2c: E2 [08:05:10]MH_I2C_Read... [08:05:10]Read from MH i2c: E2 17 00 [08:05:10]MH_I2C_Read... [08:05:10]Read from MH i2c: E2 17 00 95 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 79 [08:05:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [08:05:10]wFMCommunicate OK [08:05:10]CreateOFDProtocolMessage done [08:05:10]OFDSenderStorePacket 103106 [08:05:10]StoreOFDPacket docnum=103106 [08:05:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 01 00 00 48 A6 08 01 BA 94 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 B7 13 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 C2 92 01 00 35 04 06 00 70 FE 58 80 31 D6 F4 44 9E 61 29 6B F9 11 [08:05:10]CheckFolder [08:05:10]dirname=/storage/ofd_packets [08:05:10]CheckFolder done [08:05:10]ProducePacketName [08:05:10]name=ofd_packets/00103106 [08:05:10]NVStorageSaveData ofd_packets/00103106 [08:05:10]File name is /storage/ofd_packets/00103106 [08:05:10]Write 302 bytes [08:05:10]NVStorageSaveData done [08:05:10]OFDSenderStorePacket done [08:05:10]KKMCreateOFDPacket done [08:05:10]NVStorageSaveData kkm_last_timestamp [08:05:10]File name is /storage/kkm_last_timestamp [08:05:10]Write 4 bytes [08:05:10]NVStorageSaveData done [08:05:10]OFD Sender: Processing packet 103106 [packets to send 69, broken 68] [08:05:10]ProducePacketName [08:05:10]name=ofd_packets/00103106 [08:05:10]OFD Sender: To server: pG, [08:05:10]CommunicateWithHost lk.salyk.kg:30040 [08:05:10]ConnectInit lk.salyk.kg [08:05:10]ExternCall_PrintAddStr [08:05:10]wPrintStart [08:05:10]Write to MH i2c: 01 00 00 96 16 AC [08:05:10]Write i2c OK [08:05:10]MH_I2C_Read... [08:05:10]Read from MH i2c: 01 [08:05:10]MH_I2C_Read... [08:05:10]Read from MH i2c: 01 07 00 [08:05:10]MH_I2C_Read... [08:05:10]Read from MH i2c: 01 07 00 96 16 00 00 00 00 00 FF 0F C1 [08:05:10]RasterBufferAndPrint [08:05:10]line Счет N : (1)160736 [08:05:10]line ИНН: 02508201610067 [08:05:10]line Контрольно-Кассовый Чек [08:05:10]line ПРОДАЖА [08:05:10]line ТРК (МРК, ГНК) : 6 [08:05:10]line Товар: 2710124130 [08:05:10]line SUPER 92-К-5 [08:05:10]line 10.020 * 66.90 [08:05:10]line = 670.34 [08:05:10]line НДС 12% НСП 1% [08:05:10]line > о реализуемом товаре [08:05:10]line ОКРУГЛЕНИЕ: -0.34 [08:05:10]line ИТОГО: 670.00 [08:05:10]line Внесено: 670.00 [08:05:10]line СДАЧА: 0.00 [08:05:10]line НСП 1% : 5.93 [08:05:10]line НДС 12% : 71.19 [08:05:10]line Наличными: 670.00 [08:05:10]line Безнал.: 0.00 [08:05:10]line Место: АЗС № 38 "Партнер Нефть" [08:05:10]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [08:05:10]line СНО: Общий режим [08:05:10]line Чек 17 13.08.2024 08:05 [08:05:10]line Смена: 464 ФФД: 1.0 [08:05:10]line ЗНМ: 0300000126 [08:05:10]line РНМ: 0000000000092718 [08:05:10]line Версия ККМ: 001 [08:05:10]line ФМ: 0000000000875058 [08:05:10]line ФД: 103106 [08:05:10]line ФПД: 124237708800470 [08:05:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T080511&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103106&fm=124237708800470&tin=02508201610067®Number=0000000000092718&sum=67000 [08:05:10]Connected sock=11 [08:05:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 01 00 00 48 A6 08 01 BA 94 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 B7 13 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 C2 92 01 00 35 04 06 00 70 FE 58 80 31 D6 F4 44 9E 61 29 6B F9 11 [08:05:10]written 0, free lines is 4095 [08:05:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 45 7E 47 00 54 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 C2 92 01 00 F4 03 04 00 2B BA BA 66 B6 04 01 00 00 28 69 B4 7D 2E 65 36 A3 [08:05:10]CommunicateWithHost err = 0 [08:05:10]CheckOFDResponse [08:05:10]1017 (14) - 77093643461234 [08:05:10]1041 (16) - 0000000000875058 [08:05:10]1040 (4) - 103106 [08:05:10]1012 (4) - 13.08.2024 01:43 [08:05:10]1206 (1) - 0 [08:05:10]OFD Sender: Remove packet 103106 [08:05:10]ProducePacketName [08:05:10]name=ofd_packets/00103106 [08:05:10]NVStorageDeleteData [08:05:10]Write to MH i2c: 01 00 00 C1 16 D7 [08:05:10]Write i2c OK [08:05:10]MH_I2C_Read... [08:05:10]Read from MH i2c: 01 [08:05:10]MH_I2C_Read... [08:05:10]Read from MH i2c: 01 07 00 [08:05:10]MH_I2C_Read... [08:05:10]Read from MH i2c: 01 07 00 C1 16 00 00 00 00 00 D8 0C C2 [08:05:10]RasterBufferAndPrint [08:05:10]line [08:05:10]line [08:05:10]line [08:05:10]line [08:05:10]line [08:05:10]written 0, free lines is 3296 [08:05:10]MH_Cut [08:05:10]Write to MH i2c: D1 01 00 C8 16 01 B0 [08:05:10]Write i2c OK [08:05:10]MH_I2C_Read... [08:05:10]Read from MH i2c: D1 [08:05:10]MH_I2C_Read... [08:05:10]Read from MH i2c: D1 01 00 [08:05:10]MH_I2C_Read... [08:05:10]Read from MH i2c: D1 01 00 C8 16 00 AF [08:05:10]Write to MH i2c: 01 00 00 C9 16 DF [08:05:10]Write i2c OK [08:05:10]MH_I2C_Read... [08:05:11]OFD Sender: No OFD packet to send [08:05:11]*** Cut start [08:05:11]*** Purtial cut [08:05:11]*** CUTSNS_PIN = 0 [08:05:11]*** Stage 1: CUTSNS_PIN = 1 [08:05:13]Read from MH i2c: 01 [08:05:13]MH_I2C_Read... [08:05:13]*** Stop cut motor [08:05:13]*** Cut end [08:05:13]Read from MH i2c: 01 07 00 [08:05:13]MH_I2C_Read... [08:05:13]Read from MH i2c: 01 07 00 C9 16 00 00 00 00 00 FF 0F F4 [08:05:13]process_action close_receipt done [08:05:13]requested_data is exist [08:05:13]produce_requested_data [08:05:13]requested_item fm.sn is exist - process it [08:05:13]wFMCommunicate request_size=4 [08:05:13]MH_SAM_APDU [08:05:13]CAPDU: 80 11 00 00 [08:05:13]Write to MH i2c: E2 08 00 CA 16 80 11 00 00 00 00 00 00 5A [08:05:13]Write i2c OK [08:05:13]MH_I2C_Read... [08:05:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:05:13]Read from MH i2c: E2 [08:05:13]MH_I2C_Read... [08:05:13]Read from MH i2c: E2 17 00 [08:05:13]MH_I2C_Read... [08:05:13]Read from MH i2c: E2 17 00 CA 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 AE [08:05:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [08:05:13]wFMCommunicate OK [08:05:13]requested_item fd.num is exist - process it [08:05:13]SAM_PROTO_GetFieldsCounters [08:05:13]wFMCommunicate request_size=4 [08:05:13]MH_SAM_APDU [08:05:13]CAPDU: 80 13 00 00 [08:05:13]Write to MH i2c: E2 08 00 CB 16 80 13 00 00 00 00 00 00 5D [08:05:13]Write i2c OK [08:05:13]MH_I2C_Read... [08:05:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:05:13]Read from MH i2c: E2 [08:05:13]MH_I2C_Read... [08:05:13]Read from MH i2c: E2 62 00 [08:05:13]MH_I2C_Read... [08:05:13]Read from MH i2c: E2 62 00 CB 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 C2 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [08:05:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 C2 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:05:13]wFMCommunicate OK [08:05:13]SAM_PROTO_GetFieldsCounters done [08:05:13]requested_item shift.num is exist - process it [08:05:13]requested_item shift.opened is exist - process it [08:05:13]req_shift_opened [08:05:13]FM_GetShiftState [08:05:13]SAM_PROTO_GetShiftState [08:05:13]wFMCommunicate request_size=4 [08:05:13]MH_SAM_APDU [08:05:13]CAPDU: 80 13 01 00 [08:05:13]Write to MH i2c: E2 08 00 CC 16 80 13 01 00 00 00 00 00 5F [08:05:13]Write i2c OK [08:05:13]MH_I2C_Read... [08:05:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:05:13]Read from MH i2c: E2 [08:05:13]MH_I2C_Read... [08:05:13]Read from MH i2c: E2 0E 00 [08:05:13]MH_I2C_Read... [08:05:13]Read from MH i2c: E2 0E 00 CC 16 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 7D [08:05:13]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [08:05:13]wFMCommunicate OK [08:05:13]SAM_PROTO_GetShiftState done [08:05:13]FM_GetShiftState done [08:05:13]req_shift_opened done [08:05:13]requested_item shift.open_date is exist - process it [08:05:13]req_shift_open_date [08:05:13]req_shift_open_date done [08:05:13]produce_requested_data done [08:05:13]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103106,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [08:05:13]process_action_free close_receipt [08:05:13]json_value_free [08:05:13]json_value_free done [08:05:13]process_json_proto returns [08:05:13]Send response to host [08:05:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103106,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [08:05:13]free response buf [08:05:13]execute_script done [08:05:13]execute_script returns [08:05:13]free content buf [08:05:13]Sock 9.Close socket [08:05:13]Sock 9.Thread stoped [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:46]OFD Sender: No OFD packet to send [08:08:51]OFD Sender: No OFD packet to send [08:08:56]OFD Sender: No OFD packet to send [08:09:01]OFD Sender: No OFD packet to send [08:09:06]OFD Sender: No OFD packet to send [08:09:11]OFD Sender: No OFD packet to send [08:09:16]OFD Sender: No OFD packet to send [08:09:21]OFD Sender: No OFD packet to send [08:09:26]OFD Sender: No OFD packet to send [08:09:31]OFD Sender: No OFD packet to send [08:09:36]OFD Sender: No OFD packet to send [08:09:41]OFD Sender: No OFD packet to send [08:09:46]OFD Sender: No OFD packet to send [08:09:51]OFD Sender: No OFD packet to send [08:09:56]OFD Sender: No OFD packet to send [08:10:01]OFD Sender: No OFD packet to send [08:10:06]OFD Sender: No OFD packet to send [08:10:11]OFD Sender: No OFD packet to send [08:10:16]OFD Sender: No OFD packet to send [08:10:21]OFD Sender: No OFD packet to send [08:10:26]OFD Sender: No OFD packet to send [08:10:31]OFD Sender: No OFD packet to send [08:10:36]OFD Sender: No OFD packet to send [08:10:41]OFD Sender: No OFD packet to send [08:10:46]OFD Sender: No OFD packet to send [08:10:51]OFD Sender: No OFD packet to send [08:10:56]OFD Sender: No OFD packet to send [08:11:01]OFD Sender: No OFD packet to send [08:11:06]OFD Sender: No OFD packet to send [08:11:11]OFD Sender: No OFD packet to send [08:11:16]OFD Sender: No OFD packet to send [08:11:21]OFD Sender: No OFD packet to send [08:11:26]OFD Sender: No OFD packet to send [08:11:31]OFD Sender: No OFD packet to send [08:11:36]OFD Sender: No OFD packet to send [08:11:41]OFD Sender: No OFD packet to send [08:11:46]OFD Sender: No OFD packet to send [08:11:51]OFD Sender: No OFD packet to send [08:11:56]OFD Sender: No OFD packet to send [08:12:01]OFD Sender: No OFD packet to send [08:12:06]OFD Sender: No OFD packet to send [08:12:11]OFD Sender: No OFD packet to send [08:12:16]OFD Sender: No OFD packet to send [08:12:21]OFD Sender: No OFD packet to send [08:12: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:31]OFD Sender: No OFD packet to send [08:19:36]OFD Sender: No OFD packet to send [08:19:41]OFD Sender: No OFD packet to send [08:19:42]accept exits with 7 [08:19:42]New connection [08:19:42]New thread 3066707300 created [08:19:42]Thread 3066563940 joined [08:19:42]Waiting for new connection... [08:19:42] Sock 7.Parse request [08:19:42]Sock 7.Check first char [08:19:42]Sock 7.First char is OK [08:19:42]request: POST /json_proto HTTP/1.0 [08:19:42]Method: POST [08:19:42]URL: /json_proto [08:19:42]Method is POST - this is cgi request [08:19:42]url: /json_proto [08:19:42]query_string will be loaded in cgi processing [08:19:42]execute_cgi json_proto POST (null) [08:19:42]execute_cgi path=json_proto method=POST [08:19:42]POST find Content-Length [08:19:42]Host: 172.17.58.3:8080 [08:19:42]Content-Length: 674 [08:19:42]Content-Type: application/json [08:19:42] [08:19:42]POST finish read [08:19:42]Found Content-Length = 674 [08:19:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160737", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 6.780, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:42]execute_script... [08:19: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)160737", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 6.780, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:42]POST & json_proto [08:19:42]process_json_proto [08:19:42]json parsed OK: [08:19:42]protocol is kg_v1.0 [08:19:42]action value=close_receipt [08:19:42]process_action close_receipt [08:19:42]cmd_close_receipt [08:19:42]MH_GetDate [08:19:42]Write to MH i2c: F0 00 00 CD 16 D2 [08:19:42]Write i2c OK [08:19:42]MH_I2C_Read... [08:19:42]Read from MH i2c: F0 [08:19:42]MH_I2C_Read... [08:19:42]Read from MH i2c: F0 09 00 [08:19:42]MH_I2C_Read... [08:19:42]Read from MH i2c: F0 09 00 CD 16 00 21 17 BB 66 DC E4 6D 64 C5 [08:19:42]GetLastDocTimeStamp 1723536311 [08:19:42]current date 1723537185 [08:19:42]FM_GetShiftState [08:19:42]SAM_PROTO_GetShiftState [08:19:42]wFMCommunicate request_size=4 [08:19:42]MH_SAM_APDU [08:19:42]CAPDU: 80 13 01 00 [08:19:42]Write to MH i2c: E2 08 00 CE 16 80 13 01 00 00 00 00 00 61 [08:19:42]Write i2c OK [08:19:42]MH_I2C_Read... [08:19:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:42]Read from MH i2c: E2 [08:19:42]MH_I2C_Read... [08:19:42]Read from MH i2c: E2 0E 00 [08:19:42]MH_I2C_Read... [08:19:42]Read from MH i2c: E2 0E 00 CE 16 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 7F [08:19:42]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [08:19:42]wFMCommunicate OK [08:19:42]SAM_PROTO_GetShiftState done [08:19:42]FM_GetShiftState done [08:19:42]opened in 1723506770 [08:19:42]opened+sec_in_day 1723593170 [08:19:42]quantity*price = 50036 [08:19:42]sum+1 = 50037 [08:19:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 18 13.08.2024 08:19 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103107 ФПД: 150851959213050 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T081945&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103107&fm=150851959213050&tin=02508201610067®Number=0000000000092718&sum=50000 [08:19:43]StoreToDocumentArchive [08:19:43]shift 464 fd 103107 [08:19:43]save to /storage/0464/doc_00103107 [08:19:43]save last doc name /storage/0464/doc_00103107 to /storage/kkm_last_doc_name [08:19:43]save OK [08:19:43]Clear old archive folders... [08:19:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:19:43]tlvbuf is B6E85660 [08:19:43]SAM_PROTO_ClearQueue [08:19:43]wFMCommunicate request_size=4 [08:19:43]MH_SAM_APDU [08:19:43]CAPDU: 80 09 00 00 [08:19:43]Write to MH i2c: E2 08 00 DB 16 80 09 00 00 00 00 00 00 63 [08:19:43]Write i2c OK [08:19:43]MH_I2C_Read... [08:19:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:19:43]Read from MH i2c: E2 [08:19:43]MH_I2C_Read... [08:19:43]Read from MH i2c: E2 03 00 [08:19:43]MH_I2C_Read... [08:19:43]Read from MH i2c: E2 03 00 DB 16 00 90 00 65 [08:19:43]RAPDU: 90 00 [08:19:43]wFMCommunicate OK [08:19:43]SAM_PROTO_ClearQueue done [08:19:43]KKMCreateOFDPacket [08:19:43]OFDProtocolAddRootSTLVToBuf [08:19:43]FM_MakeSignedData [08:19:43]FM_MakeSignedData [08:19:43]SAM_PROTO_SignData [08:19:43]wFMCommunicate request_size=4 [08:19:43]MH_SAM_APDU [08:19:43]CAPDU: 80 0D 01 02 [08:19:43]Write to MH i2c: E2 08 00 DC 16 80 0D 01 02 00 00 00 00 6B [08:19:43]Write i2c OK [08:19:43]MH_I2C_Read... [08:19:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:19:43]Read from MH i2c: E2 [08:19:43]MH_I2C_Read... [08:19:43]Read from MH i2c: E2 03 00 [08:19:43]MH_I2C_Read... [08:19:43]Read from MH i2c: E2 03 00 DC 16 00 90 00 66 [08:19:43]RAPDU: 90 00 [08:19:43]wFMCommunicate OK [08:19:43]wFMCommunicate request_size=255 [08:19:43]MH_SAM_APDU [08:19:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7C 1A 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 21 17 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 C3 92 01 00 35 04 06 00 89 32 F5 71 [08:19:43]Write to MH i2c: E2 02 01 DD 16 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 7C 1A 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 21 17 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 C3 92 01 00 35 04 06 00 89 32 F5 71 00 00 F3 [08:19:43]Write i2c OK [08:19:43]MH_I2C_Read... [08:19:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:43]Read from MH i2c: E2 [08:19:43]MH_I2C_Read... [08:19:43]Read from MH i2c: E2 03 00 [08:19:43]MH_I2C_Read... [08:19:43]Read from MH i2c: E2 03 00 DD 16 00 90 00 67 [08:19:43]RAPDU: 90 00 [08:19:43]wFMCommunicate OK [08:19:43]wFMCommunicate request_size=7 [08:19:43]MH_SAM_APDU [08:19:43]CAPDU: 80 0D 02 02 02 4B FA [08:19:43]Write to MH i2c: E2 0A 00 DE 16 80 0D 02 02 02 00 4B FA 00 00 B7 [08:19:43]Write i2c OK [08:19:43]MH_I2C_Read... [08:19:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:43]Read from MH i2c: E2 [08:19:43]MH_I2C_Read... [08:19:43]Read from MH i2c: E2 03 00 [08:19:43]MH_I2C_Read... [08:19:43]Read from MH i2c: E2 03 00 DE 16 00 90 00 68 [08:19:43]RAPDU: 90 00 [08:19:43]wFMCommunicate OK [08:19:43]wFMCommunicate request_size=4 [08:19:43]MH_SAM_APDU [08:19:43]CAPDU: 80 0D 03 02 [08:19:43]Write to MH i2c: E2 08 00 DF 16 80 0D 03 02 00 00 00 00 70 [08:19:43]Write i2c OK [08:19:43]MH_I2C_Read... [08:19:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:19:43]Read from MH i2c: E2 [08:19:43]MH_I2C_Read... [08:19:43]Read from MH i2c: E2 0B 00 [08:19:43]MH_I2C_Read... [08:19:43]Read from MH i2c: E2 0B 00 DF 16 00 7F C3 5B FA 7A D0 CB FF 90 00 1C [08:19:43]RAPDU: 7F C3 5B FA 7A D0 CB FF 90 00 [08:19:43]wFMCommunicate OK [08:19:43]SAM_PROTO_SignData done [08:19:43]FM_MakeSignedData done [08:19:43]CreateOFDProtocolMessage [08:19:43]wFMCommunicate request_size=4 [08:19:43]MH_SAM_APDU [08:19:43]CAPDU: 80 11 00 00 [08:19:43]Write to MH i2c: E2 08 00 E0 16 80 11 00 00 00 00 00 00 70 [08:19:43]Write i2c OK [08:19:43]MH_I2C_Read... [08:19:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:43]Read from MH i2c: E2 [08:19:43]MH_I2C_Read... [08:19:43]Read from MH i2c: E2 17 00 [08:19:43]MH_I2C_Read... [08:19:43]Read from MH i2c: E2 17 00 E0 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 C4 [08:19:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [08:19:43]wFMCommunicate OK [08:19:43]CreateOFDProtocolMessage done [08:19:43]OFDSenderStorePacket 103107 [08:19:43]StoreOFDPacket docnum=103107 [08:19:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 04 78 04 01 D4 6E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7C 1A 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 21 17 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 C3 92 01 00 35 04 06 00 89 32 F5 71 4B FA 7F C3 5B FA 7A D0 CB FF [08:19:43]CheckFolder [08:19:43]dirname=/storage/ofd_packets [08:19:43]CheckFolder done [08:19:43]ProducePacketName [08:19:43]name=ofd_packets/00103107 [08:19:43]NVStorageSaveData ofd_packets/00103107 [08:19:43]File name is /storage/ofd_packets/00103107 [08:19:43]Write 298 bytes [08:19:43]NVStorageSaveData done [08:19:43]OFDSenderStorePacket done [08:19:43]KKMCreateOFDPacket done [08:19:43]NVStorageSaveData kkm_last_timestamp [08:19:43]File name is /storage/kkm_last_timestamp [08:19:43]Write 4 bytes [08:19:43]NVStorageSaveData done [08:19:43]ExternCall_PrintAddStr [08:19:43]wPrintStart [08:19:43]Write to MH i2c: 01 00 00 E1 16 F7 [08:19:43]Write i2c OK [08:19:43]MH_I2C_Read... [08:19:43]Read from MH i2c: 01 [08:19:43]MH_I2C_Read... [08:19:43]Read from MH i2c: 01 07 00 [08:19:43]MH_I2C_Read... [08:19:43]Read from MH i2c: 01 07 00 E1 16 00 00 00 00 00 FF 0F 0C [08:19:43]RasterBufferAndPrint [08:19:43]line Счет N : (1)160737 [08:19:43]line ИНН: 02508201610067 [08:19:43]line Контрольно-Кассовый Чек [08:19:43]line ПРОДАЖА [08:19:43]line ТРК (МРК, ГНК) : 13 [08:19:43]line Товар: 2710194210 [08:19:43]line ДТ-К-5 [08:19:43]line 6.780 * 73.80 [08:19:43]line = 500.36 [08:19:43]line НДС 12% НСП 1% [08:19:43]line > о реализуемом товаре [08:19:43]line ОКРУГЛЕНИЕ: -0.36 [08:19:43]line ИТОГО: 500.00 [08:19:43]line Внесено: 500.00 [08:19:43]line СДАЧА: 0.00 [08:19:43]line НСП 1% : 4.43 [08:19:43]line НДС 12% : 53.14 [08:19:43]line Наличными: 500.00 [08:19:43]line Безнал.: 0.00 [08:19:43]line Место: АЗС № 38 "Партнер Нефть" [08:19:43]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [08:19:43]line СНО: Общий режим [08:19:43]line Чек 18 13.08.2024 08:19 [08:19:43]line Смена: 464 ФФД: 1.0 [08:19:43]line ЗНМ: 0300000126 [08:19:43]line РНМ: 0000000000092718 [08:19:43]line Версия ККМ: 001 [08:19:43]line ФМ: 0000000000875058 [08:19:43]line ФД: 103107 [08:19:43]line ФПД: 150851959213050 [08:19:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T081945&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103107&fm=150851959213050&tin=02508201610067®Number=0000000000092718&sum=50000 [08:19:44]OFD Sender: Processing packet 103107 [packets to send 69, broken 68] [08:19:44]ProducePacketName [08:19:44]name=ofd_packets/00103107 [08:19:44]OFD Sender: To server: pG, [08:19:44]CommunicateWithHost lk.salyk.kg:30040 [08:19:44]ConnectInit lk.salyk.kg [08:19:44]written 0, free lines is 4095 [08:19:44]Connected sock=10 [08:19:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 04 78 04 01 D4 6E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7C 1A 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 21 17 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 C3 92 01 00 35 04 06 00 89 32 F5 71 4B FA 7F C3 5B FA 7A D0 CB FF [08:19:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 EF 60 47 00 95 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 C3 92 01 00 F4 03 04 00 95 BD BA 66 B6 04 01 00 00 B9 F2 C2 E6 BB 4F 0E 53 [08:19:44]CommunicateWithHost err = 0 [08:19:44]CheckOFDResponse [08:19:44]1017 (14) - 77093643461234 [08:19:44]1041 (16) - 0000000000875058 [08:19:44]1040 (4) - 103107 [08:19:44]1012 (4) - 13.08.2024 01:57 [08:19:44]1206 (1) - 0 [08:19:44]OFD Sender: Remove packet 103107 [08:19:44]ProducePacketName [08:19:44]name=ofd_packets/00103107 [08:19:44]NVStorageDeleteData [08:19:44]Write to MH i2c: 01 00 00 0C 17 23 [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 0C 17 00 00 00 00 00 D1 0C 07 [08:19:44]RasterBufferAndPrint [08:19:44]line [08:19:44]line [08:19:44]line [08:19:44]line [08:19:44]line [08:19:44]written 0, free lines is 3287 [08:19:44]MH_Cut [08:19:44]Write to MH i2c: D1 01 00 13 17 01 FC [08:19:44]Write i2c OK [08:19:44]MH_I2C_Read... [08:19:44]Read from MH i2c: D1 [08:19:44]MH_I2C_Read... [08:19:44]Read from MH i2c: D1 01 00 [08:19:44]MH_I2C_Read... [08:19:44]Read from MH i2c: D1 01 00 13 17 00 FB [08:19:44]Write to MH i2c: 01 00 00 14 17 2B [08:19:44]Write i2c OK [08:19:44]MH_I2C_Read... [08:19:45]OFD Sender: No OFD packet to send [08:19:45]*** Cut start [08:19:45]*** Purtial cut [08:19:45]*** Stage 1: CUTSNS_PIN = 1 [08:19:45]Read from MH i2c: 01 [08:19:45]MH_I2C_Read... [08:19:45]*** Stop cut motor [08:19:45]*** Cut end [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 14 17 00 00 00 00 00 FF 0F 40 [08:19:45]process_action close_receipt done [08:19:45]requested_data is exist [08:19:45]produce_requested_data [08:19:45]requested_item fm.sn is exist - process it [08:19:45]wFMCommunicate request_size=4 [08:19:45]MH_SAM_APDU [08:19:45]CAPDU: 80 11 00 00 [08:19:45]Write to MH i2c: E2 08 00 15 17 80 11 00 00 00 00 00 00 A6 [08:19:45]Write i2c OK [08:19:45]MH_I2C_Read... [08:19:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:45]Read from MH i2c: E2 [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: E2 17 00 [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: E2 17 00 15 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 FA [08:19:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [08:19:45]wFMCommunicate OK [08:19:45]requested_item fd.num is exist - process it [08:19:45]SAM_PROTO_GetFieldsCounters [08:19:45]wFMCommunicate request_size=4 [08:19:45]MH_SAM_APDU [08:19:45]CAPDU: 80 13 00 00 [08:19:45]Write to MH i2c: E2 08 00 16 17 80 13 00 00 00 00 00 00 A9 [08:19:45]Write i2c OK [08:19:45]MH_I2C_Read... [08:19:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:19:46]Read from MH i2c: E2 [08:19:46]MH_I2C_Read... [08:19:46]Read from MH i2c: E2 62 00 [08:19:46]MH_I2C_Read... [08:19:46]Read from MH i2c: E2 62 00 16 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 C3 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [08:19:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 C3 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:19:46]wFMCommunicate OK [08:19:46]SAM_PROTO_GetFieldsCounters done [08:19:46]requested_item shift.num is exist - process it [08:19:46]requested_item shift.opened is exist - process it [08:19:46]req_shift_opened [08:19:46]FM_GetShiftState [08:19:46]SAM_PROTO_GetShiftState [08:19:46]wFMCommunicate request_size=4 [08:19:46]MH_SAM_APDU [08:19:46]CAPDU: 80 13 01 00 [08:19:46]Write to MH i2c: E2 08 00 17 17 80 13 01 00 00 00 00 00 AB [08:19:46]Write i2c OK [08:19:46]MH_I2C_Read... [08:19:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:46]Read from MH i2c: E2 [08:19:46]MH_I2C_Read... [08:19:46]Read from MH i2c: E2 0E 00 [08:19:46]MH_I2C_Read... [08:19:46]Read from MH i2c: E2 0E 00 17 17 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 C9 [08:19:46]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [08:19:46]wFMCommunicate OK [08:19:46]SAM_PROTO_GetShiftState done [08:19:46]FM_GetShiftState done [08:19:46]req_shift_opened done [08:19:46]requested_item shift.open_date is exist - process it [08:19:46]req_shift_open_date [08:19:46]req_shift_open_date done [08:19:46]produce_requested_data done [08:19:46]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103107,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [08:19:46]process_action_free close_receipt [08:19:46]json_value_free [08:19:46]json_value_free done [08:19:46]process_json_proto returns [08:19:46]Send response to host [08:19:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103107,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [08:19:46]free response buf [08:19:46]execute_script done [08:19:46]execute_script returns [08:19:46]free content buf [08:19:46]Sock 7.Close socket [08:19:46]Sock 7.Thread stoped [08:19:50]OFD Sender: No OFD packet to send [08:19:55]OFD Sender: No OFD packet to send [08:20:00]OFD Sender: No OFD packet to send [08:20:05]OFD Sender: No OFD packet to send [08:20:10]OFD Sender: No OFD packet to send [08:20:15]OFD Sender: No OFD packet to send [08:20:20]OFD Sender: No OFD packet to send [08:20:25]OFD Sender: No OFD packet to send [08:20:30]OFD Sender: No OFD packet to send [08:20:35]OFD Sender: No OFD packet to send [08:20:40]OFD Sender: No OFD packet to send [08:20:45]OFD Sender: No OFD packet to send [08:20:50]OFD Sender: No OFD packet to send [08:20:55]OFD Sender: No OFD packet to send [08:21:00]OFD Sender: No OFD packet to send [08:21:05]OFD Sender: No OFD packet to send [08:21:10]OFD Sender: No OFD packet to send [08:21:15]OFD Sender: No OFD packet to send [08:21:20]OFD Sender: No OFD packet to send [08:21:25]OFD Sender: No OFD packet to send [08:21:30]OFD Sender: No OFD packet to send [08:21:35]OFD Sender: No OFD packet to send [08:21:40]OFD Sender: No OFD packet to send [08:21:45]OFD Sender: No OFD packet to send [08:21:50]OFD Sender: No OFD packet to send [08:21:55]OFD Sender: No OFD packet to send [08:21:59]accept exits with 9 [08:21:59]New connection [08:21:59]New thread 3066563940 created [08:21:59]Thread 3066707300 joined [08:21:59]Waiting for new connection... [08:21:59] Sock 9.Parse request [08:21:59]Sock 9.Check first char [08:21:59]Sock 9.First char is OK [08:21:59]request: POST /json_proto HTTP/1.0 [08:21:59]Method: POST [08:21:59]URL: /json_proto [08:21:59]Method is POST - this is cgi request [08:21:59]url: /json_proto [08:21:59]query_string will be loaded in cgi processing [08:21:59]execute_cgi json_proto POST (null) [08:21:59]execute_cgi path=json_proto method=POST [08:21:59]POST find Content-Length [08:21:59]Host: 172.17.58.3:8080 [08:21:59]Content-Length: 681 [08:21:59]Content-Type: application/json [08:21:59] [08:21:59]POST finish read [08:21:59]Found Content-Length = 681 [08:21:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160738", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:21:59]execute_script... [08:21:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160738", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:21:59]POST & json_proto [08:21:59]process_json_proto [08:21:59]json parsed OK: [08:21:59]protocol is kg_v1.0 [08:21:59]action value=close_receipt [08:21:59]process_action close_receipt [08:21:59]cmd_close_receipt [08:21:59]MH_GetDate [08:21:59]Write to MH i2c: F0 00 00 18 17 1E [08:21:59]Write i2c OK [08:21:59]MH_I2C_Read... [08:21:59]Read from MH i2c: F0 [08:21:59]MH_I2C_Read... [08:21:59]Read from MH i2c: F0 09 00 [08:21:59]MH_I2C_Read... [08:21:59]Read from MH i2c: F0 09 00 18 17 00 AB 17 BB 66 DC E4 6D 64 9B [08:21:59]GetLastDocTimeStamp 1723537185 [08:21:59]current date 1723537323 [08:21:59]FM_GetShiftState [08:21:59]SAM_PROTO_GetShiftState [08:21:59]wFMCommunicate request_size=4 [08:21:59]MH_SAM_APDU [08:21:59]CAPDU: 80 13 01 00 [08:21:59]Write to MH i2c: E2 08 00 19 17 80 13 01 00 00 00 00 00 AD [08:21:59]Write i2c OK [08:21:59]MH_I2C_Read... [08:21:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:21:59]Read from MH i2c: E2 [08:21:59]MH_I2C_Read... [08:21:59]Read from MH i2c: E2 0E 00 [08:21:59]MH_I2C_Read... [08:21:59]Read from MH i2c: E2 0E 00 19 17 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 CB [08:21:59]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [08:21:59]wFMCommunicate OK [08:21:59]SAM_PROTO_GetShiftState done [08:21:59]FM_GetShiftState done [08:21:59]opened in 1723506770 [08:21:59]opened+sec_in_day 1723593170 [08:21:59]quantity*price = 100036 [08:21:59]sum+1 = 100037 [08:21:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 19 13.08.2024 08:22 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103108 ФПД: 222068879858997 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T082203&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103108&fm=222068879858997&tin=02508201610067®Number=0000000000092718&sum=100000 [08:22:00]StoreToDocumentArchive [08:22:00]shift 464 fd 103108 [08:22:00]save to /storage/0464/doc_00103108 [08:22:00]save last doc name /storage/0464/doc_00103108 to /storage/kkm_last_doc_name [08:22:00]save OK [08:22:00]Clear old archive folders... [08:22:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:22:00]tlvbuf is 002A3340 [08:22:00]SAM_PROTO_ClearQueue [08:22:00]wFMCommunicate request_size=4 [08:22:00]MH_SAM_APDU [08:22:00]CAPDU: 80 09 00 00 [08:22:00]Write to MH i2c: E2 08 00 26 17 80 09 00 00 00 00 00 00 AF [08:22:00]Write i2c OK [08:22:00]MH_I2C_Read... [08:22:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:22:00]Read from MH i2c: E2 [08:22:00]MH_I2C_Read... [08:22:00]Read from MH i2c: E2 03 00 [08:22:00]MH_I2C_Read... [08:22:00]Read from MH i2c: E2 03 00 26 17 00 90 00 B1 [08:22:00]RAPDU: 90 00 [08:22:00]wFMCommunicate OK [08:22:00]SAM_PROTO_ClearQueue done [08:22:00]KKMCreateOFDPacket [08:22:00]OFDProtocolAddRootSTLVToBuf [08:22:00]FM_MakeSignedData [08:22:00]FM_MakeSignedData [08:22:00]SAM_PROTO_SignData [08:22:00]wFMCommunicate request_size=4 [08:22:00]MH_SAM_APDU [08:22:00]CAPDU: 80 0D 01 02 [08:22:00]Write to MH i2c: E2 08 00 27 17 80 0D 01 02 00 00 00 00 B7 [08:22:00]Write i2c OK [08:22:00]MH_I2C_Read... [08:22:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:22:00]Read from MH i2c: E2 [08:22:00]MH_I2C_Read... [08:22:00]Read from MH i2c: E2 03 00 [08:22:00]MH_I2C_Read... [08:22:00]Read from MH i2c: E2 03 00 27 17 00 90 00 B2 [08:22:00]RAPDU: 90 00 [08:22:00]wFMCommunicate OK [08:22:00]wFMCommunicate request_size=255 [08:22:00]MH_SAM_APDU [08:22:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 AB 17 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 C4 92 01 00 35 04 06 00 C9 [08:22:00]Write to MH i2c: E2 02 01 28 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 AB 17 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 C4 92 01 00 35 04 06 00 C9 00 00 C2 [08:22:00]Write i2c OK [08:22:00]MH_I2C_Read... [08:22:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:01]Read from MH i2c: E2 [08:22:01]MH_I2C_Read... [08:22:01]Read from MH i2c: E2 03 00 [08:22:01]MH_I2C_Read... [08:22:01]Read from MH i2c: E2 03 00 28 17 00 90 00 B3 [08:22:01]RAPDU: 90 00 [08:22:01]wFMCommunicate OK [08:22:01]wFMCommunicate request_size=10 [08:22:01]MH_SAM_APDU [08:22:01]CAPDU: 80 0D 02 02 05 F8 70 B3 1D 35 [08:22:01]Write to MH i2c: E2 0D 00 29 17 80 0D 02 02 05 00 F8 70 B3 1D 35 00 00 31 [08:22:01]Write i2c OK [08:22:01]MH_I2C_Read... [08:22:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:01]Read from MH i2c: E2 [08:22:01]MH_I2C_Read... [08:22:01]Read from MH i2c: E2 03 00 [08:22:01]MH_I2C_Read... [08:22:01]Read from MH i2c: E2 03 00 29 17 00 90 00 B4 [08:22:01]RAPDU: 90 00 [08:22:01]wFMCommunicate OK [08:22:01]wFMCommunicate request_size=4 [08:22:01]MH_SAM_APDU [08:22:01]CAPDU: 80 0D 03 02 [08:22:01]Write to MH i2c: E2 08 00 2A 17 80 0D 03 02 00 00 00 00 BC [08:22:01]Write i2c OK [08:22:01]MH_I2C_Read... [08:22:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:22:01]Read from MH i2c: E2 [08:22:01]MH_I2C_Read... [08:22:01]Read from MH i2c: E2 0B 00 [08:22:01]MH_I2C_Read... [08:22:01]Read from MH i2c: E2 0B 00 2A 17 00 CA C0 5A AE 23 AE 4E D5 90 00 43 [08:22:01]RAPDU: CA C0 5A AE 23 AE 4E D5 90 00 [08:22:01]wFMCommunicate OK [08:22:01]SAM_PROTO_SignData done [08:22:01]FM_MakeSignedData done [08:22:01]CreateOFDProtocolMessage [08:22:01]wFMCommunicate request_size=4 [08:22:01]MH_SAM_APDU [08:22:01]CAPDU: 80 11 00 00 [08:22:01]Write to MH i2c: E2 08 00 2B 17 80 11 00 00 00 00 00 00 BC [08:22:01]Write i2c OK [08:22:01]MH_I2C_Read... [08:22:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:01]Read from MH i2c: E2 [08:22:01]MH_I2C_Read... [08:22:01]Read from MH i2c: E2 17 00 [08:22:01]MH_I2C_Read... [08:22:01]Read from MH i2c: E2 17 00 2B 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 10 [08:22:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [08:22:01]wFMCommunicate OK [08:22:01]CreateOFDProtocolMessage done [08:22:01]OFDSenderStorePacket 103108 [08:22:01]StoreOFDPacket docnum=103108 [08:22:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 5C E6 07 01 40 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 AB 17 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 C4 92 01 00 35 04 06 00 C9 F8 70 B3 1D 35 CA C0 5A AE 23 AE 4E D5 [08:22:01]CheckFolder [08:22:01]dirname=/storage/ofd_packets [08:22:01]CheckFolder done [08:22:01]ProducePacketName [08:22:01]name=ofd_packets/00103108 [08:22:01]NVStorageSaveData ofd_packets/00103108 [08:22:01]File name is /storage/ofd_packets/00103108 [08:22:01]Write 301 bytes [08:22:01]NVStorageSaveData done [08:22:01]OFDSenderStorePacket done [08:22:01]KKMCreateOFDPacket done [08:22:01]NVStorageSaveData kkm_last_timestamp [08:22:01]File name is /storage/kkm_last_timestamp [08:22:01]Write 4 bytes [08:22:01]NVStorageSaveData done [08:22:01]ExternCall_PrintAddStr [08:22:01]wPrintStart [08:22:01]Write to MH i2c: 01 00 00 2C 17 43 [08:22:01]Write i2c OK [08:22:01]MH_I2C_Read... [08:22:01]Read from MH i2c: 01 [08:22:01]MH_I2C_Read... [08:22:01]Read from MH i2c: 01 07 00 [08:22:01]MH_I2C_Read... [08:22:01]Read from MH i2c: 01 07 00 2C 17 00 00 00 00 00 FF 0F 58 [08:22:01]RasterBufferAndPrint [08:22:01]line Счет N : (1)160738 [08:22:01]line ИНН: 02508201610067 [08:22:01]line Контрольно-Кассовый Чек [08:22:01]line ПРОДАЖА [08:22:01]line ТРК (МРК, ГНК) : 7 [08:22:01]line Товар: 2710124130 [08:22:01]line Аи-92-К-5 [08:22:01]line 15.180 * 65.90 [08:22:01]line = 1000.36 [08:22:01]line НДС 12% НСП 1% [08:22:01]line > о реализуемом товаре [08:22:01]line ОКРУГЛЕНИЕ: -0.36 [08:22:01]line ИТОГО: 1000.00 [08:22:01]line Внесено: 1000.00 [08:22:01]line СДАЧА: 0.00 [08:22:01]line НСП 1% : 8.85 [08:22:01]line НДС 12% : 106.23 [08:22:01]line Наличными: 1000.00 [08:22:01]line Безнал.: 0.00 [08:22:01]line Место: АЗС № 38 "Партнер Нефть" [08:22:01]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [08:22:01]line СНО: Общий режим [08:22:01]line Чек 19 13.08.2024 08:22 [08:22:01]line Смена: 464 ФФД: 1.0 [08:22:01]line ЗНМ: 0300000126 [08:22:01]line РНМ: 0000000000092718 [08:22:01]line Версия ККМ: 001 [08:22:01]line ФМ: 0000000000875058 [08:22:01]line ФД: 103108 [08:22:01]line ФПД: 222068879858997 [08:22:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T082203&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103108&fm=222068879858997&tin=02508201610067®Number=0000000000092718&sum=100000 [08:22:01]OFD Sender: Processing packet 103108 [packets to send 69, broken 68] [08:22:01]ProducePacketName [08:22:01]name=ofd_packets/00103108 [08:22:01]OFD Sender: To server: pG, [08:22:01]CommunicateWithHost lk.salyk.kg:30040 [08:22:01]ConnectInit lk.salyk.kg [08:22:01]written 0, free lines is 4095 [08:22:01]Connected sock=10 [08:22:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 5C E6 07 01 40 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 AB 17 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 C4 92 01 00 35 04 06 00 C9 F8 70 B3 1D 35 CA C0 5A AE 23 AE 4E D5 [08:22:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 99 52 47 00 1A 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 35 30 35 38 10 04 04 00 C4 92 01 00 F4 03 04 00 1E BE BA 66 B6 04 01 00 00 A0 F3 5F 44 9F 3A 58 63 [08:22:01]CommunicateWithHost err = 0 [08:22:01]CheckOFDResponse [08:22:01]1017 (14) - 77093643461234 [08:22:01]1041 (16) - 0000000000875058 [08:22:01]1040 (4) - 103108 [08:22:01]1012 (4) - 13.08.2024 01:59 [08:22:01]1206 (1) - 0 [08:22:01]OFD Sender: Remove packet 103108 [08:22:01]ProducePacketName [08:22:01]name=ofd_packets/00103108 [08:22:01]NVStorageDeleteData [08:22:02]Write to MH i2c: 01 00 00 57 17 6E [08:22:02]Write i2c OK [08:22:02]MH_I2C_Read... [08:22:02]Read from MH i2c: 01 [08:22:02]MH_I2C_Read... [08:22:02]Read from MH i2c: 01 07 00 [08:22:02]MH_I2C_Read... [08:22:02]Read from MH i2c: 01 07 00 57 17 00 00 00 00 00 E0 0C 61 [08:22:02]RasterBufferAndPrint [08:22:02]line [08:22:02]line [08:22:02]line [08:22:02]line [08:22:02]line [08:22:02]written 0, free lines is 3302 [08:22:02]MH_Cut [08:22:02]Write to MH i2c: D1 01 00 5E 17 01 47 [08:22:02]Write i2c OK [08:22:02]MH_I2C_Read... [08:22:02]Read from MH i2c: D1 [08:22:02]MH_I2C_Read... [08:22:02]Read from MH i2c: D1 01 00 [08:22:02]MH_I2C_Read... [08:22:02]Read from MH i2c: D1 01 00 5E 17 00 46 [08:22:02]Write to MH i2c: 01 00 00 5F 17 76 [08:22:02]Write i2c OK [08:22:02]MH_I2C_Read... [08:22:02]OFD Sender: No OFD packet to send [08:22:02]*** Cut start [08:22:02]*** Purtial cut [08:22:02]*** CUTSNS_PIN = 0 [08:22:03]*** Stage 1: CUTSNS_PIN = 1 [08:22:04]Read from MH i2c: 01 [08:22:04]MH_I2C_Read... [08:22:04]*** Stop cut motor [08:22:04]*** Cut end [08:22:04]Read from MH i2c: 01 07 00 [08:22:04]MH_I2C_Read... [08:22:04]Read from MH i2c: 01 07 00 5F 17 00 00 00 00 00 FF 0F 8B [08:22:04]process_action close_receipt done [08:22:04]requested_data is exist [08:22:04]produce_requested_data [08:22:04]requested_item fm.sn is exist - process it [08:22:04]wFMCommunicate request_size=4 [08:22:04]MH_SAM_APDU [08:22:04]CAPDU: 80 11 00 00 [08:22:04]Write to MH i2c: E2 08 00 60 17 80 11 00 00 00 00 00 00 F1 [08:22:04]Write i2c OK [08:22:04]MH_I2C_Read... [08:22:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:04]Read from MH i2c: E2 [08:22:04]MH_I2C_Read... [08:22:04]Read from MH i2c: E2 17 00 [08:22:04]MH_I2C_Read... [08:22:04]Read from MH i2c: E2 17 00 60 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 45 [08:22:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [08:22:04]wFMCommunicate OK [08:22:04]requested_item fd.num is exist - process it [08:22:04]SAM_PROTO_GetFieldsCounters [08:22:04]wFMCommunicate request_size=4 [08:22:04]MH_SAM_APDU [08:22:04]CAPDU: 80 13 00 00 [08:22:04]Write to MH i2c: E2 08 00 61 17 80 13 00 00 00 00 00 00 F4 [08:22:04]Write i2c OK [08:22:04]MH_I2C_Read... [08:22:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:22:05]Read from MH i2c: E2 [08:22:05]MH_I2C_Read... [08:22:05]Read from MH i2c: E2 62 00 [08:22:05]MH_I2C_Read... [08:22:05]Read from MH i2c: E2 62 00 61 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 C4 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [08:22:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 C4 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:22:05]wFMCommunicate OK [08:22:05]SAM_PROTO_GetFieldsCounters done [08:22:05]requested_item shift.num is exist - process it [08:22:05]requested_item shift.opened is exist - process it [08:22:05]req_shift_opened [08:22:05]FM_GetShiftState [08:22:05]SAM_PROTO_GetShiftState [08:22:05]wFMCommunicate request_size=4 [08:22:05]MH_SAM_APDU [08:22:05]CAPDU: 80 13 01 00 [08:22:05]Write to MH i2c: E2 08 00 62 17 80 13 01 00 00 00 00 00 F6 [08:22:05]Write i2c OK [08:22:05]MH_I2C_Read... [08:22:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:05]Read from MH i2c: E2 [08:22:05]MH_I2C_Read... [08:22:05]Read from MH i2c: E2 0E 00 [08:22:05]MH_I2C_Read... [08:22:05]Read from MH i2c: E2 0E 00 62 17 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 14 [08:22:05]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [08:22:05]wFMCommunicate OK [08:22:05]SAM_PROTO_GetShiftState done [08:22:05]FM_GetShiftState done [08:22:05]req_shift_opened done [08:22:05]requested_item shift.open_date is exist - process it [08:22:05]req_shift_open_date [08:22:05]req_shift_open_date done [08:22:05]produce_requested_data done [08:22:05]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103108,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [08:22:05]process_action_free close_receipt [08:22:05]json_value_free [08:22:05]json_value_free done [08:22:05]process_json_proto returns [08:22:05]Send response to host [08:22:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103108,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [08:22:05]free response buf [08:22:05]execute_script done [08:22:05]execute_script returns [08:22:05]free content buf [08:22:05]Sock 9.Close socket [08:22:05]Sock 9.Thread stoped [08:22:07]OFD Sender: No OFD packet to send [08:22:12]OFD Sender: No OFD packet to send [08:22:17]OFD Sender: No OFD packet to send [08:22:22]OFD Sender: No OFD packet to send [08:22:27]OFD Sender: No OFD packet to send [08:22:32]OFD Sender: No OFD packet to send [08:22:37]OFD Sender: No OFD packet to send [08:22:42]OFD Sender: No OFD packet to send [08:22:47]OFD Sender: No OFD packet to send [08:22:52]OFD Sender: No OFD packet to send [08:22:57]OFD Sender: No OFD packet to send [08:23:02]OFD Sender: No OFD packet to send [08:23:07]OFD Sender: No OFD packet to send [08:23:12]OFD Sender: No OFD packet to send [08:23:17]OFD Sender: No OFD packet to send [08:23:22]OFD Sender: No OFD packet to send [08:23:27]OFD Sender: No OFD packet to send [08:23:32]OFD Sender: No OFD packet to send [08:23:37]OFD Sender: No OFD packet to send [08:23:42]OFD Sender: No OFD packet to send [08:23:47]OFD Sender: No OFD packet to send [08:23:52]OFD Sender: No OFD packet to send [08:23:57]OFD Sender: No OFD packet to send [08:24:02]OFD Sender: No OFD packet to send [08:24:07]OFD Sender: No OFD packet to send [08:24:12]OFD Sender: No OFD packet to send [08:24:17]OFD Sender: No OFD packet to send [08:24:22]OFD Sender: No OFD packet to send [08:24:27]OFD Sender: No OFD packet to send [08:24:32]OFD Sender: No OFD packet to send [08:24:37]OFD Sender: No OFD packet to send [08:24:42]OFD Sender: No OFD packet to send [08:24:47]OFD Sender: No OFD packet to send [08:24:52]OFD Sender: No OFD packet to send [08:24:57]OFD Sender: No OFD packet to send [08:25:02]OFD Sender: No OFD packet to send [08:25:07]OFD Sender: No OFD packet to send [08:25:12]OFD Sender: No OFD packet to send [08:25:17]OFD Sender: No OFD packet to send [08:25:22]OFD Sender: No OFD packet to send [08:25:27]OFD Sender: No OFD packet to send [08:25:32]OFD Sender: No OFD packet to send [08:25:37]OFD Sender: No OFD packet to send [08:25:42]OFD Sender: No OFD packet to send [08:25:47]OFD Sender: No OFD packet to send [08:25:52]OFD Sender: No OFD packet to send [08:25:57]OFD Sender: No OFD packet to send [08:26:02]OFD Sender: No OFD packet to send [08:26:07]OFD Sender: No OFD packet to send [08:26:12]OFD Sender: No OFD packet to send [08:26:17]OFD Sender: No OFD packet to send [08:26:22]OFD Sender: No OFD packet to send [08:26:27]OFD Sender: No OFD packet to send [08:26:32]OFD Sender: No OFD packet to send [08:26:37]OFD Sender: No OFD packet to send [08:26:42]OFD Sender: No OFD packet to send [08:26:47]OFD Sender: No OFD packet to send [08:26:52]OFD Sender: No OFD packet to send [08:26:57]OFD Sender: No OFD packet to send [08:27:02]OFD Sender: No OFD packet to send [08:27:07]OFD Sender: No OFD packet to send [08:27:12]OFD Sender: No OFD packet to send [08:27:17]OFD Sender: No OFD packet to send [08:27:19]accept exits with 7 [08:27:19]New connection [08:27:19]New thread 3066707300 created [08:27:19]Thread 3066563940 joined [08:27:19]Waiting for new connection... [08:27:19] Sock 7.Parse request [08:27:19]Sock 7.Check first char [08:27:19]Sock 7.First char is OK [08:27:19]request: POST /json_proto HTTP/1.0 [08:27:19]Method: POST [08:27:19]URL: /json_proto [08:27:19]Method is POST - this is cgi request [08:27:19]url: /json_proto [08:27:19]query_string will be loaded in cgi processing [08:27:19]execute_cgi json_proto POST (null) [08:27:19]execute_cgi path=json_proto method=POST [08:27:19]POST find Content-Length [08:27:19]Host: 172.17.58.3:8080 [08:27:19]Content-Length: 679 [08:27:19]Content-Type: application/json [08:27:19] [08:27:19]POST finish read [08:27:19]Found Content-Length = 679 [08:27:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160739", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 13.560, "sum" : 1000.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:27:19]execute_script... [08: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)160739", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 13.560, "sum" : 1000.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:27:19]POST & json_proto [08:27:19]process_json_proto [08:27:19]json parsed OK: [08:27:19]protocol is kg_v1.0 [08:27:19]action value=close_receipt [08:27:19]process_action close_receipt [08:27:19]cmd_close_receipt [08:27:19]MH_GetDate [08:27:19]Write to MH i2c: F0 00 00 63 17 69 [08:27:19]Write i2c OK [08:27:19]MH_I2C_Read... [08:27:19]Read from MH i2c: F0 [08:27:19]MH_I2C_Read... [08:27:19]Read from MH i2c: F0 09 00 [08:27:19]MH_I2C_Read... [08:27:19]Read from MH i2c: F0 09 00 63 17 00 EB 18 BB 66 DC E4 6D 64 27 [08:27:19]GetLastDocTimeStamp 1723537323 [08:27:19]current date 1723537643 [08:27:19]FM_GetShiftState [08:27:19]SAM_PROTO_GetShiftState [08:27:19]wFMCommunicate request_size=4 [08:27:19]MH_SAM_APDU [08:27:19]CAPDU: 80 13 01 00 [08:27:19]Write to MH i2c: E2 08 00 64 17 80 13 01 00 00 00 00 00 F8 [08:27:19]Write i2c OK [08:27:19]MH_I2C_Read... [08:27:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:27:19]Read from MH i2c: E2 [08:27:19]MH_I2C_Read... [08:27:19]Read from MH i2c: E2 0E 00 [08:27:19]MH_I2C_Read... [08:27:19]Read from MH i2c: E2 0E 00 64 17 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 16 [08:27:19]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [08:27:19]wFMCommunicate OK [08:27:19]SAM_PROTO_GetShiftState done [08:27:19]FM_GetShiftState done [08:27:19]opened in 1723506770 [08:27:19]opened+sec_in_day 1723593170 [08:27:19]quantity*price = 100072 [08:27:19]sum+1 = 100074 [08:27:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.73 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.86 НДС 12% : 106.27 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 20 13.08.2024 08:27 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103109 ФПД: 133841802782863 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T082723&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103109&fm=133841802782863&tin=02508201610067®Number=0000000000092718&sum=100000 [08:27:20]StoreToDocumentArchive [08:27:20]shift 464 fd 103109 [08:27:20]save to /storage/0464/doc_00103109 [08:27:20]save last doc name /storage/0464/doc_00103109 to /storage/kkm_last_doc_name [08:27:20]save OK [08:27:20]Clear old archive folders... [08:27:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:27:20]tlvbuf is 002A2AE0 [08:27:20]SAM_PROTO_ClearQueue [08:27:20]wFMCommunicate request_size=4 [08:27:20]MH_SAM_APDU [08:27:20]CAPDU: 80 09 00 00 [08:27:20]Write to MH i2c: E2 08 00 71 17 80 09 00 00 00 00 00 00 FA [08:27:20]Write i2c OK [08:27:20]MH_I2C_Read... [08:27:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:27:20]Read from MH i2c: E2 [08:27:20]MH_I2C_Read... [08:27:20]Read from MH i2c: E2 03 00 [08:27:20]MH_I2C_Read... [08:27:20]Read from MH i2c: E2 03 00 71 17 00 90 00 FC [08:27:20]RAPDU: 90 00 [08:27:20]wFMCommunicate OK [08:27:20]SAM_PROTO_ClearQueue done [08:27:20]KKMCreateOFDPacket [08:27:20]OFDProtocolAddRootSTLVToBuf [08:27:20]FM_MakeSignedData [08:27:20]FM_MakeSignedData [08:27:20]SAM_PROTO_SignData [08:27:20]wFMCommunicate request_size=4 [08:27:20]MH_SAM_APDU [08:27:20]CAPDU: 80 0D 01 02 [08:27:20]Write to MH i2c: E2 08 00 72 17 80 0D 01 02 00 00 00 00 02 [08:27:20]Write i2c OK [08:27:20]MH_I2C_Read... [08:27:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:27:20]Read from MH i2c: E2 [08:27:20]MH_I2C_Read... [08:27:20]Read from MH i2c: E2 03 00 [08:27:20]MH_I2C_Read... [08:27:20]Read from MH i2c: E2 03 00 72 17 00 90 00 FD [08:27:20]RAPDU: 90 00 [08:27:20]wFMCommunicate OK [08:27:20]wFMCommunicate request_size=255 [08:27:20]MH_SAM_APDU [08: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 F8 34 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 E9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 EB 18 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 C5 92 01 00 35 04 06 00 79 BA 79 1C [08:27:20]Write to MH i2c: E2 02 01 73 17 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 F8 34 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 E9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 EB 18 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 C5 92 01 00 35 04 06 00 79 BA 79 1C 00 00 8A [08:27:20]Write i2c OK [08:27:20]MH_I2C_Read... [08:27:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:27:21]Read from MH i2c: E2 [08:27:21]MH_I2C_Read... [08:27:21]Read from MH i2c: E2 03 00 [08:27:21]MH_I2C_Read... [08:27:21]Read from MH i2c: E2 03 00 73 17 00 90 00 FE [08:27:21]RAPDU: 90 00 [08:27:21]wFMCommunicate OK [08:27:21]wFMCommunicate request_size=7 [08:27:21]MH_SAM_APDU [08:27:21]CAPDU: 80 0D 02 02 02 68 8F [08:27:21]Write to MH i2c: E2 0A 00 74 17 80 0D 02 02 02 00 68 8F 00 00 00 [08:27:21]Write i2c OK [08:27:21]MH_I2C_Read... [08:27:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:27:21]Read from MH i2c: E2 [08:27:21]MH_I2C_Read... [08:27:21]Read from MH i2c: E2 03 00 [08:27:21]MH_I2C_Read... [08:27:21]Read from MH i2c: E2 03 00 74 17 00 90 00 FF [08:27:21]RAPDU: 90 00 [08:27:21]wFMCommunicate OK [08:27:21]wFMCommunicate request_size=4 [08:27:21]MH_SAM_APDU [08:27:21]CAPDU: 80 0D 03 02 [08:27:21]Write to MH i2c: E2 08 00 75 17 80 0D 03 02 00 00 00 00 07 [08:27:21]Write i2c OK [08:27:21]MH_I2C_Read... [08:27:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:27:21]Read from MH i2c: E2 [08:27:21]MH_I2C_Read... [08:27:21]Read from MH i2c: E2 0B 00 [08:27:21]MH_I2C_Read... [08:27:21]Read from MH i2c: E2 0B 00 75 17 00 D2 F2 5D 95 F2 A2 FD DD 90 00 2C [08:27:21]RAPDU: D2 F2 5D 95 F2 A2 FD DD 90 00 [08:27:21]wFMCommunicate OK [08:27:21]SAM_PROTO_SignData done [08:27:21]FM_MakeSignedData done [08:27:21]CreateOFDProtocolMessage [08:27:21]wFMCommunicate request_size=4 [08:27:21]MH_SAM_APDU [08:27:21]CAPDU: 80 11 00 00 [08:27:21]Write to MH i2c: E2 08 00 76 17 80 11 00 00 00 00 00 00 07 [08:27:21]Write i2c OK [08:27:21]MH_I2C_Read... [08:27:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:27:21]Read from MH i2c: E2 [08:27:21]MH_I2C_Read... [08:27:21]Read from MH i2c: E2 17 00 [08:27:21]MH_I2C_Read... [08:27:21]Read from MH i2c: E2 17 00 76 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 5B [08:27:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [08:27:21]wFMCommunicate OK [08:27:21]CreateOFDProtocolMessage done [08:27:21]OFDSenderStorePacket 103109 [08:27:21]StoreOFDPacket docnum=103109 [08:27:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 38 E4 04 01 D3 A3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 34 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 E9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 EB 18 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 C5 92 01 00 35 04 06 00 79 BA 79 1C 68 8F D2 F2 5D 95 F2 A2 FD DD [08:27:21]CheckFolder [08:27:21]dirname=/storage/ofd_packets [08:27:21]CheckFolder done [08:27:21]ProducePacketName [08:27:21]name=ofd_packets/00103109 [08:27:21]NVStorageSaveData ofd_packets/00103109 [08:27:21]File name is /storage/ofd_packets/00103109 [08:27:21]Write 298 bytes [08:27:21]NVStorageSaveData done [08:27:21]OFDSenderStorePacket done [08:27:21]KKMCreateOFDPacket done [08:27:21]NVStorageSaveData kkm_last_timestamp [08:27:21]File name is /storage/kkm_last_timestamp [08:27:21]Write 4 bytes [08:27:21]NVStorageSaveData done [08:27:21]ExternCall_PrintAddStr [08:27:21]wPrintStart [08:27:21]Write to MH i2c: 01 00 00 77 17 8E [08:27:21]Write i2c OK [08:27:21]MH_I2C_Read... [08:27:21]Read from MH i2c: 01 [08:27:21]MH_I2C_Read... [08:27:21]Read from MH i2c: 01 07 00 [08:27:21]MH_I2C_Read... [08:27:21]Read from MH i2c: 01 07 00 77 17 00 00 00 00 00 FF 0F A3 [08:27:21]RasterBufferAndPrint [08:27:21]line Счет N : (1)160739 [08:27:21]line ИНН: 02508201610067 [08:27:21]line Контрольно-Кассовый Чек [08:27:21]line ПРОДАЖА [08:27:21]line ТРК (МРК, ГНК) : 13 [08:27:21]line Товар: 2710194210 [08:27:21]line ДТ-К-5 [08:27:21]line 13.560 * 73.80 [08:27:21]line = 1000.73 [08:27:21]line НДС 12% НСП 1% [08:27:21]line > о реализуемом товаре [08:27:21]line ОКРУГЛЕНИЕ: -0.73 [08:27:21]line ИТОГО: 1000.00 [08:27:21]line Внесено: 1000.00 [08:27:21]line СДАЧА: 0.00 [08:27:21]line НСП 1% : 8.86 [08:27:21]line НДС 12% : 106.27 [08:27:21]line Наличными: 1000.00 [08:27:21]line Безнал.: 0.00 [08:27:21]line Место: АЗС № 38 "Партнер Нефть" [08:27:21]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [08:27:21]line СНО: Общий режим [08:27:21]line Чек 20 13.08.2024 08:27 [08:27:21]line Смена: 464 ФФД: 1.0 [08:27:21]line ЗНМ: 0300000126 [08:27:21]line РНМ: 0000000000092718 [08:27:21]line Версия ККМ: 001 [08:27:21]line ФМ: 0000000000875058 [08:27:21]line ФД: 103109 [08:27:21]line ФПД: 133841802782863 [08:27:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T082723&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103109&fm=133841802782863&tin=02508201610067®Number=0000000000092718&sum=100000 [08:27:21]OFD Sender: Processing packet 103109 [packets to send 69, broken 68] [08:27:21]ProducePacketName [08:27:21]name=ofd_packets/00103109 [08:27:21]OFD Sender: To server: pG, [08:27:21]CommunicateWithHost lk.salyk.kg:30040 [08:27:21]ConnectInit lk.salyk.kg [08:27:21]written 0, free lines is 4095 [08:27:21]Connected sock=10 [08: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 35 30 35 38 0C 01 00 00 38 E4 04 01 D3 A3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 34 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 E9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 EB 18 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 C5 92 01 00 35 04 06 00 79 BA 79 1C 68 8F D2 F2 5D 95 F2 A2 FD DD [08:27:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 71 86 47 00 4B 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 35 30 35 38 10 04 04 00 C5 92 01 00 F4 03 04 00 5E BF BA 66 B6 04 01 00 00 67 0B E9 D4 E3 33 40 52 [08:27:21]CommunicateWithHost err = 0 [08:27:21]CheckOFDResponse [08:27:21]1017 (14) - 77093643461234 [08:27:21]1041 (16) - 0000000000875058 [08:27:21]1040 (4) - 103109 [08:27:21]1012 (4) - 13.08.2024 02:05 [08:27:21]1206 (1) - 0 [08:27:21]OFD Sender: Remove packet 103109 [08:27:21]ProducePacketName [08:27:21]name=ofd_packets/00103109 [08:27:21]NVStorageDeleteData [08:27:22]Write to MH i2c: 01 00 00 A2 17 B9 [08:27:22]Write i2c OK [08:27:22]MH_I2C_Read... [08:27:22]Read from MH i2c: 01 [08:27:22]MH_I2C_Read... [08:27:22]Read from MH i2c: 01 07 00 [08:27:22]MH_I2C_Read... [08:27:22]Read from MH i2c: 01 07 00 A2 17 00 00 00 00 00 D7 0C A3 [08:27:22]RasterBufferAndPrint [08:27:22]line [08:27:22]line [08:27:22]line [08:27:22]line [08:27:22]line [08:27:22]written 0, free lines is 3293 [08:27:22]MH_Cut [08:27:22]Write to MH i2c: D1 01 00 A9 17 01 92 [08:27:22]Write i2c OK [08:27:22]MH_I2C_Read... [08:27:22]Read from MH i2c: D1 [08:27:22]MH_I2C_Read... [08:27:22]Read from MH i2c: D1 01 00 [08:27:22]MH_I2C_Read... [08:27:22]Read from MH i2c: D1 01 00 A9 17 00 91 [08:27:22]Write to MH i2c: 01 00 00 AA 17 C1 [08:27:22]Write i2c OK [08:27:22]MH_I2C_Read... [08:27:22]OFD Sender: No OFD packet to send [08:27:22]*** Cut start [08:27:22]*** Purtial cut [08:27:22]*** Stage 1: CUTSNS_PIN = 1 [08:27:23]Read from MH i2c: 01 [08:27:23]MH_I2C_Read... [08:27:23]*** Stop cut motor [08:27:23]*** Cut end [08:27:23]Read from MH i2c: 01 07 00 [08:27:23]MH_I2C_Read... [08:27:23]Read from MH i2c: 01 07 00 AA 17 00 00 00 00 00 FF 0F D6 [08:27:23]process_action close_receipt done [08:27:23]requested_data is exist [08:27:23]produce_requested_data [08:27:23]requested_item fm.sn is exist - process it [08:27:23]wFMCommunicate request_size=4 [08:27:23]MH_SAM_APDU [08:27:23]CAPDU: 80 11 00 00 [08:27:23]Write to MH i2c: E2 08 00 AB 17 80 11 00 00 00 00 00 00 3C [08:27:23]Write i2c OK [08:27:23]MH_I2C_Read... [08:27:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:27:23]Read from MH i2c: E2 [08:27:23]MH_I2C_Read... [08:27:23]Read from MH i2c: E2 17 00 [08:27:23]MH_I2C_Read... [08:27:23]Read from MH i2c: E2 17 00 AB 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 90 [08:27:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [08:27:23]wFMCommunicate OK [08:27:23]requested_item fd.num is exist - process it [08:27:23]SAM_PROTO_GetFieldsCounters [08:27:23]wFMCommunicate request_size=4 [08:27:23]MH_SAM_APDU [08:27:23]CAPDU: 80 13 00 00 [08:27:23]Write to MH i2c: E2 08 00 AC 17 80 13 00 00 00 00 00 00 3F [08:27:23]Write i2c OK [08:27:23]MH_I2C_Read... [08:27:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:27:23]Read from MH i2c: E2 [08:27:23]MH_I2C_Read... [08:27:23]Read from MH i2c: E2 62 00 [08:27:23]MH_I2C_Read... [08:27:23]Read from MH i2c: E2 62 00 AC 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 C5 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [08: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 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 C5 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:27:23]wFMCommunicate OK [08:27:23]SAM_PROTO_GetFieldsCounters done [08:27:23]requested_item shift.num is exist - process it [08:27:23]requested_item shift.opened is exist - process it [08:27:23]req_shift_opened [08:27:23]FM_GetShiftState [08:27:23]SAM_PROTO_GetShiftState [08:27:23]wFMCommunicate request_size=4 [08:27:23]MH_SAM_APDU [08:27:23]CAPDU: 80 13 01 00 [08:27:23]Write to MH i2c: E2 08 00 AD 17 80 13 01 00 00 00 00 00 41 [08:27:23]Write i2c OK [08:27:23]MH_I2C_Read... [08:27:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:27:23]Read from MH i2c: E2 [08:27:23]MH_I2C_Read... [08:27:23]Read from MH i2c: E2 0E 00 [08:27:23]MH_I2C_Read... [08:27:23]Read from MH i2c: E2 0E 00 AD 17 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 5F [08:27:23]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [08:27:23]wFMCommunicate OK [08:27:23]SAM_PROTO_GetShiftState done [08:27:23]FM_GetShiftState done [08:27:23]req_shift_opened done [08:27:23]requested_item shift.open_date is exist - process it [08:27:23]req_shift_open_date [08:27:23]req_shift_open_date done [08:27:23]produce_requested_data done [08:27:23]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103109,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [08:27:23]process_action_free close_receipt [08:27:23]json_value_free [08:27:23]json_value_free done [08:27:23]process_json_proto returns [08:27:23]Send response to host [08:27:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103109,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [08:27:23]free response buf [08:27:23]execute_script done [08:27:23]execute_script returns [08:27:23]free content buf [08:27:23]Sock 7.Close socket [08:27:23]Sock 7.Thread stoped [08:27:27]OFD Sender: No OFD packet to send [08:27:32]OFD Sender: No OFD packet to send [08:27:37]OFD Sender: No OFD packet to send [08:27:42]OFD Sender: No OFD packet to send [08:27:47]OFD Sender: No OFD packet to send [08:27:52]OFD Sender: No OFD packet to send [08:27:57]OFD Sender: No OFD packet to send [08:28:02]OFD Sender: No OFD packet to send [08:28:07]OFD Sender: No OFD packet to send [08:28:12]OFD Sender: No OFD packet to send [08:28:17]OFD Sender: No OFD packet to send [08:28:22]OFD Sender: No OFD packet to send [08:28:27]OFD Sender: No OFD packet to send [08:28:32]OFD Sender: No OFD packet to send [08:28:37]OFD Sender: No OFD packet to send [08:28:42]OFD Sender: No OFD packet to send [08:28:47]OFD Sender: No OFD packet to send [08:28:52]OFD Sender: No OFD packet to send [08:28:57]OFD Sender: No OFD packet to send [08:29:02]OFD Sender: No OFD packet to send [08:29:07]OFD Sender: No OFD packet to send [08:29:12]OFD Sender: No OFD packet to send [08:29:17]OFD Sender: No OFD packet to send [08:29:22]OFD Sender: No OFD packet to send [08:29:27]OFD Sender: No OFD packet to send [08:29:32]OFD Sender: No OFD packet to send [08:29:37]OFD Sender: No OFD packet to send [08:29:42]OFD Sender: No OFD packet to send [08:29:47]OFD Sender: No OFD packet to send [08:29:52]OFD Sender: No OFD packet to send [08:29:57]OFD Sender: No OFD packet to send [08:30:02]OFD Sender: No OFD packet to send [08:30:07]OFD Sender: No OFD packet to send [08:30:12]OFD Sender: No OFD packet to send [08:30:17]OFD Sender: No OFD packet to send [08:30:22]OFD Sender: No OFD packet to send [08:30:27]OFD Sender: No OFD packet to send [08:30:32]OFD Sender: No OFD packet to send [08:30:37]OFD Sender: No OFD packet to send [08:30:42]OFD Sender: No OFD packet to send [08:30:47]OFD Sender: No OFD packet to send [08:30:52]OFD Sender: No OFD packet to send [08:30:57]OFD Sender: No OFD packet to send [08:31:02]OFD Sender: No OFD packet to send [08:31:07]OFD Sender: No OFD packet to send [08:31:12]OFD Sender: No OFD packet to send [08:31:17]OFD Sender: No OFD packet to send [08:31:22]OFD Sender: No OFD packet to send [08:31:27]OFD Sender: No OFD packet to send [08:31:32]OFD Sender: No OFD packet to send [08:31:37]OFD Sender: No OFD packet to send [08:31:42]OFD Sender: No OFD packet to send [08:31:47]OFD Sender: No OFD packet to send [08:31:52]OFD Sender: No OFD packet to send [08:31:57]OFD Sender: No OFD packet to send [08:32:02]OFD Sender: No OFD packet to send [08:32:07]OFD Sender: No OFD packet to send [08:32:12]OFD Sender: No OFD packet to send [08:32:17]OFD Sender: No OFD packet to send [08:32:22]OFD Sender: No OFD packet to send [08:32:27]OFD Sender: No OFD packet to send [08:32:32]OFD Sender: No OFD packet to send [08:32:37]OFD Sender: No OFD packet to send [08:32:42]OFD Sender: No OFD packet to send [08:32:47]OFD Sender: No OFD packet to send [08:32:52]OFD Sender: No OFD packet to send [08:32:57]OFD Sender: No OFD packet to send [08:33:02]OFD Sender: No OFD packet to send [08:33:07]OFD Sender: No OFD packet to send [08:33:12]OFD Sender: No OFD packet to send [08:33:17]OFD Sender: No OFD packet to send [08:33:22]OFD Sender: No OFD packet to send [08:33:27]OFD Sender: No OFD packet to send [08:33:32]OFD Sender: No OFD packet to send [08:33:37]OFD Sender: No OFD packet to send [08:33: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:23]OFD Sender: No OFD packet to send [08:37:28]OFD Sender: No OFD packet to send [08:37:33]OFD Sender: No OFD packet to send [08:37:38]OFD Sender: No OFD packet to send [08:37:43]OFD Sender: No OFD packet to send [08:37:48]OFD Sender: No OFD packet to send [08:37:53]OFD Sender: No OFD packet to send [08:37:58]OFD Sender: No OFD packet to send [08:38:03]OFD Sender: No OFD packet to send [08:38:08]OFD Sender: No OFD packet to send [08:38:13]OFD Sender: No OFD packet to send [08:38:18]OFD Sender: No OFD packet to send [08:38:23]OFD Sender: No OFD packet to send [08:38:28]OFD Sender: No OFD packet to send [08:38:33]OFD Sender: No OFD packet to send [08:38:38]OFD Sender: No OFD packet to send [08:38:43]OFD Sender: No OFD packet to send [08:38:48]OFD Sender: No OFD packet to send [08:38:53]OFD Sender: No OFD packet to send [08:38:58]OFD Sender: No OFD packet to send [08:39:03]OFD Sender: No OFD packet to send [08:39:08]OFD Sender: No OFD packet to send [08:39:13]OFD Sender: No OFD packet to send [08:39:18]OFD Sender: No OFD packet to send [08:39:23]OFD Sender: No OFD packet to send [08:39:28]OFD Sender: No OFD packet to send [08:39:33]OFD Sender: No OFD packet to send [08:39:38]OFD Sender: No OFD packet to send [08:39:43]OFD Sender: No OFD packet to send [08:39:48]OFD Sender: No OFD packet to send [08:39:53]OFD Sender: No OFD packet to send [08:39:58]OFD Sender: No OFD packet to send [08:40:03]OFD Sender: No OFD packet to send [08:40:08]OFD Sender: No OFD packet to send [08:40:13]OFD Sender: No OFD packet to send [08:40:18]OFD Sender: No OFD packet to send [08:40:23]OFD Sender: No OFD packet to send [08:40:28]OFD Sender: No OFD packet to send [08:40:33]OFD Sender: No OFD packet to send [08:40:38]OFD Sender: No OFD packet to send [08:40:43]OFD Sender: No OFD packet to send [08:40:48]OFD Sender: No OFD packet to send [08:40:53]OFD Sender: No OFD packet to send [08:40:58]OFD Sender: No OFD packet to send [08:41:03]OFD Sender: No OFD packet to send [08:41:08]OFD Sender: No OFD packet to send [08:41:12]accept exits with 9 [08:41:12]New connection [08:41:12]New thread 3066563940 created [08:41:12]Thread 3066707300 joined [08:41:12]Waiting for new connection... [08:41:12] Sock 9.Parse request [08:41:12]Sock 9.Check first char [08:41:12]Sock 9.First char is OK [08:41:12]request: POST /json_proto HTTP/1.0 [08:41:12]Method: POST [08:41:12]URL: /json_proto [08:41:12]Method is POST - this is cgi request [08:41:12]url: /json_proto [08:41:12]query_string will be loaded in cgi processing [08:41:12]execute_cgi json_proto POST (null) [08:41:12]execute_cgi path=json_proto method=POST [08:41:12]POST find Content-Length [08:41:12]Host: 172.17.58.3:8080 [08:41:12]Content-Length: 681 [08:41:12]Content-Type: application/json [08:41:12] [08:41:12]POST finish read [08:41:12]Found Content-Length = 681 [08:41:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160740", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:41:12]execute_script... [08:41: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)160740", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:41:12]POST & json_proto [08:41:12]process_json_proto [08:41:12]json parsed OK: [08:41:12]protocol is kg_v1.0 [08:41:12]action value=close_receipt [08:41:12]process_action close_receipt [08:41:12]cmd_close_receipt [08:41:12]MH_GetDate [08:41:12]Write to MH i2c: F0 00 00 AE 17 B4 [08:41:12]Write i2c OK [08:41:12]MH_I2C_Read... [08:41:12]Read from MH i2c: F0 [08:41:12]MH_I2C_Read... [08:41:12]Read from MH i2c: F0 09 00 [08:41:12]MH_I2C_Read... [08:41:12]Read from MH i2c: F0 09 00 AE 17 00 2C 1C BB 66 DC E4 6D 64 B7 [08:41:12]GetLastDocTimeStamp 1723537643 [08:41:12]current date 1723538476 [08:41:12]FM_GetShiftState [08:41:12]SAM_PROTO_GetShiftState [08:41:12]wFMCommunicate request_size=4 [08:41:12]MH_SAM_APDU [08:41:12]CAPDU: 80 13 01 00 [08:41:12]Write to MH i2c: E2 08 00 AF 17 80 13 01 00 00 00 00 00 43 [08:41:12]Write i2c OK [08:41:12]MH_I2C_Read... [08:41:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:12]Read from MH i2c: E2 [08:41:12]MH_I2C_Read... [08:41:12]Read from MH i2c: E2 0E 00 [08:41:12]MH_I2C_Read... [08:41:12]Read from MH i2c: E2 0E 00 AF 17 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 61 [08:41:12]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [08:41:12]wFMCommunicate OK [08:41:12]SAM_PROTO_GetShiftState done [08:41:12]FM_GetShiftState done [08:41:12]opened in 1723506770 [08:41:12]opened+sec_in_day 1723593170 [08:41:12]quantity*price = 100036 [08:41:12]sum+1 = 100037 [08:41:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 21 13.08.2024 08:41 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103110 ФПД: 61746043556600 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T084116&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103110&fm=61746043556600&tin=02508201610067®Number=0000000000092718&sum=100000 [08:41:13]StoreToDocumentArchive [08:41:13]shift 464 fd 103110 [08:41:13]save to /storage/0464/doc_00103110 [08:41:13]save last doc name /storage/0464/doc_00103110 to /storage/kkm_last_doc_name [08:41:13]save OK [08:41:13]Clear old archive folders... [08:41:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:41:13]tlvbuf is 0029DF60 [08:41:13]SAM_PROTO_ClearQueue [08:41:13]wFMCommunicate request_size=4 [08:41:13]MH_SAM_APDU [08:41:13]CAPDU: 80 09 00 00 [08:41:13]Write to MH i2c: E2 08 00 BC 17 80 09 00 00 00 00 00 00 45 [08:41:13]Write i2c OK [08:41:13]MH_I2C_Read... [08:41:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:41:13]Read from MH i2c: E2 [08:41:13]MH_I2C_Read... [08:41:13]Read from MH i2c: E2 03 00 [08:41:13]MH_I2C_Read... [08:41:13]Read from MH i2c: E2 03 00 BC 17 00 90 00 47 [08:41:13]RAPDU: 90 00 [08:41:13]wFMCommunicate OK [08:41:13]SAM_PROTO_ClearQueue done [08:41:13]KKMCreateOFDPacket [08:41:13]OFDProtocolAddRootSTLVToBuf [08:41:13]FM_MakeSignedData [08:41:13]FM_MakeSignedData [08:41:13]SAM_PROTO_SignData [08:41:13]wFMCommunicate request_size=4 [08:41:13]MH_SAM_APDU [08:41:13]CAPDU: 80 0D 01 02 [08:41:13]Write to MH i2c: E2 08 00 BD 17 80 0D 01 02 00 00 00 00 4D [08:41:13]Write i2c OK [08:41:13]MH_I2C_Read... [08:41:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:41:13]Read from MH i2c: E2 [08:41:13]MH_I2C_Read... [08:41:13]Read from MH i2c: E2 03 00 [08:41:13]MH_I2C_Read... [08:41:13]Read from MH i2c: E2 03 00 BD 17 00 90 00 48 [08:41:13]RAPDU: 90 00 [08:41:13]wFMCommunicate OK [08:41:13]wFMCommunicate request_size=255 [08:41:13]MH_SAM_APDU [08:41: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 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 2C 1C BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 C6 92 01 00 35 04 06 00 38 [08:41:13]Write to MH i2c: E2 02 01 BE 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 2C 1C BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 C6 92 01 00 35 04 06 00 38 00 00 51 [08:41:13]Write i2c OK [08:41:13]MH_I2C_Read... [08:41:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:14]Read from MH i2c: E2 [08:41:14]MH_I2C_Read... [08:41:14]Read from MH i2c: E2 03 00 [08:41:14]MH_I2C_Read... [08:41:14]Read from MH i2c: E2 03 00 BE 17 00 90 00 49 [08:41:14]RAPDU: 90 00 [08:41:14]wFMCommunicate OK [08:41:14]wFMCommunicate request_size=10 [08:41:14]MH_SAM_APDU [08:41:14]CAPDU: 80 0D 02 02 05 28 5E FE 12 F8 [08:41:14]Write to MH i2c: E2 0D 00 BF 17 80 0D 02 02 05 00 28 5E FE 12 F8 00 00 E8 [08:41:14]Write i2c OK [08:41:14]MH_I2C_Read... [08:41:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:14]Read from MH i2c: E2 [08:41:14]MH_I2C_Read... [08:41:14]Read from MH i2c: E2 03 00 [08:41:14]MH_I2C_Read... [08:41:14]Read from MH i2c: E2 03 00 BF 17 00 90 00 4A [08:41:14]RAPDU: 90 00 [08:41:14]wFMCommunicate OK [08:41:14]wFMCommunicate request_size=4 [08:41:14]MH_SAM_APDU [08:41:14]CAPDU: 80 0D 03 02 [08:41:14]Write to MH i2c: E2 08 00 C0 17 80 0D 03 02 00 00 00 00 52 [08:41:14]Write i2c OK [08:41:14]MH_I2C_Read... [08:41:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:41:14]Read from MH i2c: E2 [08:41:14]MH_I2C_Read... [08:41:14]Read from MH i2c: E2 0B 00 [08:41:14]MH_I2C_Read... [08:41:14]Read from MH i2c: E2 0B 00 C0 17 00 AB 35 B6 87 14 54 91 87 90 00 F0 [08:41:14]RAPDU: AB 35 B6 87 14 54 91 87 90 00 [08:41:14]wFMCommunicate OK [08:41:14]SAM_PROTO_SignData done [08:41:14]FM_MakeSignedData done [08:41:14]CreateOFDProtocolMessage [08:41:14]wFMCommunicate request_size=4 [08:41:14]MH_SAM_APDU [08:41:14]CAPDU: 80 11 00 00 [08:41:14]Write to MH i2c: E2 08 00 C1 17 80 11 00 00 00 00 00 00 52 [08:41:14]Write i2c OK [08:41:14]MH_I2C_Read... [08:41:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:14]Read from MH i2c: E2 [08:41:14]MH_I2C_Read... [08:41:14]Read from MH i2c: E2 17 00 [08:41:14]MH_I2C_Read... [08:41:14]Read from MH i2c: E2 17 00 C1 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 A6 [08:41:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [08:41:14]wFMCommunicate OK [08:41:14]CreateOFDProtocolMessage done [08:41:14]OFDSenderStorePacket 103110 [08:41:14]StoreOFDPacket docnum=103110 [08:41:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 EF 88 07 01 F0 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 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 2C 1C BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 C6 92 01 00 35 04 06 00 38 28 5E FE 12 F8 AB 35 B6 87 14 54 91 87 [08:41:14]CheckFolder [08:41:14]dirname=/storage/ofd_packets [08:41:14]CheckFolder done [08:41:14]ProducePacketName [08:41:14]name=ofd_packets/00103110 [08:41:14]NVStorageSaveData ofd_packets/00103110 [08:41:14]File name is /storage/ofd_packets/00103110 [08:41:14]Write 301 bytes [08:41:14]NVStorageSaveData done [08:41:14]OFDSenderStorePacket done [08:41:14]KKMCreateOFDPacket done [08:41:14]NVStorageSaveData kkm_last_timestamp [08:41:14]File name is /storage/kkm_last_timestamp [08:41:14]Write 4 bytes [08:41:14]NVStorageSaveData done [08:41:14]ExternCall_PrintAddStr [08:41:14]wPrintStart [08:41:14]Write to MH i2c: 01 00 00 C2 17 D9 [08:41:14]Write i2c OK [08:41:14]MH_I2C_Read... [08:41:14]Read from MH i2c: 01 [08:41:14]MH_I2C_Read... [08:41:14]Read from MH i2c: 01 07 00 [08:41:14]MH_I2C_Read... [08:41:14]Read from MH i2c: 01 07 00 C2 17 00 00 00 00 00 FF 0F EE [08:41:14]RasterBufferAndPrint [08:41:14]line Счет N : (1)160740 [08:41:14]line ИНН: 02508201610067 [08:41:14]line Контрольно-Кассовый Чек [08:41:14]line ПРОДАЖА [08:41:14]line ТРК (МРК, ГНК) : 7 [08:41:14]line Товар: 2710124130 [08:41:14]line Аи-92-К-5 [08:41:14]line 15.180 * 65.90 [08:41:14]line = 1000.36 [08:41:14]line НДС 12% НСП 1% [08:41:14]line > о реализуемом товаре [08:41:14]line ОКРУГЛЕНИЕ: -0.36 [08:41:14]line ИТОГО: 1000.00 [08:41:14]line Внесено: 1000.00 [08:41:14]line СДАЧА: 0.00 [08:41:14]line НСП 1% : 8.85 [08:41:14]line НДС 12% : 106.23 [08:41:14]line Наличными: 1000.00 [08:41:14]line Безнал.: 0.00 [08:41:14]line Место: АЗС № 38 "Партнер Нефть" [08:41:14]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [08:41:14]line СНО: Общий режим [08:41:14]line Чек 21 13.08.2024 08:41 [08:41:14]line Смена: 464 ФФД: 1.0 [08:41:14]line ЗНМ: 0300000126 [08:41:14]line РНМ: 0000000000092718 [08:41:14]line Версия ККМ: 001 [08:41:14]line ФМ: 0000000000875058 [08:41:14]line ФД: 103110 [08:41:14]line ФПД: 61746043556600 [08:41:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T084116&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103110&fm=61746043556600&tin=02508201610067®Number=0000000000092718&sum=100000 [08:41:14]OFD Sender: Processing packet 103110 [packets to send 69, broken 68] [08:41:14]ProducePacketName [08:41:14]name=ofd_packets/00103110 [08:41:14]OFD Sender: To server: pG, [08:41:14]CommunicateWithHost lk.salyk.kg:30040 [08:41:14]ConnectInit lk.salyk.kg [08:41:14]written 0, free lines is 4095 [08:41:14]Connected sock=11 [08:41:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 EF 88 07 01 F0 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 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 2C 1C BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 C6 92 01 00 35 04 06 00 38 28 5E FE 12 F8 AB 35 B6 87 14 54 91 87 [08:41:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 84 04 47 00 05 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 C6 92 01 00 F4 03 04 00 9F C2 BA 66 B6 04 01 00 00 35 98 3B 78 0E 16 3D A2 [08:41:14]CommunicateWithHost err = 0 [08:41:14]CheckOFDResponse [08:41:14]1017 (14) - 77093643461234 [08:41:14]1041 (16) - 0000000000875058 [08:41:14]1040 (4) - 103110 [08:41:14]1012 (4) - 13.08.2024 02:19 [08:41:14]1206 (1) - 0 [08:41:14]OFD Sender: Remove packet 103110 [08:41:14]ProducePacketName [08:41:14]name=ofd_packets/00103110 [08:41:14]NVStorageDeleteData [08:41:15]Write to MH i2c: 01 00 00 ED 17 04 [08:41:15]Write i2c OK [08:41:15]MH_I2C_Read... [08:41:15]Read from MH i2c: 01 [08:41:15]MH_I2C_Read... [08:41:15]Read from MH i2c: 01 07 00 [08:41:15]MH_I2C_Read... [08:41:15]Read from MH i2c: 01 07 00 ED 17 00 00 00 00 00 DC 0C F3 [08:41:15]RasterBufferAndPrint [08:41:15]line [08:41:15]line [08:41:15]line [08:41:15]line [08:41:15]line [08:41:15]written 0, free lines is 3298 [08:41:15]MH_Cut [08:41:15]Write to MH i2c: D1 01 00 F4 17 01 DD [08:41:15]Write i2c OK [08:41:15]MH_I2C_Read... [08:41:15]Read from MH i2c: D1 [08:41:15]MH_I2C_Read... [08:41:15]Read from MH i2c: D1 01 00 [08:41:15]MH_I2C_Read... [08:41:15]Read from MH i2c: D1 01 00 F4 17 00 DC [08:41:15]Write to MH i2c: 01 00 00 F5 17 0C [08:41:15]Write i2c OK [08:41:15]MH_I2C_Read... [08:41:15]OFD Sender: No OFD packet to send [08:41:15]*** Cut start [08:41:15]*** Purtial cut [08:41:15]*** CUTSNS_PIN = 0 [08:41:16]*** Stage 1: CUTSNS_PIN = 1 [08:41:17]Read from MH i2c: 01 [08:41:17]MH_I2C_Read... [08:41:17]*** Stop cut motor [08:41:17]*** Cut end [08:41:17]Read from MH i2c: 01 07 00 [08:41:17]MH_I2C_Read... [08:41:17]Read from MH i2c: 01 07 00 F5 17 00 00 00 00 00 FF 0F 21 [08:41:17]process_action close_receipt done [08:41:17]requested_data is exist [08:41:17]produce_requested_data [08:41:17]requested_item fm.sn is exist - process it [08:41:17]wFMCommunicate request_size=4 [08:41:17]MH_SAM_APDU [08:41:17]CAPDU: 80 11 00 00 [08:41:17]Write to MH i2c: E2 08 00 F6 17 80 11 00 00 00 00 00 00 87 [08:41:17]Write i2c OK [08:41:17]MH_I2C_Read... [08:41:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:17]Read from MH i2c: E2 [08:41:17]MH_I2C_Read... [08:41:17]Read from MH i2c: E2 17 00 [08:41:17]MH_I2C_Read... [08:41:17]Read from MH i2c: E2 17 00 F6 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 DB [08:41:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [08:41:17]wFMCommunicate OK [08:41:17]requested_item fd.num is exist - process it [08:41:17]SAM_PROTO_GetFieldsCounters [08:41:17]wFMCommunicate request_size=4 [08:41:17]MH_SAM_APDU [08:41:17]CAPDU: 80 13 00 00 [08:41:17]Write to MH i2c: E2 08 00 F7 17 80 13 00 00 00 00 00 00 8A [08:41:17]Write i2c OK [08:41:17]MH_I2C_Read... [08:41:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:41:18]Read from MH i2c: E2 [08:41:18]MH_I2C_Read... [08:41:18]Read from MH i2c: E2 62 00 [08:41:18]MH_I2C_Read... [08:41:18]Read from MH i2c: E2 62 00 F7 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 C6 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [08:41:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 C6 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:41:18]wFMCommunicate OK [08:41:18]SAM_PROTO_GetFieldsCounters done [08:41:18]requested_item shift.num is exist - process it [08:41:18]requested_item shift.opened is exist - process it [08:41:18]req_shift_opened [08:41:18]FM_GetShiftState [08:41:18]SAM_PROTO_GetShiftState [08:41:18]wFMCommunicate request_size=4 [08:41:18]MH_SAM_APDU [08:41:18]CAPDU: 80 13 01 00 [08:41:18]Write to MH i2c: E2 08 00 F8 17 80 13 01 00 00 00 00 00 8C [08:41:18]Write i2c OK [08:41:18]MH_I2C_Read... [08:41:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:18]Read from MH i2c: E2 [08:41:18]MH_I2C_Read... [08:41:18]Read from MH i2c: E2 0E 00 [08:41:18]MH_I2C_Read... [08:41:18]Read from MH i2c: E2 0E 00 F8 17 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 AA [08:41:18]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [08:41:18]wFMCommunicate OK [08:41:18]SAM_PROTO_GetShiftState done [08:41:18]FM_GetShiftState done [08:41:18]req_shift_opened done [08:41:18]requested_item shift.open_date is exist - process it [08:41:18]req_shift_open_date [08:41:18]req_shift_open_date done [08:41:18]produce_requested_data done [08:41:18]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103110,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [08:41:18]process_action_free close_receipt [08:41:18]json_value_free [08:41:18]json_value_free done [08:41:18]process_json_proto returns [08:41:18]Send response to host [08:41:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103110,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [08:41:18]free response buf [08:41:18]execute_script done [08:41:18]execute_script returns [08:41:18]free content buf [08:41:18]Sock 9.Close socket [08:41:18]Sock 9.Thread stoped [08:41:20]OFD Sender: No OFD packet to send [08:41:25]OFD Sender: No OFD packet to send [08:41:30]OFD Sender: No OFD packet to send [08:41:35]OFD Sender: No OFD packet to send [08:41:40]OFD Sender: No OFD packet to send [08:41:45]OFD Sender: No OFD packet to send [08:41:50]OFD Sender: No OFD packet to send [08:41:55]OFD Sender: No OFD packet to send [08:42:00]OFD Sender: No OFD packet to send [08:42:05]OFD Sender: No OFD packet to send [08:42:10]OFD Sender: No OFD packet to send [08:42:15]OFD Sender: No OFD packet to send [08:42:20]OFD Sender: No OFD packet to send [08:42:25]OFD Sender: No OFD packet to send [08:42:30]OFD Sender: No OFD packet to send [08:42:35]OFD Sender: No OFD packet to send [08:42:40]OFD Sender: No OFD packet to send [08:42:45]OFD Sender: No OFD packet to send [08:42:50]OFD Sender: No OFD packet to send [08:42:55]OFD Sender: No OFD packet to send [08:43:00]OFD Sender: No OFD packet to send [08:43:05]OFD Sender: No OFD packet to send [08:43:10]OFD Sender: No OFD packet to send [08:43:15]OFD Sender: No OFD packet to send [08:43:20]OFD Sender: No OFD packet to send [08:43:25]OFD Sender: No OFD packet to send [08:43:30]OFD Sender: No OFD packet to send [08:43:35]OFD Sender: No OFD packet to send [08:43:40]OFD Sender: No OFD packet to send [08:43:45]OFD Sender: No OFD packet to send [08:43:50]OFD Sender: No OFD packet to send [08:43:55]OFD Sender: No OFD packet to send [08:44:00]OFD Sender: No OFD packet to send [08:44:05]OFD Sender: No OFD packet to send [08:44:10]OFD Sender: No OFD packet to send [08:44:15]OFD Sender: No OFD packet to send [08:44:20]OFD Sender: No OFD packet to send [08:44:25]OFD Sender: No OFD packet to send [08:44:30]OFD Sender: No OFD packet to send [08:44:35]OFD Sender: No OFD packet to send [08:44:40]OFD Sender: No OFD packet to send [08:44:45]OFD Sender: No OFD packet to send [08:44:50]OFD Sender: No OFD packet to send [08:44:55]OFD Sender: No OFD packet to send [08:45:00]OFD Sender: No OFD packet to send [08:45:05]OFD Sender: No OFD packet to send [08:45:10]OFD Sender: No OFD packet to send [08:45:15]OFD Sender: No OFD packet to send [08:45:20]OFD Sender: No OFD packet to send [08:45:25]OFD Sender: No OFD packet to send [08:45:30]OFD Sender: No OFD packet to send [08:45:35]OFD Sender: No OFD packet to send [08:45:40]OFD Sender: No OFD packet to send [08:45:45]OFD Sender: No OFD packet to send [08:45:50]OFD Sender: No OFD packet to send [08:45:55]OFD Sender: No OFD packet to send [08:46:00]OFD Sender: No OFD packet to send [08:46:05]OFD Sender: No OFD packet to send [08:46:10]OFD Sender: No OFD packet to send [08:46:15]OFD Sender: No OFD packet to send [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:55]OFD Sender: No OFD packet to send [08:47:00]OFD Sender: No OFD packet to send [08:47:05]OFD Sender: No OFD packet to send [08:47:10]OFD Sender: No OFD packet to send [08:47:15]OFD Sender: No OFD packet to send [08:47:20]OFD Sender: No OFD packet to send [08:47:25]OFD Sender: No OFD packet to send [08:47:30]OFD Sender: No OFD packet to send [08:47:35]OFD Sender: No OFD packet to send [08:47:40]OFD Sender: No OFD packet to send [08:47:45]OFD Sender: No OFD packet to send [08:47:50]OFD Sender: No OFD packet to send [08:47:55]OFD Sender: No OFD packet to send [08:48:00]OFD Sender: No OFD packet to send [08:48:05]OFD Sender: No OFD packet to send [08:48:10]OFD Sender: No OFD packet to send [08:48:15]OFD Sender: No OFD packet to send [08:48:20]OFD Sender: No OFD packet to send [08:48:25]OFD Sender: No OFD packet to send [08:48:30]OFD Sender: No OFD packet to send [08:48:35]OFD Sender: No OFD packet to send [08:48:40]OFD Sender: No OFD packet to send [08:48:45]OFD Sender: No OFD packet to send [08:48:50]OFD Sender: No OFD packet to send [08:48:55]OFD Sender: No OFD packet to send [08:49:00]OFD Sender: No OFD packet to send [08:49:05]OFD Sender: No OFD packet to send [08:49:10]OFD Sender: No OFD packet to send [08:49:15]OFD Sender: No OFD packet to send [08:49:20]OFD Sender: No OFD packet to send [08:49:25]OFD Sender: No OFD packet to send [08:49:30]OFD Sender: No OFD packet to send [08:49:35]OFD Sender: No OFD packet to send [08:49:40]OFD Sender: No OFD packet to send [08:49:45]OFD Sender: No OFD packet to send [08:49:50]OFD Sender: No OFD packet to send [08:49:55]OFD Sender: No OFD packet to send [08:50:00]OFD Sender: No OFD packet to send [08:50:05]OFD Sender: No OFD packet to send [08:50:10]OFD Sender: No OFD packet to send [08:50:15]OFD Sender: No OFD packet to send [08:50:20]OFD Sender: No OFD packet to send [08:50:25]OFD Sender: No OFD packet to send [08:50:30]OFD Sender: No OFD packet to send [08:50:35]OFD Sender: No OFD packet to send [08:50:40]OFD Sender: No OFD packet to send [08:50:45]OFD Sender: No OFD packet to send [08:50:50]OFD Sender: No OFD packet to send [08:50:55]OFD Sender: No OFD packet to send [08:51:00]OFD Sender: No OFD packet to send [08:51:05]OFD Sender: No OFD packet to send [08:51:10]OFD Sender: No OFD packet to send [08:51:15]OFD Sender: No OFD packet to send [08:51:20]OFD Sender: No OFD packet to send [08:51:26]OFD Sender: No OFD packet to send [08:51:31]OFD Sender: No OFD packet to send [08:51:36]OFD Sender: No OFD packet to send [08:51:41]OFD Sender: No OFD packet to send [08:51:46]OFD Sender: No OFD packet to send [08:51:51]OFD Sender: No OFD packet to send [08:51:56]OFD Sender: No OFD packet to send [08:52:01]OFD Sender: No OFD packet to send [08:52:06]OFD Sender: No OFD packet to send [08:52:11]OFD Sender: No OFD packet to send [08:52:16]OFD Sender: No OFD packet to send [08:52:21]OFD Sender: No OFD packet to send [08:52:26]OFD Sender: No OFD packet to send [08:52:31]OFD Sender: No OFD packet to send [08:52:36]OFD Sender: No OFD packet to send [08:52:41]OFD Sender: No OFD packet to send [08:52:46]OFD Sender: No OFD packet to send [08:52:51]OFD Sender: No OFD packet to send [08:52:56]OFD Sender: No OFD packet to send [08:53:01]OFD Sender: No OFD packet to send [08:53:06]OFD Sender: No OFD packet to send [08:53:11]OFD Sender: No OFD packet to send [08:53:16]OFD Sender: No OFD packet to send [08:53:21]OFD Sender: No OFD packet to send [08:53:26]OFD Sender: No OFD packet to send [08:53:31]OFD Sender: No OFD packet to send [08:53:36]OFD Sender: No OFD packet to send [08:53:41]OFD Sender: No OFD packet to send [08:53:46]OFD Sender: No OFD packet to send [08:53:51]OFD Sender: No OFD packet to send [08:53:56]OFD Sender: No OFD packet to send [08:54:01]OFD Sender: No OFD packet to send [08:54:06]OFD Sender: No OFD packet to send [08:54:11]OFD Sender: No OFD packet to send [08:54:16]OFD Sender: No OFD packet to send [08:54:21]OFD Sender: No OFD packet to send [08:54:26]OFD Sender: No OFD packet to send [08:54:31]OFD Sender: No OFD packet to send [08:54:36]OFD Sender: No OFD packet to send [08:54:41]OFD Sender: No OFD packet to send [08:54:46]OFD Sender: No OFD packet to send [08:54:51]OFD Sender: No OFD packet to send [08:54:56]OFD Sender: No OFD packet to send [08:55:01]OFD Sender: No OFD packet to send [08:55:06]OFD Sender: No OFD packet to send [08:55:11]OFD Sender: No OFD packet to send [08:55:16]OFD Sender: No OFD packet to send [08:55:21]OFD Sender: No OFD packet to send [08:55:26]OFD Sender: No OFD packet to send [08:55:31]OFD Sender: No OFD packet to send [08:55:36]OFD Sender: No OFD packet to send [08:55:41]OFD Sender: No OFD packet to send [08:55:46]OFD Sender: No OFD packet to send [08:55:51]OFD Sender: No OFD packet to send [08:55:56]OFD Sender: No OFD packet to send [08:56:01]OFD Sender: No OFD packet to send [08:56:06]OFD Sender: No OFD packet to send [08:56:11]OFD Sender: No OFD packet to send [08:56:16]OFD Sender: No OFD packet to send [08:56:21]OFD Sender: No OFD packet to send [08:56:26]OFD Sender: No OFD packet to send [08:56:31]OFD Sender: No OFD packet to send [08:56:36]OFD Sender: No OFD packet to send [08:56:41]OFD Sender: No OFD packet to send [08:56:46]OFD Sender: No OFD packet to send [08:56:51]OFD Sender: No OFD packet to send [08:56:56]OFD Sender: No OFD packet to send [08:57:01]OFD Sender: No OFD packet to send [08:57:06]OFD Sender: No OFD packet to send [08:57:11]OFD Sender: No OFD packet to send [08:57:16]OFD Sender: No OFD packet to send [08:57:21]OFD Sender: No OFD packet to send [08:57:26]OFD Sender: No OFD packet to send [08:57:31]OFD Sender: No OFD packet to send [08:57:36]OFD Sender: No OFD packet to send [08:57:41]OFD Sender: No OFD packet to send [08:57:46]OFD Sender: No OFD packet to send [08:57:51]OFD Sender: No OFD packet to send [08:57:56]OFD Sender: No OFD packet to send [08:58:01]OFD Sender: No OFD packet to send [08:58:06]OFD Sender: No OFD packet to send [08:58:11]OFD Sender: No OFD packet to send [08:58:16]OFD Sender: No OFD packet to send [08:58:21]OFD Sender: No OFD packet to send [08:58:26]OFD Sender: No OFD packet to send [08:58:31]OFD Sender: No OFD packet to send [08:58:36]OFD Sender: No OFD packet to send [08:58:41]OFD Sender: No OFD packet to send [08:58:46]OFD Sender: No OFD packet to send [08:58:51]OFD Sender: No OFD packet to send [08:58:56]OFD Sender: No OFD packet to send [08:59:01]OFD Sender: No OFD packet to send [08:59:06]OFD Sender: No OFD packet to send [08:59:11]OFD Sender: No OFD packet to send [08:59:16]OFD Sender: No OFD packet to send [08:59:21]OFD Sender: No OFD packet to send [08:59:26]OFD Sender: No OFD packet to send [08:59:31]OFD Sender: No OFD packet to send [08:59:36]OFD Sender: No OFD packet to send [08:59:41]OFD Sender: No OFD packet to send [08:59:46]OFD Sender: No OFD packet to send [08:59:51]OFD Sender: No OFD packet to send [08:59:56]OFD Sender: No OFD packet to send [09:00:01]OFD Sender: No OFD packet to send [09:00:06]OFD Sender: No OFD packet to send [09:00:11]OFD Sender: No OFD packet to send [09:00:16]OFD Sender: No OFD packet to send [09:00:21]OFD Sender: No OFD packet to send [09:00:26]OFD Sender: No OFD packet to send [09:00:31]OFD Sender: No OFD packet to send [09:00:36]OFD Sender: No OFD packet to send [09:00:41]OFD Sender: No OFD packet to send [09:00:46]OFD Sender: No OFD packet to send [09:00:51]OFD Sender: No OFD packet to send [09:00:56]OFD Sender: No OFD packet to send [09:01:01]OFD Sender: No OFD packet to send [09:01:06]OFD Sender: No OFD packet to send [09:01:11]OFD Sender: No OFD packet to send [09:01:16]OFD Sender: No OFD packet to send [09:01:21]OFD Sender: No OFD packet to send [09:01:26]OFD Sender: No OFD packet to send [09:01:31]OFD Sender: No OFD packet to send [09:01:36]OFD Sender: No OFD packet to send [09:01:41]OFD Sender: No OFD packet to send [09:01:46]OFD Sender: No OFD packet to send [09:01:51]OFD Sender: No OFD packet to send [09:01:56]OFD Sender: No OFD packet to send [09:02:01]OFD Sender: No OFD packet to send [09:02:06]OFD Sender: No OFD packet to send [09:02:11]OFD Sender: No OFD packet to send [09:02:16]OFD Sender: No OFD packet to send [09:02:21]OFD Sender: No OFD packet to send [09:02:26]OFD Sender: No OFD packet to send [09:02:31]OFD Sender: No OFD packet to send [09:02:36]OFD Sender: No OFD packet to send [09:02:41]OFD Sender: No OFD packet to send [09:02:46]OFD Sender: No OFD packet to send [09:02:51]OFD Sender: No OFD packet to send [09:02:56]OFD Sender: No OFD packet to send [09:03:01]OFD Sender: No OFD packet to send [09:03:06]OFD Sender: No OFD packet to send [09:03:11]OFD Sender: No OFD packet to send [09:03:16]OFD Sender: No OFD packet to send [09:03:21]OFD Sender: No OFD packet to send [09:03:26]OFD Sender: No OFD packet to send [09:03:31]OFD Sender: No OFD packet to send [09:03:36]OFD Sender: No OFD packet to send [09:03:41]OFD Sender: No OFD packet to send [09:03:46]OFD Sender: No OFD packet to send [09:03:51]OFD Sender: No OFD packet to send [09:03:56]OFD Sender: No OFD packet to send [09:04:01]OFD Sender: No OFD packet to send [09:04:06]OFD Sender: No OFD packet to send [09:04:11]OFD Sender: No OFD packet to send [09:04:16]OFD Sender: No OFD packet to send [09:04:21]OFD Sender: No OFD packet to send [09:04:26]OFD Sender: No OFD packet to send [09:04:31]OFD Sender: No OFD packet to send [09:04:36]OFD Sender: No OFD packet to send [09:04:41]OFD Sender: No OFD packet to send [09:04:46]OFD Sender: No OFD packet to send [09:04:51]OFD Sender: No OFD packet to send [09:04:56]OFD Sender: No OFD packet to send [09:05:01]OFD Sender: No OFD packet to send [09:05:06]OFD Sender: No OFD packet to send [09:05:11]OFD Sender: No OFD packet to send [09:05:16]OFD Sender: No OFD packet to send [09:05:21]OFD Sender: No OFD packet to send [09:05:26]OFD Sender: No OFD packet to send [09:05:31]OFD Sender: No OFD packet to send [09:05:36]OFD Sender: No OFD packet to send [09:05:41]OFD Sender: No OFD packet to send [09:05:46]OFD Sender: No OFD packet to send [09:05:51]OFD Sender: No OFD packet to send [09:05:56]OFD Sender: No OFD packet to send [09:06:01]OFD Sender: No OFD packet to send [09:06:06]OFD Sender: No OFD packet to send [09:06:11]OFD Sender: No OFD packet to send [09:06:16]OFD Sender: No OFD packet to send [09:06:21]OFD Sender: No OFD packet to send [09:06:26]OFD Sender: No OFD packet to send [09:06:31]OFD Sender: No OFD packet to send [09:06:36]OFD Sender: No OFD packet to send [09:06:41]OFD Sender: No OFD packet to send [09:06:46]OFD Sender: No OFD packet to send [09:06:51]OFD Sender: No OFD packet to send [09:06:54]accept exits with 7 [09:06:54]New connection [09:06:54]New thread 3066707300 created [09:06:54]Thread 3066563940 joined [09:06:54]Waiting for new connection... [09:06:54] Sock 7.Parse request [09:06:54]Sock 7.Check first char [09:06:54]Sock 7.First char is OK [09:06:54]request: POST /json_proto HTTP/1.0 [09:06:54]Method: POST [09:06:54]URL: /json_proto [09:06:54]Method is POST - this is cgi request [09:06:54]url: /json_proto [09:06:54]query_string will be loaded in cgi processing [09:06:54]execute_cgi json_proto POST (null) [09:06:54]execute_cgi path=json_proto method=POST [09:06:54]POST find Content-Length [09:06:54]Host: 172.17.58.3:8080 [09:06:54]Content-Length: 676 [09:06:54]Content-Type: application/json [09:06:54] [09:06:54]POST finish read [09:06:54]Found Content-Length = 676 [09:06:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 3.950, "sum" : 260.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 260.00, "total" : 260.00, "payments": [ { "type": 0, "sum" : 260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:54]execute_script... [09:06: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)160741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 3.950, "sum" : 260.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 260.00, "total" : 260.00, "payments": [ { "type": 0, "sum" : 260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:54]POST & json_proto [09:06:54]process_json_proto [09:06:54]json parsed OK: [09:06:54]protocol is kg_v1.0 [09:06:54]action value=close_receipt [09:06:54]process_action close_receipt [09:06:54]cmd_close_receipt [09:06:54]MH_GetDate [09:06:54]Write to MH i2c: F0 00 00 F9 17 FF [09:06:54]Write i2c OK [09:06:54]MH_I2C_Read... [09:06:54]Read from MH i2c: F0 [09:06:54]MH_I2C_Read... [09:06:54]Read from MH i2c: F0 09 00 [09:06:54]MH_I2C_Read... [09:06:54]Read from MH i2c: F0 09 00 F9 17 00 32 22 BB 66 DC E4 6D 64 0E [09:06:54]GetLastDocTimeStamp 1723538476 [09:06:54]current date 1723540018 [09:06:54]FM_GetShiftState [09:06:54]SAM_PROTO_GetShiftState [09:06:54]wFMCommunicate request_size=4 [09:06:54]MH_SAM_APDU [09:06:54]CAPDU: 80 13 01 00 [09:06:54]Write to MH i2c: E2 08 00 FA 17 80 13 01 00 00 00 00 00 8E [09:06:54]Write i2c OK [09:06:54]MH_I2C_Read... [09:06:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:54]Read from MH i2c: E2 [09:06:54]MH_I2C_Read... [09:06:54]Read from MH i2c: E2 0E 00 [09:06:54]MH_I2C_Read... [09:06:54]Read from MH i2c: E2 0E 00 FA 17 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 AC [09:06:54]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [09:06:54]wFMCommunicate OK [09:06:54]SAM_PROTO_GetShiftState done [09:06:54]FM_GetShiftState done [09:06:54]opened in 1723506770 [09:06:54]opened+sec_in_day 1723593170 [09:06:54]quantity*price = 26030 [09:06:54]sum+1 = 26032 [09:06:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 260.00 Внесено: 260.00 СДАЧА: 0.00 НСП 1% : 2.30 НДС 12% : 27.64 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 22 13.08.2024 09:06 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103111 ФПД: 69783167820542 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T090658&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103111&fm=69783167820542&tin=02508201610067®Number=0000000000092718&sum=26000 [09:06:55]StoreToDocumentArchive [09:06:55]shift 464 fd 103111 [09:06:55]save to /storage/0464/doc_00103111 [09:06:55]save last doc name /storage/0464/doc_00103111 to /storage/kkm_last_doc_name [09:06:55]save OK [09:06:55]Clear old archive folders... [09:06:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:06:55]tlvbuf is B6E855C0 [09:06:55]SAM_PROTO_ClearQueue [09:06:55]wFMCommunicate request_size=4 [09:06:55]MH_SAM_APDU [09:06:55]CAPDU: 80 09 00 00 [09:06:55]Write to MH i2c: E2 08 00 07 18 80 09 00 00 00 00 00 00 91 [09:06:55]Write i2c OK [09:06:55]MH_I2C_Read... [09:06:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:06:55]Read from MH i2c: E2 [09:06:55]MH_I2C_Read... [09:06:55]Read from MH i2c: E2 03 00 [09:06:55]MH_I2C_Read... [09:06:55]Read from MH i2c: E2 03 00 07 18 00 90 00 93 [09:06:55]RAPDU: 90 00 [09:06:55]wFMCommunicate OK [09:06:55]SAM_PROTO_ClearQueue done [09:06:55]KKMCreateOFDPacket [09:06:55]OFDProtocolAddRootSTLVToBuf [09:06:55]FM_MakeSignedData [09:06:55]FM_MakeSignedData [09:06:55]SAM_PROTO_SignData [09:06:55]wFMCommunicate request_size=4 [09:06:55]MH_SAM_APDU [09:06:55]CAPDU: 80 0D 01 02 [09:06:55]Write to MH i2c: E2 08 00 08 18 80 0D 01 02 00 00 00 00 99 [09:06:55]Write i2c OK [09:06:55]MH_I2C_Read... [09:06:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:06:56]Read from MH i2c: E2 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: E2 03 00 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: E2 03 00 08 18 00 90 00 94 [09:06:56]RAPDU: 90 00 [09:06:56]wFMCommunicate OK [09:06:56]wFMCommunicate request_size=255 [09:06:56]MH_SAM_APDU [09:06: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 6E 0F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 AF 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 16 00 00 00 F4 03 04 00 32 22 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 C7 92 01 00 35 04 06 00 3F [09:06:56]Write to MH i2c: E2 02 01 09 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6E 0F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 AF 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 16 00 00 00 F4 03 04 00 32 22 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 C7 92 01 00 35 04 06 00 3F 00 00 A9 [09:06:56]Write i2c OK [09:06:56]MH_I2C_Read... [09:06:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:56]Read from MH i2c: E2 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: E2 03 00 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: E2 03 00 09 18 00 90 00 95 [09:06:56]RAPDU: 90 00 [09:06:56]wFMCommunicate OK [09:06:56]wFMCommunicate request_size=10 [09:06:56]MH_SAM_APDU [09:06:56]CAPDU: 80 0D 02 02 05 77 A8 ED E2 FE [09:06:56]Write to MH i2c: E2 0D 00 0A 18 80 0D 02 02 05 00 77 A8 ED E2 FE 00 00 92 [09:06:56]Write i2c OK [09:06:56]MH_I2C_Read... [09:06:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:56]Read from MH i2c: E2 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: E2 03 00 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: E2 03 00 0A 18 00 90 00 96 [09:06:56]RAPDU: 90 00 [09:06:56]wFMCommunicate OK [09:06:56]wFMCommunicate request_size=4 [09:06:56]MH_SAM_APDU [09:06:56]CAPDU: 80 0D 03 02 [09:06:56]Write to MH i2c: E2 08 00 0B 18 80 0D 03 02 00 00 00 00 9E [09:06:56]Write i2c OK [09:06:56]MH_I2C_Read... [09:06:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:06:56]Read from MH i2c: E2 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: E2 0B 00 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: E2 0B 00 0B 18 00 3E 46 1F 4F 14 86 0A 5E 90 00 93 [09:06:56]RAPDU: 3E 46 1F 4F 14 86 0A 5E 90 00 [09:06:56]wFMCommunicate OK [09:06:56]SAM_PROTO_SignData done [09:06:56]FM_MakeSignedData done [09:06:56]CreateOFDProtocolMessage [09:06:56]wFMCommunicate request_size=4 [09:06:56]MH_SAM_APDU [09:06:56]CAPDU: 80 11 00 00 [09:06:56]Write to MH i2c: E2 08 00 0C 18 80 11 00 00 00 00 00 00 9E [09:06:56]Write i2c OK [09:06:56]MH_I2C_Read... [09:06:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:56]Read from MH i2c: E2 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: E2 17 00 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: E2 17 00 0C 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 F2 [09:06:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [09:06:56]wFMCommunicate OK [09:06:56]CreateOFDProtocolMessage done [09:06:56]OFDSenderStorePacket 103111 [09:06:56]StoreOFDPacket docnum=103111 [09:06:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 5D 0F 07 01 95 C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6E 0F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 AF 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 16 00 00 00 F4 03 04 00 32 22 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 C7 92 01 00 35 04 06 00 3F 77 A8 ED E2 FE 3E 46 1F 4F 14 86 0A 5E [09:06:56]CheckFolder [09:06:56]dirname=/storage/ofd_packets [09:06:56]CheckFolder done [09:06:56]ProducePacketName [09:06:56]name=ofd_packets/00103111 [09:06:56]NVStorageSaveData ofd_packets/00103111 [09:06:56]File name is /storage/ofd_packets/00103111 [09:06:56]Write 301 bytes [09:06:56]NVStorageSaveData done [09:06:56]OFDSenderStorePacket done [09:06:56]KKMCreateOFDPacket done [09:06:56]NVStorageSaveData kkm_last_timestamp [09:06:56]File name is /storage/kkm_last_timestamp [09:06:56]Write 4 bytes [09:06:56]NVStorageSaveData done [09:06:56]ExternCall_PrintAddStr [09:06:56]wPrintStart [09:06:56]Write to MH i2c: 01 00 00 0D 18 25 [09:06:56]Write i2c OK [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: 01 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: 01 07 00 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: 01 07 00 0D 18 00 00 00 00 00 FF 0F 3A [09:06:56]RasterBufferAndPrint [09:06:56]line Счет N : (1)160741 [09:06:56]line ИНН: 02508201610067 [09:06:56]line Контрольно-Кассовый Чек [09:06:56]line ПРОДАЖА [09:06:56]line ТРК (МРК, ГНК) : 7 [09:06:56]line Товар: 2710124130 [09:06:56]line Аи-92-К-5 [09:06:56]line 3.950 * 65.90 [09:06:56]line = 260.31 [09:06:56]line НДС 12% НСП 1% [09:06:56]line > о реализуемом товаре [09:06:56]line ОКРУГЛЕНИЕ: -0.31 [09:06:56]line ИТОГО: 260.00 [09:06:56]line Внесено: 260.00 [09:06:56]line СДАЧА: 0.00 [09:06:56]line НСП 1% : 2.30 [09:06:56]line НДС 12% : 27.64 [09:06:56]line Наличными: 260.00 [09:06:56]line Безнал.: 0.00 [09:06:56]line Место: АЗС № 38 "Партнер Нефть" [09:06:56]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [09:06:56]line СНО: Общий режим [09:06:56]line Чек 22 13.08.2024 09:06 [09:06:56]line Смена: 464 ФФД: 1.0 [09:06:56]line ЗНМ: 0300000126 [09:06:56]line РНМ: 0000000000092718 [09:06:56]line Версия ККМ: 001 [09:06:56]line ФМ: 0000000000875058 [09:06:56]line ФД: 103111 [09:06:56]line ФПД: 69783167820542 [09:06:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T090658&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103111&fm=69783167820542&tin=02508201610067®Number=0000000000092718&sum=26000 [09:06:56]OFD Sender: Processing packet 103111 [packets to send 69, broken 68] [09:06:56]ProducePacketName [09:06:56]name=ofd_packets/00103111 [09:06:56]OFD Sender: To server: pG, [09:06:56]CommunicateWithHost lk.salyk.kg:30040 [09:06:56]ConnectInit lk.salyk.kg [09:06:56]written 0, free lines is 4095 [09:06:56]Connected sock=10 [09:06:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 5D 0F 07 01 95 C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6E 0F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 AF 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 16 00 00 00 F4 03 04 00 32 22 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 C7 92 01 00 35 04 06 00 3F 77 A8 ED E2 FE 3E 46 1F 4F 14 86 0A 5E [09:06:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 C9 B0 47 00 A6 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 C7 92 01 00 F4 03 04 00 A5 C8 BA 66 B6 04 01 00 00 CD 3D B2 4E B2 4A 04 FC [09:06:57]CommunicateWithHost err = 0 [09:06:57]CheckOFDResponse [09:06:57]1017 (14) - 77093643461234 [09:06:57]1041 (16) - 0000000000875058 [09:06:57]1040 (4) - 103111 [09:06:57]1012 (4) - 13.08.2024 02:44 [09:06:57]1206 (1) - 0 [09:06:57]OFD Sender: Remove packet 103111 [09:06:57]ProducePacketName [09:06:57]name=ofd_packets/00103111 [09:06:57]NVStorageDeleteData [09:06:57]Write to MH i2c: 01 00 00 38 18 50 [09:06:57]Write i2c OK [09:06:57]MH_I2C_Read... [09:06:57]Read from MH i2c: 01 [09:06:57]MH_I2C_Read... [09:06:57]Read from MH i2c: 01 07 00 [09:06:57]MH_I2C_Read... [09:06:57]Read from MH i2c: 01 07 00 38 18 00 00 00 00 00 DF 0C 42 [09:06:57]RasterBufferAndPrint [09:06:57]line [09:06:57]line [09:06:57]line [09:06:57]line [09:06:57]line [09:06:57]written 0, free lines is 3302 [09:06:57]MH_Cut [09:06:57]Write to MH i2c: D1 01 00 3F 18 01 29 [09:06:57]Write i2c OK [09:06:57]MH_I2C_Read... [09:06:57]Read from MH i2c: D1 [09:06:57]MH_I2C_Read... [09:06:57]Read from MH i2c: D1 01 00 [09:06:57]MH_I2C_Read... [09:06:57]Read from MH i2c: D1 01 00 3F 18 00 28 [09:06:57]Write to MH i2c: 01 00 00 40 18 58 [09:06:57]Write i2c OK [09:06:57]MH_I2C_Read... [09:06:57]OFD Sender: No OFD packet to send [09:06:58]*** Cut start [09:06:58]*** Purtial cut [09:06:58]*** Stage 1: CUTSNS_PIN = 1 [09:06:58]Read from MH i2c: 01 [09:06:58]MH_I2C_Read... [09:06:58]*** Stop cut motor [09:06:58]*** Cut end [09:06:58]Read from MH i2c: 01 07 00 [09:06:58]MH_I2C_Read... [09:06:58]Read from MH i2c: 01 07 00 40 18 00 00 00 00 00 FF 0F 6D [09:06:58]process_action close_receipt done [09:06:58]requested_data is exist [09:06:58]produce_requested_data [09:06:58]requested_item fm.sn is exist - process it [09:06:58]wFMCommunicate request_size=4 [09:06:58]MH_SAM_APDU [09:06:58]CAPDU: 80 11 00 00 [09:06:58]Write to MH i2c: E2 08 00 41 18 80 11 00 00 00 00 00 00 D3 [09:06:58]Write i2c OK [09:06:58]MH_I2C_Read... [09:06:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:58]Read from MH i2c: E2 [09:06:58]MH_I2C_Read... [09:06:58]Read from MH i2c: E2 17 00 [09:06:58]MH_I2C_Read... [09:06:58]Read from MH i2c: E2 17 00 41 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 27 [09:06:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [09:06:58]wFMCommunicate OK [09:06:58]requested_item fd.num is exist - process it [09:06:58]SAM_PROTO_GetFieldsCounters [09:06:58]wFMCommunicate request_size=4 [09:06:58]MH_SAM_APDU [09:06:58]CAPDU: 80 13 00 00 [09:06:58]Write to MH i2c: E2 08 00 42 18 80 13 00 00 00 00 00 00 D6 [09:06:58]Write i2c OK [09:06:58]MH_I2C_Read... [09:06:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:06:58]Read from MH i2c: E2 [09:06:58]MH_I2C_Read... [09:06:58]Read from MH i2c: E2 62 00 [09:06:58]MH_I2C_Read... [09:06:58]Read from MH i2c: E2 62 00 42 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 C7 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [09:06:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 C7 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:06:58]wFMCommunicate OK [09:06:58]SAM_PROTO_GetFieldsCounters done [09:06:58]requested_item shift.num is exist - process it [09:06:58]requested_item shift.opened is exist - process it [09:06:58]req_shift_opened [09:06:58]FM_GetShiftState [09:06:58]SAM_PROTO_GetShiftState [09:06:58]wFMCommunicate request_size=4 [09:06:58]MH_SAM_APDU [09:06:58]CAPDU: 80 13 01 00 [09:06:58]Write to MH i2c: E2 08 00 43 18 80 13 01 00 00 00 00 00 D8 [09:06:58]Write i2c OK [09:06:58]MH_I2C_Read... [09:06:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:58]Read from MH i2c: E2 [09:06:58]MH_I2C_Read... [09:06:58]Read from MH i2c: E2 0E 00 [09:06:58]MH_I2C_Read... [09:06:58]Read from MH i2c: E2 0E 00 43 18 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 F6 [09:06:58]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [09:06:58]wFMCommunicate OK [09:06:58]SAM_PROTO_GetShiftState done [09:06:58]FM_GetShiftState done [09:06:58]req_shift_opened done [09:06:58]requested_item shift.open_date is exist - process it [09:06:58]req_shift_open_date [09:06:58]req_shift_open_date done [09:06:58]produce_requested_data done [09:06:58]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103111,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [09:06:58]process_action_free close_receipt [09:06:58]json_value_free [09:06:58]json_value_free done [09:06:58]process_json_proto returns [09:06:58]Send response to host [09:06:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103111,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [09:06:58]free response buf [09:06:58]execute_script done [09:06:58]execute_script returns [09:06:58]free content buf [09:06:58]Sock 7.Close socket [09:06:58]Sock 7.Thread stoped [09:07:02]OFD Sender: No OFD packet to send [09:07:07]OFD Sender: No OFD packet to send [09:07:12]OFD Sender: No OFD packet to send [09:07:17]OFD Sender: No OFD packet to send [09:07:22]OFD Sender: No OFD packet to send [09:07:27]OFD Sender: No OFD packet to send [09:07:32]OFD Sender: No OFD packet to send [09:07:37]OFD Sender: No OFD packet to send [09:07:42]OFD Sender: No OFD packet to send [09:07:47]OFD Sender: No OFD packet to send [09:07:52]OFD Sender: No OFD packet to send [09:07:57]OFD Sender: No OFD packet to send [09:08:02]OFD Sender: No OFD packet to send [09:08:07]OFD Sender: No OFD packet to send [09:08:12]OFD Sender: No OFD packet to send [09:08:17]OFD Sender: No OFD packet to send [09:08:22]OFD Sender: No OFD packet to send [09:08:27]OFD Sender: No OFD packet to send [09:08:32]OFD Sender: No OFD packet to send [09:08:37]OFD Sender: No OFD packet to send [09:08:42]OFD Sender: No OFD packet to send [09:08:47]OFD Sender: No OFD packet to send [09:08:52]OFD Sender: No OFD packet to send [09:08:57]OFD Sender: No OFD packet to send [09:09:02]OFD Sender: No OFD packet to send [09:09:07]OFD Sender: No OFD packet to send [09:09:12]OFD Sender: No OFD packet to send [09:09:17]OFD Sender: No OFD packet to send [09:09:22]OFD Sender: No OFD packet to send [09:09:27]OFD Sender: No OFD packet to send [09:09:32]OFD Sender: No OFD packet to send [09:09:37]OFD Sender: No OFD packet to send [09:09:42]OFD Sender: No OFD packet to send [09:09:47]OFD Sender: No OFD packet to send [09:09:52]OFD Sender: No OFD packet to send [09:09:57]OFD Sender: No OFD packet to send [09:10:02]OFD Sender: No OFD packet to send [09:10:07]OFD Sender: No OFD packet to send [09:10:12]OFD Sender: No OFD packet to send [09:10:17]OFD Sender: No OFD packet to send [09:10:22]OFD Sender: No OFD packet to send [09:10:27]OFD Sender: No OFD packet to send [09:10:32]OFD Sender: No OFD packet to send [09:10:37]OFD Sender: No OFD packet to send [09:10:42]OFD Sender: No OFD packet to send [09:10:47]OFD Sender: No OFD packet to send [09:10:52]OFD Sender: No OFD packet to send [09:10:57]OFD Sender: No OFD packet to send [09:11:02]OFD Sender: No OFD packet to send [09:11:07]OFD Sender: No OFD packet to send [09:11:12]OFD Sender: No OFD packet to send [09:11:17]OFD Sender: No OFD packet to send [09:11:22]OFD Sender: No OFD packet to send [09:11:27]OFD Sender: No OFD packet to send [09:11:32]OFD Sender: No OFD packet to send [09:11:37]OFD Sender: No OFD packet to send [09:11:42]OFD Sender: No OFD packet to send [09:11:47]OFD Sender: No OFD packet to send [09:11:52]OFD Sender: No OFD packet to send [09:11:57]OFD Sender: No OFD packet to send [09:12:02]OFD Sender: No OFD packet to send [09:12:07]OFD Sender: No OFD packet to send [09:12:12]OFD Sender: No OFD packet to send [09:12:17]OFD Sender: No OFD packet to send [09:12:22]OFD Sender: No OFD packet to send [09:12:27]OFD Sender: No OFD packet to send [09:12:32]OFD Sender: No OFD packet to send [09:12:37]OFD Sender: No OFD packet to send [09:12:42]OFD Sender: No OFD packet to send [09:12:47]OFD Sender: No OFD packet to send [09:12:52]OFD Sender: No OFD packet to send [09:12:57]OFD Sender: No OFD packet to send [09:13:02]OFD Sender: No OFD packet to send [09:13:07]OFD Sender: No OFD packet to send [09:13:12]OFD Sender: No OFD packet to send [09:13:17]OFD Sender: No OFD packet to send [09:13:22]OFD Sender: No OFD packet to send [09:13:27]OFD Sender: No OFD packet to send [09:13:32]OFD Sender: No OFD packet to send [09:13:38]OFD Sender: No OFD packet to send [09:13:43]OFD Sender: No OFD packet to send [09:13:48]OFD Sender: No OFD packet to send [09:13:53]OFD Sender: No OFD packet to send [09:13:58]OFD Sender: No OFD packet to send [09:14:03]OFD Sender: No OFD packet to send [09:14:08]OFD Sender: No OFD packet to send [09:14:13]OFD Sender: No OFD packet to send [09:14:18]OFD Sender: No OFD packet to send [09:14:23]OFD Sender: No OFD packet to send [09:14:28]OFD Sender: No OFD packet to send [09:14:33]OFD Sender: No OFD packet to send [09:14:38]OFD Sender: No OFD packet to send [09:14:43]OFD Sender: No OFD packet to send [09:14:48]OFD Sender: No OFD packet to send [09:14:53]OFD Sender: No OFD packet to send [09:14:58]OFD Sender: No OFD packet to send [09:15:03]OFD Sender: No OFD packet to send [09:15:08]OFD Sender: No OFD packet to send [09:15:09]accept exits with 9 [09:15:09]New connection [09:15:09]New thread 3066563940 created [09:15:09]Thread 3066707300 joined [09:15:09]Waiting for new connection... [09:15:09] Sock 9.Parse request [09:15:09]Sock 9.Check first char [09:15:09]Sock 9.First char is OK [09:15:09]request: POST /json_proto HTTP/1.0 [09:15:09]Method: POST [09:15:09]URL: /json_proto [09:15:09]Method is POST - this is cgi request [09:15:09]url: /json_proto [09:15:09]query_string will be loaded in cgi processing [09:15:09]execute_cgi json_proto POST (null) [09:15:09]execute_cgi path=json_proto method=POST [09:15:09]POST find Content-Length [09:15:09]Host: 172.17.58.3:8080 [09:15:09]Content-Length: 677 [09:15:09]Content-Type: application/json [09:15:09] [09:15:09]POST finish read [09:15:09]Found Content-Length = 677 [09:15:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 10.170, "sum" : 670.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:09]execute_script... [09:15: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)160742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 10.170, "sum" : 670.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:09]POST & json_proto [09:15:09]process_json_proto [09:15:09]json parsed OK: [09:15:09]protocol is kg_v1.0 [09:15:09]action value=close_receipt [09:15:09]process_action close_receipt [09:15:09]cmd_close_receipt [09:15:09]MH_GetDate [09:15:09]Write to MH i2c: F0 00 00 44 18 4B [09:15:09]Write i2c OK [09:15:09]MH_I2C_Read... [09:15:09]Read from MH i2c: F0 [09:15:09]MH_I2C_Read... [09:15:09]Read from MH i2c: F0 09 00 [09:15:09]MH_I2C_Read... [09:15:09]Read from MH i2c: F0 09 00 44 18 00 20 24 BB 66 DC E4 6D 64 4A [09:15:09]GetLastDocTimeStamp 1723540018 [09:15:09]current date 1723540512 [09:15:09]FM_GetShiftState [09:15:09]SAM_PROTO_GetShiftState [09:15:09]wFMCommunicate request_size=4 [09:15:09]MH_SAM_APDU [09:15:09]CAPDU: 80 13 01 00 [09:15:09]Write to MH i2c: E2 08 00 45 18 80 13 01 00 00 00 00 00 DA [09:15:09]Write i2c OK [09:15:09]MH_I2C_Read... [09:15:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:09]Read from MH i2c: E2 [09:15:09]MH_I2C_Read... [09:15:09]Read from MH i2c: E2 0E 00 [09:15:09]MH_I2C_Read... [09:15:09]Read from MH i2c: E2 0E 00 45 18 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 F8 [09:15:09]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [09:15:09]wFMCommunicate OK [09:15:09]SAM_PROTO_GetShiftState done [09:15:09]FM_GetShiftState done [09:15:09]opened in 1723506770 [09:15:09]opened+sec_in_day 1723593170 [09:15:09]quantity*price = 67020 [09:15:09]sum+1 = 67021 [09:15:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 670.00 Внесено: 670.00 СДАЧА: 0.00 НСП 1% : 5.93 НДС 12% : 71.17 Наличными: 670.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 23 13.08.2024 09:15 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103112 ФПД: 128126648267250 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T091512&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103112&fm=128126648267250&tin=02508201610067®Number=0000000000092718&sum=67000 [09:15:10]StoreToDocumentArchive [09:15:10]shift 464 fd 103112 [09:15:10]save to /storage/0464/doc_00103112 [09:15:10]save last doc name /storage/0464/doc_00103112 to /storage/kkm_last_doc_name [09:15:10]save OK [09:15:10]Clear old archive folders... [09:15:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:15:10]tlvbuf is B6E85250 [09:15:10]SAM_PROTO_ClearQueue [09:15:10]wFMCommunicate request_size=4 [09:15:10]MH_SAM_APDU [09:15:10]CAPDU: 80 09 00 00 [09:15:10]Write to MH i2c: E2 08 00 52 18 80 09 00 00 00 00 00 00 DC [09:15:10]Write i2c OK [09:15:10]MH_I2C_Read... [09:15:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:15:10]Read from MH i2c: E2 [09:15:10]MH_I2C_Read... [09:15:10]Read from MH i2c: E2 03 00 [09:15:10]MH_I2C_Read... [09:15:10]Read from MH i2c: E2 03 00 52 18 00 90 00 DE [09:15:10]RAPDU: 90 00 [09:15:10]wFMCommunicate OK [09:15:10]SAM_PROTO_ClearQueue done [09:15:10]KKMCreateOFDPacket [09:15:10]OFDProtocolAddRootSTLVToBuf [09:15:10]FM_MakeSignedData [09:15:10]FM_MakeSignedData [09:15:10]SAM_PROTO_SignData [09:15:10]wFMCommunicate request_size=4 [09:15:10]MH_SAM_APDU [09:15:10]CAPDU: 80 0D 01 02 [09:15:10]Write to MH i2c: E2 08 00 53 18 80 0D 01 02 00 00 00 00 E4 [09:15:10]Write i2c OK [09:15:10]MH_I2C_Read... [09:15:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:15:10]Read from MH i2c: E2 [09:15:10]MH_I2C_Read... [09:15:10]Read from MH i2c: E2 03 00 [09:15:10]MH_I2C_Read... [09:15:10]Read from MH i2c: E2 03 00 53 18 00 90 00 DF [09:15:10]RAPDU: 90 00 [09:15:10]wFMCommunicate OK [09:15:10]wFMCommunicate request_size=255 [09:15:10]MH_SAM_APDU [09:15:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 27 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 CC 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 20 24 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 C8 92 01 00 35 04 06 00 74 [09:15:10]Write to MH i2c: E2 02 01 54 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 27 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 CC 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 20 24 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 C8 92 01 00 35 04 06 00 74 00 00 4E [09:15:10]Write i2c OK [09:15:10]MH_I2C_Read... [09:15:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:10]Read from MH i2c: E2 [09:15:10]MH_I2C_Read... [09:15:10]Read from MH i2c: E2 03 00 [09:15:10]MH_I2C_Read... [09:15:10]Read from MH i2c: E2 03 00 54 18 00 90 00 E0 [09:15:10]RAPDU: 90 00 [09:15:10]wFMCommunicate OK [09:15:10]wFMCommunicate request_size=10 [09:15:10]MH_SAM_APDU [09:15:10]CAPDU: 80 0D 02 02 05 87 CF 5B 31 F2 [09:15:10]Write to MH i2c: E2 0D 00 55 18 80 0D 02 02 05 00 87 CF 5B 31 F2 00 00 C5 [09:15:10]Write i2c OK [09:15:10]MH_I2C_Read... [09:15:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:10]Read from MH i2c: E2 [09:15:10]MH_I2C_Read... [09:15:10]Read from MH i2c: E2 03 00 [09:15:10]MH_I2C_Read... [09:15:10]Read from MH i2c: E2 03 00 55 18 00 90 00 E1 [09:15:10]RAPDU: 90 00 [09:15:10]wFMCommunicate OK [09:15:10]wFMCommunicate request_size=4 [09:15:10]MH_SAM_APDU [09:15:10]CAPDU: 80 0D 03 02 [09:15:10]Write to MH i2c: E2 08 00 56 18 80 0D 03 02 00 00 00 00 E9 [09:15:10]Write i2c OK [09:15:10]MH_I2C_Read... [09:15:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:15:10]Read from MH i2c: E2 [09:15:10]MH_I2C_Read... [09:15:10]Read from MH i2c: E2 0B 00 [09:15:10]MH_I2C_Read... [09:15:10]Read from MH i2c: E2 0B 00 56 18 00 1D 26 DC 99 5A 7C 14 7C 90 00 08 [09:15:10]RAPDU: 1D 26 DC 99 5A 7C 14 7C 90 00 [09:15:10]wFMCommunicate OK [09:15:10]SAM_PROTO_SignData done [09:15:10]FM_MakeSignedData done [09:15:10]CreateOFDProtocolMessage [09:15:10]wFMCommunicate request_size=4 [09:15:10]MH_SAM_APDU [09:15:10]CAPDU: 80 11 00 00 [09:15:10]Write to MH i2c: E2 08 00 57 18 80 11 00 00 00 00 00 00 E9 [09:15:10]Write i2c OK [09:15:10]MH_I2C_Read... [09:15:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:10]Read from MH i2c: E2 [09:15:10]MH_I2C_Read... [09:15:10]Read from MH i2c: E2 17 00 [09:15:10]MH_I2C_Read... [09:15:10]Read from MH i2c: E2 17 00 57 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 3D [09:15:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [09:15:10]wFMCommunicate OK [09:15:10]CreateOFDProtocolMessage done [09:15:10]OFDSenderStorePacket 103112 [09:15:10]StoreOFDPacket docnum=103112 [09:15:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 D1 5E 07 01 DE 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 BA 27 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 CC 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 20 24 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 C8 92 01 00 35 04 06 00 74 87 CF 5B 31 F2 1D 26 DC 99 5A 7C 14 7C [09:15:10]CheckFolder [09:15:10]dirname=/storage/ofd_packets [09:15:10]CheckFolder done [09:15:10]ProducePacketName [09:15:10]name=ofd_packets/00103112 [09:15:10]NVStorageSaveData ofd_packets/00103112 [09:15:10]File name is /storage/ofd_packets/00103112 [09:15:10]Write 301 bytes [09:15:10]NVStorageSaveData done [09:15:10]OFDSenderStorePacket done [09:15:10]KKMCreateOFDPacket done [09:15:10]NVStorageSaveData kkm_last_timestamp [09:15:10]File name is /storage/kkm_last_timestamp [09:15:10]Write 4 bytes [09:15:10]NVStorageSaveData done [09:15:10]ExternCall_PrintAddStr [09:15:10]wPrintStart [09:15:10]Write to MH i2c: 01 00 00 58 18 70 [09:15:10]Write i2c OK [09:15:10]MH_I2C_Read... [09:15:10]Read from MH i2c: 01 [09:15:10]MH_I2C_Read... [09:15:10]Read from MH i2c: 01 07 00 [09:15:10]MH_I2C_Read... [09:15:10]Read from MH i2c: 01 07 00 58 18 00 00 00 00 00 FF 0F 85 [09:15:10]RasterBufferAndPrint [09:15:10]line Счет N : (1)160742 [09:15:10]line ИНН: 02508201610067 [09:15:10]line Контрольно-Кассовый Чек [09:15:10]line ПРОДАЖА [09:15:10]line ТРК (МРК, ГНК) : 7 [09:15:10]line Товар: 2710124130 [09:15:10]line Аи-92-К-5 [09:15:10]line 10.170 * 65.90 [09:15:10]line = 670.20 [09:15:10]line НДС 12% НСП 1% [09:15:10]line > о реализуемом товаре [09:15:10]line ОКРУГЛЕНИЕ: -0.20 [09:15:10]line ИТОГО: 670.00 [09:15:10]line Внесено: 670.00 [09:15:10]line СДАЧА: 0.00 [09:15:10]line НСП 1% : 5.93 [09:15:10]line НДС 12% : 71.17 [09:15:10]line Наличными: 670.00 [09:15:10]line Безнал.: 0.00 [09:15:10]line Место: АЗС № 38 "Партнер Нефть" [09:15:10]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [09:15:10]line СНО: Общий режим [09:15:10]line Чек 23 13.08.2024 09:15 [09:15:10]line Смена: 464 ФФД: 1.0 [09:15:10]line ЗНМ: 0300000126 [09:15:10]line РНМ: 0000000000092718 [09:15:10]line Версия ККМ: 001 [09:15:10]line ФМ: 0000000000875058 [09:15:10]line ФД: 103112 [09:15:10]line ФПД: 128126648267250 [09:15:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T091512&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103112&fm=128126648267250&tin=02508201610067®Number=0000000000092718&sum=67000 [09:15:11]OFD Sender: Processing packet 103112 [packets to send 69, broken 68] [09:15:11]ProducePacketName [09:15:11]name=ofd_packets/00103112 [09:15:11]OFD Sender: To server: pG, [09:15:11]CommunicateWithHost lk.salyk.kg:30040 [09:15:11]ConnectInit lk.salyk.kg [09:15:11]written 0, free lines is 4095 [09:15:11]Connected sock=10 [09:15:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 D1 5E 07 01 DE 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 BA 27 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 CC 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 20 24 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 C8 92 01 00 35 04 06 00 74 87 CF 5B 31 F2 1D 26 DC 99 5A 7C 14 7C [09:15:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 7B 92 47 00 BF 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 C8 92 01 00 F4 03 04 00 94 CA BA 66 B6 04 01 00 00 23 9A F1 90 A9 33 3F 1B [09:15:11]CommunicateWithHost err = 0 [09:15:11]CheckOFDResponse [09:15:11]1017 (14) - 77093643461234 [09:15:11]1041 (16) - 0000000000875058 [09:15:11]1040 (4) - 103112 [09:15:11]1012 (4) - 13.08.2024 02:53 [09:15:11]1206 (1) - 0 [09:15:11]OFD Sender: Remove packet 103112 [09:15:11]ProducePacketName [09:15:11]name=ofd_packets/00103112 [09:15:11]NVStorageDeleteData [09:15:11]Write to MH i2c: 01 00 00 83 18 9B [09:15:11]Write i2c OK [09:15:11]MH_I2C_Read... [09:15:11]Read from MH i2c: 01 [09:15:11]MH_I2C_Read... [09:15:11]Read from MH i2c: 01 07 00 [09:15:11]MH_I2C_Read... [09:15:11]Read from MH i2c: 01 07 00 83 18 00 00 00 00 00 E5 0C 93 [09:15:11]RasterBufferAndPrint [09:15:11]line [09:15:11]line [09:15:11]line [09:15:11]line [09:15:11]line [09:15:11]written 0, free lines is 3307 [09:15:11]MH_Cut [09:15:11]Write to MH i2c: D1 01 00 8A 18 01 74 [09:15:11]Write i2c OK [09:15:11]MH_I2C_Read... [09:15:11]Read from MH i2c: D1 [09:15:11]MH_I2C_Read... [09:15:11]Read from MH i2c: D1 01 00 [09:15:11]MH_I2C_Read... [09:15:11]Read from MH i2c: D1 01 00 8A 18 00 73 [09:15:11]Write to MH i2c: 01 00 00 8B 18 A3 [09:15:11]Write i2c OK [09:15:11]MH_I2C_Read... [09:15:11]OFD Sender: No OFD packet to send [09:15:12]*** Cut start [09:15:12]*** Purtial cut [09:15:12]*** CUTSNS_PIN = 0 [09:15:12]*** Stage 1: CUTSNS_PIN = 1 [09:15:14]Read from MH i2c: 01 [09:15:14]MH_I2C_Read... [09:15:14]*** Stop cut motor [09:15:14]*** Cut end [09:15:14]Read from MH i2c: 01 07 00 [09:15:14]MH_I2C_Read... [09:15:14]Read from MH i2c: 01 07 00 8B 18 00 00 00 00 00 FF 0F B8 [09:15:14]process_action close_receipt done [09:15:14]requested_data is exist [09:15:14]produce_requested_data [09:15:14]requested_item fm.sn is exist - process it [09:15:14]wFMCommunicate request_size=4 [09:15:14]MH_SAM_APDU [09:15:14]CAPDU: 80 11 00 00 [09:15:14]Write to MH i2c: E2 08 00 8C 18 80 11 00 00 00 00 00 00 1E [09:15:14]Write i2c OK [09:15:14]MH_I2C_Read... [09:15:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:14]Read from MH i2c: E2 [09:15:14]MH_I2C_Read... [09:15:14]Read from MH i2c: E2 17 00 [09:15:14]MH_I2C_Read... [09:15:14]Read from MH i2c: E2 17 00 8C 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 72 [09:15:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [09:15:14]wFMCommunicate OK [09:15:14]requested_item fd.num is exist - process it [09:15:14]SAM_PROTO_GetFieldsCounters [09:15:14]wFMCommunicate request_size=4 [09:15:14]MH_SAM_APDU [09:15:14]CAPDU: 80 13 00 00 [09:15:14]Write to MH i2c: E2 08 00 8D 18 80 13 00 00 00 00 00 00 21 [09:15:14]Write i2c OK [09:15:14]MH_I2C_Read... [09:15:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:15:14]Read from MH i2c: E2 [09:15:14]MH_I2C_Read... [09:15:14]Read from MH i2c: E2 62 00 [09:15:14]MH_I2C_Read... [09:15:14]Read from MH i2c: E2 62 00 8D 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 C8 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [09:15:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 C8 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:15:14]wFMCommunicate OK [09:15:14]SAM_PROTO_GetFieldsCounters done [09:15:14]requested_item shift.num is exist - process it [09:15:14]requested_item shift.opened is exist - process it [09:15:14]req_shift_opened [09:15:14]FM_GetShiftState [09:15:14]SAM_PROTO_GetShiftState [09:15:14]wFMCommunicate request_size=4 [09:15:14]MH_SAM_APDU [09:15:14]CAPDU: 80 13 01 00 [09:15:14]Write to MH i2c: E2 08 00 8E 18 80 13 01 00 00 00 00 00 23 [09:15:14]Write i2c OK [09:15:14]MH_I2C_Read... [09:15:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:14]Read from MH i2c: E2 [09:15:14]MH_I2C_Read... [09:15:14]Read from MH i2c: E2 0E 00 [09:15:14]MH_I2C_Read... [09:15:14]Read from MH i2c: E2 0E 00 8E 18 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 41 [09:15:14]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [09:15:14]wFMCommunicate OK [09:15:14]SAM_PROTO_GetShiftState done [09:15:14]FM_GetShiftState done [09:15:14]req_shift_opened done [09:15:14]requested_item shift.open_date is exist - process it [09:15:14]req_shift_open_date [09:15:14]req_shift_open_date done [09:15:14]produce_requested_data done [09:15:14]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103112,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [09:15:14]process_action_free close_receipt [09:15:14]json_value_free [09:15:14]json_value_free done [09:15:14]process_json_proto returns [09:15:14]Send response to host [09:15:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103112,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [09:15:14]free response buf [09:15:14]execute_script done [09:15:14]execute_script returns [09:15:14]free content buf [09:15:14]Sock 9.Close socket [09:15:14]Sock 9.Thread stoped [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:46]OFD Sender: No OFD packet to send [09:16:51]OFD Sender: No OFD packet to send [09:16:56]OFD Sender: No OFD packet to send [09:17:01]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:37]accept exits with 7 [09:21:37]New connection [09:21:37]New thread 3066707300 created [09:21:37]Thread 3066563940 joined [09:21:37]Waiting for new connection... [09:21:37] Sock 7.Parse request [09:21:37]Sock 7.Check first char [09:21:37]Sock 7.First char is OK [09:21:37]request: POST /json_proto HTTP/1.0 [09:21:37]Method: POST [09:21:37]URL: /json_proto [09:21:37]Method is POST - this is cgi request [09:21:37]url: /json_proto [09:21:37]query_string will be loaded in cgi processing [09:21:37]execute_cgi json_proto POST (null) [09:21:37]execute_cgi path=json_proto method=POST [09:21:37]POST find Content-Length [09:21:37]Host: 172.17.58.3:8080 [09:21:37]Content-Length: 676 [09:21:37]Content-Type: application/json [09:21:37] [09:21:37]POST finish read [09:21:37]Found Content-Length = 676 [09:21:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:37]execute_script... [09:21: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)160744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:37]POST & json_proto [09:21:37]process_json_proto [09:21:37]json parsed OK: [09:21:37]protocol is kg_v1.0 [09:21:37]action value=close_receipt [09:21:37]process_action close_receipt [09:21:37]cmd_close_receipt [09:21:37]MH_GetDate [09:21:37]Write to MH i2c: F0 00 00 8F 18 96 [09:21:37]Write i2c OK [09:21:37]MH_I2C_Read... [09:21:37]Read from MH i2c: F0 [09:21:37]MH_I2C_Read... [09:21:37]Read from MH i2c: F0 09 00 [09:21:37]MH_I2C_Read... [09:21:37]Read from MH i2c: F0 09 00 8F 18 00 A5 25 BB 66 DC E4 6D 64 1B [09:21:37]GetLastDocTimeStamp 1723540512 [09:21:37]current date 1723540901 [09:21:37]FM_GetShiftState [09:21:37]SAM_PROTO_GetShiftState [09:21:37]wFMCommunicate request_size=4 [09:21:37]MH_SAM_APDU [09:21:37]CAPDU: 80 13 01 00 [09:21:37]Write to MH i2c: E2 08 00 90 18 80 13 01 00 00 00 00 00 25 [09:21:37]Write i2c OK [09:21:37]MH_I2C_Read... [09:21:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:37]Read from MH i2c: E2 [09:21:37]MH_I2C_Read... [09:21:37]Read from MH i2c: E2 0E 00 [09:21:37]MH_I2C_Read... [09:21:37]Read from MH i2c: E2 0E 00 90 18 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 43 [09:21:37]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [09:21:37]wFMCommunicate OK [09:21:37]SAM_PROTO_GetShiftState done [09:21:37]FM_GetShiftState done [09:21:37]opened in 1723506770 [09:21:37]opened+sec_in_day 1723593170 [09:21:37]quantity*price = 50018 [09:21:37]sum+1 = 50019 [09:21:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 24 13.08.2024 09:21 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103113 ФПД: 93550952144460 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T092141&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103113&fm=93550952144460&tin=02508201610067®Number=0000000000092718&sum=50000 [09:21:38]StoreToDocumentArchive [09:21:38]shift 464 fd 103113 [09:21:38]save to /storage/0464/doc_00103113 [09:21:38]save last doc name /storage/0464/doc_00103113 to /storage/kkm_last_doc_name [09:21:38]save OK [09:21:38]Clear old archive folders... [09:21:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:21:38]tlvbuf is 0029DDF0 [09:21:38]SAM_PROTO_ClearQueue [09:21:38]wFMCommunicate request_size=4 [09:21:38]MH_SAM_APDU [09:21:38]CAPDU: 80 09 00 00 [09:21:38]Write to MH i2c: E2 08 00 9D 18 80 09 00 00 00 00 00 00 27 [09:21:38]Write i2c OK [09:21:38]MH_I2C_Read... [09:21:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:21:38]Read from MH i2c: E2 [09:21:38]MH_I2C_Read... [09:21:38]Read from MH i2c: E2 03 00 [09:21:38]MH_I2C_Read... [09:21:38]Read from MH i2c: E2 03 00 9D 18 00 90 00 29 [09:21:38]RAPDU: 90 00 [09:21:38]wFMCommunicate OK [09:21:38]SAM_PROTO_ClearQueue done [09:21:38]KKMCreateOFDPacket [09:21:38]OFDProtocolAddRootSTLVToBuf [09:21:38]FM_MakeSignedData [09:21:38]FM_MakeSignedData [09:21:38]SAM_PROTO_SignData [09:21:38]wFMCommunicate request_size=4 [09:21:38]MH_SAM_APDU [09:21:38]CAPDU: 80 0D 01 02 [09:21:38]Write to MH i2c: E2 08 00 9E 18 80 0D 01 02 00 00 00 00 2F [09:21:38]Write i2c OK [09:21:38]MH_I2C_Read... [09:21:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:21:38]Read from MH i2c: E2 [09:21:38]MH_I2C_Read... [09:21:38]Read from MH i2c: E2 03 00 [09:21:38]MH_I2C_Read... [09:21:38]Read from MH i2c: E2 03 00 9E 18 00 90 00 2A [09:21:38]RAPDU: 90 00 [09:21:38]wFMCommunicate OK [09:21:38]wFMCommunicate request_size=255 [09:21:38]MH_SAM_APDU [09:21:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 A5 25 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 C9 92 01 00 35 04 06 00 55 [09:21:38]Write to MH i2c: E2 02 01 9F 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 A5 25 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 C9 92 01 00 35 04 06 00 55 00 00 36 [09:21:38]Write i2c OK [09:21:38]MH_I2C_Read... [09:21:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:39]Read from MH i2c: E2 [09:21:39]MH_I2C_Read... [09:21:39]Read from MH i2c: E2 03 00 [09:21:39]MH_I2C_Read... [09:21:39]Read from MH i2c: E2 03 00 9F 18 00 90 00 2B [09:21:39]RAPDU: 90 00 [09:21:39]wFMCommunicate OK [09:21:39]wFMCommunicate request_size=10 [09:21:39]MH_SAM_APDU [09:21:39]CAPDU: 80 0D 02 02 05 15 87 45 5E 4C [09:21:39]Write to MH i2c: E2 0D 00 A0 18 80 0D 02 02 05 00 15 87 45 5E 4C 00 00 C7 [09:21:39]Write i2c OK [09:21:39]MH_I2C_Read... [09:21:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:39]Read from MH i2c: E2 [09:21:39]MH_I2C_Read... [09:21:39]Read from MH i2c: E2 03 00 [09:21:39]MH_I2C_Read... [09:21:39]Read from MH i2c: E2 03 00 A0 18 00 90 00 2C [09:21:39]RAPDU: 90 00 [09:21:39]wFMCommunicate OK [09:21:39]wFMCommunicate request_size=4 [09:21:39]MH_SAM_APDU [09:21:39]CAPDU: 80 0D 03 02 [09:21:39]Write to MH i2c: E2 08 00 A1 18 80 0D 03 02 00 00 00 00 34 [09:21:39]Write i2c OK [09:21:39]MH_I2C_Read... [09:21:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:21:39]Read from MH i2c: E2 [09:21:39]MH_I2C_Read... [09:21:39]Read from MH i2c: E2 0B 00 [09:21:39]MH_I2C_Read... [09:21:39]Read from MH i2c: E2 0B 00 A1 18 00 10 71 50 44 BF 32 F4 9B 90 00 CA [09:21:39]RAPDU: 10 71 50 44 BF 32 F4 9B 90 00 [09:21:39]wFMCommunicate OK [09:21:39]SAM_PROTO_SignData done [09:21:39]FM_MakeSignedData done [09:21:39]CreateOFDProtocolMessage [09:21:39]wFMCommunicate request_size=4 [09:21:39]MH_SAM_APDU [09:21:39]CAPDU: 80 11 00 00 [09:21:39]Write to MH i2c: E2 08 00 A2 18 80 11 00 00 00 00 00 00 34 [09:21:39]Write i2c OK [09:21:39]MH_I2C_Read... [09:21:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:39]Read from MH i2c: E2 [09:21:39]MH_I2C_Read... [09:21:39]Read from MH i2c: E2 17 00 [09:21:39]MH_I2C_Read... [09:21:39]Read from MH i2c: E2 17 00 A2 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 88 [09:21:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [09:21:39]wFMCommunicate OK [09:21:39]CreateOFDProtocolMessage done [09:21:39]OFDSenderStorePacket 103113 [09:21:39]StoreOFDPacket docnum=103113 [09:21:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 48 15 07 01 15 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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 A5 25 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 C9 92 01 00 35 04 06 00 55 15 87 45 5E 4C 10 71 50 44 BF 32 F4 9B [09:21:39]CheckFolder [09:21:39]dirname=/storage/ofd_packets [09:21:39]CheckFolder done [09:21:39]ProducePacketName [09:21:39]name=ofd_packets/00103113 [09:21:39]NVStorageSaveData ofd_packets/00103113 [09:21:39]File name is /storage/ofd_packets/00103113 [09:21:39]Write 301 bytes [09:21:39]NVStorageSaveData done [09:21:39]OFDSenderStorePacket done [09:21:39]KKMCreateOFDPacket done [09:21:39]NVStorageSaveData kkm_last_timestamp [09:21:39]File name is /storage/kkm_last_timestamp [09:21:39]Write 4 bytes [09:21:39]NVStorageSaveData done [09:21:39]ExternCall_PrintAddStr [09:21:39]wPrintStart [09:21:39]Write to MH i2c: 01 00 00 A3 18 BB [09:21:39]Write i2c OK [09:21:39]MH_I2C_Read... [09:21:39]Read from MH i2c: 01 [09:21:39]MH_I2C_Read... [09:21:39]Read from MH i2c: 01 07 00 [09:21:39]MH_I2C_Read... [09:21:39]Read from MH i2c: 01 07 00 A3 18 00 00 00 00 00 FF 0F D0 [09:21:39]RasterBufferAndPrint [09:21:39]line Счет N : (1)160744 [09:21:39]line ИНН: 02508201610067 [09:21:39]line Контрольно-Кассовый Чек [09:21:39]line ПРОДАЖА [09:21:39]line ТРК (МРК, ГНК) : 7 [09:21:39]line Товар: 2710124130 [09:21:39]line Аи-92-К-5 [09:21:39]line 7.590 * 65.90 [09:21:39]line = 500.18 [09:21:39]line НДС 12% НСП 1% [09:21:39]line > о реализуемом товаре [09:21:39]line ОКРУГЛЕНИЕ: -0.18 [09:21:39]line ИТОГО: 500.00 [09:21:39]line Внесено: 500.00 [09:21:39]line СДАЧА: 0.00 [09:21:39]line НСП 1% : 4.43 [09:21:39]line НДС 12% : 53.12 [09:21:39]line Наличными: 500.00 [09:21:39]line Безнал.: 0.00 [09:21:39]line Место: АЗС № 38 "Партнер Нефть" [09:21:39]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [09:21:39]line СНО: Общий режим [09:21:39]line Чек 24 13.08.2024 09:21 [09:21:39]line Смена: 464 ФФД: 1.0 [09:21:39]line ЗНМ: 0300000126 [09:21:39]line РНМ: 0000000000092718 [09:21:39]line Версия ККМ: 001 [09:21:39]line ФМ: 0000000000875058 [09:21:39]line ФД: 103113 [09:21:39]line ФПД: 93550952144460 [09:21:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T092141&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103113&fm=93550952144460&tin=02508201610067®Number=0000000000092718&sum=50000 [09:21:39]OFD Sender: Processing packet 103113 [packets to send 69, broken 68] [09:21:39]ProducePacketName [09:21:39]name=ofd_packets/00103113 [09:21:39]OFD Sender: To server: pG, [09:21:39]CommunicateWithHost lk.salyk.kg:30040 [09:21:39]ConnectInit lk.salyk.kg [09:21:39]written 0, free lines is 4095 [09:21:39]Connected sock=10 [09:21:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 48 15 07 01 15 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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 A5 25 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 C9 92 01 00 35 04 06 00 55 15 87 45 5E 4C 10 71 50 44 BF 32 F4 9B [09:21:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 81 B3 47 00 7B FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 C9 92 01 00 F4 03 04 00 18 CC BA 66 B6 04 01 00 00 88 01 D5 BD B3 94 77 E6 [09:21:39]CommunicateWithHost err = 0 [09:21:39]CheckOFDResponse [09:21:39]1017 (14) - 77093643461234 [09:21:39]1041 (16) - 0000000000875058 [09:21:39]1040 (4) - 103113 [09:21:39]1012 (4) - 13.08.2024 02:59 [09:21:39]1206 (1) - 0 [09:21:39]OFD Sender: Remove packet 103113 [09:21:39]ProducePacketName [09:21:39]name=ofd_packets/00103113 [09:21:39]NVStorageDeleteData [09:21:40]Write to MH i2c: 01 00 00 CE 18 E6 [09:21:40]Write i2c OK [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: 01 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: 01 07 00 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: 01 07 00 CE 18 00 00 00 00 00 DA 0C D3 [09:21:40]RasterBufferAndPrint [09:21:40]line [09:21:40]line [09:21:40]line [09:21:40]line [09:21:40]line [09:21:40]written 0, free lines is 3296 [09:21:40]MH_Cut [09:21:40]Write to MH i2c: D1 01 00 D5 18 01 BF [09:21:40]Write i2c OK [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: D1 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: D1 01 00 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: D1 01 00 D5 18 00 BE [09:21:40]Write to MH i2c: 01 00 00 D6 18 EE [09:21:40]Write i2c OK [09:21:40]MH_I2C_Read... [09:21:40]OFD Sender: No OFD packet to send [09:21:40]*** Cut start [09:21:40]*** Purtial cut [09:21:40]*** Stage 1: CUTSNS_PIN = 1 [09:21:41]Read from MH i2c: 01 [09:21:41]MH_I2C_Read... [09:21:41]*** Stop cut motor [09:21:41]*** Cut end [09:21:41]Read from MH i2c: 01 07 00 [09:21:41]MH_I2C_Read... [09:21:41]Read from MH i2c: 01 07 00 D6 18 00 00 00 00 00 FF 0F 03 [09:21:41]process_action close_receipt done [09:21:41]requested_data is exist [09:21:41]produce_requested_data [09:21:41]requested_item fm.sn is exist - process it [09:21:41]wFMCommunicate request_size=4 [09:21:41]MH_SAM_APDU [09:21:41]CAPDU: 80 11 00 00 [09:21:41]Write to MH i2c: E2 08 00 D7 18 80 11 00 00 00 00 00 00 69 [09:21:41]Write i2c OK [09:21:41]MH_I2C_Read... [09:21:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:41]Read from MH i2c: E2 [09:21:41]MH_I2C_Read... [09:21:41]Read from MH i2c: E2 17 00 [09:21:41]MH_I2C_Read... [09:21:41]Read from MH i2c: E2 17 00 D7 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 BD [09:21:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [09:21:41]wFMCommunicate OK [09:21:41]requested_item fd.num is exist - process it [09:21:41]SAM_PROTO_GetFieldsCounters [09:21:41]wFMCommunicate request_size=4 [09:21:41]MH_SAM_APDU [09:21:41]CAPDU: 80 13 00 00 [09:21:41]Write to MH i2c: E2 08 00 D8 18 80 13 00 00 00 00 00 00 6C [09:21:41]Write i2c OK [09:21:41]MH_I2C_Read... [09:21:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:21:41]Read from MH i2c: E2 [09:21:41]MH_I2C_Read... [09:21:41]Read from MH i2c: E2 62 00 [09:21:41]MH_I2C_Read... [09:21:41]Read from MH i2c: E2 62 00 D8 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 C9 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [09:21:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 C9 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:21:41]wFMCommunicate OK [09:21:41]SAM_PROTO_GetFieldsCounters done [09:21:41]requested_item shift.num is exist - process it [09:21:41]requested_item shift.opened is exist - process it [09:21:41]req_shift_opened [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 D9 18 80 13 01 00 00 00 00 00 6E [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 D9 18 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 8C [09:21:41]RAPDU: 09 00 01 52 A0 BA 66 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]req_shift_opened done [09:21:41]requested_item shift.open_date is exist - process it [09:21:41]req_shift_open_date [09:21:41]req_shift_open_date done [09:21:41]produce_requested_data done [09:21:41]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103113,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [09:21:41]process_action_free close_receipt [09:21:41]json_value_free [09:21:41]json_value_free done [09:21:41]process_json_proto returns [09:21:41]Send response to host [09:21:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103113,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [09:21:41]free response buf [09:21:41]execute_script done [09:21:41]execute_script returns [09:21:41]free content buf [09:21:41]Sock 7.Close socket [09:21:41]Sock 7.Thread stoped [09:21:45]OFD Sender: No OFD packet to send [09:21:50]OFD Sender: No OFD packet to send [09:21:55]OFD Sender: No OFD packet to send [09:22:00]OFD Sender: No OFD packet to send [09:22:05]OFD Sender: No OFD packet to send [09:22:10]OFD Sender: No OFD packet to send [09:22:15]OFD Sender: No OFD packet to send [09:22:20]OFD Sender: No OFD packet to send [09:22:25]OFD Sender: No OFD packet to send [09:22:30]OFD Sender: No OFD packet to send [09:22:35]OFD Sender: No OFD packet to send [09:22:40]OFD Sender: No OFD packet to send [09:22:45]OFD Sender: No OFD packet to send [09:22:50]accept exits with 9 [09:22:50]New connection [09:22:50]New thread 3066563940 created [09:22:50]Thread 3066707300 joined [09:22:50]Waiting for new connection... [09:22:50] Sock 9.Parse request [09:22:50]Sock 9.Check first char [09:22:50]Sock 9.First char is OK [09:22:50]request: POST /json_proto HTTP/1.0 [09:22:50]Method: POST [09:22:50]URL: /json_proto [09:22:50]Method is POST - this is cgi request [09:22:50]url: /json_proto [09:22:50]query_string will be loaded in cgi processing [09:22:50]execute_cgi json_proto POST (null) [09:22:50]execute_cgi path=json_proto method=POST [09:22:50]POST find Content-Length [09:22:50]Host: 172.17.58.3:8080 [09:22:50]Content-Length: 681 [09:22:50]Content-Type: application/json [09:22:50] [09:22:50]POST finish read [09:22:50]Found Content-Length = 681 [09:22:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160743", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 4", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 49.152, "sum" : 3632.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 3632.00, "payments": [ { "type": 0, "sum" : 3632.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:50]execute_script... [09:22: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)160743", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 4", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 49.152, "sum" : 3632.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 3632.00, "payments": [ { "type": 0, "sum" : 3632.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:50]POST & json_proto [09:22:50]process_json_proto [09:22:50]json parsed OK: [09:22:50]protocol is kg_v1.0 [09:22:50]action value=close_receipt [09:22:50]process_action close_receipt [09:22:50]cmd_close_receipt [09:22:50]MH_GetDate [09:22:50]Write to MH i2c: F0 00 00 DA 18 E1 [09:22:50]Write i2c OK [09:22:50]MH_I2C_Read... [09:22:50]Read from MH i2c: F0 [09:22:50]MH_I2C_Read... [09:22:50]Read from MH i2c: F0 09 00 [09:22:50]MH_I2C_Read... [09:22:50]Read from MH i2c: F0 09 00 DA 18 00 EE 25 BB 66 DC E4 6D 64 AF [09:22:50]GetLastDocTimeStamp 1723540901 [09:22:50]current date 1723540974 [09:22:50]FM_GetShiftState [09:22:50]SAM_PROTO_GetShiftState [09:22:50]wFMCommunicate request_size=4 [09:22:50]MH_SAM_APDU [09:22:50]CAPDU: 80 13 01 00 [09:22:50]Write to MH i2c: E2 08 00 DB 18 80 13 01 00 00 00 00 00 70 [09:22:50]Write i2c OK [09:22:50]MH_I2C_Read... [09:22:50]OFD Sender: No OFD packet to send [09:22:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:50]Read from MH i2c: E2 [09:22:50]MH_I2C_Read... [09:22:50]Read from MH i2c: E2 0E 00 [09:22:50]MH_I2C_Read... [09:22:50]Read from MH i2c: E2 0E 00 DB 18 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 8E [09:22:50]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [09:22:50]wFMCommunicate OK [09:22:50]SAM_PROTO_GetShiftState done [09:22:50]FM_GetShiftState done [09:22:50]opened in 1723506770 [09:22:50]opened+sec_in_day 1723593170 [09:22:50]quantity*price = 363233 [09:22:50]sum+1 = 363234 [09:22:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 3632.00 Внесено: 5000.00 СДАЧА: 1368.00 НСП 1% : 32.14 НДС 12% : 385.73 Наличными: 3632.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 25 13.08.2024 09:22 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103114 ФПД: 124314995802622 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T092254&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103114&fm=124314995802622&tin=02508201610067®Number=0000000000092718&sum=363200 [09:22:51]StoreToDocumentArchive [09:22:51]shift 464 fd 103114 [09:22:51]save to /storage/0464/doc_00103114 [09:22:51]save last doc name /storage/0464/doc_00103114 to /storage/kkm_last_doc_name [09:22:51]save OK [09:22:51]Clear old archive folders... [09:22:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:22:51]tlvbuf is B6E6C2A0 [09:22:51]SAM_PROTO_ClearQueue [09:22:51]wFMCommunicate request_size=4 [09:22:51]MH_SAM_APDU [09:22:51]CAPDU: 80 09 00 00 [09:22:51]Write to MH i2c: E2 08 00 E8 18 80 09 00 00 00 00 00 00 72 [09:22:51]Write i2c OK [09:22:51]MH_I2C_Read... [09:22:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:22:51]Read from MH i2c: E2 [09:22:51]MH_I2C_Read... [09:22:51]Read from MH i2c: E2 03 00 [09:22:51]MH_I2C_Read... [09:22:51]Read from MH i2c: E2 03 00 E8 18 00 90 00 74 [09:22:51]RAPDU: 90 00 [09:22:51]wFMCommunicate OK [09:22:51]SAM_PROTO_ClearQueue done [09:22:51]KKMCreateOFDPacket [09:22:51]OFDProtocolAddRootSTLVToBuf [09:22:51]FM_MakeSignedData [09:22:51]FM_MakeSignedData [09:22:51]SAM_PROTO_SignData [09:22:51]wFMCommunicate request_size=4 [09:22:51]MH_SAM_APDU [09:22:51]CAPDU: 80 0D 01 02 [09:22:51]Write to MH i2c: E2 08 00 E9 18 80 0D 01 02 00 00 00 00 7A [09:22:51]Write i2c OK [09:22:51]MH_I2C_Read... [09:22:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:22:51]Read from MH i2c: E2 [09:22:51]MH_I2C_Read... [09:22:51]Read from MH i2c: E2 03 00 [09:22:51]MH_I2C_Read... [09:22:51]Read from MH i2c: E2 03 00 E9 18 00 90 00 75 [09:22:51]RAPDU: 90 00 [09:22:51]wFMCommunicate OK [09:22:51]wFMCommunicate request_size=255 [09:22:51]MH_SAM_APDU [09:22:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 00 C0 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 E1 8A 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 8A 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 96 00 00 00 00 07 04 06 00 C0 8A 05 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 EE 25 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 CA 92 01 00 35 04 06 00 71 [09:22:51]Write to MH i2c: E2 02 01 EA 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 00 C0 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 E1 8A 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 8A 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 96 00 00 00 00 07 04 06 00 C0 8A 05 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 EE 25 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 CA 92 01 00 35 04 06 00 71 00 00 1C [09:22:51]Write i2c OK [09:22:51]MH_I2C_Read... [09:22:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:51]Read from MH i2c: E2 [09:22:51]MH_I2C_Read... [09:22:51]Read from MH i2c: E2 03 00 [09:22:51]MH_I2C_Read... [09:22:51]Read from MH i2c: E2 03 00 EA 18 00 90 00 76 [09:22:51]RAPDU: 90 00 [09:22:51]wFMCommunicate OK [09:22:51]wFMCommunicate request_size=10 [09:22:51]MH_SAM_APDU [09:22:51]CAPDU: 80 0D 02 02 05 10 57 2A 41 FE [09:22:51]Write to MH i2c: E2 0D 00 EB 18 80 0D 02 02 05 00 10 57 2A 41 FE 00 00 57 [09:22:51]Write i2c OK [09:22:51]MH_I2C_Read... [09:22:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:51]Read from MH i2c: E2 [09:22:51]MH_I2C_Read... [09:22:51]Read from MH i2c: E2 03 00 [09:22:51]MH_I2C_Read... [09:22:51]Read from MH i2c: E2 03 00 EB 18 00 90 00 77 [09:22:51]RAPDU: 90 00 [09:22:51]wFMCommunicate OK [09:22:51]wFMCommunicate request_size=4 [09:22:51]MH_SAM_APDU [09:22:51]CAPDU: 80 0D 03 02 [09:22:51]Write to MH i2c: E2 08 00 EC 18 80 0D 03 02 00 00 00 00 7F [09:22:51]Write i2c OK [09:22:51]MH_I2C_Read... [09:22:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:22:52]Read from MH i2c: E2 [09:22:52]MH_I2C_Read... [09:22:52]Read from MH i2c: E2 0B 00 [09:22:52]MH_I2C_Read... [09:22:52]Read from MH i2c: E2 0B 00 EC 18 00 31 96 4C D3 47 1A E6 A5 90 00 52 [09:22:52]RAPDU: 31 96 4C D3 47 1A E6 A5 90 00 [09:22:52]wFMCommunicate OK [09:22:52]SAM_PROTO_SignData done [09:22:52]FM_MakeSignedData done [09:22:52]CreateOFDProtocolMessage [09:22:52]wFMCommunicate request_size=4 [09:22:52]MH_SAM_APDU [09:22:52]CAPDU: 80 11 00 00 [09:22:52]Write to MH i2c: E2 08 00 ED 18 80 11 00 00 00 00 00 00 7F [09:22:52]Write i2c OK [09:22:52]MH_I2C_Read... [09:22:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:52]Read from MH i2c: E2 [09:22:52]MH_I2C_Read... [09:22:52]Read from MH i2c: E2 17 00 [09:22:52]MH_I2C_Read... [09:22:52]Read from MH i2c: E2 17 00 ED 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 D3 [09:22:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [09:22:52]wFMCommunicate OK [09:22:52]CreateOFDProtocolMessage done [09:22:52]OFDSenderStorePacket 103114 [09:22:52]StoreOFDPacket docnum=103114 [09:22:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 32 41 07 01 97 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 00 C0 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 E1 8A 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 8A 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 96 00 00 00 00 07 04 06 00 C0 8A 05 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 EE 25 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 CA 92 01 00 35 04 06 00 71 10 57 2A 41 FE 31 96 4C D3 47 1A E6 A5 [09:22:52]CheckFolder [09:22:52]dirname=/storage/ofd_packets [09:22:52]CheckFolder done [09:22:52]ProducePacketName [09:22:52]name=ofd_packets/00103114 [09:22:52]NVStorageSaveData ofd_packets/00103114 [09:22:52]File name is /storage/ofd_packets/00103114 [09:22:52]Write 301 bytes [09:22:52]NVStorageSaveData done [09:22:52]OFDSenderStorePacket done [09:22:52]KKMCreateOFDPacket done [09:22:52]NVStorageSaveData kkm_last_timestamp [09:22:52]File name is /storage/kkm_last_timestamp [09:22:52]Write 4 bytes [09:22:52]NVStorageSaveData done [09:22:52]ExternCall_PrintAddStr [09:22:52]wPrintStart [09:22:52]Write to MH i2c: 01 00 00 EE 18 06 [09:22:52]Write i2c OK [09:22:52]MH_I2C_Read... [09:22:52]Read from MH i2c: 01 [09:22:52]MH_I2C_Read... [09:22:52]Read from MH i2c: 01 07 00 [09:22:52]MH_I2C_Read... [09:22:52]Read from MH i2c: 01 07 00 EE 18 00 00 00 00 00 FF 0F 1B [09:22:52]RasterBufferAndPrint [09:22:52]line Счет N : (1)160743 [09:22:52]line ИНН: 02508201610067 [09:22:52]line Контрольно-Кассовый Чек [09:22:52]line ПРОДАЖА [09:22:52]line ТРК (МРК, ГНК) : 4 [09:22:52]line Товар: 2710124500 [09:22:52]line Аи-95-К-5 [09:22:52]line 49.152 * 73.90 [09:22:52]line = 3632.33 [09:22:52]line НДС 12% НСП 1% [09:22:52]line > о реализуемом товаре [09:22:52]line ОКРУГЛЕНИЕ: -0.33 [09:22:52]line ИТОГО: 3632.00 [09:22:52]line Внесено: 5000.00 [09:22:52]line СДАЧА: 1368.00 [09:22:52]line НСП 1% : 32.14 [09:22:52]line НДС 12% : 385.73 [09:22:52]line Наличными: 3632.00 [09:22:52]line Безнал.: 0.00 [09:22:52]line Место: АЗС № 38 "Партнер Нефть" [09:22:52]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [09:22:52]line СНО: Общий режим [09:22:52]line Чек 25 13.08.2024 09:22 [09:22:52]line Смена: 464 ФФД: 1.0 [09:22:52]line ЗНМ: 0300000126 [09:22:52]line РНМ: 0000000000092718 [09:22:52]line Версия ККМ: 001 [09:22:52]line ФМ: 0000000000875058 [09:22:52]line ФД: 103114 [09:22:52]line ФПД: 124314995802622 [09:22:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T092254&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103114&fm=124314995802622&tin=02508201610067®Number=0000000000092718&sum=363200 [09:22:52]OFD Sender: Processing packet 103114 [packets to send 69, broken 68] [09:22:52]ProducePacketName [09:22:52]name=ofd_packets/00103114 [09:22:52]OFD Sender: To server: pG, [09:22:52]CommunicateWithHost lk.salyk.kg:30040 [09:22:52]ConnectInit lk.salyk.kg [09:22:52]written 0, free lines is 4095 [09:22:52]Connected sock=11 [09:22:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 32 41 07 01 97 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 00 C0 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 E1 8A 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 8A 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 96 00 00 00 00 07 04 06 00 C0 8A 05 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 EE 25 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 CA 92 01 00 35 04 06 00 71 10 57 2A 41 FE 31 96 4C D3 47 1A E6 A5 [09:22:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 D4 1F 47 00 24 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 CA 92 01 00 F4 03 04 00 61 CC BA 66 B6 04 01 00 00 3F C4 4F 0F DD FC A0 88 [09:22:52]CommunicateWithHost err = 0 [09:22:52]CheckOFDResponse [09:22:52]1017 (14) - 77093643461234 [09:22:52]1041 (16) - 0000000000875058 [09:22:52]1040 (4) - 103114 [09:22:52]1012 (4) - 13.08.2024 03:00 [09:22:52]1206 (1) - 0 [09:22:52]OFD Sender: Remove packet 103114 [09:22:52]ProducePacketName [09:22:52]name=ofd_packets/00103114 [09:22:52]NVStorageDeleteData [09:22:52]Write to MH i2c: 01 00 00 19 19 32 [09:22:52]Write i2c OK [09:22:52]MH_I2C_Read... [09:22:52]Read from MH i2c: 01 [09:22:52]MH_I2C_Read... [09:22:52]Read from MH i2c: 01 07 00 [09:22:52]MH_I2C_Read... [09:22:52]Read from MH i2c: 01 07 00 19 19 00 00 00 00 00 EE 0C 33 [09:22:52]RasterBufferAndPrint [09:22:52]line [09:22:52]line [09:22:52]line [09:22:52]line [09:22:52]line [09:22:52]written 0, free lines is 3317 [09:22:52]MH_Cut [09:22:52]Write to MH i2c: D1 01 00 20 19 01 0B [09:22:52]Write i2c OK [09:22:52]MH_I2C_Read... [09:22:52]Read from MH i2c: D1 [09:22:52]MH_I2C_Read... [09:22:52]Read from MH i2c: D1 01 00 [09:22:52]MH_I2C_Read... [09:22:52]Read from MH i2c: D1 01 00 20 19 00 0A [09:22:52]Write to MH i2c: 01 00 00 21 19 3A [09:22:52]Write i2c OK [09:22:52]MH_I2C_Read... [09:22:53]OFD Sender: No OFD packet to send [09:22:53]*** Cut start [09:22:53]*** Purtial cut [09:22:53]*** CUTSNS_PIN = 0 [09:22:53]*** Stage 1: CUTSNS_PIN = 1 [09:22:55]Read from MH i2c: 01 [09:22:55]MH_I2C_Read... [09:22:55]*** Stop cut motor [09:22:55]*** Cut end [09:22:55]Read from MH i2c: 01 07 00 [09:22:55]MH_I2C_Read... [09:22:55]Read from MH i2c: 01 07 00 21 19 00 00 00 00 00 FF 0F 4F [09:22:55]process_action close_receipt done [09:22:55]requested_data is exist [09:22:55]produce_requested_data [09:22:55]requested_item fm.sn is exist - process it [09:22:55]wFMCommunicate request_size=4 [09:22:55]MH_SAM_APDU [09:22:55]CAPDU: 80 11 00 00 [09:22:55]Write to MH i2c: E2 08 00 22 19 80 11 00 00 00 00 00 00 B5 [09:22:55]Write i2c OK [09:22:55]MH_I2C_Read... [09:22:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:55]Read from MH i2c: E2 [09:22:55]MH_I2C_Read... [09:22:55]Read from MH i2c: E2 17 00 [09:22:55]MH_I2C_Read... [09:22:55]Read from MH i2c: E2 17 00 22 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 09 [09:22:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [09:22:55]wFMCommunicate OK [09:22:55]requested_item fd.num is exist - process it [09:22:55]SAM_PROTO_GetFieldsCounters [09:22:55]wFMCommunicate request_size=4 [09:22:55]MH_SAM_APDU [09:22:55]CAPDU: 80 13 00 00 [09:22:55]Write to MH i2c: E2 08 00 23 19 80 13 00 00 00 00 00 00 B8 [09:22:55]Write i2c OK [09:22:55]MH_I2C_Read... [09:22:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:22:55]Read from MH i2c: E2 [09:22:55]MH_I2C_Read... [09:22:55]Read from MH i2c: E2 62 00 [09:22:55]MH_I2C_Read... [09:22:55]Read from MH i2c: E2 62 00 23 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 CA 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [09:22:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 CA 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:22:55]wFMCommunicate OK [09:22:55]SAM_PROTO_GetFieldsCounters done [09:22:55]requested_item shift.num is exist - process it [09:22:55]requested_item shift.opened is exist - process it [09:22:55]req_shift_opened [09:22:55]FM_GetShiftState [09:22:55]SAM_PROTO_GetShiftState [09:22:55]wFMCommunicate request_size=4 [09:22:55]MH_SAM_APDU [09:22:55]CAPDU: 80 13 01 00 [09:22:55]Write to MH i2c: E2 08 00 24 19 80 13 01 00 00 00 00 00 BA [09:22:55]Write i2c OK [09:22:55]MH_I2C_Read... [09:22:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:55]Read from MH i2c: E2 [09:22:55]MH_I2C_Read... [09:22:55]Read from MH i2c: E2 0E 00 [09:22:55]MH_I2C_Read... [09:22:55]Read from MH i2c: E2 0E 00 24 19 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 D8 [09:22:55]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [09:22:55]wFMCommunicate OK [09:22:55]SAM_PROTO_GetShiftState done [09:22:55]FM_GetShiftState done [09:22:55]req_shift_opened done [09:22:55]requested_item shift.open_date is exist - process it [09:22:55]req_shift_open_date [09:22:55]req_shift_open_date done [09:22:55]produce_requested_data done [09:22:55]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103114,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [09:22:55]process_action_free close_receipt [09:22:55]json_value_free [09:22:55]json_value_free done [09:22:55]process_json_proto returns [09:22:55]Send response to host [09:22:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103114,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [09:22:55]free response buf [09:22:55]execute_script done [09:22:55]execute_script returns [09:22:55]free content buf [09:22:55]Sock 9.Close socket [09:22:55]Sock 9.Thread stoped [09:22:58]OFD Sender: No OFD packet to send [09:23:03]OFD Sender: No OFD packet to send [09:23:08]OFD Sender: No OFD packet to send [09:23:13]OFD Sender: No OFD packet to send [09:23:18]OFD Sender: No OFD packet to send [09:23:23]OFD Sender: No OFD packet to send [09:23:28]OFD Sender: No OFD packet to send [09:23:33]OFD Sender: No OFD packet to send [09:23:38]OFD Sender: No OFD packet to send [09:23:43]OFD Sender: No OFD packet to send [09:23:48]OFD Sender: No OFD packet to send [09:23:53]OFD Sender: No OFD packet to send [09:23:58]OFD Sender: No OFD packet to send [09:24:03]OFD Sender: No OFD packet to send [09:24:08]OFD Sender: No OFD packet to send [09:24:13]OFD Sender: No OFD packet to send [09:24:18]OFD Sender: No OFD packet to send [09:24:23]OFD Sender: No OFD packet to send [09:24:28]OFD Sender: No OFD packet to send [09:24:33]OFD Sender: No OFD packet to send [09:24:38]OFD Sender: No OFD packet to send [09:24:43]OFD Sender: No OFD packet to send [09:24:48]OFD Sender: No OFD packet to send [09:24:53]OFD Sender: No OFD packet to send [09:24:58]OFD Sender: No OFD packet to send [09:25:03]OFD Sender: No OFD packet to send [09:25:08]OFD Sender: No OFD packet to send [09:25:13]OFD Sender: No OFD packet to send [09:25:18]OFD Sender: No OFD packet to send [09:25:23]OFD Sender: No OFD packet to send [09:25:28]OFD Sender: No OFD packet to send [09:25:33]OFD Sender: No OFD packet to send [09:25:38]OFD Sender: No OFD packet to send [09:25:43]OFD Sender: No OFD packet to send [09:25:48]OFD Sender: No OFD packet to send [09:25:53]OFD Sender: No OFD packet to send [09:25:58]OFD Sender: No OFD packet to send [09:26:03]OFD Sender: No OFD packet to send [09:26:08]OFD Sender: No OFD packet to send [09:26:13]OFD Sender: No OFD packet to send [09:26:18]OFD Sender: No OFD packet to send [09:26:23]OFD Sender: No OFD packet to send [09:26:28]OFD Sender: No OFD packet to send [09:26:33]OFD Sender: No OFD packet to send [09:26:38]OFD Sender: No OFD packet to send [09:26:43]OFD Sender: No OFD packet to send [09:26:48]OFD Sender: No OFD packet to send [09:26:53]OFD Sender: No OFD packet to send [09:26:58]OFD Sender: No OFD packet to send [09:27:03]OFD Sender: No OFD packet to send [09:27:08]OFD Sender: No OFD packet to send [09:27:13]OFD Sender: No OFD packet to send [09:27:18]OFD Sender: No OFD packet to send [09:27:23]OFD Sender: No OFD packet to send [09:27:28]OFD Sender: No OFD packet to send [09:27:33]OFD Sender: No OFD packet to send [09:27:36]accept exits with 7 [09:27:36]New connection [09:27:36]New thread 3066707300 created [09:27:36]Thread 3066563940 joined [09:27:36]Waiting for new connection... [09:27:36] Sock 7.Parse request [09:27:36]Sock 7.Check first char [09:27:36]Sock 7.First char is OK [09:27:36]request: POST /json_proto HTTP/1.0 [09:27:36]Method: POST [09:27:36]URL: /json_proto [09:27:36]Method is POST - this is cgi request [09:27:36]url: /json_proto [09:27:36]query_string will be loaded in cgi processing [09:27:36]execute_cgi json_proto POST (null) [09:27:36]execute_cgi path=json_proto method=POST [09:27:36]POST find Content-Length [09:27:36]Host: 172.17.58.3:8080 [09:27:36]Content-Length: 676 [09:27:36]Content-Type: application/json [09:27:36] [09:27:36]POST finish read [09:27:36]Found Content-Length = 676 [09:27:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160745", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 4.560, "sum" : 300.50, "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:27:36]execute_script... [09:27: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)160745", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 4.560, "sum" : 300.50, "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:27:36]POST & json_proto [09:27:36]process_json_proto [09:27:36]json parsed OK: [09:27:36]protocol is kg_v1.0 [09:27:36]action value=close_receipt [09:27:36]process_action close_receipt [09:27:36]cmd_close_receipt [09:27:36]MH_GetDate [09:27:36]Write to MH i2c: F0 00 00 25 19 2D [09:27:36]Write i2c OK [09:27:36]MH_I2C_Read... [09:27:36]Read from MH i2c: F0 [09:27:36]MH_I2C_Read... [09:27:36]Read from MH i2c: F0 09 00 [09:27:36]MH_I2C_Read... [09:27:36]Read from MH i2c: F0 09 00 25 19 00 0C 27 BB 66 DC E4 6D 64 1B [09:27:36]GetLastDocTimeStamp 1723540974 [09:27:36]current date 1723541260 [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 26 19 80 13 01 00 00 00 00 00 BC [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 26 19 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 DA [09:27:36]RAPDU: 09 00 01 52 A0 BA 66 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]opened in 1723506770 [09:27:36]opened+sec_in_day 1723593170 [09:27:36]quantity*price = 30050 [09:27:36]sum+1 = 30051 [09:27:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 26 13.08.2024 09:27 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103115 ФПД: 2559971644030 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T092740&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103115&fm=2559971644030&tin=02508201610067®Number=0000000000092718&sum=30000 [09:27:37]StoreToDocumentArchive [09:27:37]shift 464 fd 103115 [09:27:37]save to /storage/0464/doc_00103115 [09:27:37]save last doc name /storage/0464/doc_00103115 to /storage/kkm_last_doc_name [09:27:37]save OK [09:27:37]Clear old archive folders... [09:27:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:27:37]tlvbuf is B6D6C5B0 [09:27:37]SAM_PROTO_ClearQueue [09:27:37]wFMCommunicate request_size=4 [09:27:37]MH_SAM_APDU [09:27:37]CAPDU: 80 09 00 00 [09:27:37]Write to MH i2c: E2 08 00 33 19 80 09 00 00 00 00 00 00 BE [09:27:37]Write i2c OK [09:27:37]MH_I2C_Read... [09:27:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:27:37]Read from MH i2c: E2 [09:27:37]MH_I2C_Read... [09:27:37]Read from MH i2c: E2 03 00 [09:27:37]MH_I2C_Read... [09:27:37]Read from MH i2c: E2 03 00 33 19 00 90 00 C0 [09:27:37]RAPDU: 90 00 [09:27:37]wFMCommunicate OK [09:27:37]SAM_PROTO_ClearQueue done [09:27:37]KKMCreateOFDPacket [09:27:37]OFDProtocolAddRootSTLVToBuf [09:27:37]FM_MakeSignedData [09:27:37]FM_MakeSignedData [09:27:37]SAM_PROTO_SignData [09:27:37]wFMCommunicate request_size=4 [09:27:37]MH_SAM_APDU [09:27:37]CAPDU: 80 0D 01 02 [09:27:37]Write to MH i2c: E2 08 00 34 19 80 0D 01 02 00 00 00 00 C6 [09:27:37]Write i2c OK [09:27:37]MH_I2C_Read... [09:27:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:27:37]Read from MH i2c: E2 [09:27:37]MH_I2C_Read... [09:27:37]Read from MH i2c: E2 03 00 [09:27:37]MH_I2C_Read... [09:27:37]Read from MH i2c: E2 03 00 34 19 00 90 00 C1 [09:27:37]RAPDU: 90 00 [09:27:37]wFMCommunicate OK [09:27:37]wFMCommunicate request_size=255 [09:27:37]MH_SAM_APDU [09:27: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 D0 11 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 0C 27 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 CB 92 01 00 35 04 06 00 02 [09:27:37]Write to MH i2c: E2 02 01 35 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 0C 27 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 CB 92 01 00 35 04 06 00 02 00 00 D9 [09:27:37]Write i2c OK [09:27:37]MH_I2C_Read... [09:27:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:38]Read from MH i2c: E2 [09:27:38]MH_I2C_Read... [09:27:38]Read from MH i2c: E2 03 00 [09:27:38]MH_I2C_Read... [09:27:38]Read from MH i2c: E2 03 00 35 19 00 90 00 C2 [09:27:38]RAPDU: 90 00 [09:27:38]wFMCommunicate OK [09:27:38]wFMCommunicate request_size=10 [09:27:38]MH_SAM_APDU [09:27:38]CAPDU: 80 0D 02 02 05 54 0A 33 52 7E [09:27:38]Write to MH i2c: E2 0D 00 36 19 80 0D 02 02 05 00 54 0A 33 52 7E 00 00 34 [09:27:38]Write i2c OK [09:27:38]MH_I2C_Read... [09:27:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:38]Read from MH i2c: E2 [09:27:38]MH_I2C_Read... [09:27:38]Read from MH i2c: E2 03 00 [09:27:38]MH_I2C_Read... [09:27:38]Read from MH i2c: E2 03 00 36 19 00 90 00 C3 [09:27:38]RAPDU: 90 00 [09:27:38]wFMCommunicate OK [09:27:38]wFMCommunicate request_size=4 [09:27:38]MH_SAM_APDU [09:27:38]CAPDU: 80 0D 03 02 [09:27:38]Write to MH i2c: E2 08 00 37 19 80 0D 03 02 00 00 00 00 CB [09:27:38]Write i2c OK [09:27:38]MH_I2C_Read... [09:27:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:27:38]Read from MH i2c: E2 [09:27:38]MH_I2C_Read... [09:27:38]Read from MH i2c: E2 0B 00 [09:27:38]MH_I2C_Read... [09:27:38]Read from MH i2c: E2 0B 00 37 19 00 DD 9B CD 25 72 E0 3A DC 90 00 9E [09:27:38]RAPDU: DD 9B CD 25 72 E0 3A DC 90 00 [09:27:38]wFMCommunicate OK [09:27:38]SAM_PROTO_SignData done [09:27:38]FM_MakeSignedData done [09:27:38]CreateOFDProtocolMessage [09:27:38]wFMCommunicate request_size=4 [09:27:38]MH_SAM_APDU [09:27:38]CAPDU: 80 11 00 00 [09:27:38]Write to MH i2c: E2 08 00 38 19 80 11 00 00 00 00 00 00 CB [09:27:38]Write i2c OK [09:27:38]MH_I2C_Read... [09:27:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:38]Read from MH i2c: E2 [09:27:38]MH_I2C_Read... [09:27:38]Read from MH i2c: E2 17 00 [09:27:38]MH_I2C_Read... [09:27:38]Read from MH i2c: E2 17 00 38 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 1F [09:27:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [09:27:38]wFMCommunicate OK [09:27:38]CreateOFDProtocolMessage done [09:27:38]OFDSenderStorePacket 103115 [09:27:38]StoreOFDPacket docnum=103115 [09:27:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 82 C2 07 01 96 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 D0 11 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 0C 27 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 CB 92 01 00 35 04 06 00 02 54 0A 33 52 7E DD 9B CD 25 72 E0 3A DC [09:27:38]CheckFolder [09:27:38]dirname=/storage/ofd_packets [09:27:38]CheckFolder done [09:27:38]ProducePacketName [09:27:38]name=ofd_packets/00103115 [09:27:38]NVStorageSaveData ofd_packets/00103115 [09:27:38]File name is /storage/ofd_packets/00103115 [09:27:38]Write 301 bytes [09:27:38]NVStorageSaveData done [09:27:38]OFDSenderStorePacket done [09:27:38]KKMCreateOFDPacket done [09:27:38]NVStorageSaveData kkm_last_timestamp [09:27:38]File name is /storage/kkm_last_timestamp [09:27:38]Write 4 bytes [09:27:38]NVStorageSaveData done [09:27:38]ExternCall_PrintAddStr [09:27:38]wPrintStart [09:27:38]Write to MH i2c: 01 00 00 39 19 52 [09:27:38]Write i2c OK [09:27:38]MH_I2C_Read... [09:27:38]Read from MH i2c: 01 [09:27:38]MH_I2C_Read... [09:27:38]Read from MH i2c: 01 07 00 [09:27:38]MH_I2C_Read... [09:27:38]Read from MH i2c: 01 07 00 39 19 00 00 00 00 00 FF 0F 67 [09:27:38]RasterBufferAndPrint [09:27:38]line Счет N : (1)160745 [09:27:38]line ИНН: 02508201610067 [09:27:38]line Контрольно-Кассовый Чек [09:27:38]line ПРОДАЖА [09:27:38]line ТРК (МРК, ГНК) : 7 [09:27:38]line Товар: 2710124130 [09:27:38]line Аи-92-К-5 [09:27:38]line 4.560 * 65.90 [09:27:38]line = 300.50 [09:27:38]line НДС 12% НСП 1% [09:27:38]line > о реализуемом товаре [09:27:38]line ОКРУГЛЕНИЕ: -0.50 [09:27:38]line ИТОГО: 300.00 [09:27:38]line Внесено: 300.00 [09:27:38]line СДАЧА: 0.00 [09:27:38]line НСП 1% : 2.66 [09:27:38]line НДС 12% : 31.91 [09:27:38]line Наличными: 300.00 [09:27:38]line Безнал.: 0.00 [09:27:38]line Место: АЗС № 38 "Партнер Нефть" [09:27:38]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [09:27:38]line СНО: Общий режим [09:27:38]line Чек 26 13.08.2024 09:27 [09:27:38]line Смена: 464 ФФД: 1.0 [09:27:38]line ЗНМ: 0300000126 [09:27:38]line РНМ: 0000000000092718 [09:27:38]line Версия ККМ: 001 [09:27:38]line ФМ: 0000000000875058 [09:27:38]line ФД: 103115 [09:27:38]line ФПД: 2559971644030 [09:27:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T092740&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103115&fm=2559971644030&tin=02508201610067®Number=0000000000092718&sum=30000 [09:27:38]OFD Sender: Processing packet 103115 [packets to send 69, broken 68] [09:27:38]ProducePacketName [09:27:38]name=ofd_packets/00103115 [09:27:38]OFD Sender: To server: pG, [09:27:38]CommunicateWithHost lk.salyk.kg:30040 [09:27:38]ConnectInit lk.salyk.kg [09:27:38]written 0, free lines is 4095 [09:27:38]Connected sock=10 [09:27:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 82 C2 07 01 96 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 D0 11 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 0C 27 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 CB 92 01 00 35 04 06 00 02 54 0A 33 52 7E DD 9B CD 25 72 E0 3A DC [09:27:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 51 8D 47 00 27 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 CB 92 01 00 F4 03 04 00 7F CD BA 66 B6 04 01 00 00 15 28 1E 51 4D 24 98 A0 [09:27:38]CommunicateWithHost err = 0 [09:27:38]CheckOFDResponse [09:27:38]1017 (14) - 77093643461234 [09:27:38]1041 (16) - 0000000000875058 [09:27:38]1040 (4) - 103115 [09:27:38]1012 (4) - 13.08.2024 03:05 [09:27:38]1206 (1) - 0 [09:27:38]OFD Sender: Remove packet 103115 [09:27:38]ProducePacketName [09:27:38]name=ofd_packets/00103115 [09:27:38]NVStorageDeleteData [09:27:39]Write to MH i2c: 01 00 00 64 19 7D [09:27:39]Write i2c OK [09:27:39]MH_I2C_Read... [09:27:39]Read from MH i2c: 01 [09:27:39]MH_I2C_Read... [09:27:39]Read from MH i2c: 01 07 00 [09:27:39]MH_I2C_Read... [09:27:39]Read from MH i2c: 01 07 00 64 19 00 00 00 00 00 D7 0C 67 [09:27:39]RasterBufferAndPrint [09:27:39]line [09:27:39]line [09:27:39]line [09:27:39]line [09:27:39]line [09:27:39]written 0, free lines is 3294 [09:27:39]MH_Cut [09:27:39]Write to MH i2c: D1 01 00 6B 19 01 56 [09:27:39]Write i2c OK [09:27:39]MH_I2C_Read... [09:27:39]Read from MH i2c: D1 [09:27:39]MH_I2C_Read... [09:27:39]Read from MH i2c: D1 01 00 [09:27:39]MH_I2C_Read... [09:27:39]Read from MH i2c: D1 01 00 6B 19 00 55 [09:27:39]Write to MH i2c: 01 00 00 6C 19 85 [09:27:39]Write i2c OK [09:27:39]MH_I2C_Read... [09:27:39]OFD Sender: No OFD packet to send [09:27:39]*** Cut start [09:27:39]*** Purtial cut [09:27:39]*** Stage 1: CUTSNS_PIN = 1 [09:27:40]Read from MH i2c: 01 [09:27:40]MH_I2C_Read... [09:27:40]*** Stop cut motor [09:27:40]*** Cut end [09:27:40]Read from MH i2c: 01 07 00 [09:27:40]MH_I2C_Read... [09:27:40]Read from MH i2c: 01 07 00 6C 19 00 00 00 00 00 FF 0F 9A [09:27:40]process_action close_receipt done [09:27:40]requested_data is exist [09:27:40]produce_requested_data [09:27:40]requested_item fm.sn is exist - process it [09:27:40]wFMCommunicate request_size=4 [09:27:40]MH_SAM_APDU [09:27:40]CAPDU: 80 11 00 00 [09:27:40]Write to MH i2c: E2 08 00 6D 19 80 11 00 00 00 00 00 00 00 [09:27:40]Write i2c OK [09:27:40]MH_I2C_Read... [09:27:40]Read from MH i2c: E2 [09:27:40]MH_I2C_Read... [09:27:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:40]Read from MH i2c: E2 17 00 [09:27:40]MH_I2C_Read... [09:27:40]Read from MH i2c: E2 17 00 6D 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 54 [09:27:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [09:27:40]wFMCommunicate OK [09:27:40]requested_item fd.num is exist - process it [09:27:40]SAM_PROTO_GetFieldsCounters [09:27:40]wFMCommunicate request_size=4 [09:27:40]MH_SAM_APDU [09:27:40]CAPDU: 80 13 00 00 [09:27:40]Write to MH i2c: E2 08 00 6E 19 80 13 00 00 00 00 00 00 03 [09:27:40]Write i2c OK [09:27:40]MH_I2C_Read... [09:27:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:27:40]Read from MH i2c: E2 [09:27:40]MH_I2C_Read... [09:27:40]Read from MH i2c: E2 62 00 [09:27:40]MH_I2C_Read... [09:27:40]Read from MH i2c: E2 62 00 6E 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 CB 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [09:27:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 CB 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:27:40]wFMCommunicate OK [09:27:40]SAM_PROTO_GetFieldsCounters done [09:27:40]requested_item shift.num is exist - process it [09:27:40]requested_item shift.opened is exist - process it [09:27:40]req_shift_opened [09:27:40]FM_GetShiftState [09:27:40]SAM_PROTO_GetShiftState [09:27:40]wFMCommunicate request_size=4 [09:27:40]MH_SAM_APDU [09:27:40]CAPDU: 80 13 01 00 [09:27:40]Write to MH i2c: E2 08 00 6F 19 80 13 01 00 00 00 00 00 05 [09:27:40]Write i2c OK [09:27:40]MH_I2C_Read... [09:27:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:40]Read from MH i2c: E2 [09:27:40]MH_I2C_Read... [09:27:40]Read from MH i2c: E2 0E 00 [09:27:40]MH_I2C_Read... [09:27:40]Read from MH i2c: E2 0E 00 6F 19 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 23 [09:27:40]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [09:27:40]wFMCommunicate OK [09:27:40]SAM_PROTO_GetShiftState done [09:27:40]FM_GetShiftState done [09:27:40]req_shift_opened done [09:27:40]requested_item shift.open_date is exist - process it [09:27:40]req_shift_open_date [09:27:40]req_shift_open_date done [09:27:40]produce_requested_data done [09:27:40]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103115,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [09:27:40]process_action_free close_receipt [09:27:40]json_value_free [09:27:40]json_value_free done [09:27:40]process_json_proto returns [09:27:40]Send response to host [09:27:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103115,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [09:27:40]free response buf [09:27:40]execute_script done [09:27:40]execute_script returns [09:27:40]free content buf [09:27:40]Sock 7.Close socket [09:27:40]Sock 7.Thread stoped [09:27:44]OFD Sender: No OFD packet to send [09:27:49]OFD Sender: No OFD packet to send [09:27:53]accept exits with 9 [09:27:53]New connection [09:27:53]New thread 3066563940 created [09:27:53]Thread 3066707300 joined [09:27:53]Waiting for new connection... [09:27:53] Sock 9.Parse request [09:27:53]Sock 9.Check first char [09:27:53]Sock 9.First char is OK [09:27:53]request: POST /json_proto HTTP/1.0 [09:27:53]Method: POST [09:27:53]URL: /json_proto [09:27:53]Method is POST - this is cgi request [09:27:53]url: /json_proto [09:27:53]query_string will be loaded in cgi processing [09:27:53]execute_cgi json_proto POST (null) [09:27:53]execute_cgi path=json_proto method=POST [09:27:53]POST find Content-Length [09:27:53]Host: 172.17.58.3:8080 [09:27:53]Content-Length: 676 [09:27:53]Content-Type: application/json [09:27:53] [09:27:53]POST finish read [09:27:53]Found Content-Length = 676 [09:27:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160746", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 4.560, "sum" : 300.50, "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:27:53]execute_script... [09:27:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160746", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 4.560, "sum" : 300.50, "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:27:53]POST & json_proto [09:27:53]process_json_proto [09:27:53]json parsed OK: [09:27:53]protocol is kg_v1.0 [09:27:53]action value=close_receipt [09:27:53]process_action close_receipt [09:27:53]cmd_close_receipt [09:27:53]MH_GetDate [09:27:53]Write to MH i2c: F0 00 00 70 19 78 [09:27:53]Write i2c OK [09:27:53]MH_I2C_Read... [09:27:53]Read from MH i2c: F0 [09:27:53]MH_I2C_Read... [09:27:53]Read from MH i2c: F0 09 00 [09:27:53]MH_I2C_Read... [09:27:53]Read from MH i2c: F0 09 00 70 19 00 1C 27 BB 66 DC E4 6D 64 76 [09:27:53]GetLastDocTimeStamp 1723541260 [09:27:53]current date 1723541276 [09:27:53]FM_GetShiftState [09:27:53]SAM_PROTO_GetShiftState [09:27:53]wFMCommunicate request_size=4 [09:27:53]MH_SAM_APDU [09:27:53]CAPDU: 80 13 01 00 [09:27:53]Write to MH i2c: E2 08 00 71 19 80 13 01 00 00 00 00 00 07 [09:27:53]Write i2c OK [09:27:53]MH_I2C_Read... [09:27:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:53]Read from MH i2c: E2 [09:27:53]MH_I2C_Read... [09:27:53]Read from MH i2c: E2 0E 00 [09:27:53]MH_I2C_Read... [09:27:53]Read from MH i2c: E2 0E 00 71 19 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 25 [09:27:53]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [09:27:53]wFMCommunicate OK [09:27:53]SAM_PROTO_GetShiftState done [09:27:53]FM_GetShiftState done [09:27:53]opened in 1723506770 [09:27:53]opened+sec_in_day 1723593170 [09:27:53]quantity*price = 30050 [09:27:53]sum+1 = 30051 [09:27:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 27 13.08.2024 09:27 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103116 ФПД: 73470018692095 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T092756&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103116&fm=73470018692095&tin=02508201610067®Number=0000000000092718&sum=30000 [09:27:54]StoreToDocumentArchive [09:27:54]shift 464 fd 103116 [09:27:54]save to /storage/0464/doc_00103116 [09:27:54]save last doc name /storage/0464/doc_00103116 to /storage/kkm_last_doc_name [09:27:54]save OK [09:27:54]Clear old archive folders... [09:27:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:27:54]tlvbuf is 00296840 [09:27:54]SAM_PROTO_ClearQueue [09:27:54]wFMCommunicate request_size=4 [09:27:54]MH_SAM_APDU [09:27:54]CAPDU: 80 09 00 00 [09:27:54]Write to MH i2c: E2 08 00 7E 19 80 09 00 00 00 00 00 00 09 [09:27:54]Write i2c OK [09:27:54]MH_I2C_Read... [09:27:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:27:54]Read from MH i2c: E2 [09:27:54]MH_I2C_Read... [09:27:54]Read from MH i2c: E2 03 00 [09:27:54]MH_I2C_Read... [09:27:54]Read from MH i2c: E2 03 00 7E 19 00 90 00 0B [09:27:54]RAPDU: 90 00 [09:27:54]wFMCommunicate OK [09:27:54]SAM_PROTO_ClearQueue done [09:27:54]KKMCreateOFDPacket [09:27:54]OFDProtocolAddRootSTLVToBuf [09:27:54]FM_MakeSignedData [09:27:54]FM_MakeSignedData [09:27:54]SAM_PROTO_SignData [09:27:54]wFMCommunicate request_size=4 [09:27:54]MH_SAM_APDU [09:27:54]CAPDU: 80 0D 01 02 [09:27:54]Write to MH i2c: E2 08 00 7F 19 80 0D 01 02 00 00 00 00 11 [09:27:54]Write i2c OK [09:27:54]MH_I2C_Read... [09:27:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:27:54]OFD Sender: No OFD packet to send [09:27:54]Read from MH i2c: E2 [09:27:54]MH_I2C_Read... [09:27:54]Read from MH i2c: E2 03 00 [09:27:54]MH_I2C_Read... [09:27:54]Read from MH i2c: E2 03 00 7F 19 00 90 00 0C [09:27:54]RAPDU: 90 00 [09:27:54]wFMCommunicate OK [09:27:54]wFMCommunicate request_size=255 [09:27:54]MH_SAM_APDU [09:27: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 D0 11 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 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 1C 27 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 CC 92 01 00 35 04 06 00 42 [09:27:54]Write to MH i2c: E2 02 01 80 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 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 1C 27 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 CC 92 01 00 35 04 06 00 42 00 00 76 [09:27:54]Write i2c OK [09:27:54]MH_I2C_Read... [09:27:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:54]Read from MH i2c: E2 [09:27:54]MH_I2C_Read... [09:27:54]Read from MH i2c: E2 03 00 [09:27:54]MH_I2C_Read... [09:27:54]Read from MH i2c: E2 03 00 80 19 00 90 00 0D [09:27:54]RAPDU: 90 00 [09:27:54]wFMCommunicate OK [09:27:54]wFMCommunicate request_size=10 [09:27:54]MH_SAM_APDU [09:27:54]CAPDU: 80 0D 02 02 05 D2 12 5D A3 FF [09:27:54]Write to MH i2c: E2 0D 00 81 19 80 0D 02 02 05 00 D2 12 5D A3 FF 00 00 01 [09:27:54]Write i2c OK [09:27:54]MH_I2C_Read... [09:27:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:54]Read from MH i2c: E2 [09:27:54]MH_I2C_Read... [09:27:54]Read from MH i2c: E2 03 00 [09:27:54]MH_I2C_Read... [09:27:54]Read from MH i2c: E2 03 00 81 19 00 90 00 0E [09:27:54]RAPDU: 90 00 [09:27:54]wFMCommunicate OK [09:27:54]wFMCommunicate request_size=4 [09:27:54]MH_SAM_APDU [09:27:54]CAPDU: 80 0D 03 02 [09:27:54]Write to MH i2c: E2 08 00 82 19 80 0D 03 02 00 00 00 00 16 [09:27:54]Write i2c OK [09:27:54]MH_I2C_Read... [09:27:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:27:54]Read from MH i2c: E2 [09:27:54]MH_I2C_Read... [09:27:54]Read from MH i2c: E2 0B 00 [09:27:54]MH_I2C_Read... [09:27:54]Read from MH i2c: E2 0B 00 82 19 00 63 5C FC 03 2B 72 C2 2C 90 00 60 [09:27:54]RAPDU: 63 5C FC 03 2B 72 C2 2C 90 00 [09:27:54]wFMCommunicate OK [09:27:54]SAM_PROTO_SignData done [09:27:54]FM_MakeSignedData done [09:27:54]CreateOFDProtocolMessage [09:27:54]wFMCommunicate request_size=4 [09:27:54]MH_SAM_APDU [09:27:54]CAPDU: 80 11 00 00 [09:27:54]Write to MH i2c: E2 08 00 83 19 80 11 00 00 00 00 00 00 16 [09:27:54]Write i2c OK [09:27:54]MH_I2C_Read... [09:27:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:54]Read from MH i2c: E2 [09:27:54]MH_I2C_Read... [09:27:54]Read from MH i2c: E2 17 00 [09:27:54]MH_I2C_Read... [09:27:54]Read from MH i2c: E2 17 00 83 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 6A [09:27:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [09:27:54]wFMCommunicate OK [09:27:54]CreateOFDProtocolMessage done [09:27:54]OFDSenderStorePacket 103116 [09:27:54]StoreOFDPacket docnum=103116 [09:27:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 18 13 07 01 41 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 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 1C 27 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 CC 92 01 00 35 04 06 00 42 D2 12 5D A3 FF 63 5C FC 03 2B 72 C2 2C [09:27:54]CheckFolder [09:27:54]dirname=/storage/ofd_packets [09:27:54]CheckFolder done [09:27:54]ProducePacketName [09:27:54]name=ofd_packets/00103116 [09:27:54]NVStorageSaveData ofd_packets/00103116 [09:27:54]File name is /storage/ofd_packets/00103116 [09:27:54]Write 301 bytes [09:27:54]NVStorageSaveData done [09:27:54]OFDSenderStorePacket done [09:27:54]KKMCreateOFDPacket done [09:27:54]NVStorageSaveData kkm_last_timestamp [09:27:54]File name is /storage/kkm_last_timestamp [09:27:54]Write 4 bytes [09:27:54]NVStorageSaveData done [09:27:54]ExternCall_PrintAddStr [09:27:54]wPrintStart [09:27:54]Write to MH i2c: 01 00 00 84 19 9D [09:27:54]Write i2c OK [09:27:54]MH_I2C_Read... [09:27:54]Read from MH i2c: 01 [09:27:54]MH_I2C_Read... [09:27:54]Read from MH i2c: 01 07 00 [09:27:54]MH_I2C_Read... [09:27:54]Read from MH i2c: 01 07 00 84 19 00 00 00 00 00 FF 0F B2 [09:27:54]RasterBufferAndPrint [09:27:54]line Счет N : (1)160746 [09:27:54]line ИНН: 02508201610067 [09:27:54]line Контрольно-Кассовый Чек [09:27:54]line ПРОДАЖА [09:27:54]line ТРК (МРК, ГНК) : 7 [09:27:54]line Товар: 2710124130 [09:27:54]line Аи-92-К-5 [09:27:54]line 4.560 * 65.90 [09:27:54]line = 300.50 [09:27:54]line НДС 12% НСП 1% [09:27:54]line > о реализуемом товаре [09:27:54]line ОКРУГЛЕНИЕ: -0.50 [09:27:54]line ИТОГО: 300.00 [09:27:54]line Внесено: 300.00 [09:27:54]line СДАЧА: 0.00 [09:27:54]line НСП 1% : 2.66 [09:27:54]line НДС 12% : 31.91 [09:27:54]line Наличными: 300.00 [09:27:54]line Безнал.: 0.00 [09:27:54]line Место: АЗС № 38 "Партнер Нефть" [09:27:54]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [09:27:54]line СНО: Общий режим [09:27:54]line Чек 27 13.08.2024 09:27 [09:27:54]line Смена: 464 ФФД: 1.0 [09:27:54]line ЗНМ: 0300000126 [09:27:54]line РНМ: 0000000000092718 [09:27:54]line Версия ККМ: 001 [09:27:54]line ФМ: 0000000000875058 [09:27:54]line ФД: 103116 [09:27:54]line ФПД: 73470018692095 [09:27:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T092756&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103116&fm=73470018692095&tin=02508201610067®Number=0000000000092718&sum=30000 [09:27:55]OFD Sender: Processing packet 103116 [packets to send 69, broken 68] [09:27:55]ProducePacketName [09:27:55]name=ofd_packets/00103116 [09:27:55]OFD Sender: To server: pG, [09:27:55]CommunicateWithHost lk.salyk.kg:30040 [09:27:55]ConnectInit lk.salyk.kg [09:27:55]written 0, free lines is 4095 [09:27:55]Connected sock=10 [09:27:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 18 13 07 01 41 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 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 1C 27 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 CC 92 01 00 35 04 06 00 42 D2 12 5D A3 FF 63 5C FC 03 2B 72 C2 2C [09:27:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 B5 BE 47 00 E2 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 CC 92 01 00 F4 03 04 00 90 CD BA 66 B6 04 01 00 00 55 77 E3 3A F5 5E 6B A3 [09:27:55]CommunicateWithHost err = 0 [09:27:55]CheckOFDResponse [09:27:55]1017 (14) - 77093643461234 [09:27:55]1041 (16) - 0000000000875058 [09:27:55]1040 (4) - 103116 [09:27:55]1012 (4) - 13.08.2024 03:05 [09:27:55]1206 (1) - 0 [09:27:55]OFD Sender: Remove packet 103116 [09:27:55]ProducePacketName [09:27:55]name=ofd_packets/00103116 [09:27:55]NVStorageDeleteData [09:27:55]Write to MH i2c: 01 00 00 AF 19 C8 [09:27:55]Write i2c OK [09:27:55]MH_I2C_Read... [09:27:55]Read from MH i2c: 01 [09:27:55]MH_I2C_Read... [09:27:55]Read from MH i2c: 01 07 00 [09:27:55]MH_I2C_Read... [09:27:55]Read from MH i2c: 01 07 00 AF 19 00 00 00 00 00 D7 0C B2 [09:27:55]RasterBufferAndPrint [09:27:55]line [09:27:55]line [09:27:55]line [09:27:55]line [09:27:55]line [09:27:55]written 0, free lines is 3296 [09:27:55]MH_Cut [09:27:55]Write to MH i2c: D1 01 00 B6 19 01 A1 [09:27:55]Write i2c OK [09:27:55]MH_I2C_Read... [09:27:55]Read from MH i2c: D1 [09:27:55]MH_I2C_Read... [09:27:55]Read from MH i2c: D1 01 00 [09:27:55]MH_I2C_Read... [09:27:55]Read from MH i2c: D1 01 00 B6 19 00 A0 [09:27:55]Write to MH i2c: 01 00 00 B7 19 D0 [09:27:55]Write i2c OK [09:27:55]MH_I2C_Read... [09:27:56]OFD Sender: No OFD packet to send [09:27:56]*** Cut start [09:27:56]*** Purtial cut [09:27:56]*** CUTSNS_PIN = 0 [09:27:56]*** Stage 1: CUTSNS_PIN = 1 [09:27:58]Read from MH i2c: 01 [09:27:58]MH_I2C_Read... [09:27:58]*** Stop cut motor [09:27:58]*** Cut end [09:27:58]Read from MH i2c: 01 07 00 [09:27:58]MH_I2C_Read... [09:27:58]Read from MH i2c: 01 07 00 B7 19 00 00 00 00 00 FF 0F E5 [09:27:58]process_action close_receipt done [09:27:58]requested_data is exist [09:27:58]produce_requested_data [09:27:58]requested_item fm.sn is exist - process it [09:27:58]wFMCommunicate request_size=4 [09:27:58]MH_SAM_APDU [09:27:58]CAPDU: 80 11 00 00 [09:27:58]Write to MH i2c: E2 08 00 B8 19 80 11 00 00 00 00 00 00 4B [09:27:58]Write i2c OK [09:27:58]MH_I2C_Read... [09:27:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:58]Read from MH i2c: E2 [09:27:58]MH_I2C_Read... [09:27:58]Read from MH i2c: E2 17 00 [09:27:58]MH_I2C_Read... [09:27:58]Read from MH i2c: E2 17 00 B8 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 9F [09:27:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [09:27:58]wFMCommunicate OK [09:27:58]requested_item fd.num is exist - process it [09:27:58]SAM_PROTO_GetFieldsCounters [09:27:58]wFMCommunicate request_size=4 [09:27:58]MH_SAM_APDU [09:27:58]CAPDU: 80 13 00 00 [09:27:58]Write to MH i2c: E2 08 00 B9 19 80 13 00 00 00 00 00 00 4E [09:27:58]Write i2c OK [09:27:58]MH_I2C_Read... [09:27:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:27:58]Read from MH i2c: E2 [09:27:58]MH_I2C_Read... [09:27:58]Read from MH i2c: E2 62 00 [09:27:58]MH_I2C_Read... [09:27:58]Read from MH i2c: E2 62 00 B9 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 CC 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [09:27:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 CC 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:27:58]wFMCommunicate OK [09:27:58]SAM_PROTO_GetFieldsCounters done [09:27:58]requested_item shift.num is exist - process it [09:27:58]requested_item shift.opened is exist - process it [09:27:58]req_shift_opened [09:27:58]FM_GetShiftState [09:27:58]SAM_PROTO_GetShiftState [09:27:58]wFMCommunicate request_size=4 [09:27:58]MH_SAM_APDU [09:27:58]CAPDU: 80 13 01 00 [09:27:58]Write to MH i2c: E2 08 00 BA 19 80 13 01 00 00 00 00 00 50 [09:27:58]Write i2c OK [09:27:58]MH_I2C_Read... [09:27:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:58]Read from MH i2c: E2 [09:27:58]MH_I2C_Read... [09:27:58]Read from MH i2c: E2 0E 00 [09:27:58]MH_I2C_Read... [09:27:58]Read from MH i2c: E2 0E 00 BA 19 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 6E [09:27:58]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [09:27:58]wFMCommunicate OK [09:27:58]SAM_PROTO_GetShiftState done [09:27:58]FM_GetShiftState done [09:27:58]req_shift_opened done [09:27:58]requested_item shift.open_date is exist - process it [09:27:58]req_shift_open_date [09:27:58]req_shift_open_date done [09:27:58]produce_requested_data done [09:27:58]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103116,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [09:27:58]process_action_free close_receipt [09:27:58]json_value_free [09:27:58]json_value_free done [09:27:58]process_json_proto returns [09:27:58]Send response to host [09:27:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103116,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [09:27:58]free response buf [09:27:58]execute_script done [09:27:58]execute_script returns [09:27:58]free content buf [09:27:58]Sock 9.Close socket [09:27:58]Sock 9.Thread stoped [09:28:01]OFD Sender: No OFD packet to send [09:28:06]OFD Sender: No OFD packet to send [09:28:11]OFD Sender: No OFD packet to send [09:28:16]OFD Sender: No OFD packet to send [09:28:21]OFD Sender: No OFD packet to send [09:28:26]OFD Sender: No OFD packet to send [09:28:31]OFD Sender: No OFD packet to send [09:28:36]OFD Sender: No OFD packet to send [09:28:41]OFD Sender: No OFD packet to send [09:28:41]accept exits with 7 [09:28:41]New connection [09:28:41]New thread 3066707300 created [09:28:41]Thread 3066563940 joined [09:28:41]Waiting for new connection... [09:28:41] Sock 7.Parse request [09:28:41]Sock 7.Check first char [09:28:41]Sock 7.First char is OK [09:28:41]request: POST /json_proto HTTP/1.0 [09:28:41]Method: POST [09:28:41]URL: /json_proto [09:28:41]Method is POST - this is cgi request [09:28:41]url: /json_proto [09:28:41]query_string will be loaded in cgi processing [09:28:41]execute_cgi json_proto POST (null) [09:28:41]execute_cgi path=json_proto method=POST [09:28:41]POST find Content-Length [09:28:41]Host: 172.17.58.3:8080 [09:28:41]Content-Length: 733 [09:28:41]Content-Type: application/json [09:28:41] [09:28:41]POST finish read [09:28:41]Found Content-Length = 733 [09:28:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 103115, "base_FM": "0000000000875058", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160745", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 4.560, "sum" : 300.50, "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:28:41]execute_script... [09:28:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 103115, "base_FM": "0000000000875058", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160745", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 4.560, "sum" : 300.50, "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:28:41]POST & json_proto [09:28:41]process_json_proto [09:28:41]json parsed OK: [09:28:41]protocol is kg_v1.0 [09:28:41]action value=close_receipt [09:28:41]process_action close_receipt [09:28:41]cmd_close_receipt [09:28:41]MH_GetDate [09:28:41]Write to MH i2c: F0 00 00 BB 19 C3 [09:28:41]Write i2c OK [09:28:41]MH_I2C_Read... [09:28:41]Read from MH i2c: F0 [09:28:41]MH_I2C_Read... [09:28:41]Read from MH i2c: F0 09 00 [09:28:41]MH_I2C_Read... [09:28:41]Read from MH i2c: F0 09 00 BB 19 00 4D 27 BB 66 DC E4 6D 64 F2 [09:28:41]GetLastDocTimeStamp 1723541276 [09:28:41]current date 1723541325 [09:28:41]FM_GetShiftState [09:28:41]SAM_PROTO_GetShiftState [09:28:41]wFMCommunicate request_size=4 [09:28:41]MH_SAM_APDU [09:28:41]CAPDU: 80 13 01 00 [09:28:41]Write to MH i2c: E2 08 00 BC 19 80 13 01 00 00 00 00 00 52 [09:28:41]Write i2c OK [09:28:41]MH_I2C_Read... [09:28:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:41]Read from MH i2c: E2 [09:28:41]MH_I2C_Read... [09:28:41]Read from MH i2c: E2 0E 00 [09:28:41]MH_I2C_Read... [09:28:41]Read from MH i2c: E2 0E 00 BC 19 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 70 [09:28:41]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [09:28:41]wFMCommunicate OK [09:28:41]SAM_PROTO_GetShiftState done [09:28:41]FM_GetShiftState done [09:28:41]opened in 1723506770 [09:28:41]opened+sec_in_day 1723593170 [09:28:41]quantity*price = 30050 [09:28:41]sum+1 = 30051 [09:28:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 300.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 28 13.08.2024 09:28 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФД осн.: 103115 ФМ осн.: 0000000000875058 ФМ: 0000000000875058 ФД: 103117 ФПД: 103676172120123 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T092845&type=2&operation_type=1&fn_number=0000000000875058&fd_number=103117&fm=103676172120123&tin=02508201610067®Number=0000000000092718&sum=30000 [09:28:42]StoreToDocumentArchive [09:28:42]shift 464 fd 103117 [09:28:42]save to /storage/0464/doc_00103117 [09:28:42]save last doc name /storage/0464/doc_00103117 to /storage/kkm_last_doc_name [09:28:42]save OK [09:28:42]Clear old archive folders... [09:28:42]ProcessDocumentItem done err = 0, tmpTLVsize=279 [09:28:42]tlvbuf is 0025B4F0 [09:28:42]SAM_PROTO_ClearQueue [09:28:42]wFMCommunicate request_size=4 [09:28:42]MH_SAM_APDU [09:28:42]CAPDU: 80 09 00 00 [09:28:42]Write to MH i2c: E2 08 00 CB 19 80 09 00 00 00 00 00 00 56 [09:28:42]Write i2c OK [09:28:42]MH_I2C_Read... [09:28:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:28:42]Read from MH i2c: E2 [09:28:42]MH_I2C_Read... [09:28:42]Read from MH i2c: E2 03 00 [09:28:42]MH_I2C_Read... [09:28:42]Read from MH i2c: E2 03 00 CB 19 00 90 00 58 [09:28:42]RAPDU: 90 00 [09:28:42]wFMCommunicate OK [09:28:42]SAM_PROTO_ClearQueue done [09:28:42]KKMCreateOFDPacket [09:28:42]OFDProtocolAddRootSTLVToBuf [09:28:42]FM_MakeSignedData [09:28:42]FM_MakeSignedData [09:28:42]SAM_PROTO_SignData [09:28:42]wFMCommunicate request_size=4 [09:28:42]MH_SAM_APDU [09:28:42]CAPDU: 80 0D 01 02 [09:28:42]Write to MH i2c: E2 08 00 CC 19 80 0D 01 02 00 00 00 00 5E [09:28:42]Write i2c OK [09:28:42]MH_I2C_Read... [09:28:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:28:42]Read from MH i2c: E2 [09:28:42]MH_I2C_Read... [09:28:42]Read from MH i2c: E2 03 00 [09:28:42]MH_I2C_Read... [09:28:42]Read from MH i2c: E2 03 00 CC 19 00 90 00 59 [09:28:42]RAPDU: 90 00 [09:28:42]wFMCommunicate OK [09:28:42]wFMCommunicate request_size=255 [09:28:42]MH_SAM_APDU [09:28:42]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 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 4D 27 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 27 04 04 00 CB 92 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 11 04 10 00 30 [09:28:42]Write to MH i2c: E2 02 01 CD 19 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 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 4D 27 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 27 04 04 00 CB 92 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 11 04 10 00 30 00 00 14 [09:28:42]Write i2c OK [09:28:42]MH_I2C_Read... [09:28:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:42]Read from MH i2c: E2 [09:28:42]MH_I2C_Read... [09:28:42]Read from MH i2c: E2 03 00 [09:28:42]MH_I2C_Read... [09:28:42]Read from MH i2c: E2 03 00 CD 19 00 90 00 5A [09:28:42]RAPDU: 90 00 [09:28:42]wFMCommunicate OK [09:28:42]wFMCommunicate request_size=38 [09:28:42]MH_SAM_APDU [09:28:42]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 CD 92 01 00 35 04 06 00 5E 4A FD 69 30 3B [09:28:42]Write to MH i2c: E2 29 00 CE 19 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 CD 92 01 00 35 04 06 00 5E 4A FD 69 30 3B 00 00 C4 [09:28:42]Write i2c OK [09:28:42]MH_I2C_Read... [09:28:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:43]Read from MH i2c: E2 [09:28:43]MH_I2C_Read... [09:28:43]Read from MH i2c: E2 03 00 [09:28:43]MH_I2C_Read... [09:28:43]Read from MH i2c: E2 03 00 CE 19 00 90 00 5B [09:28:43]RAPDU: 90 00 [09:28:43]wFMCommunicate OK [09:28:43]wFMCommunicate request_size=4 [09:28:43]MH_SAM_APDU [09:28:43]CAPDU: 80 0D 03 02 [09:28:43]Write to MH i2c: E2 08 00 CF 19 80 0D 03 02 00 00 00 00 63 [09:28:43]Write i2c OK [09:28:43]MH_I2C_Read... [09:28:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:28:43]Read from MH i2c: E2 [09:28:43]MH_I2C_Read... [09:28:43]Read from MH i2c: E2 0B 00 [09:28:43]MH_I2C_Read... [09:28:43]Read from MH i2c: E2 0B 00 CF 19 00 40 3E 06 9C 4A 6B 2F A5 90 00 0D [09:28:43]RAPDU: 40 3E 06 9C 4A 6B 2F A5 90 00 [09:28:43]wFMCommunicate OK [09:28:43]SAM_PROTO_SignData done [09:28:43]FM_MakeSignedData done [09:28:43]CreateOFDProtocolMessage [09:28:43]wFMCommunicate request_size=4 [09:28:43]MH_SAM_APDU [09:28:43]CAPDU: 80 11 00 00 [09:28:43]Write to MH i2c: E2 08 00 D0 19 80 11 00 00 00 00 00 00 63 [09:28:43]Write i2c OK [09:28:43]MH_I2C_Read... [09:28:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:43]Read from MH i2c: E2 [09:28:43]MH_I2C_Read... [09:28:43]Read from MH i2c: E2 17 00 [09:28:43]MH_I2C_Read... [09:28:43]Read from MH i2c: E2 17 00 D0 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 B7 [09:28:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [09:28:43]wFMCommunicate OK [09:28:43]CreateOFDProtocolMessage done [09:28:43]OFDSenderStorePacket 103117 [09:28:43]StoreOFDPacket docnum=103117 [09:28:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 2B 01 00 00 3B 48 23 01 2C 14 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 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 4D 27 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 27 04 04 00 CB 92 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 CD 92 01 00 35 04 06 00 5E 4A FD 69 30 3B 40 3E 06 9C 4A 6B 2F A5 [09:28:43]CheckFolder [09:28:43]dirname=/storage/ofd_packets [09:28:43]CheckFolder done [09:28:43]ProducePacketName [09:28:43]name=ofd_packets/00103117 [09:28:43]NVStorageSaveData ofd_packets/00103117 [09:28:43]File name is /storage/ofd_packets/00103117 [09:28:43]Write 329 bytes [09:28:43]NVStorageSaveData done [09:28:43]OFDSenderStorePacket done [09:28:43]KKMCreateOFDPacket done [09:28:43]NVStorageSaveData kkm_last_timestamp [09:28:43]File name is /storage/kkm_last_timestamp [09:28:43]Write 4 bytes [09:28:43]NVStorageSaveData done [09:28:43]ExternCall_PrintAddStr [09:28:43]wPrintStart [09:28:43]Write to MH i2c: 01 00 00 D1 19 EA [09:28:43]Write i2c OK [09:28:43]MH_I2C_Read... [09:28:43]Read from MH i2c: 01 [09:28:43]MH_I2C_Read... [09:28:43]Read from MH i2c: 01 07 00 [09:28:43]MH_I2C_Read... [09:28:43]Read from MH i2c: 01 07 00 D1 19 00 00 00 00 00 FF 0F FF [09:28:43]RasterBufferAndPrint [09:28:43]line Счет N : (1)160745 [09:28:43]line ИНН: 02508201610067 [09:28:43]line Контрольно-Кассовый Чек [09:28:43]line ВОЗВРАТ ПРОДАЖИ [09:28:43]line ТРК (МРК, ГНК) : 7 [09:28:43]line Товар: 2710124130 [09:28:43]line Аи-92-К-5 [09:28:43]line 4.560 * 65.90 [09:28:43]line = 300.50 [09:28:43]line НДС 12% НСП 1% [09:28:43]line > о реализуемом товаре [09:28:43]line ОКРУГЛЕНИЕ: -0.50 [09:28:43]line ИТОГО: 300.00 [09:28:43]line НСП 1% : 2.66 [09:28:43]line НДС 12% : 31.91 [09:28:43]line Наличными: 300.00 [09:28:43]line Безнал.: 0.00 [09:28:43]line Место: АЗС № 38 "Партнер Нефть" [09:28:43]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [09:28:43]line СНО: Общий режим [09:28:43]line Чек 28 13.08.2024 09:28 [09:28:43]line Смена: 464 ФФД: 1.0 [09:28:43]line ЗНМ: 0300000126 [09:28:43]line РНМ: 0000000000092718 [09:28:43]line Версия ККМ: 001 [09:28:43]line ФД осн.: 103115 [09:28:43]line ФМ осн.: 0000000000875058 [09:28:43]line ФМ: 0000000000875058 [09:28:43]line ФД: 103117 [09:28:43]line ФПД: 103676172120123 [09:28:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T092845&type=2&operation_type=1&fn_number=0000000000875058&fd_number=103117&fm=103676172120123&tin=02508201610067®Number=0000000000092718&sum=30000 [09:28:43]OFD Sender: Processing packet 103117 [packets to send 69, broken 68] [09:28:43]ProducePacketName [09:28:43]name=ofd_packets/00103117 [09:28:43]OFD Sender: To server: pG, [09:28:43]CommunicateWithHost lk.salyk.kg:30040 [09:28:43]ConnectInit lk.salyk.kg [09:28:43]written 0, free lines is 4095 [09:28:43]Connected sock=10 [09: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 35 30 35 38 2B 01 00 00 3B 48 23 01 2C 14 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 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 4D 27 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 27 04 04 00 CB 92 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 CD 92 01 00 35 04 06 00 5E 4A FD 69 30 3B 40 3E 06 9C 4A 6B 2F A5 [09:28:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 65 B0 47 00 B7 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 CD 92 01 00 F4 03 04 00 C0 CD BA 66 B6 04 01 00 00 8B 86 B6 4D 42 DD 24 CF [09:28:43]CommunicateWithHost err = 0 [09:28:43]CheckOFDResponse [09:28:43]1017 (14) - 77093643461234 [09:28:43]1041 (16) - 0000000000875058 [09:28:43]1040 (4) - 103117 [09:28:43]1012 (4) - 13.08.2024 03:06 [09:28:43]1206 (1) - 0 [09:28:43]OFD Sender: Remove packet 103117 [09:28:43]ProducePacketName [09:28:43]name=ofd_packets/00103117 [09:28:43]NVStorageDeleteData [09:28:43]Write to MH i2c: 01 00 00 FC 19 15 [09:28:43]Write i2c OK [09:28:43]MH_I2C_Read... [09:28:43]Read from MH i2c: 01 [09:28:43]MH_I2C_Read... [09:28:43]Read from MH i2c: 01 07 00 [09:28:43]MH_I2C_Read... [09:28:43]Read from MH i2c: 01 07 00 FC 19 00 00 00 00 00 F1 0C 19 [09:28:43]RasterBufferAndPrint [09:28:43]line [09:28:43]line [09:28:43]line [09:28:43]line [09:28:43]line [09:28:43]written 0, free lines is 3319 [09:28:43]MH_Cut [09:28:43]Write to MH i2c: D1 01 00 03 1A 01 EF [09:28:43]Write i2c OK [09:28:43]MH_I2C_Read... [09:28:43]Read from MH i2c: D1 [09:28:43]MH_I2C_Read... [09:28:43]Read from MH i2c: D1 01 00 [09:28:43]MH_I2C_Read... [09:28:43]Read from MH i2c: D1 01 00 03 1A 00 EE [09:28:43]Write to MH i2c: 01 00 00 04 1A 1E [09:28:43]Write i2c OK [09:28:43]MH_I2C_Read... [09:28:44]OFD Sender: No OFD packet to send [09:28:44]*** Cut start [09:28:44]*** Purtial cut [09:28:44]*** Stage 1: CUTSNS_PIN = 1 [09:28:44]Read from MH i2c: 01 [09:28:44]MH_I2C_Read... [09:28:44]*** Stop cut motor [09:28:44]*** Cut end [09:28:44]Read from MH i2c: 01 07 00 [09:28:44]MH_I2C_Read... [09:28:44]Read from MH i2c: 01 07 00 04 1A 00 00 00 00 00 FF 0F 33 [09:28:44]process_action close_receipt done [09:28:44]requested_data is exist [09:28:44]produce_requested_data [09:28:44]requested_item fm.sn is exist - process it [09:28:44]wFMCommunicate request_size=4 [09:28:44]MH_SAM_APDU [09:28:44]CAPDU: 80 11 00 00 [09:28:44]Write to MH i2c: E2 08 00 05 1A 80 11 00 00 00 00 00 00 99 [09:28:45]Write i2c OK [09:28:45]MH_I2C_Read... [09:28:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:45]Read from MH i2c: E2 [09:28:45]MH_I2C_Read... [09:28:45]Read from MH i2c: E2 17 00 [09:28:45]MH_I2C_Read... [09:28:45]Read from MH i2c: E2 17 00 05 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 ED [09:28:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [09:28:45]wFMCommunicate OK [09:28:45]requested_item fd.num is exist - process it [09:28:45]SAM_PROTO_GetFieldsCounters [09:28:45]wFMCommunicate request_size=4 [09:28:45]MH_SAM_APDU [09:28:45]CAPDU: 80 13 00 00 [09:28:45]Write to MH i2c: E2 08 00 06 1A 80 13 00 00 00 00 00 00 9C [09:28:45]Write i2c OK [09:28:45]MH_I2C_Read... [09:28:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:28:45]Read from MH i2c: E2 [09:28:45]MH_I2C_Read... [09:28:45]Read from MH i2c: E2 62 00 [09:28:45]MH_I2C_Read... [09:28:45]Read from MH i2c: E2 62 00 06 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 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 CD 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [09: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 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 CD 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:28:45]wFMCommunicate OK [09:28:45]SAM_PROTO_GetFieldsCounters done [09:28:45]requested_item shift.num is exist - process it [09:28:45]requested_item shift.opened is exist - process it [09:28:45]req_shift_opened [09:28:45]FM_GetShiftState [09:28:45]SAM_PROTO_GetShiftState [09:28:45]wFMCommunicate request_size=4 [09:28:45]MH_SAM_APDU [09:28:45]CAPDU: 80 13 01 00 [09:28:45]Write to MH i2c: E2 08 00 07 1A 80 13 01 00 00 00 00 00 9E [09:28:45]Write i2c OK [09:28:45]MH_I2C_Read... [09:28:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:45]Read from MH i2c: E2 [09:28:45]MH_I2C_Read... [09:28:45]Read from MH i2c: E2 0E 00 [09:28:45]MH_I2C_Read... [09:28:45]Read from MH i2c: E2 0E 00 07 1A 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 BC [09:28:45]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [09:28:45]wFMCommunicate OK [09:28:45]SAM_PROTO_GetShiftState done [09:28:45]FM_GetShiftState done [09:28:45]req_shift_opened done [09:28:45]requested_item shift.open_date is exist - process it [09:28:45]req_shift_open_date [09:28:45]req_shift_open_date done [09:28:45]produce_requested_data done [09:28:45]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103117,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [09:28:45]process_action_free close_receipt [09:28:45]json_value_free [09:28:45]json_value_free done [09:28:45]process_json_proto returns [09:28:45]Send response to host [09:28:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103117,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [09:28:45]free response buf [09:28:45]execute_script done [09:28:45]execute_script returns [09:28:45]free content buf [09:28:45]Sock 7.Close socket [09:28:45]Sock 7.Thread stoped [09:28:49]OFD Sender: No OFD packet to send [09:28:54]OFD Sender: No OFD packet to send [09:28:59]OFD Sender: No OFD packet to send [09:29:04]OFD Sender: No OFD packet to send [09:29:09]OFD Sender: No OFD packet to send [09:29:14]OFD Sender: No OFD packet to send [09:29:19]OFD Sender: No OFD packet to send [09:29:24]OFD Sender: No OFD packet to send [09:29:29]OFD Sender: No OFD packet to send [09:29:34]OFD Sender: No OFD packet to send [09:29:39]OFD Sender: No OFD packet to send [09:29:44]OFD Sender: No OFD packet to send [09:29:49]OFD Sender: No OFD packet to send [09:29:50]accept exits with 9 [09:29:50]New connection [09:29:50]New thread 3066563940 created [09:29:50]Thread 3066707300 joined [09:29:50]Waiting for new connection... [09:29:50] Sock 9.Parse request [09:29:50]Sock 9.Check first char [09:29:50]Sock 9.First char is OK [09:29:50]request: POST /json_proto HTTP/1.0 [09:29:50]Method: POST [09:29:50]URL: /json_proto [09:29:50]Method is POST - this is cgi request [09:29:50]url: /json_proto [09:29:50]query_string will be loaded in cgi processing [09:29:50]execute_cgi json_proto POST (null) [09:29:50]execute_cgi path=json_proto method=POST [09:29:50]POST find Content-Length [09:29:50]Host: 172.17.58.3:8080 [09:29:50]Content-Length: 215 [09:29:50]Content-Type: application/json [09:29:50] [09:29:50]POST finish read [09:29:50]Found Content-Length = 215 [09:29:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:50]execute_script... [09:29:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:50]POST & json_proto [09:29:50]process_json_proto [09:29:50]json parsed OK: [09:29:50]protocol is kg_v1.0 [09:29:50]action value=get_value [09:29:50]process_action get_value [09:29:50]cmd_get_value [09:29:50]process_action get_value done [09:29:50]requested_data is exist [09:29:50]produce_requested_data [09:29:50]requested_item kkm.sn is exist - process it [09:29:50]requested_item kkm.ver is exist - process it [09:29:50]requested_item fm.sn is exist - process it [09:29:50]wFMCommunicate request_size=4 [09:29:50]MH_SAM_APDU [09:29:50]CAPDU: 80 11 00 00 [09:29:50]Write to MH i2c: E2 08 00 08 1A 80 11 00 00 00 00 00 00 9C [09:29:50]Write i2c OK [09:29:50]MH_I2C_Read... [09:29:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:50]Read from MH i2c: E2 [09:29:50]MH_I2C_Read... [09:29:50]Read from MH i2c: E2 17 00 [09:29:50]MH_I2C_Read... [09:29:50]Read from MH i2c: E2 17 00 08 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 F0 [09:29:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [09:29:50]wFMCommunicate OK [09:29:50]requested_item fd.num is exist - process it [09:29:50]SAM_PROTO_GetFieldsCounters [09:29:50]wFMCommunicate request_size=4 [09:29:50]MH_SAM_APDU [09:29:50]CAPDU: 80 13 00 00 [09:29:50]Write to MH i2c: E2 08 00 09 1A 80 13 00 00 00 00 00 00 9F [09:29:50]Write i2c OK [09:29:50]MH_I2C_Read... [09:29:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:29:50]Read from MH i2c: E2 [09:29:50]MH_I2C_Read... [09:29:50]Read from MH i2c: E2 62 00 [09:29:50]MH_I2C_Read... [09:29:50]Read from MH i2c: E2 62 00 09 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 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 CD 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [09:29:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 CD 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:29:50]wFMCommunicate OK [09:29:50]SAM_PROTO_GetFieldsCounters done [09:29:50]requested_item shift.num is exist - process it [09:29:50]requested_item shift.opened is exist - process it [09:29:50]req_shift_opened [09:29:50]FM_GetShiftState [09:29:50]SAM_PROTO_GetShiftState [09:29:50]wFMCommunicate request_size=4 [09:29:50]MH_SAM_APDU [09:29:50]CAPDU: 80 13 01 00 [09:29:50]Write to MH i2c: E2 08 00 0A 1A 80 13 01 00 00 00 00 00 A1 [09:29:50]Write i2c OK [09:29:50]MH_I2C_Read... [09:29:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:50]Read from MH i2c: E2 [09:29:50]MH_I2C_Read... [09:29:50]Read from MH i2c: E2 0E 00 [09:29:50]MH_I2C_Read... [09:29:50]Read from MH i2c: E2 0E 00 0A 1A 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 BF [09:29:50]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [09:29:50]wFMCommunicate OK [09:29:50]SAM_PROTO_GetShiftState done [09:29:50]FM_GetShiftState done [09:29:50]req_shift_opened done [09:29:50]requested_item shift.open_date is exist - process it [09:29:50]req_shift_open_date [09:29:50]req_shift_open_date done [09:29:50]produce_requested_data done [09:29:50]produce_requested_data return {"kkm.sn":"0300000126","kkm.ver":"001","fm.sn":"0000000000875058","fd.num":103117,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [09:29:50]process_action_free get_value [09:29:50]json_value_free [09:29:50]json_value_free done [09:29:50]process_json_proto returns [09:29:50]Send response to host [09:29:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000126","kkm.ver":"001","fm.sn":"0000000000875058","fd.num":103117,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [09:29:50]free response buf [09:29:50]execute_script done [09:29:50]execute_script returns [09:29:50]free content buf [09:29:50]Sock 9.Close socket [09:29:50]Sock 9.Thread stoped [09:29:50]accept exits with 7 [09:29:50]New connection [09:29:50]New thread 3066707300 created [09:29:50]Thread 3066563940 joined [09:29:50]Waiting for new connection... [09:29:50] Sock 7.Parse request [09:29:50]Sock 7.Check first char [09:29:50]Sock 7.First char is OK [09:29:50]request: POST /json_proto HTTP/1.0 [09:29:50]Method: POST [09:29:50]URL: /json_proto [09:29:50]Method is POST - this is cgi request [09:29:50]url: /json_proto [09:29:50]query_string will be loaded in cgi processing [09:29:50]execute_cgi json_proto POST (null) [09:29:50]execute_cgi path=json_proto method=POST [09:29:50]POST find Content-Length [09:29:50]Host: 172.17.58.3:8080 [09:29:50]Content-Length: 331 [09:29:50]Content-Type: application/json [09:29:50] [09:29:50]POST finish read [09:29:50]Found Content-Length = 331 [09:29:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:29:50]execute_script... [09:29:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:29:51]POST & json_proto [09:29:51]process_json_proto [09:29:51]json parsed OK: [09:29:51]protocol is kg_v1.0 [09:29:51]action value=get_value [09:29:51]process_action get_value [09:29:51]cmd_get_value [09:29:51]process_action get_value done [09:29:51]requested_data is exist [09:29:51]produce_requested_data [09:29:51]requested_item fm.sale.total is exist - process it [09:29:51]SAM_PROTO_GetFMData [09:29:51]wFMCommunicate request_size=4 [09:29:51]MH_SAM_APDU [09:29:51]CAPDU: 80 13 03 00 [09:29:51]Write to MH i2c: E2 08 00 0B 1A 80 13 03 00 00 00 00 00 A4 [09:29:51]Write i2c OK [09:29:51]MH_I2C_Read... [09:29:51]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [09:29:51]Read from MH i2c: E2 [09:29:51]MH_I2C_Read... [09:29:51]Read from MH i2c: E2 FD 00 [09:29:51]MH_I2C_Read... [09:29:51]Read from MH i2c: E2 FD 00 0B 1A 00 C8 04 85 04 C4 04 6E 04 04 00 2D 8F 01 00 69 04 A3 00 6F 04 04 00 38 87 01 00 B1 04 05 00 7E 65 19 89 01 70 04 05 00 9C BB 32 0B 01 72 04 04 00 E2 A9 E6 7D 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 9F 5A C1 29 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 2B AF 7A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F5 07 00 00 B1 04 04 00 C8 C7 BC 12 70 04 04 00 60 B4 B0 12 72 04 03 00 68 13 0C 00 04 7C 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 EB 76 FD 01 90 00 AE [09:29:51]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 2D 8F 01 00 69 04 A3 00 6F 04 04 00 38 87 01 00 B1 04 05 00 7E 65 19 89 01 70 04 05 00 9C BB 32 0B 01 72 04 04 00 E2 A9 E6 7D 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 9F 5A C1 29 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 2B AF 7A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F5 07 00 00 B1 04 04 00 C8 C7 BC 12 70 04 04 00 60 B4 B0 12 72 04 03 00 68 13 0C 00 04 7C 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 EB 76 FD 01 90 00 [09:29:51]wFMCommunicate OK [09:29:51]wFMCommunicate request_size=4 [09:29:51]MH_SAM_APDU [09:29:51]CAPDU: 80 17 00 00 [09:29:51]Write to MH i2c: E2 08 00 0C 1A 80 17 00 00 00 00 00 00 A6 [09:29:51]Write i2c OK [09:29:51]MH_I2C_Read... [09:29:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:29:51]Read from MH i2c: E2 [09:29:51]MH_I2C_Read... [09:29:51]Read from MH i2c: E2 FD 00 [09:29:51]MH_I2C_Read... [09:29:51]Read from MH i2c: E2 FD 00 0C 1A 00 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 07 74 2A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 47 [09:29:51]RAPDU: 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 07 74 2A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:29:51]wFMCommunicate OK [09:29:51]wFMCommunicate request_size=4 [09:29:51]MH_SAM_APDU [09:29:51]CAPDU: 80 17 00 00 [09:29:51]Write to MH i2c: E2 08 00 0D 1A 80 17 00 00 00 00 00 00 A7 [09:29:51]Write i2c OK [09:29:51]MH_I2C_Read... [09:29:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:29:52]Read from MH i2c: E2 [09:29:52]MH_I2C_Read... [09:29:52]Read from MH i2c: E2 FD 00 [09:29:52]MH_I2C_Read... [09:29:52]Read from MH i2c: E2 FD 00 0D 1A 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7F [09:29:52]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:29:52]wFMCommunicate OK [09:29:52]wFMCommunicate request_size=4 [09:29:52]MH_SAM_APDU [09:29:52]CAPDU: 80 17 00 00 [09:29:52]Write to MH i2c: E2 08 00 0E 1A 80 17 00 00 00 00 00 00 A8 [09:29:52]Write i2c OK [09:29:52]MH_I2C_Read... [09:29:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:29:52]Read from MH i2c: E2 [09:29:52]MH_I2C_Read... [09:29:52]Read from MH i2c: E2 FD 00 [09:29:52]MH_I2C_Read... [09:29:52]Read from MH i2c: E2 FD 00 0E 1A 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 20 [09:29:52]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [09:29:52]wFMCommunicate OK [09:29:52]wFMCommunicate request_size=4 [09:29:52]MH_SAM_APDU [09:29:52]CAPDU: 80 17 00 00 [09:29:52]Write to MH i2c: E2 08 00 0F 1A 80 17 00 00 00 00 00 00 A9 [09:29:52]Write i2c OK [09:29:52]MH_I2C_Read... [09:29:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [09:29:52]Read from MH i2c: E2 [09:29:52]MH_I2C_Read... [09:29:52]Read from MH i2c: E2 E5 00 [09:29:52]MH_I2C_Read... [09:29:52]Read from MH i2c: E2 E5 00 0F 1A 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8D [09:29:52]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:29:52]wFMCommunicate OK [09:29:52]SAM_PROTO_GetFMData done [09:29:52]requested_item fm.sale_refund.total is exist - process it [09:29:52]requested_item fm.buy.total is exist - process it [09:29:52]requested_item shift.sale.total is exist - process it [09:29:52]SAM_PROTO_GetShiftData [09:29:52]wFMCommunicate request_size=4 [09:29:52]MH_SAM_APDU [09:29:52]CAPDU: 80 13 02 00 [09:29:52]Write to MH i2c: E2 08 00 10 1A 80 13 02 00 00 00 00 00 A8 [09:29:52]Write i2c OK [09:29:52]MH_I2C_Read... [09:29:52]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [09:29:53]Read from MH i2c: E2 [09:29:53]MH_I2C_Read... [09:29:53]Read from MH i2c: E2 FD 00 [09:29:53]MH_I2C_Read... [09:29:53]Read from MH i2c: E2 FD 00 10 1A 00 B3 04 AA 04 AF 04 6E 04 04 00 1C 00 00 00 69 04 98 00 6F 04 04 00 1B 00 00 00 B1 04 03 00 7C 82 24 70 04 03 00 7C 82 24 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 F7 E0 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 BE 52 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 30 75 70 04 02 00 30 75 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 77 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 90 00 BE [09:29:53]RAPDU: B3 04 AA 04 AF 04 6E 04 04 00 1C 00 00 00 69 04 98 00 6F 04 04 00 1B 00 00 00 B1 04 03 00 7C 82 24 70 04 03 00 7C 82 24 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 F7 E0 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 BE 52 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 30 75 70 04 02 00 30 75 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 77 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 90 00 [09:29:53]wFMCommunicate OK [09:29:53]wFMCommunicate request_size=4 [09:29:53]MH_SAM_APDU [09:29:53]CAPDU: 80 17 00 00 [09:29:53]Write to MH i2c: E2 08 00 11 1A 80 17 00 00 00 00 00 00 AB [09:29:53]Write i2c OK [09:29:53]MH_I2C_Read... [09:29:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:29:53]Read from MH i2c: E2 [09:29:53]MH_I2C_Read... [09:29:53]Read from MH i2c: E2 FD 00 [09:29:53]MH_I2C_Read... [09:29:53]Read from MH i2c: E2 FD 00 11 1A 00 00 01 F7 03 02 00 0A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 90 00 DC [09:29:53]RAPDU: 00 01 F7 03 02 00 0A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 90 00 [09:29:53]wFMCommunicate OK [09:29:53]wFMCommunicate request_size=4 [09:29:53]MH_SAM_APDU [09:29:53]CAPDU: 80 17 00 00 [09:29:53]Write to MH i2c: E2 08 00 12 1A 80 17 00 00 00 00 00 00 AC [09:29:53]Write i2c OK [09:29:53]MH_I2C_Read... [09:29:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:29:53]Read from MH i2c: E2 [09:29:53]MH_I2C_Read... [09:29:53]Read from MH i2c: E2 FD 00 [09:29:53]MH_I2C_Read... [09:29:53]Read from MH i2c: E2 FD 00 12 1A 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 59 [09:29:53]RAPDU: F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:29:53]wFMCommunicate OK [09:29:53]wFMCommunicate request_size=4 [09:29:53]MH_SAM_APDU [09:29:53]CAPDU: 80 17 00 00 [09:29:53]Write to MH i2c: E2 08 00 13 1A 80 17 00 00 00 00 00 00 AD [09:29:53]Write i2c OK [09:29:53]MH_I2C_Read... [09:29:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:29:53]Read from MH i2c: E2 [09:29:53]MH_I2C_Read... [09:29:53]Read from MH i2c: E2 FD 00 [09:29:53]MH_I2C_Read... [09:29:53]Read from MH i2c: E2 FD 00 13 1A 00 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 90 00 22 [09:29:53]RAPDU: 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 90 00 [09:29:53]wFMCommunicate OK [09:29:53]wFMCommunicate request_size=4 [09:29:53]MH_SAM_APDU [09:29:53]CAPDU: 80 17 00 00 [09:29:53]Write to MH i2c: E2 08 00 14 1A 80 17 00 00 00 00 00 00 AE [09:29:53]Write i2c OK [09:29:53]MH_I2C_Read... [09:29:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 205! [09:29:54]Read from MH i2c: E2 [09:29:54]MH_I2C_Read... [09:29:54]Read from MH i2c: E2 D0 00 [09:29:54]MH_I2C_Read... [09:29:54]Read from MH i2c: E2 D0 00 14 1A 00 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 [09:29:54]RAPDU: 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:29:54]wFMCommunicate OK [09:29:54]SAM_PROTO_GetShiftData done [09:29:54]requested_item shift.sale.total_cash is exist - process it [09:29:54]requested_item shift.sale_refund.total is exist - process it [09:29:54]requested_item shift.sale_refund.total_cash is exist - process it [09:29:54]requested_item shift.buy.total is exist - process it [09:29:54]requested_item shift.buy.total_cash is exist - process it [09:29:54]produce_requested_data done [09:29:54]produce_requested_data return {"fm.sale.total":65951102.70,"fm.sale_refund.total":3143618.00,"fm.buy.total":0.00,"shift.sale.total":23927.00,"shift.sale.total_cash":23927.00,"shift.sale_refund.total":300.00,"shift.sale_refund.total_cash":300.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [09:29:54]process_action_free get_value [09:29:54]json_value_free [09:29:54]json_value_free done [09:29:54]process_json_proto returns [09:29:54]Send response to host [09:29:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":65951102.70,"fm.sale_refund.total":3143618.00,"fm.buy.total":0.00,"shift.sale.total":23927.00,"shift.sale.total_cash":23927.00,"shift.sale_refund.total":300.00,"shift.sale_refund.total_cash":300.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [09:29:54]free response buf [09:29:54]execute_script done [09:29:54]execute_script returns [09:29:54]free content buf [09:29:54]Sock 7.Close socket [09:29:54]Sock 7.Thread stoped [09:29:54]OFD Sender: No OFD packet to send [09:29:59]OFD Sender: No OFD packet to send [09:30:04]OFD Sender: No OFD packet to send [09:30:09]OFD Sender: No OFD packet to send [09:30:14]OFD Sender: No OFD packet to send [09:30:19]OFD Sender: No OFD packet to send [09:30:24]OFD Sender: No OFD packet to send [09:30:29]OFD Sender: No OFD packet to send [09:30:34]OFD Sender: No OFD packet to send [09:30:39]OFD Sender: No OFD packet to send [09:30:44]OFD Sender: No OFD packet to send [09:30:49]OFD Sender: No OFD packet to send [09:30:54]OFD Sender: No OFD packet to send [09:30:59]OFD Sender: No OFD packet to send [09:31:04]OFD Sender: No OFD packet to send [09:31:09]OFD Sender: No OFD packet to send [09:31:14]OFD Sender: No OFD packet to send [09:31:19]OFD Sender: No OFD packet to send [09:31:24]OFD Sender: No OFD packet to send [09:31:29]OFD Sender: No OFD packet to send [09:31:34]OFD Sender: No OFD packet to send [09:31:39]OFD Sender: No OFD packet to send [09:31:44]OFD Sender: No OFD packet to send [09:31:49]OFD Sender: No OFD packet to send [09:31:54]OFD Sender: No OFD packet to send [09:31:59]OFD Sender: No OFD packet to send [09:32:04]OFD Sender: No OFD packet to send [09:32:09]OFD Sender: No OFD packet to send [09:32:14]OFD Sender: No OFD packet to send [09:32:19]OFD Sender: No OFD packet to send [09:32:24]OFD Sender: No OFD packet to send [09:32:29]OFD Sender: No OFD packet to send [09:32:34]OFD Sender: No OFD packet to send [09:32:39]OFD Sender: No OFD packet to send [09:32:44]OFD Sender: No OFD packet to send [09:32:49]OFD Sender: No OFD packet to send [09:32:54]OFD Sender: No OFD packet to send [09:32:59]OFD Sender: No OFD packet to send [09:33:04]OFD Sender: No OFD packet to send [09:33:09]OFD Sender: No OFD packet to send [09:33:14]OFD Sender: No OFD packet to send [09:33:19]OFD Sender: No OFD packet to send [09:33:24]OFD Sender: No OFD packet to send [09:33:29]OFD Sender: No OFD packet to send [09:33:34]OFD Sender: No OFD packet to send [09:33:39]OFD Sender: No OFD packet to send [09:33:44]OFD Sender: No OFD packet to send [09:33:49]OFD Sender: No OFD packet to send [09:33:54]OFD Sender: No OFD packet to send [09:33:59]OFD Sender: No OFD packet to send [09:34:04]OFD Sender: No OFD packet to send [09:34:09]OFD Sender: No OFD packet to send [09:34:14]OFD Sender: No OFD packet to send [09:34:19]OFD Sender: No OFD packet to send [09:34:24]OFD Sender: No OFD packet to send [09:34:29]OFD Sender: No OFD packet to send [09:34:34]OFD Sender: No OFD packet to send [09:34:39]OFD Sender: No OFD packet to send [09:34:44]OFD Sender: No OFD packet to send [09:34:49]OFD Sender: No OFD packet to send [09:34:54]OFD Sender: No OFD packet to send [09:34:59]OFD Sender: No OFD packet to send [09:35:04]OFD Sender: No OFD packet to send [09:35:09]OFD Sender: No OFD packet to send [09:35:14]OFD Sender: No OFD packet to send [09:35:19]OFD Sender: No OFD packet to send [09:35:24]OFD Sender: No OFD packet to send [09:35:29]OFD Sender: No OFD packet to send [09:35:34]OFD Sender: No OFD packet to send [09:35:39]OFD Sender: No OFD packet to send [09:35:44]OFD Sender: No OFD packet to send [09:35:49]OFD Sender: No OFD packet to send [09:35:54]OFD Sender: No OFD packet to send [09:35:59]OFD Sender: No OFD packet to send [09:36:04]OFD Sender: No OFD packet to send [09:36:09]OFD Sender: No OFD packet to send [09:36:14]OFD Sender: No OFD packet to send [09:36:19]OFD Sender: No OFD packet to send [09:36:24]OFD Sender: No OFD packet to send [09:36:29]OFD Sender: No OFD packet to send [09:36:34]OFD Sender: No OFD packet to send [09:36:39]OFD Sender: No OFD packet to send [09:36:44]OFD Sender: No OFD packet to send [09:36:49]OFD Sender: No OFD packet to send [09:36:54]OFD Sender: No OFD packet to send [09:36:59]OFD Sender: No OFD packet to send [09:37:04]OFD Sender: No OFD packet to send [09:37:09]OFD Sender: No OFD packet to send [09:37:14]OFD Sender: No OFD packet to send [09:37:19]OFD Sender: No OFD packet to send [09:37:24]OFD Sender: No OFD packet to send [09:37:29]OFD Sender: No OFD packet to send [09:37:34]OFD Sender: No OFD packet to send [09:37:39]OFD Sender: No OFD packet to send [09:37:44]OFD Sender: No OFD packet to send [09:37:49]OFD Sender: No OFD packet to send [09:37:54]OFD Sender: No OFD packet to send [09:37:59]OFD Sender: No OFD packet to send [09:38:04]OFD Sender: No OFD packet to send [09:38:09]OFD Sender: No OFD packet to send [09:38:14]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:44]OFD Sender: No OFD packet to send [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:15]accept exits with 9 [09:40:15]New connection [09:40:15]New thread 3066563940 created [09:40:15]Thread 3066707300 joined [09:40:15]Waiting for new connection... [09:40:15] Sock 9.Parse request [09:40:15]Sock 9.Check first char [09:40:15]Sock 9.First char is OK [09:40:15]request: POST /json_proto HTTP/1.0 [09:40:15]Method: POST [09:40:15]URL: /json_proto [09:40:15]Method is POST - this is cgi request [09:40:15]url: /json_proto [09:40:15]query_string will be loaded in cgi processing [09:40:15]execute_cgi json_proto POST (null) [09:40:15]execute_cgi path=json_proto method=POST [09:40:15]POST find Content-Length [09:40:15]Host: 172.17.58.3:8080 [09:40:15]Content-Length: 1178 [09:40:15]Content-Type: application/json [09:40:15] [09:40:15]POST finish read [09:40:15]Found Content-Length = 1178 [09:40:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 38\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0438\u0440\u043E\u0432\u0430 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)160747\u000A13.08.2024 09:49\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 3\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 1318.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4148325\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:15]execute_script... [09:40:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 38\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0438\u0440\u043E\u0432\u0430 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)160747\u000A13.08.2024 09:49\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 3\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 1318.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4148325\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:15]POST & json_proto [09:40:15]process_json_proto [09:40:15]json parsed OK: [09:40:15]protocol is kg_v1.0 [09:40:15]action value=print_text [09:40:15]process_action print_text [09:40:15]cmd_print_text [09:40:15]ExternCall_PrintAddStr [09:40:15]wPrintStart [09:40:15]Write to MH i2c: 01 00 00 15 1A 2F [09:40:15]Write i2c OK [09:40:15]MH_I2C_Read... [09:40:15]Read from MH i2c: 01 [09:40:15]MH_I2C_Read... [09:40:15]Read from MH i2c: 01 07 00 [09:40:15]MH_I2C_Read... [09:40:15]Read from MH i2c: 01 07 00 15 1A 00 00 00 00 00 FF 0F 44 [09:40:15]RasterBufferAndPrint [09:40:15]line *****ТОВАРНЫЙ ЧЕК***** [09:40:15]line АЗС 38 [09:40:15]line Партнер нефть [09:40:15]line 02508201610067 [09:40:15]line Кассир : Таирова А. [09:40:15]line Счет N : (1)160747 [09:40:15]line 13.08.2024 09:49 [09:40:15]line ПРОДАЖА [09:40:15]line ТРК (МРК, ГНК): 3 [09:40:15]line Вид ГСМ : 2710124130 [09:40:15]line Аи-92-К-5 [09:40:15]line 20.000 x 65.90 [09:40:15]line ИТОГ: 1318.00 [09:40:15]line Тип оплаты: Талоны: Партнер нефть [09:40:15]line 4148325 [09:40:15]line ______________________ [09:40:15]line (подпись) [09:40:15]written 0, free lines is 4095 [09:40:15]Write to MH i2c: 01 00 00 29 1A 43 [09:40:15]Write i2c OK [09:40:15]MH_I2C_Read... [09:40:15]Read from MH i2c: 01 [09:40:15]MH_I2C_Read... [09:40:15]Read from MH i2c: 01 07 00 [09:40:15]MH_I2C_Read... [09:40:15]Read from MH i2c: 01 07 00 29 1A 00 00 00 00 00 0F 0E 67 [09:40:15]RasterBufferAndPrint [09:40:15]line [09:40:15]line [09:40:15]line [09:40:15]line [09:40:15]line [09:40:15]written 0, free lines is 3601 [09:40:15]MH_Cut [09:40:15]Write to MH i2c: D1 01 00 30 1A 01 1C [09:40:15]Write i2c OK [09:40:15]MH_I2C_Read... [09:40:15]Read from MH i2c: D1 [09:40:15]MH_I2C_Read... [09:40:15]Read from MH i2c: D1 01 00 [09:40:15]MH_I2C_Read... [09:40:15]Read from MH i2c: D1 01 00 30 1A 00 1B [09:40:15]Write to MH i2c: 01 00 00 31 1A 4B [09:40:15]Write i2c OK [09:40:15]MH_I2C_Read... [09:40:15]*** Cut start [09:40:15]*** Purtial cut [09:40:15]*** CUTSNS_PIN = 0 [09:40:16]*** Stage 1: CUTSNS_PIN = 1 [09:40:17]Read from MH i2c: 01 [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: 01 07 00 [09:40:17]MH_I2C_Read... [09:40:17]*** Stop cut motor [09:40:17]*** Cut end [09:40:17]Read from MH i2c: 01 07 00 31 1A 00 00 00 00 00 FF 0F 60 [09:40:17]process_action print_text done [09:40:17]requested_data is exist [09:40:17]produce_requested_data [09:40:17]requested_item fm.sn is exist - process it [09:40:17]wFMCommunicate request_size=4 [09:40:17]MH_SAM_APDU [09:40:17]CAPDU: 80 11 00 00 [09:40:17]Write to MH i2c: E2 08 00 32 1A 80 11 00 00 00 00 00 00 C6 [09:40:17]Write i2c OK [09:40:17]MH_I2C_Read... [09:40:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:17]Read from MH i2c: E2 [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: E2 17 00 [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: E2 17 00 32 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 1A [09:40:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [09:40:17]wFMCommunicate OK [09:40:17]requested_item fd.num is exist - process it [09:40:17]SAM_PROTO_GetFieldsCounters [09:40:17]wFMCommunicate request_size=4 [09:40:17]MH_SAM_APDU [09:40:17]CAPDU: 80 13 00 00 [09:40:17]Write to MH i2c: E2 08 00 33 1A 80 13 00 00 00 00 00 00 C9 [09:40:17]Write i2c OK [09:40:17]MH_I2C_Read... [09:40:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:40:18]Read from MH i2c: E2 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 62 00 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 62 00 33 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 CD 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [09:40:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 CD 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:40:18]wFMCommunicate OK [09:40:18]SAM_PROTO_GetFieldsCounters done [09:40:18]requested_item shift.num is exist - process it [09:40:18]requested_item shift.opened is exist - process it [09:40:18]req_shift_opened [09:40:18]FM_GetShiftState [09:40:18]SAM_PROTO_GetShiftState [09:40:18]wFMCommunicate request_size=4 [09:40:18]MH_SAM_APDU [09:40:18]CAPDU: 80 13 01 00 [09:40:18]Write to MH i2c: E2 08 00 34 1A 80 13 01 00 00 00 00 00 CB [09:40:18]Write i2c OK [09:40:18]MH_I2C_Read... [09:40:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:18]Read from MH i2c: E2 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 0E 00 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 0E 00 34 1A 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 E9 [09:40:18]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [09:40:18]wFMCommunicate OK [09:40:18]SAM_PROTO_GetShiftState done [09:40:18]FM_GetShiftState done [09:40:18]req_shift_opened done [09:40:18]requested_item shift.open_date is exist - process it [09:40:18]req_shift_open_date [09:40:18]req_shift_open_date done [09:40:18]produce_requested_data done [09:40:18]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103117,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [09:40:18]process_action_free print_text [09:40:18]json_value_free [09:40:18]json_value_free done [09:40:18]process_json_proto returns [09:40:18]Send response to host [09:40:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103117,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [09:40:18]free response buf [09:40:18]execute_script done [09:40:18]execute_script returns [09:40:18]free content buf [09:40:18]Sock 9.Close socket [09:40:18]Sock 9.Thread stoped [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:40]OFD Sender: No OFD packet to send [09:40:45]OFD Sender: No OFD packet to send [09:40:50]OFD Sender: No OFD packet to send [09:40:55]OFD Sender: No OFD packet to send [09:41:00]OFD Sender: No OFD packet to send [09:41:05]OFD Sender: No OFD packet to send [09:41:10]OFD Sender: No OFD packet to send [09:41:15]OFD Sender: No OFD packet to send [09:41:20]OFD Sender: No OFD packet to send [09:41:25]OFD Sender: No OFD packet to send [09:41:30]OFD Sender: No OFD packet to send [09:41:35]OFD Sender: No OFD packet to send [09:41:40]OFD Sender: No OFD packet to send [09:41:45]OFD Sender: No OFD packet to send [09:41:50]OFD Sender: No OFD packet to send [09:41:55]OFD Sender: No OFD packet to send [09:42:00]OFD Sender: No OFD packet to send [09:42:05]OFD Sender: No OFD packet to send [09:42:10]OFD Sender: No OFD packet to send [09:42:15]OFD Sender: No OFD packet to send [09:42:20]OFD Sender: No OFD packet to send [09:42:25]OFD Sender: No OFD packet to send [09:42:30]OFD Sender: No OFD packet to send [09:42:35]OFD Sender: No OFD packet to send [09:42:40]OFD Sender: No OFD packet to send [09:42:40]accept exits with 7 [09:42:40]New connection [09:42:40]New thread 3066707300 created [09:42:40]Thread 3066563940 joined [09:42:40]Waiting for new connection... [09:42:40] Sock 7.Parse request [09:42:40]Sock 7.Check first char [09:42:40]Sock 7.First char is OK [09:42:40]request: POST /json_proto HTTP/1.0 [09:42:40]Method: POST [09:42:40]URL: /json_proto [09:42:40]Method is POST - this is cgi request [09:42:40]url: /json_proto [09:42:40]query_string will be loaded in cgi processing [09:42:40]execute_cgi json_proto POST (null) [09:42:40]execute_cgi path=json_proto method=POST [09:42:40]POST find Content-Length [09:42:40]Host: 172.17.58.3:8080 [09:42:40]Content-Length: 681 [09:42:40]Content-Type: application/json [09:42:40] [09:42:40]POST finish read [09:42:40]Found Content-Length = 681 [09:42:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160748", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:42:40]execute_script... [09:42:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160748", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:42:40]POST & json_proto [09:42:40]process_json_proto [09:42:40]json parsed OK: [09:42:40]protocol is kg_v1.0 [09:42:40]action value=close_receipt [09:42:40]process_action close_receipt [09:42:40]cmd_close_receipt [09:42:40]MH_GetDate [09:42:40]Write to MH i2c: F0 00 00 35 1A 3E [09:42:40]Write i2c OK [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: F0 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: F0 09 00 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: F0 09 00 35 1A 00 94 2A BB 66 DC E4 6D 64 B7 [09:42:40]GetLastDocTimeStamp 1723541325 [09:42:40]current date 1723542164 [09:42:40]FM_GetShiftState [09:42:40]SAM_PROTO_GetShiftState [09:42:40]wFMCommunicate request_size=4 [09:42:40]MH_SAM_APDU [09:42:40]CAPDU: 80 13 01 00 [09:42:40]Write to MH i2c: E2 08 00 36 1A 80 13 01 00 00 00 00 00 CD [09:42:40]Write i2c OK [09:42:40]MH_I2C_Read... [09:42:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:40]Read from MH i2c: E2 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: E2 0E 00 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: E2 0E 00 36 1A 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 EB [09:42:40]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [09:42:40]wFMCommunicate OK [09:42:40]SAM_PROTO_GetShiftState done [09:42:40]FM_GetShiftState done [09:42:40]opened in 1723506770 [09:42:40]opened+sec_in_day 1723593170 [09:42:40]quantity*price = 100036 [09:42:40]sum+1 = 100037 [09:42:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 29 13.08.2024 09:42 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103118 ФПД: 41736295092716 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T094244&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103118&fm=41736295092716&tin=02508201610067®Number=0000000000092718&sum=100000 [09:42:41]StoreToDocumentArchive [09:42:41]shift 464 fd 103118 [09:42:41]save to /storage/0464/doc_00103118 [09:42:41]save last doc name /storage/0464/doc_00103118 to /storage/kkm_last_doc_name [09:42:41]save OK [09:42:41]Clear old archive folders... [09:42:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:42:41]tlvbuf is B6E6CD30 [09:42:41]SAM_PROTO_ClearQueue [09:42:41]wFMCommunicate request_size=4 [09:42:41]MH_SAM_APDU [09:42:41]CAPDU: 80 09 00 00 [09:42:41]Write to MH i2c: E2 08 00 43 1A 80 09 00 00 00 00 00 00 CF [09:42:41]Write i2c OK [09:42:41]MH_I2C_Read... [09:42:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:41]Read from MH i2c: E2 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: E2 03 00 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: E2 03 00 43 1A 00 90 00 D1 [09:42:41]RAPDU: 90 00 [09:42:41]wFMCommunicate OK [09:42:41]SAM_PROTO_ClearQueue done [09:42:41]KKMCreateOFDPacket [09:42:41]OFDProtocolAddRootSTLVToBuf [09:42:41]FM_MakeSignedData [09:42:41]FM_MakeSignedData [09:42:41]SAM_PROTO_SignData [09:42:41]wFMCommunicate request_size=4 [09:42:41]MH_SAM_APDU [09:42:41]CAPDU: 80 0D 01 02 [09:42:41]Write to MH i2c: E2 08 00 44 1A 80 0D 01 02 00 00 00 00 D7 [09:42:41]Write i2c OK [09:42:41]MH_I2C_Read... [09:42:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:41]Read from MH i2c: E2 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: E2 03 00 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: E2 03 00 44 1A 00 90 00 D2 [09:42:41]RAPDU: 90 00 [09:42:41]wFMCommunicate OK [09:42:41]wFMCommunicate request_size=255 [09:42:41]MH_SAM_APDU [09:42:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 94 2A BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 CE 92 01 00 35 04 06 00 25 [09:42:41]Write to MH i2c: E2 02 01 45 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 94 2A BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 CE 92 01 00 35 04 06 00 25 00 00 4E [09:42:41]Write i2c OK [09:42:41]MH_I2C_Read... [09:42:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:42]Read from MH i2c: E2 [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: E2 03 00 [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: E2 03 00 45 1A 00 90 00 D3 [09:42:42]RAPDU: 90 00 [09:42:42]wFMCommunicate OK [09:42:42]wFMCommunicate request_size=10 [09:42:42]MH_SAM_APDU [09:42:42]CAPDU: 80 0D 02 02 05 F5 7D 0B 11 EC [09:42:42]Write to MH i2c: E2 0D 00 46 1A 80 0D 02 02 05 00 F5 7D 0B 11 EC 00 00 5E [09:42:42]Write i2c OK [09:42:42]MH_I2C_Read... [09:42:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:42]Read from MH i2c: E2 [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: E2 03 00 [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: E2 03 00 46 1A 00 90 00 D4 [09:42:42]RAPDU: 90 00 [09:42:42]wFMCommunicate OK [09:42:42]wFMCommunicate request_size=4 [09:42:42]MH_SAM_APDU [09:42:42]CAPDU: 80 0D 03 02 [09:42:42]Write to MH i2c: E2 08 00 47 1A 80 0D 03 02 00 00 00 00 DC [09:42:42]Write i2c OK [09:42:42]MH_I2C_Read... [09:42:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:42]Read from MH i2c: E2 [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: E2 0B 00 [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: E2 0B 00 47 1A 00 29 2B 8B 52 7D 58 03 3A 90 00 20 [09:42:42]RAPDU: 29 2B 8B 52 7D 58 03 3A 90 00 [09:42:42]wFMCommunicate OK [09:42:42]SAM_PROTO_SignData done [09:42:42]FM_MakeSignedData done [09:42:42]CreateOFDProtocolMessage [09:42:42]wFMCommunicate request_size=4 [09:42:42]MH_SAM_APDU [09:42:42]CAPDU: 80 11 00 00 [09:42:42]Write to MH i2c: E2 08 00 48 1A 80 11 00 00 00 00 00 00 DC [09:42:42]Write i2c OK [09:42:42]MH_I2C_Read... [09:42:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:42]Read from MH i2c: E2 [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: E2 17 00 [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: E2 17 00 48 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 30 [09:42:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [09:42:42]wFMCommunicate OK [09:42:42]CreateOFDProtocolMessage done [09:42:42]OFDSenderStorePacket 103118 [09:42:42]StoreOFDPacket docnum=103118 [09:42:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 12 1F 07 01 94 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 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 94 2A BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 CE 92 01 00 35 04 06 00 25 F5 7D 0B 11 EC 29 2B 8B 52 7D 58 03 3A [09:42:42]CheckFolder [09:42:42]dirname=/storage/ofd_packets [09:42:42]CheckFolder done [09:42:42]ProducePacketName [09:42:42]name=ofd_packets/00103118 [09:42:42]NVStorageSaveData ofd_packets/00103118 [09:42:42]File name is /storage/ofd_packets/00103118 [09:42:42]Write 301 bytes [09:42:42]NVStorageSaveData done [09:42:42]OFDSenderStorePacket done [09:42:42]KKMCreateOFDPacket done [09:42:42]NVStorageSaveData kkm_last_timestamp [09:42:42]File name is /storage/kkm_last_timestamp [09:42:42]Write 4 bytes [09:42:42]NVStorageSaveData done [09:42:42]ExternCall_PrintAddStr [09:42:42]wPrintStart [09:42:42]Write to MH i2c: 01 00 00 49 1A 63 [09:42:42]Write i2c OK [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: 01 [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: 01 07 00 [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: 01 07 00 49 1A 00 00 00 00 00 FF 0F 78 [09:42:42]RasterBufferAndPrint [09:42:42]line Счет N : (1)160748 [09:42:42]line ИНН: 02508201610067 [09:42:42]line Контрольно-Кассовый Чек [09:42:42]line ПРОДАЖА [09:42:42]line ТРК (МРК, ГНК) : 7 [09:42:42]line Товар: 2710124130 [09:42:42]line Аи-92-К-5 [09:42:42]line 15.180 * 65.90 [09:42:42]line = 1000.36 [09:42:42]line НДС 12% НСП 1% [09:42:42]line > о реализуемом товаре [09:42:42]line ОКРУГЛЕНИЕ: -0.36 [09:42:42]line ИТОГО: 1000.00 [09:42:42]line Внесено: 1000.00 [09:42:42]line СДАЧА: 0.00 [09:42:42]line НСП 1% : 8.85 [09:42:42]line НДС 12% : 106.23 [09:42:42]line Наличными: 1000.00 [09:42:42]line Безнал.: 0.00 [09:42:42]line Место: АЗС № 38 "Партнер Нефть" [09:42:42]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [09:42:42]line СНО: Общий режим [09:42:42]line Чек 29 13.08.2024 09:42 [09:42:42]line Смена: 464 ФФД: 1.0 [09:42:42]line ЗНМ: 0300000126 [09:42:42]line РНМ: 0000000000092718 [09:42:42]line Версия ККМ: 001 [09:42:42]line ФМ: 0000000000875058 [09:42:42]line ФД: 103118 [09:42:42]line ФПД: 41736295092716 [09:42:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T094244&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103118&fm=41736295092716&tin=02508201610067®Number=0000000000092718&sum=100000 [09:42:42]OFD Sender: Processing packet 103118 [packets to send 69, broken 68] [09:42:42]ProducePacketName [09:42:42]name=ofd_packets/00103118 [09:42:42]OFD Sender: To server: pG, [09:42:42]CommunicateWithHost lk.salyk.kg:30040 [09:42:42]ConnectInit lk.salyk.kg [09:42:42]written 0, free lines is 4095 [09:42:42]Connected sock=10 [09:42:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 12 1F 07 01 94 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 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 94 2A BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 CE 92 01 00 35 04 06 00 25 F5 7D 0B 11 EC 29 2B 8B 52 7D 58 03 3A [09:42:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 D8 BF 47 00 B8 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 CE 92 01 00 F4 03 04 00 07 D1 BA 66 B6 04 01 00 00 63 34 79 AB 05 A1 A6 03 [09:42:42]CommunicateWithHost err = 0 [09:42:42]CheckOFDResponse [09:42:42]1017 (14) - 77093643461234 [09:42:42]1041 (16) - 0000000000875058 [09:42:42]1040 (4) - 103118 [09:42:42]1012 (4) - 13.08.2024 03:20 [09:42:42]1206 (1) - 0 [09:42:42]OFD Sender: Remove packet 103118 [09:42:42]ProducePacketName [09:42:42]name=ofd_packets/00103118 [09:42:42]NVStorageDeleteData [09:42:42]Write to MH i2c: 01 00 00 74 1A 8E [09:42:42]Write i2c OK [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: 01 [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: 01 07 00 [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: 01 07 00 74 1A 00 00 00 00 00 E1 0C 82 [09:42:42]RasterBufferAndPrint [09:42:42]line [09:42:42]line [09:42:42]line [09:42:42]line [09:42:42]line [09:42:42]written 0, free lines is 3303 [09:42:43]MH_Cut [09:42:43]Write to MH i2c: D1 01 00 7B 1A 01 67 [09:42:43]Write i2c OK [09:42:43]MH_I2C_Read... [09:42:43]Read from MH i2c: D1 [09:42:43]MH_I2C_Read... [09:42:43]Read from MH i2c: D1 01 00 [09:42:43]MH_I2C_Read... [09:42:43]Read from MH i2c: D1 01 00 7B 1A 00 66 [09:42:43]Write to MH i2c: 01 00 00 7C 1A 96 [09:42:43]Write i2c OK [09:42:43]MH_I2C_Read... [09:42:43]OFD Sender: No OFD packet to send [09:42:43]*** Cut start [09:42:43]*** Purtial cut [09:42:43]*** Stage 1: CUTSNS_PIN = 1 [09:42:44]Read from MH i2c: 01 [09:42:44]MH_I2C_Read... [09:42:44]*** Stop cut motor [09:42:44]*** Cut end [09:42:44]Read from MH i2c: 01 07 00 [09:42:44]MH_I2C_Read... [09:42:44]Read from MH i2c: 01 07 00 7C 1A 00 00 00 00 00 FF 0F AB [09:42:44]process_action close_receipt done [09:42:44]requested_data is exist [09:42:44]produce_requested_data [09:42:44]requested_item fm.sn is exist - process it [09:42:44]wFMCommunicate request_size=4 [09:42:44]MH_SAM_APDU [09:42:44]CAPDU: 80 11 00 00 [09:42:44]Write to MH i2c: E2 08 00 7D 1A 80 11 00 00 00 00 00 00 11 [09:42:44]Write i2c OK [09:42:44]MH_I2C_Read... [09:42:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:44]Read from MH i2c: E2 [09:42:44]MH_I2C_Read... [09:42:44]Read from MH i2c: E2 17 00 [09:42:44]MH_I2C_Read... [09:42:44]Read from MH i2c: E2 17 00 7D 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 65 [09:42:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [09:42:44]wFMCommunicate OK [09:42:44]requested_item fd.num is exist - process it [09:42:44]SAM_PROTO_GetFieldsCounters [09:42:44]wFMCommunicate request_size=4 [09:42:44]MH_SAM_APDU [09:42:44]CAPDU: 80 13 00 00 [09:42:44]Write to MH i2c: E2 08 00 7E 1A 80 13 00 00 00 00 00 00 14 [09:42:44]Write i2c OK [09:42:44]MH_I2C_Read... [09:42:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:44]Read from MH i2c: E2 [09:42:44]MH_I2C_Read... [09:42:44]Read from MH i2c: E2 62 00 [09:42:44]MH_I2C_Read... [09:42:44]Read from MH i2c: E2 62 00 7E 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 CE 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [09:42:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 CE 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:42:44]wFMCommunicate OK [09:42:44]SAM_PROTO_GetFieldsCounters done [09:42:44]requested_item shift.num is exist - process it [09:42:44]requested_item shift.opened is exist - process it [09:42:44]req_shift_opened [09:42:44]FM_GetShiftState [09:42:44]SAM_PROTO_GetShiftState [09:42:44]wFMCommunicate request_size=4 [09:42:44]MH_SAM_APDU [09:42:44]CAPDU: 80 13 01 00 [09:42:44]Write to MH i2c: E2 08 00 7F 1A 80 13 01 00 00 00 00 00 16 [09:42:44]Write i2c OK [09:42:44]MH_I2C_Read... [09:42:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:44]Read from MH i2c: E2 [09:42:44]MH_I2C_Read... [09:42:44]Read from MH i2c: E2 0E 00 [09:42:44]MH_I2C_Read... [09:42:44]Read from MH i2c: E2 0E 00 7F 1A 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 34 [09:42:44]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [09:42:44]wFMCommunicate OK [09:42:44]SAM_PROTO_GetShiftState done [09:42:44]FM_GetShiftState done [09:42:44]req_shift_opened done [09:42:44]requested_item shift.open_date is exist - process it [09:42:44]req_shift_open_date [09:42:44]req_shift_open_date done [09:42:44]produce_requested_data done [09:42:44]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103118,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [09:42:44]process_action_free close_receipt [09:42:44]json_value_free [09:42:44]json_value_free done [09:42:44]process_json_proto returns [09:42:44]Send response to host [09:42:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103118,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [09:42:44]free response buf [09:42:44]execute_script done [09:42:44]execute_script returns [09:42:44]free content buf [09:42:44]Sock 7.Close socket [09:42:44]Sock 7.Thread stoped [09:42:48]OFD Sender: No OFD packet to send [09:42:53]OFD Sender: No OFD packet to send [09:42:58]OFD Sender: No OFD packet to send [09:43:03]OFD Sender: No OFD packet to send [09:43:08]OFD Sender: No OFD packet to send [09:43:13]OFD Sender: No OFD packet to send [09:43:18]OFD Sender: No OFD packet to send [09:43:23]OFD Sender: No OFD packet to send [09:43:28]OFD Sender: No OFD packet to send [09:43:33]OFD Sender: No OFD packet to send [09:43:38]OFD Sender: No OFD packet to send [09:43:43]OFD Sender: No OFD packet to send [09:43:48]OFD Sender: No OFD packet to send [09:43:53]OFD Sender: No OFD packet to send [09:43:58]OFD Sender: No OFD packet to send [09:44:03]OFD Sender: No OFD packet to send [09:44:08]OFD Sender: No OFD packet to send [09:44:13]OFD Sender: No OFD packet to send [09:44:18]OFD Sender: No OFD packet to send [09:44:23]OFD Sender: No OFD packet to send [09:44:28]OFD Sender: No OFD packet to send [09:44:33]OFD Sender: No OFD packet to send [09:44:38]OFD Sender: No OFD packet to send [09:44:43]OFD Sender: No OFD packet to send [09:44:44]accept exits with 9 [09:44:44]New connection [09:44:44]New thread 3066563940 created [09:44:44]Thread 3066707300 joined [09:44:44]Waiting for new connection... [09:44:44] Sock 9.Parse request [09:44:44]Sock 9.Check first char [09:44:44]Sock 9.First char is OK [09:44:44]request: POST /json_proto HTTP/1.0 [09:44:44]Method: POST [09:44:44]URL: /json_proto [09:44:44]Method is POST - this is cgi request [09:44:44]url: /json_proto [09:44:44]query_string will be loaded in cgi processing [09:44:44]execute_cgi json_proto POST (null) [09:44:44]execute_cgi path=json_proto method=POST [09:44:44]POST find Content-Length [09:44:44]Host: 172.17.58.3:8080 [09:44:44]Content-Length: 676 [09:44:44]Content-Type: application/json [09:44:44] [09:44:44]POST finish read [09:44:44]Found Content-Length = 676 [09:44:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160749", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 6.070, "sum" : 400.01, "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:44:44]execute_script... [09:44:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160749", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 6.070, "sum" : 400.01, "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:44:44]POST & json_proto [09:44:44]process_json_proto [09:44:44]json parsed OK: [09:44:44]protocol is kg_v1.0 [09:44:44]action value=close_receipt [09:44:44]process_action close_receipt [09:44:44]cmd_close_receipt [09:44:44]MH_GetDate [09:44:44]Write to MH i2c: F0 00 00 80 1A 89 [09:44:44]Write i2c OK [09:44:44]MH_I2C_Read... [09:44:44]Read from MH i2c: F0 [09:44:44]MH_I2C_Read... [09:44:44]Read from MH i2c: F0 09 00 [09:44:44]MH_I2C_Read... [09:44:44]Read from MH i2c: F0 09 00 80 1A 00 0F 2B BB 66 DC E4 6D 64 7E [09:44:44]GetLastDocTimeStamp 1723542164 [09:44:44]current date 1723542287 [09:44:44]FM_GetShiftState [09:44:44]SAM_PROTO_GetShiftState [09:44:44]wFMCommunicate request_size=4 [09:44:44]MH_SAM_APDU [09:44:44]CAPDU: 80 13 01 00 [09:44:44]Write to MH i2c: E2 08 00 81 1A 80 13 01 00 00 00 00 00 18 [09:44:44]Write i2c OK [09:44:44]MH_I2C_Read... [09:44:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:44]Read from MH i2c: E2 [09:44:44]MH_I2C_Read... [09:44:44]Read from MH i2c: E2 0E 00 [09:44:44]MH_I2C_Read... [09:44:44]Read from MH i2c: E2 0E 00 81 1A 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 36 [09:44:44]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [09:44:44]wFMCommunicate OK [09:44:44]SAM_PROTO_GetShiftState done [09:44:44]FM_GetShiftState done [09:44:44]opened in 1723506770 [09:44:44]opened+sec_in_day 1723593170 [09:44:44]quantity*price = 40001 [09:44:44]sum+1 = 40002 [09:44:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 30 13.08.2024 09:44 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103119 ФПД: 27729889473017 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T094447&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103119&fm=27729889473017&tin=02508201610067®Number=0000000000092718&sum=40000 [09:44:45]StoreToDocumentArchive [09:44:45]shift 464 fd 103119 [09:44:45]save to /storage/0464/doc_00103119 [09:44:45]save last doc name /storage/0464/doc_00103119 to /storage/kkm_last_doc_name [09:44:45]save OK [09:44:45]Clear old archive folders... [09:44:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:44:45]tlvbuf is 0025E160 [09:44:45]SAM_PROTO_ClearQueue [09:44:45]wFMCommunicate request_size=4 [09:44:45]MH_SAM_APDU [09:44:45]CAPDU: 80 09 00 00 [09:44:45]Write to MH i2c: E2 08 00 8E 1A 80 09 00 00 00 00 00 00 1A [09:44:45]Write i2c OK [09:44:45]MH_I2C_Read... [09:44:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:44:45]Read from MH i2c: E2 [09:44:45]MH_I2C_Read... [09:44:45]Read from MH i2c: E2 03 00 [09:44:45]MH_I2C_Read... [09:44:45]Read from MH i2c: E2 03 00 8E 1A 00 90 00 1C [09:44:45]RAPDU: 90 00 [09:44:45]wFMCommunicate OK [09:44:45]SAM_PROTO_ClearQueue done [09:44:45]KKMCreateOFDPacket [09:44:45]OFDProtocolAddRootSTLVToBuf [09:44:45]FM_MakeSignedData [09:44:45]FM_MakeSignedData [09:44:45]SAM_PROTO_SignData [09:44:45]wFMCommunicate request_size=4 [09:44:45]MH_SAM_APDU [09:44:45]CAPDU: 80 0D 01 02 [09:44:45]Write to MH i2c: E2 08 00 8F 1A 80 0D 01 02 00 00 00 00 22 [09:44:45]Write i2c OK [09:44:45]MH_I2C_Read... [09:44:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:44:45]Read from MH i2c: E2 [09:44:45]MH_I2C_Read... [09:44:45]Read from MH i2c: E2 03 00 [09:44:45]MH_I2C_Read... [09:44:45]Read from MH i2c: E2 03 00 8F 1A 00 90 00 1D [09:44:45]RAPDU: 90 00 [09:44:45]wFMCommunicate OK [09:44:45]wFMCommunicate request_size=255 [09:44:45]MH_SAM_APDU [09:44: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 B6 17 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 41 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 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 1E 00 00 00 F4 03 04 00 0F 2B BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 CF 92 01 00 35 04 06 00 19 [09:44:45]Write to MH i2c: E2 02 01 90 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 17 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 41 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 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 1E 00 00 00 F4 03 04 00 0F 2B BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 CF 92 01 00 35 04 06 00 19 00 00 38 [09:44:45]Write i2c OK [09:44:45]MH_I2C_Read... [09:44:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:45]Read from MH i2c: E2 [09:44:45]MH_I2C_Read... [09:44:45]Read from MH i2c: E2 03 00 [09:44:45]MH_I2C_Read... [09:44:45]Read from MH i2c: E2 03 00 90 1A 00 90 00 1E [09:44:45]RAPDU: 90 00 [09:44:45]wFMCommunicate OK [09:44:45]wFMCommunicate request_size=10 [09:44:45]MH_SAM_APDU [09:44:45]CAPDU: 80 0D 02 02 05 38 5E 36 31 F9 [09:44:45]Write to MH i2c: E2 0D 00 91 1A 80 0D 02 02 05 00 38 5E 36 31 F9 00 00 25 [09:44:45]Write i2c OK [09:44:45]MH_I2C_Read... [09:44:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:45]Read from MH i2c: E2 [09:44:45]MH_I2C_Read... [09:44:45]Read from MH i2c: E2 03 00 [09:44:45]MH_I2C_Read... [09:44:45]Read from MH i2c: E2 03 00 91 1A 00 90 00 1F [09:44:45]RAPDU: 90 00 [09:44:45]wFMCommunicate OK [09:44:45]wFMCommunicate request_size=4 [09:44:45]MH_SAM_APDU [09:44:45]CAPDU: 80 0D 03 02 [09:44:45]Write to MH i2c: E2 08 00 92 1A 80 0D 03 02 00 00 00 00 27 [09:44:45]Write i2c OK [09:44:45]MH_I2C_Read... [09:44:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:44:45]Read from MH i2c: E2 [09:44:45]MH_I2C_Read... [09:44:45]Read from MH i2c: E2 0B 00 [09:44:45]MH_I2C_Read... [09:44:45]Read from MH i2c: E2 0B 00 92 1A 00 D9 97 CD 39 A0 0B AD AD 90 00 A3 [09:44:45]RAPDU: D9 97 CD 39 A0 0B AD AD 90 00 [09:44:45]wFMCommunicate OK [09:44:45]SAM_PROTO_SignData done [09:44:45]FM_MakeSignedData done [09:44:45]CreateOFDProtocolMessage [09:44:45]wFMCommunicate request_size=4 [09:44:45]MH_SAM_APDU [09:44:45]CAPDU: 80 11 00 00 [09:44:45]Write to MH i2c: E2 08 00 93 1A 80 11 00 00 00 00 00 00 27 [09:44:45]Write i2c OK [09:44:45]MH_I2C_Read... [09:44:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:45]Read from MH i2c: E2 [09:44:45]MH_I2C_Read... [09:44:45]Read from MH i2c: E2 17 00 [09:44:45]MH_I2C_Read... [09:44:45]Read from MH i2c: E2 17 00 93 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 7B [09:44:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [09:44:45]wFMCommunicate OK [09:44:45]CreateOFDProtocolMessage done [09:44:45]OFDSenderStorePacket 103119 [09:44:45]StoreOFDPacket docnum=103119 [09:44:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 51 F5 07 01 44 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 B6 17 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 41 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 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 1E 00 00 00 F4 03 04 00 0F 2B BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 CF 92 01 00 35 04 06 00 19 38 5E 36 31 F9 D9 97 CD 39 A0 0B AD AD [09:44:45]CheckFolder [09:44:45]dirname=/storage/ofd_packets [09:44:45]CheckFolder done [09:44:45]ProducePacketName [09:44:45]name=ofd_packets/00103119 [09:44:45]NVStorageSaveData ofd_packets/00103119 [09:44:45]File name is /storage/ofd_packets/00103119 [09:44:45]Write 301 bytes [09:44:45]NVStorageSaveData done [09:44:45]OFDSenderStorePacket done [09:44:45]KKMCreateOFDPacket done [09:44:45]NVStorageSaveData kkm_last_timestamp [09:44:45]File name is /storage/kkm_last_timestamp [09:44:45]Write 4 bytes [09:44:45]NVStorageSaveData done [09:44:45]ExternCall_PrintAddStr [09:44:45]wPrintStart [09:44:45]Write to MH i2c: 01 00 00 94 1A AE [09:44:45]Write i2c OK [09:44:45]MH_I2C_Read... [09:44:45]Read from MH i2c: 01 [09:44:45]MH_I2C_Read... [09:44:45]Read from MH i2c: 01 07 00 [09:44:45]MH_I2C_Read... [09:44:45]Read from MH i2c: 01 07 00 94 1A 00 00 00 00 00 FF 0F C3 [09:44:45]RasterBufferAndPrint [09:44:45]line Счет N : (1)160749 [09:44:45]line ИНН: 02508201610067 [09:44:45]line Контрольно-Кассовый Чек [09:44:45]line ПРОДАЖА [09:44:45]line ТРК (МРК, ГНК) : 7 [09:44:45]line Товар: 2710124130 [09:44:45]line Аи-92-К-5 [09:44:45]line 6.070 * 65.90 [09:44:45]line = 400.01 [09:44:45]line НДС 12% НСП 1% [09:44:45]line > о реализуемом товаре [09:44:45]line ОКРУГЛЕНИЕ: -0.01 [09:44:45]line ИТОГО: 400.00 [09:44:45]line Внесено: 400.00 [09:44:45]line СДАЧА: 0.00 [09:44:45]line НСП 1% : 3.54 [09:44:45]line НДС 12% : 42.48 [09:44:45]line Наличными: 400.00 [09:44:45]line Безнал.: 0.00 [09:44:45]line Место: АЗС № 38 "Партнер Нефть" [09:44:45]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [09:44:45]line СНО: Общий режим [09:44:45]line Чек 30 13.08.2024 09:44 [09:44:45]line Смена: 464 ФФД: 1.0 [09:44:45]line ЗНМ: 0300000126 [09:44:45]line РНМ: 0000000000092718 [09:44:45]line Версия ККМ: 001 [09:44:45]line ФМ: 0000000000875058 [09:44:45]line ФД: 103119 [09:44:45]line ФПД: 27729889473017 [09:44:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T094447&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103119&fm=27729889473017&tin=02508201610067®Number=0000000000092718&sum=40000 [09:44:46]OFD Sender: Processing packet 103119 [packets to send 69, broken 68] [09:44:46]ProducePacketName [09:44:46]name=ofd_packets/00103119 [09:44:46]OFD Sender: To server: pG, [09:44:46]CommunicateWithHost lk.salyk.kg:30040 [09:44:46]ConnectInit lk.salyk.kg [09:44:46]written 0, free lines is 4095 [09:44:46]Connected sock=11 [09:44:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 51 F5 07 01 44 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 B6 17 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 41 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 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 1E 00 00 00 F4 03 04 00 0F 2B BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 CF 92 01 00 35 04 06 00 19 38 5E 36 31 F9 D9 97 CD 39 A0 0B AD AD [09:44:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 83 6F 47 00 75 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 35 30 35 38 10 04 04 00 CF 92 01 00 F4 03 04 00 83 D1 BA 66 B6 04 01 00 00 A7 54 A9 48 26 A9 6A 59 [09:44:46]CommunicateWithHost err = 0 [09:44:46]CheckOFDResponse [09:44:46]1017 (14) - 77093643461234 [09:44:46]1041 (16) - 0000000000875058 [09:44:46]1040 (4) - 103119 [09:44:46]1012 (4) - 13.08.2024 03:22 [09:44:46]1206 (1) - 0 [09:44:46]OFD Sender: Remove packet 103119 [09:44:46]ProducePacketName [09:44:46]name=ofd_packets/00103119 [09:44:46]NVStorageDeleteData [09:44:46]Write to MH i2c: 01 00 00 BF 1A D9 [09:44:46]Write i2c OK [09:44:46]MH_I2C_Read... [09:44:46]Read from MH i2c: 01 [09:44:46]MH_I2C_Read... [09:44:46]Read from MH i2c: 01 07 00 [09:44:46]MH_I2C_Read... [09:44:46]Read from MH i2c: 01 07 00 BF 1A 00 00 00 00 00 DC 0C C8 [09:44:46]RasterBufferAndPrint [09:44:46]line [09:44:46]line [09:44:46]line [09:44:46]line [09:44:46]line [09:44:46]written 0, free lines is 3297 [09:44:46]MH_Cut [09:44:46]Write to MH i2c: D1 01 00 C6 1A 01 B2 [09:44:46]Write i2c OK [09:44:46]MH_I2C_Read... [09:44:46]Read from MH i2c: D1 [09:44:46]MH_I2C_Read... [09:44:46]Read from MH i2c: D1 01 00 [09:44:46]MH_I2C_Read... [09:44:46]Read from MH i2c: D1 01 00 C6 1A 00 B1 [09:44:46]Write to MH i2c: 01 00 00 C7 1A E1 [09:44:46]Write i2c OK [09:44:46]MH_I2C_Read... [09:44:46]OFD Sender: No OFD packet to send [09:44:47]*** Cut start [09:44:47]*** Purtial cut [09:44:47]*** CUTSNS_PIN = 0 [09:44:47]*** Stage 1: CUTSNS_PIN = 1 [09:44:49]Read from MH i2c: 01 [09:44:49]MH_I2C_Read... [09:44:49]*** Stop cut motor [09:44:49]*** Cut end [09:44:49]Read from MH i2c: 01 07 00 [09:44:49]MH_I2C_Read... [09:44:49]Read from MH i2c: 01 07 00 C7 1A 00 00 00 00 00 FF 0F F6 [09:44:49]process_action close_receipt done [09:44:49]requested_data is exist [09:44:49]produce_requested_data [09:44:49]requested_item fm.sn is exist - process it [09:44:49]wFMCommunicate request_size=4 [09:44:49]MH_SAM_APDU [09:44:49]CAPDU: 80 11 00 00 [09:44:49]Write to MH i2c: E2 08 00 C8 1A 80 11 00 00 00 00 00 00 5C [09:44:49]Write i2c OK [09:44:49]MH_I2C_Read... [09:44:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:49]Read from MH i2c: E2 [09:44:49]MH_I2C_Read... [09:44:49]Read from MH i2c: E2 17 00 [09:44:49]MH_I2C_Read... [09:44:49]Read from MH i2c: E2 17 00 C8 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 B0 [09:44:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [09:44:49]wFMCommunicate OK [09:44:49]requested_item fd.num is exist - process it [09:44:49]SAM_PROTO_GetFieldsCounters [09:44:49]wFMCommunicate request_size=4 [09:44:49]MH_SAM_APDU [09:44:49]CAPDU: 80 13 00 00 [09:44:49]Write to MH i2c: E2 08 00 C9 1A 80 13 00 00 00 00 00 00 5F [09:44:49]Write i2c OK [09:44:49]MH_I2C_Read... [09:44:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:49]Read from MH i2c: E2 [09:44:49]MH_I2C_Read... [09:44:49]Read from MH i2c: E2 62 00 [09:44:49]MH_I2C_Read... [09:44:49]Read from MH i2c: E2 62 00 C9 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 CF 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [09:44:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 CF 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:44:49]wFMCommunicate OK [09:44:49]SAM_PROTO_GetFieldsCounters done [09:44:49]requested_item shift.num is exist - process it [09:44:49]requested_item shift.opened is exist - process it [09:44:49]req_shift_opened [09:44:49]FM_GetShiftState [09:44:49]SAM_PROTO_GetShiftState [09:44:49]wFMCommunicate request_size=4 [09:44:49]MH_SAM_APDU [09:44:49]CAPDU: 80 13 01 00 [09:44:49]Write to MH i2c: E2 08 00 CA 1A 80 13 01 00 00 00 00 00 61 [09:44:49]Write i2c OK [09:44:49]MH_I2C_Read... [09:44:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:49]Read from MH i2c: E2 [09:44:49]MH_I2C_Read... [09:44:49]Read from MH i2c: E2 0E 00 [09:44:49]MH_I2C_Read... [09:44:49]Read from MH i2c: E2 0E 00 CA 1A 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 7F [09:44:49]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [09:44:49]wFMCommunicate OK [09:44:49]SAM_PROTO_GetShiftState done [09:44:49]FM_GetShiftState done [09:44:49]req_shift_opened done [09:44:49]requested_item shift.open_date is exist - process it [09:44:49]req_shift_open_date [09:44:49]req_shift_open_date done [09:44:49]produce_requested_data done [09:44:49]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103119,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [09:44:49]process_action_free close_receipt [09:44:49]json_value_free [09:44:49]json_value_free done [09:44:49]process_json_proto returns [09:44:49]Send response to host [09:44:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103119,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [09:44:49]free response buf [09:44:49]execute_script done [09:44:49]execute_script returns [09:44:49]free content buf [09:44:49]Sock 9.Close socket [09:44:49]Sock 9.Thread stoped [09:44:51]OFD Sender: No OFD packet to send [09:44:56]OFD Sender: No OFD packet to send [09:45:01]OFD Sender: No OFD packet to send [09:45:06]OFD Sender: No OFD packet to send [09:45:11]OFD Sender: No OFD packet to send [09:45:16]OFD Sender: No OFD packet to send [09:45:21]OFD Sender: No OFD packet to send [09:45:26]OFD Sender: No OFD packet to send [09:45:31]OFD Sender: No OFD packet to send [09:45:36]OFD Sender: No OFD packet to send [09:45:41]OFD Sender: No OFD packet to send [09:45:47]OFD Sender: No OFD packet to send [09:45:52]OFD Sender: No OFD packet to send [09:45:57]OFD Sender: No OFD packet to send [09:46:02]OFD Sender: No OFD packet to send [09:46:07]OFD Sender: No OFD packet to send [09:46:10]accept exits with 7 [09:46:10]New connection [09:46:10]New thread 3066707300 created [09:46:10]Thread 3066563940 joined [09:46:10]Waiting for new connection... [09:46:10] Sock 7.Parse request [09:46:10]Sock 7.Check first char [09:46:10]Sock 7.First char is OK [09:46:10]request: POST /json_proto HTTP/1.0 [09:46:10]Method: POST [09:46:10]URL: /json_proto [09:46:10]Method is POST - this is cgi request [09:46:10]url: /json_proto [09:46:10]query_string will be loaded in cgi processing [09:46:10]execute_cgi json_proto POST (null) [09:46:10]execute_cgi path=json_proto method=POST [09:46:10]POST find Content-Length [09:46:10]Host: 172.17.58.3:8080 [09:46:10]Content-Length: 677 [09:46:10]Content-Type: application/json [09:46:10] [09:46:10]POST finish read [09:46:10]Found Content-Length = 677 [09:46:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160750", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 13.010, "sum" : 857.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 857.00, "total" : 857.00, "payments": [ { "type": 0, "sum" : 857.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:10]execute_script... [09:46: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)160750", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 13.010, "sum" : 857.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 857.00, "total" : 857.00, "payments": [ { "type": 0, "sum" : 857.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:10]POST & json_proto [09:46:10]process_json_proto [09:46:10]json parsed OK: [09:46:10]protocol is kg_v1.0 [09:46:10]action value=close_receipt [09:46:10]process_action close_receipt [09:46:10]cmd_close_receipt [09:46:10]MH_GetDate [09:46:10]Write to MH i2c: F0 00 00 CB 1A D4 [09:46:10]Write i2c OK [09:46:10]MH_I2C_Read... [09:46:10]Read from MH i2c: F0 [09:46:10]MH_I2C_Read... [09:46:10]Read from MH i2c: F0 09 00 [09:46:10]MH_I2C_Read... [09:46:10]Read from MH i2c: F0 09 00 CB 1A 00 66 2B BB 66 DC E4 6D 64 20 [09:46:10]GetLastDocTimeStamp 1723542287 [09:46:10]current date 1723542374 [09:46:10]FM_GetShiftState [09:46:10]SAM_PROTO_GetShiftState [09:46:10]wFMCommunicate request_size=4 [09:46:10]MH_SAM_APDU [09:46:10]CAPDU: 80 13 01 00 [09:46:10]Write to MH i2c: E2 08 00 CC 1A 80 13 01 00 00 00 00 00 63 [09:46:10]Write i2c OK [09:46:10]MH_I2C_Read... [09:46:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:10]Read from MH i2c: E2 [09:46:10]MH_I2C_Read... [09:46:10]Read from MH i2c: E2 0E 00 [09:46:10]MH_I2C_Read... [09:46:10]Read from MH i2c: E2 0E 00 CC 1A 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 81 [09:46:10]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [09:46:10]wFMCommunicate OK [09:46:10]SAM_PROTO_GetShiftState done [09:46:10]FM_GetShiftState done [09:46:10]opened in 1723506770 [09:46:10]opened+sec_in_day 1723593170 [09:46:10]quantity*price = 85735 [09:46:10]sum+1 = 85737 [09:46:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 857.00 Внесено: 857.00 СДАЧА: 0.00 НСП 1% : 7.59 НДС 12% : 91.05 Наличными: 857.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 31 13.08.2024 09:46 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103120 ФПД: 149138630797051 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T094614&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103120&fm=149138630797051&tin=02508201610067®Number=0000000000092718&sum=85700 [09:46:11]StoreToDocumentArchive [09:46:11]shift 464 fd 103120 [09:46:11]save to /storage/0464/doc_00103120 [09:46:11]save last doc name /storage/0464/doc_00103120 to /storage/kkm_last_doc_name [09:46:11]save OK [09:46:11]Clear old archive folders... [09:46:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:46:11]tlvbuf is 00296550 [09:46:11]SAM_PROTO_ClearQueue [09:46:11]wFMCommunicate request_size=4 [09:46:11]MH_SAM_APDU [09:46:11]CAPDU: 80 09 00 00 [09:46:11]Write to MH i2c: E2 08 00 D9 1A 80 09 00 00 00 00 00 00 65 [09:46:11]Write i2c OK [09:46:11]MH_I2C_Read... [09:46:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:46:11]Read from MH i2c: E2 [09:46:11]MH_I2C_Read... [09:46:11]Read from MH i2c: E2 03 00 [09:46:11]MH_I2C_Read... [09:46:11]Read from MH i2c: E2 03 00 D9 1A 00 90 00 67 [09:46:11]RAPDU: 90 00 [09:46:11]wFMCommunicate OK [09:46:11]SAM_PROTO_ClearQueue done [09:46:11]KKMCreateOFDPacket [09:46:11]OFDProtocolAddRootSTLVToBuf [09:46:11]FM_MakeSignedData [09:46:11]FM_MakeSignedData [09:46:11]SAM_PROTO_SignData [09:46:11]wFMCommunicate request_size=4 [09:46:11]MH_SAM_APDU [09:46:11]CAPDU: 80 0D 01 02 [09:46:11]Write to MH i2c: E2 08 00 DA 1A 80 0D 01 02 00 00 00 00 6D [09:46:11]Write i2c OK [09:46:11]MH_I2C_Read... [09:46:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:46:11]Read from MH i2c: E2 [09:46:11]MH_I2C_Read... [09:46:11]Read from MH i2c: E2 03 00 [09:46:11]MH_I2C_Read... [09:46:11]Read from MH i2c: E2 03 00 DA 1A 00 90 00 68 [09:46:11]RAPDU: 90 00 [09:46:11]wFMCommunicate OK [09:46:11]wFMCommunicate request_size=255 [09:46:11]MH_SAM_APDU [09:46: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 D2 32 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 E8 4E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 4E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F7 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 23 00 00 00 00 07 04 06 00 C4 4E 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 66 2B BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 D0 92 01 00 35 04 06 00 87 [09:46:11]Write to MH i2c: E2 02 01 DB 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 32 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 E8 4E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 4E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F7 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 23 00 00 00 00 07 04 06 00 C4 4E 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 66 2B BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 D0 92 01 00 35 04 06 00 87 00 00 EB [09:46:11]Write i2c OK [09:46:11]MH_I2C_Read... [09:46:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:11]Read from MH i2c: E2 [09:46:11]MH_I2C_Read... [09:46:11]Read from MH i2c: E2 03 00 [09:46:11]MH_I2C_Read... [09:46:11]Read from MH i2c: E2 03 00 DB 1A 00 90 00 69 [09:46:11]RAPDU: 90 00 [09:46:11]wFMCommunicate OK [09:46:11]wFMCommunicate request_size=10 [09:46:11]MH_SAM_APDU [09:46:11]CAPDU: 80 0D 02 02 05 A4 0B 1C 66 FB [09:46:11]Write to MH i2c: E2 0D 00 DC 1A 80 0D 02 02 05 00 A4 0B 1C 66 FB 00 00 A6 [09:46:11]Write i2c OK [09:46:11]MH_I2C_Read... [09:46:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:12]Read from MH i2c: E2 [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: E2 03 00 [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: E2 03 00 DC 1A 00 90 00 6A [09:46:12]RAPDU: 90 00 [09:46:12]wFMCommunicate OK [09:46:12]wFMCommunicate request_size=4 [09:46:12]MH_SAM_APDU [09:46:12]CAPDU: 80 0D 03 02 [09:46:12]Write to MH i2c: E2 08 00 DD 1A 80 0D 03 02 00 00 00 00 72 [09:46:12]Write i2c OK [09:46:12]MH_I2C_Read... [09:46:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:46:12]OFD Sender: No OFD packet to send [09:46:12]Read from MH i2c: E2 [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: E2 0B 00 [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: E2 0B 00 DD 1A 00 1A 3B 0C BA D3 5B 38 C4 90 00 B8 [09:46:12]RAPDU: 1A 3B 0C BA D3 5B 38 C4 90 00 [09:46:12]wFMCommunicate OK [09:46:12]SAM_PROTO_SignData done [09:46:12]FM_MakeSignedData done [09:46:12]CreateOFDProtocolMessage [09:46:12]wFMCommunicate request_size=4 [09:46:12]MH_SAM_APDU [09:46:12]CAPDU: 80 11 00 00 [09:46:12]Write to MH i2c: E2 08 00 DE 1A 80 11 00 00 00 00 00 00 72 [09:46:12]Write i2c OK [09:46:12]MH_I2C_Read... [09:46:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:12]Read from MH i2c: E2 [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: E2 17 00 [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: E2 17 00 DE 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 C6 [09:46:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [09:46:12]wFMCommunicate OK [09:46:12]CreateOFDProtocolMessage done [09:46:12]OFDSenderStorePacket 103120 [09:46:12]StoreOFDPacket docnum=103120 [09:46:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 D7 DF 07 01 77 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 D2 32 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 E8 4E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 4E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F7 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 23 00 00 00 00 07 04 06 00 C4 4E 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 66 2B BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 D0 92 01 00 35 04 06 00 87 A4 0B 1C 66 FB 1A 3B 0C BA D3 5B 38 C4 [09:46:12]CheckFolder [09:46:12]dirname=/storage/ofd_packets [09:46:12]CheckFolder done [09:46:12]ProducePacketName [09:46:12]name=ofd_packets/00103120 [09:46:12]NVStorageSaveData ofd_packets/00103120 [09:46:12]File name is /storage/ofd_packets/00103120 [09:46:12]Write 301 bytes [09:46:12]NVStorageSaveData done [09:46:12]OFDSenderStorePacket done [09:46:12]KKMCreateOFDPacket done [09:46:12]NVStorageSaveData kkm_last_timestamp [09:46:12]File name is /storage/kkm_last_timestamp [09:46:12]Write 4 bytes [09:46:12]NVStorageSaveData done [09:46:12]ExternCall_PrintAddStr [09:46:12]wPrintStart [09:46:12]Write to MH i2c: 01 00 00 DF 1A F9 [09:46:12]Write i2c OK [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: 01 [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: 01 07 00 [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: 01 07 00 DF 1A 00 00 00 00 00 FF 0F 0E [09:46:12]RasterBufferAndPrint [09:46:12]line Счет N : (1)160750 [09:46:12]line ИНН: 02508201610067 [09:46:12]line Контрольно-Кассовый Чек [09:46:12]line ПРОДАЖА [09:46:12]line ТРК (МРК, ГНК) : 3 [09:46:12]line Товар: 2710124130 [09:46:12]line Аи-92-К-5 [09:46:12]line 13.010 * 65.90 [09:46:12]line = 857.36 [09:46:12]line НДС 12% НСП 1% [09:46:12]line > о реализуемом товаре [09:46:12]line ОКРУГЛЕНИЕ: -0.36 [09:46:12]line ИТОГО: 857.00 [09:46:12]line Внесено: 857.00 [09:46:12]line СДАЧА: 0.00 [09:46:12]line НСП 1% : 7.59 [09:46:12]line НДС 12% : 91.05 [09:46:12]line Наличными: 857.00 [09:46:12]line Безнал.: 0.00 [09:46:12]line Место: АЗС № 38 "Партнер Нефть" [09:46:12]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [09:46:12]line СНО: Общий режим [09:46:12]line Чек 31 13.08.2024 09:46 [09:46:12]line Смена: 464 ФФД: 1.0 [09:46:12]line ЗНМ: 0300000126 [09:46:12]line РНМ: 0000000000092718 [09:46:12]line Версия ККМ: 001 [09:46:12]line ФМ: 0000000000875058 [09:46:12]line ФД: 103120 [09:46:12]line ФПД: 149138630797051 [09:46:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T094614&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103120&fm=149138630797051&tin=02508201610067®Number=0000000000092718&sum=85700 [09:46:12]OFD Sender: Processing packet 103120 [packets to send 69, broken 68] [09:46:12]ProducePacketName [09:46:12]name=ofd_packets/00103120 [09:46:12]OFD Sender: To server: pG, [09:46:12]CommunicateWithHost lk.salyk.kg:30040 [09:46:12]ConnectInit lk.salyk.kg [09:46:12]written 0, free lines is 4095 [09:46:12]Connected sock=10 [09:46:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 D7 DF 07 01 77 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 D2 32 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 E8 4E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 4E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F7 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 23 00 00 00 00 07 04 06 00 C4 4E 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 66 2B BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 D0 92 01 00 35 04 06 00 87 A4 0B 1C 66 FB 1A 3B 0C BA D3 5B 38 C4 [09:46:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 F8 12 47 00 54 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 D0 92 01 00 F4 03 04 00 D9 D1 BA 66 B6 04 01 00 00 1A F2 40 CA E3 4D 8B E0 [09:46:12]CommunicateWithHost err = 0 [09:46:12]CheckOFDResponse [09:46:12]1017 (14) - 77093643461234 [09:46:12]1041 (16) - 0000000000875058 [09:46:12]1040 (4) - 103120 [09:46:12]1012 (4) - 13.08.2024 03:24 [09:46:12]1206 (1) - 0 [09:46:12]OFD Sender: Remove packet 103120 [09:46:12]ProducePacketName [09:46:12]name=ofd_packets/00103120 [09:46:12]NVStorageDeleteData [09:46:12]Write to MH i2c: 01 00 00 0A 1B 25 [09:46:12]Write i2c OK [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: 01 [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: 01 07 00 [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: 01 07 00 0A 1B 00 00 00 00 00 E3 0C 1B [09:46:12]RasterBufferAndPrint [09:46:12]line [09:46:12]line [09:46:12]line [09:46:12]line [09:46:12]line [09:46:12]written 0, free lines is 3308 [09:46:12]MH_Cut [09:46:12]Write to MH i2c: D1 01 00 11 1B 01 FE [09:46:12]Write i2c OK [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: D1 [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: D1 01 00 [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: D1 01 00 11 1B 00 FD [09:46:12]Write to MH i2c: 01 00 00 12 1B 2D [09:46:12]Write i2c OK [09:46:12]MH_I2C_Read... [09:46:13]OFD Sender: No OFD packet to send [09:46:13]*** Cut start [09:46:13]*** Purtial cut [09:46:13]*** Stage 1: CUTSNS_PIN = 1 [09:46:13]Read from MH i2c: 01 [09:46:13]MH_I2C_Read... [09:46:13]*** Stop cut motor [09:46:13]*** Cut end [09:46:13]Read from MH i2c: 01 07 00 [09:46:13]MH_I2C_Read... [09:46:13]Read from MH i2c: 01 07 00 12 1B 00 00 00 00 00 FF 0F 42 [09:46:13]process_action close_receipt done [09:46:13]requested_data is exist [09:46:13]produce_requested_data [09:46:13]requested_item fm.sn is exist - process it [09:46:13]wFMCommunicate request_size=4 [09:46:13]MH_SAM_APDU [09:46:13]CAPDU: 80 11 00 00 [09:46:14]Write to MH i2c: E2 08 00 13 1B 80 11 00 00 00 00 00 00 A8 [09:46:14]Write i2c OK [09:46:14]MH_I2C_Read... [09:46:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:14]Read from MH i2c: E2 [09:46:14]MH_I2C_Read... [09:46:14]Read from MH i2c: E2 17 00 [09:46:14]MH_I2C_Read... [09:46:14]Read from MH i2c: E2 17 00 13 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 FC [09:46:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [09:46:14]wFMCommunicate OK [09:46:14]requested_item fd.num is exist - process it [09:46:14]SAM_PROTO_GetFieldsCounters [09:46:14]wFMCommunicate request_size=4 [09:46:14]MH_SAM_APDU [09:46:14]CAPDU: 80 13 00 00 [09:46:14]Write to MH i2c: E2 08 00 14 1B 80 13 00 00 00 00 00 00 AB [09:46:14]Write i2c OK [09:46:14]MH_I2C_Read... [09:46:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:46:14]Read from MH i2c: E2 [09:46:14]MH_I2C_Read... [09:46:14]Read from MH i2c: E2 62 00 [09:46:14]MH_I2C_Read... [09:46:14]Read from MH i2c: E2 62 00 14 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 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 D0 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [09:46:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 D0 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:46:14]wFMCommunicate OK [09:46:14]SAM_PROTO_GetFieldsCounters done [09:46:14]requested_item shift.num is exist - process it [09:46:14]requested_item shift.opened is exist - process it [09:46:14]req_shift_opened [09:46:14]FM_GetShiftState [09:46:14]SAM_PROTO_GetShiftState [09:46:14]wFMCommunicate request_size=4 [09:46:14]MH_SAM_APDU [09:46:14]CAPDU: 80 13 01 00 [09:46:14]Write to MH i2c: E2 08 00 15 1B 80 13 01 00 00 00 00 00 AD [09:46:14]Write i2c OK [09:46:14]MH_I2C_Read... [09:46:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:14]Read from MH i2c: E2 [09:46:14]MH_I2C_Read... [09:46:14]Read from MH i2c: E2 0E 00 [09:46:14]MH_I2C_Read... [09:46:14]Read from MH i2c: E2 0E 00 15 1B 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 CB [09:46:14]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [09:46:14]wFMCommunicate OK [09:46:14]SAM_PROTO_GetShiftState done [09:46:14]FM_GetShiftState done [09:46:14]req_shift_opened done [09:46:14]requested_item shift.open_date is exist - process it [09:46:14]req_shift_open_date [09:46:14]req_shift_open_date done [09:46:14]produce_requested_data done [09:46:14]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103120,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [09:46:14]process_action_free close_receipt [09:46:14]json_value_free [09:46:14]json_value_free done [09:46:14]process_json_proto returns [09:46:14]Send response to host [09:46:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103120,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [09:46:14]free response buf [09:46:14]execute_script done [09:46:14]execute_script returns [09:46:14]free content buf [09:46:14]Sock 7.Close socket [09:46:14]Sock 7.Thread stoped [09:46:18]OFD Sender: No OFD packet to send [09:46:23]OFD Sender: No OFD packet to send [09:46:28]OFD Sender: No OFD packet to send [09:46:33]OFD Sender: No OFD packet to send [09:46:38]OFD Sender: No OFD packet to send [09:46:43]OFD Sender: No OFD packet to send [09:46:48]OFD Sender: No OFD packet to send [09:46:53]OFD Sender: No OFD packet to send [09:46:58]OFD Sender: No OFD packet to send [09:47:03]OFD Sender: No OFD packet to send [09:47:08]OFD Sender: No OFD packet to send [09:47:13]OFD Sender: No OFD packet to send [09:47:18]OFD Sender: No OFD packet to send [09:47:23]OFD Sender: No OFD packet to send [09:47:28]OFD Sender: No OFD packet to send [09:47:33]OFD Sender: No OFD packet to send [09:47:38]OFD Sender: No OFD packet to send [09:47:43]OFD Sender: No OFD packet to send [09:47:48]OFD Sender: No OFD packet to send [09:47:53]OFD Sender: No OFD packet to send [09:47:58]OFD Sender: No OFD packet to send [09:48:03]OFD Sender: No OFD packet to send [09:48:08]OFD Sender: No OFD packet to send [09:48:13]OFD Sender: No OFD packet to send [09:48:18]OFD Sender: No OFD packet to send [09:48:23]OFD Sender: No OFD packet to send [09:48:28]OFD Sender: No OFD packet to send [09:48:33]OFD Sender: No OFD packet to send [09:48:38]OFD Sender: No OFD packet to send [09:48:38]accept exits with 9 [09:48:38]New connection [09:48:38]New thread 3066563940 created [09:48:38]Thread 3066707300 joined [09:48:38]Waiting for new connection... [09:48:38] Sock 9.Parse request [09:48:38]Sock 9.Check first char [09:48:38]Sock 9.First char is OK [09:48:38]request: POST /json_proto HTTP/1.0 [09:48:38]Method: POST [09:48:38]URL: /json_proto [09:48:38]Method is POST - this is cgi request [09:48:38]url: /json_proto [09:48:38]query_string will be loaded in cgi processing [09:48:38]execute_cgi json_proto POST (null) [09:48:38]execute_cgi path=json_proto method=POST [09:48:38]POST find Content-Length [09:48:38]Host: 172.17.58.3:8080 [09:48:38]Content-Length: 679 [09:48:38]Content-Type: application/json [09:48:38] [09:48:38]POST finish read [09:48:38]Found Content-Length = 679 [09:48:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 27.110, "sum" : 2000.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:38]execute_script... [09:48:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 27.110, "sum" : 2000.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:38]POST & json_proto [09:48:38]process_json_proto [09:48:38]json parsed OK: [09:48:38]protocol is kg_v1.0 [09:48:38]action value=close_receipt [09:48:38]process_action close_receipt [09:48:38]cmd_close_receipt [09:48:38]MH_GetDate [09:48:38]Write to MH i2c: F0 00 00 16 1B 20 [09:48:38]Write i2c OK [09:48:38]MH_I2C_Read... [09:48:38]Read from MH i2c: F0 [09:48:38]MH_I2C_Read... [09:48:38]Read from MH i2c: F0 09 00 [09:48:38]MH_I2C_Read... [09:48:38]Read from MH i2c: F0 09 00 16 1B 00 FA 2B BB 66 DC E4 6D 64 00 [09:48:38]GetLastDocTimeStamp 1723542374 [09:48:38]current date 1723542522 [09:48:38]FM_GetShiftState [09:48:38]SAM_PROTO_GetShiftState [09:48:38]wFMCommunicate request_size=4 [09:48:38]MH_SAM_APDU [09:48:38]CAPDU: 80 13 01 00 [09:48:38]Write to MH i2c: E2 08 00 17 1B 80 13 01 00 00 00 00 00 AF [09:48:38]Write i2c OK [09:48:38]MH_I2C_Read... [09:48:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:38]Read from MH i2c: E2 [09:48:38]MH_I2C_Read... [09:48:38]Read from MH i2c: E2 0E 00 [09:48:38]MH_I2C_Read... [09:48:38]Read from MH i2c: E2 0E 00 17 1B 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 CD [09:48:38]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [09:48:38]wFMCommunicate OK [09:48:38]SAM_PROTO_GetShiftState done [09:48:38]FM_GetShiftState done [09:48:38]opened in 1723506770 [09:48:38]opened+sec_in_day 1723593170 [09:48:38]quantity*price = 200071 [09:48:38]sum+1 = 200073 [09:48:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.72 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.47 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 32 13.08.2024 09:48 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103121 ФПД: 14306728203734 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T094842&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103121&fm=14306728203734&tin=02508201610067®Number=0000000000092718&sum=200000 [09:48:39]StoreToDocumentArchive [09:48:39]shift 464 fd 103121 [09:48:39]save to /storage/0464/doc_00103121 [09:48:39]save last doc name /storage/0464/doc_00103121 to /storage/kkm_last_doc_name [09:48:39]save OK [09:48:39]Clear old archive folders... [09:48:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:48:39]tlvbuf is B6E85590 [09:48:39]SAM_PROTO_ClearQueue [09:48:39]wFMCommunicate request_size=4 [09:48:39]MH_SAM_APDU [09:48:39]CAPDU: 80 09 00 00 [09:48:39]Write to MH i2c: E2 08 00 24 1B 80 09 00 00 00 00 00 00 B1 [09:48:39]Write i2c OK [09:48:39]MH_I2C_Read... [09:48:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:48:39]Read from MH i2c: E2 [09:48:39]MH_I2C_Read... [09:48:39]Read from MH i2c: E2 03 00 [09:48:39]MH_I2C_Read... [09:48:39]Read from MH i2c: E2 03 00 24 1B 00 90 00 B3 [09:48:39]RAPDU: 90 00 [09:48:39]wFMCommunicate OK [09:48:39]SAM_PROTO_ClearQueue done [09:48:39]KKMCreateOFDPacket [09:48:39]OFDProtocolAddRootSTLVToBuf [09:48:39]FM_MakeSignedData [09:48:39]FM_MakeSignedData [09:48:39]SAM_PROTO_SignData [09:48:39]wFMCommunicate request_size=4 [09:48:39]MH_SAM_APDU [09:48:39]CAPDU: 80 0D 01 02 [09:48:39]Write to MH i2c: E2 08 00 25 1B 80 0D 01 02 00 00 00 00 B9 [09:48:39]Write i2c OK [09:48:39]MH_I2C_Read... [09:48:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:48:39]Read from MH i2c: E2 [09:48:39]MH_I2C_Read... [09:48:39]Read from MH i2c: E2 03 00 [09:48:39]MH_I2C_Read... [09:48:39]Read from MH i2c: E2 03 00 25 1B 00 90 00 B4 [09:48:39]RAPDU: 90 00 [09:48:39]wFMCommunicate OK [09:48:39]wFMCommunicate request_size=255 [09:48:39]MH_SAM_APDU [09:48:39]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 69 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 88 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 FF 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 FA 2B BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 D1 92 01 00 35 04 06 00 0D 03 0B 73 [09:48:39]Write to MH i2c: E2 02 01 26 1B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 69 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 88 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 FF 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 FA 2B BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 D1 92 01 00 35 04 06 00 0D 03 0B 73 00 00 FA [09:48:39]Write i2c OK [09:48:39]MH_I2C_Read... [09:48:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:40]Read from MH i2c: E2 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: E2 03 00 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: E2 03 00 26 1B 00 90 00 B5 [09:48:40]RAPDU: 90 00 [09:48:40]wFMCommunicate OK [09:48:40]wFMCommunicate request_size=7 [09:48:40]MH_SAM_APDU [09:48:40]CAPDU: 80 0D 02 02 02 D5 D6 [09:48:40]Write to MH i2c: E2 0A 00 27 1B 80 0D 02 02 02 00 D5 D6 00 00 6B [09:48:40]Write i2c OK [09:48:40]MH_I2C_Read... [09:48:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:40]Read from MH i2c: E2 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: E2 03 00 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: E2 03 00 27 1B 00 90 00 B6 [09:48:40]RAPDU: 90 00 [09:48:40]wFMCommunicate OK [09:48:40]wFMCommunicate request_size=4 [09:48:40]MH_SAM_APDU [09:48:40]CAPDU: 80 0D 03 02 [09:48:40]Write to MH i2c: E2 08 00 28 1B 80 0D 03 02 00 00 00 00 BE [09:48:40]Write i2c OK [09:48:40]MH_I2C_Read... [09:48:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:48:40]Read from MH i2c: E2 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: E2 0B 00 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: E2 0B 00 28 1B 00 A2 60 36 FE 61 B5 37 68 90 00 AA [09:48:40]RAPDU: A2 60 36 FE 61 B5 37 68 90 00 [09:48:40]wFMCommunicate OK [09:48:40]SAM_PROTO_SignData done [09:48:40]FM_MakeSignedData done [09:48:40]CreateOFDProtocolMessage [09:48:40]wFMCommunicate request_size=4 [09:48:40]MH_SAM_APDU [09:48:40]CAPDU: 80 11 00 00 [09:48:40]Write to MH i2c: E2 08 00 29 1B 80 11 00 00 00 00 00 00 BE [09:48:40]Write i2c OK [09:48:40]MH_I2C_Read... [09:48:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:40]Read from MH i2c: E2 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: E2 17 00 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: E2 17 00 29 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 12 [09:48:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [09:48:40]wFMCommunicate OK [09:48:40]CreateOFDProtocolMessage done [09:48:40]OFDSenderStorePacket 103121 [09:48:40]StoreOFDPacket docnum=103121 [09:48:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 C7 E2 04 01 C6 65 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 69 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 88 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 FF 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 FA 2B BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 D1 92 01 00 35 04 06 00 0D 03 0B 73 D5 D6 A2 60 36 FE 61 B5 37 68 [09:48:40]CheckFolder [09:48:40]dirname=/storage/ofd_packets [09:48:40]CheckFolder done [09:48:40]ProducePacketName [09:48:40]name=ofd_packets/00103121 [09:48:40]NVStorageSaveData ofd_packets/00103121 [09:48:40]File name is /storage/ofd_packets/00103121 [09:48:40]Write 298 bytes [09:48:40]NVStorageSaveData done [09:48:40]OFDSenderStorePacket done [09:48:40]KKMCreateOFDPacket done [09:48:40]NVStorageSaveData kkm_last_timestamp [09:48:40]File name is /storage/kkm_last_timestamp [09:48:40]Write 4 bytes [09:48:40]NVStorageSaveData done [09:48:40]ExternCall_PrintAddStr [09:48:40]wPrintStart [09:48:40]Write to MH i2c: 01 00 00 2A 1B 45 [09:48:40]Write i2c OK [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: 01 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: 01 07 00 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: 01 07 00 2A 1B 00 00 00 00 00 FF 0F 5A [09:48:40]RasterBufferAndPrint [09:48:40]line Счет N : (1)160751 [09:48:40]line ИНН: 02508201610067 [09:48:40]line Контрольно-Кассовый Чек [09:48:40]line ПРОДАЖА [09:48:40]line ТРК (МРК, ГНК) : 13 [09:48:40]line Товар: 2710194210 [09:48:40]line ДТ-К-5 [09:48:40]line 27.110 * 73.80 [09:48:40]line = 2000.72 [09:48:40]line НДС 12% НСП 1% [09:48:40]line > о реализуемом товаре [09:48:40]line ОКРУГЛЕНИЕ: -0.72 [09:48:40]line ИТОГО: 2000.00 [09:48:40]line Внесено: 2000.00 [09:48:40]line СДАЧА: 0.00 [09:48:40]line НСП 1% : 17.70 [09:48:40]line НДС 12% : 212.47 [09:48:40]line Наличными: 2000.00 [09:48:40]line Безнал.: 0.00 [09:48:40]line Место: АЗС № 38 "Партнер Нефть" [09:48:40]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [09:48:40]line СНО: Общий режим [09:48:40]line Чек 32 13.08.2024 09:48 [09:48:40]line Смена: 464 ФФД: 1.0 [09:48:40]line ЗНМ: 0300000126 [09:48:40]line РНМ: 0000000000092718 [09:48:40]line Версия ККМ: 001 [09:48:40]line ФМ: 0000000000875058 [09:48:40]line ФД: 103121 [09:48:40]line ФПД: 14306728203734 [09:48:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T094842&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103121&fm=14306728203734&tin=02508201610067®Number=0000000000092718&sum=200000 [09:48:40]OFD Sender: Processing packet 103121 [packets to send 69, broken 68] [09:48:40]ProducePacketName [09:48:40]name=ofd_packets/00103121 [09:48:40]OFD Sender: To server: pG, [09:48:40]CommunicateWithHost lk.salyk.kg:30040 [09:48:40]ConnectInit lk.salyk.kg [09:48:40]written 0, free lines is 4095 [09:48:40]Connected sock=10 [09:48:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 C7 E2 04 01 C6 65 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 69 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 88 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 FF 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 FA 2B BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 D1 92 01 00 35 04 06 00 0D 03 0B 73 D5 D6 A2 60 36 FE 61 B5 37 68 [09:48:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 5F 4C 47 00 B1 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 35 30 35 38 10 04 04 00 D1 92 01 00 F4 03 04 00 6D D2 BA 66 B6 04 01 00 00 81 54 27 84 9B 9D 96 36 [09:48:40]CommunicateWithHost err = 0 [09:48:40]CheckOFDResponse [09:48:40]1017 (14) - 77093643461234 [09:48:40]1041 (16) - 0000000000875058 [09:48:40]1040 (4) - 103121 [09:48:40]1012 (4) - 13.08.2024 03:26 [09:48:40]1206 (1) - 0 [09:48:40]OFD Sender: Remove packet 103121 [09:48:40]ProducePacketName [09:48:40]name=ofd_packets/00103121 [09:48:40]NVStorageDeleteData [09:48:40]Write to MH i2c: 01 00 00 55 1B 70 [09:48:40]Write i2c OK [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: 01 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: 01 07 00 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: 01 07 00 55 1B 00 00 00 00 00 EA 0C 6D [09:48:40]RasterBufferAndPrint [09:48:40]line [09:48:40]line [09:48:40]line [09:48:40]line [09:48:40]line [09:48:40]written 0, free lines is 3312 [09:48:40]MH_Cut [09:48:40]Write to MH i2c: D1 01 00 5C 1B 01 49 [09:48:40]Write i2c OK [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: D1 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: D1 01 00 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: D1 01 00 5C 1B 00 48 [09:48:40]Write to MH i2c: 01 00 00 5D 1B 78 [09:48:40]Write i2c OK [09:48:40]MH_I2C_Read... [09:48:41]OFD Sender: No OFD packet to send [09:48:41]*** Cut start [09:48:41]*** Purtial cut [09:48:41]*** CUTSNS_PIN = 0 [09:48:41]*** Stage 1: CUTSNS_PIN = 1 [09:48:43]Read from MH i2c: 01 [09:48:43]MH_I2C_Read... [09:48:43]*** Stop cut motor [09:48:43]*** Cut end [09:48:43]Read from MH i2c: 01 07 00 [09:48:43]MH_I2C_Read... [09:48:43]Read from MH i2c: 01 07 00 5D 1B 00 00 00 00 00 FF 0F 8D [09:48:43]process_action close_receipt done [09:48:43]requested_data is exist [09:48:43]produce_requested_data [09:48:43]requested_item fm.sn is exist - process it [09:48:43]wFMCommunicate request_size=4 [09:48:43]MH_SAM_APDU [09:48:43]CAPDU: 80 11 00 00 [09:48:43]Write to MH i2c: E2 08 00 5E 1B 80 11 00 00 00 00 00 00 F3 [09:48:43]Write i2c OK [09:48:43]MH_I2C_Read... [09:48:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:43]Read from MH i2c: E2 [09:48:43]MH_I2C_Read... [09:48:43]Read from MH i2c: E2 17 00 [09:48:43]MH_I2C_Read... [09:48:43]Read from MH i2c: E2 17 00 5E 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 47 [09:48:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [09:48:43]wFMCommunicate OK [09:48:43]requested_item fd.num is exist - process it [09:48:43]SAM_PROTO_GetFieldsCounters [09:48:43]wFMCommunicate request_size=4 [09:48:43]MH_SAM_APDU [09:48:43]CAPDU: 80 13 00 00 [09:48:43]Write to MH i2c: E2 08 00 5F 1B 80 13 00 00 00 00 00 00 F6 [09:48:43]Write i2c OK [09:48:43]MH_I2C_Read... [09:48:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:43]Read from MH i2c: E2 [09:48:43]MH_I2C_Read... [09:48:43]Read from MH i2c: E2 62 00 [09:48:43]MH_I2C_Read... [09:48:43]Read from MH i2c: E2 62 00 5F 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 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 D1 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [09:48:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 D1 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:48:43]wFMCommunicate OK [09:48:43]SAM_PROTO_GetFieldsCounters done [09:48:43]requested_item shift.num is exist - process it [09:48:43]requested_item shift.opened is exist - process it [09:48:43]req_shift_opened [09:48:43]FM_GetShiftState [09:48:43]SAM_PROTO_GetShiftState [09:48:43]wFMCommunicate request_size=4 [09:48:43]MH_SAM_APDU [09:48:43]CAPDU: 80 13 01 00 [09:48:43]Write to MH i2c: E2 08 00 60 1B 80 13 01 00 00 00 00 00 F8 [09:48:43]Write i2c OK [09:48:43]MH_I2C_Read... [09:48:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:43]Read from MH i2c: E2 [09:48:43]MH_I2C_Read... [09:48:43]Read from MH i2c: E2 0E 00 [09:48:43]MH_I2C_Read... [09:48:43]Read from MH i2c: E2 0E 00 60 1B 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 16 [09:48:43]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [09:48:43]wFMCommunicate OK [09:48:43]SAM_PROTO_GetShiftState done [09:48:43]FM_GetShiftState done [09:48:43]req_shift_opened done [09:48:43]requested_item shift.open_date is exist - process it [09:48:43]req_shift_open_date [09:48:43]req_shift_open_date done [09:48:43]produce_requested_data done [09:48:43]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103121,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [09:48:43]process_action_free close_receipt [09:48:43]json_value_free [09:48:43]json_value_free done [09:48:43]process_json_proto returns [09:48:43]Send response to host [09:48:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103121,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [09:48:43]free response buf [09:48:43]execute_script done [09:48:43]execute_script returns [09:48:43]free content buf [09:48:43]Sock 9.Close socket [09:48:43]Sock 9.Thread stoped [09:48:46]OFD Sender: No OFD packet to send [09:48:51]OFD Sender: No OFD packet to send [09:48:56]OFD Sender: No OFD packet to send [09:49:01]OFD Sender: No OFD packet to send [09:49:06]OFD Sender: No OFD packet to send [09:49:11]OFD Sender: No OFD packet to send [09:49:16]OFD Sender: No OFD packet to send [09:49:21]OFD Sender: No OFD packet to send [09:49:26]OFD Sender: No OFD packet to send [09:49:31]OFD Sender: No OFD packet to send [09:49:36]OFD Sender: No OFD packet to send [09:49:41]OFD Sender: No OFD packet to send [09:49:46]OFD Sender: No OFD packet to send [09:49:51]OFD Sender: No OFD packet to send [09:49:56]OFD Sender: No OFD packet to send [09:50:01]OFD Sender: No OFD packet to send [09:50:06]OFD Sender: No OFD packet to send [09:50:11]OFD Sender: No OFD packet to send [09:50:16]OFD Sender: No OFD packet to send [09:50:21]OFD Sender: No OFD packet to send [09:50:26]OFD Sender: No OFD packet to send [09:50:31]OFD Sender: No OFD packet to send [09:50:36]OFD Sender: No OFD packet to send [09:50:41]OFD Sender: No OFD packet to send [09:50:46]OFD Sender: No OFD packet to send [09:50:51]OFD Sender: No OFD packet to send [09:50:56]OFD Sender: No OFD packet to send [09:51:01]OFD Sender: No OFD packet to send [09:51:06]OFD Sender: No OFD packet to send [09:51:11]OFD Sender: No OFD packet to send [09:51:16]OFD Sender: No OFD packet to send [09:51:21]OFD Sender: No OFD packet to send [09:51:26]OFD Sender: No OFD packet to send [09:51:31]OFD Sender: No OFD packet to send [09:51:36]OFD Sender: No OFD packet to send [09:51:41]OFD Sender: No OFD packet to send [09:51:46]OFD Sender: No OFD packet to send [09:51:51]OFD Sender: No OFD packet to send [09:51:56]OFD Sender: No OFD packet to send [09:52:01]OFD Sender: No OFD packet to send [09:52:06]OFD Sender: No OFD packet to send [09:52:11]OFD Sender: No OFD packet to send [09:52:16]OFD Sender: No OFD packet to send [09:52:21]OFD Sender: No OFD packet to send [09:52:26]OFD Sender: No OFD packet to send [09:52:31]OFD Sender: No OFD packet to send [09:52:36]OFD Sender: No OFD packet to send [09:52:41]OFD Sender: No OFD packet to send [09:52:46]OFD Sender: No OFD packet to send [09:52:51]OFD Sender: No OFD packet to send [09:52:56]OFD Sender: No OFD packet to send [09:53:01]OFD Sender: No OFD packet to send [09:53:06]OFD Sender: No OFD packet to send [09:53:11]OFD Sender: No OFD packet to send [09:53:16]OFD Sender: No OFD packet to send [09:53:21]OFD Sender: No OFD packet to send [09:53:26]OFD Sender: No OFD packet to send [09:53:31]OFD Sender: No OFD packet to send [09:53:36]OFD Sender: No OFD packet to send [09:53:41]OFD Sender: No OFD packet to send [09:53:46]OFD Sender: No OFD packet to send [09:53:51]OFD Sender: No OFD packet to send [09:53:56]OFD Sender: No OFD packet to send [09:54:01]OFD Sender: No OFD packet to send [09:54:06]OFD Sender: No OFD packet to send [09:54:11]OFD Sender: No OFD packet to send [09:54:16]OFD Sender: No OFD packet to send [09:54:21]OFD Sender: No OFD packet to send [09:54:26]OFD Sender: No OFD packet to send [09:54:31]OFD Sender: No OFD packet to send [09:54:36]OFD Sender: No OFD packet to send [09:54:41]OFD Sender: No OFD packet to send [09:54:46]OFD Sender: No OFD packet to send [09:54:51]OFD Sender: No OFD packet to send [09:54:56]OFD Sender: No OFD packet to send [09:55:01]OFD Sender: No OFD packet to send [09:55:06]OFD Sender: No OFD packet to send [09:55:11]OFD Sender: No OFD packet to send [09:55:16]OFD Sender: No OFD packet to send [09:55:21]OFD Sender: No OFD packet to send [09:55:26]OFD Sender: No OFD packet to send [09:55:31]OFD Sender: No OFD packet to send [09:55:36]OFD Sender: No OFD packet to send [09:55:41]OFD Sender: No OFD packet to send [09:55:46]OFD Sender: No OFD packet to send [09:55:51]OFD Sender: No OFD packet to send [09:55:56]OFD Sender: No OFD packet to send [09:56:01]OFD Sender: No OFD packet to send [09:56:06]OFD Sender: No OFD packet to send [09:56:11]OFD Sender: No OFD packet to send [09:56:16]OFD Sender: No OFD packet to send [09:56:21]OFD Sender: No OFD packet to send [09:56:26]OFD Sender: No OFD packet to send [09:56:31]OFD Sender: No OFD packet to send [09:56:36]OFD Sender: No OFD packet to send [09:56:41]OFD Sender: No OFD packet to send [09:56:46]OFD Sender: No OFD packet to send [09:56:51]OFD Sender: No OFD packet to send [09:56:56]OFD Sender: No OFD packet to send [09:57:01]OFD Sender: No OFD packet to send [09:57:06]OFD Sender: No OFD packet to send [09:57:11]OFD Sender: No OFD packet to send [09:57:16]OFD Sender: No OFD packet to send [09:57:21]OFD Sender: No OFD packet to send [09:57:26]OFD Sender: No OFD packet to send [09:57:31]OFD Sender: No OFD packet to send [09:57:36]OFD Sender: No OFD packet to send [09:57:41]OFD Sender: No OFD packet to send [09:57:46]OFD Sender: No OFD packet to send [09:57:51]OFD Sender: No OFD packet to send [09:57:56]OFD Sender: No OFD packet to send [09:58:01]OFD Sender: No OFD packet to send [09:58:06]OFD Sender: No OFD packet to send [09:58:11]OFD Sender: No OFD packet to send [09:58:16]OFD Sender: No OFD packet to send [09:58:21]OFD Sender: No OFD packet to send [09:58:26]OFD Sender: No OFD packet to send [09:58:31]OFD Sender: No OFD packet to send [09:58:36]OFD Sender: No OFD packet to send [09:58:41]OFD Sender: No OFD packet to send [09:58:46]OFD Sender: No OFD packet to send [09:58:51]OFD Sender: No OFD packet to send [09:58:52]accept exits with 7 [09:58:52]New connection [09:58:52]New thread 3066707300 created [09:58:52]Thread 3066563940 joined [09:58:52]Waiting for new connection... [09:58:52] Sock 7.Parse request [09:58:52]Sock 7.Check first char [09:58:52]Sock 7.First char is OK [09:58:52]request: POST /json_proto HTTP/1.0 [09:58:52]Method: POST [09:58:52]URL: /json_proto [09:58:52]Method is POST - this is cgi request [09:58:52]url: /json_proto [09:58:52]query_string will be loaded in cgi processing [09:58:52]execute_cgi json_proto POST (null) [09:58:52]execute_cgi path=json_proto method=POST [09:58:52]POST find Content-Length [09:58:52]Host: 172.17.58.3:8080 [09:58:52]Content-Length: 676 [09:58:52]Content-Type: application/json [09:58:52] [09:58:52]POST finish read [09:58:52]Found Content-Length = 676 [09:58:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160752", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 8", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 5.690, "sum" : 420.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 420.00, "total" : 420.00, "payments": [ { "type": 0, "sum" : 420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:52]execute_script... [09:58: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)160752", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 8", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 5.690, "sum" : 420.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 420.00, "total" : 420.00, "payments": [ { "type": 0, "sum" : 420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:52]POST & json_proto [09:58:52]process_json_proto [09:58:52]json parsed OK: [09:58:52]protocol is kg_v1.0 [09:58:52]action value=close_receipt [09:58:52]process_action close_receipt [09:58:52]cmd_close_receipt [09:58:52]MH_GetDate [09:58:52]Write to MH i2c: F0 00 00 61 1B 6B [09:58:52]Write i2c OK [09:58:52]MH_I2C_Read... [09:58:52]Read from MH i2c: F0 [09:58:52]MH_I2C_Read... [09:58:52]Read from MH i2c: F0 09 00 [09:58:52]MH_I2C_Read... [09:58:52]Read from MH i2c: F0 09 00 61 1B 00 60 2E BB 66 DC E4 6D 64 B4 [09:58:52]GetLastDocTimeStamp 1723542522 [09:58:52]current date 1723543136 [09:58:52]FM_GetShiftState [09:58:52]SAM_PROTO_GetShiftState [09:58:52]wFMCommunicate request_size=4 [09:58:52]MH_SAM_APDU [09:58:52]CAPDU: 80 13 01 00 [09:58:52]Write to MH i2c: E2 08 00 62 1B 80 13 01 00 00 00 00 00 FA [09:58:52]Write i2c OK [09:58:52]MH_I2C_Read... [09:58:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:52]Read from MH i2c: E2 [09:58:52]MH_I2C_Read... [09:58:52]Read from MH i2c: E2 0E 00 [09:58:52]MH_I2C_Read... [09:58:52]Read from MH i2c: E2 0E 00 62 1B 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 18 [09:58:52]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [09:58:52]wFMCommunicate OK [09:58:52]SAM_PROTO_GetShiftState done [09:58:52]FM_GetShiftState done [09:58:52]opened in 1723506770 [09:58:52]opened+sec_in_day 1723593170 [09:58:52]quantity*price = 42049 [09:58:52]sum+1 = 42050 [09:58:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 420.00 Внесено: 420.00 СДАЧА: 0.00 НСП 1% : 3.72 НДС 12% : 44.65 Наличными: 420.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 33 13.08.2024 09:58 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103122 ФПД: 191147628654493 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T095856&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103122&fm=191147628654493&tin=02508201610067®Number=0000000000092718&sum=42000 [09:58:53]StoreToDocumentArchive [09:58:53]shift 464 fd 103122 [09:58:53]save to /storage/0464/doc_00103122 [09:58:53]save last doc name /storage/0464/doc_00103122 to /storage/kkm_last_doc_name [09:58:53]save OK [09:58:53]Clear old archive folders... [09:58:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:58:53]tlvbuf is B6E854C0 [09:58:53]SAM_PROTO_ClearQueue [09:58:53]wFMCommunicate request_size=4 [09:58:53]MH_SAM_APDU [09:58:53]CAPDU: 80 09 00 00 [09:58:53]Write to MH i2c: E2 08 00 6F 1B 80 09 00 00 00 00 00 00 FC [09:58:53]Write i2c OK [09:58:53]MH_I2C_Read... [09:58:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:58:53]Read from MH i2c: E2 [09:58:53]MH_I2C_Read... [09:58:53]Read from MH i2c: E2 03 00 [09:58:53]MH_I2C_Read... [09:58:53]Read from MH i2c: E2 03 00 6F 1B 00 90 00 FE [09:58:53]RAPDU: 90 00 [09:58:53]wFMCommunicate OK [09:58:53]SAM_PROTO_ClearQueue done [09:58:53]KKMCreateOFDPacket [09:58:53]OFDProtocolAddRootSTLVToBuf [09:58:53]FM_MakeSignedData [09:58:53]FM_MakeSignedData [09:58:53]SAM_PROTO_SignData [09:58:53]wFMCommunicate request_size=4 [09:58:53]MH_SAM_APDU [09:58:53]CAPDU: 80 0D 01 02 [09:58:53]Write to MH i2c: E2 08 00 70 1B 80 0D 01 02 00 00 00 00 04 [09:58:53]Write i2c OK [09:58:53]MH_I2C_Read... [09:58:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:58:53]Read from MH i2c: E2 [09:58:53]MH_I2C_Read... [09:58:53]Read from MH i2c: E2 03 00 [09:58:53]MH_I2C_Read... [09:58:53]Read from MH i2c: E2 03 00 70 1B 00 90 00 FF [09:58:53]RAPDU: 90 00 [09:58:53]wFMCommunicate OK [09:58:53]wFMCommunicate request_size=255 [09:58:53]MH_SAM_APDU [09:58:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 3A 16 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 41 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 60 2E BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 D2 92 01 00 35 04 06 00 AD [09:58:53]Write to MH i2c: E2 02 01 71 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 3A 16 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 41 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 60 2E BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 D2 92 01 00 35 04 06 00 AD 00 00 56 [09:58:53]Write i2c OK [09:58:53]MH_I2C_Read... [09:58:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:53]Read from MH i2c: E2 [09:58:53]MH_I2C_Read... [09:58:53]Read from MH i2c: E2 03 00 [09:58:53]MH_I2C_Read... [09:58:53]Read from MH i2c: E2 03 00 71 1B 00 90 00 00 [09:58:53]RAPDU: 90 00 [09:58:53]wFMCommunicate OK [09:58:53]wFMCommunicate request_size=10 [09:58:53]MH_SAM_APDU [09:58:53]CAPDU: 80 0D 02 02 05 D9 06 81 6F 9D [09:58:53]Write to MH i2c: E2 0D 00 72 1B 80 0D 02 02 05 00 D9 06 81 6F 9D 00 00 7D [09:58:53]Write i2c OK [09:58:53]MH_I2C_Read... [09:58:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:54]Read from MH i2c: E2 [09:58:54]MH_I2C_Read... [09:58:54]Read from MH i2c: E2 03 00 [09:58:54]MH_I2C_Read... [09:58:54]Read from MH i2c: E2 03 00 72 1B 00 90 00 01 [09:58:54]RAPDU: 90 00 [09:58:54]wFMCommunicate OK [09:58:54]wFMCommunicate request_size=4 [09:58:54]MH_SAM_APDU [09:58:54]CAPDU: 80 0D 03 02 [09:58:54]Write to MH i2c: E2 08 00 73 1B 80 0D 03 02 00 00 00 00 09 [09:58:54]Write i2c OK [09:58:54]MH_I2C_Read... [09:58:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:58:54]Read from MH i2c: E2 [09:58:54]MH_I2C_Read... [09:58:54]Read from MH i2c: E2 0B 00 [09:58:54]MH_I2C_Read... [09:58:54]Read from MH i2c: E2 0B 00 73 1B 00 7C F2 BC F5 11 51 A2 B7 90 00 E4 [09:58:54]RAPDU: 7C F2 BC F5 11 51 A2 B7 90 00 [09:58:54]wFMCommunicate OK [09:58:54]SAM_PROTO_SignData done [09:58:54]FM_MakeSignedData done [09:58:54]CreateOFDProtocolMessage [09:58:54]wFMCommunicate request_size=4 [09:58:54]MH_SAM_APDU [09:58:54]CAPDU: 80 11 00 00 [09:58:54]Write to MH i2c: E2 08 00 74 1B 80 11 00 00 00 00 00 00 09 [09:58:54]Write i2c OK [09:58:54]MH_I2C_Read... [09:58:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:54]Read from MH i2c: E2 [09:58:54]MH_I2C_Read... [09:58:54]Read from MH i2c: E2 17 00 [09:58:54]MH_I2C_Read... [09:58:54]Read from MH i2c: E2 17 00 74 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 5D [09:58:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [09:58:54]wFMCommunicate OK [09:58:54]CreateOFDProtocolMessage done [09:58:54]OFDSenderStorePacket 103122 [09:58:54]StoreOFDPacket docnum=103122 [09:58:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 BF 82 07 01 77 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 3A 16 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 41 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 60 2E BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 D2 92 01 00 35 04 06 00 AD D9 06 81 6F 9D 7C F2 BC F5 11 51 A2 B7 [09:58:54]CheckFolder [09:58:54]dirname=/storage/ofd_packets [09:58:54]CheckFolder done [09:58:54]ProducePacketName [09:58:54]name=ofd_packets/00103122 [09:58:54]NVStorageSaveData ofd_packets/00103122 [09:58:54]File name is /storage/ofd_packets/00103122 [09:58:54]Write 301 bytes [09:58:54]NVStorageSaveData done [09:58:54]OFDSenderStorePacket done [09:58:54]KKMCreateOFDPacket done [09:58:54]NVStorageSaveData kkm_last_timestamp [09:58:54]File name is /storage/kkm_last_timestamp [09:58:54]Write 4 bytes [09:58:54]NVStorageSaveData done [09:58:54]ExternCall_PrintAddStr [09:58:54]wPrintStart [09:58:54]Write to MH i2c: 01 00 00 75 1B 90 [09:58:54]Write i2c OK [09:58:54]MH_I2C_Read... [09:58:54]Read from MH i2c: 01 [09:58:54]MH_I2C_Read... [09:58:54]Read from MH i2c: 01 07 00 [09:58:54]MH_I2C_Read... [09:58:54]Read from MH i2c: 01 07 00 75 1B 00 00 00 00 00 FF 0F A5 [09:58:54]RasterBufferAndPrint [09:58:54]line Счет N : (1)160752 [09:58:54]line ИНН: 02508201610067 [09:58:54]line Контрольно-Кассовый Чек [09:58:54]line ПРОДАЖА [09:58:54]line ТРК (МРК, ГНК) : 8 [09:58:54]line Товар: 2710124500 [09:58:54]line Аи-95-К-5 [09:58:54]line 5.690 * 73.90 [09:58:54]line = 420.49 [09:58:54]line НДС 12% НСП 1% [09:58:54]line > о реализуемом товаре [09:58:54]line ОКРУГЛЕНИЕ: -0.49 [09:58:54]line ИТОГО: 420.00 [09:58:54]line Внесено: 420.00 [09:58:54]line СДАЧА: 0.00 [09:58:54]line НСП 1% : 3.72 [09:58:54]line НДС 12% : 44.65 [09:58:54]line Наличными: 420.00 [09:58:54]line Безнал.: 0.00 [09:58:54]line Место: АЗС № 38 "Партнер Нефть" [09:58:54]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [09:58:54]line СНО: Общий режим [09:58:54]line Чек 33 13.08.2024 09:58 [09:58:54]line Смена: 464 ФФД: 1.0 [09:58:54]line ЗНМ: 0300000126 [09:58:54]line РНМ: 0000000000092718 [09:58:54]line Версия ККМ: 001 [09:58:54]line ФМ: 0000000000875058 [09:58:54]line ФД: 103122 [09:58:54]line ФПД: 191147628654493 [09:58:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T095856&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103122&fm=191147628654493&tin=02508201610067®Number=0000000000092718&sum=42000 [09:58:54]OFD Sender: Processing packet 103122 [packets to send 69, broken 68] [09:58:54]ProducePacketName [09:58:54]name=ofd_packets/00103122 [09:58:54]OFD Sender: To server: pG, [09:58:54]CommunicateWithHost lk.salyk.kg:30040 [09:58:54]ConnectInit lk.salyk.kg [09:58:54]written 0, free lines is 4095 [09:58:54]Connected sock=10 [09:58:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 BF 82 07 01 77 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 3A 16 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 41 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 60 2E BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 D2 92 01 00 35 04 06 00 AD D9 06 81 6F 9D 7C F2 BC F5 11 51 A2 B7 [09:58:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 B3 8B 47 00 DA 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 35 30 35 38 10 04 04 00 D2 92 01 00 F4 03 04 00 D3 D4 BA 66 B6 04 01 00 00 7E 5B F3 EF 9F 02 7B 6F [09:58:54]CommunicateWithHost err = 0 [09:58:54]CheckOFDResponse [09:58:54]1017 (14) - 77093643461234 [09:58:54]1041 (16) - 0000000000875058 [09:58:54]1040 (4) - 103122 [09:58:54]1012 (4) - 13.08.2024 03:36 [09:58:54]1206 (1) - 0 [09:58:54]OFD Sender: Remove packet 103122 [09:58:54]ProducePacketName [09:58:54]name=ofd_packets/00103122 [09:58:54]NVStorageDeleteData [09:58:54]Write to MH i2c: 01 00 00 A0 1B BB [09:58:54]Write i2c OK [09:58:54]MH_I2C_Read... [09:58:54]Read from MH i2c: 01 [09:58:54]MH_I2C_Read... [09:58:54]Read from MH i2c: 01 07 00 [09:58:54]MH_I2C_Read... [09:58:54]Read from MH i2c: 01 07 00 A0 1B 00 00 00 00 00 E8 0C B6 [09:58:54]RasterBufferAndPrint [09:58:54]line [09:58:54]line [09:58:54]line [09:58:54]line [09:58:54]line [09:58:54]written 0, free lines is 3310 [09:58:54]MH_Cut [09:58:54]Write to MH i2c: D1 01 00 A7 1B 01 94 [09:58:54]Write i2c OK [09:58:54]MH_I2C_Read... [09:58:54]Read from MH i2c: D1 [09:58:54]MH_I2C_Read... [09:58:54]Read from MH i2c: D1 01 00 [09:58:54]MH_I2C_Read... [09:58:54]Read from MH i2c: D1 01 00 A7 1B 00 93 [09:58:54]Write to MH i2c: 01 00 00 A8 1B C3 [09:58:54]Write i2c OK [09:58:54]MH_I2C_Read... [09:58:55]OFD Sender: No OFD packet to send [09:58:55]*** Cut start [09:58:55]*** Purtial cut [09:58:55]*** Stage 1: CUTSNS_PIN = 1 [09:58:55]Read from MH i2c: 01 [09:58:56]MH_I2C_Read... [09:58:56]*** Stop cut motor [09:58:56]*** Cut end [09:58:56]Read from MH i2c: 01 07 00 [09:58:56]MH_I2C_Read... [09:58:56]Read from MH i2c: 01 07 00 A8 1B 00 00 00 00 00 FF 0F D8 [09:58:56]process_action close_receipt done [09:58:56]requested_data is exist [09:58:56]produce_requested_data [09:58:56]requested_item fm.sn is exist - process it [09:58:56]wFMCommunicate request_size=4 [09:58:56]MH_SAM_APDU [09:58:56]CAPDU: 80 11 00 00 [09:58:56]Write to MH i2c: E2 08 00 A9 1B 80 11 00 00 00 00 00 00 3E [09:58:56]Write i2c OK [09:58:56]MH_I2C_Read... [09:58:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:56]Read from MH i2c: E2 [09:58:56]MH_I2C_Read... [09:58:56]Read from MH i2c: E2 17 00 [09:58:56]MH_I2C_Read... [09:58:56]Read from MH i2c: E2 17 00 A9 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 92 [09:58:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [09:58:56]wFMCommunicate OK [09:58:56]requested_item fd.num is exist - process it [09:58:56]SAM_PROTO_GetFieldsCounters [09:58:56]wFMCommunicate request_size=4 [09:58:56]MH_SAM_APDU [09:58:56]CAPDU: 80 13 00 00 [09:58:56]Write to MH i2c: E2 08 00 AA 1B 80 13 00 00 00 00 00 00 41 [09:58:56]Write i2c OK [09:58:56]MH_I2C_Read... [09:58:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:58:56]Read from MH i2c: E2 [09:58:56]MH_I2C_Read... [09:58:56]Read from MH i2c: E2 62 00 [09:58:56]MH_I2C_Read... [09:58:56]Read from MH i2c: E2 62 00 AA 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 D2 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [09:58:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 D2 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:58:56]wFMCommunicate OK [09:58:56]SAM_PROTO_GetFieldsCounters done [09:58:56]requested_item shift.num is exist - process it [09:58:56]requested_item shift.opened is exist - process it [09:58:56]req_shift_opened [09:58:56]FM_GetShiftState [09:58:56]SAM_PROTO_GetShiftState [09:58:56]wFMCommunicate request_size=4 [09:58:56]MH_SAM_APDU [09:58:56]CAPDU: 80 13 01 00 [09:58:56]Write to MH i2c: E2 08 00 AB 1B 80 13 01 00 00 00 00 00 43 [09:58:56]Write i2c OK [09:58:56]MH_I2C_Read... [09:58:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:56]Read from MH i2c: E2 [09:58:56]MH_I2C_Read... [09:58:56]Read from MH i2c: E2 0E 00 [09:58:56]MH_I2C_Read... [09:58:56]Read from MH i2c: E2 0E 00 AB 1B 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 61 [09:58:56]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [09:58:56]wFMCommunicate OK [09:58:56]SAM_PROTO_GetShiftState done [09:58:56]FM_GetShiftState done [09:58:56]req_shift_opened done [09:58:56]requested_item shift.open_date is exist - process it [09:58:56]req_shift_open_date [09:58:56]req_shift_open_date done [09:58:56]produce_requested_data done [09:58:56]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103122,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [09:58:56]process_action_free close_receipt [09:58:56]json_value_free [09:58:56]json_value_free done [09:58:56]process_json_proto returns [09:58:56]Send response to host [09:58:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103122,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [09:58:56]free response buf [09:58:56]execute_script done [09:58:56]execute_script returns [09:58:56]free content buf [09:58:56]Sock 7.Close socket [09:58:56]Sock 7.Thread stoped [09:59:00]OFD Sender: No OFD packet to send [09:59:05]OFD Sender: No OFD packet to send [09:59:10]OFD Sender: No OFD packet to send [09:59:15]OFD Sender: No OFD packet to send [09:59:20]OFD Sender: No OFD packet to send [09:59:25]OFD Sender: No OFD packet to send [09:59:30]OFD Sender: No OFD packet to send [09:59:35]OFD Sender: No OFD packet to send [09:59:40]OFD Sender: No OFD packet to send [09:59:45]OFD Sender: No OFD packet to send [09:59:50]OFD Sender: No OFD packet to send [09:59:55]OFD Sender: No OFD packet to send [10:00:00]OFD Sender: No OFD packet to send [10:00:05]OFD Sender: No OFD packet to send [10:00:10]OFD Sender: No OFD packet to send [10:00:15]OFD Sender: No OFD packet to send [10:00:20]OFD Sender: No OFD packet to send [10:00:25]OFD Sender: No OFD packet to send [10:00:30]OFD Sender: No OFD packet to send [10:00:35]OFD Sender: No OFD packet to send [10:00:40]OFD Sender: No OFD packet to send [10:00:45]OFD Sender: No OFD packet to send [10:00:50]OFD Sender: No OFD packet to send [10:00:55]OFD Sender: No OFD packet to send [10:01:00]OFD Sender: No OFD packet to send [10:01:05]OFD Sender: No OFD packet to send [10:01:10]OFD Sender: No OFD packet to send [10:01:15]OFD Sender: No OFD packet to send [10:01:20]OFD Sender: No OFD packet to send [10:01:25]OFD Sender: No OFD packet to send [10:01:30]OFD Sender: No OFD packet to send [10:01:35]OFD Sender: No OFD packet to send [10:01:40]OFD Sender: No OFD packet to send [10:01:45]OFD Sender: No OFD packet to send [10:01:50]OFD Sender: No OFD packet to send [10:01:55]OFD Sender: No OFD packet to send [10:02:00]OFD Sender: No OFD packet to send [10:02:05]OFD Sender: No OFD packet to send [10:02:10]OFD Sender: No OFD packet to send [10:02:15]OFD Sender: No OFD packet to send [10:02:20]OFD Sender: No OFD packet to send [10:02:25]OFD Sender: No OFD packet to send [10:02:30]OFD Sender: No OFD packet to send [10:02:35]OFD Sender: No OFD packet to send [10:02:40]OFD Sender: No OFD packet to send [10:02:45]OFD Sender: No OFD packet to send [10:02:50]OFD Sender: No OFD packet to send [10:02:55]OFD Sender: No OFD packet to send [10:03:00]OFD Sender: No OFD packet to send [10:03:05]OFD Sender: No OFD packet to send [10:03:10]OFD Sender: No OFD packet to send [10:03:15]OFD Sender: No OFD packet to send [10:03:20]OFD Sender: No OFD packet to send [10:03:25]OFD Sender: No OFD packet to send [10:03:30]OFD Sender: No OFD packet to send [10:03:35]OFD Sender: No OFD packet to send [10:03:40]OFD Sender: No OFD packet to send [10:03:45]OFD Sender: No OFD packet to send [10:03:50]OFD Sender: No OFD packet to send [10:03:55]OFD Sender: No OFD packet to send [10:04:00]OFD Sender: No OFD packet to send [10:04:05]OFD Sender: No OFD packet to send [10:04:10]OFD Sender: No OFD packet to send [10:04:15]OFD Sender: No OFD packet to send [10:04:20]OFD Sender: No OFD packet to send [10:04:25]OFD Sender: No OFD packet to send [10:04:30]OFD Sender: No OFD packet to send [10:04:35]OFD Sender: No OFD packet to send [10:04:40]OFD Sender: No OFD packet to send [10:04:45]OFD Sender: No OFD packet to send [10:04:50]OFD Sender: No OFD packet to send [10:04:55]OFD Sender: No OFD packet to send [10:05:00]OFD Sender: No OFD packet to send [10:05:05]OFD Sender: No OFD packet to send [10:05:10]OFD Sender: No OFD packet to send [10:05:15]OFD Sender: No OFD packet to send [10:05:20]OFD Sender: No OFD packet to send [10:05:25]OFD Sender: No OFD packet to send [10:05:30]OFD Sender: No OFD packet to send [10:05:35]OFD Sender: No OFD packet to send [10:05:40]OFD Sender: No OFD packet to send [10:05:45]OFD Sender: No OFD packet to send [10:05:50]OFD Sender: No OFD packet to send [10:05:55]OFD Sender: No OFD packet to send [10:06:00]OFD Sender: No OFD packet to send [10:06:05]OFD Sender: No OFD packet to send [10:06:10]OFD Sender: No OFD packet to send [10:06:15]OFD Sender: No OFD packet to send [10:06:20]OFD Sender: No OFD packet to send [10:06:25]OFD Sender: No OFD packet to send [10:06:30]OFD Sender: No OFD packet to send [10:06:35]OFD Sender: No OFD packet to send [10:06:40]OFD Sender: No OFD packet to send [10:06:45]OFD Sender: No OFD packet to send [10:06:50]OFD Sender: No OFD packet to send [10:06:55]OFD Sender: No OFD packet to send [10:07:00]OFD Sender: No OFD packet to send [10:07:05]OFD Sender: No OFD packet to send [10:07:10]OFD Sender: No OFD packet to send [10:07:15]OFD Sender: No OFD packet to send [10:07:16]accept exits with 9 [10:07:16]New connection [10:07:16]New thread 3066563940 created [10:07:16]Thread 3066707300 joined [10:07:16]Waiting for new connection... [10:07:16] Sock 9.Parse request [10:07:16]Sock 9.Check first char [10:07:16]Sock 9.First char is OK [10:07:16]request: POST /json_proto HTTP/1.0 [10:07:16]Method: POST [10:07:16]URL: /json_proto [10:07:16]Method is POST - this is cgi request [10:07:16]url: /json_proto [10:07:16]query_string will be loaded in cgi processing [10:07:16]execute_cgi json_proto POST (null) [10:07:16]execute_cgi path=json_proto method=POST [10:07:16]POST find Content-Length [10:07:16]Host: 172.17.58.3:8080 [10:07:16]Content-Length: 1188 [10:07:16]Content-Type: application/json [10:07:16] [10:07:16]POST finish read [10:07:16]Found Content-Length = 1188 [10:07:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 38\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0438\u0440\u043E\u0432\u0430 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)160753\u000A13.08.2024 10:16\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 3\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 32.598 x 65.90\u000A\u0418\u0422\u041E\u0413: 2148.21\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68931\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:16]execute_script... [10:07:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 38\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0438\u0440\u043E\u0432\u0430 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)160753\u000A13.08.2024 10:16\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 3\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 32.598 x 65.90\u000A\u0418\u0422\u041E\u0413: 2148.21\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68931\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:16]POST & json_proto [10:07:16]process_json_proto [10:07:16]json parsed OK: [10:07:16]protocol is kg_v1.0 [10:07:16]action value=print_text [10:07:16]process_action print_text [10:07:16]cmd_print_text [10:07:16]ExternCall_PrintAddStr [10:07:16]wPrintStart [10:07:16]Write to MH i2c: 01 00 00 AC 1B C7 [10:07:16]Write i2c OK [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: 01 [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: 01 07 00 [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: 01 07 00 AC 1B 00 00 00 00 00 FF 0F DC [10:07:16]RasterBufferAndPrint [10:07:16]line *****ТОВАРНЫЙ ЧЕК***** [10:07:16]line АЗС 38 [10:07:16]line Партнер нефть [10:07:16]line 02508201610067 [10:07:16]line Кассир : Таирова А. [10:07:16]line Счет N : (1)160753 [10:07:16]line 13.08.2024 10:16 [10:07:16]line ПРОДАЖА [10:07:16]line ТРК (МРК, ГНК): 3 [10:07:16]line Вид ГСМ : 2710124130 [10:07:16]line Аи-92-К-5 [10:07:16]line 32.598 x 65.90 [10:07:16]line ИТОГ: 2148.21 [10:07:16]line Тип оплаты: Талоны: Топливная Карта [10:07:16]line 68931 [10:07:16]line ______________________ [10:07:16]line (подпись) [10:07:16]written 0, free lines is 4095 [10:07:16]Write to MH i2c: 01 00 00 C0 1B DB [10:07:16]Write i2c OK [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: 01 [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: 01 07 00 [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: 01 07 00 C0 1B 00 00 00 00 00 0F 0E FF [10:07:16]RasterBufferAndPrint [10:07:16]line [10:07:16]line [10:07:16]line [10:07:16]line [10:07:16]line [10:07:16]written 0, free lines is 3600 [10:07:16]MH_Cut [10:07:16]Write to MH i2c: D1 01 00 C7 1B 01 B4 [10:07:16]Write i2c OK [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: D1 [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: D1 01 00 [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: D1 01 00 C7 1B 00 B3 [10:07:16]Write to MH i2c: 01 00 00 C8 1B E3 [10:07:16]Write i2c OK [10:07:16]MH_I2C_Read... [10:07:17]*** Cut start [10:07:17]*** Purtial cut [10:07:17]*** CUTSNS_PIN = 0 [10:07:17]*** Stage 1: CUTSNS_PIN = 1 [10:07:19]Read from MH i2c: 01 [10:07:19]MH_I2C_Read... [10:07:19]Read from MH i2c: 01 07 00 [10:07:19]MH_I2C_Read... [10:07:19]*** Stop cut motor [10:07:19]*** Cut end [10:07:19]Read from MH i2c: 01 07 00 C8 1B 00 00 00 00 00 FF 0F F8 [10:07:19]process_action print_text done [10:07:19]requested_data is exist [10:07:19]produce_requested_data [10:07:19]requested_item fm.sn is exist - process it [10:07:19]wFMCommunicate request_size=4 [10:07:19]MH_SAM_APDU [10:07:19]CAPDU: 80 11 00 00 [10:07:19]Write to MH i2c: E2 08 00 C9 1B 80 11 00 00 00 00 00 00 5E [10:07:19]Write i2c OK [10:07:19]MH_I2C_Read... [10:07:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:19]Read from MH i2c: E2 [10:07:19]MH_I2C_Read... [10:07:19]Read from MH i2c: E2 17 00 [10:07:19]MH_I2C_Read... [10:07:19]Read from MH i2c: E2 17 00 C9 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 B2 [10:07:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [10:07:19]wFMCommunicate OK [10:07:19]requested_item fd.num is exist - process it [10:07:19]SAM_PROTO_GetFieldsCounters [10:07:19]wFMCommunicate request_size=4 [10:07:19]MH_SAM_APDU [10:07:19]CAPDU: 80 13 00 00 [10:07:19]Write to MH i2c: E2 08 00 CA 1B 80 13 00 00 00 00 00 00 61 [10:07:19]Write i2c OK [10:07:19]MH_I2C_Read... [10:07:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:07:19]Read from MH i2c: E2 [10:07:19]MH_I2C_Read... [10:07:19]Read from MH i2c: E2 62 00 [10:07:19]MH_I2C_Read... [10:07:19]Read from MH i2c: E2 62 00 CA 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 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 D2 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [10:07:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 D2 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:07:19]wFMCommunicate OK [10:07:19]SAM_PROTO_GetFieldsCounters done [10:07:19]requested_item shift.num is exist - process it [10:07:19]requested_item shift.opened is exist - process it [10:07:19]req_shift_opened [10:07:19]FM_GetShiftState [10:07:19]SAM_PROTO_GetShiftState [10:07:19]wFMCommunicate request_size=4 [10:07:19]MH_SAM_APDU [10:07:19]CAPDU: 80 13 01 00 [10:07:19]Write to MH i2c: E2 08 00 CB 1B 80 13 01 00 00 00 00 00 63 [10:07:19]Write i2c OK [10:07:19]MH_I2C_Read... [10:07:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:19]Read from MH i2c: E2 [10:07:19]MH_I2C_Read... [10:07:19]Read from MH i2c: E2 0E 00 [10:07:19]MH_I2C_Read... [10:07:19]Read from MH i2c: E2 0E 00 CB 1B 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 81 [10:07:19]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [10:07:19]wFMCommunicate OK [10:07:19]SAM_PROTO_GetShiftState done [10:07:19]FM_GetShiftState done [10:07:19]req_shift_opened done [10:07:19]requested_item shift.open_date is exist - process it [10:07:19]req_shift_open_date [10:07:19]req_shift_open_date done [10:07:19]produce_requested_data done [10:07:19]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103122,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [10:07:19]process_action_free print_text [10:07:19]json_value_free [10:07:19]json_value_free done [10:07:19]process_json_proto returns [10:07:19]Send response to host [10:07:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103122,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [10:07:19]free response buf [10:07:19]execute_script done [10:07:19]execute_script returns [10:07:19]free content buf [10:07:19]Sock 9.Close socket [10:07:19]Sock 9.Thread stoped [10:07:20]OFD Sender: No OFD packet to send [10:07:25]OFD Sender: No OFD packet to send [10:07:30]OFD Sender: No OFD packet to send [10:07:35]OFD Sender: No OFD packet to send [10:07:40]OFD Sender: No OFD packet to send [10:07:45]OFD Sender: No OFD packet to send [10:07:50]OFD Sender: No OFD packet to send [10:07:55]OFD Sender: No OFD packet to send [10:08:00]OFD Sender: No OFD packet to send [10:08:05]OFD Sender: No OFD packet to send [10:08:10]OFD Sender: No OFD packet to send [10:08:15]OFD Sender: No OFD packet to send [10:08:20]OFD Sender: No OFD packet to send [10:08:25]OFD Sender: No OFD packet to send [10:08:30]OFD Sender: No OFD packet to send [10:08:35]OFD Sender: No OFD packet to send [10:08:40]OFD Sender: No OFD packet to send [10:08:45]OFD Sender: No OFD packet to send [10:08:50]OFD Sender: No OFD packet to send [10:08:55]OFD Sender: No OFD packet to send [10:09:00]OFD Sender: No OFD packet to send [10:09:01]accept exits with 7 [10:09:01]New connection [10:09:01]New thread 3066707300 created [10:09:01]Thread 3066563940 joined [10:09:01]Waiting for new connection... [10:09:01] Sock 7.Parse request [10:09:01]Sock 7.Check first char [10:09:01]Sock 7.First char is OK [10:09:01]request: POST /json_proto HTTP/1.0 [10:09:01]Method: POST [10:09:01]URL: /json_proto [10:09:01]Method is POST - this is cgi request [10:09:01]url: /json_proto [10:09:01]query_string will be loaded in cgi processing [10:09:01]execute_cgi json_proto POST (null) [10:09:01]execute_cgi path=json_proto method=POST [10:09:01]POST find Content-Length [10:09:01]Host: 172.17.58.3:8080 [10:09:01]Content-Length: 681 [10:09:01]Content-Type: application/json [10:09:01] [10:09:01]POST finish read [10:09:01]Found Content-Length = 681 [10:09:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160754", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:01]execute_script... [10:09: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)160754", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:01]POST & json_proto [10:09:01]process_json_proto [10:09:01]json parsed OK: [10:09:01]protocol is kg_v1.0 [10:09:01]action value=close_receipt [10:09:01]process_action close_receipt [10:09:01]cmd_close_receipt [10:09:01]MH_GetDate [10:09:01]Write to MH i2c: F0 00 00 CC 1B D6 [10:09:01]Write i2c OK [10:09:01]MH_I2C_Read... [10:09:01]Read from MH i2c: F0 [10:09:01]MH_I2C_Read... [10:09:01]Read from MH i2c: F0 09 00 [10:09:01]MH_I2C_Read... [10:09:01]Read from MH i2c: F0 09 00 CC 1B 00 C1 30 BB 66 DC E4 6D 64 82 [10:09:01]GetLastDocTimeStamp 1723543136 [10:09:01]current date 1723543745 [10:09:01]FM_GetShiftState [10:09:01]SAM_PROTO_GetShiftState [10:09:01]wFMCommunicate request_size=4 [10:09:01]MH_SAM_APDU [10:09:01]CAPDU: 80 13 01 00 [10:09:01]Write to MH i2c: E2 08 00 CD 1B 80 13 01 00 00 00 00 00 65 [10:09:01]Write i2c OK [10:09:01]MH_I2C_Read... [10:09:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:01]Read from MH i2c: E2 [10:09:01]MH_I2C_Read... [10:09:01]Read from MH i2c: E2 0E 00 [10:09:01]MH_I2C_Read... [10:09:01]Read from MH i2c: E2 0E 00 CD 1B 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 83 [10:09:01]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [10:09:01]wFMCommunicate OK [10:09:01]SAM_PROTO_GetShiftState done [10:09:01]FM_GetShiftState done [10:09:01]opened in 1723506770 [10:09:01]opened+sec_in_day 1723593170 [10:09:01]quantity*price = 100036 [10:09:01]sum+1 = 100037 [10:09:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 34 13.08.2024 10:09 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103123 ФПД: 206292167809198 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T100905&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103123&fm=206292167809198&tin=02508201610067®Number=0000000000092718&sum=100000 [10:09:02]StoreToDocumentArchive [10:09:02]shift 464 fd 103123 [10:09:02]save to /storage/0464/doc_00103123 [10:09:02]save last doc name /storage/0464/doc_00103123 to /storage/kkm_last_doc_name [10:09:02]save OK [10:09:02]Clear old archive folders... [10:09:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:09:02]tlvbuf is B6E85EF0 [10:09:02]SAM_PROTO_ClearQueue [10:09:02]wFMCommunicate request_size=4 [10:09:02]MH_SAM_APDU [10:09:02]CAPDU: 80 09 00 00 [10:09:02]Write to MH i2c: E2 08 00 DA 1B 80 09 00 00 00 00 00 00 67 [10:09:02]Write i2c OK [10:09:02]MH_I2C_Read... [10:09:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:02]Read from MH i2c: E2 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 03 00 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 03 00 DA 1B 00 90 00 69 [10:09:02]RAPDU: 90 00 [10:09:02]wFMCommunicate OK [10:09:02]SAM_PROTO_ClearQueue done [10:09:02]KKMCreateOFDPacket [10:09:02]OFDProtocolAddRootSTLVToBuf [10:09:02]FM_MakeSignedData [10:09:02]FM_MakeSignedData [10:09:02]SAM_PROTO_SignData [10:09:02]wFMCommunicate request_size=4 [10:09:02]MH_SAM_APDU [10:09:02]CAPDU: 80 0D 01 02 [10:09:02]Write to MH i2c: E2 08 00 DB 1B 80 0D 01 02 00 00 00 00 6F [10:09:02]Write i2c OK [10:09:02]MH_I2C_Read... [10:09:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:02]Read from MH i2c: E2 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 03 00 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 03 00 DB 1B 00 90 00 6A [10:09:02]RAPDU: 90 00 [10:09:02]wFMCommunicate OK [10:09:02]wFMCommunicate request_size=255 [10:09:02]MH_SAM_APDU [10:09: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 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 C1 30 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 D3 92 01 00 35 04 06 00 BB [10:09:02]Write to MH i2c: E2 02 01 DC 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 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 C1 30 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 D3 92 01 00 35 04 06 00 BB 00 00 B9 [10:09:02]Write i2c OK [10:09:02]MH_I2C_Read... [10:09:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:02]Read from MH i2c: E2 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 03 00 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 03 00 DC 1B 00 90 00 6B [10:09:02]RAPDU: 90 00 [10:09:02]wFMCommunicate OK [10:09:02]wFMCommunicate request_size=10 [10:09:02]MH_SAM_APDU [10:09:02]CAPDU: 80 0D 02 02 05 9F 23 61 D8 AE [10:09:02]Write to MH i2c: E2 0D 00 DD 1B 80 0D 02 02 05 00 9F 23 61 D8 AE 00 00 25 [10:09:02]Write i2c OK [10:09:02]MH_I2C_Read... [10:09:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:02]Read from MH i2c: E2 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 03 00 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 03 00 DD 1B 00 90 00 6C [10:09:02]RAPDU: 90 00 [10:09:02]wFMCommunicate OK [10:09:02]wFMCommunicate request_size=4 [10:09:02]MH_SAM_APDU [10:09:02]CAPDU: 80 0D 03 02 [10:09:02]Write to MH i2c: E2 08 00 DE 1B 80 0D 03 02 00 00 00 00 74 [10:09:02]Write i2c OK [10:09:02]MH_I2C_Read... [10:09:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:02]Read from MH i2c: E2 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 0B 00 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 0B 00 DE 1B 00 A8 3C A2 A2 D3 4D 99 B4 90 00 0A [10:09:02]RAPDU: A8 3C A2 A2 D3 4D 99 B4 90 00 [10:09:02]wFMCommunicate OK [10:09:02]SAM_PROTO_SignData done [10:09:02]FM_MakeSignedData done [10:09:02]CreateOFDProtocolMessage [10:09:02]wFMCommunicate request_size=4 [10:09:02]MH_SAM_APDU [10:09:02]CAPDU: 80 11 00 00 [10:09:02]Write to MH i2c: E2 08 00 DF 1B 80 11 00 00 00 00 00 00 74 [10:09:02]Write i2c OK [10:09:02]MH_I2C_Read... [10:09:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:02]Read from MH i2c: E2 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 17 00 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 17 00 DF 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 C8 [10:09:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [10:09:02]wFMCommunicate OK [10:09:02]CreateOFDProtocolMessage done [10:09:02]OFDSenderStorePacket 103123 [10:09:02]StoreOFDPacket docnum=103123 [10:09:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 20 17 07 01 62 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 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 C1 30 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 D3 92 01 00 35 04 06 00 BB 9F 23 61 D8 AE A8 3C A2 A2 D3 4D 99 B4 [10:09:02]CheckFolder [10:09:02]dirname=/storage/ofd_packets [10:09:02]CheckFolder done [10:09:02]ProducePacketName [10:09:02]name=ofd_packets/00103123 [10:09:02]NVStorageSaveData ofd_packets/00103123 [10:09:02]File name is /storage/ofd_packets/00103123 [10:09:02]Write 301 bytes [10:09:02]NVStorageSaveData done [10:09:02]OFDSenderStorePacket done [10:09:02]KKMCreateOFDPacket done [10:09:02]NVStorageSaveData kkm_last_timestamp [10:09:02]File name is /storage/kkm_last_timestamp [10:09:02]Write 4 bytes [10:09:02]NVStorageSaveData done [10:09:02]ExternCall_PrintAddStr [10:09:02]wPrintStart [10:09:02]Write to MH i2c: 01 00 00 E0 1B FB [10:09:02]Write i2c OK [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: 01 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: 01 07 00 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: 01 07 00 E0 1B 00 00 00 00 00 FF 0F 10 [10:09:02]RasterBufferAndPrint [10:09:02]line Счет N : (1)160754 [10:09:02]line ИНН: 02508201610067 [10:09:02]line Контрольно-Кассовый Чек [10:09:02]line ПРОДАЖА [10:09:02]line ТРК (МРК, ГНК) : 7 [10:09:02]line Товар: 2710124130 [10:09:02]line Аи-92-К-5 [10:09:02]line 15.180 * 65.90 [10:09:02]line = 1000.36 [10:09:02]line НДС 12% НСП 1% [10:09:02]line > о реализуемом товаре [10:09:02]line ОКРУГЛЕНИЕ: -0.36 [10:09:02]line ИТОГО: 1000.00 [10:09:02]line Внесено: 1000.00 [10:09:02]line СДАЧА: 0.00 [10:09:02]line НСП 1% : 8.85 [10:09:02]line НДС 12% : 106.23 [10:09:02]line Наличными: 1000.00 [10:09:02]line Безнал.: 0.00 [10:09:02]line Место: АЗС № 38 "Партнер Нефть" [10:09:02]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [10:09:02]line СНО: Общий режим [10:09:02]line Чек 34 13.08.2024 10:09 [10:09:02]line Смена: 464 ФФД: 1.0 [10:09:02]line ЗНМ: 0300000126 [10:09:02]line РНМ: 0000000000092718 [10:09:02]line Версия ККМ: 001 [10:09:02]line ФМ: 0000000000875058 [10:09:02]line ФД: 103123 [10:09:02]line ФПД: 206292167809198 [10:09:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T100905&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103123&fm=206292167809198&tin=02508201610067®Number=0000000000092718&sum=100000 [10:09:03]OFD Sender: Processing packet 103123 [packets to send 69, broken 68] [10:09:03]ProducePacketName [10:09:03]name=ofd_packets/00103123 [10:09:03]OFD Sender: To server: pG, [10:09:03]CommunicateWithHost lk.salyk.kg:30040 [10:09:03]ConnectInit lk.salyk.kg [10:09:03]written 0, free lines is 4095 [10:09:03]Connected sock=10 [10:09:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 20 17 07 01 62 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 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 C1 30 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 D3 92 01 00 35 04 06 00 BB 9F 23 61 D8 AE A8 3C A2 A2 D3 4D 99 B4 [10:09:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 4E C2 47 00 DC B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 D3 92 01 00 F4 03 04 00 34 D7 BA 66 B6 04 01 00 00 A6 21 9C 50 F5 CC FC 1B [10:09:03]CommunicateWithHost err = 0 [10:09:03]CheckOFDResponse [10:09:03]1017 (14) - 77093643461234 [10:09:03]1041 (16) - 0000000000875058 [10:09:03]1040 (4) - 103123 [10:09:03]1012 (4) - 13.08.2024 03:47 [10:09:03]1206 (1) - 0 [10:09:03]OFD Sender: Remove packet 103123 [10:09:03]ProducePacketName [10:09:03]name=ofd_packets/00103123 [10:09:03]NVStorageDeleteData [10:09:03]Write to MH i2c: 01 00 00 0B 1C 27 [10:09:03]Write i2c OK [10:09:03]MH_I2C_Read... [10:09:03]Read from MH i2c: 01 [10:09:03]MH_I2C_Read... [10:09:03]Read from MH i2c: 01 07 00 [10:09:03]MH_I2C_Read... [10:09:03]Read from MH i2c: 01 07 00 0B 1C 00 00 00 00 00 DA 0C 14 [10:09:03]RasterBufferAndPrint [10:09:03]line [10:09:03]line [10:09:03]line [10:09:03]line [10:09:03]line [10:09:03]written 0, free lines is 3299 [10:09:03]MH_Cut [10:09:03]Write to MH i2c: D1 01 00 12 1C 01 00 [10:09:03]Write i2c OK [10:09:03]MH_I2C_Read... [10:09:03]Read from MH i2c: D1 [10:09:03]MH_I2C_Read... [10:09:03]Read from MH i2c: D1 01 00 [10:09:03]MH_I2C_Read... [10:09:03]Read from MH i2c: D1 01 00 12 1C 00 FF [10:09:03]Write to MH i2c: 01 00 00 13 1C 2F [10:09:03]Write i2c OK [10:09:03]MH_I2C_Read... [10:09:03]OFD Sender: No OFD packet to send [10:09:04]*** Cut start [10:09:04]*** Purtial cut [10:09:04]*** Stage 1: CUTSNS_PIN = 1 [10:09:04]Read from MH i2c: 01 [10:09:04]MH_I2C_Read... [10:09:04]*** Stop cut motor [10:09:04]*** Cut end [10:09:04]Read from MH i2c: 01 07 00 [10:09:04]MH_I2C_Read... [10:09:04]Read from MH i2c: 01 07 00 13 1C 00 00 00 00 00 FF 0F 44 [10:09:04]process_action close_receipt done [10:09:04]requested_data is exist [10:09:04]produce_requested_data [10:09:04]requested_item fm.sn is exist - process it [10:09:04]wFMCommunicate request_size=4 [10:09:04]MH_SAM_APDU [10:09:04]CAPDU: 80 11 00 00 [10:09:04]Write to MH i2c: E2 08 00 14 1C 80 11 00 00 00 00 00 00 AA [10:09:04]Write i2c OK [10:09:04]MH_I2C_Read... [10:09:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:04]Read from MH i2c: E2 [10:09:04]MH_I2C_Read... [10:09:04]Read from MH i2c: E2 17 00 [10:09:04]MH_I2C_Read... [10:09:04]Read from MH i2c: E2 17 00 14 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 FE [10:09:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [10:09:04]wFMCommunicate OK [10:09:04]requested_item fd.num is exist - process it [10:09:04]SAM_PROTO_GetFieldsCounters [10:09:04]wFMCommunicate request_size=4 [10:09:04]MH_SAM_APDU [10:09:04]CAPDU: 80 13 00 00 [10:09:04]Write to MH i2c: E2 08 00 15 1C 80 13 00 00 00 00 00 00 AD [10:09:04]Write i2c OK [10:09:04]MH_I2C_Read... [10:09:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:04]Read from MH i2c: E2 [10:09:04]MH_I2C_Read... [10:09:04]Read from MH i2c: E2 62 00 [10:09:04]MH_I2C_Read... [10:09:04]Read from MH i2c: E2 62 00 15 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 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 D3 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [10:09:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 D3 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:09:04]wFMCommunicate OK [10:09:04]SAM_PROTO_GetFieldsCounters done [10:09:04]requested_item shift.num is exist - process it [10:09:04]requested_item shift.opened is exist - process it [10:09:04]req_shift_opened [10:09:04]FM_GetShiftState [10:09:04]SAM_PROTO_GetShiftState [10:09:04]wFMCommunicate request_size=4 [10:09:04]MH_SAM_APDU [10:09:04]CAPDU: 80 13 01 00 [10:09:04]Write to MH i2c: E2 08 00 16 1C 80 13 01 00 00 00 00 00 AF [10:09:04]Write i2c OK [10:09:04]MH_I2C_Read... [10:09:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:05]Read from MH i2c: E2 [10:09:05]MH_I2C_Read... [10:09:05]Read from MH i2c: E2 0E 00 [10:09:05]MH_I2C_Read... [10:09:05]Read from MH i2c: E2 0E 00 16 1C 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 CD [10:09:05]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [10:09:05]wFMCommunicate OK [10:09:05]SAM_PROTO_GetShiftState done [10:09:05]FM_GetShiftState done [10:09:05]req_shift_opened done [10:09:05]requested_item shift.open_date is exist - process it [10:09:05]req_shift_open_date [10:09:05]req_shift_open_date done [10:09:05]produce_requested_data done [10:09:05]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103123,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [10:09:05]process_action_free close_receipt [10:09:05]json_value_free [10:09:05]json_value_free done [10:09:05]process_json_proto returns [10:09:05]Send response to host [10:09:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103123,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [10:09:05]free response buf [10:09:05]execute_script done [10:09:05]execute_script returns [10:09:05]free content buf [10:09:05]Sock 7.Close socket [10:09:05]Sock 7.Thread stoped [10:09:09]OFD Sender: No OFD packet to send [10:09:14]OFD Sender: No OFD packet to send [10:09:19]OFD Sender: No OFD packet to send [10:09:24]OFD Sender: No OFD packet to send [10:09:29]OFD Sender: No OFD packet to send [10:09:34]OFD Sender: No OFD packet to send [10:09:39]OFD Sender: No OFD packet to send [10:09:44]OFD Sender: No OFD packet to send [10:09:49]OFD Sender: No OFD packet to send [10:09:54]OFD Sender: No OFD packet to send [10:09:59]OFD Sender: No OFD packet to send [10:10:04]OFD Sender: No OFD packet to send [10:10:09]OFD Sender: No OFD packet to send [10:10:14]OFD Sender: No OFD packet to send [10:10:19]OFD Sender: No OFD packet to send [10:10:24]OFD Sender: No OFD packet to send [10:10:29]OFD Sender: No OFD packet to send [10:10:34]OFD Sender: No OFD packet to send [10:10:39]OFD Sender: No OFD packet to send [10:10:44]OFD Sender: No OFD packet to send [10:10:49]OFD Sender: No OFD packet to send [10:10:54]OFD Sender: No OFD packet to send [10:10:59]OFD Sender: No OFD packet to send [10:11:04]OFD Sender: No OFD packet to send [10:11:09]OFD Sender: No OFD packet to send [10:11:14]OFD Sender: No OFD packet to send [10:11:19]OFD Sender: No OFD packet to send [10:11:24]OFD Sender: No OFD packet to send [10:11:29]OFD Sender: No OFD packet to send [10:11:34]OFD Sender: No OFD packet to send [10:11:39]OFD Sender: No OFD packet to send [10:11:44]OFD Sender: No OFD packet to send [10:11:49]OFD Sender: No OFD packet to send [10:11:54]OFD Sender: No OFD packet to send [10:11:59]OFD Sender: No OFD packet to send [10:12:04]OFD Sender: No OFD packet to send [10:12:09]OFD Sender: No OFD packet to send [10:12: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:24]OFD Sender: No OFD packet to send [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:29]OFD Sender: No OFD packet to send [10:17:34]OFD Sender: No OFD packet to send [10:17:39]OFD Sender: No OFD packet to send [10:17:44]OFD Sender: No OFD packet to send [10:17:49]OFD Sender: No OFD packet to send [10:17:54]OFD Sender: No OFD packet to send [10:17:59]OFD Sender: No OFD packet to send [10:18:04]OFD Sender: No OFD packet to send [10:18:09]OFD Sender: No OFD packet to send [10:18:14]OFD Sender: No OFD packet to send [10:18:19]OFD Sender: No OFD packet to send [10:18:24]OFD Sender: No OFD packet to send [10:18:29]OFD Sender: No OFD packet to send [10:18:34]OFD Sender: No OFD packet to send [10:18:39]OFD Sender: No OFD packet to send [10:18:44]OFD Sender: No OFD packet to send [10:18:49]OFD Sender: No OFD packet to send [10:18:54]OFD Sender: No OFD packet to send [10:18:59]OFD Sender: No OFD packet to send [10:19:04]OFD Sender: No OFD packet to send [10:19:09]OFD Sender: No OFD packet to send [10:19:14]OFD Sender: No OFD packet to send [10:19:19]OFD Sender: No OFD packet to send [10:19:21]accept exits with 9 [10:19:21]New connection [10:19:21]New thread 3066563940 created [10:19:21]Thread 3066707300 joined [10:19:21]Waiting for new connection... [10:19:21] Sock 9.Parse request [10:19:21]Sock 9.Check first char [10:19:21]Sock 9.First char is OK [10:19:21]request: POST /json_proto HTTP/1.0 [10:19:21]Method: POST [10:19:21]URL: /json_proto [10:19:21]Method is POST - this is cgi request [10:19:21]url: /json_proto [10:19:21]query_string will be loaded in cgi processing [10:19:21]execute_cgi json_proto POST (null) [10:19:21]execute_cgi path=json_proto method=POST [10:19:21]POST find Content-Length [10:19:21]Host: 172.17.58.3:8080 [10:19:21]Content-Length: 673 [10:19:21]Content-Type: application/json [10:19:21] [10:19:21]POST finish read [10:19:21]Found Content-Length = 673 [10:19:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160755", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 1.630, "sum" : 120.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 120.00, "total" : 120.00, "payments": [ { "type": 0, "sum" : 120.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:21]execute_script... [10:19: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)160755", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 1.630, "sum" : 120.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 120.00, "total" : 120.00, "payments": [ { "type": 0, "sum" : 120.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:21]POST & json_proto [10:19:21]process_json_proto [10:19:21]json parsed OK: [10:19:21]protocol is kg_v1.0 [10:19:21]action value=close_receipt [10:19:21]process_action close_receipt [10:19:21]cmd_close_receipt [10:19:21]MH_GetDate [10:19:21]Write to MH i2c: F0 00 00 17 1C 22 [10:19:21]Write i2c OK [10:19:21]MH_I2C_Read... [10:19:21]Read from MH i2c: F0 [10:19:21]MH_I2C_Read... [10:19:21]Read from MH i2c: F0 09 00 [10:19:21]MH_I2C_Read... [10:19:21]Read from MH i2c: F0 09 00 17 1C 00 2D 33 BB 66 DC E4 6D 64 3D [10:19:21]GetLastDocTimeStamp 1723543745 [10:19:21]current date 1723544365 [10:19:21]FM_GetShiftState [10:19:21]SAM_PROTO_GetShiftState [10:19:21]wFMCommunicate request_size=4 [10:19:21]MH_SAM_APDU [10:19:21]CAPDU: 80 13 01 00 [10:19:21]Write to MH i2c: E2 08 00 18 1C 80 13 01 00 00 00 00 00 B1 [10:19:21]Write i2c OK [10:19:21]MH_I2C_Read... [10:19:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:21]Read from MH i2c: E2 [10:19:21]MH_I2C_Read... [10:19:21]Read from MH i2c: E2 0E 00 [10:19:21]MH_I2C_Read... [10:19:21]Read from MH i2c: E2 0E 00 18 1C 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 CF [10:19:21]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [10:19:21]wFMCommunicate OK [10:19:21]SAM_PROTO_GetShiftState done [10:19:21]FM_GetShiftState done [10:19:21]opened in 1723506770 [10:19:21]opened+sec_in_day 1723593170 [10:19:21]quantity*price = 12029 [10:19:21]sum+1 = 12030 [10:19:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 120.00 Внесено: 120.00 СДАЧА: 0.00 НСП 1% : 1.06 НДС 12% : 12.77 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 35 13.08.2024 10:19 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103124 ФПД: 213892283012043 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T101925&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103124&fm=213892283012043&tin=02508201610067®Number=0000000000092718&sum=12000 [10:19:22]StoreToDocumentArchive [10:19:22]shift 464 fd 103124 [10:19:22]save to /storage/0464/doc_00103124 [10:19:22]save last doc name /storage/0464/doc_00103124 to /storage/kkm_last_doc_name [10:19:22]save OK [10:19:22]Clear old archive folders... [10:19:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:19:22]tlvbuf is B6E6C350 [10:19:22]SAM_PROTO_ClearQueue [10:19:22]wFMCommunicate request_size=4 [10:19:22]MH_SAM_APDU [10:19:22]CAPDU: 80 09 00 00 [10:19:22]Write to MH i2c: E2 08 00 25 1C 80 09 00 00 00 00 00 00 B3 [10:19:22]Write i2c OK [10:19:22]MH_I2C_Read... [10:19:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:19:22]Read from MH i2c: E2 [10:19:22]MH_I2C_Read... [10:19:22]Read from MH i2c: E2 03 00 [10:19:22]MH_I2C_Read... [10:19:22]Read from MH i2c: E2 03 00 25 1C 00 90 00 B5 [10:19:22]RAPDU: 90 00 [10:19:22]wFMCommunicate OK [10:19:22]SAM_PROTO_ClearQueue done [10:19:22]KKMCreateOFDPacket [10:19:22]OFDProtocolAddRootSTLVToBuf [10:19:22]FM_MakeSignedData [10:19:22]FM_MakeSignedData [10:19:22]SAM_PROTO_SignData [10:19:22]wFMCommunicate request_size=4 [10:19:22]MH_SAM_APDU [10:19:22]CAPDU: 80 0D 01 02 [10:19:22]Write to MH i2c: E2 08 00 26 1C 80 0D 01 02 00 00 00 00 BB [10:19:22]Write i2c OK [10:19:22]MH_I2C_Read... [10:19:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:19:22]Read from MH i2c: E2 [10:19:22]MH_I2C_Read... [10:19:22]Read from MH i2c: E2 03 00 [10:19:22]MH_I2C_Read... [10:19:22]Read from MH i2c: E2 03 00 26 1C 00 90 00 B6 [10:19:22]RAPDU: 90 00 [10:19:22]wFMCommunicate OK [10:19:22]wFMCommunicate request_size=255 [10:19:22]MH_SAM_APDU [10:19:22]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5E 06 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 FD 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 2D 33 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 D4 92 01 00 35 04 06 00 C2 88 AD 8C [10:19:22]Write to MH i2c: E2 02 01 27 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 5E 06 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 FD 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 2D 33 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 D4 92 01 00 35 04 06 00 C2 88 AD 8C 00 00 80 [10:19:22]Write i2c OK [10:19:22]MH_I2C_Read... [10:19:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:23]Read from MH i2c: E2 [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: E2 03 00 [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: E2 03 00 27 1C 00 90 00 B7 [10:19:23]RAPDU: 90 00 [10:19:23]wFMCommunicate OK [10:19:23]wFMCommunicate request_size=7 [10:19:23]MH_SAM_APDU [10:19:23]CAPDU: 80 0D 02 02 02 93 CB [10:19:23]Write to MH i2c: E2 0A 00 28 1C 80 0D 02 02 02 00 93 CB 00 00 20 [10:19:23]Write i2c OK [10:19:23]MH_I2C_Read... [10:19:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:23]Read from MH i2c: E2 [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: E2 03 00 [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: E2 03 00 28 1C 00 90 00 B8 [10:19:23]RAPDU: 90 00 [10:19:23]wFMCommunicate OK [10:19:23]wFMCommunicate request_size=4 [10:19:23]MH_SAM_APDU [10:19:23]CAPDU: 80 0D 03 02 [10:19:23]Write to MH i2c: E2 08 00 29 1C 80 0D 03 02 00 00 00 00 C0 [10:19:23]Write i2c OK [10:19:23]MH_I2C_Read... [10:19:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:19:23]Read from MH i2c: E2 [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: E2 0B 00 [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: E2 0B 00 29 1C 00 48 01 05 9E 4C 0F 8D 55 90 00 EA [10:19:23]RAPDU: 48 01 05 9E 4C 0F 8D 55 90 00 [10:19:23]wFMCommunicate OK [10:19:23]SAM_PROTO_SignData done [10:19:23]FM_MakeSignedData done [10:19:23]CreateOFDProtocolMessage [10:19:23]wFMCommunicate request_size=4 [10:19:23]MH_SAM_APDU [10:19:23]CAPDU: 80 11 00 00 [10:19:23]Write to MH i2c: E2 08 00 2A 1C 80 11 00 00 00 00 00 00 C0 [10:19:23]Write i2c OK [10:19:23]MH_I2C_Read... [10:19:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:23]Read from MH i2c: E2 [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: E2 17 00 [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: E2 17 00 2A 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 14 [10:19:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [10:19:23]wFMCommunicate OK [10:19:23]CreateOFDProtocolMessage done [10:19:23]OFDSenderStorePacket 103124 [10:19:23]StoreOFDPacket docnum=103124 [10:19:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 7B 79 04 01 84 69 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5E 06 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 FD 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 2D 33 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 D4 92 01 00 35 04 06 00 C2 88 AD 8C 93 CB 48 01 05 9E 4C 0F 8D 55 [10:19:23]CheckFolder [10:19:23]dirname=/storage/ofd_packets [10:19:23]CheckFolder done [10:19:23]ProducePacketName [10:19:23]name=ofd_packets/00103124 [10:19:23]NVStorageSaveData ofd_packets/00103124 [10:19:23]File name is /storage/ofd_packets/00103124 [10:19:23]Write 298 bytes [10:19:23]NVStorageSaveData done [10:19:23]OFDSenderStorePacket done [10:19:23]KKMCreateOFDPacket done [10:19:23]NVStorageSaveData kkm_last_timestamp [10:19:23]File name is /storage/kkm_last_timestamp [10:19:23]Write 4 bytes [10:19:23]NVStorageSaveData done [10:19:23]ExternCall_PrintAddStr [10:19:23]wPrintStart [10:19:23]Write to MH i2c: 01 00 00 2B 1C 47 [10:19:23]Write i2c OK [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: 01 [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: 01 07 00 [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: 01 07 00 2B 1C 00 00 00 00 00 FF 0F 5C [10:19:23]RasterBufferAndPrint [10:19:23]line Счет N : (1)160755 [10:19:23]line ИНН: 02508201610067 [10:19:23]line Контрольно-Кассовый Чек [10:19:23]line ПРОДАЖА [10:19:23]line ТРК (МРК, ГНК) : 5 [10:19:23]line Товар: 2710194210 [10:19:23]line ДТ-К-5 [10:19:23]line 1.630 * 73.80 [10:19:23]line = 120.29 [10:19:23]line НДС 12% НСП 1% [10:19:23]line > о реализуемом товаре [10:19:23]line ОКРУГЛЕНИЕ: -0.29 [10:19:23]line ИТОГО: 120.00 [10:19:23]line Внесено: 120.00 [10:19:23]line СДАЧА: 0.00 [10:19:23]line НСП 1% : 1.06 [10:19:23]line НДС 12% : 12.77 [10:19:23]line Наличными: 120.00 [10:19:23]line Безнал.: 0.00 [10:19:23]line Место: АЗС № 38 "Партнер Нефть" [10:19:23]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [10:19:23]line СНО: Общий режим [10:19:23]line Чек 35 13.08.2024 10:19 [10:19:23]line Смена: 464 ФФД: 1.0 [10:19:23]line ЗНМ: 0300000126 [10:19:23]line РНМ: 0000000000092718 [10:19:23]line Версия ККМ: 001 [10:19:23]line ФМ: 0000000000875058 [10:19:23]line ФД: 103124 [10:19:23]line ФПД: 213892283012043 [10:19:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T101925&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103124&fm=213892283012043&tin=02508201610067®Number=0000000000092718&sum=12000 [10:19:23]OFD Sender: Processing packet 103124 [packets to send 69, broken 68] [10:19:23]ProducePacketName [10:19:23]name=ofd_packets/00103124 [10:19:23]OFD Sender: To server: pG, [10:19:23]CommunicateWithHost lk.salyk.kg:30040 [10:19:23]ConnectInit lk.salyk.kg [10:19:23]written 0, free lines is 4095 [10:19:23]Connected sock=10 [10:19:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 7B 79 04 01 84 69 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5E 06 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 FD 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 2D 33 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 D4 92 01 00 35 04 06 00 C2 88 AD 8C 93 CB 48 01 05 9E 4C 0F 8D 55 [10:19:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 E9 D7 47 00 6C F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 D4 92 01 00 F4 03 04 00 A0 D9 BA 66 B6 04 01 00 00 29 37 61 CB C0 F5 48 79 [10:19:23]CommunicateWithHost err = 0 [10:19:23]CheckOFDResponse [10:19:23]1017 (14) - 77093643461234 [10:19:23]1041 (16) - 0000000000875058 [10:19:23]1040 (4) - 103124 [10:19:23]1012 (4) - 13.08.2024 03:57 [10:19:23]1206 (1) - 0 [10:19:23]OFD Sender: Remove packet 103124 [10:19:23]ProducePacketName [10:19:23]name=ofd_packets/00103124 [10:19:23]NVStorageDeleteData [10:19:24]Write to MH i2c: 01 00 00 56 1C 72 [10:19:24]Write i2c OK [10:19:24]MH_I2C_Read... [10:19:24]Read from MH i2c: 01 [10:19:24]MH_I2C_Read... [10:19:24]Read from MH i2c: 01 07 00 [10:19:24]MH_I2C_Read... [10:19:24]Read from MH i2c: 01 07 00 56 1C 00 00 00 00 00 D1 0C 56 [10:19:24]RasterBufferAndPrint [10:19:24]line [10:19:24]line [10:19:24]line [10:19:24]line [10:19:24]line [10:19:24]written 0, free lines is 3289 [10:19:24]MH_Cut [10:19:24]Write to MH i2c: D1 01 00 5D 1C 01 4B [10:19:24]Write i2c OK [10:19:24]MH_I2C_Read... [10:19:24]Read from MH i2c: D1 [10:19:24]MH_I2C_Read... [10:19:24]Read from MH i2c: D1 01 00 [10:19:24]MH_I2C_Read... [10:19:24]Read from MH i2c: D1 01 00 5D 1C 00 4A [10:19:24]Write to MH i2c: 01 00 00 5E 1C 7A [10:19:24]Write i2c OK [10:19:24]MH_I2C_Read... [10:19:24]OFD Sender: No OFD packet to send [10:19:24]*** Cut start [10:19:24]*** Purtial cut [10:19:24]*** CUTSNS_PIN = 0 [10:19:25]*** Stage 1: CUTSNS_PIN = 1 [10:19:26]Read from MH i2c: 01 [10:19:26]MH_I2C_Read... [10:19:26]*** Stop cut motor [10:19:26]*** Cut end [10:19:26]Read from MH i2c: 01 07 00 [10:19:26]MH_I2C_Read... [10:19:26]Read from MH i2c: 01 07 00 5E 1C 00 00 00 00 00 FF 0F 8F [10:19:26]process_action close_receipt done [10:19:26]requested_data is exist [10:19:26]produce_requested_data [10:19:26]requested_item fm.sn is exist - process it [10:19:26]wFMCommunicate request_size=4 [10:19:26]MH_SAM_APDU [10:19:26]CAPDU: 80 11 00 00 [10:19:26]Write to MH i2c: E2 08 00 5F 1C 80 11 00 00 00 00 00 00 F5 [10:19:26]Write i2c OK [10:19:26]MH_I2C_Read... [10:19:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:26]Read from MH i2c: E2 [10:19:26]MH_I2C_Read... [10:19:26]Read from MH i2c: E2 17 00 [10:19:26]MH_I2C_Read... [10:19:26]Read from MH i2c: E2 17 00 5F 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 49 [10:19:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [10:19:26]wFMCommunicate OK [10:19:26]requested_item fd.num is exist - process it [10:19:26]SAM_PROTO_GetFieldsCounters [10:19:26]wFMCommunicate request_size=4 [10:19:26]MH_SAM_APDU [10:19:26]CAPDU: 80 13 00 00 [10:19:26]Write to MH i2c: E2 08 00 60 1C 80 13 00 00 00 00 00 00 F8 [10:19:26]Write i2c OK [10:19:26]MH_I2C_Read... [10:19:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:19:27]Read from MH i2c: E2 [10:19:27]MH_I2C_Read... [10:19:27]Read from MH i2c: E2 62 00 [10:19:27]MH_I2C_Read... [10:19:27]Read from MH i2c: E2 62 00 60 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 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 D4 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [10: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 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 D4 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:19:27]wFMCommunicate OK [10:19:27]SAM_PROTO_GetFieldsCounters done [10:19:27]requested_item shift.num is exist - process it [10:19:27]requested_item shift.opened is exist - process it [10:19:27]req_shift_opened [10:19:27]FM_GetShiftState [10:19:27]SAM_PROTO_GetShiftState [10:19:27]wFMCommunicate request_size=4 [10:19:27]MH_SAM_APDU [10:19:27]CAPDU: 80 13 01 00 [10:19:27]Write to MH i2c: E2 08 00 61 1C 80 13 01 00 00 00 00 00 FA [10:19:27]Write i2c OK [10:19:27]MH_I2C_Read... [10:19:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:27]Read from MH i2c: E2 [10:19:27]MH_I2C_Read... [10:19:27]Read from MH i2c: E2 0E 00 [10:19:27]MH_I2C_Read... [10:19:27]Read from MH i2c: E2 0E 00 61 1C 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 18 [10:19:27]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [10:19:27]wFMCommunicate OK [10:19:27]SAM_PROTO_GetShiftState done [10:19:27]FM_GetShiftState done [10:19:27]req_shift_opened done [10:19:27]requested_item shift.open_date is exist - process it [10:19:27]req_shift_open_date [10:19:27]req_shift_open_date done [10:19:27]produce_requested_data done [10:19:27]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103124,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [10:19:27]process_action_free close_receipt [10:19:27]json_value_free [10:19:27]json_value_free done [10:19:27]process_json_proto returns [10:19:27]Send response to host [10:19:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103124,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [10:19:27]free response buf [10:19:27]execute_script done [10:19:27]execute_script returns [10:19:27]free content buf [10:19:27]Sock 9.Close socket [10:19:27]Sock 9.Thread stoped [10:19:29]OFD Sender: No OFD packet to send [10:19:34]OFD Sender: No OFD packet to send [10:19:39]OFD Sender: No OFD packet to send [10:19:44]OFD Sender: No OFD packet to send [10:19:49]OFD Sender: No OFD packet to send [10:19:54]OFD Sender: No OFD packet to send [10:19:59]OFD Sender: No OFD packet to send [10:20:04]OFD Sender: No OFD packet to send [10:20:09]OFD Sender: No OFD packet to send [10:20:14]OFD Sender: No OFD packet to send [10:20:19]OFD Sender: No OFD packet to send [10:20:24]OFD Sender: No OFD packet to send [10:20:29]OFD Sender: No OFD packet to send [10:20:34]OFD Sender: No OFD packet to send [10:20:39]OFD Sender: No OFD packet to send [10:20:44]OFD Sender: No OFD packet to send [10:20:49]OFD Sender: No OFD packet to send [10:20:54]OFD Sender: No OFD packet to send [10:20:59]OFD Sender: No OFD packet to send [10:21:04]OFD Sender: No OFD packet to send [10:21:09]OFD Sender: No OFD packet to send [10:21:14]OFD Sender: No OFD packet to send [10:21:19]OFD Sender: No OFD packet to send [10:21:24]OFD Sender: No OFD packet to send [10:21:29]OFD Sender: No OFD packet to send [10:21:34]OFD Sender: No OFD packet to send [10:21:39]OFD Sender: No OFD packet to send [10:21:44]OFD Sender: No OFD packet to send [10:21:49]OFD Sender: No OFD packet to send [10:21:54]OFD Sender: No OFD packet to send [10:21:59]OFD Sender: No OFD packet to send [10:22:04]OFD Sender: No OFD packet to send [10:22:09]OFD Sender: No OFD packet to send [10:22:14]OFD Sender: No OFD packet to send [10:22:19]OFD Sender: No OFD packet to send [10:22:24]OFD Sender: No OFD packet to send [10:22:27]accept exits with 7 [10:22:27]New connection [10:22:27]New thread 3066707300 created [10:22:27]Thread 3066563940 joined [10:22:27]Waiting for new connection... [10:22:27] Sock 7.Parse request [10:22:27]Sock 7.Check first char [10:22:27]Sock 7.First char is OK [10:22:27]request: POST /json_proto HTTP/1.0 [10:22:27]Method: POST [10:22:27]URL: /json_proto [10:22:27]Method is POST - this is cgi request [10:22:27]url: /json_proto [10:22:27]query_string will be loaded in cgi processing [10:22:27]execute_cgi json_proto POST (null) [10:22:27]execute_cgi path=json_proto method=POST [10:22:27]POST find Content-Length [10:22:27]Host: 172.17.58.3:8080 [10:22:27]Content-Length: 670 [10:22:27]Content-Type: application/json [10:22:27] [10:22:27]POST finish read [10:22:27]Found Content-Length = 670 [10:22:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160756", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710124130", "name": "SUPER 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:22:27]execute_script... [10:22: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)160756", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710124130", "name": "SUPER 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:22:27]POST & json_proto [10:22:27]process_json_proto [10:22:27]json parsed OK: [10:22:27]protocol is kg_v1.0 [10:22:27]action value=close_receipt [10:22:27]process_action close_receipt [10:22:27]cmd_close_receipt [10:22:27]MH_GetDate [10:22:27]Write to MH i2c: F0 00 00 62 1C 6D [10:22:27]Write i2c OK [10:22:27]MH_I2C_Read... [10:22:27]Read from MH i2c: F0 [10:22:27]MH_I2C_Read... [10:22:27]Read from MH i2c: F0 09 00 [10:22:27]MH_I2C_Read... [10:22:27]Read from MH i2c: F0 09 00 62 1C 00 E7 33 BB 66 DC E4 6D 64 42 [10:22:27]GetLastDocTimeStamp 1723544365 [10:22:27]current date 1723544551 [10:22:27]FM_GetShiftState [10:22:27]SAM_PROTO_GetShiftState [10:22:27]wFMCommunicate request_size=4 [10:22:27]MH_SAM_APDU [10:22:27]CAPDU: 80 13 01 00 [10:22:27]Write to MH i2c: E2 08 00 63 1C 80 13 01 00 00 00 00 00 FC [10:22:27]Write i2c OK [10:22:27]MH_I2C_Read... [10:22:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:27]Read from MH i2c: E2 [10:22:27]MH_I2C_Read... [10:22:27]Read from MH i2c: E2 0E 00 [10:22:27]MH_I2C_Read... [10:22:27]Read from MH i2c: E2 0E 00 63 1C 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 1A [10:22:27]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [10:22:27]wFMCommunicate OK [10:22:27]SAM_PROTO_GetShiftState done [10:22:27]FM_GetShiftState done [10:22:27]opened in 1723506770 [10:22:27]opened+sec_in_day 1723593170 [10:22:27]quantity*price = 70044 [10:22:27]sum+1 = 70045 [10:22:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 36 13.08.2024 10:22 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103125 ФПД: 155959439072938 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T102231&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103125&fm=155959439072938&tin=02508201610067®Number=0000000000092718&sum=70000 [10:22:28]StoreToDocumentArchive [10:22:28]shift 464 fd 103125 [10:22:28]save to /storage/0464/doc_00103125 [10:22:28]save last doc name /storage/0464/doc_00103125 to /storage/kkm_last_doc_name [10:22:28]save OK [10:22:28]Clear old archive folders... [10:22:28]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:22:28]tlvbuf is B6E85450 [10:22:28]SAM_PROTO_ClearQueue [10:22:28]wFMCommunicate request_size=4 [10:22:28]MH_SAM_APDU [10:22:28]CAPDU: 80 09 00 00 [10:22:28]Write to MH i2c: E2 08 00 70 1C 80 09 00 00 00 00 00 00 FE [10:22:28]Write i2c OK [10:22:28]MH_I2C_Read... [10:22:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:22:28]Read from MH i2c: E2 [10:22:28]MH_I2C_Read... [10:22:28]Read from MH i2c: E2 03 00 [10:22:28]MH_I2C_Read... [10:22:28]Read from MH i2c: E2 03 00 70 1C 00 90 00 00 [10:22:28]RAPDU: 90 00 [10:22:28]wFMCommunicate OK [10:22:28]SAM_PROTO_ClearQueue done [10:22:28]KKMCreateOFDPacket [10:22:28]OFDProtocolAddRootSTLVToBuf [10:22:28]FM_MakeSignedData [10:22:28]FM_MakeSignedData [10:22:28]SAM_PROTO_SignData [10:22:28]wFMCommunicate request_size=4 [10:22:28]MH_SAM_APDU [10:22:28]CAPDU: 80 0D 01 02 [10:22:28]Write to MH i2c: E2 08 00 71 1C 80 0D 01 02 00 00 00 00 06 [10:22:28]Write i2c OK [10:22:28]MH_I2C_Read... [10:22:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:22:28]Read from MH i2c: E2 [10:22:28]MH_I2C_Read... [10:22:28]Read from MH i2c: E2 03 00 [10:22:28]MH_I2C_Read... [10:22:28]Read from MH i2c: E2 03 00 71 1C 00 90 00 01 [10:22:28]RAPDU: 90 00 [10:22:28]wFMCommunicate OK [10:22:28]wFMCommunicate request_size=255 [10:22:28]MH_SAM_APDU [10:22:28]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 24 00 00 00 F4 03 04 00 E7 33 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 D5 92 01 00 35 04 06 00 [10:22:28]Write to MH i2c: E2 02 01 72 1C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 24 00 00 00 F4 03 04 00 E7 33 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 D5 92 01 00 35 04 06 00 00 00 DD [10:22:28]Write i2c OK [10:22:28]MH_I2C_Read... [10:22:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:29]Read from MH i2c: E2 [10:22:29]MH_I2C_Read... [10:22:29]Read from MH i2c: E2 03 00 [10:22:29]MH_I2C_Read... [10:22:29]Read from MH i2c: E2 03 00 72 1C 00 90 00 02 [10:22:29]RAPDU: 90 00 [10:22:29]wFMCommunicate OK [10:22:29]wFMCommunicate request_size=11 [10:22:29]MH_SAM_APDU [10:22:29]CAPDU: 80 0D 02 02 06 8D D8 22 F7 1E AA [10:22:29]Write to MH i2c: E2 0E 00 73 1C 80 0D 02 02 06 00 8D D8 22 F7 1E AA 00 00 5B [10:22:29]Write i2c OK [10:22:29]MH_I2C_Read... [10:22:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:29]Read from MH i2c: E2 [10:22:29]MH_I2C_Read... [10:22:29]Read from MH i2c: E2 03 00 [10:22:29]MH_I2C_Read... [10:22:29]Read from MH i2c: E2 03 00 73 1C 00 90 00 03 [10:22:29]RAPDU: 90 00 [10:22:29]wFMCommunicate OK [10:22:29]wFMCommunicate request_size=4 [10:22:29]MH_SAM_APDU [10:22:29]CAPDU: 80 0D 03 02 [10:22:29]Write to MH i2c: E2 08 00 74 1C 80 0D 03 02 00 00 00 00 0B [10:22:29]Write i2c OK [10:22:29]MH_I2C_Read... [10:22:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:22:29]Read from MH i2c: E2 [10:22:29]MH_I2C_Read... [10:22:29]Read from MH i2c: E2 0B 00 [10:22:29]MH_I2C_Read... [10:22:29]Read from MH i2c: E2 0B 00 74 1C 00 10 53 D6 6F 1C 08 7C 02 90 00 56 [10:22:29]RAPDU: 10 53 D6 6F 1C 08 7C 02 90 00 [10:22:29]wFMCommunicate OK [10:22:29]SAM_PROTO_SignData done [10:22:29]FM_MakeSignedData done [10:22:29]CreateOFDProtocolMessage [10:22:29]wFMCommunicate request_size=4 [10:22:29]MH_SAM_APDU [10:22:29]CAPDU: 80 11 00 00 [10:22:29]Write to MH i2c: E2 08 00 75 1C 80 11 00 00 00 00 00 00 0B [10:22:29]Write i2c OK [10:22:29]MH_I2C_Read... [10:22:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:29]Read from MH i2c: E2 [10:22:29]MH_I2C_Read... [10:22:29]Read from MH i2c: E2 17 00 [10:22:29]MH_I2C_Read... [10:22:29]Read from MH i2c: E2 17 00 75 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 5F [10:22:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [10:22:29]wFMCommunicate OK [10:22:29]CreateOFDProtocolMessage done [10:22:29]OFDSenderStorePacket 103125 [10:22:29]StoreOFDPacket docnum=103125 [10:22:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 01 00 00 1D 50 08 01 52 18 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 24 00 00 00 F4 03 04 00 E7 33 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 D5 92 01 00 35 04 06 00 8D D8 22 F7 1E AA 10 53 D6 6F 1C 08 7C 02 [10:22:29]CheckFolder [10:22:29]dirname=/storage/ofd_packets [10:22:29]CheckFolder done [10:22:29]ProducePacketName [10:22:29]name=ofd_packets/00103125 [10:22:29]NVStorageSaveData ofd_packets/00103125 [10:22:29]File name is /storage/ofd_packets/00103125 [10:22:29]Write 302 bytes [10:22:29]NVStorageSaveData done [10:22:29]OFDSenderStorePacket done [10:22:29]KKMCreateOFDPacket done [10:22:29]NVStorageSaveData kkm_last_timestamp [10:22:29]File name is /storage/kkm_last_timestamp [10:22:29]Write 4 bytes [10:22:29]NVStorageSaveData done [10:22:29]ExternCall_PrintAddStr [10:22:29]wPrintStart [10:22:29]Write to MH i2c: 01 00 00 76 1C 92 [10:22:29]Write i2c OK [10:22:29]MH_I2C_Read... [10:22:29]Read from MH i2c: 01 [10:22:29]MH_I2C_Read... [10:22:29]Read from MH i2c: 01 07 00 [10:22:29]MH_I2C_Read... [10:22:29]Read from MH i2c: 01 07 00 76 1C 00 00 00 00 00 FF 0F A7 [10:22:29]RasterBufferAndPrint [10:22:29]line Счет N : (1)160756 [10:22:29]line ИНН: 02508201610067 [10:22:29]line Контрольно-Кассовый Чек [10:22:29]line ПРОДАЖА [10:22:29]line ТРК (МРК, ГНК) : 6 [10:22:29]line Товар: 2710124130 [10:22:29]line SUPER 92-К-5 [10:22:29]line 10.470 * 66.90 [10:22:29]line = 700.44 [10:22:29]line НДС 12% НСП 1% [10:22:29]line > о реализуемом товаре [10:22:29]line ОКРУГЛЕНИЕ: -0.44 [10:22:29]line ИТОГО: 700.00 [10:22:29]line Внесено: 700.00 [10:22:29]line СДАЧА: 0.00 [10:22:29]line НСП 1% : 6.20 [10:22:29]line НДС 12% : 74.38 [10:22:29]line Наличными: 700.00 [10:22:29]line Безнал.: 0.00 [10:22:29]line Место: АЗС № 38 "Партнер Нефть" [10:22:29]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [10:22:29]line СНО: Общий режим [10:22:29]line Чек 36 13.08.2024 10:22 [10:22:29]line Смена: 464 ФФД: 1.0 [10:22:29]line ЗНМ: 0300000126 [10:22:29]line РНМ: 0000000000092718 [10:22:29]line Версия ККМ: 001 [10:22:29]line ФМ: 0000000000875058 [10:22:29]line ФД: 103125 [10:22:29]line ФПД: 155959439072938 [10:22:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T102231&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103125&fm=155959439072938&tin=02508201610067®Number=0000000000092718&sum=70000 [10:22:29]written 0, free lines is 4095 [10:22:29]OFD Sender: Processing packet 103125 [packets to send 69, broken 68] [10:22:29]ProducePacketName [10:22:29]name=ofd_packets/00103125 [10:22:29]OFD Sender: To server: pG, [10:22:29]CommunicateWithHost lk.salyk.kg:30040 [10:22:29]ConnectInit lk.salyk.kg [10:22:29]Connected sock=10 [10:22:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 01 00 00 1D 50 08 01 52 18 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 24 00 00 00 F4 03 04 00 E7 33 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 D5 92 01 00 35 04 06 00 8D D8 22 F7 1E AA 10 53 D6 6F 1C 08 7C 02 [10:22:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 E4 76 47 00 86 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 D5 92 01 00 F4 03 04 00 5A DA BA 66 B6 04 01 00 00 AA EA E7 F4 9A 60 1C 57 [10:22:29]CommunicateWithHost err = 0 [10:22:29]CheckOFDResponse [10:22:29]1017 (14) - 77093643461234 [10:22:29]1041 (16) - 0000000000875058 [10:22:29]1040 (4) - 103125 [10:22:29]1012 (4) - 13.08.2024 04:00 [10:22:29]1206 (1) - 0 [10:22:29]OFD Sender: Remove packet 103125 [10:22:29]ProducePacketName [10:22:29]name=ofd_packets/00103125 [10:22:29]NVStorageDeleteData [10:22:29]Write to MH i2c: 01 00 00 A1 1C BD [10:22:29]Write i2c OK [10:22:29]MH_I2C_Read... [10:22:29]Read from MH i2c: 01 [10:22:29]MH_I2C_Read... [10:22:29]Read from MH i2c: 01 07 00 [10:22:29]MH_I2C_Read... [10:22:29]Read from MH i2c: 01 07 00 A1 1C 00 00 00 00 00 E2 0C B2 [10:22:29]RasterBufferAndPrint [10:22:29]line [10:22:29]line [10:22:29]line [10:22:29]line [10:22:29]line [10:22:29]written 0, free lines is 3304 [10:22:30]MH_Cut [10:22:30]Write to MH i2c: D1 01 00 A8 1C 01 96 [10:22:30]Write i2c OK [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: D1 [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: D1 01 00 [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: D1 01 00 A8 1C 00 95 [10:22:30]Write to MH i2c: 01 00 00 A9 1C C5 [10:22:30]Write i2c OK [10:22:30]MH_I2C_Read... [10:22:30]OFD Sender: No OFD packet to send [10:22:30]*** Cut start [10:22:30]*** Purtial cut [10:22:30]*** Stage 1: CUTSNS_PIN = 1 [10:22:31]Read from MH i2c: 01 [10:22:31]MH_I2C_Read... [10:22:31]*** Stop cut motor [10:22:31]*** Cut end [10:22:31]Read from MH i2c: 01 07 00 [10:22:31]MH_I2C_Read... [10:22:31]Read from MH i2c: 01 07 00 A9 1C 00 00 00 00 00 FF 0F DA [10:22:31]process_action close_receipt done [10:22:31]requested_data is exist [10:22:31]produce_requested_data [10:22:31]requested_item fm.sn is exist - process it [10:22:31]wFMCommunicate request_size=4 [10:22:31]MH_SAM_APDU [10:22:31]CAPDU: 80 11 00 00 [10:22:31]Write to MH i2c: E2 08 00 AA 1C 80 11 00 00 00 00 00 00 40 [10:22:31]Write i2c OK [10:22:31]MH_I2C_Read... [10:22:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:31]Read from MH i2c: E2 [10:22:31]MH_I2C_Read... [10:22:31]Read from MH i2c: E2 17 00 [10:22:31]MH_I2C_Read... [10:22:31]Read from MH i2c: E2 17 00 AA 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 94 [10:22:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [10:22:31]wFMCommunicate OK [10:22:31]requested_item fd.num is exist - process it [10:22:31]SAM_PROTO_GetFieldsCounters [10:22:31]wFMCommunicate request_size=4 [10:22:31]MH_SAM_APDU [10:22:31]CAPDU: 80 13 00 00 [10:22:31]Write to MH i2c: E2 08 00 AB 1C 80 13 00 00 00 00 00 00 43 [10:22:31]Write i2c OK [10:22:31]MH_I2C_Read... [10:22:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:31]Read from MH i2c: E2 [10:22:31]MH_I2C_Read... [10:22:31]Read from MH i2c: E2 62 00 [10:22:31]MH_I2C_Read... [10:22:31]Read from MH i2c: E2 62 00 AB 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 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 D5 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [10:22:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 D5 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:22:31]wFMCommunicate OK [10:22:31]SAM_PROTO_GetFieldsCounters done [10:22:31]requested_item shift.num is exist - process it [10:22:31]requested_item shift.opened is exist - process it [10:22:31]req_shift_opened [10:22:31]FM_GetShiftState [10:22:31]SAM_PROTO_GetShiftState [10:22:31]wFMCommunicate request_size=4 [10:22:31]MH_SAM_APDU [10:22:31]CAPDU: 80 13 01 00 [10:22:31]Write to MH i2c: E2 08 00 AC 1C 80 13 01 00 00 00 00 00 45 [10:22:31]Write i2c OK [10:22:31]MH_I2C_Read... [10:22:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:31]Read from MH i2c: E2 [10:22:31]MH_I2C_Read... [10:22:31]Read from MH i2c: E2 0E 00 [10:22:31]MH_I2C_Read... [10:22:31]Read from MH i2c: E2 0E 00 AC 1C 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 63 [10:22:31]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [10:22:31]wFMCommunicate OK [10:22:31]SAM_PROTO_GetShiftState done [10:22:31]FM_GetShiftState done [10:22:31]req_shift_opened done [10:22:31]requested_item shift.open_date is exist - process it [10:22:31]req_shift_open_date [10:22:31]req_shift_open_date done [10:22:31]produce_requested_data done [10:22:31]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103125,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [10:22:31]process_action_free close_receipt [10:22:31]json_value_free [10:22:31]json_value_free done [10:22:31]process_json_proto returns [10:22:31]Send response to host [10:22:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103125,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [10:22:31]free response buf [10:22:31]execute_script done [10:22:31]execute_script returns [10:22:31]free content buf [10:22:31]Sock 7.Close socket [10:22:31]Sock 7.Thread stoped [10:22:35]OFD Sender: No OFD packet to send [10:22:40]OFD Sender: No OFD packet to send [10:22:45]OFD Sender: No OFD packet to send [10:22:50]OFD Sender: No OFD packet to send [10:22:55]OFD Sender: No OFD packet to send [10:23:00]OFD Sender: No OFD packet to send [10:23:05]OFD Sender: No OFD packet to send [10:23:10]OFD Sender: No OFD packet to send [10:23:15]OFD Sender: No OFD packet to send [10:23:20]OFD Sender: No OFD packet to send [10:23:25]OFD Sender: No OFD packet to send [10:23:30]OFD Sender: No OFD packet to send [10:23:35]OFD Sender: No OFD packet to send [10:23:40]OFD Sender: No OFD packet to send [10:23:45]OFD Sender: No OFD packet to send [10:23:50]OFD Sender: No OFD packet to send [10:23:55]OFD Sender: No OFD packet to send [10:24:00]OFD Sender: No OFD packet to send [10:24:05]OFD Sender: No OFD packet to send [10:24:10]OFD Sender: No OFD packet to send [10:24:15]OFD Sender: No OFD packet to send [10:24:20]OFD Sender: No OFD packet to send [10:24:25]OFD Sender: No OFD packet to send [10:24:30]OFD Sender: No OFD packet to send [10:24:35]OFD Sender: No OFD packet to send [10:24:40]OFD Sender: No OFD packet to send [10:24:45]OFD Sender: No OFD packet to send [10:24:50]OFD Sender: No OFD packet to send [10:24:55]OFD Sender: No OFD packet to send [10:25:00]OFD Sender: No OFD packet to send [10:25:05]OFD Sender: No OFD packet to send [10:25:10]OFD Sender: No OFD packet to send [10:25:15]OFD Sender: No OFD packet to send [10:25:20]OFD Sender: No OFD packet to send [10:25:25]OFD Sender: No OFD packet to send [10:25:30]OFD Sender: No OFD packet to send [10:25:35]OFD Sender: No OFD packet to send [10:25:40]OFD Sender: No OFD packet to send [10:25:45]OFD Sender: No OFD packet to send [10:25:50]OFD Sender: No OFD packet to send [10:25:55]OFD Sender: No OFD packet to send [10:26:00]OFD Sender: No OFD packet to send [10:26:05]OFD Sender: No OFD packet to send [10:26:10]OFD Sender: No OFD packet to send [10:26:15]OFD Sender: No OFD packet to send [10:26:20]OFD Sender: No OFD packet to send [10:26:25]OFD Sender: No OFD packet to send [10:26:30]OFD Sender: No OFD packet to send [10:26:35]OFD Sender: No OFD packet to send [10:26:40]OFD Sender: No OFD packet to send [10:26:45]OFD Sender: No OFD packet to send [10:26:50]OFD Sender: No OFD packet to send [10:26:55]OFD Sender: No OFD packet to send [10:27:00]OFD Sender: No OFD packet to send [10:27:05]OFD Sender: No OFD packet to send [10:27:10]OFD Sender: No OFD packet to send [10:27:15]OFD Sender: No OFD packet to send [10:27:20]OFD Sender: No OFD packet to send [10:27:25]OFD Sender: No OFD packet to send [10:27:30]OFD Sender: No OFD packet to send [10:27:35]OFD Sender: No OFD packet to send [10:27:40]OFD Sender: No OFD packet to send [10:27:45]OFD Sender: No OFD packet to send [10:27:50]OFD Sender: No OFD packet to send [10:27:55]OFD Sender: No OFD packet to send [10:28:00]OFD Sender: No OFD packet to send [10:28:05]OFD Sender: No OFD packet to send [10:28:10]OFD Sender: No OFD packet to send [10:28:15]OFD Sender: No OFD packet to send [10:28:20]OFD Sender: No OFD packet to send [10:28:25]OFD Sender: No OFD packet to send [10:28:30]OFD Sender: No OFD packet to send [10:28:35]OFD Sender: No OFD packet to send [10:28:40]OFD Sender: No OFD packet to send [10:28:45]OFD Sender: No OFD packet to send [10:28:50]OFD Sender: No OFD packet to send [10:28:55]OFD Sender: No OFD packet to send [10:29:00]OFD Sender: No OFD packet to send [10:29:05]OFD Sender: No OFD packet to send [10:29:10]OFD Sender: No OFD packet to send [10:29:15]OFD Sender: No OFD packet to send [10:29:20]OFD Sender: No OFD packet to send [10:29:25]OFD Sender: No OFD packet to send [10:29:30]OFD Sender: No OFD packet to send [10:29:35]OFD Sender: No OFD packet to send [10:29:40]OFD Sender: No OFD packet to send [10:29:45]OFD Sender: No OFD packet to send [10:29:50]OFD Sender: No OFD packet to send [10:29:55]OFD Sender: No OFD packet to send [10:30:00]OFD Sender: No OFD packet to send [10:30:05]OFD Sender: No OFD packet to send [10:30:10]OFD Sender: No OFD packet to send [10:30:15]OFD Sender: No OFD packet to send [10:30:20]OFD Sender: No OFD packet to send [10:30:25]OFD Sender: No OFD packet to send [10:30:30]OFD Sender: No OFD packet to send [10:30:35]OFD Sender: No OFD packet to send [10:30:40]OFD Sender: No OFD packet to send [10:30:45]OFD Sender: No OFD packet to send [10:30:50]OFD Sender: No OFD packet to send [10:30:55]OFD Sender: No OFD packet to send [10:31:00]OFD Sender: No OFD packet to send [10:31:05]OFD Sender: No OFD packet to send [10:31:10]OFD Sender: No OFD packet to send [10:31:15]OFD Sender: No OFD packet to send [10:31:20]OFD Sender: No OFD packet to send [10:31:25]OFD Sender: No OFD packet to send [10:31:30]OFD Sender: No OFD packet to send [10:31:35]OFD Sender: No OFD packet to send [10:31:40]OFD Sender: No OFD packet to send [10:31:45]OFD Sender: No OFD packet to send [10:31:50]OFD Sender: No OFD packet to send [10:31:55]OFD Sender: No OFD packet to send [10:32:00]OFD Sender: No OFD packet to send [10:32:05]OFD Sender: No OFD packet to send [10:32:10]OFD Sender: No OFD packet to send [10:32:15]OFD Sender: No OFD packet to send [10:32:20]OFD Sender: No OFD packet to send [10:32:25]OFD Sender: No OFD packet to send [10:32:30]OFD Sender: No OFD packet to send [10:32:35]OFD Sender: No OFD packet to send [10:32:40]OFD Sender: No OFD packet to send [10:32:45]OFD Sender: No OFD packet to send [10:32:50]OFD Sender: No OFD packet to send [10:32:55]OFD Sender: No OFD packet to send [10:33:00]OFD Sender: No OFD packet to send [10:33:05]OFD Sender: No OFD packet to send [10:33:10]OFD Sender: No OFD packet to send [10:33:15]OFD Sender: No OFD packet to send [10:33:20]OFD Sender: No OFD packet to send [10:33:25]OFD Sender: No OFD packet to send [10:33:30]OFD Sender: No OFD packet to send [10:33:35]OFD Sender: No OFD packet to send [10:33:40]OFD Sender: No OFD packet to send [10:33:45]OFD Sender: No OFD packet to send [10:33:50]OFD Sender: No OFD packet to send [10:33:55]OFD Sender: No OFD packet to send [10:34:00]OFD Sender: No OFD packet to send [10:34:05]OFD Sender: No OFD packet to send [10:34:10]OFD Sender: No OFD packet to send [10:34:15]OFD Sender: No OFD packet to send [10:34:21]OFD Sender: No OFD packet to send [10:34:26]OFD Sender: No OFD packet to send [10:34:31]OFD Sender: No OFD packet to send [10:34:36]OFD Sender: No OFD packet to send [10:34:41]OFD Sender: No OFD packet to send [10:34:46]OFD Sender: No OFD packet to send [10:34:51]OFD Sender: No OFD packet to send [10:34:56]OFD Sender: No OFD packet to send [10:35:01]OFD Sender: No OFD packet to send [10:35:06]OFD Sender: No OFD packet to send [10:35:11]OFD Sender: No OFD packet to send [10:35:16]OFD Sender: No OFD packet to send [10:35:21]OFD Sender: No OFD packet to send [10:35:26]OFD Sender: No OFD packet to send [10:35:31]OFD Sender: No OFD packet to send [10:35:36]OFD Sender: No OFD packet to send [10:35:41]OFD Sender: No OFD packet to send [10:35:46]OFD Sender: No OFD packet to send [10:35:51]OFD Sender: No OFD packet to send [10:35:56]OFD Sender: No OFD packet to send [10:36:01]OFD Sender: No OFD packet to send [10:36:06]OFD Sender: No OFD packet to send [10:36:11]OFD Sender: No OFD packet to send [10:36:16]OFD Sender: No OFD packet to send [10:36:21]OFD Sender: No OFD packet to send [10:36:26]OFD Sender: No OFD packet to send [10:36:31]OFD Sender: No OFD packet to send [10:36:36]OFD Sender: No OFD packet to send [10:36:41]OFD Sender: No OFD packet to send [10:36:46]OFD Sender: No OFD packet to send [10:36:51]OFD Sender: No OFD packet to send [10:36:56]OFD Sender: No OFD packet to send [10:37:01]OFD Sender: No OFD packet to send [10:37:06]OFD Sender: No OFD packet to send [10:37:11]OFD Sender: No OFD packet to send [10:37:16]OFD Sender: No OFD packet to send [10:37:21]OFD Sender: No OFD packet to send [10:37:26]OFD Sender: No OFD packet to send [10:37:31]OFD Sender: No OFD packet to send [10:37:36]OFD Sender: No OFD packet to send [10:37:41]OFD Sender: No OFD packet to send [10:37:46]OFD Sender: No OFD packet to send [10:37:51]OFD Sender: No OFD packet to send [10:37:56]OFD Sender: No OFD packet to send [10:38:01]OFD Sender: No OFD packet to send [10:38:06]OFD Sender: No OFD packet to send [10:38:11]OFD Sender: No OFD packet to send [10:38:16]OFD Sender: No OFD packet to send [10:38:21]OFD Sender: No OFD packet to send [10:38:26]OFD Sender: No OFD packet to send [10:38:31]OFD Sender: No OFD packet to send [10:38:36]OFD Sender: No OFD packet to send [10:38:41]OFD Sender: No OFD packet to send [10:38:46]OFD Sender: No OFD packet to send [10:38:51]OFD Sender: No OFD packet to send [10:38:56]OFD Sender: No OFD packet to send [10:39:01]OFD Sender: No OFD packet to send [10:39:06]OFD Sender: No OFD packet to send [10:39:11]OFD Sender: No OFD packet to send [10:39:16]OFD Sender: No OFD packet to send [10:39:21]OFD Sender: No OFD packet to send [10:39:26]OFD Sender: No OFD packet to send [10:39:31]OFD Sender: No OFD packet to send [10:39:36]OFD Sender: No OFD packet to send [10:39:41]OFD Sender: No OFD packet to send [10:39:46]OFD Sender: No OFD packet to send [10:39:51]OFD Sender: No OFD packet to send [10:39:56]OFD Sender: No OFD packet to send [10:40:01]OFD Sender: No OFD packet to send [10:40:06]OFD Sender: No OFD packet to send [10:40:11]OFD Sender: No OFD packet to send [10:40:16]OFD Sender: No OFD packet to send [10:40:21]OFD Sender: No OFD packet to send [10:40:26]OFD Sender: No OFD packet to send [10:40:31]OFD Sender: No OFD packet to send [10:40:36]OFD Sender: No OFD packet to send [10:40:41]OFD Sender: No OFD packet to send [10:40:46]OFD Sender: No OFD packet to send [10:40:51]OFD Sender: No OFD packet to send [10:40:56]OFD Sender: No OFD packet to send [10:41:01]OFD Sender: No OFD packet to send [10:41:06]OFD Sender: No OFD packet to send [10:41:11]OFD Sender: No OFD packet to send [10:41:16]OFD Sender: No OFD packet to send [10:41:21]OFD Sender: No OFD packet to send [10:41:26]OFD Sender: No OFD packet to send [10:41:31]OFD Sender: No OFD packet to send [10:41:36]OFD Sender: No OFD packet to send [10:41:41]OFD Sender: No OFD packet to send [10:41:46]OFD Sender: No OFD packet to send [10:41:51]OFD Sender: No OFD packet to send [10:41:56]OFD Sender: No OFD packet to send [10:42:01]OFD Sender: No OFD packet to send [10:42:06]OFD Sender: No OFD packet to send [10:42:11]OFD Sender: No OFD packet to send [10:42:16]OFD Sender: No OFD packet to send [10:42:21]OFD Sender: No OFD packet to send [10:42:26]OFD Sender: No OFD packet to send [10:42:31]OFD Sender: No OFD packet to send [10:42:36]OFD Sender: No OFD packet to send [10:42:41]OFD Sender: No OFD packet to send [10:42:46]OFD Sender: No OFD packet to send [10:42:51]OFD Sender: No OFD packet to send [10:42:56]OFD Sender: No OFD packet to send [10:43:01]OFD Sender: No OFD packet to send [10:43:06]OFD Sender: No OFD packet to send [10:43:11]OFD Sender: No OFD packet to send [10:43:16]OFD Sender: No OFD packet to send [10:43:21]OFD Sender: No OFD packet to send [10:43:26]OFD Sender: No OFD packet to send [10:43:31]OFD Sender: No OFD packet to send [10:43:36]OFD Sender: No OFD packet to send [10:43:41]OFD Sender: No OFD packet to send [10:43:46]OFD Sender: No OFD packet to send [10:43:51]OFD Sender: No OFD packet to send [10:43:56]OFD Sender: No OFD packet to send [10:44:01]OFD Sender: No OFD packet to send [10:44:06]OFD Sender: No OFD packet to send [10:44:11]OFD Sender: No OFD packet to send [10:44:16]OFD Sender: No OFD packet to send [10:44:21]OFD Sender: No OFD packet to send [10:44:26]OFD Sender: No OFD packet to send [10:44:31]OFD Sender: No OFD packet to send [10:44:36]OFD Sender: No OFD packet to send [10:44:41]OFD Sender: No OFD packet to send [10:44:46]OFD Sender: No OFD packet to send [10:44:51]OFD Sender: No OFD packet to send [10:44:56]OFD Sender: No OFD packet to send [10:45:01]OFD Sender: No OFD packet to send [10:45:05]accept exits with 9 [10:45:05]New connection [10:45:05]New thread 3066563940 created [10:45:05]Thread 3066707300 joined [10:45:05]Waiting for new connection... [10:45:05] Sock 9.Parse request [10:45:05]Sock 9.Check first char [10:45:05]Sock 9.First char is OK [10:45:05]request: POST /json_proto HTTP/1.0 [10:45:05]Method: POST [10:45:05]URL: /json_proto [10:45:05]Method is POST - this is cgi request [10:45:05]url: /json_proto [10:45:05]query_string will be loaded in cgi processing [10:45:05]execute_cgi json_proto POST (null) [10:45:05]execute_cgi path=json_proto method=POST [10:45:05]POST find Content-Length [10:45:05]Host: 172.17.58.3:8080 [10:45:05]Content-Length: 674 [10:45:05]Content-Type: application/json [10:45:05] [10:45:05]POST finish read [10:45:05]Found Content-Length = 674 [10:45:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:05]execute_script... [10:45: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)160757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:05]POST & json_proto [10:45:05]process_json_proto [10:45:05]json parsed OK: [10:45:05]protocol is kg_v1.0 [10:45:05]action value=close_receipt [10:45:05]process_action close_receipt [10:45:05]cmd_close_receipt [10:45:05]MH_GetDate [10:45:05]Write to MH i2c: F0 00 00 AD 1C B8 [10:45:05]Write i2c OK [10:45:05]MH_I2C_Read... [10:45:05]Read from MH i2c: F0 [10:45:05]MH_I2C_Read... [10:45:05]Read from MH i2c: F0 09 00 [10:45:05]MH_I2C_Read... [10:45:05]Read from MH i2c: F0 09 00 AD 1C 00 35 39 BB 66 DC E4 6D 64 E1 [10:45:05]GetLastDocTimeStamp 1723544551 [10:45:05]current date 1723545909 [10:45:05]FM_GetShiftState [10:45:05]SAM_PROTO_GetShiftState [10:45:05]wFMCommunicate request_size=4 [10:45:05]MH_SAM_APDU [10:45:05]CAPDU: 80 13 01 00 [10:45:05]Write to MH i2c: E2 08 00 AE 1C 80 13 01 00 00 00 00 00 47 [10:45:05]Write i2c OK [10:45:05]MH_I2C_Read... [10:45:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:05]Read from MH i2c: E2 [10:45:05]MH_I2C_Read... [10:45:05]Read from MH i2c: E2 0E 00 [10:45:05]MH_I2C_Read... [10:45:05]Read from MH i2c: E2 0E 00 AE 1C 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 65 [10:45:05]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [10:45:05]wFMCommunicate OK [10:45:05]SAM_PROTO_GetShiftState done [10:45:05]FM_GetShiftState done [10:45:05]opened in 1723506770 [10:45:05]opened+sec_in_day 1723593170 [10:45:05]quantity*price = 150056 [10:45:05]sum+1 = 150058 [10:45:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 37 13.08.2024 10:45 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103126 ФПД: 138704666681080 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T104509&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103126&fm=138704666681080&tin=02508201610067®Number=0000000000092718&sum=150000 [10:45:06]StoreToDocumentArchive [10:45:06]shift 464 fd 103126 [10:45:06]save to /storage/0464/doc_00103126 [10:45:06]save last doc name /storage/0464/doc_00103126 to /storage/kkm_last_doc_name [10:45:06]save OK [10:45:06]Clear old archive folders... [10:45:06]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:45:06]tlvbuf is 00296750 [10:45:06]SAM_PROTO_ClearQueue [10:45:06]wFMCommunicate request_size=4 [10:45:06]MH_SAM_APDU [10:45:06]CAPDU: 80 09 00 00 [10:45:06]Write to MH i2c: E2 08 00 BB 1C 80 09 00 00 00 00 00 00 49 [10:45:06]Write i2c OK [10:45:06]MH_I2C_Read... [10:45:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:45:06]Read from MH i2c: E2 [10:45:06]MH_I2C_Read... [10:45:06]Read from MH i2c: E2 03 00 [10:45:06]MH_I2C_Read... [10:45:06]Read from MH i2c: E2 03 00 BB 1C 00 90 00 4B [10:45:06]RAPDU: 90 00 [10:45:06]wFMCommunicate OK [10:45:06]SAM_PROTO_ClearQueue done [10:45:06]KKMCreateOFDPacket [10:45:06]OFDProtocolAddRootSTLVToBuf [10:45:06]FM_MakeSignedData [10:45:06]FM_MakeSignedData [10:45:06]SAM_PROTO_SignData [10:45:06]wFMCommunicate request_size=4 [10:45:06]MH_SAM_APDU [10:45:06]CAPDU: 80 0D 01 02 [10:45:06]Write to MH i2c: E2 08 00 BC 1C 80 0D 01 02 00 00 00 00 51 [10:45:06]Write i2c OK [10:45:06]MH_I2C_Read... [10:45:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:45:06]Read from MH i2c: E2 [10:45:06]MH_I2C_Read... [10:45:06]Read from MH i2c: E2 03 00 [10:45:06]MH_I2C_Read... [10:45:06]Read from MH i2c: E2 03 00 BC 1C 00 90 00 4C [10:45:06]RAPDU: 90 00 [10:45:06]wFMCommunicate OK [10:45:06]wFMCommunicate request_size=255 [10:45:06]MH_SAM_APDU [10:45:06]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 35 39 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 D6 92 01 00 35 04 06 00 [10:45:06]Write to MH i2c: E2 02 01 BD 1C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 35 39 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 D6 92 01 00 35 04 06 00 00 00 B7 [10:45:06]Write i2c OK [10:45:06]MH_I2C_Read... [10:45:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:06]Read from MH i2c: E2 [10:45:06]MH_I2C_Read... [10:45:06]Read from MH i2c: E2 03 00 [10:45:06]MH_I2C_Read... [10:45:06]Read from MH i2c: E2 03 00 BD 1C 00 90 00 4D [10:45:06]RAPDU: 90 00 [10:45:06]wFMCommunicate OK [10:45:06]wFMCommunicate request_size=11 [10:45:06]MH_SAM_APDU [10:45:06]CAPDU: 80 0D 02 02 06 7E 26 B2 62 DE F8 [10:45:06]Write to MH i2c: E2 0E 00 BE 1C 80 0D 02 02 06 00 7E 26 B2 62 DE F8 00 00 EE [10:45:06]Write i2c OK [10:45:06]MH_I2C_Read... [10:45:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:06]Read from MH i2c: E2 [10:45:06]MH_I2C_Read... [10:45:06]Read from MH i2c: E2 03 00 [10:45:06]MH_I2C_Read... [10:45:06]Read from MH i2c: E2 03 00 BE 1C 00 90 00 4E [10:45:06]RAPDU: 90 00 [10:45:06]wFMCommunicate OK [10:45:06]wFMCommunicate request_size=4 [10:45:06]MH_SAM_APDU [10:45:06]CAPDU: 80 0D 03 02 [10:45:06]Write to MH i2c: E2 08 00 BF 1C 80 0D 03 02 00 00 00 00 56 [10:45:06]Write i2c OK [10:45:06]MH_I2C_Read... [10:45:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:45:06]Read from MH i2c: E2 [10:45:06]MH_I2C_Read... [10:45:06]Read from MH i2c: E2 0B 00 [10:45:06]MH_I2C_Read... [10:45:06]Read from MH i2c: E2 0B 00 BF 1C 00 D7 40 E2 1D 1F 87 63 07 90 00 7D [10:45:06]RAPDU: D7 40 E2 1D 1F 87 63 07 90 00 [10:45:06]wFMCommunicate OK [10:45:06]SAM_PROTO_SignData done [10:45:06]FM_MakeSignedData done [10:45:06]CreateOFDProtocolMessage [10:45:06]wFMCommunicate request_size=4 [10:45:06]MH_SAM_APDU [10:45:06]CAPDU: 80 11 00 00 [10:45:06]Write to MH i2c: E2 08 00 C0 1C 80 11 00 00 00 00 00 00 56 [10:45:06]Write i2c OK [10:45:06]MH_I2C_Read... [10:45:06]OFD Sender: No OFD packet to send [10:45:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:06]Read from MH i2c: E2 [10:45:06]MH_I2C_Read... [10:45:06]Read from MH i2c: E2 17 00 [10:45:06]MH_I2C_Read... [10:45:06]Read from MH i2c: E2 17 00 C0 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 AA [10:45:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [10:45:06]wFMCommunicate OK [10:45:06]CreateOFDProtocolMessage done [10:45:06]OFDSenderStorePacket 103126 [10:45:06]StoreOFDPacket docnum=103126 [10:45:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 01 00 00 47 5F 08 01 63 31 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 35 39 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 D6 92 01 00 35 04 06 00 7E 26 B2 62 DE F8 D7 40 E2 1D 1F 87 63 07 [10:45:06]CheckFolder [10:45:06]dirname=/storage/ofd_packets [10:45:06]CheckFolder done [10:45:06]ProducePacketName [10:45:06]name=ofd_packets/00103126 [10:45:06]NVStorageSaveData ofd_packets/00103126 [10:45:06]File name is /storage/ofd_packets/00103126 [10:45:06]Write 302 bytes [10:45:06]NVStorageSaveData done [10:45:06]OFDSenderStorePacket done [10:45:06]KKMCreateOFDPacket done [10:45:06]NVStorageSaveData kkm_last_timestamp [10:45:06]File name is /storage/kkm_last_timestamp [10:45:06]Write 4 bytes [10:45:06]NVStorageSaveData done [10:45:06]ExternCall_PrintAddStr [10:45:06]wPrintStart [10:45:06]Write to MH i2c: 01 00 00 C1 1C DD [10:45:06]Write i2c OK [10:45:06]MH_I2C_Read... [10:45:06]Read from MH i2c: 01 [10:45:06]MH_I2C_Read... [10:45:06]Read from MH i2c: 01 07 00 [10:45:06]MH_I2C_Read... [10:45:06]Read from MH i2c: 01 07 00 C1 1C 00 00 00 00 00 FF 0F F2 [10:45:06]RasterBufferAndPrint [10:45:06]line Счет N : (1)160757 [10:45:06]line ИНН: 02508201610067 [10:45:06]line Контрольно-Кассовый Чек [10:45:06]line ПРОДАЖА [10:45:06]line ТРК (МРК, ГНК) : 6 [10:45:06]line Товар: 2710124130 [10:45:06]line SUPER 92-К-5 [10:45:06]line 22.430 * 66.90 [10:45:06]line = 1500.57 [10:45:06]line НДС 12% НСП 1% [10:45:06]line > о реализуемом товаре [10:45:06]line ОКРУГЛЕНИЕ: -0.57 [10:45:06]line ИТОГО: 1500.00 [10:45:06]line Внесено: 1500.00 [10:45:06]line СДАЧА: 0.00 [10:45:06]line НСП 1% : 13.28 [10:45:06]line НДС 12% : 159.35 [10:45:06]line Наличными: 1500.00 [10:45:06]line Безнал.: 0.00 [10:45:06]line Место: АЗС № 38 "Партнер Нефть" [10:45:06]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [10:45:06]line СНО: Общий режим [10:45:06]line Чек 37 13.08.2024 10:45 [10:45:06]line Смена: 464 ФФД: 1.0 [10:45:06]line ЗНМ: 0300000126 [10:45:06]line РНМ: 0000000000092718 [10:45:06]line Версия ККМ: 001 [10:45:06]line ФМ: 0000000000875058 [10:45:06]line ФД: 103126 [10:45:06]line ФПД: 138704666681080 [10:45:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T104509&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103126&fm=138704666681080&tin=02508201610067®Number=0000000000092718&sum=150000 [10:45:07]OFD Sender: Processing packet 103126 [packets to send 69, broken 68] [10:45:07]ProducePacketName [10:45:07]name=ofd_packets/00103126 [10:45:07]OFD Sender: To server: pG, [10:45:07]CommunicateWithHost lk.salyk.kg:30040 [10:45:07]ConnectInit lk.salyk.kg [10:45:07]written 0, free lines is 4095 [10:45:07]Connected sock=10 [10:45:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 01 00 00 47 5F 08 01 63 31 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 35 39 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 D6 92 01 00 35 04 06 00 7E 26 B2 62 DE F8 D7 40 E2 1D 1F 87 63 07 [10:45:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 0E 66 47 00 CC D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 D6 92 01 00 F4 03 04 00 A8 DF BA 66 B6 04 01 00 00 1C FC 9B 89 BF 84 35 BD [10:45:07]CommunicateWithHost err = 0 [10:45:07]CheckOFDResponse [10:45:07]1017 (14) - 77093643461234 [10:45:07]1041 (16) - 0000000000875058 [10:45:07]1040 (4) - 103126 [10:45:07]1012 (4) - 13.08.2024 04:23 [10:45:07]1206 (1) - 0 [10:45:07]OFD Sender: Remove packet 103126 [10:45:07]ProducePacketName [10:45:07]name=ofd_packets/00103126 [10:45:07]NVStorageDeleteData [10:45:07]Write to MH i2c: 01 00 00 EC 1C 08 [10:45:07]Write i2c OK [10:45:07]MH_I2C_Read... [10:45:07]Read from MH i2c: 01 [10:45:07]MH_I2C_Read... [10:45:07]Read from MH i2c: 01 07 00 [10:45:07]MH_I2C_Read... [10:45:07]Read from MH i2c: 01 07 00 EC 1C 00 00 00 00 00 F4 0C 0F [10:45:07]RasterBufferAndPrint [10:45:07]line [10:45:07]line [10:45:07]line [10:45:07]line [10:45:07]line [10:45:07]written 0, free lines is 3325 [10:45:07]MH_Cut [10:45:07]Write to MH i2c: D1 01 00 F3 1C 01 E1 [10:45:07]Write i2c OK [10:45:07]MH_I2C_Read... [10:45:07]Read from MH i2c: D1 [10:45:07]MH_I2C_Read... [10:45:07]Read from MH i2c: D1 01 00 [10:45:07]MH_I2C_Read... [10:45:07]Read from MH i2c: D1 01 00 F3 1C 00 E0 [10:45:07]Write to MH i2c: 01 00 00 F4 1C 10 [10:45:07]Write i2c OK [10:45:07]MH_I2C_Read... [10:45:07]OFD Sender: No OFD packet to send [10:45:08]*** Cut start [10:45:08]*** Purtial cut [10:45:08]*** CUTSNS_PIN = 0 [10:45:08]*** Stage 1: CUTSNS_PIN = 1 [10:45:10]Read from MH i2c: 01 [10:45:10]MH_I2C_Read... [10:45:10]*** Stop cut motor [10:45:10]*** Cut end [10:45:10]Read from MH i2c: 01 07 00 [10:45:10]MH_I2C_Read... [10:45:10]Read from MH i2c: 01 07 00 F4 1C 00 00 00 00 00 FF 0F 25 [10:45:10]process_action close_receipt done [10:45:10]requested_data is exist [10:45:10]produce_requested_data [10:45:10]requested_item fm.sn is exist - process it [10:45:10]wFMCommunicate request_size=4 [10:45:10]MH_SAM_APDU [10:45:10]CAPDU: 80 11 00 00 [10:45:10]Write to MH i2c: E2 08 00 F5 1C 80 11 00 00 00 00 00 00 8B [10:45:10]Write i2c OK [10:45:10]MH_I2C_Read... [10:45:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:10]Read from MH i2c: E2 [10:45:10]MH_I2C_Read... [10:45:10]Read from MH i2c: E2 17 00 [10:45:10]MH_I2C_Read... [10:45:10]Read from MH i2c: E2 17 00 F5 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 DF [10:45:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [10:45:10]wFMCommunicate OK [10:45:10]requested_item fd.num is exist - process it [10:45:10]SAM_PROTO_GetFieldsCounters [10:45:10]wFMCommunicate request_size=4 [10:45:10]MH_SAM_APDU [10:45:10]CAPDU: 80 13 00 00 [10:45:10]Write to MH i2c: E2 08 00 F6 1C 80 13 00 00 00 00 00 00 8E [10:45:10]Write i2c OK [10:45:10]MH_I2C_Read... [10:45:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:45:10]Read from MH i2c: E2 [10:45:10]MH_I2C_Read... [10:45:10]Read from MH i2c: E2 62 00 [10:45:10]MH_I2C_Read... [10:45:10]Read from MH i2c: E2 62 00 F6 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 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 D6 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [10:45: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 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 D6 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:45:10]wFMCommunicate OK [10:45:10]SAM_PROTO_GetFieldsCounters done [10:45:10]requested_item shift.num is exist - process it [10:45:10]requested_item shift.opened is exist - process it [10:45:10]req_shift_opened [10:45:10]FM_GetShiftState [10:45:10]SAM_PROTO_GetShiftState [10:45:10]wFMCommunicate request_size=4 [10:45:10]MH_SAM_APDU [10:45:10]CAPDU: 80 13 01 00 [10:45:10]Write to MH i2c: E2 08 00 F7 1C 80 13 01 00 00 00 00 00 90 [10:45:10]Write i2c OK [10:45:10]MH_I2C_Read... [10:45:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:10]Read from MH i2c: E2 [10:45:10]MH_I2C_Read... [10:45:10]Read from MH i2c: E2 0E 00 [10:45:10]MH_I2C_Read... [10:45:10]Read from MH i2c: E2 0E 00 F7 1C 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 AE [10:45:10]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [10:45:10]wFMCommunicate OK [10:45:10]SAM_PROTO_GetShiftState done [10:45:10]FM_GetShiftState done [10:45:10]req_shift_opened done [10:45:10]requested_item shift.open_date is exist - process it [10:45:10]req_shift_open_date [10:45:10]req_shift_open_date done [10:45:10]produce_requested_data done [10:45:10]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103126,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [10:45:10]process_action_free close_receipt [10:45:10]json_value_free [10:45:10]json_value_free done [10:45:10]process_json_proto returns [10:45:10]Send response to host [10:45:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103126,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [10:45:10]free response buf [10:45:10]execute_script done [10:45:10]execute_script returns [10:45:10]free content buf [10:45:10]Sock 9.Close socket [10:45:10]Sock 9.Thread stoped [10:45:12]OFD Sender: No OFD packet to send [10:45:17]OFD Sender: No OFD packet to send [10:45:22]OFD Sender: No OFD packet to send [10:45:27]OFD Sender: No OFD packet to send [10:45:32]OFD Sender: No OFD packet to send [10:45:37]OFD Sender: No OFD packet to send [10:45:42]OFD Sender: No OFD packet to send [10:45:47]OFD Sender: No OFD packet to send [10:45:52]OFD Sender: No OFD packet to send [10:45:57]OFD Sender: No OFD packet to send [10:46:02]OFD Sender: No OFD packet to send [10:46:07]OFD Sender: No OFD packet to send [10:46:10]accept exits with 7 [10:46:10]New connection [10:46:10]New thread 3066707300 created [10:46:10]Thread 3066563940 joined [10:46:10]Waiting for new connection... [10:46:10] Sock 7.Parse request [10:46:10]Sock 7.Check first char [10:46:10]Sock 7.First char is OK [10:46:10]request: POST /json_proto HTTP/1.0 [10:46:10]Method: POST [10:46:10]URL: /json_proto [10:46:10]Method is POST - this is cgi request [10:46:10]url: /json_proto [10:46:10]query_string will be loaded in cgi processing [10:46:10]execute_cgi json_proto POST (null) [10:46:10]execute_cgi path=json_proto method=POST [10:46:10]POST find Content-Length [10:46:10]Host: 172.17.58.3:8080 [10:46:10]Content-Length: 677 [10:46:10]Content-Type: application/json [10:46:10] [10:46:10]POST finish read [10:46:10]Found Content-Length = 677 [10:46:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160758", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 12.140, "sum" : 800.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:10]execute_script... [10:46: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)160758", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 12.140, "sum" : 800.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:10]POST & json_proto [10:46:10]process_json_proto [10:46:10]json parsed OK: [10:46:10]protocol is kg_v1.0 [10:46:10]action value=close_receipt [10:46:10]process_action close_receipt [10:46:10]cmd_close_receipt [10:46:10]MH_GetDate [10:46:10]Write to MH i2c: F0 00 00 F8 1C 03 [10:46:10]Write i2c OK [10:46:10]MH_I2C_Read... [10:46:10]Read from MH i2c: F0 [10:46:10]MH_I2C_Read... [10:46:10]Read from MH i2c: F0 09 00 [10:46:10]MH_I2C_Read... [10:46:10]Read from MH i2c: F0 09 00 F8 1C 00 76 39 BB 66 DC E4 6D 64 6D [10:46:10]GetLastDocTimeStamp 1723545909 [10:46:10]current date 1723545974 [10:46:10]FM_GetShiftState [10:46:10]SAM_PROTO_GetShiftState [10:46:10]wFMCommunicate request_size=4 [10:46:10]MH_SAM_APDU [10:46:10]CAPDU: 80 13 01 00 [10:46:10]Write to MH i2c: E2 08 00 F9 1C 80 13 01 00 00 00 00 00 92 [10:46:10]Write i2c OK [10:46:10]MH_I2C_Read... [10:46:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:10]Read from MH i2c: E2 [10:46:10]MH_I2C_Read... [10:46:10]Read from MH i2c: E2 0E 00 [10:46:10]MH_I2C_Read... [10:46:10]Read from MH i2c: E2 0E 00 F9 1C 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 B0 [10:46:10]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [10:46:10]wFMCommunicate OK [10:46:10]SAM_PROTO_GetShiftState done [10:46:10]FM_GetShiftState done [10:46:10]opened in 1723506770 [10:46:10]opened+sec_in_day 1723593170 [10:46:10]quantity*price = 80002 [10:46:10]sum+1 = 80004 [10:46:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 38 13.08.2024 10:46 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103127 ФПД: 38141676492969 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T104614&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103127&fm=38141676492969&tin=02508201610067®Number=0000000000092718&sum=80000 [10:46:11]StoreToDocumentArchive [10:46:11]shift 464 fd 103127 [10:46:11]save to /storage/0464/doc_00103127 [10:46:11]save last doc name /storage/0464/doc_00103127 to /storage/kkm_last_doc_name [10:46:11]save OK [10:46:11]Clear old archive folders... [10:46:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:46:11]tlvbuf is 0028A200 [10:46:11]SAM_PROTO_ClearQueue [10:46:11]wFMCommunicate request_size=4 [10:46:11]MH_SAM_APDU [10:46:11]CAPDU: 80 09 00 00 [10:46:11]Write to MH i2c: E2 08 00 06 1D 80 09 00 00 00 00 00 00 95 [10:46:11]Write i2c OK [10:46:11]MH_I2C_Read... [10:46:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:46:11]Read from MH i2c: E2 [10:46:11]MH_I2C_Read... [10:46:11]Read from MH i2c: E2 03 00 [10:46:11]MH_I2C_Read... [10:46:11]Read from MH i2c: E2 03 00 06 1D 00 90 00 97 [10:46:11]RAPDU: 90 00 [10:46:11]wFMCommunicate OK [10:46:11]SAM_PROTO_ClearQueue done [10:46:11]KKMCreateOFDPacket [10:46:11]OFDProtocolAddRootSTLVToBuf [10:46:11]FM_MakeSignedData [10:46:11]FM_MakeSignedData [10:46:11]SAM_PROTO_SignData [10:46:11]wFMCommunicate request_size=4 [10:46:11]MH_SAM_APDU [10:46:11]CAPDU: 80 0D 01 02 [10:46:11]Write to MH i2c: E2 08 00 07 1D 80 0D 01 02 00 00 00 00 9D [10:46:11]Write i2c OK [10:46:11]MH_I2C_Read... [10:46:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:46:12]Read from MH i2c: E2 [10:46:12]MH_I2C_Read... [10:46:12]Read from MH i2c: E2 03 00 [10:46:12]MH_I2C_Read... [10:46:12]Read from MH i2c: E2 03 00 07 1D 00 90 00 98 [10:46:12]RAPDU: 90 00 [10:46:12]wFMCommunicate OK [10:46:12]wFMCommunicate request_size=255 [10:46:12]MH_SAM_APDU [10:46:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 2F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 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 26 00 00 00 F4 03 04 00 76 39 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 D7 92 01 00 35 04 06 00 22 [10:46:12]Write to MH i2c: E2 02 01 08 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 6C 2F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 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 26 00 00 00 F4 03 04 00 76 39 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 D7 92 01 00 35 04 06 00 22 00 00 B4 [10:46:12]Write i2c OK [10:46:12]MH_I2C_Read... [10:46:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:12]Read from MH i2c: E2 [10:46:12]MH_I2C_Read... [10:46:12]Read from MH i2c: E2 03 00 [10:46:12]MH_I2C_Read... [10:46:12]Read from MH i2c: E2 03 00 08 1D 00 90 00 99 [10:46:12]RAPDU: 90 00 [10:46:12]wFMCommunicate OK [10:46:12]wFMCommunicate request_size=10 [10:46:12]MH_SAM_APDU [10:46:12]CAPDU: 80 0D 02 02 05 B0 8D 14 18 A9 [10:46:12]Write to MH i2c: E2 0D 00 09 1D 80 0D 02 02 05 00 B0 8D 14 18 A9 00 00 BC [10:46:12]Write i2c OK [10:46:12]MH_I2C_Read... [10:46:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:12]Read from MH i2c: E2 [10:46:12]MH_I2C_Read... [10:46:12]Read from MH i2c: E2 03 00 [10:46:12]MH_I2C_Read... [10:46:12]Read from MH i2c: E2 03 00 09 1D 00 90 00 9A [10:46:12]RAPDU: 90 00 [10:46:12]wFMCommunicate OK [10:46:12]wFMCommunicate request_size=4 [10:46:12]MH_SAM_APDU [10:46:12]CAPDU: 80 0D 03 02 [10:46:12]Write to MH i2c: E2 08 00 0A 1D 80 0D 03 02 00 00 00 00 A2 [10:46:12]Write i2c OK [10:46:12]MH_I2C_Read... [10:46:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:46:12]Read from MH i2c: E2 [10:46:12]MH_I2C_Read... [10:46:12]Read from MH i2c: E2 0B 00 [10:46:12]MH_I2C_Read... [10:46:12]Read from MH i2c: E2 0B 00 0A 1D 00 48 BB 08 48 12 CE 82 DA 90 00 32 [10:46:12]RAPDU: 48 BB 08 48 12 CE 82 DA 90 00 [10:46:12]wFMCommunicate OK [10:46:12]SAM_PROTO_SignData done [10:46:12]FM_MakeSignedData done [10:46:12]CreateOFDProtocolMessage [10:46:12]wFMCommunicate request_size=4 [10:46:12]MH_SAM_APDU [10:46:12]CAPDU: 80 11 00 00 [10:46:12]Write to MH i2c: E2 08 00 0B 1D 80 11 00 00 00 00 00 00 A2 [10:46:12]Write i2c OK [10:46:12]MH_I2C_Read... [10:46:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:12]Read from MH i2c: E2 [10:46:12]MH_I2C_Read... [10:46:12]Read from MH i2c: E2 17 00 [10:46:12]MH_I2C_Read... [10:46:12]Read from MH i2c: E2 17 00 0B 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 F6 [10:46:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [10:46:12]wFMCommunicate OK [10:46:12]CreateOFDProtocolMessage done [10:46:12]OFDSenderStorePacket 103127 [10:46:12]StoreOFDPacket docnum=103127 [10:46:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 62 C5 07 01 8C 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 2F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 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 26 00 00 00 F4 03 04 00 76 39 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 D7 92 01 00 35 04 06 00 22 B0 8D 14 18 A9 48 BB 08 48 12 CE 82 DA [10:46:12]CheckFolder [10:46:12]dirname=/storage/ofd_packets [10:46:12]CheckFolder done [10:46:12]ProducePacketName [10:46:12]name=ofd_packets/00103127 [10:46:12]NVStorageSaveData ofd_packets/00103127 [10:46:12]File name is /storage/ofd_packets/00103127 [10:46:12]Write 301 bytes [10:46:12]NVStorageSaveData done [10:46:12]OFDSenderStorePacket done [10:46:12]KKMCreateOFDPacket done [10:46:12]NVStorageSaveData kkm_last_timestamp [10:46:12]File name is /storage/kkm_last_timestamp [10:46:12]Write 4 bytes [10:46:12]NVStorageSaveData done [10:46:12]ExternCall_PrintAddStr [10:46:12]wPrintStart [10:46:12]Write to MH i2c: 01 00 00 0C 1D 29 [10:46:12]Write i2c OK [10:46:12]MH_I2C_Read... [10:46:12]Read from MH i2c: 01 [10:46:12]MH_I2C_Read... [10:46:12]Read from MH i2c: 01 07 00 [10:46:12]MH_I2C_Read... [10:46:12]Read from MH i2c: 01 07 00 0C 1D 00 00 00 00 00 FF 0F 3E [10:46:12]RasterBufferAndPrint [10:46:12]line Счет N : (1)160758 [10:46:12]line ИНН: 02508201610067 [10:46:12]line Контрольно-Кассовый Чек [10:46:12]line ПРОДАЖА [10:46:12]line ТРК (МРК, ГНК) : 3 [10:46:12]line Товар: 2710124130 [10:46:12]line Аи-92-К-5 [10:46:12]line 12.140 * 65.90 [10:46:12]line = 800.03 [10:46:12]line НДС 12% НСП 1% [10:46:12]line > о реализуемом товаре [10:46:12]line ОКРУГЛЕНИЕ: -0.03 [10:46:12]line ИТОГО: 800.00 [10:46:12]line Внесено: 800.00 [10:46:12]line СДАЧА: 0.00 [10:46:12]line НСП 1% : 7.08 [10:46:12]line НДС 12% : 84.96 [10:46:12]line Наличными: 800.00 [10:46:12]line Безнал.: 0.00 [10:46:12]line Место: АЗС № 38 "Партнер Нефть" [10:46:12]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [10:46:12]line СНО: Общий режим [10:46:12]line Чек 38 13.08.2024 10:46 [10:46:12]line Смена: 464 ФФД: 1.0 [10:46:12]line ЗНМ: 0300000126 [10:46:12]line РНМ: 0000000000092718 [10:46:12]line Версия ККМ: 001 [10:46:12]line ФМ: 0000000000875058 [10:46:12]line ФД: 103127 [10:46:12]line ФПД: 38141676492969 [10:46:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T104614&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103127&fm=38141676492969&tin=02508201610067®Number=0000000000092718&sum=80000 [10:46:12]OFD Sender: Processing packet 103127 [packets to send 69, broken 68] [10:46:12]ProducePacketName [10:46:12]name=ofd_packets/00103127 [10:46:12]OFD Sender: To server: pG, [10:46:12]CommunicateWithHost lk.salyk.kg:30040 [10:46:12]ConnectInit lk.salyk.kg [10:46:12]written 0, free lines is 4095 [10:46:12]Connected sock=10 [10:46:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 62 C5 07 01 8C 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 2F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 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 26 00 00 00 F4 03 04 00 76 39 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 D7 92 01 00 35 04 06 00 22 B0 8D 14 18 A9 48 BB 08 48 12 CE 82 DA [10:46:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 6B 3A 47 00 32 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 D7 92 01 00 F4 03 04 00 E9 DF BA 66 B6 04 01 00 00 DD 0C 83 82 C7 0F 0E E5 [10:46:13]CommunicateWithHost err = 0 [10:46:13]CheckOFDResponse [10:46:13]1017 (14) - 77093643461234 [10:46:13]1041 (16) - 0000000000875058 [10:46:13]1040 (4) - 103127 [10:46:13]1012 (4) - 13.08.2024 04:24 [10:46:13]1206 (1) - 0 [10:46:13]OFD Sender: Remove packet 103127 [10:46:13]ProducePacketName [10:46:13]name=ofd_packets/00103127 [10:46:13]NVStorageDeleteData [10:46:13]Write to MH i2c: 01 00 00 37 1D 54 [10:46:13]Write i2c OK [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: 01 [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: 01 07 00 [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: 01 07 00 37 1D 00 00 00 00 00 E0 0C 47 [10:46:13]RasterBufferAndPrint [10:46:13]line [10:46:13]line [10:46:13]line [10:46:13]line [10:46:13]line [10:46:13]written 0, free lines is 3302 [10:46:13]MH_Cut [10:46:13]Write to MH i2c: D1 01 00 3E 1D 01 2D [10:46:13]Write i2c OK [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: D1 [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: D1 01 00 [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: D1 01 00 3E 1D 00 2C [10:46:13]Write to MH i2c: 01 00 00 3F 1D 5C [10:46:13]Write i2c OK [10:46:13]MH_I2C_Read... [10:46:13]OFD Sender: No OFD packet to send [10:46:13]*** Cut start [10:46:13]*** Purtial cut [10:46:13]*** Stage 1: CUTSNS_PIN = 1 [10:46:14]Read from MH i2c: 01 [10:46:14]MH_I2C_Read... [10:46:14]*** Stop cut motor [10:46:14]*** Cut end [10:46:14]Read from MH i2c: 01 07 00 [10:46:14]MH_I2C_Read... [10:46:14]Read from MH i2c: 01 07 00 3F 1D 00 00 00 00 00 FF 0F 71 [10:46:14]process_action close_receipt done [10:46:14]requested_data is exist [10:46:14]produce_requested_data [10:46:14]requested_item fm.sn is exist - process it [10:46:14]wFMCommunicate request_size=4 [10:46:14]MH_SAM_APDU [10:46:14]CAPDU: 80 11 00 00 [10:46:14]Write to MH i2c: E2 08 00 40 1D 80 11 00 00 00 00 00 00 D7 [10:46:14]Write i2c OK [10:46:14]MH_I2C_Read... [10:46:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:14]Read from MH i2c: E2 [10:46:14]MH_I2C_Read... [10:46:14]Read from MH i2c: E2 17 00 [10:46:14]MH_I2C_Read... [10:46:14]Read from MH i2c: E2 17 00 40 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 2B [10:46:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [10:46:14]wFMCommunicate OK [10:46:14]requested_item fd.num is exist - process it [10:46:14]SAM_PROTO_GetFieldsCounters [10:46:14]wFMCommunicate request_size=4 [10:46:14]MH_SAM_APDU [10:46:14]CAPDU: 80 13 00 00 [10:46:14]Write to MH i2c: E2 08 00 41 1D 80 13 00 00 00 00 00 00 DA [10:46:14]Write i2c OK [10:46:14]MH_I2C_Read... [10:46:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:46:14]Read from MH i2c: E2 [10:46:14]MH_I2C_Read... [10:46:14]Read from MH i2c: E2 62 00 [10:46:14]MH_I2C_Read... [10:46:14]Read from MH i2c: E2 62 00 41 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 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 D7 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [10:46:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 D7 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:46:14]wFMCommunicate OK [10:46:14]SAM_PROTO_GetFieldsCounters done [10:46:14]requested_item shift.num is exist - process it [10:46:14]requested_item shift.opened is exist - process it [10:46:14]req_shift_opened [10:46:14]FM_GetShiftState [10:46:14]SAM_PROTO_GetShiftState [10:46:14]wFMCommunicate request_size=4 [10:46:14]MH_SAM_APDU [10:46:14]CAPDU: 80 13 01 00 [10:46:14]Write to MH i2c: E2 08 00 42 1D 80 13 01 00 00 00 00 00 DC [10:46:14]Write i2c OK [10:46:14]MH_I2C_Read... [10:46:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:14]Read from MH i2c: E2 [10:46:14]MH_I2C_Read... [10:46:14]Read from MH i2c: E2 0E 00 [10:46:14]MH_I2C_Read... [10:46:14]Read from MH i2c: E2 0E 00 42 1D 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 FA [10:46:14]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [10:46:14]wFMCommunicate OK [10:46:14]SAM_PROTO_GetShiftState done [10:46:14]FM_GetShiftState done [10:46:14]req_shift_opened done [10:46:14]requested_item shift.open_date is exist - process it [10:46:14]req_shift_open_date [10:46:14]req_shift_open_date done [10:46:14]produce_requested_data done [10:46:14]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103127,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [10:46:14]process_action_free close_receipt [10:46:14]json_value_free [10:46:14]json_value_free done [10:46:14]process_json_proto returns [10:46:14]Send response to host [10:46:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103127,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [10:46:14]free response buf [10:46:14]execute_script done [10:46:14]execute_script returns [10:46:14]free content buf [10:46:14]Sock 7.Close socket [10:46:14]Sock 7.Thread stoped [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:23]OFD Sender: No OFD packet to send [10:49:28]OFD Sender: No OFD packet to send [10:49:33]OFD Sender: No OFD packet to send [10:49:38]OFD Sender: No OFD packet to send [10:49:43]OFD Sender: No OFD packet to send [10:49:48]OFD Sender: No OFD packet to send [10:49:53]OFD Sender: No OFD packet to send [10:49:58]OFD Sender: No OFD packet to send [10:50:03]OFD Sender: No OFD packet to send [10:50:08]OFD Sender: No OFD packet to send [10:50:13]OFD Sender: No OFD packet to send [10:50:18]OFD Sender: No OFD packet to send [10:50:23]OFD Sender: No OFD packet to send [10:50:28]OFD Sender: No OFD packet to send [10:50:33]OFD Sender: No OFD packet to send [10:50:38]OFD Sender: No OFD packet to send [10:50:43]OFD Sender: No OFD packet to send [10:50:48]OFD Sender: No OFD packet to send [10:50:53]OFD Sender: No OFD packet to send [10:50:58]OFD Sender: No OFD packet to send [10:51:03]OFD Sender: No OFD packet to send [10:51:08]OFD Sender: No OFD packet to send [10:51:13]OFD Sender: No OFD packet to send [10:51:18]OFD Sender: No OFD packet to send [10:51:23]OFD Sender: No OFD packet to send [10:51:28]OFD Sender: No OFD packet to send [10:51:33]OFD Sender: No OFD packet to send [10:51:38]OFD Sender: No OFD packet to send [10:51:43]OFD Sender: No OFD packet to send [10:51:48]OFD Sender: No OFD packet to send [10:51:53]OFD Sender: No OFD packet to send [10:51:58]OFD Sender: No OFD packet to send [10:52:03]OFD Sender: No OFD packet to send [10:52:08]OFD Sender: No OFD packet to send [10:52:13]OFD Sender: No OFD packet to send [10:52:18]OFD Sender: No OFD packet to send [10:52:23]OFD Sender: No OFD packet to send [10:52:28]OFD Sender: No OFD packet to send [10:52:33]OFD Sender: No OFD packet to send [10:52:38]OFD Sender: No OFD packet to send [10:52:43]OFD Sender: No OFD packet to send [10:52:48]OFD Sender: No OFD packet to send [10:52:53]OFD Sender: No OFD packet to send [10:52:58]OFD Sender: No OFD packet to send [10:53:03]OFD Sender: No OFD packet to send [10:53:08]OFD Sender: No OFD packet to send [10:53:13]OFD Sender: No OFD packet to send [10:53:18]OFD Sender: No OFD packet to send [10:53:23]OFD Sender: No OFD packet to send [10:53:28]OFD Sender: No OFD packet to send [10:53:33]OFD Sender: No OFD packet to send [10:53:38]OFD Sender: No OFD packet to send [10:53:44]OFD Sender: No OFD packet to send [10:53:49]OFD Sender: No OFD packet to send [10:53:54]OFD Sender: No OFD packet to send [10:53:59]OFD Sender: No OFD packet to send [10:54:04]OFD Sender: No OFD packet to send [10:54:09]OFD Sender: No OFD packet to send [10:54:14]OFD Sender: No OFD packet to send [10:54:19]OFD Sender: No OFD packet to send [10:54:24]OFD Sender: No OFD packet to send [10:54:29]OFD Sender: No OFD packet to send [10:54:34]OFD Sender: No OFD packet to send [10:54:39]OFD Sender: No OFD packet to send [10:54:44]OFD Sender: No OFD packet to send [10:54:49]OFD Sender: No OFD packet to send [10:54:54]OFD Sender: No OFD packet to send [10:54:59]OFD Sender: No OFD packet to send [10:55:04]OFD Sender: No OFD packet to send [10:55:09]OFD Sender: No OFD packet to send [10:55:14]OFD Sender: No OFD packet to send [10:55:19]OFD Sender: No OFD packet to send [10:55:24]OFD Sender: No OFD packet to send [10:55:29]OFD Sender: No OFD packet to send [10:55:34]OFD Sender: No OFD packet to send [10:55:39]OFD Sender: No OFD packet to send [10:55:44]OFD Sender: No OFD packet to send [10:55:49]OFD Sender: No OFD packet to send [10:55:54]OFD Sender: No OFD packet to send [10:55:59]OFD Sender: No OFD packet to send [10:56:04]OFD Sender: No OFD packet to send [10:56:09]OFD Sender: No OFD packet to send [10:56:14]OFD Sender: No OFD packet to send [10:56:19]OFD Sender: No OFD packet to send [10:56:24]OFD Sender: No OFD packet to send [10:56:29]OFD Sender: No OFD packet to send [10:56:34]OFD Sender: No OFD packet to send [10:56:39]OFD Sender: No OFD packet to send [10:56:44]OFD Sender: No OFD packet to send [10:56:49]OFD Sender: No OFD packet to send [10:56:54]OFD Sender: No OFD packet to send [10:56:59]OFD Sender: No OFD packet to send [10:57:04]OFD Sender: No OFD packet to send [10:57:09]OFD Sender: No OFD packet to send [10:57:14]OFD Sender: No OFD packet to send [10:57:19]OFD Sender: No OFD packet to send [10:57:24]OFD Sender: No OFD packet to send [10:57:29]OFD Sender: No OFD packet to send [10:57:34]OFD Sender: No OFD packet to send [10:57:39]OFD Sender: No OFD packet to send [10:57:44]OFD Sender: No OFD packet to send [10:57:49]OFD Sender: No OFD packet to send [10:57:54]OFD Sender: No OFD packet to send [10:57:59]OFD Sender: No OFD packet to send [10:58:04]OFD Sender: No OFD packet to send [10:58:09]OFD Sender: No OFD packet to send [10:58:14]OFD Sender: No OFD packet to send [10:58:19]OFD Sender: No OFD packet to send [10:58:24]OFD Sender: No OFD packet to send [10:58:29]OFD Sender: No OFD packet to send [10:58:34]OFD Sender: No OFD packet to send [10:58:39]OFD Sender: No OFD packet to send [10:58:44]OFD Sender: No OFD packet to send [10:58:49]OFD Sender: No OFD packet to send [10:58:54]OFD Sender: No OFD packet to send [10:58:59]OFD Sender: No OFD packet to send [10:59:04]OFD Sender: No OFD packet to send [10:59:09]OFD Sender: No OFD packet to send [10:59:14]OFD Sender: No OFD packet to send [10:59:19]OFD Sender: No OFD packet to send [10:59:24]OFD Sender: No OFD packet to send [10:59:29]OFD Sender: No OFD packet to send [10:59:34]OFD Sender: No OFD packet to send [10:59:39]OFD Sender: No OFD packet to send [10:59:44]OFD Sender: No OFD packet to send [10:59:49]OFD Sender: No OFD packet to send [10:59:54]OFD Sender: No OFD packet to send [10:59:59]OFD Sender: No OFD packet to send [11:00:04]OFD Sender: No OFD packet to send [11:00:09]OFD Sender: No OFD packet to send [11:00:10]accept exits with 9 [11:00:10]New connection [11:00:10]New thread 3066563940 created [11:00:10]Thread 3066707300 joined [11:00:10]Waiting for new connection... [11:00:10] Sock 9.Parse request [11:00:10]Sock 9.Check first char [11:00:10]Sock 9.First char is OK [11:00:10]request: POST /json_proto HTTP/1.0 [11:00:10]Method: POST [11:00:10]URL: /json_proto [11:00:10]Method is POST - this is cgi request [11:00:10]url: /json_proto [11:00:10]query_string will be loaded in cgi processing [11:00:10]execute_cgi json_proto POST (null) [11:00:10]execute_cgi path=json_proto method=POST [11:00:10]POST find Content-Length [11:00:10]Host: 172.17.58.3:8080 [11:00:10]Content-Length: 674 [11:00:10]Content-Type: application/json [11:00:10] [11:00:10]POST finish read [11:00:10]Found Content-Length = 674 [11:00:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160759", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 6.780, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:10]execute_script... [11:00: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)160759", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 6.780, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:10]POST & json_proto [11:00:10]process_json_proto [11:00:10]json parsed OK: [11:00:10]protocol is kg_v1.0 [11:00:10]action value=close_receipt [11:00:10]process_action close_receipt [11:00:10]cmd_close_receipt [11:00:10]MH_GetDate [11:00:10]Write to MH i2c: F0 00 00 43 1D 4F [11:00:10]Write i2c OK [11:00:10]MH_I2C_Read... [11:00:10]Read from MH i2c: F0 [11:00:10]MH_I2C_Read... [11:00:10]Read from MH i2c: F0 09 00 [11:00:10]MH_I2C_Read... [11:00:10]Read from MH i2c: F0 09 00 43 1D 00 BE 3C BB 66 DC E4 6D 64 04 [11:00:10]GetLastDocTimeStamp 1723545974 [11:00:10]current date 1723546814 [11:00:10]FM_GetShiftState [11:00:10]SAM_PROTO_GetShiftState [11:00:10]wFMCommunicate request_size=4 [11:00:10]MH_SAM_APDU [11:00:10]CAPDU: 80 13 01 00 [11:00:10]Write to MH i2c: E2 08 00 44 1D 80 13 01 00 00 00 00 00 DE [11:00:10]Write i2c OK [11:00:10]MH_I2C_Read... [11:00:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:10]Read from MH i2c: E2 [11:00:10]MH_I2C_Read... [11:00:10]Read from MH i2c: E2 0E 00 [11:00:10]MH_I2C_Read... [11:00:10]Read from MH i2c: E2 0E 00 44 1D 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 FC [11:00:10]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [11:00:10]wFMCommunicate OK [11:00:10]SAM_PROTO_GetShiftState done [11:00:10]FM_GetShiftState done [11:00:10]opened in 1723506770 [11:00:10]opened+sec_in_day 1723593170 [11:00:10]quantity*price = 50036 [11:00:10]sum+1 = 50037 [11:00:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 39 13.08.2024 11:00 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103128 ФПД: 248121524044709 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T110014&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103128&fm=248121524044709&tin=02508201610067®Number=0000000000092718&sum=50000 [11:00:11]StoreToDocumentArchive [11:00:11]shift 464 fd 103128 [11:00:11]save to /storage/0464/doc_00103128 [11:00:11]save last doc name /storage/0464/doc_00103128 to /storage/kkm_last_doc_name [11:00:11]save OK [11:00:11]Clear old archive folders... [11:00:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:00:11]tlvbuf is 00282010 [11:00:11]SAM_PROTO_ClearQueue [11:00:11]wFMCommunicate request_size=4 [11:00:11]MH_SAM_APDU [11:00:11]CAPDU: 80 09 00 00 [11:00:11]Write to MH i2c: E2 08 00 51 1D 80 09 00 00 00 00 00 00 E0 [11:00:11]Write i2c OK [11:00:11]MH_I2C_Read... [11:00:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:00:11]Read from MH i2c: E2 [11:00:11]MH_I2C_Read... [11:00:11]Read from MH i2c: E2 03 00 [11:00:11]MH_I2C_Read... [11:00:11]Read from MH i2c: E2 03 00 51 1D 00 90 00 E2 [11:00:11]RAPDU: 90 00 [11:00:11]wFMCommunicate OK [11:00:11]SAM_PROTO_ClearQueue done [11:00:11]KKMCreateOFDPacket [11:00:11]OFDProtocolAddRootSTLVToBuf [11:00:11]FM_MakeSignedData [11:00:11]FM_MakeSignedData [11:00:11]SAM_PROTO_SignData [11:00:11]wFMCommunicate request_size=4 [11:00:11]MH_SAM_APDU [11:00:11]CAPDU: 80 0D 01 02 [11:00:11]Write to MH i2c: E2 08 00 52 1D 80 0D 01 02 00 00 00 00 E8 [11:00:11]Write i2c OK [11:00:11]MH_I2C_Read... [11:00:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:00:11]Read from MH i2c: E2 [11:00:11]MH_I2C_Read... [11:00:11]Read from MH i2c: E2 03 00 [11:00:11]MH_I2C_Read... [11:00:11]Read from MH i2c: E2 03 00 52 1D 00 90 00 E3 [11:00:11]RAPDU: 90 00 [11:00:11]wFMCommunicate OK [11:00:11]wFMCommunicate request_size=255 [11:00:11]MH_SAM_APDU [11:00:11]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7C 1A 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 BE 3C BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 D8 92 01 00 35 04 06 00 E1 AA 4B 4D [11:00:11]Write to MH i2c: E2 02 01 53 1D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7C 1A 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 BE 3C BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 D8 92 01 00 35 04 06 00 E1 AA 4B 4D 00 00 5E [11:00:11]Write i2c OK [11:00:11]MH_I2C_Read... [11:00:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:11]Read from MH i2c: E2 [11:00:11]MH_I2C_Read... [11:00:11]Read from MH i2c: E2 03 00 [11:00:11]MH_I2C_Read... [11:00:11]Read from MH i2c: E2 03 00 53 1D 00 90 00 E4 [11:00:11]RAPDU: 90 00 [11:00:11]wFMCommunicate OK [11:00:11]wFMCommunicate request_size=7 [11:00:11]MH_SAM_APDU [11:00:11]CAPDU: 80 0D 02 02 02 43 A5 [11:00:11]Write to MH i2c: E2 0A 00 54 1D 80 0D 02 02 02 00 43 A5 00 00 D7 [11:00:11]Write i2c OK [11:00:11]MH_I2C_Read... [11:00:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:12]Read from MH i2c: E2 [11:00:12]MH_I2C_Read... [11:00:12]Read from MH i2c: E2 03 00 [11:00:12]MH_I2C_Read... [11:00:12]Read from MH i2c: E2 03 00 54 1D 00 90 00 E5 [11:00:12]RAPDU: 90 00 [11:00:12]wFMCommunicate OK [11:00:12]wFMCommunicate request_size=4 [11:00:12]MH_SAM_APDU [11:00:12]CAPDU: 80 0D 03 02 [11:00:12]Write to MH i2c: E2 08 00 55 1D 80 0D 03 02 00 00 00 00 ED [11:00:12]Write i2c OK [11:00:12]MH_I2C_Read... [11:00:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:00:12]Read from MH i2c: E2 [11:00:12]MH_I2C_Read... [11:00:12]Read from MH i2c: E2 0B 00 [11:00:12]MH_I2C_Read... [11:00:12]Read from MH i2c: E2 0B 00 55 1D 00 C8 94 41 5F A6 1A D5 B8 90 00 37 [11:00:12]RAPDU: C8 94 41 5F A6 1A D5 B8 90 00 [11:00:12]wFMCommunicate OK [11:00:12]SAM_PROTO_SignData done [11:00:12]FM_MakeSignedData done [11:00:12]CreateOFDProtocolMessage [11:00:12]wFMCommunicate request_size=4 [11:00:12]MH_SAM_APDU [11:00:12]CAPDU: 80 11 00 00 [11:00:12]Write to MH i2c: E2 08 00 56 1D 80 11 00 00 00 00 00 00 ED [11:00:12]Write i2c OK [11:00:12]MH_I2C_Read... [11:00:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:12]Read from MH i2c: E2 [11:00:12]MH_I2C_Read... [11:00:12]Read from MH i2c: E2 17 00 [11:00:12]MH_I2C_Read... [11:00:12]Read from MH i2c: E2 17 00 56 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 41 [11:00:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [11:00:12]wFMCommunicate OK [11:00:12]CreateOFDProtocolMessage done [11:00:12]OFDSenderStorePacket 103128 [11:00:12]StoreOFDPacket docnum=103128 [11:00:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 75 4D 04 01 7D AD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7C 1A 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 BE 3C BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 D8 92 01 00 35 04 06 00 E1 AA 4B 4D 43 A5 C8 94 41 5F A6 1A D5 B8 [11:00:12]CheckFolder [11:00:12]dirname=/storage/ofd_packets [11:00:12]CheckFolder done [11:00:12]ProducePacketName [11:00:12]name=ofd_packets/00103128 [11:00:12]NVStorageSaveData ofd_packets/00103128 [11:00:12]File name is /storage/ofd_packets/00103128 [11:00:12]Write 298 bytes [11:00:12]NVStorageSaveData done [11:00:12]OFDSenderStorePacket done [11:00:12]KKMCreateOFDPacket done [11:00:12]NVStorageSaveData kkm_last_timestamp [11:00:12]File name is /storage/kkm_last_timestamp [11:00:12]Write 4 bytes [11:00:12]NVStorageSaveData done [11:00:12]ExternCall_PrintAddStr [11:00:12]wPrintStart [11:00:12]Write to MH i2c: 01 00 00 57 1D 74 [11:00:12]Write i2c OK [11:00:12]MH_I2C_Read... [11:00:12]Read from MH i2c: 01 [11:00:12]MH_I2C_Read... [11:00:12]Read from MH i2c: 01 07 00 [11:00:12]MH_I2C_Read... [11:00:12]Read from MH i2c: 01 07 00 57 1D 00 00 00 00 00 FF 0F 89 [11:00:12]RasterBufferAndPrint [11:00:12]line Счет N : (1)160759 [11:00:12]line ИНН: 02508201610067 [11:00:12]line Контрольно-Кассовый Чек [11:00:12]line ПРОДАЖА [11:00:12]line ТРК (МРК, ГНК) : 13 [11:00:12]line Товар: 2710194210 [11:00:12]line ДТ-К-5 [11:00:12]line 6.780 * 73.80 [11:00:12]line = 500.36 [11:00:12]line НДС 12% НСП 1% [11:00:12]line > о реализуемом товаре [11:00:12]line ОКРУГЛЕНИЕ: -0.36 [11:00:12]line ИТОГО: 500.00 [11:00:12]line Внесено: 500.00 [11:00:12]line СДАЧА: 0.00 [11:00:12]line НСП 1% : 4.43 [11:00:12]line НДС 12% : 53.14 [11:00:12]line Наличными: 500.00 [11:00:12]line Безнал.: 0.00 [11:00:12]line Место: АЗС № 38 "Партнер Нефть" [11:00:12]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [11:00:12]line СНО: Общий режим [11:00:12]line Чек 39 13.08.2024 11:00 [11:00:12]line Смена: 464 ФФД: 1.0 [11:00:12]line ЗНМ: 0300000126 [11:00:12]line РНМ: 0000000000092718 [11:00:12]line Версия ККМ: 001 [11:00:12]line ФМ: 0000000000875058 [11:00:12]line ФД: 103128 [11:00:12]line ФПД: 248121524044709 [11:00:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T110014&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103128&fm=248121524044709&tin=02508201610067®Number=0000000000092718&sum=50000 [11:00:12]OFD Sender: Processing packet 103128 [packets to send 69, broken 68] [11:00:12]ProducePacketName [11:00:12]name=ofd_packets/00103128 [11:00:12]OFD Sender: To server: pG, [11:00:12]CommunicateWithHost lk.salyk.kg:30040 [11:00:12]ConnectInit lk.salyk.kg [11:00:12]written 0, free lines is 4095 [11:00:12]Connected sock=10 [11:00:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 75 4D 04 01 7D AD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7C 1A 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 BE 3C BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 D8 92 01 00 35 04 06 00 E1 AA 4B 4D 43 A5 C8 94 41 5F A6 1A D5 B8 [11:00:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 92 95 47 00 CE 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 D8 92 01 00 F4 03 04 00 31 E3 BA 66 B6 04 01 00 00 37 3E 27 8B 81 CD 58 90 [11:00:12]CommunicateWithHost err = 0 [11:00:12]CheckOFDResponse [11:00:12]1017 (14) - 77093643461234 [11:00:12]1041 (16) - 0000000000875058 [11:00:12]1040 (4) - 103128 [11:00:12]1012 (4) - 13.08.2024 04:38 [11:00:12]1206 (1) - 0 [11:00:12]OFD Sender: Remove packet 103128 [11:00:12]ProducePacketName [11:00:12]name=ofd_packets/00103128 [11:00:12]NVStorageDeleteData [11:00:12]Write to MH i2c: 01 00 00 82 1D 9F [11:00:12]Write i2c OK [11:00:12]MH_I2C_Read... [11:00:12]Read from MH i2c: 01 [11:00:12]MH_I2C_Read... [11:00:12]Read from MH i2c: 01 07 00 [11:00:12]MH_I2C_Read... [11:00:12]Read from MH i2c: 01 07 00 82 1D 00 00 00 00 00 DF 0C 91 [11:00:12]RasterBufferAndPrint [11:00:12]line [11:00:12]line [11:00:12]line [11:00:12]line [11:00:12]line [11:00:12]written 0, free lines is 3301 [11:00:12]MH_Cut [11:00:12]Write to MH i2c: D1 01 00 89 1D 01 78 [11:00:12]Write i2c OK [11:00:12]MH_I2C_Read... [11:00:12]Read from MH i2c: D1 [11:00:12]MH_I2C_Read... [11:00:12]Read from MH i2c: D1 01 00 [11:00:12]MH_I2C_Read... [11:00:12]Read from MH i2c: D1 01 00 89 1D 00 77 [11:00:12]Write to MH i2c: 01 00 00 8A 1D A7 [11:00:12]Write i2c OK [11:00:12]MH_I2C_Read... [11:00:13]OFD Sender: No OFD packet to send [11:00:13]*** Cut start [11:00:13]*** Purtial cut [11:00:13]*** CUTSNS_PIN = 0 [11:00:13]*** Stage 1: CUTSNS_PIN = 1 [11:00:15]Read from MH i2c: 01 [11:00:15]MH_I2C_Read... [11:00:15]*** Stop cut motor [11:00:15]*** Cut end [11:00:15]Read from MH i2c: 01 07 00 [11:00:15]MH_I2C_Read... [11:00:15]Read from MH i2c: 01 07 00 8A 1D 00 00 00 00 00 FF 0F BC [11:00:15]process_action close_receipt done [11:00:15]requested_data is exist [11:00:15]produce_requested_data [11:00:15]requested_item fm.sn is exist - process it [11:00:15]wFMCommunicate request_size=4 [11:00:15]MH_SAM_APDU [11:00:15]CAPDU: 80 11 00 00 [11:00:15]Write to MH i2c: E2 08 00 8B 1D 80 11 00 00 00 00 00 00 22 [11:00:15]Write i2c OK [11:00:15]MH_I2C_Read... [11:00:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:15]Read from MH i2c: E2 [11:00:15]MH_I2C_Read... [11:00:15]Read from MH i2c: E2 17 00 [11:00:15]MH_I2C_Read... [11:00:15]Read from MH i2c: E2 17 00 8B 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 76 [11:00:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [11:00:15]wFMCommunicate OK [11:00:15]requested_item fd.num is exist - process it [11:00:15]SAM_PROTO_GetFieldsCounters [11:00:15]wFMCommunicate request_size=4 [11:00:15]MH_SAM_APDU [11:00:15]CAPDU: 80 13 00 00 [11:00:15]Write to MH i2c: E2 08 00 8C 1D 80 13 00 00 00 00 00 00 25 [11:00:15]Write i2c OK [11:00:15]MH_I2C_Read... [11:00:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:00:15]Read from MH i2c: E2 [11:00:15]MH_I2C_Read... [11:00:15]Read from MH i2c: E2 62 00 [11:00:15]MH_I2C_Read... [11:00:15]Read from MH i2c: E2 62 00 8C 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 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 D8 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [11:00:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 D8 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:00:15]wFMCommunicate OK [11:00:15]SAM_PROTO_GetFieldsCounters done [11:00:15]requested_item shift.num is exist - process it [11:00:15]requested_item shift.opened is exist - process it [11:00:15]req_shift_opened [11:00:15]FM_GetShiftState [11:00:15]SAM_PROTO_GetShiftState [11:00:15]wFMCommunicate request_size=4 [11:00:15]MH_SAM_APDU [11:00:15]CAPDU: 80 13 01 00 [11:00:15]Write to MH i2c: E2 08 00 8D 1D 80 13 01 00 00 00 00 00 27 [11:00:15]Write i2c OK [11:00:15]MH_I2C_Read... [11:00:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:15]Read from MH i2c: E2 [11:00:15]MH_I2C_Read... [11:00:15]Read from MH i2c: E2 0E 00 [11:00:15]MH_I2C_Read... [11:00:15]Read from MH i2c: E2 0E 00 8D 1D 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 45 [11:00:15]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [11:00:15]wFMCommunicate OK [11:00:15]SAM_PROTO_GetShiftState done [11:00:15]FM_GetShiftState done [11:00:15]req_shift_opened done [11:00:15]requested_item shift.open_date is exist - process it [11:00:15]req_shift_open_date [11:00:15]req_shift_open_date done [11:00:15]produce_requested_data done [11:00:15]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103128,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [11:00:15]process_action_free close_receipt [11:00:15]json_value_free [11:00:15]json_value_free done [11:00:15]process_json_proto returns [11:00:15]Send response to host [11:00:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103128,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [11:00:15]free response buf [11:00:15]execute_script done [11:00:15]execute_script returns [11:00:15]free content buf [11:00:15]Sock 9.Close socket [11:00:15]Sock 9.Thread stoped [11:00:18]OFD Sender: No OFD packet to send [11:00:23]OFD Sender: No OFD packet to send [11:00:28]OFD Sender: No OFD packet to send [11:00:33]OFD Sender: No OFD packet to send [11:00:38]OFD Sender: No OFD packet to send [11:00:43]OFD Sender: No OFD packet to send [11:00:48]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:03]OFD Sender: No OFD packet to send [11:02:08]OFD Sender: No OFD packet to send [11:02:13]OFD Sender: No OFD packet to send [11:02:18]OFD Sender: No OFD packet to send [11:02:23]OFD Sender: No OFD packet to send [11:02:28]OFD Sender: No OFD packet to send [11:02:33]OFD Sender: No OFD packet to send [11:02:38]OFD Sender: No OFD packet to send [11:02:43]OFD Sender: No OFD packet to send [11:02:48]OFD Sender: No OFD packet to send [11:02:53]OFD Sender: No OFD packet to send [11:02:58]OFD Sender: No OFD packet to send [11:03:03]OFD Sender: No OFD packet to send [11:03:08]OFD Sender: No OFD packet to send [11:03:13]OFD Sender: No OFD packet to send [11:03:18]OFD Sender: No OFD packet to send [11:03:23]OFD Sender: No OFD packet to send [11:03:28]OFD Sender: No OFD packet to send [11:03:33]OFD Sender: No OFD packet to send [11:03:38]OFD Sender: No OFD packet to send [11:03:43]OFD Sender: No OFD packet to send [11:03:48]OFD Sender: No OFD packet to send [11:03:53]OFD Sender: No OFD packet to send [11:03:58]OFD Sender: No OFD packet to send [11:04:03]OFD Sender: No OFD packet to send [11:04:08]OFD Sender: No OFD packet to send [11:04:13]OFD Sender: No OFD packet to send [11:04:18]OFD Sender: No OFD packet to send [11:04:23]OFD Sender: No OFD packet to send [11:04:28]OFD Sender: No OFD packet to send [11:04:33]OFD Sender: No OFD packet to send [11:04:38]OFD Sender: No OFD packet to send [11:04:43]OFD Sender: No OFD packet to send [11:04:48]OFD Sender: No OFD packet to send [11:04:53]OFD Sender: No OFD packet to send [11:04:58]OFD Sender: No OFD packet to send [11:05:03]OFD Sender: No OFD packet to send [11:05:08]OFD Sender: No OFD packet to send [11:05:13]OFD Sender: No OFD packet to send [11:05:18]OFD Sender: No OFD packet to send [11:05:23]OFD Sender: No OFD packet to send [11:05:28]OFD Sender: No OFD packet to send [11:05:33]OFD Sender: No OFD packet to send [11:05:38]OFD Sender: No OFD packet to send [11:05:43]OFD Sender: No OFD packet to send [11:05:48]OFD Sender: No OFD packet to send [11:05:53]OFD Sender: No OFD packet to send [11:05:58]OFD Sender: No OFD packet to send [11:06:03]OFD Sender: No OFD packet to send [11:06:08]OFD Sender: No OFD packet to send [11:06:13]OFD Sender: No OFD packet to send [11:06:18]OFD Sender: No OFD packet to send [11:06:23]OFD Sender: No OFD packet to send [11:06:28]OFD Sender: No OFD packet to send [11:06:33]OFD Sender: No OFD packet to send [11:06:38]OFD Sender: No OFD packet to send [11:06:43]OFD Sender: No OFD packet to send [11:06:48]OFD Sender: No OFD packet to send [11:06:53]OFD Sender: No OFD packet to send [11:06:58]OFD Sender: No OFD packet to send [11:07:03]OFD Sender: No OFD packet to send [11:07:08]OFD Sender: No OFD packet to send [11:07:13]OFD Sender: No OFD packet to send [11:07:18]OFD Sender: No OFD packet to send [11:07:23]OFD Sender: No OFD packet to send [11:07:28]OFD Sender: No OFD packet to send [11:07:33]OFD Sender: No OFD packet to send [11:07:38]OFD Sender: No OFD packet to send [11:07:43]OFD Sender: No OFD packet to send [11:07:48]OFD Sender: No OFD packet to send [11:07:53]OFD Sender: No OFD packet to send [11:07:58]OFD Sender: No OFD packet to send [11:08:03]OFD Sender: No OFD packet to send [11:08:08]OFD Sender: No OFD packet to send [11:08:13]OFD Sender: No OFD packet to send [11:08:18]OFD Sender: No OFD packet to send [11:08:23]OFD Sender: No OFD packet to send [11:08:28]OFD Sender: No OFD packet to send [11:08:33]OFD Sender: No OFD packet to send [11:08:38]OFD Sender: No OFD packet to send [11:08:43]OFD Sender: No OFD packet to send [11:08:48]OFD Sender: No OFD packet to send [11:08:53]OFD Sender: No OFD packet to send [11:08:58]OFD Sender: No OFD packet to send [11:09:03]OFD Sender: No OFD packet to send [11:09:08]OFD Sender: No OFD packet to send [11:09:13]OFD Sender: No OFD packet to send [11:09:18]OFD Sender: No OFD packet to send [11:09:23]OFD Sender: No OFD packet to send [11:09:28]OFD Sender: No OFD packet to send [11:09:33]OFD Sender: No OFD packet to send [11:09:38]OFD Sender: No OFD packet to send [11:09:43]OFD Sender: No OFD packet to send [11:09:48]OFD Sender: No OFD packet to send [11:09:53]OFD Sender: No OFD packet to send [11:09:58]OFD Sender: No OFD packet to send [11:10:03]OFD Sender: No OFD packet to send [11:10:08]OFD Sender: No OFD packet to send [11:10:13]OFD Sender: No OFD packet to send [11:10:18]OFD Sender: No OFD packet to send [11:10:23]OFD Sender: No OFD packet to send [11:10:28]OFD Sender: No OFD packet to send [11:10:33]OFD Sender: No OFD packet to send [11:10:38]OFD Sender: No OFD packet to send [11:10:43]OFD Sender: No OFD packet to send [11:10:48]OFD Sender: No OFD packet to send [11:10:53]OFD Sender: No OFD packet to send [11:10:58]OFD Sender: No OFD packet to send [11:11:03]OFD Sender: No OFD packet to send [11:11:08]OFD Sender: No OFD packet to send [11:11:13]OFD Sender: No OFD packet to send [11:11:18]OFD Sender: No OFD packet to send [11:11:23]OFD Sender: No OFD packet to send [11:11:28]OFD Sender: No OFD packet to send [11:11:33]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 B6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 F2 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30515, crc_r 5823D75D, crc_c: 5823D75D, size: 52480 [00:00:10]*** [00:00:10]*** Starting fw at address 01020100 (2007E318 010246F9) [00:00:10]*** Waiting for read because exit forced [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** 10 ms more... [00:00:10]*** MH1903 init start (LINUX_LIGHT) [00:00:10]*** Serial: 3139303353513838 54000000005725B6 (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 38623912+1684923612=1723547524 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x220ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33540624 [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 B6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 F3 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30515 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 85 3F BB 66 DC E4 6D 64 75 [11:12:05]Current date/time: 13.08.2024 11:12 [11:12:05]FM_Init [11:12:05]wFMConnect [11:12:05]MH_SAM_On [11:12:05]Write to MH i2c: E0 00 00 08 00 E7 [11:12:05]Write i2c OK [11:12:05]MH_I2C_Read... [11:12:05]*** iso7816_init finished! [11:12:05]*** atr: [11:12:05]*** 0F 3B D5 18 FF 81 91 FE [11:12:05]*** 1F C3 80 73 C8 21 10 0A [11:12:05]*** 00 00 00 00 00 00 00 00 [11:12:05]*** 00 00 00 00 00 00 00 00 [11:12:05]*** 00 00 00 00 00 00 00 00 [11:12:05]*** 00 00 00 00 00 00 00 00 [11:12:05]*** 00 00 00 00 00 00 00 00 [11:12:05]*** 00 00 00 00 00 00 00 00 [11:12:05]Read from MH i2c: E0 [11:12:05]MH_I2C_Read... [11:12:05]Read from MH i2c: E0 10 00 [11:12:05]MH_I2C_Read... [11:12:05]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [11:12:05]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [11:12:05]wFMCommunicate request_size=10 [11:12:05]MH_SAM_APDU [11:12:05]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [11:12:05]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [11:12:05]Write i2c OK [11:12:05]MH_I2C_Read... [11:12:05]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [11:12:05]Read from MH i2c: E2 [11:12:05]MH_I2C_Read... [11:12:05]Read from MH i2c: E2 03 00 [11:12:05]MH_I2C_Read... [11:12:05]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [11:12:05]RAPDU: 90 00 [11:12:05]wFMCommunicate OK [11:12:05]wFMCommunicate request_size=4 [11:12:05]MH_SAM_APDU [11:12:05]CAPDU: 80 11 00 00 [11:12:05]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [11:12:05]Write i2c OK [11:12:05]MH_I2C_Read... [11:12:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:05]Read from MH i2c: E2 [11:12:05]MH_I2C_Read... [11:12:05]Read from MH i2c: E2 17 00 [11:12:05]MH_I2C_Read... [11:12:05]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 D8 [11:12:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [11:12:05]wFMCommunicate OK [11:12:05]Detected FM SN is 0000000000875058 [11:12:05]Stored FM SN is 0000000000875058 [11:12:05]wFMCommunicate request_size=9 [11:12:05]MH_SAM_APDU [11:12:05]CAPDU: 80 16 00 00 04 5C 74 00 00 [11:12:05]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 5C 74 00 00 00 00 62 [11:12:05]Write i2c OK [11:12:05]MH_I2C_Read... [11:12:05]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [11:12:05]Read from MH i2c: E2 [11:12:05]MH_I2C_Read... [11:12:05]Read from MH i2c: E2 03 00 [11:12:05]MH_I2C_Read... [11:12:05]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [11:12:05]RAPDU: 90 00 [11:12:05]wFMCommunicate OK [11:12:05]FM PIN OK [11:12:05]wFMCommunicate request_size=8 [11:12:05]MH_SAM_APDU [11:12:05]CAPDU: 80 14 04 00 03 02 00 01 [11:12:05]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [11:12:05]Write i2c OK [11:12:05]MH_I2C_Read... [11:12:05]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [11:12:05]Read from MH i2c: E2 [11:12:05]MH_I2C_Read... [11:12:05]Read from MH i2c: E2 03 00 [11:12:05]MH_I2C_Read... [11:12:05]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [11:12:05]RAPDU: 90 00 [11:12:05]wFMCommunicate OK [11:12:05]wFMCommunicate request_size=13 [11:12:05]MH_SAM_APDU [11:12:05]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [11:12:05]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [11:12:05]Write i2c OK [11:12:05]MH_I2C_Read... [11:12:05]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [11:12:05]Read from MH i2c: E2 [11:12:05]MH_I2C_Read... [11:12:05]Read from MH i2c: E2 03 00 [11:12:05]MH_I2C_Read... [11:12:05]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [11:12:05]RAPDU: 90 00 [11:12:05]wFMCommunicate OK [11:12:05]wFMCommunicate request_size=4 [11:12:05]MH_SAM_APDU [11:12:05]CAPDU: 80 11 00 00 [11:12:05]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [11:12:05]Write i2c OK [11:12:05]MH_I2C_Read... [11:12:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:05]Read from MH i2c: E2 [11:12:05]MH_I2C_Read... [11:12:05]Read from MH i2c: E2 17 00 [11:12:05]MH_I2C_Read... [11:12:05]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 DC [11:12:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [11:12:05]wFMCommunicate OK [11:12:05]DocumentArchiveInit [11:12:05]Start Httpd... [11:12:05]Httpd thread 3067116900 created [11:12:05]Write to MH i2c: 01 00 00 0F 00 0F [11:12:05]Write i2c OK [11:12:05]MH_I2C_Read... [11:12:05]Read from MH i2c: 01 [11:12:05]MH_I2C_Read... [11:12:05]Read from MH i2c: 01 07 00 [11:12:05]MH_I2C_Read... [11:12:05]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [11:12:05]MH Int Process started [11:12:05]Allocated Socket 8 [11:12:05]Bind OK [11:12:05]Listen OK [11:12:05]httpd running on port 8080 [11:12:05]Waiting for new connection... [11:12:05]OFD Sender: No OFD packet to send [11:12:10]OFD Sender: No OFD packet to send [11:12:12]accept exits with 9 [11:12:12]New connection [11:12:12]New thread 3066830180 created [11:12:12]Waiting for new connection... [11:12:12] Sock 9.Parse request [11:12:12]Sock 9.Check first char [11:12:12]Sock 9.First char is OK [11:12:12]request: POST /json_proto HTTP/1.0 [11:12:12]Method: POST [11:12:12]URL: /json_proto [11:12:12]Method is POST - this is cgi request [11:12:12]url: /json_proto [11:12:12]query_string will be loaded in cgi processing [11:12:12]execute_cgi json_proto POST (null) [11:12:12]execute_cgi path=json_proto method=POST [11:12:12]POST find Content-Length [11:12:12]Host: 172.17.58.3:8080 [11:12:12]Content-Length: 215 [11:12:12]Content-Type: application/json [11:12:12] [11:12:12]POST finish read [11:12:12]Found Content-Length = 215 [11:12:12]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" ] } } [11:12:12]execute_script... [11:12:12]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" ] } } [11:12:12]POST & json_proto [11:12:12]process_json_proto [11:12:12]json parsed OK: [11:12:12]protocol is kg_v1.0 [11:12:12]action value=get_value [11:12:12]process_action get_value [11:12:12]cmd_get_value [11:12:12]process_action get_value done [11:12:12]requested_data is exist [11:12:12]produce_requested_data [11:12:12]requested_item kkm.sn is exist - process it [11:12:12]requested_item kkm.ver is exist - process it [11:12:12]requested_item fm.sn is exist - process it [11:12:12]wFMCommunicate request_size=4 [11:12:12]MH_SAM_APDU [11:12:12]CAPDU: 80 11 00 00 [11:12:12]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [11:12:12]Write i2c OK [11:12:12]MH_I2C_Read... [11:12:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:12]Read from MH i2c: E2 [11:12:12]MH_I2C_Read... [11:12:12]Read from MH i2c: E2 17 00 [11:12:12]MH_I2C_Read... [11:12:12]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 DE [11:12:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [11:12:12]wFMCommunicate OK [11:12:12]requested_item fd.num is exist - process it [11:12:12]SAM_PROTO_GetFieldsCounters [11:12:12]wFMCommunicate request_size=4 [11:12:12]MH_SAM_APDU [11:12:12]CAPDU: 80 13 00 00 [11:12:12]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [11:12:12]Write i2c OK [11:12:12]MH_I2C_Read... [11:12:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:12:12]Read from MH i2c: E2 [11:12:12]MH_I2C_Read... [11:12:12]Read from MH i2c: E2 62 00 [11:12:12]MH_I2C_Read... [11:12:12]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 D8 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [11:12:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 D8 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:12:12]wFMCommunicate OK [11:12:12]SAM_PROTO_GetFieldsCounters done [11:12:12]requested_item shift.num is exist - process it [11:12:12]requested_item shift.opened is exist - process it [11:12:12]req_shift_opened [11:12:12]FM_GetShiftState [11:12:12]SAM_PROTO_GetShiftState [11:12:12]wFMCommunicate request_size=4 [11:12:12]MH_SAM_APDU [11:12:12]CAPDU: 80 13 01 00 [11:12:12]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [11:12:12]Write i2c OK [11:12:12]MH_I2C_Read... [11:12:12]Read from MH i2c: E2 [11:12:12]MH_I2C_Read... [11:12:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:12]Read from MH i2c: E2 0E 00 [11:12:12]MH_I2C_Read... [11:12:12]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 AD [11:12:12]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [11:12:12]wFMCommunicate OK [11:12:12]SAM_PROTO_GetShiftState done [11:12:12]FM_GetShiftState done [11:12:12]req_shift_opened done [11:12:12]requested_item shift.open_date is exist - process it [11:12:12]req_shift_open_date [11:12:12]req_shift_open_date done [11:12:12]produce_requested_data done [11:12:12]produce_requested_data return {"kkm.sn":"0300000126","kkm.ver":"001","fm.sn":"0000000000875058","fd.num":103128,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [11:12:12]process_action_free get_value [11:12:12]json_value_free [11:12:12]json_value_free done [11:12:12]process_json_proto returns [11:12:12]Send response to host [11:12:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000126","kkm.ver":"001","fm.sn":"0000000000875058","fd.num":103128,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [11:12:12]free response buf [11:12:12]execute_script done [11:12:12]execute_script returns [11:12:12]free content buf [11:12:12]Sock 9.Close socket [11:12:12]Sock 9.Thread stoped [11:12:12]accept exits with 7 [11:12:12]New connection [11:12:12]New thread 3066686820 created [11:12:12]Thread 3066830180 joined [11:12:12]Waiting for new connection... [11:12:12] Sock 7.Parse request [11:12:12]Sock 7.Check first char [11:12:12]Sock 7.First char is OK [11:12:12]request: POST /json_proto HTTP/1.0 [11:12:12]Method: POST [11:12:12]URL: /json_proto [11:12:12]Method is POST - this is cgi request [11:12:12]url: /json_proto [11:12:12]query_string will be loaded in cgi processing [11:12:12]execute_cgi json_proto POST (null) [11:12:12]execute_cgi path=json_proto method=POST [11:12:12]POST find Content-Length [11:12:12]Host: 172.17.58.3:8080 [11:12:12]Content-Length: 331 [11:12:12]Content-Type: application/json [11:12:12] [11:12:12]POST finish read [11:12:12]Found Content-Length = 331 [11:12:12]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" ] } } [11:12:12]execute_script... [11:12:12]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" ] } } [11:12:12]POST & json_proto [11:12:12]process_json_proto [11:12:12]json parsed OK: [11:12:12]protocol is kg_v1.0 [11:12:12]action value=get_value [11:12:12]process_action get_value [11:12:12]cmd_get_value [11:12:12]process_action get_value done [11:12:12]requested_data is exist [11:12:12]produce_requested_data [11:12:12]requested_item fm.sale.total is exist - process it [11:12:12]SAM_PROTO_GetFMData [11:12:12]wFMCommunicate request_size=4 [11:12:12]MH_SAM_APDU [11:12:12]CAPDU: 80 13 03 00 [11:12:12]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [11:12:12]Write i2c OK [11:12:12]MH_I2C_Read... [11:12:13]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:12:13]Read from MH i2c: E2 [11:12:13]MH_I2C_Read... [11:12:13]Read from MH i2c: E2 FD 00 [11:12:13]MH_I2C_Read... [11:12:13]Read from MH i2c: E2 FD 00 13 00 00 C8 04 85 04 C4 04 6E 04 04 00 38 8F 01 00 69 04 A3 00 6F 04 04 00 43 87 01 00 B1 04 05 00 22 95 27 89 01 70 04 05 00 40 EB 40 0B 01 72 04 04 00 E2 A9 E6 7D 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 72 DC C2 29 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 51 CF 7A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F5 07 00 00 B1 04 04 00 C8 C7 BC 12 70 04 04 00 60 B4 B0 12 72 04 03 00 68 13 0C 00 04 7C 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 EB 76 FD 01 90 00 12 [11:12:13]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 38 8F 01 00 69 04 A3 00 6F 04 04 00 43 87 01 00 B1 04 05 00 22 95 27 89 01 70 04 05 00 40 EB 40 0B 01 72 04 04 00 E2 A9 E6 7D 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 72 DC C2 29 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 51 CF 7A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F5 07 00 00 B1 04 04 00 C8 C7 BC 12 70 04 04 00 60 B4 B0 12 72 04 03 00 68 13 0C 00 04 7C 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 EB 76 FD 01 90 00 [11:12:13]wFMCommunicate OK [11:12:13]wFMCommunicate request_size=4 [11:12:13]MH_SAM_APDU [11:12:13]CAPDU: 80 17 00 00 [11:12:13]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [11:12:13]Write i2c OK [11:12:13]MH_I2C_Read... [11:12:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:12:13]Read from MH i2c: E2 [11:12:13]MH_I2C_Read... [11:12:13]Read from MH i2c: E2 FD 00 [11:12:13]MH_I2C_Read... [11:12:13]Read from MH i2c: E2 FD 00 14 00 00 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 07 74 2A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 35 [11:12:13]RAPDU: 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 07 74 2A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:12:13]wFMCommunicate OK [11:12:13]wFMCommunicate request_size=4 [11:12:13]MH_SAM_APDU [11:12:13]CAPDU: 80 17 00 00 [11:12:13]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [11:12:13]Write i2c OK [11:12:13]MH_I2C_Read... [11:12:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:12:13]Read from MH i2c: E2 [11:12:13]MH_I2C_Read... [11:12:13]Read from MH i2c: E2 FD 00 [11:12:13]MH_I2C_Read... [11:12:13]Read from MH i2c: E2 FD 00 15 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6D [11:12:13]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:12:13]wFMCommunicate OK [11:12:13]wFMCommunicate request_size=4 [11:12:13]MH_SAM_APDU [11:12:13]CAPDU: 80 17 00 00 [11:12:13]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [11:12:13]Write i2c OK [11:12:13]MH_I2C_Read... [11:12:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:12:14]Read from MH i2c: E2 [11:12:14]MH_I2C_Read... [11:12:14]Read from MH i2c: E2 FD 00 [11:12:14]MH_I2C_Read... [11:12:14]Read from MH i2c: E2 FD 00 16 00 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 0E [11:12:14]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [11:12:14]wFMCommunicate OK [11:12:14]wFMCommunicate request_size=4 [11:12:14]MH_SAM_APDU [11:12:14]CAPDU: 80 17 00 00 [11:12:14]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [11:12:14]Write i2c OK [11:12:14]MH_I2C_Read... [11:12:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [11:12:14]Read from MH i2c: E2 [11:12:14]MH_I2C_Read... [11:12:14]Read from MH i2c: E2 E5 00 [11:12:14]MH_I2C_Read... [11:12:14]Read from MH i2c: E2 E5 00 17 00 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7B [11:12:14]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [11:12:14]wFMCommunicate OK [11:12:14]SAM_PROTO_GetFMData done [11:12:14]requested_item fm.sale_refund.total is exist - process it [11:12:14]requested_item fm.buy.total is exist - process it [11:12:14]requested_item shift.sale.total is exist - process it [11:12:14]SAM_PROTO_GetShiftData [11:12:14]wFMCommunicate request_size=4 [11:12:14]MH_SAM_APDU [11:12:14]CAPDU: 80 13 02 00 [11:12:14]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [11:12:14]Write i2c OK [11:12:14]MH_I2C_Read... [11:12:14]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [11:12:14]Read from MH i2c: E2 [11:12:14]MH_I2C_Read... [11:12:14]Read from MH i2c: E2 FD 00 [11:12:14]MH_I2C_Read... [11:12:14]Read from MH i2c: E2 FD 00 18 00 00 B3 04 AA 04 AF 04 6E 04 04 00 27 00 00 00 69 04 98 00 6F 04 04 00 26 00 00 00 B1 04 03 00 20 B2 32 70 04 03 00 20 B2 32 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 CA 62 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E4 72 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 30 75 70 04 02 00 30 75 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 77 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 90 00 23 [11:12:14]RAPDU: B3 04 AA 04 AF 04 6E 04 04 00 27 00 00 00 69 04 98 00 6F 04 04 00 26 00 00 00 B1 04 03 00 20 B2 32 70 04 03 00 20 B2 32 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 CA 62 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E4 72 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 30 75 70 04 02 00 30 75 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 77 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 90 00 [11:12:14]wFMCommunicate OK [11:12:14]wFMCommunicate request_size=4 [11:12:14]MH_SAM_APDU [11:12:14]CAPDU: 80 17 00 00 [11:12:14]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [11:12:14]Write i2c OK [11:12:14]MH_I2C_Read... [11:12:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:12:15]Read from MH i2c: E2 [11:12:15]MH_I2C_Read... [11:12:15]Read from MH i2c: E2 FD 00 [11:12:15]MH_I2C_Read... [11:12:15]Read from MH i2c: E2 FD 00 19 00 00 00 01 F7 03 02 00 0A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 90 00 CA [11:12:15]RAPDU: 00 01 F7 03 02 00 0A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 90 00 [11:12:15]wFMCommunicate OK [11:12:15]wFMCommunicate request_size=4 [11:12:15]MH_SAM_APDU [11:12:15]CAPDU: 80 17 00 00 [11:12:15]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [11:12:15]Write i2c OK [11:12:15]MH_I2C_Read... [11:12:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:12:15]Read from MH i2c: E2 [11:12:15]MH_I2C_Read... [11:12:15]Read from MH i2c: E2 FD 00 [11:12:15]MH_I2C_Read... [11:12:15]Read from MH i2c: E2 FD 00 1A 00 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 47 [11:12:15]RAPDU: F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:12:15]wFMCommunicate OK [11:12:15]wFMCommunicate request_size=4 [11:12:15]MH_SAM_APDU [11:12:15]CAPDU: 80 17 00 00 [11:12:15]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [11:12:15]Write i2c OK [11:12:15]MH_I2C_Read... [11:12:15]OFD Sender: No OFD packet to send [11:12:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:12:15]Read from MH i2c: E2 [11:12:15]MH_I2C_Read... [11:12:15]Read from MH i2c: E2 FD 00 [11:12:15]MH_I2C_Read... [11:12:15]Read from MH i2c: E2 FD 00 1B 00 00 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 90 00 10 [11:12:15]RAPDU: 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 90 00 [11:12:15]wFMCommunicate OK [11:12:15]wFMCommunicate request_size=4 [11:12:15]MH_SAM_APDU [11:12:15]CAPDU: 80 17 00 00 [11:12:15]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [11:12:15]Write i2c OK [11:12:15]MH_I2C_Read... [11:12:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 205! [11:12:15]Read from MH i2c: E2 [11:12:15]MH_I2C_Read... [11:12:15]Read from MH i2c: E2 D0 00 [11:12:15]MH_I2C_Read... [11:12:15]Read from MH i2c: E2 D0 00 1C 00 00 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 87 [11:12:16]RAPDU: 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [11:12:16]wFMCommunicate OK [11:12:16]SAM_PROTO_GetShiftData done [11:12:16]requested_item shift.sale.total_cash is exist - process it [11:12:16]requested_item shift.sale_refund.total is exist - process it [11:12:16]requested_item shift.sale_refund.total_cash is exist - process it [11:12:16]requested_item shift.buy.total is exist - process it [11:12:16]requested_item shift.buy.total_cash is exist - process it [11:12:16]produce_requested_data done [11:12:16]produce_requested_data return {"fm.sale.total":65960399.70,"fm.sale_refund.total":3143618.00,"fm.buy.total":0.00,"shift.sale.total":33224.00,"shift.sale.total_cash":33224.00,"shift.sale_refund.total":300.00,"shift.sale_refund.total_cash":300.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [11:12:16]process_action_free get_value [11:12:16]json_value_free [11:12:16]json_value_free done [11:12:16]process_json_proto returns [11:12:16]Send response to host [11:12:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":65960399.70,"fm.sale_refund.total":3143618.00,"fm.buy.total":0.00,"shift.sale.total":33224.00,"shift.sale.total_cash":33224.00,"shift.sale_refund.total":300.00,"shift.sale_refund.total_cash":300.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [11:12:16]free response buf [11:12:16]execute_script done [11:12:16]execute_script returns [11:12:16]free content buf [11:12:16]Sock 7.Close socket [11:12:16]Sock 7.Thread stoped [11:12:20]OFD Sender: No OFD packet to send [11:12:25]OFD Sender: No OFD packet to send [11:12:30]OFD Sender: No OFD packet to send [11:12:35]OFD Sender: No OFD packet to send [11:12:40]OFD Sender: No OFD packet to send [11:12:41]accept exits with 9 [11:12:41]New connection [11:12:41]New thread 3066830180 created [11:12:41]Thread 3066686820 joined [11:12:41]Waiting for new connection... [11:12:41] Sock 9.Parse request [11:12:41]Sock 9.Check first char [11:12:41]Sock 9.First char is OK [11:12:41]request: POST /json_proto HTTP/1.0 [11:12:41]Method: POST [11:12:41]URL: /json_proto [11:12:41]Method is POST - this is cgi request [11:12:41]url: /json_proto [11:12:41]query_string will be loaded in cgi processing [11:12:41]execute_cgi json_proto POST (null) [11:12:41]execute_cgi path=json_proto method=POST [11:12:41]POST find Content-Length [11:12:41]Host: 172.17.58.3:8080 [11:12:41]Content-Length: 673 [11:12:41]Content-Type: application/json [11:12:41] [11:12:41]POST finish read [11:12:41]Found Content-Length = 673 [11:12:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160760", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 1.360, "sum" : 100.37, "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" ] } } [11:12:41]execute_script... [11:12: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)160760", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 1.360, "sum" : 100.37, "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" ] } } [11:12:41]POST & json_proto [11:12:41]process_json_proto [11:12:41]json parsed OK: [11:12:41]protocol is kg_v1.0 [11:12:41]action value=close_receipt [11:12:41]process_action close_receipt [11:12:41]cmd_close_receipt [11:12:41]MH_GetDate [11:12:41]Write to MH i2c: F0 00 00 1D 00 0C [11:12:41]Write i2c OK [11:12:41]MH_I2C_Read... [11:12:41]Read from MH i2c: F0 [11:12:41]MH_I2C_Read... [11:12:41]Read from MH i2c: F0 09 00 [11:12:41]MH_I2C_Read... [11:12:41]Read from MH i2c: F0 09 00 1D 00 00 A9 3F BB 66 DC E4 6D 64 AF [11:12:41]GetLastDocTimeStamp 1723546814 [11:12:41]current date 1723547561 [11:12:41]FM_GetShiftState [11:12:41]SAM_PROTO_GetShiftState [11:12:41]wFMCommunicate request_size=4 [11:12:41]MH_SAM_APDU [11:12:41]CAPDU: 80 13 01 00 [11:12:41]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [11:12:41]Write i2c OK [11:12:41]MH_I2C_Read... [11:12:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:41]Read from MH i2c: E2 [11:12:41]MH_I2C_Read... [11:12:41]Read from MH i2c: E2 0E 00 [11:12:41]MH_I2C_Read... [11:12:41]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 B9 [11:12:41]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [11:12:41]wFMCommunicate OK [11:12:41]SAM_PROTO_GetShiftState done [11:12:41]FM_GetShiftState done [11:12:41]opened in 1723506770 [11:12:41]opened+sec_in_day 1723593170 [11:12:41]quantity*price = 10036 [11:12:41]sum+1 = 10038 [11:12:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 40 13.08.2024 11:12 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103129 ФПД: 223058706147 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T111241&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103129&fm=223058706147&tin=02508201610067®Number=0000000000092718&sum=10000 [11:12:42]StoreToDocumentArchive [11:12:42]shift 464 fd 103129 [11:12:42]save to /storage/0464/doc_00103129 [11:12:42]save last doc name /storage/0464/doc_00103129 to /storage/kkm_last_doc_name [11:12:42]save OK [11:12:42]Clear old archive folders... [11:12:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:12:42]tlvbuf is 01509A40 [11:12:42]SAM_PROTO_ClearQueue [11:12:42]wFMCommunicate request_size=4 [11:12:42]MH_SAM_APDU [11:12:42]CAPDU: 80 09 00 00 [11:12:42]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [11:12:42]Write i2c OK [11:12:42]MH_I2C_Read... [11:12:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:12:42]Read from MH i2c: E2 [11:12:42]MH_I2C_Read... [11:12:42]Read from MH i2c: E2 03 00 [11:12:42]MH_I2C_Read... [11:12:42]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [11:12:42]RAPDU: 90 00 [11:12:42]wFMCommunicate OK [11:12:42]SAM_PROTO_ClearQueue done [11:12:42]KKMCreateOFDPacket [11:12:42]OFDProtocolAddRootSTLVToBuf [11:12:42]FM_MakeSignedData [11:12:42]FM_MakeSignedData [11:12:42]SAM_PROTO_SignData [11:12:42]wFMCommunicate request_size=4 [11:12:42]MH_SAM_APDU [11:12:42]CAPDU: 80 0D 01 02 [11:12:42]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [11:12:42]Write i2c OK [11:12:42]MH_I2C_Read... [11:12:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:12:42]Read from MH i2c: E2 [11:12:42]MH_I2C_Read... [11:12:42]Read from MH i2c: E2 03 00 [11:12:42]MH_I2C_Read... [11:12:42]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [11:12:42]RAPDU: 90 00 [11:12:42]wFMCommunicate OK [11:12:42]wFMCommunicate request_size=255 [11:12:42]MH_SAM_APDU [11:12:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 05 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 35 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 28 00 00 00 F4 03 04 00 A9 3F BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 D9 92 01 00 35 04 06 00 00 33 EF 55 [11:12:42]Write to MH i2c: E2 02 01 2D 00 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 50 05 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 35 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 28 00 00 00 F4 03 04 00 A9 3F BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 D9 92 01 00 35 04 06 00 00 33 EF 55 00 00 80 [11:12:42]Write i2c OK [11:12:42]MH_I2C_Read... [11:12:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:43]Read from MH i2c: E2 [11:12:43]MH_I2C_Read... [11:12:43]Read from MH i2c: E2 03 00 [11:12:43]MH_I2C_Read... [11:12:43]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [11:12:43]RAPDU: 90 00 [11:12:43]wFMCommunicate OK [11:12:43]wFMCommunicate request_size=7 [11:12:43]MH_SAM_APDU [11:12:43]CAPDU: 80 0D 02 02 02 BE E3 [11:12:43]Write to MH i2c: E2 0A 00 2E 00 80 0D 02 02 02 00 BE E3 00 00 4D [11:12:43]Write i2c OK [11:12:43]MH_I2C_Read... [11:12:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:43]Read from MH i2c: E2 [11:12:43]MH_I2C_Read... [11:12:43]Read from MH i2c: E2 03 00 [11:12:43]MH_I2C_Read... [11:12:43]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [11:12:43]RAPDU: 90 00 [11:12:43]wFMCommunicate OK [11:12:43]wFMCommunicate request_size=4 [11:12:43]MH_SAM_APDU [11:12:43]CAPDU: 80 0D 03 02 [11:12:43]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [11:12:43]Write i2c OK [11:12:43]MH_I2C_Read... [11:12:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:12:43]Read from MH i2c: E2 [11:12:43]MH_I2C_Read... [11:12:43]Read from MH i2c: E2 0B 00 [11:12:43]MH_I2C_Read... [11:12:43]Read from MH i2c: E2 0B 00 2F 00 00 CC D4 05 8B 79 B7 2E E7 90 00 20 [11:12:43]RAPDU: CC D4 05 8B 79 B7 2E E7 90 00 [11:12:43]wFMCommunicate OK [11:12:43]SAM_PROTO_SignData done [11:12:43]FM_MakeSignedData done [11:12:43]CreateOFDProtocolMessage [11:12:43]wFMCommunicate request_size=4 [11:12:43]MH_SAM_APDU [11:12:43]CAPDU: 80 11 00 00 [11:12:43]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [11:12:43]Write i2c OK [11:12:43]MH_I2C_Read... [11:12:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:43]Read from MH i2c: E2 [11:12:43]MH_I2C_Read... [11:12:43]Read from MH i2c: E2 17 00 [11:12:43]MH_I2C_Read... [11:12:43]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 FE [11:12:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [11:12:43]wFMCommunicate OK [11:12:43]CreateOFDProtocolMessage done [11:12:43]OFDSenderStorePacket 103129 [11:12:43]StoreOFDPacket docnum=103129 [11:12:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 67 81 04 01 3A 82 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 05 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 35 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 28 00 00 00 F4 03 04 00 A9 3F BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 D9 92 01 00 35 04 06 00 00 33 EF 55 BE E3 CC D4 05 8B 79 B7 2E E7 [11:12:43]CheckFolder [11:12:43]dirname=/storage/ofd_packets [11:12:43]CheckFolder done [11:12:43]ProducePacketName [11:12:43]name=ofd_packets/00103129 [11:12:43]NVStorageSaveData ofd_packets/00103129 [11:12:43]File name is /storage/ofd_packets/00103129 [11:12:43]Write 298 bytes [11:12:43]NVStorageSaveData done [11:12:43]OFDSenderStorePacket done [11:12:43]KKMCreateOFDPacket done [11:12:43]NVStorageSaveData kkm_last_timestamp [11:12:43]File name is /storage/kkm_last_timestamp [11:12:43]Write 4 bytes [11:12:43]NVStorageSaveData done [11:12:43]ExternCall_PrintAddStr [11:12:43]wPrintStart [11:12:43]Write to MH i2c: 01 00 00 31 00 31 [11:12:43]Write i2c OK [11:12:43]MH_I2C_Read... [11:12:43]Read from MH i2c: 01 [11:12:43]MH_I2C_Read... [11:12:43]Read from MH i2c: 01 07 00 [11:12:43]MH_I2C_Read... [11:12:43]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [11:12:43]RasterBufferAndPrint [11:12:43]line Счет N : (1)160760 [11:12:43]line ИНН: 02508201610067 [11:12:43]line Контрольно-Кассовый Чек [11:12:43]line ПРОДАЖА [11:12:43]line ТРК (МРК, ГНК) : 1 [11:12:43]line Товар: 2710194210 [11:12:43]line ДТ-К-5 [11:12:43]line 1.360 * 73.80 [11:12:43]line = 100.37 [11:12:43]line НДС 12% НСП 1% [11:12:43]line > о реализуемом товаре [11:12:43]line ОКРУГЛЕНИЕ: -0.37 [11:12:43]line ИТОГО: 100.00 [11:12:43]line Внесено: 100.00 [11:12:43]line СДАЧА: 0.00 [11:12:43]line НСП 1% : 0.89 [11:12:43]line НДС 12% : 10.66 [11:12:43]line Наличными: 100.00 [11:12:43]line Безнал.: 0.00 [11:12:43]line Место: АЗС № 38 "Партнер Нефть" [11:12:43]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [11:12:43]line СНО: Общий режим [11:12:43]line Чек 40 13.08.2024 11:12 [11:12:43]line Смена: 464 ФФД: 1.0 [11:12:43]line ЗНМ: 0300000126 [11:12:43]line РНМ: 0000000000092718 [11:12:43]line Версия ККМ: 001 [11:12:43]line ФМ: 0000000000875058 [11:12:43]line ФД: 103129 [11:12:43]line ФПД: 223058706147 [11:12:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T111241&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103129&fm=223058706147&tin=02508201610067®Number=0000000000092718&sum=10000 [11:12:43]OFD Sender: Processing packet 103129 [packets to send 69, broken 68] [11:12:43]ProducePacketName [11:12:43]name=ofd_packets/00103129 [11:12:43]OFD Sender: To server: pG, [11:12:43]CommunicateWithHost lk.salyk.kg:30040 [11:12:43]ConnectInit lk.salyk.kg [11:12:43]written 0, free lines is 4095 [11:12:43]Connected sock=10 [11:12:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 67 81 04 01 3A 82 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 05 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 35 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 28 00 00 00 F4 03 04 00 A9 3F BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 D9 92 01 00 35 04 06 00 00 33 EF 55 BE E3 CC D4 05 8B 79 B7 2E E7 [11:12:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 5C 67 47 00 FD 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 35 30 35 38 10 04 04 00 D9 92 01 00 F4 03 04 00 1C E6 BA 66 B6 04 01 00 00 DA BF C4 A8 1F 1B 8C F6 [11:12:43]CommunicateWithHost err = 0 [11:12:43]CheckOFDResponse [11:12:43]1017 (14) - 77093643461234 [11:12:43]1041 (16) - 0000000000875058 [11:12:43]1040 (4) - 103129 [11:12:43]1012 (4) - 13.08.2024 04:50 [11:12:43]1206 (1) - 0 [11:12:43]OFD Sender: Remove packet 103129 [11:12:43]ProducePacketName [11:12:43]name=ofd_packets/00103129 [11:12:43]NVStorageDeleteData [11:12:44]Write to MH i2c: 01 00 00 5C 00 5C [11:12:44]Write i2c OK [11:12:44]MH_I2C_Read... [11:12:44]Read from MH i2c: 01 [11:12:44]MH_I2C_Read... [11:12:44]Read from MH i2c: 01 07 00 [11:12:44]MH_I2C_Read... [11:12:44]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 DF 0C 4E [11:12:44]RasterBufferAndPrint [11:12:44]line [11:12:44]line [11:12:44]line [11:12:44]line [11:12:44]line [11:12:44]written 0, free lines is 3301 [11:12:44]MH_Cut [11:12:44]Write to MH i2c: D1 01 00 63 00 01 35 [11:12:44]Write i2c OK [11:12:44]MH_I2C_Read... [11:12:44]Read from MH i2c: D1 [11:12:44]MH_I2C_Read... [11:12:44]Read from MH i2c: D1 01 00 [11:12:44]MH_I2C_Read... [11:12:44]Read from MH i2c: D1 01 00 63 00 00 34 [11:12:44]Write to MH i2c: 01 00 00 64 00 64 [11:12:44]Write i2c OK [11:12:44]MH_I2C_Read... [11:12:44]OFD Sender: No OFD packet to send [11:12:44]*** Cut start [11:12:44]*** Purtial cut [11:12:44]*** Stage 1: CUTSNS_PIN = 1 [11:12:45]Read from MH i2c: 01 [11:12:45]MH_I2C_Read... [11:12:45]*** Stop cut motor [11:12:45]*** Cut end [11:12:45]Read from MH i2c: 01 07 00 [11:12:45]MH_I2C_Read... [11:12:45]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [11:12:45]process_action close_receipt done [11:12:45]requested_data is exist [11:12:45]produce_requested_data [11:12:45]requested_item fm.sn is exist - process it [11:12:45]wFMCommunicate request_size=4 [11:12:45]MH_SAM_APDU [11:12:45]CAPDU: 80 11 00 00 [11:12:45]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [11:12:45]Write i2c OK [11:12:45]MH_I2C_Read... [11:12:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:45]Read from MH i2c: E2 [11:12:45]MH_I2C_Read... [11:12:45]Read from MH i2c: E2 17 00 [11:12:45]MH_I2C_Read... [11:12:45]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 33 [11:12:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [11:12:45]wFMCommunicate OK [11:12:45]requested_item fd.num is exist - process it [11:12:45]SAM_PROTO_GetFieldsCounters [11:12:45]wFMCommunicate request_size=4 [11:12:45]MH_SAM_APDU [11:12:45]CAPDU: 80 13 00 00 [11:12:45]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [11:12:45]Write i2c OK [11:12:45]MH_I2C_Read... [11:12:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:12:45]Read from MH i2c: E2 [11:12:45]MH_I2C_Read... [11:12:45]Read from MH i2c: E2 62 00 [11:12:45]MH_I2C_Read... [11:12:45]Read from MH i2c: E2 62 00 66 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 D9 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [11:12:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 D9 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:12:45]wFMCommunicate OK [11:12:45]SAM_PROTO_GetFieldsCounters done [11:12:45]requested_item shift.num is exist - process it [11:12:45]requested_item shift.opened is exist - process it [11:12:45]req_shift_opened [11:12:45]FM_GetShiftState [11:12:45]SAM_PROTO_GetShiftState [11:12:45]wFMCommunicate request_size=4 [11:12:45]MH_SAM_APDU [11:12:45]CAPDU: 80 13 01 00 [11:12:45]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [11:12:45]Write i2c OK [11:12:45]MH_I2C_Read... [11:12:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:45]Read from MH i2c: E2 [11:12:45]MH_I2C_Read... [11:12:45]Read from MH i2c: E2 0E 00 [11:12:45]MH_I2C_Read... [11:12:45]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 02 [11:12:45]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [11:12:45]wFMCommunicate OK [11:12:45]SAM_PROTO_GetShiftState done [11:12:45]FM_GetShiftState done [11:12:45]req_shift_opened done [11:12:45]requested_item shift.open_date is exist - process it [11:12:45]req_shift_open_date [11:12:45]req_shift_open_date done [11:12:45]produce_requested_data done [11:12:45]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103129,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [11:12:45]process_action_free close_receipt [11:12:45]json_value_free [11:12:45]json_value_free done [11:12:45]process_json_proto returns [11:12:45]Send response to host [11:12:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103129,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [11:12:45]free response buf [11:12:45]execute_script done [11:12:45]execute_script returns [11:12:45]free content buf [11:12:45]Sock 9.Close socket [11:12:45]Sock 9.Thread stoped [11:12:48]accept exits with 7 [11:12:48]New connection [11:12:48]New thread 3066686820 created [11:12:48]Thread 3066830180 joined [11:12:48]Waiting for new connection... [11:12:48] Sock 7.Parse request [11:12:48]Sock 7.Check first char [11:12:48]Sock 7.First char is OK [11:12:48]request: POST /json_proto HTTP/1.0 [11:12:48]Method: POST [11:12:48]URL: /json_proto [11:12:48]Method is POST - this is cgi request [11:12:48]url: /json_proto [11:12:48]query_string will be loaded in cgi processing [11:12:48]execute_cgi json_proto POST (null) [11:12:48]execute_cgi path=json_proto method=POST [11:12:48]POST find Content-Length [11:12:48]Host: 172.17.58.3:8080 [11:12:48]Content-Length: 730 [11:12:48]Content-Type: application/json [11:12:48] [11:12:48]POST finish read [11:12:48]Found Content-Length = 730 [11:12:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 103129, "base_FM": "0000000000875058", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160760", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 1.360, "sum" : 100.37, "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" ] } } [11:12:48]execute_script... [11:12:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 103129, "base_FM": "0000000000875058", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160760", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 1.360, "sum" : 100.37, "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" ] } } [11:12:48]POST & json_proto [11:12:48]process_json_proto [11:12:48]json parsed OK: [11:12:48]protocol is kg_v1.0 [11:12:48]action value=close_receipt [11:12:48]process_action close_receipt [11:12:48]cmd_close_receipt [11:12:48]MH_GetDate [11:12:48]Write to MH i2c: F0 00 00 68 00 57 [11:12:48]Write i2c OK [11:12:48]MH_I2C_Read... [11:12:48]Read from MH i2c: F0 [11:12:48]MH_I2C_Read... [11:12:48]Read from MH i2c: F0 09 00 [11:12:48]MH_I2C_Read... [11:12:48]Read from MH i2c: F0 09 00 68 00 00 B1 3F BB 66 DC E4 6D 64 02 [11:12:48]GetLastDocTimeStamp 1723547561 [11:12:48]current date 1723547569 [11:12:48]FM_GetShiftState [11:12:48]SAM_PROTO_GetShiftState [11:12:48]wFMCommunicate request_size=4 [11:12:48]MH_SAM_APDU [11:12:48]CAPDU: 80 13 01 00 [11:12:48]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [11:12:48]Write i2c OK [11:12:48]MH_I2C_Read... [11:12:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:48]Read from MH i2c: E2 [11:12:48]MH_I2C_Read... [11:12:48]Read from MH i2c: E2 0E 00 [11:12:48]MH_I2C_Read... [11:12:48]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 04 [11:12:48]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [11:12:48]wFMCommunicate OK [11:12:48]SAM_PROTO_GetShiftState done [11:12:48]FM_GetShiftState done [11:12:48]opened in 1723506770 [11:12:48]opened+sec_in_day 1723593170 [11:12:48]quantity*price = 10036 [11:12:48]sum+1 = 10038 [11:12:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 100.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 41 13.08.2024 11:12 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФД осн.: 103129 ФМ осн.: 0000000000875058 ФМ: 0000000000875058 ФД: 103130 ФПД: 170382124412656 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T111249&type=2&operation_type=1&fn_number=0000000000875058&fd_number=103130&fm=170382124412656&tin=02508201610067®Number=0000000000092718&sum=10000 [11:12:50]StoreToDocumentArchive [11:12:50]shift 464 fd 103130 [11:12:50]save to /storage/0464/doc_00103130 [11:12:50]save last doc name /storage/0464/doc_00103130 to /storage/kkm_last_doc_name [11:12:50]save OK [11:12:50]Clear old archive folders... [11:12:50]ProcessDocumentItem done err = 0, tmpTLVsize=276 [11:12:50]tlvbuf is 01539900 [11:12:50]SAM_PROTO_ClearQueue [11:12:50]wFMCommunicate request_size=4 [11:12:50]MH_SAM_APDU [11:12:50]CAPDU: 80 09 00 00 [11:12:50]Write to MH i2c: E2 08 00 78 00 80 09 00 00 00 00 00 00 EA [11:12:50]Write i2c OK [11:12:50]MH_I2C_Read... [11:12:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:12:50]Read from MH i2c: E2 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: E2 03 00 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [11:12:50]RAPDU: 90 00 [11:12:50]wFMCommunicate OK [11:12:50]SAM_PROTO_ClearQueue done [11:12:50]KKMCreateOFDPacket [11:12:50]OFDProtocolAddRootSTLVToBuf [11:12:50]FM_MakeSignedData [11:12:50]FM_MakeSignedData [11:12:50]SAM_PROTO_SignData [11:12:50]wFMCommunicate request_size=4 [11:12:50]MH_SAM_APDU [11:12:50]CAPDU: 80 0D 01 02 [11:12:50]Write to MH i2c: E2 08 00 79 00 80 0D 01 02 00 00 00 00 F2 [11:12:50]Write i2c OK [11:12:50]MH_I2C_Read... [11:12:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:12:50]Read from MH i2c: E2 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: E2 03 00 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [11:12:50]RAPDU: 90 00 [11:12:50]wFMCommunicate OK [11:12:50]wFMCommunicate request_size=255 [11:12:50]MH_SAM_APDU [11:12:50]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 05 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 35 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 29 00 00 00 F4 03 04 00 B1 3F BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 27 04 04 00 D9 92 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 11 04 10 00 30 30 30 30 [11:12:50]Write to MH i2c: E2 02 01 7A 00 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 05 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 35 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 29 00 00 00 F4 03 04 00 B1 3F BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 27 04 04 00 D9 92 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 11 04 10 00 30 30 30 30 00 00 51 [11:12:50]Write i2c OK [11:12:50]MH_I2C_Read... [11:12:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:50]Read from MH i2c: E2 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: E2 03 00 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: E2 03 00 7A 00 00 90 00 EE [11:12:50]RAPDU: 90 00 [11:12:50]wFMCommunicate OK [11:12:50]wFMCommunicate request_size=35 [11:12:50]MH_SAM_APDU [11:12:50]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 DA 92 01 00 35 04 06 00 9A F6 2E 00 6E F0 [11:12:50]Write to MH i2c: E2 26 00 7B 00 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 DA 92 01 00 35 04 06 00 9A F6 2E 00 6E F0 00 00 72 [11:12:50]Write i2c OK [11:12:50]MH_I2C_Read... [11:12:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:50]Read from MH i2c: E2 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: E2 03 00 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: E2 03 00 7B 00 00 90 00 EF [11:12:50]RAPDU: 90 00 [11:12:50]wFMCommunicate OK [11:12:50]wFMCommunicate request_size=4 [11:12:50]MH_SAM_APDU [11:12:50]CAPDU: 80 0D 03 02 [11:12:50]Write to MH i2c: E2 08 00 7C 00 80 0D 03 02 00 00 00 00 F7 [11:12:50]Write i2c OK [11:12:50]MH_I2C_Read... [11:12:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:12:50]Read from MH i2c: E2 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: E2 0B 00 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: E2 0B 00 7C 00 00 D2 04 66 04 CE D0 48 5D 90 00 7B [11:12:50]RAPDU: D2 04 66 04 CE D0 48 5D 90 00 [11:12:50]wFMCommunicate OK [11:12:50]SAM_PROTO_SignData done [11:12:50]FM_MakeSignedData done [11:12:50]CreateOFDProtocolMessage [11:12:50]wFMCommunicate request_size=4 [11:12:50]MH_SAM_APDU [11:12:50]CAPDU: 80 11 00 00 [11:12:50]Write to MH i2c: E2 08 00 7D 00 80 11 00 00 00 00 00 00 F7 [11:12:50]Write i2c OK [11:12:50]MH_I2C_Read... [11:12:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:50]Read from MH i2c: E2 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: E2 17 00 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: E2 17 00 7D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 4B [11:12:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [11:12:50]wFMCommunicate OK [11:12:50]CreateOFDProtocolMessage done [11:12:50]OFDSenderStorePacket 103130 [11:12:50]StoreOFDPacket docnum=103130 [11:12:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 28 01 00 00 9A 2C 20 01 60 24 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 05 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 35 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 29 00 00 00 F4 03 04 00 B1 3F BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 27 04 04 00 D9 92 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 DA 92 01 00 35 04 06 00 9A F6 2E 00 6E F0 D2 04 66 04 CE D0 48 5D [11:12:50]CheckFolder [11:12:50]dirname=/storage/ofd_packets [11:12:50]CheckFolder done [11:12:50]ProducePacketName [11:12:50]name=ofd_packets/00103130 [11:12:50]NVStorageSaveData ofd_packets/00103130 [11:12:50]File name is /storage/ofd_packets/00103130 [11:12:50]Write 326 bytes [11:12:50]NVStorageSaveData done [11:12:50]OFDSenderStorePacket done [11:12:50]KKMCreateOFDPacket done [11:12:50]NVStorageSaveData kkm_last_timestamp [11:12:50]File name is /storage/kkm_last_timestamp [11:12:50]Write 4 bytes [11:12:50]NVStorageSaveData done [11:12:50]ExternCall_PrintAddStr [11:12:50]wPrintStart [11:12:50]Write to MH i2c: 01 00 00 7E 00 7E [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 7E 00 00 00 00 00 00 FF 0F 93 [11:12:50]RasterBufferAndPrint [11:12:50]line Счет N : (1)160760 [11:12:50]line ИНН: 02508201610067 [11:12:50]line Контрольно-Кассовый Чек [11:12:50]line ВОЗВРАТ ПРОДАЖИ [11:12:50]line ТРК (МРК, ГНК) : 1 [11:12:50]line Товар: 2710194210 [11:12:50]line ДТ-К-5 [11:12:50]line 1.360 * 73.80 [11:12:50]line = 100.37 [11:12:50]line НДС 12% НСП 1% [11:12:50]line > о реализуемом товаре [11:12:50]line ОКРУГЛЕНИЕ: -0.37 [11:12:50]line ИТОГО: 100.00 [11:12:50]line НСП 1% : 0.89 [11:12:50]line НДС 12% : 10.66 [11:12:50]line Наличными: 100.00 [11:12:50]line Безнал.: 0.00 [11:12:50]line Место: АЗС № 38 "Партнер Нефть" [11:12:50]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [11:12:50]line СНО: Общий режим [11:12:50]line Чек 41 13.08.2024 11:12 [11:12:50]line Смена: 464 ФФД: 1.0 [11:12:50]line ЗНМ: 0300000126 [11:12:50]line РНМ: 0000000000092718 [11:12:50]line Версия ККМ: 001 [11:12:50]line ФД осн.: 103129 [11:12:50]line ФМ осн.: 0000000000875058 [11:12:50]line ФМ: 0000000000875058 [11:12:50]line ФД: 103130 [11:12:50]line ФПД: 170382124412656 [11:12:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T111249&type=2&operation_type=1&fn_number=0000000000875058&fd_number=103130&fm=170382124412656&tin=02508201610067®Number=0000000000092718&sum=10000 [11:12:50]written 0, free lines is 4095 [11:12:50]OFD Sender: Processing packet 103130 [packets to send 69, broken 68] [11:12:50]ProducePacketName [11:12:50]name=ofd_packets/00103130 [11:12:50]OFD Sender: To server: pG, [11:12:50]CommunicateWithHost lk.salyk.kg:30040 [11:12:50]ConnectInit lk.salyk.kg [11:12:51]Connected sock=10 [11:12:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 28 01 00 00 9A 2C 20 01 60 24 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 05 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 35 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 29 00 00 00 F4 03 04 00 B1 3F BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 27 04 04 00 D9 92 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 DA 92 01 00 35 04 06 00 9A F6 2E 00 6E F0 D2 04 66 04 CE D0 48 5D [11:12:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 D3 95 47 00 9A 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 DA 92 01 00 F4 03 04 00 24 E6 BA 66 B6 04 01 00 00 3A 7A 76 75 48 71 17 47 [11:12:51]CommunicateWithHost err = 0 [11:12:51]CheckOFDResponse [11:12:51]1017 (14) - 77093643461234 [11:12:51]1041 (16) - 0000000000875058 [11:12:51]1040 (4) - 103130 [11:12:51]1012 (4) - 13.08.2024 04:50 [11:12:51]1206 (1) - 0 [11:12:51]OFD Sender: Remove packet 103130 [11:12:51]ProducePacketName [11:12:51]name=ofd_packets/00103130 [11:12:51]NVStorageDeleteData [11:12:51]Write to MH i2c: 01 00 00 A9 00 A9 [11:12:51]Write i2c OK [11:12:51]MH_I2C_Read... [11:12:51]Read from MH i2c: 01 [11:12:51]MH_I2C_Read... [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 A9 00 00 00 00 00 00 EA 0C A6 [11:12:51]RasterBufferAndPrint [11:12:51]line [11:12:51]line [11:12:51]line [11:12:51]line [11:12:51]line [11:12:51]written 0, free lines is 3321 [11:12:51]MH_Cut [11:12:51]Write to MH i2c: D1 01 00 B0 00 01 82 [11:12:51]Write i2c OK [11:12:51]MH_I2C_Read... [11:12:51]Read from MH i2c: D1 [11:12:51]MH_I2C_Read... [11:12:51]Read from MH i2c: D1 01 00 [11:12:51]MH_I2C_Read... [11:12:51]Read from MH i2c: D1 01 00 B0 00 00 81 [11:12:51]Write to MH i2c: 01 00 00 B1 00 B1 [11:12:51]Write i2c OK [11:12:51]MH_I2C_Read... [11:12:51]OFD Sender: No OFD packet to send [11:12:52]*** Cut start [11:12:52]*** Purtial cut [11:12:52]*** CUTSNS_PIN = 0 [11:12:52]*** Stage 1: CUTSNS_PIN = 1 [11:12:54]Read from MH i2c: 01 [11:12:54]MH_I2C_Read... [11:12:54]*** Stop cut motor [11:12:54]*** Cut end [11:12:54]Read from MH i2c: 01 07 00 [11:12:54]MH_I2C_Read... [11:12:54]Read from MH i2c: 01 07 00 B1 00 00 00 00 00 00 FF 0F C6 [11:12:54]process_action close_receipt done [11:12:54]requested_data is exist [11:12:54]produce_requested_data [11:12:54]requested_item fm.sn is exist - process it [11:12:54]wFMCommunicate request_size=4 [11:12:54]MH_SAM_APDU [11:12:54]CAPDU: 80 11 00 00 [11:12:54]Write to MH i2c: E2 08 00 B2 00 80 11 00 00 00 00 00 00 2C [11:12:54]Write i2c OK [11:12:54]MH_I2C_Read... [11:12:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:54]Read from MH i2c: E2 [11:12:54]MH_I2C_Read... [11:12:54]Read from MH i2c: E2 17 00 [11:12:54]MH_I2C_Read... [11:12:54]Read from MH i2c: E2 17 00 B2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 80 [11:12:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [11:12:54]wFMCommunicate OK [11:12:54]requested_item fd.num is exist - process it [11:12:54]SAM_PROTO_GetFieldsCounters [11:12:54]wFMCommunicate request_size=4 [11:12:54]MH_SAM_APDU [11:12:54]CAPDU: 80 13 00 00 [11:12:54]Write to MH i2c: E2 08 00 B3 00 80 13 00 00 00 00 00 00 2F [11:12:54]Write i2c OK [11:12:54]MH_I2C_Read... [11:12:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:12:54]Read from MH i2c: E2 [11:12:54]MH_I2C_Read... [11:12:54]Read from MH i2c: E2 62 00 [11:12:54]MH_I2C_Read... [11:12:54]Read from MH i2c: E2 62 00 B3 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 DA 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [11:12:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 DA 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:12:54]wFMCommunicate OK [11:12:54]SAM_PROTO_GetFieldsCounters done [11:12:54]requested_item shift.num is exist - process it [11:12:54]requested_item shift.opened is exist - process it [11:12:54]req_shift_opened [11:12:54]FM_GetShiftState [11:12:54]SAM_PROTO_GetShiftState [11:12:54]wFMCommunicate request_size=4 [11:12:54]MH_SAM_APDU [11:12:54]CAPDU: 80 13 01 00 [11:12:54]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [11:12:54]Write i2c OK [11:12:54]MH_I2C_Read... [11:12:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:54]Read from MH i2c: E2 [11:12:54]MH_I2C_Read... [11:12:54]Read from MH i2c: E2 0E 00 [11:12:54]MH_I2C_Read... [11:12:54]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 4F [11:12:54]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [11:12:54]wFMCommunicate OK [11:12:54]SAM_PROTO_GetShiftState done [11:12:54]FM_GetShiftState done [11:12:54]req_shift_opened done [11:12:54]requested_item shift.open_date is exist - process it [11:12:54]req_shift_open_date [11:12:54]req_shift_open_date done [11:12:54]produce_requested_data done [11:12:54]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103130,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [11:12:54]process_action_free close_receipt [11:12:54]json_value_free [11:12:54]json_value_free done [11:12:54]process_json_proto returns [11:12:54]Send response to host [11:12:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103130,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [11:12:54]free response buf [11:12:54]execute_script done [11:12:54]execute_script returns [11:12:54]free content buf [11:12:54]Sock 7.Close socket [11:12:54]Sock 7.Thread stoped [11:12:56]OFD Sender: No OFD packet to send [11:13:01]OFD Sender: No OFD packet to send [11:13:06]OFD Sender: No OFD packet to send [11:13:11]OFD Sender: No OFD packet to send [11:13:16]OFD Sender: No OFD packet to send [11:13:21]OFD Sender: No OFD packet to send [11:13:26]OFD Sender: No OFD packet to send [11:13:31]OFD Sender: No OFD packet to send [11:13:36]OFD Sender: No OFD packet to send [11:13:41]OFD Sender: No OFD packet to send [11:13:46]OFD Sender: No OFD packet to send [11:13:51]OFD Sender: No OFD packet to send [11:13:56]OFD Sender: No OFD packet to send [11:14:01]OFD Sender: No OFD packet to send [11:14:06]OFD Sender: No OFD packet to send [11:14:11]OFD Sender: No OFD packet to send [11:14:16]OFD Sender: No OFD packet to send [11:14:21]OFD Sender: No OFD packet to send [11:14:26]OFD Sender: No OFD packet to send [11:14:31]OFD Sender: No OFD packet to send [11:14:36]OFD Sender: No OFD packet to send [11:14:41]OFD Sender: No OFD packet to send [11:14:46]OFD Sender: No OFD packet to send [11:14:51]OFD Sender: No OFD packet to send [11:14:56]OFD Sender: No OFD packet to send [11:15:01]OFD Sender: No OFD packet to send [11:15:06]OFD Sender: No OFD packet to send [11:15:11]OFD Sender: No OFD packet to send [11:15:16]OFD Sender: No OFD packet to send [11:15:21]OFD Sender: No OFD packet to send [11:15:26]OFD Sender: No OFD packet to send [11:15:31]OFD Sender: No OFD packet to send [11:15:36]OFD Sender: No OFD packet to send [11:15:42]OFD Sender: No OFD packet to send [11:15:47]OFD Sender: No OFD packet to send [11:15:52]OFD Sender: No OFD packet to send [11:15:57]OFD Sender: No OFD packet to send [11:16:02]OFD Sender: No OFD packet to send [11:16:07]OFD Sender: No OFD packet to send [11:16:12]OFD Sender: No OFD packet to send [11:16:17]OFD Sender: No OFD packet to send [11:16:22]OFD Sender: No OFD packet to send [11:16:27]OFD Sender: No OFD packet to send [11:16:32]OFD Sender: No OFD packet to send [11:16:37]OFD Sender: No OFD packet to send [11:16:42]OFD Sender: No OFD packet to send [11:16:47]OFD Sender: No OFD packet to send [11:16:52]OFD Sender: No OFD packet to send [11:16:57]OFD Sender: No OFD packet to send [11:17:02]OFD Sender: No OFD packet to send [11:17:07]OFD Sender: No OFD packet to send [11:17:12]OFD Sender: No OFD packet to send [11:17:17]OFD Sender: No OFD packet to send [11:17:22]OFD Sender: No OFD packet to send [11:17:27]OFD Sender: No OFD packet to send [11:17:32]OFD Sender: No OFD packet to send [11:17:37]OFD Sender: No OFD packet to send [11:17:42]OFD Sender: No OFD packet to send [11:17:47]OFD Sender: No OFD packet to send [11:17:52]OFD Sender: No OFD packet to send [11:17:57]OFD Sender: No OFD packet to send [11:18:02]OFD Sender: No OFD packet to send [11:18:07]OFD Sender: No OFD packet to send [11:18:12]OFD Sender: No OFD packet to send [11:18:17]OFD Sender: No OFD packet to send [11:18:22]OFD Sender: No OFD packet to send [11:18:27]OFD Sender: No OFD packet to send [11:18:32]OFD Sender: No OFD packet to send [11:18:37]OFD Sender: No OFD packet to send [11:18:42]OFD Sender: No OFD packet to send [11:18:47]OFD Sender: No OFD packet to send [11:18:52]OFD Sender: No OFD packet to send [11:18:57]OFD Sender: No OFD packet to send [11:19:02]OFD Sender: No OFD packet to send [11:19:07]OFD Sender: No OFD packet to send [11:19:12]OFD Sender: No OFD packet to send [11:19:17]OFD Sender: No OFD packet to send [11:19:22]OFD Sender: No OFD packet to send [11:19:27]OFD Sender: No OFD packet to send [11:19:32]OFD Sender: No OFD packet to send [11:19:37]OFD Sender: No OFD packet to send [11:19:42]OFD Sender: No OFD packet to send [11:19:47]OFD Sender: No OFD packet to send [11:19:52]OFD Sender: No OFD packet to send [11:19:57]OFD Sender: No OFD packet to send [11:20:02]OFD Sender: No OFD packet to send [11:20:07]OFD Sender: No OFD packet to send [11:20:12]OFD Sender: No OFD packet to send [11:20:17]OFD Sender: No OFD packet to send [11:20:22]OFD Sender: No OFD packet to send [11:20:27]OFD Sender: No OFD packet to send [11:20:32]OFD Sender: No OFD packet to send [11:20:37]OFD Sender: No OFD packet to send [11:20:42]OFD Sender: No OFD packet to send [11:20:47]OFD Sender: No OFD packet to send [11:20:52]OFD Sender: No OFD packet to send [11:20:57]OFD Sender: No OFD packet to send [11:21:02]OFD Sender: No OFD packet to send [11:21:07]OFD Sender: No OFD packet to send [11:21:12]OFD Sender: No OFD packet to send [11:21:17]OFD Sender: No OFD packet to send [11:21:22]OFD Sender: No OFD packet to send [11:21:27]OFD Sender: No OFD packet to send [11:21:32]OFD Sender: No OFD packet to send [11:21:37]OFD Sender: No OFD packet to send [11:21:42]OFD Sender: No OFD packet to send [11:21:47]OFD Sender: No OFD packet to send [11:21:52]OFD Sender: No OFD packet to send [11:21:57]OFD Sender: No OFD packet to send [11:22:02]OFD Sender: No OFD packet to send [11:22:07]OFD Sender: No OFD packet to send [11:22:12]OFD Sender: No OFD packet to send [11:22:17]OFD Sender: No OFD packet to send [11:22:22]OFD Sender: No OFD packet to send [11:22:27]OFD Sender: No OFD packet to send [11:22:32]OFD Sender: No OFD packet to send [11:22:37]OFD Sender: No OFD packet to send [11:22:42]OFD Sender: No OFD packet to send [11:22:47]OFD Sender: No OFD packet to send [11:22:52]OFD Sender: No OFD packet to send [11:22:57]OFD Sender: No OFD packet to send [11:23:02]OFD Sender: No OFD packet to send [11:23:07]OFD Sender: No OFD packet to send [11:23:12]OFD Sender: No OFD packet to send [11:23:17]OFD Sender: No OFD packet to send [11:23:22]OFD Sender: No OFD packet to send [11:23:27]OFD Sender: No OFD packet to send [11:23:32]OFD Sender: No OFD packet to send [11:23:37]OFD Sender: No OFD packet to send [11:23:42]OFD Sender: No OFD packet to send [11:23:47]OFD Sender: No OFD packet to send [11:23:52]OFD Sender: No OFD packet to send [11:23:57]OFD Sender: No OFD packet to send [11:24:02]OFD Sender: No OFD packet to send [11:24:07]OFD Sender: No OFD packet to send [11:24:12]OFD Sender: No OFD packet to send [11:24:17]OFD Sender: No OFD packet to send [11:24:22]OFD Sender: No OFD packet to send [11:24:27]OFD Sender: No OFD packet to send [11:24:32]OFD Sender: No OFD packet to send [11:24:37]OFD Sender: No OFD packet to send [11:24:42]OFD Sender: No OFD packet to send [11:24:47]OFD Sender: No OFD packet to send [11:24:52]OFD Sender: No OFD packet to send [11:24:57]OFD Sender: No OFD packet to send [11:25:02]OFD Sender: No OFD packet to send [11:25:07]OFD Sender: No OFD packet to send [11:25:12]OFD Sender: No OFD packet to send [11:25:17]OFD Sender: No OFD packet to send [11:25:22]OFD Sender: No OFD packet to send [11:25:27]OFD Sender: No OFD packet to send [11:25:32]OFD Sender: No OFD packet to send [11:25:37]OFD Sender: No OFD packet to send [11:25:42]OFD Sender: No OFD packet to send [11:25:47]OFD Sender: No OFD packet to send [11:25:52]OFD Sender: No OFD packet to send [11:25:57]OFD Sender: No OFD packet to send [11:26:02]OFD Sender: No OFD packet to send [11:26:07]OFD Sender: No OFD packet to send [11:26:12]OFD Sender: No OFD packet to send [11:26:17]OFD Sender: No OFD packet to send [11:26:21]accept exits with 9 [11:26:21]New connection [11:26:21]New thread 3066830180 created [11:26:21]Thread 3066686820 joined [11:26:21]Waiting for new connection... [11:26:21] Sock 9.Parse request [11:26:21]Sock 9.Check first char [11:26:21]Sock 9.First char is OK [11:26:21]request: POST /json_proto HTTP/1.0 [11:26:21]Method: POST [11:26:21]URL: /json_proto [11:26:21]Method is POST - this is cgi request [11:26:21]url: /json_proto [11:26:21]query_string will be loaded in cgi processing [11:26:21]execute_cgi json_proto POST (null) [11:26:21]execute_cgi path=json_proto method=POST [11:26:21]POST find Content-Length [11:26:21]Host: 172.17.58.3:8080 [11:26:21]Content-Length: 674 [11:26:21]Content-Type: application/json [11:26:21] [11:26:21]POST finish read [11:26:21]Found Content-Length = 674 [11:26:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160761", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 9.490, "sum" : 700.36, "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:26:21]execute_script... [11:26: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)160761", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 9.490, "sum" : 700.36, "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:26:21]POST & json_proto [11:26:21]process_json_proto [11:26:21]json parsed OK: [11:26:21]protocol is kg_v1.0 [11:26:21]action value=close_receipt [11:26:21]process_action close_receipt [11:26:21]cmd_close_receipt [11:26:21]MH_GetDate [11:26:21]Write to MH i2c: F0 00 00 B5 00 A4 [11:26:21]Write i2c OK [11:26:21]MH_I2C_Read... [11:26:21]Read from MH i2c: F0 [11:26:21]MH_I2C_Read... [11:26:21]Read from MH i2c: F0 09 00 [11:26:21]MH_I2C_Read... [11:26:21]Read from MH i2c: F0 09 00 B5 00 00 DD 42 BB 66 DC E4 6D 64 7E [11:26:21]GetLastDocTimeStamp 1723547569 [11:26:21]current date 1723548381 [11:26:21]FM_GetShiftState [11:26:21]SAM_PROTO_GetShiftState [11:26:21]wFMCommunicate request_size=4 [11:26:21]MH_SAM_APDU [11:26:21]CAPDU: 80 13 01 00 [11:26:21]Write to MH i2c: E2 08 00 B6 00 80 13 01 00 00 00 00 00 33 [11:26:21]Write i2c OK [11:26:21]MH_I2C_Read... [11:26:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:21]Read from MH i2c: E2 [11:26:21]MH_I2C_Read... [11:26:21]Read from MH i2c: E2 0E 00 [11:26:21]MH_I2C_Read... [11:26:21]Read from MH i2c: E2 0E 00 B6 00 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 51 [11:26:21]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [11:26:21]wFMCommunicate OK [11:26:21]SAM_PROTO_GetShiftState done [11:26:21]FM_GetShiftState done [11:26:21]opened in 1723506770 [11:26:21]opened+sec_in_day 1723593170 [11:26:21]quantity*price = 70036 [11:26:21]sum+1 = 70037 [11:26:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 42 13.08.2024 11:26 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103131 ФПД: 199713343255395 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T112621&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103131&fm=199713343255395&tin=02508201610067®Number=0000000000092718&sum=70000 [11:26:22]StoreToDocumentArchive [11:26:22]shift 464 fd 103131 [11:26:22]save to /storage/0464/doc_00103131 [11:26:22]save last doc name /storage/0464/doc_00103131 to /storage/kkm_last_doc_name [11:26:22]save OK [11:26:22]Clear old archive folders... [11:26:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:26:22]tlvbuf is 014F6FB0 [11:26:22]SAM_PROTO_ClearQueue [11:26:22]wFMCommunicate request_size=4 [11:26:22]MH_SAM_APDU [11:26:22]CAPDU: 80 09 00 00 [11:26:22]Write to MH i2c: E2 08 00 C3 00 80 09 00 00 00 00 00 00 35 [11:26:22]Write i2c OK [11:26:22]MH_I2C_Read... [11:26:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:26:22]Read from MH i2c: E2 [11:26:22]MH_I2C_Read... [11:26:22]Read from MH i2c: E2 03 00 [11:26:22]MH_I2C_Read... [11:26:22]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [11:26:22]RAPDU: 90 00 [11:26:22]wFMCommunicate OK [11:26:22]SAM_PROTO_ClearQueue done [11:26:22]KKMCreateOFDPacket [11:26:22]OFDProtocolAddRootSTLVToBuf [11:26:22]FM_MakeSignedData [11:26:22]FM_MakeSignedData [11:26:22]SAM_PROTO_SignData [11:26:22]wFMCommunicate request_size=4 [11:26:22]MH_SAM_APDU [11:26:22]CAPDU: 80 0D 01 02 [11:26:22]Write to MH i2c: E2 08 00 C4 00 80 0D 01 02 00 00 00 00 3D [11:26:22]Write i2c OK [11:26:22]MH_I2C_Read... [11:26:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:26:22]Read from MH i2c: E2 [11:26:22]MH_I2C_Read... [11:26:22]Read from MH i2c: E2 03 00 [11:26:22]MH_I2C_Read... [11:26:22]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [11:26:22]RAPDU: 90 00 [11:26:22]wFMCommunicate OK [11:26:22]wFMCommunicate request_size=255 [11:26:22]MH_SAM_APDU [11:26:22]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 12 25 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 94 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 2A 00 00 00 F4 03 04 00 DD 42 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 DB 92 01 00 35 04 06 00 B5 A3 62 E1 [11:26:22]Write to MH i2c: E2 02 01 C5 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 12 25 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 94 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 2A 00 00 00 F4 03 04 00 DD 42 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 DB 92 01 00 35 04 06 00 B5 A3 62 E1 00 00 4A [11:26:22]Write i2c OK [11:26:22]MH_I2C_Read... [11:26:22]OFD Sender: No OFD packet to send [11:26:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:22]Read from MH i2c: E2 [11:26:22]MH_I2C_Read... [11:26:22]Read from MH i2c: E2 03 00 [11:26:22]MH_I2C_Read... [11:26:22]Read from MH i2c: E2 03 00 C5 00 00 90 00 39 [11:26:22]RAPDU: 90 00 [11:26:22]wFMCommunicate OK [11:26:22]wFMCommunicate request_size=7 [11:26:22]MH_SAM_APDU [11:26:22]CAPDU: 80 0D 02 02 02 B3 63 [11:26:22]Write to MH i2c: E2 0A 00 C6 00 80 0D 02 02 02 00 B3 63 00 00 5A [11:26:22]Write i2c OK [11:26:22]MH_I2C_Read... [11:26:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:22]Read from MH i2c: E2 [11:26:22]MH_I2C_Read... [11:26:22]Read from MH i2c: E2 03 00 [11:26:22]MH_I2C_Read... [11:26:22]Read from MH i2c: E2 03 00 C6 00 00 90 00 3A [11:26:22]RAPDU: 90 00 [11:26:22]wFMCommunicate OK [11:26:22]wFMCommunicate request_size=4 [11:26:22]MH_SAM_APDU [11:26:22]CAPDU: 80 0D 03 02 [11:26:22]Write to MH i2c: E2 08 00 C7 00 80 0D 03 02 00 00 00 00 42 [11:26:22]Write i2c OK [11:26:22]MH_I2C_Read... [11:26:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:26:22]Read from MH i2c: E2 [11:26:22]MH_I2C_Read... [11:26:22]Read from MH i2c: E2 0B 00 [11:26:22]MH_I2C_Read... [11:26:22]Read from MH i2c: E2 0B 00 C7 00 00 30 B2 17 78 99 63 D1 45 90 00 C6 [11:26:22]RAPDU: 30 B2 17 78 99 63 D1 45 90 00 [11:26:22]wFMCommunicate OK [11:26:22]SAM_PROTO_SignData done [11:26:22]FM_MakeSignedData done [11:26:22]CreateOFDProtocolMessage [11:26:22]wFMCommunicate request_size=4 [11:26:22]MH_SAM_APDU [11:26:22]CAPDU: 80 11 00 00 [11:26:22]Write to MH i2c: E2 08 00 C8 00 80 11 00 00 00 00 00 00 42 [11:26:22]Write i2c OK [11:26:22]MH_I2C_Read... [11:26:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:22]Read from MH i2c: E2 [11:26:22]MH_I2C_Read... [11:26:22]Read from MH i2c: E2 17 00 [11:26:22]MH_I2C_Read... [11:26:22]Read from MH i2c: E2 17 00 C8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 96 [11:26:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [11:26:22]wFMCommunicate OK [11:26:22]CreateOFDProtocolMessage done [11:26:22]OFDSenderStorePacket 103131 [11:26:22]StoreOFDPacket docnum=103131 [11:26:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 CD D8 04 01 D8 59 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 12 25 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 94 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 2A 00 00 00 F4 03 04 00 DD 42 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 DB 92 01 00 35 04 06 00 B5 A3 62 E1 B3 63 30 B2 17 78 99 63 D1 45 [11:26:22]CheckFolder [11:26:22]dirname=/storage/ofd_packets [11:26:22]CheckFolder done [11:26:22]ProducePacketName [11:26:22]name=ofd_packets/00103131 [11:26:22]NVStorageSaveData ofd_packets/00103131 [11:26:22]File name is /storage/ofd_packets/00103131 [11:26:22]Write 298 bytes [11:26:22]NVStorageSaveData done [11:26:22]OFDSenderStorePacket done [11:26:22]KKMCreateOFDPacket done [11:26:22]NVStorageSaveData kkm_last_timestamp [11:26:22]File name is /storage/kkm_last_timestamp [11:26:22]Write 4 bytes [11:26:22]NVStorageSaveData done [11:26:22]ExternCall_PrintAddStr [11:26:22]wPrintStart [11:26:22]Write to MH i2c: 01 00 00 C9 00 C9 [11:26:22]Write i2c OK [11:26:22]MH_I2C_Read... [11:26:22]Read from MH i2c: 01 [11:26:22]MH_I2C_Read... [11:26:22]Read from MH i2c: 01 07 00 [11:26:22]MH_I2C_Read... [11:26:22]Read from MH i2c: 01 07 00 C9 00 00 00 00 00 00 FF 0F DE [11:26:22]RasterBufferAndPrint [11:26:22]line Счет N : (1)160761 [11:26:22]line ИНН: 02508201610067 [11:26:22]line Контрольно-Кассовый Чек [11:26:22]line ПРОДАЖА [11:26:22]line ТРК (МРК, ГНК) : 13 [11:26:22]line Товар: 2710194210 [11:26:22]line ДТ-К-5 [11:26:22]line 9.490 * 73.80 [11:26:22]line = 700.36 [11:26:22]line НДС 12% НСП 1% [11:26:22]line > о реализуемом товаре [11:26:22]line ОКРУГЛЕНИЕ: -0.36 [11:26:22]line ИТОГО: 700.00 [11:26:22]line Внесено: 700.00 [11:26:22]line СДАЧА: 0.00 [11:26:22]line НСП 1% : 6.20 [11:26:22]line НДС 12% : 74.37 [11:26:22]line Наличными: 700.00 [11:26:22]line Безнал.: 0.00 [11:26:22]line Место: АЗС № 38 "Партнер Нефть" [11:26:22]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [11:26:22]line СНО: Общий режим [11:26:22]line Чек 42 13.08.2024 11:26 [11:26:22]line Смена: 464 ФФД: 1.0 [11:26:22]line ЗНМ: 0300000126 [11:26:22]line РНМ: 0000000000092718 [11:26:22]line Версия ККМ: 001 [11:26:22]line ФМ: 0000000000875058 [11:26:22]line ФД: 103131 [11:26:22]line ФПД: 199713343255395 [11:26:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T112621&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103131&fm=199713343255395&tin=02508201610067®Number=0000000000092718&sum=70000 [11:26:23]OFD Sender: Processing packet 103131 [packets to send 69, broken 68] [11:26:23]ProducePacketName [11:26:23]name=ofd_packets/00103131 [11:26:23]OFD Sender: To server: pG, [11:26:23]CommunicateWithHost lk.salyk.kg:30040 [11:26:23]ConnectInit lk.salyk.kg [11:26:23]written 0, free lines is 4095 [11:26:23]Connected sock=10 [11:26:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 CD D8 04 01 D8 59 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 12 25 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 94 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 2A 00 00 00 F4 03 04 00 DD 42 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 DB 92 01 00 35 04 06 00 B5 A3 62 E1 B3 63 30 B2 17 78 99 63 D1 45 [11:26:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 CC A2 47 00 AC 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 35 30 35 38 10 04 04 00 DB 92 01 00 F4 03 04 00 50 E9 BA 66 B6 04 01 00 00 1B 86 2F 89 C2 95 1E 2F [11:26:23]CommunicateWithHost err = 0 [11:26:23]CheckOFDResponse [11:26:23]1017 (14) - 77093643461234 [11:26:23]1041 (16) - 0000000000875058 [11:26:23]1040 (4) - 103131 [11:26:23]1012 (4) - 13.08.2024 05:04 [11:26:23]1206 (1) - 0 [11:26:23]OFD Sender: Remove packet 103131 [11:26:23]ProducePacketName [11:26:23]name=ofd_packets/00103131 [11:26:23]NVStorageDeleteData [11:26:23]Write to MH i2c: 01 00 00 F4 00 F4 [11:26:23]Write i2c OK [11:26:23]MH_I2C_Read... [11:26:23]Read from MH i2c: 01 [11:26:23]MH_I2C_Read... [11:26:23]Read from MH i2c: 01 07 00 [11:26:23]MH_I2C_Read... [11:26:23]Read from MH i2c: 01 07 00 F4 00 00 00 00 00 00 DF 0C E6 [11:26:23]RasterBufferAndPrint [11:26:23]line [11:26:23]line [11:26:23]line [11:26:23]line [11:26:23]line [11:26:23]written 0, free lines is 3301 [11:26:23]MH_Cut [11:26:23]Write to MH i2c: D1 01 00 FB 00 01 CD [11:26:23]Write i2c OK [11:26:23]MH_I2C_Read... [11:26:23]Read from MH i2c: D1 [11:26:23]MH_I2C_Read... [11:26:23]Read from MH i2c: D1 01 00 [11:26:23]MH_I2C_Read... [11:26:23]Read from MH i2c: D1 01 00 FB 00 00 CC [11:26:23]Write to MH i2c: 01 00 00 FC 00 FC [11:26:23]Write i2c OK [11:26:23]MH_I2C_Read... [11:26:24]OFD Sender: No OFD packet to send [11:26:24]*** Cut start [11:26:24]*** Purtial cut [11:26:24]*** Stage 1: CUTSNS_PIN = 1 [11:26:24]Read from MH i2c: 01 [11:26:24]MH_I2C_Read... [11:26:24]*** Stop cut motor [11:26:24]*** Cut end [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 FC 00 00 00 00 00 00 FF 0F 11 [11:26:24]process_action close_receipt done [11:26:24]requested_data is exist [11:26:24]produce_requested_data [11:26:24]requested_item fm.sn is exist - process it [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 FD 00 80 11 00 00 00 00 00 00 77 [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 FD 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 CB [11:26:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [11:26:24]wFMCommunicate OK [11:26:24]requested_item fd.num is exist - process it [11:26:24]SAM_PROTO_GetFieldsCounters [11:26:24]wFMCommunicate request_size=4 [11:26:24]MH_SAM_APDU [11:26:24]CAPDU: 80 13 00 00 [11:26:24]Write to MH i2c: E2 08 00 FE 00 80 13 00 00 00 00 00 00 7A [11:26:24]Write i2c OK [11:26:24]MH_I2C_Read... [11:26:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:25]Read from MH i2c: E2 [11:26:25]MH_I2C_Read... [11:26:25]Read from MH i2c: E2 62 00 [11:26:25]MH_I2C_Read... [11:26:25]Read from MH i2c: E2 62 00 FE 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 DB 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [11:26:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 DB 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:26:25]wFMCommunicate OK [11:26:25]SAM_PROTO_GetFieldsCounters done [11:26:25]requested_item shift.num is exist - process it [11:26:25]requested_item shift.opened is exist - process it [11:26:25]req_shift_opened [11:26:25]FM_GetShiftState [11:26:25]SAM_PROTO_GetShiftState [11:26:25]wFMCommunicate request_size=4 [11:26:25]MH_SAM_APDU [11:26:25]CAPDU: 80 13 01 00 [11:26:25]Write to MH i2c: E2 08 00 FF 00 80 13 01 00 00 00 00 00 7C [11:26:25]Write i2c OK [11:26:25]MH_I2C_Read... [11:26:25]Read from MH i2c: E2 [11:26:25]MH_I2C_Read... [11:26:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:25]Read from MH i2c: E2 0E 00 [11:26:25]MH_I2C_Read... [11:26:25]Read from MH i2c: E2 0E 00 FF 00 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 9A [11:26:25]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [11:26:25]wFMCommunicate OK [11:26:25]SAM_PROTO_GetShiftState done [11:26:25]FM_GetShiftState done [11:26:25]req_shift_opened done [11:26:25]requested_item shift.open_date is exist - process it [11:26:25]req_shift_open_date [11:26:25]req_shift_open_date done [11:26:25]produce_requested_data done [11:26:25]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103131,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [11:26:25]process_action_free close_receipt [11:26:25]json_value_free [11:26:25]json_value_free done [11:26:25]process_json_proto returns [11:26:25]Send response to host [11:26:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103131,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [11:26:25]free response buf [11:26:25]execute_script done [11:26:25]execute_script returns [11:26:25]free content buf [11:26:25]Sock 9.Close socket [11:26:25]Sock 9.Thread stoped [11:26:29]OFD Sender: No OFD packet to send [11:26:34]OFD Sender: No OFD packet to send [11:26:39]OFD Sender: No OFD packet to send [11:26:44]OFD Sender: No OFD packet to send [11:26:49]OFD Sender: No OFD packet to send [11:26:54]OFD Sender: No OFD packet to send [11:26:59]OFD Sender: No OFD packet to send [11:27:04]OFD Sender: No OFD packet to send [11:27:09]OFD Sender: No OFD packet to send [11:27:14]OFD Sender: No OFD packet to send [11:27:19]OFD Sender: No OFD packet to send [11:27:24]OFD Sender: No OFD packet to send [11:27:29]OFD Sender: No OFD packet to send [11:27:34]OFD Sender: No OFD packet to send [11:27:39]OFD Sender: No OFD packet to send [11:27:44]OFD Sender: No OFD packet to send [11:27:49]OFD Sender: No OFD packet to send [11:27:54]OFD Sender: No OFD packet to send [11:27:59]OFD Sender: No OFD packet to send [11:28:04]OFD Sender: No OFD packet to send [11:28:09]OFD Sender: No OFD packet to send [11:28:14]OFD Sender: No OFD packet to send [11:28:19]OFD Sender: No OFD packet to send [11:28:24]OFD Sender: No OFD packet to send [11:28:29]OFD Sender: No OFD packet to send [11:28:34]OFD Sender: No OFD packet to send [11:28:39]OFD Sender: No OFD packet to send [11:28:44]OFD Sender: No OFD packet to send [11:28:49]OFD Sender: No OFD packet to send [11:28:54]OFD Sender: No OFD packet to send [11:28:59]OFD Sender: No OFD packet to send [11:29:04]OFD Sender: No OFD packet to send [11:29:09]OFD Sender: No OFD packet to send [11:29:14]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:29:59]accept exits with 7 [11:29:59]New connection [11:29:59]New thread 3066686820 created [11:29:59]Thread 3066830180 joined [11:29:59]Waiting for new connection... [11:29:59] Sock 7.Parse request [11:29:59]Sock 7.Check first char [11:29:59]Sock 7.First char is OK [11:29:59]request: POST /json_proto HTTP/1.0 [11:29:59]Method: POST [11:29:59]URL: /json_proto [11:29:59]Method is POST - this is cgi request [11:29:59]url: /json_proto [11:29:59]query_string will be loaded in cgi processing [11:29:59]execute_cgi json_proto POST (null) [11:29:59]execute_cgi path=json_proto method=POST [11:29:59]POST find Content-Length [11:29:59]Host: 172.17.58.3:8080 [11:29:59]Content-Length: 681 [11:29:59]Content-Type: application/json [11:29:59] [11:29:59]POST finish read [11:29:59]Found Content-Length = 681 [11:29:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:29:59]execute_script... [11:29:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:29:59]POST & json_proto [11:29:59]process_json_proto [11:29:59]json parsed OK: [11:29:59]protocol is kg_v1.0 [11:29:59]action value=close_receipt [11:29:59]process_action close_receipt [11:29:59]cmd_close_receipt [11:29:59]MH_GetDate [11:29:59]Write to MH i2c: F0 00 00 00 01 F0 [11:29:59]Write i2c OK [11:29:59]MH_I2C_Read... [11:29:59]Read from MH i2c: F0 [11:29:59]MH_I2C_Read... [11:29:59]Read from MH i2c: F0 09 00 [11:29:59]MH_I2C_Read... [11:29:59]Read from MH i2c: F0 09 00 00 01 00 B7 43 BB 66 DC E4 6D 64 A5 [11:29:59]GetLastDocTimeStamp 1723548381 [11:29:59]current date 1723548599 [11:29:59]FM_GetShiftState [11:29:59]SAM_PROTO_GetShiftState [11:29:59]wFMCommunicate request_size=4 [11:29:59]MH_SAM_APDU [11:29:59]CAPDU: 80 13 01 00 [11:29:59]Write to MH i2c: E2 08 00 01 01 80 13 01 00 00 00 00 00 7F [11:29:59]Write i2c OK [11:29:59]MH_I2C_Read... [11:29:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:59]Read from MH i2c: E2 [11:29:59]MH_I2C_Read... [11:29:59]Read from MH i2c: E2 0E 00 [11:29:59]MH_I2C_Read... [11:29:59]Read from MH i2c: E2 0E 00 01 01 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 9D [11:29:59]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [11:29:59]wFMCommunicate OK [11:29:59]SAM_PROTO_GetShiftState done [11:29:59]FM_GetShiftState done [11:29:59]opened in 1723506770 [11:29:59]opened+sec_in_day 1723593170 [11:29:59]quantity*price = 100036 [11:29:59]sum+1 = 100037 [11:29:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 43 13.08.2024 11:29 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103132 ФПД: 153190770693520 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T112959&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103132&fm=153190770693520&tin=02508201610067®Number=0000000000092718&sum=100000 [11:30:00]StoreToDocumentArchive [11:30:00]shift 464 fd 103132 [11:30:00]save to /storage/0464/doc_00103132 [11:30:00]save last doc name /storage/0464/doc_00103132 to /storage/kkm_last_doc_name [11:30:00]save OK [11:30:00]Clear old archive folders... [11:30:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:30:00]tlvbuf is B6F3AA40 [11:30:00]SAM_PROTO_ClearQueue [11:30:00]wFMCommunicate request_size=4 [11:30:00]MH_SAM_APDU [11:30:00]CAPDU: 80 09 00 00 [11:30:00]Write to MH i2c: E2 08 00 0E 01 80 09 00 00 00 00 00 00 81 [11:30:00]Write i2c OK [11:30:00]MH_I2C_Read... [11:30:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:00]Read from MH i2c: E2 [11:30:00]MH_I2C_Read... [11:30:00]Read from MH i2c: E2 03 00 [11:30:00]MH_I2C_Read... [11:30:00]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [11:30:00]RAPDU: 90 00 [11:30:00]wFMCommunicate OK [11:30:00]SAM_PROTO_ClearQueue done [11:30:00]KKMCreateOFDPacket [11:30:00]OFDProtocolAddRootSTLVToBuf [11:30:00]FM_MakeSignedData [11:30:00]FM_MakeSignedData [11:30:00]SAM_PROTO_SignData [11:30:00]wFMCommunicate request_size=4 [11:30:00]MH_SAM_APDU [11:30:00]CAPDU: 80 0D 01 02 [11:30:00]Write to MH i2c: E2 08 00 0F 01 80 0D 01 02 00 00 00 00 89 [11:30:00]Write i2c OK [11:30:00]MH_I2C_Read... [11:30:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:00]Read from MH i2c: E2 [11:30:00]MH_I2C_Read... [11:30:00]Read from MH i2c: E2 03 00 [11:30:00]MH_I2C_Read... [11:30:00]Read from MH i2c: E2 03 00 0F 01 00 90 00 84 [11:30:00]RAPDU: 90 00 [11:30:00]wFMCommunicate OK [11:30:00]wFMCommunicate request_size=255 [11:30:00]MH_SAM_APDU [11:30:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 B7 43 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 DC 92 01 00 35 04 06 00 8B [11:30:00]Write to MH i2c: E2 02 01 10 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 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 B7 43 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 DC 92 01 00 35 04 06 00 8B 00 00 BE [11:30:00]Write i2c OK [11:30:00]MH_I2C_Read... [11:30:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:01]Read from MH i2c: E2 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: E2 03 00 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: E2 03 00 10 01 00 90 00 85 [11:30:01]RAPDU: 90 00 [11:30:01]wFMCommunicate OK [11:30:01]wFMCommunicate request_size=10 [11:30:01]MH_SAM_APDU [11:30:01]CAPDU: 80 0D 02 02 05 53 81 78 55 90 [11:30:01]Write to MH i2c: E2 0D 00 11 01 80 0D 02 02 05 00 53 81 78 55 90 00 00 C7 [11:30:01]Write i2c OK [11:30:01]MH_I2C_Read... [11:30:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:01]Read from MH i2c: E2 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: E2 03 00 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: E2 03 00 11 01 00 90 00 86 [11:30:01]RAPDU: 90 00 [11:30:01]wFMCommunicate OK [11:30:01]wFMCommunicate request_size=4 [11:30:01]MH_SAM_APDU [11:30:01]CAPDU: 80 0D 03 02 [11:30:01]Write to MH i2c: E2 08 00 12 01 80 0D 03 02 00 00 00 00 8E [11:30:01]Write i2c OK [11:30:01]MH_I2C_Read... [11:30:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:01]Read from MH i2c: E2 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: E2 0B 00 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: E2 0B 00 12 01 00 9A 8C 5A 4E 8D 90 E8 10 90 00 72 [11:30:01]RAPDU: 9A 8C 5A 4E 8D 90 E8 10 90 00 [11:30:01]wFMCommunicate OK [11:30:01]SAM_PROTO_SignData done [11:30:01]FM_MakeSignedData done [11:30:01]CreateOFDProtocolMessage [11:30:01]wFMCommunicate request_size=4 [11:30:01]MH_SAM_APDU [11:30:01]CAPDU: 80 11 00 00 [11:30:01]Write to MH i2c: E2 08 00 13 01 80 11 00 00 00 00 00 00 8E [11:30:01]Write i2c OK [11:30:01]MH_I2C_Read... [11:30:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:01]Read from MH i2c: E2 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: E2 17 00 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: E2 17 00 13 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 E2 [11:30:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [11:30:01]wFMCommunicate OK [11:30:01]CreateOFDProtocolMessage done [11:30:01]OFDSenderStorePacket 103132 [11:30:01]StoreOFDPacket docnum=103132 [11:30:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 15 00 07 01 C2 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 B7 43 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 DC 92 01 00 35 04 06 00 8B 53 81 78 55 90 9A 8C 5A 4E 8D 90 E8 10 [11:30:01]CheckFolder [11:30:01]dirname=/storage/ofd_packets [11:30:01]CheckFolder done [11:30:01]ProducePacketName [11:30:01]name=ofd_packets/00103132 [11:30:01]NVStorageSaveData ofd_packets/00103132 [11:30:01]File name is /storage/ofd_packets/00103132 [11:30:01]Write 301 bytes [11:30:01]NVStorageSaveData done [11:30:01]OFDSenderStorePacket done [11:30:01]KKMCreateOFDPacket done [11:30:01]NVStorageSaveData kkm_last_timestamp [11:30:01]File name is /storage/kkm_last_timestamp [11:30:01]Write 4 bytes [11:30:01]NVStorageSaveData done [11:30:01]ExternCall_PrintAddStr [11:30:01]wPrintStart [11:30:01]Write to MH i2c: 01 00 00 14 01 15 [11:30:01]Write i2c OK [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: 01 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: 01 07 00 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: 01 07 00 14 01 00 00 00 00 00 FF 0F 2A [11:30:01]RasterBufferAndPrint [11:30:01]line Счет N : (1)160763 [11:30:01]line ИНН: 02508201610067 [11:30:01]line Контрольно-Кассовый Чек [11:30:01]line ПРОДАЖА [11:30:01]line ТРК (МРК, ГНК) : 3 [11:30:01]line Товар: 2710124130 [11:30:01]line Аи-92-К-5 [11:30:01]line 15.180 * 65.90 [11:30:01]line = 1000.36 [11:30:01]line НДС 12% НСП 1% [11:30:01]line > о реализуемом товаре [11:30:01]line ОКРУГЛЕНИЕ: -0.36 [11:30:01]line ИТОГО: 1000.00 [11:30:01]line Внесено: 1000.00 [11:30:01]line СДАЧА: 0.00 [11:30:01]line НСП 1% : 8.85 [11:30:01]line НДС 12% : 106.23 [11:30:01]line Наличными: 1000.00 [11:30:01]line Безнал.: 0.00 [11:30:01]line Место: АЗС № 38 "Партнер Нефть" [11:30:01]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [11:30:01]line СНО: Общий режим [11:30:01]line Чек 43 13.08.2024 11:29 [11:30:01]line Смена: 464 ФФД: 1.0 [11:30:01]line ЗНМ: 0300000126 [11:30:01]line РНМ: 0000000000092718 [11:30:01]line Версия ККМ: 001 [11:30:01]line ФМ: 0000000000875058 [11:30:01]line ФД: 103132 [11:30:01]line ФПД: 153190770693520 [11:30:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T112959&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103132&fm=153190770693520&tin=02508201610067®Number=0000000000092718&sum=100000 [11:30:01]OFD Sender: Processing packet 103132 [packets to send 69, broken 68] [11:30:01]ProducePacketName [11:30:01]name=ofd_packets/00103132 [11:30:01]OFD Sender: To server: pG, [11:30:01]CommunicateWithHost lk.salyk.kg:30040 [11:30:01]ConnectInit lk.salyk.kg [11:30:01]written 0, free lines is 4095 [11:30:01]Connected sock=10 [11:30:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 15 00 07 01 C2 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 B7 43 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 DC 92 01 00 35 04 06 00 8B 53 81 78 55 90 9A 8C 5A 4E 8D 90 E8 10 [11:30:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 1F 6A 47 00 60 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 DC 92 01 00 F4 03 04 00 2A EA BA 66 B6 04 01 00 00 CF 60 FA FA 8F FD A3 59 [11:30:01]CommunicateWithHost err = 0 [11:30:01]CheckOFDResponse [11:30:01]1017 (14) - 77093643461234 [11:30:01]1041 (16) - 0000000000875058 [11:30:01]1040 (4) - 103132 [11:30:01]1012 (4) - 13.08.2024 05:07 [11:30:01]1206 (1) - 0 [11:30:01]OFD Sender: Remove packet 103132 [11:30:01]ProducePacketName [11:30:01]name=ofd_packets/00103132 [11:30:01]NVStorageDeleteData [11:30:02]Write to MH i2c: 01 00 00 3F 01 40 [11:30:02]Write i2c OK [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: 01 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: 01 07 00 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: 01 07 00 3F 01 00 00 00 00 00 EB 0C 3E [11:30:02]RasterBufferAndPrint [11:30:02]line [11:30:02]line [11:30:02]line [11:30:02]line [11:30:02]line [11:30:02]written 0, free lines is 3313 [11:30:02]MH_Cut [11:30:02]Write to MH i2c: D1 01 00 46 01 01 19 [11:30:02]Write i2c OK [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: D1 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: D1 01 00 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: D1 01 00 46 01 00 18 [11:30:02]Write to MH i2c: 01 00 00 47 01 48 [11:30:02]Write i2c OK [11:30:02]MH_I2C_Read... [11:30:02]OFD Sender: No OFD packet to send [11:30:02]*** Cut start [11:30:02]*** Purtial cut [11:30:02]*** CUTSNS_PIN = 0 [11:30:03]*** Stage 1: CUTSNS_PIN = 1 [11:30:04]Read from MH i2c: 01 [11:30:04]MH_I2C_Read... [11:30:04]*** Stop cut motor [11:30:04]*** Cut end [11:30:04]Read from MH i2c: 01 07 00 [11:30:04]MH_I2C_Read... [11:30:04]Read from MH i2c: 01 07 00 47 01 00 00 00 00 00 FF 0F 5D [11:30:04]process_action close_receipt done [11:30:04]requested_data is exist [11:30:04]produce_requested_data [11:30:04]requested_item fm.sn is exist - process it [11:30:04]wFMCommunicate request_size=4 [11:30:04]MH_SAM_APDU [11:30:04]CAPDU: 80 11 00 00 [11:30:04]Write to MH i2c: E2 08 00 48 01 80 11 00 00 00 00 00 00 C3 [11:30:04]Write i2c OK [11:30:04]MH_I2C_Read... [11:30:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:04]Read from MH i2c: E2 [11:30:04]MH_I2C_Read... [11:30:04]Read from MH i2c: E2 17 00 [11:30:04]MH_I2C_Read... [11:30:04]Read from MH i2c: E2 17 00 48 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 17 [11:30:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [11:30:04]wFMCommunicate OK [11:30:04]requested_item fd.num is exist - process it [11:30:04]SAM_PROTO_GetFieldsCounters [11:30:04]wFMCommunicate request_size=4 [11:30:04]MH_SAM_APDU [11:30:04]CAPDU: 80 13 00 00 [11:30:04]Write to MH i2c: E2 08 00 49 01 80 13 00 00 00 00 00 00 C6 [11:30:04]Write i2c OK [11:30:04]MH_I2C_Read... [11:30:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:05]Read from MH i2c: E2 [11:30:05]MH_I2C_Read... [11:30:05]Read from MH i2c: E2 62 00 [11:30:05]MH_I2C_Read... [11:30:05]Read from MH i2c: E2 62 00 49 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 DC 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [11:30:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 DC 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:30:05]wFMCommunicate OK [11:30:05]SAM_PROTO_GetFieldsCounters done [11:30:05]requested_item shift.num is exist - process it [11:30:05]requested_item shift.opened is exist - process it [11:30:05]req_shift_opened [11:30:05]FM_GetShiftState [11:30:05]SAM_PROTO_GetShiftState [11:30:05]wFMCommunicate request_size=4 [11:30:05]MH_SAM_APDU [11:30:05]CAPDU: 80 13 01 00 [11:30:05]Write to MH i2c: E2 08 00 4A 01 80 13 01 00 00 00 00 00 C8 [11:30:05]Write i2c OK [11:30:05]MH_I2C_Read... [11:30:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:05]Read from MH i2c: E2 [11:30:05]MH_I2C_Read... [11:30:05]Read from MH i2c: E2 0E 00 [11:30:05]MH_I2C_Read... [11:30:05]Read from MH i2c: E2 0E 00 4A 01 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 E6 [11:30:05]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [11:30:05]wFMCommunicate OK [11:30:05]SAM_PROTO_GetShiftState done [11:30:05]FM_GetShiftState done [11:30:05]req_shift_opened done [11:30:05]requested_item shift.open_date is exist - process it [11:30:05]req_shift_open_date [11:30:05]req_shift_open_date done [11:30:05]produce_requested_data done [11:30:05]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103132,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [11:30:05]process_action_free close_receipt [11:30:05]json_value_free [11:30:05]json_value_free done [11:30:05]process_json_proto returns [11:30:05]Send response to host [11:30:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103132,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [11:30:05]free response buf [11:30:05]execute_script done [11:30:05]execute_script returns [11:30:05]free content buf [11:30:05]Sock 7.Close socket [11:30:05]Sock 7.Thread stoped [11:30:07]OFD Sender: No OFD packet to send [11:30:12]OFD Sender: No OFD packet to send [11:30:17]OFD Sender: No OFD packet to send [11:30:22]OFD Sender: No OFD packet to send [11:30:27]OFD Sender: No OFD packet to send [11:30:32]OFD Sender: No OFD packet to send [11:30:37]OFD Sender: No OFD packet to send [11:30:42]OFD Sender: No OFD packet to send [11:30:47]OFD Sender: No OFD packet to send [11:30:52]OFD Sender: No OFD packet to send [11:30:57]OFD Sender: No OFD packet to send [11:31:02]OFD Sender: No OFD packet to send [11:31:07]OFD Sender: No OFD packet to send [11:31:12]OFD Sender: No OFD packet to send [11:31:14]accept exits with 9 [11:31:14]New connection [11:31:14]New thread 3066830180 created [11:31:14]Thread 3066686820 joined [11:31:14]Waiting for new connection... [11:31:14] Sock 9.Parse request [11:31:14]Sock 9.Check first char [11:31:14]Sock 9.First char is OK [11:31:14]request: POST /json_proto HTTP/1.0 [11:31:14]Method: POST [11:31:14]URL: /json_proto [11:31:14]Method is POST - this is cgi request [11:31:14]url: /json_proto [11:31:14]query_string will be loaded in cgi processing [11:31:14]execute_cgi json_proto POST (null) [11:31:14]execute_cgi path=json_proto method=POST [11:31:14]POST find Content-Length [11:31:14]Host: 172.17.58.3:8080 [11:31:14]Content-Length: 676 [11:31:14]Content-Type: application/json [11:31:14] [11:31:14]POST finish read [11:31:14]Found Content-Length = 676 [11:31:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160762", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 9.110, "sum" : 600.35, "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:31:14]execute_script... [11:31: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)160762", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 9.110, "sum" : 600.35, "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:31:14]POST & json_proto [11:31:14]process_json_proto [11:31:14]json parsed OK: [11:31:14]protocol is kg_v1.0 [11:31:14]action value=close_receipt [11:31:14]process_action close_receipt [11:31:14]cmd_close_receipt [11:31:14]MH_GetDate [11:31:14]Write to MH i2c: F0 00 00 4B 01 3B [11:31:14]Write i2c OK [11:31:14]MH_I2C_Read... [11:31:14]Read from MH i2c: F0 [11:31:14]MH_I2C_Read... [11:31:14]Read from MH i2c: F0 09 00 [11:31:14]MH_I2C_Read... [11:31:14]Read from MH i2c: F0 09 00 4B 01 00 02 44 BB 66 DC E4 6D 64 3C [11:31:14]GetLastDocTimeStamp 1723548599 [11:31:14]current date 1723548674 [11:31:14]FM_GetShiftState [11:31:14]SAM_PROTO_GetShiftState [11:31:14]wFMCommunicate request_size=4 [11:31:14]MH_SAM_APDU [11:31:14]CAPDU: 80 13 01 00 [11:31:14]Write to MH i2c: E2 08 00 4C 01 80 13 01 00 00 00 00 00 CA [11:31:14]Write i2c OK [11:31:14]MH_I2C_Read... [11:31:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:14]Read from MH i2c: E2 [11:31:14]MH_I2C_Read... [11:31:14]Read from MH i2c: E2 0E 00 [11:31:14]MH_I2C_Read... [11:31:14]Read from MH i2c: E2 0E 00 4C 01 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 E8 [11:31:14]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [11:31:14]wFMCommunicate OK [11:31:14]SAM_PROTO_GetShiftState done [11:31:14]FM_GetShiftState done [11:31:14]opened in 1723506770 [11:31:14]opened+sec_in_day 1723593170 [11:31:14]quantity*price = 60034 [11:31:14]sum+1 = 60036 [11:31:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 44 13.08.2024 11:31 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103133 ФПД: 13754911919815 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T113114&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103133&fm=13754911919815&tin=02508201610067®Number=0000000000092718&sum=60000 [11:31:15]StoreToDocumentArchive [11:31:15]shift 464 fd 103133 [11:31:15]save to /storage/0464/doc_00103133 [11:31:15]save last doc name /storage/0464/doc_00103133 to /storage/kkm_last_doc_name [11:31:15]save OK [11:31:15]Clear old archive folders... [11:31:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:31:15]tlvbuf is 014F5B30 [11:31:15]SAM_PROTO_ClearQueue [11:31:15]wFMCommunicate request_size=4 [11:31:15]MH_SAM_APDU [11:31:15]CAPDU: 80 09 00 00 [11:31:15]Write to MH i2c: E2 08 00 59 01 80 09 00 00 00 00 00 00 CC [11:31:15]Write i2c OK [11:31:15]MH_I2C_Read... [11:31:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:31:15]Read from MH i2c: E2 [11:31:15]MH_I2C_Read... [11:31:15]Read from MH i2c: E2 03 00 [11:31:15]MH_I2C_Read... [11:31:15]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [11:31:15]RAPDU: 90 00 [11:31:15]wFMCommunicate OK [11:31:15]SAM_PROTO_ClearQueue done [11:31:15]KKMCreateOFDPacket [11:31:15]OFDProtocolAddRootSTLVToBuf [11:31:15]FM_MakeSignedData [11:31:15]FM_MakeSignedData [11:31:15]SAM_PROTO_SignData [11:31:15]wFMCommunicate request_size=4 [11:31:15]MH_SAM_APDU [11:31:15]CAPDU: 80 0D 01 02 [11:31:15]Write to MH i2c: E2 08 00 5A 01 80 0D 01 02 00 00 00 00 D4 [11:31:15]Write i2c OK [11:31:15]MH_I2C_Read... [11:31:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:31:15]Read from MH i2c: E2 [11:31:15]MH_I2C_Read... [11:31:15]Read from MH i2c: E2 03 00 [11:31:15]MH_I2C_Read... [11:31:15]Read from MH i2c: E2 03 00 5A 01 00 90 00 CF [11:31:15]RAPDU: 90 00 [11:31:15]wFMCommunicate OK [11:31:15]wFMCommunicate request_size=255 [11:31:15]MH_SAM_APDU [11:31:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 23 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 02 44 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 DD 92 01 00 35 04 06 00 0C [11:31:15]Write to MH i2c: E2 02 01 5B 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 96 23 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 02 44 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 DD 92 01 00 35 04 06 00 0C 00 00 66 [11:31:15]Write i2c OK [11:31:15]MH_I2C_Read... [11:31:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:16]Read from MH i2c: E2 [11:31:16]MH_I2C_Read... [11:31:16]Read from MH i2c: E2 03 00 [11:31:16]MH_I2C_Read... [11:31:16]Read from MH i2c: E2 03 00 5B 01 00 90 00 D0 [11:31:16]RAPDU: 90 00 [11:31:16]wFMCommunicate OK [11:31:16]wFMCommunicate request_size=10 [11:31:16]MH_SAM_APDU [11:31:16]CAPDU: 80 0D 02 02 05 82 90 A3 8E C7 [11:31:16]Write to MH i2c: E2 0D 00 5C 01 80 0D 02 02 05 00 82 90 A3 8E C7 00 00 EB [11:31:16]Write i2c OK [11:31:16]MH_I2C_Read... [11:31:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:16]Read from MH i2c: E2 [11:31:16]MH_I2C_Read... [11:31:16]Read from MH i2c: E2 03 00 [11:31:16]MH_I2C_Read... [11:31:16]Read from MH i2c: E2 03 00 5C 01 00 90 00 D1 [11:31:16]RAPDU: 90 00 [11:31:16]wFMCommunicate OK [11:31:16]wFMCommunicate request_size=4 [11:31:16]MH_SAM_APDU [11:31:16]CAPDU: 80 0D 03 02 [11:31:16]Write to MH i2c: E2 08 00 5D 01 80 0D 03 02 00 00 00 00 D9 [11:31:16]Write i2c OK [11:31:16]MH_I2C_Read... [11:31:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:31:16]Read from MH i2c: E2 [11:31:16]MH_I2C_Read... [11:31:16]Read from MH i2c: E2 0B 00 [11:31:16]MH_I2C_Read... [11:31:16]Read from MH i2c: E2 0B 00 5D 01 00 D5 5E 6A 0A 55 77 D1 FE 90 00 1C [11:31:16]RAPDU: D5 5E 6A 0A 55 77 D1 FE 90 00 [11:31:16]wFMCommunicate OK [11:31:16]SAM_PROTO_SignData done [11:31:16]FM_MakeSignedData done [11:31:16]CreateOFDProtocolMessage [11:31:16]wFMCommunicate request_size=4 [11:31:16]MH_SAM_APDU [11:31:16]CAPDU: 80 11 00 00 [11:31:16]Write to MH i2c: E2 08 00 5E 01 80 11 00 00 00 00 00 00 D9 [11:31:16]Write i2c OK [11:31:16]MH_I2C_Read... [11:31:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:16]Read from MH i2c: E2 [11:31:16]MH_I2C_Read... [11:31:16]Read from MH i2c: E2 17 00 [11:31:16]MH_I2C_Read... [11:31:16]Read from MH i2c: E2 17 00 5E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 2D [11:31:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [11:31:16]wFMCommunicate OK [11:31:16]CreateOFDProtocolMessage done [11:31:16]OFDSenderStorePacket 103133 [11:31:16]StoreOFDPacket docnum=103133 [11:31:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 8D 98 07 01 C6 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 23 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 02 44 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 DD 92 01 00 35 04 06 00 0C 82 90 A3 8E C7 D5 5E 6A 0A 55 77 D1 FE [11:31:16]CheckFolder [11:31:16]dirname=/storage/ofd_packets [11:31:16]CheckFolder done [11:31:16]ProducePacketName [11:31:16]name=ofd_packets/00103133 [11:31:16]NVStorageSaveData ofd_packets/00103133 [11:31:16]File name is /storage/ofd_packets/00103133 [11:31:16]Write 301 bytes [11:31:16]NVStorageSaveData done [11:31:16]OFDSenderStorePacket done [11:31:16]KKMCreateOFDPacket done [11:31:16]NVStorageSaveData kkm_last_timestamp [11:31:16]File name is /storage/kkm_last_timestamp [11:31:16]Write 4 bytes [11:31:16]NVStorageSaveData done [11:31:16]ExternCall_PrintAddStr [11:31:16]wPrintStart [11:31:16]Write to MH i2c: 01 00 00 5F 01 60 [11:31:16]Write i2c OK [11:31:16]MH_I2C_Read... [11:31:16]Read from MH i2c: 01 [11:31:16]MH_I2C_Read... [11:31:16]Read from MH i2c: 01 07 00 [11:31:16]MH_I2C_Read... [11:31:16]Read from MH i2c: 01 07 00 5F 01 00 00 00 00 00 FF 0F 75 [11:31:16]RasterBufferAndPrint [11:31:16]line Счет N : (1)160762 [11:31:16]line ИНН: 02508201610067 [11:31:16]line Контрольно-Кассовый Чек [11:31:16]line ПРОДАЖА [11:31:16]line ТРК (МРК, ГНК) : 7 [11:31:16]line Товар: 2710124130 [11:31:16]line Аи-92-К-5 [11:31:16]line 9.110 * 65.90 [11:31:16]line = 600.35 [11:31:16]line НДС 12% НСП 1% [11:31:16]line > о реализуемом товаре [11:31:16]line ОКРУГЛЕНИЕ: -0.35 [11:31:16]line ИТОГО: 600.00 [11:31:16]line Внесено: 600.00 [11:31:16]line СДАЧА: 0.00 [11:31:16]line НСП 1% : 5.31 [11:31:16]line НДС 12% : 63.75 [11:31:16]line Наличными: 600.00 [11:31:16]line Безнал.: 0.00 [11:31:16]line Место: АЗС № 38 "Партнер Нефть" [11:31:16]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [11:31:16]line СНО: Общий режим [11:31:16]line Чек 44 13.08.2024 11:31 [11:31:16]line Смена: 464 ФФД: 1.0 [11:31:16]line ЗНМ: 0300000126 [11:31:16]line РНМ: 0000000000092718 [11:31:16]line Версия ККМ: 001 [11:31:16]line ФМ: 0000000000875058 [11:31:16]line ФД: 103133 [11:31:16]line ФПД: 13754911919815 [11:31:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T113114&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103133&fm=13754911919815&tin=02508201610067®Number=0000000000092718&sum=60000 [11:31:16]OFD Sender: Processing packet 103133 [packets to send 69, broken 68] [11:31:16]ProducePacketName [11:31:16]name=ofd_packets/00103133 [11:31:16]OFD Sender: To server: pG, [11:31:16]CommunicateWithHost lk.salyk.kg:30040 [11:31:16]ConnectInit lk.salyk.kg [11:31:16]written 0, free lines is 4095 [11:31:16]Connected sock=10 [11:31:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 8D 98 07 01 C6 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 23 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 02 44 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 DD 92 01 00 35 04 06 00 0C 82 90 A3 8E C7 D5 5E 6A 0A 55 77 D1 FE [11:31:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 46 7D 47 00 04 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 DD 92 01 00 F4 03 04 00 75 EA BA 66 B6 04 01 00 00 00 C0 DF 92 0A 80 69 6E [11:31:16]CommunicateWithHost err = 0 [11:31:16]CheckOFDResponse [11:31:16]1017 (14) - 77093643461234 [11:31:16]1041 (16) - 0000000000875058 [11:31:16]1040 (4) - 103133 [11:31:16]1012 (4) - 13.08.2024 05:09 [11:31:16]1206 (1) - 0 [11:31:16]OFD Sender: Remove packet 103133 [11:31:16]ProducePacketName [11:31:16]name=ofd_packets/00103133 [11:31:16]NVStorageDeleteData [11:31:17]Write to MH i2c: 01 00 00 8A 01 8B [11:31:17]Write i2c OK [11:31:17]MH_I2C_Read... [11:31:17]Read from MH i2c: 01 [11:31:17]MH_I2C_Read... [11:31:17]Read from MH i2c: 01 07 00 [11:31:17]MH_I2C_Read... [11:31:17]Read from MH i2c: 01 07 00 8A 01 00 00 00 00 00 DA 0C 78 [11:31:17]RasterBufferAndPrint [11:31:17]line [11:31:17]line [11:31:17]line [11:31:17]line [11:31:17]line [11:31:17]written 0, free lines is 3297 [11:31:17]MH_Cut [11:31:17]Write to MH i2c: D1 01 00 91 01 01 64 [11:31:17]Write i2c OK [11:31:17]MH_I2C_Read... [11:31:17]Read from MH i2c: D1 [11:31:17]MH_I2C_Read... [11:31:17]Read from MH i2c: D1 01 00 [11:31:17]MH_I2C_Read... [11:31:17]Read from MH i2c: D1 01 00 91 01 00 63 [11:31:17]Write to MH i2c: 01 00 00 92 01 93 [11:31:17]Write i2c OK [11:31:17]MH_I2C_Read... [11:31:17]OFD Sender: No OFD packet to send [11:31:17]*** Cut start [11:31:17]*** Purtial cut [11:31:17]*** Stage 1: CUTSNS_PIN = 1 [11:31:18]Read from MH i2c: 01 [11:31:18]MH_I2C_Read... [11:31:18]*** Stop cut motor [11:31:18]*** Cut end [11:31:18]Read from MH i2c: 01 07 00 [11:31:18]MH_I2C_Read... [11:31:18]Read from MH i2c: 01 07 00 92 01 00 00 00 00 00 FF 0F A8 [11:31:18]process_action close_receipt done [11:31:18]requested_data is exist [11:31:18]produce_requested_data [11:31:18]requested_item fm.sn is exist - process it [11:31:18]wFMCommunicate request_size=4 [11:31:18]MH_SAM_APDU [11:31:18]CAPDU: 80 11 00 00 [11:31:18]Write to MH i2c: E2 08 00 93 01 80 11 00 00 00 00 00 00 0E [11:31:18]Write i2c OK [11:31:18]MH_I2C_Read... [11:31:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:18]Read from MH i2c: E2 [11:31:18]MH_I2C_Read... [11:31:18]Read from MH i2c: E2 17 00 [11:31:18]MH_I2C_Read... [11:31:18]Read from MH i2c: E2 17 00 93 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 62 [11:31:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [11:31:18]wFMCommunicate OK [11:31:18]requested_item fd.num is exist - process it [11:31:18]SAM_PROTO_GetFieldsCounters [11:31:18]wFMCommunicate request_size=4 [11:31:18]MH_SAM_APDU [11:31:18]CAPDU: 80 13 00 00 [11:31:18]Write to MH i2c: E2 08 00 94 01 80 13 00 00 00 00 00 00 11 [11:31:18]Write i2c OK [11:31:18]MH_I2C_Read... [11:31:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:31:18]Read from MH i2c: E2 [11:31:18]MH_I2C_Read... [11:31:18]Read from MH i2c: E2 62 00 [11:31:18]MH_I2C_Read... [11:31:18]Read from MH i2c: E2 62 00 94 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 DD 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [11:31:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 DD 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:31:18]wFMCommunicate OK [11:31:18]SAM_PROTO_GetFieldsCounters done [11:31:18]requested_item shift.num is exist - process it [11:31:18]requested_item shift.opened is exist - process it [11:31:18]req_shift_opened [11:31:18]FM_GetShiftState [11:31:18]SAM_PROTO_GetShiftState [11:31:18]wFMCommunicate request_size=4 [11:31:18]MH_SAM_APDU [11:31:18]CAPDU: 80 13 01 00 [11:31:18]Write to MH i2c: E2 08 00 95 01 80 13 01 00 00 00 00 00 13 [11:31:18]Write i2c OK [11:31:18]MH_I2C_Read... [11:31:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:18]Read from MH i2c: E2 [11:31:18]MH_I2C_Read... [11:31:18]Read from MH i2c: E2 0E 00 [11:31:18]MH_I2C_Read... [11:31:18]Read from MH i2c: E2 0E 00 95 01 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 31 [11:31:18]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [11:31:18]wFMCommunicate OK [11:31:18]SAM_PROTO_GetShiftState done [11:31:18]FM_GetShiftState done [11:31:18]req_shift_opened done [11:31:18]requested_item shift.open_date is exist - process it [11:31:18]req_shift_open_date [11:31:18]req_shift_open_date done [11:31:18]produce_requested_data done [11:31:18]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103133,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [11:31:18]process_action_free close_receipt [11:31:18]json_value_free [11:31:18]json_value_free done [11:31:18]process_json_proto returns [11:31:18]Send response to host [11:31:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103133,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [11:31:18]free response buf [11:31:18]execute_script done [11:31:18]execute_script returns [11:31:18]free content buf [11:31:18]Sock 9.Close socket [11:31:18]Sock 9.Thread stoped [11:31:22]OFD Sender: No OFD packet to send [11:31:27]OFD Sender: No OFD packet to send [11:31:32]OFD Sender: No OFD packet to send [11:31:37]OFD Sender: No OFD packet to send [11:31:42]OFD Sender: No OFD packet to send [11:31:47]OFD Sender: No OFD packet to send [11:31:52]OFD Sender: No OFD packet to send [11:31: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:27]OFD Sender: No OFD packet to send [11:32:32]OFD Sender: No OFD packet to send [11:32:37]OFD Sender: No OFD packet to send [11:32:42]OFD Sender: No OFD packet to send [11:32:47]OFD Sender: No OFD packet to send [11:32:52]OFD Sender: No OFD packet to send [11:32:57]OFD Sender: No OFD packet to send [11:33:02]OFD Sender: No OFD packet to send [11:33:07]OFD Sender: No OFD packet to send [11:33:12]OFD Sender: No OFD packet to send [11:33:17]OFD Sender: No OFD packet to send [11:33:22]OFD Sender: No OFD packet to send [11:33:27]OFD Sender: No OFD packet to send [11:33:32]OFD Sender: No OFD packet to send [11:33:37]OFD Sender: No OFD packet to send [11:33:42]OFD Sender: No OFD packet to send [11:33:47]OFD Sender: No OFD packet to send [11:33:52]OFD Sender: No OFD packet to send [11:33:54]int [11:33:54]Write to MH i2c: 01 00 00 96 01 97 [11:33:54]*** FLAG_PRN_KEY set [11:33:54]Write i2c OK [11:33:54]MH_I2C_Read... [11:33:54]Read from MH i2c: 01 [11:33:54]MH_I2C_Read... [11:33:54]Read from MH i2c: 01 07 00 [11:33:54]MH_I2C_Read... [11:33:54]Read from MH i2c: 01 07 00 96 01 00 08 00 00 00 FF 0F B4 [11:33:54]state=0 [11:33:54]Key pressed [11:33:54]Feed [11:33:54]Write to MH i2c: D8 00 00 97 01 6F [11:33:54]Write i2c OK [11:33:54]MH_I2C_Read... [11:33:54]Read from MH i2c: D8 [11:33:54]MH_I2C_Read... [11:33:54]Read from MH i2c: D8 01 00 [11:33:54]MH_I2C_Read... [11:33:54]Read from MH i2c: D8 01 00 97 01 00 70 [11:33:54]int [11:33:54]Write to MH i2c: 01 00 00 98 01 99 [11:33:54]Write i2c OK [11:33:54]MH_I2C_Read... [11:33:54]Read from MH i2c: 01 [11:33:54]MH_I2C_Read... [11:33:54]Read from MH i2c: 01 07 00 [11:33:54]MH_I2C_Read... [11:33:54]Read from MH i2c: 01 07 00 98 01 00 48 00 00 00 3C 00 24 [11:33:54]state=2 [11:33:54]Key pressed [11:33:55]int [11:33:55]Write to MH i2c: 01 00 00 99 01 9A [11:33:55]*** FLAG_PRN_KEY reset [11:33:55]Write i2c OK [11:33:55]MH_I2C_Read... [11:33:55]Read from MH i2c: 01 [11:33:55]MH_I2C_Read... [11:33:55]Read from MH i2c: 01 07 00 [11:33:55]MH_I2C_Read... [11:33:55]Read from MH i2c: 01 07 00 99 01 00 00 00 00 00 FF 0F AF [11:33:55]state=2 [11:33:55]Stop feed [11:33:57]OFD Sender: No OFD packet to send [11:34:02]OFD Sender: No OFD packet to send [11:34:07]OFD Sender: No OFD packet to send [11:34:12]OFD Sender: No OFD packet to send [11:34:17]OFD Sender: No OFD packet to send [11:34:22]OFD Sender: No OFD packet to send [11:34:27]OFD Sender: No OFD packet to send [11:34:32]OFD Sender: No OFD packet to send [11:34:37]OFD Sender: No OFD packet to send [11:34:42]OFD Sender: No OFD packet to send [11:34:47]OFD Sender: No OFD packet to send [11:34:52]OFD Sender: No OFD packet to send [11:34:57]OFD Sender: No OFD packet to send [11:35:02]OFD Sender: No OFD packet to send [11:35:07]OFD Sender: No OFD packet to send [11:35:12]OFD Sender: No OFD packet to send [11:35:17]OFD Sender: No OFD packet to send [11:35:22]OFD Sender: No OFD packet to send [11:35:27]OFD Sender: No OFD packet to send [11:35:32]OFD Sender: No OFD packet to send [11:35:37]OFD Sender: No OFD packet to send [11:35:42]OFD Sender: No OFD packet to send [11:35:47]OFD Sender: No OFD packet to send [11:35:52]OFD Sender: No OFD packet to send [11:35:57]OFD Sender: No OFD packet to send [11:36:02]OFD Sender: No OFD packet to send [11:36:07]OFD Sender: No OFD packet to send [11:36:12]OFD Sender: No OFD packet to send [11:36:17]OFD Sender: No OFD packet to send [11:36:22]OFD Sender: No OFD packet to send [11:36:27]OFD Sender: No OFD packet to send [11:36: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:43]accept exits with 7 [11:38:43]New connection [11:38:43]New thread 3066686820 created [11:38:43]Thread 3066830180 joined [11:38:43]Waiting for new connection... [11:38:43] Sock 7.Parse request [11:38:43]Sock 7.Check first char [11:38:43]Sock 7.First char is OK [11:38:43]request: POST /json_proto HTTP/1.0 [11:38:43]Method: POST [11:38:43]URL: /json_proto [11:38:43]Method is POST - this is cgi request [11:38:43]url: /json_proto [11:38:43]query_string will be loaded in cgi processing [11:38:43]execute_cgi json_proto POST (null) [11:38:43]execute_cgi path=json_proto method=POST [11:38:43]POST find Content-Length [11:38:43]Host: 172.17.58.3:8080 [11:38:43]Content-Length: 676 [11:38:43]Content-Type: application/json [11:38:43] [11:38:43]POST finish read [11:38:43]Found Content-Length = 676 [11:38:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160764", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 9.110, "sum" : 600.35, "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:38:43]execute_script... [11:38: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)160764", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 9.110, "sum" : 600.35, "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:38:43]POST & json_proto [11:38:43]process_json_proto [11:38:43]json parsed OK: [11:38:43]protocol is kg_v1.0 [11:38:43]action value=close_receipt [11:38:43]process_action close_receipt [11:38:43]cmd_close_receipt [11:38:43]MH_GetDate [11:38:43]Write to MH i2c: F0 00 00 9A 01 8A [11:38:43]Write i2c OK [11:38:43]MH_I2C_Read... [11:38:43]Read from MH i2c: F0 [11:38:43]MH_I2C_Read... [11:38:43]Read from MH i2c: F0 09 00 [11:38:43]MH_I2C_Read... [11:38:43]Read from MH i2c: F0 09 00 9A 01 00 C3 45 BB 66 DC E4 6D 64 4D [11:38:43]GetLastDocTimeStamp 1723548674 [11:38:43]current date 1723549123 [11:38:43]FM_GetShiftState [11:38:43]SAM_PROTO_GetShiftState [11:38:43]wFMCommunicate request_size=4 [11:38:43]MH_SAM_APDU [11:38:43]CAPDU: 80 13 01 00 [11:38:43]Write to MH i2c: E2 08 00 9B 01 80 13 01 00 00 00 00 00 19 [11:38:43]Write i2c OK [11:38:43]MH_I2C_Read... [11:38:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:43]Read from MH i2c: E2 [11:38:43]MH_I2C_Read... [11:38:43]Read from MH i2c: E2 0E 00 [11:38:43]MH_I2C_Read... [11:38:43]Read from MH i2c: E2 0E 00 9B 01 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 37 [11:38:43]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [11:38:43]wFMCommunicate OK [11:38:43]SAM_PROTO_GetShiftState done [11:38:43]FM_GetShiftState done [11:38:43]opened in 1723506770 [11:38:43]opened+sec_in_day 1723593170 [11:38:43]quantity*price = 60034 [11:38:43]sum+1 = 60036 [11:38:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 45 13.08.2024 11:38 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103134 ФПД: 101484696543706 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T113843&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103134&fm=101484696543706&tin=02508201610067®Number=0000000000092718&sum=60000 [11:38:44]StoreToDocumentArchive [11:38:44]shift 464 fd 103134 [11:38:44]save to /storage/0464/doc_00103134 [11:38:44]save last doc name /storage/0464/doc_00103134 to /storage/kkm_last_doc_name [11:38:44]save OK [11:38:44]Clear old archive folders... [11:38:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:38:44]tlvbuf is 0153F770 [11:38:44]SAM_PROTO_ClearQueue [11:38:44]wFMCommunicate request_size=4 [11:38:44]MH_SAM_APDU [11:38:44]CAPDU: 80 09 00 00 [11:38:44]Write to MH i2c: E2 08 00 A8 01 80 09 00 00 00 00 00 00 1B [11:38:44]Write i2c OK [11:38:44]MH_I2C_Read... [11:38:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:38:44]Read from MH i2c: E2 [11:38:44]MH_I2C_Read... [11:38:44]Read from MH i2c: E2 03 00 [11:38:44]MH_I2C_Read... [11:38:44]Read from MH i2c: E2 03 00 A8 01 00 90 00 1D [11:38:44]RAPDU: 90 00 [11:38:44]wFMCommunicate OK [11:38:44]SAM_PROTO_ClearQueue done [11:38:44]KKMCreateOFDPacket [11:38:44]OFDProtocolAddRootSTLVToBuf [11:38:44]FM_MakeSignedData [11:38:44]FM_MakeSignedData [11:38:44]SAM_PROTO_SignData [11:38:44]wFMCommunicate request_size=4 [11:38:44]MH_SAM_APDU [11:38:44]CAPDU: 80 0D 01 02 [11:38:44]Write to MH i2c: E2 08 00 A9 01 80 0D 01 02 00 00 00 00 23 [11:38:44]Write i2c OK [11:38:44]MH_I2C_Read... [11:38:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:38:44]Read from MH i2c: E2 [11:38:44]MH_I2C_Read... [11:38:44]Read from MH i2c: E2 03 00 [11:38:44]MH_I2C_Read... [11:38:44]Read from MH i2c: E2 03 00 A9 01 00 90 00 1E [11:38:44]RAPDU: 90 00 [11:38:44]wFMCommunicate OK [11:38:44]wFMCommunicate request_size=255 [11:38:44]MH_SAM_APDU [11:38:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 23 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 C3 45 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 DE 92 01 00 35 04 06 00 5C [11:38:44]Write to MH i2c: E2 02 01 AA 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 96 23 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 C3 45 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 DE 92 01 00 35 04 06 00 5C 00 00 C9 [11:38:44]Write i2c OK [11:38:44]MH_I2C_Read... [11:38:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:44]Read from MH i2c: E2 [11:38:44]MH_I2C_Read... [11:38:44]Read from MH i2c: E2 03 00 [11:38:44]MH_I2C_Read... [11:38:44]Read from MH i2c: E2 03 00 AA 01 00 90 00 1F [11:38:44]RAPDU: 90 00 [11:38:44]wFMCommunicate OK [11:38:44]wFMCommunicate request_size=10 [11:38:44]MH_SAM_APDU [11:38:44]CAPDU: 80 0D 02 02 05 4C BF 49 A1 DA [11:38:44]Write to MH i2c: E2 0D 00 AB 01 80 0D 02 02 05 00 4C BF 49 A1 DA 00 00 FF [11:38:44]Write i2c OK [11:38:44]MH_I2C_Read... [11:38:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:44]Read from MH i2c: E2 [11:38:44]MH_I2C_Read... [11:38:44]Read from MH i2c: E2 03 00 [11:38:44]MH_I2C_Read... [11:38:44]Read from MH i2c: E2 03 00 AB 01 00 90 00 20 [11:38:44]RAPDU: 90 00 [11:38:44]wFMCommunicate OK [11:38:44]wFMCommunicate request_size=4 [11:38:44]MH_SAM_APDU [11:38:44]CAPDU: 80 0D 03 02 [11:38:44]Write to MH i2c: E2 08 00 AC 01 80 0D 03 02 00 00 00 00 28 [11:38:44]Write i2c OK [11:38:44]MH_I2C_Read... [11:38:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:38:45]Read from MH i2c: E2 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: E2 0B 00 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: E2 0B 00 AC 01 00 43 D8 47 AC F1 93 60 19 90 00 34 [11:38:45]RAPDU: 43 D8 47 AC F1 93 60 19 90 00 [11:38:45]wFMCommunicate OK [11:38:45]SAM_PROTO_SignData done [11:38:45]FM_MakeSignedData done [11:38:45]CreateOFDProtocolMessage [11:38:45]wFMCommunicate request_size=4 [11:38:45]MH_SAM_APDU [11:38:45]CAPDU: 80 11 00 00 [11:38:45]Write to MH i2c: E2 08 00 AD 01 80 11 00 00 00 00 00 00 28 [11:38:45]Write i2c OK [11:38:45]MH_I2C_Read... [11:38:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:45]Read from MH i2c: E2 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: E2 17 00 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: E2 17 00 AD 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 7C [11:38:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [11:38:45]wFMCommunicate OK [11:38:45]CreateOFDProtocolMessage done [11:38:45]OFDSenderStorePacket 103134 [11:38:45]StoreOFDPacket docnum=103134 [11:38:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 B9 8E 07 01 5C 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 96 23 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 C3 45 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 DE 92 01 00 35 04 06 00 5C 4C BF 49 A1 DA 43 D8 47 AC F1 93 60 19 [11:38:45]CheckFolder [11:38:45]dirname=/storage/ofd_packets [11:38:45]CheckFolder done [11:38:45]ProducePacketName [11:38:45]name=ofd_packets/00103134 [11:38:45]NVStorageSaveData ofd_packets/00103134 [11:38:45]File name is /storage/ofd_packets/00103134 [11:38:45]Write 301 bytes [11:38:45]NVStorageSaveData done [11:38:45]OFDSenderStorePacket done [11:38:45]KKMCreateOFDPacket done [11:38:45]NVStorageSaveData kkm_last_timestamp [11:38:45]File name is /storage/kkm_last_timestamp [11:38:45]Write 4 bytes [11:38:45]NVStorageSaveData done [11:38:45]OFD Sender: Processing packet 103134 [packets to send 69, broken 68] [11:38:45]ProducePacketName [11:38:45]name=ofd_packets/00103134 [11:38:45]OFD Sender: To server: pG, [11:38:45]CommunicateWithHost lk.salyk.kg:30040 [11:38:45]ConnectInit lk.salyk.kg [11:38:45]ExternCall_PrintAddStr [11:38:45]wPrintStart [11:38:45]Write to MH i2c: 01 00 00 AE 01 AF [11:38:45]Write i2c OK [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: 01 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: 01 07 00 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: 01 07 00 AE 01 00 00 00 00 00 FF 0F C4 [11:38:45]RasterBufferAndPrint [11:38:45]line Счет N : (1)160764 [11:38:45]line ИНН: 02508201610067 [11:38:45]line Контрольно-Кассовый Чек [11:38:45]line ПРОДАЖА [11:38:45]line ТРК (МРК, ГНК) : 3 [11:38:45]line Товар: 2710124130 [11:38:45]line Аи-92-К-5 [11:38:45]line 9.110 * 65.90 [11:38:45]line = 600.35 [11:38:45]line НДС 12% НСП 1% [11:38:45]line > о реализуемом товаре [11:38:45]line ОКРУГЛЕНИЕ: -0.35 [11:38:45]line ИТОГО: 600.00 [11:38:45]line Внесено: 600.00 [11:38:45]line СДАЧА: 0.00 [11:38:45]line НСП 1% : 5.31 [11:38:45]line НДС 12% : 63.75 [11:38:45]line Наличными: 600.00 [11:38:45]line Безнал.: 0.00 [11:38:45]line Место: АЗС № 38 "Партнер Нефть" [11:38:45]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [11:38:45]line СНО: Общий режим [11:38:45]line Чек 45 13.08.2024 11:38 [11:38:45]line Смена: 464 ФФД: 1.0 [11:38:45]line ЗНМ: 0300000126 [11:38:45]line РНМ: 0000000000092718 [11:38:45]line Версия ККМ: 001 [11:38:45]line ФМ: 0000000000875058 [11:38:45]line ФД: 103134 [11:38:45]line ФПД: 101484696543706 [11:38:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T113843&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103134&fm=101484696543706&tin=02508201610067®Number=0000000000092718&sum=60000 [11:38:45]Connected sock=11 [11:38:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 B9 8E 07 01 5C 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 96 23 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 C3 45 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 DE 92 01 00 35 04 06 00 5C 4C BF 49 A1 DA 43 D8 47 AC F1 93 60 19 [11:38:45]written 0, free lines is 4095 [11:38:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 9B B1 47 00 B4 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 35 30 35 38 10 04 04 00 DE 92 01 00 F4 03 04 00 36 EC BA 66 B6 04 01 00 00 58 29 20 AE 4D 05 E4 81 [11:38:45]CommunicateWithHost err = 0 [11:38:45]CheckOFDResponse [11:38:45]1017 (14) - 77093643461234 [11:38:45]1041 (16) - 0000000000875058 [11:38:45]1040 (4) - 103134 [11:38:45]1012 (4) - 13.08.2024 05:16 [11:38:45]1206 (1) - 0 [11:38:45]OFD Sender: Remove packet 103134 [11:38:45]ProducePacketName [11:38:45]name=ofd_packets/00103134 [11:38:45]NVStorageDeleteData [11:38:45]Write to MH i2c: 01 00 00 D9 01 DA [11:38:45]Write i2c OK [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: 01 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: 01 07 00 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: 01 07 00 D9 01 00 00 00 00 00 EE 0C DB [11:38:45]RasterBufferAndPrint [11:38:45]line [11:38:45]line [11:38:45]line [11:38:45]line [11:38:45]line [11:38:45]written 0, free lines is 3316 [11:38:45]MH_Cut [11:38:45]Write to MH i2c: D1 01 00 E0 01 01 B3 [11:38:45]Write i2c OK [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: D1 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: D1 01 00 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: D1 01 00 E0 01 00 B2 [11:38:45]Write to MH i2c: 01 00 00 E1 01 E2 [11:38:45]Write i2c OK [11:38:45]MH_I2C_Read... [11:38:46]OFD Sender: No OFD packet to send [11:38:46]*** Cut start [11:38:46]*** Purtial cut [11:38:46]*** CUTSNS_PIN = 0 [11:38:46]*** Stage 1: CUTSNS_PIN = 1 [11:38:48]Read from MH i2c: 01 [11:38:48]MH_I2C_Read... [11:38:48]*** Stop cut motor [11:38:48]*** Cut end [11:38:48]Read from MH i2c: 01 07 00 [11:38:48]MH_I2C_Read... [11:38:48]Read from MH i2c: 01 07 00 E1 01 00 00 00 00 00 FF 0F F7 [11:38:48]process_action close_receipt done [11:38:48]requested_data is exist [11:38:48]produce_requested_data [11:38:48]requested_item fm.sn is exist - process it [11:38:48]wFMCommunicate request_size=4 [11:38:48]MH_SAM_APDU [11:38:48]CAPDU: 80 11 00 00 [11:38:48]Write to MH i2c: E2 08 00 E2 01 80 11 00 00 00 00 00 00 5D [11:38:48]Write i2c OK [11:38:48]MH_I2C_Read... [11:38:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:48]Read from MH i2c: E2 [11:38:48]MH_I2C_Read... [11:38:48]Read from MH i2c: E2 17 00 [11:38:48]MH_I2C_Read... [11:38:48]Read from MH i2c: E2 17 00 E2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 B1 [11:38:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [11:38:48]wFMCommunicate OK [11:38:48]requested_item fd.num is exist - process it [11:38:48]SAM_PROTO_GetFieldsCounters [11:38:48]wFMCommunicate request_size=4 [11:38:48]MH_SAM_APDU [11:38:48]CAPDU: 80 13 00 00 [11:38:48]Write to MH i2c: E2 08 00 E3 01 80 13 00 00 00 00 00 00 60 [11:38:48]Write i2c OK [11:38:48]MH_I2C_Read... [11:38:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:38:48]Read from MH i2c: E2 [11:38:48]MH_I2C_Read... [11:38:48]Read from MH i2c: E2 62 00 [11:38:48]MH_I2C_Read... [11:38:48]Read from MH i2c: E2 62 00 E3 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 DE 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [11:38:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 DE 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:38:48]wFMCommunicate OK [11:38:48]SAM_PROTO_GetFieldsCounters done [11:38:48]requested_item shift.num is exist - process it [11:38:48]requested_item shift.opened is exist - process it [11:38:48]req_shift_opened [11:38:48]FM_GetShiftState [11:38:48]SAM_PROTO_GetShiftState [11:38:48]wFMCommunicate request_size=4 [11:38:48]MH_SAM_APDU [11:38:48]CAPDU: 80 13 01 00 [11:38:48]Write to MH i2c: E2 08 00 E4 01 80 13 01 00 00 00 00 00 62 [11:38:48]Write i2c OK [11:38:48]MH_I2C_Read... [11:38:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:48]Read from MH i2c: E2 [11:38:48]MH_I2C_Read... [11:38:48]Read from MH i2c: E2 0E 00 [11:38:48]MH_I2C_Read... [11:38:48]Read from MH i2c: E2 0E 00 E4 01 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 80 [11:38:48]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [11:38:48]wFMCommunicate OK [11:38:48]SAM_PROTO_GetShiftState done [11:38:48]FM_GetShiftState done [11:38:48]req_shift_opened done [11:38:48]requested_item shift.open_date is exist - process it [11:38:48]req_shift_open_date [11:38:48]req_shift_open_date done [11:38:48]produce_requested_data done [11:38:48]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103134,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [11:38:48]process_action_free close_receipt [11:38:48]json_value_free [11:38:48]json_value_free done [11:38:48]process_json_proto returns [11:38:48]Send response to host [11:38:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103134,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [11:38:48]free response buf [11:38:48]execute_script done [11:38:48]execute_script returns [11:38:48]free content buf [11:38:48]Sock 7.Close socket [11:38:48]Sock 7.Thread stoped [11:38:51]OFD Sender: No OFD packet to send [11:38:56]OFD Sender: No OFD packet to send [11:39:01]OFD Sender: No OFD packet to send [11:39:06]OFD Sender: No OFD packet to send [11:39:11]OFD Sender: No OFD packet to send [11:39:16]OFD Sender: No OFD packet to send [11:39:21]OFD Sender: No OFD packet to send [11:39:26]OFD Sender: No OFD packet to send [11:39:31]OFD Sender: No OFD packet to send [11:39:36]OFD Sender: No OFD packet to send [11:39:41]OFD Sender: No OFD packet to send [11:39:46]OFD Sender: No OFD packet to send [11:39:51]OFD Sender: No OFD packet to send [11:39:56]OFD Sender: No OFD packet to send [11:40:01]OFD Sender: No OFD packet to send [11:40:06]OFD Sender: No OFD packet to send [11:40:11]OFD Sender: No OFD packet to send [11:40:16]OFD Sender: No OFD packet to send [11:40:21]OFD Sender: No OFD packet to send [11:40:26]OFD Sender: No OFD packet to send [11:40:31]OFD Sender: No OFD packet to send [11:40:36]OFD Sender: No OFD packet to send [11:40:41]OFD Sender: No OFD packet to send [11:40:46]OFD Sender: No OFD packet to send [11:40:51]OFD Sender: No OFD packet to send [11:40:56]OFD Sender: No OFD packet to send [11:41:01]OFD Sender: No OFD packet to send [11:41:06]OFD Sender: No OFD packet to send [11:41:11]OFD Sender: No OFD packet to send [11:41:16]OFD Sender: No OFD packet to send [11:41:21]OFD Sender: No OFD packet to send [11:41:26]OFD Sender: No OFD packet to send [11:41:31]OFD Sender: No OFD packet to send [11:41:36]OFD Sender: No OFD packet to send [11:41:41]OFD Sender: No OFD packet to send [11:41:46]OFD Sender: No OFD packet to send [11:41:51]OFD Sender: No OFD packet to send [11:41:56]OFD Sender: No OFD packet to send [11:42:01]OFD Sender: No OFD packet to send [11:42:06]OFD Sender: No OFD packet to send [11:42:11]OFD Sender: No OFD packet to send [11:42:16]OFD Sender: No OFD packet to send [11:42:21]OFD Sender: No OFD packet to send [11:42:26]OFD Sender: No OFD packet to send [11:42:31]OFD Sender: No OFD packet to send [11:42:36]OFD Sender: No OFD packet to send [11:42:41]OFD Sender: No OFD packet to send [11:42:46]OFD Sender: No OFD packet to send [11:42:51]OFD Sender: No OFD packet to send [11:42:56]OFD Sender: No OFD packet to send [11:43:01]OFD Sender: No OFD packet to send [11:43:06]OFD Sender: No OFD packet to send [11:43:11]OFD Sender: No OFD packet to send [11:43:16]OFD Sender: No OFD packet to send [11:43:21]OFD Sender: No OFD packet to send [11:43:24]accept exits with 9 [11:43:24]New connection [11:43:24]New thread 3066830180 created [11:43:24]Thread 3066686820 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.58.3:8080 [11:43:24]Content-Length: 681 [11:43:24]Content-Type: application/json [11:43:24] [11:43:24]POST finish read [11:43:24]Found Content-Length = 681 [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)160765", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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: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)160765", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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: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 E5 01 D5 [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 E5 01 00 DC 46 BB 66 DC E4 6D 64 B2 [11:43:24]GetLastDocTimeStamp 1723549123 [11:43:24]current date 1723549404 [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 E6 01 80 13 01 00 00 00 00 00 64 [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 E6 01 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 82 [11:43:24]RAPDU: 09 00 01 52 A0 BA 66 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 1723506770 [11:43:24]opened+sec_in_day 1723593170 [11:43:24]quantity*price = 200006 [11:43:24]sum+1 = 200008 [11:43:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 46 13.08.2024 11:43 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103135 ФПД: 185837615842217 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T114324&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103135&fm=185837615842217&tin=02508201610067®Number=0000000000092718&sum=200000 [11:43:25]StoreToDocumentArchive [11:43:25]shift 464 fd 103135 [11:43:25]save to /storage/0464/doc_00103135 [11:43:25]save last doc name /storage/0464/doc_00103135 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 01541200 [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 F3 01 80 09 00 00 00 00 00 00 66 [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 F3 01 00 90 00 68 [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 F4 01 80 0D 01 02 00 00 00 00 6E [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 F4 01 00 90 00 69 [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 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 DC 46 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 DF 92 01 00 35 04 06 00 A9 [11:43:25]Write to MH i2c: E2 02 01 F5 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 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 DC 46 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 DF 92 01 00 35 04 06 00 A9 00 00 E4 [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 F5 01 00 90 00 6A [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 04 B1 14 03 A9 [11:43:25]Write to MH i2c: E2 0D 00 F6 01 80 0D 02 02 05 00 04 B1 14 03 A9 00 00 F0 [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 F6 01 00 90 00 6B [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 F7 01 80 0D 03 02 00 00 00 00 73 [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 F7 01 00 65 02 FF D2 76 00 0E 38 90 00 68 [11:43:25]RAPDU: 65 02 FF D2 76 00 0E 38 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 F8 01 80 11 00 00 00 00 00 00 73 [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 F8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 C7 [11:43:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [11:43:25]wFMCommunicate OK [11:43:25]CreateOFDProtocolMessage done [11:43:25]OFDSenderStorePacket 103135 [11:43:25]StoreOFDPacket docnum=103135 [11:43:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 F1 FC 07 01 CE 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 DC 46 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 DF 92 01 00 35 04 06 00 A9 04 B1 14 03 A9 65 02 FF D2 76 00 0E 38 [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/00103135 [11:43:25]NVStorageSaveData ofd_packets/00103135 [11:43:25]File name is /storage/ofd_packets/00103135 [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 F9 01 FA [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 F9 01 00 00 00 00 00 FF 0F 0F [11:43:25]RasterBufferAndPrint [11:43:25]line Счет N : (1)160765 [11:43:25]line ИНН: 02508201610067 [11:43:25]line Контрольно-Кассовый Чек [11:43:25]line ПРОДАЖА [11:43:25]line ТРК (МРК, ГНК) : 7 [11:43:25]line Товар: 2710124130 [11:43:25]line Аи-92-К-5 [11:43:25]line 30.350 * 65.90 [11:43:25]line = 2000.07 [11:43:25]line НДС 12% НСП 1% [11:43:25]line > о реализуемом товаре [11:43:25]line ОКРУГЛЕНИЕ: -0.07 [11:43:25]line ИТОГО: 2000.00 [11:43:25]line Внесено: 2000.00 [11:43:25]line СДАЧА: 0.00 [11:43:25]line НСП 1% : 17.70 [11:43:25]line НДС 12% : 212.40 [11:43:25]line Наличными: 2000.00 [11:43:25]line Безнал.: 0.00 [11:43:25]line Место: АЗС № 38 "Партнер Нефть" [11:43:25]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [11:43:25]line СНО: Общий режим [11:43:25]line Чек 46 13.08.2024 11:43 [11:43:25]line Смена: 464 ФФД: 1.0 [11:43:25]line ЗНМ: 0300000126 [11:43:25]line РНМ: 0000000000092718 [11:43:25]line Версия ККМ: 001 [11:43:25]line ФМ: 0000000000875058 [11:43:25]line ФД: 103135 [11:43:26]line ФПД: 185837615842217 [11:43:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T114324&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103135&fm=185837615842217&tin=02508201610067®Number=0000000000092718&sum=200000 [11:43:26]OFD Sender: Processing packet 103135 [packets to send 69, broken 68] [11:43:26]ProducePacketName [11:43:26]name=ofd_packets/00103135 [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 35 30 35 38 0F 01 00 00 F1 FC 07 01 CE 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 DC 46 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 DF 92 01 00 35 04 06 00 A9 04 B1 14 03 A9 65 02 FF D2 76 00 0E 38 [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 35 30 35 38 4F 00 00 00 66 4A 47 00 59 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 DF 92 01 00 F4 03 04 00 4F ED BA 66 B6 04 01 00 00 99 B0 D4 93 C7 7E 54 65 [11:43:26]CommunicateWithHost err = 0 [11:43:26]CheckOFDResponse [11:43:26]1017 (14) - 77093643461234 [11:43:26]1041 (16) - 0000000000875058 [11:43:26]1040 (4) - 103135 [11:43:26]1012 (4) - 13.08.2024 05:21 [11:43:26]1206 (1) - 0 [11:43:26]OFD Sender: Remove packet 103135 [11:43:26]ProducePacketName [11:43:26]name=ofd_packets/00103135 [11:43:26]NVStorageDeleteData [11:43:26]Write to MH i2c: 01 00 00 24 02 26 [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 24 02 00 00 00 00 00 E4 0C 1D [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 3306 [11:43:26]MH_Cut [11:43:26]Write to MH i2c: D1 01 00 2B 02 01 FF [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 2B 02 00 FE [11:43:26]Write to MH i2c: 01 00 00 2C 02 2E [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]*** Purtial cut [11:43:27]*** Stage 1: CUTSNS_PIN = 1 [11:43:27]Read from MH i2c: 01 [11:43:27]MH_I2C_Read... [11:43:27]*** Stop cut motor [11:43:27]*** Cut end [11:43:27]Read from MH i2c: 01 07 00 [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: 01 07 00 2C 02 00 00 00 00 00 FF 0F 43 [11:43:27]process_action close_receipt done [11:43:27]requested_data is exist [11:43:27]produce_requested_data [11:43:27]requested_item fm.sn is exist - process it [11:43:27]wFMCommunicate request_size=4 [11:43:27]MH_SAM_APDU [11:43:27]CAPDU: 80 11 00 00 [11:43:27]Write to MH i2c: E2 08 00 2D 02 80 11 00 00 00 00 00 00 A9 [11:43:27]Write i2c OK [11:43:27]MH_I2C_Read... [11:43:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:27]Read from MH i2c: E2 [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: E2 17 00 [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: E2 17 00 2D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 FD [11:43:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [11:43:27]wFMCommunicate OK [11:43:27]requested_item fd.num is exist - process it [11:43:27]SAM_PROTO_GetFieldsCounters [11:43:27]wFMCommunicate request_size=4 [11:43:27]MH_SAM_APDU [11:43:27]CAPDU: 80 13 00 00 [11:43:27]Write to MH i2c: E2 08 00 2E 02 80 13 00 00 00 00 00 00 AC [11:43:27]Write i2c OK [11:43:27]MH_I2C_Read... [11:43:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:27]Read from MH i2c: E2 [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: E2 62 00 [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: E2 62 00 2E 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 DF 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [11:43:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 DF 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:43:27]wFMCommunicate OK [11:43:27]SAM_PROTO_GetFieldsCounters done [11:43:27]requested_item shift.num is exist - process it [11:43:27]requested_item shift.opened is exist - process it [11:43:27]req_shift_opened [11:43:27]FM_GetShiftState [11:43:27]SAM_PROTO_GetShiftState [11:43:27]wFMCommunicate request_size=4 [11:43:27]MH_SAM_APDU [11:43:27]CAPDU: 80 13 01 00 [11:43:27]Write to MH i2c: E2 08 00 2F 02 80 13 01 00 00 00 00 00 AE [11:43:27]Write i2c OK [11:43:27]MH_I2C_Read... [11:43:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:27]Read from MH i2c: E2 [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: E2 0E 00 [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: E2 0E 00 2F 02 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 CC [11:43:27]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [11:43:27]wFMCommunicate OK [11:43:27]SAM_PROTO_GetShiftState done [11:43:27]FM_GetShiftState done [11:43:27]req_shift_opened done [11:43:27]requested_item shift.open_date is exist - process it [11:43:27]req_shift_open_date [11:43:27]req_shift_open_date done [11:43:27]produce_requested_data done [11:43:27]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103135,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [11:43:27]process_action_free close_receipt [11:43:27]json_value_free [11:43:27]json_value_free done [11:43:27]process_json_proto returns [11:43:27]Send response to host [11:43:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103135,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [11:43:27]free response buf [11:43:27]execute_script done [11:43:27]execute_script returns [11:43:27]free content buf [11:43:27]Sock 9.Close socket [11:43:27]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:01]OFD Sender: No OFD packet to send [11:44:06]OFD Sender: No OFD packet to send [11:44:11]OFD Sender: No OFD packet to send [11:44:16]OFD Sender: No OFD packet to send [11:44:21]OFD Sender: No OFD packet to send [11:44:26]OFD Sender: No OFD packet to send [11:44:31]OFD Sender: No OFD packet to send [11:44:36]OFD Sender: No OFD packet to send [11:44:41]OFD Sender: No OFD packet to send [11:44:46]OFD Sender: No OFD packet to send [11:44:51]OFD Sender: No OFD packet to send [11:44:56]OFD Sender: No OFD packet to send [11:45:02]OFD Sender: No OFD packet to send [11:45:07]OFD Sender: No OFD packet to send [11:45:12]OFD Sender: No OFD packet to send [11:45:17]OFD Sender: No OFD packet to send [11:45:22]OFD Sender: No OFD packet to send [11:45:27]OFD Sender: No OFD packet to send [11:45:32]OFD Sender: No OFD packet to send [11:45:37]OFD Sender: No OFD packet to send [11:45:42]OFD Sender: No OFD packet to send [11:45:47]OFD Sender: No OFD packet to send [11:45:52]OFD Sender: No OFD packet to send [11:45:57]OFD Sender: No OFD packet to send [11:46:02]OFD Sender: No OFD packet to send [11:46:07]OFD Sender: No OFD packet to send [11:46:12]OFD Sender: No OFD packet to send [11:46:17]OFD Sender: No OFD packet to send [11:46:22]OFD Sender: No OFD packet to send [11:46:27]OFD Sender: No OFD packet to send [11:46:32]OFD Sender: No OFD packet to send [11:46:37]OFD Sender: No OFD packet to send [11:46:42]OFD Sender: No OFD packet to send [11:46:47]OFD Sender: No OFD packet to send [11:46:52]OFD Sender: No OFD packet to send [11:46:57]OFD Sender: No OFD packet to send [11:47:02]OFD Sender: No OFD packet to send [11:47:07]OFD Sender: No OFD packet to send [11:47:12]OFD Sender: No OFD packet to send [11:47:17]OFD Sender: No OFD packet to send [11:47:22]OFD Sender: No OFD packet to send [11:47:27]OFD Sender: No OFD packet to send [11:47:32]OFD Sender: No OFD packet to send [11:47:37]OFD Sender: No OFD packet to send [11:47:42]OFD Sender: No OFD packet to send [11:47:47]OFD Sender: No OFD packet to send [11:47:52]OFD Sender: No OFD packet to send [11:47:57]OFD Sender: No OFD packet to send [11:48:02]OFD Sender: No OFD packet to send [11:48:07]OFD Sender: No OFD packet to send [11:48:12]OFD Sender: No OFD packet to send [11:48:17]OFD Sender: No OFD packet to send [11:48:22]OFD Sender: No OFD packet to send [11:48:27]OFD Sender: No OFD packet to send [11:48:32]OFD Sender: No OFD packet to send [11:48:37]OFD Sender: No OFD packet to send [11:48:42]OFD Sender: No OFD packet to send [11:48:47]OFD Sender: No OFD packet to send [11:48:52]OFD Sender: No OFD packet to send [11:48:57]OFD Sender: No OFD packet to send [11:49:02]OFD Sender: No OFD packet to send [11:49:07]OFD Sender: No OFD packet to send [11:49:12]OFD Sender: No OFD packet to send [11:49:17]OFD Sender: No OFD packet to send [11:49:22]OFD Sender: No OFD packet to send [11:49:27]OFD Sender: No OFD packet to send [11:49:32]OFD Sender: No OFD packet to send [11:49:37]OFD Sender: No OFD packet to send [11:49:42]OFD Sender: No OFD packet to send [11:49:47]OFD Sender: No OFD packet to send [11:49:52]OFD Sender: No OFD packet to send [11:49:57]OFD Sender: No OFD packet to send [11:50:02]OFD Sender: No OFD packet to send [11:50:07]OFD Sender: No OFD packet to send [11:50:12]OFD Sender: No OFD packet to send [11:50:17]OFD Sender: No OFD packet to send [11:50:22]OFD Sender: No OFD packet to send [11:50:27]OFD Sender: No OFD packet to send [11:50:32]OFD Sender: No OFD packet to send [11:50:37]OFD Sender: No OFD packet to send [11:50:42]OFD Sender: No OFD packet to send [11:50:47]OFD Sender: No OFD packet to send [11:50:52]OFD Sender: No OFD packet to send [11:50:57]OFD Sender: No OFD packet to send [11:51:02]OFD Sender: No OFD packet to send [11:51:07]OFD Sender: No OFD packet to send [11:51:12]OFD Sender: No OFD packet to send [11:51:17]OFD Sender: No OFD packet to send [11:51:22]OFD Sender: No OFD packet to send [11:51:27]OFD Sender: No OFD packet to send [11:51:32]OFD Sender: No OFD packet to send [11:51:37]OFD Sender: No OFD packet to send [11:51:42]OFD Sender: No OFD packet to send [11:51:47]OFD Sender: No OFD packet to send [11:51:52]OFD Sender: No OFD packet to send [11:51:57]OFD Sender: No OFD packet to send [11:52:02]OFD Sender: No OFD packet to send [11:52:07]OFD Sender: No OFD packet to send [11:52:12]OFD Sender: No OFD packet to send [11:52:17]OFD Sender: No OFD packet to send [11:52:22]OFD Sender: No OFD packet to send [11:52:27]OFD Sender: No OFD packet to send [11:52:32]OFD Sender: No OFD packet to send [11:52:37]OFD Sender: No OFD packet to send [11:52:42]OFD Sender: No OFD packet to send [11:52:47]OFD Sender: No OFD packet to send [11:52:52]OFD Sender: No OFD packet to send [11:52:57]OFD Sender: No OFD packet to send [11:53:02]OFD Sender: No OFD packet to send [11:53:07]OFD Sender: No OFD packet to send [11:53:12]OFD Sender: No OFD packet to send [11:53:17]OFD Sender: No OFD packet to send [11:53:22]OFD Sender: No OFD packet to send [11:53:27]OFD Sender: No OFD packet to send [11:53:32]OFD Sender: No OFD packet to send [11:53:37]OFD Sender: No OFD packet to send [11:53:42]OFD Sender: No OFD packet to send [11:53:47]OFD Sender: No OFD packet to send [11:53:52]OFD Sender: No OFD packet to send [11:53:57]OFD Sender: No OFD packet to send [11:54:02]OFD Sender: No OFD packet to send [11:54:07]OFD Sender: No OFD packet to send [11:54:12]OFD Sender: No OFD packet to send [11:54:17]OFD Sender: No OFD packet to send [11:54:22]OFD Sender: No OFD packet to send [11:54:27]OFD Sender: No OFD packet to send [11:54:32]OFD Sender: No OFD packet to send [11:54:37]OFD Sender: No OFD packet to send [11:54:42]OFD Sender: No OFD packet to send [11:54:47]OFD Sender: No OFD packet to send [11:54:52]OFD Sender: No OFD packet to send [11:54:57]OFD Sender: No OFD packet to send [11:55:02]OFD Sender: No OFD packet to send [11:55:07]OFD Sender: No OFD packet to send [11:55:12]OFD Sender: No OFD packet to send [11:55:17]OFD Sender: No OFD packet to send [11:55:22]OFD Sender: No OFD packet to send [11:55:27]OFD Sender: No OFD packet to send [11:55:32]OFD Sender: No OFD packet to send [11:55:37]OFD Sender: No OFD packet to send [11:55:42]OFD Sender: No OFD packet to send [11:55:47]OFD Sender: No OFD packet to send [11:55:52]OFD Sender: No OFD packet to send [11:55:57]OFD Sender: No OFD packet to send [11:56:02]OFD Sender: No OFD packet to send [11:56:07]OFD Sender: No OFD packet to send [11:56:12]OFD Sender: No OFD packet to send [11:56:17]OFD Sender: No OFD packet to send [11:56:22]OFD Sender: No OFD packet to send [11:56:27]OFD Sender: No OFD packet to send [11:56:32]OFD Sender: No OFD packet to send [11:56:37]OFD Sender: No OFD packet to send [11:56:42]OFD Sender: No OFD packet to send [11:56:47]OFD Sender: No OFD packet to send [11:56:52]OFD Sender: No OFD packet to send [11:56:57]OFD Sender: No OFD packet to send [11:57:02]OFD Sender: No OFD packet to send [11:57:07]OFD Sender: No OFD packet to send [11:57:12]OFD Sender: No OFD packet to send [11:57:17]OFD Sender: No OFD packet to send [11:57:22]OFD Sender: No OFD packet to send [11:57:27]OFD Sender: No OFD packet to send [11:57:32]OFD Sender: No OFD packet to send [11:57:37]OFD Sender: No OFD packet to send [11:57:42]OFD Sender: No OFD packet to send [11:57:47]OFD Sender: No OFD packet to send [11:57:52]OFD Sender: No OFD packet to send [11:57:57]OFD Sender: No OFD packet to send [11:58:02]OFD Sender: No OFD packet to send [11:58:07]OFD Sender: No OFD packet to send [11:58:12]OFD Sender: No OFD packet to send [11:58:17]OFD Sender: No OFD packet to send [11:58:22]OFD Sender: No OFD packet to send [11:58:27]OFD Sender: No OFD packet to send [11:58:32]OFD Sender: No OFD packet to send [11:58:37]OFD Sender: No OFD packet to send [11:58:42]OFD Sender: No OFD packet to send [11:58:47]OFD Sender: No OFD packet to send [11:58:52]OFD Sender: No OFD packet to send [11:58:57]OFD Sender: No OFD packet to send [11:59:02]OFD Sender: No OFD packet to send [11:59:07]OFD Sender: No OFD packet to send [11:59:12]OFD Sender: No OFD packet to send [11:59:17]OFD Sender: No OFD packet to send [11:59:22]OFD Sender: No OFD packet to send [11:59:27]OFD Sender: No OFD packet to send [11:59:32]OFD Sender: No OFD packet to send [11:59:37]OFD Sender: No OFD packet to send [11:59:42]OFD Sender: No OFD packet to send [11:59:47]OFD Sender: No OFD packet to send [11:59:52]OFD Sender: No OFD packet to send [11:59:57]OFD Sender: No OFD packet to send [12:00:02]OFD Sender: No OFD packet to send [12:00:07]OFD Sender: No OFD packet to send [12:00:12]OFD Sender: No OFD packet to send [12:00:17]OFD Sender: No OFD packet to send [12:00:22]OFD Sender: No OFD packet to send [12:00:27]OFD Sender: No OFD packet to send [12:00:32]OFD Sender: No OFD packet to send [12:00:37]OFD Sender: No OFD packet to send [12:00:42]OFD Sender: No OFD packet to send [12:00:47]OFD Sender: No OFD packet to send [12:00:52]OFD Sender: No OFD packet to send [12:00:57]OFD Sender: No OFD packet to send [12:01:02]OFD Sender: No OFD packet to send [12:01:07]OFD Sender: No OFD packet to send [12:01:12]OFD Sender: No OFD packet to send [12:01:17]OFD Sender: No OFD packet to send [12:01:22]OFD Sender: No OFD packet to send [12:01:27]OFD Sender: No OFD packet to send [12:01:32]OFD Sender: No OFD packet to send [12:01:37]OFD Sender: No OFD packet to send [12:01:42]OFD Sender: No OFD packet to send [12:01:47]OFD Sender: No OFD packet to send [12:01:53]OFD Sender: No OFD packet to send [12:01:58]OFD Sender: No OFD packet to send [12:02:03]OFD Sender: No OFD packet to send [12:02:08]OFD Sender: No OFD packet to send [12:02:13]OFD Sender: No OFD packet to send [12:02:18]OFD Sender: No OFD packet to send [12:02:23]OFD Sender: No OFD packet to send [12:02:28]OFD Sender: No OFD packet to send [12:02:33]OFD Sender: No OFD packet to send [12:02:38]OFD Sender: No OFD packet to send [12:02:43]OFD Sender: No OFD packet to send [12:02:48]OFD Sender: No OFD packet to send [12:02:53]OFD Sender: No OFD packet to send [12:02:58]OFD Sender: No OFD packet to send [12:03:03]OFD Sender: No OFD packet to send [12:03:08]OFD Sender: No OFD packet to send [12:03:13]OFD Sender: No OFD packet to send [12:03:18]OFD Sender: No OFD packet to send [12:03:23]OFD Sender: No OFD packet to send [12:03:28]OFD Sender: No OFD packet to send [12:03:33]OFD Sender: No OFD packet to send [12:03:38]OFD Sender: No OFD packet to send [12:03:43]OFD Sender: No OFD packet to send [12:03:48]OFD Sender: No OFD packet to send [12:03:53]OFD Sender: No OFD packet to send [12:03:58]OFD Sender: No OFD packet to send [12:04:03]OFD Sender: No OFD packet to send [12:04:08]OFD Sender: No OFD packet to send [12:04:13]OFD Sender: No OFD packet to send [12:04:18]OFD Sender: No OFD packet to send [12:04:23]OFD Sender: No OFD packet to send [12:04:28]OFD Sender: No OFD packet to send [12:04:33]OFD Sender: No OFD packet to send [12:04:38]OFD Sender: No OFD packet to send [12:04:43]OFD Sender: No OFD packet to send [12:04:48]OFD Sender: No OFD packet to send [12:04:53]OFD Sender: No OFD packet to send [12:04:58]OFD Sender: No OFD packet to send [12:05:03]OFD Sender: No OFD packet to send [12:05:08]OFD Sender: No OFD packet to send [12:05:13]OFD Sender: No OFD packet to send [12:05:18]OFD Sender: No OFD packet to send [12:05:23]OFD Sender: No OFD packet to send [12:05:28]OFD Sender: No OFD packet to send [12:05:33]OFD Sender: No OFD packet to send [12:05:38]OFD Sender: No OFD packet to send [12:05:43]OFD Sender: No OFD packet to send [12:05:48]OFD Sender: No OFD packet to send [12:05:53]OFD Sender: No OFD packet to send [12:05:58]OFD Sender: No OFD packet to send [12:06:03]OFD Sender: No OFD packet to send [12:06:08]OFD Sender: No OFD packet to send [12:06:13]OFD Sender: No OFD packet to send [12:06:18]OFD Sender: No OFD packet to send [12:06:23]OFD Sender: No OFD packet to send [12:06:28]OFD Sender: No OFD packet to send [12:06:33]OFD Sender: No OFD packet to send [12:06:38]OFD Sender: No OFD packet to send [12:06:43]OFD Sender: No OFD packet to send [12:06:48]OFD Sender: No OFD packet to send [12:06:53]OFD Sender: No OFD packet to send [12:06:58]OFD Sender: No OFD packet to send [12:07:03]OFD Sender: No OFD packet to send [12:07:08]OFD Sender: No OFD packet to send [12:07:13]OFD Sender: No OFD packet to send [12:07:18]OFD Sender: No OFD packet to send [12:07:23]OFD Sender: No OFD packet to send [12:07:28]OFD Sender: No OFD packet to send [12:07:33]OFD Sender: No OFD packet to send [12:07:38]OFD Sender: No OFD packet to send [12:07:43]OFD Sender: No OFD packet to send [12:07:48]OFD Sender: No OFD packet to send [12:07:53]OFD Sender: No OFD packet to send [12:07:58]OFD Sender: No OFD packet to send [12:08:03]OFD Sender: No OFD packet to send [12:08:08]OFD Sender: No OFD packet to send [12:08:13]OFD Sender: No OFD packet to send [12:08:18]OFD Sender: No OFD packet to send [12:08:23]OFD Sender: No OFD packet to send [12:08:28]OFD Sender: No OFD packet to send [12:08:33]OFD Sender: No OFD packet to send [12:08:38]OFD Sender: No OFD packet to send [12:08:43]OFD Sender: No OFD packet to send [12:08:48]OFD Sender: No OFD packet to send [12:08:53]OFD Sender: No OFD packet to send [12:08:58]OFD Sender: No OFD packet to send [12:09:03]OFD Sender: No OFD packet to send [12:09:08]OFD Sender: No OFD packet to send [12:09:13]OFD Sender: No OFD packet to send [12:09:18]OFD Sender: No OFD packet to send [12:09:23]OFD Sender: No OFD packet to send [12:09:28]OFD Sender: No OFD packet to send [12:09:33]OFD Sender: No OFD packet to send [12:09:38]OFD Sender: No OFD packet to send [12:09:43]OFD Sender: No OFD packet to send [12:09:48]OFD Sender: No OFD packet to send [12:09:53]OFD Sender: No OFD packet to send [12:09:58]OFD Sender: No OFD packet to send [12:10:03]OFD Sender: No OFD packet to send [12:10:08]OFD Sender: No OFD packet to send [12:10:13]OFD Sender: No OFD packet to send [12:10:18]OFD Sender: No OFD packet to send [12:10:23]OFD Sender: No OFD packet to send [12:10:28]OFD Sender: No OFD packet to send [12:10:33]OFD Sender: No OFD packet to send [12:10:38]OFD Sender: No OFD packet to send [12:10:43]OFD Sender: No OFD packet to send [12:10:48]OFD Sender: No OFD packet to send [12:10:53]OFD Sender: No OFD packet to send [12:10:58]OFD Sender: No OFD packet to send [12:11:03]OFD Sender: No OFD packet to send [12:11:08]OFD Sender: No OFD packet to send [12:11:13]OFD Sender: No OFD packet to send [12:11:18]OFD Sender: No OFD packet to send [12:11:23]OFD Sender: No OFD packet to send [12:11:28]OFD Sender: No OFD packet to send [12:11:33]OFD Sender: No OFD packet to send [12:11:38]OFD Sender: No OFD packet to send [12:11:43]OFD Sender: No OFD packet to send [12:11:48]OFD Sender: No OFD packet to send [12:11:53]OFD Sender: No OFD packet to send [12:11:58]OFD Sender: No OFD packet to send [12:12:03]OFD Sender: No OFD packet to send [12:12:08]OFD Sender: No OFD packet to send [12:12:13]OFD Sender: No OFD packet to send [12:12:18]OFD Sender: No OFD packet to send [12:12:23]OFD Sender: No OFD packet to send [12:12:28]OFD Sender: No OFD packet to send [12:12:33]OFD Sender: No OFD packet to send [12:12:38]OFD Sender: No OFD packet to send [12:12:43]OFD Sender: No OFD packet to send [12:12:48]OFD Sender: No OFD packet to send [12:12:53]OFD Sender: No OFD packet to send [12:12:58]OFD Sender: No OFD packet to send [12:13:03]OFD Sender: No OFD packet to send [12:13:08]OFD Sender: No OFD packet to send [12:13:13]OFD Sender: No OFD packet to send [12:13:18]OFD Sender: No OFD packet to send [12:13:23]OFD Sender: No OFD packet to send [12:13:28]OFD Sender: No OFD packet to send [12:13:33]OFD Sender: No OFD packet to send [12:13:38]OFD Sender: No OFD packet to send [12:13:40]accept exits with 7 [12:13:40]New connection [12:13:40]New thread 3066686820 created [12:13:40]Thread 3066830180 joined [12:13:40]Waiting for new connection... [12:13:40] Sock 7.Parse request [12:13:40]Sock 7.Check first char [12:13:40]Sock 7.First char is OK [12:13:40]request: POST /json_proto HTTP/1.0 [12:13:40]Method: POST [12:13:40]URL: /json_proto [12:13:40]Method is POST - this is cgi request [12:13:40]url: /json_proto [12:13:40]query_string will be loaded in cgi processing [12:13:40]execute_cgi json_proto POST (null) [12:13:40]execute_cgi path=json_proto method=POST [12:13:40]POST find Content-Length [12:13:40]Host: 172.17.58.3:8080 [12:13:40]Content-Length: 676 [12:13:40]Content-Type: application/json [12:13:40] [12:13:40]POST finish read [12:13:40]Found Content-Length = 676 [12:13:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160766", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 9.110, "sum" : 600.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:40]execute_script... [12:13: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)160766", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 9.110, "sum" : 600.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:40]POST & json_proto [12:13:40]process_json_proto [12:13:40]json parsed OK: [12:13:40]protocol is kg_v1.0 [12:13:40]action value=close_receipt [12:13:40]process_action close_receipt [12:13:40]cmd_close_receipt [12:13:40]MH_GetDate [12:13:40]Write to MH i2c: F0 00 00 30 02 21 [12:13:40]Write i2c OK [12:13:40]MH_I2C_Read... [12:13:40]Read from MH i2c: F0 [12:13:40]MH_I2C_Read... [12:13:40]Read from MH i2c: F0 09 00 [12:13:40]MH_I2C_Read... [12:13:40]Read from MH i2c: F0 09 00 30 02 00 F4 4D BB 66 DC E4 6D 64 1D [12:13:40]GetLastDocTimeStamp 1723549404 [12:13:40]current date 1723551220 [12:13:40]FM_GetShiftState [12:13:40]SAM_PROTO_GetShiftState [12:13:40]wFMCommunicate request_size=4 [12:13:40]MH_SAM_APDU [12:13:40]CAPDU: 80 13 01 00 [12:13:40]Write to MH i2c: E2 08 00 31 02 80 13 01 00 00 00 00 00 B0 [12:13:40]Write i2c OK [12:13:40]MH_I2C_Read... [12:13:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:40]Read from MH i2c: E2 [12:13:40]MH_I2C_Read... [12:13:40]Read from MH i2c: E2 0E 00 [12:13:40]MH_I2C_Read... [12:13:40]Read from MH i2c: E2 0E 00 31 02 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 CE [12:13:40]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [12:13:40]wFMCommunicate OK [12:13:40]SAM_PROTO_GetShiftState done [12:13:40]FM_GetShiftState done [12:13:40]opened in 1723506770 [12:13:40]opened+sec_in_day 1723593170 [12:13:40]quantity*price = 60034 [12:13:40]sum+1 = 60036 [12:13:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 47 13.08.2024 12:13 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103136 ФПД: 140803044498292 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T121340&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103136&fm=140803044498292&tin=02508201610067®Number=0000000000092718&sum=60000 [12:13:41]StoreToDocumentArchive [12:13:41]shift 464 fd 103136 [12:13:41]save to /storage/0464/doc_00103136 [12:13:41]save last doc name /storage/0464/doc_00103136 to /storage/kkm_last_doc_name [12:13:41]save OK [12:13:41]Clear old archive folders... [12:13:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:13:41]tlvbuf is 0152A9A0 [12:13:41]SAM_PROTO_ClearQueue [12:13:41]wFMCommunicate request_size=4 [12:13:41]MH_SAM_APDU [12:13:41]CAPDU: 80 09 00 00 [12:13:41]Write to MH i2c: E2 08 00 3E 02 80 09 00 00 00 00 00 00 B2 [12:13:41]Write i2c OK [12:13:41]MH_I2C_Read... [12:13:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:13:41]Read from MH i2c: E2 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: E2 03 00 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: E2 03 00 3E 02 00 90 00 B4 [12:13:41]RAPDU: 90 00 [12:13:41]wFMCommunicate OK [12:13:41]SAM_PROTO_ClearQueue done [12:13:41]KKMCreateOFDPacket [12:13:41]OFDProtocolAddRootSTLVToBuf [12:13:41]FM_MakeSignedData [12:13:41]FM_MakeSignedData [12:13:41]SAM_PROTO_SignData [12:13:41]wFMCommunicate request_size=4 [12:13:41]MH_SAM_APDU [12:13:41]CAPDU: 80 0D 01 02 [12:13:41]Write to MH i2c: E2 08 00 3F 02 80 0D 01 02 00 00 00 00 BA [12:13:41]Write i2c OK [12:13:41]MH_I2C_Read... [12:13:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:13:41]Read from MH i2c: E2 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: E2 03 00 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: E2 03 00 3F 02 00 90 00 B5 [12:13:41]RAPDU: 90 00 [12:13:41]wFMCommunicate OK [12:13:41]wFMCommunicate request_size=255 [12:13:41]MH_SAM_APDU [12:13: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 96 23 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 F4 4D BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 E0 92 01 00 35 04 06 00 80 [12:13:41]Write to MH i2c: E2 02 01 40 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 96 23 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 F4 4D BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 E0 92 01 00 35 04 06 00 80 00 00 C1 [12:13:41]Write i2c OK [12:13:41]MH_I2C_Read... [12:13:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:41]Read from MH i2c: E2 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: E2 03 00 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: E2 03 00 40 02 00 90 00 B6 [12:13:41]RAPDU: 90 00 [12:13:41]wFMCommunicate OK [12:13:41]wFMCommunicate request_size=10 [12:13:41]MH_SAM_APDU [12:13:41]CAPDU: 80 0D 02 02 05 0F 43 73 5B 74 [12:13:41]Write to MH i2c: E2 0D 00 41 02 80 0D 02 02 05 00 0F 43 73 5B 74 00 00 5B [12:13:41]Write i2c OK [12:13:41]MH_I2C_Read... [12:13:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:41]Read from MH i2c: E2 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: E2 03 00 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: E2 03 00 41 02 00 90 00 B7 [12:13:41]RAPDU: 90 00 [12:13:41]wFMCommunicate OK [12:13:41]wFMCommunicate request_size=4 [12:13:41]MH_SAM_APDU [12:13:41]CAPDU: 80 0D 03 02 [12:13:41]Write to MH i2c: E2 08 00 42 02 80 0D 03 02 00 00 00 00 BF [12:13:41]Write i2c OK [12:13:41]MH_I2C_Read... [12:13:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:13:41]Read from MH i2c: E2 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: E2 0B 00 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: E2 0B 00 42 02 00 0C ED B9 70 72 21 B0 04 90 00 29 [12:13:41]RAPDU: 0C ED B9 70 72 21 B0 04 90 00 [12:13:41]wFMCommunicate OK [12:13:41]SAM_PROTO_SignData done [12:13:41]FM_MakeSignedData done [12:13:41]CreateOFDProtocolMessage [12:13:41]wFMCommunicate request_size=4 [12:13:41]MH_SAM_APDU [12:13:41]CAPDU: 80 11 00 00 [12:13:41]Write to MH i2c: E2 08 00 43 02 80 11 00 00 00 00 00 00 BF [12:13:41]Write i2c OK [12:13:41]MH_I2C_Read... [12:13:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:41]Read from MH i2c: E2 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: E2 17 00 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: E2 17 00 43 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 13 [12:13:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [12:13:41]wFMCommunicate OK [12:13:41]CreateOFDProtocolMessage done [12:13:41]OFDSenderStorePacket 103136 [12:13:41]StoreOFDPacket docnum=103136 [12:13:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 15 0C 07 01 11 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 96 23 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 F4 4D BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 E0 92 01 00 35 04 06 00 80 0F 43 73 5B 74 0C ED B9 70 72 21 B0 04 [12:13:41]CheckFolder [12:13:41]dirname=/storage/ofd_packets [12:13:41]CheckFolder done [12:13:41]ProducePacketName [12:13:41]name=ofd_packets/00103136 [12:13:41]NVStorageSaveData ofd_packets/00103136 [12:13:41]File name is /storage/ofd_packets/00103136 [12:13:41]Write 301 bytes [12:13:41]NVStorageSaveData done [12:13:41]OFDSenderStorePacket done [12:13:41]KKMCreateOFDPacket done [12:13:41]NVStorageSaveData kkm_last_timestamp [12:13:41]File name is /storage/kkm_last_timestamp [12:13:41]Write 4 bytes [12:13:41]NVStorageSaveData done [12:13:41]ExternCall_PrintAddStr [12:13:41]wPrintStart [12:13:41]Write to MH i2c: 01 00 00 44 02 46 [12:13:41]Write i2c OK [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: 01 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: 01 07 00 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: 01 07 00 44 02 00 00 00 00 00 FF 0F 5B [12:13:41]RasterBufferAndPrint [12:13:41]line Счет N : (1)160766 [12:13:41]line ИНН: 02508201610067 [12:13:41]line Контрольно-Кассовый Чек [12:13:41]line ПРОДАЖА [12:13:41]line ТРК (МРК, ГНК) : 3 [12:13:41]line Товар: 2710124130 [12:13:41]line Аи-92-К-5 [12:13:41]line 9.110 * 65.90 [12:13:41]line = 600.35 [12:13:41]line НДС 12% НСП 1% [12:13:41]line > о реализуемом товаре [12:13:41]line ОКРУГЛЕНИЕ: -0.35 [12:13:41]line ИТОГО: 600.00 [12:13:41]line Внесено: 600.00 [12:13:41]line СДАЧА: 0.00 [12:13:41]line НСП 1% : 5.31 [12:13:41]line НДС 12% : 63.75 [12:13:41]line Наличными: 600.00 [12:13:41]line Безнал.: 0.00 [12:13:41]line Место: АЗС № 38 "Партнер Нефть" [12:13:41]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [12:13:41]line СНО: Общий режим [12:13:41]line Чек 47 13.08.2024 12:13 [12:13:41]line Смена: 464 ФФД: 1.0 [12:13:41]line ЗНМ: 0300000126 [12:13:41]line РНМ: 0000000000092718 [12:13:41]line Версия ККМ: 001 [12:13:41]line ФМ: 0000000000875058 [12:13:41]line ФД: 103136 [12:13:41]line ФПД: 140803044498292 [12:13:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T121340&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103136&fm=140803044498292&tin=02508201610067®Number=0000000000092718&sum=60000 [12:13:42]OFD Sender: Processing packet 103136 [packets to send 69, broken 68] [12:13:42]ProducePacketName [12:13:42]name=ofd_packets/00103136 [12:13:42]OFD Sender: To server: pG, [12:13:42]CommunicateWithHost lk.salyk.kg:30040 [12:13:42]ConnectInit lk.salyk.kg [12:13:42]written 0, free lines is 4095 [12:13:42]Connected sock=10 [12:13:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 15 0C 07 01 11 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 96 23 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 F4 4D BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 E0 92 01 00 35 04 06 00 80 0F 43 73 5B 74 0C ED B9 70 72 21 B0 04 [12:13:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 9B 27 47 00 7B 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 E0 92 01 00 F4 03 04 00 67 F4 BA 66 B6 04 01 00 00 2C BE 0A 03 73 2D 2C CF [12:13:42]CommunicateWithHost err = 0 [12:13:42]CheckOFDResponse [12:13:42]1017 (14) - 77093643461234 [12:13:42]1041 (16) - 0000000000875058 [12:13:42]1040 (4) - 103136 [12:13:42]1012 (4) - 13.08.2024 05:51 [12:13:42]1206 (1) - 0 [12:13:42]OFD Sender: Remove packet 103136 [12:13:42]ProducePacketName [12:13:42]name=ofd_packets/00103136 [12:13:42]NVStorageDeleteData [12:13:42]Write to MH i2c: 01 00 00 6F 02 71 [12:13:42]Write i2c OK [12:13:42]MH_I2C_Read... [12:13:42]Read from MH i2c: 01 [12:13:42]MH_I2C_Read... [12:13:42]Read from MH i2c: 01 07 00 [12:13:42]MH_I2C_Read... [12:13:42]Read from MH i2c: 01 07 00 6F 02 00 00 00 00 00 E4 0C 68 [12:13:42]RasterBufferAndPrint [12:13:42]line [12:13:42]line [12:13:42]line [12:13:42]line [12:13:42]line [12:13:42]written 0, free lines is 3306 [12:13:42]MH_Cut [12:13:42]Write to MH i2c: D1 01 00 76 02 01 4A [12:13:42]Write i2c OK [12:13:42]MH_I2C_Read... [12:13:42]Read from MH i2c: D1 [12:13:42]MH_I2C_Read... [12:13:42]Read from MH i2c: D1 01 00 [12:13:42]MH_I2C_Read... [12:13:42]Read from MH i2c: D1 01 00 76 02 00 49 [12:13:42]Write to MH i2c: 01 00 00 77 02 79 [12:13:42]Write i2c OK [12:13:42]MH_I2C_Read... [12:13:43]OFD Sender: No OFD packet to send [12:13:43]*** Cut start [12:13:43]*** Purtial cut [12:13:43]*** CUTSNS_PIN = 0 [12:13:43]*** Stage 1: CUTSNS_PIN = 1 [12:13:45]Read from MH i2c: 01 [12:13:45]MH_I2C_Read... [12:13:45]*** Stop cut motor [12:13:45]*** Cut end [12:13:45]Read from MH i2c: 01 07 00 [12:13:45]MH_I2C_Read... [12:13:45]Read from MH i2c: 01 07 00 77 02 00 00 00 00 00 FF 0F 8E [12:13:45]process_action close_receipt done [12:13:45]requested_data is exist [12:13:45]produce_requested_data [12:13:45]requested_item fm.sn is exist - process it [12:13:45]wFMCommunicate request_size=4 [12:13:45]MH_SAM_APDU [12:13:45]CAPDU: 80 11 00 00 [12:13:45]Write to MH i2c: E2 08 00 78 02 80 11 00 00 00 00 00 00 F4 [12:13:45]Write i2c OK [12:13:45]MH_I2C_Read... [12:13:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:45]Read from MH i2c: E2 [12:13:45]MH_I2C_Read... [12:13:45]Read from MH i2c: E2 17 00 [12:13:45]MH_I2C_Read... [12:13:45]Read from MH i2c: E2 17 00 78 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 48 [12:13:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [12:13:45]wFMCommunicate OK [12:13:45]requested_item fd.num is exist - process it [12:13:45]SAM_PROTO_GetFieldsCounters [12:13:45]wFMCommunicate request_size=4 [12:13:45]MH_SAM_APDU [12:13:45]CAPDU: 80 13 00 00 [12:13:45]Write to MH i2c: E2 08 00 79 02 80 13 00 00 00 00 00 00 F7 [12:13:45]Write i2c OK [12:13:45]MH_I2C_Read... [12:13:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:13:45]Read from MH i2c: E2 [12:13:45]MH_I2C_Read... [12:13:45]Read from MH i2c: E2 62 00 [12:13:45]MH_I2C_Read... [12:13:45]Read from MH i2c: E2 62 00 79 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 E0 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [12:13:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 E0 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:13:45]wFMCommunicate OK [12:13:45]SAM_PROTO_GetFieldsCounters done [12:13:45]requested_item shift.num is exist - process it [12:13:45]requested_item shift.opened is exist - process it [12:13:45]req_shift_opened [12:13:45]FM_GetShiftState [12:13:45]SAM_PROTO_GetShiftState [12:13:45]wFMCommunicate request_size=4 [12:13:45]MH_SAM_APDU [12:13:45]CAPDU: 80 13 01 00 [12:13:45]Write to MH i2c: E2 08 00 7A 02 80 13 01 00 00 00 00 00 F9 [12:13:45]Write i2c OK [12:13:45]MH_I2C_Read... [12:13:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:45]Read from MH i2c: E2 [12:13:45]MH_I2C_Read... [12:13:45]Read from MH i2c: E2 0E 00 [12:13:45]MH_I2C_Read... [12:13:45]Read from MH i2c: E2 0E 00 7A 02 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 17 [12:13:45]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [12:13:45]wFMCommunicate OK [12:13:45]SAM_PROTO_GetShiftState done [12:13:45]FM_GetShiftState done [12:13:45]req_shift_opened done [12:13:45]requested_item shift.open_date is exist - process it [12:13:45]req_shift_open_date [12:13:45]req_shift_open_date done [12:13:45]produce_requested_data done [12:13:45]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103136,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [12:13:45]process_action_free close_receipt [12:13:45]json_value_free [12:13:45]json_value_free done [12:13:45]process_json_proto returns [12:13:45]Send response to host [12:13:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103136,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [12:13:45]free response buf [12:13:45]execute_script done [12:13:45]execute_script returns [12:13:45]free content buf [12:13:45]Sock 7.Close socket [12:13:45]Sock 7.Thread stoped [12:13:48]OFD Sender: No OFD packet to send [12:13:53]OFD Sender: No OFD packet to send [12:13:58]OFD Sender: No OFD packet to send [12:14:03]OFD Sender: No OFD packet to send [12:14:08]OFD Sender: No OFD packet to send [12:14:13]OFD Sender: No OFD packet to send [12:14:18]OFD Sender: No OFD packet to send [12:14:23]OFD Sender: No OFD packet to send [12:14:28]OFD Sender: No OFD packet to send [12:14:33]OFD Sender: No OFD packet to send [12:14:38]OFD Sender: No OFD packet to send [12:14:43]OFD Sender: No OFD packet to send [12:14:48]OFD Sender: No OFD packet to send [12:14:53]OFD Sender: No OFD packet to send [12:14:58]OFD Sender: No OFD packet to send [12:15:03]OFD Sender: No OFD packet to send [12:15:08]OFD Sender: No OFD packet to send [12:15:13]OFD Sender: No OFD packet to send [12:15:18]OFD Sender: No OFD packet to send [12:15:23]OFD Sender: No OFD packet to send [12:15:28]OFD Sender: No OFD packet to send [12:15:33]OFD Sender: No OFD packet to send [12:15:38]OFD Sender: No OFD packet to send [12:15:43]OFD Sender: No OFD packet to send [12:15:48]OFD Sender: No OFD packet to send [12:15:53]OFD Sender: No OFD packet to send [12:15:58]OFD Sender: No OFD packet to send [12:16:03]OFD Sender: No OFD packet to send [12:16:08]OFD Sender: No OFD packet to send [12:16:13]OFD Sender: No OFD packet to send [12:16:18]OFD Sender: No OFD packet to send [12:16:23]OFD Sender: No OFD packet to send [12:16:28]OFD Sender: No OFD packet to send [12:16:33]OFD Sender: No OFD packet to send [12:16:38]OFD Sender: No OFD packet to send [12:16:43]OFD Sender: No OFD packet to send [12:16:48]OFD Sender: No OFD packet to send [12:16:53]OFD Sender: No OFD packet to send [12:16:58]OFD Sender: No OFD packet to send [12:17:03]OFD Sender: No OFD packet to send [12:17:08]OFD Sender: No OFD packet to send [12:17:13]OFD Sender: No OFD packet to send [12:17:18]OFD Sender: No OFD packet to send [12:17:23]OFD Sender: No OFD packet to send [12:17:28]OFD Sender: No OFD packet to send [12:17:33]OFD Sender: No OFD packet to send [12:17:38]OFD Sender: No OFD packet to send [12:17:43]OFD Sender: No OFD packet to send [12:17:48]OFD Sender: No OFD packet to send [12:17:53]OFD Sender: No OFD packet to send [12:17:58]OFD Sender: No OFD packet to send [12:18:03]OFD Sender: No OFD packet to send [12:18:08]OFD Sender: No OFD packet to send [12:18:13]OFD Sender: No OFD packet to send [12:18:18]OFD Sender: No OFD packet to send [12:18:23]OFD Sender: No OFD packet to send [12:18:28]OFD Sender: No OFD packet to send [12:18:33]OFD Sender: No OFD packet to send [12:18:38]OFD Sender: No OFD packet to send [12:18:43]OFD Sender: No OFD packet to send [12:18:48]OFD Sender: No OFD packet to send [12:18:53]OFD Sender: No OFD packet to send [12:18:58]OFD Sender: No OFD packet to send [12:19:03]OFD Sender: No OFD packet to send [12:19:08]OFD Sender: No OFD packet to send [12:19:13]OFD Sender: No OFD packet to send [12:19:18]OFD Sender: No OFD packet to send [12:19:23]OFD Sender: No OFD packet to send [12:19:28]OFD Sender: No OFD packet to send [12:19:33]OFD Sender: No OFD packet to send [12:19:38]OFD Sender: No OFD packet to send [12:19:43]OFD Sender: No OFD packet to send [12:19:48]OFD Sender: No OFD packet to send [12:19:53]OFD Sender: No OFD packet to send [12:19:58]OFD Sender: No OFD packet to send [12:20:03]OFD Sender: No OFD packet to send [12:20:08]OFD Sender: No OFD packet to send [12:20:13]OFD Sender: No OFD packet to send [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:58]OFD Sender: No OFD packet to send [12:23:03]OFD Sender: No OFD packet to send [12:23:08]OFD Sender: No OFD packet to send [12:23:13]OFD Sender: No OFD packet to send [12:23:18]OFD Sender: No OFD packet to send [12:23:23]OFD Sender: No OFD packet to send [12:23:28]OFD Sender: No OFD packet to send [12:23:33]OFD Sender: No OFD packet to send [12:23:38]OFD Sender: No OFD packet to send [12:23:43]OFD Sender: No OFD packet to send [12:23:48]OFD Sender: No OFD packet to send [12:23:53]OFD Sender: No OFD packet to send [12:23:58]OFD Sender: No OFD packet to send [12:24:03]OFD Sender: No OFD packet to send [12:24:08]OFD Sender: No OFD packet to send [12:24:13]OFD Sender: No OFD packet to send [12:24:18]OFD Sender: No OFD packet to send [12:24:23]OFD Sender: No OFD packet to send [12:24:28]OFD Sender: No OFD packet to send [12:24:33]OFD Sender: No OFD packet to send [12:24:38]OFD Sender: No OFD packet to send [12:24:43]OFD Sender: No OFD packet to send [12:24:48]OFD Sender: No OFD packet to send [12:24:53]OFD Sender: No OFD packet to send [12:24:58]OFD Sender: No OFD packet to send [12:25:03]OFD Sender: No OFD packet to send [12:25:08]OFD Sender: No OFD packet to send [12:25:13]OFD Sender: No OFD packet to send [12:25:18]OFD Sender: No OFD packet to send [12:25:23]OFD Sender: No OFD packet to send [12:25:28]OFD Sender: No OFD packet to send [12:25:33]OFD Sender: No OFD packet to send [12:25:38]OFD Sender: No OFD packet to send [12:25:43]OFD Sender: No OFD packet to send [12:25:48]OFD Sender: No OFD packet to send [12:25:53]OFD Sender: No OFD packet to send [12:25:58]OFD Sender: No OFD packet to send [12:26:03]OFD Sender: No OFD packet to send [12:26:08]OFD Sender: No OFD packet to send [12:26:13]OFD Sender: No OFD packet to send [12:26:18]OFD Sender: No OFD packet to send [12:26:23]OFD Sender: No OFD packet to send [12:26:28]OFD Sender: No OFD packet to send [12:26:33]OFD Sender: No OFD packet to send [12:26:38]OFD Sender: No OFD packet to send [12:26:43]OFD Sender: No OFD packet to send [12:26:48]OFD Sender: No OFD packet to send [12:26:53]OFD Sender: No OFD packet to send [12:26:58]OFD Sender: No OFD packet to send [12:27:03]OFD Sender: No OFD packet to send [12:27:08]OFD Sender: No OFD packet to send [12:27:13]OFD Sender: No OFD packet to send [12:27:18]OFD Sender: No OFD packet to send [12:27:23]OFD Sender: No OFD packet to send [12:27:28]OFD Sender: No OFD packet to send [12:27:33]OFD Sender: No OFD packet to send [12:27:38]OFD Sender: No OFD packet to send [12:27:43]OFD Sender: No OFD packet to send [12:27:48]OFD Sender: No OFD packet to send [12:27:53]OFD Sender: No OFD packet to send [12:27:58]OFD Sender: No OFD packet to send [12:28:03]OFD Sender: No OFD packet to send [12:28:08]OFD Sender: No OFD packet to send [12:28:13]OFD Sender: No OFD packet to send [12:28:18]OFD Sender: No OFD packet to send [12:28:23]OFD Sender: No OFD packet to send [12:28:28]OFD Sender: No OFD packet to send [12:28:33]OFD Sender: No OFD packet to send [12:28:36]accept exits with 9 [12:28:36]New connection [12:28:36]New thread 3066830180 created [12:28:36]Thread 3066686820 joined [12:28:36]Waiting for new connection... [12:28:36] Sock 9.Parse request [12:28:36]Sock 9.Check first char [12:28:36]Sock 9.First char is OK [12:28:36]request: POST /json_proto HTTP/1.0 [12:28:36]Method: POST [12:28:36]URL: /json_proto [12:28:36]Method is POST - this is cgi request [12:28:36]url: /json_proto [12:28:36]query_string will be loaded in cgi processing [12:28:36]execute_cgi json_proto POST (null) [12:28:36]execute_cgi path=json_proto method=POST [12:28:36]POST find Content-Length [12:28:36]Host: 172.17.58.3:8080 [12:28:36]Content-Length: 621 [12:28:36]Content-Type: application/json [12:28:36] [12:28:36]POST finish read [12:28:36]Found Content-Length = 621 [12:28:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)34506", "tax_sys" : 0, "items" : [ { "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:36]execute_script... [12:28: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 : (3)34506", "tax_sys" : 0, "items" : [ { "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:36]POST & json_proto [12:28:36]process_json_proto [12:28:36]json parsed OK: [12:28:36]protocol is kg_v1.0 [12:28:36]action value=close_receipt [12:28:36]process_action close_receipt [12:28:36]cmd_close_receipt [12:28:36]MH_GetDate [12:28:36]Write to MH i2c: F0 00 00 7B 02 6C [12:28:36]Write i2c OK [12:28:36]MH_I2C_Read... [12:28:36]Read from MH i2c: F0 [12:28:36]MH_I2C_Read... [12:28:36]Read from MH i2c: F0 09 00 [12:28:36]MH_I2C_Read... [12:28:36]Read from MH i2c: F0 09 00 7B 02 00 74 51 BB 66 DC E4 6D 64 EC [12:28:36]GetLastDocTimeStamp 1723551220 [12:28:36]current date 1723552116 [12:28:36]FM_GetShiftState [12:28:36]SAM_PROTO_GetShiftState [12:28:36]wFMCommunicate request_size=4 [12:28:36]MH_SAM_APDU [12:28:36]CAPDU: 80 13 01 00 [12:28:36]Write to MH i2c: E2 08 00 7C 02 80 13 01 00 00 00 00 00 FB [12:28:36]Write i2c OK [12:28:36]MH_I2C_Read... [12:28:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:36]Read from MH i2c: E2 [12:28:36]MH_I2C_Read... [12:28:36]Read from MH i2c: E2 0E 00 [12:28:36]MH_I2C_Read... [12:28:36]Read from MH i2c: E2 0E 00 7C 02 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 19 [12:28:36]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [12:28:36]wFMCommunicate OK [12:28:36]SAM_PROTO_GetShiftState done [12:28:36]FM_GetShiftState done [12:28:36]opened in 1723506770 [12:28:36]opened+sec_in_day 1723593170 [12:28:36]quantity*price = 15000 [12:28:36]sum+1 = 15001 [12:28:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 48 13.08.2024 12:28 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103137 ФПД: 137472458571514 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T122836&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103137&fm=137472458571514&tin=02508201610067®Number=0000000000092718&sum=15000 0 [12:28:37]StoreToDocumentArchive [12:28:37]shift 464 fd 103137 [12:28:37]save to /storage/0464/doc_00103137 [12:28:37]save last doc name /storage/0464/doc_00103137 to /storage/kkm_last_doc_name [12:28:37]save OK [12:28:37]Clear old archive folders... [12:28:37]ProcessDocumentItem done err = 0, tmpTLVsize=274 [12:28:37]tlvbuf is 01534240 [12:28:37]SAM_PROTO_ClearQueue [12:28:37]wFMCommunicate request_size=4 [12:28:37]MH_SAM_APDU [12:28:37]CAPDU: 80 09 00 00 [12:28:37]Write to MH i2c: E2 08 00 89 02 80 09 00 00 00 00 00 00 FD [12:28:37]Write i2c OK [12:28:37]MH_I2C_Read... [12:28:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:28:37]Read from MH i2c: E2 [12:28:37]MH_I2C_Read... [12:28:37]Read from MH i2c: E2 03 00 [12:28:37]MH_I2C_Read... [12:28:37]Read from MH i2c: E2 03 00 89 02 00 90 00 FF [12:28:37]RAPDU: 90 00 [12:28:37]wFMCommunicate OK [12:28:37]SAM_PROTO_ClearQueue done [12:28:37]KKMCreateOFDPacket [12:28:37]OFDProtocolAddRootSTLVToBuf [12:28:37]FM_MakeSignedData [12:28:37]FM_MakeSignedData [12:28:37]SAM_PROTO_SignData [12:28:37]wFMCommunicate request_size=4 [12:28:37]MH_SAM_APDU [12:28:37]CAPDU: 80 0D 01 02 [12:28:37]Write to MH i2c: E2 08 00 8A 02 80 0D 01 02 00 00 00 00 05 [12:28:37]Write i2c OK [12:28:37]MH_I2C_Read... [12:28:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:28:37]Read from MH i2c: E2 [12:28:37]MH_I2C_Read... [12:28:37]Read from MH i2c: E2 03 00 [12:28:37]MH_I2C_Read... [12:28:37]Read from MH i2c: E2 03 00 8A 02 00 90 00 00 [12:28:37]RAPDU: 90 00 [12:28:37]wFMCommunicate OK [12:28:37]wFMCommunicate request_size=255 [12:28:37]MH_SAM_APDU [12:28:37]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 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 39 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 30 00 00 00 F4 03 04 00 74 51 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 [12:28:37]Write to MH i2c: E2 02 01 8B 02 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 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 39 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 30 00 00 00 F4 03 04 00 74 51 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 00 00 06 [12:28:37]Write i2c OK [12:28:37]MH_I2C_Read... [12:28:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:37]Read from MH i2c: E2 [12:28:37]MH_I2C_Read... [12:28:37]Read from MH i2c: E2 03 00 [12:28:37]MH_I2C_Read... [12:28:37]Read from MH i2c: E2 03 00 8B 02 00 90 00 01 [12:28:37]RAPDU: 90 00 [12:28:37]wFMCommunicate OK [12:28:37]wFMCommunicate request_size=33 [12:28:37]MH_SAM_APDU [12:28:37]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 35 38 10 04 04 00 E1 92 01 00 35 04 06 00 7D 07 CD 0F 3E FA [12:28:37]Write to MH i2c: E2 24 00 8C 02 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 35 38 10 04 04 00 E1 92 01 00 35 04 06 00 7D 07 CD 0F 3E FA 00 00 A4 [12:28:37]Write i2c OK [12:28:37]MH_I2C_Read... [12:28:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:37]Read from MH i2c: E2 [12:28:37]MH_I2C_Read... [12:28:37]Read from MH i2c: E2 03 00 [12:28:37]MH_I2C_Read... [12:28:37]Read from MH i2c: E2 03 00 8C 02 00 90 00 02 [12:28:37]RAPDU: 90 00 [12:28:37]wFMCommunicate OK [12:28:37]wFMCommunicate request_size=4 [12:28:37]MH_SAM_APDU [12:28:37]CAPDU: 80 0D 03 02 [12:28:37]Write to MH i2c: E2 08 00 8D 02 80 0D 03 02 00 00 00 00 0A [12:28:37]Write i2c OK [12:28:37]MH_I2C_Read... [12:28:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:28:37]Read from MH i2c: E2 [12:28:37]MH_I2C_Read... [12:28:37]Read from MH i2c: E2 0B 00 [12:28:37]MH_I2C_Read... [12:28:37]Read from MH i2c: E2 0B 00 8D 02 00 2B 73 4D EA 2A 93 73 D6 90 00 E6 [12:28:37]RAPDU: 2B 73 4D EA 2A 93 73 D6 90 00 [12:28:37]wFMCommunicate OK [12:28:37]SAM_PROTO_SignData done [12:28:37]FM_MakeSignedData done [12:28:37]CreateOFDProtocolMessage [12:28:37]wFMCommunicate request_size=4 [12:28:37]MH_SAM_APDU [12:28:37]CAPDU: 80 11 00 00 [12:28:37]Write to MH i2c: E2 08 00 8E 02 80 11 00 00 00 00 00 00 0A [12:28:37]Write i2c OK [12:28:37]MH_I2C_Read... [12:28:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:37]Read from MH i2c: E2 [12:28:37]MH_I2C_Read... [12:28:37]Read from MH i2c: E2 17 00 [12:28:37]MH_I2C_Read... [12:28:37]Read from MH i2c: E2 17 00 8E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 5E [12:28:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [12:28:37]wFMCommunicate OK [12:28:37]CreateOFDProtocolMessage done [12:28:37]OFDSenderStorePacket 103137 [12:28:37]StoreOFDPacket docnum=103137 [12:28:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 26 01 00 00 5A 81 1E 01 D5 65 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 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 39 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 30 00 00 00 F4 03 04 00 74 51 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 E1 92 01 00 35 04 06 00 7D 07 CD 0F 3E FA 2B 73 4D EA 2A 93 73 D6 [12:28:37]CheckFolder [12:28:37]dirname=/storage/ofd_packets [12:28:37]CheckFolder done [12:28:37]ProducePacketName [12:28:37]name=ofd_packets/00103137 [12:28:37]NVStorageSaveData ofd_packets/00103137 [12:28:37]File name is /storage/ofd_packets/00103137 [12:28:37]Write 324 bytes [12:28:37]NVStorageSaveData done [12:28:37]OFDSenderStorePacket done [12:28:37]KKMCreateOFDPacket done [12:28:37]NVStorageSaveData kkm_last_timestamp [12:28:37]File name is /storage/kkm_last_timestamp [12:28:37]Write 4 bytes [12:28:37]NVStorageSaveData done [12:28:37]ExternCall_PrintAddStr [12:28:37]wPrintStart [12:28:37]Write to MH i2c: 01 00 00 8F 02 91 [12:28:37]Write i2c OK [12:28:37]MH_I2C_Read... [12:28:37]Read from MH i2c: 01 [12:28:37]MH_I2C_Read... [12:28:37]Read from MH i2c: 01 07 00 [12:28:37]MH_I2C_Read... [12:28:37]Read from MH i2c: 01 07 00 8F 02 00 00 00 00 00 FF 0F A6 [12:28:37]RasterBufferAndPrint [12:28:37]line Счет N : (3)34506 [12:28:37]line ИНН: 02508201610067 [12:28:37]line Контрольно-Кассовый Чек [12:28:37]line ПРОДАЖА [12:28:37]line Товар: 46230614 [12:28:37]line Сигареты Richmond Red Edition [12:28:37]line 1.000 * 150.00 [12:28:37]line = 150.00 [12:28:37]line НДС 12% НСП 1% [12:28:37]line > о реализуемом товаре [12:28:37]line ИТОГО: 150.00 [12:28:37]line НСП 1% : 1.33 [12:28:37]line НДС 12% : 15.93 [12:28:37]line Наличными: 150.00 [12:28:37]line Безнал.: 0.00 [12:28:37]line Место: АЗС № 38 "Партнер Нефть" [12:28:37]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [12:28:37]line СНО: Общий режим [12:28:37]line Чек 48 13.08.2024 12:28 [12:28:37]line Смена: 464 ФФД: 1.0 [12:28:37]line ЗНМ: 0300000126 [12:28:37]line РНМ: 0000000000092718 [12:28:37]line Версия ККМ: 001 [12:28:37]line ФМ: 0000000000875058 [12:28:37]line ФД: 103137 [12:28:37]line ФПД: 137472458571514 [12:28:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T122836&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103137&fm=137472458571514&tin=02508201610067®Number=0000000000092718&sum=15000 [12:28:38]OFD Sender: Processing packet 103137 [packets to send 69, broken 68] [12:28:38]ProducePacketName [12:28:38]name=ofd_packets/00103137 [12:28:38]OFD Sender: To server: pG, [12:28:38]CommunicateWithHost lk.salyk.kg:30040 [12:28:38]ConnectInit lk.salyk.kg [12:28:38]line 0 [12:28:38]written 0, free lines is 4095 [12:28:38]Connected sock=11 [12:28:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 26 01 00 00 5A 81 1E 01 D5 65 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 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 39 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 30 00 00 00 F4 03 04 00 74 51 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 E1 92 01 00 35 04 06 00 7D 07 CD 0F 3E FA 2B 73 4D EA 2A 93 73 D6 [12:28:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 81 EF 47 00 B1 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 E1 92 01 00 F4 03 04 00 E7 F7 BA 66 B6 04 01 00 00 61 77 B9 BF 03 62 1E FD [12:28:38]CommunicateWithHost err = 0 [12:28:38]CheckOFDResponse [12:28:38]1017 (14) - 77093643461234 [12:28:38]1041 (16) - 0000000000875058 [12:28:38]1040 (4) - 103137 [12:28:38]1012 (4) - 13.08.2024 06:06 [12:28:38]1206 (1) - 0 [12:28:38]OFD Sender: Remove packet 103137 [12:28:38]ProducePacketName [12:28:38]name=ofd_packets/00103137 [12:28:38]NVStorageDeleteData [12:28:38]Write to MH i2c: 01 00 00 B8 02 BA [12:28:38]Write i2c OK [12:28:38]MH_I2C_Read... [12:28:38]Read from MH i2c: 01 [12:28:38]MH_I2C_Read... [12:28:38]Read from MH i2c: 01 07 00 [12:28:38]MH_I2C_Read... [12:28:38]Read from MH i2c: 01 07 00 B8 02 00 00 00 00 00 E6 0C B3 [12:28:38]RasterBufferAndPrint [12:28:38]line [12:28:38]line [12:28:38]line [12:28:38]line [12:28:38]line [12:28:38]written 0, free lines is 3308 [12:28:38]MH_Cut [12:28:38]Write to MH i2c: D1 01 00 BF 02 01 93 [12:28:38]Write i2c OK [12:28:38]MH_I2C_Read... [12:28:38]Read from MH i2c: D1 [12:28:38]MH_I2C_Read... [12:28:38]Read from MH i2c: D1 01 00 [12:28:38]MH_I2C_Read... [12:28:38]Read from MH i2c: D1 01 00 BF 02 00 92 [12:28:38]Write to MH i2c: 01 00 00 C0 02 C2 [12:28:38]Write i2c OK [12:28:38]MH_I2C_Read... [12:28:39]OFD Sender: No OFD packet to send [12:28:39]*** Cut start [12:28:39]*** Purtial cut [12:28:39]*** Stage 1: CUTSNS_PIN = 1 [12:28:39]Read from MH i2c: 01 [12:28:39]MH_I2C_Read... [12:28:39]*** Stop cut motor [12:28:39]*** Cut end [12:28:39]Read from MH i2c: 01 07 00 [12:28:39]MH_I2C_Read... [12:28:39]Read from MH i2c: 01 07 00 C0 02 00 00 00 00 00 FF 0F D7 [12:28:39]process_action close_receipt done [12:28:39]requested_data is exist [12:28:39]produce_requested_data [12:28:39]requested_item fm.sn is exist - process it [12:28:39]wFMCommunicate request_size=4 [12:28:39]MH_SAM_APDU [12:28:39]CAPDU: 80 11 00 00 [12:28:39]Write to MH i2c: E2 08 00 C1 02 80 11 00 00 00 00 00 00 3D [12:28:39]Write i2c OK [12:28:39]MH_I2C_Read... [12:28:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:39]Read from MH i2c: E2 [12:28:39]MH_I2C_Read... [12:28:39]Read from MH i2c: E2 17 00 [12:28:39]MH_I2C_Read... [12:28:39]Read from MH i2c: E2 17 00 C1 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 91 [12:28:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [12:28:39]wFMCommunicate OK [12:28:39]requested_item fd.num is exist - process it [12:28:39]SAM_PROTO_GetFieldsCounters [12:28:39]wFMCommunicate request_size=4 [12:28:39]MH_SAM_APDU [12:28:39]CAPDU: 80 13 00 00 [12:28:39]Write to MH i2c: E2 08 00 C2 02 80 13 00 00 00 00 00 00 40 [12:28:39]Write i2c OK [12:28:39]MH_I2C_Read... [12:28:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:28:39]Read from MH i2c: E2 [12:28:39]MH_I2C_Read... [12:28:39]Read from MH i2c: E2 62 00 [12:28:39]MH_I2C_Read... [12:28:39]Read from MH i2c: E2 62 00 C2 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 E1 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [12:28:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 E1 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:28:39]wFMCommunicate OK [12:28:39]SAM_PROTO_GetFieldsCounters done [12:28:39]requested_item shift.num is exist - process it [12:28:39]requested_item shift.opened is exist - process it [12:28:39]req_shift_opened [12:28:39]FM_GetShiftState [12:28:39]SAM_PROTO_GetShiftState [12:28:39]wFMCommunicate request_size=4 [12:28:39]MH_SAM_APDU [12:28:39]CAPDU: 80 13 01 00 [12:28:39]Write to MH i2c: E2 08 00 C3 02 80 13 01 00 00 00 00 00 42 [12:28:39]Write i2c OK [12:28:39]MH_I2C_Read... [12:28:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:40]Read from MH i2c: E2 [12:28:40]MH_I2C_Read... [12:28:40]Read from MH i2c: E2 0E 00 [12:28:40]MH_I2C_Read... [12:28:40]Read from MH i2c: E2 0E 00 C3 02 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 60 [12:28:40]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [12:28:40]wFMCommunicate OK [12:28:40]SAM_PROTO_GetShiftState done [12:28:40]FM_GetShiftState done [12:28:40]req_shift_opened done [12:28:40]requested_item shift.open_date is exist - process it [12:28:40]req_shift_open_date [12:28:40]req_shift_open_date done [12:28:40]produce_requested_data done [12:28:40]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103137,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [12:28:40]process_action_free close_receipt [12:28:40]json_value_free [12:28:40]json_value_free done [12:28:40]process_json_proto returns [12:28:40]Send response to host [12:28:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103137,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [12:28:40]free response buf [12:28:40]execute_script done [12:28:40]execute_script returns [12:28:40]free content buf [12:28:40]Sock 9.Close socket [12:28:40]Sock 9.Thread stoped [12:28:44]OFD Sender: No OFD packet to send [12:28:49]OFD Sender: No OFD packet to send [12:28:54]OFD Sender: No OFD packet to send [12:28:59]OFD Sender: No OFD packet to send [12:29:04]OFD Sender: No OFD packet to send [12:29:09]OFD Sender: No OFD packet to send [12:29:14]OFD Sender: No OFD packet to send [12:29:19]OFD Sender: No OFD packet to send [12:29:24]OFD Sender: No OFD packet to send [12:29:29]OFD Sender: No OFD packet to send [12:29:34]OFD Sender: No OFD packet to send [12:29:39]OFD Sender: No OFD packet to send [12:29:44]OFD Sender: No OFD packet to send [12:29:49]OFD Sender: No OFD packet to send [12:29:54]OFD Sender: No OFD packet to send [12:29:59]OFD Sender: No OFD packet to send [12:30:04]OFD Sender: No OFD packet to send [12:30:09]OFD Sender: No OFD packet to send [12:30:14]OFD Sender: No OFD packet to send [12:30:19]OFD Sender: No OFD packet to send [12:30:24]OFD Sender: No OFD packet to send [12:30:28]accept exits with 7 [12:30:28]New connection [12:30:28]New thread 3066686820 created [12:30:28]Thread 3066830180 joined [12:30:28]Waiting for new connection... [12:30:28] Sock 7.Parse request [12:30:28]Sock 7.Check first char [12:30:28]Sock 7.First char is OK [12:30:28]request: POST /json_proto HTTP/1.0 [12:30:28]Method: POST [12:30:28]URL: /json_proto [12:30:28]Method is POST - this is cgi request [12:30:28]url: /json_proto [12:30:28]query_string will be loaded in cgi processing [12:30:28]execute_cgi json_proto POST (null) [12:30:28]execute_cgi path=json_proto method=POST [12:30:28]POST find Content-Length [12:30:28]Host: 172.17.58.3:8080 [12:30:28]Content-Length: 677 [12:30:28]Content-Type: application/json [12:30:28] [12:30:28]POST finish read [12:30:28]Found Content-Length = 677 [12:30:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160768", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 12.140, "sum" : 800.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:28]execute_script... [12:30: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)160768", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 12.140, "sum" : 800.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:28]POST & json_proto [12:30:28]process_json_proto [12:30:28]json parsed OK: [12:30:28]protocol is kg_v1.0 [12:30:28]action value=close_receipt [12:30:28]process_action close_receipt [12:30:28]cmd_close_receipt [12:30:28]MH_GetDate [12:30:28]Write to MH i2c: F0 00 00 C4 02 B5 [12:30:28]Write i2c OK [12:30:28]MH_I2C_Read... [12:30:28]Read from MH i2c: F0 [12:30:28]MH_I2C_Read... [12:30:28]Read from MH i2c: F0 09 00 [12:30:28]MH_I2C_Read... [12:30:28]Read from MH i2c: F0 09 00 C4 02 00 E4 51 BB 66 DC E4 6D 64 A5 [12:30:28]GetLastDocTimeStamp 1723552116 [12:30:28]current date 1723552228 [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 C5 02 80 13 01 00 00 00 00 00 44 [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 C5 02 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 62 [12:30:28]RAPDU: 09 00 01 52 A0 BA 66 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]opened in 1723506770 [12:30:28]opened+sec_in_day 1723593170 [12:30:28]quantity*price = 80002 [12:30:28]sum+1 = 80004 [12:30:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 49 13.08.2024 12:30 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103138 ФПД: 121854582251157 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T123028&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103138&fm=121854582251157&tin=02508201610067®Number=0000000000092718&sum=80000 [12:30:29]StoreToDocumentArchive [12:30:29]shift 464 fd 103138 [12:30:29]save to /storage/0464/doc_00103138 [12:30:29]save last doc name /storage/0464/doc_00103138 to /storage/kkm_last_doc_name [12:30:29]save OK [12:30:29]Clear old archive folders... [12:30:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:30:29]tlvbuf is 0152CFF0 [12:30:29]SAM_PROTO_ClearQueue [12:30:29]wFMCommunicate request_size=4 [12:30:29]MH_SAM_APDU [12:30:29]CAPDU: 80 09 00 00 [12:30:29]Write to MH i2c: E2 08 00 D2 02 80 09 00 00 00 00 00 00 46 [12:30:29]Write i2c OK [12:30:29]MH_I2C_Read... [12:30:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:30:29]Read from MH i2c: E2 [12:30:29]MH_I2C_Read... [12:30:29]Read from MH i2c: E2 03 00 [12:30:29]MH_I2C_Read... [12:30:29]Read from MH i2c: E2 03 00 D2 02 00 90 00 48 [12:30:29]RAPDU: 90 00 [12:30:29]wFMCommunicate OK [12:30:29]SAM_PROTO_ClearQueue done [12:30:29]KKMCreateOFDPacket [12:30:29]OFDProtocolAddRootSTLVToBuf [12:30:29]FM_MakeSignedData [12:30:29]FM_MakeSignedData [12:30:29]SAM_PROTO_SignData [12:30:29]wFMCommunicate request_size=4 [12:30:29]MH_SAM_APDU [12:30:29]CAPDU: 80 0D 01 02 [12:30:29]Write to MH i2c: E2 08 00 D3 02 80 0D 01 02 00 00 00 00 4E [12:30:29]Write i2c OK [12:30:29]MH_I2C_Read... [12:30:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:30:29]Read from MH i2c: E2 [12:30:29]MH_I2C_Read... [12:30:29]Read from MH i2c: E2 03 00 [12:30:29]MH_I2C_Read... [12:30:29]Read from MH i2c: E2 03 00 D3 02 00 90 00 49 [12:30:29]RAPDU: 90 00 [12:30:29]wFMCommunicate OK [12:30:29]wFMCommunicate request_size=255 [12:30:29]MH_SAM_APDU [12:30: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 6C 2F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 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 31 00 00 00 F4 03 04 00 E4 51 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 E2 92 01 00 35 04 06 00 6E [12:30:29]Write to MH i2c: E2 02 01 D4 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 6C 2F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 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 31 00 00 00 F4 03 04 00 E4 51 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 E2 92 01 00 35 04 06 00 6E 00 00 4D [12:30:29]Write i2c OK [12:30:29]MH_I2C_Read... [12:30:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:29]Read from MH i2c: E2 [12:30:29]MH_I2C_Read... [12:30:29]Read from MH i2c: E2 03 00 [12:30:29]MH_I2C_Read... [12:30:29]Read from MH i2c: E2 03 00 D4 02 00 90 00 4A [12:30:29]RAPDU: 90 00 [12:30:29]wFMCommunicate OK [12:30:29]wFMCommunicate request_size=10 [12:30:29]MH_SAM_APDU [12:30:29]CAPDU: 80 0D 02 02 05 D3 7B 16 DE 95 [12:30:29]Write to MH i2c: E2 0D 00 D5 02 80 0D 02 02 05 00 D3 7B 16 DE 95 00 00 32 [12:30:29]Write i2c OK [12:30:29]MH_I2C_Read... [12:30:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:29]Read from MH i2c: E2 [12:30:29]MH_I2C_Read... [12:30:29]Read from MH i2c: E2 03 00 [12:30:29]MH_I2C_Read... [12:30:29]Read from MH i2c: E2 03 00 D5 02 00 90 00 4B [12:30:29]RAPDU: 90 00 [12:30:29]wFMCommunicate OK [12:30:29]wFMCommunicate request_size=4 [12:30:29]MH_SAM_APDU [12:30:29]CAPDU: 80 0D 03 02 [12:30:29]Write to MH i2c: E2 08 00 D6 02 80 0D 03 02 00 00 00 00 53 [12:30:29]Write i2c OK [12:30:29]MH_I2C_Read... [12:30:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:30:29]Read from MH i2c: E2 [12:30:29]MH_I2C_Read... [12:30:29]Read from MH i2c: E2 0B 00 [12:30:29]MH_I2C_Read... [12:30:29]Read from MH i2c: E2 0B 00 D6 02 00 95 65 52 E3 10 92 EE 5C 90 00 6F [12:30:29]RAPDU: 95 65 52 E3 10 92 EE 5C 90 00 [12:30:29]wFMCommunicate OK [12:30:29]SAM_PROTO_SignData done [12:30:29]FM_MakeSignedData done [12:30:29]CreateOFDProtocolMessage [12:30:29]wFMCommunicate request_size=4 [12:30:29]MH_SAM_APDU [12:30:29]CAPDU: 80 11 00 00 [12:30:29]Write to MH i2c: E2 08 00 D7 02 80 11 00 00 00 00 00 00 53 [12:30:29]Write i2c OK [12:30:29]MH_I2C_Read... [12:30:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:29]Read from MH i2c: E2 [12:30:29]MH_I2C_Read... [12:30:29]Read from MH i2c: E2 17 00 [12:30:29]MH_I2C_Read... [12:30:29]Read from MH i2c: E2 17 00 D7 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 A7 [12:30:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [12:30:29]wFMCommunicate OK [12:30:29]CreateOFDProtocolMessage done [12:30:29]OFDSenderStorePacket 103138 [12:30:29]StoreOFDPacket docnum=103138 [12:30:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 AF 2A 07 01 4E 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 6C 2F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 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 31 00 00 00 F4 03 04 00 E4 51 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 E2 92 01 00 35 04 06 00 6E D3 7B 16 DE 95 95 65 52 E3 10 92 EE 5C [12:30:29]CheckFolder [12:30:29]dirname=/storage/ofd_packets [12:30:29]CheckFolder done [12:30:29]ProducePacketName [12:30:29]name=ofd_packets/00103138 [12:30:29]NVStorageSaveData ofd_packets/00103138 [12:30:29]File name is /storage/ofd_packets/00103138 [12:30:29]Write 301 bytes [12:30:29]NVStorageSaveData done [12:30:29]OFDSenderStorePacket done [12:30:29]KKMCreateOFDPacket done [12:30:29]NVStorageSaveData kkm_last_timestamp [12:30:29]File name is /storage/kkm_last_timestamp [12:30:29]Write 4 bytes [12:30:29]NVStorageSaveData done [12:30:29]ExternCall_PrintAddStr [12:30:29]wPrintStart [12:30:29]Write to MH i2c: 01 00 00 D8 02 DA [12:30:29]Write i2c OK [12:30:29]MH_I2C_Read... [12:30:29]Read from MH i2c: 01 [12:30:29]MH_I2C_Read... [12:30:29]Read from MH i2c: 01 07 00 [12:30:29]MH_I2C_Read... [12:30:29]Read from MH i2c: 01 07 00 D8 02 00 00 00 00 00 FF 0F EF [12:30:29]RasterBufferAndPrint [12:30:29]line Счет N : (1)160768 [12:30:29]line ИНН: 02508201610067 [12:30:29]line Контрольно-Кассовый Чек [12:30:29]line ПРОДАЖА [12:30:29]line ТРК (МРК, ГНК) : 7 [12:30:29]line Товар: 2710124130 [12:30:29]line Аи-92-К-5 [12:30:29]line 12.140 * 65.90 [12:30:29]line = 800.03 [12:30:29]line НДС 12% НСП 1% [12:30:29]line > о реализуемом товаре [12:30:29]line ОКРУГЛЕНИЕ: -0.03 [12:30:29]line ИТОГО: 800.00 [12:30:29]line Внесено: 800.00 [12:30:29]line СДАЧА: 0.00 [12:30:29]line НСП 1% : 7.08 [12:30:29]line НДС 12% : 84.96 [12:30:29]line Наличными: 800.00 [12:30:29]line Безнал.: 0.00 [12:30:29]line Место: АЗС № 38 "Партнер Нефть" [12:30:29]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [12:30:29]line СНО: Общий режим [12:30:29]line Чек 49 13.08.2024 12:30 [12:30:29]line Смена: 464 ФФД: 1.0 [12:30:29]line ЗНМ: 0300000126 [12:30:29]line РНМ: 0000000000092718 [12:30:29]line Версия ККМ: 001 [12:30:29]line ФМ: 0000000000875058 [12:30:29]line ФД: 103138 [12:30:29]line ФПД: 121854582251157 [12:30:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T123028&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103138&fm=121854582251157&tin=02508201610067®Number=0000000000092718&sum=80000 [12:30:30]OFD Sender: Processing packet 103138 [packets to send 69, broken 68] [12:30:30]ProducePacketName [12:30:30]name=ofd_packets/00103138 [12:30:30]OFD Sender: To server: pG, [12:30:30]CommunicateWithHost lk.salyk.kg:30040 [12:30:30]ConnectInit lk.salyk.kg [12:30:30]written 0, free lines is 4095 [12:30:30]Connected sock=10 [12:30:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 AF 2A 07 01 4E 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 6C 2F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 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 31 00 00 00 F4 03 04 00 E4 51 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 E2 92 01 00 35 04 06 00 6E D3 7B 16 DE 95 95 65 52 E3 10 92 EE 5C [12:30:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 D1 98 47 00 70 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 35 30 35 38 10 04 04 00 E2 92 01 00 F4 03 04 00 57 F8 BA 66 B6 04 01 00 00 35 AA 30 8F 14 A7 85 03 [12:30:30]CommunicateWithHost err = 0 [12:30:30]CheckOFDResponse [12:30:30]1017 (14) - 77093643461234 [12:30:30]1041 (16) - 0000000000875058 [12:30:30]1040 (4) - 103138 [12:30:30]1012 (4) - 13.08.2024 06:08 [12:30:30]1206 (1) - 0 [12:30:30]OFD Sender: Remove packet 103138 [12:30:30]ProducePacketName [12:30:30]name=ofd_packets/00103138 [12:30:30]NVStorageDeleteData [12:30:30]Write to MH i2c: 01 00 00 03 03 06 [12:30:30]Write i2c OK [12:30:30]MH_I2C_Read... [12:30:30]Read from MH i2c: 01 [12:30:30]MH_I2C_Read... [12:30:30]Read from MH i2c: 01 07 00 [12:30:30]MH_I2C_Read... [12:30:30]Read from MH i2c: 01 07 00 03 03 00 00 00 00 00 E4 0C FD [12:30:30]RasterBufferAndPrint [12:30:30]line [12:30:30]line [12:30:30]line [12:30:30]line [12:30:30]line [12:30:30]written 0, free lines is 3306 [12:30:30]MH_Cut [12:30:30]Write to MH i2c: D1 01 00 0A 03 01 DF [12:30:30]Write i2c OK [12:30:30]MH_I2C_Read... [12:30:30]Read from MH i2c: D1 [12:30:30]MH_I2C_Read... [12:30:30]Read from MH i2c: D1 01 00 [12:30:30]MH_I2C_Read... [12:30:30]Read from MH i2c: D1 01 00 0A 03 00 DE [12:30:30]Write to MH i2c: 01 00 00 0B 03 0E [12:30:30]Write i2c OK [12:30:30]MH_I2C_Read... [12:30:30]OFD Sender: No OFD packet to send [12:30:31]*** Cut start [12:30:31]*** Purtial cut [12:30:31]*** CUTSNS_PIN = 0 [12:30:31]*** Stage 1: CUTSNS_PIN = 1 [12:30:33]Read from MH i2c: 01 [12:30:33]MH_I2C_Read... [12:30:33]*** Stop cut motor [12:30:33]*** Cut end [12:30:33]Read from MH i2c: 01 07 00 [12:30:33]MH_I2C_Read... [12:30:33]Read from MH i2c: 01 07 00 0B 03 00 00 00 00 00 FF 0F 23 [12:30:33]process_action close_receipt done [12:30:33]requested_data is exist [12:30:33]produce_requested_data [12:30:33]requested_item fm.sn is exist - process it [12:30:33]wFMCommunicate request_size=4 [12:30:33]MH_SAM_APDU [12:30:33]CAPDU: 80 11 00 00 [12:30:33]Write to MH i2c: E2 08 00 0C 03 80 11 00 00 00 00 00 00 89 [12:30:33]Write i2c OK [12:30:33]MH_I2C_Read... [12:30:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:33]Read from MH i2c: E2 [12:30:33]MH_I2C_Read... [12:30:33]Read from MH i2c: E2 17 00 [12:30:33]MH_I2C_Read... [12:30:33]Read from MH i2c: E2 17 00 0C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 DD [12:30:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [12:30:33]wFMCommunicate OK [12:30:33]requested_item fd.num is exist - process it [12:30:33]SAM_PROTO_GetFieldsCounters [12:30:33]wFMCommunicate request_size=4 [12:30:33]MH_SAM_APDU [12:30:33]CAPDU: 80 13 00 00 [12:30:33]Write to MH i2c: E2 08 00 0D 03 80 13 00 00 00 00 00 00 8C [12:30:33]Write i2c OK [12:30:33]MH_I2C_Read... [12:30:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:30:33]Read from MH i2c: E2 [12:30:33]MH_I2C_Read... [12:30:33]Read from MH i2c: E2 62 00 [12:30:33]MH_I2C_Read... [12:30:33]Read from MH i2c: E2 62 00 0D 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 E2 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [12:30:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 E2 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:30:33]wFMCommunicate OK [12:30:33]SAM_PROTO_GetFieldsCounters done [12:30:33]requested_item shift.num is exist - process it [12:30:33]requested_item shift.opened is exist - process it [12:30:33]req_shift_opened [12:30:33]FM_GetShiftState [12:30:33]SAM_PROTO_GetShiftState [12:30:33]wFMCommunicate request_size=4 [12:30:33]MH_SAM_APDU [12:30:33]CAPDU: 80 13 01 00 [12:30:33]Write to MH i2c: E2 08 00 0E 03 80 13 01 00 00 00 00 00 8E [12:30:33]Write i2c OK [12:30:33]MH_I2C_Read... [12:30:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:33]Read from MH i2c: E2 [12:30:33]MH_I2C_Read... [12:30:33]Read from MH i2c: E2 0E 00 [12:30:33]MH_I2C_Read... [12:30:33]Read from MH i2c: E2 0E 00 0E 03 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 AC [12:30:33]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [12:30:33]wFMCommunicate OK [12:30:33]SAM_PROTO_GetShiftState done [12:30:33]FM_GetShiftState done [12:30:33]req_shift_opened done [12:30:33]requested_item shift.open_date is exist - process it [12:30:33]req_shift_open_date [12:30:33]req_shift_open_date done [12:30:33]produce_requested_data done [12:30:33]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103138,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [12:30:33]process_action_free close_receipt [12:30:33]json_value_free [12:30:33]json_value_free done [12:30:33]process_json_proto returns [12:30:33]Send response to host [12:30:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103138,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [12:30:33]free response buf [12:30:33]execute_script done [12:30:33]execute_script returns [12:30:33]free content buf [12:30:33]Sock 7.Close socket [12:30:33]Sock 7.Thread stoped [12:30:35]OFD Sender: No OFD packet to send [12:30:40]OFD Sender: No OFD packet to send [12:30:45]OFD Sender: No OFD packet to send [12:30:50]OFD Sender: No OFD packet to send [12:30:55]OFD Sender: No OFD packet to send [12:31:00]OFD Sender: No OFD packet to send [12:31:05]OFD Sender: No OFD packet to send [12:31:10]OFD Sender: No OFD packet to send [12:31:15]OFD Sender: No OFD packet to send [12:31:18]accept exits with 9 [12:31:18]New connection [12:31:18]New thread 3066830180 created [12:31:18]Thread 3066686820 joined [12:31:18]Waiting for new connection... [12:31:18] Sock 9.Parse request [12:31:18]Sock 9.Check first char [12:31:18]Sock 9.First char is OK [12:31:18]request: POST /json_proto HTTP/1.0 [12:31:18]Method: POST [12:31:18]URL: /json_proto [12:31:18]Method is POST - this is cgi request [12:31:18]url: /json_proto [12:31:18]query_string will be loaded in cgi processing [12:31:18]execute_cgi json_proto POST (null) [12:31:18]execute_cgi path=json_proto method=POST [12:31:18]POST find Content-Length [12:31:18]Host: 172.17.58.3:8080 [12:31:18]Content-Length: 677 [12:31:18]Content-Type: application/json [12:31:18] [12:31:18]POST finish read [12:31:18]Found Content-Length = 677 [12:31:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 4", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 1.988, "sum" : 146.91, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 146.00, "payments": [ { "type": 0, "sum" : 146.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:18]execute_script... [12:31: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)160767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 4", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 1.988, "sum" : 146.91, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 146.00, "payments": [ { "type": 0, "sum" : 146.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:18]POST & json_proto [12:31:18]process_json_proto [12:31:18]json parsed OK: [12:31:18]protocol is kg_v1.0 [12:31:18]action value=close_receipt [12:31:18]process_action close_receipt [12:31:18]cmd_close_receipt [12:31:18]MH_GetDate [12:31:18]Write to MH i2c: F0 00 00 0F 03 01 [12:31:18]Write i2c OK [12:31:18]MH_I2C_Read... [12:31:18]Read from MH i2c: F0 [12:31:18]MH_I2C_Read... [12:31:18]Read from MH i2c: F0 09 00 [12:31:18]MH_I2C_Read... [12:31:18]Read from MH i2c: F0 09 00 0F 03 00 16 52 BB 66 DC E4 6D 64 24 [12:31:18]GetLastDocTimeStamp 1723552228 [12:31:18]current date 1723552278 [12:31:18]FM_GetShiftState [12:31:18]SAM_PROTO_GetShiftState [12:31:18]wFMCommunicate request_size=4 [12:31:18]MH_SAM_APDU [12:31:18]CAPDU: 80 13 01 00 [12:31:18]Write to MH i2c: E2 08 00 10 03 80 13 01 00 00 00 00 00 90 [12:31:18]Write i2c OK [12:31:18]MH_I2C_Read... [12:31:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:18]Read from MH i2c: E2 [12:31:18]MH_I2C_Read... [12:31:18]Read from MH i2c: E2 0E 00 [12:31:18]MH_I2C_Read... [12:31:18]Read from MH i2c: E2 0E 00 10 03 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 AE [12:31:18]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [12:31:18]wFMCommunicate OK [12:31:18]SAM_PROTO_GetShiftState done [12:31:18]FM_GetShiftState done [12:31:18]opened in 1723506770 [12:31:18]opened+sec_in_day 1723593170 [12:31:18]quantity*price = 14691 [12:31:18]sum+1 = 14692 [12:31:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.91 ИТОГО: 146.00 Внесено: 1000.00 СДАЧА: 854.00 НСП 1% : 1.30 НДС 12% : 15.60 Наличными: 146.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 50 13.08.2024 12:31 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103139 ФПД: 207346591977703 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T123118&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103139&fm=207346591977703&tin=02508201610067®Number=0000000000092718&sum=14600 [12:31:19]StoreToDocumentArchive [12:31:19]shift 464 fd 103139 [12:31:19]save to /storage/0464/doc_00103139 [12:31:19]save last doc name /storage/0464/doc_00103139 to /storage/kkm_last_doc_name [12:31:19]save OK [12:31:19]Clear old archive folders... [12:31:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:31:19]tlvbuf is 01555A50 [12:31:19]SAM_PROTO_ClearQueue [12:31:19]wFMCommunicate request_size=4 [12:31:19]MH_SAM_APDU [12:31:19]CAPDU: 80 09 00 00 [12:31:19]Write to MH i2c: E2 08 00 1D 03 80 09 00 00 00 00 00 00 92 [12:31:19]Write i2c OK [12:31:19]MH_I2C_Read... [12:31:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:31:19]Read from MH i2c: E2 [12:31:19]MH_I2C_Read... [12:31:19]Read from MH i2c: E2 03 00 [12:31:19]MH_I2C_Read... [12:31:19]Read from MH i2c: E2 03 00 1D 03 00 90 00 94 [12:31:19]RAPDU: 90 00 [12:31:19]wFMCommunicate OK [12:31:19]SAM_PROTO_ClearQueue done [12:31:19]KKMCreateOFDPacket [12:31:19]OFDProtocolAddRootSTLVToBuf [12:31:19]FM_MakeSignedData [12:31:19]FM_MakeSignedData [12:31:19]SAM_PROTO_SignData [12:31:19]wFMCommunicate request_size=4 [12:31:19]MH_SAM_APDU [12:31:19]CAPDU: 80 0D 01 02 [12:31:19]Write to MH i2c: E2 08 00 1E 03 80 0D 01 02 00 00 00 00 9A [12:31:19]Write i2c OK [12:31:19]MH_I2C_Read... [12:31:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:31:19]Read from MH i2c: E2 [12:31:19]MH_I2C_Read... [12:31:19]Read from MH i2c: E2 03 00 [12:31:19]MH_I2C_Read... [12:31:19]Read from MH i2c: E2 03 00 1E 03 00 90 00 95 [12:31:19]RAPDU: 90 00 [12:31:19]wFMCommunicate OK [12:31:19]wFMCommunicate request_size=255 [12:31:19]MH_SAM_APDU [12:31: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C4 07 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 63 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 06 00 00 00 00 07 04 06 00 08 39 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 16 52 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 E3 92 01 00 35 04 06 00 BC [12:31:19]Write to MH i2c: E2 02 01 1F 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C4 07 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 63 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 06 00 00 00 00 07 04 06 00 08 39 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 16 52 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 E3 92 01 00 35 04 06 00 BC 00 00 EC [12:31:19]Write i2c OK [12:31:19]MH_I2C_Read... [12:31:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:19]Read from MH i2c: E2 [12:31:19]MH_I2C_Read... [12:31:19]Read from MH i2c: E2 03 00 [12:31:19]MH_I2C_Read... [12:31:19]Read from MH i2c: E2 03 00 1F 03 00 90 00 96 [12:31:19]RAPDU: 90 00 [12:31:19]wFMCommunicate OK [12:31:19]wFMCommunicate request_size=10 [12:31:19]MH_SAM_APDU [12:31:19]CAPDU: 80 0D 02 02 05 94 A3 F5 D0 E7 [12:31:19]Write to MH i2c: E2 0D 00 20 03 80 0D 02 02 05 00 94 A3 F5 D0 E7 00 00 8A [12:31:19]Write i2c OK [12:31:19]MH_I2C_Read... [12:31:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:19]Read from MH i2c: E2 [12:31:19]MH_I2C_Read... [12:31:19]Read from MH i2c: E2 03 00 [12:31:19]MH_I2C_Read... [12:31:19]Read from MH i2c: E2 03 00 20 03 00 90 00 97 [12:31:19]RAPDU: 90 00 [12:31:19]wFMCommunicate OK [12:31:19]wFMCommunicate request_size=4 [12:31:19]MH_SAM_APDU [12:31:19]CAPDU: 80 0D 03 02 [12:31:19]Write to MH i2c: E2 08 00 21 03 80 0D 03 02 00 00 00 00 9F [12:31:19]Write i2c OK [12:31:19]MH_I2C_Read... [12:31:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:31:19]Read from MH i2c: E2 [12:31:19]MH_I2C_Read... [12:31:19]Read from MH i2c: E2 0B 00 [12:31:19]MH_I2C_Read... [12:31:19]Read from MH i2c: E2 0B 00 21 03 00 3A 5B 2C 96 9D BB 12 39 90 00 9A [12:31:19]RAPDU: 3A 5B 2C 96 9D BB 12 39 90 00 [12:31:19]wFMCommunicate OK [12:31:19]SAM_PROTO_SignData done [12:31:19]FM_MakeSignedData done [12:31:19]CreateOFDProtocolMessage [12:31:19]wFMCommunicate request_size=4 [12:31:19]MH_SAM_APDU [12:31:19]CAPDU: 80 11 00 00 [12:31:19]Write to MH i2c: E2 08 00 22 03 80 11 00 00 00 00 00 00 9F [12:31:19]Write i2c OK [12:31:19]MH_I2C_Read... [12:31:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:19]Read from MH i2c: E2 [12:31:19]MH_I2C_Read... [12:31:19]Read from MH i2c: E2 17 00 [12:31:19]MH_I2C_Read... [12:31:19]Read from MH i2c: E2 17 00 22 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 F3 [12:31:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [12:31:19]wFMCommunicate OK [12:31:19]CreateOFDProtocolMessage done [12:31:19]OFDSenderStorePacket 103139 [12:31:19]StoreOFDPacket docnum=103139 [12:31:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 51 44 07 01 E0 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C4 07 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 63 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 06 00 00 00 00 07 04 06 00 08 39 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 16 52 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 E3 92 01 00 35 04 06 00 BC 94 A3 F5 D0 E7 3A 5B 2C 96 9D BB 12 39 [12:31:19]CheckFolder [12:31:19]dirname=/storage/ofd_packets [12:31:19]CheckFolder done [12:31:19]ProducePacketName [12:31:19]name=ofd_packets/00103139 [12:31:19]NVStorageSaveData ofd_packets/00103139 [12:31:19]File name is /storage/ofd_packets/00103139 [12:31:19]Write 301 bytes [12:31:19]NVStorageSaveData done [12:31:19]OFDSenderStorePacket done [12:31:19]KKMCreateOFDPacket done [12:31:19]NVStorageSaveData kkm_last_timestamp [12:31:19]File name is /storage/kkm_last_timestamp [12:31:19]Write 4 bytes [12:31:19]NVStorageSaveData done [12:31:19]ExternCall_PrintAddStr [12:31:19]wPrintStart [12:31:19]Write to MH i2c: 01 00 00 23 03 26 [12:31:19]Write i2c OK [12:31:19]MH_I2C_Read... [12:31:19]Read from MH i2c: 01 [12:31:19]MH_I2C_Read... [12:31:19]Read from MH i2c: 01 07 00 [12:31:19]MH_I2C_Read... [12:31:19]Read from MH i2c: 01 07 00 23 03 00 00 00 00 00 FF 0F 3B [12:31:19]RasterBufferAndPrint [12:31:19]line Счет N : (1)160767 [12:31:19]line ИНН: 02508201610067 [12:31:19]line Контрольно-Кассовый Чек [12:31:19]line ПРОДАЖА [12:31:19]line ТРК (МРК, ГНК) : 4 [12:31:19]line Товар: 2710124500 [12:31:19]line Аи-95-К-5 [12:31:19]line 1.988 * 73.90 [12:31:19]line = 146.91 [12:31:19]line НДС 12% НСП 1% [12:31:19]line > о реализуемом товаре [12:31:19]line ОКРУГЛЕНИЕ: -0.91 [12:31:19]line ИТОГО: 146.00 [12:31:19]line Внесено: 1000.00 [12:31:19]line СДАЧА: 854.00 [12:31:19]line НСП 1% : 1.30 [12:31:19]line НДС 12% : 15.60 [12:31:19]line Наличными: 146.00 [12:31:19]line Безнал.: 0.00 [12:31:19]line Место: АЗС № 38 "Партнер Нефть" [12:31:19]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [12:31:19]line СНО: Общий режим [12:31:19]line Чек 50 13.08.2024 12:31 [12:31:19]line Смена: 464 ФФД: 1.0 [12:31:19]line ЗНМ: 0300000126 [12:31:19]line РНМ: 0000000000092718 [12:31:19]line Версия ККМ: 001 [12:31:19]line ФМ: 0000000000875058 [12:31:19]line ФД: 103139 [12:31:19]line ФПД: 207346591977703 [12:31:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T123118&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103139&fm=207346591977703&tin=02508201610067®Number=0000000000092718&sum=14600 [12:31:20]OFD Sender: Processing packet 103139 [packets to send 69, broken 68] [12:31:20]ProducePacketName [12:31:20]name=ofd_packets/00103139 [12:31:20]OFD Sender: To server: pG, [12:31:20]CommunicateWithHost lk.salyk.kg:30040 [12:31:20]ConnectInit lk.salyk.kg [12:31:20]written 0, free lines is 4095 [12:31:20]Connected sock=10 [12:31:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 51 44 07 01 E0 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C4 07 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 63 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 06 00 00 00 00 07 04 06 00 08 39 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 16 52 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 E3 92 01 00 35 04 06 00 BC 94 A3 F5 D0 E7 3A 5B 2C 96 9D BB 12 39 [12:31:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 49 27 47 00 55 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 35 30 35 38 10 04 04 00 E3 92 01 00 F4 03 04 00 89 F8 BA 66 B6 04 01 00 00 7B 13 6F E2 07 40 EA 8D [12:31:20]CommunicateWithHost err = 0 [12:31:20]CheckOFDResponse [12:31:20]1017 (14) - 77093643461234 [12:31:20]1041 (16) - 0000000000875058 [12:31:20]1040 (4) - 103139 [12:31:20]1012 (4) - 13.08.2024 06:09 [12:31:20]1206 (1) - 0 [12:31:20]OFD Sender: Remove packet 103139 [12:31:20]ProducePacketName [12:31:20]name=ofd_packets/00103139 [12:31:20]NVStorageDeleteData [12:31:20]Write to MH i2c: 01 00 00 4E 03 51 [12:31:20]Write i2c OK [12:31:20]MH_I2C_Read... [12:31:20]Read from MH i2c: 01 [12:31:20]MH_I2C_Read... [12:31:20]Read from MH i2c: 01 07 00 [12:31:20]MH_I2C_Read... [12:31:20]Read from MH i2c: 01 07 00 4E 03 00 00 00 00 00 EE 0C 52 [12:31:20]RasterBufferAndPrint [12:31:20]line [12:31:20]line [12:31:20]line [12:31:20]line [12:31:20]line [12:31:20]written 0, free lines is 3315 [12:31:20]MH_Cut [12:31:20]Write to MH i2c: D1 01 00 55 03 01 2A [12:31:20]Write i2c OK [12:31:20]MH_I2C_Read... [12:31:20]Read from MH i2c: D1 [12:31:20]MH_I2C_Read... [12:31:20]Read from MH i2c: D1 01 00 [12:31:20]MH_I2C_Read... [12:31:20]Read from MH i2c: D1 01 00 55 03 00 29 [12:31:20]Write to MH i2c: 01 00 00 56 03 59 [12:31:20]Write i2c OK [12:31:20]MH_I2C_Read... [12:31:20]OFD Sender: No OFD packet to send [12:31:21]*** Cut start [12:31:21]*** Purtial cut [12:31:21]*** Stage 1: CUTSNS_PIN = 1 [12:31:21]Read from MH i2c: 01 [12:31:21]MH_I2C_Read... [12:31:21]*** Stop cut motor [12:31:21]*** Cut end [12:31:21]Read from MH i2c: 01 07 00 [12:31:21]MH_I2C_Read... [12:31:21]Read from MH i2c: 01 07 00 56 03 00 00 00 00 00 FF 0F 6E [12:31:21]process_action close_receipt done [12:31:21]requested_data is exist [12:31:21]produce_requested_data [12:31:21]requested_item fm.sn is exist - process it [12:31:21]wFMCommunicate request_size=4 [12:31:21]MH_SAM_APDU [12:31:21]CAPDU: 80 11 00 00 [12:31:21]Write to MH i2c: E2 08 00 57 03 80 11 00 00 00 00 00 00 D4 [12:31:21]Write i2c OK [12:31:21]MH_I2C_Read... [12:31:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:21]Read from MH i2c: E2 [12:31:21]MH_I2C_Read... [12:31:21]Read from MH i2c: E2 17 00 [12:31:21]MH_I2C_Read... [12:31:21]Read from MH i2c: E2 17 00 57 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 28 [12:31:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [12:31:21]wFMCommunicate OK [12:31:21]requested_item fd.num is exist - process it [12:31:21]SAM_PROTO_GetFieldsCounters [12:31:21]wFMCommunicate request_size=4 [12:31:21]MH_SAM_APDU [12:31:21]CAPDU: 80 13 00 00 [12:31:21]Write to MH i2c: E2 08 00 58 03 80 13 00 00 00 00 00 00 D7 [12:31:21]Write i2c OK [12:31:21]MH_I2C_Read... [12:31:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:31:21]Read from MH i2c: E2 [12:31:21]MH_I2C_Read... [12:31:21]Read from MH i2c: E2 62 00 [12:31:21]MH_I2C_Read... [12:31:21]Read from MH i2c: E2 62 00 58 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 E3 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [12:31:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 E3 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:31:21]wFMCommunicate OK [12:31:21]SAM_PROTO_GetFieldsCounters done [12:31:21]requested_item shift.num is exist - process it [12:31:21]requested_item shift.opened is exist - process it [12:31:21]req_shift_opened [12:31:21]FM_GetShiftState [12:31:21]SAM_PROTO_GetShiftState [12:31:21]wFMCommunicate request_size=4 [12:31:21]MH_SAM_APDU [12:31:21]CAPDU: 80 13 01 00 [12:31:21]Write to MH i2c: E2 08 00 59 03 80 13 01 00 00 00 00 00 D9 [12:31:21]Write i2c OK [12:31:21]MH_I2C_Read... [12:31:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:21]Read from MH i2c: E2 [12:31:21]MH_I2C_Read... [12:31:21]Read from MH i2c: E2 0E 00 [12:31:21]MH_I2C_Read... [12:31:21]Read from MH i2c: E2 0E 00 59 03 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 F7 [12:31:21]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [12:31:21]wFMCommunicate OK [12:31:21]SAM_PROTO_GetShiftState done [12:31:21]FM_GetShiftState done [12:31:21]req_shift_opened done [12:31:21]requested_item shift.open_date is exist - process it [12:31:21]req_shift_open_date [12:31:21]req_shift_open_date done [12:31:21]produce_requested_data done [12:31:21]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103139,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [12:31:21]process_action_free close_receipt [12:31:21]json_value_free [12:31:21]json_value_free done [12:31:21]process_json_proto returns [12:31:21]Send response to host [12:31:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103139,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [12:31:21]free response buf [12:31:21]execute_script done [12:31:21]execute_script returns [12:31:21]free content buf [12:31:21]Sock 9.Close socket [12:31:21]Sock 9.Thread stoped [12:31:25]OFD Sender: No OFD packet to send [12:31:30]OFD Sender: No OFD packet to send [12:31:35]OFD Sender: No OFD packet to send [12:31:40]OFD Sender: No OFD packet to send [12:31:45]OFD Sender: No OFD packet to send [12:31:50]OFD Sender: No OFD packet to send [12:31:55]OFD Sender: No OFD packet to send [12:32:00]OFD Sender: No OFD packet to send [12:32:05]OFD Sender: No OFD packet to send [12:32:10]OFD Sender: No OFD packet to send [12:32:15]OFD Sender: No OFD packet to send [12:32:20]OFD Sender: No OFD packet to send [12:32:25]OFD Sender: No OFD packet to send [12:32:30]OFD Sender: No OFD packet to send [12:32:35]OFD Sender: No OFD packet to send [12:32:40]OFD Sender: No OFD packet to send [12:32:45]OFD Sender: No OFD packet to send [12:32:50]OFD Sender: No OFD packet to send [12:32:52]accept exits with 7 [12:32:52]New connection [12:32:52]New thread 3066686820 created [12:32:52]Thread 3066830180 joined [12:32:52]Waiting for new connection... [12:32:52] Sock 7.Parse request [12:32:52]Sock 7.Check first char [12:32:52]Sock 7.First char is OK [12:32:52]request: POST /json_proto HTTP/1.0 [12:32:52]Method: POST [12:32:52]URL: /json_proto [12:32:52]Method is POST - this is cgi request [12:32:52]url: /json_proto [12:32:52]query_string will be loaded in cgi processing [12:32:52]execute_cgi json_proto POST (null) [12:32:52]execute_cgi path=json_proto method=POST [12:32:52]POST find Content-Length [12:32:52]Host: 172.17.58.3:8080 [12:32:52]Content-Length: 670 [12:32:52]Content-Type: application/json [12:32:52] [12:32:52]POST finish read [12:32:52]Found Content-Length = 670 [12:32:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160769", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 66.90, "quantity" : 12.770, "sum" : 854.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 854.00, "total" : 854.00, "payments": [ { "type": 0, "sum" : 854.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:52]execute_script... [12:32:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160769", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 66.90, "quantity" : 12.770, "sum" : 854.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 854.00, "total" : 854.00, "payments": [ { "type": 0, "sum" : 854.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:52]POST & json_proto [12:32:52]process_json_proto [12:32:52]json parsed OK: [12:32:52]protocol is kg_v1.0 [12:32:52]action value=close_receipt [12:32:52]process_action close_receipt [12:32:52]cmd_close_receipt [12:32:52]MH_GetDate [12:32:52]Write to MH i2c: F0 00 00 5A 03 4C [12:32:52]Write i2c OK [12:32:52]MH_I2C_Read... [12:32:52]Read from MH i2c: F0 [12:32:52]MH_I2C_Read... [12:32:52]Read from MH i2c: F0 09 00 [12:32:52]MH_I2C_Read... [12:32:52]Read from MH i2c: F0 09 00 5A 03 00 74 52 BB 66 DC E4 6D 64 CD [12:32:52]GetLastDocTimeStamp 1723552278 [12:32:52]current date 1723552372 [12:32:52]FM_GetShiftState [12:32:52]SAM_PROTO_GetShiftState [12:32:52]wFMCommunicate request_size=4 [12:32:52]MH_SAM_APDU [12:32:52]CAPDU: 80 13 01 00 [12:32:52]Write to MH i2c: E2 08 00 5B 03 80 13 01 00 00 00 00 00 DB [12:32:52]Write i2c OK [12:32:52]MH_I2C_Read... [12:32:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:52]Read from MH i2c: E2 [12:32:52]MH_I2C_Read... [12:32:52]Read from MH i2c: E2 0E 00 [12:32:52]MH_I2C_Read... [12:32:52]Read from MH i2c: E2 0E 00 5B 03 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 F9 [12:32:52]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [12:32:52]wFMCommunicate OK [12:32:52]SAM_PROTO_GetShiftState done [12:32:52]FM_GetShiftState done [12:32:52]opened in 1723506770 [12:32:52]opened+sec_in_day 1723593170 [12:32:52]quantity*price = 85431 [12:32:52]sum+1 = 85432 [12:32:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 854.00 Внесено: 854.00 СДАЧА: 0.00 НСП 1% : 7.56 НДС 12% : 90.72 Наличными: 854.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 51 13.08.2024 12:32 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103140 ФПД: 247088461667679 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T123252&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103140&fm=247088461667679&tin=02508201610067®Number=0000000000092718&sum=85400 [12:32:53]StoreToDocumentArchive [12:32:53]shift 464 fd 103140 [12:32:53]save to /storage/0464/doc_00103140 [12:32:53]save last doc name /storage/0464/doc_00103140 to /storage/kkm_last_doc_name [12:32:53]save OK [12:32:53]Clear old archive folders... [12:32:53]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:32:53]tlvbuf is 0153A310 [12:32:53]SAM_PROTO_ClearQueue [12:32:53]wFMCommunicate request_size=4 [12:32:53]MH_SAM_APDU [12:32:53]CAPDU: 80 09 00 00 [12:32:53]Write to MH i2c: E2 08 00 68 03 80 09 00 00 00 00 00 00 DD [12:32:53]Write i2c OK [12:32:53]MH_I2C_Read... [12:32:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:53]Read from MH i2c: E2 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: E2 03 00 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: E2 03 00 68 03 00 90 00 DF [12:32:53]RAPDU: 90 00 [12:32:53]wFMCommunicate OK [12:32:53]SAM_PROTO_ClearQueue done [12:32:53]KKMCreateOFDPacket [12:32:53]OFDProtocolAddRootSTLVToBuf [12:32:53]FM_MakeSignedData [12:32:53]FM_MakeSignedData [12:32:53]SAM_PROTO_SignData [12:32:53]wFMCommunicate request_size=4 [12:32:53]MH_SAM_APDU [12:32:53]CAPDU: 80 0D 01 02 [12:32:53]Write to MH i2c: E2 08 00 69 03 80 0D 01 02 00 00 00 00 E5 [12:32:53]Write i2c OK [12:32:53]MH_I2C_Read... [12:32:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:53]Read from MH i2c: E2 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: E2 03 00 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: E2 03 00 69 03 00 90 00 E0 [12:32:53]RAPDU: 90 00 [12:32:53]wFMCommunicate OK [12:32:53]wFMCommunicate request_size=255 [12:32:53]MH_SAM_APDU [12:32:53]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B7 4D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 4D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 23 00 00 00 00 07 04 06 00 98 4D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 74 52 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 E4 92 01 00 35 04 06 00 [12:32:53]Write to MH i2c: E2 02 01 6A 03 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B7 4D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 4D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 23 00 00 00 00 07 04 06 00 98 4D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 74 52 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 E4 92 01 00 35 04 06 00 00 00 9A [12:32:53]Write i2c OK [12:32:53]MH_I2C_Read... [12:32:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:53]Read from MH i2c: E2 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: E2 03 00 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: E2 03 00 6A 03 00 90 00 E1 [12:32:53]RAPDU: 90 00 [12:32:53]wFMCommunicate OK [12:32:53]wFMCommunicate request_size=11 [12:32:53]MH_SAM_APDU [12:32:53]CAPDU: 80 0D 02 02 06 E0 B9 C3 FC 5D 5F [12:32:53]Write to MH i2c: E2 0E 00 6B 03 80 0D 02 02 06 00 E0 B9 C3 FC 5D 5F 00 00 08 [12:32:53]Write i2c OK [12:32:53]MH_I2C_Read... [12:32:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:53]Read from MH i2c: E2 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: E2 03 00 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: E2 03 00 6B 03 00 90 00 E2 [12:32:53]RAPDU: 90 00 [12:32:53]wFMCommunicate OK [12:32:53]wFMCommunicate request_size=4 [12:32:53]MH_SAM_APDU [12:32:53]CAPDU: 80 0D 03 02 [12:32:53]Write to MH i2c: E2 08 00 6C 03 80 0D 03 02 00 00 00 00 EA [12:32:53]Write i2c OK [12:32:53]MH_I2C_Read... [12:32:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:53]Read from MH i2c: E2 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: E2 0B 00 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: E2 0B 00 6C 03 00 4E 2F E3 97 52 AC 47 D0 90 00 F7 [12:32:53]RAPDU: 4E 2F E3 97 52 AC 47 D0 90 00 [12:32:53]wFMCommunicate OK [12:32:53]SAM_PROTO_SignData done [12:32:53]FM_MakeSignedData done [12:32:53]CreateOFDProtocolMessage [12:32:53]wFMCommunicate request_size=4 [12:32:53]MH_SAM_APDU [12:32:53]CAPDU: 80 11 00 00 [12:32:53]Write to MH i2c: E2 08 00 6D 03 80 11 00 00 00 00 00 00 EA [12:32:53]Write i2c OK [12:32:53]MH_I2C_Read... [12:32:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:53]Read from MH i2c: E2 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: E2 17 00 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: E2 17 00 6D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 3E [12:32:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [12:32:53]wFMCommunicate OK [12:32:53]CreateOFDProtocolMessage done [12:32:53]OFDSenderStorePacket 103140 [12:32:53]StoreOFDPacket docnum=103140 [12:32:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 01 00 00 04 C8 08 01 B1 F3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B7 4D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 4D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 23 00 00 00 00 07 04 06 00 98 4D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 74 52 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 E4 92 01 00 35 04 06 00 E0 B9 C3 FC 5D 5F 4E 2F E3 97 52 AC 47 D0 [12:32:53]CheckFolder [12:32:53]dirname=/storage/ofd_packets [12:32:53]CheckFolder done [12:32:53]ProducePacketName [12:32:53]name=ofd_packets/00103140 [12:32:53]NVStorageSaveData ofd_packets/00103140 [12:32:53]File name is /storage/ofd_packets/00103140 [12:32:53]Write 302 bytes [12:32:53]NVStorageSaveData done [12:32:53]OFDSenderStorePacket done [12:32:53]KKMCreateOFDPacket done [12:32:53]NVStorageSaveData kkm_last_timestamp [12:32:53]File name is /storage/kkm_last_timestamp [12:32:53]Write 4 bytes [12:32:53]NVStorageSaveData done [12:32:53]ExternCall_PrintAddStr [12:32:53]wPrintStart [12:32:53]Write to MH i2c: 01 00 00 6E 03 71 [12:32:53]Write i2c OK [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: 01 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: 01 07 00 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: 01 07 00 6E 03 00 00 00 00 00 FF 0F 86 [12:32:53]RasterBufferAndPrint [12:32:53]line Счет N : (1)160769 [12:32:53]line ИНН: 02508201610067 [12:32:53]line Контрольно-Кассовый Чек [12:32:53]line ПРОДАЖА [12:32:53]line ТРК (МРК, ГНК) : 2 [12:32:53]line Товар: 2710124130 [12:32:53]line SUPER 92-К-5 [12:32:53]line 12.770 * 66.90 [12:32:53]line = 854.31 [12:32:53]line НДС 12% НСП 1% [12:32:53]line > о реализуемом товаре [12:32:53]line ОКРУГЛЕНИЕ: -0.31 [12:32:53]line ИТОГО: 854.00 [12:32:53]line Внесено: 854.00 [12:32:53]line СДАЧА: 0.00 [12:32:53]line НСП 1% : 7.56 [12:32:53]line НДС 12% : 90.72 [12:32:53]line Наличными: 854.00 [12:32:53]line Безнал.: 0.00 [12:32:53]line Место: АЗС № 38 "Партнер Нефть" [12:32:53]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [12:32:53]line СНО: Общий режим [12:32:53]line Чек 51 13.08.2024 12:32 [12:32:53]line Смена: 464 ФФД: 1.0 [12:32:53]line ЗНМ: 0300000126 [12:32:53]line РНМ: 0000000000092718 [12:32:53]line Версия ККМ: 001 [12:32:53]line ФМ: 0000000000875058 [12:32:53]line ФД: 103140 [12:32:53]line ФПД: 247088461667679 [12:32:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T123252&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103140&fm=247088461667679&tin=02508201610067®Number=0000000000092718&sum=85400 [12:32:54]OFD Sender: Processing packet 103140 [packets to send 69, broken 68] [12:32:54]ProducePacketName [12:32:54]name=ofd_packets/00103140 [12:32:54]OFD Sender: To server: pG, [12:32:54]CommunicateWithHost lk.salyk.kg:30040 [12:32:54]ConnectInit lk.salyk.kg [12:32:54]written 0, free lines is 4095 [12:32:54]Connected sock=10 [12:32:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 01 00 00 04 C8 08 01 B1 F3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B7 4D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 4D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 23 00 00 00 00 07 04 06 00 98 4D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 74 52 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 E4 92 01 00 35 04 06 00 E0 B9 C3 FC 5D 5F 4E 2F E3 97 52 AC 47 D0 [12:32:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 D8 45 47 00 D1 FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 E4 92 01 00 F4 03 04 00 E7 F8 BA 66 B6 04 01 00 00 31 AC 32 7C 90 A2 70 FE [12:32:54]CommunicateWithHost err = 0 [12:32:54]CheckOFDResponse [12:32:54]1017 (14) - 77093643461234 [12:32:54]1041 (16) - 0000000000875058 [12:32:54]1040 (4) - 103140 [12:32:54]1012 (4) - 13.08.2024 06:10 [12:32:54]1206 (1) - 0 [12:32:54]OFD Sender: Remove packet 103140 [12:32:54]ProducePacketName [12:32:54]name=ofd_packets/00103140 [12:32:54]NVStorageDeleteData [12:32:54]Write to MH i2c: 01 00 00 99 03 9C [12:32:54]Write i2c OK [12:32:54]MH_I2C_Read... [12:32:54]Read from MH i2c: 01 [12:32:54]MH_I2C_Read... [12:32:54]Read from MH i2c: 01 07 00 [12:32:54]MH_I2C_Read... [12:32:54]Read from MH i2c: 01 07 00 99 03 00 00 00 00 00 EE 0C 9D [12:32:54]RasterBufferAndPrint [12:32:54]line [12:32:54]line [12:32:54]line [12:32:54]line [12:32:54]line [12:32:54]written 0, free lines is 3316 [12:32:54]MH_Cut [12:32:54]Write to MH i2c: D1 01 00 A0 03 01 75 [12:32:54]Write i2c OK [12:32:54]MH_I2C_Read... [12:32:54]Read from MH i2c: D1 [12:32:54]MH_I2C_Read... [12:32:54]Read from MH i2c: D1 01 00 [12:32:54]MH_I2C_Read... [12:32:54]Read from MH i2c: D1 01 00 A0 03 00 74 [12:32:54]Write to MH i2c: 01 00 00 A1 03 A4 [12:32:54]Write i2c OK [12:32:54]MH_I2C_Read... [12:32:54]OFD Sender: No OFD packet to send [12:32:55]*** Cut start [12:32:55]*** Purtial cut [12:32:55]*** CUTSNS_PIN = 0 [12:32:55]*** Stage 1: CUTSNS_PIN = 1 [12:32:57]Read from MH i2c: 01 [12:32:57]MH_I2C_Read... [12:32:57]*** Stop cut motor [12:32:57]*** Cut end [12:32:57]Read from MH i2c: 01 07 00 [12:32:57]MH_I2C_Read... [12:32:57]Read from MH i2c: 01 07 00 A1 03 00 00 00 00 00 FF 0F B9 [12:32:57]process_action close_receipt done [12:32:57]requested_data is exist [12:32:57]produce_requested_data [12:32:57]requested_item fm.sn is exist - process it [12:32:57]wFMCommunicate request_size=4 [12:32:57]MH_SAM_APDU [12:32:57]CAPDU: 80 11 00 00 [12:32:57]Write to MH i2c: E2 08 00 A2 03 80 11 00 00 00 00 00 00 1F [12:32:57]Write i2c OK [12:32:57]MH_I2C_Read... [12:32:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:57]Read from MH i2c: E2 [12:32:57]MH_I2C_Read... [12:32:57]Read from MH i2c: E2 17 00 [12:32:57]MH_I2C_Read... [12:32:57]Read from MH i2c: E2 17 00 A2 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 73 [12:32:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [12:32:57]wFMCommunicate OK [12:32:57]requested_item fd.num is exist - process it [12:32:57]SAM_PROTO_GetFieldsCounters [12:32:57]wFMCommunicate request_size=4 [12:32:57]MH_SAM_APDU [12:32:57]CAPDU: 80 13 00 00 [12:32:57]Write to MH i2c: E2 08 00 A3 03 80 13 00 00 00 00 00 00 22 [12:32:57]Write i2c OK [12:32:57]MH_I2C_Read... [12:32:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:57]Read from MH i2c: E2 [12:32:57]MH_I2C_Read... [12:32:57]Read from MH i2c: E2 62 00 [12:32:57]MH_I2C_Read... [12:32:57]Read from MH i2c: E2 62 00 A3 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 E4 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [12:32:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 E4 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:32:57]wFMCommunicate OK [12:32:57]SAM_PROTO_GetFieldsCounters done [12:32:57]requested_item shift.num is exist - process it [12:32:57]requested_item shift.opened is exist - process it [12:32:57]req_shift_opened [12:32:57]FM_GetShiftState [12:32:57]SAM_PROTO_GetShiftState [12:32:57]wFMCommunicate request_size=4 [12:32:57]MH_SAM_APDU [12:32:57]CAPDU: 80 13 01 00 [12:32:57]Write to MH i2c: E2 08 00 A4 03 80 13 01 00 00 00 00 00 24 [12:32:57]Write i2c OK [12:32:57]MH_I2C_Read... [12:32:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:57]Read from MH i2c: E2 [12:32:57]MH_I2C_Read... [12:32:57]Read from MH i2c: E2 0E 00 [12:32:57]MH_I2C_Read... [12:32:57]Read from MH i2c: E2 0E 00 A4 03 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 42 [12:32:57]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [12:32:57]wFMCommunicate OK [12:32:57]SAM_PROTO_GetShiftState done [12:32:57]FM_GetShiftState done [12:32:57]req_shift_opened done [12:32:57]requested_item shift.open_date is exist - process it [12:32:57]req_shift_open_date [12:32:57]req_shift_open_date done [12:32:57]produce_requested_data done [12:32:57]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103140,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [12:32:57]process_action_free close_receipt [12:32:57]json_value_free [12:32:57]json_value_free done [12:32:57]process_json_proto returns [12:32:57]Send response to host [12:32:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103140,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [12:32:57]free response buf [12:32:57]execute_script done [12:32:57]execute_script returns [12:32:57]free content buf [12:32:57]Sock 7.Close socket [12:32:57]Sock 7.Thread stoped [12:33:00]OFD Sender: No OFD packet to send [12:33:05]OFD Sender: No OFD packet to send [12:33:10]OFD Sender: No OFD packet to send [12:33:15]OFD Sender: No OFD packet to send [12:33:20]OFD Sender: No OFD packet to send [12:33:25]OFD Sender: No OFD packet to send [12:33:30]OFD Sender: No OFD packet to send [12:33:35]OFD Sender: No OFD packet to send [12:33:40]OFD Sender: No OFD packet to send [12:33:45]OFD Sender: No OFD packet to send [12:33:50]OFD Sender: No OFD packet to send [12:33:55]OFD Sender: No OFD packet to send [12:34:00]OFD Sender: No OFD packet to send [12:34:05]OFD Sender: No OFD packet to send [12:34:10]OFD Sender: No OFD packet to send [12:34:15]OFD Sender: No OFD packet to send [12:34:20]OFD Sender: No OFD packet to send [12:34:25]OFD Sender: No OFD packet to send [12:34:30]OFD Sender: No OFD packet to send [12:34:35]OFD Sender: No OFD packet to send [12:34:40]OFD Sender: No OFD packet to send [12:34:45]OFD Sender: No OFD packet to send [12:34:50]OFD Sender: No OFD packet to send [12:34:55]OFD Sender: No OFD packet to send [12:35:00]OFD Sender: No OFD packet to send [12:35:05]OFD Sender: No OFD packet to send [12:35:10]OFD Sender: No OFD packet to send [12:35:15]OFD Sender: No OFD packet to send [12:35:20]OFD Sender: No OFD packet to send [12:35:25]OFD Sender: No OFD packet to send [12:35:26]accept exits with 9 [12:35:26]New connection [12:35:26]New thread 3066830180 created [12:35:26]Thread 3066686820 joined [12:35:26]Waiting for new connection... [12:35:26] Sock 9.Parse request [12:35:26]Sock 9.Check first char [12:35:26]Sock 9.First char is OK [12:35:26]request: POST /json_proto HTTP/1.0 [12:35:26]Method: POST [12:35:26]URL: /json_proto [12:35:26]Method is POST - this is cgi request [12:35:26]url: /json_proto [12:35:26]query_string will be loaded in cgi processing [12:35:26]execute_cgi json_proto POST (null) [12:35:26]execute_cgi path=json_proto method=POST [12:35:26]POST find Content-Length [12:35:26]Host: 172.17.58.3:8080 [12:35:26]Content-Length: 678 [12:35:26]Content-Type: application/json [12:35:26] [12:35:26]POST finish read [12:35:26]Found Content-Length = 678 [12:35:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160770", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 20.330, "sum" : 1500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:35:26]execute_script... [12:35: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)160770", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 20.330, "sum" : 1500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:35:26]POST & json_proto [12:35:26]process_json_proto [12:35:26]json parsed OK: [12:35:26]protocol is kg_v1.0 [12:35:26]action value=close_receipt [12:35:26]process_action close_receipt [12:35:26]cmd_close_receipt [12:35:26]MH_GetDate [12:35:26]Write to MH i2c: F0 00 00 A5 03 97 [12:35:26]Write i2c OK [12:35:26]MH_I2C_Read... [12:35:26]Read from MH i2c: F0 [12:35:26]MH_I2C_Read... [12:35:26]Read from MH i2c: F0 09 00 [12:35:26]MH_I2C_Read... [12:35:26]Read from MH i2c: F0 09 00 A5 03 00 0E 53 BB 66 DC E4 6D 64 B3 [12:35:26]GetLastDocTimeStamp 1723552372 [12:35:26]current date 1723552526 [12:35:26]FM_GetShiftState [12:35:26]SAM_PROTO_GetShiftState [12:35:26]wFMCommunicate request_size=4 [12:35:26]MH_SAM_APDU [12:35:26]CAPDU: 80 13 01 00 [12:35:26]Write to MH i2c: E2 08 00 A6 03 80 13 01 00 00 00 00 00 26 [12:35:26]Write i2c OK [12:35:26]MH_I2C_Read... [12:35:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:26]Read from MH i2c: E2 [12:35:26]MH_I2C_Read... [12:35:26]Read from MH i2c: E2 0E 00 [12:35:26]MH_I2C_Read... [12:35:26]Read from MH i2c: E2 0E 00 A6 03 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 44 [12:35:26]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [12:35:26]wFMCommunicate OK [12:35:26]SAM_PROTO_GetShiftState done [12:35:26]FM_GetShiftState done [12:35:26]opened in 1723506770 [12:35:26]opened+sec_in_day 1723593170 [12:35:26]quantity*price = 150035 [12:35:26]sum+1 = 150036 [12:35:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 52 13.08.2024 12:35 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103141 ФПД: 88858401130095 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T123526&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103141&fm=88858401130095&tin=02508201610067®Number=0000000000092718&sum=150000 [12:35:27]StoreToDocumentArchive [12:35:27]shift 464 fd 103141 [12:35:27]save to /storage/0464/doc_00103141 [12:35:27]save last doc name /storage/0464/doc_00103141 to /storage/kkm_last_doc_name [12:35:27]save OK [12:35:27]Clear old archive folders... [12:35:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:35:27]tlvbuf is 0152DB20 [12:35:27]SAM_PROTO_ClearQueue [12:35:27]wFMCommunicate request_size=4 [12:35:27]MH_SAM_APDU [12:35:27]CAPDU: 80 09 00 00 [12:35:27]Write to MH i2c: E2 08 00 B3 03 80 09 00 00 00 00 00 00 28 [12:35:27]Write i2c OK [12:35:27]MH_I2C_Read... [12:35:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:35:27]Read from MH i2c: E2 [12:35:27]MH_I2C_Read... [12:35:27]Read from MH i2c: E2 03 00 [12:35:27]MH_I2C_Read... [12:35:27]Read from MH i2c: E2 03 00 B3 03 00 90 00 2A [12:35:27]RAPDU: 90 00 [12:35:27]wFMCommunicate OK [12:35:27]SAM_PROTO_ClearQueue done [12:35:27]KKMCreateOFDPacket [12:35:27]OFDProtocolAddRootSTLVToBuf [12:35:27]FM_MakeSignedData [12:35:27]FM_MakeSignedData [12:35:27]SAM_PROTO_SignData [12:35:27]wFMCommunicate request_size=4 [12:35:27]MH_SAM_APDU [12:35:27]CAPDU: 80 0D 01 02 [12:35:27]Write to MH i2c: E2 08 00 B4 03 80 0D 01 02 00 00 00 00 30 [12:35:27]Write i2c OK [12:35:27]MH_I2C_Read... [12:35:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:35:27]Read from MH i2c: E2 [12:35:27]MH_I2C_Read... [12:35:27]Read from MH i2c: E2 03 00 [12:35:27]MH_I2C_Read... [12:35:27]Read from MH i2c: E2 03 00 B4 03 00 90 00 2B [12:35:27]RAPDU: 90 00 [12:35:27]wFMCommunicate OK [12:35:27]wFMCommunicate request_size=255 [12:35:27]MH_SAM_APDU [12:35:27]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6A 4F 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 13 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 34 00 00 00 F4 03 04 00 0E 53 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 E5 92 01 00 35 04 06 00 50 D0 F5 6F [12:35:27]Write to MH i2c: E2 02 01 B5 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 6A 4F 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 13 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 34 00 00 00 F4 03 04 00 0E 53 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 E5 92 01 00 35 04 06 00 50 D0 F5 6F 00 00 41 [12:35:27]Write i2c OK [12:35:27]MH_I2C_Read... [12:35:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:27]Read from MH i2c: E2 [12:35:27]MH_I2C_Read... [12:35:27]Read from MH i2c: E2 03 00 [12:35:27]MH_I2C_Read... [12:35:27]Read from MH i2c: E2 03 00 B5 03 00 90 00 2C [12:35:27]RAPDU: 90 00 [12:35:27]wFMCommunicate OK [12:35:27]wFMCommunicate request_size=7 [12:35:27]MH_SAM_APDU [12:35:27]CAPDU: 80 0D 02 02 02 46 6F [12:35:27]Write to MH i2c: E2 0A 00 B6 03 80 0D 02 02 02 00 46 6F 00 00 EC [12:35:27]Write i2c OK [12:35:27]MH_I2C_Read... [12:35:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:27]Read from MH i2c: E2 [12:35:27]MH_I2C_Read... [12:35:27]Read from MH i2c: E2 03 00 [12:35:27]MH_I2C_Read... [12:35:27]Read from MH i2c: E2 03 00 B6 03 00 90 00 2D [12:35:27]RAPDU: 90 00 [12:35:27]wFMCommunicate OK [12:35:27]wFMCommunicate request_size=4 [12:35:27]MH_SAM_APDU [12:35:27]CAPDU: 80 0D 03 02 [12:35:27]Write to MH i2c: E2 08 00 B7 03 80 0D 03 02 00 00 00 00 35 [12:35:27]Write i2c OK [12:35:27]MH_I2C_Read... [12:35:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:35:27]Read from MH i2c: E2 [12:35:27]MH_I2C_Read... [12:35:27]Read from MH i2c: E2 0B 00 [12:35:27]MH_I2C_Read... [12:35:27]Read from MH i2c: E2 0B 00 B7 03 00 E0 0E 7C D5 69 22 CD 99 90 00 66 [12:35:27]RAPDU: E0 0E 7C D5 69 22 CD 99 90 00 [12:35:27]wFMCommunicate OK [12:35:27]SAM_PROTO_SignData done [12:35:27]FM_MakeSignedData done [12:35:27]CreateOFDProtocolMessage [12:35:27]wFMCommunicate request_size=4 [12:35:27]MH_SAM_APDU [12:35:27]CAPDU: 80 11 00 00 [12:35:27]Write to MH i2c: E2 08 00 B8 03 80 11 00 00 00 00 00 00 35 [12:35:27]Write i2c OK [12:35:27]MH_I2C_Read... [12:35:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:27]Read from MH i2c: E2 [12:35:27]MH_I2C_Read... [12:35:27]Read from MH i2c: E2 17 00 [12:35:27]MH_I2C_Read... [12:35:27]Read from MH i2c: E2 17 00 B8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 89 [12:35:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [12:35:27]wFMCommunicate OK [12:35:27]CreateOFDProtocolMessage done [12:35:27]OFDSenderStorePacket 103141 [12:35:27]StoreOFDPacket docnum=103141 [12:35:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 8B 89 04 01 ED 88 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6A 4F 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 13 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 34 00 00 00 F4 03 04 00 0E 53 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 E5 92 01 00 35 04 06 00 50 D0 F5 6F 46 6F E0 0E 7C D5 69 22 CD 99 [12:35:27]CheckFolder [12:35:27]dirname=/storage/ofd_packets [12:35:27]CheckFolder done [12:35:27]ProducePacketName [12:35:27]name=ofd_packets/00103141 [12:35:27]NVStorageSaveData ofd_packets/00103141 [12:35:27]File name is /storage/ofd_packets/00103141 [12:35:27]Write 298 bytes [12:35:27]NVStorageSaveData done [12:35:27]OFDSenderStorePacket done [12:35:27]KKMCreateOFDPacket done [12:35:27]NVStorageSaveData kkm_last_timestamp [12:35:27]File name is /storage/kkm_last_timestamp [12:35:27]Write 4 bytes [12:35:27]NVStorageSaveData done [12:35:27]ExternCall_PrintAddStr [12:35:27]wPrintStart [12:35:27]Write to MH i2c: 01 00 00 B9 03 BC [12:35:27]Write i2c OK [12:35:27]MH_I2C_Read... [12:35:27]Read from MH i2c: 01 [12:35:27]MH_I2C_Read... [12:35:27]Read from MH i2c: 01 07 00 [12:35:27]MH_I2C_Read... [12:35:27]Read from MH i2c: 01 07 00 B9 03 00 00 00 00 00 FF 0F D1 [12:35:27]RasterBufferAndPrint [12:35:27]line Счет N : (1)160770 [12:35:27]line ИНН: 02508201610067 [12:35:27]line Контрольно-Кассовый Чек [12:35:27]line ПРОДАЖА [12:35:27]line ТРК (МРК, ГНК) : 5 [12:35:27]line Товар: 2710194210 [12:35:27]line ДТ-К-5 [12:35:27]line 20.330 * 73.80 [12:35:27]line = 1500.35 [12:35:27]line НДС 12% НСП 1% [12:35:27]line > о реализуемом товаре [12:35:27]line ОКРУГЛЕНИЕ: -0.35 [12:35:27]line ИТОГО: 1500.00 [12:35:27]line Внесено: 1500.00 [12:35:27]line СДАЧА: 0.00 [12:35:27]line НСП 1% : 13.28 [12:35:27]line НДС 12% : 159.33 [12:35:27]line Наличными: 1500.00 [12:35:27]line Безнал.: 0.00 [12:35:27]line Место: АЗС № 38 "Партнер Нефть" [12:35:27]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [12:35:27]line СНО: Общий режим [12:35:27]line Чек 52 13.08.2024 12:35 [12:35:27]line Смена: 464 ФФД: 1.0 [12:35:27]line ЗНМ: 0300000126 [12:35:27]line РНМ: 0000000000092718 [12:35:27]line Версия ККМ: 001 [12:35:27]line ФМ: 0000000000875058 [12:35:27]line ФД: 103141 [12:35:27]line ФПД: 88858401130095 [12:35:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T123526&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103141&fm=88858401130095&tin=02508201610067®Number=0000000000092718&sum=150000 [12:35:28]OFD Sender: Processing packet 103141 [packets to send 69, broken 68] [12:35:28]ProducePacketName [12:35:28]name=ofd_packets/00103141 [12:35:28]OFD Sender: To server: pG, [12:35:28]CommunicateWithHost lk.salyk.kg:30040 [12:35:28]ConnectInit lk.salyk.kg [12:35:28]written 0, free lines is 4095 [12:35:28]Connected sock=10 [12:35:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 8B 89 04 01 ED 88 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6A 4F 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 13 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 34 00 00 00 F4 03 04 00 0E 53 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 E5 92 01 00 35 04 06 00 50 D0 F5 6F 46 6F E0 0E 7C D5 69 22 CD 99 [12:35:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 D3 B1 47 00 F8 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 E5 92 01 00 F4 03 04 00 81 F9 BA 66 B6 04 01 00 00 5D 55 75 B7 43 7B 88 7A [12:35:28]CommunicateWithHost err = 0 [12:35:28]CheckOFDResponse [12:35:28]1017 (14) - 77093643461234 [12:35:28]1041 (16) - 0000000000875058 [12:35:28]1040 (4) - 103141 [12:35:28]1012 (4) - 13.08.2024 06:13 [12:35:28]1206 (1) - 0 [12:35:28]OFD Sender: Remove packet 103141 [12:35:28]ProducePacketName [12:35:28]name=ofd_packets/00103141 [12:35:28]NVStorageDeleteData [12:35:28]Write to MH i2c: 01 00 00 E4 03 E7 [12:35:28]Write i2c OK [12:35:28]MH_I2C_Read... [12:35:28]Read from MH i2c: 01 [12:35:28]MH_I2C_Read... [12:35:28]Read from MH i2c: 01 07 00 [12:35:28]MH_I2C_Read... [12:35:28]Read from MH i2c: 01 07 00 E4 03 00 00 00 00 00 EE 0C E8 [12:35:28]RasterBufferAndPrint [12:35:28]line [12:35:28]line [12:35:28]line [12:35:28]line [12:35:28]line [12:35:28]written 0, free lines is 3316 [12:35:28]MH_Cut [12:35:28]Write to MH i2c: D1 01 00 EB 03 01 C0 [12:35:28]Write i2c OK [12:35:28]MH_I2C_Read... [12:35:28]Read from MH i2c: D1 [12:35:28]MH_I2C_Read... [12:35:28]Read from MH i2c: D1 01 00 [12:35:28]MH_I2C_Read... [12:35:28]Read from MH i2c: D1 01 00 EB 03 00 BF [12:35:28]Write to MH i2c: 01 00 00 EC 03 EF [12:35:28]Write i2c OK [12:35:28]MH_I2C_Read... [12:35:28]OFD Sender: No OFD packet to send [12:35:29]*** Cut start [12:35:29]*** Purtial cut [12:35:29]*** Stage 1: CUTSNS_PIN = 1 [12:35:29]Read from MH i2c: 01 [12:35:29]MH_I2C_Read... [12:35:29]*** Stop cut motor [12:35:29]*** Cut end [12:35:29]Read from MH i2c: 01 07 00 [12:35:29]MH_I2C_Read... [12:35:29]Read from MH i2c: 01 07 00 EC 03 00 00 00 00 00 FF 0F 04 [12:35:29]process_action close_receipt done [12:35:29]requested_data is exist [12:35:29]produce_requested_data [12:35:29]requested_item fm.sn is exist - process it [12:35:29]wFMCommunicate request_size=4 [12:35:29]MH_SAM_APDU [12:35:29]CAPDU: 80 11 00 00 [12:35:29]Write to MH i2c: E2 08 00 ED 03 80 11 00 00 00 00 00 00 6A [12:35:29]Write i2c OK [12:35:29]MH_I2C_Read... [12:35:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:29]Read from MH i2c: E2 [12:35:29]MH_I2C_Read... [12:35:29]Read from MH i2c: E2 17 00 [12:35:29]MH_I2C_Read... [12:35:29]Read from MH i2c: E2 17 00 ED 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 BE [12:35:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [12:35:29]wFMCommunicate OK [12:35:29]requested_item fd.num is exist - process it [12:35:29]SAM_PROTO_GetFieldsCounters [12:35:29]wFMCommunicate request_size=4 [12:35:29]MH_SAM_APDU [12:35:29]CAPDU: 80 13 00 00 [12:35:29]Write to MH i2c: E2 08 00 EE 03 80 13 00 00 00 00 00 00 6D [12:35:29]Write i2c OK [12:35:29]MH_I2C_Read... [12:35:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:35:29]Read from MH i2c: E2 [12:35:29]MH_I2C_Read... [12:35:29]Read from MH i2c: E2 62 00 [12:35:29]MH_I2C_Read... [12:35:29]Read from MH i2c: E2 62 00 EE 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 E5 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [12:35:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 E5 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:35:29]wFMCommunicate OK [12:35:29]SAM_PROTO_GetFieldsCounters done [12:35:29]requested_item shift.num is exist - process it [12:35:29]requested_item shift.opened is exist - process it [12:35:29]req_shift_opened [12:35:29]FM_GetShiftState [12:35:29]SAM_PROTO_GetShiftState [12:35:29]wFMCommunicate request_size=4 [12:35:29]MH_SAM_APDU [12:35:29]CAPDU: 80 13 01 00 [12:35:29]Write to MH i2c: E2 08 00 EF 03 80 13 01 00 00 00 00 00 6F [12:35:29]Write i2c OK [12:35:29]MH_I2C_Read... [12:35:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:29]Read from MH i2c: E2 [12:35:29]MH_I2C_Read... [12:35:29]Read from MH i2c: E2 0E 00 [12:35:29]MH_I2C_Read... [12:35:29]Read from MH i2c: E2 0E 00 EF 03 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 8D [12:35:29]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [12:35:29]wFMCommunicate OK [12:35:29]SAM_PROTO_GetShiftState done [12:35:29]FM_GetShiftState done [12:35:29]req_shift_opened done [12:35:29]requested_item shift.open_date is exist - process it [12:35:29]req_shift_open_date [12:35:29]req_shift_open_date done [12:35:29]produce_requested_data done [12:35:29]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103141,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [12:35:29]process_action_free close_receipt [12:35:29]json_value_free [12:35:29]json_value_free done [12:35:29]process_json_proto returns [12:35:29]Send response to host [12:35:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103141,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [12:35:29]free response buf [12:35:29]execute_script done [12:35:29]execute_script returns [12:35:29]free content buf [12:35:29]Sock 9.Close socket [12:35:29]Sock 9.Thread stoped [12:35:33]OFD Sender: No OFD packet to send [12:35:38]OFD Sender: No OFD packet to send [12:35:43]OFD Sender: No OFD packet to send [12:35:48]OFD Sender: No OFD packet to send [12:35:53]OFD Sender: No OFD packet to send [12:35:58]OFD Sender: No OFD packet to send [12:36:03]OFD Sender: No OFD packet to send [12:36:08]OFD Sender: No OFD packet to send [12:36:13]OFD Sender: No OFD packet to send [12:36:18]OFD Sender: No OFD packet to send [12:36:23]OFD Sender: No OFD packet to send [12:36:28]OFD Sender: No OFD packet to send [12:36:33]OFD Sender: No OFD packet to send [12:36:38]OFD Sender: No OFD packet to send [12:36:43]OFD Sender: No OFD packet to send [12:36:48]OFD Sender: No OFD packet to send [12:36:53]OFD Sender: No OFD packet to send [12:36:58]OFD Sender: No OFD packet to send [12:37:04]OFD Sender: No OFD packet to send [12:37:09]OFD Sender: No OFD packet to send [12:37:14]OFD Sender: No OFD packet to send [12:37:19]OFD Sender: No OFD packet to send [12:37:24]OFD Sender: No OFD packet to send [12:37:29]OFD Sender: No OFD packet to send [12:37:34]OFD Sender: No OFD packet to send [12:37:39]OFD Sender: No OFD packet to send [12:37:44]OFD Sender: No OFD packet to send [12:37:49]OFD Sender: No OFD packet to send [12:37:54]OFD Sender: No OFD packet to send [12:37:59]OFD Sender: No OFD packet to send [12:38:04]OFD Sender: No OFD packet to send [12:38:09]OFD Sender: No OFD packet to send [12:38:14]OFD Sender: No OFD packet to send [12:38:19]OFD Sender: No OFD packet to send [12:38:24]OFD Sender: No OFD packet to send [12:38:29]OFD Sender: No OFD packet to send [12:38:34]OFD Sender: No OFD packet to send [12:38:39]OFD Sender: No OFD packet to send [12:38:44]OFD Sender: No OFD packet to send [12:38:49]OFD Sender: No OFD packet to send [12:38:54]OFD Sender: No OFD packet to send [12:38:59]OFD Sender: No OFD packet to send [12:39:04]OFD Sender: No OFD packet to send [12:39:09]OFD Sender: No OFD packet to send [12:39:14]OFD Sender: No OFD packet to send [12:39:19]OFD Sender: No OFD packet to send [12:39:24]OFD Sender: No OFD packet to send [12:39:29]OFD Sender: No OFD packet to send [12:39:34]OFD Sender: No OFD packet to send [12:39:39]OFD Sender: No OFD packet to send [12:39:44]OFD Sender: No OFD packet to send [12:39:49]OFD Sender: No OFD packet to send [12:39:54]OFD Sender: No OFD packet to send [12:39:59]OFD Sender: No OFD packet to send [12:40:04]OFD Sender: No OFD packet to send [12:40:09]OFD Sender: No OFD packet to send [12:40:14]OFD Sender: No OFD packet to send [12:40:19]OFD Sender: No OFD packet to send [12:40:24]OFD Sender: No OFD packet to send [12:40:29]OFD Sender: No OFD packet to send [12:40:34]OFD Sender: No OFD packet to send [12:40:39]OFD Sender: No OFD packet to send [12:40:44]OFD Sender: No OFD packet to send [12:40:49]OFD Sender: No OFD packet to send [12:40:54]OFD Sender: No OFD packet to send [12:40:59]OFD Sender: No OFD packet to send [12:41:04]OFD Sender: No OFD packet to send [12:41:09]OFD Sender: No OFD packet to send [12:41:14]OFD Sender: No OFD packet to send [12:41:19]OFD Sender: No OFD packet to send [12:41:24]OFD Sender: No OFD packet to send [12:41:29]OFD Sender: No OFD packet to send [12:41:34]OFD Sender: No OFD packet to send [12:41:39]OFD Sender: No OFD packet to send [12:41:44]OFD Sender: No OFD packet to send [12:41:49]OFD Sender: No OFD packet to send [12:41:54]OFD Sender: No OFD packet to send [12:41:59]OFD Sender: No OFD packet to send [12:42:04]OFD Sender: No OFD packet to send [12:42:09]OFD Sender: No OFD packet to send [12:42:14]OFD Sender: No OFD packet to send [12:42:19]OFD Sender: No OFD packet to send [12:42:24]OFD Sender: No OFD packet to send [12:42:29]OFD Sender: No OFD packet to send [12:42:34]OFD Sender: No OFD packet to send [12:42: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:19]OFD Sender: No OFD packet to send [12:43:24]OFD Sender: No OFD packet to send [12:43:29]OFD Sender: No OFD packet to send [12:43:34]OFD Sender: No OFD packet to send [12:43:39]OFD Sender: No OFD packet to send [12:43:44]OFD Sender: No OFD packet to send [12:43:49]OFD Sender: No OFD packet to send [12:43:54]OFD Sender: No OFD packet to send [12:43:59]OFD Sender: No OFD packet to send [12:44:04]OFD Sender: No OFD packet to send [12:44:09]OFD Sender: No OFD packet to send [12:44:14]OFD Sender: No OFD packet to send [12:44:19]OFD Sender: No OFD packet to send [12:44:24]OFD Sender: No OFD packet to send [12:44:29]OFD Sender: No OFD packet to send [12:44:34]OFD Sender: No OFD packet to send [12:44:39]OFD Sender: No OFD packet to send [12:44:44]OFD Sender: No OFD packet to send [12:44:49]OFD Sender: No OFD packet to send [12:44:54]OFD Sender: No OFD packet to send [12:44:59]OFD Sender: No OFD packet to send [12:45:04]OFD Sender: No OFD packet to send [12:45:09]OFD Sender: No OFD packet to send [12:45:14]OFD Sender: No OFD packet to send [12:45:19]OFD Sender: No OFD packet to send [12:45:24]OFD Sender: No OFD packet to send [12:45:29]OFD Sender: No OFD packet to send [12:45:34]OFD Sender: No OFD packet to send [12:45:39]OFD Sender: No OFD packet to send [12:45:44]OFD Sender: No OFD packet to send [12:45:49]OFD Sender: No OFD packet to send [12:45:54]OFD Sender: No OFD packet to send [12:45:59]OFD Sender: No OFD packet to send [12:46:04]OFD Sender: No OFD packet to send [12:46:09]OFD Sender: No OFD packet to send [12:46:14]OFD Sender: No OFD packet to send [12:46:19]OFD Sender: No OFD packet to send [12:46:24]OFD Sender: No OFD packet to send [12:46:29]OFD Sender: No OFD packet to send [12:46:34]OFD Sender: No OFD packet to send [12:46:39]OFD Sender: No OFD packet to send [12:46:44]OFD Sender: No OFD packet to send [12:46:49]OFD Sender: No OFD packet to send [12:46:54]OFD Sender: No OFD packet to send [12:46:59]OFD Sender: No OFD packet to send [12:47:04]OFD Sender: No OFD packet to send [12:47:09]OFD Sender: No OFD packet to send [12:47:14]OFD Sender: No OFD packet to send [12:47:19]OFD Sender: No OFD packet to send [12:47:24]OFD Sender: No OFD packet to send [12:47:29]OFD Sender: No OFD packet to send [12:47:34]OFD Sender: No OFD packet to send [12:47:39]OFD Sender: No OFD packet to send [12:47:44]OFD Sender: No OFD packet to send [12:47:49]OFD Sender: No OFD packet to send [12:47:54]OFD Sender: No OFD packet to send [12:47:59]OFD Sender: No OFD packet to send [12:48:04]OFD Sender: No OFD packet to send [12:48:09]OFD Sender: No OFD packet to send [12:48:14]OFD Sender: No OFD packet to send [12:48:19]OFD Sender: No OFD packet to send [12:48:24]OFD Sender: No OFD packet to send [12:48:29]OFD Sender: No OFD packet to send [12:48:34]OFD Sender: No OFD packet to send [12:48:39]OFD Sender: No OFD packet to send [12:48:44]OFD Sender: No OFD packet to send [12:48:49]OFD Sender: No OFD packet to send [12:48:54]OFD Sender: No OFD packet to send [12:48:59]OFD Sender: No OFD packet to send [12:49:04]OFD Sender: No OFD packet to send [12:49:09]OFD Sender: No OFD packet to send [12:49:14]OFD Sender: No OFD packet to send [12:49:19]OFD Sender: No OFD packet to send [12:49:24]OFD Sender: No OFD packet to send [12:49:29]OFD Sender: No OFD packet to send [12:49:34]OFD Sender: No OFD packet to send [12:49:39]OFD Sender: No OFD packet to send [12:49:44]OFD Sender: No OFD packet to send [12:49:49]OFD Sender: No OFD packet to send [12:49:54]OFD Sender: No OFD packet to send [12:49:59]OFD Sender: No OFD packet to send [12:50:04]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [12:51:44]OFD Sender: No OFD packet to send [12:51:49]OFD Sender: No OFD packet to send [12:51:54]OFD Sender: No OFD packet to send [12:51:59]OFD Sender: No OFD packet to send [12:52:04]OFD Sender: No OFD packet to send [12:52:09]OFD Sender: No OFD packet to send [12:52:14]OFD Sender: No OFD packet to send [12:52:19]OFD Sender: No OFD packet to send [12:52:24]OFD Sender: No OFD packet to send [12:52:29]OFD Sender: No OFD packet to send [12:52:34]OFD Sender: No OFD packet to send [12:52:39]OFD Sender: No OFD packet to send [12:52:44]OFD Sender: No OFD packet to send [12:52:49]OFD Sender: No OFD packet to send [12:52:54]OFD Sender: No OFD packet to send [12:52:59]OFD Sender: No OFD packet to send [12:53:04]OFD Sender: No OFD packet to send [12:53:09]OFD Sender: No OFD packet to send [12:53:14]OFD Sender: No OFD packet to send [12:53:19]OFD Sender: No OFD packet to send [12:53:24]OFD Sender: No OFD packet to send [12:53:29]OFD Sender: No OFD packet to send [12:53:34]OFD Sender: No OFD packet to send [12:53:39]OFD Sender: No OFD packet to send [12:53:44]OFD Sender: No OFD packet to send [12:53:49]OFD Sender: No OFD packet to send [12:53:54]OFD Sender: No OFD packet to send [12:53:59]OFD Sender: No OFD packet to send [12:54:05]OFD Sender: No OFD packet to send [12:54:10]OFD Sender: No OFD packet to send [12:54:15]OFD Sender: No OFD packet to send [12:54:20]OFD Sender: No OFD packet to send [12:54:25]OFD Sender: No OFD packet to send [12:54:30]OFD Sender: No OFD packet to send [12:54:35]OFD Sender: No OFD packet to send [12:54:40]OFD Sender: No OFD packet to send [12:54:45]OFD Sender: No OFD packet to send [12:54:50]OFD Sender: No OFD packet to send [12:54:55]OFD Sender: No OFD packet to send [12:55:00]OFD Sender: No OFD packet to send [12:55:05]OFD Sender: No OFD packet to send [12:55:10]OFD Sender: No OFD packet to send [12:55:15]OFD Sender: No OFD packet to send [12:55:20]OFD Sender: No OFD packet to send [12:55:25]OFD Sender: No OFD packet to send [12:55:30]OFD Sender: No OFD packet to send [12:55:35]OFD Sender: No OFD packet to send [12:55:40]OFD Sender: No OFD packet to send [12:55:45]OFD Sender: No OFD packet to send [12:55:50]OFD Sender: No OFD packet to send [12:55:55]OFD Sender: No OFD packet to send [12:56:00]OFD Sender: No OFD packet to send [12:56:05]OFD Sender: No OFD packet to send [12:56:10]OFD Sender: No OFD packet to send [12:56:15]OFD Sender: No OFD packet to send [12:56:20]OFD Sender: No OFD packet to send [12:56:25]OFD Sender: No OFD packet to send [12:56:30]OFD Sender: No OFD packet to send [12:56:35]OFD Sender: No OFD packet to send [12:56:40]OFD Sender: No OFD packet to send [12:56:45]OFD Sender: No OFD packet to send [12:56:50]OFD Sender: No OFD packet to send [12:56:55]OFD Sender: No OFD packet to send [12:57:00]OFD Sender: No OFD packet to send [12:57:05]OFD Sender: No OFD packet to send [12:57:10]OFD Sender: No OFD packet to send [12:57:15]OFD Sender: No OFD packet to send [12:57:20]OFD Sender: No OFD packet to send [12:57:25]OFD Sender: No OFD packet to send [12:57:29]accept exits with 7 [12:57:29]New connection [12:57:29]New thread 3066686820 created [12:57:29]Thread 3066830180 joined [12:57:29]Waiting for new connection... [12:57:29] Sock 7.Parse request [12:57:29]Sock 7.Check first char [12:57:29]Sock 7.First char is OK [12:57:29]request: POST /json_proto HTTP/1.0 [12:57:29]Method: POST [12:57:29]URL: /json_proto [12:57:29]Method is POST - this is cgi request [12:57:29]url: /json_proto [12:57:29]query_string will be loaded in cgi processing [12:57:29]execute_cgi json_proto POST (null) [12:57:29]execute_cgi path=json_proto method=POST [12:57:29]POST find Content-Length [12:57:29]Host: 172.17.58.3:8080 [12:57:29]Content-Length: 679 [12:57:29]Content-Type: application/json [12:57:29] [12:57:29]POST finish read [12:57:29]Found Content-Length = 679 [12:57:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160771", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 67.760, "sum" : 5000.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:29]execute_script... [12:57:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160771", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 67.760, "sum" : 5000.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:29]POST & json_proto [12:57:29]process_json_proto [12:57:29]json parsed OK: [12:57:29]protocol is kg_v1.0 [12:57:29]action value=close_receipt [12:57:29]process_action close_receipt [12:57:29]cmd_close_receipt [12:57:29]MH_GetDate [12:57:29]Write to MH i2c: F0 00 00 F0 03 E2 [12:57:29]Write i2c OK [12:57:29]MH_I2C_Read... [12:57:29]Read from MH i2c: F0 [12:57:29]MH_I2C_Read... [12:57:29]Read from MH i2c: F0 09 00 [12:57:29]MH_I2C_Read... [12:57:29]Read from MH i2c: F0 09 00 F0 03 00 39 58 BB 66 DC E4 6D 64 2E [12:57:29]GetLastDocTimeStamp 1723552526 [12:57:29]current date 1723553849 [12:57:29]FM_GetShiftState [12:57:29]SAM_PROTO_GetShiftState [12:57:29]wFMCommunicate request_size=4 [12:57:29]MH_SAM_APDU [12:57:29]CAPDU: 80 13 01 00 [12:57:29]Write to MH i2c: E2 08 00 F1 03 80 13 01 00 00 00 00 00 71 [12:57:29]Write i2c OK [12:57:29]MH_I2C_Read... [12:57:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:29]Read from MH i2c: E2 [12:57:29]MH_I2C_Read... [12:57:29]Read from MH i2c: E2 0E 00 [12:57:29]MH_I2C_Read... [12:57:29]Read from MH i2c: E2 0E 00 F1 03 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 8F [12:57:29]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [12:57:29]wFMCommunicate OK [12:57:29]SAM_PROTO_GetShiftState done [12:57:29]FM_GetShiftState done [12:57:29]opened in 1723506770 [12:57:29]opened+sec_in_day 1723593170 [12:57:29]quantity*price = 500068 [12:57:29]sum+1 = 500070 [12:57:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.69 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 531.05 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 53 13.08.2024 12:57 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103142 ФПД: 280730993463410 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T125729&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103142&fm=280730993463410&tin=02508201610067®Number=0000000000092718&sum=500000 [12:57:30]StoreToDocumentArchive [12:57:30]shift 464 fd 103142 [12:57:30]save to /storage/0464/doc_00103142 [12:57:30]save last doc name /storage/0464/doc_00103142 to /storage/kkm_last_doc_name [12:57:30]save OK [12:57:30]Clear old archive folders... [12:57:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:57:30]tlvbuf is 015549F0 [12:57:30]SAM_PROTO_ClearQueue [12:57:30]wFMCommunicate request_size=4 [12:57:30]MH_SAM_APDU [12:57:30]CAPDU: 80 09 00 00 [12:57:30]Write to MH i2c: E2 08 00 FE 03 80 09 00 00 00 00 00 00 73 [12:57:30]Write i2c OK [12:57:30]MH_I2C_Read... [12:57:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:57:30]Read from MH i2c: E2 [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: E2 03 00 [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: E2 03 00 FE 03 00 90 00 75 [12:57:30]RAPDU: 90 00 [12:57:30]wFMCommunicate OK [12:57:30]SAM_PROTO_ClearQueue done [12:57:30]KKMCreateOFDPacket [12:57:30]OFDProtocolAddRootSTLVToBuf [12:57:30]FM_MakeSignedData [12:57:30]FM_MakeSignedData [12:57:30]SAM_PROTO_SignData [12:57:30]wFMCommunicate request_size=4 [12:57:30]MH_SAM_APDU [12:57:30]CAPDU: 80 0D 01 02 [12:57:30]Write to MH i2c: E2 08 00 FF 03 80 0D 01 02 00 00 00 00 7B [12:57:30]Write i2c OK [12:57:30]MH_I2C_Read... [12:57:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:57:30]Read from MH i2c: E2 [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: E2 03 00 [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: E2 03 00 FF 03 00 90 00 76 [12:57:30]RAPDU: 90 00 [12:57:30]wFMCommunicate OK [12:57:30]wFMCommunicate request_size=255 [12:57:30]MH_SAM_APDU [12:57:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B0 08 01 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 65 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 39 58 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 E6 92 01 00 35 04 06 00 FF 52 C7 24 [12:57:30]Write to MH i2c: E2 02 01 00 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B0 08 01 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 65 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 39 58 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 E6 92 01 00 35 04 06 00 FF 52 C7 24 00 00 29 [12:57:30]Write i2c OK [12:57:30]MH_I2C_Read... [12:57:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:30]Read from MH i2c: E2 [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: E2 03 00 [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: E2 03 00 00 04 00 90 00 78 [12:57:30]RAPDU: 90 00 [12:57:30]wFMCommunicate OK [12:57:30]wFMCommunicate request_size=7 [12:57:30]MH_SAM_APDU [12:57:30]CAPDU: 80 0D 02 02 02 90 72 [12:57:30]Write to MH i2c: E2 0A 00 01 04 80 0D 02 02 02 00 90 72 00 00 85 [12:57:30]Write i2c OK [12:57:30]MH_I2C_Read... [12:57:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:30]Read from MH i2c: E2 [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: E2 03 00 [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: E2 03 00 01 04 00 90 00 79 [12:57:30]RAPDU: 90 00 [12:57:30]wFMCommunicate OK [12:57:30]wFMCommunicate request_size=4 [12:57:30]MH_SAM_APDU [12:57:30]CAPDU: 80 0D 03 02 [12:57:30]Write to MH i2c: E2 08 00 02 04 80 0D 03 02 00 00 00 00 81 [12:57:30]Write i2c OK [12:57:30]MH_I2C_Read... [12:57:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:57:30]Read from MH i2c: E2 [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: E2 0B 00 [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: E2 0B 00 02 04 00 42 4B DF 71 B5 BC 16 C2 90 00 A8 [12:57:30]RAPDU: 42 4B DF 71 B5 BC 16 C2 90 00 [12:57:30]wFMCommunicate OK [12:57:30]SAM_PROTO_SignData done [12:57:30]FM_MakeSignedData done [12:57:30]CreateOFDProtocolMessage [12:57:30]wFMCommunicate request_size=4 [12:57:30]MH_SAM_APDU [12:57:30]CAPDU: 80 11 00 00 [12:57:30]Write to MH i2c: E2 08 00 03 04 80 11 00 00 00 00 00 00 81 [12:57:30]Write i2c OK [12:57:30]MH_I2C_Read... [12:57:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:30]Read from MH i2c: E2 [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: E2 17 00 [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: E2 17 00 03 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 D5 [12:57:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [12:57:30]wFMCommunicate OK [12:57:30]CreateOFDProtocolMessage done [12:57:30]OFDSenderStorePacket 103142 [12:57:30]StoreOFDPacket docnum=103142 [12:57:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 DF 11 04 01 D8 CB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B0 08 01 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 65 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 39 58 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 E6 92 01 00 35 04 06 00 FF 52 C7 24 90 72 42 4B DF 71 B5 BC 16 C2 [12:57:30]CheckFolder [12:57:30]dirname=/storage/ofd_packets [12:57:30]CheckFolder done [12:57:30]ProducePacketName [12:57:30]name=ofd_packets/00103142 [12:57:30]NVStorageSaveData ofd_packets/00103142 [12:57:30]File name is /storage/ofd_packets/00103142 [12:57:30]Write 298 bytes [12:57:30]NVStorageSaveData done [12:57:30]OFDSenderStorePacket done [12:57:30]KKMCreateOFDPacket done [12:57:30]NVStorageSaveData kkm_last_timestamp [12:57:30]File name is /storage/kkm_last_timestamp [12:57:30]Write 4 bytes [12:57:30]NVStorageSaveData done [12:57:30]ExternCall_PrintAddStr [12:57:30]wPrintStart [12:57:30]Write to MH i2c: 01 00 00 04 04 08 [12:57:30]Write i2c OK [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: 01 [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: 01 07 00 [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: 01 07 00 04 04 00 00 00 00 00 FF 0F 1D [12:57:30]RasterBufferAndPrint [12:57:30]line Счет N : (1)160771 [12:57:30]line ИНН: 02508201610067 [12:57:30]line Контрольно-Кассовый Чек [12:57:30]line ПРОДАЖА [12:57:30]line ТРК (МРК, ГНК) : 13 [12:57:30]line Товар: 2710194210 [12:57:30]line ДТ-К-5 [12:57:30]line 67.760 * 73.80 [12:57:30]line = 5000.69 [12:57:30]line НДС 12% НСП 1% [12:57:30]line > о реализуемом товаре [12:57:30]line ОКРУГЛЕНИЕ: -0.69 [12:57:30]line ИТОГО: 5000.00 [12:57:30]line Внесено: 5000.00 [12:57:30]line СДАЧА: 0.00 [12:57:30]line НСП 1% : 44.25 [12:57:30]line НДС 12% : 531.05 [12:57:30]line Наличными: 5000.00 [12:57:30]line Безнал.: 0.00 [12:57:30]line Место: АЗС № 38 "Партнер Нефть" [12:57:30]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [12:57:30]line СНО: Общий режим [12:57:30]line Чек 53 13.08.2024 12:57 [12:57:30]line Смена: 464 ФФД: 1.0 [12:57:30]line ЗНМ: 0300000126 [12:57:30]line РНМ: 0000000000092718 [12:57:30]line Версия ККМ: 001 [12:57:30]line ФМ: 0000000000875058 [12:57:30]line ФД: 103142 [12:57:30]line ФПД: 280730993463410 [12:57:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T125729&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103142&fm=280730993463410&tin=02508201610067®Number=0000000000092718&sum=500000 [12:57:31]OFD Sender: Processing packet 103142 [packets to send 69, broken 68] [12:57:31]ProducePacketName [12:57:31]name=ofd_packets/00103142 [12:57:31]OFD Sender: To server: pG, [12:57:31]CommunicateWithHost lk.salyk.kg:30040 [12:57:31]ConnectInit lk.salyk.kg [12:57:31]written 0, free lines is 4095 [12:57:31]Connected sock=10 [12:57:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 DF 11 04 01 D8 CB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B0 08 01 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 65 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 39 58 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 E6 92 01 00 35 04 06 00 FF 52 C7 24 90 72 42 4B DF 71 B5 BC 16 C2 [12:57:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 33 04 47 00 1F 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 E6 92 01 00 F4 03 04 00 AC FE BA 66 B6 04 01 00 00 5D 2D 88 8A 8A 00 1D DF [12:57:31]CommunicateWithHost err = 0 [12:57:31]CheckOFDResponse [12:57:31]1017 (14) - 77093643461234 [12:57:31]1041 (16) - 0000000000875058 [12:57:31]1040 (4) - 103142 [12:57:31]1012 (4) - 13.08.2024 06:35 [12:57:31]1206 (1) - 0 [12:57:31]OFD Sender: Remove packet 103142 [12:57:31]ProducePacketName [12:57:31]name=ofd_packets/00103142 [12:57:31]NVStorageDeleteData [12:57:31]Write to MH i2c: 01 00 00 2F 04 33 [12:57:31]Write i2c OK [12:57:31]MH_I2C_Read... [12:57:31]Read from MH i2c: 01 [12:57:31]MH_I2C_Read... [12:57:31]Read from MH i2c: 01 07 00 [12:57:31]MH_I2C_Read... [12:57:31]Read from MH i2c: 01 07 00 2F 04 00 00 00 00 00 E2 0C 28 [12:57:31]RasterBufferAndPrint [12:57:31]line [12:57:31]line [12:57:31]line [12:57:31]line [12:57:31]line [12:57:31]written 0, free lines is 3304 [12:57:31]MH_Cut [12:57:31]Write to MH i2c: D1 01 00 36 04 01 0C [12:57:31]Write i2c OK [12:57:31]MH_I2C_Read... [12:57:31]Read from MH i2c: D1 [12:57:31]MH_I2C_Read... [12:57:31]Read from MH i2c: D1 01 00 [12:57:31]MH_I2C_Read... [12:57:31]Read from MH i2c: D1 01 00 36 04 00 0B [12:57:31]Write to MH i2c: 01 00 00 37 04 3B [12:57:31]Write i2c OK [12:57:31]MH_I2C_Read... [12:57:31]OFD Sender: No OFD packet to send [12:57:32]*** Cut start [12:57:32]*** Purtial cut [12:57:32]*** CUTSNS_PIN = 0 [12:57:32]*** Stage 1: CUTSNS_PIN = 1 [12:57:34]Read from MH i2c: 01 [12:57:34]MH_I2C_Read... [12:57:34]*** Stop cut motor [12:57:34]*** Cut end [12:57:34]Read from MH i2c: 01 07 00 [12:57:34]MH_I2C_Read... [12:57:34]Read from MH i2c: 01 07 00 37 04 00 00 00 00 00 FF 0F 50 [12:57:34]process_action close_receipt done [12:57:34]requested_data is exist [12:57:34]produce_requested_data [12:57:34]requested_item fm.sn is exist - process it [12:57:34]wFMCommunicate request_size=4 [12:57:34]MH_SAM_APDU [12:57:34]CAPDU: 80 11 00 00 [12:57:34]Write to MH i2c: E2 08 00 38 04 80 11 00 00 00 00 00 00 B6 [12:57:34]Write i2c OK [12:57:34]MH_I2C_Read... [12:57:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:34]Read from MH i2c: E2 [12:57:34]MH_I2C_Read... [12:57:34]Read from MH i2c: E2 17 00 [12:57:34]MH_I2C_Read... [12:57:34]Read from MH i2c: E2 17 00 38 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 0A [12:57:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [12:57:34]wFMCommunicate OK [12:57:34]requested_item fd.num is exist - process it [12:57:34]SAM_PROTO_GetFieldsCounters [12:57:34]wFMCommunicate request_size=4 [12:57:34]MH_SAM_APDU [12:57:34]CAPDU: 80 13 00 00 [12:57:34]Write to MH i2c: E2 08 00 39 04 80 13 00 00 00 00 00 00 B9 [12:57:34]Write i2c OK [12:57:34]MH_I2C_Read... [12:57:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:57:34]Read from MH i2c: E2 [12:57:34]MH_I2C_Read... [12:57:34]Read from MH i2c: E2 62 00 [12:57:34]MH_I2C_Read... [12:57:34]Read from MH i2c: E2 62 00 39 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 E6 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [12: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 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 E6 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:57:34]wFMCommunicate OK [12:57:34]SAM_PROTO_GetFieldsCounters done [12:57:34]requested_item shift.num is exist - process it [12:57:34]requested_item shift.opened is exist - process it [12:57:34]req_shift_opened [12:57:34]FM_GetShiftState [12:57:34]SAM_PROTO_GetShiftState [12:57:34]wFMCommunicate request_size=4 [12:57:34]MH_SAM_APDU [12:57:34]CAPDU: 80 13 01 00 [12:57:34]Write to MH i2c: E2 08 00 3A 04 80 13 01 00 00 00 00 00 BB [12:57:34]Write i2c OK [12:57:34]MH_I2C_Read... [12:57:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:34]Read from MH i2c: E2 [12:57:34]MH_I2C_Read... [12:57:34]Read from MH i2c: E2 0E 00 [12:57:34]MH_I2C_Read... [12:57:34]Read from MH i2c: E2 0E 00 3A 04 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 D9 [12:57:34]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [12:57:34]wFMCommunicate OK [12:57:34]SAM_PROTO_GetShiftState done [12:57:34]FM_GetShiftState done [12:57:34]req_shift_opened done [12:57:34]requested_item shift.open_date is exist - process it [12:57:34]req_shift_open_date [12:57:34]req_shift_open_date done [12:57:34]produce_requested_data done [12:57:34]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103142,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [12:57:34]process_action_free close_receipt [12:57:34]json_value_free [12:57:34]json_value_free done [12:57:34]process_json_proto returns [12:57:34]Send response to host [12:57:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103142,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [12:57:34]free response buf [12:57:34]execute_script done [12:57:34]execute_script returns [12:57:34]free content buf [12:57:34]Sock 7.Close socket [12:57:34]Sock 7.Thread stoped [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:02]OFD Sender: No OFD packet to send [12:58:07]OFD Sender: No OFD packet to send [12:58:12]OFD Sender: No OFD packet to send [12:58:17]OFD Sender: No OFD packet to send [12:58:22]OFD Sender: No OFD packet to send [12:58:27]OFD Sender: No OFD packet to send [12:58:32]OFD Sender: No OFD packet to send [12:58:37]OFD Sender: No OFD packet to send [12:58:42]OFD Sender: No OFD packet to send [12:58:47]OFD Sender: No OFD packet to send [12:58:52]OFD Sender: No OFD packet to send [12:58:57]OFD Sender: No OFD packet to send [12:59:02]OFD Sender: No OFD packet to send [12:59:07]OFD Sender: No OFD packet to send [12:59:12]OFD Sender: No OFD packet to send [12:59:17]OFD Sender: No OFD packet to send [12:59:22]OFD Sender: No OFD packet to send [12:59:27]OFD Sender: No OFD packet to send [12:59:32]OFD Sender: No OFD packet to send [12:59:37]OFD Sender: No OFD packet to send [12:59:42]OFD Sender: No OFD packet to send [12:59:47]OFD Sender: No OFD packet to send [12:59:52]OFD Sender: No OFD packet to send [12:59:57]OFD Sender: No OFD packet to send [13:00:02]OFD Sender: No OFD packet to send [13:00:07]OFD Sender: No OFD packet to send [13:00:12]OFD Sender: No OFD packet to send [13:00:17]OFD Sender: No OFD packet to send [13:00:22]OFD Sender: No OFD packet to send [13:00:27]OFD Sender: No OFD packet to send [13:00:32]OFD Sender: No OFD packet to send [13:00:37]OFD Sender: No OFD packet to send [13:00:42]OFD Sender: No OFD packet to send [13:00:47]OFD Sender: No OFD packet to send [13:00:52]OFD Sender: No OFD packet to send [13:00:57]OFD Sender: No OFD packet to send [13:01:02]OFD Sender: No OFD packet to send [13:01:07]OFD Sender: No OFD packet to send [13:01:08]accept exits with 9 [13:01:08]New connection [13:01:08]New thread 3066830180 created [13:01:08]Thread 3066686820 joined [13:01:08]Waiting for new connection... [13:01:08] Sock 9.Parse request [13:01:08]Sock 9.Check first char [13:01:08]Sock 9.First char is OK [13:01:08]request: POST /json_proto HTTP/1.0 [13:01:08]Method: POST [13:01:08]URL: /json_proto [13:01:08]Method is POST - this is cgi request [13:01:08]url: /json_proto [13:01:08]query_string will be loaded in cgi processing [13:01:08]execute_cgi json_proto POST (null) [13:01:08]execute_cgi path=json_proto method=POST [13:01:08]POST find Content-Length [13:01:08]Host: 172.17.58.3:8080 [13:01:08]Content-Length: 669 [13:01:08]Content-Type: application/json [13:01:08] [13:01:08]POST finish read [13:01:08]Found Content-Length = 669 [13:01:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160772", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710124130", "name": "SUPER 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:01:08]execute_script... [13: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)160772", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710124130", "name": "SUPER 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:01:08]POST & json_proto [13:01:08]process_json_proto [13:01:08]json parsed OK: [13:01:08]protocol is kg_v1.0 [13:01:08]action value=close_receipt [13:01:08]process_action close_receipt [13:01:08]cmd_close_receipt [13:01:08]MH_GetDate [13:01:08]Write to MH i2c: F0 00 00 3B 04 2E [13:01:08]Write i2c OK [13:01:08]MH_I2C_Read... [13:01:08]Read from MH i2c: F0 [13:01:08]MH_I2C_Read... [13:01:08]Read from MH i2c: F0 09 00 [13:01:08]MH_I2C_Read... [13:01:08]Read from MH i2c: F0 09 00 3B 04 00 14 59 BB 66 DC E4 6D 64 56 [13:01:08]GetLastDocTimeStamp 1723553849 [13:01:08]current date 1723554068 [13:01:08]FM_GetShiftState [13:01:08]SAM_PROTO_GetShiftState [13:01:08]wFMCommunicate request_size=4 [13:01:08]MH_SAM_APDU [13:01:08]CAPDU: 80 13 01 00 [13:01:08]Write to MH i2c: E2 08 00 3C 04 80 13 01 00 00 00 00 00 BD [13:01:08]Write i2c OK [13:01:08]MH_I2C_Read... [13:01:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:08]Read from MH i2c: E2 [13:01:08]MH_I2C_Read... [13:01:08]Read from MH i2c: E2 0E 00 [13:01:08]MH_I2C_Read... [13:01:08]Read from MH i2c: E2 0E 00 3C 04 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 DB [13:01:08]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [13:01:08]wFMCommunicate OK [13:01:08]SAM_PROTO_GetShiftState done [13:01:08]FM_GetShiftState done [13:01:08]opened in 1723506770 [13:01:08]opened+sec_in_day 1723593170 [13:01:08]quantity*price = 60009 [13:01:08]sum+1 = 60010 [13:01:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 54 13.08.2024 13:01 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103143 ФПД: 256252429758675 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T130108&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103143&fm=256252429758675&tin=02508201610067®Number=0000000000092718&sum=60000 [13:01:09]StoreToDocumentArchive [13:01:09]shift 464 fd 103143 [13:01:09]save to /storage/0464/doc_00103143 [13:01:09]save last doc name /storage/0464/doc_00103143 to /storage/kkm_last_doc_name [13:01:09]save OK [13:01:09]Clear old archive folders... [13:01:09]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:01:09]tlvbuf is 01538C60 [13:01:09]SAM_PROTO_ClearQueue [13:01:09]wFMCommunicate request_size=4 [13:01:09]MH_SAM_APDU [13:01:09]CAPDU: 80 09 00 00 [13:01:09]Write to MH i2c: E2 08 00 49 04 80 09 00 00 00 00 00 00 BF [13:01:09]Write i2c OK [13:01:09]MH_I2C_Read... [13:01:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:01:09]Read from MH i2c: E2 [13:01:09]MH_I2C_Read... [13:01:09]Read from MH i2c: E2 03 00 [13:01:09]MH_I2C_Read... [13:01:09]Read from MH i2c: E2 03 00 49 04 00 90 00 C1 [13:01:09]RAPDU: 90 00 [13:01:09]wFMCommunicate OK [13:01:09]SAM_PROTO_ClearQueue done [13:01:09]KKMCreateOFDPacket [13:01:09]OFDProtocolAddRootSTLVToBuf [13:01:09]FM_MakeSignedData [13:01:09]FM_MakeSignedData [13:01:09]SAM_PROTO_SignData [13:01:09]wFMCommunicate request_size=4 [13:01:09]MH_SAM_APDU [13:01:09]CAPDU: 80 0D 01 02 [13:01:09]Write to MH i2c: E2 08 00 4A 04 80 0D 01 02 00 00 00 00 C7 [13:01:09]Write i2c OK [13:01:09]MH_I2C_Read... [13:01:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:01:09]Read from MH i2c: E2 [13:01:09]MH_I2C_Read... [13:01:09]Read from MH i2c: E2 03 00 [13:01:09]MH_I2C_Read... [13:01:09]Read from MH i2c: E2 03 00 4A 04 00 90 00 C2 [13:01:09]RAPDU: 90 00 [13:01:09]wFMCommunicate OK [13:01:09]wFMCommunicate request_size=255 [13:01:09]MH_SAM_APDU [13:01:09]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 14 59 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 E7 92 01 00 35 04 06 00 [13:01:09]Write to MH i2c: E2 02 01 4B 04 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 14 59 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 E7 92 01 00 35 04 06 00 00 00 E2 [13:01:09]Write i2c OK [13:01:09]MH_I2C_Read... [13:01:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:09]Read from MH i2c: E2 [13:01:09]MH_I2C_Read... [13:01:09]Read from MH i2c: E2 03 00 [13:01:09]MH_I2C_Read... [13:01:09]Read from MH i2c: E2 03 00 4B 04 00 90 00 C3 [13:01:09]RAPDU: 90 00 [13:01:09]wFMCommunicate OK [13:01:09]wFMCommunicate request_size=11 [13:01:09]MH_SAM_APDU [13:01:09]CAPDU: 80 0D 02 02 06 E9 0F 6B 0C 70 D3 [13:01:09]Write to MH i2c: E2 0E 00 4C 04 80 0D 02 02 06 00 E9 0F 6B 0C 70 D3 00 00 88 [13:01:09]Write i2c OK [13:01:09]MH_I2C_Read... [13:01:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:09]Read from MH i2c: E2 [13:01:09]MH_I2C_Read... [13:01:09]Read from MH i2c: E2 03 00 [13:01:09]MH_I2C_Read... [13:01:09]Read from MH i2c: E2 03 00 4C 04 00 90 00 C4 [13:01:09]RAPDU: 90 00 [13:01:09]wFMCommunicate OK [13:01:09]wFMCommunicate request_size=4 [13:01:09]MH_SAM_APDU [13:01:09]CAPDU: 80 0D 03 02 [13:01:09]Write to MH i2c: E2 08 00 4D 04 80 0D 03 02 00 00 00 00 CC [13:01:09]Write i2c OK [13:01:09]MH_I2C_Read... [13:01:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:01:09]Read from MH i2c: E2 [13:01:09]MH_I2C_Read... [13:01:09]Read from MH i2c: E2 0B 00 [13:01:09]MH_I2C_Read... [13:01:09]Read from MH i2c: E2 0B 00 4D 04 00 E6 60 98 CA 22 D3 37 A2 90 00 43 [13:01:09]RAPDU: E6 60 98 CA 22 D3 37 A2 90 00 [13:01:09]wFMCommunicate OK [13:01:09]SAM_PROTO_SignData done [13:01:09]FM_MakeSignedData done [13:01:09]CreateOFDProtocolMessage [13:01:09]wFMCommunicate request_size=4 [13:01:09]MH_SAM_APDU [13:01:09]CAPDU: 80 11 00 00 [13:01:09]Write to MH i2c: E2 08 00 4E 04 80 11 00 00 00 00 00 00 CC [13:01:09]Write i2c OK [13:01:09]MH_I2C_Read... [13:01:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:09]Read from MH i2c: E2 [13:01:09]MH_I2C_Read... [13:01:09]Read from MH i2c: E2 17 00 [13:01:09]MH_I2C_Read... [13:01:09]Read from MH i2c: E2 17 00 4E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 20 [13:01:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [13:01:09]wFMCommunicate OK [13:01:09]CreateOFDProtocolMessage done [13:01:09]OFDSenderStorePacket 103143 [13:01:09]StoreOFDPacket docnum=103143 [13:01:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 01 00 00 F5 A9 08 01 46 E1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 14 59 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 E7 92 01 00 35 04 06 00 E9 0F 6B 0C 70 D3 E6 60 98 CA 22 D3 37 A2 [13:01:09]CheckFolder [13:01:09]dirname=/storage/ofd_packets [13:01:09]CheckFolder done [13:01:09]ProducePacketName [13:01:09]name=ofd_packets/00103143 [13:01:09]NVStorageSaveData ofd_packets/00103143 [13:01:09]File name is /storage/ofd_packets/00103143 [13:01:09]Write 302 bytes [13:01:09]NVStorageSaveData done [13:01:09]OFDSenderStorePacket done [13:01:09]KKMCreateOFDPacket done [13:01:09]NVStorageSaveData kkm_last_timestamp [13:01:09]File name is /storage/kkm_last_timestamp [13:01:09]Write 4 bytes [13:01:09]NVStorageSaveData done [13:01:09]ExternCall_PrintAddStr [13:01:09]wPrintStart [13:01:09]Write to MH i2c: 01 00 00 4F 04 53 [13:01:09]Write i2c OK [13:01:09]MH_I2C_Read... [13:01:09]Read from MH i2c: 01 [13:01:09]MH_I2C_Read... [13:01:09]Read from MH i2c: 01 07 00 [13:01:09]MH_I2C_Read... [13:01:09]Read from MH i2c: 01 07 00 4F 04 00 00 00 00 00 FF 0F 68 [13:01:09]RasterBufferAndPrint [13:01:09]line Счет N : (1)160772 [13:01:09]line ИНН: 02508201610067 [13:01:09]line Контрольно-Кассовый Чек [13:01:09]line ПРОДАЖА [13:01:09]line ТРК (МРК, ГНК) : 6 [13:01:09]line Товар: 2710124130 [13:01:09]line SUPER 92-К-5 [13:01:09]line 8.970 * 66.90 [13:01:09]line = 600.09 [13:01:09]line НДС 12% НСП 1% [13:01:09]line > о реализуемом товаре [13:01:09]line ОКРУГЛЕНИЕ: -0.09 [13:01:09]line ИТОГО: 600.00 [13:01:09]line Внесено: 600.00 [13:01:09]line СДАЧА: 0.00 [13:01:09]line НСП 1% : 5.31 [13:01:09]line НДС 12% : 63.73 [13:01:09]line Наличными: 600.00 [13:01:09]line Безнал.: 0.00 [13:01:09]line Место: АЗС № 38 "Партнер Нефть" [13:01:09]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [13:01:09]line СНО: Общий режим [13:01:09]line Чек 54 13.08.2024 13:01 [13:01:09]line Смена: 464 ФФД: 1.0 [13:01:09]line ЗНМ: 0300000126 [13:01:09]line РНМ: 0000000000092718 [13:01:09]line Версия ККМ: 001 [13:01:09]line ФМ: 0000000000875058 [13:01:09]line ФД: 103143 [13:01:09]line ФПД: 256252429758675 [13:01:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T130108&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103143&fm=256252429758675&tin=02508201610067®Number=0000000000092718&sum=60000 [13:01:10]OFD Sender: Processing packet 103143 [packets to send 69, broken 68] [13:01:10]ProducePacketName [13:01:10]name=ofd_packets/00103143 [13:01:10]OFD Sender: To server: pG, [13:01:10]CommunicateWithHost lk.salyk.kg:30040 [13:01:10]ConnectInit lk.salyk.kg [13:01:10]written 0, free lines is 4095 [13:01:10]Connected sock=11 [13: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 35 30 35 38 10 01 00 00 F5 A9 08 01 46 E1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 14 59 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 E7 92 01 00 35 04 06 00 E9 0F 6B 0C 70 D3 E6 60 98 CA 22 D3 37 A2 [13:01:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 13 2B 47 00 74 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 35 30 35 38 10 04 04 00 E7 92 01 00 F4 03 04 00 87 FF BA 66 B6 04 01 00 00 DA CD 28 CB 51 2A 84 97 [13:01:10]CommunicateWithHost err = 0 [13:01:10]CheckOFDResponse [13:01:10]1017 (14) - 77093643461234 [13:01:10]1041 (16) - 0000000000875058 [13:01:10]1040 (4) - 103143 [13:01:10]1012 (4) - 13.08.2024 06:39 [13:01:10]1206 (1) - 0 [13:01:10]OFD Sender: Remove packet 103143 [13:01:10]ProducePacketName [13:01:10]name=ofd_packets/00103143 [13:01:10]NVStorageDeleteData [13:01:10]Write to MH i2c: 01 00 00 7A 04 7E [13:01:10]Write i2c OK [13:01:10]MH_I2C_Read... [13:01:10]Read from MH i2c: 01 [13:01:10]MH_I2C_Read... [13:01:10]Read from MH i2c: 01 07 00 [13:01:10]MH_I2C_Read... [13:01:10]Read from MH i2c: 01 07 00 7A 04 00 00 00 00 00 DA 0C 6B [13:01:10]RasterBufferAndPrint [13:01:10]line [13:01:10]line [13:01:10]line [13:01:10]line [13:01:10]line [13:01:10]written 0, free lines is 3296 [13:01:10]MH_Cut [13:01:10]Write to MH i2c: D1 01 00 81 04 01 57 [13:01:10]Write i2c OK [13:01:10]MH_I2C_Read... [13:01:10]Read from MH i2c: D1 [13:01:10]MH_I2C_Read... [13:01:10]Read from MH i2c: D1 01 00 [13:01:10]MH_I2C_Read... [13:01:10]Read from MH i2c: D1 01 00 81 04 00 56 [13:01:10]Write to MH i2c: 01 00 00 82 04 86 [13:01:10]Write i2c OK [13:01:10]MH_I2C_Read... [13:01:10]OFD Sender: No OFD packet to send [13:01:11]*** Cut start [13:01:11]*** Purtial cut [13:01:11]*** Stage 1: CUTSNS_PIN = 1 [13:01:11]Read from MH i2c: 01 [13:01:11]MH_I2C_Read... [13:01:11]*** Stop cut motor [13:01:11]*** Cut end [13:01:11]Read from MH i2c: 01 07 00 [13:01:11]MH_I2C_Read... [13:01:11]Read from MH i2c: 01 07 00 82 04 00 00 00 00 00 FF 0F 9B [13:01:11]process_action close_receipt done [13:01:11]requested_data is exist [13:01:11]produce_requested_data [13:01:11]requested_item fm.sn is exist - process it [13:01:11]wFMCommunicate request_size=4 [13:01:11]MH_SAM_APDU [13:01:11]CAPDU: 80 11 00 00 [13:01:11]Write to MH i2c: E2 08 00 83 04 80 11 00 00 00 00 00 00 01 [13:01:11]Write i2c OK [13:01:11]MH_I2C_Read... [13:01:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:11]Read from MH i2c: E2 [13:01:11]MH_I2C_Read... [13:01:11]Read from MH i2c: E2 17 00 [13:01:11]MH_I2C_Read... [13:01:11]Read from MH i2c: E2 17 00 83 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 55 [13:01:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [13:01:11]wFMCommunicate OK [13:01:11]requested_item fd.num is exist - process it [13:01:11]SAM_PROTO_GetFieldsCounters [13:01:11]wFMCommunicate request_size=4 [13:01:11]MH_SAM_APDU [13:01:11]CAPDU: 80 13 00 00 [13:01:11]Write to MH i2c: E2 08 00 84 04 80 13 00 00 00 00 00 00 04 [13:01:11]Write i2c OK [13:01:11]MH_I2C_Read... [13:01:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:11]Read from MH i2c: E2 [13:01:11]MH_I2C_Read... [13:01:11]Read from MH i2c: E2 62 00 [13:01:11]MH_I2C_Read... [13:01:11]Read from MH i2c: E2 62 00 84 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 E7 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [13:01:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 E7 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:01:11]wFMCommunicate OK [13:01:11]SAM_PROTO_GetFieldsCounters done [13:01:11]requested_item shift.num is exist - process it [13:01:11]requested_item shift.opened is exist - process it [13:01:11]req_shift_opened [13:01:11]FM_GetShiftState [13:01:11]SAM_PROTO_GetShiftState [13:01:11]wFMCommunicate request_size=4 [13:01:11]MH_SAM_APDU [13:01:11]CAPDU: 80 13 01 00 [13:01:11]Write to MH i2c: E2 08 00 85 04 80 13 01 00 00 00 00 00 06 [13:01:11]Write i2c OK [13:01:11]MH_I2C_Read... [13:01:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:11]Read from MH i2c: E2 [13:01:11]MH_I2C_Read... [13:01:11]Read from MH i2c: E2 0E 00 [13:01:11]MH_I2C_Read... [13:01:11]Read from MH i2c: E2 0E 00 85 04 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 24 [13:01:11]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [13:01:11]wFMCommunicate OK [13:01:11]SAM_PROTO_GetShiftState done [13:01:11]FM_GetShiftState done [13:01:11]req_shift_opened done [13:01:11]requested_item shift.open_date is exist - process it [13:01:11]req_shift_open_date [13:01:11]req_shift_open_date done [13:01:11]produce_requested_data done [13:01:11]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103143,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [13:01:11]process_action_free close_receipt [13:01:11]json_value_free [13:01:11]json_value_free done [13:01:11]process_json_proto returns [13:01:11]Send response to host [13:01:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103143,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [13:01:11]free response buf [13:01:11]execute_script done [13:01:11]execute_script returns [13:01:11]free content buf [13:01:11]Sock 9.Close socket [13:01:11]Sock 9.Thread stoped [13:01:15]OFD Sender: No OFD packet to send [13:01:20]OFD Sender: No OFD packet to send [13:01:25]OFD Sender: No OFD packet to send [13:01:31]OFD Sender: No OFD packet to send [13:01:36]OFD Sender: No OFD packet to send [13:01:41]OFD Sender: No OFD packet to send [13:01:46]OFD Sender: No OFD packet to send [13:01:51]OFD Sender: No OFD packet to send [13:01:56]OFD Sender: No OFD packet to send [13:02:01]OFD Sender: No OFD packet to send [13:02:06]OFD Sender: No OFD packet to send [13:02:11]OFD Sender: No OFD packet to send [13:02:16]OFD Sender: No OFD packet to send [13:02:21]OFD Sender: No OFD packet to send [13:02:26]OFD Sender: No OFD packet to send [13:02:31]OFD Sender: No OFD packet to send [13:02:36]OFD Sender: No OFD packet to send [13:02:41]OFD Sender: No OFD packet to send [13:02:46]OFD Sender: No OFD packet to send [13:02:51]OFD Sender: No OFD packet to send [13:02:56]OFD Sender: No OFD packet to send [13:03:01]OFD Sender: No OFD packet to send [13:03:06]OFD Sender: No OFD packet to send [13:03:11]OFD Sender: No OFD packet to send [13:03:16]OFD Sender: No OFD packet to send [13:03:21]OFD Sender: No OFD packet to send [13:03:26]OFD Sender: No OFD packet to send [13:03:31]OFD Sender: No OFD packet to send [13:03:36]OFD Sender: No OFD packet to send [13:03:41]OFD Sender: No OFD packet to send [13:03:46]OFD Sender: No OFD packet to send [13:03:51]OFD Sender: No OFD packet to send [13:03:56]OFD Sender: No OFD packet to send [13:04:01]OFD Sender: No OFD packet to send [13:04:06]OFD Sender: No OFD packet to send [13:04:11]OFD Sender: No OFD packet to send [13:04:16]OFD Sender: No OFD packet to send [13:04:21]OFD Sender: No OFD packet to send [13:04:26]OFD Sender: No OFD packet to send [13:04:31]OFD Sender: No OFD packet to send [13:04:36]OFD Sender: No OFD packet to send [13:04:38]accept exits with 7 [13:04:38]New connection [13:04:38]New thread 3066686820 created [13:04:38]Thread 3066830180 joined [13:04:38]Waiting for new connection... [13:04:38] Sock 7.Parse request [13:04:38]Sock 7.Check first char [13:04:38]Sock 7.First char is OK [13:04:38]request: POST /json_proto HTTP/1.0 [13:04:38]Method: POST [13:04:38]URL: /json_proto [13:04:38]Method is POST - this is cgi request [13:04:38]url: /json_proto [13:04:38]query_string will be loaded in cgi processing [13:04:38]execute_cgi json_proto POST (null) [13:04:38]execute_cgi path=json_proto method=POST [13:04:38]POST find Content-Length [13:04:38]Host: 172.17.58.3:8080 [13:04:38]Content-Length: 656 [13:04:38]Content-Type: application/json [13:04:38] [13:04:38]POST finish read [13:04:38]Found Content-Length = 656 [13:04:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160774", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 5.000, "sum" : 369.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "payments": [ { "type": 0, "sum" : 369.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:38]execute_script... [13:04:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160774", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 5.000, "sum" : 369.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "payments": [ { "type": 0, "sum" : 369.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:38]POST & json_proto [13:04:38]process_json_proto [13:04:38]json parsed OK: [13:04:38]protocol is kg_v1.0 [13:04:38]action value=close_receipt [13:04:38]process_action close_receipt [13:04:38]cmd_close_receipt [13:04:38]MH_GetDate [13:04:38]Write to MH i2c: F0 00 00 86 04 79 [13:04:38]Write i2c OK [13:04:38]MH_I2C_Read... [13:04:38]Read from MH i2c: F0 [13:04:38]MH_I2C_Read... [13:04:38]Read from MH i2c: F0 09 00 [13:04:38]MH_I2C_Read... [13:04:38]Read from MH i2c: F0 09 00 86 04 00 E7 59 BB 66 DC E4 6D 64 74 [13:04:38]GetLastDocTimeStamp 1723554068 [13:04:38]current date 1723554279 [13:04:38]FM_GetShiftState [13:04:38]SAM_PROTO_GetShiftState [13:04:38]wFMCommunicate request_size=4 [13:04:38]MH_SAM_APDU [13:04:38]CAPDU: 80 13 01 00 [13:04:38]Write to MH i2c: E2 08 00 87 04 80 13 01 00 00 00 00 00 08 [13:04:38]Write i2c OK [13:04:38]MH_I2C_Read... [13:04:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:38]Read from MH i2c: E2 [13:04:38]MH_I2C_Read... [13:04:38]Read from MH i2c: E2 0E 00 [13:04:38]MH_I2C_Read... [13:04:38]Read from MH i2c: E2 0E 00 87 04 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 26 [13:04:38]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [13:04:38]wFMCommunicate OK [13:04:38]SAM_PROTO_GetShiftState done [13:04:38]FM_GetShiftState done [13:04:38]opened in 1723506770 [13:04:38]opened+sec_in_day 1723593170 [13:04:38]quantity*price = 36900 [13:04:38]sum+1 = 36901 [13:04:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 369.00 Внесено: 500.00 СДАЧА: 131.00 НСП 1% : 3.26 НДС 12% : 39.19 Наличными: 369.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 55 13.08.2024 13:04 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103144 ФПД: 133865898767734 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T130439&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103144&fm=133865898767734&tin=02508201610067®Number=0000000000092718&sum=36900 [13:04:39]StoreToDocumentArchive [13:04:39]shift 464 fd 103144 [13:04:39]save to /storage/0464/doc_00103144 [13:04:39]save last doc name /storage/0464/doc_00103144 to /storage/kkm_last_doc_name [13:04:39]save OK [13:04:39]Clear old archive folders... [13:04:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:04:39]tlvbuf is B6F370C0 [13:04:39]SAM_PROTO_ClearQueue [13:04:39]wFMCommunicate request_size=4 [13:04:39]MH_SAM_APDU [13:04:39]CAPDU: 80 09 00 00 [13:04:39]Write to MH i2c: E2 08 00 94 04 80 09 00 00 00 00 00 00 0A [13:04:39]Write i2c OK [13:04:39]MH_I2C_Read... [13:04:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:04:39]Read from MH i2c: E2 [13:04:39]MH_I2C_Read... [13:04:39]Read from MH i2c: E2 03 00 [13:04:39]MH_I2C_Read... [13:04:39]Read from MH i2c: E2 03 00 94 04 00 90 00 0C [13:04:39]RAPDU: 90 00 [13:04:39]wFMCommunicate OK [13:04:39]SAM_PROTO_ClearQueue done [13:04:39]KKMCreateOFDPacket [13:04:39]OFDProtocolAddRootSTLVToBuf [13:04:39]FM_MakeSignedData [13:04:39]FM_MakeSignedData [13:04:39]SAM_PROTO_SignData [13:04:39]wFMCommunicate request_size=4 [13:04:39]MH_SAM_APDU [13:04:39]CAPDU: 80 0D 01 02 [13:04:39]Write to MH i2c: E2 08 00 95 04 80 0D 01 02 00 00 00 00 12 [13:04:39]Write i2c OK [13:04:39]MH_I2C_Read... [13:04:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:04:40]Read from MH i2c: E2 [13:04:40]MH_I2C_Read... [13:04:40]Read from MH i2c: E2 03 00 [13:04:40]MH_I2C_Read... [13:04:40]Read from MH i2c: E2 03 00 95 04 00 90 00 0D [13:04:40]RAPDU: 90 00 [13:04:40]wFMCommunicate OK [13:04:40]wFMCommunicate request_size=255 [13:04:40]MH_SAM_APDU [13:04:40]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 24 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 0F 00 00 00 00 07 04 06 00 24 90 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 E7 59 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 E8 92 01 00 35 04 06 00 79 C0 15 57 [13:04:40]Write to MH i2c: E2 02 01 96 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 24 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 0F 00 00 00 00 07 04 06 00 24 90 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 E7 59 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 E8 92 01 00 35 04 06 00 79 C0 15 57 00 00 47 [13:04:40]Write i2c OK [13:04:40]MH_I2C_Read... [13:04:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:40]Read from MH i2c: E2 [13:04:40]MH_I2C_Read... [13:04:40]Read from MH i2c: E2 03 00 [13:04:40]MH_I2C_Read... [13:04:40]Read from MH i2c: E2 03 00 96 04 00 90 00 0E [13:04:40]RAPDU: 90 00 [13:04:40]wFMCommunicate OK [13:04:40]wFMCommunicate request_size=7 [13:04:40]MH_SAM_APDU [13:04:40]CAPDU: 80 0D 02 02 02 F5 76 [13:04:40]Write to MH i2c: E2 0A 00 97 04 80 0D 02 02 02 00 F5 76 00 00 84 [13:04:40]Write i2c OK [13:04:40]MH_I2C_Read... [13:04:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:40]Read from MH i2c: E2 [13:04:40]MH_I2C_Read... [13:04:40]Read from MH i2c: E2 03 00 [13:04:40]MH_I2C_Read... [13:04:40]Read from MH i2c: E2 03 00 97 04 00 90 00 0F [13:04:40]RAPDU: 90 00 [13:04:40]wFMCommunicate OK [13:04:40]wFMCommunicate request_size=4 [13:04:40]MH_SAM_APDU [13:04:40]CAPDU: 80 0D 03 02 [13:04:40]Write to MH i2c: E2 08 00 98 04 80 0D 03 02 00 00 00 00 17 [13:04:40]Write i2c OK [13:04:40]MH_I2C_Read... [13:04:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:04:40]Read from MH i2c: E2 [13:04:40]MH_I2C_Read... [13:04:40]Read from MH i2c: E2 0B 00 [13:04:40]MH_I2C_Read... [13:04:40]Read from MH i2c: E2 0B 00 98 04 00 57 27 4D B0 09 8E C6 E2 90 00 D2 [13:04:40]RAPDU: 57 27 4D B0 09 8E C6 E2 90 00 [13:04:40]wFMCommunicate OK [13:04:40]SAM_PROTO_SignData done [13:04:40]FM_MakeSignedData done [13:04:40]CreateOFDProtocolMessage [13:04:40]wFMCommunicate request_size=4 [13:04:40]MH_SAM_APDU [13:04:40]CAPDU: 80 11 00 00 [13:04:40]Write to MH i2c: E2 08 00 99 04 80 11 00 00 00 00 00 00 17 [13:04:40]Write i2c OK [13:04:40]MH_I2C_Read... [13:04:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:40]Read from MH i2c: E2 [13:04:40]MH_I2C_Read... [13:04:40]Read from MH i2c: E2 17 00 [13:04:40]MH_I2C_Read... [13:04:40]Read from MH i2c: E2 17 00 99 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 6B [13:04:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [13:04:40]wFMCommunicate OK [13:04:40]CreateOFDProtocolMessage done [13:04:40]OFDSenderStorePacket 103144 [13:04:40]StoreOFDPacket docnum=103144 [13:04:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 B0 EE 04 01 B6 B1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 24 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 0F 00 00 00 00 07 04 06 00 24 90 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 E7 59 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 E8 92 01 00 35 04 06 00 79 C0 15 57 F5 76 57 27 4D B0 09 8E C6 E2 [13:04:40]CheckFolder [13:04:40]dirname=/storage/ofd_packets [13:04:40]CheckFolder done [13:04:40]ProducePacketName [13:04:40]name=ofd_packets/00103144 [13:04:40]NVStorageSaveData ofd_packets/00103144 [13:04:40]File name is /storage/ofd_packets/00103144 [13:04:40]Write 298 bytes [13:04:40]NVStorageSaveData done [13:04:40]OFDSenderStorePacket done [13:04:40]KKMCreateOFDPacket done [13:04:40]NVStorageSaveData kkm_last_timestamp [13:04:40]File name is /storage/kkm_last_timestamp [13:04:40]Write 4 bytes [13:04:40]NVStorageSaveData done [13:04:40]ExternCall_PrintAddStr [13:04:40]wPrintStart [13:04:40]Write to MH i2c: 01 00 00 9A 04 9E [13:04:40]Write i2c OK [13:04:40]MH_I2C_Read... [13:04:40]Read from MH i2c: 01 [13:04:40]MH_I2C_Read... [13:04:40]Read from MH i2c: 01 07 00 [13:04:40]MH_I2C_Read... [13:04:40]Read from MH i2c: 01 07 00 9A 04 00 00 00 00 00 FF 0F B3 [13:04:40]RasterBufferAndPrint [13:04:40]line Счет N : (1)160774 [13:04:40]line ИНН: 02508201610067 [13:04:40]line Контрольно-Кассовый Чек [13:04:40]line ПРОДАЖА [13:04:40]line ТРК (МРК, ГНК) : 13 [13:04:40]line Товар: 2710194210 [13:04:40]line ДТ-К-5 [13:04:40]line 5.000 * 73.80 [13:04:40]line = 369.00 [13:04:40]line НДС 12% НСП 1% [13:04:40]line > о реализуемом товаре [13:04:40]line ИТОГО: 369.00 [13:04:40]line Внесено: 500.00 [13:04:40]line СДАЧА: 131.00 [13:04:40]line НСП 1% : 3.26 [13:04:40]line НДС 12% : 39.19 [13:04:40]line Наличными: 369.00 [13:04:40]line Безнал.: 0.00 [13:04:40]line Место: АЗС № 38 "Партнер Нефть" [13:04:40]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [13:04:40]line СНО: Общий режим [13:04:40]line Чек 55 13.08.2024 13:04 [13:04:40]line Смена: 464 ФФД: 1.0 [13:04:40]line ЗНМ: 0300000126 [13:04:40]line РНМ: 0000000000092718 [13:04:40]line Версия ККМ: 001 [13:04:40]line ФМ: 0000000000875058 [13:04:40]line ФД: 103144 [13:04:40]line ФПД: 133865898767734 [13:04:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T130439&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103144&fm=133865898767734&tin=02508201610067®Number=0000000000092718&sum=36900 [13:04:40]OFD Sender: Processing packet 103144 [packets to send 69, broken 68] [13:04:40]ProducePacketName [13:04:40]name=ofd_packets/00103144 [13:04:40]OFD Sender: To server: pG, [13:04:40]CommunicateWithHost lk.salyk.kg:30040 [13:04:40]ConnectInit lk.salyk.kg [13:04:40]written 0, free lines is 4095 [13:04:40]Connected sock=10 [13:04:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 B0 EE 04 01 B6 B1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 24 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 0F 00 00 00 00 07 04 06 00 24 90 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 E7 59 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 E8 92 01 00 35 04 06 00 79 C0 15 57 F5 76 57 27 4D B0 09 8E C6 E2 [13:04:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 9C 9E 47 00 38 C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 E8 92 01 00 F4 03 04 00 5A 00 BB 66 B6 04 01 00 00 B9 1B 8E 35 22 E4 19 13 [13:04:41]CommunicateWithHost err = 0 [13:04:41]CheckOFDResponse [13:04:41]1017 (14) - 77093643461234 [13:04:41]1041 (16) - 0000000000875058 [13:04:41]1040 (4) - 103144 [13:04:41]1012 (4) - 13.08.2024 06:42 [13:04:41]1206 (1) - 0 [13:04:41]OFD Sender: Remove packet 103144 [13:04:41]ProducePacketName [13:04:41]name=ofd_packets/00103144 [13:04:41]NVStorageDeleteData [13:04:41]Write to MH i2c: 01 00 00 C4 04 C8 [13:04:41]Write i2c OK [13:04:41]MH_I2C_Read... [13:04:41]Read from MH i2c: 01 [13:04:41]MH_I2C_Read... [13:04:41]Read from MH i2c: 01 07 00 [13:04:41]MH_I2C_Read... [13:04:41]Read from MH i2c: 01 07 00 C4 04 00 00 00 00 00 E7 0C C2 [13:04:41]RasterBufferAndPrint [13:04:41]line [13:04:41]line [13:04:41]line [13:04:41]line [13:04:41]line [13:04:41]written 0, free lines is 3310 [13:04:41]MH_Cut [13:04:41]Write to MH i2c: D1 01 00 CB 04 01 A1 [13:04:41]Write i2c OK [13:04:41]MH_I2C_Read... [13:04:41]Read from MH i2c: D1 [13:04:41]MH_I2C_Read... [13:04:41]Read from MH i2c: D1 01 00 [13:04:41]MH_I2C_Read... [13:04:41]Read from MH i2c: D1 01 00 CB 04 00 A0 [13:04:41]Write to MH i2c: 01 00 00 CC 04 D0 [13:04:41]Write i2c OK [13:04:41]MH_I2C_Read... [13:04:41]OFD Sender: No OFD packet to send [13:04:41]*** Cut start [13:04:41]*** Purtial cut [13:04:41]*** CUTSNS_PIN = 0 [13:04:42]*** Stage 1: CUTSNS_PIN = 1 [13:04:43]Read from MH i2c: 01 [13:04:43]MH_I2C_Read... [13:04:43]*** Stop cut motor [13:04:43]*** Cut end [13:04:43]Read from MH i2c: 01 07 00 [13:04:43]MH_I2C_Read... [13:04:43]Read from MH i2c: 01 07 00 CC 04 00 00 00 00 00 FF 0F E5 [13:04:43]process_action close_receipt done [13:04:43]requested_data is exist [13:04:43]produce_requested_data [13:04:43]requested_item fm.sn is exist - process it [13:04:43]wFMCommunicate request_size=4 [13:04:43]MH_SAM_APDU [13:04:43]CAPDU: 80 11 00 00 [13:04:43]Write to MH i2c: E2 08 00 CD 04 80 11 00 00 00 00 00 00 4B [13:04:43]Write i2c OK [13:04:43]MH_I2C_Read... [13:04:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:44]Read from MH i2c: E2 [13:04:44]MH_I2C_Read... [13:04:44]Read from MH i2c: E2 17 00 [13:04:44]MH_I2C_Read... [13:04:44]Read from MH i2c: E2 17 00 CD 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 9F [13:04:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [13:04:44]wFMCommunicate OK [13:04:44]requested_item fd.num is exist - process it [13:04:44]SAM_PROTO_GetFieldsCounters [13:04:44]wFMCommunicate request_size=4 [13:04:44]MH_SAM_APDU [13:04:44]CAPDU: 80 13 00 00 [13:04:44]Write to MH i2c: E2 08 00 CE 04 80 13 00 00 00 00 00 00 4E [13:04:44]Write i2c OK [13:04:44]MH_I2C_Read... [13:04:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:04:44]Read from MH i2c: E2 [13:04:44]MH_I2C_Read... [13:04:44]Read from MH i2c: E2 62 00 [13:04:44]MH_I2C_Read... [13:04:44]Read from MH i2c: E2 62 00 CE 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 E8 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [13:04:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 E8 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:04:44]wFMCommunicate OK [13:04:44]SAM_PROTO_GetFieldsCounters done [13:04:44]requested_item shift.num is exist - process it [13:04:44]requested_item shift.opened is exist - process it [13:04:44]req_shift_opened [13:04:44]FM_GetShiftState [13:04:44]SAM_PROTO_GetShiftState [13:04:44]wFMCommunicate request_size=4 [13:04:44]MH_SAM_APDU [13:04:44]CAPDU: 80 13 01 00 [13:04:44]Write to MH i2c: E2 08 00 CF 04 80 13 01 00 00 00 00 00 50 [13:04:44]Write i2c OK [13:04:44]MH_I2C_Read... [13:04:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:44]Read from MH i2c: E2 [13:04:44]MH_I2C_Read... [13:04:44]Read from MH i2c: E2 0E 00 [13:04:44]MH_I2C_Read... [13:04:44]Read from MH i2c: E2 0E 00 CF 04 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 6E [13:04:44]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [13:04:44]wFMCommunicate OK [13:04:44]SAM_PROTO_GetShiftState done [13:04:44]FM_GetShiftState done [13:04:44]req_shift_opened done [13:04:44]requested_item shift.open_date is exist - process it [13:04:44]req_shift_open_date [13:04:44]req_shift_open_date done [13:04:44]produce_requested_data done [13:04:44]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103144,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [13:04:44]process_action_free close_receipt [13:04:44]json_value_free [13:04:44]json_value_free done [13:04:44]process_json_proto returns [13:04:44]Send response to host [13:04:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103144,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [13:04:44]free response buf [13:04:44]execute_script done [13:04:44]execute_script returns [13:04:44]free content buf [13:04:44]Sock 7.Close socket [13:04:44]Sock 7.Thread stoped [13:04:46]OFD Sender: No OFD packet to send [13:04:51]OFD Sender: No OFD packet to send [13:04:56]OFD Sender: No OFD packet to send [13:05:01]OFD Sender: No OFD packet to send [13:05:06]OFD Sender: No OFD packet to send [13:05:11]OFD Sender: No OFD packet to send [13:05:16]OFD Sender: No OFD packet to send [13:05:21]OFD Sender: No OFD packet to send [13:05:26]OFD Sender: No OFD packet to send [13:05:31]OFD Sender: No OFD packet to send [13:05:36]OFD Sender: No OFD packet to send [13:05:41]OFD Sender: No OFD packet to send [13:05:46]OFD Sender: No OFD packet to send [13:05:51]OFD Sender: No OFD packet to send [13:05:56]OFD Sender: No OFD packet to send [13:06:00]accept exits with 9 [13:06:00]New connection [13:06:00]New thread 3066830180 created [13:06:00]Thread 3066686820 joined [13:06:00]Waiting for new connection... [13:06:00] Sock 9.Parse request [13:06:00]Sock 9.Check first char [13:06:00]Sock 9.First char is OK [13:06:00]request: POST /json_proto HTTP/1.0 [13:06:00]Method: POST [13:06:00]URL: /json_proto [13:06:00]Method is POST - this is cgi request [13:06:00]url: /json_proto [13:06:00]query_string will be loaded in cgi processing [13:06:00]execute_cgi json_proto POST (null) [13:06:00]execute_cgi path=json_proto method=POST [13:06:00]POST find Content-Length [13:06:00]Host: 172.17.58.3:8080 [13:06:00]Content-Length: 681 [13:06:00]Content-Type: application/json [13:06:00] [13:06:00]POST finish read [13:06:00]Found Content-Length = 681 [13:06:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160773", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 17.300, "sum" : 1140.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1140.00, "total" : 1140.00, "payments": [ { "type": 0, "sum" : 1140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:00]execute_script... [13:06: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)160773", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 17.300, "sum" : 1140.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1140.00, "total" : 1140.00, "payments": [ { "type": 0, "sum" : 1140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:00]POST & json_proto [13:06:00]process_json_proto [13:06:00]json parsed OK: [13:06:00]protocol is kg_v1.0 [13:06:00]action value=close_receipt [13:06:00]process_action close_receipt [13:06:00]cmd_close_receipt [13:06:00]MH_GetDate [13:06:00]Write to MH i2c: F0 00 00 D0 04 C3 [13:06:00]Write i2c OK [13:06:00]MH_I2C_Read... [13:06:00]Read from MH i2c: F0 [13:06:00]MH_I2C_Read... [13:06:00]Read from MH i2c: F0 09 00 [13:06:00]MH_I2C_Read... [13:06:00]Read from MH i2c: F0 09 00 D0 04 00 38 5A BB 66 DC E4 6D 64 10 [13:06:00]GetLastDocTimeStamp 1723554279 [13:06:00]current date 1723554360 [13:06:00]FM_GetShiftState [13:06:00]SAM_PROTO_GetShiftState [13:06:00]wFMCommunicate request_size=4 [13:06:00]MH_SAM_APDU [13:06:00]CAPDU: 80 13 01 00 [13:06:00]Write to MH i2c: E2 08 00 D1 04 80 13 01 00 00 00 00 00 52 [13:06:00]Write i2c OK [13:06:00]MH_I2C_Read... [13:06:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:00]Read from MH i2c: E2 [13:06:00]MH_I2C_Read... [13:06:00]Read from MH i2c: E2 0E 00 [13:06:00]MH_I2C_Read... [13:06:00]Read from MH i2c: E2 0E 00 D1 04 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 70 [13:06:00]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [13:06:00]wFMCommunicate OK [13:06:00]SAM_PROTO_GetShiftState done [13:06:00]FM_GetShiftState done [13:06:00]opened in 1723506770 [13:06:00]opened+sec_in_day 1723593170 [13:06:00]quantity*price = 114007 [13:06:00]sum+1 = 114008 [13:06:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 1140.00 Внесено: 1140.00 СДАЧА: 0.00 НСП 1% : 10.09 НДС 12% : 121.07 Наличными: 1140.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 56 13.08.2024 13:06 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103145 ФПД: 136659459336902 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T130601&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103145&fm=136659459336902&tin=02508201610067®Number=0000000000092718&sum=114000 [13:06:01]StoreToDocumentArchive [13:06:01]shift 464 fd 103145 [13:06:01]save to /storage/0464/doc_00103145 [13:06:01]save last doc name /storage/0464/doc_00103145 to /storage/kkm_last_doc_name [13:06:01]save OK [13:06:01]Clear old archive folders... [13:06:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:06:01]tlvbuf is 01539280 [13:06:01]SAM_PROTO_ClearQueue [13:06:01]wFMCommunicate request_size=4 [13:06:01]MH_SAM_APDU [13:06:01]CAPDU: 80 09 00 00 [13:06:01]Write to MH i2c: E2 08 00 DE 04 80 09 00 00 00 00 00 00 54 [13:06:01]Write i2c OK [13:06:01]MH_I2C_Read... [13:06:01]OFD Sender: No OFD packet to send [13:06:01]Read from MH i2c: E2 [13:06:01]MH_I2C_Read... [13:06:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:06:01]Read from MH i2c: E2 03 00 [13:06:01]MH_I2C_Read... [13:06:01]Read from MH i2c: E2 03 00 DE 04 00 90 00 56 [13:06:01]RAPDU: 90 00 [13:06:01]wFMCommunicate OK [13:06:01]SAM_PROTO_ClearQueue done [13:06:01]KKMCreateOFDPacket [13:06:01]OFDProtocolAddRootSTLVToBuf [13:06:01]FM_MakeSignedData [13:06:01]FM_MakeSignedData [13:06:01]SAM_PROTO_SignData [13:06:01]wFMCommunicate request_size=4 [13:06:01]MH_SAM_APDU [13:06:01]CAPDU: 80 0D 01 02 [13:06:01]Write to MH i2c: E2 08 00 DF 04 80 0D 01 02 00 00 00 00 5C [13:06:01]Write i2c OK [13:06:01]MH_I2C_Read... [13:06:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:06:01]Read from MH i2c: E2 [13:06:01]MH_I2C_Read... [13:06:01]Read from MH i2c: E2 03 00 [13:06:01]MH_I2C_Read... [13:06:01]Read from MH i2c: E2 03 00 DF 04 00 90 00 57 [13:06:01]RAPDU: 90 00 [13:06:01]wFMCommunicate OK [13:06:01]wFMCommunicate request_size=255 [13:06:01]MH_SAM_APDU [13:06: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 94 43 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 57 BD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 BD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 2F 00 00 00 00 07 04 06 00 50 BD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 39 5A BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 E9 92 01 00 35 04 06 00 7C [13:06:01]Write to MH i2c: E2 02 01 E0 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 94 43 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 57 BD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 BD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 2F 00 00 00 00 07 04 06 00 50 BD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 39 5A BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 E9 92 01 00 35 04 06 00 7C 00 00 6B [13:06:01]Write i2c OK [13:06:01]MH_I2C_Read... [13:06:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:02]Read from MH i2c: E2 [13:06:02]MH_I2C_Read... [13:06:02]Read from MH i2c: E2 03 00 [13:06:02]MH_I2C_Read... [13:06:02]Read from MH i2c: E2 03 00 E0 04 00 90 00 58 [13:06:02]RAPDU: 90 00 [13:06:02]wFMCommunicate OK [13:06:02]wFMCommunicate request_size=10 [13:06:02]MH_SAM_APDU [13:06:02]CAPDU: 80 0D 02 02 05 4A 82 87 6A C6 [13:06:02]Write to MH i2c: E2 0D 00 E1 04 80 0D 02 02 05 00 4A 82 87 6A C6 00 00 EC [13:06:02]Write i2c OK [13:06:02]MH_I2C_Read... [13:06:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:02]Read from MH i2c: E2 [13:06:02]MH_I2C_Read... [13:06:02]Read from MH i2c: E2 03 00 [13:06:02]MH_I2C_Read... [13:06:02]Read from MH i2c: E2 03 00 E1 04 00 90 00 59 [13:06:02]RAPDU: 90 00 [13:06:02]wFMCommunicate OK [13:06:02]wFMCommunicate request_size=4 [13:06:02]MH_SAM_APDU [13:06:02]CAPDU: 80 0D 03 02 [13:06:02]Write to MH i2c: E2 08 00 E2 04 80 0D 03 02 00 00 00 00 61 [13:06:02]Write i2c OK [13:06:02]MH_I2C_Read... [13:06:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:06:02]Read from MH i2c: E2 [13:06:02]MH_I2C_Read... [13:06:02]Read from MH i2c: E2 0B 00 [13:06:02]MH_I2C_Read... [13:06:02]Read from MH i2c: E2 0B 00 E2 04 00 11 27 91 21 5A C7 DF C3 90 00 0F [13:06:02]RAPDU: 11 27 91 21 5A C7 DF C3 90 00 [13:06:02]wFMCommunicate OK [13:06:02]SAM_PROTO_SignData done [13:06:02]FM_MakeSignedData done [13:06:02]CreateOFDProtocolMessage [13:06:02]wFMCommunicate request_size=4 [13:06:02]MH_SAM_APDU [13:06:02]CAPDU: 80 11 00 00 [13:06:02]Write to MH i2c: E2 08 00 E3 04 80 11 00 00 00 00 00 00 61 [13:06:02]Write i2c OK [13:06:02]MH_I2C_Read... [13:06:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:02]Read from MH i2c: E2 [13:06:02]MH_I2C_Read... [13:06:02]Read from MH i2c: E2 17 00 [13:06:02]MH_I2C_Read... [13:06:02]Read from MH i2c: E2 17 00 E3 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 B5 [13:06:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [13:06:02]wFMCommunicate OK [13:06:02]CreateOFDProtocolMessage done [13:06:02]OFDSenderStorePacket 103145 [13:06:02]StoreOFDPacket docnum=103145 [13:06:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 06 F8 07 01 3D 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 43 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 57 BD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 BD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 2F 00 00 00 00 07 04 06 00 50 BD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 39 5A BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 E9 92 01 00 35 04 06 00 7C 4A 82 87 6A C6 11 27 91 21 5A C7 DF C3 [13:06:02]CheckFolder [13:06:02]dirname=/storage/ofd_packets [13:06:02]CheckFolder done [13:06:02]ProducePacketName [13:06:02]name=ofd_packets/00103145 [13:06:02]NVStorageSaveData ofd_packets/00103145 [13:06:02]File name is /storage/ofd_packets/00103145 [13:06:02]Write 301 bytes [13:06:02]NVStorageSaveData done [13:06:02]OFDSenderStorePacket done [13:06:02]KKMCreateOFDPacket done [13:06:02]NVStorageSaveData kkm_last_timestamp [13:06:02]File name is /storage/kkm_last_timestamp [13:06:02]Write 4 bytes [13:06:02]NVStorageSaveData done [13:06:02]OFD Sender: Processing packet 103145 [packets to send 69, broken 68] [13:06:02]ProducePacketName [13:06:02]name=ofd_packets/00103145 [13:06:02]OFD Sender: To server: pG, [13:06:02]CommunicateWithHost lk.salyk.kg:30040 [13:06:02]ConnectInit lk.salyk.kg [13:06:02]ExternCall_PrintAddStr [13:06:02]wPrintStart [13:06:02]Write to MH i2c: 01 00 00 E4 04 E8 [13:06:02]Write i2c OK [13:06:02]MH_I2C_Read... [13:06:02]Read from MH i2c: 01 [13:06:02]MH_I2C_Read... [13:06:02]Read from MH i2c: 01 07 00 [13:06:02]MH_I2C_Read... [13:06:02]Read from MH i2c: 01 07 00 E4 04 00 00 00 00 00 FF 0F FD [13:06:02]RasterBufferAndPrint [13:06:02]line Счет N : (1)160773 [13:06:02]line ИНН: 02508201610067 [13:06:02]line Контрольно-Кассовый Чек [13:06:02]line ПРОДАЖА [13:06:02]line ТРК (МРК, ГНК) : 7 [13:06:02]line Товар: 2710124130 [13:06:02]line Аи-92-К-5 [13:06:02]line 17.300 * 65.90 [13:06:02]line = 1140.07 [13:06:02]line НДС 12% НСП 1% [13:06:02]line > о реализуемом товаре [13:06:02]line ОКРУГЛЕНИЕ: -0.07 [13:06:02]line ИТОГО: 1140.00 [13:06:02]line Внесено: 1140.00 [13:06:02]line СДАЧА: 0.00 [13:06:02]line НСП 1% : 10.09 [13:06:02]line НДС 12% : 121.07 [13:06:02]line Наличными: 1140.00 [13:06:02]line Безнал.: 0.00 [13:06:02]line Место: АЗС № 38 "Партнер Нефть" [13:06:02]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [13:06:02]line СНО: Общий режим [13:06:02]line Чек 56 13.08.2024 13:06 [13:06:02]line Смена: 464 ФФД: 1.0 [13:06:02]line ЗНМ: 0300000126 [13:06:02]line РНМ: 0000000000092718 [13:06:02]line Версия ККМ: 001 [13:06:02]line ФМ: 0000000000875058 [13:06:02]line ФД: 103145 [13:06:02]line ФПД: 136659459336902 [13:06:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T130601&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103145&fm=136659459336902&tin=02508201610067®Number=0000000000092718&sum=114000 [13:06:02]Connected sock=11 [13:06:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 06 F8 07 01 3D 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 43 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 57 BD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 BD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 2F 00 00 00 00 07 04 06 00 50 BD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 39 5A BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 E9 92 01 00 35 04 06 00 7C 4A 82 87 6A C6 11 27 91 21 5A C7 DF C3 [13:06:02]written 0, free lines is 4095 [13:06:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 B9 DB 47 00 94 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 E9 92 01 00 F4 03 04 00 AB 00 BB 66 B6 04 01 00 00 52 AC D9 FE E0 10 6B 35 [13:06:02]CommunicateWithHost err = 0 [13:06:02]CheckOFDResponse [13:06:02]1017 (14) - 77093643461234 [13:06:02]1041 (16) - 0000000000875058 [13:06:02]1040 (4) - 103145 [13:06:02]1012 (4) - 13.08.2024 06:43 [13:06:02]1206 (1) - 0 [13:06:02]OFD Sender: Remove packet 103145 [13:06:02]ProducePacketName [13:06:02]name=ofd_packets/00103145 [13:06:02]NVStorageDeleteData [13:06:02]Write to MH i2c: 01 00 00 0F 05 14 [13:06:02]Write i2c OK [13:06:02]MH_I2C_Read... [13:06:02]Read from MH i2c: 01 [13:06:02]MH_I2C_Read... [13:06:02]Read from MH i2c: 01 07 00 [13:06:02]MH_I2C_Read... [13:06:02]Read from MH i2c: 01 07 00 0F 05 00 00 00 00 00 E8 0C 0F [13:06:02]RasterBufferAndPrint [13:06:02]line [13:06:02]line [13:06:02]line [13:06:02]line [13:06:02]line [13:06:02]written 0, free lines is 3310 [13:06:02]MH_Cut [13:06:02]Write to MH i2c: D1 01 00 16 05 01 ED [13:06:02]Write i2c OK [13:06:02]MH_I2C_Read... [13:06:02]Read from MH i2c: D1 [13:06:02]MH_I2C_Read... [13:06:02]Read from MH i2c: D1 01 00 [13:06:02]MH_I2C_Read... [13:06:02]Read from MH i2c: D1 01 00 16 05 00 EC [13:06:02]Write to MH i2c: 01 00 00 17 05 1C [13:06:02]Write i2c OK [13:06:02]MH_I2C_Read... [13:06:03]OFD Sender: No OFD packet to send [13:06:03]*** Cut start [13:06:03]*** Purtial cut [13:06:03]*** Stage 1: CUTSNS_PIN = 1 [13:06:04]Read from MH i2c: 01 [13:06:04]MH_I2C_Read... [13:06:04]*** Stop cut motor [13:06:04]*** Cut end [13:06:04]Read from MH i2c: 01 07 00 [13:06:04]MH_I2C_Read... [13:06:04]Read from MH i2c: 01 07 00 17 05 00 00 00 00 00 FF 0F 31 [13:06:04]process_action close_receipt done [13:06:04]requested_data is exist [13:06:04]produce_requested_data [13:06:04]requested_item fm.sn is exist - process it [13:06:04]wFMCommunicate request_size=4 [13:06:04]MH_SAM_APDU [13:06:04]CAPDU: 80 11 00 00 [13:06:04]Write to MH i2c: E2 08 00 18 05 80 11 00 00 00 00 00 00 97 [13:06:04]Write i2c OK [13:06:04]MH_I2C_Read... [13:06:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:04]Read from MH i2c: E2 [13:06:04]MH_I2C_Read... [13:06:04]Read from MH i2c: E2 17 00 [13:06:04]MH_I2C_Read... [13:06:04]Read from MH i2c: E2 17 00 18 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 EB [13:06:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [13:06:04]wFMCommunicate OK [13:06:04]requested_item fd.num is exist - process it [13:06:04]SAM_PROTO_GetFieldsCounters [13:06:04]wFMCommunicate request_size=4 [13:06:04]MH_SAM_APDU [13:06:04]CAPDU: 80 13 00 00 [13:06:04]Write to MH i2c: E2 08 00 19 05 80 13 00 00 00 00 00 00 9A [13:06:04]Write i2c OK [13:06:04]MH_I2C_Read... [13:06:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:06:04]Read from MH i2c: E2 [13:06:04]MH_I2C_Read... [13:06:04]Read from MH i2c: E2 62 00 [13:06:04]MH_I2C_Read... [13:06:04]Read from MH i2c: E2 62 00 19 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 E9 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [13:06:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 E9 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:06:04]wFMCommunicate OK [13:06:04]SAM_PROTO_GetFieldsCounters done [13:06:04]requested_item shift.num is exist - process it [13:06:04]requested_item shift.opened is exist - process it [13:06:04]req_shift_opened [13:06:04]FM_GetShiftState [13:06:04]SAM_PROTO_GetShiftState [13:06:04]wFMCommunicate request_size=4 [13:06:04]MH_SAM_APDU [13:06:04]CAPDU: 80 13 01 00 [13:06:04]Write to MH i2c: E2 08 00 1A 05 80 13 01 00 00 00 00 00 9C [13:06:04]Write i2c OK [13:06:04]MH_I2C_Read... [13:06:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:04]Read from MH i2c: E2 [13:06:04]MH_I2C_Read... [13:06:04]Read from MH i2c: E2 0E 00 [13:06:04]MH_I2C_Read... [13:06:04]Read from MH i2c: E2 0E 00 1A 05 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 BA [13:06:04]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [13:06:04]wFMCommunicate OK [13:06:04]SAM_PROTO_GetShiftState done [13:06:04]FM_GetShiftState done [13:06:04]req_shift_opened done [13:06:04]requested_item shift.open_date is exist - process it [13:06:04]req_shift_open_date [13:06:04]req_shift_open_date done [13:06:04]produce_requested_data done [13:06:04]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103145,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [13:06:04]process_action_free close_receipt [13:06:04]json_value_free [13:06:04]json_value_free done [13:06:04]process_json_proto returns [13:06:04]Send response to host [13:06:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103145,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [13:06:04]free response buf [13:06:04]execute_script done [13:06:04]execute_script returns [13:06:04]free content buf [13:06:04]Sock 9.Close socket [13:06:04]Sock 9.Thread stoped [13:06:08]OFD Sender: No OFD packet to send [13:06:13]OFD Sender: No OFD packet to send [13:06:18]OFD Sender: No OFD packet to send [13:06:23]OFD Sender: No OFD packet to send [13:06:28]OFD Sender: No OFD packet to send [13:06:33]OFD Sender: No OFD packet to send [13:06:38]OFD Sender: No OFD packet to send [13:06:43]OFD Sender: No OFD packet to send [13:06:48]OFD Sender: No OFD packet to send [13:06:53]OFD Sender: No OFD packet to send [13:06:58]OFD Sender: No OFD packet to send [13:07:03]OFD Sender: No OFD packet to send [13:07:08]OFD Sender: No OFD packet to send [13:07:13]OFD Sender: No OFD packet to send [13:07:18]OFD Sender: No OFD packet to send [13:07:23]OFD Sender: No OFD packet to send [13:07:28]OFD Sender: No OFD packet to send [13:07:33]OFD Sender: No OFD packet to send [13:07:38]OFD Sender: No OFD packet to send [13:07:43]OFD Sender: No OFD packet to send [13:07:48]OFD Sender: No OFD packet to send [13:07:53]OFD Sender: No OFD packet to send [13:07:58]OFD Sender: No OFD packet to send [13:08:03]OFD Sender: No OFD packet to send [13:08:08]OFD Sender: No OFD packet to send [13:08:13]OFD Sender: No OFD packet to send [13:08:18]OFD Sender: No OFD packet to send [13:08:23]OFD Sender: No OFD packet to send [13:08:28]OFD Sender: No OFD packet to send [13:08:33]OFD Sender: No OFD packet to send [13:08:38]OFD Sender: No OFD packet to send [13:08:43]OFD Sender: No OFD packet to send [13:08:48]OFD Sender: No OFD packet to send [13:08:53]OFD Sender: No OFD packet to send [13:08:58]OFD Sender: No OFD packet to send [13:09:03]OFD Sender: No OFD packet to send [13:09:08]OFD Sender: No OFD packet to send [13:09:13]OFD Sender: No OFD packet to send [13:09:18]OFD Sender: No OFD packet to send [13:09:23]OFD Sender: No OFD packet to send [13:09:28]OFD Sender: No OFD packet to send [13:09:33]OFD Sender: No OFD packet to send [13:09:38]OFD Sender: No OFD packet to send [13:09:43]OFD Sender: No OFD packet to send [13:09:48]OFD Sender: No OFD packet to send [13:09:53]OFD Sender: No OFD packet to send [13:09:58]OFD Sender: No OFD packet to send [13:10:03]OFD Sender: No OFD packet to send [13:10:08]OFD Sender: No OFD packet to send [13:10:13]OFD Sender: No OFD packet to send [13:10:18]OFD Sender: No OFD packet to send [13:10:23]OFD Sender: No OFD packet to send [13:10:28]OFD Sender: No OFD packet to send [13:10:33]OFD Sender: No OFD packet to send [13:10:38]OFD Sender: No OFD packet to send [13:10:43]OFD Sender: No OFD packet to send [13:10:48]OFD Sender: No OFD packet to send [13:10:53]OFD Sender: No OFD packet to send [13:10:58]OFD Sender: No OFD packet to send [13:11:03]OFD Sender: No OFD packet to send [13:11:08]OFD Sender: No OFD packet to send [13:11:13]OFD Sender: No OFD packet to send [13:11:18]OFD Sender: No OFD packet to send [13:11:23]OFD Sender: No OFD packet to send [13:11:28]OFD Sender: No OFD packet to send [13:11:33]OFD Sender: No OFD packet to send [13:11:38]OFD Sender: No OFD packet to send [13:11:43]OFD Sender: No OFD packet to send [13:11:48]OFD Sender: No OFD packet to send [13:11:53]OFD Sender: No OFD packet to send [13:11:58]OFD Sender: No OFD packet to send [13:12:03]OFD Sender: No OFD packet to send [13:12:08]OFD Sender: No OFD packet to send [13:12:13]OFD Sender: No OFD packet to send [13:12:18]OFD Sender: No OFD packet to send [13:12:23]OFD Sender: No OFD packet to send [13:12:28]OFD Sender: No OFD packet to send [13:12:33]OFD Sender: No OFD packet to send [13:12:38]OFD Sender: No OFD packet to send [13:12:43]OFD Sender: No OFD packet to send [13:12:48]OFD Sender: No OFD packet to send [13:12:53]OFD Sender: No OFD packet to send [13:12:58]OFD Sender: No OFD packet to send [13:13:03]OFD Sender: No OFD packet to send [13:13:08]OFD Sender: No OFD packet to send [13:13:13]OFD Sender: No OFD packet to send [13:13:18]OFD Sender: No OFD packet to send [13:13:23]OFD Sender: No OFD packet to send [13:13:28]OFD Sender: No OFD packet to send [13:13:33]OFD Sender: No OFD packet to send [13:13:38]OFD Sender: No OFD packet to send [13:13:43]OFD Sender: No OFD packet to send [13:13:48]OFD Sender: No OFD packet to send [13:13:53]OFD Sender: No OFD packet to send [13:13:58]OFD Sender: No OFD packet to send [13:14:03]OFD Sender: No OFD packet to send [13:14:08]OFD Sender: No OFD packet to send [13:14:13]OFD Sender: No OFD packet to send [13:14:18]OFD Sender: No OFD packet to send [13:14:23]OFD Sender: No OFD packet to send [13:14:28]OFD Sender: No OFD packet to send [13:14:33]OFD Sender: No OFD packet to send [13:14:38]OFD Sender: No OFD packet to send [13:14:43]OFD Sender: No OFD packet to send [13:14:48]OFD Sender: No OFD packet to send [13:14:53]OFD Sender: No OFD packet to send [13:14:58]OFD Sender: No OFD packet to send [13:15:03]OFD Sender: No OFD packet to send [13:15:08]OFD Sender: No OFD packet to send [13:15:13]OFD Sender: No OFD packet to send [13:15:18]OFD Sender: No OFD packet to send [13:15:23]OFD Sender: No OFD packet to send [13:15:28]OFD Sender: No OFD packet to send [13:15:33]OFD Sender: No OFD packet to send [13:15:38]OFD Sender: No OFD packet to send [13:15:43]OFD Sender: No OFD packet to send [13:15:48]OFD Sender: No OFD packet to send [13:15:53]OFD Sender: No OFD packet to send [13:15:58]OFD Sender: No OFD packet to send [13:16:03]OFD Sender: No OFD packet to send [13:16:08]OFD Sender: No OFD packet to send [13:16:13]OFD Sender: No OFD packet to send [13:16:18]OFD Sender: No OFD packet to send [13:16:23]OFD Sender: No OFD packet to send [13:16:28]OFD Sender: No OFD packet to send [13:16:33]OFD Sender: No OFD packet to send [13:16:38]OFD Sender: No OFD packet to send [13:16:43]OFD Sender: No OFD packet to send [13:16:48]OFD Sender: No OFD packet to send [13:16:53]OFD Sender: No OFD packet to send [13:16:58]OFD Sender: No OFD packet to send [13:17:03]OFD Sender: No OFD packet to send [13:17:08]OFD Sender: No OFD packet to send [13:17:13]OFD Sender: No OFD packet to send [13:17:18]OFD Sender: No OFD packet to send [13:17:23]OFD Sender: No OFD packet to send [13:17:28]OFD Sender: No OFD packet to send [13:17:33]OFD Sender: No OFD packet to send [13:17:38]OFD Sender: No OFD packet to send [13:17:43]OFD Sender: No OFD packet to send [13:17:48]OFD Sender: No OFD packet to send [13:17:53]OFD Sender: No OFD packet to send [13:17:58]OFD Sender: No OFD packet to send [13:18:03]OFD Sender: No OFD packet to send [13:18:08]OFD Sender: No OFD packet to send [13:18:13]OFD Sender: No OFD packet to send [13:18:18]OFD Sender: No OFD packet to send [13:18:23]OFD Sender: No OFD packet to send [13:18:28]OFD Sender: No OFD packet to send [13:18:33]OFD Sender: No OFD packet to send [13:18:38]OFD Sender: No OFD packet to send [13:18:43]OFD Sender: No OFD packet to send [13:18:48]OFD Sender: No OFD packet to send [13:18:53]OFD Sender: No OFD packet to send [13:18:58]OFD Sender: No OFD packet to send [13:19:03]OFD Sender: No OFD packet to send [13:19:08]OFD Sender: No OFD packet to send [13:19:13]OFD Sender: No OFD packet to send [13:19:18]OFD Sender: No OFD packet to send [13:19:23]OFD Sender: No OFD packet to send [13:19:28]OFD Sender: No OFD packet to send [13:19:33]OFD Sender: No OFD packet to send [13:19:38]OFD Sender: No OFD packet to send [13:19:43]OFD Sender: No OFD packet to send [13:19:48]OFD Sender: No OFD packet to send [13:19:53]OFD Sender: No OFD packet to send [13:19:58]OFD Sender: No OFD packet to send [13:20:04]OFD Sender: No OFD packet to send [13:20:09]OFD Sender: No OFD packet to send [13:20:14]OFD Sender: No OFD packet to send [13:20:19]OFD Sender: No OFD packet to send [13:20:24]OFD Sender: No OFD packet to send [13:20:29]OFD Sender: No OFD packet to send [13:20:34]OFD Sender: No OFD packet to send [13:20:39]OFD Sender: No OFD packet to send [13:20:44]OFD Sender: No OFD packet to send [13:20:49]OFD Sender: No OFD packet to send [13:20:54]OFD Sender: No OFD packet to send [13:20:59]OFD Sender: No OFD packet to send [13:21:04]OFD Sender: No OFD packet to send [13:21:09]OFD Sender: No OFD packet to send [13:21:14]OFD Sender: No OFD packet to send [13:21:19]OFD Sender: No OFD packet to send [13:21:24]OFD Sender: No OFD packet to send [13:21:29]OFD Sender: No OFD packet to send [13:21:34]OFD Sender: No OFD packet to send [13:21:39]OFD Sender: No OFD packet to send [13:21:44]OFD Sender: No OFD packet to send [13:21:49]OFD Sender: No OFD packet to send [13:21:54]OFD Sender: No OFD packet to send [13:21:56]accept exits with 7 [13:21:56]New connection [13:21:56]New thread 3066686820 created [13:21:56]Thread 3066830180 joined [13:21:56]Waiting for new connection... [13:21:56] Sock 7.Parse request [13:21:56]Sock 7.Check first char [13:21:56]Sock 7.First char is OK [13:21:56]request: POST /json_proto HTTP/1.0 [13:21:56]Method: POST [13:21:56]URL: /json_proto [13:21:56]Method is POST - this is cgi request [13:21:56]url: /json_proto [13:21:56]query_string will be loaded in cgi processing [13:21:56]execute_cgi json_proto POST (null) [13:21:56]execute_cgi path=json_proto method=POST [13:21:56]POST find Content-Length [13:21:56]Host: 172.17.58.3:8080 [13:21:56]Content-Length: 674 [13:21:56]Content-Type: application/json [13:21:56] [13:21:56]POST finish read [13:21:56]Found Content-Length = 674 [13:21:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160775", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710124130", "name": "SUPER 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:21:56]execute_script... [13:21:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160775", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710124130", "name": "SUPER 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:21:56]POST & json_proto [13:21:56]process_json_proto [13:21:56]json parsed OK: [13:21:56]protocol is kg_v1.0 [13:21:56]action value=close_receipt [13:21:56]process_action close_receipt [13:21:56]cmd_close_receipt [13:21:56]MH_GetDate [13:21:56]Write to MH i2c: F0 00 00 1B 05 0F [13:21:56]Write i2c OK [13:21:56]MH_I2C_Read... [13:21:56]Read from MH i2c: F0 [13:21:56]MH_I2C_Read... [13:21:56]Read from MH i2c: F0 09 00 [13:21:56]MH_I2C_Read... [13:21:56]Read from MH i2c: F0 09 00 1B 05 00 F4 5D BB 66 DC E4 6D 64 1B [13:21:56]GetLastDocTimeStamp 1723554361 [13:21:56]current date 1723555316 [13:21:56]FM_GetShiftState [13:21:56]SAM_PROTO_GetShiftState [13:21:56]wFMCommunicate request_size=4 [13:21:56]MH_SAM_APDU [13:21:56]CAPDU: 80 13 01 00 [13:21:56]Write to MH i2c: E2 08 00 1C 05 80 13 01 00 00 00 00 00 9E [13:21:56]Write i2c OK [13:21:56]MH_I2C_Read... [13:21:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:56]Read from MH i2c: E2 [13:21:56]MH_I2C_Read... [13:21:56]Read from MH i2c: E2 0E 00 [13:21:56]MH_I2C_Read... [13:21:56]Read from MH i2c: E2 0E 00 1C 05 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 BC [13:21:56]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [13:21:56]wFMCommunicate OK [13:21:56]SAM_PROTO_GetShiftState done [13:21:56]FM_GetShiftState done [13:21:56]opened in 1723506770 [13:21:56]opened+sec_in_day 1723593170 [13:21:56]quantity*price = 100015 [13:21:56]sum+1 = 100017 [13:21: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 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 57 13.08.2024 13:21 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103146 ФПД: 86399797613648 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T132156&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103146&fm=86399797613648&tin=02508201610067®Number=0000000000092718&sum=100000 [13:21:57]StoreToDocumentArchive [13:21:57]shift 464 fd 103146 [13:21:57]save to /storage/0464/doc_00103146 [13:21:57]save last doc name /storage/0464/doc_00103146 to /storage/kkm_last_doc_name [13:21:57]save OK [13:21:57]Clear old archive folders... [13:21:57]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:21:57]tlvbuf is 0152BC60 [13:21:57]SAM_PROTO_ClearQueue [13:21:57]wFMCommunicate request_size=4 [13:21:57]MH_SAM_APDU [13:21:57]CAPDU: 80 09 00 00 [13:21:57]Write to MH i2c: E2 08 00 29 05 80 09 00 00 00 00 00 00 A0 [13:21:57]Write i2c OK [13:21:57]MH_I2C_Read... [13:21:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:21:57]Read from MH i2c: E2 [13:21:57]MH_I2C_Read... [13:21:57]Read from MH i2c: E2 03 00 [13:21:57]MH_I2C_Read... [13:21:57]Read from MH i2c: E2 03 00 29 05 00 90 00 A2 [13:21:57]RAPDU: 90 00 [13:21:57]wFMCommunicate OK [13:21:57]SAM_PROTO_ClearQueue done [13:21:57]KKMCreateOFDPacket [13:21:57]OFDProtocolAddRootSTLVToBuf [13:21:57]FM_MakeSignedData [13:21:57]FM_MakeSignedData [13:21:57]SAM_PROTO_SignData [13:21:57]wFMCommunicate request_size=4 [13:21:57]MH_SAM_APDU [13:21:57]CAPDU: 80 0D 01 02 [13:21:57]Write to MH i2c: E2 08 00 2A 05 80 0D 01 02 00 00 00 00 A8 [13:21:57]Write i2c OK [13:21:57]MH_I2C_Read... [13:21:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:21:57]Read from MH i2c: E2 [13:21:57]MH_I2C_Read... [13:21:57]Read from MH i2c: E2 03 00 [13:21:57]MH_I2C_Read... [13:21:57]Read from MH i2c: E2 03 00 2A 05 00 90 00 A3 [13:21:57]RAPDU: 90 00 [13:21:57]wFMCommunicate OK [13:21:57]wFMCommunicate request_size=255 [13:21:57]MH_SAM_APDU [13:21:57]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 F4 5D BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 EA 92 01 00 35 04 06 00 [13:21:57]Write to MH i2c: E2 02 01 2B 05 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 F4 5D BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 EA 92 01 00 35 04 06 00 00 00 CA [13:21:57]Write i2c OK [13:21:57]MH_I2C_Read... [13:21:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:57]Read from MH i2c: E2 [13:21:57]MH_I2C_Read... [13:21:57]Read from MH i2c: E2 03 00 [13:21:57]MH_I2C_Read... [13:21:57]Read from MH i2c: E2 03 00 2B 05 00 90 00 A4 [13:21:57]RAPDU: 90 00 [13:21:57]wFMCommunicate OK [13:21:57]wFMCommunicate request_size=11 [13:21:57]MH_SAM_APDU [13:21:57]CAPDU: 80 0D 02 02 06 4E 94 85 3E D4 50 [13:21:57]Write to MH i2c: E2 0E 00 2C 05 80 0D 02 02 06 00 4E 94 85 3E D4 50 00 00 80 [13:21:57]Write i2c OK [13:21:57]MH_I2C_Read... [13:21:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:57]Read from MH i2c: E2 [13:21:57]MH_I2C_Read... [13:21:57]Read from MH i2c: E2 03 00 [13:21:57]MH_I2C_Read... [13:21:57]Read from MH i2c: E2 03 00 2C 05 00 90 00 A5 [13:21:57]RAPDU: 90 00 [13:21:57]wFMCommunicate OK [13:21:57]wFMCommunicate request_size=4 [13:21:57]MH_SAM_APDU [13:21:57]CAPDU: 80 0D 03 02 [13:21:57]Write to MH i2c: E2 08 00 2D 05 80 0D 03 02 00 00 00 00 AD [13:21:57]Write i2c OK [13:21:57]MH_I2C_Read... [13:21:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:21:57]Read from MH i2c: E2 [13:21:57]MH_I2C_Read... [13:21:57]Read from MH i2c: E2 0B 00 [13:21:57]MH_I2C_Read... [13:21:57]Read from MH i2c: E2 0B 00 2D 05 00 0F 26 F1 54 91 2E F6 07 90 00 E4 [13:21:57]RAPDU: 0F 26 F1 54 91 2E F6 07 90 00 [13:21:57]wFMCommunicate OK [13:21:57]SAM_PROTO_SignData done [13:21:57]FM_MakeSignedData done [13:21:57]CreateOFDProtocolMessage [13:21:57]wFMCommunicate request_size=4 [13:21:57]MH_SAM_APDU [13:21:57]CAPDU: 80 11 00 00 [13:21:57]Write to MH i2c: E2 08 00 2E 05 80 11 00 00 00 00 00 00 AD [13:21:57]Write i2c OK [13:21:57]MH_I2C_Read... [13:21:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:57]Read from MH i2c: E2 [13:21:57]MH_I2C_Read... [13:21:57]Read from MH i2c: E2 17 00 [13:21:57]MH_I2C_Read... [13:21:57]Read from MH i2c: E2 17 00 2E 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 01 [13:21:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [13:21:57]wFMCommunicate OK [13:21:57]CreateOFDProtocolMessage done [13:21:57]OFDSenderStorePacket 103146 [13:21:57]StoreOFDPacket docnum=103146 [13:21:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 01 00 00 76 AE 08 01 5A B9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 F4 5D BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 EA 92 01 00 35 04 06 00 4E 94 85 3E D4 50 0F 26 F1 54 91 2E F6 07 [13:21:57]CheckFolder [13:21:57]dirname=/storage/ofd_packets [13:21:57]CheckFolder done [13:21:57]ProducePacketName [13:21:57]name=ofd_packets/00103146 [13:21:57]NVStorageSaveData ofd_packets/00103146 [13:21:57]File name is /storage/ofd_packets/00103146 [13:21:57]Write 302 bytes [13:21:57]NVStorageSaveData done [13:21:57]OFDSenderStorePacket done [13:21:57]KKMCreateOFDPacket done [13:21:57]NVStorageSaveData kkm_last_timestamp [13:21:57]File name is /storage/kkm_last_timestamp [13:21:57]Write 4 bytes [13:21:57]NVStorageSaveData done [13:21:57]ExternCall_PrintAddStr [13:21:57]wPrintStart [13:21:57]Write to MH i2c: 01 00 00 2F 05 34 [13:21:57]Write i2c OK [13:21:57]MH_I2C_Read... [13:21:57]Read from MH i2c: 01 [13:21:57]MH_I2C_Read... [13:21:57]Read from MH i2c: 01 07 00 [13:21:57]MH_I2C_Read... [13:21:57]Read from MH i2c: 01 07 00 2F 05 00 00 00 00 00 FF 0F 49 [13:21:57]RasterBufferAndPrint [13:21:57]line Счет N : (1)160775 [13:21:57]line ИНН: 02508201610067 [13:21:57]line Контрольно-Кассовый Чек [13:21:57]line ПРОДАЖА [13:21:57]line ТРК (МРК, ГНК) : 2 [13:21:57]line Товар: 2710124130 [13:21:57]line SUPER 92-К-5 [13:21:57]line 14.950 * 66.90 [13:21:57]line = 1000.16 [13:21:57]line НДС 12% НСП 1% [13:21:57]line > о реализуемом товаре [13:21:57]line ОКРУГЛЕНИЕ: -0.16 [13:21:57]line ИТОГО: 1000.00 [13:21:57]line Внесено: 1000.00 [13:21:57]line СДАЧА: 0.00 [13:21:57]line НСП 1% : 8.85 [13:21:57]line НДС 12% : 106.21 [13:21:57]line Наличными: 1000.00 [13:21:57]line Безнал.: 0.00 [13:21:57]line Место: АЗС № 38 "Партнер Нефть" [13:21:57]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [13:21:57]line СНО: Общий режим [13:21:57]line Чек 57 13.08.2024 13:21 [13:21:57]line Смена: 464 ФФД: 1.0 [13:21:57]line ЗНМ: 0300000126 [13:21:57]line РНМ: 0000000000092718 [13:21:57]line Версия ККМ: 001 [13:21:57]line ФМ: 0000000000875058 [13:21:57]line ФД: 103146 [13:21:57]line ФПД: 86399797613648 [13:21:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T132156&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103146&fm=86399797613648&tin=02508201610067®Number=0000000000092718&sum=100000 [13:21:58]OFD Sender: Processing packet 103146 [packets to send 69, broken 68] [13:21:58]ProducePacketName [13:21:58]name=ofd_packets/00103146 [13:21:58]OFD Sender: To server: pG, [13:21:58]CommunicateWithHost lk.salyk.kg:30040 [13:21:58]ConnectInit lk.salyk.kg [13:21:58]written 0, free lines is 4095 [13:21:58]Connected sock=10 [13:21:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 01 00 00 76 AE 08 01 5A B9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 F4 5D BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 EA 92 01 00 35 04 06 00 4E 94 85 3E D4 50 0F 26 F1 54 91 2E F6 07 [13:21:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 20 12 47 00 80 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 EA 92 01 00 F4 03 04 00 67 04 BB 66 B6 04 01 00 00 A0 46 A2 0B E3 06 86 33 [13:21:58]CommunicateWithHost err = 0 [13:21:58]CheckOFDResponse [13:21:58]1017 (14) - 77093643461234 [13:21:58]1041 (16) - 0000000000875058 [13:21:58]1040 (4) - 103146 [13:21:58]1012 (4) - 13.08.2024 06:59 [13:21:58]1206 (1) - 0 [13:21:58]OFD Sender: Remove packet 103146 [13:21:58]ProducePacketName [13:21:58]name=ofd_packets/00103146 [13:21:58]NVStorageDeleteData [13:21:58]Write to MH i2c: 01 00 00 5A 05 5F [13:21:58]Write i2c OK [13:21:58]MH_I2C_Read... [13:21:58]Read from MH i2c: 01 [13:21:58]MH_I2C_Read... [13:21:58]Read from MH i2c: 01 07 00 [13:21:58]MH_I2C_Read... [13:21:58]Read from MH i2c: 01 07 00 5A 05 00 00 00 00 00 EA 0C 5C [13:21:58]RasterBufferAndPrint [13:21:58]line [13:21:58]line [13:21:58]line [13:21:58]line [13:21:58]line [13:21:58]written 0, free lines is 3312 [13:21:58]MH_Cut [13:21:58]Write to MH i2c: D1 01 00 61 05 01 38 [13:21:58]Write i2c OK [13:21:58]MH_I2C_Read... [13:21:58]Read from MH i2c: D1 [13:21:58]MH_I2C_Read... [13:21:58]Read from MH i2c: D1 01 00 [13:21:58]MH_I2C_Read... [13:21:58]Read from MH i2c: D1 01 00 61 05 00 37 [13:21:58]Write to MH i2c: 01 00 00 62 05 67 [13:21:58]Write i2c OK [13:21:58]MH_I2C_Read... [13:21:59]OFD Sender: No OFD packet to send [13:21:59]*** Cut start [13:21:59]*** Purtial cut [13:21:59]*** CUTSNS_PIN = 0 [13:21:59]*** Stage 1: CUTSNS_PIN = 1 [13:22:01]Read from MH i2c: 01 [13:22:01]MH_I2C_Read... [13:22:01]*** Stop cut motor [13:22:01]*** Cut end [13:22:01]Read from MH i2c: 01 07 00 [13:22:01]MH_I2C_Read... [13:22:01]Read from MH i2c: 01 07 00 62 05 00 00 00 00 00 FF 0F 7C [13:22:01]process_action close_receipt done [13:22:01]requested_data is exist [13:22:01]produce_requested_data [13:22:01]requested_item fm.sn is exist - process it [13:22:01]wFMCommunicate request_size=4 [13:22:01]MH_SAM_APDU [13:22:01]CAPDU: 80 11 00 00 [13:22:01]Write to MH i2c: E2 08 00 63 05 80 11 00 00 00 00 00 00 E2 [13:22:01]Write i2c OK [13:22:01]MH_I2C_Read... [13:22:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:01]Read from MH i2c: E2 [13:22:01]MH_I2C_Read... [13:22:01]Read from MH i2c: E2 17 00 [13:22:01]MH_I2C_Read... [13:22:01]Read from MH i2c: E2 17 00 63 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 36 [13:22:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [13:22:01]wFMCommunicate OK [13:22:01]requested_item fd.num is exist - process it [13:22:01]SAM_PROTO_GetFieldsCounters [13:22:01]wFMCommunicate request_size=4 [13:22:01]MH_SAM_APDU [13:22:01]CAPDU: 80 13 00 00 [13:22:01]Write to MH i2c: E2 08 00 64 05 80 13 00 00 00 00 00 00 E5 [13:22:01]Write i2c OK [13:22:01]MH_I2C_Read... [13:22:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:22:01]Read from MH i2c: E2 [13:22:01]MH_I2C_Read... [13:22:01]Read from MH i2c: E2 62 00 [13:22:01]MH_I2C_Read... [13:22:01]Read from MH i2c: E2 62 00 64 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 EA 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [13:22:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 EA 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:22:01]wFMCommunicate OK [13:22:01]SAM_PROTO_GetFieldsCounters done [13:22:01]requested_item shift.num is exist - process it [13:22:01]requested_item shift.opened is exist - process it [13:22:01]req_shift_opened [13:22:01]FM_GetShiftState [13:22:01]SAM_PROTO_GetShiftState [13:22:01]wFMCommunicate request_size=4 [13:22:01]MH_SAM_APDU [13:22:01]CAPDU: 80 13 01 00 [13:22:01]Write to MH i2c: E2 08 00 65 05 80 13 01 00 00 00 00 00 E7 [13:22:01]Write i2c OK [13:22:01]MH_I2C_Read... [13:22:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:01]Read from MH i2c: E2 [13:22:01]MH_I2C_Read... [13:22:01]Read from MH i2c: E2 0E 00 [13:22:01]MH_I2C_Read... [13:22:01]Read from MH i2c: E2 0E 00 65 05 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 05 [13:22:01]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [13:22:01]wFMCommunicate OK [13:22:01]SAM_PROTO_GetShiftState done [13:22:01]FM_GetShiftState done [13:22:01]req_shift_opened done [13:22:01]requested_item shift.open_date is exist - process it [13:22:01]req_shift_open_date [13:22:01]req_shift_open_date done [13:22:01]produce_requested_data done [13:22:01]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103146,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [13:22:01]process_action_free close_receipt [13:22:01]json_value_free [13:22:01]json_value_free done [13:22:01]process_json_proto returns [13:22:01]Send response to host [13:22:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103146,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [13:22:01]free response buf [13:22:01]execute_script done [13:22:01]execute_script returns [13:22:01]free content buf [13:22:01]Sock 7.Close socket [13:22:01]Sock 7.Thread stoped [13:22:04]OFD Sender: No OFD packet to send [13:22:09]OFD Sender: No OFD packet to send [13:22:14]OFD Sender: No OFD packet to send [13:22:18]accept exits with 9 [13:22:18]New connection [13:22:18]New thread 3066830180 created [13:22:18]Thread 3066686820 joined [13:22:18]Waiting for new connection... [13:22:18] Sock 9.Parse request [13:22:18]Sock 9.Check first char [13:22:18]Sock 9.First char is OK [13:22:18]request: POST /json_proto HTTP/1.0 [13:22:18]Method: POST [13:22:18]URL: /json_proto [13:22:18]Method is POST - this is cgi request [13:22:18]url: /json_proto [13:22:18]query_string will be loaded in cgi processing [13:22:18]execute_cgi json_proto POST (null) [13:22:18]execute_cgi path=json_proto method=POST [13:22:18]POST find Content-Length [13:22:18]Host: 172.17.58.3:8080 [13:22:18]Content-Length: 679 [13:22:18]Content-Type: application/json [13:22:18] [13:22:18]POST finish read [13:22:18]Found Content-Length = 679 [13:22:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160776", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 27.110, "sum" : 2000.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:18]execute_script... [13:22:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160776", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 27.110, "sum" : 2000.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:18]POST & json_proto [13:22:18]process_json_proto [13:22:18]json parsed OK: [13:22:18]protocol is kg_v1.0 [13:22:18]action value=close_receipt [13:22:18]process_action close_receipt [13:22:18]cmd_close_receipt [13:22:18]MH_GetDate [13:22:18]Write to MH i2c: F0 00 00 66 05 5A [13:22:18]Write i2c OK [13:22:18]MH_I2C_Read... [13:22:18]Read from MH i2c: F0 [13:22:18]MH_I2C_Read... [13:22:18]Read from MH i2c: F0 09 00 [13:22:18]MH_I2C_Read... [13:22:18]Read from MH i2c: F0 09 00 66 05 00 0A 5E BB 66 DC E4 6D 64 7D [13:22:18]GetLastDocTimeStamp 1723555316 [13:22:18]current date 1723555338 [13:22:18]FM_GetShiftState [13:22:18]SAM_PROTO_GetShiftState [13:22:18]wFMCommunicate request_size=4 [13:22:18]MH_SAM_APDU [13:22:18]CAPDU: 80 13 01 00 [13:22:18]Write to MH i2c: E2 08 00 67 05 80 13 01 00 00 00 00 00 E9 [13:22:18]Write i2c OK [13:22:18]MH_I2C_Read... [13:22:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:18]Read from MH i2c: E2 [13:22:18]MH_I2C_Read... [13:22:18]Read from MH i2c: E2 0E 00 [13:22:18]MH_I2C_Read... [13:22:18]Read from MH i2c: E2 0E 00 67 05 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 07 [13:22:18]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [13:22:18]wFMCommunicate OK [13:22:18]SAM_PROTO_GetShiftState done [13:22:18]FM_GetShiftState done [13:22:18]opened in 1723506770 [13:22:18]opened+sec_in_day 1723593170 [13:22:18]quantity*price = 200071 [13:22:18]sum+1 = 200073 [13:22:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.72 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.47 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 58 13.08.2024 13:22 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103147 ФПД: 126506344281546 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T132218&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103147&fm=126506344281546&tin=02508201610067®Number=0000000000092718&sum=200000 [13:22:19]StoreToDocumentArchive [13:22:19]shift 464 fd 103147 [13:22:19]save to /storage/0464/doc_00103147 [13:22:19]save last doc name /storage/0464/doc_00103147 to /storage/kkm_last_doc_name [13:22:19]save OK [13:22:19]Clear old archive folders... [13:22:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:22:19]tlvbuf is 0152D540 [13:22:19]SAM_PROTO_ClearQueue [13:22:19]wFMCommunicate request_size=4 [13:22:19]MH_SAM_APDU [13:22:19]CAPDU: 80 09 00 00 [13:22:19]Write to MH i2c: E2 08 00 74 05 80 09 00 00 00 00 00 00 EB [13:22:19]Write i2c OK [13:22:19]MH_I2C_Read... [13:22:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:22:19]Read from MH i2c: E2 [13:22:19]MH_I2C_Read... [13:22:19]Read from MH i2c: E2 03 00 [13:22:19]MH_I2C_Read... [13:22:19]Read from MH i2c: E2 03 00 74 05 00 90 00 ED [13:22:19]RAPDU: 90 00 [13:22:19]wFMCommunicate OK [13:22:19]SAM_PROTO_ClearQueue done [13:22:19]KKMCreateOFDPacket [13:22:19]OFDProtocolAddRootSTLVToBuf [13:22:19]FM_MakeSignedData [13:22:19]FM_MakeSignedData [13:22:19]SAM_PROTO_SignData [13:22:19]wFMCommunicate request_size=4 [13:22:19]MH_SAM_APDU [13:22:19]CAPDU: 80 0D 01 02 [13:22:19]Write to MH i2c: E2 08 00 75 05 80 0D 01 02 00 00 00 00 F3 [13:22:19]Write i2c OK [13:22:19]MH_I2C_Read... [13:22:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:22:19]Read from MH i2c: E2 [13:22:19]MH_I2C_Read... [13:22:19]Read from MH i2c: E2 03 00 [13:22:19]MH_I2C_Read... [13:22:19]Read from MH i2c: E2 03 00 75 05 00 90 00 EE [13:22:19]RAPDU: 90 00 [13:22:19]wFMCommunicate OK [13:22:19]wFMCommunicate request_size=255 [13:22:19]MH_SAM_APDU [13:22:19]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 69 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 88 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 FF 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 0A 5E BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 EB 92 01 00 35 04 06 00 73 0E 8D B6 [13:22:19]Write to MH i2c: E2 02 01 76 05 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 69 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 88 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 FF 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 0A 5E BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 EB 92 01 00 35 04 06 00 73 0E 8D B6 00 00 E1 [13:22:19]Write i2c OK [13:22:19]MH_I2C_Read... [13:22:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:19]Read from MH i2c: E2 [13:22:19]MH_I2C_Read... [13:22:19]Read from MH i2c: E2 03 00 [13:22:19]MH_I2C_Read... [13:22:19]Read from MH i2c: E2 03 00 76 05 00 90 00 EF [13:22:19]RAPDU: 90 00 [13:22:19]wFMCommunicate OK [13:22:19]wFMCommunicate request_size=7 [13:22:19]MH_SAM_APDU [13:22:19]CAPDU: 80 0D 02 02 02 75 CA [13:22:19]Write to MH i2c: E2 0A 00 77 05 80 0D 02 02 02 00 75 CA 00 00 39 [13:22:19]Write i2c OK [13:22:19]MH_I2C_Read... [13:22:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:19]Read from MH i2c: E2 [13:22:19]MH_I2C_Read... [13:22:19]Read from MH i2c: E2 03 00 [13:22:19]MH_I2C_Read... [13:22:19]Read from MH i2c: E2 03 00 77 05 00 90 00 F0 [13:22:19]RAPDU: 90 00 [13:22:19]wFMCommunicate OK [13:22:19]wFMCommunicate request_size=4 [13:22:19]MH_SAM_APDU [13:22:19]CAPDU: 80 0D 03 02 [13:22:19]Write to MH i2c: E2 08 00 78 05 80 0D 03 02 00 00 00 00 F8 [13:22:19]Write i2c OK [13:22:19]MH_I2C_Read... [13:22:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:22:19]Read from MH i2c: E2 [13:22:19]MH_I2C_Read... [13:22:19]Read from MH i2c: E2 0B 00 [13:22:19]MH_I2C_Read... [13:22:19]Read from MH i2c: E2 0B 00 78 05 00 63 29 8A D3 AE 1C C9 E1 90 00 56 [13:22:19]RAPDU: 63 29 8A D3 AE 1C C9 E1 90 00 [13:22:19]wFMCommunicate OK [13:22:19]SAM_PROTO_SignData done [13:22:19]FM_MakeSignedData done [13:22:19]CreateOFDProtocolMessage [13:22:19]wFMCommunicate request_size=4 [13:22:19]MH_SAM_APDU [13:22:19]CAPDU: 80 11 00 00 [13:22:19]Write to MH i2c: E2 08 00 79 05 80 11 00 00 00 00 00 00 F8 [13:22:19]Write i2c OK [13:22:19]MH_I2C_Read... [13:22:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:20]Read from MH i2c: E2 [13:22:20]MH_I2C_Read... [13:22:20]Read from MH i2c: E2 17 00 [13:22:20]MH_I2C_Read... [13:22:20]Read from MH i2c: E2 17 00 79 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 4C [13:22:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [13:22:20]wFMCommunicate OK [13:22:20]CreateOFDProtocolMessage done [13:22:20]OFDSenderStorePacket 103147 [13:22:20]StoreOFDPacket docnum=103147 [13:22:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 30 F8 04 01 97 CD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 69 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 88 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 FF 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 0A 5E BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 EB 92 01 00 35 04 06 00 73 0E 8D B6 75 CA 63 29 8A D3 AE 1C C9 E1 [13:22:20]CheckFolder [13:22:20]dirname=/storage/ofd_packets [13:22:20]CheckFolder done [13:22:20]ProducePacketName [13:22:20]name=ofd_packets/00103147 [13:22:20]NVStorageSaveData ofd_packets/00103147 [13:22:20]File name is /storage/ofd_packets/00103147 [13:22:20]Write 298 bytes [13:22:20]NVStorageSaveData done [13:22:20]OFDSenderStorePacket done [13:22:20]KKMCreateOFDPacket done [13:22:20]NVStorageSaveData kkm_last_timestamp [13:22:20]File name is /storage/kkm_last_timestamp [13:22:20]Write 4 bytes [13:22:20]NVStorageSaveData done [13:22:20]ExternCall_PrintAddStr [13:22:20]wPrintStart [13:22:20]Write to MH i2c: 01 00 00 7A 05 7F [13:22:20]Write i2c OK [13:22:20]MH_I2C_Read... [13:22:20]Read from MH i2c: 01 [13:22:20]MH_I2C_Read... [13:22:20]Read from MH i2c: 01 07 00 [13:22:20]MH_I2C_Read... [13:22:20]Read from MH i2c: 01 07 00 7A 05 00 00 00 00 00 FF 0F 94 [13:22:20]RasterBufferAndPrint [13:22:20]line Счет N : (1)160776 [13:22:20]line ИНН: 02508201610067 [13:22:20]line Контрольно-Кассовый Чек [13:22:20]line ПРОДАЖА [13:22:20]line ТРК (МРК, ГНК) : 13 [13:22:20]line Товар: 2710194210 [13:22:20]line ДТ-К-5 [13:22:20]line 27.110 * 73.80 [13:22:20]line = 2000.72 [13:22:20]line НДС 12% НСП 1% [13:22:20]line > о реализуемом товаре [13:22:20]line ОКРУГЛЕНИЕ: -0.72 [13:22:20]line ИТОГО: 2000.00 [13:22:20]line Внесено: 2000.00 [13:22:20]line СДАЧА: 0.00 [13:22:20]line НСП 1% : 17.70 [13:22:20]line НДС 12% : 212.47 [13:22:20]line Наличными: 2000.00 [13:22:20]line Безнал.: 0.00 [13:22:20]line Место: АЗС № 38 "Партнер Нефть" [13:22:20]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [13:22:20]line СНО: Общий режим [13:22:20]line Чек 58 13.08.2024 13:22 [13:22:20]line Смена: 464 ФФД: 1.0 [13:22:20]line ЗНМ: 0300000126 [13:22:20]line РНМ: 0000000000092718 [13:22:20]line Версия ККМ: 001 [13:22:20]line ФМ: 0000000000875058 [13:22:20]line ФД: 103147 [13:22:20]line ФПД: 126506344281546 [13:22:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T132218&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103147&fm=126506344281546&tin=02508201610067®Number=0000000000092718&sum=200000 [13:22:20]OFD Sender: Processing packet 103147 [packets to send 69, broken 68] [13:22:20]ProducePacketName [13:22:20]name=ofd_packets/00103147 [13:22:20]OFD Sender: To server: pG, [13:22:20]CommunicateWithHost lk.salyk.kg:30040 [13:22:20]ConnectInit lk.salyk.kg [13:22:20]written 0, free lines is 4095 [13:22:20]Connected sock=10 [13:22:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 30 F8 04 01 97 CD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 69 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 88 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 FF 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 0A 5E BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 EB 92 01 00 35 04 06 00 73 0E 8D B6 75 CA 63 29 8A D3 AE 1C C9 E1 [13:22:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 3E 8D 47 00 AF 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 EB 92 01 00 F4 03 04 00 7D 04 BB 66 B6 04 01 00 00 56 3D 66 95 75 AB 73 7D [13:22:20]CommunicateWithHost err = 0 [13:22:20]CheckOFDResponse [13:22:20]1017 (14) - 77093643461234 [13:22:20]1041 (16) - 0000000000875058 [13:22:20]1040 (4) - 103147 [13:22:20]1012 (4) - 13.08.2024 07:00 [13:22:20]1206 (1) - 0 [13:22:20]OFD Sender: Remove packet 103147 [13:22:20]ProducePacketName [13:22:20]name=ofd_packets/00103147 [13:22:20]NVStorageDeleteData [13:22:20]Write to MH i2c: 01 00 00 A5 05 AA [13:22:20]Write i2c OK [13:22:20]MH_I2C_Read... [13:22:20]Read from MH i2c: 01 [13:22:20]MH_I2C_Read... [13:22:20]Read from MH i2c: 01 07 00 [13:22:20]MH_I2C_Read... [13:22:20]Read from MH i2c: 01 07 00 A5 05 00 00 00 00 00 DC 0C 99 [13:22:20]RasterBufferAndPrint [13:22:20]line [13:22:20]line [13:22:20]line [13:22:20]line [13:22:20]line [13:22:20]written 0, free lines is 3298 [13:22:20]MH_Cut [13:22:20]Write to MH i2c: D1 01 00 AC 05 01 83 [13:22:20]Write i2c OK [13:22:20]MH_I2C_Read... [13:22:20]Read from MH i2c: D1 [13:22:20]MH_I2C_Read... [13:22:20]Read from MH i2c: D1 01 00 [13:22:20]MH_I2C_Read... [13:22:20]Read from MH i2c: D1 01 00 AC 05 00 82 [13:22:20]Write to MH i2c: 01 00 00 AD 05 B2 [13:22:20]Write i2c OK [13:22:20]MH_I2C_Read... [13:22:21]OFD Sender: No OFD packet to send [13:22:21]*** Cut start [13:22:21]*** Purtial cut [13:22:21]*** Stage 1: CUTSNS_PIN = 1 [13:22:21]Read from MH i2c: 01 [13:22:21]MH_I2C_Read... [13:22:21]*** Stop cut motor [13:22:21]*** Cut end [13:22:21]Read from MH i2c: 01 07 00 [13:22:21]MH_I2C_Read... [13:22:21]Read from MH i2c: 01 07 00 AD 05 00 00 00 00 00 FF 0F C7 [13:22:21]process_action close_receipt done [13:22:21]requested_data is exist [13:22:21]produce_requested_data [13:22:21]requested_item fm.sn is exist - process it [13:22:21]wFMCommunicate request_size=4 [13:22:21]MH_SAM_APDU [13:22:21]CAPDU: 80 11 00 00 [13:22:21]Write to MH i2c: E2 08 00 AE 05 80 11 00 00 00 00 00 00 2D [13:22:21]Write i2c OK [13:22:21]MH_I2C_Read... [13:22:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:21]Read from MH i2c: E2 [13:22:21]MH_I2C_Read... [13:22:21]Read from MH i2c: E2 17 00 [13:22:21]MH_I2C_Read... [13:22:21]Read from MH i2c: E2 17 00 AE 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 81 [13:22:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [13:22:21]wFMCommunicate OK [13:22:21]requested_item fd.num is exist - process it [13:22:21]SAM_PROTO_GetFieldsCounters [13:22:21]wFMCommunicate request_size=4 [13:22:21]MH_SAM_APDU [13:22:21]CAPDU: 80 13 00 00 [13:22:21]Write to MH i2c: E2 08 00 AF 05 80 13 00 00 00 00 00 00 30 [13:22:21]Write i2c OK [13:22:21]MH_I2C_Read... [13:22:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:22:22]Read from MH i2c: E2 [13:22:22]MH_I2C_Read... [13:22:22]Read from MH i2c: E2 62 00 [13:22:22]MH_I2C_Read... [13:22:22]Read from MH i2c: E2 62 00 AF 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 EB 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [13: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 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 EB 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:22:22]wFMCommunicate OK [13:22:22]SAM_PROTO_GetFieldsCounters done [13:22:22]requested_item shift.num is exist - process it [13:22:22]requested_item shift.opened is exist - process it [13:22:22]req_shift_opened [13:22:22]FM_GetShiftState [13:22:22]SAM_PROTO_GetShiftState [13:22:22]wFMCommunicate request_size=4 [13:22:22]MH_SAM_APDU [13:22:22]CAPDU: 80 13 01 00 [13:22:22]Write to MH i2c: E2 08 00 B0 05 80 13 01 00 00 00 00 00 32 [13:22:22]Write i2c OK [13:22:22]MH_I2C_Read... [13:22:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:22]Read from MH i2c: E2 [13:22:22]MH_I2C_Read... [13:22:22]Read from MH i2c: E2 0E 00 [13:22:22]MH_I2C_Read... [13:22:22]Read from MH i2c: E2 0E 00 B0 05 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 50 [13:22:22]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [13:22:22]wFMCommunicate OK [13:22:22]SAM_PROTO_GetShiftState done [13:22:22]FM_GetShiftState done [13:22:22]req_shift_opened done [13:22:22]requested_item shift.open_date is exist - process it [13:22:22]req_shift_open_date [13:22:22]req_shift_open_date done [13:22:22]produce_requested_data done [13:22:22]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103147,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [13:22:22]process_action_free close_receipt [13:22:22]json_value_free [13:22:22]json_value_free done [13:22:22]process_json_proto returns [13:22:22]Send response to host [13:22:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103147,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [13:22:22]free response buf [13:22:22]execute_script done [13:22:22]execute_script returns [13:22:22]free content buf [13:22:22]Sock 9.Close socket [13:22:22]Sock 9.Thread stoped [13:22:26]OFD Sender: No OFD packet to send [13:22:31]OFD Sender: No OFD packet to send [13:22:36]OFD Sender: No OFD packet to send [13:22:41]OFD Sender: No OFD packet to send [13:22:46]OFD Sender: No OFD packet to send [13:22:51]OFD Sender: No OFD packet to send [13:22:56]OFD Sender: No OFD packet to send [13:23:01]OFD Sender: No OFD packet to send [13:23:06]OFD Sender: No OFD packet to send [13:23:11]OFD Sender: No OFD packet to send [13:23:16]OFD Sender: No OFD packet to send [13:23:21]OFD Sender: No OFD packet to send [13:23:26]OFD Sender: No OFD packet to send [13:23:31]OFD Sender: No OFD packet to send [13:23:36]OFD Sender: No OFD packet to send [13:23:41]OFD Sender: No OFD packet to send [13:23:46]OFD Sender: No OFD packet to send [13:23:51]OFD Sender: No OFD packet to send [13:23:56]OFD Sender: No OFD packet to send [13:24:01]OFD Sender: No OFD packet to send [13:24:06]OFD Sender: No OFD packet to send [13:24:11]OFD Sender: No OFD packet to send [13:24:16]OFD Sender: No OFD packet to send [13:24:21]OFD Sender: No OFD packet to send [13:24:26]OFD Sender: No OFD packet to send [13:24:31]OFD Sender: No OFD packet to send [13:24:36]OFD Sender: No OFD packet to send [13:24:41]OFD Sender: No OFD packet to send [13:24:46]OFD Sender: No OFD packet to send [13:24:51]OFD Sender: No OFD packet to send [13:24:56]OFD Sender: No OFD packet to send [13:25:01]OFD Sender: No OFD packet to send [13:25:06]OFD Sender: No OFD packet to send [13:25:11]OFD Sender: No OFD packet to send [13:25:16]OFD Sender: No OFD packet to send [13:25:21]OFD Sender: No OFD packet to send [13:25:26]OFD Sender: No OFD packet to send [13:25:31]OFD Sender: No OFD packet to send [13:25:36]OFD Sender: No OFD packet to send [13:25:41]OFD Sender: No OFD packet to send [13:25:46]OFD Sender: No OFD packet to send [13:25:51]OFD Sender: No OFD packet to send [13:25:56]OFD Sender: No OFD packet to send [13:26:01]OFD Sender: No OFD packet to send [13:26:06]OFD Sender: No OFD packet to send [13:26:11]OFD Sender: No OFD packet to send [13:26:16]OFD Sender: No OFD packet to send [13:26:21]OFD Sender: No OFD packet to send [13:26:26]OFD Sender: No OFD packet to send [13:26:31]OFD Sender: No OFD packet to send [13:26:36]OFD Sender: No OFD packet to send [13:26:41]OFD Sender: No OFD packet to send [13:26:46]OFD Sender: No OFD packet to send [13:26:51]OFD Sender: No OFD packet to send [13:26:56]OFD Sender: No OFD packet to send [13:27:01]OFD Sender: No OFD packet to send [13:27:06]OFD Sender: No OFD packet to send [13:27:11]OFD Sender: No OFD packet to send [13:27:16]OFD Sender: No OFD packet to send [13:27:21]OFD Sender: No OFD packet to send [13:27:26]OFD Sender: No OFD packet to send [13:27:31]OFD Sender: No OFD packet to send [13:27:36]OFD Sender: No OFD packet to send [13:27:41]OFD Sender: No OFD packet to send [13:27:46]OFD Sender: No OFD packet to send [13:27:51]OFD Sender: No OFD packet to send [13:27:56]OFD Sender: No OFD packet to send [13:28:01]OFD Sender: No OFD packet to send [13:28:06]OFD Sender: No OFD packet to send [13:28:11]OFD Sender: No OFD packet to send [13:28:16]OFD Sender: No OFD packet to send [13:28:21]OFD Sender: No OFD packet to send [13:28:26]OFD Sender: No OFD packet to send [13:28:31]OFD Sender: No OFD packet to send [13:28:36]OFD Sender: No OFD packet to send [13:28:41]OFD Sender: No OFD packet to send [13:28:46]OFD Sender: No OFD packet to send [13:28:51]OFD Sender: No OFD packet to send [13:28:56]OFD Sender: No OFD packet to send [13:29:01]OFD Sender: No OFD packet to send [13:29:06]OFD Sender: No OFD packet to send [13:29:11]OFD Sender: No OFD packet to send [13:29:16]OFD Sender: No OFD packet to send [13:29:21]OFD Sender: No OFD packet to send [13:29:26]OFD Sender: No OFD packet to send [13:29:31]OFD Sender: No OFD packet to send [13:29:36]OFD Sender: No OFD packet to send [13:29:41]OFD Sender: No OFD packet to send [13:29:46]OFD Sender: No OFD packet to send [13:29:51]OFD Sender: No OFD packet to send [13:29:56]OFD Sender: No OFD packet to send [13:30:01]OFD Sender: No OFD packet to send [13:30:06]OFD Sender: No OFD packet to send [13:30:11]OFD Sender: No OFD packet to send [13:30:16]OFD Sender: No OFD packet to send [13:30:21]OFD Sender: No OFD packet to send [13:30:26]OFD Sender: No OFD packet to send [13:30:31]OFD Sender: No OFD packet to send [13:30:36]OFD Sender: No OFD packet to send [13:30:41]OFD Sender: No OFD packet to send [13:30:46]OFD Sender: No OFD packet to send [13:30:51]OFD Sender: No OFD packet to send [13:30:56]OFD Sender: No OFD packet to send [13:31:01]OFD Sender: No OFD packet to send [13:31:06]OFD Sender: No OFD packet to send [13:31:11]OFD Sender: No OFD packet to send [13:31:16]OFD Sender: No OFD packet to send [13:31:21]OFD Sender: No OFD packet to send [13:31:26]OFD Sender: No OFD packet to send [13:31:31]OFD Sender: No OFD packet to send [13:31:36]OFD Sender: No OFD packet to send [13:31:41]OFD Sender: No OFD packet to send [13:31:46]OFD Sender: No OFD packet to send [13:31:51]OFD Sender: No OFD packet to send [13:31:56]OFD Sender: No OFD packet to send [13:32:01]OFD Sender: No OFD packet to send [13:32:06]OFD Sender: No OFD packet to send [13:32:11]OFD Sender: No OFD packet to send [13:32:16]OFD Sender: No OFD packet to send [13:32:21]OFD Sender: No OFD packet to send [13:32:26]OFD Sender: No OFD packet to send [13:32:31]OFD Sender: No OFD packet to send [13:32:36]OFD Sender: No OFD packet to send [13:32:41]OFD Sender: No OFD packet to send [13:32:46]OFD Sender: No OFD packet to send [13:32:51]OFD Sender: No OFD packet to send [13:32:56]OFD Sender: No OFD packet to send [13:33:01]OFD Sender: No OFD packet to send [13:33:06]OFD Sender: No OFD packet to send [13:33:11]OFD Sender: No OFD packet to send [13:33:16]OFD Sender: No OFD packet to send [13:33:21]OFD Sender: No OFD packet to send [13:33:26]OFD Sender: No OFD packet to send [13:33:31]OFD Sender: No OFD packet to send [13:33:36]OFD Sender: No OFD packet to send [13:33:41]OFD Sender: No OFD packet to send [13:33:46]OFD Sender: No OFD packet to send [13:33:51]OFD Sender: No OFD packet to send [13:33:56]OFD Sender: No OFD packet to send [13:34:01]OFD Sender: No OFD packet to send [13:34:06]OFD Sender: No OFD packet to send [13:34:11]OFD Sender: No OFD packet to send [13:34:16]OFD Sender: No OFD packet to send [13:34:21]OFD Sender: No OFD packet to send [13:34:26]OFD Sender: No OFD packet to send [13:34:31]OFD Sender: No OFD packet to send [13:34:36]OFD Sender: No OFD packet to send [13:34:41]OFD Sender: No OFD packet to send [13:34:46]OFD Sender: No OFD packet to send [13:34:51]OFD Sender: No OFD packet to send [13:34:56]OFD Sender: No OFD packet to send [13:35:01]OFD Sender: No OFD packet to send [13:35:06]OFD Sender: No OFD packet to send [13:35:11]OFD Sender: No OFD packet to send [13:35:16]OFD Sender: No OFD packet to send [13:35:21]OFD Sender: No OFD packet to send [13:35:26]OFD Sender: No OFD packet to send [13:35:31]OFD Sender: No OFD packet to send [13:35:36]OFD Sender: No OFD packet to send [13:35:41]OFD Sender: No OFD packet to send [13:35:46]OFD Sender: No OFD packet to send [13:35:51]OFD Sender: No OFD packet to send [13:35:56]OFD Sender: No OFD packet to send [13:36:01]OFD Sender: No OFD packet to send [13:36:06]OFD Sender: No OFD packet to send [13:36:11]OFD Sender: No OFD packet to send [13:36:16]OFD Sender: No OFD packet to send [13:36:21]OFD Sender: No OFD packet to send [13:36:26]OFD Sender: No OFD packet to send [13:36:31]OFD Sender: No OFD packet to send [13:36:36]accept exits with 7 [13:36:36]New connection [13:36:36]New thread 3066686820 created [13:36:36]Thread 3066830180 joined [13:36:36]Waiting for new connection... [13:36:36] Sock 7.Parse request [13:36:36]Sock 7.Check first char [13:36:36]Sock 7.First char is OK [13:36:36]request: POST /json_proto HTTP/1.0 [13:36:36]Method: POST [13:36:36]URL: /json_proto [13:36:36]Method is POST - this is cgi request [13:36:36]url: /json_proto [13:36:36]query_string will be loaded in cgi processing [13:36:36]execute_cgi json_proto POST (null) [13:36:36]execute_cgi path=json_proto method=POST [13:36:36]POST find Content-Length [13:36:36]Host: 172.17.58.3:8080 [13:36:36]Content-Length: 678 [13:36:36]Content-Type: application/json [13:36:36] [13:36:36]POST finish read [13:36:36]Found Content-Length = 678 [13:36:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160777", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 13.560, "sum" : 1000.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:36:36]execute_script... [13:36: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)160777", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 13.560, "sum" : 1000.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:36:36]POST & json_proto [13:36:36]process_json_proto [13:36:36]json parsed OK: [13:36:36]protocol is kg_v1.0 [13:36:36]action value=close_receipt [13:36:36]process_action close_receipt [13:36:36]cmd_close_receipt [13:36:36]MH_GetDate [13:36:36]Write to MH i2c: F0 00 00 B1 05 A5 [13:36:36]Write i2c OK [13:36:36]MH_I2C_Read... [13:36:36]Read from MH i2c: F0 [13:36:36]MH_I2C_Read... [13:36:36]Read from MH i2c: F0 09 00 [13:36:36]MH_I2C_Read... [13:36:36]Read from MH i2c: F0 09 00 B1 05 00 65 61 BB 66 DC E4 6D 64 26 [13:36:36]GetLastDocTimeStamp 1723555338 [13:36:36]current date 1723556197 [13:36:36]FM_GetShiftState [13:36:36]SAM_PROTO_GetShiftState [13:36:36]wFMCommunicate request_size=4 [13:36:36]MH_SAM_APDU [13:36:36]CAPDU: 80 13 01 00 [13:36:36]Write to MH i2c: E2 08 00 B2 05 80 13 01 00 00 00 00 00 34 [13:36:36]Write i2c OK [13:36:36]MH_I2C_Read... [13:36:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:36]Read from MH i2c: E2 [13:36:36]MH_I2C_Read... [13:36:36]Read from MH i2c: E2 0E 00 [13:36:36]MH_I2C_Read... [13:36:36]Read from MH i2c: E2 0E 00 B2 05 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 52 [13:36:36]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [13:36:36]wFMCommunicate OK [13:36:36]SAM_PROTO_GetShiftState done [13:36:36]FM_GetShiftState done [13:36:36]opened in 1723506770 [13:36:36]opened+sec_in_day 1723593170 [13:36:36]quantity*price = 100072 [13:36:36]sum+1 = 100074 [13:36:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.73 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.86 НДС 12% : 106.27 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 59 13.08.2024 13:36 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103148 ФПД: 77604333996338 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T133637&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103148&fm=77604333996338&tin=02508201610067®Number=0000000000092718&sum=100000 [13:36:37]StoreToDocumentArchive [13:36:37]shift 464 fd 103148 [13:36:37]save to /storage/0464/doc_00103148 [13:36:37]save last doc name /storage/0464/doc_00103148 to /storage/kkm_last_doc_name [13:36:37]save OK [13:36:37]Clear old archive folders... [13:36:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:36:37]tlvbuf is 015544F0 [13:36:37]SAM_PROTO_ClearQueue [13:36:37]wFMCommunicate request_size=4 [13:36:37]MH_SAM_APDU [13:36:37]CAPDU: 80 09 00 00 [13:36:37]Write to MH i2c: E2 08 00 BF 05 80 09 00 00 00 00 00 00 36 [13:36:37]Write i2c OK [13:36:37]MH_I2C_Read... [13:36:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:36:37]Read from MH i2c: E2 [13:36:37]MH_I2C_Read... [13:36:37]Read from MH i2c: E2 03 00 [13:36:37]MH_I2C_Read... [13:36:37]Read from MH i2c: E2 03 00 BF 05 00 90 00 38 [13:36:37]RAPDU: 90 00 [13:36:37]wFMCommunicate OK [13:36:37]SAM_PROTO_ClearQueue done [13:36:37]KKMCreateOFDPacket [13:36:37]OFDProtocolAddRootSTLVToBuf [13:36:37]FM_MakeSignedData [13:36:37]FM_MakeSignedData [13:36:37]SAM_PROTO_SignData [13:36:37]wFMCommunicate request_size=4 [13:36:37]MH_SAM_APDU [13:36:37]CAPDU: 80 0D 01 02 [13:36:37]Write to MH i2c: E2 08 00 C0 05 80 0D 01 02 00 00 00 00 3E [13:36:37]Write i2c OK [13:36:37]MH_I2C_Read... [13:36:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:36:37]Read from MH i2c: E2 [13:36:37]MH_I2C_Read... [13:36:37]Read from MH i2c: E2 03 00 [13:36:37]MH_I2C_Read... [13:36:37]Read from MH i2c: E2 03 00 C0 05 00 90 00 39 [13:36:37]RAPDU: 90 00 [13:36:37]wFMCommunicate OK [13:36:37]wFMCommunicate request_size=255 [13:36:37]MH_SAM_APDU [13:36: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 F8 34 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 E9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 65 61 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 EC 92 01 00 35 04 06 00 46 94 AA C2 [13:36:37]Write to MH i2c: E2 02 01 C1 05 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 34 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 E9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 65 61 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 EC 92 01 00 35 04 06 00 46 94 AA C2 00 00 55 [13:36:37]Write i2c OK [13:36:37]MH_I2C_Read... [13:36:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:38]Read from MH i2c: E2 [13:36:38]MH_I2C_Read... [13:36:38]Read from MH i2c: E2 03 00 [13:36:38]MH_I2C_Read... [13:36:38]Read from MH i2c: E2 03 00 C1 05 00 90 00 3A [13:36:38]RAPDU: 90 00 [13:36:38]wFMCommunicate OK [13:36:38]wFMCommunicate request_size=7 [13:36:38]MH_SAM_APDU [13:36:38]CAPDU: 80 0D 02 02 02 C9 32 [13:36:38]Write to MH i2c: E2 0A 00 C2 05 80 0D 02 02 02 00 C9 32 00 00 40 [13:36:38]Write i2c OK [13:36:38]MH_I2C_Read... [13:36:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:38]Read from MH i2c: E2 [13:36:38]MH_I2C_Read... [13:36:38]Read from MH i2c: E2 03 00 [13:36:38]MH_I2C_Read... [13:36:38]Read from MH i2c: E2 03 00 C2 05 00 90 00 3B [13:36:38]RAPDU: 90 00 [13:36:38]wFMCommunicate OK [13:36:38]wFMCommunicate request_size=4 [13:36:38]MH_SAM_APDU [13:36:38]CAPDU: 80 0D 03 02 [13:36:38]Write to MH i2c: E2 08 00 C3 05 80 0D 03 02 00 00 00 00 43 [13:36:38]Write i2c OK [13:36:38]MH_I2C_Read... [13:36:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:36:38]Read from MH i2c: E2 [13:36:38]MH_I2C_Read... [13:36:38]Read from MH i2c: E2 0B 00 [13:36:38]MH_I2C_Read... [13:36:38]Read from MH i2c: E2 0B 00 C3 05 00 3E 7E 3A 68 DF 07 64 45 90 00 31 [13:36:38]RAPDU: 3E 7E 3A 68 DF 07 64 45 90 00 [13:36:38]wFMCommunicate OK [13:36:38]SAM_PROTO_SignData done [13:36:38]FM_MakeSignedData done [13:36:38]CreateOFDProtocolMessage [13:36:38]wFMCommunicate request_size=4 [13:36:38]MH_SAM_APDU [13:36:38]CAPDU: 80 11 00 00 [13:36:38]Write to MH i2c: E2 08 00 C4 05 80 11 00 00 00 00 00 00 43 [13:36:38]Write i2c OK [13:36:38]MH_I2C_Read... [13:36:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:38]Read from MH i2c: E2 [13:36:38]MH_I2C_Read... [13:36:38]Read from MH i2c: E2 17 00 [13:36:38]MH_I2C_Read... [13:36:38]Read from MH i2c: E2 17 00 C4 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 97 [13:36:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [13:36:38]wFMCommunicate OK [13:36:38]CreateOFDProtocolMessage done [13:36:38]OFDSenderStorePacket 103148 [13:36:38]StoreOFDPacket docnum=103148 [13:36:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 E8 CB 04 01 38 78 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 34 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 E9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 65 61 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 EC 92 01 00 35 04 06 00 46 94 AA C2 C9 32 3E 7E 3A 68 DF 07 64 45 [13:36:38]CheckFolder [13:36:38]dirname=/storage/ofd_packets [13:36:38]CheckFolder done [13:36:38]ProducePacketName [13:36:38]name=ofd_packets/00103148 [13:36:38]NVStorageSaveData ofd_packets/00103148 [13:36:38]File name is /storage/ofd_packets/00103148 [13:36:38]Write 298 bytes [13:36:38]NVStorageSaveData done [13:36:38]OFDSenderStorePacket done [13:36:38]KKMCreateOFDPacket done [13:36:38]NVStorageSaveData kkm_last_timestamp [13:36:38]File name is /storage/kkm_last_timestamp [13:36:38]Write 4 bytes [13:36:38]NVStorageSaveData done [13:36:38]ExternCall_PrintAddStr [13:36:38]wPrintStart [13:36:38]Write to MH i2c: 01 00 00 C5 05 CA [13:36:38]Write i2c OK [13:36:38]MH_I2C_Read... [13:36:38]Read from MH i2c: 01 [13:36:38]MH_I2C_Read... [13:36:38]Read from MH i2c: 01 07 00 [13:36:38]MH_I2C_Read... [13:36:38]Read from MH i2c: 01 07 00 C5 05 00 00 00 00 00 FF 0F DF [13:36:38]RasterBufferAndPrint [13:36:38]line Счет N : (1)160777 [13:36:38]line ИНН: 02508201610067 [13:36:38]line Контрольно-Кассовый Чек [13:36:38]line ПРОДАЖА [13:36:38]line ТРК (МРК, ГНК) : 5 [13:36:38]line Товар: 2710194210 [13:36:38]line ДТ-К-5 [13:36:38]line 13.560 * 73.80 [13:36:38]line = 1000.73 [13:36:38]line НДС 12% НСП 1% [13:36:38]line > о реализуемом товаре [13:36:38]line ОКРУГЛЕНИЕ: -0.73 [13:36:38]line ИТОГО: 1000.00 [13:36:38]line Внесено: 1000.00 [13:36:38]line СДАЧА: 0.00 [13:36:38]line НСП 1% : 8.86 [13:36:38]line НДС 12% : 106.27 [13:36:38]line Наличными: 1000.00 [13:36:38]line Безнал.: 0.00 [13:36:38]line Место: АЗС № 38 "Партнер Нефть" [13:36:38]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [13:36:38]line СНО: Общий режим [13:36:38]line Чек 59 13.08.2024 13:36 [13:36:38]line Смена: 464 ФФД: 1.0 [13:36:38]line ЗНМ: 0300000126 [13:36:38]line РНМ: 0000000000092718 [13:36:38]line Версия ККМ: 001 [13:36:38]line ФМ: 0000000000875058 [13:36:38]line ФД: 103148 [13:36:38]line ФПД: 77604333996338 [13:36:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T133637&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103148&fm=77604333996338&tin=02508201610067®Number=0000000000092718&sum=100000 [13:36:38]OFD Sender: Processing packet 103148 [packets to send 69, broken 68] [13:36:38]ProducePacketName [13:36:38]name=ofd_packets/00103148 [13:36:38]OFD Sender: To server: pG, [13:36:38]CommunicateWithHost lk.salyk.kg:30040 [13:36:38]ConnectInit lk.salyk.kg [13:36:38]written 0, free lines is 4095 [13:36:38]Connected sock=10 [13:36:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 E8 CB 04 01 38 78 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 34 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 E9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 65 61 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 EC 92 01 00 35 04 06 00 46 94 AA C2 C9 32 3E 7E 3A 68 DF 07 64 45 [13:36:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 BC E1 47 00 C4 FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 EC 92 01 00 F4 03 04 00 D8 07 BB 66 B6 04 01 00 00 5A F9 30 58 E1 94 A5 D4 [13:36:38]CommunicateWithHost err = 0 [13:36:38]CheckOFDResponse [13:36:38]1017 (14) - 77093643461234 [13:36:38]1041 (16) - 0000000000875058 [13:36:38]1040 (4) - 103148 [13:36:38]1012 (4) - 13.08.2024 07:14 [13:36:38]1206 (1) - 0 [13:36:38]OFD Sender: Remove packet 103148 [13:36:38]ProducePacketName [13:36:38]name=ofd_packets/00103148 [13:36:38]NVStorageDeleteData [13:36:38]Write to MH i2c: 01 00 00 F0 05 F5 [13:36:38]Write i2c OK [13:36:38]MH_I2C_Read... [13:36:38]Read from MH i2c: 01 [13:36:38]MH_I2C_Read... [13:36:38]Read from MH i2c: 01 07 00 [13:36:38]MH_I2C_Read... [13:36:38]Read from MH i2c: 01 07 00 F0 05 00 00 00 00 00 D9 0C E1 [13:36:39]RasterBufferAndPrint [13:36:39]line [13:36:39]line [13:36:39]line [13:36:39]line [13:36:39]line [13:36:39]written 0, free lines is 3298 [13:36:39]MH_Cut [13:36:39]Write to MH i2c: D1 01 00 F7 05 01 CE [13:36:39]Write i2c OK [13:36:39]MH_I2C_Read... [13:36:39]Read from MH i2c: D1 [13:36:39]MH_I2C_Read... [13:36:39]Read from MH i2c: D1 01 00 [13:36:39]MH_I2C_Read... [13:36:39]Read from MH i2c: D1 01 00 F7 05 00 CD [13:36:39]Write to MH i2c: 01 00 00 F8 05 FD [13:36:39]Write i2c OK [13:36:39]MH_I2C_Read... [13:36:39]OFD Sender: No OFD packet to send [13:36:39]*** Cut start [13:36:39]*** Purtial cut [13:36:39]*** CUTSNS_PIN = 0 [13:36:39]*** Stage 1: CUTSNS_PIN = 1 [13:36:41]Read from MH i2c: 01 [13:36:41]MH_I2C_Read... [13:36:41]*** Stop cut motor [13:36:41]*** Cut end [13:36:41]Read from MH i2c: 01 07 00 [13:36:41]MH_I2C_Read... [13:36:41]Read from MH i2c: 01 07 00 F8 05 00 00 00 00 00 FF 0F 12 [13:36:41]process_action close_receipt done [13:36:41]requested_data is exist [13:36:41]produce_requested_data [13:36:41]requested_item fm.sn is exist - process it [13:36:41]wFMCommunicate request_size=4 [13:36:41]MH_SAM_APDU [13:36:41]CAPDU: 80 11 00 00 [13:36:41]Write to MH i2c: E2 08 00 F9 05 80 11 00 00 00 00 00 00 78 [13:36:41]Write i2c OK [13:36:41]MH_I2C_Read... [13:36:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:41]Read from MH i2c: E2 [13:36:41]MH_I2C_Read... [13:36:41]Read from MH i2c: E2 17 00 [13:36:41]MH_I2C_Read... [13:36:41]Read from MH i2c: E2 17 00 F9 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 CC [13:36:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [13:36:41]wFMCommunicate OK [13:36:41]requested_item fd.num is exist - process it [13:36:41]SAM_PROTO_GetFieldsCounters [13:36:41]wFMCommunicate request_size=4 [13:36:41]MH_SAM_APDU [13:36:41]CAPDU: 80 13 00 00 [13:36:41]Write to MH i2c: E2 08 00 FA 05 80 13 00 00 00 00 00 00 7B [13:36:41]Write i2c OK [13:36:41]MH_I2C_Read... [13:36:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:36:41]Read from MH i2c: E2 [13:36:41]MH_I2C_Read... [13:36:41]Read from MH i2c: E2 62 00 [13:36:41]MH_I2C_Read... [13:36:41]Read from MH i2c: E2 62 00 FA 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 EC 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [13:36:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 EC 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:36:41]wFMCommunicate OK [13:36:41]SAM_PROTO_GetFieldsCounters done [13:36:41]requested_item shift.num is exist - process it [13:36:41]requested_item shift.opened is exist - process it [13:36:41]req_shift_opened [13:36:41]FM_GetShiftState [13:36:41]SAM_PROTO_GetShiftState [13:36:41]wFMCommunicate request_size=4 [13:36:41]MH_SAM_APDU [13:36:41]CAPDU: 80 13 01 00 [13:36:41]Write to MH i2c: E2 08 00 FB 05 80 13 01 00 00 00 00 00 7D [13:36:41]Write i2c OK [13:36:41]MH_I2C_Read... [13:36:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:42]Read from MH i2c: E2 [13:36:42]MH_I2C_Read... [13:36:42]Read from MH i2c: E2 0E 00 [13:36:42]MH_I2C_Read... [13:36:42]Read from MH i2c: E2 0E 00 FB 05 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 9B [13:36:42]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [13:36:42]wFMCommunicate OK [13:36:42]SAM_PROTO_GetShiftState done [13:36:42]FM_GetShiftState done [13:36:42]req_shift_opened done [13:36:42]requested_item shift.open_date is exist - process it [13:36:42]req_shift_open_date [13:36:42]req_shift_open_date done [13:36:42]produce_requested_data done [13:36:42]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103148,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [13:36:42]process_action_free close_receipt [13:36:42]json_value_free [13:36:42]json_value_free done [13:36:42]process_json_proto returns [13:36:42]Send response to host [13:36:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103148,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [13:36:42]free response buf [13:36:42]execute_script done [13:36:42]execute_script returns [13:36:42]free content buf [13:36:42]Sock 7.Close socket [13:36:42]Sock 7.Thread stoped [13:36:44]OFD Sender: No OFD packet to send [13:36:49]OFD Sender: No OFD packet to send [13:36:54]OFD Sender: No OFD packet to send [13:36:59]OFD Sender: No OFD packet to send [13:37:04]OFD Sender: No OFD packet to send [13:37:09]OFD Sender: No OFD packet to send [13:37:14]OFD Sender: No OFD packet to send [13:37:19]OFD Sender: No OFD packet to send [13:37:24]OFD Sender: No OFD packet to send [13:37:29]OFD Sender: No OFD packet to send [13:37:34]OFD Sender: No OFD packet to send [13:37:39]OFD Sender: No OFD packet to send [13:37:44]OFD Sender: No OFD packet to send [13:37:49]OFD Sender: No OFD packet to send [13:37:54]OFD Sender: No OFD packet to send [13:37:59]OFD Sender: No OFD packet to send [13:38:04]OFD Sender: No OFD packet to send [13:38:09]OFD Sender: No OFD packet to send [13:38:14]OFD Sender: No OFD packet to send [13:38:19]OFD Sender: No OFD packet to send [13:38:24]OFD Sender: No OFD packet to send [13:38:29]OFD Sender: No OFD packet to send [13:38:34]OFD Sender: No OFD packet to send [13:38:39]OFD Sender: No OFD packet to send [13:38:44]OFD Sender: No OFD packet to send [13:38:49]OFD Sender: No OFD packet to send [13:38:54]OFD Sender: No OFD packet to send [13:38:59]OFD Sender: No OFD packet to send [13:39:04]OFD Sender: No OFD packet to send [13:39:09]OFD Sender: No OFD packet to send [13:39:14]OFD Sender: No OFD packet to send [13:39:19]OFD Sender: No OFD packet to send [13:39:24]OFD Sender: No OFD packet to send [13:39:29]OFD Sender: No OFD packet to send [13:39:34]OFD Sender: No OFD packet to send [13:39:39]OFD Sender: No OFD packet to send [13:39:44]OFD Sender: No OFD packet to send [13:39:49]OFD Sender: No OFD packet to send [13:39:54]OFD Sender: No OFD packet to send [13:39:59]OFD Sender: No OFD packet to send [13:40:04]OFD Sender: No OFD packet to send [13:40:09]OFD Sender: No OFD packet to send [13:40:14]OFD Sender: No OFD packet to send [13:40:19]OFD Sender: No OFD packet to send [13:40:24]OFD Sender: No OFD packet to send [13:40:29]OFD Sender: No OFD packet to send [13:40:34]OFD Sender: No OFD packet to send [13:40:39]OFD Sender: No OFD packet to send [13:40:44]OFD Sender: No OFD packet to send [13:40:49]OFD Sender: No OFD packet to send [13:40:54]OFD Sender: No OFD packet to send [13:40:59]OFD Sender: No OFD packet to send [13:41:04]OFD Sender: No OFD packet to send [13:41:09]OFD Sender: No OFD packet to send [13:41:14]OFD Sender: No OFD packet to send [13:41:19]OFD Sender: No OFD packet to send [13:41:24]OFD Sender: No OFD packet to send [13:41:29]OFD Sender: No OFD packet to send [13:41:34]OFD Sender: No OFD packet to send [13:41:39]OFD Sender: No OFD packet to send [13:41:44]OFD Sender: No OFD packet to send [13:41:49]OFD Sender: No OFD packet to send [13:41:54]OFD Sender: No OFD packet to send [13:41:59]OFD Sender: No OFD packet to send [13:42:04]OFD Sender: No OFD packet to send [13:42:09]OFD Sender: No OFD packet to send [13:42:14]OFD Sender: No OFD packet to send [13:42:19]OFD Sender: No OFD packet to send [13:42:24]OFD Sender: No OFD packet to send [13:42:29]OFD Sender: No OFD packet to send [13:42:34]OFD Sender: No OFD packet to send [13:42:39]OFD Sender: No OFD packet to send [13:42:44]OFD Sender: No OFD packet to send [13:42:49]OFD Sender: No OFD packet to send [13:42:54]OFD Sender: No OFD packet to send [13:42:59]OFD Sender: No OFD packet to send [13:43:04]OFD Sender: No OFD packet to send [13:43:09]OFD Sender: No OFD packet to send [13:43:14]OFD Sender: No OFD packet to send [13:43:19]OFD Sender: No OFD packet to send [13:43:24]OFD Sender: No OFD packet to send [13:43:29]OFD Sender: No OFD packet to send [13:43:34]OFD Sender: No OFD packet to send [13:43:39]OFD Sender: No OFD packet to send [13:43:44]OFD Sender: No OFD packet to send [13:43:49]OFD Sender: No OFD packet to send [13:43:54]OFD Sender: No OFD packet to send [13:43:59]OFD Sender: No OFD packet to send [13:44:04]OFD Sender: No OFD packet to send [13:44:09]OFD Sender: No OFD packet to send [13:44:14]OFD Sender: No OFD packet to send [13:44:19]OFD Sender: No OFD packet to send [13:44:24]OFD Sender: No OFD packet to send [13:44:29]OFD Sender: No OFD packet to send [13:44:34]OFD Sender: No OFD packet to send [13:44:39]OFD Sender: No OFD packet to send [13:44:44]OFD Sender: No OFD packet to send [13:44:49]OFD Sender: No OFD packet to send [13:44:54]OFD Sender: No OFD packet to send [13:44:56]accept exits with 9 [13:44:56]New connection [13:44:56]New thread 3066830180 created [13:44:56]Thread 3066686820 joined [13:44:56]Waiting for new connection... [13:44:56] Sock 9.Parse request [13:44:56]Sock 9.Check first char [13:44:56]Sock 9.First char is OK [13:44:56]request: POST /json_proto HTTP/1.0 [13:44:56]Method: POST [13:44:56]URL: /json_proto [13:44:56]Method is POST - this is cgi request [13:44:56]url: /json_proto [13:44:56]query_string will be loaded in cgi processing [13:44:56]execute_cgi json_proto POST (null) [13:44:56]execute_cgi path=json_proto method=POST [13:44:56]POST find Content-Length [13:44:56]Host: 172.17.58.3:8080 [13:44:56]Content-Length: 669 [13:44:56]Content-Type: application/json [13:44:56] [13:44:56]POST finish read [13:44:56]Found Content-Length = 669 [13:44:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160779", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710124130", "name": "SUPER 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" ] } } [13:44:56]execute_script... [13:44:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160779", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710124130", "name": "SUPER 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" ] } } [13:44:56]POST & json_proto [13:44:56]process_json_proto [13:44:56]json parsed OK: [13:44:56]protocol is kg_v1.0 [13:44:56]action value=close_receipt [13:44:56]process_action close_receipt [13:44:56]cmd_close_receipt [13:44:56]MH_GetDate [13:44:56]Write to MH i2c: F0 00 00 FC 05 F0 [13:44:56]Write i2c OK [13:44:56]MH_I2C_Read... [13:44:56]Read from MH i2c: F0 [13:44:56]MH_I2C_Read... [13:44:56]Read from MH i2c: F0 09 00 [13:44:56]MH_I2C_Read... [13:44:56]Read from MH i2c: F0 09 00 FC 05 00 58 63 BB 66 DC E4 6D 64 66 [13:44:56]GetLastDocTimeStamp 1723556197 [13:44:56]current date 1723556696 [13:44:56]FM_GetShiftState [13:44:56]SAM_PROTO_GetShiftState [13:44:56]wFMCommunicate request_size=4 [13:44:56]MH_SAM_APDU [13:44:56]CAPDU: 80 13 01 00 [13:44:56]Write to MH i2c: E2 08 00 FD 05 80 13 01 00 00 00 00 00 7F [13:44:56]Write i2c OK [13:44:56]MH_I2C_Read... [13:44:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:56]Read from MH i2c: E2 [13:44:56]MH_I2C_Read... [13:44:56]Read from MH i2c: E2 0E 00 [13:44:56]MH_I2C_Read... [13:44:56]Read from MH i2c: E2 0E 00 FD 05 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 9D [13:44:56]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [13:44:56]wFMCommunicate OK [13:44:56]SAM_PROTO_GetShiftState done [13:44:56]FM_GetShiftState done [13:44:56]opened in 1723506770 [13:44:56]opened+sec_in_day 1723593170 [13:44:56]quantity*price = 45023 [13:44:56]sum+1 = 45025 [13:44:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.81 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 60 13.08.2024 13:44 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103149 ФПД: 10491976439157 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T134456&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103149&fm=10491976439157&tin=02508201610067®Number=0000000000092718&sum=45000 [13:44:57]StoreToDocumentArchive [13:44:57]shift 464 fd 103149 [13:44:57]save to /storage/0464/doc_00103149 [13:44:57]save last doc name /storage/0464/doc_00103149 to /storage/kkm_last_doc_name [13:44:57]save OK [13:44:57]Clear old archive folders... [13:44:57]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:44:57]tlvbuf is 015395E0 [13:44:57]SAM_PROTO_ClearQueue [13:44:57]wFMCommunicate request_size=4 [13:44:57]MH_SAM_APDU [13:44:57]CAPDU: 80 09 00 00 [13:44:57]Write to MH i2c: E2 08 00 0A 06 80 09 00 00 00 00 00 00 82 [13:44:57]Write i2c OK [13:44:57]MH_I2C_Read... [13:44:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:44:57]Read from MH i2c: E2 [13:44:57]MH_I2C_Read... [13:44:57]Read from MH i2c: E2 03 00 [13:44:57]MH_I2C_Read... [13:44:57]Read from MH i2c: E2 03 00 0A 06 00 90 00 84 [13:44:57]RAPDU: 90 00 [13:44:57]wFMCommunicate OK [13:44:57]SAM_PROTO_ClearQueue done [13:44:57]KKMCreateOFDPacket [13:44:57]OFDProtocolAddRootSTLVToBuf [13:44:57]FM_MakeSignedData [13:44:57]FM_MakeSignedData [13:44:57]SAM_PROTO_SignData [13:44:57]wFMCommunicate request_size=4 [13:44:57]MH_SAM_APDU [13:44:57]CAPDU: 80 0D 01 02 [13:44:57]Write to MH i2c: E2 08 00 0B 06 80 0D 01 02 00 00 00 00 8A [13:44:57]Write i2c OK [13:44:57]MH_I2C_Read... [13:44:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:44:57]Read from MH i2c: E2 [13:44:57]MH_I2C_Read... [13:44:57]Read from MH i2c: E2 03 00 [13:44:57]MH_I2C_Read... [13:44:57]Read from MH i2c: E2 03 00 0B 06 00 90 00 85 [13:44:57]RAPDU: 90 00 [13:44:57]wFMCommunicate OK [13:44:57]wFMCommunicate request_size=255 [13:44:57]MH_SAM_APDU [13:44:57]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 3C 00 00 00 F4 03 04 00 58 63 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 ED 92 01 00 35 04 06 00 [13:44:57]Write to MH i2c: E2 02 01 0C 06 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 3C 00 00 00 F4 03 04 00 58 63 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 ED 92 01 00 35 04 06 00 00 00 08 [13:44:57]Write i2c OK [13:44:57]MH_I2C_Read... [13:44:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:57]Read from MH i2c: E2 [13:44:57]MH_I2C_Read... [13:44:57]Read from MH i2c: E2 03 00 [13:44:57]MH_I2C_Read... [13:44:57]Read from MH i2c: E2 03 00 0C 06 00 90 00 86 [13:44:57]RAPDU: 90 00 [13:44:57]wFMCommunicate OK [13:44:57]wFMCommunicate request_size=11 [13:44:57]MH_SAM_APDU [13:44:57]CAPDU: 80 0D 02 02 06 09 8A DA 87 55 75 [13:44:57]Write to MH i2c: E2 0E 00 0D 06 80 0D 02 02 06 00 09 8A DA 87 55 75 00 00 57 [13:44:57]Write i2c OK [13:44:57]MH_I2C_Read... [13:44:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:57]Read from MH i2c: E2 [13:44:57]MH_I2C_Read... [13:44:57]Read from MH i2c: E2 03 00 [13:44:57]MH_I2C_Read... [13:44:57]Read from MH i2c: E2 03 00 0D 06 00 90 00 87 [13:44:57]RAPDU: 90 00 [13:44:57]wFMCommunicate OK [13:44:57]wFMCommunicate request_size=4 [13:44:57]MH_SAM_APDU [13:44:57]CAPDU: 80 0D 03 02 [13:44:57]Write to MH i2c: E2 08 00 0E 06 80 0D 03 02 00 00 00 00 8F [13:44:57]Write i2c OK [13:44:57]MH_I2C_Read... [13:44:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:44:57]Read from MH i2c: E2 [13:44:57]MH_I2C_Read... [13:44:57]Read from MH i2c: E2 0B 00 [13:44:57]MH_I2C_Read... [13:44:57]Read from MH i2c: E2 0B 00 0E 06 00 57 C7 7D 33 56 9E 06 51 90 00 A9 [13:44:57]RAPDU: 57 C7 7D 33 56 9E 06 51 90 00 [13:44:57]wFMCommunicate OK [13:44:57]SAM_PROTO_SignData done [13:44:57]FM_MakeSignedData done [13:44:57]CreateOFDProtocolMessage [13:44:57]wFMCommunicate request_size=4 [13:44:57]MH_SAM_APDU [13:44:57]CAPDU: 80 11 00 00 [13:44:57]Write to MH i2c: E2 08 00 0F 06 80 11 00 00 00 00 00 00 8F [13:44:57]Write i2c OK [13:44:57]MH_I2C_Read... [13:44:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:57]Read from MH i2c: E2 [13:44:57]MH_I2C_Read... [13:44:57]Read from MH i2c: E2 17 00 [13:44:57]MH_I2C_Read... [13:44:57]Read from MH i2c: E2 17 00 0F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 E3 [13:44:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [13:44:57]wFMCommunicate OK [13:44:57]CreateOFDProtocolMessage done [13:44:57]OFDSenderStorePacket 103149 [13:44:57]StoreOFDPacket docnum=103149 [13:44:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 01 00 00 19 6D 08 01 E8 0A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 3C 00 00 00 F4 03 04 00 58 63 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 ED 92 01 00 35 04 06 00 09 8A DA 87 55 75 57 C7 7D 33 56 9E 06 51 [13:44:57]CheckFolder [13:44:57]dirname=/storage/ofd_packets [13:44:57]CheckFolder done [13:44:57]ProducePacketName [13:44:57]name=ofd_packets/00103149 [13:44:57]NVStorageSaveData ofd_packets/00103149 [13:44:57]File name is /storage/ofd_packets/00103149 [13:44:57]Write 302 bytes [13:44:57]NVStorageSaveData done [13:44:57]OFDSenderStorePacket done [13:44:57]KKMCreateOFDPacket done [13:44:57]NVStorageSaveData kkm_last_timestamp [13:44:57]File name is /storage/kkm_last_timestamp [13:44:57]Write 4 bytes [13:44:57]NVStorageSaveData done [13:44:57]OFD Sender: Processing packet 103149 [packets to send 69, broken 68] [13:44:57]ProducePacketName [13:44:57]name=ofd_packets/00103149 [13:44:57]OFD Sender: To server: pG, [13:44:57]CommunicateWithHost lk.salyk.kg:30040 [13:44:57]ConnectInit lk.salyk.kg [13:44:57]ExternCall_PrintAddStr [13:44:57]wPrintStart [13:44:57]Write to MH i2c: 01 00 00 10 06 16 [13:44:57]Write i2c OK [13:44:57]MH_I2C_Read... [13:44:57]Read from MH i2c: 01 [13:44:57]MH_I2C_Read... [13:44:57]Read from MH i2c: 01 07 00 [13:44:57]MH_I2C_Read... [13:44:57]Read from MH i2c: 01 07 00 10 06 00 00 00 00 00 FF 0F 2B [13:44:57]RasterBufferAndPrint [13:44:57]line Счет N : (1)160779 [13:44:57]line ИНН: 02508201610067 [13:44:57]line Контрольно-Кассовый Чек [13:44:57]line ПРОДАЖА [13:44:57]line ТРК (МРК, ГНК) : 6 [13:44:57]line Товар: 2710124130 [13:44:57]line SUPER 92-К-5 [13:44:57]line 6.730 * 66.90 [13:44:57]line = 450.24 [13:44:57]line НДС 12% НСП 1% [13:44:57]line > о реализуемом товаре [13:44:57]line ОКРУГЛЕНИЕ: -0.24 [13:44:57]line ИТОГО: 450.00 [13:44:57]line Внесено: 450.00 [13:44:57]line СДАЧА: 0.00 [13:44:57]line НСП 1% : 3.98 [13:44:57]line НДС 12% : 47.81 [13:44:57]line Наличными: 450.00 [13:44:57]line Безнал.: 0.00 [13:44:57]line Место: АЗС № 38 "Партнер Нефть" [13:44:57]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [13:44:57]line СНО: Общий режим [13:44:57]line Чек 60 13.08.2024 13:44 [13:44:57]line Смена: 464 ФФД: 1.0 [13:44:57]line ЗНМ: 0300000126 [13:44:57]line РНМ: 0000000000092718 [13:44:57]line Версия ККМ: 001 [13:44:57]line ФМ: 0000000000875058 [13:44:57]line ФД: 103149 [13:44:57]line ФПД: 10491976439157 [13:44:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T134456&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103149&fm=10491976439157&tin=02508201610067®Number=0000000000092718&sum=45000 [13:44:58]Connected sock=11 [13:44:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 01 00 00 19 6D 08 01 E8 0A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 3C 00 00 00 F4 03 04 00 58 63 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 ED 92 01 00 35 04 06 00 09 8A DA 87 55 75 57 C7 7D 33 56 9E 06 51 [13:44:58]written 0, free lines is 4095 [13:44:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 2F FA 47 00 5F 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 35 30 35 38 10 04 04 00 ED 92 01 00 F4 03 04 00 CB 09 BB 66 B6 04 01 00 00 9D 60 CA A1 1F 93 A5 B0 [13:44:58]CommunicateWithHost err = 0 [13:44:58]CheckOFDResponse [13:44:58]1017 (14) - 77093643461234 [13:44:58]1041 (16) - 0000000000875058 [13:44:58]1040 (4) - 103149 [13:44:58]1012 (4) - 13.08.2024 07:22 [13:44:58]1206 (1) - 0 [13:44:58]OFD Sender: Remove packet 103149 [13:44:58]ProducePacketName [13:44:58]name=ofd_packets/00103149 [13:44:58]NVStorageDeleteData [13:44:58]Write to MH i2c: 01 00 00 3B 06 41 [13:44:58]Write i2c OK [13:44:58]MH_I2C_Read... [13:44:58]Read from MH i2c: 01 [13:44:58]MH_I2C_Read... [13:44:58]Read from MH i2c: 01 07 00 [13:44:58]MH_I2C_Read... [13:44:58]Read from MH i2c: 01 07 00 3B 06 00 00 00 00 00 E2 0C 36 [13:44:58]RasterBufferAndPrint [13:44:58]line [13:44:58]line [13:44:58]line [13:44:58]line [13:44:58]line [13:44:58]written 0, free lines is 3304 [13:44:58]MH_Cut [13:44:58]Write to MH i2c: D1 01 00 42 06 01 1A [13:44:58]Write i2c OK [13:44:58]MH_I2C_Read... [13:44:58]Read from MH i2c: D1 [13:44:58]MH_I2C_Read... [13:44:58]Read from MH i2c: D1 01 00 [13:44:58]MH_I2C_Read... [13:44:58]Read from MH i2c: D1 01 00 42 06 00 19 [13:44:58]Write to MH i2c: 01 00 00 43 06 49 [13:44:58]Write i2c OK [13:44:58]MH_I2C_Read... [13:44:58]OFD Sender: No OFD packet to send [13:44:59]*** Cut start [13:44:59]*** Purtial cut [13:44:59]*** Stage 1: CUTSNS_PIN = 1 [13:44:59]Read from MH i2c: 01 [13:44:59]MH_I2C_Read... [13:44:59]*** Stop cut motor [13:44:59]*** Cut end [13:44:59]Read from MH i2c: 01 07 00 [13:44:59]MH_I2C_Read... [13:44:59]Read from MH i2c: 01 07 00 43 06 00 00 00 00 00 FF 0F 5E [13:44:59]process_action close_receipt done [13:44:59]requested_data is exist [13:44:59]produce_requested_data [13:44:59]requested_item fm.sn is exist - process it [13:44:59]wFMCommunicate request_size=4 [13:44:59]MH_SAM_APDU [13:44:59]CAPDU: 80 11 00 00 [13:44:59]Write to MH i2c: E2 08 00 44 06 80 11 00 00 00 00 00 00 C4 [13:44:59]Write i2c OK [13:44:59]MH_I2C_Read... [13:44:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:59]Read from MH i2c: E2 [13:44:59]MH_I2C_Read... [13:44:59]Read from MH i2c: E2 17 00 [13:44:59]MH_I2C_Read... [13:44:59]Read from MH i2c: E2 17 00 44 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 18 [13:44:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [13:44:59]wFMCommunicate OK [13:44:59]requested_item fd.num is exist - process it [13:44:59]SAM_PROTO_GetFieldsCounters [13:44:59]wFMCommunicate request_size=4 [13:44:59]MH_SAM_APDU [13:44:59]CAPDU: 80 13 00 00 [13:44:59]Write to MH i2c: E2 08 00 45 06 80 13 00 00 00 00 00 00 C7 [13:44:59]Write i2c OK [13:44:59]MH_I2C_Read... [13:44:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:44:59]Read from MH i2c: E2 [13:44:59]MH_I2C_Read... [13:44:59]Read from MH i2c: E2 62 00 [13:44:59]MH_I2C_Read... [13:44:59]Read from MH i2c: E2 62 00 45 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 ED 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [13:44:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 ED 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:44:59]wFMCommunicate OK [13:44:59]SAM_PROTO_GetFieldsCounters done [13:44:59]requested_item shift.num is exist - process it [13:44:59]requested_item shift.opened is exist - process it [13:44:59]req_shift_opened [13:44:59]FM_GetShiftState [13:44:59]SAM_PROTO_GetShiftState [13:44:59]wFMCommunicate request_size=4 [13:44:59]MH_SAM_APDU [13:44:59]CAPDU: 80 13 01 00 [13:44:59]Write to MH i2c: E2 08 00 46 06 80 13 01 00 00 00 00 00 C9 [13:44:59]Write i2c OK [13:44:59]MH_I2C_Read... [13:44:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:59]Read from MH i2c: E2 [13:44:59]MH_I2C_Read... [13:44:59]Read from MH i2c: E2 0E 00 [13:44:59]MH_I2C_Read... [13:44:59]Read from MH i2c: E2 0E 00 46 06 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 E7 [13:44:59]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [13:44:59]wFMCommunicate OK [13:44:59]SAM_PROTO_GetShiftState done [13:44:59]FM_GetShiftState done [13:44:59]req_shift_opened done [13:44:59]requested_item shift.open_date is exist - process it [13:44:59]req_shift_open_date [13:44:59]req_shift_open_date done [13:44:59]produce_requested_data done [13:44:59]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103149,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [13:44:59]process_action_free close_receipt [13:44:59]json_value_free [13:44:59]json_value_free done [13:44:59]process_json_proto returns [13:44:59]Send response to host [13:44:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103149,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [13:44:59]free response buf [13:44:59]execute_script done [13:44:59]execute_script returns [13:44:59]free content buf [13:44:59]Sock 9.Close socket [13:44:59]Sock 9.Thread stoped [13:45:03]OFD Sender: No OFD packet to send [13:45:08]OFD Sender: No OFD packet to send [13:45:13]OFD Sender: No OFD packet to send [13:45:18]OFD Sender: No OFD packet to send [13:45:23]OFD Sender: No OFD packet to send [13:45:28]OFD Sender: No OFD packet to send [13:45:33]OFD Sender: No OFD packet to send [13:45:38]OFD Sender: No OFD packet to send [13:45:43]OFD Sender: No OFD packet to send [13:45:48]OFD Sender: No OFD packet to send [13:45:53]OFD Sender: No OFD packet to send [13:45:58]OFD Sender: No OFD packet to send [13:46:03]OFD Sender: No OFD packet to send [13:46:08]OFD Sender: No OFD packet to send [13:46:13]OFD Sender: No OFD packet to send [13:46:18]OFD Sender: No OFD packet to send [13:46:23]OFD Sender: No OFD packet to send [13:46:28]OFD Sender: No OFD packet to send [13:46:33]OFD Sender: No OFD packet to send [13:46:38]OFD Sender: No OFD packet to send [13:46:43]OFD Sender: No OFD packet to send [13:46:48]OFD Sender: No OFD packet to send [13:46:53]OFD Sender: No OFD packet to send [13:46:58]OFD Sender: No OFD packet to send [13:47:03]OFD Sender: No OFD packet to send [13:47:08]OFD Sender: No OFD packet to send [13:47:13]OFD Sender: No OFD packet to send [13:47:18]OFD Sender: No OFD packet to send [13:47:23]OFD Sender: No OFD packet to send [13:47:28]OFD Sender: No OFD packet to send [13:47:33]OFD Sender: No OFD packet to send [13:47:38]OFD Sender: No OFD packet to send [13:47:43]OFD Sender: No OFD packet to send [13:47:48]OFD Sender: No OFD packet to send [13:47:53]OFD Sender: No OFD packet to send [13:47:58]OFD Sender: No OFD packet to send [13:48:03]OFD Sender: No OFD packet to send [13:48:08]OFD Sender: No OFD packet to send [13:48:13]OFD Sender: No OFD packet to send [13:48:18]OFD Sender: No OFD packet to send [13:48:23]OFD Sender: No OFD packet to send [13:48:28]OFD Sender: No OFD packet to send [13:48:33]OFD Sender: No OFD packet to send [13:48:38]OFD Sender: No OFD packet to send [13:48:44]OFD Sender: No OFD packet to send [13:48:49]OFD Sender: No OFD packet to send [13:48:54]OFD Sender: No OFD packet to send [13:48:59]OFD Sender: No OFD packet to send [13:49:04]OFD Sender: No OFD packet to send [13:49:09]OFD Sender: No OFD packet to send [13:49:14]OFD Sender: No OFD packet to send [13:49:19]OFD Sender: No OFD packet to send [13:49:24]OFD Sender: No OFD packet to send [13:49:29]OFD Sender: No OFD packet to send [13:49:34]OFD Sender: No OFD packet to send [13:49:39]OFD Sender: No OFD packet to send [13:49:44]OFD Sender: No OFD packet to send [13:49:49]OFD Sender: No OFD packet to send [13:49:54]OFD Sender: No OFD packet to send [13:49:59]OFD Sender: No OFD packet to send [13:50:04]OFD Sender: No OFD packet to send [13:50:09]OFD Sender: No OFD packet to send [13:50:14]OFD Sender: No OFD packet to send [13:50:19]OFD Sender: No OFD packet to send [13:50:24]OFD Sender: No OFD packet to send [13:50:29]OFD Sender: No OFD packet to send [13:50:34]OFD Sender: No OFD packet to send [13:50:39]OFD Sender: No OFD packet to send [13:50:44]OFD Sender: No OFD packet to send [13:50:49]OFD Sender: No OFD packet to send [13:50:54]OFD Sender: No OFD packet to send [13:50:59]OFD Sender: No OFD packet to send [13:51:04]OFD Sender: No OFD packet to send [13:51:09]OFD Sender: No OFD packet to send [13:51:14]OFD Sender: No OFD packet to send [13:51:19]OFD Sender: No OFD packet to send [13:51:24]OFD Sender: No OFD packet to send [13:51:29]OFD Sender: No OFD packet to send [13:51:34]OFD Sender: No OFD packet to send [13:51:39]OFD Sender: No OFD packet to send [13:51:44]OFD Sender: No OFD packet to send [13:51:49]OFD Sender: No OFD packet to send [13:51:54]OFD Sender: No OFD packet to send [13:51:59]OFD Sender: No OFD packet to send [13:52:04]OFD Sender: No OFD packet to send [13:52:09]OFD Sender: No OFD packet to send [13:52:14]OFD Sender: No OFD packet to send [13:52:19]OFD Sender: No OFD packet to send [13:52:24]OFD Sender: No OFD packet to send [13:52:29]OFD Sender: No OFD packet to send [13:52:34]OFD Sender: No OFD packet to send [13:52:39]OFD Sender: No OFD packet to send [13:52:44]OFD Sender: No OFD packet to send [13:52:49]OFD Sender: No OFD packet to send [13:52:54]OFD Sender: No OFD packet to send [13:52:59]OFD Sender: No OFD packet to send [13:53:04]OFD Sender: No OFD packet to send [13:53:09]OFD Sender: No OFD packet to send [13:53:14]OFD Sender: No OFD packet to send [13:53:19]OFD Sender: No OFD packet to send [13:53:24]OFD Sender: No OFD packet to send [13:53:29]OFD Sender: No OFD packet to send [13:53:34]OFD Sender: No OFD packet to send [13:53:39]OFD Sender: No OFD packet to send [13:53:44]OFD Sender: No OFD packet to send [13:53:49]OFD Sender: No OFD packet to send [13:53:54]OFD Sender: No OFD packet to send [13:53:59]OFD Sender: No OFD packet to send [13:54:04]OFD Sender: No OFD packet to send [13:54:09]OFD Sender: No OFD packet to send [13:54:14]OFD Sender: No OFD packet to send [13:54:19]OFD Sender: No OFD packet to send [13:54:24]OFD Sender: No OFD packet to send [13:54:29]OFD Sender: No OFD packet to send [13:54:34]OFD Sender: No OFD packet to send [13:54:37]accept exits with 7 [13:54:37]New connection [13:54:37]New thread 3066686820 created [13:54:37]Thread 3066830180 joined [13:54:37]Waiting for new connection... [13:54:37] Sock 7.Parse request [13:54:37]Sock 7.Check first char [13:54:37]Sock 7.First char is OK [13:54:37]request: POST /json_proto HTTP/1.0 [13:54:37]Method: POST [13:54:37]URL: /json_proto [13:54:37]Method is POST - this is cgi request [13:54:37]url: /json_proto [13:54:37]query_string will be loaded in cgi processing [13:54:37]execute_cgi json_proto POST (null) [13:54:37]execute_cgi path=json_proto method=POST [13:54:37]POST find Content-Length [13:54:37]Host: 172.17.58.3:8080 [13:54:37]Content-Length: 841 [13:54:37]Content-Type: application/json [13:54:37] [13:54:37]POST finish read [13:54:37]Found Content-Length = 841 [13:54:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)34507", "tax_sys" : 0, "items" : [ { "code": "4631150682851", "name": "\u041D\u0430\u043F En Dragon Mojito \u043B\u0430\u0439\u043C,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:37]execute_script... [13:54: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 : (3)34507", "tax_sys" : 0, "items" : [ { "code": "4631150682851", "name": "\u041D\u0430\u043F En Dragon Mojito \u043B\u0430\u0439\u043C,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:37]POST & json_proto [13:54:37]process_json_proto [13:54:37]json parsed OK: [13:54:37]protocol is kg_v1.0 [13:54:37]action value=close_receipt [13:54:37]process_action close_receipt [13:54:37]cmd_close_receipt [13:54:37]MH_GetDate [13:54:37]Write to MH i2c: F0 00 00 47 06 3C [13:54:37]Write i2c OK [13:54:37]MH_I2C_Read... [13:54:37]Read from MH i2c: F0 [13:54:37]MH_I2C_Read... [13:54:37]Read from MH i2c: F0 09 00 [13:54:37]MH_I2C_Read... [13:54:37]Read from MH i2c: F0 09 00 47 06 00 9E 65 BB 66 DC E4 6D 64 FA [13:54:37]GetLastDocTimeStamp 1723556696 [13:54:37]current date 1723557278 [13:54:37]FM_GetShiftState [13:54:37]SAM_PROTO_GetShiftState [13:54:37]wFMCommunicate request_size=4 [13:54:37]MH_SAM_APDU [13:54:37]CAPDU: 80 13 01 00 [13:54:37]Write to MH i2c: E2 08 00 48 06 80 13 01 00 00 00 00 00 CB [13:54:37]Write i2c OK [13:54:37]MH_I2C_Read... [13:54:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:37]Read from MH i2c: E2 [13:54:37]MH_I2C_Read... [13:54:37]Read from MH i2c: E2 0E 00 [13:54:37]MH_I2C_Read... [13:54:37]Read from MH i2c: E2 0E 00 48 06 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 E9 [13:54:37]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [13:54:37]wFMCommunicate OK [13:54:37]SAM_PROTO_GetShiftState done [13:54:37]FM_GetShiftState done [13:54:37]opened in 1723506770 [13:54:37]opened+sec_in_day 1723593170 [13:54:37]quantity*price = 9500 [13:54:37]sum+1 = 9501 [13:54:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 0.00 Безнал.: 95.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 61 13.08.2024 13:54 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875058 ФД: 103150 ФПД: 191042608505664 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T135438&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103150&fm=191042608505664&tin=02508201610067®Number=0000000000092718&sum=9500 0 [13:54:39]StoreToDocumentArchive [13:54:39]shift 464 fd 103150 [13:54:39]save to /storage/0464/doc_00103150 [13:54:39]save last doc name /storage/0464/doc_00103150 to /storage/kkm_last_doc_name [13:54:39]save OK [13:54:39]Clear old archive folders... [13:54:39]ProcessDocumentItem done err = 0, tmpTLVsize=296 [13:54:39]tlvbuf is 0152B2B0 [13:54:39]SAM_PROTO_ClearQueue [13:54:39]wFMCommunicate request_size=4 [13:54:39]MH_SAM_APDU [13:54:39]CAPDU: 80 09 00 00 [13:54:39]Write to MH i2c: E2 08 00 55 06 80 09 00 00 00 00 00 00 CD [13:54:39]Write i2c OK [13:54:39]MH_I2C_Read... [13:54:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:54:39]Read from MH i2c: E2 [13:54:39]MH_I2C_Read... [13:54:39]Read from MH i2c: E2 03 00 [13:54:39]MH_I2C_Read... [13:54:39]Read from MH i2c: E2 03 00 55 06 00 90 00 CF [13:54:39]RAPDU: 90 00 [13:54:39]wFMCommunicate OK [13:54:39]SAM_PROTO_ClearQueue done [13:54:39]KKMCreateOFDPacket [13:54:39]OFDProtocolAddRootSTLVToBuf [13:54:39]FM_MakeSignedData [13:54:39]FM_MakeSignedData [13:54:39]SAM_PROTO_SignData [13:54:39]wFMCommunicate request_size=4 [13:54:39]MH_SAM_APDU [13:54:39]CAPDU: 80 0D 01 02 [13:54:39]Write to MH i2c: E2 08 00 56 06 80 0D 01 02 00 00 00 00 D5 [13:54:39]Write i2c OK [13:54:39]MH_I2C_Read... [13:54:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:54:39]Read from MH i2c: E2 [13:54:39]MH_I2C_Read... [13:54:39]Read from MH i2c: E2 03 00 [13:54:39]MH_I2C_Read... [13:54:39]Read from MH i2c: E2 03 00 56 06 00 90 00 D0 [13:54:39]RAPDU: 90 00 [13:54:39]wFMCommunicate OK [13:54:39]wFMCommunicate request_size=255 [13:54:39]MH_SAM_APDU [13:54:39]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 9E 65 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [13:54:39]Write to MH i2c: E2 02 01 57 06 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 9E 65 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 87 [13:54:39]Write i2c OK [13:54:39]MH_I2C_Read... [13:54:39]OFD Sender: No OFD packet to send [13:54:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:39]Read from MH i2c: E2 [13:54:39]MH_I2C_Read... [13:54:39]Read from MH i2c: E2 03 00 [13:54:39]MH_I2C_Read... [13:54:39]Read from MH i2c: E2 03 00 57 06 00 90 00 D1 [13:54:39]RAPDU: 90 00 [13:54:39]wFMCommunicate OK [13:54:39]wFMCommunicate request_size=55 [13:54:39]MH_SAM_APDU [13:54:39]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 EE 92 01 00 35 04 06 00 AD C0 92 D1 23 40 [13:54:39]Write to MH i2c: E2 3A 00 58 06 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 EE 92 01 00 35 04 06 00 AD C0 92 D1 23 40 00 00 E8 [13:54:39]Write i2c OK [13:54:39]MH_I2C_Read... [13:54:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:39]Read from MH i2c: E2 [13:54:39]MH_I2C_Read... [13:54:39]Read from MH i2c: E2 03 00 [13:54:39]MH_I2C_Read... [13:54:39]Read from MH i2c: E2 03 00 58 06 00 90 00 D2 [13:54:39]RAPDU: 90 00 [13:54:39]wFMCommunicate OK [13:54:39]wFMCommunicate request_size=4 [13:54:39]MH_SAM_APDU [13:54:39]CAPDU: 80 0D 03 02 [13:54:39]Write to MH i2c: E2 08 00 59 06 80 0D 03 02 00 00 00 00 DA [13:54:39]Write i2c OK [13:54:39]MH_I2C_Read... [13:54:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:54:39]Read from MH i2c: E2 [13:54:39]MH_I2C_Read... [13:54:39]Read from MH i2c: E2 0B 00 [13:54:39]MH_I2C_Read... [13:54:39]Read from MH i2c: E2 0B 00 59 06 00 14 07 A4 09 E2 0D 9E 84 90 00 B4 [13:54:39]RAPDU: 14 07 A4 09 E2 0D 9E 84 90 00 [13:54:39]wFMCommunicate OK [13:54:39]SAM_PROTO_SignData done [13:54:39]FM_MakeSignedData done [13:54:39]CreateOFDProtocolMessage [13:54:39]wFMCommunicate request_size=4 [13:54:39]MH_SAM_APDU [13:54:39]CAPDU: 80 11 00 00 [13:54:39]Write to MH i2c: E2 08 00 5A 06 80 11 00 00 00 00 00 00 DA [13:54:39]Write i2c OK [13:54:39]MH_I2C_Read... [13:54:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:39]Read from MH i2c: E2 [13:54:39]MH_I2C_Read... [13:54:39]Read from MH i2c: E2 17 00 [13:54:39]MH_I2C_Read... [13:54:39]Read from MH i2c: E2 17 00 5A 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 2E [13:54:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [13:54:39]wFMCommunicate OK [13:54:39]CreateOFDProtocolMessage done [13:54:39]OFDSenderStorePacket 103150 [13:54:39]StoreOFDPacket docnum=103150 [13:54:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 3C 01 00 00 C5 9B 34 01 7D B4 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 9E 65 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 EE 92 01 00 35 04 06 00 AD C0 92 D1 23 40 14 07 A4 09 E2 0D 9E 84 [13:54:39]CheckFolder [13:54:39]dirname=/storage/ofd_packets [13:54:39]CheckFolder done [13:54:39]ProducePacketName [13:54:39]name=ofd_packets/00103150 [13:54:39]NVStorageSaveData ofd_packets/00103150 [13:54:39]File name is /storage/ofd_packets/00103150 [13:54:39]Write 346 bytes [13:54:39]NVStorageSaveData done [13:54:39]OFDSenderStorePacket done [13:54:39]KKMCreateOFDPacket done [13:54:39]NVStorageSaveData kkm_last_timestamp [13:54:39]File name is /storage/kkm_last_timestamp [13:54:39]Write 4 bytes [13:54:39]NVStorageSaveData done [13:54:39]ExternCall_PrintAddStr [13:54:39]wPrintStart [13:54:39]Write to MH i2c: 01 00 00 5B 06 61 [13:54:39]Write i2c OK [13:54:39]MH_I2C_Read... [13:54:39]Read from MH i2c: 01 [13:54:39]MH_I2C_Read... [13:54:39]Read from MH i2c: 01 07 00 [13:54:39]MH_I2C_Read... [13:54:39]Read from MH i2c: 01 07 00 5B 06 00 00 00 00 00 FF 0F 76 [13:54:39]RasterBufferAndPrint [13:54:39]line Счет N : (3)34507 [13:54:39]line ИНН: 02508201610067 [13:54:39]line Контрольно-Кассовый Чек [13:54:39]line ПРОДАЖА [13:54:39]line Товар: 4631150682851 [13:54:39]line Нап En Dragon Mojito лайм,клуб ж/б 0,45л [13:54:39]line 1.000 * 95.00 [13:54:39]line = 95.00 [13:54:39]line НДС 12% НСП 1% [13:54:39]line > о реализуемом товаре [13:54:39]line ИТОГО: 95.00 [13:54:39]line НСП 1% : 0.84 [13:54:39]line НДС 12% : 10.09 [13:54:39]line Наличными: 0.00 [13:54:39]line Безнал.: 95.00 [13:54:39]line Место: АЗС № 38 "Партнер Нефть" [13:54:39]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [13:54:39]line СНО: Общий режим [13:54:39]line Чек 61 13.08.2024 13:54 [13:54:39]line Смена: 464 ФФД: 1.0 [13:54:39]line ЗНМ: 0300000126 [13:54:39]line РНМ: 0000000000092718 [13:54:39]line Версия ККМ: 001 [13:54:39]line Платежная система: Бакай Банк [13:54:39]line ФМ: 0000000000875058 [13:54:39]line ФД: 103150 [13:54:39]line ФПД: 191042608505664 [13:54:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T135438&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103150&fm=191042608505664&tin=02508201610067®Number=0000000000092718&sum=9500 [13:54:40]line 0 [13:54:40]OFD Sender: Processing packet 103150 [packets to send 69, broken 68] [13:54:40]ProducePacketName [13:54:40]name=ofd_packets/00103150 [13:54:40]OFD Sender: To server: pG, [13:54:40]CommunicateWithHost lk.salyk.kg:30040 [13:54:40]ConnectInit lk.salyk.kg [13:54:40]written 0, free lines is 4095 [13:54:40]Connected sock=10 [13:54:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 3C 01 00 00 C5 9B 34 01 7D B4 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 9E 65 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 EE 92 01 00 35 04 06 00 AD C0 92 D1 23 40 14 07 A4 09 E2 0D 9E 84 [13:54:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 6C F8 47 00 48 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 EE 92 01 00 F4 03 04 00 11 0C BB 66 B6 04 01 00 00 9A 3E E8 23 92 FD 0C 32 [13:54:40]CommunicateWithHost err = 0 [13:54:40]CheckOFDResponse [13:54:40]1017 (14) - 77093643461234 [13:54:40]1041 (16) - 0000000000875058 [13:54:40]1040 (4) - 103150 [13:54:40]1012 (4) - 13.08.2024 07:32 [13:54:40]1206 (1) - 0 [13:54:40]OFD Sender: Remove packet 103150 [13:54:40]ProducePacketName [13:54:40]name=ofd_packets/00103150 [13:54:40]NVStorageDeleteData [13:54:40]Write to MH i2c: 01 00 00 86 06 8C [13:54:40]Write i2c OK [13:54:40]MH_I2C_Read... [13:54:40]Read from MH i2c: 01 [13:54:40]MH_I2C_Read... [13:54:40]Read from MH i2c: 01 07 00 [13:54:40]MH_I2C_Read... [13:54:40]Read from MH i2c: 01 07 00 86 06 00 00 00 00 00 D0 0C 6F [13:54:40]RasterBufferAndPrint [13:54:40]line [13:54:40]line [13:54:40]line [13:54:40]line [13:54:40]line [13:54:40]written 0, free lines is 3287 [13:54:40]MH_Cut [13:54:40]Write to MH i2c: D1 01 00 8D 06 01 65 [13:54:40]Write i2c OK [13:54:40]MH_I2C_Read... [13:54:40]Read from MH i2c: D1 [13:54:40]MH_I2C_Read... [13:54:40]Read from MH i2c: D1 01 00 [13:54:40]MH_I2C_Read... [13:54:40]Read from MH i2c: D1 01 00 8D 06 00 64 [13:54:40]Write to MH i2c: 01 00 00 8E 06 94 [13:54:40]Write i2c OK [13:54:40]MH_I2C_Read... [13:54:40]OFD Sender: No OFD packet to send [13:54:41]*** Cut start [13:54:41]*** Purtial cut [13:54:41]*** CUTSNS_PIN = 0 [13:54:41]*** Stage 1: CUTSNS_PIN = 1 [13:54:43]Read from MH i2c: 01 [13:54:43]MH_I2C_Read... [13:54:43]*** Stop cut motor [13:54:43]*** Cut end [13:54:43]Read from MH i2c: 01 07 00 [13:54:43]MH_I2C_Read... [13:54:43]Read from MH i2c: 01 07 00 8E 06 00 00 00 00 00 FF 0F A9 [13:54:43]process_action close_receipt done [13:54:43]requested_data is exist [13:54:43]produce_requested_data [13:54:43]requested_item fm.sn is exist - process it [13:54:43]wFMCommunicate request_size=4 [13:54:43]MH_SAM_APDU [13:54:43]CAPDU: 80 11 00 00 [13:54:43]Write to MH i2c: E2 08 00 8F 06 80 11 00 00 00 00 00 00 0F [13:54:43]Write i2c OK [13:54:43]MH_I2C_Read... [13:54:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:43]Read from MH i2c: E2 [13:54:43]MH_I2C_Read... [13:54:43]Read from MH i2c: E2 17 00 [13:54:43]MH_I2C_Read... [13:54:43]Read from MH i2c: E2 17 00 8F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 63 [13:54:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [13:54:43]wFMCommunicate OK [13:54:43]requested_item fd.num is exist - process it [13:54:43]SAM_PROTO_GetFieldsCounters [13:54:43]wFMCommunicate request_size=4 [13:54:43]MH_SAM_APDU [13:54:43]CAPDU: 80 13 00 00 [13:54:43]Write to MH i2c: E2 08 00 90 06 80 13 00 00 00 00 00 00 12 [13:54:43]Write i2c OK [13:54:43]MH_I2C_Read... [13:54:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:54:43]Read from MH i2c: E2 [13:54:43]MH_I2C_Read... [13:54:43]Read from MH i2c: E2 62 00 [13:54:43]MH_I2C_Read... [13:54:43]Read from MH i2c: E2 62 00 90 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 EE 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [13:54:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 EE 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:54:43]wFMCommunicate OK [13:54:43]SAM_PROTO_GetFieldsCounters done [13:54:43]requested_item shift.num is exist - process it [13:54:43]requested_item shift.opened is exist - process it [13:54:43]req_shift_opened [13:54:43]FM_GetShiftState [13:54:43]SAM_PROTO_GetShiftState [13:54:43]wFMCommunicate request_size=4 [13:54:43]MH_SAM_APDU [13:54:43]CAPDU: 80 13 01 00 [13:54:43]Write to MH i2c: E2 08 00 91 06 80 13 01 00 00 00 00 00 14 [13:54:43]Write i2c OK [13:54:43]MH_I2C_Read... [13:54:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:43]Read from MH i2c: E2 [13:54:43]MH_I2C_Read... [13:54:43]Read from MH i2c: E2 0E 00 [13:54:43]MH_I2C_Read... [13:54:43]Read from MH i2c: E2 0E 00 91 06 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 32 [13:54:43]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [13:54:43]wFMCommunicate OK [13:54:43]SAM_PROTO_GetShiftState done [13:54:43]FM_GetShiftState done [13:54:43]req_shift_opened done [13:54:43]requested_item shift.open_date is exist - process it [13:54:43]req_shift_open_date [13:54:43]req_shift_open_date done [13:54:43]produce_requested_data done [13:54:43]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103150,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [13:54:43]process_action_free close_receipt [13:54:43]json_value_free [13:54:43]json_value_free done [13:54:43]process_json_proto returns [13:54:43]Send response to host [13:54:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103150,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [13:54:43]free response buf [13:54:43]execute_script done [13:54:43]execute_script returns [13:54:43]free content buf [13:54:43]Sock 7.Close socket [13:54:43]Sock 7.Thread stoped [13:54:45]OFD Sender: No OFD packet to send [13:54:50]OFD Sender: No OFD packet to send [13:54:55]OFD Sender: No OFD packet to send [13:55:00]OFD Sender: No OFD packet to send [13:55:05]OFD Sender: No OFD packet to send [13:55:10]OFD Sender: No OFD packet to send [13:55:15]OFD Sender: No OFD packet to send [13:55:20]OFD Sender: No OFD packet to send [13:55:25]OFD Sender: No OFD packet to send [13:55:30]OFD Sender: No OFD packet to send [13:55:35]OFD Sender: No OFD packet to send [13:55:40]OFD Sender: No OFD packet to send [13:55:45]OFD Sender: No OFD packet to send [13:55:50]OFD Sender: No OFD packet to send [13:55:55]OFD Sender: No OFD packet to send [13:56:00]OFD Sender: No OFD packet to send [13:56:05]OFD Sender: No OFD packet to send [13:56:10]OFD Sender: No OFD packet to send [13:56:15]OFD Sender: No OFD packet to send [13:56:20]OFD Sender: No OFD packet to send [13:56:25]OFD Sender: No OFD packet to send [13:56:30]OFD Sender: No OFD packet to send [13:56:35]OFD Sender: No OFD packet to send [13:56:40]OFD Sender: No OFD packet to send [13:56:45]OFD Sender: No OFD packet to send [13:56:50]OFD Sender: No OFD packet to send [13:56:55]OFD Sender: No OFD packet to send [13:57:00]OFD Sender: No OFD packet to send [13:57:05]OFD Sender: No OFD packet to send [13:57:10]OFD Sender: No OFD packet to send [13:57:15]OFD Sender: No OFD packet to send [13:57:20]OFD Sender: No OFD packet to send [13:57:25]OFD Sender: No OFD packet to send [13:57:30]OFD Sender: No OFD packet to send [13:57:35]OFD Sender: No OFD packet to send [13:57:40]OFD Sender: No OFD packet to send [13:57:45]OFD Sender: No OFD packet to send [13:57:50]OFD Sender: No OFD packet to send [13:57:55]OFD Sender: No OFD packet to send [13:58:00]OFD Sender: No OFD packet to send [13:58:05]OFD Sender: No OFD packet to send [13:58:11]OFD Sender: No OFD packet to send [13:58:16]OFD Sender: No OFD packet to send [13:58:21]OFD Sender: No OFD packet to send [13:58:26]OFD Sender: No OFD packet to send [13:58:31]OFD Sender: No OFD packet to send [13:58:36]OFD Sender: No OFD packet to send [13:58:41]OFD Sender: No OFD packet to send [13:58:46]OFD Sender: No OFD packet to send [13:58:51]OFD Sender: No OFD packet to send [13:58:56]OFD Sender: No OFD packet to send [13:59:01]OFD Sender: No OFD packet to send [13:59:06]OFD Sender: No OFD packet to send [13:59:11]OFD Sender: No OFD packet to send [13:59:16]OFD Sender: No OFD packet to send [13:59:21]OFD Sender: No OFD packet to send [13:59:26]OFD Sender: No OFD packet to send [13:59:31]OFD Sender: No OFD packet to send [13:59:36]OFD Sender: No OFD packet to send [13:59:41]OFD Sender: No OFD packet to send [13:59:46]OFD Sender: No OFD packet to send [13:59:51]OFD Sender: No OFD packet to send [13:59:56]OFD Sender: No OFD packet to send [14:00:01]OFD Sender: No OFD packet to send [14:00:06]OFD Sender: No OFD packet to send [14:00:11]OFD Sender: No OFD packet to send [14:00:16]OFD Sender: No OFD packet to send [14:00:21]OFD Sender: No OFD packet to send [14:00:26]OFD Sender: No OFD packet to send [14:00:31]OFD Sender: No OFD packet to send [14:00:36]OFD Sender: No OFD packet to send [14:00:41]OFD Sender: No OFD packet to send [14:00:46]OFD Sender: No OFD packet to send [14:00:51]OFD Sender: No OFD packet to send [14:00:56]OFD Sender: No OFD packet to send [14:01:01]OFD Sender: No OFD packet to send [14:01:06]OFD Sender: No OFD packet to send [14:01:11]OFD Sender: No OFD packet to send [14:01:16]OFD Sender: No OFD packet to send [14:01:21]OFD Sender: No OFD packet to send [14:01:26]OFD Sender: No OFD packet to send [14:01:31]OFD Sender: No OFD packet to send [14:01:36]OFD Sender: No OFD packet to send [14:01:41]OFD Sender: No OFD packet to send [14:01:46]OFD Sender: No OFD packet to send [14:01:51]OFD Sender: No OFD packet to send [14:01:56]OFD Sender: No OFD packet to send [14:02:01]OFD Sender: No OFD packet to send [14:02:06]OFD Sender: No OFD packet to send [14:02:11]OFD Sender: No OFD packet to send [14:02:16]OFD Sender: No OFD packet to send [14:02:21]OFD Sender: No OFD packet to send [14:02:26]OFD Sender: No OFD packet to send [14:02:28]accept exits with 9 [14:02:28]New connection [14:02:28]New thread 3066830180 created [14:02:28]Thread 3066686820 joined [14:02:28]Waiting for new connection... [14:02:28] Sock 9.Parse request [14:02:28]Sock 9.Check first char [14:02:28]Sock 9.First char is OK [14:02:28]request: POST /json_proto HTTP/1.0 [14:02:28]Method: POST [14:02:28]URL: /json_proto [14:02:28]Method is POST - this is cgi request [14:02:28]url: /json_proto [14:02:28]query_string will be loaded in cgi processing [14:02:28]execute_cgi json_proto POST (null) [14:02:28]execute_cgi path=json_proto method=POST [14:02:28]POST find Content-Length [14:02:28]Host: 172.17.58.3:8080 [14:02:28]Content-Length: 659 [14:02:28]Content-Type: application/json [14:02:28] [14:02:28]POST finish read [14:02:28]Found Content-Length = 659 [14:02:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160780", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 20.000, "sum" : 1476.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "payments": [ { "type": 0, "sum" : 1476.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:28]execute_script... [14:02: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)160780", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 20.000, "sum" : 1476.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "payments": [ { "type": 0, "sum" : 1476.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:28]POST & json_proto [14:02:28]process_json_proto [14:02:28]json parsed OK: [14:02:28]protocol is kg_v1.0 [14:02:28]action value=close_receipt [14:02:28]process_action close_receipt [14:02:28]cmd_close_receipt [14:02:28]MH_GetDate [14:02:28]Write to MH i2c: F0 00 00 92 06 87 [14:02:28]Write i2c OK [14:02:28]MH_I2C_Read... [14:02:28]Read from MH i2c: F0 [14:02:28]MH_I2C_Read... [14:02:28]Read from MH i2c: F0 09 00 [14:02:28]MH_I2C_Read... [14:02:28]Read from MH i2c: F0 09 00 92 06 00 74 67 BB 66 DC E4 6D 64 1D [14:02:28]GetLastDocTimeStamp 1723557278 [14:02:28]current date 1723557748 [14:02:28]FM_GetShiftState [14:02:28]SAM_PROTO_GetShiftState [14:02:28]wFMCommunicate request_size=4 [14:02:28]MH_SAM_APDU [14:02:28]CAPDU: 80 13 01 00 [14:02:28]Write to MH i2c: E2 08 00 93 06 80 13 01 00 00 00 00 00 16 [14:02:28]Write i2c OK [14:02:28]MH_I2C_Read... [14:02:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:28]Read from MH i2c: E2 [14:02:28]MH_I2C_Read... [14:02:28]Read from MH i2c: E2 0E 00 [14:02:28]MH_I2C_Read... [14:02:28]Read from MH i2c: E2 0E 00 93 06 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 34 [14:02:28]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [14:02:28]wFMCommunicate OK [14:02:28]SAM_PROTO_GetShiftState done [14:02:28]FM_GetShiftState done [14:02:28]opened in 1723506770 [14:02:28]opened+sec_in_day 1723593170 [14:02:28]quantity*price = 147600 [14:02:28]sum+1 = 147601 [14:02:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1476.00 Внесено: 2000.00 СДАЧА: 524.00 НСП 1% : 13.06 НДС 12% : 156.74 Наличными: 1476.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 62 13.08.2024 14:02 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103151 ФПД: 66387729204933 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T140228&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103151&fm=66387729204933&tin=02508201610067®Number=0000000000092718&sum=147600 [14:02:29]StoreToDocumentArchive [14:02:29]shift 464 fd 103151 [14:02:29]save to /storage/0464/doc_00103151 [14:02:29]save last doc name /storage/0464/doc_00103151 to /storage/kkm_last_doc_name [14:02:29]save OK [14:02:29]Clear old archive folders... [14:02:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:02:29]tlvbuf is 014F4DC0 [14:02:29]SAM_PROTO_ClearQueue [14:02:29]wFMCommunicate request_size=4 [14:02:29]MH_SAM_APDU [14:02:29]CAPDU: 80 09 00 00 [14:02:29]Write to MH i2c: E2 08 00 A0 06 80 09 00 00 00 00 00 00 18 [14:02:29]Write i2c OK [14:02:29]MH_I2C_Read... [14:02:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:02:29]Read from MH i2c: E2 [14:02:29]MH_I2C_Read... [14:02:29]Read from MH i2c: E2 03 00 [14:02:29]MH_I2C_Read... [14:02:29]Read from MH i2c: E2 03 00 A0 06 00 90 00 1A [14:02:29]RAPDU: 90 00 [14:02:29]wFMCommunicate OK [14:02:29]SAM_PROTO_ClearQueue done [14:02:29]KKMCreateOFDPacket [14:02:29]OFDProtocolAddRootSTLVToBuf [14:02:29]FM_MakeSignedData [14:02:29]FM_MakeSignedData [14:02:29]SAM_PROTO_SignData [14:02:29]wFMCommunicate request_size=4 [14:02:29]MH_SAM_APDU [14:02:29]CAPDU: 80 0D 01 02 [14:02:29]Write to MH i2c: E2 08 00 A1 06 80 0D 01 02 00 00 00 00 20 [14:02:29]Write i2c OK [14:02:29]MH_I2C_Read... [14:02:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:02:29]Read from MH i2c: E2 [14:02:29]MH_I2C_Read... [14:02:29]Read from MH i2c: E2 03 00 [14:02:29]MH_I2C_Read... [14:02:29]Read from MH i2c: E2 03 00 A1 06 00 90 00 1B [14:02:29]RAPDU: 90 00 [14:02:29]wFMCommunicate OK [14:02:29]wFMCommunicate request_size=255 [14:02:29]MH_SAM_APDU [14:02:29]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 90 40 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 40 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 3D 00 00 00 00 07 04 06 00 90 40 02 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 74 67 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 EF 92 01 00 35 04 06 00 3C 61 19 04 [14:02:29]Write to MH i2c: E2 02 01 A2 06 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 90 40 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 40 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 3D 00 00 00 00 07 04 06 00 90 40 02 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 74 67 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 EF 92 01 00 35 04 06 00 3C 61 19 04 00 00 31 [14:02:29]Write i2c OK [14:02:29]MH_I2C_Read... [14:02:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:29]Read from MH i2c: E2 [14:02:29]MH_I2C_Read... [14:02:29]Read from MH i2c: E2 03 00 [14:02:29]MH_I2C_Read... [14:02:29]Read from MH i2c: E2 03 00 A2 06 00 90 00 1C [14:02:29]RAPDU: 90 00 [14:02:29]wFMCommunicate OK [14:02:29]wFMCommunicate request_size=7 [14:02:29]MH_SAM_APDU [14:02:29]CAPDU: 80 0D 02 02 02 46 C5 [14:02:29]Write to MH i2c: E2 0A 00 A3 06 80 0D 02 02 02 00 46 C5 00 00 32 [14:02:29]Write i2c OK [14:02:29]MH_I2C_Read... [14:02:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:29]Read from MH i2c: E2 [14:02:29]MH_I2C_Read... [14:02:29]Read from MH i2c: E2 03 00 [14:02:29]MH_I2C_Read... [14:02:29]Read from MH i2c: E2 03 00 A3 06 00 90 00 1D [14:02:29]RAPDU: 90 00 [14:02:29]wFMCommunicate OK [14:02:29]wFMCommunicate request_size=4 [14:02:29]MH_SAM_APDU [14:02:29]CAPDU: 80 0D 03 02 [14:02:29]Write to MH i2c: E2 08 00 A4 06 80 0D 03 02 00 00 00 00 25 [14:02:29]Write i2c OK [14:02:29]MH_I2C_Read... [14:02:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:02:29]Read from MH i2c: E2 [14:02:29]MH_I2C_Read... [14:02:29]Read from MH i2c: E2 0B 00 [14:02:29]MH_I2C_Read... [14:02:29]Read from MH i2c: E2 0B 00 A4 06 00 0B 35 B6 90 CE 3F D2 BB 90 00 46 [14:02:29]RAPDU: 0B 35 B6 90 CE 3F D2 BB 90 00 [14:02:29]wFMCommunicate OK [14:02:29]SAM_PROTO_SignData done [14:02:29]FM_MakeSignedData done [14:02:29]CreateOFDProtocolMessage [14:02:29]wFMCommunicate request_size=4 [14:02:29]MH_SAM_APDU [14:02:29]CAPDU: 80 11 00 00 [14:02:29]Write to MH i2c: E2 08 00 A5 06 80 11 00 00 00 00 00 00 25 [14:02:29]Write i2c OK [14:02:29]MH_I2C_Read... [14:02:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:29]Read from MH i2c: E2 [14:02:29]MH_I2C_Read... [14:02:29]Read from MH i2c: E2 17 00 [14:02:29]MH_I2C_Read... [14:02:29]Read from MH i2c: E2 17 00 A5 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 79 [14:02:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [14:02:29]wFMCommunicate OK [14:02:29]CreateOFDProtocolMessage done [14:02:29]OFDSenderStorePacket 103151 [14:02:29]StoreOFDPacket docnum=103151 [14:02:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 03 94 04 01 D5 B4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 90 40 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 40 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 3D 00 00 00 00 07 04 06 00 90 40 02 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 74 67 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 EF 92 01 00 35 04 06 00 3C 61 19 04 46 C5 0B 35 B6 90 CE 3F D2 BB [14:02:29]CheckFolder [14:02:29]dirname=/storage/ofd_packets [14:02:29]CheckFolder done [14:02:29]ProducePacketName [14:02:29]name=ofd_packets/00103151 [14:02:29]NVStorageSaveData ofd_packets/00103151 [14:02:29]File name is /storage/ofd_packets/00103151 [14:02:29]Write 298 bytes [14:02:29]NVStorageSaveData done [14:02:29]OFDSenderStorePacket done [14:02:29]KKMCreateOFDPacket done [14:02:29]NVStorageSaveData kkm_last_timestamp [14:02:29]File name is /storage/kkm_last_timestamp [14:02:29]Write 4 bytes [14:02:29]NVStorageSaveData done [14:02:29]ExternCall_PrintAddStr [14:02:29]wPrintStart [14:02:29]Write to MH i2c: 01 00 00 A6 06 AC [14:02:29]Write i2c OK [14:02:29]MH_I2C_Read... [14:02:29]Read from MH i2c: 01 [14:02:29]MH_I2C_Read... [14:02:29]Read from MH i2c: 01 07 00 [14:02:29]MH_I2C_Read... [14:02:29]Read from MH i2c: 01 07 00 A6 06 00 00 00 00 00 FF 0F C1 [14:02:29]RasterBufferAndPrint [14:02:29]line Счет N : (1)160780 [14:02:29]line ИНН: 02508201610067 [14:02:29]line Контрольно-Кассовый Чек [14:02:29]line ПРОДАЖА [14:02:29]line ТРК (МРК, ГНК) : 5 [14:02:29]line Товар: 2710194210 [14:02:29]line ДТ-К-5 [14:02:29]line 20.000 * 73.80 [14:02:29]line = 1476.00 [14:02:29]line НДС 12% НСП 1% [14:02:29]line > о реализуемом товаре [14:02:29]line ИТОГО: 1476.00 [14:02:29]line Внесено: 2000.00 [14:02:29]line СДАЧА: 524.00 [14:02:29]line НСП 1% : 13.06 [14:02:29]line НДС 12% : 156.74 [14:02:29]line Наличными: 1476.00 [14:02:29]line Безнал.: 0.00 [14:02:29]line Место: АЗС № 38 "Партнер Нефть" [14:02:29]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [14:02:29]line СНО: Общий режим [14:02:29]line Чек 62 13.08.2024 14:02 [14:02:29]line Смена: 464 ФФД: 1.0 [14:02:29]line ЗНМ: 0300000126 [14:02:29]line РНМ: 0000000000092718 [14:02:29]line Версия ККМ: 001 [14:02:29]line ФМ: 0000000000875058 [14:02:29]line ФД: 103151 [14:02:29]line ФПД: 66387729204933 [14:02:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T140228&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103151&fm=66387729204933&tin=02508201610067®Number=0000000000092718&sum=147600 [14:02:30]OFD Sender: Processing packet 103151 [packets to send 69, broken 68] [14:02:30]ProducePacketName [14:02:30]name=ofd_packets/00103151 [14:02:30]OFD Sender: To server: pG, [14:02:30]CommunicateWithHost lk.salyk.kg:30040 [14:02:30]ConnectInit lk.salyk.kg [14:02:30]written 0, free lines is 4095 [14:02:30]Connected sock=10 [14:02:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 03 94 04 01 D5 B4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 90 40 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 40 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 3D 00 00 00 00 07 04 06 00 90 40 02 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 74 67 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 EF 92 01 00 35 04 06 00 3C 61 19 04 46 C5 0B 35 B6 90 CE 3F D2 BB [14:02:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 DE 2F 47 00 F4 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 EF 92 01 00 F4 03 04 00 E7 0D BB 66 B6 04 01 00 00 F8 5F 5A 18 82 6B 27 40 [14:02:30]CommunicateWithHost err = 0 [14:02:30]CheckOFDResponse [14:02:30]1017 (14) - 77093643461234 [14:02:30]1041 (16) - 0000000000875058 [14:02:30]1040 (4) - 103151 [14:02:30]1012 (4) - 13.08.2024 07:40 [14:02:30]1206 (1) - 0 [14:02:30]OFD Sender: Remove packet 103151 [14:02:30]ProducePacketName [14:02:30]name=ofd_packets/00103151 [14:02:30]NVStorageDeleteData [14:02:30]Write to MH i2c: 01 00 00 D0 06 D6 [14:02:30]Write i2c OK [14:02:30]MH_I2C_Read... [14:02:30]Read from MH i2c: 01 [14:02:30]MH_I2C_Read... [14:02:30]Read from MH i2c: 01 07 00 [14:02:30]MH_I2C_Read... [14:02:30]Read from MH i2c: 01 07 00 D0 06 00 00 00 00 00 F5 0C DE [14:02:30]RasterBufferAndPrint [14:02:30]line [14:02:30]line [14:02:30]line [14:02:30]line [14:02:30]line [14:02:30]written 0, free lines is 3323 [14:02:30]MH_Cut [14:02:30]Write to MH i2c: D1 01 00 D7 06 01 AF [14:02:30]Write i2c OK [14:02:30]MH_I2C_Read... [14:02:30]Read from MH i2c: D1 [14:02:30]MH_I2C_Read... [14:02:30]Read from MH i2c: D1 01 00 [14:02:30]MH_I2C_Read... [14:02:30]Read from MH i2c: D1 01 00 D7 06 00 AE [14:02:30]Write to MH i2c: 01 00 00 D8 06 DE [14:02:30]Write i2c OK [14:02:30]MH_I2C_Read... [14:02:30]OFD Sender: No OFD packet to send [14:02:31]*** Cut start [14:02:31]*** Purtial cut [14:02:31]*** Stage 1: CUTSNS_PIN = 1 [14:02:31]Read from MH i2c: 01 [14:02:31]MH_I2C_Read... [14:02:31]*** Stop cut motor [14:02:31]*** Cut end [14:02:31]Read from MH i2c: 01 07 00 [14:02:31]MH_I2C_Read... [14:02:31]Read from MH i2c: 01 07 00 D8 06 00 00 00 00 00 FF 0F F3 [14:02:31]process_action close_receipt done [14:02:31]requested_data is exist [14:02:31]produce_requested_data [14:02:31]requested_item fm.sn is exist - process it [14:02:31]wFMCommunicate request_size=4 [14:02:31]MH_SAM_APDU [14:02:31]CAPDU: 80 11 00 00 [14:02:31]Write to MH i2c: E2 08 00 D9 06 80 11 00 00 00 00 00 00 59 [14:02:31]Write i2c OK [14:02:31]MH_I2C_Read... [14:02:31]Read from MH i2c: E2 [14:02:31]MH_I2C_Read... [14:02:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:31]Read from MH i2c: E2 17 00 [14:02:31]MH_I2C_Read... [14:02:31]Read from MH i2c: E2 17 00 D9 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 AD [14:02:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [14:02:31]wFMCommunicate OK [14:02:31]requested_item fd.num is exist - process it [14:02:31]SAM_PROTO_GetFieldsCounters [14:02:31]wFMCommunicate request_size=4 [14:02:31]MH_SAM_APDU [14:02:31]CAPDU: 80 13 00 00 [14:02:31]Write to MH i2c: E2 08 00 DA 06 80 13 00 00 00 00 00 00 5C [14:02:31]Write i2c OK [14:02:31]MH_I2C_Read... [14:02:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:02:31]Read from MH i2c: E2 [14:02:31]MH_I2C_Read... [14:02:31]Read from MH i2c: E2 62 00 [14:02:31]MH_I2C_Read... [14:02:31]Read from MH i2c: E2 62 00 DA 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 EF 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [14:02:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 EF 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:02:31]wFMCommunicate OK [14:02:31]SAM_PROTO_GetFieldsCounters done [14:02:31]requested_item shift.num is exist - process it [14:02:31]requested_item shift.opened is exist - process it [14:02:31]req_shift_opened [14:02:31]FM_GetShiftState [14:02:31]SAM_PROTO_GetShiftState [14:02:31]wFMCommunicate request_size=4 [14:02:31]MH_SAM_APDU [14:02:31]CAPDU: 80 13 01 00 [14:02:31]Write to MH i2c: E2 08 00 DB 06 80 13 01 00 00 00 00 00 5E [14:02:31]Write i2c OK [14:02:31]MH_I2C_Read... [14:02:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:31]Read from MH i2c: E2 [14:02:31]MH_I2C_Read... [14:02:31]Read from MH i2c: E2 0E 00 [14:02:31]MH_I2C_Read... [14:02:31]Read from MH i2c: E2 0E 00 DB 06 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 7C [14:02:31]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [14:02:31]wFMCommunicate OK [14:02:31]SAM_PROTO_GetShiftState done [14:02:31]FM_GetShiftState done [14:02:31]req_shift_opened done [14:02:31]requested_item shift.open_date is exist - process it [14:02:31]req_shift_open_date [14:02:31]req_shift_open_date done [14:02:31]produce_requested_data done [14:02:31]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103151,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [14:02:31]process_action_free close_receipt [14:02:31]json_value_free [14:02:31]json_value_free done [14:02:31]process_json_proto returns [14:02:31]Send response to host [14:02:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103151,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [14:02:31]free response buf [14:02:31]execute_script done [14:02:31]execute_script returns [14:02:31]free content buf [14:02:31]Sock 9.Close socket [14:02:31]Sock 9.Thread stoped [14:02:35]OFD Sender: No OFD packet to send [14:02:40]OFD Sender: No OFD packet to send [14:02:45]OFD Sender: No OFD packet to send [14:02:50]OFD Sender: No OFD packet to send [14:02:55]OFD Sender: No OFD packet to send [14:03:00]OFD Sender: No OFD packet to send [14:03:05]OFD Sender: No OFD packet to send [14:03:10]OFD Sender: No OFD packet to send [14:03:15]OFD Sender: No OFD packet to send [14:03:20]OFD Sender: No OFD packet to send [14:03:25]OFD Sender: No OFD packet to send [14:03:30]OFD Sender: No OFD packet to send [14:03:35]OFD Sender: No OFD packet to send [14:03:40]OFD Sender: No OFD packet to send [14:03:45]OFD Sender: No OFD packet to send [14:03:50]OFD Sender: No OFD packet to send [14:03:55]OFD Sender: No OFD packet to send [14:04:00]OFD Sender: No OFD packet to send [14:04:05]OFD Sender: No OFD packet to send [14:04:10]OFD Sender: No OFD packet to send [14:04:15]OFD Sender: No OFD packet to send [14:04:20]OFD Sender: No OFD packet to send [14:04:25]OFD Sender: No OFD packet to send [14:04:30]OFD Sender: No OFD packet to send [14:04:35]OFD Sender: No OFD packet to send [14:04:40]OFD Sender: No OFD packet to send [14:04:45]OFD Sender: No OFD packet to send [14:04:50]OFD Sender: No OFD packet to send [14:04:56]OFD Sender: No OFD packet to send [14:05:01]OFD Sender: No OFD packet to send [14:05:06]OFD Sender: No OFD packet to send [14:05:11]OFD Sender: No OFD packet to send [14:05:16]OFD Sender: No OFD packet to send [14:05:21]OFD Sender: No OFD packet to send [14:05:26]OFD Sender: No OFD packet to send [14:05:31]OFD Sender: No OFD packet to send [14:05:36]OFD Sender: No OFD packet to send [14:05:41]OFD Sender: No OFD packet to send [14:05:46]OFD Sender: No OFD packet to send [14:05:51]OFD Sender: No OFD packet to send [14:05:56]OFD Sender: No OFD packet to send [14:06:01]OFD Sender: No OFD packet to send [14:06:06]OFD Sender: No OFD packet to send [14:06:11]OFD Sender: No OFD packet to send [14:06:16]OFD Sender: No OFD packet to send [14:06:21]OFD Sender: No OFD packet to send [14:06:26]OFD Sender: No OFD packet to send [14:06:31]OFD Sender: No OFD packet to send [14:06:36]OFD Sender: No OFD packet to send [14:06:41]OFD Sender: No OFD packet to send [14:06:46]OFD Sender: No OFD packet to send [14:06:51]OFD Sender: No OFD packet to send [14:06:56]OFD Sender: No OFD packet to send [14:07:01]OFD Sender: No OFD packet to send [14:07:06]OFD Sender: No OFD packet to send [14:07:11]OFD Sender: No OFD packet to send [14:07:16]OFD Sender: No OFD packet to send [14:07:21]OFD Sender: No OFD packet to send [14:07:26]OFD Sender: No OFD packet to send [14:07:31]OFD Sender: No OFD packet to send [14:07:36]OFD Sender: No OFD packet to send [14:07:41]OFD Sender: No OFD packet to send [14:07:46]OFD Sender: No OFD packet to send [14:07:51]OFD Sender: No OFD packet to send [14:07:56]OFD Sender: No OFD packet to send [14:08:01]OFD Sender: No OFD packet to send [14:08:06]OFD Sender: No OFD packet to send [14:08:11]OFD Sender: No OFD packet to send [14:08:16]OFD Sender: No OFD packet to send [14:08:21]OFD Sender: No OFD packet to send [14:08:26]OFD Sender: No OFD packet to send [14:08:31]OFD Sender: No OFD packet to send [14:08:36]OFD Sender: No OFD packet to send [14:08:41]OFD Sender: No OFD packet to send [14:08:46]OFD Sender: No OFD packet to send [14:08:51]OFD Sender: No OFD packet to send [14:08:56]OFD Sender: No OFD packet to send [14:09:01]OFD Sender: No OFD packet to send [14:09:06]OFD Sender: No OFD packet to send [14:09:11]OFD Sender: No OFD packet to send [14:09:16]OFD Sender: No OFD packet to send [14:09:21]OFD Sender: No OFD packet to send [14:09:26]OFD Sender: No OFD packet to send [14:09:31]OFD Sender: No OFD packet to send [14:09:36]OFD Sender: No OFD packet to send [14:09:41]OFD Sender: No OFD packet to send [14:09:46]OFD Sender: No OFD packet to send [14:09:51]OFD Sender: No OFD packet to send [14:09:56]OFD Sender: No OFD packet to send [14:10:01]OFD Sender: No OFD packet to send [14:10:06]OFD Sender: No OFD packet to send [14:10:11]OFD Sender: No OFD packet to send [14:10:16]OFD Sender: No OFD packet to send [14:10:21]OFD Sender: No OFD packet to send [14:10:26]OFD Sender: No OFD packet to send [14:10:31]OFD Sender: No OFD packet to send [14:10:36]OFD Sender: No OFD packet to send [14:10:41]OFD Sender: No OFD packet to send [14:10:46]OFD Sender: No OFD packet to send [14:10:51]OFD Sender: No OFD packet to send [14:10:56]OFD Sender: No OFD packet to send [14:11:01]OFD Sender: No OFD packet to send [14:11:06]OFD Sender: No OFD packet to send [14:11:11]OFD Sender: No OFD packet to send [14:11:16]OFD Sender: No OFD packet to send [14:11:21]OFD Sender: No OFD packet to send [14:11:26]OFD Sender: No OFD packet to send [14:11:31]OFD Sender: No OFD packet to send [14:11:36]OFD Sender: No OFD packet to send [14:11:41]OFD Sender: No OFD packet to send [14:11:46]OFD Sender: No OFD packet to send [14:11:51]OFD Sender: No OFD packet to send [14:11:56]OFD Sender: No OFD packet to send [14:12:01]OFD Sender: No OFD packet to send [14:12:06]OFD Sender: No OFD packet to send [14:12:11]OFD Sender: No OFD packet to send [14:12:16]OFD Sender: No OFD packet to send [14:12:21]OFD Sender: No OFD packet to send [14:12:26]OFD Sender: No OFD packet to send [14:12:31]OFD Sender: No OFD packet to send [14:12:36]OFD Sender: No OFD packet to send [14:12:41]OFD Sender: No OFD packet to send [14:12:46]OFD Sender: No OFD packet to send [14:12:51]OFD Sender: No OFD packet to send [14:12:56]OFD Sender: No OFD packet to send [14:13:01]OFD Sender: No OFD packet to send [14:13:06]OFD Sender: No OFD packet to send [14:13:11]OFD Sender: No OFD packet to send [14:13:16]OFD Sender: No OFD packet to send [14:13:21]OFD Sender: No OFD packet to send [14:13:26]OFD Sender: No OFD packet to send [14:13:31]OFD Sender: No OFD packet to send [14:13:36]OFD Sender: No OFD packet to send [14:13:41]OFD Sender: No OFD packet to send [14:13:46]OFD Sender: No OFD packet to send [14:13:51]OFD Sender: No OFD packet to send [14:13:56]OFD Sender: No OFD packet to send [14:14:01]OFD Sender: No OFD packet to send [14:14:06]OFD Sender: No OFD packet to send [14:14:11]OFD Sender: No OFD packet to send [14:14:16]OFD Sender: No OFD packet to send [14:14:21]OFD Sender: No OFD packet to send [14:14:26]OFD Sender: No OFD packet to send [14:14:31]OFD Sender: No OFD packet to send [14:14:36]OFD Sender: No OFD packet to send [14:14:41]OFD Sender: No OFD packet to send [14:14:46]OFD Sender: No OFD packet to send [14:14:51]OFD Sender: No OFD packet to send [14:14:56]OFD Sender: No OFD packet to send [14:15:01]OFD Sender: No OFD packet to send [14:15:06]OFD Sender: No OFD packet to send [14:15:11]OFD Sender: No OFD packet to send [14:15:16]OFD Sender: No OFD packet to send [14:15:21]OFD Sender: No OFD packet to send [14:15:26]OFD Sender: No OFD packet to send [14:15:31]OFD Sender: No OFD packet to send [14:15:36]OFD Sender: No OFD packet to send [14:15:41]OFD Sender: No OFD packet to send [14:15:46]OFD Sender: No OFD packet to send [14:15:51]OFD Sender: No OFD packet to send [14:15:56]OFD Sender: No OFD packet to send [14:16:01]OFD Sender: No OFD packet to send [14:16:06]OFD Sender: No OFD packet to send [14:16:11]OFD Sender: No OFD packet to send [14:16:16]OFD Sender: No OFD packet to send [14:16:21]OFD Sender: No OFD packet to send [14:16:26]OFD Sender: No OFD packet to send [14:16:31]OFD Sender: No OFD packet to send [14:16:36]OFD Sender: No OFD packet to send [14:16:41]OFD Sender: No OFD packet to send [14:16:46]OFD Sender: No OFD packet to send [14:16:51]OFD Sender: No OFD packet to send [14:16:56]OFD Sender: No OFD packet to send [14:17:01]OFD Sender: No OFD packet to send [14:17:06]OFD Sender: No OFD packet to send [14:17:11]OFD Sender: No OFD packet to send [14:17:16]OFD Sender: No OFD packet to send [14:17:21]OFD Sender: No OFD packet to send [14:17:26]OFD Sender: No OFD packet to send [14:17:31]OFD Sender: No OFD packet to send [14:17:36]OFD Sender: No OFD packet to send [14:17:41]OFD Sender: No OFD packet to send [14:17:46]OFD Sender: No OFD packet to send [14:17:51]OFD Sender: No OFD packet to send [14:17:56]OFD Sender: No OFD packet to send [14:18:01]OFD Sender: No OFD packet to send [14:18:06]OFD Sender: No OFD packet to send [14:18:11]OFD Sender: No OFD packet to send [14:18:16]OFD Sender: No OFD packet to send [14:18:21]OFD Sender: No OFD packet to send [14:18:26]OFD Sender: No OFD packet to send [14:18:31]OFD Sender: No OFD packet to send [14:18:36]OFD Sender: No OFD packet to send [14:18:41]OFD Sender: No OFD packet to send [14:18:46]OFD Sender: No OFD packet to send [14:18:51]OFD Sender: No OFD packet to send [14:18:55]accept exits with 7 [14:18:55]New connection [14:18:55]New thread 3066686820 created [14:18:55]Thread 3066830180 joined [14:18:55]Waiting for new connection... [14:18:55] Sock 7.Parse request [14:18:55]Sock 7.Check first char [14:18:55]Sock 7.First char is OK [14:18:55]request: POST /json_proto HTTP/1.0 [14:18:55]Method: POST [14:18:55]URL: /json_proto [14:18:55]Method is POST - this is cgi request [14:18:55]url: /json_proto [14:18:55]query_string will be loaded in cgi processing [14:18:55]execute_cgi json_proto POST (null) [14:18:55]execute_cgi path=json_proto method=POST [14:18:55]POST find Content-Length [14:18:55]Host: 172.17.58.3:8080 [14:18:55]Content-Length: 662 [14:18:55]Content-Type: application/json [14:18:55] [14:18:55]POST finish read [14:18:55]Found Content-Length = 662 [14:18:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160782", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 20.000, "sum" : 1318.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "payments": [ { "type": 0, "sum" : 1318.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:55]execute_script... [14:18: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)160782", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 20.000, "sum" : 1318.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "payments": [ { "type": 0, "sum" : 1318.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:55]POST & json_proto [14:18:55]process_json_proto [14:18:55]json parsed OK: [14:18:55]protocol is kg_v1.0 [14:18:55]action value=close_receipt [14:18:55]process_action close_receipt [14:18:55]cmd_close_receipt [14:18:55]MH_GetDate [14:18:55]Write to MH i2c: F0 00 00 DC 06 D1 [14:18:55]Write i2c OK [14:18:55]MH_I2C_Read... [14:18:55]Read from MH i2c: F0 [14:18:55]MH_I2C_Read... [14:18:55]Read from MH i2c: F0 09 00 [14:18:55]MH_I2C_Read... [14:18:55]Read from MH i2c: F0 09 00 DC 06 00 50 6B BB 66 DC E4 6D 64 47 [14:18:55]GetLastDocTimeStamp 1723557748 [14:18:55]current date 1723558736 [14:18:55]FM_GetShiftState [14:18:55]SAM_PROTO_GetShiftState [14:18:55]wFMCommunicate request_size=4 [14:18:55]MH_SAM_APDU [14:18:55]CAPDU: 80 13 01 00 [14:18:55]Write to MH i2c: E2 08 00 DD 06 80 13 01 00 00 00 00 00 60 [14:18:55]Write i2c OK [14:18:55]MH_I2C_Read... [14:18:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:55]Read from MH i2c: E2 [14:18:55]MH_I2C_Read... [14:18:55]Read from MH i2c: E2 0E 00 [14:18:55]MH_I2C_Read... [14:18:55]Read from MH i2c: E2 0E 00 DD 06 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 7E [14:18:55]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [14:18:55]wFMCommunicate OK [14:18:55]SAM_PROTO_GetShiftState done [14:18:55]FM_GetShiftState done [14:18:55]opened in 1723506770 [14:18:55]opened+sec_in_day 1723593170 [14:18:55]quantity*price = 131800 [14:18:55]sum+1 = 131801 [14:18:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1318.00 Внесено: 1400.00 СДАЧА: 82.00 НСП 1% : 11.66 НДС 12% : 139.96 Наличными: 1318.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 63 13.08.2024 14:18 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103152 ФПД: 260574336849481 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T141856&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103152&fm=260574336849481&tin=02508201610067®Number=0000000000092718&sum=131800 [14:18:56]StoreToDocumentArchive [14:18:56]shift 464 fd 103152 [14:18:56]save to /storage/0464/doc_00103152 [14:18:56]save last doc name /storage/0464/doc_00103152 to /storage/kkm_last_doc_name [14:18:56]save OK [14:18:56]Clear old archive folders... [14:18:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:18:56]tlvbuf is 0154F2D0 [14:18:56]SAM_PROTO_ClearQueue [14:18:56]wFMCommunicate request_size=4 [14:18:56]MH_SAM_APDU [14:18:56]CAPDU: 80 09 00 00 [14:18:56]Write to MH i2c: E2 08 00 EA 06 80 09 00 00 00 00 00 00 62 [14:18:56]Write i2c OK [14:18:56]MH_I2C_Read... [14:18:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:18:56]Read from MH i2c: E2 [14:18:56]MH_I2C_Read... [14:18:56]Read from MH i2c: E2 03 00 [14:18:56]MH_I2C_Read... [14:18:56]Read from MH i2c: E2 03 00 EA 06 00 90 00 64 [14:18:56]RAPDU: 90 00 [14:18:56]wFMCommunicate OK [14:18:56]SAM_PROTO_ClearQueue done [14:18:56]KKMCreateOFDPacket [14:18:56]OFDProtocolAddRootSTLVToBuf [14:18:56]FM_MakeSignedData [14:18:56]FM_MakeSignedData [14:18:56]SAM_PROTO_SignData [14:18:56]wFMCommunicate request_size=4 [14:18:56]MH_SAM_APDU [14:18:56]CAPDU: 80 0D 01 02 [14:18:56]Write to MH i2c: E2 08 00 EB 06 80 0D 01 02 00 00 00 00 6A [14:18:56]Write i2c OK [14:18:56]MH_I2C_Read... [14:18:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:18:56]OFD Sender: No OFD packet to send [14:18:56]Read from MH i2c: E2 [14:18:56]MH_I2C_Read... [14:18:56]Read from MH i2c: E2 03 00 [14:18:56]MH_I2C_Read... [14:18:56]Read from MH i2c: E2 03 00 EB 06 00 90 00 65 [14:18:56]RAPDU: 90 00 [14:18:56]wFMCommunicate OK [14:18:56]wFMCommunicate request_size=255 [14:18:56]MH_SAM_APDU [14:18: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 20 4E 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 D8 02 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 02 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 36 00 00 00 00 07 04 06 00 D8 02 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 50 6B BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 F0 92 01 00 35 04 06 00 EC [14:18:56]Write to MH i2c: E2 02 01 EC 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 D8 02 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 02 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 36 00 00 00 00 07 04 06 00 D8 02 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 50 6B BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 F0 92 01 00 35 04 06 00 EC 00 00 1F [14:18:56]Write i2c OK [14:18:56]MH_I2C_Read... [14:18:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:57]Read from MH i2c: E2 [14:18:57]MH_I2C_Read... [14:18:57]Read from MH i2c: E2 03 00 [14:18:57]MH_I2C_Read... [14:18:57]Read from MH i2c: E2 03 00 EC 06 00 90 00 66 [14:18:57]RAPDU: 90 00 [14:18:57]wFMCommunicate OK [14:18:57]wFMCommunicate request_size=10 [14:18:57]MH_SAM_APDU [14:18:57]CAPDU: 80 0D 02 02 05 FD B0 C9 16 49 [14:18:57]Write to MH i2c: E2 0D 00 ED 06 80 0D 02 02 05 00 FD B0 C9 16 49 00 00 4C [14:18:57]Write i2c OK [14:18:57]MH_I2C_Read... [14:18:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:57]Read from MH i2c: E2 [14:18:57]MH_I2C_Read... [14:18:57]Read from MH i2c: E2 03 00 [14:18:57]MH_I2C_Read... [14:18:57]Read from MH i2c: E2 03 00 ED 06 00 90 00 67 [14:18:57]RAPDU: 90 00 [14:18:57]wFMCommunicate OK [14:18:57]wFMCommunicate request_size=4 [14:18:57]MH_SAM_APDU [14:18:57]CAPDU: 80 0D 03 02 [14:18:57]Write to MH i2c: E2 08 00 EE 06 80 0D 03 02 00 00 00 00 6F [14:18:57]Write i2c OK [14:18:57]MH_I2C_Read... [14:18:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:18:57]Read from MH i2c: E2 [14:18:57]MH_I2C_Read... [14:18:57]Read from MH i2c: E2 0B 00 [14:18:57]MH_I2C_Read... [14:18:57]Read from MH i2c: E2 0B 00 EE 06 00 B8 1A 37 F6 6B 21 28 36 90 00 59 [14:18:57]RAPDU: B8 1A 37 F6 6B 21 28 36 90 00 [14:18:57]wFMCommunicate OK [14:18:57]SAM_PROTO_SignData done [14:18:57]FM_MakeSignedData done [14:18:57]CreateOFDProtocolMessage [14:18:57]wFMCommunicate request_size=4 [14:18:57]MH_SAM_APDU [14:18:57]CAPDU: 80 11 00 00 [14:18:57]Write to MH i2c: E2 08 00 EF 06 80 11 00 00 00 00 00 00 6F [14:18:57]Write i2c OK [14:18:57]MH_I2C_Read... [14:18:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:57]Read from MH i2c: E2 [14:18:57]MH_I2C_Read... [14:18:57]Read from MH i2c: E2 17 00 [14:18:57]MH_I2C_Read... [14:18:57]Read from MH i2c: E2 17 00 EF 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 C3 [14:18:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [14:18:57]wFMCommunicate OK [14:18:57]CreateOFDProtocolMessage done [14:18:57]OFDSenderStorePacket 103152 [14:18:57]StoreOFDPacket docnum=103152 [14:18:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 71 A2 07 01 B6 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 20 4E 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 D8 02 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 02 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 36 00 00 00 00 07 04 06 00 D8 02 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 50 6B BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 F0 92 01 00 35 04 06 00 EC FD B0 C9 16 49 B8 1A 37 F6 6B 21 28 36 [14:18:57]CheckFolder [14:18:57]dirname=/storage/ofd_packets [14:18:57]CheckFolder done [14:18:57]ProducePacketName [14:18:57]name=ofd_packets/00103152 [14:18:57]NVStorageSaveData ofd_packets/00103152 [14:18:57]File name is /storage/ofd_packets/00103152 [14:18:57]Write 301 bytes [14:18:57]NVStorageSaveData done [14:18:57]OFDSenderStorePacket done [14:18:57]KKMCreateOFDPacket done [14:18:57]NVStorageSaveData kkm_last_timestamp [14:18:57]File name is /storage/kkm_last_timestamp [14:18:57]Write 4 bytes [14:18:57]NVStorageSaveData done [14:18:57]ExternCall_PrintAddStr [14:18:57]wPrintStart [14:18:57]Write to MH i2c: 01 00 00 F0 06 F6 [14:18:57]Write i2c OK [14:18:57]MH_I2C_Read... [14:18:57]Read from MH i2c: 01 [14:18:57]MH_I2C_Read... [14:18:57]Read from MH i2c: 01 07 00 [14:18:57]MH_I2C_Read... [14:18:57]Read from MH i2c: 01 07 00 F0 06 00 00 00 00 00 FF 0F 0B [14:18:57]RasterBufferAndPrint [14:18:57]line Счет N : (1)160782 [14:18:57]line ИНН: 02508201610067 [14:18:57]line Контрольно-Кассовый Чек [14:18:57]line ПРОДАЖА [14:18:57]line ТРК (МРК, ГНК) : 3 [14:18:57]line Товар: 2710124130 [14:18:57]line Аи-92-К-5 [14:18:57]line 20.000 * 65.90 [14:18:57]line = 1318.00 [14:18:57]line НДС 12% НСП 1% [14:18:57]line > о реализуемом товаре [14:18:57]line ИТОГО: 1318.00 [14:18:57]line Внесено: 1400.00 [14:18:57]line СДАЧА: 82.00 [14:18:57]line НСП 1% : 11.66 [14:18:57]line НДС 12% : 139.96 [14:18:57]line Наличными: 1318.00 [14:18:57]line Безнал.: 0.00 [14:18:57]line Место: АЗС № 38 "Партнер Нефть" [14:18:57]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [14:18:57]line СНО: Общий режим [14:18:57]line Чек 63 13.08.2024 14:18 [14:18:57]line Смена: 464 ФФД: 1.0 [14:18:57]line ЗНМ: 0300000126 [14:18:57]line РНМ: 0000000000092718 [14:18:57]line Версия ККМ: 001 [14:18:57]line ФМ: 0000000000875058 [14:18:57]line ФД: 103152 [14:18:57]line ФПД: 260574336849481 [14:18:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T141856&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103152&fm=260574336849481&tin=02508201610067®Number=0000000000092718&sum=131800 [14:18:57]OFD Sender: Processing packet 103152 [packets to send 69, broken 68] [14:18:57]ProducePacketName [14:18:57]name=ofd_packets/00103152 [14:18:57]OFD Sender: To server: pG, [14:18:57]CommunicateWithHost lk.salyk.kg:30040 [14:18:57]ConnectInit lk.salyk.kg [14:18:57]written 0, free lines is 4095 [14:18:57]Connected sock=10 [14:18:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 71 A2 07 01 B6 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 20 4E 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 D8 02 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 02 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 36 00 00 00 00 07 04 06 00 D8 02 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 50 6B BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 F0 92 01 00 35 04 06 00 EC FD B0 C9 16 49 B8 1A 37 F6 6B 21 28 36 [14:18:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 21 D9 47 00 D0 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 F0 92 01 00 F4 03 04 00 C3 11 BB 66 B6 04 01 00 00 FE D0 F9 EE 66 3C DE EE [14:18:57]CommunicateWithHost err = 0 [14:18:57]CheckOFDResponse [14:18:57]1017 (14) - 77093643461234 [14:18:57]1041 (16) - 0000000000875058 [14:18:57]1040 (4) - 103152 [14:18:57]1012 (4) - 13.08.2024 07:56 [14:18:57]1206 (1) - 0 [14:18:57]OFD Sender: Remove packet 103152 [14:18:57]ProducePacketName [14:18:57]name=ofd_packets/00103152 [14:18:57]NVStorageDeleteData [14:18:58]Write to MH i2c: 01 00 00 1A 07 21 [14:18:58]Write i2c OK [14:18:58]MH_I2C_Read... [14:18:58]Read from MH i2c: 01 [14:18:58]MH_I2C_Read... [14:18:58]Read from MH i2c: 01 07 00 [14:18:58]MH_I2C_Read... [14:18:58]Read from MH i2c: 01 07 00 1A 07 00 00 00 00 00 FA 0C 2E [14:18:58]RasterBufferAndPrint [14:18:58]line [14:18:58]line [14:18:58]line [14:18:58]line [14:18:58]line [14:18:58]written 0, free lines is 3328 [14:18:58]MH_Cut [14:18:58]Write to MH i2c: D1 01 00 21 07 01 FA [14:18:58]Write i2c OK [14:18:58]MH_I2C_Read... [14:18:58]Read from MH i2c: D1 [14:18:58]MH_I2C_Read... [14:18:58]Read from MH i2c: D1 01 00 [14:18:58]MH_I2C_Read... [14:18:58]Read from MH i2c: D1 01 00 21 07 00 F9 [14:18:58]Write to MH i2c: 01 00 00 22 07 29 [14:18:58]Write i2c OK [14:18:58]MH_I2C_Read... [14:18:58]OFD Sender: No OFD packet to send [14:18:58]*** Cut start [14:18:58]*** Purtial cut [14:18:58]*** CUTSNS_PIN = 0 [14:18:59]*** Stage 1: CUTSNS_PIN = 1 [14:19:00]Read from MH i2c: 01 [14:19:00]MH_I2C_Read... [14:19:00]*** Stop cut motor [14:19:00]*** Cut end [14:19:00]Read from MH i2c: 01 07 00 [14:19:00]MH_I2C_Read... [14:19:00]Read from MH i2c: 01 07 00 22 07 00 00 00 00 00 FF 0F 3E [14:19:00]process_action close_receipt done [14:19:00]requested_data is exist [14:19:00]produce_requested_data [14:19:00]requested_item fm.sn is exist - process it [14:19:00]wFMCommunicate request_size=4 [14:19:00]MH_SAM_APDU [14:19:00]CAPDU: 80 11 00 00 [14:19:00]Write to MH i2c: E2 08 00 23 07 80 11 00 00 00 00 00 00 A4 [14:19:00]Write i2c OK [14:19:00]MH_I2C_Read... [14:19:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:00]Read from MH i2c: E2 [14:19:00]MH_I2C_Read... [14:19:00]Read from MH i2c: E2 17 00 [14:19:00]MH_I2C_Read... [14:19:00]Read from MH i2c: E2 17 00 23 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 F8 [14:19:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [14:19:00]wFMCommunicate OK [14:19:00]requested_item fd.num is exist - process it [14:19:00]SAM_PROTO_GetFieldsCounters [14:19:00]wFMCommunicate request_size=4 [14:19:00]MH_SAM_APDU [14:19:00]CAPDU: 80 13 00 00 [14:19:00]Write to MH i2c: E2 08 00 24 07 80 13 00 00 00 00 00 00 A7 [14:19:00]Write i2c OK [14:19:00]MH_I2C_Read... [14:19:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:19:01]Read from MH i2c: E2 [14:19:01]MH_I2C_Read... [14:19:01]Read from MH i2c: E2 62 00 [14:19:01]MH_I2C_Read... [14:19:01]Read from MH i2c: E2 62 00 24 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 F0 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [14:19:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 F0 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:19:01]wFMCommunicate OK [14:19:01]SAM_PROTO_GetFieldsCounters done [14:19:01]requested_item shift.num is exist - process it [14:19:01]requested_item shift.opened is exist - process it [14:19:01]req_shift_opened [14:19:01]FM_GetShiftState [14:19:01]SAM_PROTO_GetShiftState [14:19:01]wFMCommunicate request_size=4 [14:19:01]MH_SAM_APDU [14:19:01]CAPDU: 80 13 01 00 [14:19:01]Write to MH i2c: E2 08 00 25 07 80 13 01 00 00 00 00 00 A9 [14:19:01]Write i2c OK [14:19:01]MH_I2C_Read... [14:19:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:01]Read from MH i2c: E2 [14:19:01]MH_I2C_Read... [14:19:01]Read from MH i2c: E2 0E 00 [14:19:01]MH_I2C_Read... [14:19:01]Read from MH i2c: E2 0E 00 25 07 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 C7 [14:19:01]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [14:19:01]wFMCommunicate OK [14:19:01]SAM_PROTO_GetShiftState done [14:19:01]FM_GetShiftState done [14:19:01]req_shift_opened done [14:19:01]requested_item shift.open_date is exist - process it [14:19:01]req_shift_open_date [14:19:01]req_shift_open_date done [14:19:01]produce_requested_data done [14:19:01]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103152,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [14:19:01]process_action_free close_receipt [14:19:01]json_value_free [14:19:01]json_value_free done [14:19:01]process_json_proto returns [14:19:01]Send response to host [14:19:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103152,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [14:19:01]free response buf [14:19:01]execute_script done [14:19:01]execute_script returns [14:19:01]free content buf [14:19:01]Sock 7.Close socket [14:19:01]Sock 7.Thread stoped [14:19:03]OFD Sender: No OFD packet to send [14:19:08]OFD Sender: No OFD packet to send [14:19:13]OFD Sender: No OFD packet to send [14:19:18]OFD Sender: No OFD packet to send [14:19:23]OFD Sender: No OFD packet to send [14:19:25]accept exits with 9 [14:19:25]New connection [14:19:25]New thread 3066830180 created [14:19:25]Thread 3066686820 joined [14:19:25]Waiting for new connection... [14:19:25] Sock 9.Parse request [14:19:25]Sock 9.Check first char [14:19:25]Sock 9.First char is OK [14:19:25]request: POST /json_proto HTTP/1.0 [14:19:25]Method: POST [14:19:25]URL: /json_proto [14:19:25]Method is POST - this is cgi request [14:19:25]url: /json_proto [14:19:25]query_string will be loaded in cgi processing [14:19:25]execute_cgi json_proto POST (null) [14:19:25]execute_cgi path=json_proto method=POST [14:19:25]POST find Content-Length [14:19:25]Host: 172.17.58.3:8080 [14:19:25]Content-Length: 1185 [14:19:25]Content-Type: application/json [14:19:25] [14:19:25]POST finish read [14:19:25]Found Content-Length = 1185 [14:19:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 38\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0438\u0440\u043E\u0432\u0430 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)160781\u000A13.08.2024 14:28\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 5\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 30.000 x 73.80\u000A\u0418\u0422\u041E\u0413: 2214.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A91346\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:25]execute_script... [14:19:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 38\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0438\u0440\u043E\u0432\u0430 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)160781\u000A13.08.2024 14:28\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 5\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 30.000 x 73.80\u000A\u0418\u0422\u041E\u0413: 2214.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A91346\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:25]POST & json_proto [14:19:25]process_json_proto [14:19:25]json parsed OK: [14:19:25]protocol is kg_v1.0 [14:19:25]action value=print_text [14:19:25]process_action print_text [14:19:25]cmd_print_text [14:19:25]ExternCall_PrintAddStr [14:19:25]wPrintStart [14:19:25]Write to MH i2c: 01 00 00 26 07 2D [14:19:25]Write i2c OK [14:19:25]MH_I2C_Read... [14:19:25]Read from MH i2c: 01 [14:19:25]MH_I2C_Read... [14:19:25]Read from MH i2c: 01 07 00 [14:19:25]MH_I2C_Read... [14:19:25]Read from MH i2c: 01 07 00 26 07 00 00 00 00 00 FF 0F 42 [14:19:25]RasterBufferAndPrint [14:19:25]line *****ТОВАРНЫЙ ЧЕК***** [14:19:25]line АЗС 38 [14:19:25]line Партнер нефть [14:19:25]line 02508201610067 [14:19:25]line Кассир : Таирова А. [14:19:25]line Счет N : (1)160781 [14:19:25]line 13.08.2024 14:28 [14:19:25]line ПРОДАЖА [14:19:25]line ТРК (МРК, ГНК): 5 [14:19:25]line Вид ГСМ : 2710194210 [14:19:25]line ДТ-К-5 [14:19:25]line 30.000 x 73.80 [14:19:25]line ИТОГ: 2214.00 [14:19:25]line Тип оплаты: Талоны: Топливная Карта [14:19:25]line 91346 [14:19:25]line ______________________ [14:19:25]line (подпись) [14:19:25]written 0, free lines is 4095 [14:19:25]Write to MH i2c: 01 00 00 3A 07 41 [14:19:25]Write i2c OK [14:19:25]MH_I2C_Read... [14:19:25]Read from MH i2c: 01 [14:19:25]MH_I2C_Read... [14:19:25]Read from MH i2c: 01 07 00 [14:19:25]MH_I2C_Read... [14:19:25]Read from MH i2c: 01 07 00 3A 07 00 00 00 00 00 0D 0E 63 [14:19:25]RasterBufferAndPrint [14:19:25]line [14:19:25]line [14:19:25]line [14:19:25]line [14:19:25]line [14:19:25]written 0, free lines is 3598 [14:19:25]MH_Cut [14:19:25]Write to MH i2c: D1 01 00 41 07 01 1A [14:19:25]Write i2c OK [14:19:25]MH_I2C_Read... [14:19:25]Read from MH i2c: D1 [14:19:25]MH_I2C_Read... [14:19:25]Read from MH i2c: D1 01 00 [14:19:25]MH_I2C_Read... [14:19:25]Read from MH i2c: D1 01 00 41 07 00 19 [14:19:25]Write to MH i2c: 01 00 00 42 07 49 [14:19:25]Write i2c OK [14:19:25]MH_I2C_Read... [14:19:25]*** Cut start [14:19:25]*** Purtial cut [14:19:25]*** Stage 1: CUTSNS_PIN = 1 [14:19:26]Read from MH i2c: 01 [14:19:26]MH_I2C_Read... [14:19:26]*** Stop cut motor [14:19:26]*** Cut end [14:19:26]Read from MH i2c: 01 07 00 [14:19:26]MH_I2C_Read... [14:19:26]Read from MH i2c: 01 07 00 42 07 00 00 00 00 00 FF 0F 5E [14:19:26]process_action print_text done [14:19:26]requested_data is exist [14:19:26]produce_requested_data [14:19:26]requested_item fm.sn is exist - process it [14:19:26]wFMCommunicate request_size=4 [14:19:26]MH_SAM_APDU [14:19:26]CAPDU: 80 11 00 00 [14:19:26]Write to MH i2c: E2 08 00 43 07 80 11 00 00 00 00 00 00 C4 [14:19:26]Write i2c OK [14:19:26]MH_I2C_Read... [14:19:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:26]Read from MH i2c: E2 [14:19:26]MH_I2C_Read... [14:19:26]Read from MH i2c: E2 17 00 [14:19:26]MH_I2C_Read... [14:19:26]Read from MH i2c: E2 17 00 43 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 18 [14:19:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [14:19:26]wFMCommunicate OK [14:19:26]requested_item fd.num is exist - process it [14:19:26]SAM_PROTO_GetFieldsCounters [14:19:26]wFMCommunicate request_size=4 [14:19:26]MH_SAM_APDU [14:19:26]CAPDU: 80 13 00 00 [14:19:26]Write to MH i2c: E2 08 00 44 07 80 13 00 00 00 00 00 00 C7 [14:19:26]Write i2c OK [14:19:26]MH_I2C_Read... [14:19:26]Read from MH i2c: E2 [14:19:26]MH_I2C_Read... [14:19:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:19:26]Read from MH i2c: E2 62 00 [14:19:26]MH_I2C_Read... [14:19:26]Read from MH i2c: E2 62 00 44 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 F0 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [14:19:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 F0 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:19:26]wFMCommunicate OK [14:19:26]SAM_PROTO_GetFieldsCounters done [14:19:26]requested_item shift.num is exist - process it [14:19:26]requested_item shift.opened is exist - process it [14:19:26]req_shift_opened [14:19:26]FM_GetShiftState [14:19:26]SAM_PROTO_GetShiftState [14:19:26]wFMCommunicate request_size=4 [14:19:26]MH_SAM_APDU [14:19:26]CAPDU: 80 13 01 00 [14:19:26]Write to MH i2c: E2 08 00 45 07 80 13 01 00 00 00 00 00 C9 [14:19:26]Write i2c OK [14:19:26]MH_I2C_Read... [14:19:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:26]Read from MH i2c: E2 [14:19:26]MH_I2C_Read... [14:19:26]Read from MH i2c: E2 0E 00 [14:19:26]MH_I2C_Read... [14:19:26]Read from MH i2c: E2 0E 00 45 07 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 E7 [14:19:26]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [14:19:26]wFMCommunicate OK [14:19:26]SAM_PROTO_GetShiftState done [14:19:26]FM_GetShiftState done [14:19:26]req_shift_opened done [14:19:26]requested_item shift.open_date is exist - process it [14:19:26]req_shift_open_date [14:19:26]req_shift_open_date done [14:19:26]produce_requested_data done [14:19:26]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103152,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [14:19:26]process_action_free print_text [14:19:26]json_value_free [14:19:26]json_value_free done [14:19:26]process_json_proto returns [14:19:26]Send response to host [14:19:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103152,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [14:19:26]free response buf [14:19:26]execute_script done [14:19:26]execute_script returns [14:19:26]free content buf [14:19:26]Sock 9.Close socket [14:19:26]Sock 9.Thread stoped [14:19:28]OFD Sender: No OFD packet to send [14:19:33]OFD Sender: No OFD packet to send [14:19:38]OFD Sender: No OFD packet to send [14:19:43]OFD Sender: No OFD packet to send [14:19:48]OFD Sender: No OFD packet to send [14:19:53]OFD Sender: No OFD packet to send [14:19:58]OFD Sender: No OFD packet to send [14:20:03]OFD Sender: No OFD packet to send [14:20:08]OFD Sender: No OFD packet to send [14:20:13]OFD Sender: No OFD packet to send [14:20:18]OFD Sender: No OFD packet to send [14:20:23]OFD Sender: No OFD packet to send [14:20:28]OFD Sender: No OFD packet to send [14:20:33]OFD Sender: No OFD packet to send [14:20:38]OFD Sender: No OFD packet to send [14:20:43]OFD Sender: No OFD packet to send [14:20:48]OFD Sender: No OFD packet to send [14:20:53]OFD Sender: No OFD packet to send [14:20:58]OFD Sender: No OFD packet to send [14:21:03]OFD Sender: No OFD packet to send [14:21:08]OFD Sender: No OFD packet to send [14:21:13]OFD Sender: No OFD packet to send [14:21:18]OFD Sender: No OFD packet to send [14:21:23]OFD Sender: No OFD packet to send [14:21:28]OFD Sender: No OFD packet to send [14:21:33]OFD Sender: No OFD packet to send [14:21:38]OFD Sender: No OFD packet to send [14:21:43]OFD Sender: No OFD packet to send [14:21:48]OFD Sender: No OFD packet to send [14:21:53]OFD Sender: No OFD packet to send [14:21:58]OFD Sender: No OFD packet to send [14:22:03]OFD Sender: No OFD packet to send [14:22:08]OFD Sender: No OFD packet to send [14:22:13]OFD Sender: No OFD packet to send [14:22:18]OFD Sender: No OFD packet to send [14:22:23]OFD Sender: No OFD packet to send [14:22:28]OFD Sender: No OFD packet to send [14:22:33]OFD Sender: No OFD packet to send [14:22:38]OFD Sender: No OFD packet to send [14:22:43]OFD Sender: No OFD packet to send [14:22:48]OFD Sender: No OFD packet to send [14:22:53]OFD Sender: No OFD packet to send [14:22:58]OFD Sender: No OFD packet to send [14:23:03]OFD Sender: No OFD packet to send [14:23:08]OFD Sender: No OFD packet to send [14:23:13]OFD Sender: No OFD packet to send [14:23:18]OFD Sender: No OFD packet to send [14:23:23]OFD Sender: No OFD packet to send [14:23:28]OFD Sender: No OFD packet to send [14:23:33]OFD Sender: No OFD packet to send [14:23:38]OFD Sender: No OFD packet to send [14:23:43]OFD Sender: No OFD packet to send [14:23:48]OFD Sender: No OFD packet to send [14:23:53]OFD Sender: No OFD packet to send [14:23:58]OFD Sender: No OFD packet to send [14:24:03]OFD Sender: No OFD packet to send [14:24:08]OFD Sender: No OFD packet to send [14:24:13]OFD Sender: No OFD packet to send [14:24:18]OFD Sender: No OFD packet to send [14:24:23]OFD Sender: No OFD packet to send [14:24:28]OFD Sender: No OFD packet to send [14:24:33]OFD Sender: No OFD packet to send [14:24:38]OFD Sender: No OFD packet to send [14:24:43]OFD Sender: No OFD packet to send [14:24:48]OFD Sender: No OFD packet to send [14:24:53]OFD Sender: No OFD packet to send [14:24:58]OFD Sender: No OFD packet to send [14:25:03]OFD Sender: No OFD packet to send [14:25:08]OFD Sender: No OFD packet to send [14:25:13]OFD Sender: No OFD packet to send [14:25:18]OFD Sender: No OFD packet to send [14:25:23]OFD Sender: No OFD packet to send [14:25:28]OFD Sender: No OFD packet to send [14:25:33]OFD Sender: No OFD packet to send [14:25:38]OFD Sender: No OFD packet to send [14:25:43]OFD Sender: No OFD packet to send [14:25:48]OFD Sender: No OFD packet to send [14:25:53]OFD Sender: No OFD packet to send [14:25:58]OFD Sender: No OFD packet to send [14:26:03]OFD Sender: No OFD packet to send [14:26:08]OFD Sender: No OFD packet to send [14:26:13]OFD Sender: No OFD packet to send [14:26:18]OFD Sender: No OFD packet to send [14:26:23]OFD Sender: No OFD packet to send [14:26:28]OFD Sender: No OFD packet to send [14:26:33]OFD Sender: No OFD packet to send [14:26:38]OFD Sender: No OFD packet to send [14:26:43]OFD Sender: No OFD packet to send [14:26:48]OFD Sender: No OFD packet to send [14:26:53]OFD Sender: No OFD packet to send [14:26:58]OFD Sender: No OFD packet to send [14:27:03]OFD Sender: No OFD packet to send [14:27:08]OFD Sender: No OFD packet to send [14:27:13]OFD Sender: No OFD packet to send [14:27:18]OFD Sender: No OFD packet to send [14:27:23]OFD Sender: No OFD packet to send [14:27:28]OFD Sender: No OFD packet to send [14:27:33]OFD Sender: No OFD packet to send [14:27:38]OFD Sender: No OFD packet to send [14:27:43]OFD Sender: No OFD packet to send [14:27:48]OFD Sender: No OFD packet to send [14:27:53]OFD Sender: No OFD packet to send [14:27:58]OFD Sender: No OFD packet to send [14:28:03]OFD Sender: No OFD packet to send [14:28:08]OFD Sender: No OFD packet to send [14:28:13]OFD Sender: No OFD packet to send [14:28:18]OFD Sender: No OFD packet to send [14:28:23]OFD Sender: No OFD packet to send [14:28:28]OFD Sender: No OFD packet to send [14:28:33]OFD Sender: No OFD packet to send [14:28:38]OFD Sender: No OFD packet to send [14:28:43]OFD Sender: No OFD packet to send [14:28:48]OFD Sender: No OFD packet to send [14:28:53]OFD Sender: No OFD packet to send [14:28:58]OFD Sender: No OFD packet to send [14:29:03]OFD Sender: No OFD packet to send [14:29:08]OFD Sender: No OFD packet to send [14:29:13]OFD Sender: No OFD packet to send [14:29:18]OFD Sender: No OFD packet to send [14:29:23]OFD Sender: No OFD packet to send [14:29:28]OFD Sender: No OFD packet to send [14:29:34]OFD Sender: No OFD packet to send [14:29:39]OFD Sender: No OFD packet to send [14:29:44]OFD Sender: No OFD packet to send [14:29:49]OFD Sender: No OFD packet to send [14:29:54]OFD Sender: No OFD packet to send [14:29:59]OFD Sender: No OFD packet to send [14:30:04]OFD Sender: No OFD packet to send [14:30:09]OFD Sender: No OFD packet to send [14:30:14]OFD Sender: No OFD packet to send [14:30:19]OFD Sender: No OFD packet to send [14:30:24]OFD Sender: No OFD packet to send [14:30:29]OFD Sender: No OFD packet to send [14:30:34]OFD Sender: No OFD packet to send [14:30:39]OFD Sender: No OFD packet to send [14:30:44]OFD Sender: No OFD packet to send [14:30:49]OFD Sender: No OFD packet to send [14:30:54]OFD Sender: No OFD packet to send [14:30:59]OFD Sender: No OFD packet to send [14:31:04]OFD Sender: No OFD packet to send [14:31:09]OFD Sender: No OFD packet to send [14:31:14]OFD Sender: No OFD packet to send [14:31:19]OFD Sender: No OFD packet to send [14:31:24]OFD Sender: No OFD packet to send [14:31:29]OFD Sender: No OFD packet to send [14:31:34]OFD Sender: No OFD packet to send [14:31:39]OFD Sender: No OFD packet to send [14:31:44]OFD Sender: No OFD packet to send [14:31:49]OFD Sender: No OFD packet to send [14:31:54]OFD Sender: No OFD packet to send [14:31:59]OFD Sender: No OFD packet to send [14:32:04]OFD Sender: No OFD packet to send [14:32:09]OFD Sender: No OFD packet to send [14:32:14]OFD Sender: No OFD packet to send [14:32:19]OFD Sender: No OFD packet to send [14:32:24]OFD Sender: No OFD packet to send [14:32:29]OFD Sender: No OFD packet to send [14:32:34]OFD Sender: No OFD packet to send [14:32:39]OFD Sender: No OFD packet to send [14:32:44]OFD Sender: No OFD packet to send [14:32:49]OFD Sender: No OFD packet to send [14:32:54]OFD Sender: No OFD packet to send [14:32:59]OFD Sender: No OFD packet to send [14:33:04]OFD Sender: No OFD packet to send [14:33:09]OFD Sender: No OFD packet to send [14:33:11]accept exits with 7 [14:33:11]New connection [14:33:11]New thread 3066686820 created [14:33:11]Thread 3066830180 joined [14:33:11]Waiting for new connection... [14:33:11] Sock 7.Parse request [14:33:11]Sock 7.Check first char [14:33:11]Sock 7.First char is OK [14:33:11]request: POST /json_proto HTTP/1.0 [14:33:11]Method: POST [14:33:11]URL: /json_proto [14:33:11]Method is POST - this is cgi request [14:33:11]url: /json_proto [14:33:11]query_string will be loaded in cgi processing [14:33:11]execute_cgi json_proto POST (null) [14:33:11]execute_cgi path=json_proto method=POST [14:33:11]POST find Content-Length [14:33:11]Host: 172.17.58.3:8080 [14:33:11]Content-Length: 679 [14:33:11]Content-Type: application/json [14:33:11] [14:33:11]POST finish read [14:33:11]Found Content-Length = 679 [14:33:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 16.940, "sum" : 1250.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1250.00, "total" : 1250.00, "payments": [ { "type": 0, "sum" : 1250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:11]execute_script... [14:33: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)160783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 16.940, "sum" : 1250.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1250.00, "total" : 1250.00, "payments": [ { "type": 0, "sum" : 1250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:11]POST & json_proto [14:33:11]process_json_proto [14:33:11]json parsed OK: [14:33:11]protocol is kg_v1.0 [14:33:11]action value=close_receipt [14:33:11]process_action close_receipt [14:33:11]cmd_close_receipt [14:33:11]MH_GetDate [14:33:11]Write to MH i2c: F0 00 00 46 07 3C [14:33:11]Write i2c OK [14:33:11]MH_I2C_Read... [14:33:11]Read from MH i2c: F0 [14:33:11]MH_I2C_Read... [14:33:11]Read from MH i2c: F0 09 00 [14:33:11]MH_I2C_Read... [14:33:11]Read from MH i2c: F0 09 00 46 07 00 A7 6E BB 66 DC E4 6D 64 0C [14:33:11]GetLastDocTimeStamp 1723558736 [14:33:11]current date 1723559591 [14:33:11]FM_GetShiftState [14:33:11]SAM_PROTO_GetShiftState [14:33:11]wFMCommunicate request_size=4 [14:33:11]MH_SAM_APDU [14:33:11]CAPDU: 80 13 01 00 [14:33:11]Write to MH i2c: E2 08 00 47 07 80 13 01 00 00 00 00 00 CB [14:33:11]Write i2c OK [14:33:11]MH_I2C_Read... [14:33:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:11]Read from MH i2c: E2 [14:33:11]MH_I2C_Read... [14:33:11]Read from MH i2c: E2 0E 00 [14:33:11]MH_I2C_Read... [14:33:11]Read from MH i2c: E2 0E 00 47 07 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 E9 [14:33:11]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [14:33:11]wFMCommunicate OK [14:33:11]SAM_PROTO_GetShiftState done [14:33:11]FM_GetShiftState done [14:33:11]opened in 1723506770 [14:33:11]opened+sec_in_day 1723593170 [14:33:11]quantity*price = 125017 [14:33:11]sum+1 = 125018 [14:33:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 1250.00 Внесено: 1250.00 СДАЧА: 0.00 НСП 1% : 11.06 НДС 12% : 132.76 Наличными: 1250.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 64 13.08.2024 14:33 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103153 ФПД: 67327599291696 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T143311&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103153&fm=67327599291696&tin=02508201610067®Number=0000000000092718&sum=125000 [14:33:12]StoreToDocumentArchive [14:33:12]shift 464 fd 103153 [14:33:12]save to /storage/0464/doc_00103153 [14:33:12]save last doc name /storage/0464/doc_00103153 to /storage/kkm_last_doc_name [14:33:12]save OK [14:33:12]Clear old archive folders... [14:33:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:33:12]tlvbuf is B6EBC7A0 [14:33:12]SAM_PROTO_ClearQueue [14:33:12]wFMCommunicate request_size=4 [14:33:12]MH_SAM_APDU [14:33:12]CAPDU: 80 09 00 00 [14:33:12]Write to MH i2c: E2 08 00 54 07 80 09 00 00 00 00 00 00 CD [14:33:12]Write i2c OK [14:33:12]MH_I2C_Read... [14:33:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:12]Read from MH i2c: E2 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 03 00 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 03 00 54 07 00 90 00 CF [14:33:12]RAPDU: 90 00 [14:33:12]wFMCommunicate OK [14:33:12]SAM_PROTO_ClearQueue done [14:33:12]KKMCreateOFDPacket [14:33:12]OFDProtocolAddRootSTLVToBuf [14:33:12]FM_MakeSignedData [14:33:12]FM_MakeSignedData [14:33:12]SAM_PROTO_SignData [14:33:12]wFMCommunicate request_size=4 [14:33:12]MH_SAM_APDU [14:33:12]CAPDU: 80 0D 01 02 [14:33:12]Write to MH i2c: E2 08 00 55 07 80 0D 01 02 00 00 00 00 D5 [14:33:12]Write i2c OK [14:33:12]MH_I2C_Read... [14:33:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:12]Read from MH i2c: E2 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 03 00 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 03 00 55 07 00 90 00 D0 [14:33:12]RAPDU: 90 00 [14:33:12]wFMCommunicate OK [14:33:12]wFMCommunicate request_size=255 [14:33:12]MH_SAM_APDU [14:33:12]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 42 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 59 E8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 E8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 33 00 00 00 00 07 04 06 00 48 E8 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 A7 6E BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 F1 92 01 00 35 04 06 00 3D 3B ED A3 [14:33:12]Write to MH i2c: E2 02 01 56 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 42 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 59 E8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 E8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 33 00 00 00 00 07 04 06 00 48 E8 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 A7 6E BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 F1 92 01 00 35 04 06 00 3D 3B ED A3 00 00 6F [14:33:12]Write i2c OK [14:33:12]MH_I2C_Read... [14:33:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:12]Read from MH i2c: E2 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 03 00 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 03 00 56 07 00 90 00 D1 [14:33:12]RAPDU: 90 00 [14:33:12]wFMCommunicate OK [14:33:12]wFMCommunicate request_size=7 [14:33:12]MH_SAM_APDU [14:33:12]CAPDU: 80 0D 02 02 02 AD 30 [14:33:12]Write to MH i2c: E2 0A 00 57 07 80 0D 02 02 02 00 AD 30 00 00 B9 [14:33:12]Write i2c OK [14:33:12]MH_I2C_Read... [14:33:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:12]Read from MH i2c: E2 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 03 00 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 03 00 57 07 00 90 00 D2 [14:33:12]RAPDU: 90 00 [14:33:12]wFMCommunicate OK [14:33:12]wFMCommunicate request_size=4 [14:33:12]MH_SAM_APDU [14:33:12]CAPDU: 80 0D 03 02 [14:33:12]Write to MH i2c: E2 08 00 58 07 80 0D 03 02 00 00 00 00 DA [14:33:12]Write i2c OK [14:33:12]MH_I2C_Read... [14:33:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:12]Read from MH i2c: E2 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 0B 00 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 0B 00 58 07 00 3C 6C 38 B6 FA 2A 06 C7 90 00 62 [14:33:12]RAPDU: 3C 6C 38 B6 FA 2A 06 C7 90 00 [14:33:12]wFMCommunicate OK [14:33:12]SAM_PROTO_SignData done [14:33:12]FM_MakeSignedData done [14:33:12]CreateOFDProtocolMessage [14:33:12]wFMCommunicate request_size=4 [14:33:12]MH_SAM_APDU [14:33:12]CAPDU: 80 11 00 00 [14:33:12]Write to MH i2c: E2 08 00 59 07 80 11 00 00 00 00 00 00 DA [14:33:12]Write i2c OK [14:33:12]MH_I2C_Read... [14:33:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:12]Read from MH i2c: E2 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 17 00 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 17 00 59 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 2E [14:33:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [14:33:12]wFMCommunicate OK [14:33:12]CreateOFDProtocolMessage done [14:33:12]OFDSenderStorePacket 103153 [14:33:12]StoreOFDPacket docnum=103153 [14:33:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 B0 78 04 01 8C 10 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 42 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 59 E8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 E8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 33 00 00 00 00 07 04 06 00 48 E8 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 A7 6E BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 F1 92 01 00 35 04 06 00 3D 3B ED A3 AD 30 3C 6C 38 B6 FA 2A 06 C7 [14:33:12]CheckFolder [14:33:12]dirname=/storage/ofd_packets [14:33:12]CheckFolder done [14:33:12]ProducePacketName [14:33:12]name=ofd_packets/00103153 [14:33:12]NVStorageSaveData ofd_packets/00103153 [14:33:12]File name is /storage/ofd_packets/00103153 [14:33:12]Write 298 bytes [14:33:12]NVStorageSaveData done [14:33:12]OFDSenderStorePacket done [14:33:12]KKMCreateOFDPacket done [14:33:12]NVStorageSaveData kkm_last_timestamp [14:33:12]File name is /storage/kkm_last_timestamp [14:33:12]Write 4 bytes [14:33:12]NVStorageSaveData done [14:33:12]ExternCall_PrintAddStr [14:33:12]wPrintStart [14:33:12]Write to MH i2c: 01 00 00 5A 07 61 [14:33:12]Write i2c OK [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: 01 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: 01 07 00 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: 01 07 00 5A 07 00 00 00 00 00 FF 0F 76 [14:33:12]RasterBufferAndPrint [14:33:12]line Счет N : (1)160783 [14:33:12]line ИНН: 02508201610067 [14:33:12]line Контрольно-Кассовый Чек [14:33:12]line ПРОДАЖА [14:33:12]line ТРК (МРК, ГНК) : 13 [14:33:12]line Товар: 2710194210 [14:33:12]line ДТ-К-5 [14:33:12]line 16.940 * 73.80 [14:33:12]line = 1250.17 [14:33:12]line НДС 12% НСП 1% [14:33:12]line > о реализуемом товаре [14:33:12]line ОКРУГЛЕНИЕ: -0.17 [14:33:12]line ИТОГО: 1250.00 [14:33:12]line Внесено: 1250.00 [14:33:12]line СДАЧА: 0.00 [14:33:12]line НСП 1% : 11.06 [14:33:12]line НДС 12% : 132.76 [14:33:12]line Наличными: 1250.00 [14:33:12]line Безнал.: 0.00 [14:33:12]line Место: АЗС № 38 "Партнер Нефть" [14:33:12]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [14:33:12]line СНО: Общий режим [14:33:12]line Чек 64 13.08.2024 14:33 [14:33:12]line Смена: 464 ФФД: 1.0 [14:33:12]line ЗНМ: 0300000126 [14:33:12]line РНМ: 0000000000092718 [14:33:12]line Версия ККМ: 001 [14:33:12]line ФМ: 0000000000875058 [14:33:12]line ФД: 103153 [14:33:12]line ФПД: 67327599291696 [14:33:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T143311&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103153&fm=67327599291696&tin=02508201610067®Number=0000000000092718&sum=125000 [14:33:13]OFD Sender: Processing packet 103153 [packets to send 69, broken 68] [14:33:13]ProducePacketName [14:33:13]name=ofd_packets/00103153 [14:33:13]OFD Sender: To server: pG, [14:33:13]CommunicateWithHost lk.salyk.kg:30040 [14:33:13]ConnectInit lk.salyk.kg [14:33:13]written 0, free lines is 4095 [14:33:13]Connected sock=10 [14:33:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 B0 78 04 01 8C 10 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 42 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 59 E8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 E8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 33 00 00 00 00 07 04 06 00 48 E8 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 A7 6E BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 F1 92 01 00 35 04 06 00 3D 3B ED A3 AD 30 3C 6C 38 B6 FA 2A 06 C7 [14:33:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 C6 7C 47 00 7E CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 F1 92 01 00 F4 03 04 00 1A 15 BB 66 B6 04 01 00 00 50 9A 6B 04 19 0F 76 31 [14:33:13]CommunicateWithHost err = 0 [14:33:13]CheckOFDResponse [14:33:13]1017 (14) - 77093643461234 [14:33:13]1041 (16) - 0000000000875058 [14:33:13]1040 (4) - 103153 [14:33:13]1012 (4) - 13.08.2024 08:11 [14:33:13]1206 (1) - 0 [14:33:13]OFD Sender: Remove packet 103153 [14:33:13]ProducePacketName [14:33:13]name=ofd_packets/00103153 [14:33:13]NVStorageDeleteData [14:33:13]Write to MH i2c: 01 00 00 85 07 8C [14:33:13]Write i2c OK [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: 01 [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: 01 07 00 [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: 01 07 00 85 07 00 00 00 00 00 E2 0C 81 [14:33:13]RasterBufferAndPrint [14:33:13]line [14:33:13]line [14:33:13]line [14:33:13]line [14:33:13]line [14:33:13]written 0, free lines is 3304 [14:33:13]MH_Cut [14:33:13]Write to MH i2c: D1 01 00 8C 07 01 65 [14:33:13]Write i2c OK [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: D1 [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: D1 01 00 [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: D1 01 00 8C 07 00 64 [14:33:13]Write to MH i2c: 01 00 00 8D 07 94 [14:33:13]Write i2c OK [14:33:13]MH_I2C_Read... [14:33:13]OFD Sender: No OFD packet to send [14:33:14]*** Cut start [14:33:14]*** Purtial cut [14:33:14]*** CUTSNS_PIN = 0 [14:33:14]*** Stage 1: CUTSNS_PIN = 1 [14:33:16]Read from MH i2c: 01 [14:33:16]MH_I2C_Read... [14:33:16]*** Stop cut motor [14:33:16]*** Cut end [14:33:16]Read from MH i2c: 01 07 00 [14:33:16]MH_I2C_Read... [14:33:16]Read from MH i2c: 01 07 00 8D 07 00 00 00 00 00 FF 0F A9 [14:33:16]process_action close_receipt done [14:33:16]requested_data is exist [14:33:16]produce_requested_data [14:33:16]requested_item fm.sn is exist - process it [14:33:16]wFMCommunicate request_size=4 [14:33:16]MH_SAM_APDU [14:33:16]CAPDU: 80 11 00 00 [14:33:16]Write to MH i2c: E2 08 00 8E 07 80 11 00 00 00 00 00 00 0F [14:33:16]Write i2c OK [14:33:16]MH_I2C_Read... [14:33:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:16]Read from MH i2c: E2 [14:33:16]MH_I2C_Read... [14:33:16]Read from MH i2c: E2 17 00 [14:33:16]MH_I2C_Read... [14:33:16]Read from MH i2c: E2 17 00 8E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 63 [14:33:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [14:33:16]wFMCommunicate OK [14:33:16]requested_item fd.num is exist - process it [14:33:16]SAM_PROTO_GetFieldsCounters [14:33:16]wFMCommunicate request_size=4 [14:33:16]MH_SAM_APDU [14:33:16]CAPDU: 80 13 00 00 [14:33:16]Write to MH i2c: E2 08 00 8F 07 80 13 00 00 00 00 00 00 12 [14:33:16]Write i2c OK [14:33:16]MH_I2C_Read... [14:33:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:16]Read from MH i2c: E2 [14:33:16]MH_I2C_Read... [14:33:16]Read from MH i2c: E2 62 00 [14:33:16]MH_I2C_Read... [14:33:16]Read from MH i2c: E2 62 00 8F 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 F1 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [14:33:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 F1 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:33:16]wFMCommunicate OK [14:33:16]SAM_PROTO_GetFieldsCounters done [14:33:16]requested_item shift.num is exist - process it [14:33:16]requested_item shift.opened is exist - process it [14:33:16]req_shift_opened [14:33:16]FM_GetShiftState [14:33:16]SAM_PROTO_GetShiftState [14:33:16]wFMCommunicate request_size=4 [14:33:16]MH_SAM_APDU [14:33:16]CAPDU: 80 13 01 00 [14:33:16]Write to MH i2c: E2 08 00 90 07 80 13 01 00 00 00 00 00 14 [14:33:16]Write i2c OK [14:33:16]MH_I2C_Read... [14:33:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:16]Read from MH i2c: E2 [14:33:16]MH_I2C_Read... [14:33:16]Read from MH i2c: E2 0E 00 [14:33:16]MH_I2C_Read... [14:33:16]Read from MH i2c: E2 0E 00 90 07 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 32 [14:33:16]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [14:33:16]wFMCommunicate OK [14:33:16]SAM_PROTO_GetShiftState done [14:33:16]FM_GetShiftState done [14:33:16]req_shift_opened done [14:33:16]requested_item shift.open_date is exist - process it [14:33:16]req_shift_open_date [14:33:16]req_shift_open_date done [14:33:16]produce_requested_data done [14:33:16]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103153,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [14:33:16]process_action_free close_receipt [14:33:16]json_value_free [14:33:16]json_value_free done [14:33:16]process_json_proto returns [14:33:16]Send response to host [14:33:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103153,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [14:33:16]free response buf [14:33:16]execute_script done [14:33:16]execute_script returns [14:33:16]free content buf [14:33:16]Sock 7.Close socket [14:33:16]Sock 7.Thread stoped [14:33:18]OFD Sender: No OFD packet to send [14:33:23]OFD Sender: No OFD packet to send [14:33:28]OFD Sender: No OFD packet to send [14:33:33]OFD Sender: No OFD packet to send [14:33:38]OFD Sender: No OFD packet to send [14:33:43]OFD Sender: No OFD packet to send [14:33:48]OFD Sender: No OFD packet to send [14:33:53]OFD Sender: No OFD packet to send [14:33:58]OFD Sender: No OFD packet to send [14:34:03]OFD Sender: No OFD packet to send [14:34:08]OFD Sender: No OFD packet to send [14:34:13]OFD Sender: No OFD packet to send [14:34:18]OFD Sender: No OFD packet to send [14:34:23]OFD Sender: No OFD packet to send [14:34:28]OFD Sender: No OFD packet to send [14:34:33]OFD Sender: No OFD packet to send [14:34:38]OFD Sender: No OFD packet to send [14:34:43]OFD Sender: No OFD packet to send [14:34:48]OFD Sender: No OFD packet to send [14:34:53]OFD Sender: No OFD packet to send [14:34:58]OFD Sender: No OFD packet to send [14:35:03]OFD Sender: No OFD packet to send [14:35:08]OFD Sender: No OFD packet to send [14:35:13]OFD Sender: No OFD packet to send [14:35:18]OFD Sender: No OFD packet to send [14:35:23]OFD Sender: No OFD packet to send [14:35:28]OFD Sender: No OFD packet to send [14:35:33]OFD Sender: No OFD packet to send [14:35:38]OFD Sender: No OFD packet to send [14:35:43]OFD Sender: No OFD packet to send [14:35:48]OFD Sender: No OFD packet to send [14:35:53]OFD Sender: No OFD packet to send [14:35:58]OFD Sender: No OFD packet to send [14:36:03]OFD Sender: No OFD packet to send [14:36:09]OFD Sender: No OFD packet to send [14:36:14]OFD Sender: No OFD packet to send [14:36:19]OFD Sender: No OFD packet to send [14:36:24]OFD Sender: No OFD packet to send [14:36:29]OFD Sender: No OFD packet to send [14:36:34]OFD Sender: No OFD packet to send [14:36:39]OFD Sender: No OFD packet to send [14:36:44]OFD Sender: No OFD packet to send [14:36:49]OFD Sender: No OFD packet to send [14:36:54]OFD Sender: No OFD packet to send [14:36:59]OFD Sender: No OFD packet to send [14:37:04]OFD Sender: No OFD packet to send [14:37:09]OFD Sender: No OFD packet to send [14:37:14]OFD Sender: No OFD packet to send [14:37:19]OFD Sender: No OFD packet to send [14:37:24]OFD Sender: No OFD packet to send [14:37:29]OFD Sender: No OFD packet to send [14:37:34]OFD Sender: No OFD packet to send [14:37:39]OFD Sender: No OFD packet to send [14:37:44]OFD Sender: No OFD packet to send [14:37:49]OFD Sender: No OFD packet to send [14:37:54]OFD Sender: No OFD packet to send [14:37:59]OFD Sender: No OFD packet to send [14:38:04]OFD Sender: No OFD packet to send [14:38:09]OFD Sender: No OFD packet to send [14:38:14]accept exits with 9 [14:38:14]New connection [14:38:14]New thread 3066830180 created [14:38:14]Thread 3066686820 joined [14:38:14]Waiting for new connection... [14:38:14] Sock 9.Parse request [14:38:14]Sock 9.Check first char [14:38:14]Sock 9.First char is OK [14:38:14]request: POST /json_proto HTTP/1.0 [14:38:14]Method: POST [14:38:14]URL: /json_proto [14:38:14]Method is POST - this is cgi request [14:38:14]url: /json_proto [14:38:14]query_string will be loaded in cgi processing [14:38:14]execute_cgi json_proto POST (null) [14:38:14]execute_cgi path=json_proto method=POST [14:38:14]POST find Content-Length [14:38:14]Host: 172.17.58.3:8080 [14:38:14]Content-Length: 676 [14:38:14]Content-Type: application/json [14:38:14] [14:38:14]POST finish read [14:38:14]Found Content-Length = 676 [14:38:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160784", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 6.070, "sum" : 400.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:14]execute_script... [14:38: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)160784", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 6.070, "sum" : 400.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:14]POST & json_proto [14:38:14]process_json_proto [14:38:14]json parsed OK: [14:38:14]protocol is kg_v1.0 [14:38:14]action value=close_receipt [14:38:14]process_action close_receipt [14:38:14]cmd_close_receipt [14:38:14]MH_GetDate [14:38:14]Write to MH i2c: F0 00 00 91 07 87 [14:38:14]Write i2c OK [14:38:14]MH_I2C_Read... [14:38:14]Read from MH i2c: F0 [14:38:14]MH_I2C_Read... [14:38:14]Read from MH i2c: F0 09 00 [14:38:14]MH_I2C_Read... [14:38:14]Read from MH i2c: F0 09 00 91 07 00 D6 6F BB 66 DC E4 6D 64 87 [14:38:14]GetLastDocTimeStamp 1723559591 [14:38:14]current date 1723559894 [14:38:14]FM_GetShiftState [14:38:14]SAM_PROTO_GetShiftState [14:38:14]wFMCommunicate request_size=4 [14:38:14]MH_SAM_APDU [14:38:14]CAPDU: 80 13 01 00 [14:38:14]Write to MH i2c: E2 08 00 92 07 80 13 01 00 00 00 00 00 16 [14:38:14]Write i2c OK [14:38:14]MH_I2C_Read... [14:38:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:14]Read from MH i2c: E2 [14:38:14]MH_I2C_Read... [14:38:14]Read from MH i2c: E2 0E 00 [14:38:14]MH_I2C_Read... [14:38:14]Read from MH i2c: E2 0E 00 92 07 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 34 [14:38:14]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [14:38:14]wFMCommunicate OK [14:38:14]SAM_PROTO_GetShiftState done [14:38:14]FM_GetShiftState done [14:38:14]opened in 1723506770 [14:38:14]opened+sec_in_day 1723593170 [14:38:14]quantity*price = 40001 [14:38:14]sum+1 = 40002 [14:38:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 65 13.08.2024 14:38 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103154 ФПД: 202350615605225 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T143814&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103154&fm=202350615605225&tin=02508201610067®Number=0000000000092718&sum=40000 [14:38:15]StoreToDocumentArchive [14:38:15]shift 464 fd 103154 [14:38:15]save to /storage/0464/doc_00103154 [14:38:15]save last doc name /storage/0464/doc_00103154 to /storage/kkm_last_doc_name [14:38:15]save OK [14:38:15]Clear old archive folders... [14:38:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:38:15]tlvbuf is 014F51E0 [14:38:15]SAM_PROTO_ClearQueue [14:38:15]wFMCommunicate request_size=4 [14:38:15]MH_SAM_APDU [14:38:15]CAPDU: 80 09 00 00 [14:38:15]Write to MH i2c: E2 08 00 9F 07 80 09 00 00 00 00 00 00 18 [14:38:15]Write i2c OK [14:38:15]MH_I2C_Read... [14:38:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:38:15]Read from MH i2c: E2 [14:38:15]MH_I2C_Read... [14:38:15]Read from MH i2c: E2 03 00 [14:38:15]MH_I2C_Read... [14:38:15]Read from MH i2c: E2 03 00 9F 07 00 90 00 1A [14:38:15]RAPDU: 90 00 [14:38:15]wFMCommunicate OK [14:38:15]SAM_PROTO_ClearQueue done [14:38:15]KKMCreateOFDPacket [14:38:15]OFDProtocolAddRootSTLVToBuf [14:38:15]FM_MakeSignedData [14:38:15]FM_MakeSignedData [14:38:15]SAM_PROTO_SignData [14:38:15]wFMCommunicate request_size=4 [14:38:15]MH_SAM_APDU [14:38:15]CAPDU: 80 0D 01 02 [14:38:15]Write to MH i2c: E2 08 00 A0 07 80 0D 01 02 00 00 00 00 20 [14:38:15]Write i2c OK [14:38:15]MH_I2C_Read... [14:38:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:38:15]Read from MH i2c: E2 [14:38:15]MH_I2C_Read... [14:38:15]Read from MH i2c: E2 03 00 [14:38:15]MH_I2C_Read... [14:38:15]Read from MH i2c: E2 03 00 A0 07 00 90 00 1B [14:38:15]RAPDU: 90 00 [14:38:15]wFMCommunicate OK [14:38:15]wFMCommunicate request_size=255 [14:38:15]MH_SAM_APDU [14:38: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 B6 17 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 41 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 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 41 00 00 00 F4 03 04 00 D6 6F BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 F2 92 01 00 35 04 06 00 B8 [14:38:15]Write to MH i2c: E2 02 01 A1 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 17 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 41 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 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 41 00 00 00 F4 03 04 00 D6 6F BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 F2 92 01 00 35 04 06 00 B8 00 00 26 [14:38:15]Write i2c OK [14:38:15]MH_I2C_Read... [14:38:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:15]Read from MH i2c: E2 [14:38:15]MH_I2C_Read... [14:38:15]Read from MH i2c: E2 03 00 [14:38:15]MH_I2C_Read... [14:38:15]Read from MH i2c: E2 03 00 A1 07 00 90 00 1C [14:38:15]RAPDU: 90 00 [14:38:15]wFMCommunicate OK [14:38:15]wFMCommunicate request_size=10 [14:38:15]MH_SAM_APDU [14:38:15]CAPDU: 80 0D 02 02 05 09 6C 90 2F E9 [14:38:15]Write to MH i2c: E2 0D 00 A2 07 80 0D 02 02 05 00 09 6C 90 2F E9 00 00 4A [14:38:15]Write i2c OK [14:38:15]MH_I2C_Read... [14:38:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:15]Read from MH i2c: E2 [14:38:15]MH_I2C_Read... [14:38:15]Read from MH i2c: E2 03 00 [14:38:15]MH_I2C_Read... [14:38:15]Read from MH i2c: E2 03 00 A2 07 00 90 00 1D [14:38:15]RAPDU: 90 00 [14:38:15]wFMCommunicate OK [14:38:15]wFMCommunicate request_size=4 [14:38:15]MH_SAM_APDU [14:38:15]CAPDU: 80 0D 03 02 [14:38:15]Write to MH i2c: E2 08 00 A3 07 80 0D 03 02 00 00 00 00 25 [14:38:15]Write i2c OK [14:38:15]MH_I2C_Read... [14:38:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:38:15]Read from MH i2c: E2 [14:38:15]MH_I2C_Read... [14:38:15]Read from MH i2c: E2 0B 00 [14:38:15]MH_I2C_Read... [14:38:15]Read from MH i2c: E2 0B 00 A3 07 00 AC 19 AF 08 BB 37 87 04 90 00 1F [14:38:15]RAPDU: AC 19 AF 08 BB 37 87 04 90 00 [14:38:15]wFMCommunicate OK [14:38:15]SAM_PROTO_SignData done [14:38:15]FM_MakeSignedData done [14:38:15]CreateOFDProtocolMessage [14:38:15]wFMCommunicate request_size=4 [14:38:15]MH_SAM_APDU [14:38:15]CAPDU: 80 11 00 00 [14:38:15]Write to MH i2c: E2 08 00 A4 07 80 11 00 00 00 00 00 00 25 [14:38:15]Write i2c OK [14:38:15]MH_I2C_Read... [14:38:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:15]Read from MH i2c: E2 [14:38:15]MH_I2C_Read... [14:38:15]Read from MH i2c: E2 17 00 [14:38:15]MH_I2C_Read... [14:38:15]Read from MH i2c: E2 17 00 A4 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 79 [14:38:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [14:38:15]wFMCommunicate OK [14:38:15]CreateOFDProtocolMessage done [14:38:15]OFDSenderStorePacket 103154 [14:38:15]StoreOFDPacket docnum=103154 [14:38:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 5A 94 07 01 37 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 17 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 41 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 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 41 00 00 00 F4 03 04 00 D6 6F BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 F2 92 01 00 35 04 06 00 B8 09 6C 90 2F E9 AC 19 AF 08 BB 37 87 04 [14:38:15]CheckFolder [14:38:15]dirname=/storage/ofd_packets [14:38:15]CheckFolder done [14:38:15]ProducePacketName [14:38:15]name=ofd_packets/00103154 [14:38:15]NVStorageSaveData ofd_packets/00103154 [14:38:15]File name is /storage/ofd_packets/00103154 [14:38:15]Write 301 bytes [14:38:15]NVStorageSaveData done [14:38:15]OFDSenderStorePacket done [14:38:15]KKMCreateOFDPacket done [14:38:15]NVStorageSaveData kkm_last_timestamp [14:38:15]File name is /storage/kkm_last_timestamp [14:38:15]Write 4 bytes [14:38:15]NVStorageSaveData done [14:38:15]ExternCall_PrintAddStr [14:38:15]wPrintStart [14:38:15]Write to MH i2c: 01 00 00 A5 07 AC [14:38:15]Write i2c OK [14:38:15]MH_I2C_Read... [14:38:15]Read from MH i2c: 01 [14:38:15]MH_I2C_Read... [14:38:15]Read from MH i2c: 01 07 00 [14:38:15]MH_I2C_Read... [14:38:15]Read from MH i2c: 01 07 00 A5 07 00 00 00 00 00 FF 0F C1 [14:38:15]RasterBufferAndPrint [14:38:15]line Счет N : (1)160784 [14:38:15]line ИНН: 02508201610067 [14:38:15]line Контрольно-Кассовый Чек [14:38:15]line ПРОДАЖА [14:38:15]line ТРК (МРК, ГНК) : 3 [14:38:15]line Товар: 2710124130 [14:38:15]line Аи-92-К-5 [14:38:15]line 6.070 * 65.90 [14:38:15]line = 400.01 [14:38:15]line НДС 12% НСП 1% [14:38:15]line > о реализуемом товаре [14:38:15]line ОКРУГЛЕНИЕ: -0.01 [14:38:15]line ИТОГО: 400.00 [14:38:15]line Внесено: 400.00 [14:38:15]line СДАЧА: 0.00 [14:38:15]line НСП 1% : 3.54 [14:38:15]line НДС 12% : 42.48 [14:38:15]line Наличными: 400.00 [14:38:15]line Безнал.: 0.00 [14:38:15]line Место: АЗС № 38 "Партнер Нефть" [14:38:15]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [14:38:15]line СНО: Общий режим [14:38:15]line Чек 65 13.08.2024 14:38 [14:38:15]line Смена: 464 ФФД: 1.0 [14:38:15]line ЗНМ: 0300000126 [14:38:15]line РНМ: 0000000000092718 [14:38:15]line Версия ККМ: 001 [14:38:15]line ФМ: 0000000000875058 [14:38:15]line ФД: 103154 [14:38:15]line ФПД: 202350615605225 [14:38:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T143814&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103154&fm=202350615605225&tin=02508201610067®Number=0000000000092718&sum=40000 [14:38:16]OFD Sender: Processing packet 103154 [packets to send 69, broken 68] [14:38:16]ProducePacketName [14:38:16]name=ofd_packets/00103154 [14:38:16]OFD Sender: To server: pG, [14:38:16]CommunicateWithHost lk.salyk.kg:30040 [14:38:16]ConnectInit lk.salyk.kg [14:38:16]written 0, free lines is 4095 [14:38:16]Connected sock=10 [14:38:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 5A 94 07 01 37 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 17 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 41 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 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 41 00 00 00 F4 03 04 00 D6 6F BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 F2 92 01 00 35 04 06 00 B8 09 6C 90 2F E9 AC 19 AF 08 BB 37 87 04 [14:38:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 06 07 47 00 3C 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 35 30 35 38 10 04 04 00 F2 92 01 00 F4 03 04 00 49 16 BB 66 B6 04 01 00 00 AE 45 8B D5 C1 A8 76 1F [14:38:16]CommunicateWithHost err = 0 [14:38:16]CheckOFDResponse [14:38:16]1017 (14) - 77093643461234 [14:38:16]1041 (16) - 0000000000875058 [14:38:16]1040 (4) - 103154 [14:38:16]1012 (4) - 13.08.2024 08:16 [14:38:16]1206 (1) - 0 [14:38:16]OFD Sender: Remove packet 103154 [14:38:16]ProducePacketName [14:38:16]name=ofd_packets/00103154 [14:38:16]NVStorageDeleteData [14:38:16]Write to MH i2c: 01 00 00 D0 07 D7 [14:38:16]Write i2c OK [14:38:16]MH_I2C_Read... [14:38:16]Read from MH i2c: 01 [14:38:16]MH_I2C_Read... [14:38:16]Read from MH i2c: 01 07 00 [14:38:16]MH_I2C_Read... [14:38:16]Read from MH i2c: 01 07 00 D0 07 00 00 00 00 00 DA 0C C4 [14:38:16]RasterBufferAndPrint [14:38:16]line [14:38:16]line [14:38:16]line [14:38:16]line [14:38:16]line [14:38:16]written 0, free lines is 3296 [14:38:16]MH_Cut [14:38:16]Write to MH i2c: D1 01 00 D7 07 01 B0 [14:38:16]Write i2c OK [14:38:16]MH_I2C_Read... [14:38:16]Read from MH i2c: D1 [14:38:16]MH_I2C_Read... [14:38:16]Read from MH i2c: D1 01 00 [14:38:16]MH_I2C_Read... [14:38:16]Read from MH i2c: D1 01 00 D7 07 00 AF [14:38:16]Write to MH i2c: 01 00 00 D8 07 DF [14:38:16]Write i2c OK [14:38:16]MH_I2C_Read... [14:38:16]OFD Sender: No OFD packet to send [14:38:17]*** Cut start [14:38:17]*** Purtial cut [14:38:17]*** Stage 1: CUTSNS_PIN = 1 [14:38:17]Read from MH i2c: 01 [14:38:17]MH_I2C_Read... [14:38:17]*** Stop cut motor [14:38:17]*** Cut end [14:38:17]Read from MH i2c: 01 07 00 [14:38:17]MH_I2C_Read... [14:38:17]Read from MH i2c: 01 07 00 D8 07 00 00 00 00 00 FF 0F F4 [14:38:17]process_action close_receipt done [14:38:17]requested_data is exist [14:38:17]produce_requested_data [14:38:17]requested_item fm.sn is exist - process it [14:38:17]wFMCommunicate request_size=4 [14:38:17]MH_SAM_APDU [14:38:17]CAPDU: 80 11 00 00 [14:38:17]Write to MH i2c: E2 08 00 D9 07 80 11 00 00 00 00 00 00 5A [14:38:17]Write i2c OK [14:38:17]MH_I2C_Read... [14:38:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:17]Read from MH i2c: E2 [14:38:17]MH_I2C_Read... [14:38:17]Read from MH i2c: E2 17 00 [14:38:17]MH_I2C_Read... [14:38:17]Read from MH i2c: E2 17 00 D9 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 AE [14:38:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [14:38:17]wFMCommunicate OK [14:38:17]requested_item fd.num is exist - process it [14:38:17]SAM_PROTO_GetFieldsCounters [14:38:17]wFMCommunicate request_size=4 [14:38:17]MH_SAM_APDU [14:38:17]CAPDU: 80 13 00 00 [14:38:17]Write to MH i2c: E2 08 00 DA 07 80 13 00 00 00 00 00 00 5D [14:38:17]Write i2c OK [14:38:17]MH_I2C_Read... [14:38:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:38:17]Read from MH i2c: E2 [14:38:17]MH_I2C_Read... [14:38:17]Read from MH i2c: E2 62 00 [14:38:17]MH_I2C_Read... [14:38:17]Read from MH i2c: E2 62 00 DA 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 F2 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [14:38:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 F2 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:38:17]wFMCommunicate OK [14:38:17]SAM_PROTO_GetFieldsCounters done [14:38:17]requested_item shift.num is exist - process it [14:38:17]requested_item shift.opened is exist - process it [14:38:17]req_shift_opened [14:38:17]FM_GetShiftState [14:38:17]SAM_PROTO_GetShiftState [14:38:17]wFMCommunicate request_size=4 [14:38:17]MH_SAM_APDU [14:38:17]CAPDU: 80 13 01 00 [14:38:17]Write to MH i2c: E2 08 00 DB 07 80 13 01 00 00 00 00 00 5F [14:38:17]Write i2c OK [14:38:17]MH_I2C_Read... [14:38:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:17]Read from MH i2c: E2 [14:38:17]MH_I2C_Read... [14:38:17]Read from MH i2c: E2 0E 00 [14:38:17]MH_I2C_Read... [14:38:17]Read from MH i2c: E2 0E 00 DB 07 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 7D [14:38:17]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [14:38:17]wFMCommunicate OK [14:38:17]SAM_PROTO_GetShiftState done [14:38:17]FM_GetShiftState done [14:38:17]req_shift_opened done [14:38:17]requested_item shift.open_date is exist - process it [14:38:17]req_shift_open_date [14:38:17]req_shift_open_date done [14:38:17]produce_requested_data done [14:38:17]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103154,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [14:38:17]process_action_free close_receipt [14:38:17]json_value_free [14:38:17]json_value_free done [14:38:17]process_json_proto returns [14:38:17]Send response to host [14:38:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103154,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [14:38:17]free response buf [14:38:17]execute_script done [14:38:17]execute_script returns [14:38:17]free content buf [14:38:17]Sock 9.Close socket [14:38:17]Sock 9.Thread stoped [14:38:21]OFD Sender: No OFD packet to send [14:38:26]OFD Sender: No OFD packet to send [14:38:31]OFD Sender: No OFD packet to send [14:38:36]OFD Sender: No OFD packet to send [14:38:41]OFD Sender: No OFD packet to send [14:38:46]OFD Sender: No OFD packet to send [14:38:51]OFD Sender: No OFD packet to send [14:38:56]OFD Sender: No OFD packet to send [14:39:01]OFD Sender: No OFD packet to send [14:39:06]OFD Sender: No OFD packet to send [14:39:11]OFD Sender: No OFD packet to send [14:39:16]OFD Sender: No OFD packet to send [14:39:21]OFD Sender: No OFD packet to send [14:39:26]OFD Sender: No OFD packet to send [14:39:31]OFD Sender: No OFD packet to send [14:39:36]OFD Sender: No OFD packet to send [14:39:38]accept exits with 7 [14:39:38]New connection [14:39:38]New thread 3066686820 created [14:39:38]Thread 3066830180 joined [14:39:38]Waiting for new connection... [14:39:38] Sock 7.Parse request [14:39:38]Sock 7.Check first char [14:39:38]Sock 7.First char is OK [14:39:38]request: POST /json_proto HTTP/1.0 [14:39:38]Method: POST [14:39:38]URL: /json_proto [14:39:38]Method is POST - this is cgi request [14:39:38]url: /json_proto [14:39:38]query_string will be loaded in cgi processing [14:39:38]execute_cgi json_proto POST (null) [14:39:38]execute_cgi path=json_proto method=POST [14:39:38]POST find Content-Length [14:39:38]Host: 172.17.58.3:8080 [14:39:38]Content-Length: 676 [14:39:38]Content-Type: application/json [14:39:38] [14:39:38]POST finish read [14:39:38]Found Content-Length = 676 [14:39:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160785", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 4.560, "sum" : 300.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:38]execute_script... [14:39:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160785", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 4.560, "sum" : 300.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:38]POST & json_proto [14:39:38]process_json_proto [14:39:38]json parsed OK: [14:39:38]protocol is kg_v1.0 [14:39:38]action value=close_receipt [14:39:38]process_action close_receipt [14:39:38]cmd_close_receipt [14:39:38]MH_GetDate [14:39:38]Write to MH i2c: F0 00 00 DC 07 D2 [14:39:38]Write i2c OK [14:39:38]MH_I2C_Read... [14:39:38]Read from MH i2c: F0 [14:39:38]MH_I2C_Read... [14:39:38]Read from MH i2c: F0 09 00 [14:39:38]MH_I2C_Read... [14:39:38]Read from MH i2c: F0 09 00 DC 07 00 2B 70 BB 66 DC E4 6D 64 28 [14:39:38]GetLastDocTimeStamp 1723559894 [14:39:38]current date 1723559979 [14:39:38]FM_GetShiftState [14:39:38]SAM_PROTO_GetShiftState [14:39:38]wFMCommunicate request_size=4 [14:39:38]MH_SAM_APDU [14:39:38]CAPDU: 80 13 01 00 [14:39:38]Write to MH i2c: E2 08 00 DD 07 80 13 01 00 00 00 00 00 61 [14:39:38]Write i2c OK [14:39:38]MH_I2C_Read... [14:39:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:38]Read from MH i2c: E2 [14:39:38]MH_I2C_Read... [14:39:38]Read from MH i2c: E2 0E 00 [14:39:38]MH_I2C_Read... [14:39:38]Read from MH i2c: E2 0E 00 DD 07 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 7F [14:39:38]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [14:39:38]wFMCommunicate OK [14:39:38]SAM_PROTO_GetShiftState done [14:39:38]FM_GetShiftState done [14:39:38]opened in 1723506770 [14:39:38]opened+sec_in_day 1723593170 [14:39:38]quantity*price = 30050 [14:39:38]sum+1 = 30051 [14:39:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 66 13.08.2024 14:39 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103155 ФПД: 276977682646490 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T143939&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103155&fm=276977682646490&tin=02508201610067®Number=0000000000092718&sum=30000 [14:39:39]StoreToDocumentArchive [14:39:39]shift 464 fd 103155 [14:39:39]save to /storage/0464/doc_00103155 [14:39:39]save last doc name /storage/0464/doc_00103155 to /storage/kkm_last_doc_name [14:39:39]save OK [14:39:39]Clear old archive folders... [14:39:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:39:39]tlvbuf is 0152D520 [14:39:39]SAM_PROTO_ClearQueue [14:39:39]wFMCommunicate request_size=4 [14:39:39]MH_SAM_APDU [14:39:39]CAPDU: 80 09 00 00 [14:39:39]Write to MH i2c: E2 08 00 EA 07 80 09 00 00 00 00 00 00 63 [14:39:39]Write i2c OK [14:39:39]MH_I2C_Read... [14:39:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:39:39]Read from MH i2c: E2 [14:39:39]MH_I2C_Read... [14:39:39]Read from MH i2c: E2 03 00 [14:39:39]MH_I2C_Read... [14:39:39]Read from MH i2c: E2 03 00 EA 07 00 90 00 65 [14:39:39]RAPDU: 90 00 [14:39:39]wFMCommunicate OK [14:39:39]SAM_PROTO_ClearQueue done [14:39:39]KKMCreateOFDPacket [14:39:39]OFDProtocolAddRootSTLVToBuf [14:39:39]FM_MakeSignedData [14:39:39]FM_MakeSignedData [14:39:39]SAM_PROTO_SignData [14:39:39]wFMCommunicate request_size=4 [14:39:39]MH_SAM_APDU [14:39:39]CAPDU: 80 0D 01 02 [14:39:39]Write to MH i2c: E2 08 00 EB 07 80 0D 01 02 00 00 00 00 6B [14:39:39]Write i2c OK [14:39:39]MH_I2C_Read... [14:39:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:39:39]Read from MH i2c: E2 [14:39:39]MH_I2C_Read... [14:39:39]Read from MH i2c: E2 03 00 [14:39:39]MH_I2C_Read... [14:39:39]Read from MH i2c: E2 03 00 EB 07 00 90 00 66 [14:39:39]RAPDU: 90 00 [14:39:39]wFMCommunicate OK [14:39:39]wFMCommunicate request_size=255 [14:39:39]MH_SAM_APDU [14:39:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 2B 70 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 F3 92 01 00 35 04 06 00 FB [14:39:39]Write to MH i2c: E2 02 01 EC 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 2B 70 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 F3 92 01 00 35 04 06 00 FB 00 00 2F [14:39:39]Write i2c OK [14:39:39]MH_I2C_Read... [14:39:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:40]Read from MH i2c: E2 [14:39:40]MH_I2C_Read... [14:39:40]Read from MH i2c: E2 03 00 [14:39:40]MH_I2C_Read... [14:39:40]Read from MH i2c: E2 03 00 EC 07 00 90 00 67 [14:39:40]RAPDU: 90 00 [14:39:40]wFMCommunicate OK [14:39:40]wFMCommunicate request_size=10 [14:39:40]MH_SAM_APDU [14:39:40]CAPDU: 80 0D 02 02 05 E8 E4 62 85 DA [14:39:40]Write to MH i2c: E2 0D 00 ED 07 80 0D 02 02 05 00 E8 E4 62 85 DA 00 00 05 [14:39:40]Write i2c OK [14:39:40]MH_I2C_Read... [14:39:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:40]Read from MH i2c: E2 [14:39:40]MH_I2C_Read... [14:39:40]Read from MH i2c: E2 03 00 [14:39:40]MH_I2C_Read... [14:39:40]Read from MH i2c: E2 03 00 ED 07 00 90 00 68 [14:39:40]RAPDU: 90 00 [14:39:40]wFMCommunicate OK [14:39:40]wFMCommunicate request_size=4 [14:39:40]MH_SAM_APDU [14:39:40]CAPDU: 80 0D 03 02 [14:39:40]Write to MH i2c: E2 08 00 EE 07 80 0D 03 02 00 00 00 00 70 [14:39:40]Write i2c OK [14:39:40]MH_I2C_Read... [14:39:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:39:40]Read from MH i2c: E2 [14:39:40]MH_I2C_Read... [14:39:40]Read from MH i2c: E2 0B 00 [14:39:40]MH_I2C_Read... [14:39:40]Read from MH i2c: E2 0B 00 EE 07 00 1A 7B EF 4B 5D 17 3D FC 90 00 ED [14:39:40]RAPDU: 1A 7B EF 4B 5D 17 3D FC 90 00 [14:39:40]wFMCommunicate OK [14:39:40]SAM_PROTO_SignData done [14:39:40]FM_MakeSignedData done [14:39:40]CreateOFDProtocolMessage [14:39:40]wFMCommunicate request_size=4 [14:39:40]MH_SAM_APDU [14:39:40]CAPDU: 80 11 00 00 [14:39:40]Write to MH i2c: E2 08 00 EF 07 80 11 00 00 00 00 00 00 70 [14:39:40]Write i2c OK [14:39:40]MH_I2C_Read... [14:39:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:40]Read from MH i2c: E2 [14:39:40]MH_I2C_Read... [14:39:40]Read from MH i2c: E2 17 00 [14:39:40]MH_I2C_Read... [14:39:40]Read from MH i2c: E2 17 00 EF 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 C4 [14:39:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [14:39:40]wFMCommunicate OK [14:39:40]CreateOFDProtocolMessage done [14:39:40]OFDSenderStorePacket 103155 [14:39:40]StoreOFDPacket docnum=103155 [14:39:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 14 EA 07 01 8E 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 2B 70 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 F3 92 01 00 35 04 06 00 FB E8 E4 62 85 DA 1A 7B EF 4B 5D 17 3D FC [14:39:40]CheckFolder [14:39:40]dirname=/storage/ofd_packets [14:39:40]CheckFolder done [14:39:40]ProducePacketName [14:39:40]name=ofd_packets/00103155 [14:39:40]NVStorageSaveData ofd_packets/00103155 [14:39:40]File name is /storage/ofd_packets/00103155 [14:39:40]Write 301 bytes [14:39:40]NVStorageSaveData done [14:39:40]OFDSenderStorePacket done [14:39:40]KKMCreateOFDPacket done [14:39:40]NVStorageSaveData kkm_last_timestamp [14:39:40]File name is /storage/kkm_last_timestamp [14:39:40]Write 4 bytes [14:39:40]NVStorageSaveData done [14:39:40]ExternCall_PrintAddStr [14:39:40]wPrintStart [14:39:40]Write to MH i2c: 01 00 00 F0 07 F7 [14:39:40]Write i2c OK [14:39:40]MH_I2C_Read... [14:39:40]Read from MH i2c: 01 [14:39:40]MH_I2C_Read... [14:39:40]Read from MH i2c: 01 07 00 [14:39:40]MH_I2C_Read... [14:39:40]Read from MH i2c: 01 07 00 F0 07 00 00 00 00 00 FF 0F 0C [14:39:40]RasterBufferAndPrint [14:39:40]line Счет N : (1)160785 [14:39:40]line ИНН: 02508201610067 [14:39:40]line Контрольно-Кассовый Чек [14:39:40]line ПРОДАЖА [14:39:40]line ТРК (МРК, ГНК) : 7 [14:39:40]line Товар: 2710124130 [14:39:40]line Аи-92-К-5 [14:39:40]line 4.560 * 65.90 [14:39:40]line = 300.50 [14:39:40]line НДС 12% НСП 1% [14:39:40]line > о реализуемом товаре [14:39:40]line ОКРУГЛЕНИЕ: -0.50 [14:39:40]line ИТОГО: 300.00 [14:39:40]line Внесено: 300.00 [14:39:40]line СДАЧА: 0.00 [14:39:40]line НСП 1% : 2.66 [14:39:40]line НДС 12% : 31.91 [14:39:40]line Наличными: 300.00 [14:39:40]line Безнал.: 0.00 [14:39:40]line Место: АЗС № 38 "Партнер Нефть" [14:39:40]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [14:39:40]line СНО: Общий режим [14:39:40]line Чек 66 13.08.2024 14:39 [14:39:40]line Смена: 464 ФФД: 1.0 [14:39:40]line ЗНМ: 0300000126 [14:39:40]line РНМ: 0000000000092718 [14:39:40]line Версия ККМ: 001 [14:39:40]line ФМ: 0000000000875058 [14:39:40]line ФД: 103155 [14:39:40]line ФПД: 276977682646490 [14:39:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T143939&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103155&fm=276977682646490&tin=02508201610067®Number=0000000000092718&sum=30000 [14:39:40]OFD Sender: Processing packet 103155 [packets to send 69, broken 68] [14:39:40]ProducePacketName [14:39:40]name=ofd_packets/00103155 [14:39:40]OFD Sender: To server: pG, [14:39:40]CommunicateWithHost lk.salyk.kg:30040 [14:39:40]ConnectInit lk.salyk.kg [14:39:40]written 0, free lines is 4095 [14:39:40]Connected sock=10 [14:39:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 14 EA 07 01 8E 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 2B 70 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 F3 92 01 00 35 04 06 00 FB E8 E4 62 85 DA 1A 7B EF 4B 5D 17 3D FC [14:39:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 8F 84 47 00 FA 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 F3 92 01 00 F4 03 04 00 9E 16 BB 66 B6 04 01 00 00 BE 40 E3 82 59 EF 1E 02 [14:39:40]CommunicateWithHost err = 0 [14:39:40]CheckOFDResponse [14:39:40]1017 (14) - 77093643461234 [14:39:40]1041 (16) - 0000000000875058 [14:39:40]1040 (4) - 103155 [14:39:40]1012 (4) - 13.08.2024 08:17 [14:39:40]1206 (1) - 0 [14:39:40]OFD Sender: Remove packet 103155 [14:39:40]ProducePacketName [14:39:40]name=ofd_packets/00103155 [14:39:40]NVStorageDeleteData [14:39:41]Write to MH i2c: 01 00 00 1B 08 23 [14:39:41]Write i2c OK [14:39:41]MH_I2C_Read... [14:39:41]Read from MH i2c: 01 [14:39:41]MH_I2C_Read... [14:39:41]Read from MH i2c: 01 07 00 [14:39:41]MH_I2C_Read... [14:39:41]Read from MH i2c: 01 07 00 1B 08 00 00 00 00 00 E5 0C 1B [14:39:41]RasterBufferAndPrint [14:39:41]line [14:39:41]line [14:39:41]line [14:39:41]line [14:39:41]line [14:39:41]written 0, free lines is 3307 [14:39:41]MH_Cut [14:39:41]Write to MH i2c: D1 01 00 22 08 01 FC [14:39:41]Write i2c OK [14:39:41]MH_I2C_Read... [14:39:41]Read from MH i2c: D1 [14:39:41]MH_I2C_Read... [14:39:41]Read from MH i2c: D1 01 00 [14:39:41]MH_I2C_Read... [14:39:41]Read from MH i2c: D1 01 00 22 08 00 FB [14:39:41]Write to MH i2c: 01 00 00 23 08 2B [14:39:41]Write i2c OK [14:39:41]MH_I2C_Read... [14:39:41]OFD Sender: No OFD packet to send [14:39:41]*** Cut start [14:39:41]*** Purtial cut [14:39:41]*** CUTSNS_PIN = 0 [14:39:42]*** Stage 1: CUTSNS_PIN = 1 [14:39:43]Read from MH i2c: 01 [14:39:43]MH_I2C_Read... [14:39:43]*** Stop cut motor [14:39:43]*** Cut end [14:39:43]Read from MH i2c: 01 07 00 [14:39:43]MH_I2C_Read... [14:39:43]Read from MH i2c: 01 07 00 23 08 00 00 00 00 00 FF 0F 40 [14:39:43]process_action close_receipt done [14:39:43]requested_data is exist [14:39:43]produce_requested_data [14:39:43]requested_item fm.sn is exist - process it [14:39:43]wFMCommunicate request_size=4 [14:39:43]MH_SAM_APDU [14:39:43]CAPDU: 80 11 00 00 [14:39:43]Write to MH i2c: E2 08 00 24 08 80 11 00 00 00 00 00 00 A6 [14:39:43]Write i2c OK [14:39:43]MH_I2C_Read... [14:39:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:44]Read from MH i2c: E2 [14:39:44]MH_I2C_Read... [14:39:44]Read from MH i2c: E2 17 00 [14:39:44]MH_I2C_Read... [14:39:44]Read from MH i2c: E2 17 00 24 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 FA [14:39:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [14:39:44]wFMCommunicate OK [14:39:44]requested_item fd.num is exist - process it [14:39:44]SAM_PROTO_GetFieldsCounters [14:39:44]wFMCommunicate request_size=4 [14:39:44]MH_SAM_APDU [14:39:44]CAPDU: 80 13 00 00 [14:39:44]Write to MH i2c: E2 08 00 25 08 80 13 00 00 00 00 00 00 A9 [14:39:44]Write i2c OK [14:39:44]MH_I2C_Read... [14:39:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:39:44]Read from MH i2c: E2 [14:39:44]MH_I2C_Read... [14:39:44]Read from MH i2c: E2 62 00 [14:39:44]MH_I2C_Read... [14:39:44]Read from MH i2c: E2 62 00 25 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 F3 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [14:39: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 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 F3 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:39:44]wFMCommunicate OK [14:39:44]SAM_PROTO_GetFieldsCounters done [14:39:44]requested_item shift.num is exist - process it [14:39:44]requested_item shift.opened is exist - process it [14:39:44]req_shift_opened [14:39:44]FM_GetShiftState [14:39:44]SAM_PROTO_GetShiftState [14:39:44]wFMCommunicate request_size=4 [14:39:44]MH_SAM_APDU [14:39:44]CAPDU: 80 13 01 00 [14:39:44]Write to MH i2c: E2 08 00 26 08 80 13 01 00 00 00 00 00 AB [14:39:44]Write i2c OK [14:39:44]MH_I2C_Read... [14:39:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:44]Read from MH i2c: E2 [14:39:44]MH_I2C_Read... [14:39:44]Read from MH i2c: E2 0E 00 [14:39:44]MH_I2C_Read... [14:39:44]Read from MH i2c: E2 0E 00 26 08 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 C9 [14:39:44]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [14:39:44]wFMCommunicate OK [14:39:44]SAM_PROTO_GetShiftState done [14:39:44]FM_GetShiftState done [14:39:44]req_shift_opened done [14:39:44]requested_item shift.open_date is exist - process it [14:39:44]req_shift_open_date [14:39:44]req_shift_open_date done [14:39:44]produce_requested_data done [14:39:44]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103155,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [14:39:44]process_action_free close_receipt [14:39:44]json_value_free [14:39:44]json_value_free done [14:39:44]process_json_proto returns [14:39:44]Send response to host [14:39:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103155,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [14:39:44]free response buf [14:39:44]execute_script done [14:39:44]execute_script returns [14:39:44]free content buf [14:39:44]Sock 7.Close socket [14:39:44]Sock 7.Thread stoped [14:39:46]OFD Sender: No OFD packet to send [14:39:51]OFD Sender: No OFD packet to send [14:39:56]OFD Sender: No OFD packet to send [14:40:01]OFD Sender: No OFD packet to send [14:40:06]OFD Sender: No OFD packet to send [14:40:11]OFD Sender: No OFD packet to send [14:40:16]OFD Sender: No OFD packet to send [14:40:21]OFD Sender: No OFD packet to send [14:40:26]OFD Sender: No OFD packet to send [14:40:31]OFD Sender: No OFD packet to send [14:40:36]OFD Sender: No OFD packet to send [14:40:41]OFD Sender: No OFD packet to send [14:40:46]OFD Sender: No OFD packet to send [14:40:51]OFD Sender: No OFD packet to send [14:40:53]accept exits with 9 [14:40:53]New connection [14:40:53]New thread 3066830180 created [14:40:53]Thread 3066686820 joined [14:40:53]Waiting for new connection... [14:40:53] Sock 9.Parse request [14:40:53]Sock 9.Check first char [14:40:53]Sock 9.First char is OK [14:40:53]request: POST /json_proto HTTP/1.0 [14:40:53]Method: POST [14:40:53]URL: /json_proto [14:40:53]Method is POST - this is cgi request [14:40:53]url: /json_proto [14:40:53]query_string will be loaded in cgi processing [14:40:53]execute_cgi json_proto POST (null) [14:40:53]execute_cgi path=json_proto method=POST [14:40:53]POST find Content-Length [14:40:53]Host: 172.17.58.3:8080 [14:40:53]Content-Length: 681 [14:40:53]Content-Type: application/json [14:40:53] [14:40:53]POST finish read [14:40:53]Found Content-Length = 681 [14:40:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160786", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:53]execute_script... [14:40:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160786", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:53]POST & json_proto [14:40:53]process_json_proto [14:40:53]json parsed OK: [14:40:53]protocol is kg_v1.0 [14:40:53]action value=close_receipt [14:40:53]process_action close_receipt [14:40:53]cmd_close_receipt [14:40:53]MH_GetDate [14:40:53]Write to MH i2c: F0 00 00 27 08 1E [14:40:53]Write i2c OK [14:40:53]MH_I2C_Read... [14:40:53]Read from MH i2c: F0 [14:40:53]MH_I2C_Read... [14:40:53]Read from MH i2c: F0 09 00 [14:40:53]MH_I2C_Read... [14:40:53]Read from MH i2c: F0 09 00 27 08 00 76 70 BB 66 DC E4 6D 64 BF [14:40:53]GetLastDocTimeStamp 1723559979 [14:40:53]current date 1723560054 [14:40:53]FM_GetShiftState [14:40:53]SAM_PROTO_GetShiftState [14:40:53]wFMCommunicate request_size=4 [14:40:53]MH_SAM_APDU [14:40:53]CAPDU: 80 13 01 00 [14:40:53]Write to MH i2c: E2 08 00 28 08 80 13 01 00 00 00 00 00 AD [14:40:53]Write i2c OK [14:40:53]MH_I2C_Read... [14:40:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:53]Read from MH i2c: E2 [14:40:53]MH_I2C_Read... [14:40:53]Read from MH i2c: E2 0E 00 [14:40:53]MH_I2C_Read... [14:40:53]Read from MH i2c: E2 0E 00 28 08 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 CB [14:40:53]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [14:40:53]wFMCommunicate OK [14:40:53]SAM_PROTO_GetShiftState done [14:40:53]FM_GetShiftState done [14:40:53]opened in 1723506770 [14:40:53]opened+sec_in_day 1723593170 [14:40:53]quantity*price = 100036 [14:40:53]sum+1 = 100037 [14:40:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 67 13.08.2024 14:40 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103156 ФПД: 196600133552895 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T144054&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103156&fm=196600133552895&tin=02508201610067®Number=0000000000092718&sum=100000 [14:40:55]StoreToDocumentArchive [14:40:55]shift 464 fd 103156 [14:40:55]save to /storage/0464/doc_00103156 [14:40:55]save last doc name /storage/0464/doc_00103156 to /storage/kkm_last_doc_name [14:40:55]save OK [14:40:55]Clear old archive folders... [14:40:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:40:55]tlvbuf is 014F7BA0 [14:40:55]SAM_PROTO_ClearQueue [14:40:55]wFMCommunicate request_size=4 [14:40:55]MH_SAM_APDU [14:40:55]CAPDU: 80 09 00 00 [14:40:55]Write to MH i2c: E2 08 00 35 08 80 09 00 00 00 00 00 00 AF [14:40:55]Write i2c OK [14:40:55]MH_I2C_Read... [14:40:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:40:55]Read from MH i2c: E2 [14:40:55]MH_I2C_Read... [14:40:55]Read from MH i2c: E2 03 00 [14:40:55]MH_I2C_Read... [14:40:55]Read from MH i2c: E2 03 00 35 08 00 90 00 B1 [14:40:55]RAPDU: 90 00 [14:40:55]wFMCommunicate OK [14:40:55]SAM_PROTO_ClearQueue done [14:40:55]KKMCreateOFDPacket [14:40:55]OFDProtocolAddRootSTLVToBuf [14:40:55]FM_MakeSignedData [14:40:55]FM_MakeSignedData [14:40:55]SAM_PROTO_SignData [14:40:55]wFMCommunicate request_size=4 [14:40:55]MH_SAM_APDU [14:40:55]CAPDU: 80 0D 01 02 [14:40:55]Write to MH i2c: E2 08 00 36 08 80 0D 01 02 00 00 00 00 B7 [14:40:55]Write i2c OK [14:40:55]MH_I2C_Read... [14:40:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:40:55]Read from MH i2c: E2 [14:40:55]MH_I2C_Read... [14:40:55]Read from MH i2c: E2 03 00 [14:40:55]MH_I2C_Read... [14:40:55]Read from MH i2c: E2 03 00 36 08 00 90 00 B2 [14:40:55]RAPDU: 90 00 [14:40:55]wFMCommunicate OK [14:40:55]wFMCommunicate request_size=255 [14:40:55]MH_SAM_APDU [14:40:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 76 70 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 F4 92 01 00 35 04 06 00 B2 [14:40:55]Write to MH i2c: E2 02 01 37 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 76 70 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 F4 92 01 00 35 04 06 00 B2 00 00 2F [14:40:55]Write i2c OK [14:40:55]MH_I2C_Read... [14:40:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:55]Read from MH i2c: E2 [14:40:55]MH_I2C_Read... [14:40:55]Read from MH i2c: E2 03 00 [14:40:55]MH_I2C_Read... [14:40:55]Read from MH i2c: E2 03 00 37 08 00 90 00 B3 [14:40:55]RAPDU: 90 00 [14:40:55]wFMCommunicate OK [14:40:55]wFMCommunicate request_size=10 [14:40:55]MH_SAM_APDU [14:40:55]CAPDU: 80 0D 02 02 05 CE 89 1F 8A FF [14:40:55]Write to MH i2c: E2 0D 00 38 08 80 0D 02 02 05 00 CE 89 1F 8A FF 00 00 C3 [14:40:55]Write i2c OK [14:40:55]MH_I2C_Read... [14:40:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:55]Read from MH i2c: E2 [14:40:55]MH_I2C_Read... [14:40:55]Read from MH i2c: E2 03 00 [14:40:55]MH_I2C_Read... [14:40:55]Read from MH i2c: E2 03 00 38 08 00 90 00 B4 [14:40:55]RAPDU: 90 00 [14:40:55]wFMCommunicate OK [14:40:55]wFMCommunicate request_size=4 [14:40:55]MH_SAM_APDU [14:40:55]CAPDU: 80 0D 03 02 [14:40:55]Write to MH i2c: E2 08 00 39 08 80 0D 03 02 00 00 00 00 BC [14:40:55]Write i2c OK [14:40:55]MH_I2C_Read... [14:40:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:40:55]Read from MH i2c: E2 [14:40:55]MH_I2C_Read... [14:40:55]Read from MH i2c: E2 0B 00 [14:40:55]MH_I2C_Read... [14:40:55]Read from MH i2c: E2 0B 00 39 08 00 37 6A 9B D5 88 E9 39 23 90 00 9B [14:40:55]RAPDU: 37 6A 9B D5 88 E9 39 23 90 00 [14:40:55]wFMCommunicate OK [14:40:55]SAM_PROTO_SignData done [14:40:55]FM_MakeSignedData done [14:40:55]CreateOFDProtocolMessage [14:40:55]wFMCommunicate request_size=4 [14:40:55]MH_SAM_APDU [14:40:55]CAPDU: 80 11 00 00 [14:40:55]Write to MH i2c: E2 08 00 3A 08 80 11 00 00 00 00 00 00 BC [14:40:55]Write i2c OK [14:40:55]MH_I2C_Read... [14:40:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:55]Read from MH i2c: E2 [14:40:55]MH_I2C_Read... [14:40:55]Read from MH i2c: E2 17 00 [14:40:55]MH_I2C_Read... [14:40:55]Read from MH i2c: E2 17 00 3A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 10 [14:40:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [14:40:55]wFMCommunicate OK [14:40:55]CreateOFDProtocolMessage done [14:40:55]OFDSenderStorePacket 103156 [14:40:55]StoreOFDPacket docnum=103156 [14:40:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 12 04 07 01 22 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 76 70 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 F4 92 01 00 35 04 06 00 B2 CE 89 1F 8A FF 37 6A 9B D5 88 E9 39 23 [14:40:55]CheckFolder [14:40:55]dirname=/storage/ofd_packets [14:40:55]CheckFolder done [14:40:55]ProducePacketName [14:40:55]name=ofd_packets/00103156 [14:40:55]NVStorageSaveData ofd_packets/00103156 [14:40:55]File name is /storage/ofd_packets/00103156 [14:40:55]Write 301 bytes [14:40:55]NVStorageSaveData done [14:40:55]OFDSenderStorePacket done [14:40:55]KKMCreateOFDPacket done [14:40:55]NVStorageSaveData kkm_last_timestamp [14:40:55]File name is /storage/kkm_last_timestamp [14:40:55]Write 4 bytes [14:40:55]NVStorageSaveData done [14:40:55]ExternCall_PrintAddStr [14:40:55]wPrintStart [14:40:55]Write to MH i2c: 01 00 00 3B 08 43 [14:40:55]Write i2c OK [14:40:55]MH_I2C_Read... [14:40:55]Read from MH i2c: 01 [14:40:55]MH_I2C_Read... [14:40:55]Read from MH i2c: 01 07 00 [14:40:55]MH_I2C_Read... [14:40:55]Read from MH i2c: 01 07 00 3B 08 00 00 00 00 00 FF 0F 58 [14:40:55]RasterBufferAndPrint [14:40:55]line Счет N : (1)160786 [14:40:55]line ИНН: 02508201610067 [14:40:55]line Контрольно-Кассовый Чек [14:40:55]line ПРОДАЖА [14:40:55]line ТРК (МРК, ГНК) : 3 [14:40:55]line Товар: 2710124130 [14:40:55]line Аи-92-К-5 [14:40:55]line 15.180 * 65.90 [14:40:55]line = 1000.36 [14:40:55]line НДС 12% НСП 1% [14:40:55]line > о реализуемом товаре [14:40:55]line ОКРУГЛЕНИЕ: -0.36 [14:40:55]line ИТОГО: 1000.00 [14:40:55]line Внесено: 1000.00 [14:40:55]line СДАЧА: 0.00 [14:40:55]line НСП 1% : 8.85 [14:40:55]line НДС 12% : 106.23 [14:40:55]line Наличными: 1000.00 [14:40:55]line Безнал.: 0.00 [14:40:55]line Место: АЗС № 38 "Партнер Нефть" [14:40:55]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [14:40:55]line СНО: Общий режим [14:40:55]line Чек 67 13.08.2024 14:40 [14:40:55]line Смена: 464 ФФД: 1.0 [14:40:55]line ЗНМ: 0300000126 [14:40:55]line РНМ: 0000000000092718 [14:40:55]line Версия ККМ: 001 [14:40:55]line ФМ: 0000000000875058 [14:40:55]line ФД: 103156 [14:40:55]line ФПД: 196600133552895 [14:40:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T144054&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103156&fm=196600133552895&tin=02508201610067®Number=0000000000092718&sum=100000 [14:40:55]OFD Sender: Processing packet 103156 [packets to send 69, broken 68] [14:40:55]ProducePacketName [14:40:55]name=ofd_packets/00103156 [14:40:55]OFD Sender: To server: pG, [14:40:55]CommunicateWithHost lk.salyk.kg:30040 [14:40:55]ConnectInit lk.salyk.kg [14:40:55]written 0, free lines is 4095 [14:40:55]Connected sock=10 [14:40:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 12 04 07 01 22 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 76 70 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 F4 92 01 00 35 04 06 00 B2 CE 89 1F 8A FF 37 6A 9B D5 88 E9 39 23 [14:40:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 05 73 47 00 6D 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 35 30 35 38 10 04 04 00 F4 92 01 00 F4 03 04 00 E9 16 BB 66 B6 04 01 00 00 B6 D5 2F 7B A0 6B 29 50 [14:40:56]CommunicateWithHost err = 0 [14:40:56]CheckOFDResponse [14:40:56]1017 (14) - 77093643461234 [14:40:56]1041 (16) - 0000000000875058 [14:40:56]1040 (4) - 103156 [14:40:56]1012 (4) - 13.08.2024 08:18 [14:40:56]1206 (1) - 0 [14:40:56]OFD Sender: Remove packet 103156 [14:40:56]ProducePacketName [14:40:56]name=ofd_packets/00103156 [14:40:56]NVStorageDeleteData [14:40:56]Write to MH i2c: 01 00 00 66 08 6E [14:40:56]Write i2c OK [14:40:56]MH_I2C_Read... [14:40:56]Read from MH i2c: 01 [14:40:56]MH_I2C_Read... [14:40:56]Read from MH i2c: 01 07 00 [14:40:56]MH_I2C_Read... [14:40:56]Read from MH i2c: 01 07 00 66 08 00 00 00 00 00 EA 0C 6B [14:40:56]RasterBufferAndPrint [14:40:56]line [14:40:56]line [14:40:56]line [14:40:56]line [14:40:56]line [14:40:56]written 0, free lines is 3312 [14:40:56]MH_Cut [14:40:56]Write to MH i2c: D1 01 00 6D 08 01 47 [14:40:56]Write i2c OK [14:40:56]MH_I2C_Read... [14:40:56]Read from MH i2c: D1 [14:40:56]MH_I2C_Read... [14:40:56]Read from MH i2c: D1 01 00 [14:40:56]MH_I2C_Read... [14:40:56]Read from MH i2c: D1 01 00 6D 08 00 46 [14:40:56]Write to MH i2c: 01 00 00 6E 08 76 [14:40:56]Write i2c OK [14:40:56]MH_I2C_Read... [14:40:56]OFD Sender: No OFD packet to send [14:40:57]*** Cut start [14:40:57]*** Purtial cut [14:40:57]*** Stage 1: CUTSNS_PIN = 1 [14:40:57]Read from MH i2c: 01 [14:40:57]MH_I2C_Read... [14:40:57]*** Stop cut motor [14:40:57]*** Cut end [14:40:57]Read from MH i2c: 01 07 00 [14:40:57]MH_I2C_Read... [14:40:57]Read from MH i2c: 01 07 00 6E 08 00 00 00 00 00 FF 0F 8B [14:40:57]process_action close_receipt done [14:40:57]requested_data is exist [14:40:57]produce_requested_data [14:40:57]requested_item fm.sn is exist - process it [14:40:57]wFMCommunicate request_size=4 [14:40:57]MH_SAM_APDU [14:40:57]CAPDU: 80 11 00 00 [14:40:57]Write to MH i2c: E2 08 00 6F 08 80 11 00 00 00 00 00 00 F1 [14:40:57]Write i2c OK [14:40:57]MH_I2C_Read... [14:40:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:57]Read from MH i2c: E2 [14:40:57]MH_I2C_Read... [14:40:57]Read from MH i2c: E2 17 00 [14:40:57]MH_I2C_Read... [14:40:57]Read from MH i2c: E2 17 00 6F 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 45 [14:40:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [14:40:57]wFMCommunicate OK [14:40:57]requested_item fd.num is exist - process it [14:40:57]SAM_PROTO_GetFieldsCounters [14:40:57]wFMCommunicate request_size=4 [14:40:57]MH_SAM_APDU [14:40:57]CAPDU: 80 13 00 00 [14:40:57]Write to MH i2c: E2 08 00 70 08 80 13 00 00 00 00 00 00 F4 [14:40:57]Write i2c OK [14:40:57]MH_I2C_Read... [14:40:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:40:57]Read from MH i2c: E2 [14:40:57]MH_I2C_Read... [14:40:57]Read from MH i2c: E2 62 00 [14:40:57]MH_I2C_Read... [14:40:57]Read from MH i2c: E2 62 00 70 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 F4 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [14:40:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 F4 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:40:57]wFMCommunicate OK [14:40:57]SAM_PROTO_GetFieldsCounters done [14:40:57]requested_item shift.num is exist - process it [14:40:57]requested_item shift.opened is exist - process it [14:40:57]req_shift_opened [14:40:57]FM_GetShiftState [14:40:57]SAM_PROTO_GetShiftState [14:40:57]wFMCommunicate request_size=4 [14:40:57]MH_SAM_APDU [14:40:57]CAPDU: 80 13 01 00 [14:40:57]Write to MH i2c: E2 08 00 71 08 80 13 01 00 00 00 00 00 F6 [14:40:57]Write i2c OK [14:40:57]MH_I2C_Read... [14:40:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:57]Read from MH i2c: E2 [14:40:57]MH_I2C_Read... [14:40:57]Read from MH i2c: E2 0E 00 [14:40:57]MH_I2C_Read... [14:40:57]Read from MH i2c: E2 0E 00 71 08 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 14 [14:40:57]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [14:40:57]wFMCommunicate OK [14:40:57]SAM_PROTO_GetShiftState done [14:40:57]FM_GetShiftState done [14:40:57]req_shift_opened done [14:40:57]requested_item shift.open_date is exist - process it [14:40:57]req_shift_open_date [14:40:57]req_shift_open_date done [14:40:57]produce_requested_data done [14:40:57]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103156,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [14:40:57]process_action_free close_receipt [14:40:57]json_value_free [14:40:57]json_value_free done [14:40:57]process_json_proto returns [14:40:57]Send response to host [14:40:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103156,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [14:40:57]free response buf [14:40:57]execute_script done [14:40:57]execute_script returns [14:40:57]free content buf [14:40:57]Sock 9.Close socket [14:40:57]Sock 9.Thread stoped [14:41:01]OFD Sender: No OFD packet to send [14:41:06]OFD Sender: No OFD packet to send [14:41:11]OFD Sender: No OFD packet to send [14:41:16]OFD Sender: No OFD packet to send [14:41:21]OFD Sender: No OFD packet to send [14:41:26]OFD Sender: No OFD packet to send [14:41:31]OFD Sender: No OFD packet to send [14:41:36]OFD Sender: No OFD packet to send [14:41:41]OFD Sender: No OFD packet to send [14:41:46]OFD Sender: No OFD packet to send [14:41:51]OFD Sender: No OFD packet to send [14:41:56]OFD Sender: No OFD packet to send [14:42:01]OFD Sender: No OFD packet to send [14:42:06]OFD Sender: No OFD packet to send [14:42:11]OFD Sender: No OFD packet to send [14:42:16]OFD Sender: No OFD packet to send [14:42:21]OFD Sender: No OFD packet to send [14:42:26]OFD Sender: No OFD packet to send [14:42:31]OFD Sender: No OFD packet to send [14:42:36]OFD Sender: No OFD packet to send [14:42:41]OFD Sender: No OFD packet to send [14:42:46]OFD Sender: No OFD packet to send [14:42:51]OFD Sender: No OFD packet to send [14:42:56]OFD Sender: No OFD packet to send [14:43:01]OFD Sender: No OFD packet to send [14:43:06]OFD Sender: No OFD packet to send [14:43:11]OFD Sender: No OFD packet to send [14:43:16]OFD Sender: No OFD packet to send [14:43:21]OFD Sender: No OFD packet to send [14:43:26]OFD Sender: No OFD packet to send [14:43:31]OFD Sender: No OFD packet to send [14:43:36]OFD Sender: No OFD packet to send [14:43:41]OFD Sender: No OFD packet to send [14:43:46]OFD Sender: No OFD packet to send [14:43:51]OFD Sender: No OFD packet to send [14:43:56]OFD Sender: No OFD packet to send [14:44:01]OFD Sender: No OFD packet to send [14:44:06]OFD Sender: No OFD packet to send [14:44:11]OFD Sender: No OFD packet to send [14:44:16]OFD Sender: No OFD packet to send [14:44:21]OFD Sender: No OFD packet to send [14:44:26]OFD Sender: No OFD packet to send [14:44:31]OFD Sender: No OFD packet to send [14:44:36]OFD Sender: No OFD packet to send [14:44:41]OFD Sender: No OFD packet to send [14:44:46]OFD Sender: No OFD packet to send [14:44:51]OFD Sender: No OFD packet to send [14:44:56]OFD Sender: No OFD packet to send [14:45:01]OFD Sender: No OFD packet to send [14:45:06]OFD Sender: No OFD packet to send [14:45:11]OFD Sender: No OFD packet to send [14:45:16]OFD Sender: No OFD packet to send [14:45:21]OFD Sender: No OFD packet to send [14:45:26]OFD Sender: No OFD packet to send [14:45:31]OFD Sender: No OFD packet to send [14:45:36]OFD Sender: No OFD packet to send [14:45:41]OFD Sender: No OFD packet to send [14:45:46]OFD Sender: No OFD packet to send [14:46:05]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [14:46:05]Read from MH i2c: E2 [14:46:05]MH_I2C_Read... [14:46:05]Read from MH i2c: E2 03 00 [14:46:05]MH_I2C_Read... [14:46:05]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [14:46:05]RAPDU: 90 00 [14:46:05]wFMCommunicate OK [14:46:05]wFMCommunicate request_size=4 [14:46:05]MH_SAM_APDU [14:46:05]CAPDU: 80 11 00 00 [14:46:05]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [14:46:05]Write i2c OK [14:46:05]MH_I2C_Read... [14:46:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:05]Read from MH i2c: E2 [14:46:05]MH_I2C_Read... [14:46:05]Read from MH i2c: E2 17 00 [14:46:05]MH_I2C_Read... [14:46:05]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 D8 [14:46:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [14:46:05]wFMCommunicate OK [14:46:05]Detected FM SN is 0000000000875058 [14:46:05]Stored FM SN is 0000000000875058 [14:46:05]wFMCommunicate request_size=9 [14:46:05]MH_SAM_APDU [14:46:05]CAPDU: 80 16 00 00 04 5C 74 00 00 [14:46:05]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 5C 74 00 00 00 00 62 [14:46:05]Write i2c OK [14:46:05]MH_I2C_Read... [14:46:05]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [14:46:05]Read from MH i2c: E2 [14:46:05]MH_I2C_Read... [14:46:05]Read from MH i2c: E2 03 00 [14:46:05]MH_I2C_Read... [14:46:05]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [14:46:05]RAPDU: 90 00 [14:46:05]wFMCommunicate OK [14:46:05]FM PIN OK [14:46:05]wFMCommunicate request_size=8 [14:46:05]MH_SAM_APDU [14:46:05]CAPDU: 80 14 04 00 03 02 00 01 [14:46:05]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [14:46:05]Write i2c OK [14:46:05]MH_I2C_Read... [14:46:05]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [14:46:05]Read from MH i2c: E2 [14:46:05]MH_I2C_Read... [14:46:05]Read from MH i2c: E2 03 00 [14:46:05]MH_I2C_Read... [14:46:05]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [14:46:05]RAPDU: 90 00 [14:46:05]wFMCommunicate OK [14:46:05]wFMCommunicate request_size=13 [14:46:05]MH_SAM_APDU [14:46:05]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [14:46:05]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [14:46:05]Write i2c OK [14:46:05]MH_I2C_Read... [14:46:05]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [14:46:05]Read from MH i2c: E2 [14:46:05]MH_I2C_Read... [14:46:05]Read from MH i2c: E2 03 00 [14:46:05]MH_I2C_Read... [14:46:05]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [14:46:05]RAPDU: 90 00 [14:46:05]wFMCommunicate OK [14:46:05]wFMCommunicate request_size=4 [14:46:05]MH_SAM_APDU [14:46:05]CAPDU: 80 11 00 00 [14:46:05]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [14:46:05]Write i2c OK [14:46:05]MH_I2C_Read... [14:46:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:05]Read from MH i2c: E2 [14:46:05]MH_I2C_Read... [14:46:05]Read from MH i2c: E2 17 00 [14:46:05]MH_I2C_Read... [14:46:05]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 DC [14:46:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [14:46:05]wFMCommunicate OK [14:46:05]DocumentArchiveInit [14:46:05]Start Httpd... [14:46:05]Httpd thread 3067546980 created [14:46:05]Write to MH i2c: 01 00 00 0F 00 0F [14:46:05]Write i2c OK [14:46:05]MH_I2C_Read... [14:46:05]Read from MH i2c: 01 [14:46:05]MH_I2C_Read... [14:46:05]Read from MH i2c: 01 07 00 [14:46:05]MH_I2C_Read... [14:46:05]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [14:46:05]Allocated Socket 5 [14:46:05]Bind OK [14:46:05]Listen OK [14:46:05]httpd running on port 8080 [14:46:05]Waiting for new connection... [14:46:05]MH Int Process started [14:46:05]OFD Sender: No OFD packet to send [14:46:10]OFD Sender: No OFD packet to send [14:46:11]ConnectInit Can't connect to host [14:46:13]accept exits with 6 [14:46:13]New connection [14:46:13]New thread 3067260260 created [14:46:13]Waiting for new connection... [14:46:13] Sock 6.Parse request [14:46:13]Sock 6.Check first char [14:46:13]Sock 6.First char is OK [14:46:13]request: POST /json_proto HTTP/1.0 [14:46:13]Method: POST [14:46:13]URL: /json_proto [14:46:13]Method is POST - this is cgi request [14:46:13]url: /json_proto [14:46:13]query_string will be loaded in cgi processing [14:46:13]execute_cgi json_proto POST (null) [14:46:13]execute_cgi path=json_proto method=POST [14:46:13]POST find Content-Length [14:46:13]Host: 172.17.58.3:8080 [14:46:13]Content-Length: 215 [14:46:13]Content-Type: application/json [14:46:13] [14:46:13]POST finish read [14:46:13]Found Content-Length = 215 [14:46:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:13]execute_script... [14:46:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:13]POST & json_proto [14:46:13]process_json_proto [14:46:13]json parsed OK: [14:46:13]protocol is kg_v1.0 [14:46:13]action value=get_value [14:46:13]process_action get_value [14:46:13]cmd_get_value [14:46:13]process_action get_value done [14:46:13]requested_data is exist [14:46:13]produce_requested_data [14:46:13]requested_item kkm.sn is exist - process it [14:46:13]requested_item kkm.ver is exist - process it [14:46:13]requested_item fm.sn is exist - process it [14:46:13]wFMCommunicate request_size=4 [14:46:13]MH_SAM_APDU [14:46:13]CAPDU: 80 11 00 00 [14:46:13]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [14:46:13]Write i2c OK [14:46:13]MH_I2C_Read... [14:46:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:13]Read from MH i2c: E2 [14:46:13]MH_I2C_Read... [14:46:13]Read from MH i2c: E2 17 00 [14:46:13]MH_I2C_Read... [14:46:13]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 DE [14:46:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [14:46:13]wFMCommunicate OK [14:46:13]requested_item fd.num is exist - process it [14:46:13]SAM_PROTO_GetFieldsCounters [14:46:13]wFMCommunicate request_size=4 [14:46:13]MH_SAM_APDU [14:46:13]CAPDU: 80 13 00 00 [14:46:13]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [14:46:13]Write i2c OK [14:46:13]MH_I2C_Read... [14:46:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:46:13]Read from MH i2c: E2 [14:46:13]MH_I2C_Read... [14:46:13]Read from MH i2c: E2 62 00 [14:46:13]MH_I2C_Read... [14:46:13]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 F4 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [14:46:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 F4 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:46:13]wFMCommunicate OK [14:46:13]SAM_PROTO_GetFieldsCounters done [14:46:13]requested_item shift.num is exist - process it [14:46:13]requested_item shift.opened is exist - process it [14:46:13]req_shift_opened [14:46:13]FM_GetShiftState [14:46:13]SAM_PROTO_GetShiftState [14:46:13]wFMCommunicate request_size=4 [14:46:13]MH_SAM_APDU [14:46:13]CAPDU: 80 13 01 00 [14:46:13]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [14:46:13]Write i2c OK [14:46:13]MH_I2C_Read... [14:46:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:13]Read from MH i2c: E2 [14:46:13]MH_I2C_Read... [14:46:13]Read from MH i2c: E2 0E 00 [14:46:13]MH_I2C_Read... [14:46:13]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 AD [14:46:13]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [14:46:13]wFMCommunicate OK [14:46:13]SAM_PROTO_GetShiftState done [14:46:13]FM_GetShiftState done [14:46:13]req_shift_opened done [14:46:13]requested_item shift.open_date is exist - process it [14:46:13]req_shift_open_date [14:46:13]req_shift_open_date done [14:46:13]produce_requested_data done [14:46:13]produce_requested_data return {"kkm.sn":"0300000126","kkm.ver":"001","fm.sn":"0000000000875058","fd.num":103156,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [14:46:13]process_action_free get_value [14:46:13]json_value_free [14:46:13]json_value_free done [14:46:13]process_json_proto returns [14:46:13]Send response to host [14:46:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000126","kkm.ver":"001","fm.sn":"0000000000875058","fd.num":103156,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [14:46:13]free response buf [14:46:13]execute_script done [14:46:13]execute_script returns [14:46:13]free content buf [14:46:13]Sock 6.Close socket [14:46:13]Sock 6.Thread stoped [14:46:13]accept exits with 7 [14:46:13]New connection [14:46:13]New thread 3067116900 created [14:46:13]Thread 3067260260 joined [14:46:13]Waiting for new connection... [14:46:13] Sock 7.Parse request [14:46:13]Sock 7.Check first char [14:46:13]Sock 7.First char is OK [14:46:13]request: POST /json_proto HTTP/1.0 [14:46:13]Method: POST [14:46:13]URL: /json_proto [14:46:13]Method is POST - this is cgi request [14:46:13]url: /json_proto [14:46:13]query_string will be loaded in cgi processing [14:46:13]execute_cgi json_proto POST (null) [14:46:13]execute_cgi path=json_proto method=POST [14:46:13]POST find Content-Length [14:46:13]Host: 172.17.58.3:8080 [14:46:13]Content-Length: 331 [14:46:13]Content-Type: application/json [14:46:13] [14:46:13]POST finish read [14:46:13]Found Content-Length = 331 [14:46:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:46:13]execute_script... [14:46:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:46:13]POST & json_proto [14:46:13]process_json_proto [14:46:13]json parsed OK: [14:46:13]protocol is kg_v1.0 [14:46:13]action value=get_value [14:46:13]process_action get_value [14:46:13]cmd_get_value [14:46:13]process_action get_value done [14:46:13]requested_data is exist [14:46:13]produce_requested_data [14:46:13]requested_item fm.sale.total is exist - process it [14:46:13]SAM_PROTO_GetFMData [14:46:13]wFMCommunicate request_size=4 [14:46:13]MH_SAM_APDU [14:46:13]CAPDU: 80 13 03 00 [14:46:13]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [14:46:13]Write i2c OK [14:46:13]MH_I2C_Read... [14:46:14]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [14:46:14]Read from MH i2c: E2 [14:46:14]MH_I2C_Read... [14:46:14]Read from MH i2c: E2 FD 00 [14:46:14]MH_I2C_Read... [14:46:14]Read from MH i2c: E2 FD 00 13 00 00 C8 04 85 04 C4 04 6E 04 04 00 54 8F 01 00 69 04 A3 00 6F 04 04 00 5E 87 01 00 B1 04 05 00 62 F0 4F 89 01 70 04 05 00 64 21 69 0B 01 72 04 04 00 FE CE E6 7D 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 E0 25 C7 29 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 C2 2A 7B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F6 07 00 00 B1 04 04 00 D8 EE BC 12 70 04 04 00 70 DB B0 12 72 04 03 00 68 13 0C 00 04 7C 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 15 7B FD 01 90 00 F7 [14:46:14]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 54 8F 01 00 69 04 A3 00 6F 04 04 00 5E 87 01 00 B1 04 05 00 62 F0 4F 89 01 70 04 05 00 64 21 69 0B 01 72 04 04 00 FE CE E6 7D 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 E0 25 C7 29 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 C2 2A 7B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F6 07 00 00 B1 04 04 00 D8 EE BC 12 70 04 04 00 70 DB B0 12 72 04 03 00 68 13 0C 00 04 7C 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 15 7B FD 01 90 00 [14:46:14]wFMCommunicate OK [14:46:14]wFMCommunicate request_size=4 [14:46:14]MH_SAM_APDU [14:46:14]CAPDU: 80 17 00 00 [14:46:14]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [14:46:14]Write i2c OK [14:46:14]MH_I2C_Read... [14:46:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:46:14]Read from MH i2c: E2 [14:46:14]MH_I2C_Read... [14:46:14]Read from MH i2c: E2 FD 00 [14:46:14]MH_I2C_Read... [14:46:14]Read from MH i2c: E2 FD 00 14 00 00 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 60 74 2A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8E [14:46:14]RAPDU: 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 60 74 2A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [14:46:14]wFMCommunicate OK [14:46:14]wFMCommunicate request_size=4 [14:46:14]MH_SAM_APDU [14:46:14]CAPDU: 80 17 00 00 [14:46:14]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [14:46:14]Write i2c OK [14:46:14]MH_I2C_Read... [14:46:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:46:14]Read from MH i2c: E2 [14:46:14]MH_I2C_Read... [14:46:14]Read from MH i2c: E2 FD 00 [14:46:14]MH_I2C_Read... [14:46:14]Read from MH i2c: E2 FD 00 15 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6D [14:46:14]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [14:46:14]wFMCommunicate OK [14:46:14]wFMCommunicate request_size=4 [14:46:14]MH_SAM_APDU [14:46:14]CAPDU: 80 17 00 00 [14:46:14]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [14:46:14]Write i2c OK [14:46:14]MH_I2C_Read... [14:46:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:46:15]Read from MH i2c: E2 [14:46:15]MH_I2C_Read... [14:46:15]Read from MH i2c: E2 FD 00 [14:46:15]MH_I2C_Read... [14:46:15]Read from MH i2c: E2 FD 00 16 00 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 0E [14:46:15]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [14:46:15]wFMCommunicate OK [14:46:15]wFMCommunicate request_size=4 [14:46:15]MH_SAM_APDU [14:46:15]CAPDU: 80 17 00 00 [14:46:15]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [14:46:15]Write i2c OK [14:46:15]MH_I2C_Read... [14:46:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [14:46:15]Read from MH i2c: E2 [14:46:15]MH_I2C_Read... [14:46:15]Read from MH i2c: E2 E5 00 [14:46:15]MH_I2C_Read... [14:46:15]Read from MH i2c: E2 E5 00 17 00 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7B [14:46:15]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [14:46:15]wFMCommunicate OK [14:46:15]SAM_PROTO_GetFMData done [14:46:15]requested_item fm.sale_refund.total is exist - process it [14:46:15]requested_item fm.buy.total is exist - process it [14:46:15]requested_item shift.sale.total is exist - process it [14:46:15]SAM_PROTO_GetShiftData [14:46:15]wFMCommunicate request_size=4 [14:46:15]MH_SAM_APDU [14:46:15]CAPDU: 80 13 02 00 [14:46:15]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [14:46:15]Write i2c OK [14:46:15]MH_I2C_Read... [14:46:15]OFD Sender: No OFD packet to send [14:46:15]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [14:46:15]Read from MH i2c: E2 [14:46:15]MH_I2C_Read... [14:46:15]Read from MH i2c: E2 FD 00 [14:46:15]MH_I2C_Read... [14:46:15]Read from MH i2c: E2 FD 00 18 00 00 B5 04 AA 04 B1 04 6E 04 04 00 43 00 00 00 69 04 9A 00 6F 04 04 00 41 00 00 00 B1 04 03 00 60 0D 5B 70 04 03 00 44 E8 5A 72 04 02 00 1C 25 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 38 AC 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 55 CE EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 95 00 6F 04 04 00 02 00 00 00 B1 04 02 00 40 9C 70 04 02 00 40 9C 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 A1 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 90 00 0B [14:46:15]RAPDU: B5 04 AA 04 B1 04 6E 04 04 00 43 00 00 00 69 04 9A 00 6F 04 04 00 41 00 00 00 B1 04 03 00 60 0D 5B 70 04 03 00 44 E8 5A 72 04 02 00 1C 25 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 38 AC 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 55 CE EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 95 00 6F 04 04 00 02 00 00 00 B1 04 02 00 40 9C 70 04 02 00 40 9C 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 A1 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 90 00 [14:46:15]wFMCommunicate OK [14:46:15]wFMCommunicate request_size=4 [14:46:15]MH_SAM_APDU [14:46:15]CAPDU: 80 17 00 00 [14:46:15]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [14:46:15]Write i2c OK [14:46:15]MH_I2C_Read... [14:46:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:46:16]Read from MH i2c: E2 [14:46:16]MH_I2C_Read... [14:46:16]Read from MH i2c: E2 FD 00 [14:46:16]MH_I2C_Read... [14:46:16]Read from MH i2c: E2 FD 00 19 00 00 03 01 00 01 F7 03 02 00 63 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 90 00 1E [14:46:16]RAPDU: 03 01 00 01 F7 03 02 00 63 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 90 00 [14:46:16]wFMCommunicate OK [14:46:16]wFMCommunicate request_size=4 [14:46:16]MH_SAM_APDU [14:46:16]CAPDU: 80 17 00 00 [14:46:16]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [14:46:16]Write i2c OK [14:46:16]MH_I2C_Read... [14:46:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:46:16]Read from MH i2c: E2 [14:46:16]MH_I2C_Read... [14:46:16]Read from MH i2c: E2 FD 00 [14:46:16]MH_I2C_Read... [14:46:16]Read from MH i2c: E2 FD 00 1A 00 00 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 57 [14:46:16]RAPDU: 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [14:46:16]wFMCommunicate OK [14:46:16]wFMCommunicate request_size=4 [14:46:16]MH_SAM_APDU [14:46:16]CAPDU: 80 17 00 00 [14:46:16]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [14:46:16]Write i2c OK [14:46:16]MH_I2C_Read... [14:46:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:46:16]Read from MH i2c: E2 [14:46:16]MH_I2C_Read... [14:46:16]Read from MH i2c: E2 FD 00 [14:46:16]MH_I2C_Read... [14:46:16]Read from MH i2c: E2 FD 00 1B 00 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 90 00 13 [14:46:16]RAPDU: F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 90 00 [14:46:16]wFMCommunicate OK [14:46:16]wFMCommunicate request_size=4 [14:46:16]MH_SAM_APDU [14:46:16]CAPDU: 80 17 00 00 [14:46:16]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [14:46:16]Write i2c OK [14:46:16]MH_I2C_Read... [14:46:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 207! [14:46:16]Read from MH i2c: E2 [14:46:16]MH_I2C_Read... [14:46:16]Read from MH i2c: E2 D2 00 [14:46:16]MH_I2C_Read... [14:46:16]Read from MH i2c: E2 D2 00 1C 00 00 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 7F [14:46:17]RAPDU: 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [14:46:17]wFMCommunicate OK [14:46:17]SAM_PROTO_GetShiftData done [14:46:17]requested_item shift.sale.total_cash is exist - process it [14:46:17]requested_item shift.sale_refund.total is exist - process it [14:46:17]requested_item shift.sale_refund.total_cash is exist - process it [14:46:17]requested_item shift.buy.total is exist - process it [14:46:17]requested_item shift.buy.total_cash is exist - process it [14:46:17]produce_requested_data done [14:46:17]produce_requested_data return {"fm.sale.total":65986847.70,"fm.sale_refund.total":3143718.00,"fm.buy.total":0.00,"shift.sale.total":59672.00,"shift.sale.total_cash":59577.00,"shift.sale_refund.total":400.00,"shift.sale_refund.total_cash":400.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [14:46:17]process_action_free get_value [14:46:17]json_value_free [14:46:17]json_value_free done [14:46:17]process_json_proto returns [14:46:17]Send response to host [14:46:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":65986847.70,"fm.sale_refund.total":3143718.00,"fm.buy.total":0.00,"shift.sale.total":59672.00,"shift.sale.total_cash":59577.00,"shift.sale_refund.total":400.00,"shift.sale_refund.total_cash":400.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [14:46:17]free response buf [14:46:17]execute_script done [14:46:17]execute_script returns [14:46:17]free content buf [14:46:17]Sock 7.Close socket [14:46:17]Sock 7.Thread stoped [14:46:20]OFD Sender: No OFD packet to send [14:46:25]OFD Sender: No OFD packet to send [14:46:30]OFD Sender: No OFD packet to send [14:46:35]OFD Sender: No OFD packet to send [14:46:40]OFD Sender: No OFD packet to send [14:46:45]OFD Sender: No OFD packet to send [14:46:50]OFD Sender: No OFD packet to send [14:46:55]OFD Sender: No OFD packet to send [14:47:00]OFD Sender: No OFD packet to send [14:47:05]OFD Sender: No OFD packet to send [14:47:10]OFD Sender: No OFD packet to send [14:47:15]OFD Sender: No OFD packet to send [14:47:20]OFD Sender: No OFD packet to send [14:47:25]OFD Sender: No OFD packet to send [14:47:30]OFD Sender: No OFD packet to send [14:47:35]OFD Sender: No OFD packet to send [14:47:40]OFD Sender: No OFD packet to send [14:47:45]OFD Sender: No OFD packet to send [14:47:50]OFD Sender: No OFD packet to send [14:47:55]OFD Sender: No OFD packet to send [14:48:00]OFD Sender: No OFD packet to send [14:48:05]OFD Sender: No OFD packet to send [14:48:10]OFD Sender: No OFD packet to send [14:48:15]OFD Sender: No OFD packet to send [14:48:20]OFD Sender: No OFD packet to send [14:48:25]OFD Sender: No OFD packet to send [14:48:30]OFD Sender: No OFD packet to send [14:48:35]OFD Sender: No OFD packet to send [14:48:40]OFD Sender: No OFD packet to send [14:48:45]OFD Sender: No OFD packet to send [14:48:50]OFD Sender: No OFD packet to send [14:48:55]OFD Sender: No OFD packet to send [14:49:00]OFD Sender: No OFD packet to send [14:49:05]OFD Sender: No OFD packet to send [14:49:10]OFD Sender: No OFD packet to send [14:49:15]OFD Sender: No OFD packet to send [14:49:20]OFD Sender: No OFD packet to send [14:49:25]OFD Sender: No OFD packet to send [14:49:30]OFD Sender: No OFD packet to send [14:49:35]OFD Sender: No OFD packet to send [14:49:40]OFD Sender: No OFD packet to send [14:49:45]OFD Sender: No OFD packet to send [14:49:50]OFD Sender: No OFD packet to send [14:49:55]OFD Sender: No OFD packet to send [14:50:00]OFD Sender: No OFD packet to send [14:50:05]OFD Sender: No OFD packet to send [14:50:10]OFD Sender: No OFD packet to send [14:50:15]OFD Sender: No OFD packet to send [14:50:20]OFD Sender: No OFD packet to send [14:50:25]OFD Sender: No OFD packet to send [14:50:30]OFD Sender: No OFD packet to send [14:50:35]OFD Sender: No OFD packet to send [14:50:40]OFD Sender: No OFD packet to send [14:50:45]OFD Sender: No OFD packet to send [14:50:50]OFD Sender: No OFD packet to send [14:50:55]OFD Sender: No OFD packet to send [14:51:00]OFD Sender: No OFD packet to send [14:51:05]OFD Sender: No OFD packet to send [14:51:10]OFD Sender: No OFD packet to send [14:51:15]OFD Sender: No OFD packet to send [14:51:20]OFD Sender: No OFD packet to send [14:51:22]accept exits with 6 [14:51:22]New connection [14:51:22]New thread 3067260260 created [14:51:22]Thread 3067116900 joined [14:51:22]Waiting for new connection... [14:51:22] Sock 6.Parse request [14:51:22]Sock 6.Check first char [14:51:22]Sock 6.First char is OK [14:51:22]request: POST /json_proto HTTP/1.0 [14:51:22]Method: POST [14:51:22]URL: /json_proto [14:51:22]Method is POST - this is cgi request [14:51:22]url: /json_proto [14:51:22]query_string will be loaded in cgi processing [14:51:22]execute_cgi json_proto POST (null) [14:51:22]execute_cgi path=json_proto method=POST [14:51:22]POST find Content-Length [14:51:22]Host: 172.17.58.3:8080 [14:51:22]Content-Length: 676 [14:51:22]Content-Type: application/json [14:51:22] [14:51:22]POST finish read [14:51:22]Found Content-Length = 676 [14:51:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160787", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 9.110, "sum" : 600.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:22]execute_script... [14:51:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160787", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 9.110, "sum" : 600.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:22]POST & json_proto [14:51:22]process_json_proto [14:51:22]json parsed OK: [14:51:22]protocol is kg_v1.0 [14:51:22]action value=close_receipt [14:51:22]process_action close_receipt [14:51:22]cmd_close_receipt [14:51:22]MH_GetDate [14:51:22]Write to MH i2c: F0 00 00 1D 00 0C [14:51:22]Write i2c OK [14:51:22]MH_I2C_Read... [14:51:22]Read from MH i2c: F0 [14:51:22]MH_I2C_Read... [14:51:22]Read from MH i2c: F0 09 00 [14:51:22]MH_I2C_Read... [14:51:22]Read from MH i2c: F0 09 00 1D 00 00 EB 72 BB 66 DC E4 6D 64 24 [14:51:22]GetLastDocTimeStamp 1723560054 [14:51:22]current date 1723560683 [14:51:22]FM_GetShiftState [14:51:22]SAM_PROTO_GetShiftState [14:51:22]wFMCommunicate request_size=4 [14:51:22]MH_SAM_APDU [14:51:22]CAPDU: 80 13 01 00 [14:51:22]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [14:51:22]Write i2c OK [14:51:22]MH_I2C_Read... [14:51:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:22]Read from MH i2c: E2 [14:51:22]MH_I2C_Read... [14:51:22]Read from MH i2c: E2 0E 00 [14:51:22]MH_I2C_Read... [14:51:22]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 B9 [14:51:22]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [14:51:22]wFMCommunicate OK [14:51:22]SAM_PROTO_GetShiftState done [14:51:22]FM_GetShiftState done [14:51:22]opened in 1723506770 [14:51:22]opened+sec_in_day 1723593170 [14:51:22]quantity*price = 60034 [14:51:22]sum+1 = 60036 [14:51:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 68 13.08.2024 14:51 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103157 ФПД: 252241802562400 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T145123&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103157&fm=252241802562400&tin=02508201610067®Number=0000000000092718&sum=60000 [14:51:24]StoreToDocumentArchive [14:51:24]shift 464 fd 103157 [14:51:24]save to /storage/0464/doc_00103157 [14:51:24]save last doc name /storage/0464/doc_00103157 to /storage/kkm_last_doc_name [14:51:24]save OK [14:51:24]Clear old archive folders... [14:51:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:51:24]tlvbuf is 0021EA40 [14:51:24]SAM_PROTO_ClearQueue [14:51:24]wFMCommunicate request_size=4 [14:51:24]MH_SAM_APDU [14:51:24]CAPDU: 80 09 00 00 [14:51:24]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [14:51:24]Write i2c OK [14:51:24]MH_I2C_Read... [14:51:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:51:24]Read from MH i2c: E2 [14:51:24]MH_I2C_Read... [14:51:24]Read from MH i2c: E2 03 00 [14:51:24]MH_I2C_Read... [14:51:24]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [14:51:24]RAPDU: 90 00 [14:51:24]wFMCommunicate OK [14:51:24]SAM_PROTO_ClearQueue done [14:51:24]KKMCreateOFDPacket [14:51:24]OFDProtocolAddRootSTLVToBuf [14:51:24]FM_MakeSignedData [14:51:24]FM_MakeSignedData [14:51:24]SAM_PROTO_SignData [14:51:24]wFMCommunicate request_size=4 [14:51:24]MH_SAM_APDU [14:51:24]CAPDU: 80 0D 01 02 [14:51:24]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [14:51:24]Write i2c OK [14:51:24]MH_I2C_Read... [14:51:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:51:24]Read from MH i2c: E2 [14:51:24]MH_I2C_Read... [14:51:24]Read from MH i2c: E2 03 00 [14:51:24]MH_I2C_Read... [14:51:24]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [14:51:24]RAPDU: 90 00 [14:51:24]wFMCommunicate OK [14:51:24]wFMCommunicate request_size=255 [14:51:24]MH_SAM_APDU [14:51: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 96 23 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 EB 72 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 F5 92 01 00 35 04 06 00 E5 [14:51:24]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 23 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 EB 72 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 F5 92 01 00 35 04 06 00 E5 00 00 57 [14:51:24]Write i2c OK [14:51:24]MH_I2C_Read... [14:51:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:24]Read from MH i2c: E2 [14:51:24]MH_I2C_Read... [14:51:24]Read from MH i2c: E2 03 00 [14:51:24]MH_I2C_Read... [14:51:24]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [14:51:24]RAPDU: 90 00 [14:51:24]wFMCommunicate OK [14:51:24]wFMCommunicate request_size=10 [14:51:24]MH_SAM_APDU [14:51:24]CAPDU: 80 0D 02 02 05 69 9F 0A 0B 60 [14:51:24]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 69 9F 0A 0B 60 00 00 2F [14:51:24]Write i2c OK [14:51:24]MH_I2C_Read... [14:51:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:24]Read from MH i2c: E2 [14:51:24]MH_I2C_Read... [14:51:24]Read from MH i2c: E2 03 00 [14:51:24]MH_I2C_Read... [14:51:24]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [14:51:24]RAPDU: 90 00 [14:51:24]wFMCommunicate OK [14:51:24]wFMCommunicate request_size=4 [14:51:24]MH_SAM_APDU [14:51:24]CAPDU: 80 0D 03 02 [14:51:24]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [14:51:24]Write i2c OK [14:51:24]MH_I2C_Read... [14:51:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:51:24]Read from MH i2c: E2 [14:51:24]MH_I2C_Read... [14:51:24]Read from MH i2c: E2 0B 00 [14:51:24]MH_I2C_Read... [14:51:24]Read from MH i2c: E2 0B 00 2F 00 00 C8 D8 76 03 32 F9 BD 8A 90 00 36 [14:51:24]RAPDU: C8 D8 76 03 32 F9 BD 8A 90 00 [14:51:24]wFMCommunicate OK [14:51:24]SAM_PROTO_SignData done [14:51:24]FM_MakeSignedData done [14:51:24]CreateOFDProtocolMessage [14:51:24]wFMCommunicate request_size=4 [14:51:24]MH_SAM_APDU [14:51:24]CAPDU: 80 11 00 00 [14:51:24]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [14:51:24]Write i2c OK [14:51:24]MH_I2C_Read... [14:51:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:24]Read from MH i2c: E2 [14:51:24]MH_I2C_Read... [14:51:24]Read from MH i2c: E2 17 00 [14:51:24]MH_I2C_Read... [14:51:24]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 FE [14:51:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [14:51:24]wFMCommunicate OK [14:51:24]CreateOFDProtocolMessage done [14:51:24]OFDSenderStorePacket 103157 [14:51:24]StoreOFDPacket docnum=103157 [14:51:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 7C F9 07 01 A0 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 96 23 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 EB 72 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 F5 92 01 00 35 04 06 00 E5 69 9F 0A 0B 60 C8 D8 76 03 32 F9 BD 8A [14:51:24]CheckFolder [14:51:24]dirname=/storage/ofd_packets [14:51:24]CheckFolder done [14:51:24]ProducePacketName [14:51:24]name=ofd_packets/00103157 [14:51:24]NVStorageSaveData ofd_packets/00103157 [14:51:24]File name is /storage/ofd_packets/00103157 [14:51:24]Write 301 bytes [14:51:24]NVStorageSaveData done [14:51:24]OFDSenderStorePacket done [14:51:24]KKMCreateOFDPacket done [14:51:24]NVStorageSaveData kkm_last_timestamp [14:51:24]File name is /storage/kkm_last_timestamp [14:51:24]Write 4 bytes [14:51:24]NVStorageSaveData done [14:51:24]ExternCall_PrintAddStr [14:51:24]wPrintStart [14:51:24]Write to MH i2c: 01 00 00 31 00 31 [14:51:24]Write i2c OK [14:51:24]MH_I2C_Read... [14:51:24]Read from MH i2c: 01 [14:51:24]MH_I2C_Read... [14:51:24]Read from MH i2c: 01 07 00 [14:51:24]MH_I2C_Read... [14:51:24]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [14:51:24]RasterBufferAndPrint [14:51:24]line Счет N : (1)160787 [14:51:24]line ИНН: 02508201610067 [14:51:24]line Контрольно-Кассовый Чек [14:51:24]line ПРОДАЖА [14:51:24]line ТРК (МРК, ГНК) : 7 [14:51:24]line Товар: 2710124130 [14:51:24]line Аи-92-К-5 [14:51:24]line 9.110 * 65.90 [14:51:24]line = 600.35 [14:51:24]line НДС 12% НСП 1% [14:51:24]line > о реализуемом товаре [14:51:24]line ОКРУГЛЕНИЕ: -0.35 [14:51:24]line ИТОГО: 600.00 [14:51:24]line Внесено: 600.00 [14:51:24]line СДАЧА: 0.00 [14:51:24]line НСП 1% : 5.31 [14:51:24]line НДС 12% : 63.75 [14:51:24]line Наличными: 600.00 [14:51:24]line Безнал.: 0.00 [14:51:24]line Место: АЗС № 38 "Партнер Нефть" [14:51:24]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [14:51:24]line СНО: Общий режим [14:51:24]line Чек 68 13.08.2024 14:51 [14:51:24]line Смена: 464 ФФД: 1.0 [14:51:24]line ЗНМ: 0300000126 [14:51:24]line РНМ: 0000000000092718 [14:51:24]line Версия ККМ: 001 [14:51:24]line ФМ: 0000000000875058 [14:51:24]line ФД: 103157 [14:51:24]line ФПД: 252241802562400 [14:51:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T145123&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103157&fm=252241802562400&tin=02508201610067®Number=0000000000092718&sum=60000 [14:51:24]OFD Sender: Processing packet 103157 [packets to send 69, broken 68] [14:51:24]ProducePacketName [14:51:24]name=ofd_packets/00103157 [14:51:24]OFD Sender: To server: pG, [14:51:24]CommunicateWithHost lk.salyk.kg:30040 [14:51:24]ConnectInit lk.salyk.kg [14:51:24]written 0, free lines is 4095 [14:51:24]Connected sock=10 [14:51:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 7C F9 07 01 A0 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 96 23 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 EB 72 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 F5 92 01 00 35 04 06 00 E5 69 9F 0A 0B 60 C8 D8 76 03 32 F9 BD 8A [14:51:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 83 17 47 00 DD D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 F5 92 01 00 F4 03 04 00 5D 19 BB 66 B6 04 01 00 00 6B 1B 33 EC 90 8C 18 89 [14:51:25]CommunicateWithHost err = 0 [14:51:25]CheckOFDResponse [14:51:25]1017 (14) - 77093643461234 [14:51:25]1041 (16) - 0000000000875058 [14:51:25]1040 (4) - 103157 [14:51:25]1012 (4) - 13.08.2024 08:29 [14:51:25]1206 (1) - 0 [14:51:25]OFD Sender: Remove packet 103157 [14:51:25]ProducePacketName [14:51:25]name=ofd_packets/00103157 [14:51:25]NVStorageDeleteData [14:51:25]Write to MH i2c: 01 00 00 5C 00 5C [14:51:25]Write i2c OK [14:51:25]MH_I2C_Read... [14:51:25]Read from MH i2c: 01 [14:51:25]MH_I2C_Read... [14:51:25]Read from MH i2c: 01 07 00 [14:51:25]MH_I2C_Read... [14:51:25]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 F1 0C 60 [14:51:25]RasterBufferAndPrint [14:51:25]line [14:51:25]line [14:51:25]line [14:51:25]line [14:51:25]line [14:51:25]written 0, free lines is 3319 [14:51:25]MH_Cut [14:51:25]Write to MH i2c: D1 01 00 63 00 01 35 [14:51:25]Write i2c OK [14:51:25]MH_I2C_Read... [14:51:25]Read from MH i2c: D1 [14:51:25]MH_I2C_Read... [14:51:25]Read from MH i2c: D1 01 00 [14:51:25]MH_I2C_Read... [14:51:25]Read from MH i2c: D1 01 00 63 00 00 34 [14:51:25]Write to MH i2c: 01 00 00 64 00 64 [14:51:25]Write i2c OK [14:51:25]MH_I2C_Read... [14:51:25]OFD Sender: No OFD packet to send [14:51:26]*** Cut start [14:51:26]*** Purtial cut [14:51:26]*** CUTSNS_PIN = 0 [14:51:26]*** Stage 1: CUTSNS_PIN = 1 [14:51:28]Read from MH i2c: 01 [14:51:28]MH_I2C_Read... [14:51:28]*** Stop cut motor [14:51:28]*** Cut end [14:51:28]Read from MH i2c: 01 07 00 [14:51:28]MH_I2C_Read... [14:51:28]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [14:51:28]process_action close_receipt done [14:51:28]requested_data is exist [14:51:28]produce_requested_data [14:51:28]requested_item fm.sn is exist - process it [14:51:28]wFMCommunicate request_size=4 [14:51:28]MH_SAM_APDU [14:51:28]CAPDU: 80 11 00 00 [14:51:28]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [14:51:28]Write i2c OK [14:51:28]MH_I2C_Read... [14:51:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:28]Read from MH i2c: E2 [14:51:28]MH_I2C_Read... [14:51:28]Read from MH i2c: E2 17 00 [14:51:28]MH_I2C_Read... [14:51:28]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 33 [14:51:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [14:51:28]wFMCommunicate OK [14:51:28]requested_item fd.num is exist - process it [14:51:28]SAM_PROTO_GetFieldsCounters [14:51:28]wFMCommunicate request_size=4 [14:51:28]MH_SAM_APDU [14:51:28]CAPDU: 80 13 00 00 [14:51:28]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [14:51:28]Write i2c OK [14:51:28]MH_I2C_Read... [14:51:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:51:28]Read from MH i2c: E2 [14:51:28]MH_I2C_Read... [14:51:28]Read from MH i2c: E2 62 00 [14:51:28]MH_I2C_Read... [14:51:28]Read from MH i2c: E2 62 00 66 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 F5 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [14:51:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 F5 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:51:28]wFMCommunicate OK [14:51:28]SAM_PROTO_GetFieldsCounters done [14:51:28]requested_item shift.num is exist - process it [14:51:28]requested_item shift.opened is exist - process it [14:51:28]req_shift_opened [14:51:28]FM_GetShiftState [14:51:28]SAM_PROTO_GetShiftState [14:51:28]wFMCommunicate request_size=4 [14:51:28]MH_SAM_APDU [14:51:28]CAPDU: 80 13 01 00 [14:51:28]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [14:51:28]Write i2c OK [14:51:28]MH_I2C_Read... [14:51:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:28]Read from MH i2c: E2 [14:51:28]MH_I2C_Read... [14:51:28]Read from MH i2c: E2 0E 00 [14:51:28]MH_I2C_Read... [14:51:28]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 02 [14:51:28]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [14:51:28]wFMCommunicate OK [14:51:28]SAM_PROTO_GetShiftState done [14:51:28]FM_GetShiftState done [14:51:28]req_shift_opened done [14:51:28]requested_item shift.open_date is exist - process it [14:51:28]req_shift_open_date [14:51:28]req_shift_open_date done [14:51:28]produce_requested_data done [14:51:28]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103157,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [14:51:28]process_action_free close_receipt [14:51:28]json_value_free [14:51:28]json_value_free done [14:51:28]process_json_proto returns [14:51:28]Send response to host [14:51:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103157,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [14:51:28]free response buf [14:51:28]execute_script done [14:51:28]execute_script returns [14:51:28]free content buf [14:51:28]Sock 6.Close socket [14:51:28]Sock 6.Thread stoped [14:51:30]OFD Sender: No OFD packet to send [14:51:35]OFD Sender: No OFD packet to send [14:51:40]OFD Sender: No OFD packet to send [14:51:45]OFD Sender: No OFD packet to send [14:51:47]accept exits with 9 [14:51:47]New connection [14:51:47]New thread 3067116900 created [14:51:47]Thread 3067260260 joined [14:51:47]Waiting for new connection... [14:51:47] Sock 9.Parse request [14:51:47]Sock 9.Check first char [14:51:47]Sock 9.First char is OK [14:51:47]request: POST /json_proto HTTP/1.0 [14:51:47]Method: POST [14:51:47]URL: /json_proto [14:51:47]Method is POST - this is cgi request [14:51:47]url: /json_proto [14:51:47]query_string will be loaded in cgi processing [14:51:47]execute_cgi json_proto POST (null) [14:51:47]execute_cgi path=json_proto method=POST [14:51:47]POST find Content-Length [14:51:47]Host: 172.17.58.3:8080 [14:51:47]Content-Length: 681 [14:51:47]Content-Type: application/json [14:51:47] [14:51:47]POST finish read [14:51:47]Found Content-Length = 681 [14:51:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160788", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "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 }]} ], "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" ] } } [14:51:47]execute_script... [14:51: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)160788", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "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 }]} ], "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" ] } } [14:51:47]POST & json_proto [14:51:47]process_json_proto [14:51:47]json parsed OK: [14:51:47]protocol is kg_v1.0 [14:51:47]action value=close_receipt [14:51:47]process_action close_receipt [14:51:47]cmd_close_receipt [14:51:47]MH_GetDate [14:51:47]Write to MH i2c: F0 00 00 68 00 57 [14:51:47]Write i2c OK [14:51:47]MH_I2C_Read... [14:51:47]Read from MH i2c: F0 [14:51:47]MH_I2C_Read... [14:51:47]Read from MH i2c: F0 09 00 [14:51:47]MH_I2C_Read... [14:51:47]Read from MH i2c: F0 09 00 68 00 00 03 73 BB 66 DC E4 6D 64 88 [14:51:47]GetLastDocTimeStamp 1723560683 [14:51:47]current date 1723560707 [14:51:47]FM_GetShiftState [14:51:47]SAM_PROTO_GetShiftState [14:51:47]wFMCommunicate request_size=4 [14:51:47]MH_SAM_APDU [14:51:47]CAPDU: 80 13 01 00 [14:51:47]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [14:51:47]Write i2c OK [14:51:47]MH_I2C_Read... [14:51:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:47]Read from MH i2c: E2 [14:51:47]MH_I2C_Read... [14:51:47]Read from MH i2c: E2 0E 00 [14:51:47]MH_I2C_Read... [14:51:47]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 04 [14:51:47]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [14:51:47]wFMCommunicate OK [14:51:47]SAM_PROTO_GetShiftState done [14:51:47]FM_GetShiftState done [14:51:47]opened in 1723506770 [14:51:47]opened+sec_in_day 1723593170 [14:51:47]quantity*price = 150054 [14:51:47]sum+1 = 150055 [14:51:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 69 13.08.2024 14:51 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103158 ФПД: 107808876076381 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T145147&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103158&fm=107808876076381&tin=02508201610067®Number=0000000000092718&sum=150000 [14:51:48]StoreToDocumentArchive [14:51:48]shift 464 fd 103158 [14:51:48]save to /storage/0464/doc_00103158 [14:51:48]save last doc name /storage/0464/doc_00103158 to /storage/kkm_last_doc_name [14:51:48]save OK [14:51:48]Clear old archive folders... [14:51:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:51:48]tlvbuf is 0020B400 [14:51:48]SAM_PROTO_ClearQueue [14:51:48]wFMCommunicate request_size=4 [14:51:48]MH_SAM_APDU [14:51:48]CAPDU: 80 09 00 00 [14:51:48]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [14:51:48]Write i2c OK [14:51:48]MH_I2C_Read... [14:51:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:51:48]Read from MH i2c: E2 [14:51:48]MH_I2C_Read... [14:51:48]Read from MH i2c: E2 03 00 [14:51:48]MH_I2C_Read... [14:51:48]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [14:51:48]RAPDU: 90 00 [14:51:48]wFMCommunicate OK [14:51:48]SAM_PROTO_ClearQueue done [14:51:48]KKMCreateOFDPacket [14:51:48]OFDProtocolAddRootSTLVToBuf [14:51:48]FM_MakeSignedData [14:51:48]FM_MakeSignedData [14:51:48]SAM_PROTO_SignData [14:51:48]wFMCommunicate request_size=4 [14:51:48]MH_SAM_APDU [14:51:48]CAPDU: 80 0D 01 02 [14:51:48]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [14:51:48]Write i2c OK [14:51:48]MH_I2C_Read... [14:51:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:51:48]Read from MH i2c: E2 [14:51:48]MH_I2C_Read... [14:51:48]Read from MH i2c: E2 03 00 [14:51:48]MH_I2C_Read... [14:51:48]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [14:51:48]RAPDU: 90 00 [14:51:48]wFMCommunicate OK [14:51:48]wFMCommunicate request_size=255 [14:51:48]MH_SAM_APDU [14:51: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 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 45 00 00 00 F4 03 04 00 03 73 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 F6 92 01 00 35 04 06 00 62 [14:51:48]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 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 45 00 00 00 F4 03 04 00 03 73 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 F6 92 01 00 35 04 06 00 62 00 00 50 [14:51:48]Write i2c OK [14:51:48]MH_I2C_Read... [14:51:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:48]Read from MH i2c: E2 [14:51:48]MH_I2C_Read... [14:51:48]Read from MH i2c: E2 03 00 [14:51:48]MH_I2C_Read... [14:51:48]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [14:51:48]RAPDU: 90 00 [14:51:48]wFMCommunicate OK [14:51:48]wFMCommunicate request_size=10 [14:51:48]MH_SAM_APDU [14:51:48]CAPDU: 80 0D 02 02 05 0D 35 C3 1D 5D [14:51:48]Write to MH i2c: E2 0D 00 79 00 80 0D 02 02 05 00 0D 35 C3 1D 5D 00 00 7C [14:51:48]Write i2c OK [14:51:48]MH_I2C_Read... [14:51:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:48]Read from MH i2c: E2 [14:51:48]MH_I2C_Read... [14:51:48]Read from MH i2c: E2 03 00 [14:51:48]MH_I2C_Read... [14:51:48]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [14:51:48]RAPDU: 90 00 [14:51:48]wFMCommunicate OK [14:51:48]wFMCommunicate request_size=4 [14:51:48]MH_SAM_APDU [14:51:48]CAPDU: 80 0D 03 02 [14:51:48]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [14:51:48]Write i2c OK [14:51:48]MH_I2C_Read... [14:51:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:51:49]Read from MH i2c: E2 [14:51:49]MH_I2C_Read... [14:51:49]Read from MH i2c: E2 0B 00 [14:51:49]MH_I2C_Read... [14:51:49]Read from MH i2c: E2 0B 00 7A 00 00 26 D2 8F F3 04 FD DE 1A 90 00 69 [14:51:49]RAPDU: 26 D2 8F F3 04 FD DE 1A 90 00 [14:51:49]wFMCommunicate OK [14:51:49]SAM_PROTO_SignData done [14:51:49]FM_MakeSignedData done [14:51:49]CreateOFDProtocolMessage [14:51:49]wFMCommunicate request_size=4 [14:51:49]MH_SAM_APDU [14:51:49]CAPDU: 80 11 00 00 [14:51:49]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [14:51:49]Write i2c OK [14:51:49]MH_I2C_Read... [14:51:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:49]Read from MH i2c: E2 [14:51:49]MH_I2C_Read... [14:51:49]Read from MH i2c: E2 17 00 [14:51:49]MH_I2C_Read... [14:51:49]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 49 [14:51:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [14:51:49]wFMCommunicate OK [14:51:49]CreateOFDProtocolMessage done [14:51:49]OFDSenderStorePacket 103158 [14:51:49]StoreOFDPacket docnum=103158 [14:51:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 BD A1 07 01 04 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 45 00 00 00 F4 03 04 00 03 73 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 F6 92 01 00 35 04 06 00 62 0D 35 C3 1D 5D 26 D2 8F F3 04 FD DE 1A [14:51:49]CheckFolder [14:51:49]dirname=/storage/ofd_packets [14:51:49]CheckFolder done [14:51:49]ProducePacketName [14:51:49]name=ofd_packets/00103158 [14:51:49]NVStorageSaveData ofd_packets/00103158 [14:51:49]File name is /storage/ofd_packets/00103158 [14:51:49]Write 301 bytes [14:51:49]NVStorageSaveData done [14:51:49]OFDSenderStorePacket done [14:51:49]KKMCreateOFDPacket done [14:51:49]NVStorageSaveData kkm_last_timestamp [14:51:49]File name is /storage/kkm_last_timestamp [14:51:49]Write 4 bytes [14:51:49]NVStorageSaveData done [14:51:49]ExternCall_PrintAddStr [14:51:49]wPrintStart [14:51:49]Write to MH i2c: 01 00 00 7C 00 7C [14:51:49]Write i2c OK [14:51:49]MH_I2C_Read... [14:51:49]Read from MH i2c: 01 [14:51:49]MH_I2C_Read... [14:51:49]Read from MH i2c: 01 07 00 [14:51:49]MH_I2C_Read... [14:51:49]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [14:51:49]RasterBufferAndPrint [14:51:49]line Счет N : (1)160788 [14:51:49]line ИНН: 02508201610067 [14:51:49]line Контрольно-Кассовый Чек [14:51:49]line ПРОДАЖА [14:51:49]line ТРК (МРК, ГНК) : 3 [14:51:49]line Товар: 2710124130 [14:51:49]line Аи-92-К-5 [14:51:49]line 22.770 * 65.90 [14:51:49]line = 1500.54 [14:51:49]line НДС 12% НСП 1% [14:51:49]line > о реализуемом товаре [14:51:49]line ОКРУГЛЕНИЕ: -0.54 [14:51:49]line ИТОГО: 1500.00 [14:51:49]line Внесено: 1500.00 [14:51:49]line СДАЧА: 0.00 [14:51:49]line НСП 1% : 13.28 [14:51:49]line НДС 12% : 159.35 [14:51:49]line Наличными: 1500.00 [14:51:49]line Безнал.: 0.00 [14:51:49]line Место: АЗС № 38 "Партнер Нефть" [14:51:49]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [14:51:49]line СНО: Общий режим [14:51:49]line Чек 69 13.08.2024 14:51 [14:51:49]line Смена: 464 ФФД: 1.0 [14:51:49]line ЗНМ: 0300000126 [14:51:49]line РНМ: 0000000000092718 [14:51:49]line Версия ККМ: 001 [14:51:49]line ФМ: 0000000000875058 [14:51:49]line ФД: 103158 [14:51:49]line ФПД: 107808876076381 [14:51:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T145147&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103158&fm=107808876076381&tin=02508201610067®Number=0000000000092718&sum=150000 [14:51:49]OFD Sender: Processing packet 103158 [packets to send 69, broken 68] [14:51:49]ProducePacketName [14:51:49]name=ofd_packets/00103158 [14:51:49]OFD Sender: To server: pG, [14:51:49]CommunicateWithHost lk.salyk.kg:30040 [14:51:49]ConnectInit lk.salyk.kg [14:51:49]written 0, free lines is 4095 [14:51:49]Connected sock=10 [14:51:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 BD A1 07 01 04 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 45 00 00 00 F4 03 04 00 03 73 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 F6 92 01 00 35 04 06 00 62 0D 35 C3 1D 5D 26 D2 8F F3 04 FD DE 1A [14:51:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 BE 3D 47 00 AF 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 F6 92 01 00 F4 03 04 00 76 19 BB 66 B6 04 01 00 00 BF 86 43 79 A6 21 2A 33 [14:51:49]CommunicateWithHost err = 0 [14:51:49]CheckOFDResponse [14:51:49]1017 (14) - 77093643461234 [14:51:49]1041 (16) - 0000000000875058 [14:51:49]1040 (4) - 103158 [14:51:49]1012 (4) - 13.08.2024 08:29 [14:51:49]1206 (1) - 0 [14:51:49]OFD Sender: Remove packet 103158 [14:51:49]ProducePacketName [14:51:49]name=ofd_packets/00103158 [14:51:49]NVStorageDeleteData [14:51:49]Write to MH i2c: 01 00 00 A7 00 A7 [14:51:49]Write i2c OK [14:51:49]MH_I2C_Read... [14:51:49]Read from MH i2c: 01 [14:51:49]MH_I2C_Read... [14:51:49]Read from MH i2c: 01 07 00 [14:51:49]MH_I2C_Read... [14:51:49]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 EB 0C A5 [14:51:49]RasterBufferAndPrint [14:51:49]line [14:51:49]line [14:51:49]line [14:51:49]line [14:51:49]line [14:51:49]written 0, free lines is 3313 [14:51:49]MH_Cut [14:51:49]Write to MH i2c: D1 01 00 AE 00 01 80 [14:51:49]Write i2c OK [14:51:49]MH_I2C_Read... [14:51:49]Read from MH i2c: D1 [14:51:49]MH_I2C_Read... [14:51:49]Read from MH i2c: D1 01 00 [14:51:49]MH_I2C_Read... [14:51:49]Read from MH i2c: D1 01 00 AE 00 00 7F [14:51:49]Write to MH i2c: 01 00 00 AF 00 AF [14:51:49]Write i2c OK [14:51:49]MH_I2C_Read... [14:51:50]OFD Sender: No OFD packet to send [14:51:50]*** Cut start [14:51:50]*** Purtial cut [14:51:50]*** Stage 1: CUTSNS_PIN = 1 [14:51:50]Read from MH i2c: 01 [14:51:50]MH_I2C_Read... [14:51:50]*** Stop cut motor [14:51:50]*** Cut end [14:51:50]Read from MH i2c: 01 07 00 [14:51:50]MH_I2C_Read... [14:51:50]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [14:51:50]process_action close_receipt done [14:51:50]requested_data is exist [14:51:50]produce_requested_data [14:51:50]requested_item fm.sn is exist - process it [14:51:50]wFMCommunicate request_size=4 [14:51:50]MH_SAM_APDU [14:51:50]CAPDU: 80 11 00 00 [14:51:50]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [14:51:50]Write i2c OK [14:51:50]MH_I2C_Read... [14:51:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:50]Read from MH i2c: E2 [14:51:50]MH_I2C_Read... [14:51:51]Read from MH i2c: E2 17 00 [14:51:51]MH_I2C_Read... [14:51:51]Read from MH i2c: E2 17 00 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 7E [14:51:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [14:51:51]wFMCommunicate OK [14:51:51]requested_item fd.num is exist - process it [14:51:51]SAM_PROTO_GetFieldsCounters [14:51:51]wFMCommunicate request_size=4 [14:51:51]MH_SAM_APDU [14:51:51]CAPDU: 80 13 00 00 [14:51:51]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [14:51:51]Write i2c OK [14:51:51]MH_I2C_Read... [14:51:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:51:51]Read from MH i2c: E2 [14:51:51]MH_I2C_Read... [14:51:51]Read from MH i2c: E2 62 00 [14:51:51]MH_I2C_Read... [14:51:51]Read from MH i2c: E2 62 00 B1 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 F6 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [14:51:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 F6 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:51:51]wFMCommunicate OK [14:51:51]SAM_PROTO_GetFieldsCounters done [14:51:51]requested_item shift.num is exist - process it [14:51:51]requested_item shift.opened is exist - process it [14:51:51]req_shift_opened [14:51:51]FM_GetShiftState [14:51:51]SAM_PROTO_GetShiftState [14:51:51]wFMCommunicate request_size=4 [14:51:51]MH_SAM_APDU [14:51:51]CAPDU: 80 13 01 00 [14:51:51]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [14:51:51]Write i2c OK [14:51:51]MH_I2C_Read... [14:51:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:51]Read from MH i2c: E2 [14:51:51]MH_I2C_Read... [14:51:51]Read from MH i2c: E2 0E 00 [14:51:51]MH_I2C_Read... [14:51:51]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 4D [14:51:51]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [14:51:51]wFMCommunicate OK [14:51:51]SAM_PROTO_GetShiftState done [14:51:51]FM_GetShiftState done [14:51:51]req_shift_opened done [14:51:51]requested_item shift.open_date is exist - process it [14:51:51]req_shift_open_date [14:51:51]req_shift_open_date done [14:51:51]produce_requested_data done [14:51:51]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103158,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [14:51:51]process_action_free close_receipt [14:51:51]json_value_free [14:51:51]json_value_free done [14:51:51]process_json_proto returns [14:51:51]Send response to host [14:51:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103158,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [14:51:51]free response buf [14:51:51]execute_script done [14:51:51]execute_script returns [14:51:51]free content buf [14:51:51]Sock 9.Close socket [14:51:51]Sock 9.Thread stoped [14:51:55]OFD Sender: No OFD packet to send [14:52:00]OFD Sender: No OFD packet to send [14:52:05]OFD Sender: No OFD packet to send [14:52:10]OFD Sender: No OFD packet to send [14:52:15]OFD Sender: No OFD packet to send [14:52:20]OFD Sender: No OFD packet to send [14:52:25]OFD Sender: No OFD packet to send [14:52:30]OFD Sender: No OFD packet to send [14:52:35]OFD Sender: No OFD packet to send [14:52:40]OFD Sender: No OFD packet to send [14:52:45]OFD Sender: No OFD packet to send [14:52:50]OFD Sender: No OFD packet to send [14:52:55]OFD Sender: No OFD packet to send [14:53:00]OFD Sender: No OFD packet to send [14:53:05]OFD Sender: No OFD packet to send [14:53:10]OFD Sender: No OFD packet to send [14:53:15]OFD Sender: No OFD packet to send [14:53:20]OFD Sender: No OFD packet to send [14:53:25]OFD Sender: No OFD packet to send [14:53:30]OFD Sender: No OFD packet to send [14:53:35]OFD Sender: No OFD packet to send [14:53:40]OFD Sender: No OFD packet to send [14:53:45]OFD Sender: No OFD packet to send [14:53:50]OFD Sender: No OFD packet to send [14:53:55]OFD Sender: No OFD packet to send [14:54:00]OFD Sender: No OFD packet to send [14:54:05]OFD Sender: No OFD packet to send [14:54:10]OFD Sender: No OFD packet to send [14:54:15]OFD Sender: No OFD packet to send [14:54:20]OFD Sender: No OFD packet to send [14:54:25]OFD Sender: No OFD packet to send [14:54:30]OFD Sender: No OFD packet to send [14:54:35]OFD Sender: No OFD packet to send [14:54:40]OFD Sender: No OFD packet to send [14:54:45]OFD Sender: No OFD packet to send [14:54:50]OFD Sender: No OFD packet to send [14:54:55]OFD Sender: No OFD packet to send [14:55:00]OFD Sender: No OFD packet to send [14:55:05]OFD Sender: No OFD packet to send [14:55:10]OFD Sender: No OFD packet to send [14:55:15]OFD Sender: No OFD packet to send [14:55:20]OFD Sender: No OFD packet to send [14:55:25]OFD Sender: No OFD packet to send [14:55:30]OFD Sender: No OFD packet to send [14:55:35]OFD Sender: No OFD packet to send [14:55:40]OFD Sender: No OFD packet to send [14:55:45]OFD Sender: No OFD packet to send [14:55:50]OFD Sender: No OFD packet to send [14:55:55]OFD Sender: No OFD packet to send [14:56:00]OFD Sender: No OFD packet to send [14:56:05]OFD Sender: No OFD packet to send [14:56:10]OFD Sender: No OFD packet to send [14:56:15]OFD Sender: No OFD packet to send [14:56:20]OFD Sender: No OFD packet to send [14:56:25]OFD Sender: No OFD packet to send [14:56:30]OFD Sender: No OFD packet to send [14:56:35]OFD Sender: No OFD packet to send [14:56:40]OFD Sender: No OFD packet to send [14:56:45]OFD Sender: No OFD packet to send [14:56:50]OFD Sender: No OFD packet to send [14:56:55]OFD Sender: No OFD packet to send [14:57:00]OFD Sender: No OFD packet to send [14:57:05]OFD Sender: No OFD packet to send [14:57:10]OFD Sender: No OFD packet to send [14:57:15]OFD Sender: No OFD packet to send [14:57:20]OFD Sender: No OFD packet to send [14:57:25]OFD Sender: No OFD packet to send [14:57:30]OFD Sender: No OFD packet to send [14:57:35]OFD Sender: No OFD packet to send [14:57:40]OFD Sender: No OFD packet to send [14:57:45]OFD Sender: No OFD packet to send [14:57:50]OFD Sender: No OFD packet to send [14:57:55]OFD Sender: No OFD packet to send [14:58:00]OFD Sender: No OFD packet to send [14:58:05]OFD Sender: No OFD packet to send [14:58:10]OFD Sender: No OFD packet to send [14:58:15]OFD Sender: No OFD packet to send [14:58:20]OFD Sender: No OFD packet to send [14:58:25]OFD Sender: No OFD packet to send [14:58:30]OFD Sender: No OFD packet to send [14:58:35]OFD Sender: No OFD packet to send [14:58:40]OFD Sender: No OFD packet to send [14:58:45]OFD Sender: No OFD packet to send [14:58:50]OFD Sender: No OFD packet to send [14:58:55]OFD Sender: No OFD packet to send [14:59:00]OFD Sender: No OFD packet to send [14:59:05]OFD Sender: No OFD packet to send [14:59:10]OFD Sender: No OFD packet to send [14:59:15]OFD Sender: No OFD packet to send [14:59:20]OFD Sender: No OFD packet to send [14:59:25]OFD Sender: No OFD packet to send [14:59:30]OFD Sender: No OFD packet to send [14:59:35]OFD Sender: No OFD packet to send [14:59:40]OFD Sender: No OFD packet to send [14:59:45]OFD Sender: No OFD packet to send [14:59:50]OFD Sender: No OFD packet to send [14:59:55]OFD Sender: No OFD packet to send [15:00:00]OFD Sender: No OFD packet to send [15:00:05]OFD Sender: No OFD packet to send [15:00:10]OFD Sender: No OFD packet to send [15:00:15]OFD Sender: No OFD packet to send [15:00:20]OFD Sender: No OFD packet to send [15:00:25]OFD Sender: No OFD packet to send [15:00:30]OFD Sender: No OFD packet to send [15:00:35]OFD Sender: No OFD packet to send [15:00:40]OFD Sender: No OFD packet to send [15:00:45]OFD Sender: No OFD packet to send [15:00:50]OFD Sender: No OFD packet to send [15:00:55]OFD Sender: No OFD packet to send [15:01:00]OFD Sender: No OFD packet to send [15:01:05]OFD Sender: No OFD packet to send [15:01:10]OFD Sender: No OFD packet to send [15:01:15]OFD Sender: No OFD packet to send [15:01:20]OFD Sender: No OFD packet to send [15:01:25]OFD Sender: No OFD packet to send [15:01:30]OFD Sender: No OFD packet to send [15:01:35]OFD Sender: No OFD packet to send [15:01:40]OFD Sender: No OFD packet to send [15:01:45]OFD Sender: No OFD packet to send [15:01:50]OFD Sender: No OFD packet to send [15:01:55]OFD Sender: No OFD packet to send [15:02:00]OFD Sender: No OFD packet to send [15:02:05]OFD Sender: No OFD packet to send [15:02:10]OFD Sender: No OFD packet to send [15:02:15]OFD Sender: No OFD packet to send [15:02:20]OFD Sender: No OFD packet to send [15:02:25]OFD Sender: No OFD packet to send [15:02:30]OFD Sender: No OFD packet to send [15:02:35]OFD Sender: No OFD packet to send [15:02:40]OFD Sender: No OFD packet to send [15:02:45]OFD Sender: No OFD packet to send [15:02:50]OFD Sender: No OFD packet to send [15:02:55]OFD Sender: No OFD packet to send [15:03:00]OFD Sender: No OFD packet to send [15:03:05]OFD Sender: No OFD packet to send [15:03:10]OFD Sender: No OFD packet to send [15:03:15]OFD Sender: No OFD packet to send [15:03:20]OFD Sender: No OFD packet to send [15:03:25]OFD Sender: No OFD packet to send [15:03:30]OFD Sender: No OFD packet to send [15:03:35]OFD Sender: No OFD packet to send [15:03:40]OFD Sender: No OFD packet to send [15:03:45]OFD Sender: No OFD packet to send [15:03:50]OFD Sender: No OFD packet to send [15:03:55]OFD Sender: No OFD packet to send [15:04:00]OFD Sender: No OFD packet to send [15:04:05]OFD Sender: No OFD packet to send [15:04:10]OFD Sender: No OFD packet to send [15:04:15]OFD Sender: No OFD packet to send [15:04:20]OFD Sender: No OFD packet to send [15:04:25]OFD Sender: No OFD packet to send [15:04:30]OFD Sender: No OFD packet to send [15:04:35]OFD Sender: No OFD packet to send [15:04:40]OFD Sender: No OFD packet to send [15:04:45]OFD Sender: No OFD packet to send [15:04:50]OFD Sender: No OFD packet to send [15:04:55]OFD Sender: No OFD packet to send [15:05:00]OFD Sender: No OFD packet to send [15:05:06]OFD Sender: No OFD packet to send [15:05:11]OFD Sender: No OFD packet to send [15:05:16]OFD Sender: No OFD packet to send [15:05:21]OFD Sender: No OFD packet to send [15:05:26]OFD Sender: No OFD packet to send [15:05:31]OFD Sender: No OFD packet to send [15:05:36]OFD Sender: No OFD packet to send [15:05:41]OFD Sender: No OFD packet to send [15:05:46]OFD Sender: No OFD packet to send [15:05:51]OFD Sender: No OFD packet to send [15:05:56]OFD Sender: No OFD packet to send [15:06:01]OFD Sender: No OFD packet to send [15:06:06]OFD Sender: No OFD packet to send [15:06:11]OFD Sender: No OFD packet to send [15:06:16]OFD Sender: No OFD packet to send [15:06:21]OFD Sender: No OFD packet to send [15:06:26]OFD Sender: No OFD packet to send [15:06:31]OFD Sender: No OFD packet to send [15:06:36]OFD Sender: No OFD packet to send [15:06:41]OFD Sender: No OFD packet to send [15:06:46]OFD Sender: No OFD packet to send [15:06:51]OFD Sender: No OFD packet to send [15:06:56]OFD Sender: No OFD packet to send [15:07:01]OFD Sender: No OFD packet to send [15:07:06]OFD Sender: No OFD packet to send [15:07:11]OFD Sender: No OFD packet to send [15:07:16]OFD Sender: No OFD packet to send [15:07:21]OFD Sender: No OFD packet to send [15:07:26]OFD Sender: No OFD packet to send [15:07:31]OFD Sender: No OFD packet to send [15:07:36]OFD Sender: No OFD packet to send [15:07:41]OFD Sender: No OFD packet to send [15:07:46]OFD Sender: No OFD packet to send [15:07:51]OFD Sender: No OFD packet to send [15:07:56]OFD Sender: No OFD packet to send [15:08:01]OFD Sender: No OFD packet to send [15:08:06]OFD Sender: No OFD packet to send [15:08:11]OFD Sender: No OFD packet to send [15:08:16]OFD Sender: No OFD packet to send [15:08:21]OFD Sender: No OFD packet to send [15:08:26]OFD Sender: No OFD packet to send [15:08:31]OFD Sender: No OFD packet to send [15:08:36]OFD Sender: No OFD packet to send [15:08:41]OFD Sender: No OFD packet to send [15:08:46]OFD Sender: No OFD packet to send [15:08:51]OFD Sender: No OFD packet to send [15:08:56]OFD Sender: No OFD packet to send [15:09:01]OFD Sender: No OFD packet to send [15:09:06]OFD Sender: No OFD packet to send [15:09:11]OFD Sender: No OFD packet to send [15:09:16]OFD Sender: No OFD packet to send [15:09:21]OFD Sender: No OFD packet to send [15:09:26]OFD Sender: No OFD packet to send [15:09:31]OFD Sender: No OFD packet to send [15:09:36]OFD Sender: No OFD packet to send [15:09:41]OFD Sender: No OFD packet to send [15:09:46]OFD Sender: No OFD packet to send [15:09:51]OFD Sender: No OFD packet to send [15:09:56]OFD Sender: No OFD packet to send [15:10:01]OFD Sender: No OFD packet to send [15:10:06]OFD Sender: No OFD packet to send [15:10:11]OFD Sender: No OFD packet to send [15:10:16]OFD Sender: No OFD packet to send [15:10:21]OFD Sender: No OFD packet to send [15:10:26]OFD Sender: No OFD packet to send [15:10:31]OFD Sender: No OFD packet to send [15:10:36]OFD Sender: No OFD packet to send [15:10:41]OFD Sender: No OFD packet to send [15:10:46]OFD Sender: No OFD packet to send [15:10:51]OFD Sender: No OFD packet to send [15:10:56]OFD Sender: No OFD packet to send [15:11:01]OFD Sender: No OFD packet to send [15:11:06]OFD Sender: No OFD packet to send [15:11:11]OFD Sender: No OFD packet to send [15:11:16]OFD Sender: No OFD packet to send [15:11:21]OFD Sender: No OFD packet to send [15:11:26]OFD Sender: No OFD packet to send [15:11:31]OFD Sender: No OFD packet to send [15:11:36]OFD Sender: No OFD packet to send [15:11:41]OFD Sender: No OFD packet to send [15:11:46]OFD Sender: No OFD packet to send [15:11:51]OFD Sender: No OFD packet to send [15:11:56]OFD Sender: No OFD packet to send [15:12:01]OFD Sender: No OFD packet to send [15:12:06]OFD Sender: No OFD packet to send [15:12:11]OFD Sender: No OFD packet to send [15:12:16]OFD Sender: No OFD packet to send [15:12:21]OFD Sender: No OFD packet to send [15:12:26]OFD Sender: No OFD packet to send [15:12:31]OFD Sender: No OFD packet to send [15:12:36]OFD Sender: No OFD packet to send [15:12:41]OFD Sender: No OFD packet to send [15:12:46]OFD Sender: No OFD packet to send [15:12:51]OFD Sender: No OFD packet to send [15:12:56]OFD Sender: No OFD packet to send [15:13:01]OFD Sender: No OFD packet to send [15:13:06]OFD Sender: No OFD packet to send [15:13:11]OFD Sender: No OFD packet to send [15:13:16]OFD Sender: No OFD packet to send [15:13:21]OFD Sender: No OFD packet to send [15:13:26]OFD Sender: No OFD packet to send [15:13:31]OFD Sender: No OFD packet to send [15:13:36]OFD Sender: No OFD packet to send [15:13:41]OFD Sender: No OFD packet to send [15:13:46]OFD Sender: No OFD packet to send [15:13:51]OFD Sender: No OFD packet to send [15:13:56]OFD Sender: No OFD packet to send [15:14:01]OFD Sender: No OFD packet to send [15:14:06]OFD Sender: No OFD packet to send [15:14:11]OFD Sender: No OFD packet to send [15:14:16]OFD Sender: No OFD packet to send [15:14:21]OFD Sender: No OFD packet to send [15:14:26]OFD Sender: No OFD packet to send [15:14:31]OFD Sender: No OFD packet to send [15:14:36]OFD Sender: No OFD packet to send [15:14:41]OFD Sender: No OFD packet to send [15:14:46]OFD Sender: No OFD packet to send [15:14:51]OFD Sender: No OFD packet to send [15:14:56]OFD Sender: No OFD packet to send [15:15:01]OFD Sender: No OFD packet to send [15:15:06]OFD Sender: No OFD packet to send [15:15:11]OFD Sender: No OFD packet to send [15:15:16]OFD Sender: No OFD packet to send [15:15:21]OFD Sender: No OFD packet to send [15:15:26]OFD Sender: No OFD packet to send [15:15:31]OFD Sender: No OFD packet to send [15:15:36]OFD Sender: No OFD packet to send [15:15:41]OFD Sender: No OFD packet to send [15:15:46]OFD Sender: No OFD packet to send [15:15:51]OFD Sender: No OFD packet to send [15:15:56]OFD Sender: No OFD packet to send [15:16:01]OFD Sender: No OFD packet to send [15:16:06]OFD Sender: No OFD packet to send [15:16:11]OFD Sender: No OFD packet to send [15:16:16]OFD Sender: No OFD packet to send [15:16:21]OFD Sender: No OFD packet to send [15:16:26]OFD Sender: No OFD packet to send [15:16:31]OFD Sender: No OFD packet to send [15:16:36]OFD Sender: No OFD packet to send [15:16:41]OFD Sender: No OFD packet to send [15:16:46]OFD Sender: No OFD packet to send [15:16:51]OFD Sender: No OFD packet to send [15:16:56]OFD Sender: No OFD packet to send [15:17:01]OFD Sender: No OFD packet to send [15:17:06]OFD Sender: No OFD packet to send [15:17:11]OFD Sender: No OFD packet to send [15:17:16]OFD Sender: No OFD packet to send [15:17:21]OFD Sender: No OFD packet to send [15:17:26]OFD Sender: No OFD packet to send [15:17:31]OFD Sender: No OFD packet to send [15:17:36]OFD Sender: No OFD packet to send [15:17:41]OFD Sender: No OFD packet to send [15:17:46]OFD Sender: No OFD packet to send [15:17:51]OFD Sender: No OFD packet to send [15:17:56]OFD Sender: No OFD packet to send [15:18:01]OFD Sender: No OFD packet to send [15:18:06]OFD Sender: No OFD packet to send [15:18:11]OFD Sender: No OFD packet to send [15:18:16]OFD Sender: No OFD packet to send [15:18:21]OFD Sender: No OFD packet to send [15:18:26]OFD Sender: No OFD packet to send [15:18:31]OFD Sender: No OFD packet to send [15:18:36]OFD Sender: No OFD packet to send [15:18:41]OFD Sender: No OFD packet to send [15:18:46]OFD Sender: No OFD packet to send [15:18:51]OFD Sender: No OFD packet to send [15:18:56]OFD Sender: No OFD packet to send [15:19:01]OFD Sender: No OFD packet to send [15:19:06]OFD Sender: No OFD packet to send [15:19:11]OFD Sender: No OFD packet to send [15:19:16]OFD Sender: No OFD packet to send [15:19:21]OFD Sender: No OFD packet to send [15:19:26]OFD Sender: No OFD packet to send [15:19:31]OFD Sender: No OFD packet to send [15:19:36]OFD Sender: No OFD packet to send [15:19:41]OFD Sender: No OFD packet to send [15:19:46]OFD Sender: No OFD packet to send [15:19:51]OFD Sender: No OFD packet to send [15:19:56]OFD Sender: No OFD packet to send [15:20:01]OFD Sender: No OFD packet to send [15:20:06]OFD Sender: No OFD packet to send [15:20:11]OFD Sender: No OFD packet to send [15:20:16]OFD Sender: No OFD packet to send [15:20:21]OFD Sender: No OFD packet to send [15:20:26]OFD Sender: No OFD packet to send [15:20:31]OFD Sender: No OFD packet to send [15:20:36]OFD Sender: No OFD packet to send [15:20:41]OFD Sender: No OFD packet to send [15:20:46]OFD Sender: No OFD packet to send [15:20:51]OFD Sender: No OFD packet to send [15:20:56]OFD Sender: No OFD packet to send [15:21:01]OFD Sender: No OFD packet to send [15:21:06]OFD Sender: No OFD packet to send [15:21:11]OFD Sender: No OFD packet to send [15:21:16]OFD Sender: No OFD packet to send [15:21:21]OFD Sender: No OFD packet to send [15:21:26]OFD Sender: No OFD packet to send [15:21:31]OFD Sender: No OFD packet to send [15:21:36]OFD Sender: No OFD packet to send [15:21:41]OFD Sender: No OFD packet to send [15:21:46]OFD Sender: No OFD packet to send [15:21:51]OFD Sender: No OFD packet to send [15:21:56]OFD Sender: No OFD packet to send [15:22:02]OFD Sender: No OFD packet to send [15:22:07]OFD Sender: No OFD packet to send [15:22:12]OFD Sender: No OFD packet to send [15:22:17]OFD Sender: No OFD packet to send [15:22:22]OFD Sender: No OFD packet to send [15:22:27]OFD Sender: No OFD packet to send [15:22:32]OFD Sender: No OFD packet to send [15:22:37]OFD Sender: No OFD packet to send [15:22:42]OFD Sender: No OFD packet to send [15:22:47]OFD Sender: No OFD packet to send [15:22:52]OFD Sender: No OFD packet to send [15:22:57]OFD Sender: No OFD packet to send [15:23:02]OFD Sender: No OFD packet to send [15:23:07]OFD Sender: No OFD packet to send [15:23:12]OFD Sender: No OFD packet to send [15:23:17]OFD Sender: No OFD packet to send [15:23:22]OFD Sender: No OFD packet to send [15:23:27]OFD Sender: No OFD packet to send [15:23:32]OFD Sender: No OFD packet to send [15:23:37]OFD Sender: No OFD packet to send [15:23:42]OFD Sender: No OFD packet to send [15:23:47]OFD Sender: No OFD packet to send [15:23:52]OFD Sender: No OFD packet to send [15:23:57]OFD Sender: No OFD packet to send [15:24:02]OFD Sender: No OFD packet to send [15:24:07]OFD Sender: No OFD packet to send [15:24:12]OFD Sender: No OFD packet to send [15:24:17]OFD Sender: No OFD packet to send [15:24:22]OFD Sender: No OFD packet to send [15:24:27]OFD Sender: No OFD packet to send [15:24:32]OFD Sender: No OFD packet to send [15:24:37]OFD Sender: No OFD packet to send [15:24:42]OFD Sender: No OFD packet to send [15:24:47]OFD Sender: No OFD packet to send [15:24:52]OFD Sender: No OFD packet to send [15:24:57]OFD Sender: No OFD packet to send [15:25:02]OFD Sender: No OFD packet to send [15:25:07]OFD Sender: No OFD packet to send [15:25:12]OFD Sender: No OFD packet to send [15:25:17]OFD Sender: No OFD packet to send [15:25:20]accept exits with 7 [15:25:20]New connection [15:25:20]New thread 3067260260 created [15:25:20]Thread 3067116900 joined [15:25:20]Waiting for new connection... [15:25:20] Sock 7.Parse request [15:25:20]Sock 7.Check first char [15:25:20]Sock 7.First char is OK [15:25:20]request: POST /json_proto HTTP/1.0 [15:25:20]Method: POST [15:25:20]URL: /json_proto [15:25:20]Method is POST - this is cgi request [15:25:20]url: /json_proto [15:25:20]query_string will be loaded in cgi processing [15:25:20]execute_cgi json_proto POST (null) [15:25:20]execute_cgi path=json_proto method=POST [15:25:20]POST find Content-Length [15:25:20]Host: 172.17.58.3:8080 [15:25:20]Content-Length: 681 [15:25:20]Content-Type: application/json [15:25:20] [15:25:20]POST finish read [15:25:20]Found Content-Length = 681 [15:25:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160789", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:20]execute_script... [15:25: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)160789", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:20]POST & json_proto [15:25:20]process_json_proto [15:25:20]json parsed OK: [15:25:20]protocol is kg_v1.0 [15:25:20]action value=close_receipt [15:25:20]process_action close_receipt [15:25:20]cmd_close_receipt [15:25:20]MH_GetDate [15:25:20]Write to MH i2c: F0 00 00 B3 00 A2 [15:25:20]Write i2c OK [15:25:20]MH_I2C_Read... [15:25:20]Read from MH i2c: F0 [15:25:20]MH_I2C_Read... [15:25:20]Read from MH i2c: F0 09 00 [15:25:20]MH_I2C_Read... [15:25:20]Read from MH i2c: F0 09 00 B3 00 00 E0 7A BB 66 DC E4 6D 64 B7 [15:25:20]GetLastDocTimeStamp 1723560707 [15:25:20]current date 1723562720 [15:25:20]FM_GetShiftState [15:25:20]SAM_PROTO_GetShiftState [15:25:20]wFMCommunicate request_size=4 [15:25:20]MH_SAM_APDU [15:25:20]CAPDU: 80 13 01 00 [15:25:20]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [15:25:20]Write i2c OK [15:25:20]MH_I2C_Read... [15:25:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:20]Read from MH i2c: E2 [15:25:20]MH_I2C_Read... [15:25:20]Read from MH i2c: E2 0E 00 [15:25:20]MH_I2C_Read... [15:25:20]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 4F [15:25:20]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [15:25:20]wFMCommunicate OK [15:25:20]SAM_PROTO_GetShiftState done [15:25:20]FM_GetShiftState done [15:25:20]opened in 1723506770 [15:25:20]opened+sec_in_day 1723593170 [15:25:20]quantity*price = 100036 [15:25:20]sum+1 = 100037 [15:25:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 70 13.08.2024 15:25 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103159 ФПД: 153540142823211 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T152521&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103159&fm=153540142823211&tin=02508201610067®Number=0000000000092718&sum=100000 [15:25:21]StoreToDocumentArchive [15:25:21]shift 464 fd 103159 [15:25:21]save to /storage/0464/doc_00103159 [15:25:21]save last doc name /storage/0464/doc_00103159 to /storage/kkm_last_doc_name [15:25:21]save OK [15:25:21]Clear old archive folders... [15:25:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:25:21]tlvbuf is 00213A20 [15:25:21]SAM_PROTO_ClearQueue [15:25:21]wFMCommunicate request_size=4 [15:25:21]MH_SAM_APDU [15:25:21]CAPDU: 80 09 00 00 [15:25:21]Write to MH i2c: E2 08 00 C1 00 80 09 00 00 00 00 00 00 33 [15:25:21]Write i2c OK [15:25:21]MH_I2C_Read... [15:25:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:25:21]Read from MH i2c: E2 [15:25:21]MH_I2C_Read... [15:25:21]Read from MH i2c: E2 03 00 [15:25:21]MH_I2C_Read... [15:25:21]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [15:25:21]RAPDU: 90 00 [15:25:21]wFMCommunicate OK [15:25:21]SAM_PROTO_ClearQueue done [15:25:21]KKMCreateOFDPacket [15:25:21]OFDProtocolAddRootSTLVToBuf [15:25:21]FM_MakeSignedData [15:25:21]FM_MakeSignedData [15:25:21]SAM_PROTO_SignData [15:25:21]wFMCommunicate request_size=4 [15:25:21]MH_SAM_APDU [15:25:21]CAPDU: 80 0D 01 02 [15:25:21]Write to MH i2c: E2 08 00 C2 00 80 0D 01 02 00 00 00 00 3B [15:25:21]Write i2c OK [15:25:21]MH_I2C_Read... [15:25:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:25:21]Read from MH i2c: E2 [15:25:21]MH_I2C_Read... [15:25:21]Read from MH i2c: E2 03 00 [15:25:21]MH_I2C_Read... [15:25:21]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [15:25:21]RAPDU: 90 00 [15:25:21]wFMCommunicate OK [15:25:21]wFMCommunicate request_size=255 [15:25:21]MH_SAM_APDU [15:25: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 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 E1 7A BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 F7 92 01 00 35 04 06 00 8B [15:25:21]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 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 E1 7A BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 F7 92 01 00 35 04 06 00 8B 00 00 07 [15:25:21]Write i2c OK [15:25:21]MH_I2C_Read... [15:25:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:22]Read from MH i2c: E2 [15:25:22]MH_I2C_Read... [15:25:22]Read from MH i2c: E2 03 00 [15:25:22]MH_I2C_Read... [15:25:22]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [15:25:22]RAPDU: 90 00 [15:25:22]wFMCommunicate OK [15:25:22]wFMCommunicate request_size=10 [15:25:22]MH_SAM_APDU [15:25:22]CAPDU: 80 0D 02 02 05 A4 D9 AB F7 2B [15:25:22]Write to MH i2c: E2 0D 00 C4 00 80 0D 02 02 05 00 A4 D9 AB F7 2B 00 00 92 [15:25:22]Write i2c OK [15:25:22]MH_I2C_Read... [15:25:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:22]Read from MH i2c: E2 [15:25:22]MH_I2C_Read... [15:25:22]Read from MH i2c: E2 03 00 [15:25:22]MH_I2C_Read... [15:25:22]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [15:25:22]RAPDU: 90 00 [15:25:22]wFMCommunicate OK [15:25:22]wFMCommunicate request_size=4 [15:25:22]MH_SAM_APDU [15:25:22]CAPDU: 80 0D 03 02 [15:25:22]Write to MH i2c: E2 08 00 C5 00 80 0D 03 02 00 00 00 00 40 [15:25:22]Write i2c OK [15:25:22]MH_I2C_Read... [15:25:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:25:22]Read from MH i2c: E2 [15:25:22]MH_I2C_Read... [15:25:22]Read from MH i2c: E2 0B 00 [15:25:22]MH_I2C_Read... [15:25:22]Read from MH i2c: E2 0B 00 C5 00 00 FF 39 F9 2C 43 38 65 C5 90 00 43 [15:25:22]RAPDU: FF 39 F9 2C 43 38 65 C5 90 00 [15:25:22]wFMCommunicate OK [15:25:22]SAM_PROTO_SignData done [15:25:22]FM_MakeSignedData done [15:25:22]CreateOFDProtocolMessage [15:25:22]wFMCommunicate request_size=4 [15:25:22]MH_SAM_APDU [15:25:22]CAPDU: 80 11 00 00 [15:25:22]Write to MH i2c: E2 08 00 C6 00 80 11 00 00 00 00 00 00 40 [15:25:22]Write i2c OK [15:25:22]MH_I2C_Read... [15:25:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:22]Read from MH i2c: E2 [15:25:22]MH_I2C_Read... [15:25:22]Read from MH i2c: E2 17 00 [15:25:22]MH_I2C_Read... [15:25:22]Read from MH i2c: E2 17 00 C6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 94 [15:25:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [15:25:22]wFMCommunicate OK [15:25:22]CreateOFDProtocolMessage done [15:25:22]OFDSenderStorePacket 103159 [15:25:22]StoreOFDPacket docnum=103159 [15:25:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 EE 73 07 01 62 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 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 E1 7A BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 F7 92 01 00 35 04 06 00 8B A4 D9 AB F7 2B FF 39 F9 2C 43 38 65 C5 [15:25:22]CheckFolder [15:25:22]dirname=/storage/ofd_packets [15:25:22]CheckFolder done [15:25:22]ProducePacketName [15:25:22]name=ofd_packets/00103159 [15:25:22]NVStorageSaveData ofd_packets/00103159 [15:25:22]File name is /storage/ofd_packets/00103159 [15:25:22]Write 301 bytes [15:25:22]NVStorageSaveData done [15:25:22]OFDSenderStorePacket done [15:25:22]KKMCreateOFDPacket done [15:25:22]NVStorageSaveData kkm_last_timestamp [15:25:22]File name is /storage/kkm_last_timestamp [15:25:22]Write 4 bytes [15:25:22]NVStorageSaveData done [15:25:22]ExternCall_PrintAddStr [15:25:22]wPrintStart [15:25:22]Write to MH i2c: 01 00 00 C7 00 C7 [15:25:22]Write i2c OK [15:25:22]MH_I2C_Read... [15:25:22]Read from MH i2c: 01 [15:25:22]MH_I2C_Read... [15:25:22]Read from MH i2c: 01 07 00 [15:25:22]MH_I2C_Read... [15:25:22]Read from MH i2c: 01 07 00 C7 00 00 00 00 00 00 FF 0F DC [15:25:22]RasterBufferAndPrint [15:25:22]line Счет N : (1)160789 [15:25:22]line ИНН: 02508201610067 [15:25:22]line Контрольно-Кассовый Чек [15:25:22]line ПРОДАЖА [15:25:22]line ТРК (МРК, ГНК) : 3 [15:25:22]line Товар: 2710124130 [15:25:22]line Аи-92-К-5 [15:25:22]line 15.180 * 65.90 [15:25:22]line = 1000.36 [15:25:22]line НДС 12% НСП 1% [15:25:22]line > о реализуемом товаре [15:25:22]line ОКРУГЛЕНИЕ: -0.36 [15:25:22]line ИТОГО: 1000.00 [15:25:22]line Внесено: 1000.00 [15:25:22]line СДАЧА: 0.00 [15:25:22]line НСП 1% : 8.85 [15:25:22]line НДС 12% : 106.23 [15:25:22]line Наличными: 1000.00 [15:25:22]line Безнал.: 0.00 [15:25:22]line Место: АЗС № 38 "Партнер Нефть" [15:25:22]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [15:25:22]line СНО: Общий режим [15:25:22]line Чек 70 13.08.2024 15:25 [15:25:22]line Смена: 464 ФФД: 1.0 [15:25:22]line ЗНМ: 0300000126 [15:25:22]line РНМ: 0000000000092718 [15:25:22]line Версия ККМ: 001 [15:25:22]line ФМ: 0000000000875058 [15:25:22]line ФД: 103159 [15:25:22]line ФПД: 153540142823211 [15:25:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T152521&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103159&fm=153540142823211&tin=02508201610067®Number=0000000000092718&sum=100000 [15:25:22]OFD Sender: Processing packet 103159 [packets to send 69, broken 68] [15:25:22]ProducePacketName [15:25:22]name=ofd_packets/00103159 [15:25:22]OFD Sender: To server: pG, [15:25:22]CommunicateWithHost lk.salyk.kg:30040 [15:25:22]ConnectInit lk.salyk.kg [15:25:22]written 0, free lines is 4095 [15:25:22]Connected sock=10 [15:25:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 EE 73 07 01 62 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 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 E1 7A BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 F7 92 01 00 35 04 06 00 8B A4 D9 AB F7 2B FF 39 F9 2C 43 38 65 C5 [15:25:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 B9 AC 47 00 95 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 35 30 35 38 10 04 04 00 F7 92 01 00 F4 03 04 00 53 21 BB 66 B6 04 01 00 00 55 DA B4 0C 5C 22 55 2B [15:25:22]CommunicateWithHost err = 0 [15:25:22]CheckOFDResponse [15:25:22]1017 (14) - 77093643461234 [15:25:22]1041 (16) - 0000000000875058 [15:25:22]1040 (4) - 103159 [15:25:22]1012 (4) - 13.08.2024 09:03 [15:25:22]1206 (1) - 0 [15:25:22]OFD Sender: Remove packet 103159 [15:25:22]ProducePacketName [15:25:22]name=ofd_packets/00103159 [15:25:22]NVStorageDeleteData [15:25:22]Write to MH i2c: 01 00 00 F2 00 F2 [15:25:22]Write i2c OK [15:25:22]MH_I2C_Read... [15:25:22]Read from MH i2c: 01 [15:25:22]MH_I2C_Read... [15:25:22]Read from MH i2c: 01 07 00 [15:25:22]MH_I2C_Read... [15:25:22]Read from MH i2c: 01 07 00 F2 00 00 00 00 00 00 F6 0C FB [15:25:22]RasterBufferAndPrint [15:25:22]line [15:25:22]line [15:25:22]line [15:25:22]line [15:25:22]line [15:25:22]written 0, free lines is 3324 [15:25:22]MH_Cut [15:25:22]Write to MH i2c: D1 01 00 F9 00 01 CB [15:25:22]Write i2c OK [15:25:22]MH_I2C_Read... [15:25:22]Read from MH i2c: D1 [15:25:22]MH_I2C_Read... [15:25:22]Read from MH i2c: D1 01 00 [15:25:22]MH_I2C_Read... [15:25:22]Read from MH i2c: D1 01 00 F9 00 00 CA [15:25:22]Write to MH i2c: 01 00 00 FA 00 FA [15:25:22]Write i2c OK [15:25:22]MH_I2C_Read... [15:25:23]OFD Sender: No OFD packet to send [15:25:23]*** Cut start [15:25:23]*** Purtial cut [15:25:23]*** CUTSNS_PIN = 0 [15:25:23]*** Stage 1: CUTSNS_PIN = 1 [15:25:25]Read from MH i2c: 01 [15:25:25]MH_I2C_Read... [15:25:25]*** Stop cut motor [15:25:25]*** Cut end [15:25:25]Read from MH i2c: 01 07 00 [15:25:25]MH_I2C_Read... [15:25:25]Read from MH i2c: 01 07 00 FA 00 00 00 00 00 00 FF 0F 0F [15:25:25]process_action close_receipt done [15:25:25]requested_data is exist [15:25:25]produce_requested_data [15:25:25]requested_item fm.sn is exist - process it [15:25:25]wFMCommunicate request_size=4 [15:25:25]MH_SAM_APDU [15:25:25]CAPDU: 80 11 00 00 [15:25:25]Write to MH i2c: E2 08 00 FB 00 80 11 00 00 00 00 00 00 75 [15:25:25]Write i2c OK [15:25:25]MH_I2C_Read... [15:25:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:25]Read from MH i2c: E2 [15:25:25]MH_I2C_Read... [15:25:25]Read from MH i2c: E2 17 00 [15:25:25]MH_I2C_Read... [15:25:25]Read from MH i2c: E2 17 00 FB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 C9 [15:25:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [15:25:25]wFMCommunicate OK [15:25:25]requested_item fd.num is exist - process it [15:25:25]SAM_PROTO_GetFieldsCounters [15:25:25]wFMCommunicate request_size=4 [15:25:25]MH_SAM_APDU [15:25:25]CAPDU: 80 13 00 00 [15:25:25]Write to MH i2c: E2 08 00 FC 00 80 13 00 00 00 00 00 00 78 [15:25:25]Write i2c OK [15:25:25]MH_I2C_Read... [15:25:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:25:25]Read from MH i2c: E2 [15:25:25]MH_I2C_Read... [15:25:25]Read from MH i2c: E2 62 00 [15:25:25]MH_I2C_Read... [15:25:25]Read from MH i2c: E2 62 00 FC 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 F7 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [15:25:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 F7 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:25:25]wFMCommunicate OK [15:25:25]SAM_PROTO_GetFieldsCounters done [15:25:25]requested_item shift.num is exist - process it [15:25:25]requested_item shift.opened is exist - process it [15:25:25]req_shift_opened [15:25:25]FM_GetShiftState [15:25:25]SAM_PROTO_GetShiftState [15:25:25]wFMCommunicate request_size=4 [15:25:25]MH_SAM_APDU [15:25:25]CAPDU: 80 13 01 00 [15:25:25]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [15:25:25]Write i2c OK [15:25:25]MH_I2C_Read... [15:25:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:26]Read from MH i2c: E2 [15:25:26]MH_I2C_Read... [15:25:26]Read from MH i2c: E2 0E 00 [15:25:26]MH_I2C_Read... [15:25:26]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 98 [15:25:26]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [15:25:26]wFMCommunicate OK [15:25:26]SAM_PROTO_GetShiftState done [15:25:26]FM_GetShiftState done [15:25:26]req_shift_opened done [15:25:26]requested_item shift.open_date is exist - process it [15:25:26]req_shift_open_date [15:25:26]req_shift_open_date done [15:25:26]produce_requested_data done [15:25:26]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103159,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [15:25:26]process_action_free close_receipt [15:25:26]json_value_free [15:25:26]json_value_free done [15:25:26]process_json_proto returns [15:25:26]Send response to host [15:25:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103159,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [15:25:26]free response buf [15:25:26]execute_script done [15:25:26]execute_script returns [15:25:26]free content buf [15:25:26]Sock 7.Close socket [15:25:26]Sock 7.Thread stoped [15:25:28]OFD Sender: No OFD packet to send [15:25:33]OFD Sender: No OFD packet to send [15:25:38]OFD Sender: No OFD packet to send [15:25:43]OFD Sender: No OFD packet to send [15:25:48]OFD Sender: No OFD packet to send [15:25:53]OFD Sender: No OFD packet to send [15:25:58]OFD Sender: No OFD packet to send [15:26:03]OFD Sender: No OFD packet to send [15:26:08]OFD Sender: No OFD packet to send [15:26:13]OFD Sender: No OFD packet to send [15:26:18]OFD Sender: No OFD packet to send [15:26:23]OFD Sender: No OFD packet to send [15:26:28]OFD Sender: No OFD packet to send [15:26:33]OFD Sender: No OFD packet to send [15:26:38]OFD Sender: No OFD packet to send [15:26:43]OFD Sender: No OFD packet to send [15:26:48]OFD Sender: No OFD packet to send [15:26:53]OFD Sender: No OFD packet to send [15:26:58]OFD Sender: No OFD packet to send [15:27:03]OFD Sender: No OFD packet to send [15:27:08]OFD Sender: No OFD packet to send [15:27:13]OFD Sender: No OFD packet to send [15:27:18]OFD Sender: No OFD packet to send [15:27:23]OFD Sender: No OFD packet to send [15:27:28]OFD Sender: No OFD packet to send [15:27:33]OFD Sender: No OFD packet to send [15:27:38]OFD Sender: No OFD packet to send [15:27:43]OFD Sender: No OFD packet to send [15:27:48]OFD Sender: No OFD packet to send [15:27:53]OFD Sender: No OFD packet to send [15:27:58]OFD Sender: No OFD packet to send [15:28:03]OFD Sender: No OFD packet to send [15:28:08]OFD Sender: No OFD packet to send [15:28:13]OFD Sender: No OFD packet to send [15:28:18]OFD Sender: No OFD packet to send [15:28:23]OFD Sender: No OFD packet to send [15:28:28]OFD Sender: No OFD packet to send [15:28:33]OFD Sender: No OFD packet to send [15:28:38]OFD Sender: No OFD packet to send [15:28:43]OFD Sender: No OFD packet to send [15:28:48]OFD Sender: No OFD packet to send [15:28:53]OFD Sender: No OFD packet to send [15:28:58]OFD Sender: No OFD packet to send [15:29:03]OFD Sender: No OFD packet to send [15:29:08]OFD Sender: No OFD packet to send [15:29:13]OFD Sender: No OFD packet to send [15:29:18]OFD Sender: No OFD packet to send [15:29:20]accept exits with 9 [15:29:20]New connection [15:29:20]New thread 3067116900 created [15:29:20]Thread 3067260260 joined [15:29:20]Waiting for new connection... [15:29:20] Sock 9.Parse request [15:29:20]Sock 9.Check first char [15:29:20]Sock 9.First char is OK [15:29:20]request: POST /json_proto HTTP/1.0 [15:29:20]Method: POST [15:29:20]URL: /json_proto [15:29:20]Method is POST - this is cgi request [15:29:20]url: /json_proto [15:29:20]query_string will be loaded in cgi processing [15:29:20]execute_cgi json_proto POST (null) [15:29:20]execute_cgi path=json_proto method=POST [15:29:20]POST find Content-Length [15:29:20]Host: 172.17.58.3:8080 [15:29:20]Content-Length: 676 [15:29:20]Content-Type: application/json [15:29:20] [15:29:20]POST finish read [15:29:20]Found Content-Length = 676 [15:29:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 4.560, "sum" : 300.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:29:20]execute_script... [15:29:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 4.560, "sum" : 300.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:29:20]POST & json_proto [15:29:20]process_json_proto [15:29:20]json parsed OK: [15:29:20]protocol is kg_v1.0 [15:29:20]action value=close_receipt [15:29:20]process_action close_receipt [15:29:20]cmd_close_receipt [15:29:20]MH_GetDate [15:29:20]Write to MH i2c: F0 00 00 FE 00 ED [15:29:20]Write i2c OK [15:29:20]MH_I2C_Read... [15:29:20]Read from MH i2c: F0 [15:29:20]MH_I2C_Read... [15:29:20]Read from MH i2c: F0 09 00 [15:29:20]MH_I2C_Read... [15:29:20]Read from MH i2c: F0 09 00 FE 00 00 D1 7B BB 66 DC E4 6D 64 F4 [15:29:20]GetLastDocTimeStamp 1723562721 [15:29:20]current date 1723562961 [15:29:20]FM_GetShiftState [15:29:20]SAM_PROTO_GetShiftState [15:29:20]wFMCommunicate request_size=4 [15:29:20]MH_SAM_APDU [15:29:20]CAPDU: 80 13 01 00 [15:29:20]Write to MH i2c: E2 08 00 FF 00 80 13 01 00 00 00 00 00 7C [15:29:20]Write i2c OK [15:29:20]MH_I2C_Read... [15:29:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:20]Read from MH i2c: E2 [15:29:20]MH_I2C_Read... [15:29:20]Read from MH i2c: E2 0E 00 [15:29:20]MH_I2C_Read... [15:29:20]Read from MH i2c: E2 0E 00 FF 00 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 9A [15:29:20]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [15:29:20]wFMCommunicate OK [15:29:20]SAM_PROTO_GetShiftState done [15:29:20]FM_GetShiftState done [15:29:20]opened in 1723506770 [15:29:20]opened+sec_in_day 1723593170 [15:29:20]quantity*price = 30050 [15:29:20]sum+1 = 30051 [15:29:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 71 13.08.2024 15:29 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103160 ФПД: 162088743759592 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T152921&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103160&fm=162088743759592&tin=02508201610067®Number=0000000000092718&sum=30000 [15:29:21]StoreToDocumentArchive [15:29:21]shift 464 fd 103160 [15:29:21]save to /storage/0464/doc_00103160 [15:29:21]save last doc name /storage/0464/doc_00103160 to /storage/kkm_last_doc_name [15:29:21]save OK [15:29:21]Clear old archive folders... [15:29:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:29:21]tlvbuf is 0020C9D0 [15:29:21]SAM_PROTO_ClearQueue [15:29:21]wFMCommunicate request_size=4 [15:29:21]MH_SAM_APDU [15:29:21]CAPDU: 80 09 00 00 [15:29:21]Write to MH i2c: E2 08 00 0C 01 80 09 00 00 00 00 00 00 7F [15:29:21]Write i2c OK [15:29:21]MH_I2C_Read... [15:29:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:29:21]Read from MH i2c: E2 [15:29:21]MH_I2C_Read... [15:29:21]Read from MH i2c: E2 03 00 [15:29:21]MH_I2C_Read... [15:29:21]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [15:29:21]RAPDU: 90 00 [15:29:21]wFMCommunicate OK [15:29:21]SAM_PROTO_ClearQueue done [15:29:21]KKMCreateOFDPacket [15:29:21]OFDProtocolAddRootSTLVToBuf [15:29:21]FM_MakeSignedData [15:29:21]FM_MakeSignedData [15:29:21]SAM_PROTO_SignData [15:29:21]wFMCommunicate request_size=4 [15:29:21]MH_SAM_APDU [15:29:21]CAPDU: 80 0D 01 02 [15:29:21]Write to MH i2c: E2 08 00 0D 01 80 0D 01 02 00 00 00 00 87 [15:29:21]Write i2c OK [15:29:21]MH_I2C_Read... [15:29:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:29:21]Read from MH i2c: E2 [15:29:21]MH_I2C_Read... [15:29:21]Read from MH i2c: E2 03 00 [15:29:21]MH_I2C_Read... [15:29:21]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [15:29:21]RAPDU: 90 00 [15:29:21]wFMCommunicate OK [15:29:21]wFMCommunicate request_size=255 [15:29:21]MH_SAM_APDU [15:29: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 D0 11 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 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 D1 7B BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 F8 92 01 00 35 04 06 00 93 [15:29:21]Write to MH i2c: E2 02 01 0E 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 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 D1 7B BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 F8 92 01 00 35 04 06 00 93 00 00 9E [15:29:21]Write i2c OK [15:29:21]MH_I2C_Read... [15:29:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:22]Read from MH i2c: E2 [15:29:22]MH_I2C_Read... [15:29:22]Read from MH i2c: E2 03 00 [15:29:22]MH_I2C_Read... [15:29:22]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [15:29:22]RAPDU: 90 00 [15:29:22]wFMCommunicate OK [15:29:22]wFMCommunicate request_size=10 [15:29:22]MH_SAM_APDU [15:29:22]CAPDU: 80 0D 02 02 05 6B 39 FE 6E E8 [15:29:22]Write to MH i2c: E2 0D 00 0F 01 80 0D 02 02 05 00 6B 39 FE 6E E8 00 00 8C [15:29:22]Write i2c OK [15:29:22]MH_I2C_Read... [15:29:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:22]Read from MH i2c: E2 [15:29:22]MH_I2C_Read... [15:29:22]Read from MH i2c: E2 03 00 [15:29:22]MH_I2C_Read... [15:29:22]Read from MH i2c: E2 03 00 0F 01 00 90 00 84 [15:29:22]RAPDU: 90 00 [15:29:22]wFMCommunicate OK [15:29:22]wFMCommunicate request_size=4 [15:29:22]MH_SAM_APDU [15:29:22]CAPDU: 80 0D 03 02 [15:29:22]Write to MH i2c: E2 08 00 10 01 80 0D 03 02 00 00 00 00 8C [15:29:22]Write i2c OK [15:29:22]MH_I2C_Read... [15:29:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:29:22]Read from MH i2c: E2 [15:29:22]MH_I2C_Read... [15:29:22]Read from MH i2c: E2 0B 00 [15:29:22]MH_I2C_Read... [15:29:22]Read from MH i2c: E2 0B 00 10 01 00 D9 99 DE 0F 8C B1 A4 5E 90 00 2B [15:29:22]RAPDU: D9 99 DE 0F 8C B1 A4 5E 90 00 [15:29:22]wFMCommunicate OK [15:29:22]SAM_PROTO_SignData done [15:29:22]FM_MakeSignedData done [15:29:22]CreateOFDProtocolMessage [15:29:22]wFMCommunicate request_size=4 [15:29:22]MH_SAM_APDU [15:29:22]CAPDU: 80 11 00 00 [15:29:22]Write to MH i2c: E2 08 00 11 01 80 11 00 00 00 00 00 00 8C [15:29:22]Write i2c OK [15:29:22]MH_I2C_Read... [15:29:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:22]Read from MH i2c: E2 [15:29:22]MH_I2C_Read... [15:29:22]Read from MH i2c: E2 17 00 [15:29:22]MH_I2C_Read... [15:29:22]Read from MH i2c: E2 17 00 11 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 E0 [15:29:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [15:29:22]wFMCommunicate OK [15:29:22]CreateOFDProtocolMessage done [15:29:22]OFDSenderStorePacket 103160 [15:29:22]StoreOFDPacket docnum=103160 [15:29:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 A5 9D 07 01 D0 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 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 D1 7B BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 F8 92 01 00 35 04 06 00 93 6B 39 FE 6E E8 D9 99 DE 0F 8C B1 A4 5E [15:29:22]CheckFolder [15:29:22]dirname=/storage/ofd_packets [15:29:22]CheckFolder done [15:29:22]ProducePacketName [15:29:22]name=ofd_packets/00103160 [15:29:22]NVStorageSaveData ofd_packets/00103160 [15:29:22]File name is /storage/ofd_packets/00103160 [15:29:22]Write 301 bytes [15:29:22]NVStorageSaveData done [15:29:22]OFDSenderStorePacket done [15:29:22]KKMCreateOFDPacket done [15:29:22]NVStorageSaveData kkm_last_timestamp [15:29:22]File name is /storage/kkm_last_timestamp [15:29:22]Write 4 bytes [15:29:22]NVStorageSaveData done [15:29:22]ExternCall_PrintAddStr [15:29:22]wPrintStart [15:29:22]Write to MH i2c: 01 00 00 12 01 13 [15:29:22]Write i2c OK [15:29:22]MH_I2C_Read... [15:29:22]Read from MH i2c: 01 [15:29:22]MH_I2C_Read... [15:29:22]Read from MH i2c: 01 07 00 [15:29:22]MH_I2C_Read... [15:29:22]Read from MH i2c: 01 07 00 12 01 00 00 00 00 00 FF 0F 28 [15:29:22]RasterBufferAndPrint [15:29:22]line Счет N : (1)160790 [15:29:22]line ИНН: 02508201610067 [15:29:22]line Контрольно-Кассовый Чек [15:29:22]line ПРОДАЖА [15:29:22]line ТРК (МРК, ГНК) : 3 [15:29:22]line Товар: 2710124130 [15:29:22]line Аи-92-К-5 [15:29:22]line 4.560 * 65.90 [15:29:22]line = 300.50 [15:29:22]line НДС 12% НСП 1% [15:29:22]line > о реализуемом товаре [15:29:22]line ОКРУГЛЕНИЕ: -0.50 [15:29:22]line ИТОГО: 300.00 [15:29:22]line Внесено: 300.00 [15:29:22]line СДАЧА: 0.00 [15:29:22]line НСП 1% : 2.66 [15:29:22]line НДС 12% : 31.91 [15:29:22]line Наличными: 300.00 [15:29:22]line Безнал.: 0.00 [15:29:22]line Место: АЗС № 38 "Партнер Нефть" [15:29:22]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [15:29:22]line СНО: Общий режим [15:29:22]line Чек 71 13.08.2024 15:29 [15:29:22]line Смена: 464 ФФД: 1.0 [15:29:22]line ЗНМ: 0300000126 [15:29:22]line РНМ: 0000000000092718 [15:29:22]line Версия ККМ: 001 [15:29:22]line ФМ: 0000000000875058 [15:29:22]line ФД: 103160 [15:29:22]line ФПД: 162088743759592 [15:29:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T152921&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103160&fm=162088743759592&tin=02508201610067®Number=0000000000092718&sum=30000 [15:29:22]OFD Sender: Processing packet 103160 [packets to send 69, broken 68] [15:29:22]ProducePacketName [15:29:22]name=ofd_packets/00103160 [15:29:22]OFD Sender: To server: pG, [15:29:22]CommunicateWithHost lk.salyk.kg:30040 [15:29:22]ConnectInit lk.salyk.kg [15:29:22]written 0, free lines is 4095 [15:29:22]Connected sock=10 [15:29:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 A5 9D 07 01 D0 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 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 D1 7B BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 F8 92 01 00 35 04 06 00 93 6B 39 FE 6E E8 D9 99 DE 0F 8C B1 A4 5E [15:29:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 CD AF 47 00 A4 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 35 30 35 38 10 04 04 00 F8 92 01 00 F4 03 04 00 43 22 BB 66 B6 04 01 00 00 05 E4 5A E3 2C 9C A5 3D [15:29:23]CommunicateWithHost err = 0 [15:29:23]CheckOFDResponse [15:29:23]1017 (14) - 77093643461234 [15:29:23]1041 (16) - 0000000000875058 [15:29:23]1040 (4) - 103160 [15:29:23]1012 (4) - 13.08.2024 09:07 [15:29:23]1206 (1) - 0 [15:29:23]OFD Sender: Remove packet 103160 [15:29:23]ProducePacketName [15:29:23]name=ofd_packets/00103160 [15:29:23]NVStorageDeleteData [15:29:23]Write to MH i2c: 01 00 00 3D 01 3E [15:29:23]Write i2c OK [15:29:23]MH_I2C_Read... [15:29:23]Read from MH i2c: 01 [15:29:23]MH_I2C_Read... [15:29:23]Read from MH i2c: 01 07 00 [15:29:23]MH_I2C_Read... [15:29:23]Read from MH i2c: 01 07 00 3D 01 00 00 00 00 00 F7 0C 48 [15:29:23]RasterBufferAndPrint [15:29:23]line [15:29:23]line [15:29:23]line [15:29:23]line [15:29:23]line [15:29:23]written 0, free lines is 3325 [15:29:23]MH_Cut [15:29:23]Write to MH i2c: D1 01 00 44 01 01 17 [15:29:23]Write i2c OK [15:29:23]MH_I2C_Read... [15:29:23]Read from MH i2c: D1 [15:29:23]MH_I2C_Read... [15:29:23]Read from MH i2c: D1 01 00 [15:29:23]MH_I2C_Read... [15:29:23]Read from MH i2c: D1 01 00 44 01 00 16 [15:29:23]Write to MH i2c: 01 00 00 45 01 46 [15:29:23]Write i2c OK [15:29:23]MH_I2C_Read... [15:29:23]OFD Sender: No OFD packet to send [15:29:23]*** Cut start [15:29:23]*** Purtial cut [15:29:23]*** Stage 1: CUTSNS_PIN = 1 [15:29:24]Read from MH i2c: 01 [15:29:24]MH_I2C_Read... [15:29:24]*** Stop cut motor [15:29:24]*** Cut end [15:29:24]Read from MH i2c: 01 07 00 [15:29:24]MH_I2C_Read... [15:29:24]Read from MH i2c: 01 07 00 45 01 00 00 00 00 00 FF 0F 5B [15:29:24]process_action close_receipt done [15:29:24]requested_data is exist [15:29:24]produce_requested_data [15:29:24]requested_item fm.sn is exist - process it [15:29:24]wFMCommunicate request_size=4 [15:29:24]MH_SAM_APDU [15:29:24]CAPDU: 80 11 00 00 [15:29:24]Write to MH i2c: E2 08 00 46 01 80 11 00 00 00 00 00 00 C1 [15:29:24]Write i2c OK [15:29:24]MH_I2C_Read... [15:29:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:24]Read from MH i2c: E2 [15:29:24]MH_I2C_Read... [15:29:24]Read from MH i2c: E2 17 00 [15:29:24]MH_I2C_Read... [15:29:24]Read from MH i2c: E2 17 00 46 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 15 [15:29:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [15:29:24]wFMCommunicate OK [15:29:24]requested_item fd.num is exist - process it [15:29:24]SAM_PROTO_GetFieldsCounters [15:29:24]wFMCommunicate request_size=4 [15:29:24]MH_SAM_APDU [15:29:24]CAPDU: 80 13 00 00 [15:29:24]Write to MH i2c: E2 08 00 47 01 80 13 00 00 00 00 00 00 C4 [15:29:24]Write i2c OK [15:29:24]MH_I2C_Read... [15:29:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:29:24]Read from MH i2c: E2 [15:29:24]MH_I2C_Read... [15:29:24]Read from MH i2c: E2 62 00 [15:29:24]MH_I2C_Read... [15:29:24]Read from MH i2c: E2 62 00 47 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 F8 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [15:29:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 F8 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:29:24]wFMCommunicate OK [15:29:24]SAM_PROTO_GetFieldsCounters done [15:29:24]requested_item shift.num is exist - process it [15:29:24]requested_item shift.opened is exist - process it [15:29:24]req_shift_opened [15:29:24]FM_GetShiftState [15:29:24]SAM_PROTO_GetShiftState [15:29:24]wFMCommunicate request_size=4 [15:29:24]MH_SAM_APDU [15:29:24]CAPDU: 80 13 01 00 [15:29:24]Write to MH i2c: E2 08 00 48 01 80 13 01 00 00 00 00 00 C6 [15:29:24]Write i2c OK [15:29:24]MH_I2C_Read... [15:29:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:24]Read from MH i2c: E2 [15:29:24]MH_I2C_Read... [15:29:24]Read from MH i2c: E2 0E 00 [15:29:24]MH_I2C_Read... [15:29:24]Read from MH i2c: E2 0E 00 48 01 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 E4 [15:29:24]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [15:29:24]wFMCommunicate OK [15:29:24]SAM_PROTO_GetShiftState done [15:29:24]FM_GetShiftState done [15:29:24]req_shift_opened done [15:29:24]requested_item shift.open_date is exist - process it [15:29:24]req_shift_open_date [15:29:24]req_shift_open_date done [15:29:24]produce_requested_data done [15:29:24]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103160,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [15:29:24]process_action_free close_receipt [15:29:24]json_value_free [15:29:24]json_value_free done [15:29:24]process_json_proto returns [15:29:24]Send response to host [15:29:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103160,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [15:29:24]free response buf [15:29:24]execute_script done [15:29:24]execute_script returns [15:29:24]free content buf [15:29:24]Sock 9.Close socket [15:29:24]Sock 9.Thread stoped [15:29:28]OFD Sender: No OFD packet to send [15:29:33]OFD Sender: No OFD packet to send [15:29:38]OFD Sender: No OFD packet to send [15:29:43]OFD Sender: No OFD packet to send [15:29:48]OFD Sender: No OFD packet to send [15:29:53]OFD Sender: No OFD packet to send [15:29:58]OFD Sender: No OFD packet to send [15:30:03]OFD Sender: No OFD packet to send [15:30:08]OFD Sender: No OFD packet to send [15:30:13]OFD Sender: No OFD packet to send [15:30:18]OFD Sender: No OFD packet to send [15:30:23]OFD Sender: No OFD packet to send [15:30:28]OFD Sender: No OFD packet to send [15:30:33]OFD Sender: No OFD packet to send [15:30:38]OFD Sender: No OFD packet to send [15:30:43]OFD Sender: No OFD packet to send [15:30:48]OFD Sender: No OFD packet to send [15:30:53]OFD Sender: No OFD packet to send [15:30:58]OFD Sender: No OFD packet to send [15:31:03]OFD Sender: No OFD packet to send [15:31:08]OFD Sender: No OFD packet to send [15:31:13]OFD Sender: No OFD packet to send [15:31:18]OFD Sender: No OFD packet to send [15:31:23]OFD Sender: No OFD packet to send [15:31:28]OFD Sender: No OFD packet to send [15:31:33]OFD Sender: No OFD packet to send [15:31:38]OFD Sender: No OFD packet to send [15:31:43]OFD Sender: No OFD packet to send [15:31:48]OFD Sender: No OFD packet to send [15:31:53]OFD Sender: No OFD packet to send [15:31:58]OFD Sender: No OFD packet to send [15:32:03]OFD Sender: No OFD packet to send [15:32:08]OFD Sender: No OFD packet to send [15:32:13]OFD Sender: No OFD packet to send [15:32:18]OFD Sender: No OFD packet to send [15:32:23]OFD Sender: No OFD packet to send [15:32:28]OFD Sender: No OFD packet to send [15:32:33]OFD Sender: No OFD packet to send [15:32:38]OFD Sender: No OFD packet to send [15:32:43]OFD Sender: No OFD packet to send [15:32:48]OFD Sender: No OFD packet to send [15:32:53]OFD Sender: No OFD packet to send [15:32:58]OFD Sender: No OFD packet to send [15:33:03]OFD Sender: No OFD packet to send [15:33:08]OFD Sender: No OFD packet to send [15:33:13]OFD Sender: No OFD packet to send [15:33:18]OFD Sender: No OFD packet to send [15:33:23]OFD Sender: No OFD packet to send [15:33:28]OFD Sender: No OFD packet to send [15:33:33]OFD Sender: No OFD packet to send [15:33:38]OFD Sender: No OFD packet to send [15:33:43]OFD Sender: No OFD packet to send [15:33:48]OFD Sender: No OFD packet to send [15:33:53]OFD Sender: No OFD packet to send [15:33:58]OFD Sender: No OFD packet to send [15:34:03]OFD Sender: No OFD packet to send [15:34:08]OFD Sender: No OFD packet to send [15:34:13]OFD Sender: No OFD packet to send [15:34:18]OFD Sender: No OFD packet to send [15:34:23]OFD Sender: No OFD packet to send [15:34:28]OFD Sender: No OFD packet to send [15:34:33]OFD Sender: No OFD packet to send [15:34:38]OFD Sender: No OFD packet to send [15:34:43]OFD Sender: No OFD packet to send [15:34:48]OFD Sender: No OFD packet to send [15:34:53]OFD Sender: No OFD packet to send [15:34:58]OFD Sender: No OFD packet to send [15:35:03]OFD Sender: No OFD packet to send [15:35:08]OFD Sender: No OFD packet to send [15:35:13]OFD Sender: No OFD packet to send [15:35:18]OFD Sender: No OFD packet to send [15:35:23]OFD Sender: No OFD packet to send [15:35:28]OFD Sender: No OFD packet to send [15:35:33]OFD Sender: No OFD packet to send [15:35:38]OFD Sender: No OFD packet to send [15:35:43]OFD Sender: No OFD packet to send [15:35:48]OFD Sender: No OFD packet to send [15:35:53]OFD Sender: No OFD packet to send [15:35:58]OFD Sender: No OFD packet to send [15:36:03]OFD Sender: No OFD packet to send [15:36:08]OFD Sender: No OFD packet to send [15:36:13]OFD Sender: No OFD packet to send [15:36:18]OFD Sender: No OFD packet to send [15:36:23]OFD Sender: No OFD packet to send [15:36:28]OFD Sender: No OFD packet to send [15:36:33]OFD Sender: No OFD packet to send [15:36:38]OFD Sender: No OFD packet to send [15:36:43]OFD Sender: No OFD packet to send [15:36:48]OFD Sender: No OFD packet to send [15:36:53]OFD Sender: No OFD packet to send [15:36:58]OFD Sender: No OFD packet to send [15:37:03]OFD Sender: No OFD packet to send [15:37:08]OFD Sender: No OFD packet to send [15:37:13]OFD Sender: No OFD packet to send [15:37:18]OFD Sender: No OFD packet to send [15:37:23]OFD Sender: No OFD packet to send [15:37:29]OFD Sender: No OFD packet to send [15:37:34]OFD Sender: No OFD packet to send [15:37:39]OFD Sender: No OFD packet to send [15:37:44]OFD Sender: No OFD packet to send [15:37:49]OFD Sender: No OFD packet to send [15:37:54]OFD Sender: No OFD packet to send [15:37:59]OFD Sender: No OFD packet to send [15:38:04]OFD Sender: No OFD packet to send [15:38:09]OFD Sender: No OFD packet to send [15:38:14]OFD Sender: No OFD packet to send [15:38:19]OFD Sender: No OFD packet to send [15:38:24]OFD Sender: No OFD packet to send [15:38:29]OFD Sender: No OFD packet to send [15:38:34]OFD Sender: No OFD packet to send [15:38:39]OFD Sender: No OFD packet to send [15:38:44]OFD Sender: No OFD packet to send [15:38:49]OFD Sender: No OFD packet to send [15:38:54]OFD Sender: No OFD packet to send [15:38:59]OFD Sender: No OFD packet to send [15:39:04]OFD Sender: No OFD packet to send [15:39:09]OFD Sender: No OFD packet to send [15:39:14]OFD Sender: No OFD packet to send [15:39:19]OFD Sender: No OFD packet to send [15:39:24]OFD Sender: No OFD packet to send [15:39:29]OFD Sender: No OFD packet to send [15:39:34]OFD Sender: No OFD packet to send [15:39:39]OFD Sender: No OFD packet to send [15:39:44]OFD Sender: No OFD packet to send [15:39:49]OFD Sender: No OFD packet to send [15:39:54]OFD Sender: No OFD packet to send [15:39:59]OFD Sender: No OFD packet to send [15:40:04]OFD Sender: No OFD packet to send [15:40:05]accept exits with 7 [15:40:05]New connection [15:40:05]New thread 3067260260 created [15:40:05]Thread 3067116900 joined [15:40:05]Waiting for new connection... [15:40:05] Sock 7.Parse request [15:40:05]Sock 7.Check first char [15:40:05]Sock 7.First char is OK [15:40:05]request: POST /json_proto HTTP/1.0 [15:40:05]Method: POST [15:40:05]URL: /json_proto [15:40:05]Method is POST - this is cgi request [15:40:05]url: /json_proto [15:40:05]query_string will be loaded in cgi processing [15:40:05]execute_cgi json_proto POST (null) [15:40:05]execute_cgi path=json_proto method=POST [15:40:05]POST find Content-Length [15:40:05]Host: 172.17.58.3:8080 [15:40:05]Content-Length: 676 [15:40:05]Content-Type: application/json [15:40:05] [15:40:05]POST finish read [15:40:05]Found Content-Length = 676 [15:40:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160791", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 3.040, "sum" : 200.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:05]execute_script... [15: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)160791", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 3.040, "sum" : 200.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:05]POST & json_proto [15:40:05]process_json_proto [15:40:05]json parsed OK: [15:40:05]protocol is kg_v1.0 [15:40:05]action value=close_receipt [15:40:05]process_action close_receipt [15:40:05]cmd_close_receipt [15:40:05]MH_GetDate [15:40:05]Write to MH i2c: F0 00 00 49 01 39 [15:40:05]Write i2c OK [15:40:05]MH_I2C_Read... [15:40:05]Read from MH i2c: F0 [15:40:05]MH_I2C_Read... [15:40:05]Read from MH i2c: F0 09 00 [15:40:05]MH_I2C_Read... [15:40:05]Read from MH i2c: F0 09 00 49 01 00 55 7E BB 66 DC E4 6D 64 C7 [15:40:05]GetLastDocTimeStamp 1723562961 [15:40:05]current date 1723563605 [15:40:05]FM_GetShiftState [15:40:05]SAM_PROTO_GetShiftState [15:40:05]wFMCommunicate request_size=4 [15:40:05]MH_SAM_APDU [15:40:05]CAPDU: 80 13 01 00 [15:40:05]Write to MH i2c: E2 08 00 4A 01 80 13 01 00 00 00 00 00 C8 [15:40:05]Write i2c OK [15:40:05]MH_I2C_Read... [15:40:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:05]Read from MH i2c: E2 [15:40:05]MH_I2C_Read... [15:40:05]Read from MH i2c: E2 0E 00 [15:40:05]MH_I2C_Read... [15:40:05]Read from MH i2c: E2 0E 00 4A 01 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 E6 [15:40:05]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [15:40:05]wFMCommunicate OK [15:40:05]SAM_PROTO_GetShiftState done [15:40:05]FM_GetShiftState done [15:40:05]opened in 1723506770 [15:40:05]opened+sec_in_day 1723593170 [15:40:05]quantity*price = 20033 [15:40:05]sum+1 = 20035 [15:40:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.27 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 72 13.08.2024 15:40 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103161 ФПД: 259102516225388 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T154005&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103161&fm=259102516225388&tin=02508201610067®Number=0000000000092718&sum=20000 [15:40:06]StoreToDocumentArchive [15:40:06]shift 464 fd 103161 [15:40:06]save to /storage/0464/doc_00103161 [15:40:06]save last doc name /storage/0464/doc_00103161 to /storage/kkm_last_doc_name [15:40:06]save OK [15:40:06]Clear old archive folders... [15:40:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:40:06]tlvbuf is 00255620 [15:40:06]SAM_PROTO_ClearQueue [15:40:06]wFMCommunicate request_size=4 [15:40:06]MH_SAM_APDU [15:40:06]CAPDU: 80 09 00 00 [15:40:06]Write to MH i2c: E2 08 00 57 01 80 09 00 00 00 00 00 00 CA [15:40:06]Write i2c OK [15:40:06]MH_I2C_Read... [15:40:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:40:06]Read from MH i2c: E2 [15:40:06]MH_I2C_Read... [15:40:06]Read from MH i2c: E2 03 00 [15:40:06]MH_I2C_Read... [15:40:06]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [15:40:06]RAPDU: 90 00 [15:40:06]wFMCommunicate OK [15:40:06]SAM_PROTO_ClearQueue done [15:40:06]KKMCreateOFDPacket [15:40:06]OFDProtocolAddRootSTLVToBuf [15:40:06]FM_MakeSignedData [15:40:06]FM_MakeSignedData [15:40:06]SAM_PROTO_SignData [15:40:06]wFMCommunicate request_size=4 [15:40:06]MH_SAM_APDU [15:40:06]CAPDU: 80 0D 01 02 [15:40:06]Write to MH i2c: E2 08 00 58 01 80 0D 01 02 00 00 00 00 D2 [15:40:06]Write i2c OK [15:40:06]MH_I2C_Read... [15:40:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:40:06]Read from MH i2c: E2 [15:40:06]MH_I2C_Read... [15:40:06]Read from MH i2c: E2 03 00 [15:40:06]MH_I2C_Read... [15:40:06]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [15:40:06]RAPDU: 90 00 [15:40:06]wFMCommunicate OK [15:40:06]wFMCommunicate request_size=255 [15:40:06]MH_SAM_APDU [15: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 E0 0B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 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 55 7E BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 F9 92 01 00 35 04 06 00 EB [15:40:06]Write to MH i2c: E2 02 01 59 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 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 55 7E BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 F9 92 01 00 35 04 06 00 EB 00 00 99 [15:40:06]Write i2c OK [15:40:06]MH_I2C_Read... [15:40:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:06]Read from MH i2c: E2 [15:40:06]MH_I2C_Read... [15:40:06]Read from MH i2c: E2 03 00 [15:40:06]MH_I2C_Read... [15:40:06]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [15:40:06]RAPDU: 90 00 [15:40:06]wFMCommunicate OK [15:40:06]wFMCommunicate request_size=10 [15:40:06]MH_SAM_APDU [15:40:06]CAPDU: 80 0D 02 02 05 A7 01 70 A5 6C [15:40:06]Write to MH i2c: E2 0D 00 5A 01 80 0D 02 02 05 00 A7 01 70 A5 6C 00 00 08 [15:40:06]Write i2c OK [15:40:06]MH_I2C_Read... [15:40:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:06]Read from MH i2c: E2 [15:40:06]MH_I2C_Read... [15:40:06]Read from MH i2c: E2 03 00 [15:40:06]MH_I2C_Read... [15:40:06]Read from MH i2c: E2 03 00 5A 01 00 90 00 CF [15:40:06]RAPDU: 90 00 [15:40:06]wFMCommunicate OK [15:40:06]wFMCommunicate request_size=4 [15:40:06]MH_SAM_APDU [15:40:06]CAPDU: 80 0D 03 02 [15:40:06]Write to MH i2c: E2 08 00 5B 01 80 0D 03 02 00 00 00 00 D7 [15:40:06]Write i2c OK [15:40:06]MH_I2C_Read... [15:40:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:40:06]Read from MH i2c: E2 [15:40:06]MH_I2C_Read... [15:40:06]Read from MH i2c: E2 0B 00 [15:40:06]MH_I2C_Read... [15:40:06]Read from MH i2c: E2 0B 00 5B 01 00 19 05 41 1E 50 4E 85 76 90 00 EE [15:40:06]RAPDU: 19 05 41 1E 50 4E 85 76 90 00 [15:40:06]wFMCommunicate OK [15:40:06]SAM_PROTO_SignData done [15:40:06]FM_MakeSignedData done [15:40:06]CreateOFDProtocolMessage [15:40:06]wFMCommunicate request_size=4 [15:40:06]MH_SAM_APDU [15:40:06]CAPDU: 80 11 00 00 [15:40:06]Write to MH i2c: E2 08 00 5C 01 80 11 00 00 00 00 00 00 D7 [15:40:06]Write i2c OK [15:40:06]MH_I2C_Read... [15:40:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:07]Read from MH i2c: E2 [15:40:07]MH_I2C_Read... [15:40:07]Read from MH i2c: E2 17 00 [15:40:07]MH_I2C_Read... [15:40:07]Read from MH i2c: E2 17 00 5C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 2B [15:40:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [15:40:07]wFMCommunicate OK [15:40:07]CreateOFDProtocolMessage done [15:40:07]OFDSenderStorePacket 103161 [15:40:07]StoreOFDPacket docnum=103161 [15:40:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 34 50 07 01 B1 ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 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 55 7E BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 F9 92 01 00 35 04 06 00 EB A7 01 70 A5 6C 19 05 41 1E 50 4E 85 76 [15:40:07]CheckFolder [15:40:07]dirname=/storage/ofd_packets [15:40:07]CheckFolder done [15:40:07]ProducePacketName [15:40:07]name=ofd_packets/00103161 [15:40:07]NVStorageSaveData ofd_packets/00103161 [15:40:07]File name is /storage/ofd_packets/00103161 [15:40:07]Write 301 bytes [15:40:07]NVStorageSaveData done [15:40:07]OFDSenderStorePacket done [15:40:07]KKMCreateOFDPacket done [15:40:07]NVStorageSaveData kkm_last_timestamp [15:40:07]File name is /storage/kkm_last_timestamp [15:40:07]Write 4 bytes [15:40:07]NVStorageSaveData done [15:40:07]ExternCall_PrintAddStr [15:40:07]wPrintStart [15:40:07]Write to MH i2c: 01 00 00 5D 01 5E [15:40:07]Write i2c OK [15:40:07]MH_I2C_Read... [15:40:07]Read from MH i2c: 01 [15:40:07]MH_I2C_Read... [15:40:07]Read from MH i2c: 01 07 00 [15:40:07]MH_I2C_Read... [15:40:07]Read from MH i2c: 01 07 00 5D 01 00 00 00 00 00 FF 0F 73 [15:40:07]RasterBufferAndPrint [15:40:07]line Счет N : (1)160791 [15:40:07]line ИНН: 02508201610067 [15:40:07]line Контрольно-Кассовый Чек [15:40:07]line ПРОДАЖА [15:40:07]line ТРК (МРК, ГНК) : 7 [15:40:07]line Товар: 2710124130 [15:40:07]line Аи-92-К-5 [15:40:07]line 3.040 * 65.90 [15:40:07]line = 200.34 [15:40:07]line НДС 12% НСП 1% [15:40:07]line > о реализуемом товаре [15:40:07]line ОКРУГЛЕНИЕ: -0.34 [15:40:07]line ИТОГО: 200.00 [15:40:07]line Внесено: 200.00 [15:40:07]line СДАЧА: 0.00 [15:40:07]line НСП 1% : 1.77 [15:40:07]line НДС 12% : 21.27 [15:40:07]line Наличными: 200.00 [15:40:07]line Безнал.: 0.00 [15:40:07]line Место: АЗС № 38 "Партнер Нефть" [15:40:07]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [15:40:07]line СНО: Общий режим [15:40:07]line Чек 72 13.08.2024 15:40 [15:40:07]line Смена: 464 ФФД: 1.0 [15:40:07]line ЗНМ: 0300000126 [15:40:07]line РНМ: 0000000000092718 [15:40:07]line Версия ККМ: 001 [15:40:07]line ФМ: 0000000000875058 [15:40:07]line ФД: 103161 [15:40:07]line ФПД: 259102516225388 [15:40:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T154005&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103161&fm=259102516225388&tin=02508201610067®Number=0000000000092718&sum=20000 [15:40:07]OFD Sender: Processing packet 103161 [packets to send 69, broken 68] [15:40:07]ProducePacketName [15:40:07]name=ofd_packets/00103161 [15:40:07]OFD Sender: To server: pG, [15:40:07]CommunicateWithHost lk.salyk.kg:30040 [15:40:07]ConnectInit lk.salyk.kg [15:40:07]written 0, free lines is 4095 [15:40:07]Connected sock=10 [15: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 35 30 35 38 0F 01 00 00 34 50 07 01 B1 ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 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 55 7E BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 F9 92 01 00 35 04 06 00 EB A7 01 70 A5 6C 19 05 41 1E 50 4E 85 76 [15:40:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 C3 B0 47 00 39 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 35 30 35 38 10 04 04 00 F9 92 01 00 F4 03 04 00 C8 24 BB 66 B6 04 01 00 00 28 8F 07 D7 F1 22 8A 16 [15:40:07]CommunicateWithHost err = 0 [15:40:07]CheckOFDResponse [15:40:07]1017 (14) - 77093643461234 [15:40:07]1041 (16) - 0000000000875058 [15:40:07]1040 (4) - 103161 [15:40:07]1012 (4) - 13.08.2024 09:18 [15:40:07]1206 (1) - 0 [15:40:07]OFD Sender: Remove packet 103161 [15:40:07]ProducePacketName [15:40:07]name=ofd_packets/00103161 [15:40:07]NVStorageDeleteData [15:40:07]Write to MH i2c: 01 00 00 88 01 89 [15:40:07]Write i2c OK [15:40:07]MH_I2C_Read... [15:40:07]Read from MH i2c: 01 [15:40:07]MH_I2C_Read... [15:40:07]Read from MH i2c: 01 07 00 [15:40:07]MH_I2C_Read... [15:40:07]Read from MH i2c: 01 07 00 88 01 00 00 00 00 00 F7 0C 93 [15:40:07]RasterBufferAndPrint [15:40:07]line [15:40:07]line [15:40:07]line [15:40:07]line [15:40:07]line [15:40:07]written 0, free lines is 3326 [15:40:07]MH_Cut [15:40:07]Write to MH i2c: D1 01 00 8F 01 01 62 [15:40:07]Write i2c OK [15:40:07]MH_I2C_Read... [15:40:07]Read from MH i2c: D1 [15:40:07]MH_I2C_Read... [15:40:07]Read from MH i2c: D1 01 00 [15:40:07]MH_I2C_Read... [15:40:07]Read from MH i2c: D1 01 00 8F 01 00 61 [15:40:07]Write to MH i2c: 01 00 00 90 01 91 [15:40:07]Write i2c OK [15:40:07]MH_I2C_Read... [15:40:08]OFD Sender: No OFD packet to send [15:40:08]*** Cut start [15:40:08]*** Purtial cut [15:40:08]*** CUTSNS_PIN = 0 [15:40:08]*** Stage 1: CUTSNS_PIN = 1 [15:40:10]Read from MH i2c: 01 [15:40:10]MH_I2C_Read... [15:40:10]*** Stop cut motor [15:40:10]*** Cut end [15:40:10]Read from MH i2c: 01 07 00 [15:40:10]MH_I2C_Read... [15:40:10]Read from MH i2c: 01 07 00 90 01 00 00 00 00 00 FF 0F A6 [15:40:10]process_action close_receipt done [15:40:10]requested_data is exist [15:40:10]produce_requested_data [15:40:10]requested_item fm.sn is exist - process it [15:40:10]wFMCommunicate request_size=4 [15:40:10]MH_SAM_APDU [15:40:10]CAPDU: 80 11 00 00 [15:40:10]Write to MH i2c: E2 08 00 91 01 80 11 00 00 00 00 00 00 0C [15:40:10]Write i2c OK [15:40:10]MH_I2C_Read... [15:40:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:10]Read from MH i2c: E2 [15:40:10]MH_I2C_Read... [15:40:10]Read from MH i2c: E2 17 00 [15:40:10]MH_I2C_Read... [15:40:10]Read from MH i2c: E2 17 00 91 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 60 [15:40:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [15:40:10]wFMCommunicate OK [15:40:10]requested_item fd.num is exist - process it [15:40:10]SAM_PROTO_GetFieldsCounters [15:40:10]wFMCommunicate request_size=4 [15:40:10]MH_SAM_APDU [15:40:10]CAPDU: 80 13 00 00 [15:40:10]Write to MH i2c: E2 08 00 92 01 80 13 00 00 00 00 00 00 0F [15:40:10]Write i2c OK [15:40:10]MH_I2C_Read... [15:40:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:40:10]Read from MH i2c: E2 [15:40:10]MH_I2C_Read... [15:40:10]Read from MH i2c: E2 62 00 [15:40:10]MH_I2C_Read... [15:40:10]Read from MH i2c: E2 62 00 92 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 F9 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [15:40: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 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 F9 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:40:10]wFMCommunicate OK [15:40:10]SAM_PROTO_GetFieldsCounters done [15:40:10]requested_item shift.num is exist - process it [15:40:10]requested_item shift.opened is exist - process it [15:40:10]req_shift_opened [15:40:10]FM_GetShiftState [15:40:10]SAM_PROTO_GetShiftState [15:40:10]wFMCommunicate request_size=4 [15:40:10]MH_SAM_APDU [15:40:10]CAPDU: 80 13 01 00 [15:40:10]Write to MH i2c: E2 08 00 93 01 80 13 01 00 00 00 00 00 11 [15:40:10]Write i2c OK [15:40:10]MH_I2C_Read... [15:40:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:10]Read from MH i2c: E2 [15:40:10]MH_I2C_Read... [15:40:10]Read from MH i2c: E2 0E 00 [15:40:10]MH_I2C_Read... [15:40:10]Read from MH i2c: E2 0E 00 93 01 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 2F [15:40:10]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [15:40:10]wFMCommunicate OK [15:40:10]SAM_PROTO_GetShiftState done [15:40:10]FM_GetShiftState done [15:40:10]req_shift_opened done [15:40:10]requested_item shift.open_date is exist - process it [15:40:10]req_shift_open_date [15:40:10]req_shift_open_date done [15:40:10]produce_requested_data done [15:40:10]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103161,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [15:40:10]process_action_free close_receipt [15:40:10]json_value_free [15:40:10]json_value_free done [15:40:10]process_json_proto returns [15:40:10]Send response to host [15:40:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103161,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [15:40:10]free response buf [15:40:10]execute_script done [15:40:10]execute_script returns [15:40:10]free content buf [15:40:10]Sock 7.Close socket [15:40:10]Sock 7.Thread stoped [15:40:13]OFD Sender: No OFD packet to send [15:40:18]OFD Sender: No OFD packet to send [15:40:23]OFD Sender: No OFD packet to send [15:40:28]OFD Sender: No OFD packet to send [15:40:33]OFD Sender: No OFD packet to send [15:40:38]OFD Sender: No OFD packet to send [15:40:43]OFD Sender: No OFD packet to send [15:40:48]OFD Sender: No OFD packet to send [15:40:53]OFD Sender: No OFD packet to send [15:40:58]OFD Sender: No OFD packet to send [15:41:03]OFD Sender: No OFD packet to send [15:41:08]OFD Sender: No OFD packet to send [15:41:13]OFD Sender: No OFD packet to send [15:41:18]OFD Sender: No OFD packet to send [15:41:23]OFD Sender: No OFD packet to send [15:41:28]OFD Sender: No OFD packet to send [15:41:33]OFD Sender: No OFD packet to send [15:41:38]OFD Sender: No OFD packet to send [15:41:43]OFD Sender: No OFD packet to send [15:41:48]OFD Sender: No OFD packet to send [15:41:53]OFD Sender: No OFD packet to send [15:41:58]OFD Sender: No OFD packet to send [15:42:03]OFD Sender: No OFD packet to send [15:42:08]OFD Sender: No OFD packet to send [15:42:13]OFD Sender: No OFD packet to send [15:42:18]OFD Sender: No OFD packet to send [15:42:23]OFD Sender: No OFD packet to send [15:42:28]OFD Sender: No OFD packet to send [15:42:33]OFD Sender: No OFD packet to send [15:42:38]OFD Sender: No OFD packet to send [15:42:43]OFD Sender: No OFD packet to send [15:42:48]OFD Sender: No OFD packet to send [15:42:53]OFD Sender: No OFD packet to send [15:42:58]OFD Sender: No OFD packet to send [15:43:03]OFD Sender: No OFD packet to send [15:43:08]OFD Sender: No OFD packet to send [15:43:13]OFD Sender: No OFD packet to send [15:43:18]OFD Sender: No OFD packet to send [15:43:23]OFD Sender: No OFD packet to send [15:43:28]OFD Sender: No OFD packet to send [15:43:33]OFD Sender: No OFD packet to send [15:43:38]OFD Sender: No OFD packet to send [15:43:43]OFD Sender: No OFD packet to send [15:43:48]OFD Sender: No OFD packet to send [15:43:53]OFD Sender: No OFD packet to send [15:43:58]OFD Sender: No OFD packet to send [15:44:03]OFD Sender: No OFD packet to send [15:44:08]OFD Sender: No OFD packet to send [15:44:13]OFD Sender: No OFD packet to send [15:44:18]OFD Sender: No OFD packet to send [15:44:23]OFD Sender: No OFD packet to send [15:44:28]OFD Sender: No OFD packet to send [15:44:33]OFD Sender: No OFD packet to send [15:44:38]OFD Sender: No OFD packet to send [15:44:43]OFD Sender: No OFD packet to send [15:44:48]OFD Sender: No OFD packet to send [15:44:53]OFD Sender: No OFD packet to send [15:44:58]OFD Sender: No OFD packet to send [15:45:03]OFD Sender: No OFD packet to send [15:45:08]OFD Sender: No OFD packet to send [15:45:13]OFD Sender: No OFD packet to send [15:45:18]OFD Sender: No OFD packet to send [15:45:23]OFD Sender: No OFD packet to send [15:45:28]OFD Sender: No OFD packet to send [15:45:33]OFD Sender: No OFD packet to send [15:45:38]OFD Sender: No OFD packet to send [15:45:43]OFD Sender: No OFD packet to send [15:45:48]OFD Sender: No OFD packet to send [15:45:53]OFD Sender: No OFD packet to send [15:45:58]OFD Sender: No OFD packet to send [15:46:03]OFD Sender: No OFD packet to send [15:46:08]OFD Sender: No OFD packet to send [15:46:13]OFD Sender: No OFD packet to send [15:46:18]OFD Sender: No OFD packet to send [15:46:23]OFD Sender: No OFD packet to send [15:46:28]OFD Sender: No OFD packet to send [15:46:33]OFD Sender: No OFD packet to send [15:46:38]OFD Sender: No OFD packet to send [15:46:43]OFD Sender: No OFD packet to send [15:46:48]OFD Sender: No OFD packet to send [15:46:53]OFD Sender: No OFD packet to send [15:46:58]OFD Sender: No OFD packet to send [15:47:03]OFD Sender: No OFD packet to send [15:47:08]OFD Sender: No OFD packet to send [15:47:13]OFD Sender: No OFD packet to send [15:47:18]OFD Sender: No OFD packet to send [15:47:23]OFD Sender: No OFD packet to send [15:47:28]OFD Sender: No OFD packet to send [15:47:33]OFD Sender: No OFD packet to send [15:47:38]OFD Sender: No OFD packet to send [15:47:43]OFD Sender: No OFD packet to send [15:47:48]OFD Sender: No OFD packet to send [15:47:53]OFD Sender: No OFD packet to send [15:47:58]OFD Sender: No OFD packet to send [15:48:03]OFD Sender: No OFD packet to send [15:48:08]OFD Sender: No OFD packet to send [15:48:13]OFD Sender: No OFD packet to send [15:48:18]OFD Sender: No OFD packet to send [15:48:23]OFD Sender: No OFD packet to send [15:48:28]OFD Sender: No OFD packet to send [15:48:33]OFD Sender: No OFD packet to send [15:48:38]OFD Sender: No OFD packet to send [15:48:43]OFD Sender: No OFD packet to send [15:48:48]OFD Sender: No OFD packet to send [15:48:53]OFD Sender: No OFD packet to send [15:48:58]OFD Sender: No OFD packet to send [15:49:03]OFD Sender: No OFD packet to send [15:49:08]OFD Sender: No OFD packet to send [15:49:13]OFD Sender: No OFD packet to send [15:49:18]OFD Sender: No OFD packet to send [15:49:23]OFD Sender: No OFD packet to send [15:49:28]OFD Sender: No OFD packet to send [15:49:33]OFD Sender: No OFD packet to send [15:49:38]OFD Sender: No OFD packet to send [15:49:42]accept exits with 9 [15:49:42]New connection [15:49:42]New thread 3067116900 created [15:49:42]Thread 3067260260 joined [15:49:42]Waiting for new connection... [15:49:42] Sock 9.Parse request [15:49:42]Sock 9.Check first char [15:49:42]Sock 9.First char is OK [15:49:42]request: POST /json_proto HTTP/1.0 [15:49:42]Method: POST [15:49:42]URL: /json_proto [15:49:42]Method is POST - this is cgi request [15:49:42]url: /json_proto [15:49:42]query_string will be loaded in cgi processing [15:49:42]execute_cgi json_proto POST (null) [15:49:42]execute_cgi path=json_proto method=POST [15:49:42]POST find Content-Length [15:49:42]Host: 172.17.58.3:8080 [15:49:42]Content-Length: 678 [15:49:42]Content-Type: application/json [15:49:42] [15:49:42]POST finish read [15:49:42]Found Content-Length = 678 [15:49:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160792", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 20.330, "sum" : 1500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:42]execute_script... [15:49: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)160792", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 20.330, "sum" : 1500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:42]POST & json_proto [15:49:42]process_json_proto [15:49:42]json parsed OK: [15:49:42]protocol is kg_v1.0 [15:49:42]action value=close_receipt [15:49:42]process_action close_receipt [15:49:42]cmd_close_receipt [15:49:42]MH_GetDate [15:49:42]Write to MH i2c: F0 00 00 94 01 84 [15:49:42]Write i2c OK [15:49:42]MH_I2C_Read... [15:49:42]Read from MH i2c: F0 [15:49:42]MH_I2C_Read... [15:49:42]Read from MH i2c: F0 09 00 [15:49:42]MH_I2C_Read... [15:49:42]Read from MH i2c: F0 09 00 94 01 00 97 80 BB 66 DC E4 6D 64 56 [15:49:42]GetLastDocTimeStamp 1723563605 [15:49:42]current date 1723564183 [15:49:42]FM_GetShiftState [15:49:42]SAM_PROTO_GetShiftState [15:49:42]wFMCommunicate request_size=4 [15:49:42]MH_SAM_APDU [15:49:42]CAPDU: 80 13 01 00 [15:49:42]Write to MH i2c: E2 08 00 95 01 80 13 01 00 00 00 00 00 13 [15:49:42]Write i2c OK [15:49:42]MH_I2C_Read... [15:49:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:42]Read from MH i2c: E2 [15:49:42]MH_I2C_Read... [15:49:42]Read from MH i2c: E2 0E 00 [15:49:42]MH_I2C_Read... [15:49:42]Read from MH i2c: E2 0E 00 95 01 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 31 [15:49:42]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [15:49:42]wFMCommunicate OK [15:49:42]SAM_PROTO_GetShiftState done [15:49:42]FM_GetShiftState done [15:49:42]opened in 1723506770 [15:49:42]opened+sec_in_day 1723593170 [15:49:42]quantity*price = 150035 [15:49:42]sum+1 = 150036 [15:49:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 73 13.08.2024 15:49 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103162 ФПД: 489962037567 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T154943&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103162&fm=489962037567&tin=02508201610067®Number=0000000000092718&sum=150000 [15:49:43]StoreToDocumentArchive [15:49:43]shift 464 fd 103162 [15:49:43]save to /storage/0464/doc_00103162 [15:49:43]save last doc name /storage/0464/doc_00103162 to /storage/kkm_last_doc_name [15:49:43]save OK [15:49:43]Clear old archive folders... [15:49:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:49:43]tlvbuf is 00255C20 [15:49:43]SAM_PROTO_ClearQueue [15:49:43]wFMCommunicate request_size=4 [15:49:43]MH_SAM_APDU [15:49:43]CAPDU: 80 09 00 00 [15:49:43]Write to MH i2c: E2 08 00 A2 01 80 09 00 00 00 00 00 00 15 [15:49:43]Write i2c OK [15:49:43]MH_I2C_Read... [15:49:43]OFD Sender: No OFD packet to send [15:49:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:49:43]Read from MH i2c: E2 [15:49:43]MH_I2C_Read... [15:49:43]Read from MH i2c: E2 03 00 [15:49:43]MH_I2C_Read... [15:49:43]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [15:49:43]RAPDU: 90 00 [15:49:43]wFMCommunicate OK [15:49:43]SAM_PROTO_ClearQueue done [15:49:43]KKMCreateOFDPacket [15:49:43]OFDProtocolAddRootSTLVToBuf [15:49:43]FM_MakeSignedData [15:49:43]FM_MakeSignedData [15:49:43]SAM_PROTO_SignData [15:49:43]wFMCommunicate request_size=4 [15:49:43]MH_SAM_APDU [15:49:43]CAPDU: 80 0D 01 02 [15:49:43]Write to MH i2c: E2 08 00 A3 01 80 0D 01 02 00 00 00 00 1D [15:49:43]Write i2c OK [15:49:43]MH_I2C_Read... [15:49:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:49:43]Read from MH i2c: E2 [15:49:43]MH_I2C_Read... [15:49:43]Read from MH i2c: E2 03 00 [15:49:43]MH_I2C_Read... [15:49:43]Read from MH i2c: E2 03 00 A3 01 00 90 00 18 [15:49:43]RAPDU: 90 00 [15:49:43]wFMCommunicate OK [15:49:43]wFMCommunicate request_size=255 [15:49:43]MH_SAM_APDU [15:49:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6A 4F 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 13 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 49 00 00 00 F4 03 04 00 97 80 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 FA 92 01 00 35 04 06 00 00 72 14 03 [15:49:43]Write to MH i2c: E2 02 01 A4 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 6A 4F 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 13 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 49 00 00 00 F4 03 04 00 97 80 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 FA 92 01 00 35 04 06 00 00 72 14 03 00 00 13 [15:49:43]Write i2c OK [15:49:43]MH_I2C_Read... [15:49:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:44]Read from MH i2c: E2 [15:49:44]MH_I2C_Read... [15:49:44]Read from MH i2c: E2 03 00 [15:49:44]MH_I2C_Read... [15:49:44]Read from MH i2c: E2 03 00 A4 01 00 90 00 19 [15:49:44]RAPDU: 90 00 [15:49:44]wFMCommunicate OK [15:49:44]wFMCommunicate request_size=7 [15:49:44]MH_SAM_APDU [15:49:44]CAPDU: 80 0D 02 02 02 61 3F [15:49:44]Write to MH i2c: E2 0A 00 A5 01 80 0D 02 02 02 00 61 3F 00 00 C4 [15:49:44]Write i2c OK [15:49:44]MH_I2C_Read... [15:49:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:44]Read from MH i2c: E2 [15:49:44]MH_I2C_Read... [15:49:44]Read from MH i2c: E2 03 00 [15:49:44]MH_I2C_Read... [15:49:44]Read from MH i2c: E2 03 00 A5 01 00 90 00 1A [15:49:44]RAPDU: 90 00 [15:49:44]wFMCommunicate OK [15:49:44]wFMCommunicate request_size=4 [15:49:44]MH_SAM_APDU [15:49:44]CAPDU: 80 0D 03 02 [15:49:44]Write to MH i2c: E2 08 00 A6 01 80 0D 03 02 00 00 00 00 22 [15:49:44]Write i2c OK [15:49:44]MH_I2C_Read... [15:49:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:49:44]Read from MH i2c: E2 [15:49:44]MH_I2C_Read... [15:49:44]Read from MH i2c: E2 0B 00 [15:49:44]MH_I2C_Read... [15:49:44]Read from MH i2c: E2 0B 00 A6 01 00 59 90 07 3D A6 E3 FD 1D 90 00 F3 [15:49:44]RAPDU: 59 90 07 3D A6 E3 FD 1D 90 00 [15:49:44]wFMCommunicate OK [15:49:44]SAM_PROTO_SignData done [15:49:44]FM_MakeSignedData done [15:49:44]CreateOFDProtocolMessage [15:49:44]wFMCommunicate request_size=4 [15:49:44]MH_SAM_APDU [15:49:44]CAPDU: 80 11 00 00 [15:49:44]Write to MH i2c: E2 08 00 A7 01 80 11 00 00 00 00 00 00 22 [15:49:44]Write i2c OK [15:49:44]MH_I2C_Read... [15:49:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:44]Read from MH i2c: E2 [15:49:44]MH_I2C_Read... [15:49:44]Read from MH i2c: E2 17 00 [15:49:44]MH_I2C_Read... [15:49:44]Read from MH i2c: E2 17 00 A7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 76 [15:49:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [15:49:44]wFMCommunicate OK [15:49:44]CreateOFDProtocolMessage done [15:49:44]OFDSenderStorePacket 103162 [15:49:44]StoreOFDPacket docnum=103162 [15:49:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 44 68 04 01 B1 ED 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6A 4F 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 13 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 49 00 00 00 F4 03 04 00 97 80 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 FA 92 01 00 35 04 06 00 00 72 14 03 61 3F 59 90 07 3D A6 E3 FD 1D [15:49:44]CheckFolder [15:49:44]dirname=/storage/ofd_packets [15:49:44]CheckFolder done [15:49:44]ProducePacketName [15:49:44]name=ofd_packets/00103162 [15:49:44]NVStorageSaveData ofd_packets/00103162 [15:49:44]File name is /storage/ofd_packets/00103162 [15:49:44]Write 298 bytes [15:49:44]NVStorageSaveData done [15:49:44]OFDSenderStorePacket done [15:49:44]KKMCreateOFDPacket done [15:49:44]NVStorageSaveData kkm_last_timestamp [15:49:44]File name is /storage/kkm_last_timestamp [15:49:44]Write 4 bytes [15:49:44]NVStorageSaveData done [15:49:44]ExternCall_PrintAddStr [15:49:44]wPrintStart [15:49:44]Write to MH i2c: 01 00 00 A8 01 A9 [15:49:44]Write i2c OK [15:49:44]MH_I2C_Read... [15:49:44]Read from MH i2c: 01 [15:49:44]MH_I2C_Read... [15:49:44]Read from MH i2c: 01 07 00 [15:49:44]MH_I2C_Read... [15:49:44]Read from MH i2c: 01 07 00 A8 01 00 00 00 00 00 FF 0F BE [15:49:44]RasterBufferAndPrint [15:49:44]line Счет N : (1)160792 [15:49:44]line ИНН: 02508201610067 [15:49:44]line Контрольно-Кассовый Чек [15:49:44]line ПРОДАЖА [15:49:44]line ТРК (МРК, ГНК) : 5 [15:49:44]line Товар: 2710194210 [15:49:44]line ДТ-К-5 [15:49:44]line 20.330 * 73.80 [15:49:44]line = 1500.35 [15:49:44]line НДС 12% НСП 1% [15:49:44]line > о реализуемом товаре [15:49:44]line ОКРУГЛЕНИЕ: -0.35 [15:49:44]line ИТОГО: 1500.00 [15:49:44]line Внесено: 1500.00 [15:49:44]line СДАЧА: 0.00 [15:49:44]line НСП 1% : 13.28 [15:49:44]line НДС 12% : 159.33 [15:49:44]line Наличными: 1500.00 [15:49:44]line Безнал.: 0.00 [15:49:44]line Место: АЗС № 38 "Партнер Нефть" [15:49:44]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [15:49:44]line СНО: Общий режим [15:49:44]line Чек 73 13.08.2024 15:49 [15:49:44]line Смена: 464 ФФД: 1.0 [15:49:44]line ЗНМ: 0300000126 [15:49:44]line РНМ: 0000000000092718 [15:49:44]line Версия ККМ: 001 [15:49:44]line ФМ: 0000000000875058 [15:49:44]line ФД: 103162 [15:49:44]line ФПД: 489962037567 [15:49:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T154943&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103162&fm=489962037567&tin=02508201610067®Number=0000000000092718&sum=150000 [15:49:44]OFD Sender: Processing packet 103162 [packets to send 69, broken 68] [15:49:44]ProducePacketName [15:49:44]name=ofd_packets/00103162 [15:49:44]OFD Sender: To server: pG, [15:49:44]CommunicateWithHost lk.salyk.kg:30040 [15:49:44]ConnectInit lk.salyk.kg [15:49:44]written 0, free lines is 4095 [15:49:44]Connected sock=10 [15:49:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 44 68 04 01 B1 ED 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6A 4F 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 13 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 49 00 00 00 F4 03 04 00 97 80 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 FA 92 01 00 35 04 06 00 00 72 14 03 61 3F 59 90 07 3D A6 E3 FD 1D [15:49:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 4E E5 47 00 2F 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 FA 92 01 00 F4 03 04 00 09 27 BB 66 B6 04 01 00 00 95 BC C3 69 E7 A6 FE 53 [15:49:44]CommunicateWithHost err = 0 [15:49:44]CheckOFDResponse [15:49:44]1017 (14) - 77093643461234 [15:49:44]1041 (16) - 0000000000875058 [15:49:44]1040 (4) - 103162 [15:49:44]1012 (4) - 13.08.2024 09:27 [15:49:44]1206 (1) - 0 [15:49:44]OFD Sender: Remove packet 103162 [15:49:44]ProducePacketName [15:49:44]name=ofd_packets/00103162 [15:49:44]NVStorageDeleteData [15:49:44]Write to MH i2c: 01 00 00 D3 01 D4 [15:49:44]Write i2c OK [15:49:44]MH_I2C_Read... [15:49:44]Read from MH i2c: 01 [15:49:44]MH_I2C_Read... [15:49:44]Read from MH i2c: 01 07 00 [15:49:44]MH_I2C_Read... [15:49:44]Read from MH i2c: 01 07 00 D3 01 00 00 00 00 00 DA 0C C1 [15:49:44]RasterBufferAndPrint [15:49:44]line [15:49:44]line [15:49:44]line [15:49:44]line [15:49:44]line [15:49:44]written 0, free lines is 3296 [15:49:45]MH_Cut [15:49:45]Write to MH i2c: D1 01 00 DA 01 01 AD [15:49:45]Write i2c OK [15:49:45]MH_I2C_Read... [15:49:45]Read from MH i2c: D1 [15:49:45]MH_I2C_Read... [15:49:45]Read from MH i2c: D1 01 00 [15:49:45]MH_I2C_Read... [15:49:45]Read from MH i2c: D1 01 00 DA 01 00 AC [15:49:45]Write to MH i2c: 01 00 00 DB 01 DC [15:49:45]Write i2c OK [15:49:45]MH_I2C_Read... [15:49:45]OFD Sender: No OFD packet to send [15:49:45]*** Cut start [15:49:45]*** Purtial cut [15:49:45]*** Stage 1: CUTSNS_PIN = 1 [15:49:46]Read from MH i2c: 01 [15:49:46]MH_I2C_Read... [15:49:46]*** Stop cut motor [15:49:46]*** Cut end [15:49:46]Read from MH i2c: 01 07 00 [15:49:46]MH_I2C_Read... [15:49:46]Read from MH i2c: 01 07 00 DB 01 00 00 00 00 00 FF 0F F1 [15:49:46]process_action close_receipt done [15:49:46]requested_data is exist [15:49:46]produce_requested_data [15:49:46]requested_item fm.sn is exist - process it [15:49:46]wFMCommunicate request_size=4 [15:49:46]MH_SAM_APDU [15:49:46]CAPDU: 80 11 00 00 [15:49:46]Write to MH i2c: E2 08 00 DC 01 80 11 00 00 00 00 00 00 57 [15:49:46]Write i2c OK [15:49:46]MH_I2C_Read... [15:49:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:46]Read from MH i2c: E2 [15:49:46]MH_I2C_Read... [15:49:46]Read from MH i2c: E2 17 00 [15:49:46]MH_I2C_Read... [15:49:46]Read from MH i2c: E2 17 00 DC 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 AB [15:49:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [15:49:46]wFMCommunicate OK [15:49:46]requested_item fd.num is exist - process it [15:49:46]SAM_PROTO_GetFieldsCounters [15:49:46]wFMCommunicate request_size=4 [15:49:46]MH_SAM_APDU [15:49:46]CAPDU: 80 13 00 00 [15:49:46]Write to MH i2c: E2 08 00 DD 01 80 13 00 00 00 00 00 00 5A [15:49:46]Write i2c OK [15:49:46]MH_I2C_Read... [15:49:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:49:46]Read from MH i2c: E2 [15:49:46]MH_I2C_Read... [15:49:46]Read from MH i2c: E2 62 00 [15:49:46]MH_I2C_Read... [15:49:46]Read from MH i2c: E2 62 00 DD 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 FA 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [15:49:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 FA 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:49:46]wFMCommunicate OK [15:49:46]SAM_PROTO_GetFieldsCounters done [15:49:46]requested_item shift.num is exist - process it [15:49:46]requested_item shift.opened is exist - process it [15:49:46]req_shift_opened [15:49:46]FM_GetShiftState [15:49:46]SAM_PROTO_GetShiftState [15:49:46]wFMCommunicate request_size=4 [15:49:46]MH_SAM_APDU [15:49:46]CAPDU: 80 13 01 00 [15:49:46]Write to MH i2c: E2 08 00 DE 01 80 13 01 00 00 00 00 00 5C [15:49:46]Write i2c OK [15:49:46]MH_I2C_Read... [15:49:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:46]Read from MH i2c: E2 [15:49:46]MH_I2C_Read... [15:49:46]Read from MH i2c: E2 0E 00 [15:49:46]MH_I2C_Read... [15:49:46]Read from MH i2c: E2 0E 00 DE 01 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 7A [15:49:46]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [15:49:46]wFMCommunicate OK [15:49:46]SAM_PROTO_GetShiftState done [15:49:46]FM_GetShiftState done [15:49:46]req_shift_opened done [15:49:46]requested_item shift.open_date is exist - process it [15:49:46]req_shift_open_date [15:49:46]req_shift_open_date done [15:49:46]produce_requested_data done [15:49:46]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103162,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [15:49:46]process_action_free close_receipt [15:49:46]json_value_free [15:49:46]json_value_free done [15:49:46]process_json_proto returns [15:49:46]Send response to host [15:49:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103162,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [15:49:46]free response buf [15:49:46]execute_script done [15:49:46]execute_script returns [15:49:46]free content buf [15:49:46]Sock 9.Close socket [15:49:46]Sock 9.Thread stoped [15:49:50]OFD Sender: No OFD packet to send [15:49:55]OFD Sender: No OFD packet to send [15:50:00]OFD Sender: No OFD packet to send [15:50:05]OFD Sender: No OFD packet to send [15:50:10]OFD Sender: No OFD packet to send [15:50:15]OFD Sender: No OFD packet to send [15:50:20]OFD Sender: No OFD packet to send [15:50:25]OFD Sender: No OFD packet to send [15:50:30]OFD Sender: No OFD packet to send [15:50:35]OFD Sender: No OFD packet to send [15:50:40]OFD Sender: No OFD packet to send [15:50:45]OFD Sender: No OFD packet to send [15:50:50]OFD Sender: No OFD packet to send [15:50:55]OFD Sender: No OFD packet to send [15:51:00]OFD Sender: No OFD packet to send [15:51:05]OFD Sender: No OFD packet to send [15:51:10]OFD Sender: No OFD packet to send [15:51:15]OFD Sender: No OFD packet to send [15:51:20]OFD Sender: No OFD packet to send [15:51:25]OFD Sender: No OFD packet to send [15:51:30]OFD Sender: No OFD packet to send [15:51:35]OFD Sender: No OFD packet to send [15:51:40]OFD Sender: No OFD packet to send [15:51:45]OFD Sender: No OFD packet to send [15:51:50]OFD Sender: No OFD packet to send [15:51:55]OFD Sender: No OFD packet to send [15:52:00]OFD Sender: No OFD packet to send [15:52:05]OFD Sender: No OFD packet to send [15:52:10]OFD Sender: No OFD packet to send [15:52:15]OFD Sender: No OFD packet to send [15:52:20]OFD Sender: No OFD packet to send [15:52:25]OFD Sender: No OFD packet to send [15:52:30]OFD Sender: No OFD packet to send [15:52:35]OFD Sender: No OFD packet to send [15:52:40]OFD Sender: No OFD packet to send [15:52:45]OFD Sender: No OFD packet to send [15:52:50]OFD Sender: No OFD packet to send [15:52:55]OFD Sender: No OFD packet to send [15:53:00]OFD Sender: No OFD packet to send [15:53:05]OFD Sender: No OFD packet to send [15:53:10]OFD Sender: No OFD packet to send [15:53:15]OFD Sender: No OFD packet to send [15:53:20]OFD Sender: No OFD packet to send [15:53:25]OFD Sender: No OFD packet to send [15:53:30]OFD Sender: No OFD packet to send [15:53:35]OFD Sender: No OFD packet to send [15:53:40]OFD Sender: No OFD packet to send [15:53:45]OFD Sender: No OFD packet to send [15:53:50]OFD Sender: No OFD packet to send [15:53:55]OFD Sender: No OFD packet to send [15:54:00]OFD Sender: No OFD packet to send [15:54:05]OFD Sender: No OFD packet to send [15:54:10]OFD Sender: No OFD packet to send [15:54:15]OFD Sender: No OFD packet to send [15:54:20]OFD Sender: No OFD packet to send [15:54:25]OFD Sender: No OFD packet to send [15:54:30]OFD Sender: No OFD packet to send [15:54:35]OFD Sender: No OFD packet to send [15:54:40]OFD Sender: No OFD packet to send [15:54:45]OFD Sender: No OFD packet to send [15:54:50]OFD Sender: No OFD packet to send [15:54:55]OFD Sender: No OFD packet to send [15:55:00]OFD Sender: No OFD packet to send [15:55:05]OFD Sender: No OFD packet to send [15:55:10]OFD Sender: No OFD packet to send [15:55:15]OFD Sender: No OFD packet to send [15:55:20]OFD Sender: No OFD packet to send [15:55:25]OFD Sender: No OFD packet to send [15:55:30]OFD Sender: No OFD packet to send [15:55:35]OFD Sender: No OFD packet to send [15:55:40]OFD Sender: No OFD packet to send [15:55:45]OFD Sender: No OFD packet to send [15:55:50]OFD Sender: No OFD packet to send [15:55:55]OFD Sender: No OFD packet to send [15:56:00]OFD Sender: No OFD packet to send [15:56:05]OFD Sender: No OFD packet to send [15:56:10]OFD Sender: No OFD packet to send [15:56:15]OFD Sender: No OFD packet to send [15:56:20]OFD Sender: No OFD packet to send [15:56:25]OFD Sender: No OFD packet to send [15:56:30]OFD Sender: No OFD packet to send [15:56:35]OFD Sender: No OFD packet to send [15:56:40]OFD Sender: No OFD packet to send [15:56:45]OFD Sender: No OFD packet to send [15:56:50]OFD Sender: No OFD packet to send [15:56:55]OFD Sender: No OFD packet to send [15:57:00]OFD Sender: No OFD packet to send [15:57:05]OFD Sender: No OFD packet to send [15:57:10]OFD Sender: No OFD packet to send [15:57:15]OFD Sender: No OFD packet to send [15:57:20]OFD Sender: No OFD packet to send [15:57:25]OFD Sender: No OFD packet to send [15:57:30]OFD Sender: No OFD packet to send [15:57:35]OFD Sender: No OFD packet to send [15:57:40]OFD Sender: No OFD packet to send [15:57:45]OFD Sender: No OFD packet to send [15:57:50]OFD Sender: No OFD packet to send [15:57:55]OFD Sender: No OFD packet to send [15:58:00]OFD Sender: No OFD packet to send [15:58:05]OFD Sender: No OFD packet to send [15:58:10]OFD Sender: No OFD packet to send [15:58:15]OFD Sender: No OFD packet to send [15:58:20]OFD Sender: No OFD packet to send [15:58:25]OFD Sender: No OFD packet to send [15:58:30]OFD Sender: No OFD packet to send [15:58:35]OFD Sender: No OFD packet to send [15:58:40]OFD Sender: No OFD packet to send [15:58:45]OFD Sender: No OFD packet to send [15:58:50]OFD Sender: No OFD packet to send [15:58:55]OFD Sender: No OFD packet to send [15:59:00]OFD Sender: No OFD packet to send [15:59:05]OFD Sender: No OFD packet to send [15:59:10]OFD Sender: No OFD packet to send [15:59:15]OFD Sender: No OFD packet to send [15:59:20]OFD Sender: No OFD packet to send [15:59:25]OFD Sender: No OFD packet to send [15:59:30]OFD Sender: No OFD packet to send [15:59:35]OFD Sender: No OFD packet to send [15:59:40]OFD Sender: No OFD packet to send [15:59:45]OFD Sender: No OFD packet to send [15:59:50]OFD Sender: No OFD packet to send [15:59:55]OFD Sender: No OFD packet to send [16:00:00]OFD Sender: No OFD packet to send [16:00:05]OFD Sender: No OFD packet to send [16:00:10]OFD Sender: No OFD packet to send [16:00:15]OFD Sender: No OFD packet to send [16:00:20]OFD Sender: No OFD packet to send [16:00:25]OFD Sender: No OFD packet to send [16:00:30]OFD Sender: No OFD packet to send [16:00:35]OFD Sender: No OFD packet to send [16:00:40]OFD Sender: No OFD packet to send [16:00:45]OFD Sender: No OFD packet to send [16:00:50]OFD Sender: No OFD packet to send [16:00:55]OFD Sender: No OFD packet to send [16:01:00]OFD Sender: No OFD packet to send [16:01:05]OFD Sender: No OFD packet to send [16:01:10]OFD Sender: No OFD packet to send [16:01:15]OFD Sender: No OFD packet to send [16:01:20]OFD Sender: No OFD packet to send [16:01:25]OFD Sender: No OFD packet to send [16:01:31]OFD Sender: No OFD packet to send [16:01:36]OFD Sender: No OFD packet to send [16:01:41]OFD Sender: No OFD packet to send [16:01:46]OFD Sender: No OFD packet to send [16:01:51]OFD Sender: No OFD packet to send [16:01:56]OFD Sender: No OFD packet to send [16:02:01]OFD Sender: No OFD packet to send [16:02:06]OFD Sender: No OFD packet to send [16:02:11]OFD Sender: No OFD packet to send [16:02:16]OFD Sender: No OFD packet to send [16:02:21]OFD Sender: No OFD packet to send [16:02:26]OFD Sender: No OFD packet to send [16:02:31]OFD Sender: No OFD packet to send [16:02:36]OFD Sender: No OFD packet to send [16:02:41]OFD Sender: No OFD packet to send [16:02:46]OFD Sender: No OFD packet to send [16:02:51]OFD Sender: No OFD packet to send [16:02:56]OFD Sender: No OFD packet to send [16:03:01]OFD Sender: No OFD packet to send [16:03:06]OFD Sender: No OFD packet to send [16:03:11]OFD Sender: No OFD packet to send [16:03:16]OFD Sender: No OFD packet to send [16:03:20]accept exits with 7 [16:03:20]New connection [16:03:20]New thread 3067260260 created [16:03:20]Thread 3067116900 joined [16:03:20]Waiting for new connection... [16:03:20] Sock 7.Parse request [16:03:20]Sock 7.Check first char [16:03:20]Sock 7.First char is OK [16:03:20]request: POST /json_proto HTTP/1.0 [16:03:20]Method: POST [16:03:20]URL: /json_proto [16:03:20]Method is POST - this is cgi request [16:03:20]url: /json_proto [16:03:20]query_string will be loaded in cgi processing [16:03:20]execute_cgi json_proto POST (null) [16:03:20]execute_cgi path=json_proto method=POST [16:03:20]POST find Content-Length [16:03:20]Host: 172.17.58.3:8080 [16:03:20]Content-Length: 676 [16:03:20]Content-Type: application/json [16:03:20] [16:03:20]POST finish read [16:03:20]Found Content-Length = 676 [16:03:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160793", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 3.800, "sum" : 250.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:20]execute_script... [16:03:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160793", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 3.800, "sum" : 250.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:20]POST & json_proto [16:03:20]process_json_proto [16:03:20]json parsed OK: [16:03:20]protocol is kg_v1.0 [16:03:20]action value=close_receipt [16:03:20]process_action close_receipt [16:03:20]cmd_close_receipt [16:03:20]MH_GetDate [16:03:20]Write to MH i2c: F0 00 00 DF 01 CF [16:03:20]Write i2c OK [16:03:20]MH_I2C_Read... [16:03:20]Read from MH i2c: F0 [16:03:20]MH_I2C_Read... [16:03:20]Read from MH i2c: F0 09 00 [16:03:20]MH_I2C_Read... [16:03:20]Read from MH i2c: F0 09 00 DF 01 00 C9 83 BB 66 DC E4 6D 64 D6 [16:03:20]GetLastDocTimeStamp 1723564183 [16:03:20]current date 1723565001 [16:03:20]FM_GetShiftState [16:03:20]SAM_PROTO_GetShiftState [16:03:20]wFMCommunicate request_size=4 [16:03:20]MH_SAM_APDU [16:03:20]CAPDU: 80 13 01 00 [16:03:20]Write to MH i2c: E2 08 00 E0 01 80 13 01 00 00 00 00 00 5E [16:03:20]Write i2c OK [16:03:20]MH_I2C_Read... [16:03:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:20]Read from MH i2c: E2 [16:03:20]MH_I2C_Read... [16:03:20]Read from MH i2c: E2 0E 00 [16:03:20]MH_I2C_Read... [16:03:20]Read from MH i2c: E2 0E 00 E0 01 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 7C [16:03:20]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [16:03:20]wFMCommunicate OK [16:03:20]SAM_PROTO_GetShiftState done [16:03:20]FM_GetShiftState done [16:03:20]opened in 1723506770 [16:03:20]opened+sec_in_day 1723593170 [16:03:20]quantity*price = 25042 [16:03:20]sum+1 = 25043 [16:03:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.22 НДС 12% : 26.59 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 74 13.08.2024 16:03 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103163 ФПД: 182056726390513 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T160321&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103163&fm=182056726390513&tin=02508201610067®Number=0000000000092718&sum=25000 [16:03:21]StoreToDocumentArchive [16:03:21]shift 464 fd 103163 [16:03:21]save to /storage/0464/doc_00103163 [16:03:21]save last doc name /storage/0464/doc_00103163 to /storage/kkm_last_doc_name [16:03:21]save OK [16:03:21]Clear old archive folders... [16:03:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:03:21]tlvbuf is 00249720 [16:03:21]SAM_PROTO_ClearQueue [16:03:21]wFMCommunicate request_size=4 [16:03:21]MH_SAM_APDU [16:03:21]CAPDU: 80 09 00 00 [16:03:21]Write to MH i2c: E2 08 00 ED 01 80 09 00 00 00 00 00 00 60 [16:03:21]Write i2c OK [16:03:21]MH_I2C_Read... [16:03:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:03:22]Read from MH i2c: E2 [16:03:22]MH_I2C_Read... [16:03:22]Read from MH i2c: E2 03 00 [16:03:22]MH_I2C_Read... [16:03:22]Read from MH i2c: E2 03 00 ED 01 00 90 00 62 [16:03:22]RAPDU: 90 00 [16:03:22]wFMCommunicate OK [16:03:22]SAM_PROTO_ClearQueue done [16:03:22]KKMCreateOFDPacket [16:03:22]OFDProtocolAddRootSTLVToBuf [16:03:22]FM_MakeSignedData [16:03:22]FM_MakeSignedData [16:03:22]SAM_PROTO_SignData [16:03:22]wFMCommunicate request_size=4 [16:03:22]MH_SAM_APDU [16:03:22]CAPDU: 80 0D 01 02 [16:03:22]Write to MH i2c: E2 08 00 EE 01 80 0D 01 02 00 00 00 00 68 [16:03:22]Write i2c OK [16:03:22]MH_I2C_Read... [16:03:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:03:22]Read from MH i2c: E2 [16:03:22]MH_I2C_Read... [16:03:22]Read from MH i2c: E2 03 00 [16:03:22]MH_I2C_Read... [16:03:22]Read from MH i2c: E2 03 00 EE 01 00 90 00 63 [16:03:22]RAPDU: 90 00 [16:03:22]wFMCommunicate OK [16:03:22]wFMCommunicate request_size=255 [16:03:22]MH_SAM_APDU [16:03:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 D2 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 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 4A 00 00 00 F4 03 04 00 C9 83 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 FB 92 01 00 35 04 06 00 A5 [16:03:22]Write to MH i2c: E2 02 01 EF 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 D2 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 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 4A 00 00 00 F4 03 04 00 C9 83 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 FB 92 01 00 35 04 06 00 A5 00 00 7D [16:03:22]Write i2c OK [16:03:22]MH_I2C_Read... [16:03:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:22]Read from MH i2c: E2 [16:03:22]MH_I2C_Read... [16:03:22]Read from MH i2c: E2 03 00 [16:03:22]MH_I2C_Read... [16:03:22]Read from MH i2c: E2 03 00 EF 01 00 90 00 64 [16:03:22]RAPDU: 90 00 [16:03:22]wFMCommunicate OK [16:03:22]wFMCommunicate request_size=10 [16:03:22]MH_SAM_APDU [16:03:22]CAPDU: 80 0D 02 02 05 94 62 81 66 F1 [16:03:22]Write to MH i2c: E2 0D 00 F0 01 80 0D 02 02 05 00 94 62 81 66 F1 00 00 43 [16:03:22]Write i2c OK [16:03:22]MH_I2C_Read... [16:03:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:22]Read from MH i2c: E2 [16:03:22]MH_I2C_Read... [16:03:22]Read from MH i2c: E2 03 00 [16:03:22]MH_I2C_Read... [16:03:22]Read from MH i2c: E2 03 00 F0 01 00 90 00 65 [16:03:22]RAPDU: 90 00 [16:03:22]wFMCommunicate OK [16:03:22]wFMCommunicate request_size=4 [16:03:22]MH_SAM_APDU [16:03:22]CAPDU: 80 0D 03 02 [16:03:22]Write to MH i2c: E2 08 00 F1 01 80 0D 03 02 00 00 00 00 6D [16:03:22]Write i2c OK [16:03:22]MH_I2C_Read... [16:03:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:03:22]Read from MH i2c: E2 [16:03:22]MH_I2C_Read... [16:03:22]Read from MH i2c: E2 0B 00 [16:03:22]MH_I2C_Read... [16:03:22]Read from MH i2c: E2 0B 00 F1 01 00 39 0E ED A0 19 55 24 F0 90 00 C4 [16:03:22]RAPDU: 39 0E ED A0 19 55 24 F0 90 00 [16:03:22]wFMCommunicate OK [16:03:22]SAM_PROTO_SignData done [16:03:22]FM_MakeSignedData done [16:03:22]CreateOFDProtocolMessage [16:03:22]wFMCommunicate request_size=4 [16:03:22]MH_SAM_APDU [16:03:22]CAPDU: 80 11 00 00 [16:03:22]Write to MH i2c: E2 08 00 F2 01 80 11 00 00 00 00 00 00 6D [16:03:22]Write i2c OK [16:03:22]MH_I2C_Read... [16:03:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:22]Read from MH i2c: E2 [16:03:22]MH_I2C_Read... [16:03:22]Read from MH i2c: E2 17 00 [16:03:22]MH_I2C_Read... [16:03:22]Read from MH i2c: E2 17 00 F2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 C1 [16:03:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [16:03:22]wFMCommunicate OK [16:03:22]CreateOFDProtocolMessage done [16:03:22]OFDSenderStorePacket 103163 [16:03:22]StoreOFDPacket docnum=103163 [16:03:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 9D 2B 07 01 CE 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 D8 0E 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 D2 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 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 4A 00 00 00 F4 03 04 00 C9 83 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 FB 92 01 00 35 04 06 00 A5 94 62 81 66 F1 39 0E ED A0 19 55 24 F0 [16:03:22]CheckFolder [16:03:22]dirname=/storage/ofd_packets [16:03:22]CheckFolder done [16:03:22]ProducePacketName [16:03:22]name=ofd_packets/00103163 [16:03:22]NVStorageSaveData ofd_packets/00103163 [16:03:22]File name is /storage/ofd_packets/00103163 [16:03:22]Write 301 bytes [16:03:22]NVStorageSaveData done [16:03:22]OFDSenderStorePacket done [16:03:22]KKMCreateOFDPacket done [16:03:22]NVStorageSaveData kkm_last_timestamp [16:03:22]File name is /storage/kkm_last_timestamp [16:03:22]Write 4 bytes [16:03:22]NVStorageSaveData done [16:03:22]ExternCall_PrintAddStr [16:03:22]wPrintStart [16:03:22]Write to MH i2c: 01 00 00 F3 01 F4 [16:03:22]Write i2c OK [16:03:22]MH_I2C_Read... [16:03:22]Read from MH i2c: 01 [16:03:22]MH_I2C_Read... [16:03:22]Read from MH i2c: 01 07 00 [16:03:22]MH_I2C_Read... [16:03:22]Read from MH i2c: 01 07 00 F3 01 00 00 00 00 00 FF 0F 09 [16:03:22]RasterBufferAndPrint [16:03:22]line Счет N : (1)160793 [16:03:22]line ИНН: 02508201610067 [16:03:22]line Контрольно-Кассовый Чек [16:03:22]line ПРОДАЖА [16:03:22]line ТРК (МРК, ГНК) : 3 [16:03:22]line Товар: 2710124130 [16:03:22]line Аи-92-К-5 [16:03:22]line 3.800 * 65.90 [16:03:22]line = 250.42 [16:03:22]line НДС 12% НСП 1% [16:03:22]line > о реализуемом товаре [16:03:22]line ОКРУГЛЕНИЕ: -0.42 [16:03:22]line ИТОГО: 250.00 [16:03:22]line Внесено: 250.00 [16:03:22]line СДАЧА: 0.00 [16:03:22]line НСП 1% : 2.22 [16:03:22]line НДС 12% : 26.59 [16:03:22]line Наличными: 250.00 [16:03:22]line Безнал.: 0.00 [16:03:22]line Место: АЗС № 38 "Партнер Нефть" [16:03:22]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [16:03:22]line СНО: Общий режим [16:03:22]line Чек 74 13.08.2024 16:03 [16:03:22]line Смена: 464 ФФД: 1.0 [16:03:22]line ЗНМ: 0300000126 [16:03:22]line РНМ: 0000000000092718 [16:03:22]line Версия ККМ: 001 [16:03:22]line ФМ: 0000000000875058 [16:03:22]line ФД: 103163 [16:03:22]line ФПД: 182056726390513 [16:03:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T160321&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103163&fm=182056726390513&tin=02508201610067®Number=0000000000092718&sum=25000 [16:03:22]OFD Sender: Processing packet 103163 [packets to send 69, broken 68] [16:03:22]ProducePacketName [16:03:22]name=ofd_packets/00103163 [16:03:22]OFD Sender: To server: pG, [16:03:22]CommunicateWithHost lk.salyk.kg:30040 [16:03:22]ConnectInit lk.salyk.kg [16:03:22]written 0, free lines is 4095 [16:03:23]Write to MH i2c: 01 00 00 1E 02 20 [16:03:23]Write i2c OK [16:03:23]MH_I2C_Read... [16:03:23]Read from MH i2c: 01 [16:03:23]MH_I2C_Read... [16:03:23]Read from MH i2c: 01 07 00 [16:03:23]MH_I2C_Read... [16:03:23]Read from MH i2c: 01 07 00 1E 02 00 00 00 00 00 EE 0C 21 [16:03:23]RasterBufferAndPrint [16:03:23]line [16:03:23]line [16:03:23]line [16:03:23]line [16:03:23]line [16:03:23]written 0, free lines is 3316 [16:03:23]MH_Cut [16:03:23]Write to MH i2c: D1 01 00 25 02 01 F9 [16:03:23]Write i2c OK [16:03:23]MH_I2C_Read... [16:03:23]Read from MH i2c: D1 [16:03:23]MH_I2C_Read... [16:03:23]Read from MH i2c: D1 01 00 [16:03:23]MH_I2C_Read... [16:03:23]Read from MH i2c: D1 01 00 25 02 00 F8 [16:03:23]Write to MH i2c: 01 00 00 26 02 28 [16:03:23]Write i2c OK [16:03:23]MH_I2C_Read... [16:03:24]*** Cut start [16:03:24]*** Purtial cut [16:03:24]*** CUTSNS_PIN = 0 [16:03:24]*** Stage 1: CUTSNS_PIN = 1 [16:03:26]Read from MH i2c: 01 [16:03:26]MH_I2C_Read... [16:03:26]*** Stop cut motor [16:03:26]*** Cut end [16:03:26]Read from MH i2c: 01 07 00 [16:03:26]MH_I2C_Read... [16:03:26]Read from MH i2c: 01 07 00 26 02 00 00 00 00 00 FF 0F 3D [16:03:26]process_action close_receipt done [16:03:26]requested_data is exist [16:03:26]produce_requested_data [16:03:26]requested_item fm.sn is exist - process it [16:03:26]wFMCommunicate request_size=4 [16:03:26]MH_SAM_APDU [16:03:26]CAPDU: 80 11 00 00 [16:03:26]Write to MH i2c: E2 08 00 27 02 80 11 00 00 00 00 00 00 A3 [16:03:26]Write i2c OK [16:03:26]MH_I2C_Read... [16:03:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:26]Read from MH i2c: E2 [16:03:26]MH_I2C_Read... [16:03:26]Read from MH i2c: E2 17 00 [16:03:26]MH_I2C_Read... [16:03:26]Read from MH i2c: E2 17 00 27 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 F7 [16:03:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [16:03:26]wFMCommunicate OK [16:03:26]requested_item fd.num is exist - process it [16:03:26]SAM_PROTO_GetFieldsCounters [16:03:26]wFMCommunicate request_size=4 [16:03:26]MH_SAM_APDU [16:03:26]CAPDU: 80 13 00 00 [16:03:26]Write to MH i2c: E2 08 00 28 02 80 13 00 00 00 00 00 00 A6 [16:03:26]Write i2c OK [16:03:26]MH_I2C_Read... [16:03:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:03:26]Read from MH i2c: E2 [16:03:26]MH_I2C_Read... [16:03:26]Read from MH i2c: E2 62 00 [16:03:26]MH_I2C_Read... [16:03:26]Read from MH i2c: E2 62 00 28 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 FB 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [16:03:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 FB 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:03:26]wFMCommunicate OK [16:03:26]SAM_PROTO_GetFieldsCounters done [16:03:26]requested_item shift.num is exist - process it [16:03:26]requested_item shift.opened is exist - process it [16:03:26]req_shift_opened [16:03:26]FM_GetShiftState [16:03:26]SAM_PROTO_GetShiftState [16:03:26]wFMCommunicate request_size=4 [16:03:26]MH_SAM_APDU [16:03:26]CAPDU: 80 13 01 00 [16:03:26]Write to MH i2c: E2 08 00 29 02 80 13 01 00 00 00 00 00 A8 [16:03:26]Write i2c OK [16:03:26]MH_I2C_Read... [16:03:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:26]Read from MH i2c: E2 [16:03:26]MH_I2C_Read... [16:03:26]Read from MH i2c: E2 0E 00 [16:03:26]MH_I2C_Read... [16:03:26]Read from MH i2c: E2 0E 00 29 02 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 C6 [16:03:26]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [16:03:26]wFMCommunicate OK [16:03:26]SAM_PROTO_GetShiftState done [16:03:26]FM_GetShiftState done [16:03:26]req_shift_opened done [16:03:26]requested_item shift.open_date is exist - process it [16:03:26]req_shift_open_date [16:03:26]req_shift_open_date done [16:03:26]produce_requested_data done [16:03:26]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103163,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [16:03:26]process_action_free close_receipt [16:03:26]json_value_free [16:03:26]json_value_free done [16:03:26]process_json_proto returns [16:03:26]Send response to host [16:03:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103163,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [16:03:26]free response buf [16:03:26]execute_script done [16:03:26]execute_script returns [16:03:26]free content buf [16:03:26]Sock 7.Close socket [16:03:26]Sock 7.Thread stoped [16:04:12]accept exits with 9 [16:04:12]New connection [16:04:12]New thread 3067116900 created [16:04:12]Thread 3067260260 joined [16:04:12]Waiting for new connection... [16:04:12] Sock 9.Parse request [16:04:12]Sock 9.Check first char [16:04:12]Sock 9.First char is OK [16:04:12]request: POST /json_proto HTTP/1.0 [16:04:12]Method: POST [16:04:12]URL: /json_proto [16:04:12]Method is POST - this is cgi request [16:04:12]url: /json_proto [16:04:12]query_string will be loaded in cgi processing [16:04:12]execute_cgi json_proto POST (null) [16:04:12]execute_cgi path=json_proto method=POST [16:04:12]POST find Content-Length [16:04:12]Host: 172.17.58.3:8080 [16:04:12]Content-Length: 676 [16:04:12]Content-Type: application/json [16:04:12] [16:04:12]POST finish read [16:04:12]Found Content-Length = 676 [16:04:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160794", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 6.070, "sum" : 400.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:04:12]execute_script... [16:04: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)160794", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 6.070, "sum" : 400.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:04:12]POST & json_proto [16:04:12]process_json_proto [16:04:12]json parsed OK: [16:04:12]protocol is kg_v1.0 [16:04:12]action value=close_receipt [16:04:12]process_action close_receipt [16:04:12]cmd_close_receipt [16:04:12]MH_GetDate [16:04:12]Write to MH i2c: F0 00 00 2A 02 1B [16:04:12]Write i2c OK [16:04:12]MH_I2C_Read... [16:04:12]Read from MH i2c: F0 [16:04:12]MH_I2C_Read... [16:04:12]Read from MH i2c: F0 09 00 [16:04:12]MH_I2C_Read... [16:04:12]Read from MH i2c: F0 09 00 2A 02 00 FD 83 BB 66 DC E4 6D 64 56 [16:04:12]GetLastDocTimeStamp 1723565001 [16:04:12]current date 1723565053 [16:04:12]FM_GetShiftState [16:04:12]SAM_PROTO_GetShiftState [16:04:12]wFMCommunicate request_size=4 [16:04:12]MH_SAM_APDU [16:04:12]CAPDU: 80 13 01 00 [16:04:12]Write to MH i2c: E2 08 00 2B 02 80 13 01 00 00 00 00 00 AA [16:04:12]Write i2c OK [16:04:12]MH_I2C_Read... [16:04:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:12]Read from MH i2c: E2 [16:04:12]MH_I2C_Read... [16:04:12]Read from MH i2c: E2 0E 00 [16:04:12]MH_I2C_Read... [16:04:12]Read from MH i2c: E2 0E 00 2B 02 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 C8 [16:04:12]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [16:04:12]wFMCommunicate OK [16:04:12]SAM_PROTO_GetShiftState done [16:04:12]FM_GetShiftState done [16:04:12]opened in 1723506770 [16:04:12]opened+sec_in_day 1723593170 [16:04:12]quantity*price = 40001 [16:04:12]sum+1 = 40002 [16:04:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 75 13.08.2024 16:04 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103164 ФПД: 149551828872695 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T160413&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103164&fm=149551828872695&tin=02508201610067®Number=0000000000092718&sum=40000 [16:04:14]StoreToDocumentArchive [16:04:14]shift 464 fd 103164 [16:04:14]save to /storage/0464/doc_00103164 [16:04:14]save last doc name /storage/0464/doc_00103164 to /storage/kkm_last_doc_name [16:04:14]save OK [16:04:14]Clear old archive folders... [16:04:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:04:14]tlvbuf is 0024A980 [16:04:14]SAM_PROTO_ClearQueue [16:04:14]wFMCommunicate request_size=4 [16:04:14]MH_SAM_APDU [16:04:14]CAPDU: 80 09 00 00 [16:04:14]Write to MH i2c: E2 08 00 38 02 80 09 00 00 00 00 00 00 AC [16:04:14]Write i2c OK [16:04:14]MH_I2C_Read... [16:04:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:04:14]Read from MH i2c: E2 [16:04:14]MH_I2C_Read... [16:04:14]Read from MH i2c: E2 03 00 [16:04:14]MH_I2C_Read... [16:04:14]Read from MH i2c: E2 03 00 38 02 00 90 00 AE [16:04:14]RAPDU: 90 00 [16:04:14]wFMCommunicate OK [16:04:14]SAM_PROTO_ClearQueue done [16:04:14]KKMCreateOFDPacket [16:04:14]OFDProtocolAddRootSTLVToBuf [16:04:14]FM_MakeSignedData [16:04:14]FM_MakeSignedData [16:04:14]SAM_PROTO_SignData [16:04:14]wFMCommunicate request_size=4 [16:04:14]MH_SAM_APDU [16:04:14]CAPDU: 80 0D 01 02 [16:04:14]Write to MH i2c: E2 08 00 39 02 80 0D 01 02 00 00 00 00 B4 [16:04:14]Write i2c OK [16:04:14]MH_I2C_Read... [16:04:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:04:14]Read from MH i2c: E2 [16:04:14]MH_I2C_Read... [16:04:14]Read from MH i2c: E2 03 00 [16:04:14]MH_I2C_Read... [16:04:14]Read from MH i2c: E2 03 00 39 02 00 90 00 AF [16:04:14]RAPDU: 90 00 [16:04:14]wFMCommunicate OK [16:04:14]wFMCommunicate request_size=255 [16:04:14]MH_SAM_APDU [16:04: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 B6 17 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 41 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 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 4B 00 00 00 F4 03 04 00 FD 83 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 FC 92 01 00 35 04 06 00 88 [16:04:14]Write to MH i2c: E2 02 01 3A 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 17 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 41 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 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 4B 00 00 00 F4 03 04 00 FD 83 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 FC 92 01 00 35 04 06 00 88 00 00 D9 [16:04:14]Write i2c OK [16:04:14]MH_I2C_Read... [16:04:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:14]Read from MH i2c: E2 [16:04:14]MH_I2C_Read... [16:04:14]Read from MH i2c: E2 03 00 [16:04:14]MH_I2C_Read... [16:04:14]Read from MH i2c: E2 03 00 3A 02 00 90 00 B0 [16:04:14]RAPDU: 90 00 [16:04:14]wFMCommunicate OK [16:04:14]wFMCommunicate request_size=10 [16:04:14]MH_SAM_APDU [16:04:14]CAPDU: 80 0D 02 02 05 04 3F A2 AD F7 [16:04:14]Write to MH i2c: E2 0D 00 3B 02 80 0D 02 02 05 00 04 3F A2 AD F7 00 00 4A [16:04:14]Write i2c OK [16:04:14]MH_I2C_Read... [16:04:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:14]Read from MH i2c: E2 [16:04:14]MH_I2C_Read... [16:04:14]Read from MH i2c: E2 03 00 [16:04:14]MH_I2C_Read... [16:04:14]Read from MH i2c: E2 03 00 3B 02 00 90 00 B1 [16:04:14]RAPDU: 90 00 [16:04:14]wFMCommunicate OK [16:04:14]wFMCommunicate request_size=4 [16:04:14]MH_SAM_APDU [16:04:14]CAPDU: 80 0D 03 02 [16:04:14]Write to MH i2c: E2 08 00 3C 02 80 0D 03 02 00 00 00 00 B9 [16:04:14]Write i2c OK [16:04:14]MH_I2C_Read... [16:04:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:04:14]Read from MH i2c: E2 [16:04:14]MH_I2C_Read... [16:04:14]Read from MH i2c: E2 0B 00 [16:04:14]MH_I2C_Read... [16:04:14]Read from MH i2c: E2 0B 00 3C 02 00 DF AA BD 89 8A 25 D5 8C 90 00 99 [16:04:14]RAPDU: DF AA BD 89 8A 25 D5 8C 90 00 [16:04:14]wFMCommunicate OK [16:04:14]SAM_PROTO_SignData done [16:04:14]FM_MakeSignedData done [16:04:14]CreateOFDProtocolMessage [16:04:14]wFMCommunicate request_size=4 [16:04:14]MH_SAM_APDU [16:04:14]CAPDU: 80 11 00 00 [16:04:14]Write to MH i2c: E2 08 00 3D 02 80 11 00 00 00 00 00 00 B9 [16:04:14]Write i2c OK [16:04:14]MH_I2C_Read... [16:04:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:14]Read from MH i2c: E2 [16:04:14]MH_I2C_Read... [16:04:14]Read from MH i2c: E2 17 00 [16:04:14]MH_I2C_Read... [16:04:14]Read from MH i2c: E2 17 00 3D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 0D [16:04:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [16:04:14]wFMCommunicate OK [16:04:14]CreateOFDProtocolMessage done [16:04:14]OFDSenderStorePacket 103164 [16:04:14]StoreOFDPacket docnum=103164 [16:04:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 4A 99 07 01 D1 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 B6 17 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 41 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 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 4B 00 00 00 F4 03 04 00 FD 83 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 FC 92 01 00 35 04 06 00 88 04 3F A2 AD F7 DF AA BD 89 8A 25 D5 8C [16:04:14]CheckFolder [16:04:14]dirname=/storage/ofd_packets [16:04:14]CheckFolder done [16:04:14]ProducePacketName [16:04:14]name=ofd_packets/00103164 [16:04:14]NVStorageSaveData ofd_packets/00103164 [16:04:14]File name is /storage/ofd_packets/00103164 [16:04:14]Write 301 bytes [16:04:14]NVStorageSaveData done [16:04:14]OFDSenderStorePacket done [16:04:14]KKMCreateOFDPacket done [16:04:14]NVStorageSaveData kkm_last_timestamp [16:04:14]File name is /storage/kkm_last_timestamp [16:04:14]Write 4 bytes [16:04:14]NVStorageSaveData done [16:04:14]ExternCall_PrintAddStr [16:04:14]wPrintStart [16:04:14]Write to MH i2c: 01 00 00 3E 02 40 [16:04:14]Write i2c OK [16:04:14]MH_I2C_Read... [16:04:14]Read from MH i2c: 01 [16:04:14]MH_I2C_Read... [16:04:14]Read from MH i2c: 01 07 00 [16:04:14]MH_I2C_Read... [16:04:14]Read from MH i2c: 01 07 00 3E 02 00 00 00 00 00 FF 0F 55 [16:04:14]RasterBufferAndPrint [16:04:14]line Счет N : (1)160794 [16:04:14]line ИНН: 02508201610067 [16:04:14]line Контрольно-Кассовый Чек [16:04:14]line ПРОДАЖА [16:04:14]line ТРК (МРК, ГНК) : 7 [16:04:14]line Товар: 2710124130 [16:04:14]line Аи-92-К-5 [16:04:14]line 6.070 * 65.90 [16:04:14]line = 400.01 [16:04:14]line НДС 12% НСП 1% [16:04:14]line > о реализуемом товаре [16:04:14]line ОКРУГЛЕНИЕ: -0.01 [16:04:14]line ИТОГО: 400.00 [16:04:14]line Внесено: 400.00 [16:04:14]line СДАЧА: 0.00 [16:04:14]line НСП 1% : 3.54 [16:04:14]line НДС 12% : 42.48 [16:04:14]line Наличными: 400.00 [16:04:14]line Безнал.: 0.00 [16:04:14]line Место: АЗС № 38 "Партнер Нефть" [16:04:14]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [16:04:14]line СНО: Общий режим [16:04:14]line Чек 75 13.08.2024 16:04 [16:04:14]line Смена: 464 ФФД: 1.0 [16:04:14]line ЗНМ: 0300000126 [16:04:14]line РНМ: 0000000000092718 [16:04:14]line Версия ККМ: 001 [16:04:14]line ФМ: 0000000000875058 [16:04:14]line ФД: 103164 [16:04:14]line ФПД: 149551828872695 [16:04:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T160413&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103164&fm=149551828872695&tin=02508201610067®Number=0000000000092718&sum=40000 [16:04:14]written 0, free lines is 4095 [16:04:15]Write to MH i2c: 01 00 00 69 02 6B [16:04:15]Write i2c OK [16:04:15]MH_I2C_Read... [16:04:15]Read from MH i2c: 01 [16:04:15]MH_I2C_Read... [16:04:15]Read from MH i2c: 01 07 00 [16:04:15]MH_I2C_Read... [16:04:15]Read from MH i2c: 01 07 00 69 02 00 00 00 00 00 E8 0C 66 [16:04:15]RasterBufferAndPrint [16:04:15]line [16:04:15]line [16:04:15]line [16:04:15]line [16:04:15]line [16:04:15]written 0, free lines is 3310 [16:04:15]MH_Cut [16:04:15]Write to MH i2c: D1 01 00 70 02 01 44 [16:04:15]Write i2c OK [16:04:15]MH_I2C_Read... [16:04:15]Read from MH i2c: D1 [16:04:15]MH_I2C_Read... [16:04:15]Read from MH i2c: D1 01 00 [16:04:15]MH_I2C_Read... [16:04:15]Read from MH i2c: D1 01 00 70 02 00 43 [16:04:15]Write to MH i2c: 01 00 00 71 02 73 [16:04:15]Write i2c OK [16:04:15]MH_I2C_Read... [16:04:16]*** Cut start [16:04:16]*** Purtial cut [16:04:16]*** Stage 1: CUTSNS_PIN = 1 [16:04:16]Read from MH i2c: 01 [16:04:16]MH_I2C_Read... [16:04:16]*** Stop cut motor [16:04:16]*** Cut end [16:04:16]Read from MH i2c: 01 07 00 [16:04:16]MH_I2C_Read... [16:04:16]Read from MH i2c: 01 07 00 71 02 00 00 00 00 00 FF 0F 88 [16:04:16]process_action close_receipt done [16:04:16]requested_data is exist [16:04:16]produce_requested_data [16:04:16]requested_item fm.sn is exist - process it [16:04:16]wFMCommunicate request_size=4 [16:04:16]MH_SAM_APDU [16:04:16]CAPDU: 80 11 00 00 [16:04:16]Write to MH i2c: E2 08 00 72 02 80 11 00 00 00 00 00 00 EE [16:04:16]Write i2c OK [16:04:16]MH_I2C_Read... [16:04:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:16]Read from MH i2c: E2 [16:04:16]MH_I2C_Read... [16:04:16]Read from MH i2c: E2 17 00 [16:04:16]MH_I2C_Read... [16:04:16]Read from MH i2c: E2 17 00 72 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 42 [16:04:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [16:04:16]wFMCommunicate OK [16:04:16]requested_item fd.num is exist - process it [16:04:16]SAM_PROTO_GetFieldsCounters [16:04:16]wFMCommunicate request_size=4 [16:04:16]MH_SAM_APDU [16:04:16]CAPDU: 80 13 00 00 [16:04:16]Write to MH i2c: E2 08 00 73 02 80 13 00 00 00 00 00 00 F1 [16:04:16]Write i2c OK [16:04:16]MH_I2C_Read... [16:04:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:04:16]Read from MH i2c: E2 [16:04:16]MH_I2C_Read... [16:04:16]Read from MH i2c: E2 62 00 [16:04:16]MH_I2C_Read... [16:04:16]Read from MH i2c: E2 62 00 73 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 FC 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [16:04:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 FC 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:04:16]wFMCommunicate OK [16:04:16]SAM_PROTO_GetFieldsCounters done [16:04:16]requested_item shift.num is exist - process it [16:04:16]requested_item shift.opened is exist - process it [16:04:16]req_shift_opened [16:04:16]FM_GetShiftState [16:04:16]SAM_PROTO_GetShiftState [16:04:16]wFMCommunicate request_size=4 [16:04:16]MH_SAM_APDU [16:04:16]CAPDU: 80 13 01 00 [16:04:16]Write to MH i2c: E2 08 00 74 02 80 13 01 00 00 00 00 00 F3 [16:04:16]Write i2c OK [16:04:16]MH_I2C_Read... [16:04:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:16]Read from MH i2c: E2 [16:04:16]MH_I2C_Read... [16:04:16]Read from MH i2c: E2 0E 00 [16:04:16]MH_I2C_Read... [16:04:16]Read from MH i2c: E2 0E 00 74 02 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 11 [16:04:16]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [16:04:16]wFMCommunicate OK [16:04:16]SAM_PROTO_GetShiftState done [16:04:16]FM_GetShiftState done [16:04:16]req_shift_opened done [16:04:16]requested_item shift.open_date is exist - process it [16:04:16]req_shift_open_date [16:04:16]req_shift_open_date done [16:04:16]produce_requested_data done [16:04:16]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103164,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [16:04:16]process_action_free close_receipt [16:04:16]json_value_free [16:04:16]json_value_free done [16:04:16]process_json_proto returns [16:04:16]Send response to host [16:04:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103164,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [16:04:16]free response buf [16:04:16]execute_script done [16:04:16]execute_script returns [16:04:16]free content buf [16:04:16]Sock 9.Close socket [16:04:16]Sock 9.Thread stoped [16:05:32]ConnectInit Can't connect to host [16:05:32]CommunicateWithHost connect error [16:05:32]CommunicateWithHost err = -1 [16:05:32]OFD Sender: Server communicate error [16:05:32]OFD Sender: Processing packet 103163 [packets to send 70, broken 68] [16:05:32]ProducePacketName [16:05:32]name=ofd_packets/00103163 [16:05:32]OFD Sender: To server: pG, [16:05:32]CommunicateWithHost lk.salyk.kg:30040 [16:05:32]ConnectInit lk.salyk.kg [16:05:32]Connected sock=9 [16: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 35 30 35 38 0F 01 00 00 9D 2B 07 01 CE 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 D8 0E 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 D2 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 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 4A 00 00 00 F4 03 04 00 C9 83 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 FB 92 01 00 35 04 06 00 A5 94 62 81 66 F1 39 0E ED A0 19 55 24 F0 [16:05:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 40 B2 47 00 55 A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 FB 92 01 00 F4 03 04 00 BD 2A BB 66 B6 04 01 00 00 9E FF 60 5D A5 D1 0C 42 [16:05:32]CommunicateWithHost err = 0 [16:05:32]CheckOFDResponse [16:05:32]1017 (14) - 77093643461234 [16:05:32]1041 (16) - 0000000000875058 [16:05:32]1040 (4) - 103163 [16:05:32]1012 (4) - 13.08.2024 09:43 [16:05:32]1206 (1) - 0 [16:05:32]OFD Sender: Remove packet 103163 [16:05:32]ProducePacketName [16:05:32]name=ofd_packets/00103163 [16:05:32]NVStorageDeleteData [16:05:33]OFD Sender: Processing packet 103164 [packets to send 69, broken 68] [16:05:33]ProducePacketName [16:05:33]name=ofd_packets/00103164 [16:05:33]OFD Sender: To server: pG, [16:05:33]CommunicateWithHost lk.salyk.kg:30040 [16:05:33]ConnectInit lk.salyk.kg [16:05:33]Connected sock=9 [16: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 35 30 35 38 0F 01 00 00 4A 99 07 01 D1 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 B6 17 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 41 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 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 4B 00 00 00 F4 03 04 00 FD 83 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 FC 92 01 00 35 04 06 00 88 04 3F A2 AD F7 DF AA BD 89 8A 25 D5 8C [16:05:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 F5 52 47 00 15 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 35 30 35 38 10 04 04 00 FC 92 01 00 F4 03 04 00 BE 2A BB 66 B6 04 01 00 00 E5 B0 B9 5F 3D 28 B7 17 [16:05:33]CommunicateWithHost err = 0 [16:05:33]CheckOFDResponse [16:05:33]1017 (14) - 77093643461234 [16:05:33]1041 (16) - 0000000000875058 [16:05:33]1040 (4) - 103164 [16:05:33]1012 (4) - 13.08.2024 09:43 [16:05:33]1206 (1) - 0 [16:05:33]OFD Sender: Remove packet 103164 [16:05:33]ProducePacketName [16:05:33]name=ofd_packets/00103164 [16:05:33]NVStorageDeleteData [16:05:33]OFD Sender: No OFD packet to send [16:05:38]OFD Sender: No OFD packet to send [16:05:43]OFD Sender: No OFD packet to send [16:05:48]OFD Sender: No OFD packet to send [16:05:53]OFD Sender: No OFD packet to send [16:05:58]OFD Sender: No OFD packet to send [16:06:03]OFD Sender: No OFD packet to send [16:06:08]OFD Sender: No OFD packet to send [16:06:13]OFD Sender: No OFD packet to send [16:06:18]OFD Sender: No OFD packet to send [16:06:23]OFD Sender: No OFD packet to send [16:06:28]OFD Sender: No OFD packet to send [16:06:33]OFD Sender: No OFD packet to send [16:06:38]OFD Sender: No OFD packet to send [16:06:43]OFD Sender: No OFD packet to send [16:06:48]OFD Sender: No OFD packet to send [16:06:53]OFD Sender: No OFD packet to send [16:06:58]OFD Sender: No OFD packet to send [16:07:03]OFD Sender: No OFD packet to send [16:07:08]OFD Sender: No OFD packet to send [16:07:13]OFD Sender: No OFD packet to send [16:07:18]OFD Sender: No OFD packet to send [16:07:23]OFD Sender: No OFD packet to send [16:07:28]OFD Sender: No OFD packet to send [16:07:33]OFD Sender: No OFD packet to send [16:07:38]OFD Sender: No OFD packet to send [16:07:43]OFD Sender: No OFD packet to send [16:07:48]OFD Sender: No OFD packet to send [16:07:54]OFD Sender: No OFD packet to send [16:07:59]OFD Sender: No OFD packet to send [16:08:04]OFD Sender: No OFD packet to send [16:08:09]OFD Sender: No OFD packet to send [16:08:14]OFD Sender: No OFD packet to send [16:08:19]OFD Sender: No OFD packet to send [16:08:24]OFD Sender: No OFD packet to send [16:08:29]OFD Sender: No OFD packet to send [16:08:34]OFD Sender: No OFD packet to send [16:08:39]OFD Sender: No OFD packet to send [16:08:44]OFD Sender: No OFD packet to send [16:08:49]OFD Sender: No OFD packet to send [16:08:54]OFD Sender: No OFD packet to send [16:08:59]OFD Sender: No OFD packet to send [16:09:04]OFD Sender: No OFD packet to send [16:09:09]OFD Sender: No OFD packet to send [16:09:14]OFD Sender: No OFD packet to send [16:09:19]OFD Sender: No OFD packet to send [16:09:24]OFD Sender: No OFD packet to send [16:09:29]OFD Sender: No OFD packet to send [16:09:34]OFD Sender: No OFD packet to send [16:09:39]OFD Sender: No OFD packet to send [16:09:44]OFD Sender: No OFD packet to send [16:09:49]OFD Sender: No OFD packet to send [16:09:54]OFD Sender: No OFD packet to send [16:09:59]OFD Sender: No OFD packet to send [16:10:04]OFD Sender: No OFD packet to send [16:10:09]OFD Sender: No OFD packet to send [16:10:14]OFD Sender: No OFD packet to send [16:10:19]OFD Sender: No OFD packet to send [16:10:24]OFD Sender: No OFD packet to send [16:10:29]OFD Sender: No OFD packet to send [16:10:34]OFD Sender: No OFD packet to send [16:10:39]OFD Sender: No OFD packet to send [16:10:44]OFD Sender: No OFD packet to send [16:10:49]OFD Sender: No OFD packet to send [16:10:54]OFD Sender: No OFD packet to send [16:10:59]OFD Sender: No OFD packet to send [16:11:04]OFD Sender: No OFD packet to send [16:11:09]OFD Sender: No OFD packet to send [16:11:14]OFD Sender: No OFD packet to send [16:11:19]OFD Sender: No OFD packet to send [16:11:24]OFD Sender: No OFD packet to send [16:11:29]OFD Sender: No OFD packet to send [16:11:34]OFD Sender: No OFD packet to send [16:11:38]accept exits with 7 [16:11:38]New connection [16:11:38]New thread 3067260260 created [16:11:38]Thread 3067116900 joined [16:11:38]Waiting for new connection... [16:11:38] Sock 7.Parse request [16:11:38]Sock 7.Check first char [16:11:38]Sock 7.First char is OK [16:11:38]request: POST /json_proto HTTP/1.0 [16:11:38]Method: POST [16:11:38]URL: /json_proto [16:11:38]Method is POST - this is cgi request [16:11:38]url: /json_proto [16:11:38]query_string will be loaded in cgi processing [16:11:38]execute_cgi json_proto POST (null) [16:11:38]execute_cgi path=json_proto method=POST [16:11:38]POST find Content-Length [16:11:38]Host: 172.17.58.3:8080 [16:11:38]Content-Length: 666 [16:11:38]Content-Type: application/json [16:11:38] [16:11:38]POST finish read [16:11:38]Found Content-Length = 666 [16:11:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160795", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 66.90, "quantity" : 0.914, "sum" : 61.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 61.00, "payments": [ { "type": 0, "sum" : 61.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:38]execute_script... [16:11:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160795", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 66.90, "quantity" : 0.914, "sum" : 61.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 61.00, "payments": [ { "type": 0, "sum" : 61.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:38]POST & json_proto [16:11:38]process_json_proto [16:11:38]json parsed OK: [16:11:38]protocol is kg_v1.0 [16:11:38]action value=close_receipt [16:11:38]process_action close_receipt [16:11:38]cmd_close_receipt [16:11:38]MH_GetDate [16:11:38]Write to MH i2c: F0 00 00 75 02 66 [16:11:38]Write i2c OK [16:11:38]MH_I2C_Read... [16:11:38]Read from MH i2c: F0 [16:11:38]MH_I2C_Read... [16:11:38]Read from MH i2c: F0 09 00 [16:11:38]MH_I2C_Read... [16:11:38]Read from MH i2c: F0 09 00 75 02 00 BA 85 BB 66 DC E4 6D 64 60 [16:11:38]GetLastDocTimeStamp 1723565053 [16:11:38]current date 1723565498 [16:11:38]FM_GetShiftState [16:11:38]SAM_PROTO_GetShiftState [16:11:38]wFMCommunicate request_size=4 [16:11:38]MH_SAM_APDU [16:11:38]CAPDU: 80 13 01 00 [16:11:38]Write to MH i2c: E2 08 00 76 02 80 13 01 00 00 00 00 00 F5 [16:11:38]Write i2c OK [16:11:38]MH_I2C_Read... [16:11:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:38]Read from MH i2c: E2 [16:11:38]MH_I2C_Read... [16:11:38]Read from MH i2c: E2 0E 00 [16:11:38]MH_I2C_Read... [16:11:38]Read from MH i2c: E2 0E 00 76 02 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 13 [16:11:38]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [16:11:38]wFMCommunicate OK [16:11:38]SAM_PROTO_GetShiftState done [16:11:38]FM_GetShiftState done [16:11:38]opened in 1723506770 [16:11:38]opened+sec_in_day 1723593170 [16:11:38]quantity*price = 6114 [16:11:38]sum+1 = 6116 [16:11:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 61.00 Внесено: 500.00 СДАЧА: 439.00 НСП 1% : 0.54 НДС 12% : 6.49 Наличными: 61.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 76 13.08.2024 16:11 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103165 ФПД: 121070440771562 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T161138&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103165&fm=121070440771562&tin=02508201610067®Number=0000000000092718&sum=6100 [16:11:39]StoreToDocumentArchive [16:11:39]shift 464 fd 103165 [16:11:39]save to /storage/0464/doc_00103165 [16:11:39]save last doc name /storage/0464/doc_00103165 to /storage/kkm_last_doc_name [16:11:39]save OK [16:11:39]Clear old archive folders... [16:11:39]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:11:39]tlvbuf is 001F0BF0 [16:11:39]SAM_PROTO_ClearQueue [16:11:39]wFMCommunicate request_size=4 [16:11:39]MH_SAM_APDU [16:11:39]CAPDU: 80 09 00 00 [16:11:39]Write to MH i2c: E2 08 00 83 02 80 09 00 00 00 00 00 00 F7 [16:11:39]Write i2c OK [16:11:39]MH_I2C_Read... [16:11:39]OFD Sender: No OFD packet to send [16:11:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:11:39]Read from MH i2c: E2 [16:11:39]MH_I2C_Read... [16:11:39]Read from MH i2c: E2 03 00 [16:11:39]MH_I2C_Read... [16:11:39]Read from MH i2c: E2 03 00 83 02 00 90 00 F9 [16:11:39]RAPDU: 90 00 [16:11:39]wFMCommunicate OK [16:11:39]SAM_PROTO_ClearQueue done [16:11:39]KKMCreateOFDPacket [16:11:39]OFDProtocolAddRootSTLVToBuf [16:11:39]FM_MakeSignedData [16:11:39]FM_MakeSignedData [16:11:39]SAM_PROTO_SignData [16:11:39]wFMCommunicate request_size=4 [16:11:39]MH_SAM_APDU [16:11:39]CAPDU: 80 0D 01 02 [16:11:39]Write to MH i2c: E2 08 00 84 02 80 0D 01 02 00 00 00 00 FF [16:11:39]Write i2c OK [16:11:39]MH_I2C_Read... [16:11:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:11:39]Read from MH i2c: E2 [16:11:39]MH_I2C_Read... [16:11:39]Read from MH i2c: E2 03 00 [16:11:39]MH_I2C_Read... [16:11:39]Read from MH i2c: E2 03 00 84 02 00 90 00 FA [16:11:39]RAPDU: 90 00 [16:11:39]wFMCommunicate OK [16:11:39]wFMCommunicate request_size=255 [16:11:39]MH_SAM_APDU [16:11:39]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 03 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E3 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 02 00 00 00 00 07 04 06 00 D4 17 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 BA 85 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 FD 92 01 00 35 04 06 00 [16:11:39]Write to MH i2c: E2 02 01 85 02 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 03 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E3 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 02 00 00 00 00 07 04 06 00 D4 17 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 BA 85 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 FD 92 01 00 35 04 06 00 00 00 18 [16:11:39]Write i2c OK [16:11:39]MH_I2C_Read... [16:11:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:39]Read from MH i2c: E2 [16:11:39]MH_I2C_Read... [16:11:39]Read from MH i2c: E2 03 00 [16:11:39]MH_I2C_Read... [16:11:39]Read from MH i2c: E2 03 00 85 02 00 90 00 FB [16:11:39]RAPDU: 90 00 [16:11:39]wFMCommunicate OK [16:11:39]wFMCommunicate request_size=11 [16:11:39]MH_SAM_APDU [16:11:39]CAPDU: 80 0D 02 02 06 6E 1C E8 9D 6F EA [16:11:39]Write to MH i2c: E2 0E 00 86 02 80 0D 02 02 06 00 6E 1C E8 9D 6F EA 00 00 76 [16:11:39]Write i2c OK [16:11:39]MH_I2C_Read... [16:11:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:39]Read from MH i2c: E2 [16:11:39]MH_I2C_Read... [16:11:39]Read from MH i2c: E2 03 00 [16:11:39]MH_I2C_Read... [16:11:39]Read from MH i2c: E2 03 00 86 02 00 90 00 FC [16:11:39]RAPDU: 90 00 [16:11:39]wFMCommunicate OK [16:11:39]wFMCommunicate request_size=4 [16:11:39]MH_SAM_APDU [16:11:39]CAPDU: 80 0D 03 02 [16:11:39]Write to MH i2c: E2 08 00 87 02 80 0D 03 02 00 00 00 00 04 [16:11:39]Write i2c OK [16:11:39]MH_I2C_Read... [16:11:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:11:39]Read from MH i2c: E2 [16:11:39]MH_I2C_Read... [16:11:39]Read from MH i2c: E2 0B 00 [16:11:39]MH_I2C_Read... [16:11:39]Read from MH i2c: E2 0B 00 87 02 00 BB D4 72 2C 0D 1A 5D 9D 90 00 53 [16:11:39]RAPDU: BB D4 72 2C 0D 1A 5D 9D 90 00 [16:11:39]wFMCommunicate OK [16:11:39]SAM_PROTO_SignData done [16:11:39]FM_MakeSignedData done [16:11:39]CreateOFDProtocolMessage [16:11:39]wFMCommunicate request_size=4 [16:11:39]MH_SAM_APDU [16:11:39]CAPDU: 80 11 00 00 [16:11:39]Write to MH i2c: E2 08 00 88 02 80 11 00 00 00 00 00 00 04 [16:11:39]Write i2c OK [16:11:39]MH_I2C_Read... [16:11:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:39]Read from MH i2c: E2 [16:11:39]MH_I2C_Read... [16:11:39]Read from MH i2c: E2 17 00 [16:11:39]MH_I2C_Read... [16:11:39]Read from MH i2c: E2 17 00 88 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 58 [16:11:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [16:11:39]wFMCommunicate OK [16:11:39]CreateOFDProtocolMessage done [16:11:39]OFDSenderStorePacket 103165 [16:11:39]StoreOFDPacket docnum=103165 [16:11:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 01 00 00 F9 E2 08 01 38 9E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 03 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E3 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 02 00 00 00 00 07 04 06 00 D4 17 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 BA 85 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 FD 92 01 00 35 04 06 00 6E 1C E8 9D 6F EA BB D4 72 2C 0D 1A 5D 9D [16:11:39]CheckFolder [16:11:39]dirname=/storage/ofd_packets [16:11:39]CheckFolder done [16:11:39]ProducePacketName [16:11:39]name=ofd_packets/00103165 [16:11:39]NVStorageSaveData ofd_packets/00103165 [16:11:39]File name is /storage/ofd_packets/00103165 [16:11:39]Write 302 bytes [16:11:39]NVStorageSaveData done [16:11:39]OFDSenderStorePacket done [16:11:39]KKMCreateOFDPacket done [16:11:39]NVStorageSaveData kkm_last_timestamp [16:11:39]File name is /storage/kkm_last_timestamp [16:11:39]Write 4 bytes [16:11:39]NVStorageSaveData done [16:11:39]ExternCall_PrintAddStr [16:11:39]wPrintStart [16:11:39]Write to MH i2c: 01 00 00 89 02 8B [16:11:39]Write i2c OK [16:11:39]MH_I2C_Read... [16:11:39]Read from MH i2c: 01 [16:11:39]MH_I2C_Read... [16:11:39]Read from MH i2c: 01 07 00 [16:11:39]MH_I2C_Read... [16:11:39]Read from MH i2c: 01 07 00 89 02 00 00 00 00 00 FF 0F A0 [16:11:39]RasterBufferAndPrint [16:11:39]line Счет N : (1)160795 [16:11:39]line ИНН: 02508201610067 [16:11:39]line Контрольно-Кассовый Чек [16:11:39]line ПРОДАЖА [16:11:39]line ТРК (МРК, ГНК) : 6 [16:11:39]line Товар: 2710124130 [16:11:39]line SUPER 92-К-5 [16:11:39]line 0.914 * 66.90 [16:11:39]line = 61.15 [16:11:39]line НДС 12% НСП 1% [16:11:39]line > о реализуемом товаре [16:11:39]line ОКРУГЛЕНИЕ: -0.15 [16:11:39]line ИТОГО: 61.00 [16:11:39]line Внесено: 500.00 [16:11:39]line СДАЧА: 439.00 [16:11:39]line НСП 1% : 0.54 [16:11:39]line НДС 12% : 6.49 [16:11:39]line Наличными: 61.00 [16:11:39]line Безнал.: 0.00 [16:11:39]line Место: АЗС № 38 "Партнер Нефть" [16:11:39]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [16:11:39]line СНО: Общий режим [16:11:39]line Чек 76 13.08.2024 16:11 [16:11:39]line Смена: 464 ФФД: 1.0 [16:11:39]line ЗНМ: 0300000126 [16:11:39]line РНМ: 0000000000092718 [16:11:39]line Версия ККМ: 001 [16:11:39]line ФМ: 0000000000875058 [16:11:39]line ФД: 103165 [16:11:39]line ФПД: 121070440771562 [16:11:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T161138&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103165&fm=121070440771562&tin=02508201610067®Number=0000000000092718&sum=6100 [16:11:40]OFD Sender: Processing packet 103165 [packets to send 69, broken 68] [16:11:40]ProducePacketName [16:11:40]name=ofd_packets/00103165 [16:11:40]OFD Sender: To server: pG, [16:11:40]CommunicateWithHost lk.salyk.kg:30040 [16:11:40]ConnectInit lk.salyk.kg [16:11:40]written 0, free lines is 4095 [16:11:40]Connected sock=10 [16:11:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 01 00 00 F9 E2 08 01 38 9E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 03 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E3 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 02 00 00 00 00 07 04 06 00 D4 17 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 BA 85 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 FD 92 01 00 35 04 06 00 6E 1C E8 9D 6F EA BB D4 72 2C 0D 1A 5D 9D [16:11:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 41 F4 47 00 2B 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 35 30 35 38 10 04 04 00 FD 92 01 00 F4 03 04 00 2D 2C BB 66 B6 04 01 00 00 E1 C4 59 C0 03 E6 9F 21 [16:11:40]CommunicateWithHost err = 0 [16:11:40]CheckOFDResponse [16:11:40]1017 (14) - 77093643461234 [16:11:40]1041 (16) - 0000000000875058 [16:11:40]1040 (4) - 103165 [16:11:40]1012 (4) - 13.08.2024 09:49 [16:11:40]1206 (1) - 0 [16:11:40]OFD Sender: Remove packet 103165 [16:11:40]ProducePacketName [16:11:40]name=ofd_packets/00103165 [16:11:40]NVStorageDeleteData [16:11:40]Write to MH i2c: 01 00 00 B4 02 B6 [16:11:40]Write i2c OK [16:11:40]MH_I2C_Read... [16:11:40]Read from MH i2c: 01 [16:11:40]MH_I2C_Read... [16:11:40]Read from MH i2c: 01 07 00 [16:11:40]MH_I2C_Read... [16:11:40]Read from MH i2c: 01 07 00 B4 02 00 00 00 00 00 F2 0C BB [16:11:40]RasterBufferAndPrint [16:11:40]line [16:11:40]line [16:11:40]line [16:11:40]line [16:11:40]line [16:11:40]written 0, free lines is 3319 [16:11:40]MH_Cut [16:11:40]Write to MH i2c: D1 01 00 BB 02 01 8F [16:11:40]Write i2c OK [16:11:40]MH_I2C_Read... [16:11:40]Read from MH i2c: D1 [16:11:40]MH_I2C_Read... [16:11:40]Read from MH i2c: D1 01 00 [16:11:40]MH_I2C_Read... [16:11:40]Read from MH i2c: D1 01 00 BB 02 00 8E [16:11:40]Write to MH i2c: 01 00 00 BC 02 BE [16:11:40]Write i2c OK [16:11:40]MH_I2C_Read... [16:11:40]OFD Sender: No OFD packet to send [16:11:41]*** Cut start [16:11:41]*** Purtial cut [16:11:41]*** CUTSNS_PIN = 0 [16:11:41]*** Stage 1: CUTSNS_PIN = 1 [16:11:43]Read from MH i2c: 01 [16:11:43]MH_I2C_Read... [16:11:43]*** Stop cut motor [16:11:43]*** Cut end [16:11:43]Read from MH i2c: 01 07 00 [16:11:43]MH_I2C_Read... [16:11:43]Read from MH i2c: 01 07 00 BC 02 00 00 00 00 00 FF 0F D3 [16:11:43]process_action close_receipt done [16:11:43]requested_data is exist [16:11:43]produce_requested_data [16:11:43]requested_item fm.sn is exist - process it [16:11:43]wFMCommunicate request_size=4 [16:11:43]MH_SAM_APDU [16:11:43]CAPDU: 80 11 00 00 [16:11:43]Write to MH i2c: E2 08 00 BD 02 80 11 00 00 00 00 00 00 39 [16:11:43]Write i2c OK [16:11:43]MH_I2C_Read... [16:11:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:43]Read from MH i2c: E2 [16:11:43]MH_I2C_Read... [16:11:43]Read from MH i2c: E2 17 00 [16:11:43]MH_I2C_Read... [16:11:43]Read from MH i2c: E2 17 00 BD 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 8D [16:11:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [16:11:43]wFMCommunicate OK [16:11:43]requested_item fd.num is exist - process it [16:11:43]SAM_PROTO_GetFieldsCounters [16:11:43]wFMCommunicate request_size=4 [16:11:43]MH_SAM_APDU [16:11:43]CAPDU: 80 13 00 00 [16:11:43]Write to MH i2c: E2 08 00 BE 02 80 13 00 00 00 00 00 00 3C [16:11:43]Write i2c OK [16:11:43]MH_I2C_Read... [16:11:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:11:43]Read from MH i2c: E2 [16:11:43]MH_I2C_Read... [16:11:43]Read from MH i2c: E2 62 00 [16:11:43]MH_I2C_Read... [16:11:43]Read from MH i2c: E2 62 00 BE 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 FD 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [16:11:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 FD 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:11:43]wFMCommunicate OK [16:11:43]SAM_PROTO_GetFieldsCounters done [16:11:43]requested_item shift.num is exist - process it [16:11:43]requested_item shift.opened is exist - process it [16:11:43]req_shift_opened [16:11:43]FM_GetShiftState [16:11:43]SAM_PROTO_GetShiftState [16:11:43]wFMCommunicate request_size=4 [16:11:43]MH_SAM_APDU [16:11:43]CAPDU: 80 13 01 00 [16:11:43]Write to MH i2c: E2 08 00 BF 02 80 13 01 00 00 00 00 00 3E [16:11:43]Write i2c OK [16:11:43]MH_I2C_Read... [16:11:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:43]Read from MH i2c: E2 [16:11:43]MH_I2C_Read... [16:11:43]Read from MH i2c: E2 0E 00 [16:11:43]MH_I2C_Read... [16:11:43]Read from MH i2c: E2 0E 00 BF 02 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 5C [16:11:43]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [16:11:43]wFMCommunicate OK [16:11:43]SAM_PROTO_GetShiftState done [16:11:43]FM_GetShiftState done [16:11:43]req_shift_opened done [16:11:43]requested_item shift.open_date is exist - process it [16:11:43]req_shift_open_date [16:11:43]req_shift_open_date done [16:11:43]produce_requested_data done [16:11:43]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103165,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [16:11:43]process_action_free close_receipt [16:11:43]json_value_free [16:11:43]json_value_free done [16:11:43]process_json_proto returns [16:11:43]Send response to host [16:11:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103165,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [16:11:43]free response buf [16:11:43]execute_script done [16:11:43]execute_script returns [16:11:43]free content buf [16:11:43]Sock 7.Close socket [16:11:43]Sock 7.Thread stoped [16:11:45]OFD Sender: No OFD packet to send [16:11:50]OFD Sender: No OFD packet to send [16:11:55]OFD Sender: No OFD packet to send [16:12:00]OFD Sender: No OFD packet to send [16:12:05]OFD Sender: No OFD packet to send [16:12:10]OFD Sender: No OFD packet to send [16:12:15]OFD Sender: No OFD packet to send [16:12:20]OFD Sender: No OFD packet to send [16:12:25]OFD Sender: No OFD packet to send [16:12:30]OFD Sender: No OFD packet to send [16:12:35]OFD Sender: No OFD packet to send [16:12:40]OFD Sender: No OFD packet to send [16:12:45]OFD Sender: No OFD packet to send [16:12:50]OFD Sender: No OFD packet to send [16:12:55]OFD Sender: No OFD packet to send [16:13:00]OFD Sender: No OFD packet to send [16:13:05]OFD Sender: No OFD packet to send [16:13:10]OFD Sender: No OFD packet to send [16:13:15]OFD Sender: No OFD packet to send [16:13:20]OFD Sender: No OFD packet to send [16:13:25]OFD Sender: No OFD packet to send [16:13:30]OFD Sender: No OFD packet to send [16:13:35]OFD Sender: No OFD packet to send [16:13:40]OFD Sender: No OFD packet to send [16:13:45]OFD Sender: No OFD packet to send [16:13:50]OFD Sender: No OFD packet to send [16:13:55]OFD Sender: No OFD packet to send [16:14:00]OFD Sender: No OFD packet to send [16:14:06]OFD Sender: No OFD packet to send [16:14:11]OFD Sender: No OFD packet to send [16:14:16]OFD Sender: No OFD packet to send [16:14:21]OFD Sender: No OFD packet to send [16:14:26]OFD Sender: No OFD packet to send [16:14:31]OFD Sender: No OFD packet to send [16:14:36]OFD Sender: No OFD packet to send [16:14:41]OFD Sender: No OFD packet to send [16:14:46]OFD Sender: No OFD packet to send [16:14:51]OFD Sender: No OFD packet to send [16:14:56]OFD Sender: No OFD packet to send [16:15:01]OFD Sender: No OFD packet to send [16:15:06]OFD Sender: No OFD packet to send [16:15:11]OFD Sender: No OFD packet to send [16:15:16]OFD Sender: No OFD packet to send [16:15:21]OFD Sender: No OFD packet to send [16:15:26]OFD Sender: No OFD packet to send [16:15:31]OFD Sender: No OFD packet to send [16:15:36]OFD Sender: No OFD packet to send [16:15:41]OFD Sender: No OFD packet to send [16:15:46]OFD Sender: No OFD packet to send [16:15:51]OFD Sender: No OFD packet to send [16:15:56]OFD Sender: No OFD packet to send [16:16:01]OFD Sender: No OFD packet to send [16:16:06]OFD Sender: No OFD packet to send [16:16:11]OFD Sender: No OFD packet to send [16:16:16]OFD Sender: No OFD packet to send [16:16:21]OFD Sender: No OFD packet to send [16:16:26]OFD Sender: No OFD packet to send [16:16:31]OFD Sender: No OFD packet to send [16:16:36]OFD Sender: No OFD packet to send [16:16:41]OFD Sender: No OFD packet to send [16:16:46]OFD Sender: No OFD packet to send [16:16:51]OFD Sender: No OFD packet to send [16:16:56]OFD Sender: No OFD packet to send [16:17:01]OFD Sender: No OFD packet to send [16:17:06]OFD Sender: No OFD packet to send [16:17:11]OFD Sender: No OFD packet to send [16:17:16]OFD Sender: No OFD packet to send [16:17:21]OFD Sender: No OFD packet to send [16:17:26]OFD Sender: No OFD packet to send [16:17:31]OFD Sender: No OFD packet to send [16:17:36]OFD Sender: No OFD packet to send [16:17:41]OFD Sender: No OFD packet to send [16:17:46]OFD Sender: No OFD packet to send [16:17:51]OFD Sender: No OFD packet to send [16:17:56]OFD Sender: No OFD packet to send [16:18:01]OFD Sender: No OFD packet to send [16:18:06]OFD Sender: No OFD packet to send [16:18:11]OFD Sender: No OFD packet to send [16:18:16]OFD Sender: No OFD packet to send [16:18:21]OFD Sender: No OFD packet to send [16:18:26]OFD Sender: No OFD packet to send [16:18:31]OFD Sender: No OFD packet to send [16:18:36]OFD Sender: No OFD packet to send [16:18:41]OFD Sender: No OFD packet to send [16:18:46]OFD Sender: No OFD packet to send [16:18:51]OFD Sender: No OFD packet to send [16:18:56]OFD Sender: No OFD packet to send [16:19:01]OFD Sender: No OFD packet to send [16:19:06]OFD Sender: No OFD packet to send [16:19:11]OFD Sender: No OFD packet to send [16:19:16]OFD Sender: No OFD packet to send [16:19:21]OFD Sender: No OFD packet to send [16:19:26]OFD Sender: No OFD packet to send [16:19:31]accept exits with 9 [16:19:31]New connection [16:19:31]New thread 3067116900 created [16:19:31]Thread 3067260260 joined [16:19:31]Waiting for new connection... [16:19:31] Sock 9.Parse request [16:19:31]Sock 9.Check first char [16:19:31]Sock 9.First char is OK [16:19:31]request: POST /json_proto HTTP/1.0 [16:19:31]Method: POST [16:19:31]URL: /json_proto [16:19:31]Method is POST - this is cgi request [16:19:31]url: /json_proto [16:19:31]query_string will be loaded in cgi processing [16:19:31]execute_cgi json_proto POST (null) [16:19:31]execute_cgi path=json_proto method=POST [16:19:31]POST find Content-Length [16:19:31]Host: 172.17.58.3:8080 [16:19:31]Content-Length: 679 [16:19:31]Content-Type: application/json [16:19:31] [16:19:31]POST finish read [16:19:31]Found Content-Length = 679 [16:19:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160798", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 27.110, "sum" : 2000.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:31]execute_script... [16:19: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)160798", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 27.110, "sum" : 2000.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:31]POST & json_proto [16:19:31]process_json_proto [16:19:31]json parsed OK: [16:19:31]protocol is kg_v1.0 [16:19:31]action value=close_receipt [16:19:31]process_action close_receipt [16:19:31]cmd_close_receipt [16:19:31]MH_GetDate [16:19:31]Write to MH i2c: F0 00 00 C0 02 B1 [16:19:31]Write i2c OK [16:19:31]MH_I2C_Read... [16:19:31]Read from MH i2c: F0 [16:19:31]MH_I2C_Read... [16:19:31]Read from MH i2c: F0 09 00 [16:19:31]MH_I2C_Read... [16:19:31]Read from MH i2c: F0 09 00 C0 02 00 93 87 BB 66 DC E4 6D 64 86 [16:19:31]GetLastDocTimeStamp 1723565498 [16:19:31]current date 1723565971 [16:19:31]FM_GetShiftState [16:19:31]SAM_PROTO_GetShiftState [16:19:31]wFMCommunicate request_size=4 [16:19:31]MH_SAM_APDU [16:19:31]CAPDU: 80 13 01 00 [16:19:31]Write to MH i2c: E2 08 00 C1 02 80 13 01 00 00 00 00 00 40 [16:19:31]Write i2c OK [16:19:31]MH_I2C_Read... [16:19:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:31]Read from MH i2c: E2 [16:19:31]MH_I2C_Read... [16:19:31]Read from MH i2c: E2 0E 00 [16:19:31]MH_I2C_Read... [16:19:31]Read from MH i2c: E2 0E 00 C1 02 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 5E [16:19:31]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [16:19:31]wFMCommunicate OK [16:19:31]SAM_PROTO_GetShiftState done [16:19:31]FM_GetShiftState done [16:19:31]opened in 1723506770 [16:19:31]opened+sec_in_day 1723593170 [16:19:31]quantity*price = 200071 [16:19:31]sum+1 = 200073 [16:19:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.72 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.47 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 77 13.08.2024 16:19 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103166 ФПД: 78858875837569 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T161931&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103166&fm=78858875837569&tin=02508201610067®Number=0000000000092718&sum=200000 [16:19:32]StoreToDocumentArchive [16:19:32]shift 464 fd 103166 [16:19:32]save to /storage/0464/doc_00103166 [16:19:32]save last doc name /storage/0464/doc_00103166 to /storage/kkm_last_doc_name [16:19:32]save OK [16:19:32]Clear old archive folders... [16:19:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:19:32]tlvbuf is 0024ABD0 [16:19:32]SAM_PROTO_ClearQueue [16:19:32]wFMCommunicate request_size=4 [16:19:32]MH_SAM_APDU [16:19:32]CAPDU: 80 09 00 00 [16:19:32]Write to MH i2c: E2 08 00 CE 02 80 09 00 00 00 00 00 00 42 [16:19:32]Write i2c OK [16:19:32]MH_I2C_Read... [16:19:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:19:32]Read from MH i2c: E2 [16:19:32]MH_I2C_Read... [16:19:32]Read from MH i2c: E2 03 00 [16:19:32]MH_I2C_Read... [16:19:32]Read from MH i2c: E2 03 00 CE 02 00 90 00 44 [16:19:32]RAPDU: 90 00 [16:19:32]wFMCommunicate OK [16:19:32]SAM_PROTO_ClearQueue done [16:19:32]KKMCreateOFDPacket [16:19:32]OFDProtocolAddRootSTLVToBuf [16:19:32]FM_MakeSignedData [16:19:32]FM_MakeSignedData [16:19:32]SAM_PROTO_SignData [16:19:32]wFMCommunicate request_size=4 [16:19:32]MH_SAM_APDU [16:19:32]CAPDU: 80 0D 01 02 [16:19:32]Write to MH i2c: E2 08 00 CF 02 80 0D 01 02 00 00 00 00 4A [16:19:32]Write i2c OK [16:19:32]MH_I2C_Read... [16:19:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:19:32]Read from MH i2c: E2 [16:19:32]MH_I2C_Read... [16:19:32]Read from MH i2c: E2 03 00 [16:19:32]MH_I2C_Read... [16:19:32]Read from MH i2c: E2 03 00 CF 02 00 90 00 45 [16:19:32]RAPDU: 90 00 [16:19:32]wFMCommunicate OK [16:19:32]wFMCommunicate request_size=255 [16:19:32]MH_SAM_APDU [16:19:32]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 69 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 88 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 FF 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 4D 00 00 00 F4 03 04 00 93 87 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 FE 92 01 00 35 04 06 00 47 B8 C3 48 [16:19:32]Write to MH i2c: E2 02 01 D0 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 69 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 88 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 FF 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 4D 00 00 00 F4 03 04 00 93 87 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 FE 92 01 00 35 04 06 00 47 B8 C3 48 00 00 56 [16:19:32]Write i2c OK [16:19:32]MH_I2C_Read... [16:19:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:32]Read from MH i2c: E2 [16:19:32]MH_I2C_Read... [16:19:32]Read from MH i2c: E2 03 00 [16:19:32]MH_I2C_Read... [16:19:32]Read from MH i2c: E2 03 00 D0 02 00 90 00 46 [16:19:32]RAPDU: 90 00 [16:19:32]wFMCommunicate OK [16:19:32]wFMCommunicate request_size=7 [16:19:32]MH_SAM_APDU [16:19:32]CAPDU: 80 0D 02 02 02 1C 81 [16:19:32]Write to MH i2c: E2 0A 00 D1 02 80 0D 02 02 02 00 1C 81 00 00 EE [16:19:32]Write i2c OK [16:19:32]MH_I2C_Read... [16:19:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:32]Read from MH i2c: E2 [16:19:32]MH_I2C_Read... [16:19:32]Read from MH i2c: E2 03 00 [16:19:32]MH_I2C_Read... [16:19:32]Read from MH i2c: E2 03 00 D1 02 00 90 00 47 [16:19:32]RAPDU: 90 00 [16:19:32]wFMCommunicate OK [16:19:32]wFMCommunicate request_size=4 [16:19:32]MH_SAM_APDU [16:19:32]CAPDU: 80 0D 03 02 [16:19:32]Write to MH i2c: E2 08 00 D2 02 80 0D 03 02 00 00 00 00 4F [16:19:32]Write i2c OK [16:19:32]MH_I2C_Read... [16:19:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:19:32]Read from MH i2c: E2 [16:19:32]MH_I2C_Read... [16:19:32]Read from MH i2c: E2 0B 00 [16:19:32]MH_I2C_Read... [16:19:32]Read from MH i2c: E2 0B 00 D2 02 00 9B A8 73 A7 57 B3 F5 1C 90 00 C8 [16:19:32]RAPDU: 9B A8 73 A7 57 B3 F5 1C 90 00 [16:19:32]wFMCommunicate OK [16:19:32]SAM_PROTO_SignData done [16:19:32]FM_MakeSignedData done [16:19:32]CreateOFDProtocolMessage [16:19:32]wFMCommunicate request_size=4 [16:19:32]MH_SAM_APDU [16:19:32]CAPDU: 80 11 00 00 [16:19:32]Write to MH i2c: E2 08 00 D3 02 80 11 00 00 00 00 00 00 4F [16:19:32]Write i2c OK [16:19:32]MH_I2C_Read... [16:19:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:32]Read from MH i2c: E2 [16:19:32]MH_I2C_Read... [16:19:32]Read from MH i2c: E2 17 00 [16:19:32]MH_I2C_Read... [16:19:32]Read from MH i2c: E2 17 00 D3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 A3 [16:19:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [16:19:32]wFMCommunicate OK [16:19:32]CreateOFDProtocolMessage done [16:19:32]OFDSenderStorePacket 103166 [16:19:32]StoreOFDPacket docnum=103166 [16:19:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 10 C9 04 01 E5 56 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 69 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 88 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 FF 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 4D 00 00 00 F4 03 04 00 93 87 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 FE 92 01 00 35 04 06 00 47 B8 C3 48 1C 81 9B A8 73 A7 57 B3 F5 1C [16:19:32]CheckFolder [16:19:32]dirname=/storage/ofd_packets [16:19:32]CheckFolder done [16:19:32]ProducePacketName [16:19:32]name=ofd_packets/00103166 [16:19:32]NVStorageSaveData ofd_packets/00103166 [16:19:32]File name is /storage/ofd_packets/00103166 [16:19:32]Write 298 bytes [16:19:32]NVStorageSaveData done [16:19:32]OFDSenderStorePacket done [16:19:32]KKMCreateOFDPacket done [16:19:32]NVStorageSaveData kkm_last_timestamp [16:19:32]File name is /storage/kkm_last_timestamp [16:19:32]Write 4 bytes [16:19:32]NVStorageSaveData done [16:19:32]ExternCall_PrintAddStr [16:19:32]wPrintStart [16:19:32]Write to MH i2c: 01 00 00 D4 02 D6 [16:19:32]Write i2c OK [16:19:32]MH_I2C_Read... [16:19:32]Read from MH i2c: 01 [16:19:32]MH_I2C_Read... [16:19:32]Read from MH i2c: 01 07 00 [16:19:32]MH_I2C_Read... [16:19:32]Read from MH i2c: 01 07 00 D4 02 00 00 00 00 00 FF 0F EB [16:19:32]RasterBufferAndPrint [16:19:32]line Счет N : (1)160798 [16:19:32]line ИНН: 02508201610067 [16:19:32]line Контрольно-Кассовый Чек [16:19:32]line ПРОДАЖА [16:19:32]line ТРК (МРК, ГНК) : 13 [16:19:32]line Товар: 2710194210 [16:19:32]line ДТ-К-5 [16:19:32]line 27.110 * 73.80 [16:19:32]line = 2000.72 [16:19:32]line НДС 12% НСП 1% [16:19:32]line > о реализуемом товаре [16:19:32]line ОКРУГЛЕНИЕ: -0.72 [16:19:32]line ИТОГО: 2000.00 [16:19:32]line Внесено: 2000.00 [16:19:32]line СДАЧА: 0.00 [16:19:32]line НСП 1% : 17.70 [16:19:32]line НДС 12% : 212.47 [16:19:32]line Наличными: 2000.00 [16:19:32]line Безнал.: 0.00 [16:19:32]line Место: АЗС № 38 "Партнер Нефть" [16:19:32]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [16:19:32]line СНО: Общий режим [16:19:32]line Чек 77 13.08.2024 16:19 [16:19:32]line Смена: 464 ФФД: 1.0 [16:19:32]line ЗНМ: 0300000126 [16:19:32]line РНМ: 0000000000092718 [16:19:32]line Версия ККМ: 001 [16:19:32]line ФМ: 0000000000875058 [16:19:32]line ФД: 103166 [16:19:32]line ФПД: 78858875837569 [16:19:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T161931&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103166&fm=78858875837569&tin=02508201610067®Number=0000000000092718&sum=200000 [16:19:33]OFD Sender: Processing packet 103166 [packets to send 69, broken 68] [16:19:33]ProducePacketName [16:19:33]name=ofd_packets/00103166 [16:19:33]OFD Sender: To server: pG, [16:19:33]CommunicateWithHost lk.salyk.kg:30040 [16:19:33]ConnectInit lk.salyk.kg [16:19:33]written 0, free lines is 4095 [16:19:33]Connected sock=10 [16:19:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 10 C9 04 01 E5 56 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 69 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 88 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 FF 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 4D 00 00 00 F4 03 04 00 93 87 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 FE 92 01 00 35 04 06 00 47 B8 C3 48 1C 81 9B A8 73 A7 57 B3 F5 1C [16:19:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 34 0F 47 00 F1 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 FE 92 01 00 F4 03 04 00 06 2E BB 66 B6 04 01 00 00 61 D9 2E 11 A0 ED 98 0A [16:19:33]CommunicateWithHost err = 0 [16:19:33]CheckOFDResponse [16:19:33]1017 (14) - 77093643461234 [16:19:33]1041 (16) - 0000000000875058 [16:19:33]1040 (4) - 103166 [16:19:33]1012 (4) - 13.08.2024 09:57 [16:19:33]1206 (1) - 0 [16:19:33]OFD Sender: Remove packet 103166 [16:19:33]ProducePacketName [16:19:33]name=ofd_packets/00103166 [16:19:33]NVStorageDeleteData [16:19:33]Write to MH i2c: 01 00 00 FF 02 01 [16:19:33]Write i2c OK [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: 01 [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: 01 07 00 [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: 01 07 00 FF 02 00 00 00 00 00 EA 0C FE [16:19:33]RasterBufferAndPrint [16:19:33]line [16:19:33]line [16:19:33]line [16:19:33]line [16:19:33]line [16:19:33]written 0, free lines is 3312 [16:19:33]MH_Cut [16:19:33]Write to MH i2c: D1 01 00 06 03 01 DB [16:19:33]Write i2c OK [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: D1 [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: D1 01 00 [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: D1 01 00 06 03 00 DA [16:19:33]Write to MH i2c: 01 00 00 07 03 0A [16:19:33]Write i2c OK [16:19:33]MH_I2C_Read... [16:19:33]OFD Sender: No OFD packet to send [16:19:34]*** Cut start [16:19:34]*** Purtial cut [16:19:34]*** Stage 1: CUTSNS_PIN = 1 [16:19:34]Read from MH i2c: 01 [16:19:34]MH_I2C_Read... [16:19:34]*** Stop cut motor [16:19:34]*** Cut end [16:19:34]Read from MH i2c: 01 07 00 [16:19:34]MH_I2C_Read... [16:19:34]Read from MH i2c: 01 07 00 07 03 00 00 00 00 00 FF 0F 1F [16:19:34]process_action close_receipt done [16:19:34]requested_data is exist [16:19:34]produce_requested_data [16:19:34]requested_item fm.sn is exist - process it [16:19:34]wFMCommunicate request_size=4 [16:19:34]MH_SAM_APDU [16:19:34]CAPDU: 80 11 00 00 [16:19:34]Write to MH i2c: E2 08 00 08 03 80 11 00 00 00 00 00 00 85 [16:19:34]Write i2c OK [16:19:34]MH_I2C_Read... [16:19:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:34]Read from MH i2c: E2 [16:19:34]MH_I2C_Read... [16:19:34]Read from MH i2c: E2 17 00 [16:19:34]MH_I2C_Read... [16:19:34]Read from MH i2c: E2 17 00 08 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 D9 [16:19:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [16:19:34]wFMCommunicate OK [16:19:34]requested_item fd.num is exist - process it [16:19:34]SAM_PROTO_GetFieldsCounters [16:19:34]wFMCommunicate request_size=4 [16:19:34]MH_SAM_APDU [16:19:34]CAPDU: 80 13 00 00 [16:19:34]Write to MH i2c: E2 08 00 09 03 80 13 00 00 00 00 00 00 88 [16:19:34]Write i2c OK [16:19:34]MH_I2C_Read... [16:19:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:19:34]Read from MH i2c: E2 [16:19:34]MH_I2C_Read... [16:19:34]Read from MH i2c: E2 62 00 [16:19:34]MH_I2C_Read... [16:19:34]Read from MH i2c: E2 62 00 09 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 FE 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [16: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 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 FE 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:19:34]wFMCommunicate OK [16:19:34]SAM_PROTO_GetFieldsCounters done [16:19:34]requested_item shift.num is exist - process it [16:19:34]requested_item shift.opened is exist - process it [16:19:34]req_shift_opened [16:19:34]FM_GetShiftState [16:19:34]SAM_PROTO_GetShiftState [16:19:34]wFMCommunicate request_size=4 [16:19:34]MH_SAM_APDU [16:19:34]CAPDU: 80 13 01 00 [16:19:34]Write to MH i2c: E2 08 00 0A 03 80 13 01 00 00 00 00 00 8A [16:19:34]Write i2c OK [16:19:34]MH_I2C_Read... [16:19:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:34]Read from MH i2c: E2 [16:19:34]MH_I2C_Read... [16:19:34]Read from MH i2c: E2 0E 00 [16:19:34]MH_I2C_Read... [16:19:34]Read from MH i2c: E2 0E 00 0A 03 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 A8 [16:19:34]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [16:19:34]wFMCommunicate OK [16:19:34]SAM_PROTO_GetShiftState done [16:19:34]FM_GetShiftState done [16:19:34]req_shift_opened done [16:19:34]requested_item shift.open_date is exist - process it [16:19:34]req_shift_open_date [16:19:34]req_shift_open_date done [16:19:34]produce_requested_data done [16:19:34]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103166,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [16:19:34]process_action_free close_receipt [16:19:34]json_value_free [16:19:34]json_value_free done [16:19:34]process_json_proto returns [16:19:34]Send response to host [16:19:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103166,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [16:19:34]free response buf [16:19:34]execute_script done [16:19:34]execute_script returns [16:19:34]free content buf [16:19:34]Sock 9.Close socket [16:19:34]Sock 9.Thread stoped [16:19:38]OFD Sender: No OFD packet to send [16:19:43]OFD Sender: No OFD packet to send [16:19:48]OFD Sender: No OFD packet to send [16:19:53]OFD Sender: No OFD packet to send [16:19:58]OFD Sender: No OFD packet to send [16:20:03]OFD Sender: No OFD packet to send [16:20:08]OFD Sender: No OFD packet to send [16:20:13]OFD Sender: No OFD packet to send [16:20:18]OFD Sender: No OFD packet to send [16:20:23]OFD Sender: No OFD packet to send [16:20:28]OFD Sender: No OFD packet to send [16:20:33]OFD Sender: No OFD packet to send [16:20:39]OFD Sender: No OFD packet to send [16:20:44]OFD Sender: No OFD packet to send [16:20:49]OFD Sender: No OFD packet to send [16:20:54]OFD Sender: No OFD packet to send [16:20:59]OFD Sender: No OFD packet to send [16:21:04]OFD Sender: No OFD packet to send [16:21:09]OFD Sender: No OFD packet to send [16:21:14]OFD Sender: No OFD packet to send [16:21:19]OFD Sender: No OFD packet to send [16:21:24]OFD Sender: No OFD packet to send [16:21:29]OFD Sender: No OFD packet to send [16:21:34]OFD Sender: No OFD packet to send [16:21:39]OFD Sender: No OFD packet to send [16:21:44]OFD Sender: No OFD packet to send [16:21:49]OFD Sender: No OFD packet to send [16:21:54]OFD Sender: No OFD packet to send [16:21:59]OFD Sender: No OFD packet to send [16:22:04]OFD Sender: No OFD packet to send [16:22:09]OFD Sender: No OFD packet to send [16:22:14]OFD Sender: No OFD packet to send [16:22:19]OFD Sender: No OFD packet to send [16:22:24]OFD Sender: No OFD packet to send [16:22:29]OFD Sender: No OFD packet to send [16:22:34]OFD Sender: No OFD packet to send [16:22:39]OFD Sender: No OFD packet to send [16:22:44]OFD Sender: No OFD packet to send [16:22:49]OFD Sender: No OFD packet to send [16:22:54]OFD Sender: No OFD packet to send [16:22:59]OFD Sender: No OFD packet to send [16:23:01]accept exits with 7 [16:23:01]New connection [16:23:01]New thread 3067260260 created [16:23:01]Thread 3067116900 joined [16:23:01]Waiting for new connection... [16:23:01] Sock 7.Parse request [16:23:01]Sock 7.Check first char [16:23:01]Sock 7.First char is OK [16:23:01]request: POST /json_proto HTTP/1.0 [16:23:01]Method: POST [16:23:01]URL: /json_proto [16:23:01]Method is POST - this is cgi request [16:23:01]url: /json_proto [16:23:01]query_string will be loaded in cgi processing [16:23:01]execute_cgi json_proto POST (null) [16:23:01]execute_cgi path=json_proto method=POST [16:23:01]POST find Content-Length [16:23:01]Host: 172.17.58.3:8080 [16:23:01]Content-Length: 1188 [16:23:01]Content-Type: application/json [16:23:01] [16:23:01]POST finish read [16:23:01]Found Content-Length = 1188 [16:23:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 38\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0438\u0440\u043E\u0432\u0430 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)160797\u000A13.08.2024 16:31\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 7\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 1977.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74627\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:01]execute_script... [16:23:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 38\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0438\u0440\u043E\u0432\u0430 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)160797\u000A13.08.2024 16:31\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 7\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 1977.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74627\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:01]POST & json_proto [16:23:01]process_json_proto [16:23:01]json parsed OK: [16:23:01]protocol is kg_v1.0 [16:23:01]action value=print_text [16:23:01]process_action print_text [16:23:01]cmd_print_text [16:23:01]ExternCall_PrintAddStr [16:23:01]wPrintStart [16:23:01]Write to MH i2c: 01 00 00 0B 03 0E [16:23:01]Write i2c OK [16:23:01]MH_I2C_Read... [16:23:01]Read from MH i2c: 01 [16:23:01]MH_I2C_Read... [16:23:01]Read from MH i2c: 01 07 00 [16:23:01]MH_I2C_Read... [16:23:01]Read from MH i2c: 01 07 00 0B 03 00 00 00 00 00 FF 0F 23 [16:23:01]RasterBufferAndPrint [16:23:01]line *****ТОВАРНЫЙ ЧЕК***** [16:23:01]line АЗС 38 [16:23:01]line Партнер нефть [16:23:01]line 02508201610067 [16:23:01]line Кассир : Таирова А. [16:23:01]line Счет N : (1)160797 [16:23:01]line 13.08.2024 16:31 [16:23:01]line ПРОДАЖА [16:23:01]line ТРК (МРК, ГНК): 7 [16:23:01]line Вид ГСМ : 2710124130 [16:23:01]line Аи-92-К-5 [16:23:01]line 30.000 x 65.90 [16:23:01]line ИТОГ: 1977.00 [16:23:01]line Тип оплаты: Талоны: Топливная Карта [16:23:01]line 74627 [16:23:01]line ______________________ [16:23:01]line (подпись) [16:23:01]written 0, free lines is 4095 [16:23:01]Write to MH i2c: 01 00 00 1F 03 22 [16:23:01]Write i2c OK [16:23:01]MH_I2C_Read... [16:23:01]Read from MH i2c: 01 [16:23:01]MH_I2C_Read... [16:23:01]Read from MH i2c: 01 07 00 [16:23:01]MH_I2C_Read... [16:23:01]Read from MH i2c: 01 07 00 1F 03 00 00 00 00 00 0F 0E 46 [16:23:01]RasterBufferAndPrint [16:23:01]line [16:23:01]line [16:23:01]line [16:23:01]line [16:23:01]line [16:23:01]written 0, free lines is 3600 [16:23:01]MH_Cut [16:23:01]Write to MH i2c: D1 01 00 26 03 01 FB [16:23:01]Write i2c OK [16:23:01]MH_I2C_Read... [16:23:01]Read from MH i2c: D1 [16:23:01]MH_I2C_Read... [16:23:01]Read from MH i2c: D1 01 00 [16:23:01]MH_I2C_Read... [16:23:01]Read from MH i2c: D1 01 00 26 03 00 FA [16:23:01]Write to MH i2c: 01 00 00 27 03 2A [16:23:01]Write i2c OK [16:23:01]MH_I2C_Read... [16:23:02]*** Cut start [16:23:02]*** Purtial cut [16:23:02]*** CUTSNS_PIN = 0 [16:23:02]*** Stage 1: CUTSNS_PIN = 1 [16:23:04]Read from MH i2c: 01 [16:23:04]MH_I2C_Read... [16:23:04]*** Stop cut motor [16:23:04]*** Cut end [16:23:04]Read from MH i2c: 01 07 00 [16:23:04]MH_I2C_Read... [16:23:04]Read from MH i2c: 01 07 00 27 03 00 00 00 00 00 FF 0F 3F [16:23:04]process_action print_text done [16:23:04]requested_data is exist [16:23:04]produce_requested_data [16:23:04]requested_item fm.sn is exist - process it [16:23:04]wFMCommunicate request_size=4 [16:23:04]MH_SAM_APDU [16:23:04]CAPDU: 80 11 00 00 [16:23:04]Write to MH i2c: E2 08 00 28 03 80 11 00 00 00 00 00 00 A5 [16:23:04]Write i2c OK [16:23:04]MH_I2C_Read... [16:23:04]OFD Sender: No OFD packet to send [16:23:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:04]Read from MH i2c: E2 [16:23:04]MH_I2C_Read... [16:23:04]Read from MH i2c: E2 17 00 [16:23:04]MH_I2C_Read... [16:23:04]Read from MH i2c: E2 17 00 28 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 F9 [16:23:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [16:23:04]wFMCommunicate OK [16:23:04]requested_item fd.num is exist - process it [16:23:04]SAM_PROTO_GetFieldsCounters [16:23:04]wFMCommunicate request_size=4 [16:23:04]MH_SAM_APDU [16:23:04]CAPDU: 80 13 00 00 [16:23:04]Write to MH i2c: E2 08 00 29 03 80 13 00 00 00 00 00 00 A8 [16:23:04]Write i2c OK [16:23:04]MH_I2C_Read... [16:23:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:23:04]Read from MH i2c: E2 [16:23:04]MH_I2C_Read... [16:23:04]Read from MH i2c: E2 62 00 [16:23:04]MH_I2C_Read... [16:23:04]Read from MH i2c: E2 62 00 29 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 FE 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [16:23:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 FE 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:23:04]wFMCommunicate OK [16:23:04]SAM_PROTO_GetFieldsCounters done [16:23:04]requested_item shift.num is exist - process it [16:23:04]requested_item shift.opened is exist - process it [16:23:04]req_shift_opened [16:23:04]FM_GetShiftState [16:23:04]SAM_PROTO_GetShiftState [16:23:04]wFMCommunicate request_size=4 [16:23:04]MH_SAM_APDU [16:23:04]CAPDU: 80 13 01 00 [16:23:04]Write to MH i2c: E2 08 00 2A 03 80 13 01 00 00 00 00 00 AA [16:23:04]Write i2c OK [16:23:04]MH_I2C_Read... [16:23:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:04]Read from MH i2c: E2 [16:23:04]MH_I2C_Read... [16:23:04]Read from MH i2c: E2 0E 00 [16:23:04]MH_I2C_Read... [16:23:04]Read from MH i2c: E2 0E 00 2A 03 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 C8 [16:23:04]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [16:23:04]wFMCommunicate OK [16:23:04]SAM_PROTO_GetShiftState done [16:23:04]FM_GetShiftState done [16:23:04]req_shift_opened done [16:23:04]requested_item shift.open_date is exist - process it [16:23:04]req_shift_open_date [16:23:04]req_shift_open_date done [16:23:04]produce_requested_data done [16:23:04]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103166,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [16:23:04]process_action_free print_text [16:23:04]json_value_free [16:23:04]json_value_free done [16:23:04]process_json_proto returns [16:23:04]Send response to host [16:23:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103166,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [16:23:04]free response buf [16:23:04]execute_script done [16:23:04]execute_script returns [16:23:04]free content buf [16:23:04]Sock 7.Close socket [16:23:04]Sock 7.Thread stoped [16:23:09]OFD Sender: No OFD packet to send [16:23:14]OFD Sender: No OFD packet to send [16:23:19]OFD Sender: No OFD packet to send [16:23:24]OFD Sender: No OFD packet to send [16:23:29]OFD Sender: No OFD packet to send [16:23:34]OFD Sender: No OFD packet to send [16:23:39]OFD Sender: No OFD packet to send [16:23:44]OFD Sender: No OFD packet to send [16:23:49]OFD Sender: No OFD packet to send [16:23:54]OFD Sender: No OFD packet to send [16:23:59]OFD Sender: No OFD packet to send [16:24:04]OFD Sender: No OFD packet to send [16:24:09]OFD Sender: No OFD packet to send [16:24:14]OFD Sender: No OFD packet to send [16:24:19]OFD Sender: No OFD packet to send [16:24:24]OFD Sender: No OFD packet to send [16:24:29]OFD Sender: No OFD packet to send [16:24:29]accept exits with 9 [16:24:29]New connection [16:24:29]New thread 3067116900 created [16:24:29]Thread 3067260260 joined [16:24:29]Waiting for new connection... [16:24:29] Sock 9.Parse request [16:24:29]Sock 9.Check first char [16:24:29]Sock 9.First char is OK [16:24:29]request: POST /json_proto HTTP/1.0 [16:24:29]Method: POST [16:24:29]URL: /json_proto [16:24:29]Method is POST - this is cgi request [16:24:29]url: /json_proto [16:24:29]query_string will be loaded in cgi processing [16:24:29]execute_cgi json_proto POST (null) [16:24:29]execute_cgi path=json_proto method=POST [16:24:29]POST find Content-Length [16:24:29]Host: 172.17.58.3:8080 [16:24:29]Content-Length: 676 [16:24:29]Content-Type: application/json [16:24:29] [16:24:29]POST finish read [16:24:29]Found Content-Length = 676 [16:24:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160799", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 6.070, "sum" : 400.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:29]execute_script... [16:24: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)160799", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 6.070, "sum" : 400.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:29]POST & json_proto [16:24:29]process_json_proto [16:24:29]json parsed OK: [16:24:29]protocol is kg_v1.0 [16:24:29]action value=close_receipt [16:24:29]process_action close_receipt [16:24:29]cmd_close_receipt [16:24:29]MH_GetDate [16:24:29]Write to MH i2c: F0 00 00 2B 03 1D [16:24:29]Write i2c OK [16:24:29]MH_I2C_Read... [16:24:29]Read from MH i2c: F0 [16:24:29]MH_I2C_Read... [16:24:29]Read from MH i2c: F0 09 00 [16:24:29]MH_I2C_Read... [16:24:29]Read from MH i2c: F0 09 00 2B 03 00 BE 88 BB 66 DC E4 6D 64 1E [16:24:29]GetLastDocTimeStamp 1723565971 [16:24:29]current date 1723566270 [16:24:29]FM_GetShiftState [16:24:29]SAM_PROTO_GetShiftState [16:24:29]wFMCommunicate request_size=4 [16:24:29]MH_SAM_APDU [16:24:29]CAPDU: 80 13 01 00 [16:24:29]Write to MH i2c: E2 08 00 2C 03 80 13 01 00 00 00 00 00 AC [16:24:29]Write i2c OK [16:24:29]MH_I2C_Read... [16:24:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:29]Read from MH i2c: E2 [16:24:29]MH_I2C_Read... [16:24:29]Read from MH i2c: E2 0E 00 [16:24:29]MH_I2C_Read... [16:24:29]Read from MH i2c: E2 0E 00 2C 03 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 CA [16:24:29]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [16:24:29]wFMCommunicate OK [16:24:29]SAM_PROTO_GetShiftState done [16:24:29]FM_GetShiftState done [16:24:29]opened in 1723506770 [16:24:29]opened+sec_in_day 1723593170 [16:24:29]quantity*price = 40001 [16:24:29]sum+1 = 40002 [16:24:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 78 13.08.2024 16:24 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103167 ФПД: 51096139021364 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T162430&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103167&fm=51096139021364&tin=02508201610067®Number=0000000000092718&sum=40000 [16:24:31]StoreToDocumentArchive [16:24:31]shift 464 fd 103167 [16:24:31]save to /storage/0464/doc_00103167 [16:24:31]save last doc name /storage/0464/doc_00103167 to /storage/kkm_last_doc_name [16:24:31]save OK [16:24:31]Clear old archive folders... [16:24:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:24:31]tlvbuf is 0024FD10 [16:24:31]SAM_PROTO_ClearQueue [16:24:31]wFMCommunicate request_size=4 [16:24:31]MH_SAM_APDU [16:24:31]CAPDU: 80 09 00 00 [16:24:31]Write to MH i2c: E2 08 00 39 03 80 09 00 00 00 00 00 00 AE [16:24:31]Write i2c OK [16:24:31]MH_I2C_Read... [16:24:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:24:31]Read from MH i2c: E2 [16:24:31]MH_I2C_Read... [16:24:31]Read from MH i2c: E2 03 00 [16:24:31]MH_I2C_Read... [16:24:31]Read from MH i2c: E2 03 00 39 03 00 90 00 B0 [16:24:31]RAPDU: 90 00 [16:24:31]wFMCommunicate OK [16:24:31]SAM_PROTO_ClearQueue done [16:24:31]KKMCreateOFDPacket [16:24:31]OFDProtocolAddRootSTLVToBuf [16:24:31]FM_MakeSignedData [16:24:31]FM_MakeSignedData [16:24:31]SAM_PROTO_SignData [16:24:31]wFMCommunicate request_size=4 [16:24:31]MH_SAM_APDU [16:24:31]CAPDU: 80 0D 01 02 [16:24:31]Write to MH i2c: E2 08 00 3A 03 80 0D 01 02 00 00 00 00 B6 [16:24:31]Write i2c OK [16:24:31]MH_I2C_Read... [16:24:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:24:31]Read from MH i2c: E2 [16:24:31]MH_I2C_Read... [16:24:31]Read from MH i2c: E2 03 00 [16:24:31]MH_I2C_Read... [16:24:31]Read from MH i2c: E2 03 00 3A 03 00 90 00 B1 [16:24:31]RAPDU: 90 00 [16:24:31]wFMCommunicate OK [16:24:31]wFMCommunicate request_size=255 [16:24:31]MH_SAM_APDU [16:24: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 B6 17 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 41 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 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 4E 00 00 00 F4 03 04 00 BE 88 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 FF 92 01 00 35 04 06 00 2E [16:24:31]Write to MH i2c: E2 02 01 3B 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 B6 17 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 41 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 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 4E 00 00 00 F4 03 04 00 BE 88 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 FF 92 01 00 35 04 06 00 2E 00 00 4D [16:24:31]Write i2c OK [16:24:31]MH_I2C_Read... [16:24:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:31]Read from MH i2c: E2 [16:24:31]MH_I2C_Read... [16:24:31]Read from MH i2c: E2 03 00 [16:24:31]MH_I2C_Read... [16:24:31]Read from MH i2c: E2 03 00 3B 03 00 90 00 B2 [16:24:31]RAPDU: 90 00 [16:24:31]wFMCommunicate OK [16:24:31]wFMCommunicate request_size=10 [16:24:31]MH_SAM_APDU [16:24:31]CAPDU: 80 0D 02 02 05 78 BF 37 3C 34 [16:24:31]Write to MH i2c: E2 0D 00 3C 03 80 0D 02 02 05 00 78 BF 37 3C 34 00 00 A1 [16:24:31]Write i2c OK [16:24:31]MH_I2C_Read... [16:24:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:31]Read from MH i2c: E2 [16:24:31]MH_I2C_Read... [16:24:31]Read from MH i2c: E2 03 00 [16:24:31]MH_I2C_Read... [16:24:31]Read from MH i2c: E2 03 00 3C 03 00 90 00 B3 [16:24:31]RAPDU: 90 00 [16:24:31]wFMCommunicate OK [16:24:31]wFMCommunicate request_size=4 [16:24:31]MH_SAM_APDU [16:24:31]CAPDU: 80 0D 03 02 [16:24:31]Write to MH i2c: E2 08 00 3D 03 80 0D 03 02 00 00 00 00 BB [16:24:31]Write i2c OK [16:24:31]MH_I2C_Read... [16:24:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:24:31]Read from MH i2c: E2 [16:24:31]MH_I2C_Read... [16:24:31]Read from MH i2c: E2 0B 00 [16:24:31]MH_I2C_Read... [16:24:31]Read from MH i2c: E2 0B 00 3D 03 00 22 78 72 98 0F 96 2A FF 90 00 2E [16:24:31]RAPDU: 22 78 72 98 0F 96 2A FF 90 00 [16:24:31]wFMCommunicate OK [16:24:31]SAM_PROTO_SignData done [16:24:31]FM_MakeSignedData done [16:24:31]CreateOFDProtocolMessage [16:24:31]wFMCommunicate request_size=4 [16:24:31]MH_SAM_APDU [16:24:31]CAPDU: 80 11 00 00 [16:24:31]Write to MH i2c: E2 08 00 3E 03 80 11 00 00 00 00 00 00 BB [16:24:31]Write i2c OK [16:24:31]MH_I2C_Read... [16:24:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:31]Read from MH i2c: E2 [16:24:31]MH_I2C_Read... [16:24:31]Read from MH i2c: E2 17 00 [16:24:31]MH_I2C_Read... [16:24:31]Read from MH i2c: E2 17 00 3E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 0F [16:24:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [16:24:31]wFMCommunicate OK [16:24:31]CreateOFDProtocolMessage done [16:24:31]OFDSenderStorePacket 103167 [16:24:31]StoreOFDPacket docnum=103167 [16:24:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 56 E5 07 01 58 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 17 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 41 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 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 4E 00 00 00 F4 03 04 00 BE 88 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 FF 92 01 00 35 04 06 00 2E 78 BF 37 3C 34 22 78 72 98 0F 96 2A FF [16:24:31]CheckFolder [16:24:31]dirname=/storage/ofd_packets [16:24:31]CheckFolder done [16:24:31]ProducePacketName [16:24:31]name=ofd_packets/00103167 [16:24:31]NVStorageSaveData ofd_packets/00103167 [16:24:31]File name is /storage/ofd_packets/00103167 [16:24:31]Write 301 bytes [16:24:31]NVStorageSaveData done [16:24:31]OFDSenderStorePacket done [16:24:31]KKMCreateOFDPacket done [16:24:31]NVStorageSaveData kkm_last_timestamp [16:24:31]File name is /storage/kkm_last_timestamp [16:24:31]Write 4 bytes [16:24:31]NVStorageSaveData done [16:24:31]ExternCall_PrintAddStr [16:24:31]wPrintStart [16:24:31]Write to MH i2c: 01 00 00 3F 03 42 [16:24:31]Write i2c OK [16:24:31]MH_I2C_Read... [16:24:31]Read from MH i2c: 01 [16:24:31]MH_I2C_Read... [16:24:31]Read from MH i2c: 01 07 00 [16:24:31]MH_I2C_Read... [16:24:31]Read from MH i2c: 01 07 00 3F 03 00 00 00 00 00 FF 0F 57 [16:24:31]RasterBufferAndPrint [16:24:31]line Счет N : (1)160799 [16:24:31]line ИНН: 02508201610067 [16:24:31]line Контрольно-Кассовый Чек [16:24:31]line ПРОДАЖА [16:24:31]line ТРК (МРК, ГНК) : 7 [16:24:31]line Товар: 2710124130 [16:24:31]line Аи-92-К-5 [16:24:31]line 6.070 * 65.90 [16:24:31]line = 400.01 [16:24:31]line НДС 12% НСП 1% [16:24:31]line > о реализуемом товаре [16:24:31]line ОКРУГЛЕНИЕ: -0.01 [16:24:31]line ИТОГО: 400.00 [16:24:31]line Внесено: 400.00 [16:24:31]line СДАЧА: 0.00 [16:24:31]line НСП 1% : 3.54 [16:24:31]line НДС 12% : 42.48 [16:24:31]line Наличными: 400.00 [16:24:31]line Безнал.: 0.00 [16:24:31]line Место: АЗС № 38 "Партнер Нефть" [16:24:31]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [16:24:31]line СНО: Общий режим [16:24:31]line Чек 78 13.08.2024 16:24 [16:24:31]line Смена: 464 ФФД: 1.0 [16:24:31]line ЗНМ: 0300000126 [16:24:31]line РНМ: 0000000000092718 [16:24:31]line Версия ККМ: 001 [16:24:31]line ФМ: 0000000000875058 [16:24:31]line ФД: 103167 [16:24:31]line ФПД: 51096139021364 [16:24:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T162430&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103167&fm=51096139021364&tin=02508201610067®Number=0000000000092718&sum=40000 [16:24:31]OFD Sender: Processing packet 103167 [packets to send 69, broken 68] [16:24:31]ProducePacketName [16:24:31]name=ofd_packets/00103167 [16:24:31]OFD Sender: To server: pG, [16:24:31]CommunicateWithHost lk.salyk.kg:30040 [16:24:31]ConnectInit lk.salyk.kg [16:24:31]written 0, free lines is 4095 [16:24:32]Write to MH i2c: 01 00 00 6A 03 6D [16:24:32]Write i2c OK [16:24:32]MH_I2C_Read... [16:24:32]Read from MH i2c: 01 [16:24:32]MH_I2C_Read... [16:24:32]Read from MH i2c: 01 07 00 [16:24:32]MH_I2C_Read... [16:24:32]Read from MH i2c: 01 07 00 6A 03 00 00 00 00 00 E5 0C 65 [16:24:32]RasterBufferAndPrint [16:24:32]line [16:24:32]line [16:24:32]line [16:24:32]line [16:24:32]line [16:24:32]written 0, free lines is 3307 [16:24:32]MH_Cut [16:24:32]Write to MH i2c: D1 01 00 71 03 01 46 [16:24:32]Write i2c OK [16:24:32]MH_I2C_Read... [16:24:32]Read from MH i2c: D1 [16:24:32]MH_I2C_Read... [16:24:32]Read from MH i2c: D1 01 00 [16:24:32]MH_I2C_Read... [16:24:32]Read from MH i2c: D1 01 00 71 03 00 45 [16:24:32]Write to MH i2c: 01 00 00 72 03 75 [16:24:32]Write i2c OK [16:24:32]MH_I2C_Read... [16:24:33]Connected sock=10 [16:24:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 56 E5 07 01 58 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 17 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 41 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 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 4E 00 00 00 F4 03 04 00 BE 88 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 FF 92 01 00 35 04 06 00 2E 78 BF 37 3C 34 22 78 72 98 0F 96 2A FF [16:24:33]*** Cut start [16:24:33]*** Purtial cut [16:24:33]*** Stage 1: CUTSNS_PIN = 1 [16:24:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 44 BA 47 00 EB 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 FF 92 01 00 F4 03 04 00 32 2F BB 66 B6 04 01 00 00 5F 53 F7 0B 1B 66 1F D4 [16:24:33]CommunicateWithHost err = 0 [16:24:33]CheckOFDResponse [16:24:33]1017 (14) - 77093643461234 [16:24:33]1041 (16) - 0000000000875058 [16:24:33]1040 (4) - 103167 [16:24:33]1012 (4) - 13.08.2024 10:02 [16:24:33]1206 (1) - 0 [16:24:33]OFD Sender: Remove packet 103167 [16:24:33]ProducePacketName [16:24:33]name=ofd_packets/00103167 [16:24:33]NVStorageDeleteData [16:24:33]Read from MH i2c: 01 [16:24:33]MH_I2C_Read... [16:24:33]*** Stop cut motor [16:24:33]*** Cut end [16:24:33]Read from MH i2c: 01 07 00 [16:24:33]MH_I2C_Read... [16:24:33]Read from MH i2c: 01 07 00 72 03 00 00 00 00 00 FF 0F 8A [16:24:33]process_action close_receipt done [16:24:33]requested_data is exist [16:24:33]produce_requested_data [16:24:33]requested_item fm.sn is exist - process it [16:24:33]wFMCommunicate request_size=4 [16:24:33]MH_SAM_APDU [16:24:33]CAPDU: 80 11 00 00 [16:24:33]Write to MH i2c: E2 08 00 73 03 80 11 00 00 00 00 00 00 F0 [16:24:33]Write i2c OK [16:24:33]MH_I2C_Read... [16:24:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:33]Read from MH i2c: E2 [16:24:33]MH_I2C_Read... [16:24:33]Read from MH i2c: E2 17 00 [16:24:33]MH_I2C_Read... [16:24:33]Read from MH i2c: E2 17 00 73 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 44 [16:24:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [16:24:33]wFMCommunicate OK [16:24:33]requested_item fd.num is exist - process it [16:24:33]SAM_PROTO_GetFieldsCounters [16:24:33]wFMCommunicate request_size=4 [16:24:33]MH_SAM_APDU [16:24:33]CAPDU: 80 13 00 00 [16:24:33]Write to MH i2c: E2 08 00 74 03 80 13 00 00 00 00 00 00 F3 [16:24:33]Write i2c OK [16:24:33]MH_I2C_Read... [16:24:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:24:33]Read from MH i2c: E2 [16:24:33]MH_I2C_Read... [16:24:33]Read from MH i2c: E2 62 00 [16:24:33]MH_I2C_Read... [16:24:33]Read from MH i2c: E2 62 00 74 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 FF 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [16:24:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 FF 92 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:24:33]wFMCommunicate OK [16:24:33]SAM_PROTO_GetFieldsCounters done [16:24:33]requested_item shift.num is exist - process it [16:24:33]requested_item shift.opened is exist - process it [16:24:33]req_shift_opened [16:24:33]FM_GetShiftState [16:24:33]SAM_PROTO_GetShiftState [16:24:33]wFMCommunicate request_size=4 [16:24:33]MH_SAM_APDU [16:24:33]CAPDU: 80 13 01 00 [16:24:33]Write to MH i2c: E2 08 00 75 03 80 13 01 00 00 00 00 00 F5 [16:24:33]Write i2c OK [16:24:33]MH_I2C_Read... [16:24:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:33]Read from MH i2c: E2 [16:24:33]MH_I2C_Read... [16:24:33]Read from MH i2c: E2 0E 00 [16:24:33]MH_I2C_Read... [16:24:33]Read from MH i2c: E2 0E 00 75 03 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 13 [16:24:33]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [16:24:33]wFMCommunicate OK [16:24:33]SAM_PROTO_GetShiftState done [16:24:33]FM_GetShiftState done [16:24:33]req_shift_opened done [16:24:33]requested_item shift.open_date is exist - process it [16:24:33]req_shift_open_date [16:24:33]req_shift_open_date done [16:24:33]produce_requested_data done [16:24:33]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103167,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [16:24:33]process_action_free close_receipt [16:24:33]json_value_free [16:24:33]json_value_free done [16:24:33]process_json_proto returns [16:24:33]Send response to host [16:24:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103167,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [16:24:33]free response buf [16:24:33]execute_script done [16:24:33]execute_script returns [16:24:33]free content buf [16:24:33]Sock 9.Close socket [16:24:33]Sock 9.Thread stoped [16:24:33]OFD Sender: No OFD packet to send [16:24:38]OFD Sender: No OFD packet to send [16:24:43]OFD Sender: No OFD packet to send [16:24:48]OFD Sender: No OFD packet to send [16:24:53]OFD Sender: No OFD packet to send [16:24:58]OFD Sender: No OFD packet to send [16:25:03]OFD Sender: No OFD packet to send [16:25:08]OFD Sender: No OFD packet to send [16:25:13]OFD Sender: No OFD packet to send [16:25:18]OFD Sender: No OFD packet to send [16:25:23]OFD Sender: No OFD packet to send [16:25:28]OFD Sender: No OFD packet to send [16:25:33]OFD Sender: No OFD packet to send [16:25:38]OFD Sender: No OFD packet to send [16:25:43]OFD Sender: No OFD packet to send [16:25:48]OFD Sender: No OFD packet to send [16:25:53]OFD Sender: No OFD packet to send [16:25:58]OFD Sender: No OFD packet to send [16:26:03]OFD Sender: No OFD packet to send [16:26:08]OFD Sender: No OFD packet to send [16:26:13]OFD Sender: No OFD packet to send [16:26:18]OFD Sender: No OFD packet to send [16:26:23]OFD Sender: No OFD packet to send [16:26:28]OFD Sender: No OFD packet to send [16:26:33]OFD Sender: No OFD packet to send [16:26:38]OFD Sender: No OFD packet to send [16:26:43]OFD Sender: No OFD packet to send [16:26:48]OFD Sender: No OFD packet to send [16:26:53]OFD Sender: No OFD packet to send [16:26:58]OFD Sender: No OFD packet to send [16:27:03]OFD Sender: No OFD packet to send [16:27:08]OFD Sender: No OFD packet to send [16:27:13]OFD Sender: No OFD packet to send [16:27:18]OFD Sender: No OFD packet to send [16:27:23]OFD Sender: No OFD packet to send [16:27:28]OFD Sender: No OFD packet to send [16:27:33]OFD Sender: No OFD packet to send [16:27:38]OFD Sender: No OFD packet to send [16:27:43]OFD Sender: No OFD packet to send [16:27:48]OFD Sender: No OFD packet to send [16:27:53]OFD Sender: No OFD packet to send [16:27:58]OFD Sender: No OFD packet to send [16:28:04]OFD Sender: No OFD packet to send [16:28:09]OFD Sender: No OFD packet to send [16:28:13]accept exits with 7 [16:28:13]New connection [16:28:13]New thread 3067260260 created [16:28:13]Thread 3067116900 joined [16:28:13]Waiting for new connection... [16:28:13] Sock 7.Parse request [16:28:13]Sock 7.Check first char [16:28:13]Sock 7.First char is OK [16:28:13]request: POST /json_proto HTTP/1.0 [16:28:13]Method: POST [16:28:13]URL: /json_proto [16:28:13]Method is POST - this is cgi request [16:28:13]url: /json_proto [16:28:13]query_string will be loaded in cgi processing [16:28:13]execute_cgi json_proto POST (null) [16:28:13]execute_cgi path=json_proto method=POST [16:28:13]POST find Content-Length [16:28:13]Host: 172.17.58.3:8080 [16:28:13]Content-Length: 696 [16:28:13]Content-Type: application/json [16:28:13] [16:28:13]POST finish read [16:28:13]Found Content-Length = 696 [16:28:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)34508", "tax_sys" : 0, "items" : [ { "code": "4631162227163", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 Mojito LEMON LIME \u0436", "price" : 95.00, "quantity" : 3.000, "sum" : 285.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 285.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:28:13]execute_script... [16:28: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 : (3)34508", "tax_sys" : 0, "items" : [ { "code": "4631162227163", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 Mojito LEMON LIME \u0436", "price" : 95.00, "quantity" : 3.000, "sum" : 285.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 285.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:28:13]POST & json_proto [16:28:13]process_json_proto [16:28:13]json parsed OK: [16:28:13]protocol is kg_v1.0 [16:28:13]action value=close_receipt [16:28:13]process_action close_receipt [16:28:13]cmd_close_receipt [16:28:13]MH_GetDate [16:28:13]Write to MH i2c: F0 00 00 76 03 68 [16:28:13]Write i2c OK [16:28:13]MH_I2C_Read... [16:28:13]Read from MH i2c: F0 [16:28:13]MH_I2C_Read... [16:28:13]Read from MH i2c: F0 09 00 [16:28:13]MH_I2C_Read... [16:28:13]Read from MH i2c: F0 09 00 76 03 00 9E 89 BB 66 DC E4 6D 64 4A [16:28:13]GetLastDocTimeStamp 1723566270 [16:28:13]current date 1723566494 [16:28:13]FM_GetShiftState [16:28:13]SAM_PROTO_GetShiftState [16:28:13]wFMCommunicate request_size=4 [16:28:13]MH_SAM_APDU [16:28:13]CAPDU: 80 13 01 00 [16:28:13]Write to MH i2c: E2 08 00 77 03 80 13 01 00 00 00 00 00 F7 [16:28:13]Write i2c OK [16:28:13]MH_I2C_Read... [16:28:14]OFD Sender: No OFD packet to send [16:28:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:28:14]Read from MH i2c: E2 [16:28:14]MH_I2C_Read... [16:28:14]Read from MH i2c: E2 0E 00 [16:28:14]MH_I2C_Read... [16:28:14]Read from MH i2c: E2 0E 00 77 03 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 15 [16:28:14]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [16:28:14]wFMCommunicate OK [16:28:14]SAM_PROTO_GetShiftState done [16:28:14]FM_GetShiftState done [16:28:14]opened in 1723506770 [16:28:14]opened+sec_in_day 1723593170 [16:28:14]quantity*price = 28500 [16:28:14]sum+1 = 28501 [16:28:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 285.00 НСП 1% : 2.52 НДС 12% : 30.26 Наличными: 285.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 79 13.08.2024 16:28 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103168 ФПД: 277660002847400 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T162814&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103168&fm=277660002847400&tin=02508201610067®Number=0000000000092718&sum=28500 0 [16:28:15]StoreToDocumentArchive [16:28:15]shift 464 fd 103168 [16:28:15]save to /storage/0464/doc_00103168 [16:28:15]save last doc name /storage/0464/doc_00103168 to /storage/kkm_last_doc_name [16:28:15]save OK [16:28:15]Clear old archive folders... [16:28:15]ProcessDocumentItem done err = 0, tmpTLVsize=302 [16:28:15]tlvbuf is 00253330 [16:28:15]SAM_PROTO_ClearQueue [16:28:15]wFMCommunicate request_size=4 [16:28:15]MH_SAM_APDU [16:28:15]CAPDU: 80 09 00 00 [16:28:15]Write to MH i2c: E2 08 00 84 03 80 09 00 00 00 00 00 00 F9 [16:28:15]Write i2c OK [16:28:15]MH_I2C_Read... [16:28:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:28:15]Read from MH i2c: E2 [16:28:15]MH_I2C_Read... [16:28:15]Read from MH i2c: E2 03 00 [16:28:15]MH_I2C_Read... [16:28:15]Read from MH i2c: E2 03 00 84 03 00 90 00 FB [16:28:15]RAPDU: 90 00 [16:28:15]wFMCommunicate OK [16:28:15]SAM_PROTO_ClearQueue done [16:28:15]KKMCreateOFDPacket [16:28:15]OFDProtocolAddRootSTLVToBuf [16:28:15]FM_MakeSignedData [16:28:15]FM_MakeSignedData [16:28:15]SAM_PROTO_SignData [16:28:15]wFMCommunicate request_size=4 [16:28:15]MH_SAM_APDU [16:28:15]CAPDU: 80 0D 01 02 [16:28:15]Write to MH i2c: E2 08 00 85 03 80 0D 01 02 00 00 00 00 01 [16:28:15]Write i2c OK [16:28:15]MH_I2C_Read... [16:28:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:28:15]Read from MH i2c: E2 [16:28:15]MH_I2C_Read... [16:28:15]Read from MH i2c: E2 03 00 [16:28:15]MH_I2C_Read... [16:28:15]Read from MH i2c: E2 03 00 85 03 00 90 00 FC [16:28:15]RAPDU: 90 00 [16:28:15]wFMCommunicate OK [16:28:15]wFMCommunicate request_size=255 [16:28:15]MH_SAM_APDU [16:28:15]CAPDU: 80 0D 02 02 FA 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 54 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 9E 89 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 [16:28:15]Write to MH i2c: E2 02 01 86 03 80 0D 02 02 FA 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 54 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 9E 89 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 00 00 37 [16:28:15]Write i2c OK [16:28:15]MH_I2C_Read... [16:28:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:15]Read from MH i2c: E2 [16:28:15]MH_I2C_Read... [16:28:15]Read from MH i2c: E2 03 00 [16:28:15]MH_I2C_Read... [16:28:15]Read from MH i2c: E2 03 00 86 03 00 90 00 FD [16:28:15]RAPDU: 90 00 [16:28:15]wFMCommunicate OK [16:28:15]wFMCommunicate request_size=61 [16:28:15]MH_SAM_APDU [16:28:15]CAPDU: 80 0D 02 02 38 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 00 93 01 00 35 04 06 00 FC 87 C1 D6 8A A8 [16:28:15]Write to MH i2c: E2 40 00 87 03 80 0D 02 02 38 00 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 00 93 01 00 35 04 06 00 FC 87 C1 D6 8A A8 00 00 1C [16:28:15]Write i2c OK [16:28:15]MH_I2C_Read... [16:28:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:15]Read from MH i2c: E2 [16:28:15]MH_I2C_Read... [16:28:15]Read from MH i2c: E2 03 00 [16:28:15]MH_I2C_Read... [16:28:15]Read from MH i2c: E2 03 00 87 03 00 90 00 FE [16:28:15]RAPDU: 90 00 [16:28:15]wFMCommunicate OK [16:28:15]wFMCommunicate request_size=4 [16:28:15]MH_SAM_APDU [16:28:15]CAPDU: 80 0D 03 02 [16:28:15]Write to MH i2c: E2 08 00 88 03 80 0D 03 02 00 00 00 00 06 [16:28:15]Write i2c OK [16:28:15]MH_I2C_Read... [16:28:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:28:15]Read from MH i2c: E2 [16:28:15]MH_I2C_Read... [16:28:15]Read from MH i2c: E2 0B 00 [16:28:15]MH_I2C_Read... [16:28:15]Read from MH i2c: E2 0B 00 88 03 00 53 7C 92 D6 43 68 AC AC 90 00 41 [16:28:15]RAPDU: 53 7C 92 D6 43 68 AC AC 90 00 [16:28:15]wFMCommunicate OK [16:28:15]SAM_PROTO_SignData done [16:28:15]FM_MakeSignedData done [16:28:15]CreateOFDProtocolMessage [16:28:15]wFMCommunicate request_size=4 [16:28:15]MH_SAM_APDU [16:28:15]CAPDU: 80 11 00 00 [16:28:15]Write to MH i2c: E2 08 00 89 03 80 11 00 00 00 00 00 00 06 [16:28:15]Write i2c OK [16:28:15]MH_I2C_Read... [16:28:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:15]Read from MH i2c: E2 [16:28:15]MH_I2C_Read... [16:28:15]Read from MH i2c: E2 17 00 [16:28:15]MH_I2C_Read... [16:28:15]Read from MH i2c: E2 17 00 89 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 5A [16:28:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [16:28:15]wFMCommunicate OK [16:28:15]CreateOFDProtocolMessage done [16:28:15]OFDSenderStorePacket 103168 [16:28:15]StoreOFDPacket docnum=103168 [16:28:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 42 01 00 00 CC 02 3A 01 9A A2 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 54 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 9E 89 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 00 93 01 00 35 04 06 00 FC 87 C1 D6 8A A8 53 7C 92 D6 43 68 AC AC [16:28:15]CheckFolder [16:28:15]dirname=/storage/ofd_packets [16:28:15]CheckFolder done [16:28:15]ProducePacketName [16:28:15]name=ofd_packets/00103168 [16:28:15]NVStorageSaveData ofd_packets/00103168 [16:28:15]File name is /storage/ofd_packets/00103168 [16:28:15]Write 352 bytes [16:28:15]NVStorageSaveData done [16:28:15]OFDSenderStorePacket done [16:28:15]KKMCreateOFDPacket done [16:28:15]NVStorageSaveData kkm_last_timestamp [16:28:15]File name is /storage/kkm_last_timestamp [16:28:15]Write 4 bytes [16:28:15]NVStorageSaveData done [16:28:15]ExternCall_PrintAddStr [16:28:15]wPrintStart [16:28:15]Write to MH i2c: 01 00 00 8A 03 8D [16:28:15]Write i2c OK [16:28:15]MH_I2C_Read... [16:28:15]Read from MH i2c: 01 [16:28:15]MH_I2C_Read... [16:28:15]Read from MH i2c: 01 07 00 [16:28:15]MH_I2C_Read... [16:28:15]Read from MH i2c: 01 07 00 8A 03 00 00 00 00 00 FF 0F A2 [16:28:15]RasterBufferAndPrint [16:28:15]line Счет N : (3)34508 [16:28:15]line ИНН: 02508201610067 [16:28:15]line Контрольно-Кассовый Чек [16:28:15]line ПРОДАЖА [16:28:15]line Товар: 4631162227163 [16:28:15]line Напиток газированный Mojito LEMON LIME ж [16:28:15]line 3.000 * 95.00 [16:28:15]line = 285.00 [16:28:15]line НДС 12% НСП 1% [16:28:15]line > о реализуемом товаре [16:28:15]line ИТОГО: 285.00 [16:28:15]line НСП 1% : 2.52 [16:28:15]line НДС 12% : 30.26 [16:28:15]line Наличными: 285.00 [16:28:15]line Безнал.: 0.00 [16:28:15]line Место: АЗС № 38 "Партнер Нефть" [16:28:15]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [16:28:15]line СНО: Общий режим [16:28:15]line Чек 79 13.08.2024 16:28 [16:28:15]line Смена: 464 ФФД: 1.0 [16:28:15]line ЗНМ: 0300000126 [16:28:15]line РНМ: 0000000000092718 [16:28:15]line Версия ККМ: 001 [16:28:15]line ФМ: 0000000000875058 [16:28:16]line ФД: 103168 [16:28:16]line ФПД: 277660002847400 [16:28:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T162814&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103168&fm=277660002847400&tin=02508201610067®Number=0000000000092718&sum=28500 [16:28:16]line 0 [16:28:16]OFD Sender: Processing packet 103168 [packets to send 69, broken 68] [16:28:16]ProducePacketName [16:28:16]name=ofd_packets/00103168 [16:28:16]OFD Sender: To server: pG, [16:28:16]CommunicateWithHost lk.salyk.kg:30040 [16:28:16]ConnectInit lk.salyk.kg [16:28:16]written 0, free lines is 4095 [16:28:16]Connected sock=10 [16:28:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 42 01 00 00 CC 02 3A 01 9A A2 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 54 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 9E 89 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 00 93 01 00 35 04 06 00 FC 87 C1 D6 8A A8 53 7C 92 D6 43 68 AC AC [16:28:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 7B C1 47 00 9A C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 00 93 01 00 F4 03 04 00 11 30 BB 66 B6 04 01 00 00 65 28 43 38 B2 76 07 0B [16:28:16]CommunicateWithHost err = 0 [16:28:16]CheckOFDResponse [16:28:16]1017 (14) - 77093643461234 [16:28:16]1041 (16) - 0000000000875058 [16:28:16]1040 (4) - 103168 [16:28:16]1012 (4) - 13.08.2024 10:06 [16:28:16]1206 (1) - 0 [16:28:16]OFD Sender: Remove packet 103168 [16:28:16]ProducePacketName [16:28:16]name=ofd_packets/00103168 [16:28:16]NVStorageDeleteData [16:28:16]Write to MH i2c: 01 00 00 B3 03 B6 [16:28:16]Write i2c OK [16:28:16]MH_I2C_Read... [16:28:16]Read from MH i2c: 01 [16:28:16]MH_I2C_Read... [16:28:16]Read from MH i2c: 01 07 00 [16:28:16]MH_I2C_Read... [16:28:16]Read from MH i2c: 01 07 00 B3 03 00 00 00 00 00 F7 0C C0 [16:28:16]RasterBufferAndPrint [16:28:16]line [16:28:16]line [16:28:16]line [16:28:16]line [16:28:16]line [16:28:16]written 0, free lines is 3325 [16:28:16]MH_Cut [16:28:16]Write to MH i2c: D1 01 00 BA 03 01 8F [16:28:16]Write i2c OK [16:28:16]MH_I2C_Read... [16:28:16]Read from MH i2c: D1 [16:28:16]MH_I2C_Read... [16:28:16]Read from MH i2c: D1 01 00 [16:28:16]MH_I2C_Read... [16:28:16]Read from MH i2c: D1 01 00 BA 03 00 8E [16:28:16]Write to MH i2c: 01 00 00 BB 03 BE [16:28:16]Write i2c OK [16:28:16]MH_I2C_Read... [16:28:16]OFD Sender: No OFD packet to send [16:28:17]*** Cut start [16:28:17]*** Purtial cut [16:28:17]*** CUTSNS_PIN = 0 [16:28:17]*** Stage 1: CUTSNS_PIN = 1 [16:28:19]Read from MH i2c: 01 [16:28:19]MH_I2C_Read... [16:28:19]*** Stop cut motor [16:28:19]*** Cut end [16:28:19]Read from MH i2c: 01 07 00 [16:28:19]MH_I2C_Read... [16:28:19]Read from MH i2c: 01 07 00 BB 03 00 00 00 00 00 FF 0F D3 [16:28:19]process_action close_receipt done [16:28:19]requested_data is exist [16:28:19]produce_requested_data [16:28:19]requested_item fm.sn is exist - process it [16:28:19]wFMCommunicate request_size=4 [16:28:19]MH_SAM_APDU [16:28:19]CAPDU: 80 11 00 00 [16:28:19]Write to MH i2c: E2 08 00 BC 03 80 11 00 00 00 00 00 00 39 [16:28:19]Write i2c OK [16:28:19]MH_I2C_Read... [16:28:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:19]Read from MH i2c: E2 [16:28:19]MH_I2C_Read... [16:28:19]Read from MH i2c: E2 17 00 [16:28:19]MH_I2C_Read... [16:28:19]Read from MH i2c: E2 17 00 BC 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 8D [16:28:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [16:28:19]wFMCommunicate OK [16:28:19]requested_item fd.num is exist - process it [16:28:19]SAM_PROTO_GetFieldsCounters [16:28:19]wFMCommunicate request_size=4 [16:28:19]MH_SAM_APDU [16:28:19]CAPDU: 80 13 00 00 [16:28:19]Write to MH i2c: E2 08 00 BD 03 80 13 00 00 00 00 00 00 3C [16:28:19]Write i2c OK [16:28:19]MH_I2C_Read... [16:28:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:28:19]Read from MH i2c: E2 [16:28:19]MH_I2C_Read... [16:28:19]Read from MH i2c: E2 62 00 [16:28:19]MH_I2C_Read... [16:28:19]Read from MH i2c: E2 62 00 BD 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 00 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [16:28:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 00 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:28:19]wFMCommunicate OK [16:28:19]SAM_PROTO_GetFieldsCounters done [16:28:19]requested_item shift.num is exist - process it [16:28:19]requested_item shift.opened is exist - process it [16:28:19]req_shift_opened [16:28:19]FM_GetShiftState [16:28:19]SAM_PROTO_GetShiftState [16:28:19]wFMCommunicate request_size=4 [16:28:19]MH_SAM_APDU [16:28:19]CAPDU: 80 13 01 00 [16:28:19]Write to MH i2c: E2 08 00 BE 03 80 13 01 00 00 00 00 00 3E [16:28:19]Write i2c OK [16:28:19]MH_I2C_Read... [16:28:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:28:19]Read from MH i2c: E2 [16:28:19]MH_I2C_Read... [16:28:19]Read from MH i2c: E2 0E 00 [16:28:19]MH_I2C_Read... [16:28:19]Read from MH i2c: E2 0E 00 BE 03 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 5C [16:28:19]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [16:28:19]wFMCommunicate OK [16:28:19]SAM_PROTO_GetShiftState done [16:28:19]FM_GetShiftState done [16:28:19]req_shift_opened done [16:28:19]requested_item shift.open_date is exist - process it [16:28:19]req_shift_open_date [16:28:19]req_shift_open_date done [16:28:19]produce_requested_data done [16:28:19]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103168,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [16:28:19]process_action_free close_receipt [16:28:19]json_value_free [16:28:19]json_value_free done [16:28:19]process_json_proto returns [16:28:19]Send response to host [16:28:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103168,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [16:28:19]free response buf [16:28:19]execute_script done [16:28:19]execute_script returns [16:28:19]free content buf [16:28:19]Sock 7.Close socket [16:28:19]Sock 7.Thread stoped [16:28:21]OFD Sender: No OFD packet to send [16:28:26]OFD Sender: No OFD packet to send [16:28:31]OFD Sender: No OFD packet to send [16:28:36]OFD Sender: No OFD packet to send [16:28:41]OFD Sender: No OFD packet to send [16:28:46]OFD Sender: No OFD packet to send [16:28:51]OFD Sender: No OFD packet to send [16:28:56]OFD Sender: No OFD packet to send [16:29:01]OFD Sender: No OFD packet to send [16:29:06]OFD Sender: No OFD packet to send [16:29:11]OFD Sender: No OFD packet to send [16:29:16]OFD Sender: No OFD packet to send [16:29:21]OFD Sender: No OFD packet to send [16:29:26]OFD Sender: No OFD packet to send [16:29:31]OFD Sender: No OFD packet to send [16:29:36]OFD Sender: No OFD packet to send [16:29:41]OFD Sender: No OFD packet to send [16:29:46]OFD Sender: No OFD packet to send [16:29:51]OFD Sender: No OFD packet to send [16:29:56]OFD Sender: No OFD packet to send [16:30:01]OFD Sender: No OFD packet to send [16:30:06]OFD Sender: No OFD packet to send [16:30:11]OFD Sender: No OFD packet to send [16:30:16]OFD Sender: No OFD packet to send [16:30:21]OFD Sender: No OFD packet to send [16:30:26]OFD Sender: No OFD packet to send [16:30:31]OFD Sender: No OFD packet to send [16:30:36]OFD Sender: No OFD packet to send [16:30:41]accept exits with 9 [16:30:41]New connection [16:30:41]New thread 3067116900 created [16:30:41]Thread 3067260260 joined [16:30:41]Waiting for new connection... [16:30:41] Sock 9.Parse request [16:30:41]Sock 9.Check first char [16:30:41]Sock 9.First char is OK [16:30:41]request: POST /json_proto HTTP/1.0 [16:30:41]Method: POST [16:30:41]URL: /json_proto [16:30:41]Method is POST - this is cgi request [16:30:41]url: /json_proto [16:30:41]query_string will be loaded in cgi processing [16:30:41]execute_cgi json_proto POST (null) [16:30:41]execute_cgi path=json_proto method=POST [16:30:41]POST find Content-Length [16:30:41]Host: 172.17.58.3:8080 [16:30:41]Content-Length: 681 [16:30:41]Content-Type: application/json [16:30:41] [16:30:41]POST finish read [16:30:41]Found Content-Length = 681 [16:30:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160800", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:30:41]execute_script... [16:30: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)160800", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:30:41]POST & json_proto [16:30:41]process_json_proto [16:30:41]json parsed OK: [16:30:41]protocol is kg_v1.0 [16:30:41]action value=close_receipt [16:30:41]process_action close_receipt [16:30:41]cmd_close_receipt [16:30:41]MH_GetDate [16:30:41]Write to MH i2c: F0 00 00 BF 03 B1 [16:30:41]Write i2c OK [16:30:41]MH_I2C_Read... [16:30:41]Read from MH i2c: F0 [16:30:41]MH_I2C_Read... [16:30:41]Read from MH i2c: F0 09 00 [16:30:41]MH_I2C_Read... [16:30:41]Read from MH i2c: F0 09 00 BF 03 00 31 8A BB 66 DC E4 6D 64 27 [16:30:41]GetLastDocTimeStamp 1723566494 [16:30:41]current date 1723566641 [16:30:41]FM_GetShiftState [16:30:41]SAM_PROTO_GetShiftState [16:30:41]wFMCommunicate request_size=4 [16:30:41]MH_SAM_APDU [16:30:41]CAPDU: 80 13 01 00 [16:30:41]Write to MH i2c: E2 08 00 C0 03 80 13 01 00 00 00 00 00 40 [16:30:41]Write i2c OK [16:30:41]MH_I2C_Read... [16:30:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:41]Read from MH i2c: E2 [16:30:41]MH_I2C_Read... [16:30:41]Read from MH i2c: E2 0E 00 [16:30:41]MH_I2C_Read... [16:30:41]Read from MH i2c: E2 0E 00 C0 03 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 5E [16:30:41]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [16:30:41]wFMCommunicate OK [16:30:41]SAM_PROTO_GetShiftState done [16:30:41]FM_GetShiftState done [16:30:41]opened in 1723506770 [16:30:41]opened+sec_in_day 1723593170 [16:30:41]quantity*price = 200006 [16:30:41]sum+1 = 200008 [16:30:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 80 13.08.2024 16:30 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103169 ФПД: 112587091914052 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T163041&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103169&fm=112587091914052&tin=02508201610067®Number=0000000000092718&sum=200000 [16:30:42]StoreToDocumentArchive [16:30:42]shift 464 fd 103169 [16:30:42]save to /storage/0464/doc_00103169 [16:30:42]save last doc name /storage/0464/doc_00103169 to /storage/kkm_last_doc_name [16:30:42]save OK [16:30:42]Clear old archive folders... [16:30:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:30:42]tlvbuf is 00246920 [16:30:42]SAM_PROTO_ClearQueue [16:30:42]wFMCommunicate request_size=4 [16:30:42]MH_SAM_APDU [16:30:42]CAPDU: 80 09 00 00 [16:30:42]Write to MH i2c: E2 08 00 CD 03 80 09 00 00 00 00 00 00 42 [16:30:42]Write i2c OK [16:30:42]MH_I2C_Read... [16:30:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:30:42]Read from MH i2c: E2 [16:30:42]MH_I2C_Read... [16:30:42]Read from MH i2c: E2 03 00 [16:30:42]MH_I2C_Read... [16:30:42]Read from MH i2c: E2 03 00 CD 03 00 90 00 44 [16:30:42]RAPDU: 90 00 [16:30:42]wFMCommunicate OK [16:30:42]SAM_PROTO_ClearQueue done [16:30:42]KKMCreateOFDPacket [16:30:42]OFDProtocolAddRootSTLVToBuf [16:30:42]FM_MakeSignedData [16:30:42]FM_MakeSignedData [16:30:42]SAM_PROTO_SignData [16:30:42]wFMCommunicate request_size=4 [16:30:42]MH_SAM_APDU [16:30:42]CAPDU: 80 0D 01 02 [16:30:42]Write to MH i2c: E2 08 00 CE 03 80 0D 01 02 00 00 00 00 4A [16:30:42]Write i2c OK [16:30:42]MH_I2C_Read... [16:30:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:30:42]Read from MH i2c: E2 [16:30:42]MH_I2C_Read... [16:30:42]Read from MH i2c: E2 03 00 [16:30:42]MH_I2C_Read... [16:30:42]Read from MH i2c: E2 03 00 CE 03 00 90 00 45 [16:30:42]RAPDU: 90 00 [16:30:42]wFMCommunicate OK [16:30:42]wFMCommunicate request_size=255 [16:30:42]MH_SAM_APDU [16:30:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 31 8A BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 01 93 01 00 35 04 06 00 66 [16:30:42]Write to MH i2c: E2 02 01 CF 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 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 31 8A BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 01 93 01 00 35 04 06 00 66 00 00 5B [16:30:42]Write i2c OK [16:30:42]MH_I2C_Read... [16:30:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:42]Read from MH i2c: E2 [16:30:42]MH_I2C_Read... [16:30:42]Read from MH i2c: E2 03 00 [16:30:42]MH_I2C_Read... [16:30:42]Read from MH i2c: E2 03 00 CF 03 00 90 00 46 [16:30:42]RAPDU: 90 00 [16:30:42]wFMCommunicate OK [16:30:42]wFMCommunicate request_size=10 [16:30:42]MH_SAM_APDU [16:30:42]CAPDU: 80 0D 02 02 05 65 B9 9E AD 44 [16:30:42]Write to MH i2c: E2 0D 00 D0 03 80 0D 02 02 05 00 65 B9 9E AD 44 00 00 04 [16:30:42]Write i2c OK [16:30:42]MH_I2C_Read... [16:30:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:42]Read from MH i2c: E2 [16:30:42]MH_I2C_Read... [16:30:42]Read from MH i2c: E2 03 00 [16:30:42]MH_I2C_Read... [16:30:42]Read from MH i2c: E2 03 00 D0 03 00 90 00 47 [16:30:42]RAPDU: 90 00 [16:30:42]wFMCommunicate OK [16:30:42]wFMCommunicate request_size=4 [16:30:42]MH_SAM_APDU [16:30:42]CAPDU: 80 0D 03 02 [16:30:42]Write to MH i2c: E2 08 00 D1 03 80 0D 03 02 00 00 00 00 4F [16:30:42]Write i2c OK [16:30:42]MH_I2C_Read... [16:30:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:30:42]Read from MH i2c: E2 [16:30:42]MH_I2C_Read... [16:30:42]Read from MH i2c: E2 0B 00 [16:30:42]MH_I2C_Read... [16:30:42]Read from MH i2c: E2 0B 00 D1 03 00 32 8E 19 C7 A8 A9 09 07 90 00 51 [16:30:42]RAPDU: 32 8E 19 C7 A8 A9 09 07 90 00 [16:30:42]wFMCommunicate OK [16:30:42]SAM_PROTO_SignData done [16:30:42]FM_MakeSignedData done [16:30:42]CreateOFDProtocolMessage [16:30:42]wFMCommunicate request_size=4 [16:30:42]MH_SAM_APDU [16:30:42]CAPDU: 80 11 00 00 [16:30:42]Write to MH i2c: E2 08 00 D2 03 80 11 00 00 00 00 00 00 4F [16:30:42]Write i2c OK [16:30:42]MH_I2C_Read... [16:30:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:42]Read from MH i2c: E2 [16:30:42]MH_I2C_Read... [16:30:42]Read from MH i2c: E2 17 00 [16:30:42]MH_I2C_Read... [16:30:42]Read from MH i2c: E2 17 00 D2 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 A3 [16:30:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [16:30:42]wFMCommunicate OK [16:30:42]CreateOFDProtocolMessage done [16:30:42]OFDSenderStorePacket 103169 [16:30:42]StoreOFDPacket docnum=103169 [16:30:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 98 8B 07 01 30 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 31 8A BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 01 93 01 00 35 04 06 00 66 65 B9 9E AD 44 32 8E 19 C7 A8 A9 09 07 [16:30:42]CheckFolder [16:30:42]dirname=/storage/ofd_packets [16:30:42]CheckFolder done [16:30:42]ProducePacketName [16:30:42]name=ofd_packets/00103169 [16:30:42]NVStorageSaveData ofd_packets/00103169 [16:30:42]File name is /storage/ofd_packets/00103169 [16:30:42]Write 301 bytes [16:30:42]NVStorageSaveData done [16:30:42]OFDSenderStorePacket done [16:30:42]KKMCreateOFDPacket done [16:30:42]NVStorageSaveData kkm_last_timestamp [16:30:42]File name is /storage/kkm_last_timestamp [16:30:42]Write 4 bytes [16:30:42]NVStorageSaveData done [16:30:42]ExternCall_PrintAddStr [16:30:42]wPrintStart [16:30:42]Write to MH i2c: 01 00 00 D3 03 D6 [16:30:42]Write i2c OK [16:30:42]MH_I2C_Read... [16:30:42]Read from MH i2c: 01 [16:30:42]MH_I2C_Read... [16:30:42]Read from MH i2c: 01 07 00 [16:30:42]MH_I2C_Read... [16:30:42]Read from MH i2c: 01 07 00 D3 03 00 00 00 00 00 FF 0F EB [16:30:42]RasterBufferAndPrint [16:30:42]line Счет N : (1)160800 [16:30:42]line ИНН: 02508201610067 [16:30:42]line Контрольно-Кассовый Чек [16:30:42]line ПРОДАЖА [16:30:42]line ТРК (МРК, ГНК) : 7 [16:30:42]line Товар: 2710124130 [16:30:42]line Аи-92-К-5 [16:30:42]line 30.350 * 65.90 [16:30:42]line = 2000.07 [16:30:42]line НДС 12% НСП 1% [16:30:42]line > о реализуемом товаре [16:30:42]line ОКРУГЛЕНИЕ: -0.07 [16:30:42]line ИТОГО: 2000.00 [16:30:42]line Внесено: 2000.00 [16:30:42]line СДАЧА: 0.00 [16:30:42]line НСП 1% : 17.70 [16:30:42]line НДС 12% : 212.40 [16:30:42]line Наличными: 2000.00 [16:30:42]line Безнал.: 0.00 [16:30:42]line Место: АЗС № 38 "Партнер Нефть" [16:30:42]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [16:30:42]line СНО: Общий режим [16:30:42]line Чек 80 13.08.2024 16:30 [16:30:42]line Смена: 464 ФФД: 1.0 [16:30:42]line ЗНМ: 0300000126 [16:30:42]line РНМ: 0000000000092718 [16:30:42]line Версия ККМ: 001 [16:30:42]line ФМ: 0000000000875058 [16:30:42]line ФД: 103169 [16:30:42]line ФПД: 112587091914052 [16:30:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T163041&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103169&fm=112587091914052&tin=02508201610067®Number=0000000000092718&sum=200000 [16:30:43]OFD Sender: Processing packet 103169 [packets to send 69, broken 68] [16:30:43]ProducePacketName [16:30:43]name=ofd_packets/00103169 [16:30:43]OFD Sender: To server: pG, [16:30:43]CommunicateWithHost lk.salyk.kg:30040 [16:30:43]ConnectInit lk.salyk.kg [16:30:43]written 0, free lines is 4095 [16:30:43]Connected sock=10 [16:30:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 98 8B 07 01 30 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 31 8A BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 01 93 01 00 35 04 06 00 66 65 B9 9E AD 44 32 8E 19 C7 A8 A9 09 07 [16:30:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 D8 46 47 00 40 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 01 93 01 00 F4 03 04 00 A4 30 BB 66 B6 04 01 00 00 DC 5D 87 74 91 90 45 A3 [16:30:43]CommunicateWithHost err = 0 [16:30:43]CheckOFDResponse [16:30:43]1017 (14) - 77093643461234 [16:30:43]1041 (16) - 0000000000875058 [16:30:43]1040 (4) - 103169 [16:30:43]1012 (4) - 13.08.2024 10:08 [16:30:43]1206 (1) - 0 [16:30:43]OFD Sender: Remove packet 103169 [16:30:43]ProducePacketName [16:30:43]name=ofd_packets/00103169 [16:30:43]NVStorageDeleteData [16:30:43]Write to MH i2c: 01 00 00 FE 03 01 [16:30:43]Write i2c OK [16:30:43]MH_I2C_Read... [16:30:43]Read from MH i2c: 01 [16:30:43]MH_I2C_Read... [16:30:43]Read from MH i2c: 01 07 00 [16:30:43]MH_I2C_Read... [16:30:43]Read from MH i2c: 01 07 00 FE 03 00 00 00 00 00 E7 0C FB [16:30:43]RasterBufferAndPrint [16:30:43]line [16:30:43]line [16:30:43]line [16:30:43]line [16:30:43]line [16:30:43]written 0, free lines is 3309 [16:30:43]MH_Cut [16:30:43]Write to MH i2c: D1 01 00 05 04 01 DB [16:30:43]Write i2c OK [16:30:43]MH_I2C_Read... [16:30:43]Read from MH i2c: D1 [16:30:43]MH_I2C_Read... [16:30:43]Read from MH i2c: D1 01 00 [16:30:43]MH_I2C_Read... [16:30:43]Read from MH i2c: D1 01 00 05 04 00 DA [16:30:43]Write to MH i2c: 01 00 00 06 04 0A [16:30:43]Write i2c OK [16:30:43]MH_I2C_Read... [16:30:43]OFD Sender: No OFD packet to send [16:30:44]*** Cut start [16:30:44]*** Purtial cut [16:30:44]*** Stage 1: CUTSNS_PIN = 1 [16:30:44]Read from MH i2c: 01 [16:30:44]MH_I2C_Read... [16:30:44]*** Stop cut motor [16:30:44]*** Cut end [16:30:44]Read from MH i2c: 01 07 00 [16:30:44]MH_I2C_Read... [16:30:44]Read from MH i2c: 01 07 00 06 04 00 00 00 00 00 FF 0F 1F [16:30:44]process_action close_receipt done [16:30:44]requested_data is exist [16:30:44]produce_requested_data [16:30:44]requested_item fm.sn is exist - process it [16:30:44]wFMCommunicate request_size=4 [16:30:44]MH_SAM_APDU [16:30:44]CAPDU: 80 11 00 00 [16:30:44]Write to MH i2c: E2 08 00 07 04 80 11 00 00 00 00 00 00 85 [16:30:44]Write i2c OK [16:30:44]MH_I2C_Read... [16:30:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:44]Read from MH i2c: E2 [16:30:44]MH_I2C_Read... [16:30:44]Read from MH i2c: E2 17 00 [16:30:44]MH_I2C_Read... [16:30:44]Read from MH i2c: E2 17 00 07 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 D9 [16:30:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [16:30:44]wFMCommunicate OK [16:30:44]requested_item fd.num is exist - process it [16:30:44]SAM_PROTO_GetFieldsCounters [16:30:44]wFMCommunicate request_size=4 [16:30:44]MH_SAM_APDU [16:30:44]CAPDU: 80 13 00 00 [16:30:44]Write to MH i2c: E2 08 00 08 04 80 13 00 00 00 00 00 00 88 [16:30:44]Write i2c OK [16:30:44]MH_I2C_Read... [16:30:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:30:44]Read from MH i2c: E2 [16:30:44]MH_I2C_Read... [16:30:44]Read from MH i2c: E2 62 00 [16:30:44]MH_I2C_Read... [16:30:44]Read from MH i2c: E2 62 00 08 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 01 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [16:30: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 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 01 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:30:44]wFMCommunicate OK [16:30:44]SAM_PROTO_GetFieldsCounters done [16:30:44]requested_item shift.num is exist - process it [16:30:44]requested_item shift.opened is exist - process it [16:30:44]req_shift_opened [16:30:44]FM_GetShiftState [16:30:44]SAM_PROTO_GetShiftState [16:30:44]wFMCommunicate request_size=4 [16:30:44]MH_SAM_APDU [16:30:44]CAPDU: 80 13 01 00 [16:30:44]Write to MH i2c: E2 08 00 09 04 80 13 01 00 00 00 00 00 8A [16:30:44]Write i2c OK [16:30:44]MH_I2C_Read... [16:30:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:44]Read from MH i2c: E2 [16:30:44]MH_I2C_Read... [16:30:44]Read from MH i2c: E2 0E 00 [16:30:44]MH_I2C_Read... [16:30:44]Read from MH i2c: E2 0E 00 09 04 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 A8 [16:30:44]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [16:30:44]wFMCommunicate OK [16:30:44]SAM_PROTO_GetShiftState done [16:30:44]FM_GetShiftState done [16:30:44]req_shift_opened done [16:30:44]requested_item shift.open_date is exist - process it [16:30:44]req_shift_open_date [16:30:44]req_shift_open_date done [16:30:44]produce_requested_data done [16:30:44]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103169,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [16:30:44]process_action_free close_receipt [16:30:44]json_value_free [16:30:44]json_value_free done [16:30:44]process_json_proto returns [16:30:44]Send response to host [16:30:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103169,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [16:30:44]free response buf [16:30:44]execute_script done [16:30:44]execute_script returns [16:30:44]free content buf [16:30:44]Sock 9.Close socket [16:30:44]Sock 9.Thread stoped [16:30:48]OFD Sender: No OFD packet to send [16:30:54]OFD Sender: No OFD packet to send [16:30:59]OFD Sender: No OFD packet to send [16:31:04]OFD Sender: No OFD packet to send [16:31:09]OFD Sender: No OFD packet to send [16:31:14]OFD Sender: No OFD packet to send [16:31:19]OFD Sender: No OFD packet to send [16:31:24]OFD Sender: No OFD packet to send [16:31:29]OFD Sender: No OFD packet to send [16:31:34]OFD Sender: No OFD packet to send [16:31:39]OFD Sender: No OFD packet to send [16:31:44]OFD Sender: No OFD packet to send [16:31:49]OFD Sender: No OFD packet to send [16:31:54]OFD Sender: No OFD packet to send [16:31:59]OFD Sender: No OFD packet to send [16:32:04]OFD Sender: No OFD packet to send [16:32:09]OFD Sender: No OFD packet to send [16:32:14]OFD Sender: No OFD packet to send [16:32:19]OFD Sender: No OFD packet to send [16:32:24]OFD Sender: No OFD packet to send [16:32:29]OFD Sender: No OFD packet to send [16:32:34]OFD Sender: No OFD packet to send [16:32:39]OFD Sender: No OFD packet to send [16:32:44]OFD Sender: No OFD packet to send [16:32:49]OFD Sender: No OFD packet to send [16:32:54]OFD Sender: No OFD packet to send [16:32:59]OFD Sender: No OFD packet to send [16:33:04]OFD Sender: No OFD packet to send [16:33:09]OFD Sender: No OFD packet to send [16:33:14]OFD Sender: No OFD packet to send [16:33:19]OFD Sender: No OFD packet to send [16:33:24]OFD Sender: No OFD packet to send [16:33:29]OFD Sender: No OFD packet to send [16:33:34]OFD Sender: No OFD packet to send [16:33:38]accept exits with 7 [16:33:38]New connection [16:33:38]New thread 3067260260 created [16:33:38]Thread 3067116900 joined [16:33:38]Waiting for new connection... [16:33:38] Sock 7.Parse request [16:33:38]Sock 7.Check first char [16:33:38]Sock 7.First char is OK [16:33:38]request: POST /json_proto HTTP/1.0 [16:33:38]Method: POST [16:33:38]URL: /json_proto [16:33:38]Method is POST - this is cgi request [16:33:38]url: /json_proto [16:33:38]query_string will be loaded in cgi processing [16:33:38]execute_cgi json_proto POST (null) [16:33:38]execute_cgi path=json_proto method=POST [16:33:38]POST find Content-Length [16:33:38]Host: 172.17.58.3:8080 [16:33:38]Content-Length: 676 [16:33:38]Content-Type: application/json [16:33:38] [16:33:38]POST finish read [16:33:38]Found Content-Length = 676 [16:33:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160801", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 3.040, "sum" : 200.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:33:38]execute_script... [16:33:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160801", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 3.040, "sum" : 200.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:33:38]POST & json_proto [16:33:38]process_json_proto [16:33:38]json parsed OK: [16:33:38]protocol is kg_v1.0 [16:33:38]action value=close_receipt [16:33:38]process_action close_receipt [16:33:38]cmd_close_receipt [16:33:38]MH_GetDate [16:33:38]Write to MH i2c: F0 00 00 0A 04 FD [16:33:38]Write i2c OK [16:33:38]MH_I2C_Read... [16:33:38]Read from MH i2c: F0 [16:33:38]MH_I2C_Read... [16:33:38]Read from MH i2c: F0 09 00 [16:33:38]MH_I2C_Read... [16:33:38]Read from MH i2c: F0 09 00 0A 04 00 E3 8A BB 66 DC E4 6D 64 25 [16:33:38]GetLastDocTimeStamp 1723566641 [16:33:38]current date 1723566819 [16:33:38]FM_GetShiftState [16:33:38]SAM_PROTO_GetShiftState [16:33:38]wFMCommunicate request_size=4 [16:33:38]MH_SAM_APDU [16:33:38]CAPDU: 80 13 01 00 [16:33:38]Write to MH i2c: E2 08 00 0B 04 80 13 01 00 00 00 00 00 8C [16:33:38]Write i2c OK [16:33:38]MH_I2C_Read... [16:33:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:38]Read from MH i2c: E2 [16:33:38]MH_I2C_Read... [16:33:38]Read from MH i2c: E2 0E 00 [16:33:38]MH_I2C_Read... [16:33:38]Read from MH i2c: E2 0E 00 0B 04 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 AA [16:33:38]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [16:33:38]wFMCommunicate OK [16:33:38]SAM_PROTO_GetShiftState done [16:33:38]FM_GetShiftState done [16:33:38]opened in 1723506770 [16:33:38]opened+sec_in_day 1723593170 [16:33:38]quantity*price = 20033 [16:33:38]sum+1 = 20035 [16:33:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.27 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 81 13.08.2024 16:33 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103170 ФПД: 240614014416066 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T163339&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103170&fm=240614014416066&tin=02508201610067®Number=0000000000092718&sum=20000 [16:33:39]StoreToDocumentArchive [16:33:39]shift 464 fd 103170 [16:33:39]save to /storage/0464/doc_00103170 [16:33:39]save last doc name /storage/0464/doc_00103170 to /storage/kkm_last_doc_name [16:33:39]save OK [16:33:39]Clear old archive folders... [16:33:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:33:39]tlvbuf is 0024B100 [16:33:39]SAM_PROTO_ClearQueue [16:33:39]wFMCommunicate request_size=4 [16:33:39]MH_SAM_APDU [16:33:39]CAPDU: 80 09 00 00 [16:33:39]Write to MH i2c: E2 08 00 18 04 80 09 00 00 00 00 00 00 8E [16:33:39]Write i2c OK [16:33:39]MH_I2C_Read... [16:33:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:33:39]Read from MH i2c: E2 [16:33:39]MH_I2C_Read... [16:33:39]Read from MH i2c: E2 03 00 [16:33:39]MH_I2C_Read... [16:33:39]Read from MH i2c: E2 03 00 18 04 00 90 00 90 [16:33:39]RAPDU: 90 00 [16:33:39]wFMCommunicate OK [16:33:39]SAM_PROTO_ClearQueue done [16:33:39]KKMCreateOFDPacket [16:33:39]OFDProtocolAddRootSTLVToBuf [16:33:39]FM_MakeSignedData [16:33:39]FM_MakeSignedData [16:33:39]SAM_PROTO_SignData [16:33:39]wFMCommunicate request_size=4 [16:33:39]MH_SAM_APDU [16:33:39]CAPDU: 80 0D 01 02 [16:33:39]Write to MH i2c: E2 08 00 19 04 80 0D 01 02 00 00 00 00 96 [16:33:39]Write i2c OK [16:33:39]MH_I2C_Read... [16:33:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:33:39]Read from MH i2c: E2 [16:33:39]MH_I2C_Read... [16:33:39]Read from MH i2c: E2 03 00 [16:33:39]MH_I2C_Read... [16:33:39]Read from MH i2c: E2 03 00 19 04 00 90 00 91 [16:33:39]RAPDU: 90 00 [16:33:39]wFMCommunicate OK [16:33:39]wFMCommunicate request_size=255 [16:33:39]MH_SAM_APDU [16:33:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 E3 8A BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 02 93 01 00 35 04 06 00 DA [16:33:39]Write to MH i2c: E2 02 01 1A 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 E0 0B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 E3 8A BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 02 93 01 00 35 04 06 00 DA 00 00 F9 [16:33:39]Write i2c OK [16:33:39]MH_I2C_Read... [16:33:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:40]Read from MH i2c: E2 [16:33:40]MH_I2C_Read... [16:33:40]Read from MH i2c: E2 03 00 [16:33:40]MH_I2C_Read... [16:33:40]Read from MH i2c: E2 03 00 1A 04 00 90 00 92 [16:33:40]RAPDU: 90 00 [16:33:40]wFMCommunicate OK [16:33:40]wFMCommunicate request_size=10 [16:33:40]MH_SAM_APDU [16:33:40]CAPDU: 80 0D 02 02 05 D6 50 DB 74 C2 [16:33:40]Write to MH i2c: E2 0D 00 1B 04 80 0D 02 02 05 00 D6 50 DB 74 C2 00 00 DA [16:33:40]Write i2c OK [16:33:40]MH_I2C_Read... [16:33:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:40]Read from MH i2c: E2 [16:33:40]MH_I2C_Read... [16:33:40]Read from MH i2c: E2 03 00 [16:33:40]MH_I2C_Read... [16:33:40]Read from MH i2c: E2 03 00 1B 04 00 90 00 93 [16:33:40]RAPDU: 90 00 [16:33:40]wFMCommunicate OK [16:33:40]wFMCommunicate request_size=4 [16:33:40]MH_SAM_APDU [16:33:40]CAPDU: 80 0D 03 02 [16:33:40]Write to MH i2c: E2 08 00 1C 04 80 0D 03 02 00 00 00 00 9B [16:33:40]Write i2c OK [16:33:40]MH_I2C_Read... [16:33:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:33:40]Read from MH i2c: E2 [16:33:40]MH_I2C_Read... [16:33:40]Read from MH i2c: E2 0B 00 [16:33:40]MH_I2C_Read... [16:33:40]Read from MH i2c: E2 0B 00 1C 04 00 DB 2E E2 DD 8C 09 DA FE 90 00 D1 [16:33:40]RAPDU: DB 2E E2 DD 8C 09 DA FE 90 00 [16:33:40]wFMCommunicate OK [16:33:40]SAM_PROTO_SignData done [16:33:40]FM_MakeSignedData done [16:33:40]CreateOFDProtocolMessage [16:33:40]wFMCommunicate request_size=4 [16:33:40]MH_SAM_APDU [16:33:40]CAPDU: 80 11 00 00 [16:33:40]Write to MH i2c: E2 08 00 1D 04 80 11 00 00 00 00 00 00 9B [16:33:40]Write i2c OK [16:33:40]MH_I2C_Read... [16:33:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:40]Read from MH i2c: E2 [16:33:40]MH_I2C_Read... [16:33:40]Read from MH i2c: E2 17 00 [16:33:40]MH_I2C_Read... [16:33:40]Read from MH i2c: E2 17 00 1D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 EF [16:33:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [16:33:40]wFMCommunicate OK [16:33:40]CreateOFDProtocolMessage done [16:33:40]OFDSenderStorePacket 103170 [16:33:40]StoreOFDPacket docnum=103170 [16:33:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 EA D1 07 01 3F 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 E0 0B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 E3 8A BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 02 93 01 00 35 04 06 00 DA D6 50 DB 74 C2 DB 2E E2 DD 8C 09 DA FE [16:33:40]CheckFolder [16:33:40]dirname=/storage/ofd_packets [16:33:40]CheckFolder done [16:33:40]ProducePacketName [16:33:40]name=ofd_packets/00103170 [16:33:40]NVStorageSaveData ofd_packets/00103170 [16:33:40]File name is /storage/ofd_packets/00103170 [16:33:40]Write 301 bytes [16:33:40]NVStorageSaveData done [16:33:40]OFDSenderStorePacket done [16:33:40]KKMCreateOFDPacket done [16:33:40]NVStorageSaveData kkm_last_timestamp [16:33:40]File name is /storage/kkm_last_timestamp [16:33:40]Write 4 bytes [16:33:40]NVStorageSaveData done [16:33:40]ExternCall_PrintAddStr [16:33:40]wPrintStart [16:33:40]Write to MH i2c: 01 00 00 1E 04 22 [16:33:40]Write i2c OK [16:33:40]MH_I2C_Read... [16:33:40]Read from MH i2c: 01 [16:33:40]MH_I2C_Read... [16:33:40]Read from MH i2c: 01 07 00 [16:33:40]MH_I2C_Read... [16:33:40]Read from MH i2c: 01 07 00 1E 04 00 00 00 00 00 FF 0F 37 [16:33:40]RasterBufferAndPrint [16:33:40]line Счет N : (1)160801 [16:33:40]line ИНН: 02508201610067 [16:33:40]line Контрольно-Кассовый Чек [16:33:40]line ПРОДАЖА [16:33:40]line ТРК (МРК, ГНК) : 3 [16:33:40]line Товар: 2710124130 [16:33:40]line Аи-92-К-5 [16:33:40]line 3.040 * 65.90 [16:33:40]line = 200.34 [16:33:40]line НДС 12% НСП 1% [16:33:40]line > о реализуемом товаре [16:33:40]line ОКРУГЛЕНИЕ: -0.34 [16:33:40]line ИТОГО: 200.00 [16:33:40]line Внесено: 200.00 [16:33:40]line СДАЧА: 0.00 [16:33:40]line НСП 1% : 1.77 [16:33:40]line НДС 12% : 21.27 [16:33:40]line Наличными: 200.00 [16:33:40]line Безнал.: 0.00 [16:33:40]line Место: АЗС № 38 "Партнер Нефть" [16:33:40]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [16:33:40]line СНО: Общий режим [16:33:40]line Чек 81 13.08.2024 16:33 [16:33:40]line Смена: 464 ФФД: 1.0 [16:33:40]line ЗНМ: 0300000126 [16:33:40]line РНМ: 0000000000092718 [16:33:40]line Версия ККМ: 001 [16:33:40]line ФМ: 0000000000875058 [16:33:40]line ФД: 103170 [16:33:40]line ФПД: 240614014416066 [16:33:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T163339&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103170&fm=240614014416066&tin=02508201610067®Number=0000000000092718&sum=20000 [16:33:40]OFD Sender: Processing packet 103170 [packets to send 69, broken 68] [16:33:40]ProducePacketName [16:33:40]name=ofd_packets/00103170 [16:33:40]OFD Sender: To server: pG, [16:33:40]CommunicateWithHost lk.salyk.kg:30040 [16:33:40]ConnectInit lk.salyk.kg [16:33:40]written 0, free lines is 4095 [16:33:40]Connected sock=10 [16:33:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 EA D1 07 01 3F 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 E0 0B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 E3 8A BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 02 93 01 00 35 04 06 00 DA D6 50 DB 74 C2 DB 2E E2 DD 8C 09 DA FE [16:33:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 4D 58 47 00 C9 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 02 93 01 00 F4 03 04 00 55 31 BB 66 B6 04 01 00 00 D0 D5 D2 17 C4 31 72 1C [16:33:40]CommunicateWithHost err = 0 [16:33:40]CheckOFDResponse [16:33:40]1017 (14) - 77093643461234 [16:33:40]1041 (16) - 0000000000875058 [16:33:40]1040 (4) - 103170 [16:33:40]1012 (4) - 13.08.2024 10:11 [16:33:40]1206 (1) - 0 [16:33:40]OFD Sender: Remove packet 103170 [16:33:40]ProducePacketName [16:33:40]name=ofd_packets/00103170 [16:33:40]NVStorageDeleteData [16:33:41]Write to MH i2c: 01 00 00 49 04 4D [16:33:41]Write i2c OK [16:33:41]MH_I2C_Read... [16:33:41]Read from MH i2c: 01 [16:33:41]MH_I2C_Read... [16:33:41]Read from MH i2c: 01 07 00 [16:33:41]MH_I2C_Read... [16:33:41]Read from MH i2c: 01 07 00 49 04 00 00 00 00 00 DF 0C 3F [16:33:41]RasterBufferAndPrint [16:33:41]line [16:33:41]line [16:33:41]line [16:33:41]line [16:33:41]line [16:33:41]written 0, free lines is 3301 [16:33:41]MH_Cut [16:33:41]Write to MH i2c: D1 01 00 50 04 01 26 [16:33:41]Write i2c OK [16:33:41]MH_I2C_Read... [16:33:41]Read from MH i2c: D1 [16:33:41]MH_I2C_Read... [16:33:41]Read from MH i2c: D1 01 00 [16:33:41]MH_I2C_Read... [16:33:41]Read from MH i2c: D1 01 00 50 04 00 25 [16:33:41]Write to MH i2c: 01 00 00 51 04 55 [16:33:41]Write i2c OK [16:33:41]MH_I2C_Read... [16:33:41]OFD Sender: No OFD packet to send [16:33:41]*** Cut start [16:33:41]*** Purtial cut [16:33:41]*** CUTSNS_PIN = 0 [16:33:42]*** Stage 1: CUTSNS_PIN = 1 [16:33:43]Read from MH i2c: 01 [16:33:43]MH_I2C_Read... [16:33:43]*** Stop cut motor [16:33:43]*** Cut end [16:33:43]Read from MH i2c: 01 07 00 [16:33:43]MH_I2C_Read... [16:33:43]Read from MH i2c: 01 07 00 51 04 00 00 00 00 00 FF 0F 6A [16:33:43]process_action close_receipt done [16:33:43]requested_data is exist [16:33:43]produce_requested_data [16:33:43]requested_item fm.sn is exist - process it [16:33:43]wFMCommunicate request_size=4 [16:33:43]MH_SAM_APDU [16:33:43]CAPDU: 80 11 00 00 [16:33:43]Write to MH i2c: E2 08 00 52 04 80 11 00 00 00 00 00 00 D0 [16:33:43]Write i2c OK [16:33:43]MH_I2C_Read... [16:33:43]Read from MH i2c: E2 [16:33:43]MH_I2C_Read... [16:33:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:43]Read from MH i2c: E2 17 00 [16:33:43]MH_I2C_Read... [16:33:43]Read from MH i2c: E2 17 00 52 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 24 [16:33:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [16:33:43]wFMCommunicate OK [16:33:43]requested_item fd.num is exist - process it [16:33:43]SAM_PROTO_GetFieldsCounters [16:33:43]wFMCommunicate request_size=4 [16:33:43]MH_SAM_APDU [16:33:43]CAPDU: 80 13 00 00 [16:33:43]Write to MH i2c: E2 08 00 53 04 80 13 00 00 00 00 00 00 D3 [16:33:43]Write i2c OK [16:33:43]MH_I2C_Read... [16:33:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:33:44]Read from MH i2c: E2 [16:33:44]MH_I2C_Read... [16:33:44]Read from MH i2c: E2 62 00 [16:33:44]MH_I2C_Read... [16:33:44]Read from MH i2c: E2 62 00 53 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 02 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [16:33: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 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 02 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:33:44]wFMCommunicate OK [16:33:44]SAM_PROTO_GetFieldsCounters done [16:33:44]requested_item shift.num is exist - process it [16:33:44]requested_item shift.opened is exist - process it [16:33:44]req_shift_opened [16:33:44]FM_GetShiftState [16:33:44]SAM_PROTO_GetShiftState [16:33:44]wFMCommunicate request_size=4 [16:33:44]MH_SAM_APDU [16:33:44]CAPDU: 80 13 01 00 [16:33:44]Write to MH i2c: E2 08 00 54 04 80 13 01 00 00 00 00 00 D5 [16:33:44]Write i2c OK [16:33:44]MH_I2C_Read... [16:33:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:44]Read from MH i2c: E2 [16:33:44]MH_I2C_Read... [16:33:44]Read from MH i2c: E2 0E 00 [16:33:44]MH_I2C_Read... [16:33:44]Read from MH i2c: E2 0E 00 54 04 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 F3 [16:33:44]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [16:33:44]wFMCommunicate OK [16:33:44]SAM_PROTO_GetShiftState done [16:33:44]FM_GetShiftState done [16:33:44]req_shift_opened done [16:33:44]requested_item shift.open_date is exist - process it [16:33:44]req_shift_open_date [16:33:44]req_shift_open_date done [16:33:44]produce_requested_data done [16:33:44]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103170,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [16:33:44]process_action_free close_receipt [16:33:44]json_value_free [16:33:44]json_value_free done [16:33:44]process_json_proto returns [16:33:44]Send response to host [16:33:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103170,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [16:33:44]free response buf [16:33:44]execute_script done [16:33:44]execute_script returns [16:33:44]free content buf [16:33:44]Sock 7.Close socket [16:33:44]Sock 7.Thread stoped [16:33:46]OFD Sender: No OFD packet to send [16:33:51]OFD Sender: No OFD packet to send [16:33:56]OFD Sender: No OFD packet to send [16:34:01]OFD Sender: No OFD packet to send [16:34:06]OFD Sender: No OFD packet to send [16:34:11]OFD Sender: No OFD packet to send [16:34:16]OFD Sender: No OFD packet to send [16:34:21]OFD Sender: No OFD packet to send [16:34:26]OFD Sender: No OFD packet to send [16:34:31]OFD Sender: No OFD packet to send [16:34:36]OFD Sender: No OFD packet to send [16:34:41]OFD Sender: No OFD packet to send [16:34:46]OFD Sender: No OFD packet to send [16:34:51]OFD Sender: No OFD packet to send [16:34:56]OFD Sender: No OFD packet to send [16:35:01]OFD Sender: No OFD packet to send [16:35:06]OFD Sender: No OFD packet to send [16:35:11]OFD Sender: No OFD packet to send [16:35:16]OFD Sender: No OFD packet to send [16:35:21]OFD Sender: No OFD packet to send [16:35:26]OFD Sender: No OFD packet to send [16:35:31]OFD Sender: No OFD packet to send [16:35:36]OFD Sender: No OFD packet to send [16:35:41]OFD Sender: No OFD packet to send [16:35:46]OFD Sender: No OFD packet to send [16:35:51]OFD Sender: No OFD packet to send [16:35:56]OFD Sender: No OFD packet to send [16:36:01]OFD Sender: No OFD packet to send [16:36:06]OFD Sender: No OFD packet to send [16:36:11]OFD Sender: No OFD packet to send [16:36:16]OFD Sender: No OFD packet to send [16:36:21]OFD Sender: No OFD packet to send [16:36:26]OFD Sender: No OFD packet to send [16:36:31]OFD Sender: No OFD packet to send [16:36:36]OFD Sender: No OFD packet to send [16:36:41]OFD Sender: No OFD packet to send [16:36:46]OFD Sender: No OFD packet to send [16:36:51]OFD Sender: No OFD packet to send [16:36:56]OFD Sender: No OFD packet to send [16:37:01]OFD Sender: No OFD packet to send [16:37:06]OFD Sender: No OFD packet to send [16:37:11]OFD Sender: No OFD packet to send [16:37:16]OFD Sender: No OFD packet to send [16:37:21]OFD Sender: No OFD packet to send [16:37:26]OFD Sender: No OFD packet to send [16:37:31]OFD Sender: No OFD packet to send [16:37:36]OFD Sender: No OFD packet to send [16:37:41]OFD Sender: No OFD packet to send [16:37:46]OFD Sender: No OFD packet to send [16:37:51]OFD Sender: No OFD packet to send [16:37:56]OFD Sender: No OFD packet to send [16:38:01]OFD Sender: No OFD packet to send [16:38:06]OFD Sender: No OFD packet to send [16:38:11]OFD Sender: No OFD packet to send [16:38:16]OFD Sender: No OFD packet to send [16:38:21]OFD Sender: No OFD packet to send [16:38:26]OFD Sender: No OFD packet to send [16:38:31]OFD Sender: No OFD packet to send [16:38:36]OFD Sender: No OFD packet to send [16:38:41]OFD Sender: No OFD packet to send [16:38:46]OFD Sender: No OFD packet to send [16:38:51]OFD Sender: No OFD packet to send [16:38:56]OFD Sender: No OFD packet to send [16:39:01]OFD Sender: No OFD packet to send [16:39:06]OFD Sender: No OFD packet to send [16:39:11]OFD Sender: No OFD packet to send [16:39:16]OFD Sender: No OFD packet to send [16:39:21]OFD Sender: No OFD packet to send [16:39:26]OFD Sender: No OFD packet to send [16:39:31]OFD Sender: No OFD packet to send [16:39:36]OFD Sender: No OFD packet to send [16:39:41]OFD Sender: No OFD packet to send [16:39:46]OFD Sender: No OFD packet to send [16:39:51]OFD Sender: No OFD packet to send [16:39:56]OFD Sender: No OFD packet to send [16:40:01]OFD Sender: No OFD packet to send [16:40:06]OFD Sender: No OFD packet to send [16:40:11]OFD Sender: No OFD packet to send [16:40:16]OFD Sender: No OFD packet to send [16:40:21]OFD Sender: No OFD packet to send [16:40:26]OFD Sender: No OFD packet to send [16:40:31]OFD Sender: No OFD packet to send [16:40:36]OFD Sender: No OFD packet to send [16:40:41]OFD Sender: No OFD packet to send [16:40:46]OFD Sender: No OFD packet to send [16:40:51]OFD Sender: No OFD packet to send [16:40:56]OFD Sender: No OFD packet to send [16:41:01]OFD Sender: No OFD packet to send [16:41:06]OFD Sender: No OFD packet to send [16:41:11]OFD Sender: No OFD packet to send [16:41:16]OFD Sender: No OFD packet to send [16:41:21]OFD Sender: No OFD packet to send [16:41:26]OFD Sender: No OFD packet to send [16:41:31]OFD Sender: No OFD packet to send [16:41:36]OFD Sender: No OFD packet to send [16:41:40]accept exits with 9 [16:41:40]New connection [16:41:40]New thread 3067116900 created [16:41:40]Thread 3067260260 joined [16:41:40]Waiting for new connection... [16:41:40] Sock 9.Parse request [16:41:40]Sock 9.Check first char [16:41:40]Sock 9.First char is OK [16:41:40]request: POST /json_proto HTTP/1.0 [16:41:40]Method: POST [16:41:40]URL: /json_proto [16:41:40]Method is POST - this is cgi request [16:41:40]url: /json_proto [16:41:40]query_string will be loaded in cgi processing [16:41:40]execute_cgi json_proto POST (null) [16:41:40]execute_cgi path=json_proto method=POST [16:41:40]POST find Content-Length [16:41:40]Host: 172.17.58.3:8080 [16:41:40]Content-Length: 676 [16:41:40]Content-Type: application/json [16:41:40] [16:41:40]POST finish read [16:41:40]Found Content-Length = 676 [16:41:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160802", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:41:40]execute_script... [16:41: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)160802", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:41:40]POST & json_proto [16:41:40]process_json_proto [16:41:40]json parsed OK: [16:41:40]protocol is kg_v1.0 [16:41:40]action value=close_receipt [16:41:40]process_action close_receipt [16:41:40]cmd_close_receipt [16:41:40]MH_GetDate [16:41:40]Write to MH i2c: F0 00 00 55 04 48 [16:41:40]Write i2c OK [16:41:40]MH_I2C_Read... [16:41:40]Read from MH i2c: F0 [16:41:40]MH_I2C_Read... [16:41:40]Read from MH i2c: F0 09 00 [16:41:40]MH_I2C_Read... [16:41:40]Read from MH i2c: F0 09 00 55 04 00 C4 8C BB 66 DC E4 6D 64 53 [16:41:40]GetLastDocTimeStamp 1723566819 [16:41:40]current date 1723567300 [16:41:40]FM_GetShiftState [16:41:40]SAM_PROTO_GetShiftState [16:41:40]wFMCommunicate request_size=4 [16:41:40]MH_SAM_APDU [16:41:40]CAPDU: 80 13 01 00 [16:41:40]Write to MH i2c: E2 08 00 56 04 80 13 01 00 00 00 00 00 D7 [16:41:40]Write i2c OK [16:41:40]MH_I2C_Read... [16:41:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:40]Read from MH i2c: E2 [16:41:40]MH_I2C_Read... [16:41:40]Read from MH i2c: E2 0E 00 [16:41:40]MH_I2C_Read... [16:41:40]Read from MH i2c: E2 0E 00 56 04 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 F5 [16:41:40]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [16:41:40]wFMCommunicate OK [16:41:40]SAM_PROTO_GetShiftState done [16:41:40]FM_GetShiftState done [16:41:40]opened in 1723506770 [16:41:40]opened+sec_in_day 1723593170 [16:41:40]quantity*price = 50018 [16:41:40]sum+1 = 50019 [16:41:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 82 13.08.2024 16:41 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103171 ФПД: 85343861098479 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T164140&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103171&fm=85343861098479&tin=02508201610067®Number=0000000000092718&sum=50000 [16:41:41]StoreToDocumentArchive [16:41:41]shift 464 fd 103171 [16:41:41]save to /storage/0464/doc_00103171 [16:41:41]save last doc name /storage/0464/doc_00103171 to /storage/kkm_last_doc_name [16:41:41]save OK [16:41:41]Clear old archive folders... [16:41:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:41:41]tlvbuf is 0024F180 [16:41:41]SAM_PROTO_ClearQueue [16:41:41]wFMCommunicate request_size=4 [16:41:41]MH_SAM_APDU [16:41:41]CAPDU: 80 09 00 00 [16:41:41]Write to MH i2c: E2 08 00 63 04 80 09 00 00 00 00 00 00 D9 [16:41:41]Write i2c OK [16:41:41]MH_I2C_Read... [16:41:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:41:41]Read from MH i2c: E2 [16:41:41]MH_I2C_Read... [16:41:41]Read from MH i2c: E2 03 00 [16:41:41]MH_I2C_Read... [16:41:41]Read from MH i2c: E2 03 00 63 04 00 90 00 DB [16:41:41]RAPDU: 90 00 [16:41:41]wFMCommunicate OK [16:41:41]SAM_PROTO_ClearQueue done [16:41:41]KKMCreateOFDPacket [16:41:41]OFDProtocolAddRootSTLVToBuf [16:41:41]FM_MakeSignedData [16:41:41]FM_MakeSignedData [16:41:41]SAM_PROTO_SignData [16:41:41]wFMCommunicate request_size=4 [16:41:41]MH_SAM_APDU [16:41:41]CAPDU: 80 0D 01 02 [16:41:41]Write to MH i2c: E2 08 00 64 04 80 0D 01 02 00 00 00 00 E1 [16:41:41]Write i2c OK [16:41:41]MH_I2C_Read... [16:41:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:41:41]Read from MH i2c: E2 [16:41:41]MH_I2C_Read... [16:41:41]Read from MH i2c: E2 03 00 [16:41:41]MH_I2C_Read... [16:41:41]Read from MH i2c: E2 03 00 64 04 00 90 00 DC [16:41:41]RAPDU: 90 00 [16:41:41]wFMCommunicate OK [16:41:41]wFMCommunicate request_size=255 [16:41:41]MH_SAM_APDU [16:41: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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 C4 8C BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 03 93 01 00 35 04 06 00 4D [16:41:41]Write to MH i2c: E2 02 01 65 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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 C4 8C BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 03 93 01 00 35 04 06 00 4D 00 00 DB [16:41:41]Write i2c OK [16:41:41]MH_I2C_Read... [16:41:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:41]Read from MH i2c: E2 [16:41:41]MH_I2C_Read... [16:41:41]Read from MH i2c: E2 03 00 [16:41:41]MH_I2C_Read... [16:41:41]Read from MH i2c: E2 03 00 65 04 00 90 00 DD [16:41:41]RAPDU: 90 00 [16:41:41]wFMCommunicate OK [16:41:41]wFMCommunicate request_size=10 [16:41:41]MH_SAM_APDU [16:41:41]CAPDU: 80 0D 02 02 05 9E AA 86 47 EF [16:41:41]Write to MH i2c: E2 0D 00 66 04 80 0D 02 02 05 00 9E AA 86 47 EF 00 00 F2 [16:41:41]Write i2c OK [16:41:41]MH_I2C_Read... [16:41:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:41]Read from MH i2c: E2 [16:41:41]MH_I2C_Read... [16:41:41]Read from MH i2c: E2 03 00 [16:41:41]MH_I2C_Read... [16:41:41]Read from MH i2c: E2 03 00 66 04 00 90 00 DE [16:41:41]RAPDU: 90 00 [16:41:41]wFMCommunicate OK [16:41:41]wFMCommunicate request_size=4 [16:41:41]MH_SAM_APDU [16:41:41]CAPDU: 80 0D 03 02 [16:41:41]Write to MH i2c: E2 08 00 67 04 80 0D 03 02 00 00 00 00 E6 [16:41:41]Write i2c OK [16:41:41]MH_I2C_Read... [16:41:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:41:41]Read from MH i2c: E2 [16:41:41]MH_I2C_Read... [16:41:41]Read from MH i2c: E2 0B 00 [16:41:41]MH_I2C_Read... [16:41:41]Read from MH i2c: E2 0B 00 67 04 00 4A B8 3C 17 88 A7 17 D2 90 00 54 [16:41:41]RAPDU: 4A B8 3C 17 88 A7 17 D2 90 00 [16:41:41]wFMCommunicate OK [16:41:41]SAM_PROTO_SignData done [16:41:41]FM_MakeSignedData done [16:41:41]CreateOFDProtocolMessage [16:41:41]wFMCommunicate request_size=4 [16:41:41]MH_SAM_APDU [16:41:41]CAPDU: 80 11 00 00 [16:41:41]Write to MH i2c: E2 08 00 68 04 80 11 00 00 00 00 00 00 E6 [16:41:41]Write i2c OK [16:41:41]MH_I2C_Read... [16:41:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:41]Read from MH i2c: E2 [16:41:41]MH_I2C_Read... [16:41:41]Read from MH i2c: E2 17 00 [16:41:41]MH_I2C_Read... [16:41:41]Read from MH i2c: E2 17 00 68 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 3A [16:41:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [16:41:41]wFMCommunicate OK [16:41:41]CreateOFDProtocolMessage done [16:41:41]OFDSenderStorePacket 103171 [16:41:41]StoreOFDPacket docnum=103171 [16:41:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 BC 81 07 01 15 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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 C4 8C BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 03 93 01 00 35 04 06 00 4D 9E AA 86 47 EF 4A B8 3C 17 88 A7 17 D2 [16:41:41]CheckFolder [16:41:41]dirname=/storage/ofd_packets [16:41:41]CheckFolder done [16:41:41]ProducePacketName [16:41:41]name=ofd_packets/00103171 [16:41:41]NVStorageSaveData ofd_packets/00103171 [16:41:41]File name is /storage/ofd_packets/00103171 [16:41:41]Write 301 bytes [16:41:41]NVStorageSaveData done [16:41:41]OFDSenderStorePacket done [16:41:41]KKMCreateOFDPacket done [16:41:41]NVStorageSaveData kkm_last_timestamp [16:41:41]File name is /storage/kkm_last_timestamp [16:41:41]Write 4 bytes [16:41:41]NVStorageSaveData done [16:41:41]ExternCall_PrintAddStr [16:41:41]wPrintStart [16:41:41]Write to MH i2c: 01 00 00 69 04 6D [16:41:41]Write i2c OK [16:41:41]MH_I2C_Read... [16:41:41]Read from MH i2c: 01 [16:41:41]MH_I2C_Read... [16:41:41]Read from MH i2c: 01 07 00 [16:41:41]MH_I2C_Read... [16:41:41]Read from MH i2c: 01 07 00 69 04 00 00 00 00 00 FF 0F 82 [16:41:41]RasterBufferAndPrint [16:41:41]line Счет N : (1)160802 [16:41:41]line ИНН: 02508201610067 [16:41:41]line Контрольно-Кассовый Чек [16:41:41]line ПРОДАЖА [16:41:41]line ТРК (МРК, ГНК) : 3 [16:41:41]line Товар: 2710124130 [16:41:41]line Аи-92-К-5 [16:41:41]line 7.590 * 65.90 [16:41:41]line = 500.18 [16:41:41]line НДС 12% НСП 1% [16:41:41]line > о реализуемом товаре [16:41:41]line ОКРУГЛЕНИЕ: -0.18 [16:41:41]line ИТОГО: 500.00 [16:41:41]line Внесено: 500.00 [16:41:41]line СДАЧА: 0.00 [16:41:41]line НСП 1% : 4.43 [16:41:41]line НДС 12% : 53.12 [16:41:41]line Наличными: 500.00 [16:41:41]line Безнал.: 0.00 [16:41:41]line Место: АЗС № 38 "Партнер Нефть" [16:41:41]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [16:41:41]line СНО: Общий режим [16:41:41]line Чек 82 13.08.2024 16:41 [16:41:41]line Смена: 464 ФФД: 1.0 [16:41:41]line ЗНМ: 0300000126 [16:41:41]line РНМ: 0000000000092718 [16:41:41]line Версия ККМ: 001 [16:41:41]line ФМ: 0000000000875058 [16:41:41]line ФД: 103171 [16:41:41]line ФПД: 85343861098479 [16:41:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T164140&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103171&fm=85343861098479&tin=02508201610067®Number=0000000000092718&sum=50000 [16:41:42]OFD Sender: Processing packet 103171 [packets to send 69, broken 68] [16:41:42]ProducePacketName [16:41:42]name=ofd_packets/00103171 [16:41:42]OFD Sender: To server: pG, [16:41:42]CommunicateWithHost lk.salyk.kg:30040 [16:41:42]ConnectInit lk.salyk.kg [16:41:42]written 0, free lines is 4095 [16:41:42]Connected sock=10 [16:41:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 BC 81 07 01 15 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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 C4 8C BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 03 93 01 00 35 04 06 00 4D 9E AA 86 47 EF 4A B8 3C 17 88 A7 17 D2 [16:41:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 EF 6F 47 00 3C DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 03 93 01 00 F4 03 04 00 37 33 BB 66 B6 04 01 00 00 9A FA 44 4B 6E 2D BC B7 [16:41:42]CommunicateWithHost err = 0 [16:41:42]CheckOFDResponse [16:41:42]1017 (14) - 77093643461234 [16:41:42]1041 (16) - 0000000000875058 [16:41:42]1040 (4) - 103171 [16:41:42]1012 (4) - 13.08.2024 10:19 [16:41:42]1206 (1) - 0 [16:41:42]OFD Sender: Remove packet 103171 [16:41:42]ProducePacketName [16:41:42]name=ofd_packets/00103171 [16:41:42]NVStorageDeleteData [16:41:42]Write to MH i2c: 01 00 00 94 04 98 [16:41:42]Write i2c OK [16:41:42]MH_I2C_Read... [16:41:42]Read from MH i2c: 01 [16:41:42]MH_I2C_Read... [16:41:42]Read from MH i2c: 01 07 00 [16:41:42]MH_I2C_Read... [16:41:42]Read from MH i2c: 01 07 00 94 04 00 00 00 00 00 E8 0C 93 [16:41:42]RasterBufferAndPrint [16:41:42]line [16:41:42]line [16:41:42]line [16:41:42]line [16:41:42]line [16:41:42]written 0, free lines is 3310 [16:41:42]MH_Cut [16:41:42]Write to MH i2c: D1 01 00 9B 04 01 71 [16:41:42]Write i2c OK [16:41:42]MH_I2C_Read... [16:41:42]Read from MH i2c: D1 [16:41:42]MH_I2C_Read... [16:41:42]Read from MH i2c: D1 01 00 [16:41:42]MH_I2C_Read... [16:41:42]Read from MH i2c: D1 01 00 9B 04 00 70 [16:41:42]Write to MH i2c: 01 00 00 9C 04 A0 [16:41:42]Write i2c OK [16:41:42]MH_I2C_Read... [16:41:42]OFD Sender: No OFD packet to send [16:41:43]*** Cut start [16:41:43]*** Purtial cut [16:41:43]*** Stage 1: CUTSNS_PIN = 1 [16:41:43]Read from MH i2c: 01 [16:41:43]MH_I2C_Read... [16:41:43]*** Stop cut motor [16:41:43]*** Cut end [16:41:43]Read from MH i2c: 01 07 00 [16:41:43]MH_I2C_Read... [16:41:43]Read from MH i2c: 01 07 00 9C 04 00 00 00 00 00 FF 0F B5 [16:41:43]process_action close_receipt done [16:41:43]requested_data is exist [16:41:43]produce_requested_data [16:41:43]requested_item fm.sn is exist - process it [16:41:43]wFMCommunicate request_size=4 [16:41:43]MH_SAM_APDU [16:41:43]CAPDU: 80 11 00 00 [16:41:43]Write to MH i2c: E2 08 00 9D 04 80 11 00 00 00 00 00 00 1B [16:41:43]Write i2c OK [16:41:43]MH_I2C_Read... [16:41:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:43]Read from MH i2c: E2 [16:41:43]MH_I2C_Read... [16:41:43]Read from MH i2c: E2 17 00 [16:41:43]MH_I2C_Read... [16:41:43]Read from MH i2c: E2 17 00 9D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 6F [16:41:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [16:41:43]wFMCommunicate OK [16:41:43]requested_item fd.num is exist - process it [16:41:43]SAM_PROTO_GetFieldsCounters [16:41:43]wFMCommunicate request_size=4 [16:41:43]MH_SAM_APDU [16:41:43]CAPDU: 80 13 00 00 [16:41:43]Write to MH i2c: E2 08 00 9E 04 80 13 00 00 00 00 00 00 1E [16:41:43]Write i2c OK [16:41:43]MH_I2C_Read... [16:41:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:41:43]Read from MH i2c: E2 [16:41:43]MH_I2C_Read... [16:41:43]Read from MH i2c: E2 62 00 [16:41:43]MH_I2C_Read... [16:41:43]Read from MH i2c: E2 62 00 9E 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 03 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [16:41:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 03 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:41:43]wFMCommunicate OK [16:41:43]SAM_PROTO_GetFieldsCounters done [16:41:43]requested_item shift.num is exist - process it [16:41:43]requested_item shift.opened is exist - process it [16:41:43]req_shift_opened [16:41:43]FM_GetShiftState [16:41:43]SAM_PROTO_GetShiftState [16:41:43]wFMCommunicate request_size=4 [16:41:43]MH_SAM_APDU [16:41:43]CAPDU: 80 13 01 00 [16:41:43]Write to MH i2c: E2 08 00 9F 04 80 13 01 00 00 00 00 00 20 [16:41:43]Write i2c OK [16:41:43]MH_I2C_Read... [16:41:43]Read from MH i2c: E2 [16:41:43]MH_I2C_Read... [16:41:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:43]Read from MH i2c: E2 0E 00 [16:41:43]MH_I2C_Read... [16:41:43]Read from MH i2c: E2 0E 00 9F 04 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 3E [16:41:43]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [16:41:43]wFMCommunicate OK [16:41:43]SAM_PROTO_GetShiftState done [16:41:43]FM_GetShiftState done [16:41:43]req_shift_opened done [16:41:43]requested_item shift.open_date is exist - process it [16:41:43]req_shift_open_date [16:41:43]req_shift_open_date done [16:41:43]produce_requested_data done [16:41:43]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103171,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [16:41:43]process_action_free close_receipt [16:41:43]json_value_free [16:41:43]json_value_free done [16:41:43]process_json_proto returns [16:41:43]Send response to host [16:41:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103171,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [16:41:43]free response buf [16:41:43]execute_script done [16:41:43]execute_script returns [16:41:43]free content buf [16:41:43]Sock 9.Close socket [16:41:43]Sock 9.Thread stoped [16:41:47]OFD Sender: No OFD packet to send [16:41:52]OFD Sender: No OFD packet to send [16:41:57]OFD Sender: No OFD packet to send [16:42:02]OFD Sender: No OFD packet to send [16:42:07]OFD Sender: No OFD packet to send [16:42:12]OFD Sender: No OFD packet to send [16:42:17]OFD Sender: No OFD packet to send [16:42:22]OFD Sender: No OFD packet to send [16:42:27]OFD Sender: No OFD packet to send [16:42:32]OFD Sender: No OFD packet to send [16:42:37]OFD Sender: No OFD packet to send [16:42:42]OFD Sender: No OFD packet to send [16:42:47]OFD Sender: No OFD packet to send [16:42:52]OFD Sender: No OFD packet to send [16:42:57]OFD Sender: No OFD packet to send [16:43:03]OFD Sender: No OFD packet to send [16:43:08]OFD Sender: No OFD packet to send [16:43:13]OFD Sender: No OFD packet to send [16:43:18]OFD Sender: No OFD packet to send [16:43:23]OFD Sender: No OFD packet to send [16:43:28]OFD Sender: No OFD packet to send [16:43:33]OFD Sender: No OFD packet to send [16:43:38]OFD Sender: No OFD packet to send [16:43:43]OFD Sender: No OFD packet to send [16:43:48]OFD Sender: No OFD packet to send [16:43:53]OFD Sender: No OFD packet to send [16:43:58]OFD Sender: No OFD packet to send [16:44:03]OFD Sender: No OFD packet to send [16:44:08]OFD Sender: No OFD packet to send [16:44:13]OFD Sender: No OFD packet to send [16:44:18]OFD Sender: No OFD packet to send [16:44:23]OFD Sender: No OFD packet to send [16:44:28]OFD Sender: No OFD packet to send [16:44:33]OFD Sender: No OFD packet to send [16:44:38]OFD Sender: No OFD packet to send [16:44:43]OFD Sender: No OFD packet to send [16:44:48]OFD Sender: No OFD packet to send [16:44:53]OFD Sender: No OFD packet to send [16:44:58]OFD Sender: No OFD packet to send [16:45:03]OFD Sender: No OFD packet to send [16:45:08]OFD Sender: No OFD packet to send [16:45:13]OFD Sender: No OFD packet to send [16:45:18]OFD Sender: No OFD packet to send [16:45:23]OFD Sender: No OFD packet to send [16:45:28]OFD Sender: No OFD packet to send [16:45:33]OFD Sender: No OFD packet to send [16:45:38]OFD Sender: No OFD packet to send [16:45:43]OFD Sender: No OFD packet to send [16:45:48]OFD Sender: No OFD packet to send [16:45:49]accept exits with 7 [16:45:49]New connection [16:45:49]New thread 3067260260 created [16:45:49]Thread 3067116900 joined [16:45:49]Waiting for new connection... [16:45:49] Sock 7.Parse request [16:45:49]Sock 7.Check first char [16:45:49]Sock 7.First char is OK [16:45:49]request: POST /json_proto HTTP/1.0 [16:45:49]Method: POST [16:45:49]URL: /json_proto [16:45:49]Method is POST - this is cgi request [16:45:49]url: /json_proto [16:45:49]query_string will be loaded in cgi processing [16:45:49]execute_cgi json_proto POST (null) [16:45:49]execute_cgi path=json_proto method=POST [16:45:49]POST find Content-Length [16:45:49]Host: 172.17.58.3:8080 [16:45:49]Content-Length: 676 [16:45:49]Content-Type: application/json [16:45:49] [16:45:49]POST finish read [16:45:49]Found Content-Length = 676 [16:45:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160803", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 6.380, "sum" : 420.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 420.00, "total" : 420.00, "payments": [ { "type": 0, "sum" : 420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:45:49]execute_script... [16:45: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)160803", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 6.380, "sum" : 420.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 420.00, "total" : 420.00, "payments": [ { "type": 0, "sum" : 420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:45:49]POST & json_proto [16:45:49]process_json_proto [16:45:49]json parsed OK: [16:45:49]protocol is kg_v1.0 [16:45:49]action value=close_receipt [16:45:49]process_action close_receipt [16:45:49]cmd_close_receipt [16:45:49]MH_GetDate [16:45:49]Write to MH i2c: F0 00 00 A0 04 93 [16:45:49]Write i2c OK [16:45:49]MH_I2C_Read... [16:45:49]Read from MH i2c: F0 [16:45:49]MH_I2C_Read... [16:45:49]Read from MH i2c: F0 09 00 [16:45:49]MH_I2C_Read... [16:45:49]Read from MH i2c: F0 09 00 A0 04 00 BE 8D BB 66 DC E4 6D 64 99 [16:45:49]GetLastDocTimeStamp 1723567300 [16:45:49]current date 1723567550 [16:45:49]FM_GetShiftState [16:45:49]SAM_PROTO_GetShiftState [16:45:49]wFMCommunicate request_size=4 [16:45:49]MH_SAM_APDU [16:45:49]CAPDU: 80 13 01 00 [16:45:49]Write to MH i2c: E2 08 00 A1 04 80 13 01 00 00 00 00 00 22 [16:45:49]Write i2c OK [16:45:49]MH_I2C_Read... [16:45:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:49]Read from MH i2c: E2 [16:45:49]MH_I2C_Read... [16:45:49]Read from MH i2c: E2 0E 00 [16:45:49]MH_I2C_Read... [16:45:49]Read from MH i2c: E2 0E 00 A1 04 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 40 [16:45:49]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [16:45:49]wFMCommunicate OK [16:45:49]SAM_PROTO_GetShiftState done [16:45:49]FM_GetShiftState done [16:45:49]opened in 1723506770 [16:45:49]opened+sec_in_day 1723593170 [16:45:49]quantity*price = 42044 [16:45:49]sum+1 = 42045 [16:45:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 420.00 Внесено: 420.00 СДАЧА: 0.00 НСП 1% : 3.72 НДС 12% : 44.65 Наличными: 420.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 83 13.08.2024 16:45 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103172 ФПД: 194604483310865 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T164550&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103172&fm=194604483310865&tin=02508201610067®Number=0000000000092718&sum=42000 [16:45:50]StoreToDocumentArchive [16:45:50]shift 464 fd 103172 [16:45:50]save to /storage/0464/doc_00103172 [16:45:50]save last doc name /storage/0464/doc_00103172 to /storage/kkm_last_doc_name [16:45:50]save OK [16:45:50]Clear old archive folders... [16:45:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:45:50]tlvbuf is 002174D0 [16:45:50]SAM_PROTO_ClearQueue [16:45:50]wFMCommunicate request_size=4 [16:45:50]MH_SAM_APDU [16:45:50]CAPDU: 80 09 00 00 [16:45:50]Write to MH i2c: E2 08 00 AE 04 80 09 00 00 00 00 00 00 24 [16:45:50]Write i2c OK [16:45:50]MH_I2C_Read... [16:45:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:45:50]Read from MH i2c: E2 [16:45:50]MH_I2C_Read... [16:45:50]Read from MH i2c: E2 03 00 [16:45:50]MH_I2C_Read... [16:45:50]Read from MH i2c: E2 03 00 AE 04 00 90 00 26 [16:45:50]RAPDU: 90 00 [16:45:50]wFMCommunicate OK [16:45:50]SAM_PROTO_ClearQueue done [16:45:50]KKMCreateOFDPacket [16:45:50]OFDProtocolAddRootSTLVToBuf [16:45:50]FM_MakeSignedData [16:45:50]FM_MakeSignedData [16:45:50]SAM_PROTO_SignData [16:45:50]wFMCommunicate request_size=4 [16:45:50]MH_SAM_APDU [16:45:50]CAPDU: 80 0D 01 02 [16:45:50]Write to MH i2c: E2 08 00 AF 04 80 0D 01 02 00 00 00 00 2C [16:45:50]Write i2c OK [16:45:50]MH_I2C_Read... [16:45:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:45:50]Read from MH i2c: E2 [16:45:50]MH_I2C_Read... [16:45:50]Read from MH i2c: E2 03 00 [16:45:50]MH_I2C_Read... [16:45:50]Read from MH i2c: E2 03 00 AF 04 00 90 00 27 [16:45:50]RAPDU: 90 00 [16:45:50]wFMCommunicate OK [16:45:50]wFMCommunicate request_size=255 [16:45:50]MH_SAM_APDU [16:45:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 18 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 3C A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 BE 8D BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 04 93 01 00 35 04 06 00 B0 [16:45:50]Write to MH i2c: E2 02 01 B0 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 EC 18 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 3C A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 BE 8D BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 04 93 01 00 35 04 06 00 B0 00 00 2B [16:45:50]Write i2c OK [16:45:50]MH_I2C_Read... [16:45:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:50]Read from MH i2c: E2 [16:45:50]MH_I2C_Read... [16:45:50]Read from MH i2c: E2 03 00 [16:45:50]MH_I2C_Read... [16:45:50]Read from MH i2c: E2 03 00 B0 04 00 90 00 28 [16:45:50]RAPDU: 90 00 [16:45:50]wFMCommunicate OK [16:45:50]wFMCommunicate request_size=10 [16:45:50]MH_SAM_APDU [16:45:50]CAPDU: 80 0D 02 02 05 FD E3 19 75 11 [16:45:50]Write to MH i2c: E2 0D 00 B1 04 80 0D 02 02 05 00 FD E3 19 75 11 00 00 B8 [16:45:50]Write i2c OK [16:45:50]MH_I2C_Read... [16:45:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:50]Read from MH i2c: E2 [16:45:50]MH_I2C_Read... [16:45:50]Read from MH i2c: E2 03 00 [16:45:50]MH_I2C_Read... [16:45:50]Read from MH i2c: E2 03 00 B1 04 00 90 00 29 [16:45:50]RAPDU: 90 00 [16:45:50]wFMCommunicate OK [16:45:50]wFMCommunicate request_size=4 [16:45:50]MH_SAM_APDU [16:45:50]CAPDU: 80 0D 03 02 [16:45:50]Write to MH i2c: E2 08 00 B2 04 80 0D 03 02 00 00 00 00 31 [16:45:50]Write i2c OK [16:45:50]MH_I2C_Read... [16:45:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:45:50]Read from MH i2c: E2 [16:45:50]MH_I2C_Read... [16:45:50]Read from MH i2c: E2 0B 00 [16:45:50]MH_I2C_Read... [16:45:50]Read from MH i2c: E2 0B 00 B2 04 00 C3 DD 96 71 C2 8A 63 06 90 00 8E [16:45:50]RAPDU: C3 DD 96 71 C2 8A 63 06 90 00 [16:45:50]wFMCommunicate OK [16:45:50]SAM_PROTO_SignData done [16:45:50]FM_MakeSignedData done [16:45:50]CreateOFDProtocolMessage [16:45:50]wFMCommunicate request_size=4 [16:45:50]MH_SAM_APDU [16:45:50]CAPDU: 80 11 00 00 [16:45:50]Write to MH i2c: E2 08 00 B3 04 80 11 00 00 00 00 00 00 31 [16:45:50]Write i2c OK [16:45:50]MH_I2C_Read... [16:45:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:51]Read from MH i2c: E2 [16:45:51]MH_I2C_Read... [16:45:51]Read from MH i2c: E2 17 00 [16:45:51]MH_I2C_Read... [16:45:51]Read from MH i2c: E2 17 00 B3 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 85 [16:45:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [16:45:51]wFMCommunicate OK [16:45:51]CreateOFDProtocolMessage done [16:45:51]OFDSenderStorePacket 103172 [16:45:51]StoreOFDPacket docnum=103172 [16:45:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 93 AB 07 01 A0 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 EC 18 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 3C A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 BE 8D BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 04 93 01 00 35 04 06 00 B0 FD E3 19 75 11 C3 DD 96 71 C2 8A 63 06 [16:45:51]CheckFolder [16:45:51]dirname=/storage/ofd_packets [16:45:51]CheckFolder done [16:45:51]ProducePacketName [16:45:51]name=ofd_packets/00103172 [16:45:51]NVStorageSaveData ofd_packets/00103172 [16:45:51]File name is /storage/ofd_packets/00103172 [16:45:51]Write 301 bytes [16:45:51]NVStorageSaveData done [16:45:51]OFDSenderStorePacket done [16:45:51]KKMCreateOFDPacket done [16:45:51]NVStorageSaveData kkm_last_timestamp [16:45:51]File name is /storage/kkm_last_timestamp [16:45:51]Write 4 bytes [16:45:51]NVStorageSaveData done [16:45:51]ExternCall_PrintAddStr [16:45:51]wPrintStart [16:45:51]Write to MH i2c: 01 00 00 B4 04 B8 [16:45:51]Write i2c OK [16:45:51]MH_I2C_Read... [16:45:51]Read from MH i2c: 01 [16:45:51]MH_I2C_Read... [16:45:51]Read from MH i2c: 01 07 00 [16:45:51]MH_I2C_Read... [16:45:51]Read from MH i2c: 01 07 00 B4 04 00 00 00 00 00 FF 0F CD [16:45:51]RasterBufferAndPrint [16:45:51]line Счет N : (1)160803 [16:45:51]line ИНН: 02508201610067 [16:45:51]line Контрольно-Кассовый Чек [16:45:51]line ПРОДАЖА [16:45:51]line ТРК (МРК, ГНК) : 7 [16:45:51]line Товар: 2710124130 [16:45:51]line Аи-92-К-5 [16:45:51]line 6.380 * 65.90 [16:45:51]line = 420.44 [16:45:51]line НДС 12% НСП 1% [16:45:51]line > о реализуемом товаре [16:45:51]line ОКРУГЛЕНИЕ: -0.44 [16:45:51]line ИТОГО: 420.00 [16:45:51]line Внесено: 420.00 [16:45:51]line СДАЧА: 0.00 [16:45:51]line НСП 1% : 3.72 [16:45:51]line НДС 12% : 44.65 [16:45:51]line Наличными: 420.00 [16:45:51]line Безнал.: 0.00 [16:45:51]line Место: АЗС № 38 "Партнер Нефть" [16:45:51]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [16:45:51]line СНО: Общий режим [16:45:51]line Чек 83 13.08.2024 16:45 [16:45:51]line Смена: 464 ФФД: 1.0 [16:45:51]line ЗНМ: 0300000126 [16:45:51]line РНМ: 0000000000092718 [16:45:51]line Версия ККМ: 001 [16:45:51]line ФМ: 0000000000875058 [16:45:51]line ФД: 103172 [16:45:51]line ФПД: 194604483310865 [16:45:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T164550&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103172&fm=194604483310865&tin=02508201610067®Number=0000000000092718&sum=42000 [16:45:51]OFD Sender: Processing packet 103172 [packets to send 69, broken 68] [16:45:51]ProducePacketName [16:45:51]name=ofd_packets/00103172 [16:45:51]OFD Sender: To server: pG, [16:45:51]CommunicateWithHost lk.salyk.kg:30040 [16:45:51]ConnectInit lk.salyk.kg [16:45:51]written 0, free lines is 4095 [16:45:51]Connected sock=11 [16:45:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 93 AB 07 01 A0 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 EC 18 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 3C A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 BE 8D BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 04 93 01 00 35 04 06 00 B0 FD E3 19 75 11 C3 DD 96 71 C2 8A 63 06 [16:45:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 BB FD 47 00 D0 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 04 93 01 00 F4 03 04 00 30 34 BB 66 B6 04 01 00 00 78 DE 9C 09 1B D8 60 60 [16:45:51]CommunicateWithHost err = 0 [16:45:51]CheckOFDResponse [16:45:51]1017 (14) - 77093643461234 [16:45:51]1041 (16) - 0000000000875058 [16:45:51]1040 (4) - 103172 [16:45:51]1012 (4) - 13.08.2024 10:23 [16:45:51]1206 (1) - 0 [16:45:51]OFD Sender: Remove packet 103172 [16:45:51]ProducePacketName [16:45:51]name=ofd_packets/00103172 [16:45:51]NVStorageDeleteData [16:45:51]Write to MH i2c: 01 00 00 DF 04 E3 [16:45:51]Write i2c OK [16:45:51]MH_I2C_Read... [16:45:51]Read from MH i2c: 01 [16:45:51]MH_I2C_Read... [16:45:51]Read from MH i2c: 01 07 00 [16:45:51]MH_I2C_Read... [16:45:51]Read from MH i2c: 01 07 00 DF 04 00 00 00 00 00 EB 0C E1 [16:45:51]RasterBufferAndPrint [16:45:51]line [16:45:51]line [16:45:51]line [16:45:51]line [16:45:51]line [16:45:51]written 0, free lines is 3313 [16:45:51]MH_Cut [16:45:51]Write to MH i2c: D1 01 00 E6 04 01 BC [16:45:51]Write i2c OK [16:45:51]MH_I2C_Read... [16:45:51]Read from MH i2c: D1 [16:45:51]MH_I2C_Read... [16:45:51]Read from MH i2c: D1 01 00 [16:45:51]MH_I2C_Read... [16:45:51]Read from MH i2c: D1 01 00 E6 04 00 BB [16:45:51]Write to MH i2c: 01 00 00 E7 04 EB [16:45:51]Write i2c OK [16:45:51]MH_I2C_Read... [16:45:52]OFD Sender: No OFD packet to send [16:45:52]*** Cut start [16:45:52]*** Purtial cut [16:45:52]*** CUTSNS_PIN = 0 [16:45:52]*** Stage 1: CUTSNS_PIN = 1 [16:45:54]Read from MH i2c: 01 [16:45:54]MH_I2C_Read... [16:45:54]*** Stop cut motor [16:45:54]*** Cut end [16:45:54]Read from MH i2c: 01 07 00 [16:45:54]MH_I2C_Read... [16:45:54]Read from MH i2c: 01 07 00 E7 04 00 00 00 00 00 FF 0F 00 [16:45:54]process_action close_receipt done [16:45:54]requested_data is exist [16:45:54]produce_requested_data [16:45:54]requested_item fm.sn is exist - process it [16:45:54]wFMCommunicate request_size=4 [16:45:54]MH_SAM_APDU [16:45:54]CAPDU: 80 11 00 00 [16:45:54]Write to MH i2c: E2 08 00 E8 04 80 11 00 00 00 00 00 00 66 [16:45:54]Write i2c OK [16:45:54]MH_I2C_Read... [16:45:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:54]Read from MH i2c: E2 [16:45:54]MH_I2C_Read... [16:45:54]Read from MH i2c: E2 17 00 [16:45:54]MH_I2C_Read... [16:45:54]Read from MH i2c: E2 17 00 E8 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 BA [16:45:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [16:45:54]wFMCommunicate OK [16:45:54]requested_item fd.num is exist - process it [16:45:54]SAM_PROTO_GetFieldsCounters [16:45:54]wFMCommunicate request_size=4 [16:45:54]MH_SAM_APDU [16:45:54]CAPDU: 80 13 00 00 [16:45:54]Write to MH i2c: E2 08 00 E9 04 80 13 00 00 00 00 00 00 69 [16:45:54]Write i2c OK [16:45:54]MH_I2C_Read... [16:45:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:45:54]Read from MH i2c: E2 [16:45:54]MH_I2C_Read... [16:45:54]Read from MH i2c: E2 62 00 [16:45:54]MH_I2C_Read... [16:45:54]Read from MH i2c: E2 62 00 E9 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 04 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [16:45:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 04 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:45:54]wFMCommunicate OK [16:45:54]SAM_PROTO_GetFieldsCounters done [16:45:54]requested_item shift.num is exist - process it [16:45:54]requested_item shift.opened is exist - process it [16:45:54]req_shift_opened [16:45:54]FM_GetShiftState [16:45:54]SAM_PROTO_GetShiftState [16:45:54]wFMCommunicate request_size=4 [16:45:54]MH_SAM_APDU [16:45:54]CAPDU: 80 13 01 00 [16:45:54]Write to MH i2c: E2 08 00 EA 04 80 13 01 00 00 00 00 00 6B [16:45:54]Write i2c OK [16:45:54]MH_I2C_Read... [16:45:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:54]Read from MH i2c: E2 [16:45:54]MH_I2C_Read... [16:45:54]Read from MH i2c: E2 0E 00 [16:45:54]MH_I2C_Read... [16:45:54]Read from MH i2c: E2 0E 00 EA 04 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 89 [16:45:54]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [16:45:54]wFMCommunicate OK [16:45:54]SAM_PROTO_GetShiftState done [16:45:54]FM_GetShiftState done [16:45:54]req_shift_opened done [16:45:54]requested_item shift.open_date is exist - process it [16:45:54]req_shift_open_date [16:45:54]req_shift_open_date done [16:45:54]produce_requested_data done [16:45:54]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103172,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [16:45:54]process_action_free close_receipt [16:45:54]json_value_free [16:45:54]json_value_free done [16:45:54]process_json_proto returns [16:45:54]Send response to host [16:45:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103172,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [16:45:54]free response buf [16:45:54]execute_script done [16:45:54]execute_script returns [16:45:54]free content buf [16:45:54]Sock 7.Close socket [16:45:54]Sock 7.Thread stoped [16:45:57]OFD Sender: No OFD packet to send [16:46:02]OFD Sender: No OFD packet to send [16:46:07]OFD Sender: No OFD packet to send [16:46:12]OFD Sender: No OFD packet to send [16:46:17]OFD Sender: No OFD packet to send [16:46:22]OFD Sender: No OFD packet to send [16:46:27]OFD Sender: No OFD packet to send [16:46:32]OFD Sender: No OFD packet to send [16:46:37]OFD Sender: No OFD packet to send [16:46:42]OFD Sender: No OFD packet to send [16:46:47]OFD Sender: No OFD packet to send [16:46:52]OFD Sender: No OFD packet to send [16:46:57]OFD Sender: No OFD packet to send [16:47:02]OFD Sender: No OFD packet to send [16:47:07]OFD Sender: No OFD packet to send [16:47:12]OFD Sender: No OFD packet to send [16:47:17]OFD Sender: No OFD packet to send [16:47:22]OFD Sender: No OFD packet to send [16:47:27]OFD Sender: No OFD packet to send [16:47:32]OFD Sender: No OFD packet to send [16:47:37]OFD Sender: No OFD packet to send [16:47:42]OFD Sender: No OFD packet to send [16:47:47]OFD Sender: No OFD packet to send [16:47:52]OFD Sender: No OFD packet to send [16:47:57]OFD Sender: No OFD packet to send [16:48:02]OFD Sender: No OFD packet to send [16:48:07]OFD Sender: No OFD packet to send [16:48:12]OFD Sender: No OFD packet to send [16:48:17]OFD Sender: No OFD packet to send [16:48:22]OFD Sender: No OFD packet to send [16:48:27]OFD Sender: No OFD packet to send [16:48:32]OFD Sender: No OFD packet to send [16:48:37]OFD Sender: No OFD packet to send [16:48:42]OFD Sender: No OFD packet to send [16:48:47]OFD Sender: No OFD packet to send [16:48:52]OFD Sender: No OFD packet to send [16:48:57]OFD Sender: No OFD packet to send [16:49:02]OFD Sender: No OFD packet to send [16:49:07]OFD Sender: No OFD packet to send [16:49:12]OFD Sender: No OFD packet to send [16:49:17]OFD Sender: No OFD packet to send [16:49:22]OFD Sender: No OFD packet to send [16:49:27]OFD Sender: No OFD packet to send [16:49:32]OFD Sender: No OFD packet to send [16:49:37]OFD Sender: No OFD packet to send [16:49:42]OFD Sender: No OFD packet to send [16:49:47]OFD Sender: No OFD packet to send [16:49:52]OFD Sender: No OFD packet to send [16:49:57]OFD Sender: No OFD packet to send [16:50:02]OFD Sender: No OFD packet to send [16:50:07]OFD Sender: No OFD packet to send [16:50:12]OFD Sender: No OFD packet to send [16:50:17]OFD Sender: No OFD packet to send [16:50:22]OFD Sender: No OFD packet to send [16:50:27]OFD Sender: No OFD packet to send [16:50:32]OFD Sender: No OFD packet to send [16:50:37]OFD Sender: No OFD packet to send [16:50:42]OFD Sender: No OFD packet to send [16:50:47]OFD Sender: No OFD packet to send [16:50:52]OFD Sender: No OFD packet to send [16:50:57]OFD Sender: No OFD packet to send [16:51:02]OFD Sender: No OFD packet to send [16:51:07]OFD Sender: No OFD packet to send [16:51:12]OFD Sender: No OFD packet to send [16:51:17]OFD Sender: No OFD packet to send [16:51:22]OFD Sender: No OFD packet to send [16:51:27]OFD Sender: No OFD packet to send [16:51:32]OFD Sender: No OFD packet to send [16:51:37]OFD Sender: No OFD packet to send [16:51:42]OFD Sender: No OFD packet to send [16:51:47]OFD Sender: No OFD packet to send [16:51:52]OFD Sender: No OFD packet to send [16:51:57]OFD Sender: No OFD packet to send [16:52:02]OFD Sender: No OFD packet to send [16:52:07]OFD Sender: No OFD packet to send [16:52:12]OFD Sender: No OFD packet to send [16:52:17]OFD Sender: No OFD packet to send [16:52:22]OFD Sender: No OFD packet to send [16:52:27]OFD Sender: No OFD packet to send [16:52:32]OFD Sender: No OFD packet to send [16:52:37]OFD Sender: No OFD packet to send [16:52:42]OFD Sender: No OFD packet to send [16:52:47]OFD Sender: No OFD packet to send [16:52:52]OFD Sender: No OFD packet to send [16:52:57]OFD Sender: No OFD packet to send [16:53:02]OFD Sender: No OFD packet to send [16:53:07]OFD Sender: No OFD packet to send [16:53:12]OFD Sender: No OFD packet to send [16:53:17]OFD Sender: No OFD packet to send [16:53:22]OFD Sender: No OFD packet to send [16:53:27]OFD Sender: No OFD packet to send [16:53:32]OFD Sender: No OFD packet to send [16:53:37]OFD Sender: No OFD packet to send [16:53:42]OFD Sender: No OFD packet to send [16:53:47]OFD Sender: No OFD packet to send [16:53:52]OFD Sender: No OFD packet to send [16:53:57]OFD Sender: No OFD packet to send [16:54:02]OFD Sender: No OFD packet to send [16:54:07]OFD Sender: No OFD packet to send [16:54:12]OFD Sender: No OFD packet to send [16:54:17]OFD Sender: No OFD packet to send [16:54:22]OFD Sender: No OFD packet to send [16:54:27]OFD Sender: No OFD packet to send [16:54:32]OFD Sender: No OFD packet to send [16:54:37]OFD Sender: No OFD packet to send [16:54:42]OFD Sender: No OFD packet to send [16:54:47]OFD Sender: No OFD packet to send [16:54:52]OFD Sender: No OFD packet to send [16:54:57]OFD Sender: No OFD packet to send [16:55:02]OFD Sender: No OFD packet to send [16:55:07]OFD Sender: No OFD packet to send [16:55:12]OFD Sender: No OFD packet to send [16:55:17]OFD Sender: No OFD packet to send [16:55:22]OFD Sender: No OFD packet to send [16:55:27]OFD Sender: No OFD packet to send [16:55:32]OFD Sender: No OFD packet to send [16:55:37]OFD Sender: No OFD packet to send [16:55:42]OFD Sender: No OFD packet to send [16:55:47]OFD Sender: No OFD packet to send [16:55:52]OFD Sender: No OFD packet to send [16:55:57]OFD Sender: No OFD packet to send [16:56:02]OFD Sender: No OFD packet to send [16:56:07]OFD Sender: No OFD packet to send [16:56:12]OFD Sender: No OFD packet to send [16:56:17]OFD Sender: No OFD packet to send [16:56:22]OFD Sender: No OFD packet to send [16:56:27]OFD Sender: No OFD packet to send [16:56:32]OFD Sender: No OFD packet to send [16:56:37]OFD Sender: No OFD packet to send [16:56:42]OFD Sender: No OFD packet to send [16:56:47]OFD Sender: No OFD packet to send [16:56:52]OFD Sender: No OFD packet to send [16:56:57]OFD Sender: No OFD packet to send [16:57:02]OFD Sender: No OFD packet to send [16:57:07]OFD Sender: No OFD packet to send [16:57:12]OFD Sender: No OFD packet to send [16:57:17]OFD Sender: No OFD packet to send [16:57:22]OFD Sender: No OFD packet to send [16:57:27]OFD Sender: No OFD packet to send [16:57:32]OFD Sender: No OFD packet to send [16:57:37]OFD Sender: No OFD packet to send [16:57:42]OFD Sender: No OFD packet to send [16:57:47]OFD Sender: No OFD packet to send [16:57:52]OFD Sender: No OFD packet to send [16:57:57]OFD Sender: No OFD packet to send [16:58:02]OFD Sender: No OFD packet to send [16:58:07]OFD Sender: No OFD packet to send [16:58:12]OFD Sender: No OFD packet to send [16:58:17]OFD Sender: No OFD packet to send [16:58:22]OFD Sender: No OFD packet to send [16:58:27]OFD Sender: No OFD packet to send [16:58:32]OFD Sender: No OFD packet to send [16:58:37]OFD Sender: No OFD packet to send [16:58:42]OFD Sender: No OFD packet to send [16:58:47]OFD Sender: No OFD packet to send [16:58:52]OFD Sender: No OFD packet to send [16:58:57]OFD Sender: No OFD packet to send [16:59:02]OFD Sender: No OFD packet to send [16:59:07]OFD Sender: No OFD packet to send [16:59:12]OFD Sender: No OFD packet to send [16:59:17]OFD Sender: No OFD packet to send [16:59:22]OFD Sender: No OFD packet to send [16:59:27]OFD Sender: No OFD packet to send [16:59:32]OFD Sender: No OFD packet to send [16:59:37]OFD Sender: No OFD packet to send [16:59:42]OFD Sender: No OFD packet to send [16:59:47]OFD Sender: No OFD packet to send [16:59:52]OFD Sender: No OFD packet to send [16:59:58]OFD Sender: No OFD packet to send [17:00:03]OFD Sender: No OFD packet to send [17:00:08]OFD Sender: No OFD packet to send [17:00:13]OFD Sender: No OFD packet to send [17:00:18]OFD Sender: No OFD packet to send [17:00:23]OFD Sender: No OFD packet to send [17:00:28]OFD Sender: No OFD packet to send [17:00:33]OFD Sender: No OFD packet to send [17:00:38]OFD Sender: No OFD packet to send [17:00:43]OFD Sender: No OFD packet to send [17:00:48]OFD Sender: No OFD packet to send [17:00:53]OFD Sender: No OFD packet to send [17:00:58]OFD Sender: No OFD packet to send [17:01:03]OFD Sender: No OFD packet to send [17:01:08]OFD Sender: No OFD packet to send [17:01:13]OFD Sender: No OFD packet to send [17:01:18]OFD Sender: No OFD packet to send [17:01:23]OFD Sender: No OFD packet to send [17:01:28]OFD Sender: No OFD packet to send [17:01:33]OFD Sender: No OFD packet to send [17:01:38]OFD Sender: No OFD packet to send [17:01:43]OFD Sender: No OFD packet to send [17:01:48]OFD Sender: No OFD packet to send [17:01:53]OFD Sender: No OFD packet to send [17:01:58]OFD Sender: No OFD packet to send [17:02:03]OFD Sender: No OFD packet to send [17:02:06]accept exits with 9 [17:02:06]New connection [17:02:06]New thread 3067116900 created [17:02:06]Thread 3067260260 joined [17:02:06]Waiting for new connection... [17:02:06] Sock 9.Parse request [17:02:06]Sock 9.Check first char [17:02:06]Sock 9.First char is OK [17:02:06]request: POST /json_proto HTTP/1.0 [17:02:06]Method: POST [17:02:06]URL: /json_proto [17:02:06]Method is POST - this is cgi request [17:02:06]url: /json_proto [17:02:06]query_string will be loaded in cgi processing [17:02:06]execute_cgi json_proto POST (null) [17:02:06]execute_cgi path=json_proto method=POST [17:02:06]POST find Content-Length [17:02:06]Host: 172.17.58.3:8080 [17:02:06]Content-Length: 681 [17:02:06]Content-Type: application/json [17:02:06] [17:02:06]POST finish read [17:02:06]Found Content-Length = 681 [17:02:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160804", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 20.040, "sum" : 1320.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1320.00, "total" : 1320.00, "payments": [ { "type": 0, "sum" : 1320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:06]execute_script... [17:02: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)160804", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 20.040, "sum" : 1320.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1320.00, "total" : 1320.00, "payments": [ { "type": 0, "sum" : 1320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:06]POST & json_proto [17:02:06]process_json_proto [17:02:06]json parsed OK: [17:02:06]protocol is kg_v1.0 [17:02:06]action value=close_receipt [17:02:06]process_action close_receipt [17:02:06]cmd_close_receipt [17:02:06]MH_GetDate [17:02:06]Write to MH i2c: F0 00 00 EB 04 DE [17:02:06]Write i2c OK [17:02:06]MH_I2C_Read... [17:02:06]Read from MH i2c: F0 [17:02:06]MH_I2C_Read... [17:02:06]Read from MH i2c: F0 09 00 [17:02:06]MH_I2C_Read... [17:02:06]Read from MH i2c: F0 09 00 EB 04 00 8F 91 BB 66 DC E4 6D 64 B9 [17:02:06]GetLastDocTimeStamp 1723567550 [17:02:06]current date 1723568527 [17:02:06]FM_GetShiftState [17:02:06]SAM_PROTO_GetShiftState [17:02:06]wFMCommunicate request_size=4 [17:02:06]MH_SAM_APDU [17:02:06]CAPDU: 80 13 01 00 [17:02:06]Write to MH i2c: E2 08 00 EC 04 80 13 01 00 00 00 00 00 6D [17:02:06]Write i2c OK [17:02:06]MH_I2C_Read... [17:02:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:06]Read from MH i2c: E2 [17:02:06]MH_I2C_Read... [17:02:06]Read from MH i2c: E2 0E 00 [17:02:06]MH_I2C_Read... [17:02:06]Read from MH i2c: E2 0E 00 EC 04 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 8B [17:02:06]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [17:02:06]wFMCommunicate OK [17:02:06]SAM_PROTO_GetShiftState done [17:02:06]FM_GetShiftState done [17:02:06]opened in 1723506770 [17:02:06]opened+sec_in_day 1723593170 [17:02:06]quantity*price = 132063 [17:02:06]sum+1 = 132065 [17:02:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1320.00 Внесено: 1320.00 СДАЧА: 0.00 НСП 1% : 11.69 НДС 12% : 140.24 Наличными: 1320.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 84 13.08.2024 17:02 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103173 ФПД: 27096677195838 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T170207&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103173&fm=27096677195838&tin=02508201610067®Number=0000000000092718&sum=132000 [17:02:07]StoreToDocumentArchive [17:02:07]shift 464 fd 103173 [17:02:07]save to /storage/0464/doc_00103173 [17:02:07]save last doc name /storage/0464/doc_00103173 to /storage/kkm_last_doc_name [17:02:07]save OK [17:02:07]Clear old archive folders... [17:02:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:02:07]tlvbuf is 00210FA0 [17:02:07]SAM_PROTO_ClearQueue [17:02:07]wFMCommunicate request_size=4 [17:02:07]MH_SAM_APDU [17:02:07]CAPDU: 80 09 00 00 [17:02:07]Write to MH i2c: E2 08 00 F9 04 80 09 00 00 00 00 00 00 6F [17:02:07]Write i2c OK [17:02:07]MH_I2C_Read... [17:02:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:02:08]Read from MH i2c: E2 [17:02:08]MH_I2C_Read... [17:02:08]Read from MH i2c: E2 03 00 [17:02:08]MH_I2C_Read... [17:02:08]Read from MH i2c: E2 03 00 F9 04 00 90 00 71 [17:02:08]RAPDU: 90 00 [17:02:08]wFMCommunicate OK [17:02:08]SAM_PROTO_ClearQueue done [17:02:08]KKMCreateOFDPacket [17:02:08]OFDProtocolAddRootSTLVToBuf [17:02:08]FM_MakeSignedData [17:02:08]FM_MakeSignedData [17:02:08]SAM_PROTO_SignData [17:02:08]wFMCommunicate request_size=4 [17:02:08]MH_SAM_APDU [17:02:08]CAPDU: 80 0D 01 02 [17:02:08]Write to MH i2c: E2 08 00 FA 04 80 0D 01 02 00 00 00 00 77 [17:02:08]Write i2c OK [17:02:08]MH_I2C_Read... [17:02:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:02:08]Read from MH i2c: E2 [17:02:08]MH_I2C_Read... [17:02:08]Read from MH i2c: E2 03 00 [17:02:08]MH_I2C_Read... [17:02:08]Read from MH i2c: E2 03 00 FA 04 00 90 00 72 [17:02:08]RAPDU: 90 00 [17:02:08]wFMCommunicate OK [17:02:08]wFMCommunicate request_size=255 [17:02:08]MH_SAM_APDU [17:02: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 48 4E 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 E0 03 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 03 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 36 00 00 00 00 07 04 06 00 A0 03 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 8F 91 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 05 93 01 00 35 04 06 00 18 [17:02:08]Write to MH i2c: E2 02 01 FB 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 48 4E 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 E0 03 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 03 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 36 00 00 00 00 07 04 06 00 A0 03 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 8F 91 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 05 93 01 00 35 04 06 00 18 00 00 CA [17:02:08]Write i2c OK [17:02:08]MH_I2C_Read... [17:02:08]OFD Sender: No OFD packet to send [17:02:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:08]Read from MH i2c: E2 [17:02:08]MH_I2C_Read... [17:02:08]Read from MH i2c: E2 03 00 [17:02:08]MH_I2C_Read... [17:02:08]Read from MH i2c: E2 03 00 FB 04 00 90 00 73 [17:02:08]RAPDU: 90 00 [17:02:08]wFMCommunicate OK [17:02:08]wFMCommunicate request_size=10 [17:02:08]MH_SAM_APDU [17:02:08]CAPDU: 80 0D 02 02 05 A4 EF D1 A0 3E [17:02:08]Write to MH i2c: E2 0D 00 FC 04 80 0D 02 02 05 00 A4 EF D1 A0 3E 00 00 C6 [17:02:08]Write i2c OK [17:02:08]MH_I2C_Read... [17:02:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:08]Read from MH i2c: E2 [17:02:08]MH_I2C_Read... [17:02:08]Read from MH i2c: E2 03 00 [17:02:08]MH_I2C_Read... [17:02:08]Read from MH i2c: E2 03 00 FC 04 00 90 00 74 [17:02:08]RAPDU: 90 00 [17:02:08]wFMCommunicate OK [17:02:08]wFMCommunicate request_size=4 [17:02:08]MH_SAM_APDU [17:02:08]CAPDU: 80 0D 03 02 [17:02:08]Write to MH i2c: E2 08 00 FD 04 80 0D 03 02 00 00 00 00 7C [17:02:08]Write i2c OK [17:02:08]MH_I2C_Read... [17:02:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:02:08]Read from MH i2c: E2 [17:02:08]MH_I2C_Read... [17:02:08]Read from MH i2c: E2 0B 00 [17:02:08]MH_I2C_Read... [17:02:08]Read from MH i2c: E2 0B 00 FD 04 00 20 23 C2 CC 53 57 A7 A9 90 00 48 [17:02:08]RAPDU: 20 23 C2 CC 53 57 A7 A9 90 00 [17:02:08]wFMCommunicate OK [17:02:08]SAM_PROTO_SignData done [17:02:08]FM_MakeSignedData done [17:02:08]CreateOFDProtocolMessage [17:02:08]wFMCommunicate request_size=4 [17:02:08]MH_SAM_APDU [17:02:08]CAPDU: 80 11 00 00 [17:02:08]Write to MH i2c: E2 08 00 FE 04 80 11 00 00 00 00 00 00 7C [17:02:08]Write i2c OK [17:02:08]MH_I2C_Read... [17:02:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:08]Read from MH i2c: E2 [17:02:08]MH_I2C_Read... [17:02:08]Read from MH i2c: E2 17 00 [17:02:08]MH_I2C_Read... [17:02:08]Read from MH i2c: E2 17 00 FE 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 D0 [17:02:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [17:02:08]wFMCommunicate OK [17:02:08]CreateOFDProtocolMessage done [17:02:08]OFDSenderStorePacket 103173 [17:02:08]StoreOFDPacket docnum=103173 [17:02:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 98 21 07 01 A5 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 4E 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 E0 03 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 03 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 36 00 00 00 00 07 04 06 00 A0 03 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 8F 91 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 05 93 01 00 35 04 06 00 18 A4 EF D1 A0 3E 20 23 C2 CC 53 57 A7 A9 [17:02:08]CheckFolder [17:02:08]dirname=/storage/ofd_packets [17:02:08]CheckFolder done [17:02:08]ProducePacketName [17:02:08]name=ofd_packets/00103173 [17:02:08]NVStorageSaveData ofd_packets/00103173 [17:02:08]File name is /storage/ofd_packets/00103173 [17:02:08]Write 301 bytes [17:02:08]NVStorageSaveData done [17:02:08]OFDSenderStorePacket done [17:02:08]KKMCreateOFDPacket done [17:02:08]NVStorageSaveData kkm_last_timestamp [17:02:08]File name is /storage/kkm_last_timestamp [17:02:08]Write 4 bytes [17:02:08]NVStorageSaveData done [17:02:08]ExternCall_PrintAddStr [17:02:08]wPrintStart [17:02:08]Write to MH i2c: 01 00 00 FF 04 03 [17:02:08]Write i2c OK [17:02:08]MH_I2C_Read... [17:02:08]Read from MH i2c: 01 [17:02:08]MH_I2C_Read... [17:02:08]Read from MH i2c: 01 07 00 [17:02:08]MH_I2C_Read... [17:02:08]Read from MH i2c: 01 07 00 FF 04 00 00 00 00 00 FF 0F 18 [17:02:08]RasterBufferAndPrint [17:02:08]line Счет N : (1)160804 [17:02:08]line ИНН: 02508201610067 [17:02:08]line Контрольно-Кассовый Чек [17:02:08]line ПРОДАЖА [17:02:08]line ТРК (МРК, ГНК) : 7 [17:02:08]line Товар: 2710124130 [17:02:08]line Аи-92-К-5 [17:02:08]line 20.040 * 65.90 [17:02:08]line = 1320.64 [17:02:08]line НДС 12% НСП 1% [17:02:08]line > о реализуемом товаре [17:02:08]line ОКРУГЛЕНИЕ: -0.64 [17:02:08]line ИТОГО: 1320.00 [17:02:08]line Внесено: 1320.00 [17:02:08]line СДАЧА: 0.00 [17:02:08]line НСП 1% : 11.69 [17:02:08]line НДС 12% : 140.24 [17:02:08]line Наличными: 1320.00 [17:02:08]line Безнал.: 0.00 [17:02:08]line Место: АЗС № 38 "Партнер Нефть" [17:02:08]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [17:02:08]line СНО: Общий режим [17:02:08]line Чек 84 13.08.2024 17:02 [17:02:08]line Смена: 464 ФФД: 1.0 [17:02:08]line ЗНМ: 0300000126 [17:02:08]line РНМ: 0000000000092718 [17:02:08]line Версия ККМ: 001 [17:02:08]line ФМ: 0000000000875058 [17:02:08]line ФД: 103173 [17:02:08]line ФПД: 27096677195838 [17:02:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T170207&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103173&fm=27096677195838&tin=02508201610067®Number=0000000000092718&sum=132000 [17:02:08]OFD Sender: Processing packet 103173 [packets to send 69, broken 68] [17:02:08]ProducePacketName [17:02:08]name=ofd_packets/00103173 [17:02:08]OFD Sender: To server: pG, [17:02:08]CommunicateWithHost lk.salyk.kg:30040 [17:02:08]ConnectInit lk.salyk.kg [17:02:08]written 0, free lines is 4095 [17:02:08]Connected sock=10 [17:02:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 98 21 07 01 A5 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 4E 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 E0 03 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 03 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 36 00 00 00 00 07 04 06 00 A0 03 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 8F 91 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 05 93 01 00 35 04 06 00 18 A4 EF D1 A0 3E 20 23 C2 CC 53 57 A7 A9 [17:02:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 F7 03 47 00 50 C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 05 93 01 00 F4 03 04 00 02 38 BB 66 B6 04 01 00 00 CB 53 AF F6 0C 57 F8 90 [17:02:09]CommunicateWithHost err = 0 [17:02:09]CheckOFDResponse [17:02:09]1017 (14) - 77093643461234 [17:02:09]1041 (16) - 0000000000875058 [17:02:09]1040 (4) - 103173 [17:02:09]1012 (4) - 13.08.2024 10:40 [17:02:09]1206 (1) - 0 [17:02:09]OFD Sender: Remove packet 103173 [17:02:09]ProducePacketName [17:02:09]name=ofd_packets/00103173 [17:02:09]NVStorageDeleteData [17:02:09]Write to MH i2c: 01 00 00 2A 05 2F [17:02:09]Write i2c OK [17:02:09]MH_I2C_Read... [17:02:09]Read from MH i2c: 01 [17:02:09]MH_I2C_Read... [17:02:09]Read from MH i2c: 01 07 00 [17:02:09]MH_I2C_Read... [17:02:09]Read from MH i2c: 01 07 00 2A 05 00 00 00 00 00 EA 0C 2C [17:02:09]RasterBufferAndPrint [17:02:09]line [17:02:09]line [17:02:09]line [17:02:09]line [17:02:09]line [17:02:09]written 0, free lines is 3312 [17:02:09]MH_Cut [17:02:09]Write to MH i2c: D1 01 00 31 05 01 08 [17:02:09]Write i2c OK [17:02:09]MH_I2C_Read... [17:02:09]Read from MH i2c: D1 [17:02:09]MH_I2C_Read... [17:02:09]Read from MH i2c: D1 01 00 [17:02:09]MH_I2C_Read... [17:02:09]Read from MH i2c: D1 01 00 31 05 00 07 [17:02:09]Write to MH i2c: 01 00 00 32 05 37 [17:02:09]Write i2c OK [17:02:09]MH_I2C_Read... [17:02:09]OFD Sender: No OFD packet to send [17:02:10]*** Cut start [17:02:10]*** Purtial cut [17:02:10]*** Stage 1: CUTSNS_PIN = 1 [17:02:10]Read from MH i2c: 01 [17:02:10]MH_I2C_Read... [17:02:10]*** Stop cut motor [17:02:10]*** Cut end [17:02:10]Read from MH i2c: 01 07 00 [17:02:10]MH_I2C_Read... [17:02:10]Read from MH i2c: 01 07 00 32 05 00 00 00 00 00 FF 0F 4C [17:02:10]process_action close_receipt done [17:02:10]requested_data is exist [17:02:10]produce_requested_data [17:02:10]requested_item fm.sn is exist - process it [17:02:10]wFMCommunicate request_size=4 [17:02:10]MH_SAM_APDU [17:02:10]CAPDU: 80 11 00 00 [17:02:10]Write to MH i2c: E2 08 00 33 05 80 11 00 00 00 00 00 00 B2 [17:02:10]Write i2c OK [17:02:10]MH_I2C_Read... [17:02:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:10]Read from MH i2c: E2 [17:02:10]MH_I2C_Read... [17:02:10]Read from MH i2c: E2 17 00 [17:02:10]MH_I2C_Read... [17:02:10]Read from MH i2c: E2 17 00 33 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 06 [17:02:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [17:02:10]wFMCommunicate OK [17:02:10]requested_item fd.num is exist - process it [17:02:10]SAM_PROTO_GetFieldsCounters [17:02:10]wFMCommunicate request_size=4 [17:02:10]MH_SAM_APDU [17:02:10]CAPDU: 80 13 00 00 [17:02:10]Write to MH i2c: E2 08 00 34 05 80 13 00 00 00 00 00 00 B5 [17:02:10]Write i2c OK [17:02:10]MH_I2C_Read... [17:02:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:02:10]Read from MH i2c: E2 [17:02:10]MH_I2C_Read... [17:02:10]Read from MH i2c: E2 62 00 [17:02:10]MH_I2C_Read... [17:02:10]Read from MH i2c: E2 62 00 34 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 05 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [17:02: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 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 05 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:02:10]wFMCommunicate OK [17:02:10]SAM_PROTO_GetFieldsCounters done [17:02:10]requested_item shift.num is exist - process it [17:02:10]requested_item shift.opened is exist - process it [17:02:10]req_shift_opened [17:02:10]FM_GetShiftState [17:02:10]SAM_PROTO_GetShiftState [17:02:10]wFMCommunicate request_size=4 [17:02:10]MH_SAM_APDU [17:02:10]CAPDU: 80 13 01 00 [17:02:10]Write to MH i2c: E2 08 00 35 05 80 13 01 00 00 00 00 00 B7 [17:02:10]Write i2c OK [17:02:10]MH_I2C_Read... [17:02:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:10]Read from MH i2c: E2 [17:02:10]MH_I2C_Read... [17:02:10]Read from MH i2c: E2 0E 00 [17:02:10]MH_I2C_Read... [17:02:10]Read from MH i2c: E2 0E 00 35 05 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 D5 [17:02:10]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [17:02:10]wFMCommunicate OK [17:02:10]SAM_PROTO_GetShiftState done [17:02:10]FM_GetShiftState done [17:02:10]req_shift_opened done [17:02:10]requested_item shift.open_date is exist - process it [17:02:10]req_shift_open_date [17:02:10]req_shift_open_date done [17:02:10]produce_requested_data done [17:02:10]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103173,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [17:02:10]process_action_free close_receipt [17:02:10]json_value_free [17:02:10]json_value_free done [17:02:10]process_json_proto returns [17:02:10]Send response to host [17:02:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103173,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [17:02:10]free response buf [17:02:10]execute_script done [17:02:10]execute_script returns [17:02:10]free content buf [17:02:10]Sock 9.Close socket [17:02:10]Sock 9.Thread stoped [17:02:14]OFD Sender: No OFD packet to send [17:02:19]OFD Sender: No OFD packet to send [17:02:24]OFD Sender: No OFD packet to send [17:02:29]OFD Sender: No OFD packet to send [17:02:34]OFD Sender: No OFD packet to send [17:02:39]OFD Sender: No OFD packet to send [17:02:44]OFD Sender: No OFD packet to send [17:02:49]OFD Sender: No OFD packet to send [17:02:54]OFD Sender: No OFD packet to send [17:02:59]OFD Sender: No OFD packet to send [17:03:04]OFD Sender: No OFD packet to send [17:03:09]OFD Sender: No OFD packet to send [17:03:14]OFD Sender: No OFD packet to send [17:03:19]OFD Sender: No OFD packet to send [17:03:24]OFD Sender: No OFD packet to send [17:03:29]OFD Sender: No OFD packet to send [17:03:34]OFD Sender: No OFD packet to send [17:03:39]OFD Sender: No OFD packet to send [17:03:44]OFD Sender: No OFD packet to send [17:03:49]OFD Sender: No OFD packet to send [17:03:54]OFD Sender: No OFD packet to send [17:03:59]OFD Sender: No OFD packet to send [17:04:04]OFD Sender: No OFD packet to send [17:04:09]OFD Sender: No OFD packet to send [17:04:14]OFD Sender: No OFD packet to send [17:04:19]OFD Sender: No OFD packet to send [17:04:24]OFD Sender: No OFD packet to send [17:04:29]OFD Sender: No OFD packet to send [17:04:34]OFD Sender: No OFD packet to send [17:04:39]OFD Sender: No OFD packet to send [17:04:44]OFD Sender: No OFD packet to send [17:04:49]OFD Sender: No OFD packet to send [17:04:54]OFD Sender: No OFD packet to send [17:04:59]OFD Sender: No OFD packet to send [17:05:04]OFD Sender: No OFD packet to send [17:05:09]OFD Sender: No OFD packet to send [17:05:14]OFD Sender: No OFD packet to send [17:05:19]OFD Sender: No OFD packet to send [17:05:24]OFD Sender: No OFD packet to send [17:05:29]OFD Sender: No OFD packet to send [17:05:34]OFD Sender: No OFD packet to send [17:05:39]OFD Sender: No OFD packet to send [17:05:44]OFD Sender: No OFD packet to send [17:05:49]OFD Sender: No OFD packet to send [17:05:54]OFD Sender: No OFD packet to send [17:05:59]OFD Sender: No OFD packet to send [17:06:04]OFD Sender: No OFD packet to send [17:06:09]OFD Sender: No OFD packet to send [17:06:14]OFD Sender: No OFD packet to send [17:06:19]OFD Sender: No OFD packet to send [17:06:24]OFD Sender: No OFD packet to send [17:06:29]OFD Sender: No OFD packet to send [17:06:34]OFD Sender: No OFD packet to send [17:06:39]OFD Sender: No OFD packet to send [17:06:44]OFD Sender: No OFD packet to send [17:06:49]OFD Sender: No OFD packet to send [17:06:54]OFD Sender: No OFD packet to send [17:06:59]OFD Sender: No OFD packet to send [17:07:04]OFD Sender: No OFD packet to send [17:07:09]OFD Sender: No OFD packet to send [17:07:14]OFD Sender: No OFD packet to send [17:07:19]OFD Sender: No OFD packet to send [17:07:24]OFD Sender: No OFD packet to send [17:07:29]OFD Sender: No OFD packet to send [17:07:34]OFD Sender: No OFD packet to send [17:07:39]OFD Sender: No OFD packet to send [17:07:44]OFD Sender: No OFD packet to send [17:07:49]OFD Sender: No OFD packet to send [17:07:54]OFD Sender: No OFD packet to send [17:07:59]OFD Sender: No OFD packet to send [17:08:04]OFD Sender: No OFD packet to send [17:08:09]OFD Sender: No OFD packet to send [17:08:14]OFD Sender: No OFD packet to send [17:08:20]OFD Sender: No OFD packet to send [17:08:25]OFD Sender: No OFD packet to send [17:08:30]OFD Sender: No OFD packet to send [17:08:35]OFD Sender: No OFD packet to send [17:08:40]OFD Sender: No OFD packet to send [17:08:45]OFD Sender: No OFD packet to send [17:08:50]OFD Sender: No OFD packet to send [17:08:55]OFD Sender: No OFD packet to send [17:09:00]OFD Sender: No OFD packet to send [17:09:05]OFD Sender: No OFD packet to send [17:09:10]OFD Sender: No OFD packet to send [17:09:15]OFD Sender: No OFD packet to send [17:09:20]OFD Sender: No OFD packet to send [17:09:25]OFD Sender: No OFD packet to send [17:09:30]OFD Sender: No OFD packet to send [17:09:35]OFD Sender: No OFD packet to send [17:09:40]OFD Sender: No OFD packet to send [17:09:45]OFD Sender: No OFD packet to send [17:09:50]OFD Sender: No OFD packet to send [17:09:55]OFD Sender: No OFD packet to send [17:10:00]OFD Sender: No OFD packet to send [17:10:05]OFD Sender: No OFD packet to send [17:10:10]OFD Sender: No OFD packet to send [17:10:15]OFD Sender: No OFD packet to send [17:10:20]OFD Sender: No OFD packet to send [17:10:25]OFD Sender: No OFD packet to send [17:10:30]OFD Sender: No OFD packet to send [17:10:35]OFD Sender: No OFD packet to send [17:10:40]OFD Sender: No OFD packet to send [17:10:45]OFD Sender: No OFD packet to send [17:10:50]OFD Sender: No OFD packet to send [17:10:55]OFD Sender: No OFD packet to send [17:11:00]OFD Sender: No OFD packet to send [17:11:05]OFD Sender: No OFD packet to send [17:11:10]OFD Sender: No OFD packet to send [17:11:15]OFD Sender: No OFD packet to send [17:11:20]OFD Sender: No OFD packet to send [17:11:25]OFD Sender: No OFD packet to send [17:11:30]OFD Sender: No OFD packet to send [17:11:35]OFD Sender: No OFD packet to send [17:11:40]OFD Sender: No OFD packet to send [17:11:45]OFD Sender: No OFD packet to send [17:11:50]OFD Sender: No OFD packet to send [17:11:55]OFD Sender: No OFD packet to send [17:12:00]OFD Sender: No OFD packet to send [17:12:05]OFD Sender: No OFD packet to send [17:12:08]accept exits with 7 [17:12:08]New connection [17:12:08]New thread 3067260260 created [17:12:08]Thread 3067116900 joined [17:12:08]Waiting for new connection... [17:12:08] Sock 7.Parse request [17:12:08]Sock 7.Check first char [17:12:08]Sock 7.First char is OK [17:12:08]request: POST /json_proto HTTP/1.0 [17:12:08]Method: POST [17:12:08]URL: /json_proto [17:12:08]Method is POST - this is cgi request [17:12:08]url: /json_proto [17:12:08]query_string will be loaded in cgi processing [17:12:08]execute_cgi json_proto POST (null) [17:12:08]execute_cgi path=json_proto method=POST [17:12:08]POST find Content-Length [17:12:08]Host: 172.17.58.3:8080 [17:12:08]Content-Length: 681 [17:12:08]Content-Type: application/json [17:12:08] [17:12:08]POST finish read [17:12:08]Found Content-Length = 681 [17:12:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160805", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [17:12:08]execute_script... [17:12: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)160805", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [17:12:08]POST & json_proto [17:12:08]process_json_proto [17:12:08]json parsed OK: [17:12:08]protocol is kg_v1.0 [17:12:08]action value=close_receipt [17:12:08]process_action close_receipt [17:12:08]cmd_close_receipt [17:12:08]MH_GetDate [17:12:08]Write to MH i2c: F0 00 00 36 05 2A [17:12:08]Write i2c OK [17:12:08]MH_I2C_Read... [17:12:08]Read from MH i2c: F0 [17:12:08]MH_I2C_Read... [17:12:08]Read from MH i2c: F0 09 00 [17:12:08]MH_I2C_Read... [17:12:08]Read from MH i2c: F0 09 00 36 05 00 E9 93 BB 66 DC E4 6D 64 61 [17:12:08]GetLastDocTimeStamp 1723568527 [17:12:08]current date 1723569129 [17:12:08]FM_GetShiftState [17:12:08]SAM_PROTO_GetShiftState [17:12:08]wFMCommunicate request_size=4 [17:12:08]MH_SAM_APDU [17:12:08]CAPDU: 80 13 01 00 [17:12:08]Write to MH i2c: E2 08 00 37 05 80 13 01 00 00 00 00 00 B9 [17:12:08]Write i2c OK [17:12:08]MH_I2C_Read... [17:12:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:08]Read from MH i2c: E2 [17:12:08]MH_I2C_Read... [17:12:08]Read from MH i2c: E2 0E 00 [17:12:08]MH_I2C_Read... [17:12:08]Read from MH i2c: E2 0E 00 37 05 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 D7 [17:12:08]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [17:12:08]wFMCommunicate OK [17:12:08]SAM_PROTO_GetShiftState done [17:12:08]FM_GetShiftState done [17:12:08]opened in 1723506770 [17:12:08]opened+sec_in_day 1723593170 [17:12:08]quantity*price = 200006 [17:12:08]sum+1 = 200008 [17:12:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 85 13.08.2024 17:12 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103174 ФПД: 188569162177260 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T171209&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103174&fm=188569162177260&tin=02508201610067®Number=0000000000092718&sum=200000 [17:12:09]StoreToDocumentArchive [17:12:09]shift 464 fd 103174 [17:12:09]save to /storage/0464/doc_00103174 [17:12:09]save last doc name /storage/0464/doc_00103174 to /storage/kkm_last_doc_name [17:12:09]save OK [17:12:09]Clear old archive folders... [17:12:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:12:09]tlvbuf is 00250980 [17:12:09]SAM_PROTO_ClearQueue [17:12:09]wFMCommunicate request_size=4 [17:12:09]MH_SAM_APDU [17:12:09]CAPDU: 80 09 00 00 [17:12:09]Write to MH i2c: E2 08 00 44 05 80 09 00 00 00 00 00 00 BB [17:12:09]Write i2c OK [17:12:09]MH_I2C_Read... [17:12:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:12:09]Read from MH i2c: E2 [17:12:09]MH_I2C_Read... [17:12:09]Read from MH i2c: E2 03 00 [17:12:09]MH_I2C_Read... [17:12:09]Read from MH i2c: E2 03 00 44 05 00 90 00 BD [17:12:09]RAPDU: 90 00 [17:12:09]wFMCommunicate OK [17:12:09]SAM_PROTO_ClearQueue done [17:12:09]KKMCreateOFDPacket [17:12:09]OFDProtocolAddRootSTLVToBuf [17:12:09]FM_MakeSignedData [17:12:09]FM_MakeSignedData [17:12:09]SAM_PROTO_SignData [17:12:09]wFMCommunicate request_size=4 [17:12:09]MH_SAM_APDU [17:12:09]CAPDU: 80 0D 01 02 [17:12:09]Write to MH i2c: E2 08 00 45 05 80 0D 01 02 00 00 00 00 C3 [17:12:09]Write i2c OK [17:12:09]MH_I2C_Read... [17:12:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:12:09]Read from MH i2c: E2 [17:12:09]MH_I2C_Read... [17:12:09]Read from MH i2c: E2 03 00 [17:12:09]MH_I2C_Read... [17:12:09]Read from MH i2c: E2 03 00 45 05 00 90 00 BE [17:12:09]RAPDU: 90 00 [17:12:09]wFMCommunicate OK [17:12:09]wFMCommunicate request_size=255 [17:12:09]MH_SAM_APDU [17:12: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 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 E9 93 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 06 93 01 00 35 04 06 00 AB [17:12:09]Write to MH i2c: E2 02 01 46 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 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 E9 93 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 06 93 01 00 35 04 06 00 AB 00 00 E4 [17:12:09]Write i2c OK [17:12:09]MH_I2C_Read... [17:12:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:09]Read from MH i2c: E2 [17:12:09]MH_I2C_Read... [17:12:09]Read from MH i2c: E2 03 00 [17:12:09]MH_I2C_Read... [17:12:09]Read from MH i2c: E2 03 00 46 05 00 90 00 BF [17:12:09]RAPDU: 90 00 [17:12:09]wFMCommunicate OK [17:12:09]wFMCommunicate request_size=10 [17:12:09]MH_SAM_APDU [17:12:09]CAPDU: 80 0D 02 02 05 80 AD ED 5A EC [17:12:09]Write to MH i2c: E2 0D 00 47 05 80 0D 02 02 05 00 80 AD ED 5A EC 00 00 30 [17:12:09]Write i2c OK [17:12:09]MH_I2C_Read... [17:12:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:09]Read from MH i2c: E2 [17:12:09]MH_I2C_Read... [17:12:09]Read from MH i2c: E2 03 00 [17:12:09]MH_I2C_Read... [17:12:09]Read from MH i2c: E2 03 00 47 05 00 90 00 C0 [17:12:09]RAPDU: 90 00 [17:12:09]wFMCommunicate OK [17:12:09]wFMCommunicate request_size=4 [17:12:09]MH_SAM_APDU [17:12:09]CAPDU: 80 0D 03 02 [17:12:09]Write to MH i2c: E2 08 00 48 05 80 0D 03 02 00 00 00 00 C8 [17:12:09]Write i2c OK [17:12:09]MH_I2C_Read... [17:12:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:12:09]Read from MH i2c: E2 [17:12:09]MH_I2C_Read... [17:12:09]Read from MH i2c: E2 0B 00 [17:12:09]MH_I2C_Read... [17:12:09]Read from MH i2c: E2 0B 00 48 05 00 43 A5 F9 0E A8 EB 2F F5 90 00 6F [17:12:09]RAPDU: 43 A5 F9 0E A8 EB 2F F5 90 00 [17:12:09]wFMCommunicate OK [17:12:09]SAM_PROTO_SignData done [17:12:09]FM_MakeSignedData done [17:12:09]CreateOFDProtocolMessage [17:12:09]wFMCommunicate request_size=4 [17:12:09]MH_SAM_APDU [17:12:09]CAPDU: 80 11 00 00 [17:12:09]Write to MH i2c: E2 08 00 49 05 80 11 00 00 00 00 00 00 C8 [17:12:09]Write i2c OK [17:12:09]MH_I2C_Read... [17:12:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:09]Read from MH i2c: E2 [17:12:09]MH_I2C_Read... [17:12:09]Read from MH i2c: E2 17 00 [17:12:09]MH_I2C_Read... [17:12:09]Read from MH i2c: E2 17 00 49 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 1C [17:12:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [17:12:09]wFMCommunicate OK [17:12:09]CreateOFDProtocolMessage done [17:12:09]OFDSenderStorePacket 103174 [17:12:09]StoreOFDPacket docnum=103174 [17:12:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 AE 60 07 01 78 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 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 E9 93 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 06 93 01 00 35 04 06 00 AB 80 AD ED 5A EC 43 A5 F9 0E A8 EB 2F F5 [17:12:09]CheckFolder [17:12:09]dirname=/storage/ofd_packets [17:12:09]CheckFolder done [17:12:09]ProducePacketName [17:12:09]name=ofd_packets/00103174 [17:12:09]NVStorageSaveData ofd_packets/00103174 [17:12:09]File name is /storage/ofd_packets/00103174 [17:12:09]Write 301 bytes [17:12:09]NVStorageSaveData done [17:12:09]OFDSenderStorePacket done [17:12:09]KKMCreateOFDPacket done [17:12:09]NVStorageSaveData kkm_last_timestamp [17:12:09]File name is /storage/kkm_last_timestamp [17:12:09]Write 4 bytes [17:12:09]NVStorageSaveData done [17:12:09]ExternCall_PrintAddStr [17:12:09]wPrintStart [17:12:09]Write to MH i2c: 01 00 00 4A 05 4F [17:12:09]Write i2c OK [17:12:09]MH_I2C_Read... [17:12:09]Read from MH i2c: 01 [17:12:09]MH_I2C_Read... [17:12:09]Read from MH i2c: 01 07 00 [17:12:09]MH_I2C_Read... [17:12:09]Read from MH i2c: 01 07 00 4A 05 00 00 00 00 00 FF 0F 64 [17:12:09]RasterBufferAndPrint [17:12:09]line Счет N : (1)160805 [17:12:09]line ИНН: 02508201610067 [17:12:09]line Контрольно-Кассовый Чек [17:12:09]line ПРОДАЖА [17:12:09]line ТРК (МРК, ГНК) : 7 [17:12:09]line Товар: 2710124130 [17:12:09]line Аи-92-К-5 [17:12:09]line 30.350 * 65.90 [17:12:09]line = 2000.07 [17:12:09]line НДС 12% НСП 1% [17:12:09]line > о реализуемом товаре [17:12:09]line ОКРУГЛЕНИЕ: -0.07 [17:12:09]line ИТОГО: 2000.00 [17:12:09]line Внесено: 2000.00 [17:12:09]line СДАЧА: 0.00 [17:12:09]line НСП 1% : 17.70 [17:12:09]line НДС 12% : 212.40 [17:12:09]line Наличными: 2000.00 [17:12:09]line Безнал.: 0.00 [17:12:09]line Место: АЗС № 38 "Партнер Нефть" [17:12:09]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [17:12:09]line СНО: Общий режим [17:12:09]line Чек 85 13.08.2024 17:12 [17:12:09]line Смена: 464 ФФД: 1.0 [17:12:09]line ЗНМ: 0300000126 [17:12:09]line РНМ: 0000000000092718 [17:12:09]line Версия ККМ: 001 [17:12:09]line ФМ: 0000000000875058 [17:12:09]line ФД: 103174 [17:12:09]line ФПД: 188569162177260 [17:12:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T171209&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103174&fm=188569162177260&tin=02508201610067®Number=0000000000092718&sum=200000 [17:12:10]OFD Sender: Processing packet 103174 [packets to send 69, broken 68] [17:12:10]ProducePacketName [17:12:10]name=ofd_packets/00103174 [17:12:10]OFD Sender: To server: pG, [17:12:10]CommunicateWithHost lk.salyk.kg:30040 [17:12:10]ConnectInit lk.salyk.kg [17:12:10]written 0, free lines is 4095 [17:12:10]Connected sock=10 [17:12:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 AE 60 07 01 78 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 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 E9 93 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 06 93 01 00 35 04 06 00 AB 80 AD ED 5A EC 43 A5 F9 0E A8 EB 2F F5 [17:12:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 43 6C 47 00 FA FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 06 93 01 00 F4 03 04 00 5B 3A BB 66 B6 04 01 00 00 12 73 D7 65 24 9C 67 FC [17:12:10]CommunicateWithHost err = 0 [17:12:10]CheckOFDResponse [17:12:10]1017 (14) - 77093643461234 [17:12:10]1041 (16) - 0000000000875058 [17:12:10]1040 (4) - 103174 [17:12:10]1012 (4) - 13.08.2024 10:50 [17:12:10]1206 (1) - 0 [17:12:10]OFD Sender: Remove packet 103174 [17:12:10]ProducePacketName [17:12:10]name=ofd_packets/00103174 [17:12:10]NVStorageDeleteData [17:12:10]Write to MH i2c: 01 00 00 75 05 7A [17:12:10]Write i2c OK [17:12:10]MH_I2C_Read... [17:12:10]Read from MH i2c: 01 [17:12:10]MH_I2C_Read... [17:12:10]Read from MH i2c: 01 07 00 [17:12:10]MH_I2C_Read... [17:12:10]Read from MH i2c: 01 07 00 75 05 00 00 00 00 00 DF 0C 6C [17:12:10]RasterBufferAndPrint [17:12:10]line [17:12:10]line [17:12:10]line [17:12:10]line [17:12:10]line [17:12:10]written 0, free lines is 3301 [17:12:10]MH_Cut [17:12:10]Write to MH i2c: D1 01 00 7C 05 01 53 [17:12:10]Write i2c OK [17:12:10]MH_I2C_Read... [17:12:10]Read from MH i2c: D1 [17:12:10]MH_I2C_Read... [17:12:10]Read from MH i2c: D1 01 00 [17:12:10]MH_I2C_Read... [17:12:10]Read from MH i2c: D1 01 00 7C 05 00 52 [17:12:10]Write to MH i2c: 01 00 00 7D 05 82 [17:12:10]Write i2c OK [17:12:10]MH_I2C_Read... [17:12:11]OFD Sender: No OFD packet to send [17:12:11]*** Cut start [17:12:11]*** Purtial cut [17:12:11]*** CUTSNS_PIN = 0 [17:12:11]*** Stage 1: CUTSNS_PIN = 1 [17:12:13]Read from MH i2c: 01 [17:12:13]MH_I2C_Read... [17:12:13]*** Stop cut motor [17:12:13]*** Cut end [17:12:13]Read from MH i2c: 01 07 00 [17:12:13]MH_I2C_Read... [17:12:13]Read from MH i2c: 01 07 00 7D 05 00 00 00 00 00 FF 0F 97 [17:12:13]process_action close_receipt done [17:12:13]requested_data is exist [17:12:13]produce_requested_data [17:12:13]requested_item fm.sn is exist - process it [17:12:13]wFMCommunicate request_size=4 [17:12:13]MH_SAM_APDU [17:12:13]CAPDU: 80 11 00 00 [17:12:13]Write to MH i2c: E2 08 00 7E 05 80 11 00 00 00 00 00 00 FD [17:12:13]Write i2c OK [17:12:13]MH_I2C_Read... [17:12:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:13]Read from MH i2c: E2 [17:12:13]MH_I2C_Read... [17:12:13]Read from MH i2c: E2 17 00 [17:12:13]MH_I2C_Read... [17:12:13]Read from MH i2c: E2 17 00 7E 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 51 [17:12:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [17:12:13]wFMCommunicate OK [17:12:13]requested_item fd.num is exist - process it [17:12:13]SAM_PROTO_GetFieldsCounters [17:12:13]wFMCommunicate request_size=4 [17:12:13]MH_SAM_APDU [17:12:13]CAPDU: 80 13 00 00 [17:12:13]Write to MH i2c: E2 08 00 7F 05 80 13 00 00 00 00 00 00 00 [17:12:13]Write i2c OK [17:12:13]MH_I2C_Read... [17:12:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:12:13]Read from MH i2c: E2 [17:12:13]MH_I2C_Read... [17:12:13]Read from MH i2c: E2 62 00 [17:12:13]MH_I2C_Read... [17:12:13]Read from MH i2c: E2 62 00 7F 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 06 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [17:12:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 06 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:12:13]wFMCommunicate OK [17:12:13]SAM_PROTO_GetFieldsCounters done [17:12:13]requested_item shift.num is exist - process it [17:12:13]requested_item shift.opened is exist - process it [17:12:13]req_shift_opened [17:12:13]FM_GetShiftState [17:12:13]SAM_PROTO_GetShiftState [17:12:13]wFMCommunicate request_size=4 [17:12:13]MH_SAM_APDU [17:12:13]CAPDU: 80 13 01 00 [17:12:13]Write to MH i2c: E2 08 00 80 05 80 13 01 00 00 00 00 00 02 [17:12:13]Write i2c OK [17:12:13]MH_I2C_Read... [17:12:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:13]Read from MH i2c: E2 [17:12:13]MH_I2C_Read... [17:12:13]Read from MH i2c: E2 0E 00 [17:12:13]MH_I2C_Read... [17:12:13]Read from MH i2c: E2 0E 00 80 05 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 20 [17:12:13]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [17:12:13]wFMCommunicate OK [17:12:13]SAM_PROTO_GetShiftState done [17:12:13]FM_GetShiftState done [17:12:13]req_shift_opened done [17:12:13]requested_item shift.open_date is exist - process it [17:12:13]req_shift_open_date [17:12:13]req_shift_open_date done [17:12:13]produce_requested_data done [17:12:13]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103174,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [17:12:13]process_action_free close_receipt [17:12:13]json_value_free [17:12:13]json_value_free done [17:12:13]process_json_proto returns [17:12:13]Send response to host [17:12:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103174,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [17:12:13]free response buf [17:12:13]execute_script done [17:12:13]execute_script returns [17:12:13]free content buf [17:12:13]Sock 7.Close socket [17:12:13]Sock 7.Thread stoped [17:12:16]OFD Sender: No OFD packet to send [17:12:21]OFD Sender: No OFD packet to send [17:12:26]OFD Sender: No OFD packet to send [17:12:31]OFD Sender: No OFD packet to send [17:12:36]OFD Sender: No OFD packet to send [17:12:41]OFD Sender: No OFD packet to send [17:12:46]OFD Sender: No OFD packet to send [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:26]OFD Sender: No OFD packet to send [17:13:31]OFD Sender: No OFD packet to send [17:13:36]OFD Sender: No OFD packet to send [17:13:41]OFD Sender: No OFD packet to send [17:13:46]OFD Sender: No OFD packet to send [17:13:51]OFD Sender: No OFD packet to send [17:13:56]OFD Sender: No OFD packet to send [17:14:01]OFD Sender: No OFD packet to send [17:14:06]OFD Sender: No OFD packet to send [17:14:11]OFD Sender: No OFD packet to send [17:14:16]OFD Sender: No OFD packet to send [17:14:21]OFD Sender: No OFD packet to send [17:14:26]OFD Sender: No OFD packet to send [17:14:31]OFD Sender: No OFD packet to send [17:14:36]OFD Sender: No OFD packet to send [17:14:41]OFD Sender: No OFD packet to send [17:14:46]OFD Sender: No OFD packet to send [17:14:51]OFD Sender: No OFD packet to send [17:14:56]OFD Sender: No OFD packet to send [17:15:01]OFD Sender: No OFD packet to send [17:15:06]OFD Sender: No OFD packet to send [17:15:11]OFD Sender: No OFD packet to send [17:15:16]OFD Sender: No OFD packet to send [17:15:21]OFD Sender: No OFD packet to send [17:15:26]OFD Sender: No OFD packet to send [17:15:31]OFD Sender: No OFD packet to send [17:15:36]OFD Sender: No OFD packet to send [17:15:41]OFD Sender: No OFD packet to send [17:15:46]OFD Sender: No OFD packet to send [17:15:51]OFD Sender: No OFD packet to send [17:15:56]OFD Sender: No OFD packet to send [17:16:01]OFD Sender: No OFD packet to send [17:16:06]OFD Sender: No OFD packet to send [17:16:11]OFD Sender: No OFD packet to send [17:16:16]OFD Sender: No OFD packet to send [17:16:21]OFD Sender: No OFD packet to send [17:16:26]OFD Sender: No OFD packet to send [17:16:31]OFD Sender: No OFD packet to send [17:16:36]OFD Sender: No OFD packet to send [17:16:41]OFD Sender: No OFD packet to send [17:16:43]accept exits with 9 [17:16:43]New connection [17:16:43]New thread 3067116900 created [17:16:43]Thread 3067260260 joined [17:16:43]Waiting for new connection... [17:16:43] Sock 9.Parse request [17:16:43]Sock 9.Check first char [17:16:43]Sock 9.First char is OK [17:16:43]request: POST /json_proto HTTP/1.0 [17:16:43]Method: POST [17:16:43]URL: /json_proto [17:16:43]Method is POST - this is cgi request [17:16:43]url: /json_proto [17:16:43]query_string will be loaded in cgi processing [17:16:43]execute_cgi json_proto POST (null) [17:16:43]execute_cgi path=json_proto method=POST [17:16:43]POST find Content-Length [17:16:43]Host: 172.17.58.3:8080 [17:16:43]Content-Length: 677 [17:16:43]Content-Type: application/json [17:16:43] [17:16:43]POST finish read [17:16:43]Found Content-Length = 677 [17:16:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160806", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 10.020, "sum" : 660.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:43]execute_script... [17:16:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160806", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 10.020, "sum" : 660.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:43]POST & json_proto [17:16:43]process_json_proto [17:16:43]json parsed OK: [17:16:43]protocol is kg_v1.0 [17:16:43]action value=close_receipt [17:16:43]process_action close_receipt [17:16:43]cmd_close_receipt [17:16:43]MH_GetDate [17:16:43]Write to MH i2c: F0 00 00 81 05 75 [17:16:43]Write i2c OK [17:16:43]MH_I2C_Read... [17:16:43]Read from MH i2c: F0 [17:16:43]MH_I2C_Read... [17:16:43]Read from MH i2c: F0 09 00 [17:16:43]MH_I2C_Read... [17:16:43]Read from MH i2c: F0 09 00 81 05 00 FC 94 BB 66 DC E4 6D 64 C0 [17:16:43]GetLastDocTimeStamp 1723569129 [17:16:43]current date 1723569404 [17:16:43]FM_GetShiftState [17:16:43]SAM_PROTO_GetShiftState [17:16:43]wFMCommunicate request_size=4 [17:16:43]MH_SAM_APDU [17:16:43]CAPDU: 80 13 01 00 [17:16:43]Write to MH i2c: E2 08 00 82 05 80 13 01 00 00 00 00 00 04 [17:16:43]Write i2c OK [17:16:43]MH_I2C_Read... [17:16:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:43]Read from MH i2c: E2 [17:16:43]MH_I2C_Read... [17:16:43]Read from MH i2c: E2 0E 00 [17:16:43]MH_I2C_Read... [17:16:43]Read from MH i2c: E2 0E 00 82 05 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 22 [17:16:43]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [17:16:43]wFMCommunicate OK [17:16:43]SAM_PROTO_GetShiftState done [17:16:43]FM_GetShiftState done [17:16:43]opened in 1723506770 [17:16:43]opened+sec_in_day 1723593170 [17:16:43]quantity*price = 66031 [17:16:43]sum+1 = 66033 [17:16:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 660.00 Внесено: 660.00 СДАЧА: 0.00 НСП 1% : 5.84 НДС 12% : 70.12 Наличными: 660.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 86 13.08.2024 17:16 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103175 ФПД: 187446570233806 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T171644&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103175&fm=187446570233806&tin=02508201610067®Number=0000000000092718&sum=66000 [17:16:44]StoreToDocumentArchive [17:16:44]shift 464 fd 103175 [17:16:44]save to /storage/0464/doc_00103175 [17:16:44]save last doc name /storage/0464/doc_00103175 to /storage/kkm_last_doc_name [17:16:44]save OK [17:16:44]Clear old archive folders... [17:16:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:16:44]tlvbuf is 002107C0 [17:16:44]SAM_PROTO_ClearQueue [17:16:44]wFMCommunicate request_size=4 [17:16:44]MH_SAM_APDU [17:16:44]CAPDU: 80 09 00 00 [17:16:44]Write to MH i2c: E2 08 00 8F 05 80 09 00 00 00 00 00 00 06 [17:16:44]Write i2c OK [17:16:44]MH_I2C_Read... [17:16:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:16:44]Read from MH i2c: E2 [17:16:44]MH_I2C_Read... [17:16:44]Read from MH i2c: E2 03 00 [17:16:44]MH_I2C_Read... [17:16:44]Read from MH i2c: E2 03 00 8F 05 00 90 00 08 [17:16:44]RAPDU: 90 00 [17:16:44]wFMCommunicate OK [17:16:44]SAM_PROTO_ClearQueue done [17:16:44]KKMCreateOFDPacket [17:16:44]OFDProtocolAddRootSTLVToBuf [17:16:44]FM_MakeSignedData [17:16:44]FM_MakeSignedData [17:16:44]SAM_PROTO_SignData [17:16:44]wFMCommunicate request_size=4 [17:16:44]MH_SAM_APDU [17:16:44]CAPDU: 80 0D 01 02 [17:16:44]Write to MH i2c: E2 08 00 90 05 80 0D 01 02 00 00 00 00 0E [17:16:44]Write i2c OK [17:16:44]MH_I2C_Read... [17:16:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:16:44]Read from MH i2c: E2 [17:16:44]MH_I2C_Read... [17:16:44]Read from MH i2c: E2 03 00 [17:16:44]MH_I2C_Read... [17:16:44]Read from MH i2c: E2 03 00 90 05 00 90 00 09 [17:16:44]RAPDU: 90 00 [17:16:44]wFMCommunicate OK [17:16:44]wFMCommunicate request_size=255 [17:16:44]MH_SAM_APDU [17:16:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 F0 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 FC 94 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 07 93 01 00 35 04 06 00 AA [17:16:44]Write to MH i2c: E2 02 01 91 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 F0 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 FC 94 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 07 93 01 00 35 04 06 00 AA 00 00 B9 [17:16:44]Write i2c OK [17:16:44]MH_I2C_Read... [17:16:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:44]Read from MH i2c: E2 [17:16:44]MH_I2C_Read... [17:16:44]Read from MH i2c: E2 03 00 [17:16:44]MH_I2C_Read... [17:16:44]Read from MH i2c: E2 03 00 91 05 00 90 00 0A [17:16:44]RAPDU: 90 00 [17:16:44]wFMCommunicate OK [17:16:44]wFMCommunicate request_size=10 [17:16:44]MH_SAM_APDU [17:16:44]CAPDU: 80 0D 02 02 05 7B 4E 3B AF CE [17:16:44]Write to MH i2c: E2 0D 00 92 05 80 0D 02 02 05 00 7B 4E 3B AF CE 00 00 9C [17:16:44]Write i2c OK [17:16:44]MH_I2C_Read... [17:16:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:44]Read from MH i2c: E2 [17:16:44]MH_I2C_Read... [17:16:44]Read from MH i2c: E2 03 00 [17:16:44]MH_I2C_Read... [17:16:44]Read from MH i2c: E2 03 00 92 05 00 90 00 0B [17:16:44]RAPDU: 90 00 [17:16:44]wFMCommunicate OK [17:16:44]wFMCommunicate request_size=4 [17:16:44]MH_SAM_APDU [17:16:44]CAPDU: 80 0D 03 02 [17:16:44]Write to MH i2c: E2 08 00 93 05 80 0D 03 02 00 00 00 00 13 [17:16:44]Write i2c OK [17:16:44]MH_I2C_Read... [17:16:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:16:44]Read from MH i2c: E2 [17:16:44]MH_I2C_Read... [17:16:44]Read from MH i2c: E2 0B 00 [17:16:44]MH_I2C_Read... [17:16:44]Read from MH i2c: E2 0B 00 93 05 00 BD C1 1E 13 6D F2 02 40 90 00 64 [17:16:44]RAPDU: BD C1 1E 13 6D F2 02 40 90 00 [17:16:44]wFMCommunicate OK [17:16:44]SAM_PROTO_SignData done [17:16:44]FM_MakeSignedData done [17:16:44]CreateOFDProtocolMessage [17:16:44]wFMCommunicate request_size=4 [17:16:44]MH_SAM_APDU [17:16:44]CAPDU: 80 11 00 00 [17:16:44]Write to MH i2c: E2 08 00 94 05 80 11 00 00 00 00 00 00 13 [17:16:44]Write i2c OK [17:16:44]MH_I2C_Read... [17:16:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:44]Read from MH i2c: E2 [17:16:44]MH_I2C_Read... [17:16:44]Read from MH i2c: E2 17 00 [17:16:44]MH_I2C_Read... [17:16:44]Read from MH i2c: E2 17 00 94 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 67 [17:16:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [17:16:44]wFMCommunicate OK [17:16:44]CreateOFDProtocolMessage done [17:16:44]OFDSenderStorePacket 103175 [17:16:44]StoreOFDPacket docnum=103175 [17:16:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 96 CB 07 01 6B 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 24 27 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 F0 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 FC 94 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 07 93 01 00 35 04 06 00 AA 7B 4E 3B AF CE BD C1 1E 13 6D F2 02 40 [17:16:44]CheckFolder [17:16:44]dirname=/storage/ofd_packets [17:16:44]CheckFolder done [17:16:44]ProducePacketName [17:16:44]name=ofd_packets/00103175 [17:16:44]NVStorageSaveData ofd_packets/00103175 [17:16:44]File name is /storage/ofd_packets/00103175 [17:16:44]Write 301 bytes [17:16:44]NVStorageSaveData done [17:16:44]OFDSenderStorePacket done [17:16:44]KKMCreateOFDPacket done [17:16:44]NVStorageSaveData kkm_last_timestamp [17:16:44]File name is /storage/kkm_last_timestamp [17:16:44]Write 4 bytes [17:16:44]NVStorageSaveData done [17:16:44]ExternCall_PrintAddStr [17:16:44]wPrintStart [17:16:44]Write to MH i2c: 01 00 00 95 05 9A [17:16:44]Write i2c OK [17:16:44]MH_I2C_Read... [17:16:44]Read from MH i2c: 01 [17:16:44]MH_I2C_Read... [17:16:44]Read from MH i2c: 01 07 00 [17:16:44]MH_I2C_Read... [17:16:44]Read from MH i2c: 01 07 00 95 05 00 00 00 00 00 FF 0F AF [17:16:44]RasterBufferAndPrint [17:16:44]line Счет N : (1)160806 [17:16:44]line ИНН: 02508201610067 [17:16:44]line Контрольно-Кассовый Чек [17:16:44]line ПРОДАЖА [17:16:44]line ТРК (МРК, ГНК) : 7 [17:16:44]line Товар: 2710124130 [17:16:44]line Аи-92-К-5 [17:16:44]line 10.020 * 65.90 [17:16:44]line = 660.32 [17:16:44]line НДС 12% НСП 1% [17:16:44]line > о реализуемом товаре [17:16:44]line ОКРУГЛЕНИЕ: -0.32 [17:16:44]line ИТОГО: 660.00 [17:16:44]line Внесено: 660.00 [17:16:44]line СДАЧА: 0.00 [17:16:44]line НСП 1% : 5.84 [17:16:44]line НДС 12% : 70.12 [17:16:44]line Наличными: 660.00 [17:16:44]line Безнал.: 0.00 [17:16:44]line Место: АЗС № 38 "Партнер Нефть" [17:16:44]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [17:16:44]line СНО: Общий режим [17:16:44]line Чек 86 13.08.2024 17:16 [17:16:44]line Смена: 464 ФФД: 1.0 [17:16:44]line ЗНМ: 0300000126 [17:16:44]line РНМ: 0000000000092718 [17:16:44]line Версия ККМ: 001 [17:16:44]line ФМ: 0000000000875058 [17:16:44]line ФД: 103175 [17:16:44]line ФПД: 187446570233806 [17:16:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T171644&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103175&fm=187446570233806&tin=02508201610067®Number=0000000000092718&sum=66000 [17:16:45]OFD Sender: Processing packet 103175 [packets to send 69, broken 68] [17:16:45]ProducePacketName [17:16:45]name=ofd_packets/00103175 [17:16:45]OFD Sender: To server: pG, [17:16:45]CommunicateWithHost lk.salyk.kg:30040 [17:16:45]ConnectInit lk.salyk.kg [17:16:45]written 0, free lines is 4095 [17:16:45]Connected sock=10 [17:16:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 96 CB 07 01 6B 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 24 27 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 F0 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 FC 94 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 07 93 01 00 35 04 06 00 AA 7B 4E 3B AF CE BD C1 1E 13 6D F2 02 40 [17:16:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 20 C3 47 00 47 AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 07 93 01 00 F4 03 04 00 6E 3B BB 66 B6 04 01 00 00 90 0F E6 D8 46 4A 9B BB [17:16:45]CommunicateWithHost err = 0 [17:16:45]CheckOFDResponse [17:16:45]1017 (14) - 77093643461234 [17:16:45]1041 (16) - 0000000000875058 [17:16:45]1040 (4) - 103175 [17:16:45]1012 (4) - 13.08.2024 10:54 [17:16:45]1206 (1) - 0 [17:16:45]OFD Sender: Remove packet 103175 [17:16:45]ProducePacketName [17:16:45]name=ofd_packets/00103175 [17:16:45]NVStorageDeleteData [17:16:45]Write to MH i2c: 01 00 00 C0 05 C5 [17:16:45]Write i2c OK [17:16:45]MH_I2C_Read... [17:16:45]Read from MH i2c: 01 [17:16:45]MH_I2C_Read... [17:16:45]Read from MH i2c: 01 07 00 [17:16:45]MH_I2C_Read... [17:16:45]Read from MH i2c: 01 07 00 C0 05 00 00 00 00 00 E9 0C C1 [17:16:45]RasterBufferAndPrint [17:16:45]line [17:16:45]line [17:16:45]line [17:16:45]line [17:16:45]line [17:16:45]written 0, free lines is 3311 [17:16:45]MH_Cut [17:16:45]Write to MH i2c: D1 01 00 C7 05 01 9E [17:16:45]Write i2c OK [17:16:45]MH_I2C_Read... [17:16:45]Read from MH i2c: D1 [17:16:45]MH_I2C_Read... [17:16:45]Read from MH i2c: D1 01 00 [17:16:45]MH_I2C_Read... [17:16:45]Read from MH i2c: D1 01 00 C7 05 00 9D [17:16:45]Write to MH i2c: 01 00 00 C8 05 CD [17:16:45]Write i2c OK [17:16:45]MH_I2C_Read... [17:16:46]OFD Sender: No OFD packet to send [17:16:46]*** Cut start [17:16:46]*** Purtial cut [17:16:46]*** Stage 1: CUTSNS_PIN = 1 [17:16:46]Read from MH i2c: 01 [17:16:46]MH_I2C_Read... [17:16:46]*** Stop cut motor [17:16:46]*** Cut end [17:16:46]Read from MH i2c: 01 07 00 [17:16:46]MH_I2C_Read... [17:16:46]Read from MH i2c: 01 07 00 C8 05 00 00 00 00 00 FF 0F E2 [17:16:46]process_action close_receipt done [17:16:46]requested_data is exist [17:16:46]produce_requested_data [17:16:46]requested_item fm.sn is exist - process it [17:16:46]wFMCommunicate request_size=4 [17:16:46]MH_SAM_APDU [17:16:46]CAPDU: 80 11 00 00 [17:16:46]Write to MH i2c: E2 08 00 C9 05 80 11 00 00 00 00 00 00 48 [17:16:46]Write i2c OK [17:16:46]MH_I2C_Read... [17:16:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:46]Read from MH i2c: E2 [17:16:46]MH_I2C_Read... [17:16:46]Read from MH i2c: E2 17 00 [17:16:46]MH_I2C_Read... [17:16:46]Read from MH i2c: E2 17 00 C9 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 9C [17:16:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [17:16:46]wFMCommunicate OK [17:16:46]requested_item fd.num is exist - process it [17:16:46]SAM_PROTO_GetFieldsCounters [17:16:46]wFMCommunicate request_size=4 [17:16:46]MH_SAM_APDU [17:16:46]CAPDU: 80 13 00 00 [17:16:46]Write to MH i2c: E2 08 00 CA 05 80 13 00 00 00 00 00 00 4B [17:16:46]Write i2c OK [17:16:46]MH_I2C_Read... [17:16:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:16:47]Read from MH i2c: E2 [17:16:47]MH_I2C_Read... [17:16:47]Read from MH i2c: E2 62 00 [17:16:47]MH_I2C_Read... [17:16:47]Read from MH i2c: E2 62 00 CA 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 07 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [17:16:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 07 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:16:47]wFMCommunicate OK [17:16:47]SAM_PROTO_GetFieldsCounters done [17:16:47]requested_item shift.num is exist - process it [17:16:47]requested_item shift.opened is exist - process it [17:16:47]req_shift_opened [17:16:47]FM_GetShiftState [17:16:47]SAM_PROTO_GetShiftState [17:16:47]wFMCommunicate request_size=4 [17:16:47]MH_SAM_APDU [17:16:47]CAPDU: 80 13 01 00 [17:16:47]Write to MH i2c: E2 08 00 CB 05 80 13 01 00 00 00 00 00 4D [17:16:47]Write i2c OK [17:16:47]MH_I2C_Read... [17:16:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:47]Read from MH i2c: E2 [17:16:47]MH_I2C_Read... [17:16:47]Read from MH i2c: E2 0E 00 [17:16:47]MH_I2C_Read... [17:16:47]Read from MH i2c: E2 0E 00 CB 05 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 6B [17:16:47]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [17:16:47]wFMCommunicate OK [17:16:47]SAM_PROTO_GetShiftState done [17:16:47]FM_GetShiftState done [17:16:47]req_shift_opened done [17:16:47]requested_item shift.open_date is exist - process it [17:16:47]req_shift_open_date [17:16:47]req_shift_open_date done [17:16:47]produce_requested_data done [17:16:47]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103175,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [17:16:47]process_action_free close_receipt [17:16:47]json_value_free [17:16:47]json_value_free done [17:16:47]process_json_proto returns [17:16:47]Send response to host [17:16:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103175,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [17:16:47]free response buf [17:16:47]execute_script done [17:16:47]execute_script returns [17:16:47]free content buf [17:16:47]Sock 9.Close socket [17:16:47]Sock 9.Thread stoped [17:16:51]OFD Sender: No OFD packet to send [17:16:56]OFD Sender: No OFD packet to send [17:17:01]OFD Sender: No OFD packet to send [17:17:06]OFD Sender: No OFD packet to send [17:17:11]OFD Sender: No OFD packet to send [17:17:16]OFD Sender: No OFD packet to send [17:17:21]OFD Sender: No OFD packet to send [17:17:26]OFD Sender: No OFD packet to send [17:17:31]OFD Sender: No OFD packet to send [17:17:36]OFD Sender: No OFD packet to send [17:17:41]OFD Sender: No OFD packet to send [17:17:46]OFD Sender: No OFD packet to send [17:17:51]OFD Sender: No OFD packet to send [17:17:56]OFD Sender: No OFD packet to send [17:18:01]OFD Sender: No OFD packet to send [17:18:06]OFD Sender: No OFD packet to send [17:18:11]OFD Sender: No OFD packet to send [17:18:16]OFD Sender: No OFD packet to send [17:18:21]OFD Sender: No OFD packet to send [17:18:26]OFD Sender: No OFD packet to send [17:18:31]OFD Sender: No OFD packet to send [17:18:36]OFD Sender: No OFD packet to send [17:18:41]OFD Sender: No OFD packet to send [17:18:46]OFD Sender: No OFD packet to send [17:18:51]OFD Sender: No OFD packet to send [17:18:56]OFD Sender: No OFD packet to send [17:19:01]OFD Sender: No OFD packet to send [17:19:06]OFD Sender: No OFD packet to send [17:19:11]OFD Sender: No OFD packet to send [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:21]accept exits with 7 [17:20:21]New connection [17:20:21]New thread 3067260260 created [17:20:21]Thread 3067116900 joined [17:20:21]Waiting for new connection... [17:20:21] Sock 7.Parse request [17:20:21]Sock 7.Check first char [17:20:21]Sock 7.First char is OK [17:20:21]request: POST /json_proto HTTP/1.0 [17:20:21]Method: POST [17:20:21]URL: /json_proto [17:20:21]Method is POST - this is cgi request [17:20:21]url: /json_proto [17:20:21]query_string will be loaded in cgi processing [17:20:21]execute_cgi json_proto POST (null) [17:20:21]execute_cgi path=json_proto method=POST [17:20:21]POST find Content-Length [17:20:21]Host: 172.17.58.3:8080 [17:20:21]Content-Length: 679 [17:20:21]Content-Type: application/json [17:20:21] [17:20:21]POST finish read [17:20:21]Found Content-Length = 679 [17:20:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160807", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 13.560, "sum" : 1000.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:20:21]execute_script... [17: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)160807", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 13.560, "sum" : 1000.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:20:21]POST & json_proto [17:20:21]process_json_proto [17:20:21]json parsed OK: [17:20:21]protocol is kg_v1.0 [17:20:21]action value=close_receipt [17:20:21]process_action close_receipt [17:20:21]cmd_close_receipt [17:20:21]MH_GetDate [17:20:21]Write to MH i2c: F0 00 00 CC 05 C0 [17:20:21]Write i2c OK [17:20:21]MH_I2C_Read... [17:20:21]Read from MH i2c: F0 [17:20:21]MH_I2C_Read... [17:20:21]Read from MH i2c: F0 09 00 [17:20:21]MH_I2C_Read... [17:20:21]Read from MH i2c: F0 09 00 CC 05 00 D6 95 BB 66 DC E4 6D 64 E6 [17:20:21]GetLastDocTimeStamp 1723569404 [17:20:21]current date 1723569622 [17:20:21]FM_GetShiftState [17:20:21]SAM_PROTO_GetShiftState [17:20:21]wFMCommunicate request_size=4 [17:20:21]MH_SAM_APDU [17:20:21]CAPDU: 80 13 01 00 [17:20:21]Write to MH i2c: E2 08 00 CD 05 80 13 01 00 00 00 00 00 4F [17:20:21]Write i2c OK [17:20:21]MH_I2C_Read... [17:20:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:21]Read from MH i2c: E2 [17:20:21]MH_I2C_Read... [17:20:21]Read from MH i2c: E2 0E 00 [17:20:21]MH_I2C_Read... [17:20:21]Read from MH i2c: E2 0E 00 CD 05 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 6D [17:20:21]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [17:20:21]wFMCommunicate OK [17:20:21]SAM_PROTO_GetShiftState done [17:20:21]FM_GetShiftState done [17:20:21]opened in 1723506770 [17:20:21]opened+sec_in_day 1723593170 [17:20:21]quantity*price = 100072 [17:20:21]sum+1 = 100074 [17:20:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.73 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.86 НДС 12% : 106.27 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 87 13.08.2024 17:20 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103176 ФПД: 155684121923940 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T172022&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103176&fm=155684121923940&tin=02508201610067®Number=0000000000092718&sum=100000 [17:20:22]StoreToDocumentArchive [17:20:22]shift 464 fd 103176 [17:20:22]save to /storage/0464/doc_00103176 [17:20:22]save last doc name /storage/0464/doc_00103176 to /storage/kkm_last_doc_name [17:20:22]save OK [17:20:22]Clear old archive folders... [17:20:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:20:22]tlvbuf is 00217260 [17:20:22]SAM_PROTO_ClearQueue [17:20:22]wFMCommunicate request_size=4 [17:20:22]MH_SAM_APDU [17:20:22]CAPDU: 80 09 00 00 [17:20:22]Write to MH i2c: E2 08 00 DA 05 80 09 00 00 00 00 00 00 51 [17:20:22]Write i2c OK [17:20:22]MH_I2C_Read... [17:20:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:20:22]Read from MH i2c: E2 [17:20:22]MH_I2C_Read... [17:20:22]Read from MH i2c: E2 03 00 [17:20:22]MH_I2C_Read... [17:20:22]Read from MH i2c: E2 03 00 DA 05 00 90 00 53 [17:20:22]RAPDU: 90 00 [17:20:22]wFMCommunicate OK [17:20:22]SAM_PROTO_ClearQueue done [17:20:22]KKMCreateOFDPacket [17:20:22]OFDProtocolAddRootSTLVToBuf [17:20:22]FM_MakeSignedData [17:20:22]FM_MakeSignedData [17:20:22]SAM_PROTO_SignData [17:20:22]wFMCommunicate request_size=4 [17:20:22]MH_SAM_APDU [17:20:22]CAPDU: 80 0D 01 02 [17:20:22]Write to MH i2c: E2 08 00 DB 05 80 0D 01 02 00 00 00 00 59 [17:20:22]Write i2c OK [17:20:22]MH_I2C_Read... [17:20:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:20:22]Read from MH i2c: E2 [17:20:22]MH_I2C_Read... [17:20:22]Read from MH i2c: E2 03 00 [17:20:22]MH_I2C_Read... [17:20:22]Read from MH i2c: E2 03 00 DB 05 00 90 00 54 [17:20:22]RAPDU: 90 00 [17:20:22]wFMCommunicate OK [17:20:22]wFMCommunicate request_size=255 [17:20:22]MH_SAM_APDU [17:20:22]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 34 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 E9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 D6 95 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 08 93 01 00 35 04 06 00 8D 98 08 C8 [17:20:22]Write to MH i2c: E2 02 01 DC 05 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 34 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 E9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 D6 95 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 08 93 01 00 35 04 06 00 8D 98 08 C8 00 00 FD [17:20:22]Write i2c OK [17:20:22]MH_I2C_Read... [17:20:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:22]Read from MH i2c: E2 [17:20:22]MH_I2C_Read... [17:20:22]Read from MH i2c: E2 03 00 [17:20:22]MH_I2C_Read... [17:20:22]Read from MH i2c: E2 03 00 DC 05 00 90 00 55 [17:20:22]RAPDU: 90 00 [17:20:22]wFMCommunicate OK [17:20:22]wFMCommunicate request_size=7 [17:20:22]MH_SAM_APDU [17:20:22]CAPDU: 80 0D 02 02 02 D1 64 [17:20:22]Write to MH i2c: E2 0A 00 DD 05 80 0D 02 02 02 00 D1 64 00 00 95 [17:20:22]Write i2c OK [17:20:22]MH_I2C_Read... [17:20:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:22]Read from MH i2c: E2 [17:20:22]MH_I2C_Read... [17:20:22]Read from MH i2c: E2 03 00 [17:20:22]MH_I2C_Read... [17:20:22]Read from MH i2c: E2 03 00 DD 05 00 90 00 56 [17:20:22]RAPDU: 90 00 [17:20:22]wFMCommunicate OK [17:20:22]wFMCommunicate request_size=4 [17:20:23]MH_SAM_APDU [17:20:23]CAPDU: 80 0D 03 02 [17:20:23]Write to MH i2c: E2 08 00 DE 05 80 0D 03 02 00 00 00 00 5E [17:20:23]Write i2c OK [17:20:23]MH_I2C_Read... [17:20:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:20:23]Read from MH i2c: E2 [17:20:23]MH_I2C_Read... [17:20:23]Read from MH i2c: E2 0B 00 [17:20:23]MH_I2C_Read... [17:20:23]Read from MH i2c: E2 0B 00 DE 05 00 B3 DF E0 43 68 06 49 2F 90 00 FA [17:20:23]RAPDU: B3 DF E0 43 68 06 49 2F 90 00 [17:20:23]wFMCommunicate OK [17:20:23]SAM_PROTO_SignData done [17:20:23]FM_MakeSignedData done [17:20:23]CreateOFDProtocolMessage [17:20:23]wFMCommunicate request_size=4 [17:20:23]MH_SAM_APDU [17:20:23]CAPDU: 80 11 00 00 [17:20:23]Write to MH i2c: E2 08 00 DF 05 80 11 00 00 00 00 00 00 5E [17:20:23]Write i2c OK [17:20:23]MH_I2C_Read... [17:20:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:23]Read from MH i2c: E2 [17:20:23]MH_I2C_Read... [17:20:23]Read from MH i2c: E2 17 00 [17:20:23]MH_I2C_Read... [17:20:23]Read from MH i2c: E2 17 00 DF 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 B2 [17:20:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [17:20:23]wFMCommunicate OK [17:20:23]CreateOFDProtocolMessage done [17:20:23]OFDSenderStorePacket 103176 [17:20:23]StoreOFDPacket docnum=103176 [17:20:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 B3 1B 04 01 8B 37 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 34 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 E9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 D6 95 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 08 93 01 00 35 04 06 00 8D 98 08 C8 D1 64 B3 DF E0 43 68 06 49 2F [17:20:23]CheckFolder [17:20:23]dirname=/storage/ofd_packets [17:20:23]CheckFolder done [17:20:23]ProducePacketName [17:20:23]name=ofd_packets/00103176 [17:20:23]NVStorageSaveData ofd_packets/00103176 [17:20:23]File name is /storage/ofd_packets/00103176 [17:20:23]Write 298 bytes [17:20:23]NVStorageSaveData done [17:20:23]OFDSenderStorePacket done [17:20:23]KKMCreateOFDPacket done [17:20:23]NVStorageSaveData kkm_last_timestamp [17:20:23]File name is /storage/kkm_last_timestamp [17:20:23]Write 4 bytes [17:20:23]NVStorageSaveData done [17:20:23]ExternCall_PrintAddStr [17:20:23]wPrintStart [17:20:23]Write to MH i2c: 01 00 00 E0 05 E5 [17:20:23]Write i2c OK [17:20:23]MH_I2C_Read... [17:20:23]Read from MH i2c: 01 [17:20:23]MH_I2C_Read... [17:20:23]Read from MH i2c: 01 07 00 [17:20:23]MH_I2C_Read... [17:20:23]Read from MH i2c: 01 07 00 E0 05 00 00 00 00 00 FF 0F FA [17:20:23]RasterBufferAndPrint [17:20:23]line Счет N : (1)160807 [17:20:23]line ИНН: 02508201610067 [17:20:23]line Контрольно-Кассовый Чек [17:20:23]line ПРОДАЖА [17:20:23]line ТРК (МРК, ГНК) : 13 [17:20:23]line Товар: 2710194210 [17:20:23]line ДТ-К-5 [17:20:23]line 13.560 * 73.80 [17:20:23]line = 1000.73 [17:20:23]line НДС 12% НСП 1% [17:20:23]line > о реализуемом товаре [17:20:23]line ОКРУГЛЕНИЕ: -0.73 [17:20:23]line ИТОГО: 1000.00 [17:20:23]line Внесено: 1000.00 [17:20:23]line СДАЧА: 0.00 [17:20:23]line НСП 1% : 8.86 [17:20:23]line НДС 12% : 106.27 [17:20:23]line Наличными: 1000.00 [17:20:23]line Безнал.: 0.00 [17:20:23]line Место: АЗС № 38 "Партнер Нефть" [17:20:23]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [17:20:23]line СНО: Общий режим [17:20:23]line Чек 87 13.08.2024 17:20 [17:20:23]line Смена: 464 ФФД: 1.0 [17:20:23]line ЗНМ: 0300000126 [17:20:23]line РНМ: 0000000000092718 [17:20:23]line Версия ККМ: 001 [17:20:23]line ФМ: 0000000000875058 [17:20:23]line ФД: 103176 [17:20:23]line ФПД: 155684121923940 [17:20:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T172022&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103176&fm=155684121923940&tin=02508201610067®Number=0000000000092718&sum=100000 [17:20:23]OFD Sender: Processing packet 103176 [packets to send 69, broken 68] [17:20:23]ProducePacketName [17:20:23]name=ofd_packets/00103176 [17:20:23]OFD Sender: To server: pG, [17:20:23]CommunicateWithHost lk.salyk.kg:30040 [17:20:23]ConnectInit lk.salyk.kg [17:20:23]written 0, free lines is 4095 [17:20:23]Connected sock=10 [17: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 35 30 35 38 0C 01 00 00 B3 1B 04 01 8B 37 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 34 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 E9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 D6 95 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 08 93 01 00 35 04 06 00 8D 98 08 C8 D1 64 B3 DF E0 43 68 06 49 2F [17:20:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 82 62 47 00 18 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 08 93 01 00 F4 03 04 00 48 3C BB 66 B6 04 01 00 00 4B E7 15 19 DA 4A 6D C6 [17:20:23]CommunicateWithHost err = 0 [17:20:23]CheckOFDResponse [17:20:23]1017 (14) - 77093643461234 [17:20:23]1041 (16) - 0000000000875058 [17:20:23]1040 (4) - 103176 [17:20:23]1012 (4) - 13.08.2024 10:58 [17:20:23]1206 (1) - 0 [17:20:23]OFD Sender: Remove packet 103176 [17:20:23]ProducePacketName [17:20:23]name=ofd_packets/00103176 [17:20:23]NVStorageDeleteData [17:20:23]Write to MH i2c: 01 00 00 0B 06 11 [17:20:23]Write i2c OK [17:20:23]MH_I2C_Read... [17:20:23]Read from MH i2c: 01 [17:20:23]MH_I2C_Read... [17:20:23]Read from MH i2c: 01 07 00 [17:20:23]MH_I2C_Read... [17:20:23]Read from MH i2c: 01 07 00 0B 06 00 00 00 00 00 EB 0C 0F [17:20:23]RasterBufferAndPrint [17:20:23]line [17:20:23]line [17:20:23]line [17:20:23]line [17:20:23]line [17:20:23]written 0, free lines is 3313 [17:20:23]MH_Cut [17:20:23]Write to MH i2c: D1 01 00 12 06 01 EA [17:20:23]Write i2c OK [17:20:23]MH_I2C_Read... [17:20:23]Read from MH i2c: D1 [17:20:23]MH_I2C_Read... [17:20:23]Read from MH i2c: D1 01 00 [17:20:23]MH_I2C_Read... [17:20:23]Read from MH i2c: D1 01 00 12 06 00 E9 [17:20:23]Write to MH i2c: 01 00 00 13 06 19 [17:20:23]Write i2c OK [17:20:23]MH_I2C_Read... [17:20:24]OFD Sender: No OFD packet to send [17:20:24]*** Cut start [17:20:24]*** Purtial cut [17:20:24]*** CUTSNS_PIN = 0 [17:20:24]*** Stage 1: CUTSNS_PIN = 1 [17:20:26]Read from MH i2c: 01 [17:20:26]MH_I2C_Read... [17:20:26]*** Stop cut motor [17:20:26]*** Cut end [17:20:26]Read from MH i2c: 01 07 00 [17:20:26]MH_I2C_Read... [17:20:26]Read from MH i2c: 01 07 00 13 06 00 00 00 00 00 FF 0F 2E [17:20:26]process_action close_receipt done [17:20:26]requested_data is exist [17:20:26]produce_requested_data [17:20:26]requested_item fm.sn is exist - process it [17:20:26]wFMCommunicate request_size=4 [17:20:26]MH_SAM_APDU [17:20:26]CAPDU: 80 11 00 00 [17:20:26]Write to MH i2c: E2 08 00 14 06 80 11 00 00 00 00 00 00 94 [17:20:26]Write i2c OK [17:20:26]MH_I2C_Read... [17:20:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:26]Read from MH i2c: E2 [17:20:26]MH_I2C_Read... [17:20:26]Read from MH i2c: E2 17 00 [17:20:26]MH_I2C_Read... [17:20:26]Read from MH i2c: E2 17 00 14 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 E8 [17:20:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [17:20:26]wFMCommunicate OK [17:20:26]requested_item fd.num is exist - process it [17:20:26]SAM_PROTO_GetFieldsCounters [17:20:26]wFMCommunicate request_size=4 [17:20:26]MH_SAM_APDU [17:20:26]CAPDU: 80 13 00 00 [17:20:26]Write to MH i2c: E2 08 00 15 06 80 13 00 00 00 00 00 00 97 [17:20:26]Write i2c OK [17:20:26]MH_I2C_Read... [17:20:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:20:26]Read from MH i2c: E2 [17:20:26]MH_I2C_Read... [17:20:26]Read from MH i2c: E2 62 00 [17:20:26]MH_I2C_Read... [17:20:26]Read from MH i2c: E2 62 00 15 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 08 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [17:20:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 08 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:20:26]wFMCommunicate OK [17:20:26]SAM_PROTO_GetFieldsCounters done [17:20:26]requested_item shift.num is exist - process it [17:20:26]requested_item shift.opened is exist - process it [17:20:26]req_shift_opened [17:20:26]FM_GetShiftState [17:20:26]SAM_PROTO_GetShiftState [17:20:26]wFMCommunicate request_size=4 [17:20:26]MH_SAM_APDU [17:20:26]CAPDU: 80 13 01 00 [17:20:26]Write to MH i2c: E2 08 00 16 06 80 13 01 00 00 00 00 00 99 [17:20:26]Write i2c OK [17:20:26]MH_I2C_Read... [17:20:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:26]Read from MH i2c: E2 [17:20:26]MH_I2C_Read... [17:20:26]Read from MH i2c: E2 0E 00 [17:20:26]MH_I2C_Read... [17:20:26]Read from MH i2c: E2 0E 00 16 06 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 B7 [17:20:26]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [17:20:26]wFMCommunicate OK [17:20:26]SAM_PROTO_GetShiftState done [17:20:26]FM_GetShiftState done [17:20:26]req_shift_opened done [17:20:26]requested_item shift.open_date is exist - process it [17:20:26]req_shift_open_date [17:20:26]req_shift_open_date done [17:20:26]produce_requested_data done [17:20:26]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103176,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [17:20:26]process_action_free close_receipt [17:20:26]json_value_free [17:20:26]json_value_free done [17:20:26]process_json_proto returns [17:20:26]Send response to host [17:20:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103176,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [17:20:26]free response buf [17:20:26]execute_script done [17:20:26]execute_script returns [17:20:26]free content buf [17:20:26]Sock 7.Close socket [17:20:26]Sock 7.Thread stoped [17:20:29]OFD Sender: No OFD packet to send [17:20:34]OFD Sender: No OFD packet to send [17:20:39]OFD Sender: No OFD packet to send [17:20:44]OFD Sender: No OFD packet to send [17:20:49]OFD Sender: No OFD packet to send [17:20:54]OFD Sender: No OFD packet to send [17:20:59]OFD Sender: No OFD packet to send [17:21:04]OFD Sender: No OFD packet to send [17:21:09]OFD Sender: No OFD packet to send [17:21:14]OFD Sender: No OFD packet to send [17:21:19]OFD Sender: No OFD packet to send [17:21:24]OFD Sender: No OFD packet to send [17:21:29]OFD Sender: No OFD packet to send [17:21:34]OFD Sender: No OFD packet to send [17:21:39]OFD Sender: No OFD packet to send [17:21:44]OFD Sender: No OFD packet to send [17:21:49]OFD Sender: No OFD packet to send [17:21:54]OFD Sender: No OFD packet to send [17:21:59]OFD Sender: No OFD packet to send [17:22:04]OFD Sender: No OFD packet to send [17:22:09]OFD Sender: No OFD packet to send [17:22:14]OFD Sender: No OFD packet to send [17:22:19]OFD Sender: No OFD packet to send [17:22:24]OFD Sender: No OFD packet to send [17:22:29]OFD Sender: No OFD packet to send [17:22:34]OFD Sender: No OFD packet to send [17:22:39]OFD Sender: No OFD packet to send [17:22:44]OFD Sender: No OFD packet to send [17:22:49]OFD Sender: No OFD packet to send [17:22:54]OFD Sender: No OFD packet to send [17:22:59]OFD Sender: No OFD packet to send [17:23:04]OFD Sender: No OFD packet to send [17:23:09]OFD Sender: No OFD packet to send [17:23:14]OFD Sender: No OFD packet to send [17:23:19]OFD Sender: No OFD packet to send [17:23:24]OFD Sender: No OFD packet to send [17:23:29]OFD Sender: No OFD packet to send [17:23:34]OFD Sender: No OFD packet to send [17:23:39]OFD Sender: No OFD packet to send [17:23:44]OFD Sender: No OFD packet to send [17:23:49]OFD Sender: No OFD packet to send [17:23:54]OFD Sender: No OFD packet to send [17:23:59]OFD Sender: No OFD packet to send [17:24:04]OFD Sender: No OFD packet to send [17:24:09]OFD Sender: No OFD packet to send [17:24:14]OFD Sender: No OFD packet to send [17:24:19]OFD Sender: No OFD packet to send [17:24:24]OFD Sender: No OFD packet to send [17:24:29]OFD Sender: No OFD packet to send [17:24:34]OFD Sender: No OFD packet to send [17:24:39]OFD Sender: No OFD packet to send [17:24:44]OFD Sender: No OFD packet to send [17:24:49]OFD Sender: No OFD packet to send [17:24:54]OFD Sender: No OFD packet to send [17:24:59]OFD Sender: No OFD packet to send [17:25:04]OFD Sender: No OFD packet to send [17:25:09]OFD Sender: No OFD packet to send [17:25:14]OFD Sender: No OFD packet to send [17:25:19]OFD Sender: No OFD packet to send [17:25:24]OFD Sender: No OFD packet to send [17:25:29]OFD Sender: No OFD packet to send [17:25:34]OFD Sender: No OFD packet to send [17:25:39]OFD Sender: No OFD packet to send [17:25:44]OFD Sender: No OFD packet to send [17:25:49]OFD Sender: No OFD packet to send [17:25:54]OFD Sender: No OFD packet to send [17:25:59]OFD Sender: No OFD packet to send [17:26:04]OFD Sender: No OFD packet to send [17:26:09]OFD Sender: No OFD packet to send [17:26:14]OFD Sender: No OFD packet to send [17:26:19]OFD Sender: No OFD packet to send [17:26:24]OFD Sender: No OFD packet to send [17:26:29]OFD Sender: No OFD packet to send [17:26:34]OFD Sender: No OFD packet to send [17:26:39]OFD Sender: No OFD packet to send [17:26:44]OFD Sender: No OFD packet to send [17:26:49]OFD Sender: No OFD packet to send [17:26:54]OFD Sender: No OFD packet to send [17:26:59]OFD Sender: No OFD packet to send [17:27:04]OFD Sender: No OFD packet to send [17:27:09]OFD Sender: No OFD packet to send [17:27:14]OFD Sender: No OFD packet to send [17:27:19]OFD Sender: No OFD packet to send [17:27:24]OFD Sender: No OFD packet to send [17:27:29]OFD Sender: No OFD packet to send [17:27:34]OFD Sender: No OFD packet to send [17:27:39]OFD Sender: No OFD packet to send [17:27:44]OFD Sender: No OFD packet to send [17:27:49]OFD Sender: No OFD packet to send [17:27:54]OFD Sender: No OFD packet to send [17:27:59]OFD Sender: No OFD packet to send [17:28:04]OFD Sender: No OFD packet to send [17:28:09]OFD Sender: No OFD packet to send [17:28:14]OFD Sender: No OFD packet to send [17:28:19]OFD Sender: No OFD packet to send [17:28:24]OFD Sender: No OFD packet to send [17:28:29]OFD Sender: No OFD packet to send [17:28:34]OFD Sender: No OFD packet to send [17:28:39]OFD Sender: No OFD packet to send [17:28:44]OFD Sender: No OFD packet to send [17:28:49]OFD Sender: No OFD packet to send [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:30]OFD Sender: No OFD packet to send [17:33:35]OFD Sender: No OFD packet to send [17:33:40]OFD Sender: No OFD packet to send [17:33:45]OFD Sender: No OFD packet to send [17:33:50]OFD Sender: No OFD packet to send [17:33:55]OFD Sender: No OFD packet to send [17:34:00]OFD Sender: No OFD packet to send [17:34:05]OFD Sender: No OFD packet to send [17:34:10]OFD Sender: No OFD packet to send [17:34:15]OFD Sender: No OFD packet to send [17:34:20]OFD Sender: No OFD packet to send [17:34:25]OFD Sender: No OFD packet to send [17:34:30]OFD Sender: No OFD packet to send [17:34:35]OFD Sender: No OFD packet to send [17:34:38]accept exits with 9 [17:34:38]New connection [17:34:38]New thread 3067116900 created [17:34:38]Thread 3067260260 joined [17:34:38]Waiting for new connection... [17:34:38] Sock 9.Parse request [17:34:38]Sock 9.Check first char [17:34:38]Sock 9.First char is OK [17:34:38]request: POST /json_proto HTTP/1.0 [17:34:38]Method: POST [17:34:38]URL: /json_proto [17:34:38]Method is POST - this is cgi request [17:34:38]url: /json_proto [17:34:38]query_string will be loaded in cgi processing [17:34:38]execute_cgi json_proto POST (null) [17:34:38]execute_cgi path=json_proto method=POST [17:34:38]POST find Content-Length [17:34:38]Host: 172.17.58.3:8080 [17:34:38]Content-Length: 677 [17:34:38]Content-Type: application/json [17:34:38] [17:34:38]POST finish read [17:34:38]Found Content-Length = 677 [17:34:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160808", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 10.170, "sum" : 670.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:38]execute_script... [17:34:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160808", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 10.170, "sum" : 670.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:38]POST & json_proto [17:34:38]process_json_proto [17:34:38]json parsed OK: [17:34:38]protocol is kg_v1.0 [17:34:38]action value=close_receipt [17:34:38]process_action close_receipt [17:34:38]cmd_close_receipt [17:34:38]MH_GetDate [17:34:38]Write to MH i2c: F0 00 00 17 06 0C [17:34:38]Write i2c OK [17:34:38]MH_I2C_Read... [17:34:38]Read from MH i2c: F0 [17:34:38]MH_I2C_Read... [17:34:38]Read from MH i2c: F0 09 00 [17:34:38]MH_I2C_Read... [17:34:38]Read from MH i2c: F0 09 00 17 06 00 2F 99 BB 66 DC E4 6D 64 8F [17:34:38]GetLastDocTimeStamp 1723569622 [17:34:38]current date 1723570479 [17:34:38]FM_GetShiftState [17:34:38]SAM_PROTO_GetShiftState [17:34:38]wFMCommunicate request_size=4 [17:34:38]MH_SAM_APDU [17:34:38]CAPDU: 80 13 01 00 [17:34:38]Write to MH i2c: E2 08 00 18 06 80 13 01 00 00 00 00 00 9B [17:34:38]Write i2c OK [17:34:38]MH_I2C_Read... [17:34:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:38]Read from MH i2c: E2 [17:34:38]MH_I2C_Read... [17:34:38]Read from MH i2c: E2 0E 00 [17:34:38]MH_I2C_Read... [17:34:38]Read from MH i2c: E2 0E 00 18 06 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 B9 [17:34:38]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [17:34:38]wFMCommunicate OK [17:34:38]SAM_PROTO_GetShiftState done [17:34:38]FM_GetShiftState done [17:34:38]opened in 1723506770 [17:34:38]opened+sec_in_day 1723593170 [17:34:38]quantity*price = 67020 [17:34:38]sum+1 = 67021 [17:34:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 670.00 Внесено: 670.00 СДАЧА: 0.00 НСП 1% : 5.93 НДС 12% : 71.17 Наличными: 670.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 88 13.08.2024 17:34 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103177 ФПД: 134471621515390 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T173439&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103177&fm=134471621515390&tin=02508201610067®Number=0000000000092718&sum=67000 [17:34:39]StoreToDocumentArchive [17:34:39]shift 464 fd 103177 [17:34:39]save to /storage/0464/doc_00103177 [17:34:39]save last doc name /storage/0464/doc_00103177 to /storage/kkm_last_doc_name [17:34:39]save OK [17:34:39]Clear old archive folders... [17:34:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:34:39]tlvbuf is 002144A0 [17:34:39]SAM_PROTO_ClearQueue [17:34:39]wFMCommunicate request_size=4 [17:34:39]MH_SAM_APDU [17:34:39]CAPDU: 80 09 00 00 [17:34:39]Write to MH i2c: E2 08 00 25 06 80 09 00 00 00 00 00 00 9D [17:34:39]Write i2c OK [17:34:39]MH_I2C_Read... [17:34:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:34:39]Read from MH i2c: E2 [17:34:39]MH_I2C_Read... [17:34:39]Read from MH i2c: E2 03 00 [17:34:39]MH_I2C_Read... [17:34:39]Read from MH i2c: E2 03 00 25 06 00 90 00 9F [17:34:39]RAPDU: 90 00 [17:34:39]wFMCommunicate OK [17:34:39]SAM_PROTO_ClearQueue done [17:34:39]KKMCreateOFDPacket [17:34:39]OFDProtocolAddRootSTLVToBuf [17:34:39]FM_MakeSignedData [17:34:39]FM_MakeSignedData [17:34:39]SAM_PROTO_SignData [17:34:39]wFMCommunicate request_size=4 [17:34:39]MH_SAM_APDU [17:34:39]CAPDU: 80 0D 01 02 [17:34:39]Write to MH i2c: E2 08 00 26 06 80 0D 01 02 00 00 00 00 A5 [17:34:39]Write i2c OK [17:34:39]MH_I2C_Read... [17:34:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:34:39]Read from MH i2c: E2 [17:34:39]MH_I2C_Read... [17:34:39]Read from MH i2c: E2 03 00 [17:34:39]MH_I2C_Read... [17:34:39]Read from MH i2c: E2 03 00 26 06 00 90 00 A0 [17:34:39]RAPDU: 90 00 [17:34:39]wFMCommunicate OK [17:34:39]wFMCommunicate request_size=255 [17:34:39]MH_SAM_APDU [17:34:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 27 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 CC 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 2F 99 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 09 93 01 00 35 04 06 00 7A [17:34:39]Write to MH i2c: E2 02 01 27 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 27 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 CC 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 2F 99 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 09 93 01 00 35 04 06 00 7A 00 00 1C [17:34:39]Write i2c OK [17:34:39]MH_I2C_Read... [17:34:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:39]Read from MH i2c: E2 [17:34:39]MH_I2C_Read... [17:34:39]Read from MH i2c: E2 03 00 [17:34:39]MH_I2C_Read... [17:34:39]Read from MH i2c: E2 03 00 27 06 00 90 00 A1 [17:34:39]RAPDU: 90 00 [17:34:39]wFMCommunicate OK [17:34:39]wFMCommunicate request_size=10 [17:34:39]MH_SAM_APDU [17:34:39]CAPDU: 80 0D 02 02 05 4D 1D 3B 98 7E [17:34:39]Write to MH i2c: E2 0D 00 28 06 80 0D 02 02 05 00 4D 1D 3B 98 7E 00 00 6D [17:34:39]Write i2c OK [17:34:39]MH_I2C_Read... [17:34:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:39]Read from MH i2c: E2 [17:34:39]MH_I2C_Read... [17:34:39]Read from MH i2c: E2 03 00 [17:34:39]MH_I2C_Read... [17:34:39]Read from MH i2c: E2 03 00 28 06 00 90 00 A2 [17:34:39]RAPDU: 90 00 [17:34:39]wFMCommunicate OK [17:34:39]wFMCommunicate request_size=4 [17:34:39]MH_SAM_APDU [17:34:39]CAPDU: 80 0D 03 02 [17:34:39]Write to MH i2c: E2 08 00 29 06 80 0D 03 02 00 00 00 00 AA [17:34:39]Write i2c OK [17:34:39]MH_I2C_Read... [17:34:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:34:39]Read from MH i2c: E2 [17:34:39]MH_I2C_Read... [17:34:39]Read from MH i2c: E2 0B 00 [17:34:39]MH_I2C_Read... [17:34:39]Read from MH i2c: E2 0B 00 29 06 00 9D 9C 54 16 FD E9 96 34 90 00 FE [17:34:39]RAPDU: 9D 9C 54 16 FD E9 96 34 90 00 [17:34:39]wFMCommunicate OK [17:34:39]SAM_PROTO_SignData done [17:34:39]FM_MakeSignedData done [17:34:39]CreateOFDProtocolMessage [17:34:39]wFMCommunicate request_size=4 [17:34:39]MH_SAM_APDU [17:34:39]CAPDU: 80 11 00 00 [17:34:39]Write to MH i2c: E2 08 00 2A 06 80 11 00 00 00 00 00 00 AA [17:34:39]Write i2c OK [17:34:39]MH_I2C_Read... [17:34:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:39]Read from MH i2c: E2 [17:34:39]MH_I2C_Read... [17:34:39]Read from MH i2c: E2 17 00 [17:34:39]MH_I2C_Read... [17:34:39]Read from MH i2c: E2 17 00 2A 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 FE [17:34:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [17:34:39]wFMCommunicate OK [17:34:39]CreateOFDProtocolMessage done [17:34:39]OFDSenderStorePacket 103177 [17:34:39]StoreOFDPacket docnum=103177 [17:34:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 36 7A 07 01 33 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 27 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 CC 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 2F 99 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 09 93 01 00 35 04 06 00 7A 4D 1D 3B 98 7E 9D 9C 54 16 FD E9 96 34 [17:34:39]CheckFolder [17:34:39]dirname=/storage/ofd_packets [17:34:39]CheckFolder done [17:34:39]ProducePacketName [17:34:39]name=ofd_packets/00103177 [17:34:39]NVStorageSaveData ofd_packets/00103177 [17:34:39]File name is /storage/ofd_packets/00103177 [17:34:39]Write 301 bytes [17:34:39]NVStorageSaveData done [17:34:39]OFDSenderStorePacket done [17:34:39]KKMCreateOFDPacket done [17:34:39]NVStorageSaveData kkm_last_timestamp [17:34:39]File name is /storage/kkm_last_timestamp [17:34:39]Write 4 bytes [17:34:39]NVStorageSaveData done [17:34:39]ExternCall_PrintAddStr [17:34:39]wPrintStart [17:34:39]Write to MH i2c: 01 00 00 2B 06 31 [17:34:39]Write i2c OK [17:34:39]MH_I2C_Read... [17:34:39]Read from MH i2c: 01 [17:34:39]MH_I2C_Read... [17:34:39]Read from MH i2c: 01 07 00 [17:34:39]MH_I2C_Read... [17:34:39]Read from MH i2c: 01 07 00 2B 06 00 00 00 00 00 FF 0F 46 [17:34:39]RasterBufferAndPrint [17:34:39]line Счет N : (1)160808 [17:34:39]line ИНН: 02508201610067 [17:34:39]line Контрольно-Кассовый Чек [17:34:39]line ПРОДАЖА [17:34:39]line ТРК (МРК, ГНК) : 7 [17:34:39]line Товар: 2710124130 [17:34:39]line Аи-92-К-5 [17:34:39]line 10.170 * 65.90 [17:34:39]line = 670.20 [17:34:39]line НДС 12% НСП 1% [17:34:39]line > о реализуемом товаре [17:34:39]line ОКРУГЛЕНИЕ: -0.20 [17:34:39]line ИТОГО: 670.00 [17:34:39]line Внесено: 670.00 [17:34:39]line СДАЧА: 0.00 [17:34:39]line НСП 1% : 5.93 [17:34:39]line НДС 12% : 71.17 [17:34:39]line Наличными: 670.00 [17:34:39]line Безнал.: 0.00 [17:34:39]line Место: АЗС № 38 "Партнер Нефть" [17:34:39]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [17:34:39]line СНО: Общий режим [17:34:39]line Чек 88 13.08.2024 17:34 [17:34:39]line Смена: 464 ФФД: 1.0 [17:34:39]line ЗНМ: 0300000126 [17:34:39]line РНМ: 0000000000092718 [17:34:39]line Версия ККМ: 001 [17:34:39]line ФМ: 0000000000875058 [17:34:39]line ФД: 103177 [17:34:39]line ФПД: 134471621515390 [17:34:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T173439&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103177&fm=134471621515390&tin=02508201610067®Number=0000000000092718&sum=67000 [17:34:40]OFD Sender: Processing packet 103177 [packets to send 69, broken 68] [17:34:40]ProducePacketName [17:34:40]name=ofd_packets/00103177 [17:34:40]OFD Sender: To server: pG, [17:34:40]CommunicateWithHost lk.salyk.kg:30040 [17:34:40]ConnectInit lk.salyk.kg [17:34:40]written 0, free lines is 4095 [17:34:40]Connected sock=10 [17:34:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 36 7A 07 01 33 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 27 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 CC 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 2F 99 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 09 93 01 00 35 04 06 00 7A 4D 1D 3B 98 7E 9D 9C 54 16 FD E9 96 34 [17:34:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 AC D0 47 00 69 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 09 93 01 00 F4 03 04 00 A1 3F BB 66 B6 04 01 00 00 89 E5 44 86 49 87 2F 24 [17:34:40]CommunicateWithHost err = 0 [17:34:40]CheckOFDResponse [17:34:40]1017 (14) - 77093643461234 [17:34:40]1041 (16) - 0000000000875058 [17:34:40]1040 (4) - 103177 [17:34:40]1012 (4) - 13.08.2024 11:12 [17:34:40]1206 (1) - 0 [17:34:40]OFD Sender: Remove packet 103177 [17:34:40]ProducePacketName [17:34:40]name=ofd_packets/00103177 [17:34:40]NVStorageDeleteData [17:34:40]Write to MH i2c: 01 00 00 56 06 5C [17:34:40]Write i2c OK [17:34:40]MH_I2C_Read... [17:34:40]Read from MH i2c: 01 [17:34:40]MH_I2C_Read... [17:34:40]Read from MH i2c: 01 07 00 [17:34:40]MH_I2C_Read... [17:34:40]Read from MH i2c: 01 07 00 56 06 00 00 00 00 00 DA 0C 49 [17:34:40]RasterBufferAndPrint [17:34:40]line [17:34:40]line [17:34:40]line [17:34:40]line [17:34:40]line [17:34:40]written 0, free lines is 3296 [17:34:40]MH_Cut [17:34:40]Write to MH i2c: D1 01 00 5D 06 01 35 [17:34:40]Write i2c OK [17:34:40]MH_I2C_Read... [17:34:40]Read from MH i2c: D1 [17:34:40]MH_I2C_Read... [17:34:40]Read from MH i2c: D1 01 00 [17:34:40]MH_I2C_Read... [17:34:40]Read from MH i2c: D1 01 00 5D 06 00 34 [17:34:40]Write to MH i2c: 01 00 00 5E 06 64 [17:34:40]Write i2c OK [17:34:40]MH_I2C_Read... [17:34:40]OFD Sender: No OFD packet to send [17:34:41]*** Cut start [17:34:41]*** Purtial cut [17:34:41]*** Stage 1: CUTSNS_PIN = 1 [17:34:41]Read from MH i2c: 01 [17:34:41]MH_I2C_Read... [17:34:41]*** Stop cut motor [17:34:41]*** Cut end [17:34:41]Read from MH i2c: 01 07 00 [17:34:41]MH_I2C_Read... [17:34:41]Read from MH i2c: 01 07 00 5E 06 00 00 00 00 00 FF 0F 79 [17:34:41]process_action close_receipt done [17:34:41]requested_data is exist [17:34:41]produce_requested_data [17:34:41]requested_item fm.sn is exist - process it [17:34:41]wFMCommunicate request_size=4 [17:34:41]MH_SAM_APDU [17:34:41]CAPDU: 80 11 00 00 [17:34:41]Write to MH i2c: E2 08 00 5F 06 80 11 00 00 00 00 00 00 DF [17:34:41]Write i2c OK [17:34:41]MH_I2C_Read... [17:34:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:41]Read from MH i2c: E2 [17:34:41]MH_I2C_Read... [17:34:41]Read from MH i2c: E2 17 00 [17:34:41]MH_I2C_Read... [17:34:41]Read from MH i2c: E2 17 00 5F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 33 [17:34:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [17:34:41]wFMCommunicate OK [17:34:41]requested_item fd.num is exist - process it [17:34:41]SAM_PROTO_GetFieldsCounters [17:34:41]wFMCommunicate request_size=4 [17:34:41]MH_SAM_APDU [17:34:41]CAPDU: 80 13 00 00 [17:34:41]Write to MH i2c: E2 08 00 60 06 80 13 00 00 00 00 00 00 E2 [17:34:41]Write i2c OK [17:34:41]MH_I2C_Read... [17:34:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:34:41]Read from MH i2c: E2 [17:34:41]MH_I2C_Read... [17:34:41]Read from MH i2c: E2 62 00 [17:34:41]MH_I2C_Read... [17:34:41]Read from MH i2c: E2 62 00 60 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 09 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [17: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 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 09 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:34:41]wFMCommunicate OK [17:34:41]SAM_PROTO_GetFieldsCounters done [17:34:41]requested_item shift.num is exist - process it [17:34:41]requested_item shift.opened is exist - process it [17:34:41]req_shift_opened [17:34:41]FM_GetShiftState [17:34:41]SAM_PROTO_GetShiftState [17:34:41]wFMCommunicate request_size=4 [17:34:41]MH_SAM_APDU [17:34:41]CAPDU: 80 13 01 00 [17:34:41]Write to MH i2c: E2 08 00 61 06 80 13 01 00 00 00 00 00 E4 [17:34:41]Write i2c OK [17:34:41]MH_I2C_Read... [17:34:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:41]Read from MH i2c: E2 [17:34:41]MH_I2C_Read... [17:34:41]Read from MH i2c: E2 0E 00 [17:34:41]MH_I2C_Read... [17:34:41]Read from MH i2c: E2 0E 00 61 06 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 02 [17:34:41]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [17:34:41]wFMCommunicate OK [17:34:41]SAM_PROTO_GetShiftState done [17:34:41]FM_GetShiftState done [17:34:41]req_shift_opened done [17:34:41]requested_item shift.open_date is exist - process it [17:34:41]req_shift_open_date [17:34:41]req_shift_open_date done [17:34:41]produce_requested_data done [17:34:41]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103177,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [17:34:41]process_action_free close_receipt [17:34:41]json_value_free [17:34:41]json_value_free done [17:34:41]process_json_proto returns [17:34:41]Send response to host [17:34:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103177,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [17:34:41]free response buf [17:34:41]execute_script done [17:34:41]execute_script returns [17:34:41]free content buf [17:34:41]Sock 9.Close socket [17:34:41]Sock 9.Thread stoped [17:34:45]OFD Sender: No OFD packet to send [17:34:50]OFD Sender: No OFD packet to send [17:34:52]accept exits with 7 [17:34:52]New connection [17:34:52]New thread 3067260260 created [17:34:52]Thread 3067116900 joined [17:34:52]Waiting for new connection... [17:34:52] Sock 7.Parse request [17:34:52]Sock 7.Check first char [17:34:52]Sock 7.First char is OK [17:34:52]request: POST /json_proto HTTP/1.0 [17:34:52]Method: POST [17:34:52]URL: /json_proto [17:34:52]Method is POST - this is cgi request [17:34:52]url: /json_proto [17:34:52]query_string will be loaded in cgi processing [17:34:52]execute_cgi json_proto POST (null) [17:34:52]execute_cgi path=json_proto method=POST [17:34:52]POST find Content-Length [17:34:52]Host: 172.17.58.3:8080 [17:34:52]Content-Length: 676 [17:34:52]Content-Type: application/json [17:34:52] [17:34:52]POST finish read [17:34:52]Found Content-Length = 676 [17:34:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160809", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:52]execute_script... [17:34: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)160809", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:52]POST & json_proto [17:34:52]process_json_proto [17:34:52]json parsed OK: [17:34:52]protocol is kg_v1.0 [17:34:52]action value=close_receipt [17:34:52]process_action close_receipt [17:34:52]cmd_close_receipt [17:34:52]MH_GetDate [17:34:52]Write to MH i2c: F0 00 00 62 06 57 [17:34:52]Write i2c OK [17:34:52]MH_I2C_Read... [17:34:52]Read from MH i2c: F0 [17:34:52]MH_I2C_Read... [17:34:52]Read from MH i2c: F0 09 00 [17:34:52]MH_I2C_Read... [17:34:52]Read from MH i2c: F0 09 00 62 06 00 3D 99 BB 66 DC E4 6D 64 E8 [17:34:52]GetLastDocTimeStamp 1723570479 [17:34:52]current date 1723570493 [17:34:52]FM_GetShiftState [17:34:52]SAM_PROTO_GetShiftState [17:34:52]wFMCommunicate request_size=4 [17:34:52]MH_SAM_APDU [17:34:52]CAPDU: 80 13 01 00 [17:34:52]Write to MH i2c: E2 08 00 63 06 80 13 01 00 00 00 00 00 E6 [17:34:52]Write i2c OK [17:34:52]MH_I2C_Read... [17:34:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:52]Read from MH i2c: E2 [17:34:52]MH_I2C_Read... [17:34:52]Read from MH i2c: E2 0E 00 [17:34:52]MH_I2C_Read... [17:34:52]Read from MH i2c: E2 0E 00 63 06 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 04 [17:34:52]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [17:34:52]wFMCommunicate OK [17:34:52]SAM_PROTO_GetShiftState done [17:34:52]FM_GetShiftState done [17:34:52]opened in 1723506770 [17:34:52]opened+sec_in_day 1723593170 [17:34:52]quantity*price = 50018 [17:34:52]sum+1 = 50019 [17:34:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 89 13.08.2024 17:34 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103178 ФПД: 241239681068630 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T173453&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103178&fm=241239681068630&tin=02508201610067®Number=0000000000092718&sum=50000 [17:34:53]StoreToDocumentArchive [17:34:53]shift 464 fd 103178 [17:34:53]save to /storage/0464/doc_00103178 [17:34:53]save last doc name /storage/0464/doc_00103178 to /storage/kkm_last_doc_name [17:34:53]save OK [17:34:53]Clear old archive folders... [17:34:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:34:53]tlvbuf is 001EFF00 [17:34:53]SAM_PROTO_ClearQueue [17:34:53]wFMCommunicate request_size=4 [17:34:53]MH_SAM_APDU [17:34:53]CAPDU: 80 09 00 00 [17:34:53]Write to MH i2c: E2 08 00 70 06 80 09 00 00 00 00 00 00 E8 [17:34:53]Write i2c OK [17:34:53]MH_I2C_Read... [17:34:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:34:54]Read from MH i2c: E2 [17:34:54]MH_I2C_Read... [17:34:54]Read from MH i2c: E2 03 00 [17:34:54]MH_I2C_Read... [17:34:54]Read from MH i2c: E2 03 00 70 06 00 90 00 EA [17:34:54]RAPDU: 90 00 [17:34:54]wFMCommunicate OK [17:34:54]SAM_PROTO_ClearQueue done [17:34:54]KKMCreateOFDPacket [17:34:54]OFDProtocolAddRootSTLVToBuf [17:34:54]FM_MakeSignedData [17:34:54]FM_MakeSignedData [17:34:54]SAM_PROTO_SignData [17:34:54]wFMCommunicate request_size=4 [17:34:54]MH_SAM_APDU [17:34:54]CAPDU: 80 0D 01 02 [17:34:54]Write to MH i2c: E2 08 00 71 06 80 0D 01 02 00 00 00 00 F0 [17:34:54]Write i2c OK [17:34:54]MH_I2C_Read... [17:34:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:34:54]Read from MH i2c: E2 [17:34:54]MH_I2C_Read... [17:34:54]Read from MH i2c: E2 03 00 [17:34:54]MH_I2C_Read... [17:34:54]Read from MH i2c: E2 03 00 71 06 00 90 00 EB [17:34:54]RAPDU: 90 00 [17:34:54]wFMCommunicate OK [17:34:54]wFMCommunicate request_size=255 [17:34:54]MH_SAM_APDU [17:34: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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 3D 99 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 0A 93 01 00 35 04 06 00 DB [17:34:54]Write to MH i2c: E2 02 01 72 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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 3D 99 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 0A 93 01 00 35 04 06 00 DB 00 00 0C [17:34:54]Write i2c OK [17:34:54]MH_I2C_Read... [17:34:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:54]Read from MH i2c: E2 [17:34:54]MH_I2C_Read... [17:34:54]Read from MH i2c: E2 03 00 [17:34:54]MH_I2C_Read... [17:34:54]Read from MH i2c: E2 03 00 72 06 00 90 00 EC [17:34:54]RAPDU: 90 00 [17:34:54]wFMCommunicate OK [17:34:54]wFMCommunicate request_size=10 [17:34:54]MH_SAM_APDU [17:34:54]CAPDU: 80 0D 02 02 05 67 FD 7E EE 56 [17:34:54]Write to MH i2c: E2 0D 00 73 06 80 0D 02 02 05 00 67 FD 7E EE 56 00 00 23 [17:34:54]Write i2c OK [17:34:54]MH_I2C_Read... [17:34:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:54]Read from MH i2c: E2 [17:34:54]MH_I2C_Read... [17:34:54]Read from MH i2c: E2 03 00 [17:34:54]MH_I2C_Read... [17:34:54]Read from MH i2c: E2 03 00 73 06 00 90 00 ED [17:34:54]RAPDU: 90 00 [17:34:54]wFMCommunicate OK [17:34:54]wFMCommunicate request_size=4 [17:34:54]MH_SAM_APDU [17:34:54]CAPDU: 80 0D 03 02 [17:34:54]Write to MH i2c: E2 08 00 74 06 80 0D 03 02 00 00 00 00 F5 [17:34:54]Write i2c OK [17:34:54]MH_I2C_Read... [17:34:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:34:54]Read from MH i2c: E2 [17:34:54]MH_I2C_Read... [17:34:54]Read from MH i2c: E2 0B 00 [17:34:54]MH_I2C_Read... [17:34:54]Read from MH i2c: E2 0B 00 74 06 00 6A 56 41 4A 4A 67 AD 9D 90 00 3C [17:34:54]RAPDU: 6A 56 41 4A 4A 67 AD 9D 90 00 [17:34:54]wFMCommunicate OK [17:34:54]SAM_PROTO_SignData done [17:34:54]FM_MakeSignedData done [17:34:54]CreateOFDProtocolMessage [17:34:54]wFMCommunicate request_size=4 [17:34:54]MH_SAM_APDU [17:34:54]CAPDU: 80 11 00 00 [17:34:54]Write to MH i2c: E2 08 00 75 06 80 11 00 00 00 00 00 00 F5 [17:34:54]Write i2c OK [17:34:54]MH_I2C_Read... [17:34:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:54]Read from MH i2c: E2 [17:34:54]MH_I2C_Read... [17:34:54]Read from MH i2c: E2 17 00 [17:34:54]MH_I2C_Read... [17:34:54]Read from MH i2c: E2 17 00 75 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 49 [17:34:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [17:34:54]wFMCommunicate OK [17:34:54]CreateOFDProtocolMessage done [17:34:54]OFDSenderStorePacket 103178 [17:34:54]StoreOFDPacket docnum=103178 [17:34:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 0B 14 07 01 B3 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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 3D 99 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 0A 93 01 00 35 04 06 00 DB 67 FD 7E EE 56 6A 56 41 4A 4A 67 AD 9D [17:34:54]CheckFolder [17:34:54]dirname=/storage/ofd_packets [17:34:54]CheckFolder done [17:34:54]ProducePacketName [17:34:54]name=ofd_packets/00103178 [17:34:54]NVStorageSaveData ofd_packets/00103178 [17:34:54]File name is /storage/ofd_packets/00103178 [17:34:54]Write 301 bytes [17:34:54]NVStorageSaveData done [17:34:54]OFDSenderStorePacket done [17:34:54]KKMCreateOFDPacket done [17:34:54]NVStorageSaveData kkm_last_timestamp [17:34:54]File name is /storage/kkm_last_timestamp [17:34:54]Write 4 bytes [17:34:54]NVStorageSaveData done [17:34:54]ExternCall_PrintAddStr [17:34:54]wPrintStart [17:34:54]Write to MH i2c: 01 00 00 76 06 7C [17:34:54]Write i2c OK [17:34:54]MH_I2C_Read... [17:34:54]Read from MH i2c: 01 [17:34:54]MH_I2C_Read... [17:34:54]Read from MH i2c: 01 07 00 [17:34:54]MH_I2C_Read... [17:34:54]Read from MH i2c: 01 07 00 76 06 00 00 00 00 00 FF 0F 91 [17:34:54]RasterBufferAndPrint [17:34:54]line Счет N : (1)160809 [17:34:54]line ИНН: 02508201610067 [17:34:54]line Контрольно-Кассовый Чек [17:34:54]line ПРОДАЖА [17:34:54]line ТРК (МРК, ГНК) : 3 [17:34:54]line Товар: 2710124130 [17:34:54]line Аи-92-К-5 [17:34:54]line 7.590 * 65.90 [17:34:54]line = 500.18 [17:34:54]line НДС 12% НСП 1% [17:34:54]line > о реализуемом товаре [17:34:54]line ОКРУГЛЕНИЕ: -0.18 [17:34:54]line ИТОГО: 500.00 [17:34:54]line Внесено: 500.00 [17:34:54]line СДАЧА: 0.00 [17:34:54]line НСП 1% : 4.43 [17:34:54]line НДС 12% : 53.12 [17:34:54]line Наличными: 500.00 [17:34:54]line Безнал.: 0.00 [17:34:54]line Место: АЗС № 38 "Партнер Нефть" [17:34:54]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [17:34:54]line СНО: Общий режим [17:34:54]line Чек 89 13.08.2024 17:34 [17:34:54]line Смена: 464 ФФД: 1.0 [17:34:54]line ЗНМ: 0300000126 [17:34:54]line РНМ: 0000000000092718 [17:34:54]line Версия ККМ: 001 [17:34:54]line ФМ: 0000000000875058 [17:34:54]line ФД: 103178 [17:34:54]line ФПД: 241239681068630 [17:34:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T173453&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103178&fm=241239681068630&tin=02508201610067®Number=0000000000092718&sum=50000 [17:34:54]OFD Sender: Processing packet 103178 [packets to send 69, broken 68] [17:34:54]ProducePacketName [17:34:54]name=ofd_packets/00103178 [17:34:54]OFD Sender: To server: pG, [17:34:54]CommunicateWithHost lk.salyk.kg:30040 [17:34:54]ConnectInit lk.salyk.kg [17:34:54]written 0, free lines is 4095 [17:34:54]Connected sock=10 [17:34:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 0B 14 07 01 B3 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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 3D 99 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 0A 93 01 00 35 04 06 00 DB 67 FD 7E EE 56 6A 56 41 4A 4A 67 AD 9D [17:34:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 D9 5C 47 00 D7 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 35 30 35 38 10 04 04 00 0A 93 01 00 F4 03 04 00 B0 3F BB 66 B6 04 01 00 00 C3 B7 EC F7 4F F0 16 C2 [17:34:55]CommunicateWithHost err = 0 [17:34:55]CheckOFDResponse [17:34:55]1017 (14) - 77093643461234 [17:34:55]1041 (16) - 0000000000875058 [17:34:55]1040 (4) - 103178 [17:34:55]1012 (4) - 13.08.2024 11:12 [17:34:55]1206 (1) - 0 [17:34:55]OFD Sender: Remove packet 103178 [17:34:55]ProducePacketName [17:34:55]name=ofd_packets/00103178 [17:34:55]NVStorageDeleteData [17:34:55]Write to MH i2c: 01 00 00 A1 06 A7 [17:34:55]Write i2c OK [17:34:55]MH_I2C_Read... [17:34:55]Read from MH i2c: 01 [17:34:55]MH_I2C_Read... [17:34:55]Read from MH i2c: 01 07 00 [17:34:55]MH_I2C_Read... [17:34:55]Read from MH i2c: 01 07 00 A1 06 00 00 00 00 00 E7 0C A1 [17:34:55]RasterBufferAndPrint [17:34:55]line [17:34:55]line [17:34:55]line [17:34:55]line [17:34:55]line [17:34:55]written 0, free lines is 3309 [17:34:55]MH_Cut [17:34:55]Write to MH i2c: D1 01 00 A8 06 01 80 [17:34:55]Write i2c OK [17:34:55]MH_I2C_Read... [17:34:55]Read from MH i2c: D1 [17:34:55]MH_I2C_Read... [17:34:55]Read from MH i2c: D1 01 00 [17:34:55]MH_I2C_Read... [17:34:55]Read from MH i2c: D1 01 00 A8 06 00 7F [17:34:55]Write to MH i2c: 01 00 00 A9 06 AF [17:34:55]Write i2c OK [17:34:55]MH_I2C_Read... [17:34:55]OFD Sender: No OFD packet to send [17:34:56]*** Cut start [17:34:56]*** Purtial cut [17:34:56]*** CUTSNS_PIN = 0 [17:34:56]*** Stage 1: CUTSNS_PIN = 1 [17:34:58]Read from MH i2c: 01 [17:34:58]MH_I2C_Read... [17:34:58]*** Stop cut motor [17:34:58]*** Cut end [17:34:58]Read from MH i2c: 01 07 00 [17:34:58]MH_I2C_Read... [17:34:58]Read from MH i2c: 01 07 00 A9 06 00 00 00 00 00 FF 0F C4 [17:34:58]process_action close_receipt done [17:34:58]requested_data is exist [17:34:58]produce_requested_data [17:34:58]requested_item fm.sn is exist - process it [17:34:58]wFMCommunicate request_size=4 [17:34:58]MH_SAM_APDU [17:34:58]CAPDU: 80 11 00 00 [17:34:58]Write to MH i2c: E2 08 00 AA 06 80 11 00 00 00 00 00 00 2A [17:34:58]Write i2c OK [17:34:58]MH_I2C_Read... [17:34:58]Read from MH i2c: E2 [17:34:58]MH_I2C_Read... [17:34:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:58]Read from MH i2c: E2 17 00 [17:34:58]MH_I2C_Read... [17:34:58]Read from MH i2c: E2 17 00 AA 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 7E [17:34:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [17:34:58]wFMCommunicate OK [17:34:58]requested_item fd.num is exist - process it [17:34:58]SAM_PROTO_GetFieldsCounters [17:34:58]wFMCommunicate request_size=4 [17:34:58]MH_SAM_APDU [17:34:58]CAPDU: 80 13 00 00 [17:34:58]Write to MH i2c: E2 08 00 AB 06 80 13 00 00 00 00 00 00 2D [17:34:58]Write i2c OK [17:34:58]MH_I2C_Read... [17:34:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:34:58]Read from MH i2c: E2 [17:34:58]MH_I2C_Read... [17:34:58]Read from MH i2c: E2 62 00 [17:34:58]MH_I2C_Read... [17:34:58]Read from MH i2c: E2 62 00 AB 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 0A 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [17:34:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 0A 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:34:58]wFMCommunicate OK [17:34:58]SAM_PROTO_GetFieldsCounters done [17:34:58]requested_item shift.num is exist - process it [17:34:58]requested_item shift.opened is exist - process it [17:34:58]req_shift_opened [17:34:58]FM_GetShiftState [17:34:58]SAM_PROTO_GetShiftState [17:34:58]wFMCommunicate request_size=4 [17:34:58]MH_SAM_APDU [17:34:58]CAPDU: 80 13 01 00 [17:34:58]Write to MH i2c: E2 08 00 AC 06 80 13 01 00 00 00 00 00 2F [17:34:58]Write i2c OK [17:34:58]MH_I2C_Read... [17:34:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:58]Read from MH i2c: E2 [17:34:58]MH_I2C_Read... [17:34:58]Read from MH i2c: E2 0E 00 [17:34:58]MH_I2C_Read... [17:34:58]Read from MH i2c: E2 0E 00 AC 06 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 4D [17:34:58]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [17:34:58]wFMCommunicate OK [17:34:58]SAM_PROTO_GetShiftState done [17:34:58]FM_GetShiftState done [17:34:58]req_shift_opened done [17:34:58]requested_item shift.open_date is exist - process it [17:34:58]req_shift_open_date [17:34:58]req_shift_open_date done [17:34:58]produce_requested_data done [17:34:58]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103178,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [17:34:58]process_action_free close_receipt [17:34:58]json_value_free [17:34:58]json_value_free done [17:34:58]process_json_proto returns [17:34:58]Send response to host [17:34:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103178,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [17:34:58]free response buf [17:34:58]execute_script done [17:34:58]execute_script returns [17:34:58]free content buf [17:34:58]Sock 7.Close socket [17:34:58]Sock 7.Thread stoped [17:35:00]OFD Sender: No OFD packet to send [17:35:05]OFD Sender: No OFD packet to send [17:35:10]OFD Sender: No OFD packet to send [17:35:15]OFD Sender: No OFD packet to send [17:35:20]OFD Sender: No OFD packet to send [17:35:25]OFD Sender: No OFD packet to send [17:35:30]OFD Sender: No OFD packet to send [17:35:35]OFD Sender: No OFD packet to send [17:35:40]OFD Sender: No OFD packet to send [17:35:45]OFD Sender: No OFD packet to send [17:35:50]OFD Sender: No OFD packet to send [17:35:55]OFD Sender: No OFD packet to send [17:36:00]OFD Sender: No OFD packet to send [17:36:05]OFD Sender: No OFD packet to send [17:36:10]OFD Sender: No OFD packet to send [17:36:15]OFD Sender: No OFD packet to send [17:36:20]OFD Sender: No OFD packet to send [17:36:25]OFD Sender: No OFD packet to send [17:36:30]OFD Sender: No OFD packet to send [17:36:35]OFD Sender: No OFD packet to send [17:36:40]OFD Sender: No OFD packet to send [17:36:45]OFD Sender: No OFD packet to send [17:36:50]OFD Sender: No OFD packet to send [17:36:55]OFD Sender: No OFD packet to send [17:37:00]OFD Sender: No OFD packet to send [17:37:05]OFD Sender: No OFD packet to send [17:37:10]OFD Sender: No OFD packet to send [17:37:15]OFD Sender: No OFD packet to send [17:37:20]OFD Sender: No OFD packet to send [17:37:25]OFD Sender: No OFD packet to send [17:37:30]OFD Sender: No OFD packet to send [17:37:35]OFD Sender: No OFD packet to send [17:37:40]OFD Sender: No OFD packet to send [17:37:45]OFD Sender: No OFD packet to send [17:37:50]OFD Sender: No OFD packet to send [17:37:55]OFD Sender: No OFD packet to send [17:38:00]OFD Sender: No OFD packet to send [17:38:05]OFD Sender: No OFD packet to send [17:38:10]OFD Sender: No OFD packet to send [17:38:15]OFD Sender: No OFD packet to send [17:38:20]OFD Sender: No OFD packet to send [17:38:25]OFD Sender: No OFD packet to send [17:38:30]OFD Sender: No OFD packet to send [17:38:35]OFD Sender: No OFD packet to send [17:38:40]OFD Sender: No OFD packet to send [17:38:45]OFD Sender: No OFD packet to send [17:38:50]OFD Sender: No OFD packet to send [17:38:55]OFD Sender: No OFD packet to send [17:39:00]OFD Sender: No OFD packet to send [17:39:05]OFD Sender: No OFD packet to send [17:39:10]OFD Sender: No OFD packet to send [17:39:15]OFD Sender: No OFD packet to send [17:39:20]OFD Sender: No OFD packet to send [17:39:25]OFD Sender: No OFD packet to send [17:39:30]OFD Sender: No OFD packet to send [17:39:35]OFD Sender: No OFD packet to send [17:39:40]OFD Sender: No OFD packet to send [17:39:45]OFD Sender: No OFD packet to send [17:39:50]OFD Sender: No OFD packet to send [17:39:55]OFD Sender: No OFD packet to send [17:40:00]OFD Sender: No OFD packet to send [17:40:05]OFD Sender: No OFD packet to send [17:40:10]OFD Sender: No OFD packet to send [17:40:15]OFD Sender: No OFD packet to send [17:40:20]OFD Sender: No OFD packet to send [17:40:25]OFD Sender: No OFD packet to send [17:40:30]OFD Sender: No OFD packet to send [17:40:35]OFD Sender: No OFD packet to send [17:40:40]OFD Sender: No OFD packet to send [17:40:46]OFD Sender: No OFD packet to send [17:40:51]OFD Sender: No OFD packet to send [17:40:56]OFD Sender: No OFD packet to send [17:41:01]OFD Sender: No OFD packet to send [17:41:06]OFD Sender: No OFD packet to send [17:41:08]accept exits with 9 [17:41:08]New connection [17:41:08]New thread 3067116900 created [17:41:08]Thread 3067260260 joined [17:41:08]Waiting for new connection... [17:41:08] Sock 9.Parse request [17:41:08]Sock 9.Check first char [17:41:08]Sock 9.First char is OK [17:41:08]request: POST /json_proto HTTP/1.0 [17:41:08]Method: POST [17:41:08]URL: /json_proto [17:41:08]Method is POST - this is cgi request [17:41:08]url: /json_proto [17:41:08]query_string will be loaded in cgi processing [17:41:08]execute_cgi json_proto POST (null) [17:41:08]execute_cgi path=json_proto method=POST [17:41:08]POST find Content-Length [17:41:08]Host: 172.17.58.3:8080 [17:41:08]Content-Length: 676 [17:41:08]Content-Type: application/json [17:41:08] [17:41:08]POST finish read [17:41:08]Found Content-Length = 676 [17:41:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160810", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 4.560, "sum" : 300.50, "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:41:08]execute_script... [17:41:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160810", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 4.560, "sum" : 300.50, "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:41:08]POST & json_proto [17:41:08]process_json_proto [17:41:08]json parsed OK: [17:41:08]protocol is kg_v1.0 [17:41:08]action value=close_receipt [17:41:08]process_action close_receipt [17:41:08]cmd_close_receipt [17:41:08]MH_GetDate [17:41:08]Write to MH i2c: F0 00 00 AD 06 A2 [17:41:08]Write i2c OK [17:41:08]MH_I2C_Read... [17:41:08]Read from MH i2c: F0 [17:41:08]MH_I2C_Read... [17:41:08]Read from MH i2c: F0 09 00 [17:41:08]MH_I2C_Read... [17:41:08]Read from MH i2c: F0 09 00 AD 06 00 B5 9A BB 66 DC E4 6D 64 AC [17:41:08]GetLastDocTimeStamp 1723570493 [17:41:08]current date 1723570869 [17:41:08]FM_GetShiftState [17:41:08]SAM_PROTO_GetShiftState [17:41:08]wFMCommunicate request_size=4 [17:41:08]MH_SAM_APDU [17:41:08]CAPDU: 80 13 01 00 [17:41:08]Write to MH i2c: E2 08 00 AE 06 80 13 01 00 00 00 00 00 31 [17:41:08]Write i2c OK [17:41:08]MH_I2C_Read... [17:41:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:08]Read from MH i2c: E2 [17:41:08]MH_I2C_Read... [17:41:08]Read from MH i2c: E2 0E 00 [17:41:08]MH_I2C_Read... [17:41:08]Read from MH i2c: E2 0E 00 AE 06 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 4F [17:41:08]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [17:41:08]wFMCommunicate OK [17:41:08]SAM_PROTO_GetShiftState done [17:41:08]FM_GetShiftState done [17:41:08]opened in 1723506770 [17:41:08]opened+sec_in_day 1723593170 [17:41:08]quantity*price = 30050 [17:41:08]sum+1 = 30051 [17:41:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 90 13.08.2024 17:41 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103179 ФПД: 200611637337527 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T174109&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103179&fm=200611637337527&tin=02508201610067®Number=0000000000092718&sum=30000 [17:41:10]StoreToDocumentArchive [17:41:10]shift 464 fd 103179 [17:41:10]save to /storage/0464/doc_00103179 [17:41:10]save last doc name /storage/0464/doc_00103179 to /storage/kkm_last_doc_name [17:41:10]save OK [17:41:10]Clear old archive folders... [17:41:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:41:10]tlvbuf is 002409F0 [17:41:10]SAM_PROTO_ClearQueue [17:41:10]wFMCommunicate request_size=4 [17:41:10]MH_SAM_APDU [17:41:10]CAPDU: 80 09 00 00 [17:41:10]Write to MH i2c: E2 08 00 BB 06 80 09 00 00 00 00 00 00 33 [17:41:10]Write i2c OK [17:41:10]MH_I2C_Read... [17:41:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:41:10]Read from MH i2c: E2 [17:41:10]MH_I2C_Read... [17:41:10]Read from MH i2c: E2 03 00 [17:41:10]MH_I2C_Read... [17:41:10]Read from MH i2c: E2 03 00 BB 06 00 90 00 35 [17:41:10]RAPDU: 90 00 [17:41:10]wFMCommunicate OK [17:41:10]SAM_PROTO_ClearQueue done [17:41:10]KKMCreateOFDPacket [17:41:10]OFDProtocolAddRootSTLVToBuf [17:41:10]FM_MakeSignedData [17:41:10]FM_MakeSignedData [17:41:10]SAM_PROTO_SignData [17:41:10]wFMCommunicate request_size=4 [17:41:10]MH_SAM_APDU [17:41:10]CAPDU: 80 0D 01 02 [17:41:10]Write to MH i2c: E2 08 00 BC 06 80 0D 01 02 00 00 00 00 3B [17:41:10]Write i2c OK [17:41:10]MH_I2C_Read... [17:41:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:41:10]Read from MH i2c: E2 [17:41:10]MH_I2C_Read... [17:41:10]Read from MH i2c: E2 03 00 [17:41:10]MH_I2C_Read... [17:41:10]Read from MH i2c: E2 03 00 BC 06 00 90 00 36 [17:41:10]RAPDU: 90 00 [17:41:10]wFMCommunicate OK [17:41:10]wFMCommunicate request_size=255 [17:41:10]MH_SAM_APDU [17:41:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 B5 9A BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 0B 93 01 00 35 04 06 00 B6 [17:41:10]Write to MH i2c: E2 02 01 BD 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 B5 9A BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 0B 93 01 00 35 04 06 00 B6 00 00 9F [17:41:10]Write i2c OK [17:41:10]MH_I2C_Read... [17:41:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:10]Read from MH i2c: E2 [17:41:10]MH_I2C_Read... [17:41:10]Read from MH i2c: E2 03 00 [17:41:10]MH_I2C_Read... [17:41:10]Read from MH i2c: E2 03 00 BD 06 00 90 00 37 [17:41:10]RAPDU: 90 00 [17:41:10]wFMCommunicate OK [17:41:10]wFMCommunicate request_size=10 [17:41:10]MH_SAM_APDU [17:41:10]CAPDU: 80 0D 02 02 05 74 89 61 9D B7 [17:41:10]Write to MH i2c: E2 0D 00 BE 06 80 0D 02 02 05 00 74 89 61 9D B7 00 00 FA [17:41:10]Write i2c OK [17:41:10]MH_I2C_Read... [17:41:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:10]Read from MH i2c: E2 [17:41:10]MH_I2C_Read... [17:41:10]Read from MH i2c: E2 03 00 [17:41:10]MH_I2C_Read... [17:41:10]Read from MH i2c: E2 03 00 BE 06 00 90 00 38 [17:41:10]RAPDU: 90 00 [17:41:10]wFMCommunicate OK [17:41:10]wFMCommunicate request_size=4 [17:41:10]MH_SAM_APDU [17:41:10]CAPDU: 80 0D 03 02 [17:41:10]Write to MH i2c: E2 08 00 BF 06 80 0D 03 02 00 00 00 00 40 [17:41:10]Write i2c OK [17:41:10]MH_I2C_Read... [17:41:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:41:10]Read from MH i2c: E2 [17:41:10]MH_I2C_Read... [17:41:10]Read from MH i2c: E2 0B 00 [17:41:10]MH_I2C_Read... [17:41:10]Read from MH i2c: E2 0B 00 BF 06 00 0C 32 7F 53 27 8D 25 3D 90 00 67 [17:41:10]RAPDU: 0C 32 7F 53 27 8D 25 3D 90 00 [17:41:10]wFMCommunicate OK [17:41:10]SAM_PROTO_SignData done [17:41:10]FM_MakeSignedData done [17:41:10]CreateOFDProtocolMessage [17:41:10]wFMCommunicate request_size=4 [17:41:10]MH_SAM_APDU [17:41:10]CAPDU: 80 11 00 00 [17:41:10]Write to MH i2c: E2 08 00 C0 06 80 11 00 00 00 00 00 00 40 [17:41:10]Write i2c OK [17:41:10]MH_I2C_Read... [17:41:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:10]Read from MH i2c: E2 [17:41:10]MH_I2C_Read... [17:41:10]Read from MH i2c: E2 17 00 [17:41:10]MH_I2C_Read... [17:41:10]Read from MH i2c: E2 17 00 C0 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 94 [17:41:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [17:41:10]wFMCommunicate OK [17:41:10]CreateOFDProtocolMessage done [17:41:10]OFDSenderStorePacket 103179 [17:41:10]StoreOFDPacket docnum=103179 [17:41:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 0E AC 07 01 E5 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 B5 9A BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 0B 93 01 00 35 04 06 00 B6 74 89 61 9D B7 0C 32 7F 53 27 8D 25 3D [17:41:10]CheckFolder [17:41:10]dirname=/storage/ofd_packets [17:41:10]CheckFolder done [17:41:10]ProducePacketName [17:41:10]name=ofd_packets/00103179 [17:41:10]NVStorageSaveData ofd_packets/00103179 [17:41:10]File name is /storage/ofd_packets/00103179 [17:41:10]Write 301 bytes [17:41:10]NVStorageSaveData done [17:41:10]OFDSenderStorePacket done [17:41:10]KKMCreateOFDPacket done [17:41:10]NVStorageSaveData kkm_last_timestamp [17:41:10]File name is /storage/kkm_last_timestamp [17:41:10]Write 4 bytes [17:41:10]NVStorageSaveData done [17:41:10]ExternCall_PrintAddStr [17:41:10]wPrintStart [17:41:10]Write to MH i2c: 01 00 00 C1 06 C7 [17:41:10]Write i2c OK [17:41:10]MH_I2C_Read... [17:41:10]Read from MH i2c: 01 [17:41:10]MH_I2C_Read... [17:41:10]Read from MH i2c: 01 07 00 [17:41:10]MH_I2C_Read... [17:41:10]Read from MH i2c: 01 07 00 C1 06 00 00 00 00 00 FF 0F DC [17:41:10]RasterBufferAndPrint [17:41:10]line Счет N : (1)160810 [17:41:10]line ИНН: 02508201610067 [17:41:10]line Контрольно-Кассовый Чек [17:41:10]line ПРОДАЖА [17:41:10]line ТРК (МРК, ГНК) : 7 [17:41:10]line Товар: 2710124130 [17:41:10]line Аи-92-К-5 [17:41:10]line 4.560 * 65.90 [17:41:10]line = 300.50 [17:41:10]line НДС 12% НСП 1% [17:41:10]line > о реализуемом товаре [17:41:10]line ОКРУГЛЕНИЕ: -0.50 [17:41:10]line ИТОГО: 300.00 [17:41:10]line Внесено: 300.00 [17:41:10]line СДАЧА: 0.00 [17:41:10]line НСП 1% : 2.66 [17:41:10]line НДС 12% : 31.91 [17:41:10]line Наличными: 300.00 [17:41:10]line Безнал.: 0.00 [17:41:10]line Место: АЗС № 38 "Партнер Нефть" [17:41:10]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [17:41:10]line СНО: Общий режим [17:41:10]line Чек 90 13.08.2024 17:41 [17:41:10]line Смена: 464 ФФД: 1.0 [17:41:10]line ЗНМ: 0300000126 [17:41:10]line РНМ: 0000000000092718 [17:41:10]line Версия ККМ: 001 [17:41:10]line ФМ: 0000000000875058 [17:41:10]line ФД: 103179 [17:41:10]line ФПД: 200611637337527 [17:41:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T174109&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103179&fm=200611637337527&tin=02508201610067®Number=0000000000092718&sum=30000 [17:41:10]OFD Sender: Processing packet 103179 [packets to send 69, broken 68] [17:41:10]ProducePacketName [17:41:10]name=ofd_packets/00103179 [17:41:10]OFD Sender: To server: pG, [17:41:10]CommunicateWithHost lk.salyk.kg:30040 [17:41:10]ConnectInit lk.salyk.kg [17:41:10]written 0, free lines is 4095 [17:41:11]Connected sock=10 [17:41:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 0E AC 07 01 E5 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 B5 9A BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 0B 93 01 00 35 04 06 00 B6 74 89 61 9D B7 0C 32 7F 53 27 8D 25 3D [17:41:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 41 3D 47 00 9C 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 0B 93 01 00 F4 03 04 00 28 41 BB 66 B6 04 01 00 00 54 EA 4B 74 68 56 4D 01 [17:41:11]CommunicateWithHost err = 0 [17:41:11]CheckOFDResponse [17:41:11]1017 (14) - 77093643461234 [17:41:11]1041 (16) - 0000000000875058 [17:41:11]1040 (4) - 103179 [17:41:11]1012 (4) - 13.08.2024 11:19 [17:41:11]1206 (1) - 0 [17:41:11]OFD Sender: Remove packet 103179 [17:41:11]ProducePacketName [17:41:11]name=ofd_packets/00103179 [17:41:11]NVStorageDeleteData [17:41:11]Write to MH i2c: 01 00 00 EC 06 F2 [17:41:11]Write i2c OK [17:41:11]MH_I2C_Read... [17:41:11]Read from MH i2c: 01 [17:41:11]MH_I2C_Read... [17:41:11]Read from MH i2c: 01 07 00 [17:41:11]MH_I2C_Read... [17:41:11]Read from MH i2c: 01 07 00 EC 06 00 00 00 00 00 F3 0C F8 [17:41:11]RasterBufferAndPrint [17:41:11]line [17:41:11]line [17:41:11]line [17:41:11]line [17:41:11]line [17:41:11]written 0, free lines is 3321 [17:41:11]MH_Cut [17:41:11]Write to MH i2c: D1 01 00 F3 06 01 CB [17:41:11]Write i2c OK [17:41:11]MH_I2C_Read... [17:41:11]Read from MH i2c: D1 [17:41:11]MH_I2C_Read... [17:41:11]Read from MH i2c: D1 01 00 [17:41:11]MH_I2C_Read... [17:41:11]Read from MH i2c: D1 01 00 F3 06 00 CA [17:41:11]Write to MH i2c: 01 00 00 F4 06 FA [17:41:11]Write i2c OK [17:41:11]MH_I2C_Read... [17:41:11]OFD Sender: No OFD packet to send [17:41:12]*** Cut start [17:41:12]*** Purtial cut [17:41:12]*** Stage 1: CUTSNS_PIN = 1 [17:41:12]Read from MH i2c: 01 [17:41:12]MH_I2C_Read... [17:41:12]*** Stop cut motor [17:41:12]*** Cut end [17:41:12]Read from MH i2c: 01 07 00 [17:41:12]MH_I2C_Read... [17:41:12]Read from MH i2c: 01 07 00 F4 06 00 00 00 00 00 FF 0F 0F [17:41:12]process_action close_receipt done [17:41:12]requested_data is exist [17:41:12]produce_requested_data [17:41:12]requested_item fm.sn is exist - process it [17:41:12]wFMCommunicate request_size=4 [17:41:12]MH_SAM_APDU [17:41:12]CAPDU: 80 11 00 00 [17:41:12]Write to MH i2c: E2 08 00 F5 06 80 11 00 00 00 00 00 00 75 [17:41:12]Write i2c OK [17:41:12]MH_I2C_Read... [17:41:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:12]Read from MH i2c: E2 [17:41:12]MH_I2C_Read... [17:41:12]Read from MH i2c: E2 17 00 [17:41:12]MH_I2C_Read... [17:41:12]Read from MH i2c: E2 17 00 F5 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 C9 [17:41:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [17:41:12]wFMCommunicate OK [17:41:12]requested_item fd.num is exist - process it [17:41:12]SAM_PROTO_GetFieldsCounters [17:41:12]wFMCommunicate request_size=4 [17:41:12]MH_SAM_APDU [17:41:12]CAPDU: 80 13 00 00 [17:41:12]Write to MH i2c: E2 08 00 F6 06 80 13 00 00 00 00 00 00 78 [17:41:12]Write i2c OK [17:41:12]MH_I2C_Read... [17:41:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:41:12]Read from MH i2c: E2 [17:41:12]MH_I2C_Read... [17:41:12]Read from MH i2c: E2 62 00 [17:41:12]MH_I2C_Read... [17:41:12]Read from MH i2c: E2 62 00 F6 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 0B 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [17:41:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 0B 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:41:12]wFMCommunicate OK [17:41:12]SAM_PROTO_GetFieldsCounters done [17:41:12]requested_item shift.num is exist - process it [17:41:12]requested_item shift.opened is exist - process it [17:41:12]req_shift_opened [17:41:12]FM_GetShiftState [17:41:12]SAM_PROTO_GetShiftState [17:41:12]wFMCommunicate request_size=4 [17:41:12]MH_SAM_APDU [17:41:12]CAPDU: 80 13 01 00 [17:41:12]Write to MH i2c: E2 08 00 F7 06 80 13 01 00 00 00 00 00 7A [17:41:12]Write i2c OK [17:41:12]MH_I2C_Read... [17:41:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:12]Read from MH i2c: E2 [17:41:12]MH_I2C_Read... [17:41:12]Read from MH i2c: E2 0E 00 [17:41:12]MH_I2C_Read... [17:41:12]Read from MH i2c: E2 0E 00 F7 06 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 98 [17:41:12]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [17:41:12]wFMCommunicate OK [17:41:12]SAM_PROTO_GetShiftState done [17:41:12]FM_GetShiftState done [17:41:12]req_shift_opened done [17:41:12]requested_item shift.open_date is exist - process it [17:41:12]req_shift_open_date [17:41:12]req_shift_open_date done [17:41:12]produce_requested_data done [17:41:12]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103179,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [17:41:12]process_action_free close_receipt [17:41:12]json_value_free [17:41:12]json_value_free done [17:41:12]process_json_proto returns [17:41:12]Send response to host [17:41:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103179,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [17:41:12]free response buf [17:41:12]execute_script done [17:41:12]execute_script returns [17:41:12]free content buf [17:41:12]Sock 9.Close socket [17:41:12]Sock 9.Thread stoped [17:41:16]OFD Sender: No OFD packet to send [17:41:21]OFD Sender: No OFD packet to send [17:41:26]OFD Sender: No OFD packet to send [17:41:31]OFD Sender: No OFD packet to send [17:41:36]OFD Sender: No OFD packet to send [17:41:41]OFD Sender: No OFD packet to send [17:41:46]OFD Sender: No OFD packet to send [17:41:51]OFD Sender: No OFD packet to send [17:41:56]OFD Sender: No OFD packet to send [17:42:01]OFD Sender: No OFD packet to send [17:42:06]OFD Sender: No OFD packet to send [17:42:11]OFD Sender: No OFD packet to send [17:42:16]OFD Sender: No OFD packet to send [17:42:21]OFD Sender: No OFD packet to send [17:42:26]OFD Sender: No OFD packet to send [17:42:31]OFD Sender: No OFD packet to send [17:42:36]OFD Sender: No OFD packet to send [17:42:41]OFD Sender: No OFD packet to send [17:42:46]OFD Sender: No OFD packet to send [17:42:51]OFD Sender: No OFD packet to send [17:42:56]OFD Sender: No OFD packet to send [17:43:01]OFD Sender: No OFD packet to send [17:43:06]OFD Sender: No OFD packet to send [17:43:11]OFD Sender: No OFD packet to send [17:43:16]OFD Sender: No OFD packet to send [17:43:21]OFD Sender: No OFD packet to send [17:43:26]OFD Sender: No OFD packet to send [17:43:31]OFD Sender: No OFD packet to send [17:43:36]OFD Sender: No OFD packet to send [17:43:41]OFD Sender: No OFD packet to send [17:43:46]OFD Sender: No OFD packet to send [17:43:51]OFD Sender: No OFD packet to send [17:43:56]OFD Sender: No OFD packet to send [17:44:01]OFD Sender: No OFD packet to send [17:44:06]OFD Sender: No OFD packet to send [17:44:11]OFD Sender: No OFD packet to send [17:44:16]OFD Sender: No OFD packet to send [17:44:21]OFD Sender: No OFD packet to send [17:44:26]OFD Sender: No OFD packet to send [17:44:31]OFD Sender: No OFD packet to send [17:44:36]OFD Sender: No OFD packet to send [17:44:41]OFD Sender: No OFD packet to send [17:44:46]OFD Sender: No OFD packet to send [17:44:51]OFD Sender: No OFD packet to send [17:44:56]OFD Sender: No OFD packet to send [17:45:01]OFD Sender: No OFD packet to send [17:45:06]OFD Sender: No OFD packet to send [17:45:11]OFD Sender: No OFD packet to send [17:45:16]OFD Sender: No OFD packet to send [17:45:21]OFD Sender: No OFD packet to send [17:45:26]OFD Sender: No OFD packet to send [17:45:31]OFD Sender: No OFD packet to send [17:45:36]OFD Sender: No OFD packet to send [17:45:41]OFD Sender: No OFD packet to send [17:45:46]OFD Sender: No OFD packet to send [17:45:51]OFD Sender: No OFD packet to send [17:45:57]OFD Sender: No OFD packet to send [17:46:02]OFD Sender: No OFD packet to send [17:46:07]OFD Sender: No OFD packet to send [17:46:12]OFD Sender: No OFD packet to send [17:46:17]OFD Sender: No OFD packet to send [17:46:22]OFD Sender: No OFD packet to send [17:46:27]OFD Sender: No OFD packet to send [17:46:32]OFD Sender: No OFD packet to send [17:46:37]OFD Sender: No OFD packet to send [17:46:42]OFD Sender: No OFD packet to send [17:46:47]OFD Sender: No OFD packet to send [17:46:52]OFD Sender: No OFD packet to send [17:46:57]OFD Sender: No OFD packet to send [17:47:02]OFD Sender: No OFD packet to send [17:47:07]OFD Sender: No OFD packet to send [17:47:12]OFD Sender: No OFD packet to send [17:47:17]OFD Sender: No OFD packet to send [17:47:22]OFD Sender: No OFD packet to send [17:47:27]OFD Sender: No OFD packet to send [17:47:32]OFD Sender: No OFD packet to send [17:47:37]OFD Sender: No OFD packet to send [17:47:42]OFD Sender: No OFD packet to send [17:47:47]OFD Sender: No OFD packet to send [17:47:52]OFD Sender: No OFD packet to send [17:47:57]OFD Sender: No OFD packet to send [17:48:02]OFD Sender: No OFD packet to send [17:48:07]OFD Sender: No OFD packet to send [17:48:12]OFD Sender: No OFD packet to send [17:48:17]OFD Sender: No OFD packet to send [17:48:22]OFD Sender: No OFD packet to send [17:48:27]OFD Sender: No OFD packet to send [17:48:32]OFD Sender: No OFD packet to send [17:48:37]OFD Sender: No OFD packet to send [17:48:42]OFD Sender: No OFD packet to send [17:48:47]OFD Sender: No OFD packet to send [17:48:52]OFD Sender: No OFD packet to send [17:48:57]OFD Sender: No OFD packet to send [17:49:02]OFD Sender: No OFD packet to send [17:49:07]OFD Sender: No OFD packet to send [17:49:12]OFD Sender: No OFD packet to send [17:49:17]OFD Sender: No OFD packet to send [17:49:22]OFD Sender: No OFD packet to send [17:49:27]OFD Sender: No OFD packet to send [17:49:32]OFD Sender: No OFD packet to send [17:49:37]OFD Sender: No OFD packet to send [17:49:42]OFD Sender: No OFD packet to send [17:49:47]OFD Sender: No OFD packet to send [17:49:52]OFD Sender: No OFD packet to send [17:49:57]OFD Sender: No OFD packet to send [17:50:02]OFD Sender: No OFD packet to send [17:50:07]OFD Sender: No OFD packet to send [17:50:12]OFD Sender: No OFD packet to send [17:50:17]OFD Sender: No OFD packet to send [17:50:22]OFD Sender: No OFD packet to send [17:50:27]OFD Sender: No OFD packet to send [17:50:32]OFD Sender: No OFD packet to send [17:50:37]OFD Sender: No OFD packet to send [17:50:42]OFD Sender: No OFD packet to send [17:50:47]OFD Sender: No OFD packet to send [17:50:52]OFD Sender: No OFD packet to send [17:50:57]OFD Sender: No OFD packet to send [17:51:02]OFD Sender: No OFD packet to send [17:51:07]OFD Sender: No OFD packet to send [17:51:12]OFD Sender: No OFD packet to send [17:51:17]OFD Sender: No OFD packet to send [17:51:22]OFD Sender: No OFD packet to send [17:51:27]OFD Sender: No OFD packet to send [17:51:32]OFD Sender: No OFD packet to send [17:51:37]OFD Sender: No OFD packet to send [17:51:42]OFD Sender: No OFD packet to send [17:51:47]OFD Sender: No OFD packet to send [17:51:52]OFD Sender: No OFD packet to send [17:51:57]OFD Sender: No OFD packet to send [17:52:02]OFD Sender: No OFD packet to send [17:52:07]OFD Sender: No OFD packet to send [17:52:12]OFD Sender: No OFD packet to send [17:52:17]OFD Sender: No OFD packet to send [17:52:22]OFD Sender: No OFD packet to send [17:52:27]OFD Sender: No OFD packet to send [17:52:32]OFD Sender: No OFD packet to send [17:52:37]OFD Sender: No OFD packet to send [17:52:42]OFD Sender: No OFD packet to send [17:52:47]OFD Sender: No OFD packet to send [17:52:52]OFD Sender: No OFD packet to send [17:52:57]OFD Sender: No OFD packet to send [17:53:02]OFD Sender: No OFD packet to send [17:53:07]OFD Sender: No OFD packet to send [17:53:12]OFD Sender: No OFD packet to send [17:53:17]OFD Sender: No OFD packet to send [17:53:22]OFD Sender: No OFD packet to send [17:53:27]OFD Sender: No OFD packet to send [17:53:32]OFD Sender: No OFD packet to send [17:53:37]OFD Sender: No OFD packet to send [17:53:42]OFD Sender: No OFD packet to send [17:53:47]OFD Sender: No OFD packet to send [17:53:52]OFD Sender: No OFD packet to send [17:53:57]OFD Sender: No OFD packet to send [17:54:02]OFD Sender: No OFD packet to send [17:54:07]OFD Sender: No OFD packet to send [17:54:12]OFD Sender: No OFD packet to send [17:54:17]OFD Sender: No OFD packet to send [17:54:22]OFD Sender: No OFD packet to send [17:54:27]OFD Sender: No OFD packet to send [17:54:32]OFD Sender: No OFD packet to send [17:54:37]OFD Sender: No OFD packet to send [17:54:42]OFD Sender: No OFD packet to send [17:54:47]OFD Sender: No OFD packet to send [17:54:52]OFD Sender: No OFD packet to send [17:54:57]OFD Sender: No OFD packet to send [17:55:02]OFD Sender: No OFD packet to send [17:55:07]OFD Sender: No OFD packet to send [17:55:12]OFD Sender: No OFD packet to send [17:55:17]OFD Sender: No OFD packet to send [17:55:22]OFD Sender: No OFD packet to send [17:55:27]OFD Sender: No OFD packet to send [17:55:28]accept exits with 7 [17:55:28]New connection [17:55:28]New thread 3067260260 created [17:55:28]Thread 3067116900 joined [17:55:28]Waiting for new connection... [17:55:28] Sock 7.Parse request [17:55:28]Sock 7.Check first char [17:55:28]Sock 7.First char is OK [17:55:28]request: POST /json_proto HTTP/1.0 [17:55:28]Method: POST [17:55:28]URL: /json_proto [17:55:28]Method is POST - this is cgi request [17:55:28]url: /json_proto [17:55:28]query_string will be loaded in cgi processing [17:55:28]execute_cgi json_proto POST (null) [17:55:28]execute_cgi path=json_proto method=POST [17:55:28]POST find Content-Length [17:55:28]Host: 172.17.58.3:8080 [17:55:28]Content-Length: 676 [17:55:28]Content-Type: application/json [17:55:28] [17:55:28]POST finish read [17:55:28]Found Content-Length = 676 [17:55:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160811", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:28]execute_script... [17:55: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)160811", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:28]POST & json_proto [17:55:28]process_json_proto [17:55:28]json parsed OK: [17:55:28]protocol is kg_v1.0 [17:55:28]action value=close_receipt [17:55:28]process_action close_receipt [17:55:28]cmd_close_receipt [17:55:28]MH_GetDate [17:55:28]Write to MH i2c: F0 00 00 F8 06 ED [17:55:28]Write i2c OK [17:55:28]MH_I2C_Read... [17:55:28]Read from MH i2c: F0 [17:55:28]MH_I2C_Read... [17:55:28]Read from MH i2c: F0 09 00 [17:55:28]MH_I2C_Read... [17:55:28]Read from MH i2c: F0 09 00 F8 06 00 11 9E BB 66 DC E4 6D 64 57 [17:55:28]GetLastDocTimeStamp 1723570869 [17:55:28]current date 1723571729 [17:55:28]FM_GetShiftState [17:55:28]SAM_PROTO_GetShiftState [17:55:28]wFMCommunicate request_size=4 [17:55:28]MH_SAM_APDU [17:55:28]CAPDU: 80 13 01 00 [17:55:28]Write to MH i2c: E2 08 00 F9 06 80 13 01 00 00 00 00 00 7C [17:55:28]Write i2c OK [17:55:28]MH_I2C_Read... [17:55:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:28]Read from MH i2c: E2 [17:55:28]MH_I2C_Read... [17:55:28]Read from MH i2c: E2 0E 00 [17:55:28]MH_I2C_Read... [17:55:28]Read from MH i2c: E2 0E 00 F9 06 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 9A [17:55:28]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [17:55:28]wFMCommunicate OK [17:55:28]SAM_PROTO_GetShiftState done [17:55:28]FM_GetShiftState done [17:55:28]opened in 1723506770 [17:55:28]opened+sec_in_day 1723593170 [17:55:28]quantity*price = 50018 [17:55:28]sum+1 = 50019 [17:55:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 91 13.08.2024 17:55 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103180 ФПД: 166210838808197 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T175529&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103180&fm=166210838808197&tin=02508201610067®Number=0000000000092718&sum=50000 [17:55:29]StoreToDocumentArchive [17:55:29]shift 464 fd 103180 [17:55:29]save to /storage/0464/doc_00103180 [17:55:29]save last doc name /storage/0464/doc_00103180 to /storage/kkm_last_doc_name [17:55:29]save OK [17:55:29]Clear old archive folders... [17:55:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:55:29]tlvbuf is 0024F180 [17:55:29]SAM_PROTO_ClearQueue [17:55:29]wFMCommunicate request_size=4 [17:55:29]MH_SAM_APDU [17:55:29]CAPDU: 80 09 00 00 [17:55:29]Write to MH i2c: E2 08 00 06 07 80 09 00 00 00 00 00 00 7F [17:55:29]Write i2c OK [17:55:29]MH_I2C_Read... [17:55:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:55:29]Read from MH i2c: E2 [17:55:29]MH_I2C_Read... [17:55:29]Read from MH i2c: E2 03 00 [17:55:29]MH_I2C_Read... [17:55:29]Read from MH i2c: E2 03 00 06 07 00 90 00 81 [17:55:29]RAPDU: 90 00 [17:55:29]wFMCommunicate OK [17:55:29]SAM_PROTO_ClearQueue done [17:55:29]KKMCreateOFDPacket [17:55:29]OFDProtocolAddRootSTLVToBuf [17:55:29]FM_MakeSignedData [17:55:29]FM_MakeSignedData [17:55:29]SAM_PROTO_SignData [17:55:29]wFMCommunicate request_size=4 [17:55:29]MH_SAM_APDU [17:55:29]CAPDU: 80 0D 01 02 [17:55:29]Write to MH i2c: E2 08 00 07 07 80 0D 01 02 00 00 00 00 87 [17:55:29]Write i2c OK [17:55:29]MH_I2C_Read... [17:55:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:55:29]Read from MH i2c: E2 [17:55:29]MH_I2C_Read... [17:55:29]Read from MH i2c: E2 03 00 [17:55:29]MH_I2C_Read... [17:55:29]Read from MH i2c: E2 03 00 07 07 00 90 00 82 [17:55:29]RAPDU: 90 00 [17:55:29]wFMCommunicate OK [17:55:29]wFMCommunicate request_size=255 [17:55:29]MH_SAM_APDU [17:55: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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 11 9E BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 0C 93 01 00 35 04 06 00 97 [17:55:29]Write to MH i2c: E2 02 01 08 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 11 9E BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 0C 93 01 00 35 04 06 00 97 00 00 3C [17:55:29]Write i2c OK [17:55:29]MH_I2C_Read... [17:55:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:30]Read from MH i2c: E2 [17:55:30]MH_I2C_Read... [17:55:30]Read from MH i2c: E2 03 00 [17:55:30]MH_I2C_Read... [17:55:30]Read from MH i2c: E2 03 00 08 07 00 90 00 83 [17:55:30]RAPDU: 90 00 [17:55:30]wFMCommunicate OK [17:55:30]wFMCommunicate request_size=10 [17:55:30]MH_SAM_APDU [17:55:30]CAPDU: 80 0D 02 02 05 2A FA 01 46 85 [17:55:30]Write to MH i2c: E2 0D 00 09 07 80 0D 02 02 05 00 2A FA 01 46 85 00 00 84 [17:55:30]Write i2c OK [17:55:30]MH_I2C_Read... [17:55:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:30]Read from MH i2c: E2 [17:55:30]MH_I2C_Read... [17:55:30]Read from MH i2c: E2 03 00 [17:55:30]MH_I2C_Read... [17:55:30]Read from MH i2c: E2 03 00 09 07 00 90 00 84 [17:55:30]RAPDU: 90 00 [17:55:30]wFMCommunicate OK [17:55:30]wFMCommunicate request_size=4 [17:55:30]MH_SAM_APDU [17:55:30]CAPDU: 80 0D 03 02 [17:55:30]Write to MH i2c: E2 08 00 0A 07 80 0D 03 02 00 00 00 00 8C [17:55:30]Write i2c OK [17:55:30]MH_I2C_Read... [17:55:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:55:30]Read from MH i2c: E2 [17:55:30]MH_I2C_Read... [17:55:30]Read from MH i2c: E2 0B 00 [17:55:30]MH_I2C_Read... [17:55:30]Read from MH i2c: E2 0B 00 0A 07 00 DE F7 17 84 54 B6 62 DB 90 00 44 [17:55:30]RAPDU: DE F7 17 84 54 B6 62 DB 90 00 [17:55:30]wFMCommunicate OK [17:55:30]SAM_PROTO_SignData done [17:55:30]FM_MakeSignedData done [17:55:30]CreateOFDProtocolMessage [17:55:30]wFMCommunicate request_size=4 [17:55:30]MH_SAM_APDU [17:55:30]CAPDU: 80 11 00 00 [17:55:30]Write to MH i2c: E2 08 00 0B 07 80 11 00 00 00 00 00 00 8C [17:55:30]Write i2c OK [17:55:30]MH_I2C_Read... [17:55:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:30]Read from MH i2c: E2 [17:55:30]MH_I2C_Read... [17:55:30]Read from MH i2c: E2 17 00 [17:55:30]MH_I2C_Read... [17:55:30]Read from MH i2c: E2 17 00 0B 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 E0 [17:55:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [17:55:30]wFMCommunicate OK [17:55:30]CreateOFDProtocolMessage done [17:55:30]OFDSenderStorePacket 103180 [17:55:30]StoreOFDPacket docnum=103180 [17:55:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 EF E1 07 01 4E 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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 11 9E BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 0C 93 01 00 35 04 06 00 97 2A FA 01 46 85 DE F7 17 84 54 B6 62 DB [17:55:30]CheckFolder [17:55:30]dirname=/storage/ofd_packets [17:55:30]CheckFolder done [17:55:30]ProducePacketName [17:55:30]name=ofd_packets/00103180 [17:55:30]NVStorageSaveData ofd_packets/00103180 [17:55:30]File name is /storage/ofd_packets/00103180 [17:55:30]Write 301 bytes [17:55:30]NVStorageSaveData done [17:55:30]OFDSenderStorePacket done [17:55:30]KKMCreateOFDPacket done [17:55:30]NVStorageSaveData kkm_last_timestamp [17:55:30]File name is /storage/kkm_last_timestamp [17:55:30]Write 4 bytes [17:55:30]NVStorageSaveData done [17:55:30]ExternCall_PrintAddStr [17:55:30]wPrintStart [17:55:30]Write to MH i2c: 01 00 00 0C 07 13 [17:55:30]Write i2c OK [17:55:30]MH_I2C_Read... [17:55:30]Read from MH i2c: 01 [17:55:30]MH_I2C_Read... [17:55:30]Read from MH i2c: 01 07 00 [17:55:30]MH_I2C_Read... [17:55:30]Read from MH i2c: 01 07 00 0C 07 00 00 00 00 00 FF 0F 28 [17:55:30]RasterBufferAndPrint [17:55:30]line Счет N : (1)160811 [17:55:30]line ИНН: 02508201610067 [17:55:30]line Контрольно-Кассовый Чек [17:55:30]line ПРОДАЖА [17:55:30]line ТРК (МРК, ГНК) : 7 [17:55:30]line Товар: 2710124130 [17:55:30]line Аи-92-К-5 [17:55:30]line 7.590 * 65.90 [17:55:30]line = 500.18 [17:55:30]line НДС 12% НСП 1% [17:55:30]line > о реализуемом товаре [17:55:30]line ОКРУГЛЕНИЕ: -0.18 [17:55:30]line ИТОГО: 500.00 [17:55:30]line Внесено: 500.00 [17:55:30]line СДАЧА: 0.00 [17:55:30]line НСП 1% : 4.43 [17:55:30]line НДС 12% : 53.12 [17:55:30]line Наличными: 500.00 [17:55:30]line Безнал.: 0.00 [17:55:30]line Место: АЗС № 38 "Партнер Нефть" [17:55:30]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [17:55:30]line СНО: Общий режим [17:55:30]line Чек 91 13.08.2024 17:55 [17:55:30]line Смена: 464 ФФД: 1.0 [17:55:30]line ЗНМ: 0300000126 [17:55:30]line РНМ: 0000000000092718 [17:55:30]line Версия ККМ: 001 [17:55:30]line ФМ: 0000000000875058 [17:55:30]line ФД: 103180 [17:55:30]line ФПД: 166210838808197 [17:55:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T175529&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103180&fm=166210838808197&tin=02508201610067®Number=0000000000092718&sum=50000 [17:55:30]OFD Sender: Processing packet 103180 [packets to send 69, broken 68] [17:55:30]ProducePacketName [17:55:30]name=ofd_packets/00103180 [17:55:30]OFD Sender: To server: pG, [17:55:30]CommunicateWithHost lk.salyk.kg:30040 [17:55:30]ConnectInit lk.salyk.kg [17:55:30]written 0, free lines is 4095 [17:55:30]Connected sock=10 [17:55:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 EF E1 07 01 4E 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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 11 9E BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 0C 93 01 00 35 04 06 00 97 2A FA 01 46 85 DE F7 17 84 54 B6 62 DB [17:55:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 56 73 47 00 09 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 0C 93 01 00 F4 03 04 00 83 44 BB 66 B6 04 01 00 00 2A D0 1B 34 86 A3 7F 15 [17:55:30]CommunicateWithHost err = 0 [17:55:30]CheckOFDResponse [17:55:30]1017 (14) - 77093643461234 [17:55:30]1041 (16) - 0000000000875058 [17:55:30]1040 (4) - 103180 [17:55:30]1012 (4) - 13.08.2024 11:33 [17:55:30]1206 (1) - 0 [17:55:30]OFD Sender: Remove packet 103180 [17:55:30]ProducePacketName [17:55:30]name=ofd_packets/00103180 [17:55:30]NVStorageDeleteData [17:55:31]Write to MH i2c: 01 00 00 37 07 3E [17:55:31]Write i2c OK [17:55:31]MH_I2C_Read... [17:55:31]Read from MH i2c: 01 [17:55:31]MH_I2C_Read... [17:55:31]Read from MH i2c: 01 07 00 [17:55:31]MH_I2C_Read... [17:55:31]Read from MH i2c: 01 07 00 37 07 00 00 00 00 00 EB 0C 3C [17:55:31]RasterBufferAndPrint [17:55:31]line [17:55:31]line [17:55:31]line [17:55:31]line [17:55:31]line [17:55:31]written 0, free lines is 3313 [17:55:31]MH_Cut [17:55:31]Write to MH i2c: D1 01 00 3E 07 01 17 [17:55:31]Write i2c OK [17:55:31]MH_I2C_Read... [17:55:31]Read from MH i2c: D1 [17:55:31]MH_I2C_Read... [17:55:31]Read from MH i2c: D1 01 00 [17:55:31]MH_I2C_Read... [17:55:31]Read from MH i2c: D1 01 00 3E 07 00 16 [17:55:31]Write to MH i2c: 01 00 00 3F 07 46 [17:55:31]Write i2c OK [17:55:31]MH_I2C_Read... [17:55:31]OFD Sender: No OFD packet to send [17:55:31]*** Cut start [17:55:31]*** Purtial cut [17:55:31]*** CUTSNS_PIN = 0 [17:55:32]*** Stage 1: CUTSNS_PIN = 1 [17:55:33]Read from MH i2c: 01 [17:55:33]MH_I2C_Read... [17:55:33]*** Stop cut motor [17:55:33]*** Cut end [17:55:33]Read from MH i2c: 01 07 00 [17:55:33]MH_I2C_Read... [17:55:33]Read from MH i2c: 01 07 00 3F 07 00 00 00 00 00 FF 0F 5B [17:55:33]process_action close_receipt done [17:55:33]requested_data is exist [17:55:33]produce_requested_data [17:55:33]requested_item fm.sn is exist - process it [17:55:33]wFMCommunicate request_size=4 [17:55:33]MH_SAM_APDU [17:55:33]CAPDU: 80 11 00 00 [17:55:33]Write to MH i2c: E2 08 00 40 07 80 11 00 00 00 00 00 00 C1 [17:55:33]Write i2c OK [17:55:33]MH_I2C_Read... [17:55:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:33]Read from MH i2c: E2 [17:55:33]MH_I2C_Read... [17:55:33]Read from MH i2c: E2 17 00 [17:55:33]MH_I2C_Read... [17:55:33]Read from MH i2c: E2 17 00 40 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 15 [17:55:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [17:55:33]wFMCommunicate OK [17:55:33]requested_item fd.num is exist - process it [17:55:33]SAM_PROTO_GetFieldsCounters [17:55:33]wFMCommunicate request_size=4 [17:55:33]MH_SAM_APDU [17:55:33]CAPDU: 80 13 00 00 [17:55:33]Write to MH i2c: E2 08 00 41 07 80 13 00 00 00 00 00 00 C4 [17:55:33]Write i2c OK [17:55:33]MH_I2C_Read... [17:55:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:55:33]Read from MH i2c: E2 [17:55:33]MH_I2C_Read... [17:55:33]Read from MH i2c: E2 62 00 [17:55:33]MH_I2C_Read... [17:55:33]Read from MH i2c: E2 62 00 41 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 0C 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [17:55:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 0C 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:55:34]wFMCommunicate OK [17:55:34]SAM_PROTO_GetFieldsCounters done [17:55:34]requested_item shift.num is exist - process it [17:55:34]requested_item shift.opened is exist - process it [17:55:34]req_shift_opened [17:55:34]FM_GetShiftState [17:55:34]SAM_PROTO_GetShiftState [17:55:34]wFMCommunicate request_size=4 [17:55:34]MH_SAM_APDU [17:55:34]CAPDU: 80 13 01 00 [17:55:34]Write to MH i2c: E2 08 00 42 07 80 13 01 00 00 00 00 00 C6 [17:55:34]Write i2c OK [17:55:34]MH_I2C_Read... [17:55:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:34]Read from MH i2c: E2 [17:55:34]MH_I2C_Read... [17:55:34]Read from MH i2c: E2 0E 00 [17:55:34]MH_I2C_Read... [17:55:34]Read from MH i2c: E2 0E 00 42 07 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 E4 [17:55:34]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [17:55:34]wFMCommunicate OK [17:55:34]SAM_PROTO_GetShiftState done [17:55:34]FM_GetShiftState done [17:55:34]req_shift_opened done [17:55:34]requested_item shift.open_date is exist - process it [17:55:34]req_shift_open_date [17:55:34]req_shift_open_date done [17:55:34]produce_requested_data done [17:55:34]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103180,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [17:55:34]process_action_free close_receipt [17:55:34]json_value_free [17:55:34]json_value_free done [17:55:34]process_json_proto returns [17:55:34]Send response to host [17:55:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103180,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [17:55:34]free response buf [17:55:34]execute_script done [17:55:34]execute_script returns [17:55:34]free content buf [17:55:34]Sock 7.Close socket [17:55:34]Sock 7.Thread stoped [17:55:36]OFD Sender: No OFD packet to send [17:55:41]OFD Sender: No OFD packet to send [17:55:46]OFD Sender: No OFD packet to send [17:55:51]OFD Sender: No OFD packet to send [17:55:56]OFD Sender: No OFD packet to send [17:56:01]OFD Sender: No OFD packet to send [17:56:06]OFD Sender: No OFD packet to send [17:56:11]OFD Sender: No OFD packet to send [17:56:16]OFD Sender: No OFD packet to send [17:56:21]OFD Sender: No OFD packet to send [17:56:26]OFD Sender: No OFD packet to send [17:56:31]OFD Sender: No OFD packet to send [17:56:36]OFD Sender: No OFD packet to send [17:56:41]OFD Sender: No OFD packet to send [17:56:46]OFD Sender: No OFD packet to send [17:56:51]OFD Sender: No OFD packet to send [17:56:56]OFD Sender: No OFD packet to send [17:57:01]OFD Sender: No OFD packet to send [17:57:06]OFD Sender: No OFD packet to send [17:57:11]OFD Sender: No OFD packet to send [17:57:16]OFD Sender: No OFD packet to send [17:57:21]OFD Sender: No OFD packet to send [17:57:26]OFD Sender: No OFD packet to send [17:57:31]OFD Sender: No OFD packet to send [17:57:36]OFD Sender: No OFD packet to send [17:57:38]accept exits with 9 [17:57:38]New connection [17:57:38]New thread 3067116900 created [17:57:38]Thread 3067260260 joined [17:57:38]Waiting for new connection... [17:57:38] Sock 9.Parse request [17:57:38]Sock 9.Check first char [17:57:38]Sock 9.First char is OK [17:57:38]request: POST /json_proto HTTP/1.0 [17:57:38]Method: POST [17:57:38]URL: /json_proto [17:57:38]Method is POST - this is cgi request [17:57:38]url: /json_proto [17:57:38]query_string will be loaded in cgi processing [17:57:38]execute_cgi json_proto POST (null) [17:57:38]execute_cgi path=json_proto method=POST [17:57:38]POST find Content-Length [17:57:38]Host: 172.17.58.3:8080 [17:57:38]Content-Length: 673 [17:57:38]Content-Type: application/json [17:57:38] [17:57:38]POST finish read [17:57:38]Found Content-Length = 673 [17:57:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)34509", "tax_sys" : 0, "items" : [ { "code": "5449000189325", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:38]execute_script... [17:57:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)34509", "tax_sys" : 0, "items" : [ { "code": "5449000189325", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:38]POST & json_proto [17:57:38]process_json_proto [17:57:38]json parsed OK: [17:57:38]protocol is kg_v1.0 [17:57:38]action value=close_receipt [17:57:38]process_action close_receipt [17:57:38]cmd_close_receipt [17:57:38]MH_GetDate [17:57:38]Write to MH i2c: F0 00 00 43 07 39 [17:57:38]Write i2c OK [17:57:38]MH_I2C_Read... [17:57:38]Read from MH i2c: F0 [17:57:38]MH_I2C_Read... [17:57:38]Read from MH i2c: F0 09 00 [17:57:38]MH_I2C_Read... [17:57:38]Read from MH i2c: F0 09 00 43 07 00 93 9E BB 66 DC E4 6D 64 25 [17:57:38]GetLastDocTimeStamp 1723571729 [17:57:38]current date 1723571859 [17:57:38]FM_GetShiftState [17:57:38]SAM_PROTO_GetShiftState [17:57:38]wFMCommunicate request_size=4 [17:57:38]MH_SAM_APDU [17:57:38]CAPDU: 80 13 01 00 [17:57:38]Write to MH i2c: E2 08 00 44 07 80 13 01 00 00 00 00 00 C8 [17:57:38]Write i2c OK [17:57:38]MH_I2C_Read... [17:57:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:38]Read from MH i2c: E2 [17:57:38]MH_I2C_Read... [17:57:38]Read from MH i2c: E2 0E 00 [17:57:38]MH_I2C_Read... [17:57:38]Read from MH i2c: E2 0E 00 44 07 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 E6 [17:57:38]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [17:57:38]wFMCommunicate OK [17:57:38]SAM_PROTO_GetShiftState done [17:57:38]FM_GetShiftState done [17:57:38]opened in 1723506770 [17:57:38]opened+sec_in_day 1723593170 [17:57:38]quantity*price = 6500 [17:57:38]sum+1 = 6501 [17:57:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 92 13.08.2024 17:57 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103181 ФПД: 138671149888515 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T175740&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103181&fm=138671149888515&tin=02508201610067®Number=0000000000092718&sum=6500 0 [17:57:40]StoreToDocumentArchive [17:57:40]shift 464 fd 103181 [17:57:40]save to /storage/0464/doc_00103181 [17:57:40]save last doc name /storage/0464/doc_00103181 to /storage/kkm_last_doc_name [17:57:40]save OK [17:57:40]Clear old archive folders... [17:57:40]ProcessDocumentItem done err = 0, tmpTLVsize=289 [17:57:40]tlvbuf is 00254050 [17:57:40]SAM_PROTO_ClearQueue [17:57:40]wFMCommunicate request_size=4 [17:57:40]MH_SAM_APDU [17:57:40]CAPDU: 80 09 00 00 [17:57:40]Write to MH i2c: E2 08 00 51 07 80 09 00 00 00 00 00 00 CA [17:57:40]Write i2c OK [17:57:40]MH_I2C_Read... [17:57:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:57:40]Read from MH i2c: E2 [17:57:40]MH_I2C_Read... [17:57:40]Read from MH i2c: E2 03 00 [17:57:40]MH_I2C_Read... [17:57:40]Read from MH i2c: E2 03 00 51 07 00 90 00 CC [17:57:40]RAPDU: 90 00 [17:57:40]wFMCommunicate OK [17:57:40]SAM_PROTO_ClearQueue done [17:57:40]KKMCreateOFDPacket [17:57:40]OFDProtocolAddRootSTLVToBuf [17:57:40]FM_MakeSignedData [17:57:40]FM_MakeSignedData [17:57:40]SAM_PROTO_SignData [17:57:40]wFMCommunicate request_size=4 [17:57:40]MH_SAM_APDU [17:57:40]CAPDU: 80 0D 01 02 [17:57:40]Write to MH i2c: E2 08 00 52 07 80 0D 01 02 00 00 00 00 D2 [17:57:40]Write i2c OK [17:57:40]MH_I2C_Read... [17:57:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:57:40]Read from MH i2c: E2 [17:57:40]MH_I2C_Read... [17:57:40]Read from MH i2c: E2 03 00 [17:57:40]MH_I2C_Read... [17:57:40]Read from MH i2c: E2 03 00 52 07 00 90 00 CD [17:57:40]RAPDU: 90 00 [17:57:40]wFMCommunicate OK [17:57:40]wFMCommunicate request_size=255 [17:57:40]MH_SAM_APDU [17:57:40]CAPDU: 80 0D 02 02 FA 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 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 94 9E BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 [17:57:40]Write to MH i2c: E2 02 01 53 07 80 0D 02 02 FA 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 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 94 9E BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 00 00 95 [17:57:40]Write i2c OK [17:57:40]MH_I2C_Read... [17:57:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:40]Read from MH i2c: E2 [17:57:40]MH_I2C_Read... [17:57:40]Read from MH i2c: E2 03 00 [17:57:40]MH_I2C_Read... [17:57:40]Read from MH i2c: E2 03 00 53 07 00 90 00 CE [17:57:40]RAPDU: 90 00 [17:57:40]wFMCommunicate OK [17:57:40]wFMCommunicate request_size=48 [17:57:40]MH_SAM_APDU [17:57:40]CAPDU: 80 0D 02 02 2B 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 0D 93 01 00 35 04 06 00 7E 1E E4 A1 34 03 [17:57:40]Write to MH i2c: E2 33 00 54 07 80 0D 02 02 2B 00 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 0D 93 01 00 35 04 06 00 7E 1E E4 A1 34 03 00 00 CC [17:57:40]Write i2c OK [17:57:40]MH_I2C_Read... [17:57:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:40]Read from MH i2c: E2 [17:57:40]MH_I2C_Read... [17:57:40]Read from MH i2c: E2 03 00 [17:57:40]MH_I2C_Read... [17:57:40]Read from MH i2c: E2 03 00 54 07 00 90 00 CF [17:57:40]RAPDU: 90 00 [17:57:40]wFMCommunicate OK [17:57:40]wFMCommunicate request_size=4 [17:57:40]MH_SAM_APDU [17:57:40]CAPDU: 80 0D 03 02 [17:57:40]Write to MH i2c: E2 08 00 55 07 80 0D 03 02 00 00 00 00 D7 [17:57:40]Write i2c OK [17:57:40]MH_I2C_Read... [17:57:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:57:40]Read from MH i2c: E2 [17:57:40]MH_I2C_Read... [17:57:40]Read from MH i2c: E2 0B 00 [17:57:40]MH_I2C_Read... [17:57:40]Read from MH i2c: E2 0B 00 55 07 00 58 4D 45 6B E2 F8 F8 FF 90 00 FE [17:57:40]RAPDU: 58 4D 45 6B E2 F8 F8 FF 90 00 [17:57:40]wFMCommunicate OK [17:57:40]SAM_PROTO_SignData done [17:57:40]FM_MakeSignedData done [17:57:40]CreateOFDProtocolMessage [17:57:40]wFMCommunicate request_size=4 [17:57:40]MH_SAM_APDU [17:57:40]CAPDU: 80 11 00 00 [17:57:40]Write to MH i2c: E2 08 00 56 07 80 11 00 00 00 00 00 00 D7 [17:57:40]Write i2c OK [17:57:40]MH_I2C_Read... [17:57:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:40]Read from MH i2c: E2 [17:57:40]MH_I2C_Read... [17:57:40]Read from MH i2c: E2 17 00 [17:57:40]MH_I2C_Read... [17:57:40]Read from MH i2c: E2 17 00 56 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 2B [17:57:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [17:57:40]wFMCommunicate OK [17:57:40]CreateOFDProtocolMessage done [17:57:40]OFDSenderStorePacket 103181 [17:57:40]StoreOFDPacket docnum=103181 [17:57:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 35 01 00 00 48 9E 2D 01 30 22 5A 03 01 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 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 94 9E BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 0D 93 01 00 35 04 06 00 7E 1E E4 A1 34 03 58 4D 45 6B E2 F8 F8 FF [17:57:40]CheckFolder [17:57:40]dirname=/storage/ofd_packets [17:57:40]CheckFolder done [17:57:40]ProducePacketName [17:57:40]name=ofd_packets/00103181 [17:57:40]NVStorageSaveData ofd_packets/00103181 [17:57:40]File name is /storage/ofd_packets/00103181 [17:57:40]Write 339 bytes [17:57:40]NVStorageSaveData done [17:57:40]OFDSenderStorePacket done [17:57:40]KKMCreateOFDPacket done [17:57:40]NVStorageSaveData kkm_last_timestamp [17:57:40]File name is /storage/kkm_last_timestamp [17:57:40]Write 4 bytes [17:57:40]NVStorageSaveData done [17:57:40]ExternCall_PrintAddStr [17:57:40]wPrintStart [17:57:40]Write to MH i2c: 01 00 00 57 07 5E [17:57:40]Write i2c OK [17:57:40]MH_I2C_Read... [17:57:40]Read from MH i2c: 01 [17:57:40]MH_I2C_Read... [17:57:40]Read from MH i2c: 01 07 00 [17:57:40]MH_I2C_Read... [17:57:40]Read from MH i2c: 01 07 00 57 07 00 00 00 00 00 FF 0F 73 [17:57:40]RasterBufferAndPrint [17:57:40]line Счет N : (3)34509 [17:57:40]line ИНН: 02508201610067 [17:57:40]line Контрольно-Кассовый Чек [17:57:40]line ПРОДАЖА [17:57:40]line Товар: 5449000189325 [17:57:40]line Холодный чай Fuse персик 0,5л [17:57:40]line 1.000 * 65.00 [17:57:40]line = 65.00 [17:57:40]line НДС 12% НСП 1% [17:57:40]line > о реализуемом товаре [17:57:40]line ИТОГО: 65.00 [17:57:40]line НСП 1% : 0.57 [17:57:40]line НДС 12% : 6.90 [17:57:40]line Наличными: 65.00 [17:57:40]line Безнал.: 0.00 [17:57:40]line Место: АЗС № 38 "Партнер Нефть" [17:57:40]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [17:57:40]line СНО: Общий режим [17:57:40]line Чек 92 13.08.2024 17:57 [17:57:40]line Смена: 464 ФФД: 1.0 [17:57:40]line ЗНМ: 0300000126 [17:57:40]line РНМ: 0000000000092718 [17:57:40]line Версия ККМ: 001 [17:57:40]line ФМ: 0000000000875058 [17:57:40]line ФД: 103181 [17:57:40]line ФПД: 138671149888515 [17:57:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T175740&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103181&fm=138671149888515&tin=02508201610067®Number=0000000000092718&sum=6500 [17:57:41]line 0 [17:57:41]OFD Sender: Processing packet 103181 [packets to send 69, broken 68] [17:57:41]ProducePacketName [17:57:41]name=ofd_packets/00103181 [17:57:41]OFD Sender: To server: pG, [17:57:41]CommunicateWithHost lk.salyk.kg:30040 [17:57:41]ConnectInit lk.salyk.kg [17:57:41]written 0, free lines is 4095 [17:57:41]Connected sock=10 [17:57:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 35 01 00 00 48 9E 2D 01 30 22 5A 03 01 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 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 94 9E BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 0D 93 01 00 35 04 06 00 7E 1E E4 A1 34 03 58 4D 45 6B E2 F8 F8 FF [17:57:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 A1 B8 47 00 34 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 35 30 35 38 10 04 04 00 0D 93 01 00 F4 03 04 00 06 45 BB 66 B6 04 01 00 00 D7 08 91 DB E8 1A 79 24 [17:57:41]CommunicateWithHost err = 0 [17:57:41]CheckOFDResponse [17:57:41]1017 (14) - 77093643461234 [17:57:41]1041 (16) - 0000000000875058 [17:57:41]1040 (4) - 103181 [17:57:41]1012 (4) - 13.08.2024 11:35 [17:57:41]1206 (1) - 0 [17:57:41]OFD Sender: Remove packet 103181 [17:57:41]ProducePacketName [17:57:41]name=ofd_packets/00103181 [17:57:41]NVStorageDeleteData [17:57:41]Write to MH i2c: 01 00 00 80 07 87 [17:57:41]Write i2c OK [17:57:41]MH_I2C_Read... [17:57:41]Read from MH i2c: 01 [17:57:41]MH_I2C_Read... [17:57:41]Read from MH i2c: 01 07 00 [17:57:41]MH_I2C_Read... [17:57:41]Read from MH i2c: 01 07 00 80 07 00 00 00 00 00 EC 0C 86 [17:57:41]RasterBufferAndPrint [17:57:41]line [17:57:41]line [17:57:41]line [17:57:41]line [17:57:41]line [17:57:41]written 0, free lines is 3317 [17:57:41]MH_Cut [17:57:41]Write to MH i2c: D1 01 00 87 07 01 60 [17:57:41]Write i2c OK [17:57:41]MH_I2C_Read... [17:57:41]Read from MH i2c: D1 [17:57:41]MH_I2C_Read... [17:57:41]Read from MH i2c: D1 01 00 [17:57:41]MH_I2C_Read... [17:57:41]Read from MH i2c: D1 01 00 87 07 00 5F [17:57:41]Write to MH i2c: 01 00 00 88 07 8F [17:57:41]Write i2c OK [17:57:41]MH_I2C_Read... [17:57:41]OFD Sender: No OFD packet to send [17:57:42]*** Cut start [17:57:42]*** Purtial cut [17:57:42]*** Stage 1: CUTSNS_PIN = 1 [17:57:42]Read from MH i2c: 01 [17:57:42]MH_I2C_Read... [17:57:42]*** Stop cut motor [17:57:42]*** Cut end [17:57:42]Read from MH i2c: 01 07 00 [17:57:42]MH_I2C_Read... [17:57:42]Read from MH i2c: 01 07 00 88 07 00 00 00 00 00 FF 0F A4 [17:57:42]process_action close_receipt done [17:57:42]requested_data is exist [17:57:42]produce_requested_data [17:57:42]requested_item fm.sn is exist - process it [17:57:42]wFMCommunicate request_size=4 [17:57:42]MH_SAM_APDU [17:57:42]CAPDU: 80 11 00 00 [17:57:42]Write to MH i2c: E2 08 00 89 07 80 11 00 00 00 00 00 00 0A [17:57:42]Write i2c OK [17:57:42]MH_I2C_Read... [17:57:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:42]Read from MH i2c: E2 [17:57:42]MH_I2C_Read... [17:57:42]Read from MH i2c: E2 17 00 [17:57:42]MH_I2C_Read... [17:57:42]Read from MH i2c: E2 17 00 89 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 5E [17:57:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [17:57:42]wFMCommunicate OK [17:57:42]requested_item fd.num is exist - process it [17:57:42]SAM_PROTO_GetFieldsCounters [17:57:42]wFMCommunicate request_size=4 [17:57:42]MH_SAM_APDU [17:57:42]CAPDU: 80 13 00 00 [17:57:42]Write to MH i2c: E2 08 00 8A 07 80 13 00 00 00 00 00 00 0D [17:57:42]Write i2c OK [17:57:42]MH_I2C_Read... [17:57:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:57:42]Read from MH i2c: E2 [17:57:42]MH_I2C_Read... [17:57:42]Read from MH i2c: E2 62 00 [17:57:42]MH_I2C_Read... [17:57:42]Read from MH i2c: E2 62 00 8A 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 0D 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [17:57:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 0D 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:57:42]wFMCommunicate OK [17:57:42]SAM_PROTO_GetFieldsCounters done [17:57:42]requested_item shift.num is exist - process it [17:57:42]requested_item shift.opened is exist - process it [17:57:42]req_shift_opened [17:57:42]FM_GetShiftState [17:57:42]SAM_PROTO_GetShiftState [17:57:42]wFMCommunicate request_size=4 [17:57:42]MH_SAM_APDU [17:57:42]CAPDU: 80 13 01 00 [17:57:42]Write to MH i2c: E2 08 00 8B 07 80 13 01 00 00 00 00 00 0F [17:57:42]Write i2c OK [17:57:42]MH_I2C_Read... [17:57:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:42]Read from MH i2c: E2 [17:57:42]MH_I2C_Read... [17:57:42]Read from MH i2c: E2 0E 00 [17:57:42]MH_I2C_Read... [17:57:42]Read from MH i2c: E2 0E 00 8B 07 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 2D [17:57:42]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [17:57:42]wFMCommunicate OK [17:57:42]SAM_PROTO_GetShiftState done [17:57:42]FM_GetShiftState done [17:57:42]req_shift_opened done [17:57:42]requested_item shift.open_date is exist - process it [17:57:42]req_shift_open_date [17:57:42]req_shift_open_date done [17:57:42]produce_requested_data done [17:57:42]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103181,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [17:57:42]process_action_free close_receipt [17:57:42]json_value_free [17:57:42]json_value_free done [17:57:42]process_json_proto returns [17:57:42]Send response to host [17:57:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103181,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [17:57:42]free response buf [17:57:42]execute_script done [17:57:42]execute_script returns [17:57:42]free content buf [17:57:42]Sock 9.Close socket [17:57:42]Sock 9.Thread stoped [17:57:46]OFD Sender: No OFD packet to send [17:57:51]OFD Sender: No OFD packet to send [17:57:56]OFD Sender: No OFD packet to send [17:58:01]OFD Sender: No OFD packet to send [17:58:06]OFD Sender: No OFD packet to send [17:58:11]OFD Sender: No OFD packet to send [17:58:16]OFD Sender: No OFD packet to send [17:58:21]OFD Sender: No OFD packet to send [17:58:26]OFD Sender: No OFD packet to send [17:58:31]OFD Sender: No OFD packet to send [17:58:36]OFD Sender: No OFD packet to send [17:58:41]OFD Sender: No OFD packet to send [17:58:41]accept exits with 7 [17:58:41]New connection [17:58:41]New thread 3067260260 created [17:58:41]Thread 3067116900 joined [17:58:41]Waiting for new connection... [17:58:41] Sock 7.Parse request [17:58:41]Sock 7.Check first char [17:58:41]Sock 7.First char is OK [17:58:41]request: POST /json_proto HTTP/1.0 [17:58:41]Method: POST [17:58:41]URL: /json_proto [17:58:41]Method is POST - this is cgi request [17:58:41]url: /json_proto [17:58:41]query_string will be loaded in cgi processing [17:58:41]execute_cgi json_proto POST (null) [17:58:41]execute_cgi path=json_proto method=POST [17:58:41]POST find Content-Length [17:58:41]Host: 172.17.58.3:8080 [17:58:41]Content-Length: 574 [17:58:41]Content-Type: application/json [17:58:41] [17:58:41]POST finish read [17:58:41]Found Content-Length = 574 [17:58:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)34510", "tax_sys" : 0, "items" : [ { "code": "48744713", "name": "LD Compact Purple Beat", "price" : 133.00, "quantity" : 1.000, "sum" : 133.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 133.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:41]execute_script... [17: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 : (3)34510", "tax_sys" : 0, "items" : [ { "code": "48744713", "name": "LD Compact Purple Beat", "price" : 133.00, "quantity" : 1.000, "sum" : 133.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 133.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:41]POST & json_proto [17:58:41]process_json_proto [17:58:41]json parsed OK: [17:58:41]protocol is kg_v1.0 [17:58:41]action value=close_receipt [17:58:41]process_action close_receipt [17:58:41]cmd_close_receipt [17:58:41]MH_GetDate [17:58:41]Write to MH i2c: F0 00 00 8C 07 82 [17:58:41]Write i2c OK [17:58:41]MH_I2C_Read... [17:58:41]Read from MH i2c: F0 [17:58:41]MH_I2C_Read... [17:58:41]Read from MH i2c: F0 09 00 [17:58:41]MH_I2C_Read... [17:58:41]Read from MH i2c: F0 09 00 8C 07 00 D2 9E BB 66 DC E4 6D 64 AD [17:58:41]GetLastDocTimeStamp 1723571860 [17:58:41]current date 1723571922 [17:58:41]FM_GetShiftState [17:58:41]SAM_PROTO_GetShiftState [17:58:41]wFMCommunicate request_size=4 [17:58:41]MH_SAM_APDU [17:58:41]CAPDU: 80 13 01 00 [17:58:41]Write to MH i2c: E2 08 00 8D 07 80 13 01 00 00 00 00 00 11 [17:58:41]Write i2c OK [17:58:41]MH_I2C_Read... [17:58:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:41]Read from MH i2c: E2 [17:58:41]MH_I2C_Read... [17:58:41]Read from MH i2c: E2 0E 00 [17:58:41]MH_I2C_Read... [17:58:41]Read from MH i2c: E2 0E 00 8D 07 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 2F [17:58:41]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [17:58:41]wFMCommunicate OK [17:58:41]SAM_PROTO_GetShiftState done [17:58:41]FM_GetShiftState done [17:58:41]opened in 1723506770 [17:58:41]opened+sec_in_day 1723593170 [17:58:41]quantity*price = 13300 [17:58:41]sum+1 = 13301 [17:58:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 133.00 НСП 1% : 1.18 НДС 12% : 14.12 Наличными: 133.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 93 13.08.2024 17:58 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103182 ФПД: 248875581877982 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T175843&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103182&fm=248875581877982&tin=02508201610067®Number=0000000000092718&sum=13300 0 [17:58:43]StoreToDocumentArchive [17:58:43]shift 464 fd 103182 [17:58:43]save to /storage/0464/doc_00103182 [17:58:43]save last doc name /storage/0464/doc_00103182 to /storage/kkm_last_doc_name [17:58:43]save OK [17:58:43]Clear old archive folders... [17:58:43]ProcessDocumentItem done err = 0, tmpTLVsize=259 [17:58:43]tlvbuf is 00254A10 [17:58:43]SAM_PROTO_ClearQueue [17:58:43]wFMCommunicate request_size=4 [17:58:43]MH_SAM_APDU [17:58:43]CAPDU: 80 09 00 00 [17:58:43]Write to MH i2c: E2 08 00 9A 07 80 09 00 00 00 00 00 00 13 [17:58:43]Write i2c OK [17:58:43]MH_I2C_Read... [17:58:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:58:43]Read from MH i2c: E2 [17:58:43]MH_I2C_Read... [17:58:43]Read from MH i2c: E2 03 00 [17:58:43]MH_I2C_Read... [17:58:43]Read from MH i2c: E2 03 00 9A 07 00 90 00 15 [17:58:43]RAPDU: 90 00 [17:58:43]wFMCommunicate OK [17:58:43]SAM_PROTO_ClearQueue done [17:58:43]KKMCreateOFDPacket [17:58:43]OFDProtocolAddRootSTLVToBuf [17:58:43]FM_MakeSignedData [17:58:43]FM_MakeSignedData [17:58:43]SAM_PROTO_SignData [17:58:43]wFMCommunicate request_size=4 [17:58:43]MH_SAM_APDU [17:58:43]CAPDU: 80 0D 01 02 [17:58:43]Write to MH i2c: E2 08 00 9B 07 80 0D 01 02 00 00 00 00 1B [17:58:43]Write i2c OK [17:58:43]MH_I2C_Read... [17:58:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:58:43]Read from MH i2c: E2 [17:58:43]MH_I2C_Read... [17:58:43]Read from MH i2c: E2 03 00 [17:58:43]MH_I2C_Read... [17:58:43]Read from MH i2c: E2 03 00 9B 07 00 90 00 16 [17:58:43]RAPDU: 90 00 [17:58:43]wFMCommunicate OK [17:58:43]wFMCommunicate request_size=255 [17:58:43]MH_SAM_APDU [17:58:43]CAPDU: 80 0D 02 02 FA 03 00 03 01 1E 04 01 00 01 23 04 55 00 8A 04 08 00 34 38 37 34 34 37 31 33 06 04 16 00 4C 44 20 43 6F 6D 70 61 63 74 20 50 75 72 70 6C 65 20 42 65 61 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 33 00 00 00 00 13 04 06 00 F4 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 05 00 00 00 00 07 04 06 00 F4 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 D3 9E BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 0E [17:58:43]Write to MH i2c: E2 02 01 9C 07 80 0D 02 02 FA 00 03 00 03 01 1E 04 01 00 01 23 04 55 00 8A 04 08 00 34 38 37 34 34 37 31 33 06 04 16 00 4C 44 20 43 6F 6D 70 61 63 74 20 50 75 72 70 6C 65 20 42 65 61 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 33 00 00 00 00 13 04 06 00 F4 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 05 00 00 00 00 07 04 06 00 F4 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 D3 9E BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 0E 00 00 39 [17:58:43]Write i2c OK [17:58:43]MH_I2C_Read... [17:58:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:43]Read from MH i2c: E2 [17:58:43]MH_I2C_Read... [17:58:43]Read from MH i2c: E2 03 00 [17:58:43]MH_I2C_Read... [17:58:43]Read from MH i2c: E2 03 00 9C 07 00 90 00 17 [17:58:43]RAPDU: 90 00 [17:58:43]wFMCommunicate OK [17:58:43]wFMCommunicate request_size=18 [17:58:43]MH_SAM_APDU [17:58:43]CAPDU: 80 0D 02 02 0D 93 01 00 35 04 06 00 E2 59 DC A6 AE DE [17:58:43]Write to MH i2c: E2 15 00 9D 07 80 0D 02 02 0D 00 93 01 00 35 04 06 00 E2 59 DC A6 AE DE 00 00 54 [17:58:43]Write i2c OK [17:58:43]MH_I2C_Read... [17:58:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:43]Read from MH i2c: E2 [17:58:43]MH_I2C_Read... [17:58:43]Read from MH i2c: E2 03 00 [17:58:43]MH_I2C_Read... [17:58:43]Read from MH i2c: E2 03 00 9D 07 00 90 00 18 [17:58:43]RAPDU: 90 00 [17:58:43]wFMCommunicate OK [17:58:43]wFMCommunicate request_size=4 [17:58:43]MH_SAM_APDU [17:58:43]CAPDU: 80 0D 03 02 [17:58:43]Write to MH i2c: E2 08 00 9E 07 80 0D 03 02 00 00 00 00 20 [17:58:43]Write i2c OK [17:58:43]MH_I2C_Read... [17:58:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:58:43]Read from MH i2c: E2 [17:58:43]MH_I2C_Read... [17:58:43]Read from MH i2c: E2 0B 00 [17:58:43]MH_I2C_Read... [17:58:43]Read from MH i2c: E2 0B 00 9E 07 00 75 39 66 32 70 A3 59 BC 90 00 8F [17:58:43]RAPDU: 75 39 66 32 70 A3 59 BC 90 00 [17:58:43]wFMCommunicate OK [17:58:43]SAM_PROTO_SignData done [17:58:43]FM_MakeSignedData done [17:58:43]CreateOFDProtocolMessage [17:58:43]wFMCommunicate request_size=4 [17:58:43]MH_SAM_APDU [17:58:43]CAPDU: 80 11 00 00 [17:58:43]Write to MH i2c: E2 08 00 9F 07 80 11 00 00 00 00 00 00 20 [17:58:43]Write i2c OK [17:58:43]MH_I2C_Read... [17:58:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:43]Read from MH i2c: E2 [17:58:43]MH_I2C_Read... [17:58:43]Read from MH i2c: E2 17 00 [17:58:43]MH_I2C_Read... [17:58:43]Read from MH i2c: E2 17 00 9F 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 74 [17:58:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [17:58:43]wFMCommunicate OK [17:58:43]CreateOFDProtocolMessage done [17:58:43]OFDSenderStorePacket 103182 [17:58:43]StoreOFDPacket docnum=103182 [17:58:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 17 01 00 00 6F 85 0F 01 D4 43 5A 03 01 00 03 00 03 01 1E 04 01 00 01 23 04 55 00 8A 04 08 00 34 38 37 34 34 37 31 33 06 04 16 00 4C 44 20 43 6F 6D 70 61 63 74 20 50 75 72 70 6C 65 20 42 65 61 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 33 00 00 00 00 13 04 06 00 F4 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 05 00 00 00 00 07 04 06 00 F4 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 D3 9E BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 0E 93 01 00 35 04 06 00 E2 59 DC A6 AE DE 75 39 66 32 70 A3 59 BC [17:58:43]CheckFolder [17:58:43]dirname=/storage/ofd_packets [17:58:43]CheckFolder done [17:58:43]ProducePacketName [17:58:43]name=ofd_packets/00103182 [17:58:43]NVStorageSaveData ofd_packets/00103182 [17:58:43]File name is /storage/ofd_packets/00103182 [17:58:43]Write 309 bytes [17:58:43]NVStorageSaveData done [17:58:43]OFDSenderStorePacket done [17:58:43]KKMCreateOFDPacket done [17:58:43]NVStorageSaveData kkm_last_timestamp [17:58:43]File name is /storage/kkm_last_timestamp [17:58:43]Write 4 bytes [17:58:43]NVStorageSaveData done [17:58:43]OFD Sender: Processing packet 103182 [packets to send 69, broken 68] [17:58:43]ProducePacketName [17:58:43]name=ofd_packets/00103182 [17:58:43]OFD Sender: To server: pG, [17:58:43]CommunicateWithHost lk.salyk.kg:30040 [17:58:43]ConnectInit lk.salyk.kg [17:58:43]ExternCall_PrintAddStr [17:58:43]wPrintStart [17:58:43]Write to MH i2c: 01 00 00 A0 07 A7 [17:58:43]Write i2c OK [17:58:43]MH_I2C_Read... [17:58:43]Read from MH i2c: 01 [17:58:43]MH_I2C_Read... [17:58:43]Read from MH i2c: 01 07 00 [17:58:43]MH_I2C_Read... [17:58:43]Read from MH i2c: 01 07 00 A0 07 00 00 00 00 00 FF 0F BC [17:58:43]RasterBufferAndPrint [17:58:43]line Счет N : (3)34510 [17:58:43]line ИНН: 02508201610067 [17:58:43]line Контрольно-Кассовый Чек [17:58:43]line ПРОДАЖА [17:58:43]line Товар: 48744713 [17:58:43]line LD Compact Purple Beat [17:58:43]line 1.000 * 133.00 [17:58:43]line = 133.00 [17:58:43]line НДС 12% НСП 1% [17:58:43]line > о реализуемом товаре [17:58:43]line ИТОГО: 133.00 [17:58:43]line НСП 1% : 1.18 [17:58:43]line НДС 12% : 14.12 [17:58:43]line Наличными: 133.00 [17:58:43]line Безнал.: 0.00 [17:58:43]line Место: АЗС № 38 "Партнер Нефть" [17:58:43]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [17:58:43]line СНО: Общий режим [17:58:43]line Чек 93 13.08.2024 17:58 [17:58:43]line Смена: 464 ФФД: 1.0 [17:58:43]line ЗНМ: 0300000126 [17:58:43]line РНМ: 0000000000092718 [17:58:43]line Версия ККМ: 001 [17:58:43]line ФМ: 0000000000875058 [17:58:43]line ФД: 103182 [17:58:43]line ФПД: 248875581877982 [17:58:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T175843&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103182&fm=248875581877982&tin=02508201610067®Number=0000000000092718&sum=13300 [17:58:43]line 0 [17:58:43]Connected sock=11 [17: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 35 30 35 38 17 01 00 00 6F 85 0F 01 D4 43 5A 03 01 00 03 00 03 01 1E 04 01 00 01 23 04 55 00 8A 04 08 00 34 38 37 34 34 37 31 33 06 04 16 00 4C 44 20 43 6F 6D 70 61 63 74 20 50 75 72 70 6C 65 20 42 65 61 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 33 00 00 00 00 13 04 06 00 F4 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 05 00 00 00 00 07 04 06 00 F4 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 D3 9E BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 0E 93 01 00 35 04 06 00 E2 59 DC A6 AE DE 75 39 66 32 70 A3 59 BC [17:58:43]written 0, free lines is 4095 [17:58:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 47 86 47 00 1B 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 35 30 35 38 10 04 04 00 0E 93 01 00 F4 03 04 00 45 45 BB 66 B6 04 01 00 00 52 6B DF E3 1D 37 A4 8C [17:58:44]CommunicateWithHost err = 0 [17:58:44]CheckOFDResponse [17:58:44]1017 (14) - 77093643461234 [17:58:44]1041 (16) - 0000000000875058 [17:58:44]1040 (4) - 103182 [17:58:44]1012 (4) - 13.08.2024 11:36 [17:58:44]1206 (1) - 0 [17:58:44]OFD Sender: Remove packet 103182 [17:58:44]ProducePacketName [17:58:44]name=ofd_packets/00103182 [17:58:44]NVStorageDeleteData [17:58:44]Write to MH i2c: 01 00 00 C8 07 CF [17:58:44]Write i2c OK [17:58:44]MH_I2C_Read... [17:58:44]Read from MH i2c: 01 [17:58:44]MH_I2C_Read... [17:58:44]Read from MH i2c: 01 07 00 [17:58:44]MH_I2C_Read... [17:58:44]Read from MH i2c: 01 07 00 C8 07 00 00 00 00 00 0A 0D ED [17:58:44]RasterBufferAndPrint [17:58:44]line [17:58:44]line [17:58:44]line [17:58:44]line [17:58:44]line [17:58:44]written 0, free lines is 3344 [17:58:44]MH_Cut [17:58:44]Write to MH i2c: D1 01 00 CF 07 01 A8 [17:58:44]Write i2c OK [17:58:44]MH_I2C_Read... [17:58:44]Read from MH i2c: D1 [17:58:44]MH_I2C_Read... [17:58:44]Read from MH i2c: D1 01 00 [17:58:44]MH_I2C_Read... [17:58:44]Read from MH i2c: D1 01 00 CF 07 00 A7 [17:58:44]Write to MH i2c: 01 00 00 D0 07 D7 [17:58:44]Write i2c OK [17:58:44]MH_I2C_Read... [17:58:44]OFD Sender: No OFD packet to send [17:58:45]*** Cut start [17:58:45]*** Purtial cut [17:58:45]*** CUTSNS_PIN = 0 [17:58:45]*** Stage 1: CUTSNS_PIN = 1 [17:58:47]Read from MH i2c: 01 [17:58:47]MH_I2C_Read... [17:58:47]*** Stop cut motor [17:58:47]*** Cut end [17:58:47]Read from MH i2c: 01 07 00 [17:58:47]MH_I2C_Read... [17:58:47]Read from MH i2c: 01 07 00 D0 07 00 00 00 00 00 FF 0F EC [17:58:47]process_action close_receipt done [17:58:47]requested_data is exist [17:58:47]produce_requested_data [17:58:47]requested_item fm.sn is exist - process it [17:58:47]wFMCommunicate request_size=4 [17:58:47]MH_SAM_APDU [17:58:47]CAPDU: 80 11 00 00 [17:58:47]Write to MH i2c: E2 08 00 D1 07 80 11 00 00 00 00 00 00 52 [17:58:47]Write i2c OK [17:58:47]MH_I2C_Read... [17:58:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:47]Read from MH i2c: E2 [17:58:47]MH_I2C_Read... [17:58:47]Read from MH i2c: E2 17 00 [17:58:47]MH_I2C_Read... [17:58:47]Read from MH i2c: E2 17 00 D1 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 A6 [17:58:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [17:58:47]wFMCommunicate OK [17:58:47]requested_item fd.num is exist - process it [17:58:47]SAM_PROTO_GetFieldsCounters [17:58:47]wFMCommunicate request_size=4 [17:58:47]MH_SAM_APDU [17:58:47]CAPDU: 80 13 00 00 [17:58:47]Write to MH i2c: E2 08 00 D2 07 80 13 00 00 00 00 00 00 55 [17:58:47]Write i2c OK [17:58:47]MH_I2C_Read... [17:58:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:58:47]Read from MH i2c: E2 [17:58:47]MH_I2C_Read... [17:58:47]Read from MH i2c: E2 62 00 [17:58:47]MH_I2C_Read... [17:58:47]Read from MH i2c: E2 62 00 D2 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 0E 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [17:58:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 0E 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:58:47]wFMCommunicate OK [17:58:47]SAM_PROTO_GetFieldsCounters done [17:58:47]requested_item shift.num is exist - process it [17:58:47]requested_item shift.opened is exist - process it [17:58:47]req_shift_opened [17:58:47]FM_GetShiftState [17:58:47]SAM_PROTO_GetShiftState [17:58:47]wFMCommunicate request_size=4 [17:58:47]MH_SAM_APDU [17:58:47]CAPDU: 80 13 01 00 [17:58:47]Write to MH i2c: E2 08 00 D3 07 80 13 01 00 00 00 00 00 57 [17:58:47]Write i2c OK [17:58:47]MH_I2C_Read... [17:58:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:47]Read from MH i2c: E2 [17:58:47]MH_I2C_Read... [17:58:47]Read from MH i2c: E2 0E 00 [17:58:47]MH_I2C_Read... [17:58:47]Read from MH i2c: E2 0E 00 D3 07 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 75 [17:58:47]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [17:58:47]wFMCommunicate OK [17:58:47]SAM_PROTO_GetShiftState done [17:58:47]FM_GetShiftState done [17:58:47]req_shift_opened done [17:58:47]requested_item shift.open_date is exist - process it [17:58:47]req_shift_open_date [17:58:47]req_shift_open_date done [17:58:47]produce_requested_data done [17:58:47]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103182,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [17:58:47]process_action_free close_receipt [17:58:47]json_value_free [17:58:47]json_value_free done [17:58:47]process_json_proto returns [17:58:47]Send response to host [17:58:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103182,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [17:58:47]free response buf [17:58:47]execute_script done [17:58:47]execute_script returns [17:58:47]free content buf [17:58:47]Sock 7.Close socket [17:58:47]Sock 7.Thread stoped [17:58:49]OFD Sender: No OFD packet to send [17:58:54]OFD Sender: No OFD packet to send [17:58:59]OFD Sender: No OFD packet to send [17:59:04]OFD Sender: No OFD packet to send [17:59:09]OFD Sender: No OFD packet to send [17:59:14]OFD Sender: No OFD packet to send [17:59:19]OFD Sender: No OFD packet to send [17:59:24]OFD Sender: No OFD packet to send [17:59:29]OFD Sender: No OFD packet to send [17:59:34]OFD Sender: No OFD packet to send [17:59:39]OFD Sender: No OFD packet to send [17:59:44]OFD Sender: No OFD packet to send [17:59:49]OFD Sender: No OFD packet to send [17:59:54]OFD Sender: No OFD packet to send [17:59:59]OFD Sender: No OFD packet to send [18:00:04]OFD Sender: No OFD packet to send [18:00:09]OFD Sender: No OFD packet to send [18:00:14]OFD Sender: No OFD packet to send [18:00:19]OFD Sender: No OFD packet to send [18:00:24]OFD Sender: No OFD packet to send [18:00:29]OFD Sender: No OFD packet to send [18:00:34]OFD Sender: No OFD packet to send [18:00:39]OFD Sender: No OFD packet to send [18:00:44]OFD Sender: No OFD packet to send [18:00:49]OFD Sender: No OFD packet to send [18:00:54]OFD Sender: No OFD packet to send [18:00:59]OFD Sender: No OFD packet to send [18:01:04]OFD Sender: No OFD packet to send [18:01:09]OFD Sender: No OFD packet to send [18:01:12]accept exits with 9 [18:01:12]New connection [18:01:12]New thread 3067116900 created [18:01:12]Thread 3067260260 joined [18:01:12]Waiting for new connection... [18:01:12] Sock 9.Parse request [18:01:12]Sock 9.Check first char [18:01:12]Sock 9.First char is OK [18:01:12]request: POST /json_proto HTTP/1.0 [18:01:12]Method: POST [18:01:12]URL: /json_proto [18:01:12]Method is POST - this is cgi request [18:01:12]url: /json_proto [18:01:12]query_string will be loaded in cgi processing [18:01:12]execute_cgi json_proto POST (null) [18:01:12]execute_cgi path=json_proto method=POST [18:01:12]POST find Content-Length [18:01:12]Host: 172.17.58.3:8080 [18:01:12]Content-Length: 681 [18:01:12]Content-Type: application/json [18:01:12] [18:01:12]POST finish read [18:01:12]Found Content-Length = 681 [18:01:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160812", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [18:01:12]execute_script... [18:01: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)160812", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [18:01:12]POST & json_proto [18:01:12]process_json_proto [18:01:12]json parsed OK: [18:01:12]protocol is kg_v1.0 [18:01:12]action value=close_receipt [18:01:12]process_action close_receipt [18:01:12]cmd_close_receipt [18:01:12]MH_GetDate [18:01:12]Write to MH i2c: F0 00 00 D4 07 CA [18:01:12]Write i2c OK [18:01:12]MH_I2C_Read... [18:01:12]Read from MH i2c: F0 [18:01:12]MH_I2C_Read... [18:01:12]Read from MH i2c: F0 09 00 [18:01:12]MH_I2C_Read... [18:01:12]Read from MH i2c: F0 09 00 D4 07 00 69 9F BB 66 DC E4 6D 64 8D [18:01:12]GetLastDocTimeStamp 1723571923 [18:01:12]current date 1723572073 [18:01:12]FM_GetShiftState [18:01:12]SAM_PROTO_GetShiftState [18:01:12]wFMCommunicate request_size=4 [18:01:12]MH_SAM_APDU [18:01:12]CAPDU: 80 13 01 00 [18:01:12]Write to MH i2c: E2 08 00 D5 07 80 13 01 00 00 00 00 00 59 [18:01:12]Write i2c OK [18:01:12]MH_I2C_Read... [18:01:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:12]Read from MH i2c: E2 [18:01:12]MH_I2C_Read... [18:01:12]Read from MH i2c: E2 0E 00 [18:01:12]MH_I2C_Read... [18:01:12]Read from MH i2c: E2 0E 00 D5 07 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 77 [18:01:12]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [18:01:12]wFMCommunicate OK [18:01:12]SAM_PROTO_GetShiftState done [18:01:12]FM_GetShiftState done [18:01:12]opened in 1723506770 [18:01:12]opened+sec_in_day 1723593170 [18:01:12]quantity*price = 200006 [18:01:12]sum+1 = 200008 [18:01:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 94 13.08.2024 18:01 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103183 ФПД: 28254899226877 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T180113&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103183&fm=28254899226877&tin=02508201610067®Number=0000000000092718&sum=200000 [18:01:13]StoreToDocumentArchive [18:01:13]shift 464 fd 103183 [18:01:13]save to /storage/0464/doc_00103183 [18:01:13]save last doc name /storage/0464/doc_00103183 to /storage/kkm_last_doc_name [18:01:13]save OK [18:01:13]Clear old archive folders... [18:01:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:01:13]tlvbuf is 002143F0 [18:01:13]SAM_PROTO_ClearQueue [18:01:13]wFMCommunicate request_size=4 [18:01:13]MH_SAM_APDU [18:01:13]CAPDU: 80 09 00 00 [18:01:13]Write to MH i2c: E2 08 00 E2 07 80 09 00 00 00 00 00 00 5B [18:01:13]Write i2c OK [18:01:13]MH_I2C_Read... [18:01:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:01:13]Read from MH i2c: E2 [18:01:13]MH_I2C_Read... [18:01:13]Read from MH i2c: E2 03 00 [18:01:13]MH_I2C_Read... [18:01:13]Read from MH i2c: E2 03 00 E2 07 00 90 00 5D [18:01:13]RAPDU: 90 00 [18:01:13]wFMCommunicate OK [18:01:13]SAM_PROTO_ClearQueue done [18:01:13]KKMCreateOFDPacket [18:01:13]OFDProtocolAddRootSTLVToBuf [18:01:13]FM_MakeSignedData [18:01:13]FM_MakeSignedData [18:01:13]SAM_PROTO_SignData [18:01:13]wFMCommunicate request_size=4 [18:01:13]MH_SAM_APDU [18:01:13]CAPDU: 80 0D 01 02 [18:01:13]Write to MH i2c: E2 08 00 E3 07 80 0D 01 02 00 00 00 00 63 [18:01:13]Write i2c OK [18:01:13]MH_I2C_Read... [18:01:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:01:13]Read from MH i2c: E2 [18:01:13]MH_I2C_Read... [18:01:13]Read from MH i2c: E2 03 00 [18:01:13]MH_I2C_Read... [18:01:13]Read from MH i2c: E2 03 00 E3 07 00 90 00 5E [18:01:13]RAPDU: 90 00 [18:01:13]wFMCommunicate OK [18:01:13]wFMCommunicate request_size=255 [18:01:13]MH_SAM_APDU [18:01: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 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 69 9F BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 0F 93 01 00 35 04 06 00 19 [18:01:13]Write to MH i2c: E2 02 01 E4 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 69 9F BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 0F 93 01 00 35 04 06 00 19 00 00 90 [18:01:13]Write i2c OK [18:01:13]MH_I2C_Read... [18:01:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:14]Read from MH i2c: E2 [18:01:14]MH_I2C_Read... [18:01:14]Read from MH i2c: E2 03 00 [18:01:14]MH_I2C_Read... [18:01:14]Read from MH i2c: E2 03 00 E4 07 00 90 00 5F [18:01:14]RAPDU: 90 00 [18:01:14]wFMCommunicate OK [18:01:14]wFMCommunicate request_size=10 [18:01:14]MH_SAM_APDU [18:01:14]CAPDU: 80 0D 02 02 05 B2 9B 3B 48 FD [18:01:14]Write to MH i2c: E2 0D 00 E5 07 80 0D 02 02 05 00 B2 9B 3B 48 FD 00 00 3D [18:01:14]Write i2c OK [18:01:14]MH_I2C_Read... [18:01:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:14]Read from MH i2c: E2 [18:01:14]MH_I2C_Read... [18:01:14]Read from MH i2c: E2 03 00 [18:01:14]MH_I2C_Read... [18:01:14]Read from MH i2c: E2 03 00 E5 07 00 90 00 60 [18:01:14]RAPDU: 90 00 [18:01:14]wFMCommunicate OK [18:01:14]wFMCommunicate request_size=4 [18:01:14]MH_SAM_APDU [18:01:14]CAPDU: 80 0D 03 02 [18:01:14]Write to MH i2c: E2 08 00 E6 07 80 0D 03 02 00 00 00 00 68 [18:01:14]Write i2c OK [18:01:14]MH_I2C_Read... [18:01:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:01:14]Read from MH i2c: E2 [18:01:14]MH_I2C_Read... [18:01:14]Read from MH i2c: E2 0B 00 [18:01:14]MH_I2C_Read... [18:01:14]Read from MH i2c: E2 0B 00 E6 07 00 79 1E 9C A0 1C 8E C1 0D 90 00 B4 [18:01:14]RAPDU: 79 1E 9C A0 1C 8E C1 0D 90 00 [18:01:14]wFMCommunicate OK [18:01:14]SAM_PROTO_SignData done [18:01:14]FM_MakeSignedData done [18:01:14]CreateOFDProtocolMessage [18:01:14]wFMCommunicate request_size=4 [18:01:14]MH_SAM_APDU [18:01:14]CAPDU: 80 11 00 00 [18:01:14]Write to MH i2c: E2 08 00 E7 07 80 11 00 00 00 00 00 00 68 [18:01:14]Write i2c OK [18:01:14]MH_I2C_Read... [18:01:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:14]Read from MH i2c: E2 [18:01:14]MH_I2C_Read... [18:01:14]Read from MH i2c: E2 17 00 [18:01:14]MH_I2C_Read... [18:01:14]Read from MH i2c: E2 17 00 E7 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 BC [18:01:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [18:01:14]wFMCommunicate OK [18:01:14]CreateOFDProtocolMessage done [18:01:14]OFDSenderStorePacket 103183 [18:01:14]StoreOFDPacket docnum=103183 [18:01:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 03 C8 07 01 CB 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 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 69 9F BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 0F 93 01 00 35 04 06 00 19 B2 9B 3B 48 FD 79 1E 9C A0 1C 8E C1 0D [18:01:14]CheckFolder [18:01:14]dirname=/storage/ofd_packets [18:01:14]CheckFolder done [18:01:14]ProducePacketName [18:01:14]name=ofd_packets/00103183 [18:01:14]NVStorageSaveData ofd_packets/00103183 [18:01:14]File name is /storage/ofd_packets/00103183 [18:01:14]Write 301 bytes [18:01:14]NVStorageSaveData done [18:01:14]OFDSenderStorePacket done [18:01:14]KKMCreateOFDPacket done [18:01:14]NVStorageSaveData kkm_last_timestamp [18:01:14]File name is /storage/kkm_last_timestamp [18:01:14]Write 4 bytes [18:01:14]NVStorageSaveData done [18:01:14]ExternCall_PrintAddStr [18:01:14]wPrintStart [18:01:14]Write to MH i2c: 01 00 00 E8 07 EF [18:01:14]Write i2c OK [18:01:14]MH_I2C_Read... [18:01:14]Read from MH i2c: 01 [18:01:14]MH_I2C_Read... [18:01:14]Read from MH i2c: 01 07 00 [18:01:14]MH_I2C_Read... [18:01:14]Read from MH i2c: 01 07 00 E8 07 00 00 00 00 00 FF 0F 04 [18:01:14]RasterBufferAndPrint [18:01:14]line Счет N : (1)160812 [18:01:14]line ИНН: 02508201610067 [18:01:14]line Контрольно-Кассовый Чек [18:01:14]line ПРОДАЖА [18:01:14]line ТРК (МРК, ГНК) : 7 [18:01:14]line Товар: 2710124130 [18:01:14]line Аи-92-К-5 [18:01:14]line 30.350 * 65.90 [18:01:14]line = 2000.07 [18:01:14]line НДС 12% НСП 1% [18:01:14]line > о реализуемом товаре [18:01:14]line ОКРУГЛЕНИЕ: -0.07 [18:01:14]line ИТОГО: 2000.00 [18:01:14]line Внесено: 2000.00 [18:01:14]line СДАЧА: 0.00 [18:01:14]line НСП 1% : 17.70 [18:01:14]line НДС 12% : 212.40 [18:01:14]line Наличными: 2000.00 [18:01:14]line Безнал.: 0.00 [18:01:14]line Место: АЗС № 38 "Партнер Нефть" [18:01:14]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [18:01:14]line СНО: Общий режим [18:01:14]line Чек 94 13.08.2024 18:01 [18:01:14]line Смена: 464 ФФД: 1.0 [18:01:14]line ЗНМ: 0300000126 [18:01:14]line РНМ: 0000000000092718 [18:01:14]line Версия ККМ: 001 [18:01:14]line ФМ: 0000000000875058 [18:01:14]line ФД: 103183 [18:01:14]line ФПД: 28254899226877 [18:01:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T180113&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103183&fm=28254899226877&tin=02508201610067®Number=0000000000092718&sum=200000 [18:01:14]OFD Sender: Processing packet 103183 [packets to send 69, broken 68] [18:01:14]ProducePacketName [18:01:14]name=ofd_packets/00103183 [18:01:14]OFD Sender: To server: pG, [18:01:14]CommunicateWithHost lk.salyk.kg:30040 [18:01:14]ConnectInit lk.salyk.kg [18:01:14]written 0, free lines is 4095 [18:01:14]Connected sock=10 [18:01:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 03 C8 07 01 CB 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 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 69 9F BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 0F 93 01 00 35 04 06 00 19 B2 9B 3B 48 FD 79 1E 9C A0 1C 8E C1 0D [18:01:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 72 E9 47 00 9E 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 0F 93 01 00 F4 03 04 00 DB 45 BB 66 B6 04 01 00 00 A0 F2 3E C5 3E 6E F4 1F [18:01:14]CommunicateWithHost err = 0 [18:01:14]CheckOFDResponse [18:01:14]1017 (14) - 77093643461234 [18:01:14]1041 (16) - 0000000000875058 [18:01:14]1040 (4) - 103183 [18:01:14]1012 (4) - 13.08.2024 11:39 [18:01:14]1206 (1) - 0 [18:01:14]OFD Sender: Remove packet 103183 [18:01:14]ProducePacketName [18:01:14]name=ofd_packets/00103183 [18:01:14]NVStorageDeleteData [18:01:14]Write to MH i2c: 01 00 00 13 08 1B [18:01:14]Write i2c OK [18:01:14]MH_I2C_Read... [18:01:14]Read from MH i2c: 01 [18:01:14]MH_I2C_Read... [18:01:14]Read from MH i2c: 01 07 00 [18:01:14]MH_I2C_Read... [18:01:14]Read from MH i2c: 01 07 00 13 08 00 00 00 00 00 E8 0C 16 [18:01:14]RasterBufferAndPrint [18:01:14]line [18:01:14]line [18:01:14]line [18:01:14]line [18:01:14]line [18:01:14]written 0, free lines is 3310 [18:01:15]MH_Cut [18:01:15]Write to MH i2c: D1 01 00 1A 08 01 F4 [18:01:15]Write i2c OK [18:01:15]MH_I2C_Read... [18:01:15]Read from MH i2c: D1 [18:01:15]MH_I2C_Read... [18:01:15]Read from MH i2c: D1 01 00 [18:01:15]MH_I2C_Read... [18:01:15]Read from MH i2c: D1 01 00 1A 08 00 F3 [18:01:15]Write to MH i2c: 01 00 00 1B 08 23 [18:01:15]Write i2c OK [18:01:15]MH_I2C_Read... [18:01:15]OFD Sender: No OFD packet to send [18:01:15]*** Cut start [18:01:15]*** Purtial cut [18:01:15]*** Stage 1: CUTSNS_PIN = 1 [18:01:16]Read from MH i2c: 01 [18:01:16]MH_I2C_Read... [18:01:16]*** Stop cut motor [18:01:16]*** Cut end [18:01:16]Read from MH i2c: 01 07 00 [18:01:16]MH_I2C_Read... [18:01:16]Read from MH i2c: 01 07 00 1B 08 00 00 00 00 00 FF 0F 38 [18:01:16]process_action close_receipt done [18:01:16]requested_data is exist [18:01:16]produce_requested_data [18:01:16]requested_item fm.sn is exist - process it [18:01:16]wFMCommunicate request_size=4 [18:01:16]MH_SAM_APDU [18:01:16]CAPDU: 80 11 00 00 [18:01:16]Write to MH i2c: E2 08 00 1C 08 80 11 00 00 00 00 00 00 9E [18:01:16]Write i2c OK [18:01:16]MH_I2C_Read... [18:01:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:16]Read from MH i2c: E2 [18:01:16]MH_I2C_Read... [18:01:16]Read from MH i2c: E2 17 00 [18:01:16]MH_I2C_Read... [18:01:16]Read from MH i2c: E2 17 00 1C 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 F2 [18:01:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [18:01:16]wFMCommunicate OK [18:01:16]requested_item fd.num is exist - process it [18:01:16]SAM_PROTO_GetFieldsCounters [18:01:16]wFMCommunicate request_size=4 [18:01:16]MH_SAM_APDU [18:01:16]CAPDU: 80 13 00 00 [18:01:16]Write to MH i2c: E2 08 00 1D 08 80 13 00 00 00 00 00 00 A1 [18:01:16]Write i2c OK [18:01:16]MH_I2C_Read... [18:01:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:01:16]Read from MH i2c: E2 [18:01:16]MH_I2C_Read... [18:01:16]Read from MH i2c: E2 62 00 [18:01:16]MH_I2C_Read... [18:01:16]Read from MH i2c: E2 62 00 1D 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 0F 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [18:01:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 0F 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:01:16]wFMCommunicate OK [18:01:16]SAM_PROTO_GetFieldsCounters done [18:01:16]requested_item shift.num is exist - process it [18:01:16]requested_item shift.opened is exist - process it [18:01:16]req_shift_opened [18:01:16]FM_GetShiftState [18:01:16]SAM_PROTO_GetShiftState [18:01:16]wFMCommunicate request_size=4 [18:01:16]MH_SAM_APDU [18:01:16]CAPDU: 80 13 01 00 [18:01:16]Write to MH i2c: E2 08 00 1E 08 80 13 01 00 00 00 00 00 A3 [18:01:16]Write i2c OK [18:01:16]MH_I2C_Read... [18:01:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:16]Read from MH i2c: E2 [18:01:16]MH_I2C_Read... [18:01:16]Read from MH i2c: E2 0E 00 [18:01:16]MH_I2C_Read... [18:01:16]Read from MH i2c: E2 0E 00 1E 08 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 C1 [18:01:16]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [18:01:16]wFMCommunicate OK [18:01:16]SAM_PROTO_GetShiftState done [18:01:16]FM_GetShiftState done [18:01:16]req_shift_opened done [18:01:16]requested_item shift.open_date is exist - process it [18:01:16]req_shift_open_date [18:01:16]req_shift_open_date done [18:01:16]produce_requested_data done [18:01:16]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103183,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [18:01:16]process_action_free close_receipt [18:01:16]json_value_free [18:01:16]json_value_free done [18:01:16]process_json_proto returns [18:01:16]Send response to host [18:01:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103183,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [18:01:16]free response buf [18:01:16]execute_script done [18:01:16]execute_script returns [18:01:16]free content buf [18:01:16]Sock 9.Close socket [18:01:16]Sock 9.Thread stoped [18:01:20]OFD Sender: No OFD packet to send [18:01:25]OFD Sender: No OFD packet to send [18:01:30]OFD Sender: No OFD packet to send [18:01:35]OFD Sender: No OFD packet to send [18:01:40]OFD Sender: No OFD packet to send [18:01:45]OFD Sender: No OFD packet to send [18:01:50]OFD Sender: No OFD packet to send [18:01:55]OFD Sender: No OFD packet to send [18:02:00]OFD Sender: No OFD packet to send [18:02:05]OFD Sender: No OFD packet to send [18:02:10]OFD Sender: No OFD packet to send [18:02:15]OFD Sender: No OFD packet to send [18:02:20]OFD Sender: No OFD packet to send [18:02:25]OFD Sender: No OFD packet to send [18:02:30]OFD Sender: No OFD packet to send [18:02:35]OFD Sender: No OFD packet to send [18:02:40]OFD Sender: No OFD packet to send [18:02:45]OFD Sender: No OFD packet to send [18:02:50]OFD Sender: No OFD packet to send [18:02:55]OFD Sender: No OFD packet to send [18:03:00]OFD Sender: No OFD packet to send [18:03:05]OFD Sender: No OFD packet to send [18:03:10]OFD Sender: No OFD packet to send [18:03:15]OFD Sender: No OFD packet to send [18:03:20]OFD Sender: No OFD packet to send [18:03:25]OFD Sender: No OFD packet to send [18:03:30]OFD Sender: No OFD packet to send [18:03:35]OFD Sender: No OFD packet to send [18:03:40]OFD Sender: No OFD packet to send [18:03:45]OFD Sender: No OFD packet to send [18:03:50]OFD Sender: No OFD packet to send [18:03:55]OFD Sender: No OFD packet to send [18:04:00]OFD Sender: No OFD packet to send [18:04:05]OFD Sender: No OFD packet to send [18:04:10]OFD Sender: No OFD packet to send [18:04:15]OFD Sender: No OFD packet to send [18:04:20]OFD Sender: No OFD packet to send [18:04:25]OFD Sender: No OFD packet to send [18:04:30]OFD Sender: No OFD packet to send [18:04:35]OFD Sender: No OFD packet to send [18:04:40]OFD Sender: No OFD packet to send [18:04:45]OFD Sender: No OFD packet to send [18:04:50]OFD Sender: No OFD packet to send [18:04:55]OFD Sender: No OFD packet to send [18:05:00]OFD Sender: No OFD packet to send [18:05:05]OFD Sender: No OFD packet to send [18:05:10]OFD Sender: No OFD packet to send [18:05:15]OFD Sender: No OFD packet to send [18:05:20]OFD Sender: No OFD packet to send [18:05:25]OFD Sender: No OFD packet to send [18:05:30]OFD Sender: No OFD packet to send [18:05:35]OFD Sender: No OFD packet to send [18:05:40]OFD Sender: No OFD packet to send [18:05:45]OFD Sender: No OFD packet to send [18:05:50]OFD Sender: No OFD packet to send [18:05:55]OFD Sender: No OFD packet to send [18:06:00]OFD Sender: No OFD packet to send [18:06:05]OFD Sender: No OFD packet to send [18:06:10]OFD Sender: No OFD packet to send [18:06:15]OFD Sender: No OFD packet to send [18:06:20]OFD Sender: No OFD packet to send [18:06:25]OFD Sender: No OFD packet to send [18:06:30]OFD Sender: No OFD packet to send [18:06:35]OFD Sender: No OFD packet to send [18:06:40]OFD Sender: No OFD packet to send [18:06:45]OFD Sender: No OFD packet to send [18:06:50]OFD Sender: No OFD packet to send [18:06:55]OFD Sender: No OFD packet to send [18:07:00]OFD Sender: No OFD packet to send [18:07:05]OFD Sender: No OFD packet to send [18:07:10]OFD Sender: No OFD packet to send [18:07:15]OFD Sender: No OFD packet to send [18:07:20]OFD Sender: No OFD packet to send [18:07:25]OFD Sender: No OFD packet to send [18:07:30]OFD Sender: No OFD packet to send [18:07:35]OFD Sender: No OFD packet to send [18:07:40]OFD Sender: No OFD packet to send [18:07:45]OFD Sender: No OFD packet to send [18:07:50]OFD Sender: No OFD packet to send [18:07:55]OFD Sender: No OFD packet to send [18:08:00]OFD Sender: No OFD packet to send [18:08:05]OFD Sender: No OFD packet to send [18:08:10]OFD Sender: No OFD packet to send [18:08:15]accept exits with 7 [18:08:15]New connection [18:08:15]New thread 3067260260 created [18:08:15]Thread 3067116900 joined [18:08:15]Waiting for new connection... [18:08:15] Sock 7.Parse request [18:08:15]Sock 7.Check first char [18:08:15]Sock 7.First char is OK [18:08:15]request: POST /json_proto HTTP/1.0 [18:08:15]Method: POST [18:08:15]URL: /json_proto [18:08:15]Method is POST - this is cgi request [18:08:15]url: /json_proto [18:08:15]query_string will be loaded in cgi processing [18:08:15]execute_cgi json_proto POST (null) [18:08:15]execute_cgi path=json_proto method=POST [18:08:15]POST find Content-Length [18:08:15]Host: 172.17.58.3:8080 [18:08:15]Content-Length: 681 [18:08:15]Content-Type: application/json [18:08:15] [18:08:15]POST finish read [18:08:15]Found Content-Length = 681 [18:08:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160813", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:15]execute_script... [18:08: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)160813", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:15]POST & json_proto [18:08:15]process_json_proto [18:08:15]json parsed OK: [18:08:15]protocol is kg_v1.0 [18:08:15]action value=close_receipt [18:08:15]process_action close_receipt [18:08:15]cmd_close_receipt [18:08:15]MH_GetDate [18:08:15]Write to MH i2c: F0 00 00 1F 08 16 [18:08:15]Write i2c OK [18:08:15]MH_I2C_Read... [18:08:15]Read from MH i2c: F0 [18:08:15]MH_I2C_Read... [18:08:15]Read from MH i2c: F0 09 00 [18:08:15]MH_I2C_Read... [18:08:15]Read from MH i2c: F0 09 00 1F 08 00 10 A1 BB 66 DC E4 6D 64 82 [18:08:15]GetLastDocTimeStamp 1723572073 [18:08:15]current date 1723572496 [18:08:15]FM_GetShiftState [18:08:15]SAM_PROTO_GetShiftState [18:08:15]wFMCommunicate request_size=4 [18:08:15]MH_SAM_APDU [18:08:15]CAPDU: 80 13 01 00 [18:08:15]Write to MH i2c: E2 08 00 20 08 80 13 01 00 00 00 00 00 A5 [18:08:15]Write i2c OK [18:08:15]MH_I2C_Read... [18:08:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:15]Read from MH i2c: E2 [18:08:15]MH_I2C_Read... [18:08:15]Read from MH i2c: E2 0E 00 [18:08:15]MH_I2C_Read... [18:08:15]Read from MH i2c: E2 0E 00 20 08 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 C3 [18:08:15]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [18:08:15]wFMCommunicate OK [18:08:15]SAM_PROTO_GetShiftState done [18:08:15]FM_GetShiftState done [18:08:15]opened in 1723506770 [18:08:15]opened+sec_in_day 1723593170 [18:08:15]quantity*price = 100036 [18:08:15]sum+1 = 100037 [18:08:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 95 13.08.2024 18:08 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103184 ФПД: 247104413809360 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T180816&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103184&fm=247104413809360&tin=02508201610067®Number=0000000000092718&sum=100000 [18:08:16]StoreToDocumentArchive [18:08:16]shift 464 fd 103184 [18:08:16]save to /storage/0464/doc_00103184 [18:08:16]save last doc name /storage/0464/doc_00103184 to /storage/kkm_last_doc_name [18:08:16]save OK [18:08:16]Clear old archive folders... [18:08:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:08:16]tlvbuf is 002359D0 [18:08:16]SAM_PROTO_ClearQueue [18:08:16]wFMCommunicate request_size=4 [18:08:16]MH_SAM_APDU [18:08:16]CAPDU: 80 09 00 00 [18:08:16]Write to MH i2c: E2 08 00 2D 08 80 09 00 00 00 00 00 00 A7 [18:08:16]Write i2c OK [18:08:16]MH_I2C_Read... [18:08:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:08:16]Read from MH i2c: E2 [18:08:16]MH_I2C_Read... [18:08:16]Read from MH i2c: E2 03 00 [18:08:16]MH_I2C_Read... [18:08:16]Read from MH i2c: E2 03 00 2D 08 00 90 00 A9 [18:08:16]RAPDU: 90 00 [18:08:16]wFMCommunicate OK [18:08:16]SAM_PROTO_ClearQueue done [18:08:16]KKMCreateOFDPacket [18:08:16]OFDProtocolAddRootSTLVToBuf [18:08:16]FM_MakeSignedData [18:08:16]FM_MakeSignedData [18:08:16]SAM_PROTO_SignData [18:08:16]wFMCommunicate request_size=4 [18:08:16]MH_SAM_APDU [18:08:16]CAPDU: 80 0D 01 02 [18:08:16]Write to MH i2c: E2 08 00 2E 08 80 0D 01 02 00 00 00 00 AF [18:08:16]Write i2c OK [18:08:16]MH_I2C_Read... [18:08:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:08:16]Read from MH i2c: E2 [18:08:16]MH_I2C_Read... [18:08:16]Read from MH i2c: E2 03 00 [18:08:16]MH_I2C_Read... [18:08:16]Read from MH i2c: E2 03 00 2E 08 00 90 00 AA [18:08:16]RAPDU: 90 00 [18:08:16]wFMCommunicate OK [18:08:16]wFMCommunicate request_size=255 [18:08:16]MH_SAM_APDU [18:08: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 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 10 A1 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 10 93 01 00 35 04 06 00 E0 [18:08:16]Write to MH i2c: E2 02 01 2F 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 10 A1 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 10 93 01 00 35 04 06 00 E0 00 00 59 [18:08:16]Write i2c OK [18:08:16]MH_I2C_Read... [18:08:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:16]Read from MH i2c: E2 [18:08:16]MH_I2C_Read... [18:08:16]Read from MH i2c: E2 03 00 [18:08:16]MH_I2C_Read... [18:08:16]Read from MH i2c: E2 03 00 2F 08 00 90 00 AB [18:08:16]RAPDU: 90 00 [18:08:16]wFMCommunicate OK [18:08:16]wFMCommunicate request_size=10 [18:08:16]MH_SAM_APDU [18:08:16]CAPDU: 80 0D 02 02 05 BD 7A CE BA D0 [18:08:16]Write to MH i2c: E2 0D 00 30 08 80 0D 02 02 05 00 BD 7A CE BA D0 00 00 4B [18:08:16]Write i2c OK [18:08:16]MH_I2C_Read... [18:08:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:16]Read from MH i2c: E2 [18:08:16]MH_I2C_Read... [18:08:16]Read from MH i2c: E2 03 00 [18:08:16]MH_I2C_Read... [18:08:16]Read from MH i2c: E2 03 00 30 08 00 90 00 AC [18:08:16]RAPDU: 90 00 [18:08:16]wFMCommunicate OK [18:08:16]wFMCommunicate request_size=4 [18:08:16]MH_SAM_APDU [18:08:16]CAPDU: 80 0D 03 02 [18:08:16]Write to MH i2c: E2 08 00 31 08 80 0D 03 02 00 00 00 00 B4 [18:08:16]Write i2c OK [18:08:16]MH_I2C_Read... [18:08:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:08:16]Read from MH i2c: E2 [18:08:16]MH_I2C_Read... [18:08:16]Read from MH i2c: E2 0B 00 [18:08:16]MH_I2C_Read... [18:08:16]Read from MH i2c: E2 0B 00 31 08 00 0F BB 39 0A D3 60 B7 4A 90 00 F6 [18:08:16]RAPDU: 0F BB 39 0A D3 60 B7 4A 90 00 [18:08:16]wFMCommunicate OK [18:08:16]SAM_PROTO_SignData done [18:08:16]FM_MakeSignedData done [18:08:16]CreateOFDProtocolMessage [18:08:16]wFMCommunicate request_size=4 [18:08:16]MH_SAM_APDU [18:08:16]CAPDU: 80 11 00 00 [18:08:16]Write to MH i2c: E2 08 00 32 08 80 11 00 00 00 00 00 00 B4 [18:08:16]Write i2c OK [18:08:16]MH_I2C_Read... [18:08:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:16]Read from MH i2c: E2 [18:08:16]MH_I2C_Read... [18:08:16]Read from MH i2c: E2 17 00 [18:08:16]MH_I2C_Read... [18:08:16]Read from MH i2c: E2 17 00 32 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 08 [18:08:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [18:08:16]wFMCommunicate OK [18:08:16]CreateOFDProtocolMessage done [18:08:16]OFDSenderStorePacket 103184 [18:08:16]StoreOFDPacket docnum=103184 [18:08:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 78 94 07 01 05 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 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 10 A1 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 10 93 01 00 35 04 06 00 E0 BD 7A CE BA D0 0F BB 39 0A D3 60 B7 4A [18:08:16]CheckFolder [18:08:16]dirname=/storage/ofd_packets [18:08:16]CheckFolder done [18:08:16]ProducePacketName [18:08:16]name=ofd_packets/00103184 [18:08:16]NVStorageSaveData ofd_packets/00103184 [18:08:16]File name is /storage/ofd_packets/00103184 [18:08:16]Write 301 bytes [18:08:16]NVStorageSaveData done [18:08:16]OFDSenderStorePacket done [18:08:16]KKMCreateOFDPacket done [18:08:16]NVStorageSaveData kkm_last_timestamp [18:08:16]File name is /storage/kkm_last_timestamp [18:08:16]Write 4 bytes [18:08:16]NVStorageSaveData done [18:08:16]ExternCall_PrintAddStr [18:08:16]wPrintStart [18:08:16]Write to MH i2c: 01 00 00 33 08 3B [18:08:16]Write i2c OK [18:08:16]MH_I2C_Read... [18:08:16]Read from MH i2c: 01 [18:08:16]MH_I2C_Read... [18:08:16]Read from MH i2c: 01 07 00 [18:08:16]MH_I2C_Read... [18:08:16]Read from MH i2c: 01 07 00 33 08 00 00 00 00 00 FF 0F 50 [18:08:16]RasterBufferAndPrint [18:08:16]line Счет N : (1)160813 [18:08:16]line ИНН: 02508201610067 [18:08:16]line Контрольно-Кассовый Чек [18:08:16]line ПРОДАЖА [18:08:16]line ТРК (МРК, ГНК) : 3 [18:08:16]line Товар: 2710124130 [18:08:16]line Аи-92-К-5 [18:08:16]line 15.180 * 65.90 [18:08:16]line = 1000.36 [18:08:16]line НДС 12% НСП 1% [18:08:16]line > о реализуемом товаре [18:08:16]line ОКРУГЛЕНИЕ: -0.36 [18:08:16]line ИТОГО: 1000.00 [18:08:16]line Внесено: 1000.00 [18:08:16]line СДАЧА: 0.00 [18:08:16]line НСП 1% : 8.85 [18:08:16]line НДС 12% : 106.23 [18:08:16]line Наличными: 1000.00 [18:08:16]line Безнал.: 0.00 [18:08:16]line Место: АЗС № 38 "Партнер Нефть" [18:08:16]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [18:08:16]line СНО: Общий режим [18:08:16]line Чек 95 13.08.2024 18:08 [18:08:16]line Смена: 464 ФФД: 1.0 [18:08:16]line ЗНМ: 0300000126 [18:08:16]line РНМ: 0000000000092718 [18:08:16]line Версия ККМ: 001 [18:08:16]line ФМ: 0000000000875058 [18:08:16]line ФД: 103184 [18:08:16]line ФПД: 247104413809360 [18:08:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T180816&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103184&fm=247104413809360&tin=02508201610067®Number=0000000000092718&sum=100000 [18:08:17]OFD Sender: Processing packet 103184 [packets to send 69, broken 68] [18:08:17]ProducePacketName [18:08:17]name=ofd_packets/00103184 [18:08:17]OFD Sender: To server: pG, [18:08:17]CommunicateWithHost lk.salyk.kg:30040 [18:08:17]ConnectInit lk.salyk.kg [18:08:17]written 0, free lines is 4095 [18:08:17]Connected sock=10 [18: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 35 30 35 38 0F 01 00 00 78 94 07 01 05 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 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 10 A1 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 10 93 01 00 35 04 06 00 E0 BD 7A CE BA D0 0F BB 39 0A D3 60 B7 4A [18:08:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 D3 3F 47 00 01 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 10 93 01 00 F4 03 04 00 82 47 BB 66 B6 04 01 00 00 84 BE FB 10 CD 2A DD 55 [18:08:17]CommunicateWithHost err = 0 [18:08:17]CheckOFDResponse [18:08:17]1017 (14) - 77093643461234 [18:08:17]1041 (16) - 0000000000875058 [18:08:17]1040 (4) - 103184 [18:08:17]1012 (4) - 13.08.2024 11:46 [18:08:17]1206 (1) - 0 [18:08:17]OFD Sender: Remove packet 103184 [18:08:17]ProducePacketName [18:08:17]name=ofd_packets/00103184 [18:08:17]NVStorageDeleteData [18:08:17]Write to MH i2c: 01 00 00 5E 08 66 [18:08:17]Write i2c OK [18:08:17]MH_I2C_Read... [18:08:17]Read from MH i2c: 01 [18:08:17]MH_I2C_Read... [18:08:17]Read from MH i2c: 01 07 00 [18:08:17]MH_I2C_Read... [18:08:17]Read from MH i2c: 01 07 00 5E 08 00 00 00 00 00 F3 0C 6C [18:08:17]RasterBufferAndPrint [18:08:17]line [18:08:17]line [18:08:17]line [18:08:17]line [18:08:17]line [18:08:17]written 0, free lines is 3321 [18:08:17]MH_Cut [18:08:17]Write to MH i2c: D1 01 00 65 08 01 3F [18:08:17]Write i2c OK [18:08:17]MH_I2C_Read... [18:08:17]Read from MH i2c: D1 [18:08:17]MH_I2C_Read... [18:08:17]Read from MH i2c: D1 01 00 [18:08:17]MH_I2C_Read... [18:08:17]Read from MH i2c: D1 01 00 65 08 00 3E [18:08:17]Write to MH i2c: 01 00 00 66 08 6E [18:08:17]Write i2c OK [18:08:17]MH_I2C_Read... [18:08:18]OFD Sender: No OFD packet to send [18:08:18]*** Cut start [18:08:18]*** Purtial cut [18:08:18]*** CUTSNS_PIN = 0 [18:08:18]*** Stage 1: CUTSNS_PIN = 1 [18:08:20]Read from MH i2c: 01 [18:08:20]MH_I2C_Read... [18:08:20]*** Stop cut motor [18:08:20]*** Cut end [18:08:20]Read from MH i2c: 01 07 00 [18:08:20]MH_I2C_Read... [18:08:20]Read from MH i2c: 01 07 00 66 08 00 00 00 00 00 FF 0F 83 [18:08:20]process_action close_receipt done [18:08:20]requested_data is exist [18:08:20]produce_requested_data [18:08:20]requested_item fm.sn is exist - process it [18:08:20]wFMCommunicate request_size=4 [18:08:20]MH_SAM_APDU [18:08:20]CAPDU: 80 11 00 00 [18:08:20]Write to MH i2c: E2 08 00 67 08 80 11 00 00 00 00 00 00 E9 [18:08:20]Write i2c OK [18:08:20]MH_I2C_Read... [18:08:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:20]Read from MH i2c: E2 [18:08:20]MH_I2C_Read... [18:08:20]Read from MH i2c: E2 17 00 [18:08:20]MH_I2C_Read... [18:08:20]Read from MH i2c: E2 17 00 67 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 3D [18:08:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [18:08:20]wFMCommunicate OK [18:08:20]requested_item fd.num is exist - process it [18:08:20]SAM_PROTO_GetFieldsCounters [18:08:20]wFMCommunicate request_size=4 [18:08:20]MH_SAM_APDU [18:08:20]CAPDU: 80 13 00 00 [18:08:20]Write to MH i2c: E2 08 00 68 08 80 13 00 00 00 00 00 00 EC [18:08:20]Write i2c OK [18:08:20]MH_I2C_Read... [18:08:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:08:20]Read from MH i2c: E2 [18:08:20]MH_I2C_Read... [18:08:20]Read from MH i2c: E2 62 00 [18:08:20]MH_I2C_Read... [18:08:20]Read from MH i2c: E2 62 00 68 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 10 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [18: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 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 10 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:08:20]wFMCommunicate OK [18:08:20]SAM_PROTO_GetFieldsCounters done [18:08:20]requested_item shift.num is exist - process it [18:08:20]requested_item shift.opened is exist - process it [18:08:20]req_shift_opened [18:08:20]FM_GetShiftState [18:08:20]SAM_PROTO_GetShiftState [18:08:20]wFMCommunicate request_size=4 [18:08:20]MH_SAM_APDU [18:08:20]CAPDU: 80 13 01 00 [18:08:20]Write to MH i2c: E2 08 00 69 08 80 13 01 00 00 00 00 00 EE [18:08:20]Write i2c OK [18:08:20]MH_I2C_Read... [18:08:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:20]Read from MH i2c: E2 [18:08:20]MH_I2C_Read... [18:08:20]Read from MH i2c: E2 0E 00 [18:08:20]MH_I2C_Read... [18:08:20]Read from MH i2c: E2 0E 00 69 08 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 0C [18:08:20]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [18:08:20]wFMCommunicate OK [18:08:20]SAM_PROTO_GetShiftState done [18:08:20]FM_GetShiftState done [18:08:20]req_shift_opened done [18:08:20]requested_item shift.open_date is exist - process it [18:08:20]req_shift_open_date [18:08:20]req_shift_open_date done [18:08:20]produce_requested_data done [18:08:20]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103184,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [18:08:20]process_action_free close_receipt [18:08:20]json_value_free [18:08:20]json_value_free done [18:08:20]process_json_proto returns [18:08:20]Send response to host [18:08:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103184,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [18:08:20]free response buf [18:08:20]execute_script done [18:08:20]execute_script returns [18:08:20]free content buf [18:08:20]Sock 7.Close socket [18:08:20]Sock 7.Thread stoped [18:08:23]OFD Sender: No OFD packet to send [18:08:28]OFD Sender: No OFD packet to send [18:08:33]OFD Sender: No OFD packet to send [18:08:38]OFD Sender: No OFD packet to send [18:08:43]OFD Sender: No OFD packet to send [18:08:48]OFD Sender: No OFD packet to send [18:08:53]OFD Sender: No OFD packet to send [18:08:58]OFD Sender: No OFD packet to send [18:09:03]OFD Sender: No OFD packet to send [18:09:08]OFD Sender: No OFD packet to send [18:09:13]OFD Sender: No OFD packet to send [18:09:18]OFD Sender: No OFD packet to send [18:09:23]OFD Sender: No OFD packet to send [18:09:28]OFD Sender: No OFD packet to send [18:09:33]OFD Sender: No OFD packet to send [18:09:38]OFD Sender: No OFD packet to send [18:09:43]OFD Sender: No OFD packet to send [18:09:48]OFD Sender: No OFD packet to send [18:09:53]OFD Sender: No OFD packet to send [18:09:58]OFD Sender: No OFD packet to send [18:10:03]OFD Sender: No OFD packet to send [18:10:08]OFD Sender: No OFD packet to send [18:10:13]OFD Sender: No OFD packet to send [18:10:18]OFD Sender: No OFD packet to send [18:10:23]OFD Sender: No OFD packet to send [18:10:28]OFD Sender: No OFD packet to send [18:10:31]accept exits with 9 [18:10:31]New connection [18:10:31]New thread 3067116900 created [18:10:31]Thread 3067260260 joined [18:10:31]Waiting for new connection... [18:10:31] Sock 9.Parse request [18:10:31]Sock 9.Check first char [18:10:31]Sock 9.First char is OK [18:10:31]request: POST /json_proto HTTP/1.0 [18:10:31]Method: POST [18:10:31]URL: /json_proto [18:10:31]Method is POST - this is cgi request [18:10:31]url: /json_proto [18:10:31]query_string will be loaded in cgi processing [18:10:31]execute_cgi json_proto POST (null) [18:10:31]execute_cgi path=json_proto method=POST [18:10:31]POST find Content-Length [18:10:31]Host: 172.17.58.3:8080 [18:10:31]Content-Length: 675 [18:10:31]Content-Type: application/json [18:10:31] [18:10:31]POST finish read [18:10:31]Found Content-Length = 675 [18:10:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160814", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 10.850, "sum" : 800.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:31]execute_script... [18:10: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)160814", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 10.850, "sum" : 800.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:31]POST & json_proto [18:10:31]process_json_proto [18:10:31]json parsed OK: [18:10:31]protocol is kg_v1.0 [18:10:31]action value=close_receipt [18:10:31]process_action close_receipt [18:10:31]cmd_close_receipt [18:10:31]MH_GetDate [18:10:31]Write to MH i2c: F0 00 00 6A 08 61 [18:10:31]Write i2c OK [18:10:31]MH_I2C_Read... [18:10:31]Read from MH i2c: F0 [18:10:31]MH_I2C_Read... [18:10:31]Read from MH i2c: F0 09 00 [18:10:31]MH_I2C_Read... [18:10:31]Read from MH i2c: F0 09 00 6A 08 00 99 A1 BB 66 DC E4 6D 64 56 [18:10:31]GetLastDocTimeStamp 1723572496 [18:10:31]current date 1723572633 [18:10:31]FM_GetShiftState [18:10:31]SAM_PROTO_GetShiftState [18:10:31]wFMCommunicate request_size=4 [18:10:31]MH_SAM_APDU [18:10:31]CAPDU: 80 13 01 00 [18:10:31]Write to MH i2c: E2 08 00 6B 08 80 13 01 00 00 00 00 00 F0 [18:10:31]Write i2c OK [18:10:31]MH_I2C_Read... [18:10:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:31]Read from MH i2c: E2 [18:10:31]MH_I2C_Read... [18:10:31]Read from MH i2c: E2 0E 00 [18:10:31]MH_I2C_Read... [18:10:31]Read from MH i2c: E2 0E 00 6B 08 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 0E [18:10:31]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [18:10:31]wFMCommunicate OK [18:10:31]SAM_PROTO_GetShiftState done [18:10:31]FM_GetShiftState done [18:10:31]opened in 1723506770 [18:10:31]opened+sec_in_day 1723593170 [18:10:31]quantity*price = 80073 [18:10:31]sum+1 = 80074 [18:10:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.73 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.09 НДС 12% : 85.03 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 96 13.08.2024 18:10 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103185 ФПД: 188420969826329 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T181033&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103185&fm=188420969826329&tin=02508201610067®Number=0000000000092718&sum=80000 [18:10:33]StoreToDocumentArchive [18:10:33]shift 464 fd 103185 [18:10:33]save to /storage/0464/doc_00103185 [18:10:33]save last doc name /storage/0464/doc_00103185 to /storage/kkm_last_doc_name [18:10:33]save OK [18:10:33]Clear old archive folders... [18:10:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:10:33]tlvbuf is 0020B7B0 [18:10:33]SAM_PROTO_ClearQueue [18:10:33]wFMCommunicate request_size=4 [18:10:33]MH_SAM_APDU [18:10:33]CAPDU: 80 09 00 00 [18:10:33]Write to MH i2c: E2 08 00 78 08 80 09 00 00 00 00 00 00 F2 [18:10:33]Write i2c OK [18:10:33]MH_I2C_Read... [18:10:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:10:33]Read from MH i2c: E2 [18:10:33]MH_I2C_Read... [18:10:33]Read from MH i2c: E2 03 00 [18:10:33]MH_I2C_Read... [18:10:33]Read from MH i2c: E2 03 00 78 08 00 90 00 F4 [18:10:33]RAPDU: 90 00 [18:10:33]wFMCommunicate OK [18:10:33]SAM_PROTO_ClearQueue done [18:10:33]KKMCreateOFDPacket [18:10:33]OFDProtocolAddRootSTLVToBuf [18:10:33]FM_MakeSignedData [18:10:33]FM_MakeSignedData [18:10:33]SAM_PROTO_SignData [18:10:33]wFMCommunicate request_size=4 [18:10:33]MH_SAM_APDU [18:10:33]CAPDU: 80 0D 01 02 [18:10:33]Write to MH i2c: E2 08 00 79 08 80 0D 01 02 00 00 00 00 FA [18:10:33]Write i2c OK [18:10:33]MH_I2C_Read... [18:10:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:10:33]Read from MH i2c: E2 [18:10:33]MH_I2C_Read... [18:10:33]Read from MH i2c: E2 03 00 [18:10:33]MH_I2C_Read... [18:10:33]Read from MH i2c: E2 03 00 79 08 00 90 00 F5 [18:10:33]RAPDU: 90 00 [18:10:33]wFMCommunicate OK [18:10:33]wFMCommunicate request_size=255 [18:10:33]MH_SAM_APDU [18:10: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 62 2A 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 C9 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 C5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 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 60 00 00 00 F4 03 04 00 99 A1 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 11 93 01 00 35 04 06 00 AB 5E 2C F9 [18:10:33]Write to MH i2c: E2 02 01 7A 08 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 62 2A 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 C9 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 C5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 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 60 00 00 00 F4 03 04 00 99 A1 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 11 93 01 00 35 04 06 00 AB 5E 2C F9 00 00 C8 [18:10:33]Write i2c OK [18:10:33]MH_I2C_Read... [18:10:33]OFD Sender: No OFD packet to send [18:10:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:33]Read from MH i2c: E2 [18:10:33]MH_I2C_Read... [18:10:33]Read from MH i2c: E2 03 00 [18:10:33]MH_I2C_Read... [18:10:33]Read from MH i2c: E2 03 00 7A 08 00 90 00 F6 [18:10:33]RAPDU: 90 00 [18:10:33]wFMCommunicate OK [18:10:33]wFMCommunicate request_size=7 [18:10:33]MH_SAM_APDU [18:10:33]CAPDU: 80 0D 02 02 02 88 19 [18:10:33]Write to MH i2c: E2 0A 00 7B 08 80 0D 02 02 02 00 88 19 00 00 A2 [18:10:33]Write i2c OK [18:10:33]MH_I2C_Read... [18:10:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:33]Read from MH i2c: E2 [18:10:33]MH_I2C_Read... [18:10:33]Read from MH i2c: E2 03 00 [18:10:33]MH_I2C_Read... [18:10:33]Read from MH i2c: E2 03 00 7B 08 00 90 00 F7 [18:10:33]RAPDU: 90 00 [18:10:33]wFMCommunicate OK [18:10:33]wFMCommunicate request_size=4 [18:10:33]MH_SAM_APDU [18:10:33]CAPDU: 80 0D 03 02 [18:10:33]Write to MH i2c: E2 08 00 7C 08 80 0D 03 02 00 00 00 00 FF [18:10:33]Write i2c OK [18:10:33]MH_I2C_Read... [18:10:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:10:33]Read from MH i2c: E2 [18:10:33]MH_I2C_Read... [18:10:33]Read from MH i2c: E2 0B 00 [18:10:33]MH_I2C_Read... [18:10:33]Read from MH i2c: E2 0B 00 7C 08 00 32 5C EA 54 82 D7 7E A6 90 00 49 [18:10:33]RAPDU: 32 5C EA 54 82 D7 7E A6 90 00 [18:10:33]wFMCommunicate OK [18:10:33]SAM_PROTO_SignData done [18:10:33]FM_MakeSignedData done [18:10:33]CreateOFDProtocolMessage [18:10:33]wFMCommunicate request_size=4 [18:10:33]MH_SAM_APDU [18:10:33]CAPDU: 80 11 00 00 [18:10:33]Write to MH i2c: E2 08 00 7D 08 80 11 00 00 00 00 00 00 FF [18:10:33]Write i2c OK [18:10:33]MH_I2C_Read... [18:10:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:33]Read from MH i2c: E2 [18:10:33]MH_I2C_Read... [18:10:33]Read from MH i2c: E2 17 00 [18:10:33]MH_I2C_Read... [18:10:33]Read from MH i2c: E2 17 00 7D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 53 [18:10:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [18:10:33]wFMCommunicate OK [18:10:33]CreateOFDProtocolMessage done [18:10:33]OFDSenderStorePacket 103185 [18:10:33]StoreOFDPacket docnum=103185 [18:10:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 1D DF 04 01 F3 08 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 62 2A 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 C9 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 C5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 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 60 00 00 00 F4 03 04 00 99 A1 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 11 93 01 00 35 04 06 00 AB 5E 2C F9 88 19 32 5C EA 54 82 D7 7E A6 [18:10:33]CheckFolder [18:10:33]dirname=/storage/ofd_packets [18:10:33]CheckFolder done [18:10:33]ProducePacketName [18:10:33]name=ofd_packets/00103185 [18:10:33]NVStorageSaveData ofd_packets/00103185 [18:10:33]File name is /storage/ofd_packets/00103185 [18:10:33]Write 298 bytes [18:10:33]NVStorageSaveData done [18:10:33]OFDSenderStorePacket done [18:10:33]KKMCreateOFDPacket done [18:10:33]NVStorageSaveData kkm_last_timestamp [18:10:33]File name is /storage/kkm_last_timestamp [18:10:33]Write 4 bytes [18:10:33]NVStorageSaveData done [18:10:33]ExternCall_PrintAddStr [18:10:33]wPrintStart [18:10:33]Write to MH i2c: 01 00 00 7E 08 86 [18:10:33]Write i2c OK [18:10:33]MH_I2C_Read... [18:10:33]Read from MH i2c: 01 [18:10:33]MH_I2C_Read... [18:10:33]Read from MH i2c: 01 07 00 [18:10:33]MH_I2C_Read... [18:10:33]Read from MH i2c: 01 07 00 7E 08 00 00 00 00 00 FF 0F 9B [18:10:33]RasterBufferAndPrint [18:10:33]line Счет N : (1)160814 [18:10:33]line ИНН: 02508201610067 [18:10:33]line Контрольно-Кассовый Чек [18:10:33]line ПРОДАЖА [18:10:33]line ТРК (МРК, ГНК) : 13 [18:10:33]line Товар: 2710194210 [18:10:33]line ДТ-К-5 [18:10:33]line 10.850 * 73.80 [18:10:33]line = 800.73 [18:10:33]line НДС 12% НСП 1% [18:10:33]line > о реализуемом товаре [18:10:33]line ОКРУГЛЕНИЕ: -0.73 [18:10:33]line ИТОГО: 800.00 [18:10:33]line Внесено: 800.00 [18:10:33]line СДАЧА: 0.00 [18:10:33]line НСП 1% : 7.09 [18:10:33]line НДС 12% : 85.03 [18:10:33]line Наличными: 800.00 [18:10:33]line Безнал.: 0.00 [18:10:33]line Место: АЗС № 38 "Партнер Нефть" [18:10:33]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [18:10:33]line СНО: Общий режим [18:10:33]line Чек 96 13.08.2024 18:10 [18:10:33]line Смена: 464 ФФД: 1.0 [18:10:33]line ЗНМ: 0300000126 [18:10:33]line РНМ: 0000000000092718 [18:10:33]line Версия ККМ: 001 [18:10:33]line ФМ: 0000000000875058 [18:10:33]line ФД: 103185 [18:10:33]line ФПД: 188420969826329 [18:10:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T181033&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103185&fm=188420969826329&tin=02508201610067®Number=0000000000092718&sum=80000 [18:10:33]OFD Sender: Processing packet 103185 [packets to send 69, broken 68] [18:10:33]ProducePacketName [18:10:33]name=ofd_packets/00103185 [18:10:33]OFD Sender: To server: pG, [18:10:33]CommunicateWithHost lk.salyk.kg:30040 [18:10:33]ConnectInit lk.salyk.kg [18:10:33]written 0, free lines is 4095 [18:10:34]Connected sock=10 [18:10:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 1D DF 04 01 F3 08 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 62 2A 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 C9 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 C5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 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 60 00 00 00 F4 03 04 00 99 A1 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 11 93 01 00 35 04 06 00 AB 5E 2C F9 88 19 32 5C EA 54 82 D7 7E A6 [18:10:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 5C 07 47 00 25 A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 11 93 01 00 F4 03 04 00 0B 48 BB 66 B6 04 01 00 00 14 A6 91 0B 23 A2 47 F8 [18:10:34]CommunicateWithHost err = 0 [18:10:34]CheckOFDResponse [18:10:34]1017 (14) - 77093643461234 [18:10:34]1041 (16) - 0000000000875058 [18:10:34]1040 (4) - 103185 [18:10:34]1012 (4) - 13.08.2024 11:48 [18:10:34]1206 (1) - 0 [18:10:34]OFD Sender: Remove packet 103185 [18:10:34]ProducePacketName [18:10:34]name=ofd_packets/00103185 [18:10:34]NVStorageDeleteData [18:10:34]Write to MH i2c: 01 00 00 A9 08 B1 [18:10:34]Write i2c OK [18:10:34]MH_I2C_Read... [18:10:34]Read from MH i2c: 01 [18:10:34]MH_I2C_Read... [18:10:34]Read from MH i2c: 01 07 00 [18:10:34]MH_I2C_Read... [18:10:34]Read from MH i2c: 01 07 00 A9 08 00 00 00 00 00 E2 0C A6 [18:10:34]RasterBufferAndPrint [18:10:34]line [18:10:34]line [18:10:34]line [18:10:34]line [18:10:34]line [18:10:34]written 0, free lines is 3304 [18:10:34]MH_Cut [18:10:34]Write to MH i2c: D1 01 00 B0 08 01 8A [18:10:34]Write i2c OK [18:10:34]MH_I2C_Read... [18:10:34]Read from MH i2c: D1 [18:10:34]MH_I2C_Read... [18:10:34]Read from MH i2c: D1 01 00 [18:10:34]MH_I2C_Read... [18:10:34]Read from MH i2c: D1 01 00 B0 08 00 89 [18:10:34]Write to MH i2c: 01 00 00 B1 08 B9 [18:10:34]Write i2c OK [18:10:34]MH_I2C_Read... [18:10:34]OFD Sender: No OFD packet to send [18:10:35]*** Cut start [18:10:35]*** Purtial cut [18:10:35]*** Stage 1: CUTSNS_PIN = 1 [18:10:35]Read from MH i2c: 01 [18:10:35]MH_I2C_Read... [18:10:35]*** Stop cut motor [18:10:35]*** Cut end [18:10:35]Read from MH i2c: 01 07 00 [18:10:35]MH_I2C_Read... [18:10:35]Read from MH i2c: 01 07 00 B1 08 00 00 00 00 00 FF 0F CE [18:10:35]process_action close_receipt done [18:10:35]requested_data is exist [18:10:35]produce_requested_data [18:10:35]requested_item fm.sn is exist - process it [18:10:35]wFMCommunicate request_size=4 [18:10:35]MH_SAM_APDU [18:10:35]CAPDU: 80 11 00 00 [18:10:35]Write to MH i2c: E2 08 00 B2 08 80 11 00 00 00 00 00 00 34 [18:10:35]Write i2c OK [18:10:35]MH_I2C_Read... [18:10:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:35]Read from MH i2c: E2 [18:10:35]MH_I2C_Read... [18:10:35]Read from MH i2c: E2 17 00 [18:10:35]MH_I2C_Read... [18:10:35]Read from MH i2c: E2 17 00 B2 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 88 [18:10:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [18:10:35]wFMCommunicate OK [18:10:35]requested_item fd.num is exist - process it [18:10:35]SAM_PROTO_GetFieldsCounters [18:10:35]wFMCommunicate request_size=4 [18:10:35]MH_SAM_APDU [18:10:35]CAPDU: 80 13 00 00 [18:10:35]Write to MH i2c: E2 08 00 B3 08 80 13 00 00 00 00 00 00 37 [18:10:35]Write i2c OK [18:10:35]MH_I2C_Read... [18:10:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:10:35]Read from MH i2c: E2 [18:10:35]MH_I2C_Read... [18:10:35]Read from MH i2c: E2 62 00 [18:10:35]MH_I2C_Read... [18:10:35]Read from MH i2c: E2 62 00 B3 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 11 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [18:10:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 11 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:10:35]wFMCommunicate OK [18:10:35]SAM_PROTO_GetFieldsCounters done [18:10:35]requested_item shift.num is exist - process it [18:10:35]requested_item shift.opened is exist - process it [18:10:35]req_shift_opened [18:10:35]FM_GetShiftState [18:10:35]SAM_PROTO_GetShiftState [18:10:35]wFMCommunicate request_size=4 [18:10:35]MH_SAM_APDU [18:10:35]CAPDU: 80 13 01 00 [18:10:35]Write to MH i2c: E2 08 00 B4 08 80 13 01 00 00 00 00 00 39 [18:10:35]Write i2c OK [18:10:35]MH_I2C_Read... [18:10:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:35]Read from MH i2c: E2 [18:10:35]MH_I2C_Read... [18:10:35]Read from MH i2c: E2 0E 00 [18:10:35]MH_I2C_Read... [18:10:35]Read from MH i2c: E2 0E 00 B4 08 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 57 [18:10:35]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [18:10:35]wFMCommunicate OK [18:10:35]SAM_PROTO_GetShiftState done [18:10:35]FM_GetShiftState done [18:10:35]req_shift_opened done [18:10:35]requested_item shift.open_date is exist - process it [18:10:35]req_shift_open_date [18:10:35]req_shift_open_date done [18:10:35]produce_requested_data done [18:10:35]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103185,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [18:10:35]process_action_free close_receipt [18:10:35]json_value_free [18:10:35]json_value_free done [18:10:35]process_json_proto returns [18:10:35]Send response to host [18:10:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103185,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [18:10:35]free response buf [18:10:35]execute_script done [18:10:35]execute_script returns [18:10:35]free content buf [18:10:35]Sock 9.Close socket [18:10:35]Sock 9.Thread stoped [18:10:39]OFD Sender: No OFD packet to send [18:10:44]OFD Sender: No OFD packet to send [18:10:49]OFD Sender: No OFD packet to send [18:10:54]OFD Sender: No OFD packet to send [18:10:59]OFD Sender: No OFD packet to send [18:11:04]OFD Sender: No OFD packet to send [18:11:09]OFD Sender: No OFD packet to send [18:11:14]OFD Sender: No OFD packet to send [18:11:19]OFD Sender: No OFD packet to send [18:11:24]OFD Sender: No OFD packet to send [18:11:29]OFD Sender: No OFD packet to send [18:11:34]OFD Sender: No OFD packet to send [18:11:39]OFD Sender: No OFD packet to send [18:11:44]OFD Sender: No OFD packet to send [18:11:49]OFD Sender: No OFD packet to send [18:11:54]OFD Sender: No OFD packet to send [18:11:59]OFD Sender: No OFD packet to send [18:12:04]OFD Sender: No OFD packet to send [18:12:09]OFD Sender: No OFD packet to send [18:12:14]OFD Sender: No OFD packet to send [18:12:19]OFD Sender: No OFD packet to send [18:12:24]OFD Sender: No OFD packet to send [18:12:29]OFD Sender: No OFD packet to send [18:12:34]OFD Sender: No OFD packet to send [18:12:39]OFD Sender: No OFD packet to send [18:12:44]OFD Sender: No OFD packet to send [18:12:49]OFD Sender: No OFD packet to send [18:12:54]OFD Sender: No OFD packet to send [18:12:59]OFD Sender: No OFD packet to send [18:13:04]OFD Sender: No OFD packet to send [18:13:09]OFD Sender: No OFD packet to send [18:13:14]OFD Sender: No OFD packet to send [18:13:19]OFD Sender: No OFD packet to send [18:13:24]OFD Sender: No OFD packet to send [18:13:29]OFD Sender: No OFD packet to send [18:13:34]OFD Sender: No OFD packet to send [18:13:39]OFD Sender: No OFD packet to send [18:13:44]OFD Sender: No OFD packet to send [18:13:49]OFD Sender: No OFD packet to send [18:13:54]OFD Sender: No OFD packet to send [18:13:59]OFD Sender: No OFD packet to send [18:14:04]OFD Sender: No OFD packet to send [18:14:09]OFD Sender: No OFD packet to send [18:14:14]OFD Sender: No OFD packet to send [18:14:19]OFD Sender: No OFD packet to send [18:14:24]OFD Sender: No OFD packet to send [18:14:29]OFD Sender: No OFD packet to send [18:14:34]OFD Sender: No OFD packet to send [18:14:39]OFD Sender: No OFD packet to send [18:14:44]OFD Sender: No OFD packet to send [18:14:49]OFD Sender: No OFD packet to send [18:14:54]OFD Sender: No OFD packet to send [18:14:59]OFD Sender: No OFD packet to send [18:15:04]OFD Sender: No OFD packet to send [18:15:10]OFD Sender: No OFD packet to send [18:15:15]OFD Sender: No OFD packet to send [18:15:20]OFD Sender: No OFD packet to send [18:15:25]OFD Sender: No OFD packet to send [18:15:30]OFD Sender: No OFD packet to send [18:15:35]OFD Sender: No OFD packet to send [18:15:40]OFD Sender: No OFD packet to send [18:15:45]OFD Sender: No OFD packet to send [18:15:50]OFD Sender: No OFD packet to send [18:15:55]OFD Sender: No OFD packet to send [18:16:00]OFD Sender: No OFD packet to send [18:16:05]OFD Sender: No OFD packet to send [18:16:10]OFD Sender: No OFD packet to send [18:16:15]OFD Sender: No OFD packet to send [18:16:20]OFD Sender: No OFD packet to send [18:16:25]OFD Sender: No OFD packet to send [18:16:30]OFD Sender: No OFD packet to send [18:16:35]OFD Sender: No OFD packet to send [18:16:40]OFD Sender: No OFD packet to send [18:16:45]OFD Sender: No OFD packet to send [18:16:50]OFD Sender: No OFD packet to send [18:16:55]OFD Sender: No OFD packet to send [18:17:00]OFD Sender: No OFD packet to send [18:17:05]OFD Sender: No OFD packet to send [18:17:10]OFD Sender: No OFD packet to send [18:17:15]OFD Sender: No OFD packet to send [18:17:20]OFD Sender: No OFD packet to send [18:17:25]OFD Sender: No OFD packet to send [18:17:30]OFD Sender: No OFD packet to send [18:17:35]OFD Sender: No OFD packet to send [18:17:40]OFD Sender: No OFD packet to send [18:17:45]OFD Sender: No OFD packet to send [18:17:50]OFD Sender: No OFD packet to send [18:17:55]OFD Sender: No OFD packet to send [18:18:00]OFD Sender: No OFD packet to send [18:18:05]OFD Sender: No OFD packet to send [18:18:10]OFD Sender: No OFD packet to send [18:18:15]OFD Sender: No OFD packet to send [18:18:20]OFD Sender: No OFD packet to send [18:18:25]OFD Sender: No OFD packet to send [18:18:30]OFD Sender: No OFD packet to send [18:18:35]OFD Sender: No OFD packet to send [18:18:40]OFD Sender: No OFD packet to send [18:18:45]OFD Sender: No OFD packet to send [18:18:50]OFD Sender: No OFD packet to send [18:18:55]OFD Sender: No OFD packet to send [18:19:00]OFD Sender: No OFD packet to send [18:19:05]OFD Sender: No OFD packet to send [18:19:10]OFD Sender: No OFD packet to send [18:19:15]OFD Sender: No OFD packet to send [18:19:20]OFD Sender: No OFD packet to send [18:19:25]OFD Sender: No OFD packet to send [18:19:30]OFD Sender: No OFD packet to send [18:19:35]OFD Sender: No OFD packet to send [18:19:40]OFD Sender: No OFD packet to send [18:19:45]OFD Sender: No OFD packet to send [18:19:50]OFD Sender: No OFD packet to send [18:19:55]OFD Sender: No OFD packet to send [18:20:00]OFD Sender: No OFD packet to send [18:20:05]OFD Sender: No OFD packet to send [18:20:10]OFD Sender: No OFD packet to send [18:20:15]OFD Sender: No OFD packet to send [18:20:20]OFD Sender: No OFD packet to send [18:20:25]OFD Sender: No OFD packet to send [18:20:30]OFD Sender: No OFD packet to send [18:20:35]OFD Sender: No OFD packet to send [18:20:40]OFD Sender: No OFD packet to send [18:20:45]OFD Sender: No OFD packet to send [18:20:50]OFD Sender: No OFD packet to send [18:20:55]OFD Sender: No OFD packet to send [18:21:00]OFD Sender: No OFD packet to send [18:21:05]OFD Sender: No OFD packet to send [18:21:10]OFD Sender: No OFD packet to send [18:21:15]OFD Sender: No OFD packet to send [18:21:20]OFD Sender: No OFD packet to send [18:21:25]OFD Sender: No OFD packet to send [18:21:30]OFD Sender: No OFD packet to send [18:21:35]OFD Sender: No OFD packet to send [18:21:40]OFD Sender: No OFD packet to send [18:21:45]OFD Sender: No OFD packet to send [18:21:50]OFD Sender: No OFD packet to send [18:21:55]OFD Sender: No OFD packet to send [18:22:00]OFD Sender: No OFD packet to send [18:22:05]OFD Sender: No OFD packet to send [18:22:10]OFD Sender: No OFD packet to send [18:22:15]OFD Sender: No OFD packet to send [18:22:20]OFD Sender: No OFD packet to send [18:22:25]OFD Sender: No OFD packet to send [18:22:30]OFD Sender: No OFD packet to send [18:22:35]OFD Sender: No OFD packet to send [18:22:40]OFD Sender: No OFD packet to send [18:22:45]OFD Sender: No OFD packet to send [18:22:50]OFD Sender: No OFD packet to send [18:22:55]OFD Sender: No OFD packet to send [18:23:00]OFD Sender: No OFD packet to send [18:23:05]OFD Sender: No OFD packet to send [18:23:10]OFD Sender: No OFD packet to send [18:23:15]OFD Sender: No OFD packet to send [18:23:20]OFD Sender: No OFD packet to send [18:23:25]OFD Sender: No OFD packet to send [18:23:30]OFD Sender: No OFD packet to send [18:23:35]OFD Sender: No OFD packet to send [18:23:40]OFD Sender: No OFD packet to send [18:23:45]OFD Sender: No OFD packet to send [18:23:50]OFD Sender: No OFD packet to send [18:23:55]OFD Sender: No OFD packet to send [18:24:00]OFD Sender: No OFD packet to send [18:24:05]OFD Sender: No OFD packet to send [18:24:10]OFD Sender: No OFD packet to send [18:24:15]OFD Sender: No OFD packet to send [18:24:20]OFD Sender: No OFD packet to send [18:24:25]OFD Sender: No OFD packet to send [18:24:30]OFD Sender: No OFD packet to send [18:24:35]OFD Sender: No OFD packet to send [18:24:40]OFD Sender: No OFD packet to send [18:24:45]OFD Sender: No OFD packet to send [18:24:50]OFD Sender: No OFD packet to send [18:24:55]OFD Sender: No OFD packet to send [18:25:00]OFD Sender: No OFD packet to send [18:25:05]OFD Sender: No OFD packet to send [18:25:10]OFD Sender: No OFD packet to send [18:25:15]OFD Sender: No OFD packet to send [18:25:20]OFD Sender: No OFD packet to send [18:25:25]OFD Sender: No OFD packet to send [18:25:30]OFD Sender: No OFD packet to send [18:25:35]OFD Sender: No OFD packet to send [18:25:40]OFD Sender: No OFD packet to send [18:25:45]OFD Sender: No OFD packet to send [18:25:50]OFD Sender: No OFD packet to send [18:25:55]OFD Sender: No OFD packet to send [18:26:00]OFD Sender: No OFD packet to send [18:26:05]OFD Sender: No OFD packet to send [18:26:10]OFD Sender: No OFD packet to send [18:26:15]OFD Sender: No OFD packet to send [18:26:20]OFD Sender: No OFD packet to send [18:26:25]OFD Sender: No OFD packet to send [18:26:30]OFD Sender: No OFD packet to send [18:26:35]OFD Sender: No OFD packet to send [18:26:40]OFD Sender: No OFD packet to send [18:26:45]OFD Sender: No OFD packet to send [18:26:50]OFD Sender: No OFD packet to send [18:26:55]OFD Sender: No OFD packet to send [18:27:00]OFD Sender: No OFD packet to send [18:27:05]OFD Sender: No OFD packet to send [18:27:10]OFD Sender: No OFD packet to send [18:27:15]OFD Sender: No OFD packet to send [18:27:20]OFD Sender: No OFD packet to send [18:27:25]OFD Sender: No OFD packet to send [18:27:30]OFD Sender: No OFD packet to send [18:27:35]OFD Sender: No OFD packet to send [18:27:40]OFD Sender: No OFD packet to send [18:27:45]OFD Sender: No OFD packet to send [18:27:50]OFD Sender: No OFD packet to send [18:27:55]OFD Sender: No OFD packet to send [18:28:00]OFD Sender: No OFD packet to send [18:28:05]OFD Sender: No OFD packet to send [18:28:10]OFD Sender: No OFD packet to send [18:28:15]OFD Sender: No OFD packet to send [18:28:20]OFD Sender: No OFD packet to send [18:28:25]OFD Sender: No OFD packet to send [18:28:30]OFD Sender: No OFD packet to send [18:28:35]OFD Sender: No OFD packet to send [18:28:40]OFD Sender: No OFD packet to send [18:28:45]OFD Sender: No OFD packet to send [18:28:50]OFD Sender: No OFD packet to send [18:28:55]OFD Sender: No OFD packet to send [18:29:00]OFD Sender: No OFD packet to send [18:29:05]OFD Sender: No OFD packet to send [18:29:10]OFD Sender: No OFD packet to send [18:29:15]OFD Sender: No OFD packet to send [18:29:16]accept exits with 7 [18:29:16]New connection [18:29:16]New thread 3067260260 created [18:29:16]Thread 3067116900 joined [18:29:16]Waiting for new connection... [18:29:16] Sock 7.Parse request [18:29:16]Sock 7.Check first char [18:29:16]Sock 7.First char is OK [18:29:16]request: POST /json_proto HTTP/1.0 [18:29:16]Method: POST [18:29:16]URL: /json_proto [18:29:16]Method is POST - this is cgi request [18:29:16]url: /json_proto [18:29:16]query_string will be loaded in cgi processing [18:29:16]execute_cgi json_proto POST (null) [18:29:16]execute_cgi path=json_proto method=POST [18:29:16]POST find Content-Length [18:29:16]Host: 172.17.58.3:8080 [18:29:16]Content-Length: 619 [18:29:16]Content-Type: application/json [18:29:16] [18:29:16]POST finish read [18:29:16]Found Content-Length = 619 [18:29:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)34511", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:29:16]execute_script... [18:29: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 : (3)34511", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:29:16]POST & json_proto [18:29:16]process_json_proto [18:29:16]json parsed OK: [18:29:16]protocol is kg_v1.0 [18:29:16]action value=close_receipt [18:29:16]process_action close_receipt [18:29:16]cmd_close_receipt [18:29:16]MH_GetDate [18:29:16]Write to MH i2c: F0 00 00 B5 08 AC [18:29:16]Write i2c OK [18:29:16]MH_I2C_Read... [18:29:16]Read from MH i2c: F0 [18:29:16]MH_I2C_Read... [18:29:16]Read from MH i2c: F0 09 00 [18:29:16]MH_I2C_Read... [18:29:16]Read from MH i2c: F0 09 00 B5 08 00 FD A5 BB 66 DC E4 6D 64 09 [18:29:16]GetLastDocTimeStamp 1723572633 [18:29:16]current date 1723573757 [18:29:16]FM_GetShiftState [18:29:16]SAM_PROTO_GetShiftState [18:29:16]wFMCommunicate request_size=4 [18:29:16]MH_SAM_APDU [18:29:16]CAPDU: 80 13 01 00 [18:29:16]Write to MH i2c: E2 08 00 B6 08 80 13 01 00 00 00 00 00 3B [18:29:16]Write i2c OK [18:29:16]MH_I2C_Read... [18:29:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:16]Read from MH i2c: E2 [18:29:16]MH_I2C_Read... [18:29:16]Read from MH i2c: E2 0E 00 [18:29:16]MH_I2C_Read... [18:29:16]Read from MH i2c: E2 0E 00 B6 08 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 59 [18:29:16]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [18:29:16]wFMCommunicate OK [18:29:16]SAM_PROTO_GetShiftState done [18:29:16]FM_GetShiftState done [18:29:16]opened in 1723506770 [18:29:16]opened+sec_in_day 1723593170 [18:29:16]quantity*price = 13500 [18:29:16]sum+1 = 13501 [18:29:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 97 13.08.2024 18:29 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103186 ФПД: 215493749986897 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T182917&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103186&fm=215493749986897&tin=02508201610067®Number=0000000000092718&sum=13500 0 [18:29:17]StoreToDocumentArchive [18:29:17]shift 464 fd 103186 [18:29:17]save to /storage/0464/doc_00103186 [18:29:17]save last doc name /storage/0464/doc_00103186 to /storage/kkm_last_doc_name [18:29:17]save OK [18:29:17]Clear old archive folders... [18:29:17]ProcessDocumentItem done err = 0, tmpTLVsize=272 [18:29:17]tlvbuf is B6F25C40 [18:29:17]SAM_PROTO_ClearQueue [18:29:17]wFMCommunicate request_size=4 [18:29:17]MH_SAM_APDU [18:29:17]CAPDU: 80 09 00 00 [18:29:17]Write to MH i2c: E2 08 00 C3 08 80 09 00 00 00 00 00 00 3D [18:29:17]Write i2c OK [18:29:17]MH_I2C_Read... [18:29:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:29:17]Read from MH i2c: E2 [18:29:17]MH_I2C_Read... [18:29:17]Read from MH i2c: E2 03 00 [18:29:17]MH_I2C_Read... [18:29:17]Read from MH i2c: E2 03 00 C3 08 00 90 00 3F [18:29:17]RAPDU: 90 00 [18:29:17]wFMCommunicate OK [18:29:17]SAM_PROTO_ClearQueue done [18:29:18]KKMCreateOFDPacket [18:29:18]OFDProtocolAddRootSTLVToBuf [18:29:18]FM_MakeSignedData [18:29:18]FM_MakeSignedData [18:29:18]SAM_PROTO_SignData [18:29:18]wFMCommunicate request_size=4 [18:29:18]MH_SAM_APDU [18:29:18]CAPDU: 80 0D 01 02 [18:29:18]Write to MH i2c: E2 08 00 C4 08 80 0D 01 02 00 00 00 00 45 [18:29:18]Write i2c OK [18:29:18]MH_I2C_Read... [18:29:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:29:18]Read from MH i2c: E2 [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: E2 03 00 [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: E2 03 00 C4 08 00 90 00 40 [18:29:18]RAPDU: 90 00 [18:29:18]wFMCommunicate OK [18:29:18]wFMCommunicate request_size=255 [18:29:18]MH_SAM_APDU [18:29:18]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 FD A5 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 [18:29:18]Write to MH i2c: E2 02 01 C5 08 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 FD A5 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 00 00 F7 [18:29:18]Write i2c OK [18:29:18]MH_I2C_Read... [18:29:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:18]Read from MH i2c: E2 [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: E2 03 00 [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: E2 03 00 C5 08 00 90 00 41 [18:29:18]RAPDU: 90 00 [18:29:18]wFMCommunicate OK [18:29:18]wFMCommunicate request_size=31 [18:29:18]MH_SAM_APDU [18:29:18]CAPDU: 80 0D 02 02 1A 30 30 38 37 35 30 35 38 10 04 04 00 12 93 01 00 35 04 06 00 C3 FD 8C 6B 56 51 [18:29:18]Write to MH i2c: E2 22 00 C6 08 80 0D 02 02 1A 00 30 30 38 37 35 30 35 38 10 04 04 00 12 93 01 00 35 04 06 00 C3 FD 8C 6B 56 51 00 00 78 [18:29:18]Write i2c OK [18:29:18]MH_I2C_Read... [18:29:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:18]Read from MH i2c: E2 [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: E2 03 00 [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: E2 03 00 C6 08 00 90 00 42 [18:29:18]RAPDU: 90 00 [18:29:18]wFMCommunicate OK [18:29:18]wFMCommunicate request_size=4 [18:29:18]MH_SAM_APDU [18:29:18]CAPDU: 80 0D 03 02 [18:29:18]Write to MH i2c: E2 08 00 C7 08 80 0D 03 02 00 00 00 00 4A [18:29:18]Write i2c OK [18:29:18]MH_I2C_Read... [18:29:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:29:18]Read from MH i2c: E2 [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: E2 0B 00 [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: E2 0B 00 C7 08 00 E3 76 4B 4C F1 3A 7E 35 90 00 19 [18:29:18]RAPDU: E3 76 4B 4C F1 3A 7E 35 90 00 [18:29:18]wFMCommunicate OK [18:29:18]SAM_PROTO_SignData done [18:29:18]FM_MakeSignedData done [18:29:18]CreateOFDProtocolMessage [18:29:18]wFMCommunicate request_size=4 [18:29:18]MH_SAM_APDU [18:29:18]CAPDU: 80 11 00 00 [18:29:18]Write to MH i2c: E2 08 00 C8 08 80 11 00 00 00 00 00 00 4A [18:29:18]Write i2c OK [18:29:18]MH_I2C_Read... [18:29:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:18]Read from MH i2c: E2 [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: E2 17 00 [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: E2 17 00 C8 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 9E [18:29:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [18:29:18]wFMCommunicate OK [18:29:18]CreateOFDProtocolMessage done [18:29:18]OFDSenderStorePacket 103186 [18:29:18]StoreOFDPacket docnum=103186 [18:29:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 24 01 00 00 54 69 1C 01 EB 87 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 FD A5 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 12 93 01 00 35 04 06 00 C3 FD 8C 6B 56 51 E3 76 4B 4C F1 3A 7E 35 [18:29:18]CheckFolder [18:29:18]dirname=/storage/ofd_packets [18:29:18]CheckFolder done [18:29:18]ProducePacketName [18:29:18]name=ofd_packets/00103186 [18:29:18]NVStorageSaveData ofd_packets/00103186 [18:29:18]File name is /storage/ofd_packets/00103186 [18:29:18]Write 322 bytes [18:29:18]NVStorageSaveData done [18:29:18]OFDSenderStorePacket done [18:29:18]KKMCreateOFDPacket done [18:29:18]NVStorageSaveData kkm_last_timestamp [18:29:18]File name is /storage/kkm_last_timestamp [18:29:18]Write 4 bytes [18:29:18]NVStorageSaveData done [18:29:18]ExternCall_PrintAddStr [18:29:18]wPrintStart [18:29:18]Write to MH i2c: 01 00 00 C9 08 D1 [18:29:18]Write i2c OK [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: 01 [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: 01 07 00 [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: 01 07 00 C9 08 00 00 00 00 00 FF 0F E6 [18:29:18]RasterBufferAndPrint [18:29:18]line Счет N : (3)34511 [18:29:18]line ИНН: 02508201610067 [18:29:18]line Контрольно-Кассовый Чек [18:29:18]line ПРОДАЖА [18:29:18]line Товар: 48745000 [18:29:18]line Сигареты Winston Purple Mix [18:29:18]line 1.000 * 135.00 [18:29:18]line = 135.00 [18:29:18]line НДС 12% НСП 1% [18:29:18]line > о реализуемом товаре [18:29:18]line ИТОГО: 135.00 [18:29:18]line НСП 1% : 1.19 [18:29:18]line НДС 12% : 14.34 [18:29:18]line Наличными: 135.00 [18:29:18]line Безнал.: 0.00 [18:29:18]line Место: АЗС № 38 "Партнер Нефть" [18:29:18]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [18:29:18]line СНО: Общий режим [18:29:18]line Чек 97 13.08.2024 18:29 [18:29:18]line Смена: 464 ФФД: 1.0 [18:29:18]line ЗНМ: 0300000126 [18:29:18]line РНМ: 0000000000092718 [18:29:18]line Версия ККМ: 001 [18:29:18]line ФМ: 0000000000875058 [18:29:18]line ФД: 103186 [18:29:18]line ФПД: 215493749986897 [18:29:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T182917&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103186&fm=215493749986897&tin=02508201610067®Number=0000000000092718&sum=13500 [18:29:18]line 0 [18:29:18]OFD Sender: Processing packet 103186 [packets to send 69, broken 68] [18:29:18]ProducePacketName [18:29:18]name=ofd_packets/00103186 [18:29:18]OFD Sender: To server: pG, [18:29:18]CommunicateWithHost lk.salyk.kg:30040 [18:29:18]ConnectInit lk.salyk.kg [18:29:18]written 0, free lines is 4095 [18:29:18]Connected sock=10 [18:29:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 24 01 00 00 54 69 1C 01 EB 87 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 FD A5 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 12 93 01 00 35 04 06 00 C3 FD 8C 6B 56 51 E3 76 4B 4C F1 3A 7E 35 [18:29:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 C1 53 47 00 D1 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 12 93 01 00 F4 03 04 00 70 4C BB 66 B6 04 01 00 00 3D 45 4D 09 B7 51 B3 45 [18:29:19]CommunicateWithHost err = 0 [18:29:19]CheckOFDResponse [18:29:19]1017 (14) - 77093643461234 [18:29:19]1041 (16) - 0000000000875058 [18:29:19]1040 (4) - 103186 [18:29:19]1012 (4) - 13.08.2024 12:07 [18:29:19]1206 (1) - 0 [18:29:19]OFD Sender: Remove packet 103186 [18:29:19]ProducePacketName [18:29:19]name=ofd_packets/00103186 [18:29:19]NVStorageDeleteData [18:29:19]Write to MH i2c: 01 00 00 F1 08 F9 [18:29:19]Write i2c OK [18:29:19]MH_I2C_Read... [18:29:19]Read from MH i2c: 01 [18:29:19]MH_I2C_Read... [18:29:19]Read from MH i2c: 01 07 00 [18:29:19]MH_I2C_Read... [18:29:19]Read from MH i2c: 01 07 00 F1 08 00 00 00 00 00 F8 0C 04 [18:29:19]RasterBufferAndPrint [18:29:19]line [18:29:19]line [18:29:19]line [18:29:19]line [18:29:19]line [18:29:19]written 0, free lines is 3326 [18:29:19]MH_Cut [18:29:19]Write to MH i2c: D1 01 00 F8 08 01 D2 [18:29:19]Write i2c OK [18:29:19]MH_I2C_Read... [18:29:19]Read from MH i2c: D1 [18:29:19]MH_I2C_Read... [18:29:19]Read from MH i2c: D1 01 00 [18:29:19]MH_I2C_Read... [18:29:19]Read from MH i2c: D1 01 00 F8 08 00 D1 [18:29:19]Write to MH i2c: 01 00 00 F9 08 01 [18:29:19]Write i2c OK [18:29:19]MH_I2C_Read... [18:29:19]OFD Sender: No OFD packet to send [18:29:19]*** Cut start [18:29:19]*** Purtial cut [18:29:19]*** CUTSNS_PIN = 0 [18:29:20]*** Stage 1: CUTSNS_PIN = 1 [18:29:21]Read from MH i2c: 01 [18:29:21]MH_I2C_Read... [18:29:21]*** Stop cut motor [18:29:22]*** Cut end [18:29:22]Read from MH i2c: 01 07 00 [18:29:22]MH_I2C_Read... [18:29:22]Read from MH i2c: 01 07 00 F9 08 00 00 00 00 00 FF 0F 16 [18:29:22]process_action close_receipt done [18:29:22]requested_data is exist [18:29:22]produce_requested_data [18:29:22]requested_item fm.sn is exist - process it [18:29:22]wFMCommunicate request_size=4 [18:29:22]MH_SAM_APDU [18:29:22]CAPDU: 80 11 00 00 [18:29:22]Write to MH i2c: E2 08 00 FA 08 80 11 00 00 00 00 00 00 7C [18:29:22]Write i2c OK [18:29:22]MH_I2C_Read... [18:29:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:22]Read from MH i2c: E2 [18:29:22]MH_I2C_Read... [18:29:22]Read from MH i2c: E2 17 00 [18:29:22]MH_I2C_Read... [18:29:22]Read from MH i2c: E2 17 00 FA 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 D0 [18:29:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [18:29:22]wFMCommunicate OK [18:29:22]requested_item fd.num is exist - process it [18:29:22]SAM_PROTO_GetFieldsCounters [18:29:22]wFMCommunicate request_size=4 [18:29:22]MH_SAM_APDU [18:29:22]CAPDU: 80 13 00 00 [18:29:22]Write to MH i2c: E2 08 00 FB 08 80 13 00 00 00 00 00 00 7F [18:29:22]Write i2c OK [18:29:22]MH_I2C_Read... [18:29:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:29:22]Read from MH i2c: E2 [18:29:22]MH_I2C_Read... [18:29:22]Read from MH i2c: E2 62 00 [18:29:22]MH_I2C_Read... [18:29:22]Read from MH i2c: E2 62 00 FB 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 12 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [18:29:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 12 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:29:22]wFMCommunicate OK [18:29:22]SAM_PROTO_GetFieldsCounters done [18:29:22]requested_item shift.num is exist - process it [18:29:22]requested_item shift.opened is exist - process it [18:29:22]req_shift_opened [18:29:22]FM_GetShiftState [18:29:22]SAM_PROTO_GetShiftState [18:29:22]wFMCommunicate request_size=4 [18:29:22]MH_SAM_APDU [18:29:22]CAPDU: 80 13 01 00 [18:29:22]Write to MH i2c: E2 08 00 FC 08 80 13 01 00 00 00 00 00 81 [18:29:22]Write i2c OK [18:29:22]MH_I2C_Read... [18:29:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:22]Read from MH i2c: E2 [18:29:22]MH_I2C_Read... [18:29:22]Read from MH i2c: E2 0E 00 [18:29:22]MH_I2C_Read... [18:29:22]Read from MH i2c: E2 0E 00 FC 08 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 9F [18:29:22]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [18:29:22]wFMCommunicate OK [18:29:22]SAM_PROTO_GetShiftState done [18:29:22]FM_GetShiftState done [18:29:22]req_shift_opened done [18:29:22]requested_item shift.open_date is exist - process it [18:29:22]req_shift_open_date [18:29:22]req_shift_open_date done [18:29:22]produce_requested_data done [18:29:22]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103186,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [18:29:22]process_action_free close_receipt [18:29:22]json_value_free [18:29:22]json_value_free done [18:29:22]process_json_proto returns [18:29:22]Send response to host [18:29:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103186,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [18:29:22]free response buf [18:29:22]execute_script done [18:29:22]execute_script returns [18:29:22]free content buf [18:29:22]Sock 7.Close socket [18:29:22]Sock 7.Thread stoped [18:29:24]OFD Sender: No OFD packet to send [18:29:29]OFD Sender: No OFD packet to send [18:29:34]OFD Sender: No OFD packet to send [18:29:39]OFD Sender: No OFD packet to send [18:29:44]OFD Sender: No OFD packet to send [18:29:49]OFD Sender: No OFD packet to send [18:29:54]OFD Sender: No OFD packet to send [18:29:59]OFD Sender: No OFD packet to send [18:30:04]OFD Sender: No OFD packet to send [18:30:09]OFD Sender: No OFD packet to send [18:30:14]OFD Sender: No OFD packet to send [18:30:19]OFD Sender: No OFD packet to send [18:30:24]OFD Sender: No OFD packet to send [18:30:29]OFD Sender: No OFD packet to send [18:30:34]OFD Sender: No OFD packet to send [18:30:39]OFD Sender: No OFD packet to send [18:30:44]OFD Sender: No OFD packet to send [18:30:49]OFD Sender: No OFD packet to send [18:30:54]OFD Sender: No OFD packet to send [18:30:59]OFD Sender: No OFD packet to send [18:31:04]OFD Sender: No OFD packet to send [18:31:09]OFD Sender: No OFD packet to send [18:31:14]OFD Sender: No OFD packet to send [18:31:19]OFD Sender: No OFD packet to send [18:31:24]OFD Sender: No OFD packet to send [18:31:29]OFD Sender: No OFD packet to send [18:31:34]OFD Sender: No OFD packet to send [18:31:39]OFD Sender: No OFD packet to send [18:31:44]OFD Sender: No OFD packet to send [18:31:49]OFD Sender: No OFD packet to send [18:31:54]OFD Sender: No OFD packet to send [18:31:59]OFD Sender: No OFD packet to send [18:32:04]OFD Sender: No OFD packet to send [18:32:09]OFD Sender: No OFD packet to send [18:32:14]OFD Sender: No OFD packet to send [18:32:19]OFD Sender: No OFD packet to send [18:32:24]OFD Sender: No OFD packet to send [18:32:29]OFD Sender: No OFD packet to send [18:32:34]OFD Sender: No OFD packet to send [18:32:39]OFD Sender: No OFD packet to send [18:32:44]OFD Sender: No OFD packet to send [18:32:49]OFD Sender: No OFD packet to send [18:32:54]OFD Sender: No OFD packet to send [18:32:59]OFD Sender: No OFD packet to send [18:33:04]OFD Sender: No OFD packet to send [18:33:09]OFD Sender: No OFD packet to send [18:33:14]OFD Sender: No OFD packet to send [18:33:19]OFD Sender: No OFD packet to send [18:33:24]OFD Sender: No OFD packet to send [18:33:29]OFD Sender: No OFD packet to send [18:33:34]OFD Sender: No OFD packet to send [18:33:39]OFD Sender: No OFD packet to send [18:33:44]OFD Sender: No OFD packet to send [18:33:49]OFD Sender: No OFD packet to send [18:33:54]OFD Sender: No OFD packet to send [18:33:59]OFD Sender: No OFD packet to send [18:34:04]OFD Sender: No OFD packet to send [18:34:09]OFD Sender: No OFD packet to send [18:34:14]OFD Sender: No OFD packet to send [18:34:19]OFD Sender: No OFD packet to send [18:34:24]OFD Sender: No OFD packet to send [18:34:29]OFD Sender: No OFD packet to send [18:34:34]OFD Sender: No OFD packet to send [18:34:39]OFD Sender: No OFD packet to send [18:34:44]OFD Sender: No OFD packet to send [18:34:49]OFD Sender: No OFD packet to send [18:34:54]OFD Sender: No OFD packet to send [18:34:59]OFD Sender: No OFD packet to send [18:35:04]OFD Sender: No OFD packet to send [18:35:06]accept exits with 9 [18:35:06]New connection [18:35:06]New thread 3067116900 created [18:35:06]Thread 3067260260 joined [18:35:06]Waiting for new connection... [18:35:06] Sock 9.Parse request [18:35:06]Sock 9.Check first char [18:35:06]Sock 9.First char is OK [18:35:06]request: POST /json_proto HTTP/1.0 [18:35:06]Method: POST [18:35:06]URL: /json_proto [18:35:06]Method is POST - this is cgi request [18:35:06]url: /json_proto [18:35:06]query_string will be loaded in cgi processing [18:35:06]execute_cgi json_proto POST (null) [18:35:06]execute_cgi path=json_proto method=POST [18:35:06]POST find Content-Length [18:35:06]Host: 172.17.58.3:8080 [18:35:06]Content-Length: 676 [18:35:06]Content-Type: application/json [18:35:06] [18:35:06]POST finish read [18:35:06]Found Content-Length = 676 [18:35:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160815", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 4.092, "sum" : 269.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 269.00, "payments": [ { "type": 0, "sum" : 269.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:06]execute_script... [18:35:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160815", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 4.092, "sum" : 269.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 269.00, "payments": [ { "type": 0, "sum" : 269.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:06]POST & json_proto [18:35:06]process_json_proto [18:35:06]json parsed OK: [18:35:06]protocol is kg_v1.0 [18:35:06]action value=close_receipt [18:35:06]process_action close_receipt [18:35:06]cmd_close_receipt [18:35:06]MH_GetDate [18:35:06]Write to MH i2c: F0 00 00 FD 08 F4 [18:35:06]Write i2c OK [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: F0 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: F0 09 00 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: F0 09 00 FD 08 00 5C A7 BB 66 DC E4 6D 64 B2 [18:35:06]GetLastDocTimeStamp 1723573757 [18:35:06]current date 1723574108 [18:35:06]FM_GetShiftState [18:35:06]SAM_PROTO_GetShiftState [18:35:06]wFMCommunicate request_size=4 [18:35:06]MH_SAM_APDU [18:35:06]CAPDU: 80 13 01 00 [18:35:06]Write to MH i2c: E2 08 00 FE 08 80 13 01 00 00 00 00 00 83 [18:35:06]Write i2c OK [18:35:06]MH_I2C_Read... [18:35:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:06]Read from MH i2c: E2 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: E2 0E 00 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: E2 0E 00 FE 08 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 A1 [18:35:06]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [18:35:06]wFMCommunicate OK [18:35:06]SAM_PROTO_GetShiftState done [18:35:06]FM_GetShiftState done [18:35:06]opened in 1723506770 [18:35:06]opened+sec_in_day 1723593170 [18:35:06]quantity*price = 26966 [18:35:06]sum+1 = 26967 [18:35:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 269.00 Внесено: 300.00 СДАЧА: 31.00 НСП 1% : 2.39 НДС 12% : 28.64 Наличными: 269.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 98 13.08.2024 18:35 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103187 ФПД: 39236901358134 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T183508&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103187&fm=39236901358134&tin=02508201610067®Number=0000000000092718&sum=26900 [18:35:07]StoreToDocumentArchive [18:35:07]shift 464 fd 103187 [18:35:07]save to /storage/0464/doc_00103187 [18:35:07]save last doc name /storage/0464/doc_00103187 to /storage/kkm_last_doc_name [18:35:07]save OK [18:35:07]Clear old archive folders... [18:35:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:35:07]tlvbuf is B6EF3B60 [18:35:07]SAM_PROTO_ClearQueue [18:35:07]wFMCommunicate request_size=4 [18:35:07]MH_SAM_APDU [18:35:07]CAPDU: 80 09 00 00 [18:35:07]Write to MH i2c: E2 08 00 0B 09 80 09 00 00 00 00 00 00 86 [18:35:08]Write i2c OK [18:35:08]MH_I2C_Read... [18:35:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:35:08]Read from MH i2c: E2 [18:35:08]MH_I2C_Read... [18:35:08]Read from MH i2c: E2 03 00 [18:35:08]MH_I2C_Read... [18:35:08]Read from MH i2c: E2 03 00 0B 09 00 90 00 88 [18:35:08]RAPDU: 90 00 [18:35:08]wFMCommunicate OK [18:35:08]SAM_PROTO_ClearQueue done [18:35:08]KKMCreateOFDPacket [18:35:08]OFDProtocolAddRootSTLVToBuf [18:35:08]FM_MakeSignedData [18:35:08]FM_MakeSignedData [18:35:08]SAM_PROTO_SignData [18:35:08]wFMCommunicate request_size=4 [18:35:08]MH_SAM_APDU [18:35:08]CAPDU: 80 0D 01 02 [18:35:08]Write to MH i2c: E2 08 00 0C 09 80 0D 01 02 00 00 00 00 8E [18:35:08]Write i2c OK [18:35:08]MH_I2C_Read... [18:35:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:35:08]Read from MH i2c: E2 [18:35:08]MH_I2C_Read... [18:35:08]Read from MH i2c: E2 03 00 [18:35:08]MH_I2C_Read... [18:35:08]Read from MH i2c: E2 03 00 0C 09 00 90 00 89 [18:35:08]RAPDU: 90 00 [18:35:08]wFMCommunicate OK [18:35:08]wFMCommunicate request_size=255 [18:35:08]MH_SAM_APDU [18:35: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 FC 0F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 56 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 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 30 0B 00 00 00 00 07 04 06 00 14 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 62 00 00 00 F4 03 04 00 5C A7 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 13 93 01 00 35 04 06 00 23 [18:35:08]Write to MH i2c: E2 02 01 0D 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 0F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 56 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 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 30 0B 00 00 00 00 07 04 06 00 14 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 62 00 00 00 F4 03 04 00 5C A7 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 13 93 01 00 35 04 06 00 23 00 00 81 [18:35:08]Write i2c OK [18:35:08]MH_I2C_Read... [18:35:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:08]Read from MH i2c: E2 [18:35:08]MH_I2C_Read... [18:35:08]Read from MH i2c: E2 03 00 [18:35:08]MH_I2C_Read... [18:35:08]Read from MH i2c: E2 03 00 0D 09 00 90 00 8A [18:35:08]RAPDU: 90 00 [18:35:08]wFMCommunicate OK [18:35:08]wFMCommunicate request_size=10 [18:35:08]MH_SAM_APDU [18:35:08]CAPDU: 80 0D 02 02 05 AF 8D 91 4A 36 [18:35:08]Write to MH i2c: E2 0D 00 0E 09 80 0D 02 02 05 00 AF 8D 91 4A 36 00 00 E8 [18:35:08]Write i2c OK [18:35:08]MH_I2C_Read... [18:35:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:08]Read from MH i2c: E2 [18:35:08]MH_I2C_Read... [18:35:08]Read from MH i2c: E2 03 00 [18:35:08]MH_I2C_Read... [18:35:08]Read from MH i2c: E2 03 00 0E 09 00 90 00 8B [18:35:08]RAPDU: 90 00 [18:35:08]wFMCommunicate OK [18:35:08]wFMCommunicate request_size=4 [18:35:08]MH_SAM_APDU [18:35:08]CAPDU: 80 0D 03 02 [18:35:08]Write to MH i2c: E2 08 00 0F 09 80 0D 03 02 00 00 00 00 93 [18:35:08]Write i2c OK [18:35:08]MH_I2C_Read... [18:35:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:35:08]Read from MH i2c: E2 [18:35:08]MH_I2C_Read... [18:35:08]Read from MH i2c: E2 0B 00 [18:35:08]MH_I2C_Read... [18:35:08]Read from MH i2c: E2 0B 00 0F 09 00 B2 59 AB C2 B1 1C 5F 4A 90 00 82 [18:35:08]RAPDU: B2 59 AB C2 B1 1C 5F 4A 90 00 [18:35:08]wFMCommunicate OK [18:35:08]SAM_PROTO_SignData done [18:35:08]FM_MakeSignedData done [18:35:08]CreateOFDProtocolMessage [18:35:08]wFMCommunicate request_size=4 [18:35:08]MH_SAM_APDU [18:35:08]CAPDU: 80 11 00 00 [18:35:08]Write to MH i2c: E2 08 00 10 09 80 11 00 00 00 00 00 00 93 [18:35:08]Write i2c OK [18:35:08]MH_I2C_Read... [18:35:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:08]Read from MH i2c: E2 [18:35:08]MH_I2C_Read... [18:35:08]Read from MH i2c: E2 17 00 [18:35:08]MH_I2C_Read... [18:35:08]Read from MH i2c: E2 17 00 10 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 E7 [18:35:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [18:35:08]wFMCommunicate OK [18:35:08]CreateOFDProtocolMessage done [18:35:08]OFDSenderStorePacket 103187 [18:35:08]StoreOFDPacket docnum=103187 [18:35:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 D3 09 07 01 99 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 0F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 56 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 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 30 0B 00 00 00 00 07 04 06 00 14 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 62 00 00 00 F4 03 04 00 5C A7 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 13 93 01 00 35 04 06 00 23 AF 8D 91 4A 36 B2 59 AB C2 B1 1C 5F 4A [18:35:08]CheckFolder [18:35:08]dirname=/storage/ofd_packets [18:35:08]CheckFolder done [18:35:08]ProducePacketName [18:35:08]name=ofd_packets/00103187 [18:35:08]NVStorageSaveData ofd_packets/00103187 [18:35:08]File name is /storage/ofd_packets/00103187 [18:35:08]Write 301 bytes [18:35:08]NVStorageSaveData done [18:35:08]OFDSenderStorePacket done [18:35:08]KKMCreateOFDPacket done [18:35:08]NVStorageSaveData kkm_last_timestamp [18:35:08]File name is /storage/kkm_last_timestamp [18:35:08]Write 4 bytes [18:35:08]NVStorageSaveData done [18:35:08]ExternCall_PrintAddStr [18:35:08]wPrintStart [18:35:08]Write to MH i2c: 01 00 00 11 09 1A [18:35:08]Write i2c OK [18:35:08]MH_I2C_Read... [18:35:08]Read from MH i2c: 01 [18:35:08]MH_I2C_Read... [18:35:08]Read from MH i2c: 01 07 00 [18:35:08]MH_I2C_Read... [18:35:08]Read from MH i2c: 01 07 00 11 09 00 00 00 00 00 FF 0F 2F [18:35:08]RasterBufferAndPrint [18:35:08]line Счет N : (1)160815 [18:35:08]line ИНН: 02508201610067 [18:35:08]line Контрольно-Кассовый Чек [18:35:08]line ПРОДАЖА [18:35:08]line ТРК (МРК, ГНК) : 3 [18:35:08]line Товар: 2710124130 [18:35:08]line Аи-92-К-5 [18:35:08]line 4.092 * 65.90 [18:35:08]line = 269.66 [18:35:08]line НДС 12% НСП 1% [18:35:08]line > о реализуемом товаре [18:35:08]line ОКРУГЛЕНИЕ: -0.66 [18:35:08]line ИТОГО: 269.00 [18:35:08]line Внесено: 300.00 [18:35:08]line СДАЧА: 31.00 [18:35:08]line НСП 1% : 2.39 [18:35:08]line НДС 12% : 28.64 [18:35:08]line Наличными: 269.00 [18:35:08]line Безнал.: 0.00 [18:35:08]line Место: АЗС № 38 "Партнер Нефть" [18:35:08]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [18:35:08]line СНО: Общий режим [18:35:08]line Чек 98 13.08.2024 18:35 [18:35:08]line Смена: 464 ФФД: 1.0 [18:35:08]line ЗНМ: 0300000126 [18:35:08]line РНМ: 0000000000092718 [18:35:08]line Версия ККМ: 001 [18:35:08]line ФМ: 0000000000875058 [18:35:08]line ФД: 103187 [18:35:08]line ФПД: 39236901358134 [18:35:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T183508&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103187&fm=39236901358134&tin=02508201610067®Number=0000000000092718&sum=26900 [18:35:08]OFD Sender: Processing packet 103187 [packets to send 69, broken 68] [18:35:08]ProducePacketName [18:35:08]name=ofd_packets/00103187 [18:35:08]OFD Sender: To server: pG, [18:35:08]CommunicateWithHost lk.salyk.kg:30040 [18:35:08]ConnectInit lk.salyk.kg [18:35:08]written 0, free lines is 4095 [18:35:08]Connected sock=10 [18:35:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 D3 09 07 01 99 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 0F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 56 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 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 30 0B 00 00 00 00 07 04 06 00 14 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 62 00 00 00 F4 03 04 00 5C A7 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 13 93 01 00 35 04 06 00 23 AF 8D 91 4A 36 B2 59 AB C2 B1 1C 5F 4A [18:35:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 6E 5F 47 00 5C 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 35 30 35 38 10 04 04 00 13 93 01 00 F4 03 04 00 CE 4D BB 66 B6 04 01 00 00 BF 28 E5 4B 92 33 0B 18 [18:35:09]CommunicateWithHost err = 0 [18:35:09]CheckOFDResponse [18:35:09]1017 (14) - 77093643461234 [18:35:09]1041 (16) - 0000000000875058 [18:35:09]1040 (4) - 103187 [18:35:09]1012 (4) - 13.08.2024 12:13 [18:35:09]1206 (1) - 0 [18:35:09]OFD Sender: Remove packet 103187 [18:35:09]ProducePacketName [18:35:09]name=ofd_packets/00103187 [18:35:09]NVStorageDeleteData [18:35:09]Write to MH i2c: 01 00 00 3C 09 45 [18:35:09]Write i2c OK [18:35:09]MH_I2C_Read... [18:35:09]Read from MH i2c: 01 [18:35:09]MH_I2C_Read... [18:35:09]Read from MH i2c: 01 07 00 [18:35:09]MH_I2C_Read... [18:35:09]Read from MH i2c: 01 07 00 3C 09 00 00 00 00 00 E7 0C 3F [18:35:09]RasterBufferAndPrint [18:35:09]line [18:35:09]line [18:35:09]line [18:35:09]line [18:35:09]line [18:35:09]written 0, free lines is 3309 [18:35:09]MH_Cut [18:35:09]Write to MH i2c: D1 01 00 43 09 01 1E [18:35:09]Write i2c OK [18:35:09]MH_I2C_Read... [18:35:09]Read from MH i2c: D1 [18:35:09]MH_I2C_Read... [18:35:09]Read from MH i2c: D1 01 00 [18:35:09]MH_I2C_Read... [18:35:09]Read from MH i2c: D1 01 00 43 09 00 1D [18:35:09]Write to MH i2c: 01 00 00 44 09 4D [18:35:09]Write i2c OK [18:35:09]MH_I2C_Read... [18:35:09]OFD Sender: No OFD packet to send [18:35:10]*** Cut start [18:35:10]*** Purtial cut [18:35:10]*** Stage 1: CUTSNS_PIN = 1 [18:35:10]Read from MH i2c: 01 [18:35:10]MH_I2C_Read... [18:35:10]*** Stop cut motor [18:35:10]*** Cut end [18:35:10]Read from MH i2c: 01 07 00 [18:35:10]MH_I2C_Read... [18:35:10]Read from MH i2c: 01 07 00 44 09 00 00 00 00 00 FF 0F 62 [18:35:10]process_action close_receipt done [18:35:10]requested_data is exist [18:35:10]produce_requested_data [18:35:10]requested_item fm.sn is exist - process it [18:35:10]wFMCommunicate request_size=4 [18:35:10]MH_SAM_APDU [18:35:10]CAPDU: 80 11 00 00 [18:35:10]Write to MH i2c: E2 08 00 45 09 80 11 00 00 00 00 00 00 C8 [18:35:10]Write i2c OK [18:35:10]MH_I2C_Read... [18:35:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:10]Read from MH i2c: E2 [18:35:10]MH_I2C_Read... [18:35:10]Read from MH i2c: E2 17 00 [18:35:10]MH_I2C_Read... [18:35:10]Read from MH i2c: E2 17 00 45 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 1C [18:35:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [18:35:10]wFMCommunicate OK [18:35:10]requested_item fd.num is exist - process it [18:35:10]SAM_PROTO_GetFieldsCounters [18:35:10]wFMCommunicate request_size=4 [18:35:10]MH_SAM_APDU [18:35:10]CAPDU: 80 13 00 00 [18:35:10]Write to MH i2c: E2 08 00 46 09 80 13 00 00 00 00 00 00 CB [18:35:10]Write i2c OK [18:35:10]MH_I2C_Read... [18:35:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:35:10]Read from MH i2c: E2 [18:35:10]MH_I2C_Read... [18:35:10]Read from MH i2c: E2 62 00 [18:35:10]MH_I2C_Read... [18:35:10]Read from MH i2c: E2 62 00 46 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 13 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [18:35:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 13 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:35:10]wFMCommunicate OK [18:35:10]SAM_PROTO_GetFieldsCounters done [18:35:10]requested_item shift.num is exist - process it [18:35:10]requested_item shift.opened is exist - process it [18:35:10]req_shift_opened [18:35:10]FM_GetShiftState [18:35:10]SAM_PROTO_GetShiftState [18:35:10]wFMCommunicate request_size=4 [18:35:10]MH_SAM_APDU [18:35:10]CAPDU: 80 13 01 00 [18:35:10]Write to MH i2c: E2 08 00 47 09 80 13 01 00 00 00 00 00 CD [18:35:10]Write i2c OK [18:35:10]MH_I2C_Read... [18:35:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:10]Read from MH i2c: E2 [18:35:10]MH_I2C_Read... [18:35:10]Read from MH i2c: E2 0E 00 [18:35:10]MH_I2C_Read... [18:35:10]Read from MH i2c: E2 0E 00 47 09 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 EB [18:35:10]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [18:35:10]wFMCommunicate OK [18:35:10]SAM_PROTO_GetShiftState done [18:35:10]FM_GetShiftState done [18:35:10]req_shift_opened done [18:35:10]requested_item shift.open_date is exist - process it [18:35:10]req_shift_open_date [18:35:10]req_shift_open_date done [18:35:10]produce_requested_data done [18:35:10]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103187,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [18:35:10]process_action_free close_receipt [18:35:10]json_value_free [18:35:10]json_value_free done [18:35:10]process_json_proto returns [18:35:10]Send response to host [18:35:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103187,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [18:35:10]free response buf [18:35:10]execute_script done [18:35:10]execute_script returns [18:35:10]free content buf [18:35:10]Sock 9.Close socket [18:35:10]Sock 9.Thread stoped [18:35:12]accept exits with 7 [18:35:12]New connection [18:35:12]New thread 3067260260 created [18:35:12]Thread 3067116900 joined [18:35:12]Waiting for new connection... [18:35:12] Sock 7.Parse request [18:35:12]Sock 7.Check first char [18:35:12]Sock 7.First char is OK [18:35:12]request: POST /json_proto HTTP/1.0 [18:35:12]Method: POST [18:35:12]URL: /json_proto [18:35:12]Method is POST - this is cgi request [18:35:12]url: /json_proto [18:35:12]query_string will be loaded in cgi processing [18:35:12]execute_cgi json_proto POST (null) [18:35:12]execute_cgi path=json_proto method=POST [18:35:12]POST find Content-Length [18:35:12]Host: 172.17.58.3:8080 [18:35:12]Content-Length: 676 [18:35:12]Content-Type: application/json [18:35:12] [18:35:12]POST finish read [18:35:12]Found Content-Length = 676 [18:35:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160816", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:12]execute_script... [18:35: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)160816", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:12]POST & json_proto [18:35:12]process_json_proto [18:35:12]json parsed OK: [18:35:12]protocol is kg_v1.0 [18:35:12]action value=close_receipt [18:35:12]process_action close_receipt [18:35:12]cmd_close_receipt [18:35:12]MH_GetDate [18:35:12]Write to MH i2c: F0 00 00 48 09 40 [18:35:12]Write i2c OK [18:35:12]MH_I2C_Read... [18:35:12]Read from MH i2c: F0 [18:35:12]MH_I2C_Read... [18:35:12]Read from MH i2c: F0 09 00 [18:35:12]MH_I2C_Read... [18:35:12]Read from MH i2c: F0 09 00 48 09 00 62 A7 BB 66 DC E4 6D 64 04 [18:35:12]GetLastDocTimeStamp 1723574108 [18:35:12]current date 1723574114 [18:35:12]FM_GetShiftState [18:35:12]SAM_PROTO_GetShiftState [18:35:12]wFMCommunicate request_size=4 [18:35:12]MH_SAM_APDU [18:35:12]CAPDU: 80 13 01 00 [18:35:12]Write to MH i2c: E2 08 00 49 09 80 13 01 00 00 00 00 00 CF [18:35:12]Write i2c OK [18:35:12]MH_I2C_Read... [18:35:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:12]Read from MH i2c: E2 [18:35:12]MH_I2C_Read... [18:35:12]Read from MH i2c: E2 0E 00 [18:35:12]MH_I2C_Read... [18:35:12]Read from MH i2c: E2 0E 00 49 09 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 ED [18:35:12]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [18:35:12]wFMCommunicate OK [18:35:12]SAM_PROTO_GetShiftState done [18:35:12]FM_GetShiftState done [18:35:12]opened in 1723506770 [18:35:12]opened+sec_in_day 1723593170 [18:35:12]quantity*price = 50018 [18:35:12]sum+1 = 50019 [18:35:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 99 13.08.2024 18:35 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103188 ФПД: 16057025262859 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T183514&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103188&fm=16057025262859&tin=02508201610067®Number=0000000000092718&sum=50000 [18:35:14]StoreToDocumentArchive [18:35:14]shift 464 fd 103188 [18:35:14]save to /storage/0464/doc_00103188 [18:35:14]save last doc name /storage/0464/doc_00103188 to /storage/kkm_last_doc_name [18:35:14]save OK [18:35:14]Clear old archive folders... [18:35:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:35:14]tlvbuf is 00268070 [18:35:14]SAM_PROTO_ClearQueue [18:35:14]wFMCommunicate request_size=4 [18:35:14]MH_SAM_APDU [18:35:14]CAPDU: 80 09 00 00 [18:35:14]Write to MH i2c: E2 08 00 56 09 80 09 00 00 00 00 00 00 D1 [18:35:14]Write i2c OK [18:35:14]MH_I2C_Read... [18:35:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:35:14]Read from MH i2c: E2 [18:35:14]MH_I2C_Read... [18:35:14]Read from MH i2c: E2 03 00 [18:35:14]MH_I2C_Read... [18:35:14]Read from MH i2c: E2 03 00 56 09 00 90 00 D3 [18:35:14]RAPDU: 90 00 [18:35:14]wFMCommunicate OK [18:35:14]SAM_PROTO_ClearQueue done [18:35:14]KKMCreateOFDPacket [18:35:14]OFDProtocolAddRootSTLVToBuf [18:35:14]FM_MakeSignedData [18:35:14]FM_MakeSignedData [18:35:14]SAM_PROTO_SignData [18:35:14]wFMCommunicate request_size=4 [18:35:14]MH_SAM_APDU [18:35:14]CAPDU: 80 0D 01 02 [18:35:14]Write to MH i2c: E2 08 00 57 09 80 0D 01 02 00 00 00 00 D9 [18:35:14]Write i2c OK [18:35:14]MH_I2C_Read... [18:35:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:35:14]Read from MH i2c: E2 [18:35:14]MH_I2C_Read... [18:35:14]Read from MH i2c: E2 03 00 [18:35:14]MH_I2C_Read... [18:35:14]Read from MH i2c: E2 03 00 57 09 00 90 00 D4 [18:35:14]RAPDU: 90 00 [18:35:14]wFMCommunicate OK [18:35:14]wFMCommunicate request_size=255 [18:35:14]MH_SAM_APDU [18:35: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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 62 A7 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 14 93 01 00 35 04 06 00 0E [18:35:14]Write to MH i2c: E2 02 01 58 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 62 A7 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 14 93 01 00 35 04 06 00 0E 00 00 6F [18:35:14]Write i2c OK [18:35:14]MH_I2C_Read... [18:35:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:14]Read from MH i2c: E2 [18:35:14]MH_I2C_Read... [18:35:14]Read from MH i2c: E2 03 00 [18:35:14]MH_I2C_Read... [18:35:14]Read from MH i2c: E2 03 00 58 09 00 90 00 D5 [18:35:14]RAPDU: 90 00 [18:35:14]wFMCommunicate OK [18:35:14]wFMCommunicate request_size=10 [18:35:14]MH_SAM_APDU [18:35:14]CAPDU: 80 0D 02 02 05 9A 91 49 75 0B [18:35:14]Write to MH i2c: E2 0D 00 59 09 80 0D 02 02 05 00 9A 91 49 75 0B 00 00 DA [18:35:14]Write i2c OK [18:35:14]MH_I2C_Read... [18:35:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:14]Read from MH i2c: E2 [18:35:14]MH_I2C_Read... [18:35:14]Read from MH i2c: E2 03 00 [18:35:14]MH_I2C_Read... [18:35:14]Read from MH i2c: E2 03 00 59 09 00 90 00 D6 [18:35:14]RAPDU: 90 00 [18:35:14]wFMCommunicate OK [18:35:14]wFMCommunicate request_size=4 [18:35:14]MH_SAM_APDU [18:35:14]CAPDU: 80 0D 03 02 [18:35:14]Write to MH i2c: E2 08 00 5A 09 80 0D 03 02 00 00 00 00 DE [18:35:14]Write i2c OK [18:35:14]MH_I2C_Read... [18:35:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:35:14]Read from MH i2c: E2 [18:35:14]MH_I2C_Read... [18:35:14]Read from MH i2c: E2 0B 00 [18:35:14]MH_I2C_Read... [18:35:14]Read from MH i2c: E2 0B 00 5A 09 00 F8 21 39 4B 78 60 E8 E0 90 00 1C [18:35:14]RAPDU: F8 21 39 4B 78 60 E8 E0 90 00 [18:35:14]wFMCommunicate OK [18:35:14]SAM_PROTO_SignData done [18:35:14]FM_MakeSignedData done [18:35:14]CreateOFDProtocolMessage [18:35:14]wFMCommunicate request_size=4 [18:35:14]MH_SAM_APDU [18:35:14]CAPDU: 80 11 00 00 [18:35:14]Write to MH i2c: E2 08 00 5B 09 80 11 00 00 00 00 00 00 DE [18:35:14]Write i2c OK [18:35:14]MH_I2C_Read... [18:35:14]OFD Sender: No OFD packet to send [18:35:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:14]Read from MH i2c: E2 [18:35:14]MH_I2C_Read... [18:35:14]Read from MH i2c: E2 17 00 [18:35:14]MH_I2C_Read... [18:35:14]Read from MH i2c: E2 17 00 5B 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 32 [18:35:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [18:35:14]wFMCommunicate OK [18:35:14]CreateOFDProtocolMessage done [18:35:14]OFDSenderStorePacket 103188 [18:35:14]StoreOFDPacket docnum=103188 [18:35:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 94 66 07 01 03 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 62 A7 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 14 93 01 00 35 04 06 00 0E 9A 91 49 75 0B F8 21 39 4B 78 60 E8 E0 [18:35:14]CheckFolder [18:35:14]dirname=/storage/ofd_packets [18:35:14]CheckFolder done [18:35:14]ProducePacketName [18:35:14]name=ofd_packets/00103188 [18:35:14]NVStorageSaveData ofd_packets/00103188 [18:35:14]File name is /storage/ofd_packets/00103188 [18:35:14]Write 301 bytes [18:35:14]NVStorageSaveData done [18:35:14]OFDSenderStorePacket done [18:35:14]KKMCreateOFDPacket done [18:35:14]NVStorageSaveData kkm_last_timestamp [18:35:14]File name is /storage/kkm_last_timestamp [18:35:14]Write 4 bytes [18:35:14]NVStorageSaveData done [18:35:14]ExternCall_PrintAddStr [18:35:14]wPrintStart [18:35:14]Write to MH i2c: 01 00 00 5C 09 65 [18:35:14]Write i2c OK [18:35:14]MH_I2C_Read... [18:35:14]Read from MH i2c: 01 [18:35:14]MH_I2C_Read... [18:35:14]Read from MH i2c: 01 07 00 [18:35:14]MH_I2C_Read... [18:35:14]Read from MH i2c: 01 07 00 5C 09 00 00 00 00 00 FF 0F 7A [18:35:14]RasterBufferAndPrint [18:35:14]line Счет N : (1)160816 [18:35:14]line ИНН: 02508201610067 [18:35:14]line Контрольно-Кассовый Чек [18:35:14]line ПРОДАЖА [18:35:14]line ТРК (МРК, ГНК) : 7 [18:35:14]line Товар: 2710124130 [18:35:14]line Аи-92-К-5 [18:35:14]line 7.590 * 65.90 [18:35:14]line = 500.18 [18:35:14]line НДС 12% НСП 1% [18:35:14]line > о реализуемом товаре [18:35:14]line ОКРУГЛЕНИЕ: -0.18 [18:35:14]line ИТОГО: 500.00 [18:35:14]line Внесено: 500.00 [18:35:14]line СДАЧА: 0.00 [18:35:14]line НСП 1% : 4.43 [18:35:14]line НДС 12% : 53.12 [18:35:14]line Наличными: 500.00 [18:35:14]line Безнал.: 0.00 [18:35:14]line Место: АЗС № 38 "Партнер Нефть" [18:35:14]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [18:35:14]line СНО: Общий режим [18:35:14]line Чек 99 13.08.2024 18:35 [18:35:14]line Смена: 464 ФФД: 1.0 [18:35:14]line ЗНМ: 0300000126 [18:35:14]line РНМ: 0000000000092718 [18:35:14]line Версия ККМ: 001 [18:35:14]line ФМ: 0000000000875058 [18:35:14]line ФД: 103188 [18:35:14]line ФПД: 16057025262859 [18:35:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T183514&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103188&fm=16057025262859&tin=02508201610067®Number=0000000000092718&sum=50000 [18:35:14]written 0, free lines is 4095 [18:35:14]OFD Sender: Processing packet 103188 [packets to send 69, broken 68] [18:35:14]ProducePacketName [18:35:14]name=ofd_packets/00103188 [18:35:14]OFD Sender: To server: pG, [18:35:14]CommunicateWithHost lk.salyk.kg:30040 [18:35:14]ConnectInit lk.salyk.kg [18:35:14]Connected sock=10 [18:35:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 94 66 07 01 03 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 62 A7 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 14 93 01 00 35 04 06 00 0E 9A 91 49 75 0B F8 21 39 4B 78 60 E8 E0 [18:35:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 86 EB 47 00 D5 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 14 93 01 00 F4 03 04 00 D4 4D BB 66 B6 04 01 00 00 AF 9D E6 66 1B DC 88 27 [18:35:15]CommunicateWithHost err = 0 [18:35:15]CheckOFDResponse [18:35:15]1017 (14) - 77093643461234 [18:35:15]1041 (16) - 0000000000875058 [18:35:15]1040 (4) - 103188 [18:35:15]1012 (4) - 13.08.2024 12:13 [18:35:15]1206 (1) - 0 [18:35:15]OFD Sender: Remove packet 103188 [18:35:15]ProducePacketName [18:35:15]name=ofd_packets/00103188 [18:35:15]NVStorageDeleteData [18:35:15]Write to MH i2c: 01 00 00 87 09 90 [18:35:15]Write i2c OK [18:35:15]MH_I2C_Read... [18:35:15]Read from MH i2c: 01 [18:35:15]MH_I2C_Read... [18:35:15]Read from MH i2c: 01 07 00 [18:35:15]MH_I2C_Read... [18:35:15]Read from MH i2c: 01 07 00 87 09 00 00 00 00 00 EB 0C 8E [18:35:15]RasterBufferAndPrint [18:35:15]line [18:35:15]line [18:35:15]line [18:35:15]line [18:35:15]line [18:35:15]written 0, free lines is 3319 [18:35:15]MH_Cut [18:35:15]Write to MH i2c: D1 01 00 8E 09 01 69 [18:35:15]Write i2c OK [18:35:15]MH_I2C_Read... [18:35:15]Read from MH i2c: D1 [18:35:15]MH_I2C_Read... [18:35:15]Read from MH i2c: D1 01 00 [18:35:15]MH_I2C_Read... [18:35:15]Read from MH i2c: D1 01 00 8E 09 00 68 [18:35:15]Write to MH i2c: 01 00 00 8F 09 98 [18:35:15]Write i2c OK [18:35:15]MH_I2C_Read... [18:35:15]OFD Sender: No OFD packet to send [18:35:15]*** Cut start [18:35:15]*** Purtial cut [18:35:15]*** CUTSNS_PIN = 0 [18:35:16]*** Stage 1: CUTSNS_PIN = 1 [18:35:17]Read from MH i2c: 01 [18:35:17]MH_I2C_Read... [18:35:17]*** Stop cut motor [18:35:17]*** Cut end [18:35:17]Read from MH i2c: 01 07 00 [18:35:17]MH_I2C_Read... [18:35:17]Read from MH i2c: 01 07 00 8F 09 00 00 00 00 00 FF 0F AD [18:35:17]process_action close_receipt done [18:35:17]requested_data is exist [18:35:17]produce_requested_data [18:35:17]requested_item fm.sn is exist - process it [18:35:17]wFMCommunicate request_size=4 [18:35:17]MH_SAM_APDU [18:35:17]CAPDU: 80 11 00 00 [18:35:17]Write to MH i2c: E2 08 00 90 09 80 11 00 00 00 00 00 00 13 [18:35:17]Write i2c OK [18:35:17]MH_I2C_Read... [18:35:17]Read from MH i2c: E2 [18:35:18]MH_I2C_Read... [18:35:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:18]Read from MH i2c: E2 17 00 [18:35:18]MH_I2C_Read... [18:35:18]Read from MH i2c: E2 17 00 90 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 67 [18:35:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [18:35:18]wFMCommunicate OK [18:35:18]requested_item fd.num is exist - process it [18:35:18]SAM_PROTO_GetFieldsCounters [18:35:18]wFMCommunicate request_size=4 [18:35:18]MH_SAM_APDU [18:35:18]CAPDU: 80 13 00 00 [18:35:18]Write to MH i2c: E2 08 00 91 09 80 13 00 00 00 00 00 00 16 [18:35:18]Write i2c OK [18:35:18]MH_I2C_Read... [18:35:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:35:18]Read from MH i2c: E2 [18:35:18]MH_I2C_Read... [18:35:18]Read from MH i2c: E2 62 00 [18:35:18]MH_I2C_Read... [18:35:18]Read from MH i2c: E2 62 00 91 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 14 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [18:35:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 14 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:35:18]wFMCommunicate OK [18:35:18]SAM_PROTO_GetFieldsCounters done [18:35:18]requested_item shift.num is exist - process it [18:35:18]requested_item shift.opened is exist - process it [18:35:18]req_shift_opened [18:35:18]FM_GetShiftState [18:35:18]SAM_PROTO_GetShiftState [18:35:18]wFMCommunicate request_size=4 [18:35:18]MH_SAM_APDU [18:35:18]CAPDU: 80 13 01 00 [18:35:18]Write to MH i2c: E2 08 00 92 09 80 13 01 00 00 00 00 00 18 [18:35:18]Write i2c OK [18:35:18]MH_I2C_Read... [18:35:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:18]Read from MH i2c: E2 [18:35:18]MH_I2C_Read... [18:35:18]Read from MH i2c: E2 0E 00 [18:35:18]MH_I2C_Read... [18:35:18]Read from MH i2c: E2 0E 00 92 09 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 36 [18:35:18]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [18:35:18]wFMCommunicate OK [18:35:18]SAM_PROTO_GetShiftState done [18:35:18]FM_GetShiftState done [18:35:18]req_shift_opened done [18:35:18]requested_item shift.open_date is exist - process it [18:35:18]req_shift_open_date [18:35:18]req_shift_open_date done [18:35:18]produce_requested_data done [18:35:18]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103188,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [18:35:18]process_action_free close_receipt [18:35:18]json_value_free [18:35:18]json_value_free done [18:35:18]process_json_proto returns [18:35:18]Send response to host [18:35:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103188,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [18:35:18]free response buf [18:35:18]execute_script done [18:35:18]execute_script returns [18:35:18]free content buf [18:35:18]Sock 7.Close socket [18:35:18]Sock 7.Thread stoped [18:35:20]OFD Sender: No OFD packet to send [18:35:25]OFD Sender: No OFD packet to send [18:35:30]OFD Sender: No OFD packet to send [18:35:35]OFD Sender: No OFD packet to send [18:35:40]OFD Sender: No OFD packet to send [18:35:45]OFD Sender: No OFD packet to send [18:35:50]OFD Sender: No OFD packet to send [18:35:55]OFD Sender: No OFD packet to send [18:36:00]OFD Sender: No OFD packet to send [18:36:05]OFD Sender: No OFD packet to send [18:36:10]OFD Sender: No OFD packet to send [18:36:15]OFD Sender: No OFD packet to send [18:36:20]OFD Sender: No OFD packet to send [18:36:25]OFD Sender: No OFD packet to send [18:36:30]OFD Sender: No OFD packet to send [18:36:35]OFD Sender: No OFD packet to send [18:36:40]OFD Sender: No OFD packet to send [18:36:45]OFD Sender: No OFD packet to send [18:36:50]OFD Sender: No OFD packet to send [18:36:55]OFD Sender: No OFD packet to send [18:37:00]OFD Sender: No OFD packet to send [18:37:01]accept exits with 9 [18:37:01]New connection [18:37:01]New thread 3067116900 created [18:37:01]Thread 3067260260 joined [18:37:01]Waiting for new connection... [18:37:01] Sock 9.Parse request [18:37:01]Sock 9.Check first char [18:37:01]Sock 9.First char is OK [18:37:01]request: POST /json_proto HTTP/1.0 [18:37:01]Method: POST [18:37:01]URL: /json_proto [18:37:01]Method is POST - this is cgi request [18:37:01]url: /json_proto [18:37:01]query_string will be loaded in cgi processing [18:37:01]execute_cgi json_proto POST (null) [18:37:01]execute_cgi path=json_proto method=POST [18:37:01]POST find Content-Length [18:37:01]Host: 172.17.58.3:8080 [18:37:01]Content-Length: 676 [18:37:01]Content-Type: application/json [18:37:01] [18:37:01]POST finish read [18:37:01]Found Content-Length = 676 [18:37:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160817", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 1.670, "sum" : 110.05, "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" ] } } [18:37:01]execute_script... [18:37: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)160817", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 1.670, "sum" : 110.05, "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" ] } } [18:37:01]POST & json_proto [18:37:01]process_json_proto [18:37:01]json parsed OK: [18:37:01]protocol is kg_v1.0 [18:37:01]action value=close_receipt [18:37:01]process_action close_receipt [18:37:01]cmd_close_receipt [18:37:01]MH_GetDate [18:37:01]Write to MH i2c: F0 00 00 93 09 8B [18:37:01]Write i2c OK [18:37:01]MH_I2C_Read... [18:37:01]Read from MH i2c: F0 [18:37:01]MH_I2C_Read... [18:37:01]Read from MH i2c: F0 09 00 [18:37:01]MH_I2C_Read... [18:37:01]Read from MH i2c: F0 09 00 93 09 00 CF A7 BB 66 DC E4 6D 64 BC [18:37:01]GetLastDocTimeStamp 1723574114 [18:37:01]current date 1723574223 [18:37:01]FM_GetShiftState [18:37:01]SAM_PROTO_GetShiftState [18:37:01]wFMCommunicate request_size=4 [18:37:01]MH_SAM_APDU [18:37:01]CAPDU: 80 13 01 00 [18:37:01]Write to MH i2c: E2 08 00 94 09 80 13 01 00 00 00 00 00 1A [18:37:01]Write i2c OK [18:37:01]MH_I2C_Read... [18:37:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:01]Read from MH i2c: E2 [18:37:01]MH_I2C_Read... [18:37:01]Read from MH i2c: E2 0E 00 [18:37:01]MH_I2C_Read... [18:37:01]Read from MH i2c: E2 0E 00 94 09 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 38 [18:37:01]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [18:37:01]wFMCommunicate OK [18:37:01]SAM_PROTO_GetShiftState done [18:37:01]FM_GetShiftState done [18:37:01]opened in 1723506770 [18:37:01]opened+sec_in_day 1723593170 [18:37:01]quantity*price = 11005 [18:37:01]sum+1 = 11006 [18:37:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 110.00 Внесено: 110.00 СДАЧА: 0.00 НСП 1% : 0.97 НДС 12% : 11.69 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 100 13.08.2024 18:37 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103189 ФПД: 166712604954535 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T183703&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103189&fm=166712604954535&tin=02508201610067®Number=0000000000092718&sum=11000 [18:37:03]StoreToDocumentArchive [18:37:03]shift 464 fd 103189 [18:37:03]save to /storage/0464/doc_00103189 [18:37:03]save last doc name /storage/0464/doc_00103189 to /storage/kkm_last_doc_name [18:37:03]save OK [18:37:03]Clear old archive folders... [18:37:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:37:03]tlvbuf is 0020AE90 [18:37:03]SAM_PROTO_ClearQueue [18:37:03]wFMCommunicate request_size=4 [18:37:03]MH_SAM_APDU [18:37:03]CAPDU: 80 09 00 00 [18:37:03]Write to MH i2c: E2 08 00 A1 09 80 09 00 00 00 00 00 00 1C [18:37:03]Write i2c OK [18:37:03]MH_I2C_Read... [18:37:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:37:03]Read from MH i2c: E2 [18:37:03]MH_I2C_Read... [18:37:03]Read from MH i2c: E2 03 00 [18:37:03]MH_I2C_Read... [18:37:03]Read from MH i2c: E2 03 00 A1 09 00 90 00 1E [18:37:03]RAPDU: 90 00 [18:37:03]wFMCommunicate OK [18:37:03]SAM_PROTO_ClearQueue done [18:37:03]KKMCreateOFDPacket [18:37:03]OFDProtocolAddRootSTLVToBuf [18:37:03]FM_MakeSignedData [18:37:03]FM_MakeSignedData [18:37:03]SAM_PROTO_SignData [18:37:03]wFMCommunicate request_size=4 [18:37:03]MH_SAM_APDU [18:37:03]CAPDU: 80 0D 01 02 [18:37:03]Write to MH i2c: E2 08 00 A2 09 80 0D 01 02 00 00 00 00 24 [18:37:03]Write i2c OK [18:37:03]MH_I2C_Read... [18:37:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:37:03]Read from MH i2c: E2 [18:37:03]MH_I2C_Read... [18:37:03]Read from MH i2c: E2 03 00 [18:37:03]MH_I2C_Read... [18:37:03]Read from MH i2c: E2 03 00 A2 09 00 90 00 1F [18:37:03]RAPDU: 90 00 [18:37:03]wFMCommunicate OK [18:37:03]wFMCommunicate request_size=255 [18:37:03]MH_SAM_APDU [18:37: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 86 06 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 FD 2A 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 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 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 64 00 00 00 F4 03 04 00 CF A7 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 15 93 01 00 35 04 06 00 97 [18:37:03]Write to MH i2c: E2 02 01 A3 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 06 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 FD 2A 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 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 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 64 00 00 00 F4 03 04 00 CF A7 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 15 93 01 00 35 04 06 00 97 00 00 01 [18:37:03]Write i2c OK [18:37:03]MH_I2C_Read... [18:37:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:03]Read from MH i2c: E2 [18:37:03]MH_I2C_Read... [18:37:03]Read from MH i2c: E2 03 00 [18:37:03]MH_I2C_Read... [18:37:03]Read from MH i2c: E2 03 00 A3 09 00 90 00 20 [18:37:03]RAPDU: 90 00 [18:37:03]wFMCommunicate OK [18:37:03]wFMCommunicate request_size=10 [18:37:03]MH_SAM_APDU [18:37:03]CAPDU: 80 0D 02 02 05 9F CD 99 0F A7 [18:37:03]Write to MH i2c: E2 0D 00 A4 09 80 0D 02 02 05 00 9F CD 99 0F A7 00 00 EC [18:37:03]Write i2c OK [18:37:03]MH_I2C_Read... [18:37:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:03]Read from MH i2c: E2 [18:37:03]MH_I2C_Read... [18:37:03]Read from MH i2c: E2 03 00 [18:37:03]MH_I2C_Read... [18:37:03]Read from MH i2c: E2 03 00 A4 09 00 90 00 21 [18:37:03]RAPDU: 90 00 [18:37:03]wFMCommunicate OK [18:37:03]wFMCommunicate request_size=4 [18:37:03]MH_SAM_APDU [18:37:03]CAPDU: 80 0D 03 02 [18:37:03]Write to MH i2c: E2 08 00 A5 09 80 0D 03 02 00 00 00 00 29 [18:37:03]Write i2c OK [18:37:03]MH_I2C_Read... [18:37:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:37:03]Read from MH i2c: E2 [18:37:03]MH_I2C_Read... [18:37:03]Read from MH i2c: E2 0B 00 [18:37:03]MH_I2C_Read... [18:37:03]Read from MH i2c: E2 0B 00 A5 09 00 9B 35 75 E6 97 64 BA EE 90 00 F8 [18:37:03]RAPDU: 9B 35 75 E6 97 64 BA EE 90 00 [18:37:03]wFMCommunicate OK [18:37:03]SAM_PROTO_SignData done [18:37:03]FM_MakeSignedData done [18:37:03]CreateOFDProtocolMessage [18:37:03]wFMCommunicate request_size=4 [18:37:03]MH_SAM_APDU [18:37:03]CAPDU: 80 11 00 00 [18:37:03]Write to MH i2c: E2 08 00 A6 09 80 11 00 00 00 00 00 00 29 [18:37:03]Write i2c OK [18:37:03]MH_I2C_Read... [18:37:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:03]Read from MH i2c: E2 [18:37:03]MH_I2C_Read... [18:37:03]Read from MH i2c: E2 17 00 [18:37:03]MH_I2C_Read... [18:37:03]Read from MH i2c: E2 17 00 A6 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 7D [18:37:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [18:37:03]wFMCommunicate OK [18:37:03]CreateOFDProtocolMessage done [18:37:03]OFDSenderStorePacket 103189 [18:37:03]StoreOFDPacket docnum=103189 [18:37:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 BA 21 07 01 97 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 86 06 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 FD 2A 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 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 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 64 00 00 00 F4 03 04 00 CF A7 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 15 93 01 00 35 04 06 00 97 9F CD 99 0F A7 9B 35 75 E6 97 64 BA EE [18:37:03]CheckFolder [18:37:03]dirname=/storage/ofd_packets [18:37:03]CheckFolder done [18:37:03]ProducePacketName [18:37:03]name=ofd_packets/00103189 [18:37:03]NVStorageSaveData ofd_packets/00103189 [18:37:03]File name is /storage/ofd_packets/00103189 [18:37:03]Write 301 bytes [18:37:03]NVStorageSaveData done [18:37:03]OFDSenderStorePacket done [18:37:03]KKMCreateOFDPacket done [18:37:03]NVStorageSaveData kkm_last_timestamp [18:37:03]File name is /storage/kkm_last_timestamp [18:37:03]Write 4 bytes [18:37:03]NVStorageSaveData done [18:37:03]ExternCall_PrintAddStr [18:37:03]wPrintStart [18:37:03]Write to MH i2c: 01 00 00 A7 09 B0 [18:37:03]Write i2c OK [18:37:03]MH_I2C_Read... [18:37:03]Read from MH i2c: 01 [18:37:03]MH_I2C_Read... [18:37:03]Read from MH i2c: 01 07 00 [18:37:03]MH_I2C_Read... [18:37:03]Read from MH i2c: 01 07 00 A7 09 00 00 00 00 00 FF 0F C5 [18:37:03]RasterBufferAndPrint [18:37:03]line Счет N : (1)160817 [18:37:03]line ИНН: 02508201610067 [18:37:03]line Контрольно-Кассовый Чек [18:37:03]line ПРОДАЖА [18:37:03]line ТРК (МРК, ГНК) : 7 [18:37:03]line Товар: 2710124130 [18:37:03]line Аи-92-К-5 [18:37:03]line 1.670 * 65.90 [18:37:03]line = 110.05 [18:37:03]line НДС 12% НСП 1% [18:37:03]line > о реализуемом товаре [18:37:03]line ОКРУГЛЕНИЕ: -0.05 [18:37:03]line ИТОГО: 110.00 [18:37:03]line Внесено: 110.00 [18:37:03]line СДАЧА: 0.00 [18:37:03]line НСП 1% : 0.97 [18:37:03]line НДС 12% : 11.69 [18:37:03]line Наличными: 110.00 [18:37:03]line Безнал.: 0.00 [18:37:03]line Место: АЗС № 38 "Партнер Нефть" [18:37:03]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [18:37:03]line СНО: Общий режим [18:37:03]line Чек 100 13.08.2024 18:37 [18:37:03]line Смена: 464 ФФД: 1.0 [18:37:03]line ЗНМ: 0300000126 [18:37:03]line РНМ: 0000000000092718 [18:37:03]line Версия ККМ: 001 [18:37:03]line ФМ: 0000000000875058 [18:37:03]line ФД: 103189 [18:37:03]line ФПД: 166712604954535 [18:37:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T183703&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103189&fm=166712604954535&tin=02508201610067®Number=0000000000092718&sum=11000 [18:37:03]OFD Sender: Processing packet 103189 [packets to send 69, broken 68] [18:37:03]ProducePacketName [18:37:03]name=ofd_packets/00103189 [18:37:03]OFD Sender: To server: pG, [18:37:03]CommunicateWithHost lk.salyk.kg:30040 [18:37:03]ConnectInit lk.salyk.kg [18:37:03]written 0, free lines is 4095 [18:37:04]Connected sock=10 [18:37:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 BA 21 07 01 97 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 86 06 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 FD 2A 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 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 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 64 00 00 00 F4 03 04 00 CF A7 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 15 93 01 00 35 04 06 00 97 9F CD 99 0F A7 9B 35 75 E6 97 64 BA EE [18:37:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 98 95 47 00 51 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 15 93 01 00 F4 03 04 00 41 4E BB 66 B6 04 01 00 00 B1 5A 9C 39 0F 00 20 86 [18:37:04]CommunicateWithHost err = 0 [18:37:04]CheckOFDResponse [18:37:04]1017 (14) - 77093643461234 [18:37:04]1041 (16) - 0000000000875058 [18:37:04]1040 (4) - 103189 [18:37:04]1012 (4) - 13.08.2024 12:14 [18:37:04]1206 (1) - 0 [18:37:04]OFD Sender: Remove packet 103189 [18:37:04]ProducePacketName [18:37:04]name=ofd_packets/00103189 [18:37:04]NVStorageDeleteData [18:37:04]Write to MH i2c: 01 00 00 D2 09 DB [18:37:04]Write i2c OK [18:37:04]MH_I2C_Read... [18:37:04]Read from MH i2c: 01 [18:37:04]MH_I2C_Read... [18:37:04]Read from MH i2c: 01 07 00 [18:37:04]MH_I2C_Read... [18:37:04]Read from MH i2c: 01 07 00 D2 09 00 00 00 00 00 DA 0C C8 [18:37:04]RasterBufferAndPrint [18:37:04]line [18:37:04]line [18:37:04]line [18:37:04]line [18:37:04]line [18:37:04]written 0, free lines is 3296 [18:37:04]MH_Cut [18:37:04]Write to MH i2c: D1 01 00 D9 09 01 B4 [18:37:04]Write i2c OK [18:37:04]MH_I2C_Read... [18:37:04]Read from MH i2c: D1 [18:37:04]MH_I2C_Read... [18:37:04]Read from MH i2c: D1 01 00 [18:37:04]MH_I2C_Read... [18:37:04]Read from MH i2c: D1 01 00 D9 09 00 B3 [18:37:04]Write to MH i2c: 01 00 00 DA 09 E3 [18:37:04]Write i2c OK [18:37:04]MH_I2C_Read... [18:37:04]OFD Sender: No OFD packet to send [18:37:05]*** Cut start [18:37:05]*** Purtial cut [18:37:05]*** Stage 1: CUTSNS_PIN = 1 [18:37:05]Read from MH i2c: 01 [18:37:05]MH_I2C_Read... [18:37:05]*** Stop cut motor [18:37:05]*** Cut end [18:37:05]Read from MH i2c: 01 07 00 [18:37:05]MH_I2C_Read... [18:37:05]Read from MH i2c: 01 07 00 DA 09 00 00 00 00 00 FF 0F F8 [18:37:05]process_action close_receipt done [18:37:05]requested_data is exist [18:37:05]produce_requested_data [18:37:05]requested_item fm.sn is exist - process it [18:37:05]wFMCommunicate request_size=4 [18:37:05]MH_SAM_APDU [18:37:05]CAPDU: 80 11 00 00 [18:37:05]Write to MH i2c: E2 08 00 DB 09 80 11 00 00 00 00 00 00 5E [18:37:05]Write i2c OK [18:37:05]MH_I2C_Read... [18:37:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:05]Read from MH i2c: E2 [18:37:05]MH_I2C_Read... [18:37:05]Read from MH i2c: E2 17 00 [18:37:05]MH_I2C_Read... [18:37:05]Read from MH i2c: E2 17 00 DB 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 B2 [18:37:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [18:37:05]wFMCommunicate OK [18:37:05]requested_item fd.num is exist - process it [18:37:05]SAM_PROTO_GetFieldsCounters [18:37:05]wFMCommunicate request_size=4 [18:37:05]MH_SAM_APDU [18:37:05]CAPDU: 80 13 00 00 [18:37:05]Write to MH i2c: E2 08 00 DC 09 80 13 00 00 00 00 00 00 61 [18:37:05]Write i2c OK [18:37:05]MH_I2C_Read... [18:37:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:37:05]Read from MH i2c: E2 [18:37:05]MH_I2C_Read... [18:37:05]Read from MH i2c: E2 62 00 [18:37:05]MH_I2C_Read... [18:37:05]Read from MH i2c: E2 62 00 DC 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 15 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [18:37:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 15 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:37:05]wFMCommunicate OK [18:37:05]SAM_PROTO_GetFieldsCounters done [18:37:05]requested_item shift.num is exist - process it [18:37:05]requested_item shift.opened is exist - process it [18:37:05]req_shift_opened [18:37:05]FM_GetShiftState [18:37:05]SAM_PROTO_GetShiftState [18:37:05]wFMCommunicate request_size=4 [18:37:05]MH_SAM_APDU [18:37:05]CAPDU: 80 13 01 00 [18:37:05]Write to MH i2c: E2 08 00 DD 09 80 13 01 00 00 00 00 00 63 [18:37:05]Write i2c OK [18:37:05]MH_I2C_Read... [18:37:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:05]Read from MH i2c: E2 [18:37:05]MH_I2C_Read... [18:37:05]Read from MH i2c: E2 0E 00 [18:37:05]MH_I2C_Read... [18:37:05]Read from MH i2c: E2 0E 00 DD 09 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 81 [18:37:05]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [18:37:05]wFMCommunicate OK [18:37:05]SAM_PROTO_GetShiftState done [18:37:05]FM_GetShiftState done [18:37:05]req_shift_opened done [18:37:05]requested_item shift.open_date is exist - process it [18:37:05]req_shift_open_date [18:37:05]req_shift_open_date done [18:37:05]produce_requested_data done [18:37:05]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103189,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [18:37:05]process_action_free close_receipt [18:37:05]json_value_free [18:37:05]json_value_free done [18:37:05]process_json_proto returns [18:37:05]Send response to host [18:37:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103189,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [18:37:05]free response buf [18:37:05]execute_script done [18:37:05]execute_script returns [18:37:05]free content buf [18:37:05]Sock 9.Close socket [18:37:05]Sock 9.Thread stoped [18:37:09]OFD Sender: No OFD packet to send [18:37:14]OFD Sender: No OFD packet to send [18:37:19]OFD Sender: No OFD packet to send [18:37:24]OFD Sender: No OFD packet to send [18:37:29]OFD Sender: No OFD packet to send [18:37:34]OFD Sender: No OFD packet to send [18:37:39]OFD Sender: No OFD packet to send [18:37:44]OFD Sender: No OFD packet to send [18:37:49]accept exits with 7 [18:37:49]New connection [18:37:49]New thread 3067260260 created [18:37:49]Thread 3067116900 joined [18:37:49]Waiting for new connection... [18:37:49] Sock 7.Parse request [18:37:49]Sock 7.Check first char [18:37:49]Sock 7.First char is OK [18:37:49]request: POST /json_proto HTTP/1.0 [18:37:49]Method: POST [18:37:49]URL: /json_proto [18:37:49]Method is POST - this is cgi request [18:37:49]url: /json_proto [18:37:49]query_string will be loaded in cgi processing [18:37:49]execute_cgi json_proto POST (null) [18:37:49]execute_cgi path=json_proto method=POST [18:37:49]POST find Content-Length [18:37:49]Host: 172.17.58.3:8080 [18:37:49]Content-Length: 677 [18:37:49]Content-Type: application/json [18:37:49] [18:37:49]POST finish read [18:37:49]Found Content-Length = 677 [18:37:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160818", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 12.140, "sum" : 800.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:37:49]execute_script... [18:37:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160818", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 12.140, "sum" : 800.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:37:49]POST & json_proto [18:37:49]process_json_proto [18:37:49]json parsed OK: [18:37:49]protocol is kg_v1.0 [18:37:49]action value=close_receipt [18:37:49]process_action close_receipt [18:37:49]cmd_close_receipt [18:37:49]MH_GetDate [18:37:49]Write to MH i2c: F0 00 00 DE 09 D6 [18:37:49]Write i2c OK [18:37:49]MH_I2C_Read... [18:37:49]Read from MH i2c: F0 [18:37:49]MH_I2C_Read... [18:37:49]Read from MH i2c: F0 09 00 [18:37:49]MH_I2C_Read... [18:37:49]Read from MH i2c: F0 09 00 DE 09 00 FE A7 BB 66 DC E4 6D 64 36 [18:37:49]GetLastDocTimeStamp 1723574223 [18:37:49]current date 1723574270 [18:37:49]FM_GetShiftState [18:37:49]SAM_PROTO_GetShiftState [18:37:49]wFMCommunicate request_size=4 [18:37:49]MH_SAM_APDU [18:37:49]CAPDU: 80 13 01 00 [18:37:49]Write to MH i2c: E2 08 00 DF 09 80 13 01 00 00 00 00 00 65 [18:37:49]Write i2c OK [18:37:49]MH_I2C_Read... [18:37:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:49]Read from MH i2c: E2 [18:37:49]MH_I2C_Read... [18:37:49]Read from MH i2c: E2 0E 00 [18:37:49]MH_I2C_Read... [18:37:49]Read from MH i2c: E2 0E 00 DF 09 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 83 [18:37:49]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [18:37:49]wFMCommunicate OK [18:37:49]SAM_PROTO_GetShiftState done [18:37:49]FM_GetShiftState done [18:37:49]opened in 1723506770 [18:37:49]opened+sec_in_day 1723593170 [18:37:49]quantity*price = 80002 [18:37:49]sum+1 = 80004 [18:37:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 101 13.08.2024 18:37 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103190 ФПД: 200746443186339 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T183750&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103190&fm=200746443186339&tin=02508201610067®Number=0000000000092718&sum=80000 [18:37:50]StoreToDocumentArchive [18:37:50]shift 464 fd 103190 [18:37:50]save to /storage/0464/doc_00103190 [18:37:50]save last doc name /storage/0464/doc_00103190 to /storage/kkm_last_doc_name [18:37:50]save OK [18:37:50]Clear old archive folders... [18:37:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:37:50]tlvbuf is 00240550 [18:37:50]SAM_PROTO_ClearQueue [18:37:50]wFMCommunicate request_size=4 [18:37:50]MH_SAM_APDU [18:37:50]CAPDU: 80 09 00 00 [18:37:50]Write to MH i2c: E2 08 00 EC 09 80 09 00 00 00 00 00 00 67 [18:37:50]Write i2c OK [18:37:50]MH_I2C_Read... [18:37:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:37:50]Read from MH i2c: E2 [18:37:50]MH_I2C_Read... [18:37:50]Read from MH i2c: E2 03 00 [18:37:50]MH_I2C_Read... [18:37:50]Read from MH i2c: E2 03 00 EC 09 00 90 00 69 [18:37:50]RAPDU: 90 00 [18:37:50]wFMCommunicate OK [18:37:50]SAM_PROTO_ClearQueue done [18:37:50]KKMCreateOFDPacket [18:37:50]OFDProtocolAddRootSTLVToBuf [18:37:50]FM_MakeSignedData [18:37:50]FM_MakeSignedData [18:37:50]SAM_PROTO_SignData [18:37:50]wFMCommunicate request_size=4 [18:37:50]MH_SAM_APDU [18:37:50]CAPDU: 80 0D 01 02 [18:37:50]Write to MH i2c: E2 08 00 ED 09 80 0D 01 02 00 00 00 00 6F [18:37:50]Write i2c OK [18:37:50]MH_I2C_Read... [18:37:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:37:50]Read from MH i2c: E2 [18:37:50]MH_I2C_Read... [18:37:50]Read from MH i2c: E2 03 00 [18:37:50]MH_I2C_Read... [18:37:50]Read from MH i2c: E2 03 00 ED 09 00 90 00 6A [18:37:50]RAPDU: 90 00 [18:37:50]wFMCommunicate OK [18:37:50]wFMCommunicate request_size=255 [18:37:50]MH_SAM_APDU [18:37:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 2F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 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 65 00 00 00 F4 03 04 00 FE A7 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 16 93 01 00 35 04 06 00 B6 [18:37:50]Write to MH i2c: E2 02 01 EE 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 2F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 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 65 00 00 00 F4 03 04 00 FE A7 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 16 93 01 00 35 04 06 00 B6 00 00 8F [18:37:50]Write i2c OK [18:37:50]MH_I2C_Read... [18:37:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:50]Read from MH i2c: E2 [18:37:50]MH_I2C_Read... [18:37:50]Read from MH i2c: E2 03 00 [18:37:50]MH_I2C_Read... [18:37:50]Read from MH i2c: E2 03 00 EE 09 00 90 00 6B [18:37:50]RAPDU: 90 00 [18:37:50]wFMCommunicate OK [18:37:50]wFMCommunicate request_size=10 [18:37:50]MH_SAM_APDU [18:37:50]CAPDU: 80 0D 02 02 05 93 EC 6F A0 A3 [18:37:50]Write to MH i2c: E2 0D 00 EF 09 80 0D 02 02 05 00 93 EC 6F A0 A3 00 00 AD [18:37:50]Write i2c OK [18:37:50]MH_I2C_Read... [18:37:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:50]Read from MH i2c: E2 [18:37:50]MH_I2C_Read... [18:37:50]Read from MH i2c: E2 03 00 [18:37:50]MH_I2C_Read... [18:37:50]Read from MH i2c: E2 03 00 EF 09 00 90 00 6C [18:37:50]RAPDU: 90 00 [18:37:50]wFMCommunicate OK [18:37:50]wFMCommunicate request_size=4 [18:37:50]MH_SAM_APDU [18:37:50]CAPDU: 80 0D 03 02 [18:37:50]Write to MH i2c: E2 08 00 F0 09 80 0D 03 02 00 00 00 00 74 [18:37:50]Write i2c OK [18:37:50]MH_I2C_Read... [18:37:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:37:50]Read from MH i2c: E2 [18:37:50]MH_I2C_Read... [18:37:50]Read from MH i2c: E2 0B 00 [18:37:50]MH_I2C_Read... [18:37:50]Read from MH i2c: E2 0B 00 F0 09 00 FF C1 3A DB 5B 67 1B 9E 90 00 C5 [18:37:50]RAPDU: FF C1 3A DB 5B 67 1B 9E 90 00 [18:37:50]wFMCommunicate OK [18:37:50]SAM_PROTO_SignData done [18:37:50]FM_MakeSignedData done [18:37:50]CreateOFDProtocolMessage [18:37:50]wFMCommunicate request_size=4 [18:37:50]MH_SAM_APDU [18:37:50]CAPDU: 80 11 00 00 [18:37:50]Write to MH i2c: E2 08 00 F1 09 80 11 00 00 00 00 00 00 74 [18:37:50]Write i2c OK [18:37:50]MH_I2C_Read... [18:37:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:50]Read from MH i2c: E2 [18:37:50]MH_I2C_Read... [18:37:50]Read from MH i2c: E2 17 00 [18:37:50]MH_I2C_Read... [18:37:50]Read from MH i2c: E2 17 00 F1 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 C8 [18:37:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [18:37:50]wFMCommunicate OK [18:37:50]CreateOFDProtocolMessage done [18:37:50]OFDSenderStorePacket 103190 [18:37:50]StoreOFDPacket docnum=103190 [18:37:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 08 24 07 01 BD 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 6C 2F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 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 65 00 00 00 F4 03 04 00 FE A7 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 16 93 01 00 35 04 06 00 B6 93 EC 6F A0 A3 FF C1 3A DB 5B 67 1B 9E [18:37:50]CheckFolder [18:37:50]dirname=/storage/ofd_packets [18:37:50]CheckFolder done [18:37:50]ProducePacketName [18:37:50]name=ofd_packets/00103190 [18:37:50]NVStorageSaveData ofd_packets/00103190 [18:37:50]File name is /storage/ofd_packets/00103190 [18:37:50]Write 301 bytes [18:37:50]NVStorageSaveData done [18:37:50]OFDSenderStorePacket done [18:37:50]KKMCreateOFDPacket done [18:37:50]NVStorageSaveData kkm_last_timestamp [18:37:50]File name is /storage/kkm_last_timestamp [18:37:50]Write 4 bytes [18:37:50]NVStorageSaveData done [18:37:50]ExternCall_PrintAddStr [18:37:50]wPrintStart [18:37:50]Write to MH i2c: 01 00 00 F2 09 FB [18:37:50]Write i2c OK [18:37:50]MH_I2C_Read... [18:37:50]Read from MH i2c: 01 [18:37:50]MH_I2C_Read... [18:37:50]Read from MH i2c: 01 07 00 [18:37:50]MH_I2C_Read... [18:37:50]Read from MH i2c: 01 07 00 F2 09 00 00 00 00 00 FF 0F 10 [18:37:50]RasterBufferAndPrint [18:37:50]line Счет N : (1)160818 [18:37:50]line ИНН: 02508201610067 [18:37:50]line Контрольно-Кассовый Чек [18:37:50]line ПРОДАЖА [18:37:50]line ТРК (МРК, ГНК) : 3 [18:37:50]line Товар: 2710124130 [18:37:50]line Аи-92-К-5 [18:37:50]line 12.140 * 65.90 [18:37:50]line = 800.03 [18:37:50]line НДС 12% НСП 1% [18:37:50]line > о реализуемом товаре [18:37:50]line ОКРУГЛЕНИЕ: -0.03 [18:37:50]line ИТОГО: 800.00 [18:37:50]line Внесено: 800.00 [18:37:50]line СДАЧА: 0.00 [18:37:50]line НСП 1% : 7.08 [18:37:50]line НДС 12% : 84.96 [18:37:50]line Наличными: 800.00 [18:37:50]line Безнал.: 0.00 [18:37:50]line Место: АЗС № 38 "Партнер Нефть" [18:37:50]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [18:37:50]line СНО: Общий режим [18:37:50]line Чек 101 13.08.2024 18:37 [18:37:50]line Смена: 464 ФФД: 1.0 [18:37:50]line ЗНМ: 0300000126 [18:37:50]line РНМ: 0000000000092718 [18:37:50]line Версия ККМ: 001 [18:37:50]line ФМ: 0000000000875058 [18:37:50]line ФД: 103190 [18:37:50]line ФПД: 200746443186339 [18:37:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T183750&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103190&fm=200746443186339&tin=02508201610067®Number=0000000000092718&sum=80000 [18:37:51]OFD Sender: Processing packet 103190 [packets to send 69, broken 68] [18:37:51]ProducePacketName [18:37:51]name=ofd_packets/00103190 [18:37:51]OFD Sender: To server: pG, [18:37:51]CommunicateWithHost lk.salyk.kg:30040 [18:37:51]ConnectInit lk.salyk.kg [18:37:51]written 0, free lines is 4095 [18:37:51]Connected sock=10 [18:37:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 08 24 07 01 BD 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 6C 2F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 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 65 00 00 00 F4 03 04 00 FE A7 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 16 93 01 00 35 04 06 00 B6 93 EC 6F A0 A3 FF C1 3A DB 5B 67 1B 9E [18:37:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 61 CF 47 00 2B CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 16 93 01 00 F4 03 04 00 70 4E BB 66 B6 04 01 00 00 03 F0 82 90 73 D3 2D 30 [18:37:51]CommunicateWithHost err = 0 [18:37:51]CheckOFDResponse [18:37:51]1017 (14) - 77093643461234 [18:37:51]1041 (16) - 0000000000875058 [18:37:51]1040 (4) - 103190 [18:37:51]1012 (4) - 13.08.2024 12:15 [18:37:51]1206 (1) - 0 [18:37:51]OFD Sender: Remove packet 103190 [18:37:51]ProducePacketName [18:37:51]name=ofd_packets/00103190 [18:37:51]NVStorageDeleteData [18:37:51]Write to MH i2c: 01 00 00 1D 0A 27 [18:37:51]Write i2c OK [18:37:51]MH_I2C_Read... [18:37:51]Read from MH i2c: 01 [18:37:51]MH_I2C_Read... [18:37:51]Read from MH i2c: 01 07 00 [18:37:51]MH_I2C_Read... [18:37:51]Read from MH i2c: 01 07 00 1D 0A 00 00 00 00 00 EE 0C 28 [18:37:51]RasterBufferAndPrint [18:37:51]line [18:37:51]line [18:37:51]line [18:37:51]line [18:37:51]line [18:37:51]written 0, free lines is 3316 [18:37:51]MH_Cut [18:37:51]Write to MH i2c: D1 01 00 24 0A 01 00 [18:37:51]Write i2c OK [18:37:51]MH_I2C_Read... [18:37:51]Read from MH i2c: D1 [18:37:51]MH_I2C_Read... [18:37:51]Read from MH i2c: D1 01 00 [18:37:51]MH_I2C_Read... [18:37:51]Read from MH i2c: D1 01 00 24 0A 00 FF [18:37:51]Write to MH i2c: 01 00 00 25 0A 2F [18:37:51]Write i2c OK [18:37:51]MH_I2C_Read... [18:37:51]OFD Sender: No OFD packet to send [18:37:52]*** Cut start [18:37:52]*** Purtial cut [18:37:52]*** CUTSNS_PIN = 0 [18:37:52]*** Stage 1: CUTSNS_PIN = 1 [18:37:54]Read from MH i2c: 01 [18:37:54]MH_I2C_Read... [18:37:54]*** Stop cut motor [18:37:54]*** Cut end [18:37:54]Read from MH i2c: 01 07 00 [18:37:54]MH_I2C_Read... [18:37:54]Read from MH i2c: 01 07 00 25 0A 00 00 00 00 00 FF 0F 44 [18:37:54]process_action close_receipt done [18:37:54]requested_data is exist [18:37:54]produce_requested_data [18:37:54]requested_item fm.sn is exist - process it [18:37:54]wFMCommunicate request_size=4 [18:37:54]MH_SAM_APDU [18:37:54]CAPDU: 80 11 00 00 [18:37:54]Write to MH i2c: E2 08 00 26 0A 80 11 00 00 00 00 00 00 AA [18:37:54]Write i2c OK [18:37:54]MH_I2C_Read... [18:37:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:54]Read from MH i2c: E2 [18:37:54]MH_I2C_Read... [18:37:54]Read from MH i2c: E2 17 00 [18:37:54]MH_I2C_Read... [18:37:54]Read from MH i2c: E2 17 00 26 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 FE [18:37:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [18:37:54]wFMCommunicate OK [18:37:54]requested_item fd.num is exist - process it [18:37:54]SAM_PROTO_GetFieldsCounters [18:37:54]wFMCommunicate request_size=4 [18:37:54]MH_SAM_APDU [18:37:54]CAPDU: 80 13 00 00 [18:37:54]Write to MH i2c: E2 08 00 27 0A 80 13 00 00 00 00 00 00 AD [18:37:54]Write i2c OK [18:37:54]MH_I2C_Read... [18:37:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:37:54]Read from MH i2c: E2 [18:37:54]MH_I2C_Read... [18:37:54]Read from MH i2c: E2 62 00 [18:37:54]MH_I2C_Read... [18:37:54]Read from MH i2c: E2 62 00 27 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 16 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [18:37:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 16 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:37:54]wFMCommunicate OK [18:37:54]SAM_PROTO_GetFieldsCounters done [18:37:54]requested_item shift.num is exist - process it [18:37:54]requested_item shift.opened is exist - process it [18:37:54]req_shift_opened [18:37:54]FM_GetShiftState [18:37:54]SAM_PROTO_GetShiftState [18:37:54]wFMCommunicate request_size=4 [18:37:54]MH_SAM_APDU [18:37:54]CAPDU: 80 13 01 00 [18:37:54]Write to MH i2c: E2 08 00 28 0A 80 13 01 00 00 00 00 00 AF [18:37:54]Write i2c OK [18:37:54]MH_I2C_Read... [18:37:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:54]Read from MH i2c: E2 [18:37:54]MH_I2C_Read... [18:37:54]Read from MH i2c: E2 0E 00 [18:37:54]MH_I2C_Read... [18:37:54]Read from MH i2c: E2 0E 00 28 0A 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 CD [18:37:54]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [18:37:54]wFMCommunicate OK [18:37:54]SAM_PROTO_GetShiftState done [18:37:54]FM_GetShiftState done [18:37:54]req_shift_opened done [18:37:54]requested_item shift.open_date is exist - process it [18:37:54]req_shift_open_date [18:37:54]req_shift_open_date done [18:37:54]produce_requested_data done [18:37:54]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103190,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [18:37:54]process_action_free close_receipt [18:37:54]json_value_free [18:37:54]json_value_free done [18:37:54]process_json_proto returns [18:37:54]Send response to host [18:37:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103190,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [18:37:54]free response buf [18:37:54]execute_script done [18:37:54]execute_script returns [18:37:54]free content buf [18:37:54]Sock 7.Close socket [18:37:54]Sock 7.Thread stoped [18:37:56]OFD Sender: No OFD packet to send [18:38:02]OFD Sender: No OFD packet to send [18:38:07]OFD Sender: No OFD packet to send [18:38:12]OFD Sender: No OFD packet to send [18:38:17]OFD Sender: No OFD packet to send [18:38:22]OFD Sender: No OFD packet to send [18:38:27]OFD Sender: No OFD packet to send [18:38:32]OFD Sender: No OFD packet to send [18:38:37]OFD Sender: No OFD packet to send [18:38:42]OFD Sender: No OFD packet to send [18:38:47]OFD Sender: No OFD packet to send [18:38:52]OFD Sender: No OFD packet to send [18:38:57]OFD Sender: No OFD packet to send [18:39:02]OFD Sender: No OFD packet to send [18:39:07]OFD Sender: No OFD packet to send [18:39:12]OFD Sender: No OFD packet to send [18:39:17]OFD Sender: No OFD packet to send [18:39:22]OFD Sender: No OFD packet to send [18:39:27]OFD Sender: No OFD packet to send [18:39:32]OFD Sender: No OFD packet to send [18:39:37]OFD Sender: No OFD packet to send [18:39:42]OFD Sender: No OFD packet to send [18:39:47]OFD Sender: No OFD packet to send [18:39:52]OFD Sender: No OFD packet to send [18:39:57]OFD Sender: No OFD packet to send [18:40:02]OFD Sender: No OFD packet to send [18:40:07]OFD Sender: No OFD packet to send [18:40:12]OFD Sender: No OFD packet to send [18:40:17]OFD Sender: No OFD packet to send [18:40:22]OFD Sender: No OFD packet to send [18:40:27]OFD Sender: No OFD packet to send [18:40:32]OFD Sender: No OFD packet to send [18:40:37]OFD Sender: No OFD packet to send [18:40:42]OFD Sender: No OFD packet to send [18:40:47]OFD Sender: No OFD packet to send [18:40:52]OFD Sender: No OFD packet to send [18:40:57]OFD Sender: No OFD packet to send [18:41:02]OFD Sender: No OFD packet to send [18:41:07]OFD Sender: No OFD packet to send [18:41:12]OFD Sender: No OFD packet to send [18:41:17]OFD Sender: No OFD packet to send [18:41:22]OFD Sender: No OFD packet to send [18:41:27]OFD Sender: No OFD packet to send [18:41:32]OFD Sender: No OFD packet to send [18:41:37]OFD Sender: No OFD packet to send [18:41:42]OFD Sender: No OFD packet to send [18:41:47]OFD Sender: No OFD packet to send [18:41:52]OFD Sender: No OFD packet to send [18:41:57]OFD Sender: No OFD packet to send [18:42:02]OFD Sender: No OFD packet to send [18:42:07]OFD Sender: No OFD packet to send [18:42:12]OFD Sender: No OFD packet to send [18:42:17]OFD Sender: No OFD packet to send [18:42:22]OFD Sender: No OFD packet to send [18:42:27]OFD Sender: No OFD packet to send [18:42:32]OFD Sender: No OFD packet to send [18:42:37]OFD Sender: No OFD packet to send [18:42:42]OFD Sender: No OFD packet to send [18:42:47]OFD Sender: No OFD packet to send [18:42:52]OFD Sender: No OFD packet to send [18:42:57]OFD Sender: No OFD packet to send [18:43:02]OFD Sender: No OFD packet to send [18:43:07]OFD Sender: No OFD packet to send [18:43:12]OFD Sender: No OFD packet to send [18:43:17]OFD Sender: No OFD packet to send [18:43:22]OFD Sender: No OFD packet to send [18:43:27]OFD Sender: No OFD packet to send [18:43:32]OFD Sender: No OFD packet to send [18:43:37]OFD Sender: No OFD packet to send [18:43:42]OFD Sender: No OFD packet to send [18:43:47]OFD Sender: No OFD packet to send [18:43:52]OFD Sender: No OFD packet to send [18:43:57]OFD Sender: No OFD packet to send [18:44:02]OFD Sender: No OFD packet to send [18:44:07]OFD Sender: No OFD packet to send [18:44:12]OFD Sender: No OFD packet to send [18:44:17]OFD Sender: No OFD packet to send [18:44:22]OFD Sender: No OFD packet to send [18:44:27]OFD Sender: No OFD packet to send [18:44:32]OFD Sender: No OFD packet to send [18:44:37]OFD Sender: No OFD packet to send [18:44:42]OFD Sender: No OFD packet to send [18:44:47]OFD Sender: No OFD packet to send [18:44:52]OFD Sender: No OFD packet to send [18:44:57]OFD Sender: No OFD packet to send [18:45:02]OFD Sender: No OFD packet to send [18:45:07]OFD Sender: No OFD packet to send [18:45:12]OFD Sender: No OFD packet to send [18:45:17]OFD Sender: No OFD packet to send [18:45:22]OFD Sender: No OFD packet to send [18:45:27]OFD Sender: No OFD packet to send [18:45:32]OFD Sender: No OFD packet to send [18:45:37]OFD Sender: No OFD packet to send [18:45:42]OFD Sender: No OFD packet to send [18:45:47]OFD Sender: No OFD packet to send [18:45:52]OFD Sender: No OFD packet to send [18:45:57]OFD Sender: No OFD packet to send [18:46:02]OFD Sender: No OFD packet to send [18:46:07]OFD Sender: No OFD packet to send [18:46:12]OFD Sender: No OFD packet to send [18:46:17]OFD Sender: No OFD packet to send [18:46:22]OFD Sender: No OFD packet to send [18:46:27]OFD Sender: No OFD packet to send [18:46:32]OFD Sender: No OFD packet to send [18:46:37]OFD Sender: No OFD packet to send [18:46:42]OFD Sender: No OFD packet to send [18:46:47]OFD Sender: No OFD packet to send [18:46:52]OFD Sender: No OFD packet to send [18:46:57]OFD Sender: No OFD packet to send [18:47:02]OFD Sender: No OFD packet to send [18:47:07]OFD Sender: No OFD packet to send [18:47:12]OFD Sender: No OFD packet to send [18:47:17]OFD Sender: No OFD packet to send [18:47:22]OFD Sender: No OFD packet to send [18:47:27]OFD Sender: No OFD packet to send [18:47:32]OFD Sender: No OFD packet to send [18:47:37]OFD Sender: No OFD packet to send [18:47:42]OFD Sender: No OFD packet to send [18:47:47]OFD Sender: No OFD packet to send [18:47:52]OFD Sender: No OFD packet to send [18:47:57]OFD Sender: No OFD packet to send [18:48:02]OFD Sender: No OFD packet to send [18:48:07]OFD Sender: No OFD packet to send [18:48:12]OFD Sender: No OFD packet to send [18:48:17]OFD Sender: No OFD packet to send [18:48:22]OFD Sender: No OFD packet to send [18:48:27]OFD Sender: No OFD packet to send [18:48:32]OFD Sender: No OFD packet to send [18:48:37]OFD Sender: No OFD packet to send [18:48:42]OFD Sender: No OFD packet to send [18:48:47]OFD Sender: No OFD packet to send [18:48:52]OFD Sender: No OFD packet to send [18:48:57]OFD Sender: No OFD packet to send [18:49:02]OFD Sender: No OFD packet to send [18:49:07]OFD Sender: No OFD packet to send [18:49:12]OFD Sender: No OFD packet to send [18:49:17]OFD Sender: No OFD packet to send [18:49:22]OFD Sender: No OFD packet to send [18:49:27]OFD Sender: No OFD packet to send [18:49:32]OFD Sender: No OFD packet to send [18:49:37]OFD Sender: No OFD packet to send [18:49:42]OFD Sender: No OFD packet to send [18:49:47]OFD Sender: No OFD packet to send [18:49:52]OFD Sender: No OFD packet to send [18:49:57]OFD Sender: No OFD packet to send [18:49:58]accept exits with 9 [18:49:58]New connection [18:49:58]New thread 3067116900 created [18:49:58]Thread 3067260260 joined [18:49:58]Waiting for new connection... [18:49:58] Sock 9.Parse request [18:49:58]Sock 9.Check first char [18:49:58]Sock 9.First char is OK [18:49:58]request: POST /json_proto HTTP/1.0 [18:49:58]Method: POST [18:49:58]URL: /json_proto [18:49:58]Method is POST - this is cgi request [18:49:58]url: /json_proto [18:49:58]query_string will be loaded in cgi processing [18:49:58]execute_cgi json_proto POST (null) [18:49:58]execute_cgi path=json_proto method=POST [18:49:58]POST find Content-Length [18:49:58]Host: 172.17.58.3:8080 [18:49:58]Content-Length: 816 [18:49:58]Content-Type: application/json [18:49:58] [18:49:58]POST finish read [18:49:58]Found Content-Length = 816 [18:49:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160819", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 10.000, "sum" : 659.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 659.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:49:58]execute_script... [18:49:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160819", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 10.000, "sum" : 659.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 659.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:49:58]POST & json_proto [18:49:58]process_json_proto [18:49:58]json parsed OK: [18:49:58]protocol is kg_v1.0 [18:49:58]action value=close_receipt [18:49:58]process_action close_receipt [18:49:58]cmd_close_receipt [18:49:58]MH_GetDate [18:49:58]Write to MH i2c: F0 00 00 29 0A 22 [18:49:58]Write i2c OK [18:49:58]MH_I2C_Read... [18:49:58]Read from MH i2c: F0 [18:49:58]MH_I2C_Read... [18:49:58]Read from MH i2c: F0 09 00 [18:49:58]MH_I2C_Read... [18:49:58]Read from MH i2c: F0 09 00 29 0A 00 D7 AA BB 66 DC E4 6D 64 5E [18:49:58]GetLastDocTimeStamp 1723574270 [18:49:58]current date 1723574999 [18:49:58]FM_GetShiftState [18:49:58]SAM_PROTO_GetShiftState [18:49:58]wFMCommunicate request_size=4 [18:49:58]MH_SAM_APDU [18:49:58]CAPDU: 80 13 01 00 [18:49:58]Write to MH i2c: E2 08 00 2A 0A 80 13 01 00 00 00 00 00 B1 [18:49:58]Write i2c OK [18:49:58]MH_I2C_Read... [18:49:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:58]Read from MH i2c: E2 [18:49:58]MH_I2C_Read... [18:49:58]Read from MH i2c: E2 0E 00 [18:49:58]MH_I2C_Read... [18:49:58]Read from MH i2c: E2 0E 00 2A 0A 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 CF [18:49:58]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [18:49:58]wFMCommunicate OK [18:49:58]SAM_PROTO_GetShiftState done [18:49:58]FM_GetShiftState done [18:49:58]opened in 1723506770 [18:49:58]opened+sec_in_day 1723593170 [18:49:58]quantity*price = 65900 [18:49:58]sum+1 = 65901 [18:49:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 659.00 НСП 1% : 5.83 НДС 12% : 69.98 Наличными: 0.00 Безнал.: 659.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 102 13.08.2024 18:49 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875058 ФД: 103191 ФПД: 190650160214242 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T184959&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103191&fm=190650160214242&tin=02508201610067®Number=0000000000092718&sum=65900 [18:49:59]StoreToDocumentArchive [18:49:59]shift 464 fd 103191 [18:49:59]save to /storage/0464/doc_00103191 [18:49:59]save last doc name /storage/0464/doc_00103191 to /storage/kkm_last_doc_name [18:49:59]save OK [18:49:59]Clear old archive folders... [18:49:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:49:59]tlvbuf is 001F0830 [18:49:59]SAM_PROTO_ClearQueue [18:49:59]wFMCommunicate request_size=4 [18:49:59]MH_SAM_APDU [18:49:59]CAPDU: 80 09 00 00 [18:49:59]Write to MH i2c: E2 08 00 37 0A 80 09 00 00 00 00 00 00 B3 [18:49:59]Write i2c OK [18:49:59]MH_I2C_Read... [18:49:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:49:59]Read from MH i2c: E2 [18:49:59]MH_I2C_Read... [18:49:59]Read from MH i2c: E2 03 00 [18:49:59]MH_I2C_Read... [18:49:59]Read from MH i2c: E2 03 00 37 0A 00 90 00 B5 [18:49:59]RAPDU: 90 00 [18:49:59]wFMCommunicate OK [18:49:59]SAM_PROTO_ClearQueue done [18:49:59]KKMCreateOFDPacket [18:49:59]OFDProtocolAddRootSTLVToBuf [18:49:59]FM_MakeSignedData [18:49:59]FM_MakeSignedData [18:49:59]SAM_PROTO_SignData [18:49:59]wFMCommunicate request_size=4 [18:49:59]MH_SAM_APDU [18:49:59]CAPDU: 80 0D 01 02 [18:49:59]Write to MH i2c: E2 08 00 38 0A 80 0D 01 02 00 00 00 00 BB [18:49:59]Write i2c OK [18:49:59]MH_I2C_Read... [18:49:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:49:59]Read from MH i2c: E2 [18:49:59]MH_I2C_Read... [18:49:59]Read from MH i2c: E2 03 00 [18:49:59]MH_I2C_Read... [18:49:59]Read from MH i2c: E2 03 00 38 0A 00 90 00 B6 [18:49:59]RAPDU: 90 00 [18:49:59]wFMCommunicate OK [18:49:59]wFMCommunicate request_size=255 [18:49:59]MH_SAM_APDU [18:49:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 6C 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 01 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 D7 AA BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 17 93 01 00 35 04 06 00 AD [18:49:59]Write to MH i2c: E2 02 01 39 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 6C 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 01 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 D7 AA BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 17 93 01 00 35 04 06 00 AD 00 00 0B [18:49:59]Write i2c OK [18:49:59]MH_I2C_Read... [18:49:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:59]Read from MH i2c: E2 [18:49:59]MH_I2C_Read... [18:49:59]Read from MH i2c: E2 03 00 [18:49:59]MH_I2C_Read... [18:49:59]Read from MH i2c: E2 03 00 39 0A 00 90 00 B7 [18:49:59]RAPDU: 90 00 [18:49:59]wFMCommunicate OK [18:49:59]wFMCommunicate request_size=10 [18:49:59]MH_SAM_APDU [18:49:59]CAPDU: 80 0D 02 02 05 65 33 13 70 E2 [18:49:59]Write to MH i2c: E2 0D 00 3A 0A 80 0D 02 02 05 00 65 33 13 70 E2 00 00 C5 [18:49:59]Write i2c OK [18:49:59]MH_I2C_Read... [18:49:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:59]Read from MH i2c: E2 [18:49:59]MH_I2C_Read... [18:49:59]Read from MH i2c: E2 03 00 [18:49:59]MH_I2C_Read... [18:49:59]Read from MH i2c: E2 03 00 3A 0A 00 90 00 B8 [18:49:59]RAPDU: 90 00 [18:49:59]wFMCommunicate OK [18:49:59]wFMCommunicate request_size=4 [18:49:59]MH_SAM_APDU [18:49:59]CAPDU: 80 0D 03 02 [18:49:59]Write to MH i2c: E2 08 00 3B 0A 80 0D 03 02 00 00 00 00 C0 [18:49:59]Write i2c OK [18:49:59]MH_I2C_Read... [18:49:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:49:59]Read from MH i2c: E2 [18:49:59]MH_I2C_Read... [18:49:59]Read from MH i2c: E2 0B 00 [18:49:59]MH_I2C_Read... [18:49:59]Read from MH i2c: E2 0B 00 3B 0A 00 F8 51 F0 92 5A 21 F7 15 90 00 13 [18:49:59]RAPDU: F8 51 F0 92 5A 21 F7 15 90 00 [18:49:59]wFMCommunicate OK [18:49:59]SAM_PROTO_SignData done [18:49:59]FM_MakeSignedData done [18:49:59]CreateOFDProtocolMessage [18:49:59]wFMCommunicate request_size=4 [18:49:59]MH_SAM_APDU [18:49:59]CAPDU: 80 11 00 00 [18:49:59]Write to MH i2c: E2 08 00 3C 0A 80 11 00 00 00 00 00 00 C0 [18:49:59]Write i2c OK [18:49:59]MH_I2C_Read... [18:49:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:59]Read from MH i2c: E2 [18:49:59]MH_I2C_Read... [18:49:59]Read from MH i2c: E2 17 00 [18:49:59]MH_I2C_Read... [18:49:59]Read from MH i2c: E2 17 00 3C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 14 [18:49:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [18:49:59]wFMCommunicate OK [18:49:59]CreateOFDProtocolMessage done [18:49:59]OFDSenderStorePacket 103191 [18:49:59]StoreOFDPacket docnum=103191 [18:49:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 79 09 07 01 63 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 6C 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 01 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 D7 AA BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 17 93 01 00 35 04 06 00 AD 65 33 13 70 E2 F8 51 F0 92 5A 21 F7 15 [18:49:59]CheckFolder [18:49:59]dirname=/storage/ofd_packets [18:49:59]CheckFolder done [18:49:59]ProducePacketName [18:49:59]name=ofd_packets/00103191 [18:49:59]NVStorageSaveData ofd_packets/00103191 [18:49:59]File name is /storage/ofd_packets/00103191 [18:49:59]Write 301 bytes [18:49:59]NVStorageSaveData done [18:49:59]OFDSenderStorePacket done [18:49:59]KKMCreateOFDPacket done [18:49:59]NVStorageSaveData kkm_last_timestamp [18:49:59]File name is /storage/kkm_last_timestamp [18:49:59]Write 4 bytes [18:49:59]NVStorageSaveData done [18:49:59]ExternCall_PrintAddStr [18:49:59]wPrintStart [18:49:59]Write to MH i2c: 01 00 00 3D 0A 47 [18:49:59]Write i2c OK [18:49:59]MH_I2C_Read... [18:49:59]Read from MH i2c: 01 [18:49:59]MH_I2C_Read... [18:49:59]Read from MH i2c: 01 07 00 [18:49:59]MH_I2C_Read... [18:49:59]Read from MH i2c: 01 07 00 3D 0A 00 00 00 00 00 FF 0F 5C [18:49:59]RasterBufferAndPrint [18:49:59]line Счет N : (1)160819 [18:49:59]line ИНН: 02508201610067 [18:49:59]line Контрольно-Кассовый Чек [18:49:59]line ПРОДАЖА [18:49:59]line ТРК (МРК, ГНК) : 7 [18:49:59]line Товар: 2710124130 [18:49:59]line Аи-92-К-5 [18:49:59]line 10.000 * 65.90 [18:49:59]line = 659.00 [18:49:59]line НДС 12% НСП 1% [18:49:59]line > о реализуемом товаре [18:49:59]line ИТОГО: 659.00 [18:49:59]line НСП 1% : 5.83 [18:49:59]line НДС 12% : 69.98 [18:49:59]line Наличными: 0.00 [18:49:59]line Безнал.: 659.00 [18:49:59]line Место: АЗС № 38 "Партнер Нефть" [18:49:59]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [18:49:59]line СНО: Общий режим [18:49:59]line Чек 102 13.08.2024 18:49 [18:49:59]line Смена: 464 ФФД: 1.0 [18:49:59]line ЗНМ: 0300000126 [18:49:59]line РНМ: 0000000000092718 [18:49:59]line Версия ККМ: 001 [18:49:59]line Платежная система: Бакай Банк [18:49:59]line ФМ: 0000000000875058 [18:49:59]line ФД: 103191 [18:49:59]line ФПД: 190650160214242 [18:49:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T184959&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103191&fm=190650160214242&tin=02508201610067®Number=0000000000092718&sum=65900 [18:50:00]written 0, free lines is 4095 [18:50:00]OFD Sender: Processing packet 103191 [packets to send 69, broken 68] [18:50:00]ProducePacketName [18:50:00]name=ofd_packets/00103191 [18:50:00]OFD Sender: To server: pG, [18:50:00]CommunicateWithHost lk.salyk.kg:30040 [18:50:00]ConnectInit lk.salyk.kg [18:50:00]Connected sock=10 [18:50:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 79 09 07 01 63 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 6C 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 01 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 D7 AA BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 17 93 01 00 35 04 06 00 AD 65 33 13 70 E2 F8 51 F0 92 5A 21 F7 15 [18:50:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 3F 51 47 00 60 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 17 93 01 00 F4 03 04 00 49 51 BB 66 B6 04 01 00 00 83 B4 0F C6 B1 E3 A6 18 [18:50:00]CommunicateWithHost err = 0 [18:50:00]CheckOFDResponse [18:50:00]1017 (14) - 77093643461234 [18:50:00]1041 (16) - 0000000000875058 [18:50:00]1040 (4) - 103191 [18:50:00]1012 (4) - 13.08.2024 12:27 [18:50:00]1206 (1) - 0 [18:50:00]OFD Sender: Remove packet 103191 [18:50:00]ProducePacketName [18:50:00]name=ofd_packets/00103191 [18:50:00]NVStorageDeleteData [18:50:00]Write to MH i2c: 01 00 00 67 0A 71 [18:50:00]Write i2c OK [18:50:00]MH_I2C_Read... [18:50:00]Read from MH i2c: 01 [18:50:00]MH_I2C_Read... [18:50:00]Read from MH i2c: 01 07 00 [18:50:00]MH_I2C_Read... [18:50:00]Read from MH i2c: 01 07 00 67 0A 00 00 00 00 00 F0 0C 74 [18:50:00]RasterBufferAndPrint [18:50:00]line [18:50:00]line [18:50:00]line [18:50:00]line [18:50:00]line [18:50:00]written 0, free lines is 3318 [18:50:00]MH_Cut [18:50:00]Write to MH i2c: D1 01 00 6E 0A 01 4A [18:50:00]Write i2c OK [18:50:00]MH_I2C_Read... [18:50:00]Read from MH i2c: D1 [18:50:00]MH_I2C_Read... [18:50:00]Read from MH i2c: D1 01 00 [18:50:00]MH_I2C_Read... [18:50:00]Read from MH i2c: D1 01 00 6E 0A 00 49 [18:50:00]Write to MH i2c: 01 00 00 6F 0A 79 [18:50:00]Write i2c OK [18:50:00]MH_I2C_Read... [18:50:01]OFD Sender: No OFD packet to send [18:50:01]*** Cut start [18:50:01]*** Purtial cut [18:50:01]*** Stage 1: CUTSNS_PIN = 1 [18:50:01]Read from MH i2c: 01 [18:50:01]MH_I2C_Read... [18:50:01]*** Stop cut motor [18:50:01]*** Cut end [18:50:01]Read from MH i2c: 01 07 00 [18:50:01]MH_I2C_Read... [18:50:01]Read from MH i2c: 01 07 00 6F 0A 00 00 00 00 00 FF 0F 8E [18:50:01]process_action close_receipt done [18:50:01]requested_data is exist [18:50:01]produce_requested_data [18:50:01]requested_item fm.sn is exist - process it [18:50:01]wFMCommunicate request_size=4 [18:50:01]MH_SAM_APDU [18:50:01]CAPDU: 80 11 00 00 [18:50:01]Write to MH i2c: E2 08 00 70 0A 80 11 00 00 00 00 00 00 F4 [18:50:01]Write i2c OK [18:50:01]MH_I2C_Read... [18:50:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:01]Read from MH i2c: E2 [18:50:01]MH_I2C_Read... [18:50:01]Read from MH i2c: E2 17 00 [18:50:01]MH_I2C_Read... [18:50:01]Read from MH i2c: E2 17 00 70 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 48 [18:50:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [18:50:01]wFMCommunicate OK [18:50:01]requested_item fd.num is exist - process it [18:50:01]SAM_PROTO_GetFieldsCounters [18:50:01]wFMCommunicate request_size=4 [18:50:01]MH_SAM_APDU [18:50:01]CAPDU: 80 13 00 00 [18:50:01]Write to MH i2c: E2 08 00 71 0A 80 13 00 00 00 00 00 00 F7 [18:50:01]Write i2c OK [18:50:01]MH_I2C_Read... [18:50:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:50:01]Read from MH i2c: E2 [18:50:01]MH_I2C_Read... [18:50:01]Read from MH i2c: E2 62 00 [18:50:01]MH_I2C_Read... [18:50:01]Read from MH i2c: E2 62 00 71 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 17 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [18:50:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 17 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:50:01]wFMCommunicate OK [18:50:01]SAM_PROTO_GetFieldsCounters done [18:50:01]requested_item shift.num is exist - process it [18:50:01]requested_item shift.opened is exist - process it [18:50:01]req_shift_opened [18:50:01]FM_GetShiftState [18:50:01]SAM_PROTO_GetShiftState [18:50:01]wFMCommunicate request_size=4 [18:50:01]MH_SAM_APDU [18:50:01]CAPDU: 80 13 01 00 [18:50:01]Write to MH i2c: E2 08 00 72 0A 80 13 01 00 00 00 00 00 F9 [18:50:01]Write i2c OK [18:50:01]MH_I2C_Read... [18:50:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:02]Read from MH i2c: E2 [18:50:02]MH_I2C_Read... [18:50:02]Read from MH i2c: E2 0E 00 [18:50:02]MH_I2C_Read... [18:50:02]Read from MH i2c: E2 0E 00 72 0A 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 17 [18:50:02]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [18:50:02]wFMCommunicate OK [18:50:02]SAM_PROTO_GetShiftState done [18:50:02]FM_GetShiftState done [18:50:02]req_shift_opened done [18:50:02]requested_item shift.open_date is exist - process it [18:50:02]req_shift_open_date [18:50:02]req_shift_open_date done [18:50:02]produce_requested_data done [18:50:02]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103191,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [18:50:02]process_action_free close_receipt [18:50:02]json_value_free [18:50:02]json_value_free done [18:50:02]process_json_proto returns [18:50:02]Send response to host [18:50:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103191,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [18:50:02]free response buf [18:50:02]execute_script done [18:50:02]execute_script returns [18:50:02]free content buf [18:50:02]Sock 9.Close socket [18:50:02]Sock 9.Thread stoped [18:50:06]OFD Sender: No OFD packet to send [18:50:11]OFD Sender: No OFD packet to send [18:50:16]OFD Sender: No OFD packet to send [18:50:21]OFD Sender: No OFD packet to send [18:50:26]OFD Sender: No OFD packet to send [18:50:31]OFD Sender: No OFD packet to send [18:50:36]OFD Sender: No OFD packet to send [18:50:41]OFD Sender: No OFD packet to send [18:50:46]OFD Sender: No OFD packet to send [18:50:51]OFD Sender: No OFD packet to send [18:50:56]OFD Sender: No OFD packet to send [18:51:01]OFD Sender: No OFD packet to send [18:51:06]OFD Sender: No OFD packet to send [18:51:11]OFD Sender: No OFD packet to send [18:51:16]OFD Sender: No OFD packet to send [18:51:21]OFD Sender: No OFD packet to send [18:51:26]OFD Sender: No OFD packet to send [18:51:31]OFD Sender: No OFD packet to send [18:51:36]OFD Sender: No OFD packet to send [18:51:41]OFD Sender: No OFD packet to send [18:51:46]OFD Sender: No OFD packet to send [18:51:51]OFD Sender: No OFD packet to send [18:51:56]OFD Sender: No OFD packet to send [18:52:01]OFD Sender: No OFD packet to send [18:52:06]OFD Sender: No OFD packet to send [18:52:11]OFD Sender: No OFD packet to send [18:52:16]OFD Sender: No OFD packet to send [18:52:21]OFD Sender: No OFD packet to send [18:52:26]OFD Sender: No OFD packet to send [18:52:31]OFD Sender: No OFD packet to send [18:52:36]OFD Sender: No OFD packet to send [18:52:41]OFD Sender: No OFD packet to send [18:52:46]OFD Sender: No OFD packet to send [18:52:51]OFD Sender: No OFD packet to send [18:52:56]OFD Sender: No OFD packet to send [18:53:01]OFD Sender: No OFD packet to send [18:53:06]OFD Sender: No OFD packet to send [18:53:11]OFD Sender: No OFD packet to send [18:53:16]OFD Sender: No OFD packet to send [18:53:21]OFD Sender: No OFD packet to send [18:53:26]OFD Sender: No OFD packet to send [18:53:31]OFD Sender: No OFD packet to send [18:53:36]OFD Sender: No OFD packet to send [18:53:41]OFD Sender: No OFD packet to send [18:53:46]OFD Sender: No OFD packet to send [18:53:51]OFD Sender: No OFD packet to send [18:53:56]OFD Sender: No OFD packet to send [18:54:01]OFD Sender: No OFD packet to send [18:54:06]OFD Sender: No OFD packet to send [18:54:11]OFD Sender: No OFD packet to send [18:54:16]OFD Sender: No OFD packet to send [18:54:21]OFD Sender: No OFD packet to send [18:54:26]OFD Sender: No OFD packet to send [18:54:31]OFD Sender: No OFD packet to send [18:54:36]OFD Sender: No OFD packet to send [18:54:41]OFD Sender: No OFD packet to send [18:54:46]OFD Sender: No OFD packet to send [18:54:51]OFD Sender: No OFD packet to send [18:54:56]OFD Sender: No OFD packet to send [18:55:01]OFD Sender: No OFD packet to send [18:55:06]OFD Sender: No OFD packet to send [18:55:11]OFD Sender: No OFD packet to send [18:55:16]OFD Sender: No OFD packet to send [18:55:21]OFD Sender: No OFD packet to send [18:55:26]OFD Sender: No OFD packet to send [18:55:31]OFD Sender: No OFD packet to send [18:55:36]OFD Sender: No OFD packet to send [18:55:41]OFD Sender: No OFD packet to send [18:55:46]OFD Sender: No OFD packet to send [18:55:51]OFD Sender: No OFD packet to send [18:55:56]OFD Sender: No OFD packet to send [18:56:01]OFD Sender: No OFD packet to send [18:56:06]OFD Sender: No OFD packet to send [18:56:11]OFD Sender: No OFD packet to send [18:56:16]OFD Sender: No OFD packet to send [18:56:21]OFD Sender: No OFD packet to send [18:56:26]OFD Sender: No OFD packet to send [18:56:31]OFD Sender: No OFD packet to send [18:56:36]OFD Sender: No OFD packet to send [18:56:41]OFD Sender: No OFD packet to send [18:56:46]OFD Sender: No OFD packet to send [18:56:46]accept exits with 7 [18:56:46]New connection [18:56:46]New thread 3067260260 created [18:56:46]Thread 3067116900 joined [18:56:46]Waiting for new connection... [18:56:46] Sock 7.Parse request [18:56:46]Sock 7.Check first char [18:56:46]Sock 7.First char is OK [18:56:46]request: POST /json_proto HTTP/1.0 [18:56:46]Method: POST [18:56:46]URL: /json_proto [18:56:46]Method is POST - this is cgi request [18:56:46]url: /json_proto [18:56:46]query_string will be loaded in cgi processing [18:56:46]execute_cgi json_proto POST (null) [18:56:46]execute_cgi path=json_proto method=POST [18:56:46]POST find Content-Length [18:56:46]Host: 172.17.58.3:8080 [18:56:46]Content-Length: 676 [18:56:46]Content-Type: application/json [18:56:46] [18:56:46]POST finish read [18:56:46]Found Content-Length = 676 [18:56:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160820", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:46]execute_script... [18:56: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)160820", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:46]POST & json_proto [18:56:46]process_json_proto [18:56:46]json parsed OK: [18:56:46]protocol is kg_v1.0 [18:56:46]action value=close_receipt [18:56:46]process_action close_receipt [18:56:46]cmd_close_receipt [18:56:46]MH_GetDate [18:56:46]Write to MH i2c: F0 00 00 73 0A 6C [18:56:46]Write i2c OK [18:56:46]MH_I2C_Read... [18:56:46]Read from MH i2c: F0 [18:56:46]MH_I2C_Read... [18:56:46]Read from MH i2c: F0 09 00 [18:56:46]MH_I2C_Read... [18:56:46]Read from MH i2c: F0 09 00 73 0A 00 70 AC BB 66 DC E4 6D 64 43 [18:56:46]GetLastDocTimeStamp 1723574999 [18:56:46]current date 1723575408 [18:56:46]FM_GetShiftState [18:56:46]SAM_PROTO_GetShiftState [18:56:46]wFMCommunicate request_size=4 [18:56:46]MH_SAM_APDU [18:56:46]CAPDU: 80 13 01 00 [18:56:46]Write to MH i2c: E2 08 00 74 0A 80 13 01 00 00 00 00 00 FB [18:56:46]Write i2c OK [18:56:46]MH_I2C_Read... [18:56:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:46]Read from MH i2c: E2 [18:56:46]MH_I2C_Read... [18:56:46]Read from MH i2c: E2 0E 00 [18:56:46]MH_I2C_Read... [18:56:46]Read from MH i2c: E2 0E 00 74 0A 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 19 [18:56:46]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [18:56:46]wFMCommunicate OK [18:56:46]SAM_PROTO_GetShiftState done [18:56:46]FM_GetShiftState done [18:56:46]opened in 1723506770 [18:56:46]opened+sec_in_day 1723593170 [18:56:46]quantity*price = 50018 [18:56:46]sum+1 = 50019 [18:56:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 103 13.08.2024 18:56 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103192 ФПД: 82420550309343 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T185648&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103192&fm=82420550309343&tin=02508201610067®Number=0000000000092718&sum=50000 [18:56:47]StoreToDocumentArchive [18:56:47]shift 464 fd 103192 [18:56:47]save to /storage/0464/doc_00103192 [18:56:47]save last doc name /storage/0464/doc_00103192 to /storage/kkm_last_doc_name [18:56:47]save OK [18:56:47]Clear old archive folders... [18:56:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:56:47]tlvbuf is 0020AFC0 [18:56:47]SAM_PROTO_ClearQueue [18:56:47]wFMCommunicate request_size=4 [18:56:47]MH_SAM_APDU [18:56:47]CAPDU: 80 09 00 00 [18:56:47]Write to MH i2c: E2 08 00 81 0A 80 09 00 00 00 00 00 00 FD [18:56:47]Write i2c OK [18:56:47]MH_I2C_Read... [18:56:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:56:48]Read from MH i2c: E2 [18:56:48]MH_I2C_Read... [18:56:48]Read from MH i2c: E2 03 00 [18:56:48]MH_I2C_Read... [18:56:48]Read from MH i2c: E2 03 00 81 0A 00 90 00 FF [18:56:48]RAPDU: 90 00 [18:56:48]wFMCommunicate OK [18:56:48]SAM_PROTO_ClearQueue done [18:56:48]KKMCreateOFDPacket [18:56:48]OFDProtocolAddRootSTLVToBuf [18:56:48]FM_MakeSignedData [18:56:48]FM_MakeSignedData [18:56:48]SAM_PROTO_SignData [18:56:48]wFMCommunicate request_size=4 [18:56:48]MH_SAM_APDU [18:56:48]CAPDU: 80 0D 01 02 [18:56:48]Write to MH i2c: E2 08 00 82 0A 80 0D 01 02 00 00 00 00 05 [18:56:48]Write i2c OK [18:56:48]MH_I2C_Read... [18:56:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:56:48]Read from MH i2c: E2 [18:56:48]MH_I2C_Read... [18:56:48]Read from MH i2c: E2 03 00 [18:56:48]MH_I2C_Read... [18:56:48]Read from MH i2c: E2 03 00 82 0A 00 90 00 00 [18:56:48]RAPDU: 90 00 [18:56:48]wFMCommunicate OK [18:56:48]wFMCommunicate request_size=255 [18:56:48]MH_SAM_APDU [18:56: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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 70 AC BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 18 93 01 00 35 04 06 00 4A [18:56:48]Write to MH i2c: E2 02 01 83 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 70 AC BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 18 93 01 00 35 04 06 00 4A 00 00 F2 [18:56:48]Write i2c OK [18:56:48]MH_I2C_Read... [18:56:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:48]Read from MH i2c: E2 [18:56:48]MH_I2C_Read... [18:56:48]Read from MH i2c: E2 03 00 [18:56:48]MH_I2C_Read... [18:56:48]Read from MH i2c: E2 03 00 83 0A 00 90 00 01 [18:56:48]RAPDU: 90 00 [18:56:48]wFMCommunicate OK [18:56:48]wFMCommunicate request_size=10 [18:56:48]MH_SAM_APDU [18:56:48]CAPDU: 80 0D 02 02 05 F6 07 9F 95 DF [18:56:48]Write to MH i2c: E2 0D 00 84 0A 80 0D 02 02 05 00 F6 07 9F 95 DF 00 00 22 [18:56:48]Write i2c OK [18:56:48]MH_I2C_Read... [18:56:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:48]Read from MH i2c: E2 [18:56:48]MH_I2C_Read... [18:56:48]Read from MH i2c: E2 03 00 [18:56:48]MH_I2C_Read... [18:56:48]Read from MH i2c: E2 03 00 84 0A 00 90 00 02 [18:56:48]RAPDU: 90 00 [18:56:48]wFMCommunicate OK [18:56:48]wFMCommunicate request_size=4 [18:56:48]MH_SAM_APDU [18:56:48]CAPDU: 80 0D 03 02 [18:56:48]Write to MH i2c: E2 08 00 85 0A 80 0D 03 02 00 00 00 00 0A [18:56:48]Write i2c OK [18:56:48]MH_I2C_Read... [18:56:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:56:48]Read from MH i2c: E2 [18:56:48]MH_I2C_Read... [18:56:48]Read from MH i2c: E2 0B 00 [18:56:48]MH_I2C_Read... [18:56:48]Read from MH i2c: E2 0B 00 85 0A 00 9F 53 E2 B2 6A A3 C1 FC 90 00 5B [18:56:48]RAPDU: 9F 53 E2 B2 6A A3 C1 FC 90 00 [18:56:48]wFMCommunicate OK [18:56:48]SAM_PROTO_SignData done [18:56:48]FM_MakeSignedData done [18:56:48]CreateOFDProtocolMessage [18:56:48]wFMCommunicate request_size=4 [18:56:48]MH_SAM_APDU [18:56:48]CAPDU: 80 11 00 00 [18:56:48]Write to MH i2c: E2 08 00 86 0A 80 11 00 00 00 00 00 00 0A [18:56:48]Write i2c OK [18:56:48]MH_I2C_Read... [18:56:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:48]Read from MH i2c: E2 [18:56:48]MH_I2C_Read... [18:56:48]Read from MH i2c: E2 17 00 [18:56:48]MH_I2C_Read... [18:56:48]Read from MH i2c: E2 17 00 86 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 5E [18:56:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [18:56:48]wFMCommunicate OK [18:56:48]CreateOFDProtocolMessage done [18:56:48]OFDSenderStorePacket 103192 [18:56:48]StoreOFDPacket docnum=103192 [18:56:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 5C 7F 07 01 B9 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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 70 AC BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 18 93 01 00 35 04 06 00 4A F6 07 9F 95 DF 9F 53 E2 B2 6A A3 C1 FC [18:56:48]CheckFolder [18:56:48]dirname=/storage/ofd_packets [18:56:48]CheckFolder done [18:56:48]ProducePacketName [18:56:48]name=ofd_packets/00103192 [18:56:48]NVStorageSaveData ofd_packets/00103192 [18:56:48]File name is /storage/ofd_packets/00103192 [18:56:48]Write 301 bytes [18:56:48]NVStorageSaveData done [18:56:48]OFDSenderStorePacket done [18:56:48]KKMCreateOFDPacket done [18:56:48]NVStorageSaveData kkm_last_timestamp [18:56:48]File name is /storage/kkm_last_timestamp [18:56:48]Write 4 bytes [18:56:48]NVStorageSaveData done [18:56:48]ExternCall_PrintAddStr [18:56:48]wPrintStart [18:56:48]Write to MH i2c: 01 00 00 87 0A 91 [18:56:48]Write i2c OK [18:56:48]MH_I2C_Read... [18:56:48]Read from MH i2c: 01 [18:56:48]MH_I2C_Read... [18:56:48]Read from MH i2c: 01 07 00 [18:56:48]MH_I2C_Read... [18:56:48]Read from MH i2c: 01 07 00 87 0A 00 00 00 00 00 FF 0F A6 [18:56:48]RasterBufferAndPrint [18:56:48]line Счет N : (1)160820 [18:56:48]line ИНН: 02508201610067 [18:56:48]line Контрольно-Кассовый Чек [18:56:48]line ПРОДАЖА [18:56:48]line ТРК (МРК, ГНК) : 7 [18:56:48]line Товар: 2710124130 [18:56:48]line Аи-92-К-5 [18:56:48]line 7.590 * 65.90 [18:56:48]line = 500.18 [18:56:48]line НДС 12% НСП 1% [18:56:48]line > о реализуемом товаре [18:56:48]line ОКРУГЛЕНИЕ: -0.18 [18:56:48]line ИТОГО: 500.00 [18:56:48]line Внесено: 500.00 [18:56:48]line СДАЧА: 0.00 [18:56:48]line НСП 1% : 4.43 [18:56:48]line НДС 12% : 53.12 [18:56:48]line Наличными: 500.00 [18:56:48]line Безнал.: 0.00 [18:56:48]line Место: АЗС № 38 "Партнер Нефть" [18:56:48]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [18:56:48]line СНО: Общий режим [18:56:48]line Чек 103 13.08.2024 18:56 [18:56:48]line Смена: 464 ФФД: 1.0 [18:56:48]line ЗНМ: 0300000126 [18:56:48]line РНМ: 0000000000092718 [18:56:48]line Версия ККМ: 001 [18:56:48]line ФМ: 0000000000875058 [18:56:48]line ФД: 103192 [18:56:48]line ФПД: 82420550309343 [18:56:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T185648&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103192&fm=82420550309343&tin=02508201610067®Number=0000000000092718&sum=50000 [18:56:48]OFD Sender: Processing packet 103192 [packets to send 69, broken 68] [18:56:48]ProducePacketName [18:56:48]name=ofd_packets/00103192 [18:56:48]OFD Sender: To server: pG, [18:56:48]CommunicateWithHost lk.salyk.kg:30040 [18:56:48]ConnectInit lk.salyk.kg [18:56:48]written 0, free lines is 4095 [18:56:48]Connected sock=10 [18:56:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 5C 7F 07 01 B9 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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 70 AC BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 18 93 01 00 35 04 06 00 4A F6 07 9F 95 DF 9F 53 E2 B2 6A A3 C1 FC [18:56:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 E6 A6 47 00 B0 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 35 30 35 38 10 04 04 00 18 93 01 00 F4 03 04 00 E2 52 BB 66 B6 04 01 00 00 62 3A F3 C3 06 A3 67 FF [18:56:49]CommunicateWithHost err = 0 [18:56:49]CheckOFDResponse [18:56:49]1017 (14) - 77093643461234 [18:56:49]1041 (16) - 0000000000875058 [18:56:49]1040 (4) - 103192 [18:56:49]1012 (4) - 13.08.2024 12:34 [18:56:49]1206 (1) - 0 [18:56:49]OFD Sender: Remove packet 103192 [18:56:49]ProducePacketName [18:56:49]name=ofd_packets/00103192 [18:56:49]NVStorageDeleteData [18:56:49]Write to MH i2c: 01 00 00 B2 0A BC [18:56:49]Write i2c OK [18:56:49]MH_I2C_Read... [18:56:49]Read from MH i2c: 01 [18:56:49]MH_I2C_Read... [18:56:49]Read from MH i2c: 01 07 00 [18:56:49]MH_I2C_Read... [18:56:49]Read from MH i2c: 01 07 00 B2 0A 00 00 00 00 00 DF 0C AE [18:56:49]RasterBufferAndPrint [18:56:49]line [18:56:49]line [18:56:49]line [18:56:49]line [18:56:49]line [18:56:49]written 0, free lines is 3301 [18:56:49]MH_Cut [18:56:49]Write to MH i2c: D1 01 00 B9 0A 01 95 [18:56:49]Write i2c OK [18:56:49]MH_I2C_Read... [18:56:49]Read from MH i2c: D1 [18:56:49]MH_I2C_Read... [18:56:49]Read from MH i2c: D1 01 00 [18:56:49]MH_I2C_Read... [18:56:49]Read from MH i2c: D1 01 00 B9 0A 00 94 [18:56:49]Write to MH i2c: 01 00 00 BA 0A C4 [18:56:49]Write i2c OK [18:56:49]MH_I2C_Read... [18:56:49]OFD Sender: No OFD packet to send [18:56:50]*** Cut start [18:56:50]*** Purtial cut [18:56:50]*** CUTSNS_PIN = 0 [18:56:50]*** Stage 1: CUTSNS_PIN = 1 [18:56:52]Read from MH i2c: 01 [18:56:52]MH_I2C_Read... [18:56:52]*** Stop cut motor [18:56:52]*** Cut end [18:56:52]Read from MH i2c: 01 07 00 [18:56:52]MH_I2C_Read... [18:56:52]Read from MH i2c: 01 07 00 BA 0A 00 00 00 00 00 FF 0F D9 [18:56:52]process_action close_receipt done [18:56:52]requested_data is exist [18:56:52]produce_requested_data [18:56:52]requested_item fm.sn is exist - process it [18:56:52]wFMCommunicate request_size=4 [18:56:52]MH_SAM_APDU [18:56:52]CAPDU: 80 11 00 00 [18:56:52]Write to MH i2c: E2 08 00 BB 0A 80 11 00 00 00 00 00 00 3F [18:56:52]Write i2c OK [18:56:52]MH_I2C_Read... [18:56:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:52]Read from MH i2c: E2 [18:56:52]MH_I2C_Read... [18:56:52]Read from MH i2c: E2 17 00 [18:56:52]MH_I2C_Read... [18:56:52]Read from MH i2c: E2 17 00 BB 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 93 [18:56:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [18:56:52]wFMCommunicate OK [18:56:52]requested_item fd.num is exist - process it [18:56:52]SAM_PROTO_GetFieldsCounters [18:56:52]wFMCommunicate request_size=4 [18:56:52]MH_SAM_APDU [18:56:52]CAPDU: 80 13 00 00 [18:56:52]Write to MH i2c: E2 08 00 BC 0A 80 13 00 00 00 00 00 00 42 [18:56:52]Write i2c OK [18:56:52]MH_I2C_Read... [18:56:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:56:52]Read from MH i2c: E2 [18:56:52]MH_I2C_Read... [18:56:52]Read from MH i2c: E2 62 00 [18:56:52]MH_I2C_Read... [18:56:52]Read from MH i2c: E2 62 00 BC 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 18 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [18:56:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 18 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:56:52]wFMCommunicate OK [18:56:52]SAM_PROTO_GetFieldsCounters done [18:56:52]requested_item shift.num is exist - process it [18:56:52]requested_item shift.opened is exist - process it [18:56:52]req_shift_opened [18:56:52]FM_GetShiftState [18:56:52]SAM_PROTO_GetShiftState [18:56:52]wFMCommunicate request_size=4 [18:56:52]MH_SAM_APDU [18:56:52]CAPDU: 80 13 01 00 [18:56:52]Write to MH i2c: E2 08 00 BD 0A 80 13 01 00 00 00 00 00 44 [18:56:52]Write i2c OK [18:56:52]MH_I2C_Read... [18:56:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:52]Read from MH i2c: E2 [18:56:52]MH_I2C_Read... [18:56:52]Read from MH i2c: E2 0E 00 [18:56:52]MH_I2C_Read... [18:56:52]Read from MH i2c: E2 0E 00 BD 0A 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 62 [18:56:52]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [18:56:52]wFMCommunicate OK [18:56:52]SAM_PROTO_GetShiftState done [18:56:52]FM_GetShiftState done [18:56:52]req_shift_opened done [18:56:52]requested_item shift.open_date is exist - process it [18:56:52]req_shift_open_date [18:56:52]req_shift_open_date done [18:56:52]produce_requested_data done [18:56:52]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103192,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [18:56:52]process_action_free close_receipt [18:56:52]json_value_free [18:56:52]json_value_free done [18:56:52]process_json_proto returns [18:56:52]Send response to host [18:56:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103192,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [18:56:52]free response buf [18:56:52]execute_script done [18:56:52]execute_script returns [18:56:52]free content buf [18:56:52]Sock 7.Close socket [18:56:52]Sock 7.Thread stoped [18:56:54]OFD Sender: No OFD packet to send [18:56:59]OFD Sender: No OFD packet to send [18:57:04]OFD Sender: No OFD packet to send [18:57:09]OFD Sender: No OFD packet to send [18:57:14]OFD Sender: No OFD packet to send [18:57:19]OFD Sender: No OFD packet to send [18:57:24]OFD Sender: No OFD packet to send [18:57:29]OFD Sender: No OFD packet to send [18:57:34]OFD Sender: No OFD packet to send [18:57:39]OFD Sender: No OFD packet to send [18:57:44]OFD Sender: No OFD packet to send [18:57:49]OFD Sender: No OFD packet to send [18:57:54]OFD Sender: No OFD packet to send [18:57:59]OFD Sender: No OFD packet to send [18:58:04]OFD Sender: No OFD packet to send [18:58:09]OFD Sender: No OFD packet to send [18:58:14]OFD Sender: No OFD packet to send [18:58:19]OFD Sender: No OFD packet to send [18:58:24]OFD Sender: No OFD packet to send [18:58:29]OFD Sender: No OFD packet to send [18:58:34]OFD Sender: No OFD packet to send [18:58:39]OFD Sender: No OFD packet to send [18:58:44]OFD Sender: No OFD packet to send [18:58:49]OFD Sender: No OFD packet to send [18:58:54]OFD Sender: No OFD packet to send [18:58:59]OFD Sender: No OFD packet to send [18:59:04]OFD Sender: No OFD packet to send [18:59:09]OFD Sender: No OFD packet to send [18:59:14]OFD Sender: No OFD packet to send [18:59:19]OFD Sender: No OFD packet to send [18:59:24]OFD Sender: No OFD packet to send [18:59:29]OFD Sender: No OFD packet to send [18:59:34]OFD Sender: No OFD packet to send [18:59:39]OFD Sender: No OFD packet to send [18:59:44]OFD Sender: No OFD packet to send [18:59:49]OFD Sender: No OFD packet to send [18:59:54]OFD Sender: No OFD packet to send [18:59:59]OFD Sender: No OFD packet to send [19:00:04]OFD Sender: No OFD packet to send [19:00:09]OFD Sender: No OFD packet to send [19:00:14]OFD Sender: No OFD packet to send [19:00:19]OFD Sender: No OFD packet to send [19:00:24]OFD Sender: No OFD packet to send [19:00:29]OFD Sender: No OFD packet to send [19:00:34]OFD Sender: No OFD packet to send [19:00:39]OFD Sender: No OFD packet to send [19:00:44]OFD Sender: No OFD packet to send [19:00:49]OFD Sender: No OFD packet to send [19:00:54]OFD Sender: No OFD packet to send [19:00:59]OFD Sender: No OFD packet to send [19:01:04]OFD Sender: No OFD packet to send [19:01:09]OFD Sender: No OFD packet to send [19:01:14]OFD Sender: No OFD packet to send [19:01:19]OFD Sender: No OFD packet to send [19:01:24]OFD Sender: No OFD packet to send [19:01:29]OFD Sender: No OFD packet to send [19:01:34]OFD Sender: No OFD packet to send [19:01:39]OFD Sender: No OFD packet to send [19:01:44]OFD Sender: No OFD packet to send [19:01:49]OFD Sender: No OFD packet to send [19:01:54]OFD Sender: No OFD packet to send [19:01:59]OFD Sender: No OFD packet to send [19:02:04]OFD Sender: No OFD packet to send [19:02:09]OFD Sender: No OFD packet to send [19:02:14]OFD Sender: No OFD packet to send [19:02:19]OFD Sender: No OFD packet to send [19:02:24]OFD Sender: No OFD packet to send [19:02:29]OFD Sender: No OFD packet to send [19:02:34]OFD Sender: No OFD packet to send [19:02:39]OFD Sender: No OFD packet to send [19:02:44]OFD Sender: No OFD packet to send [19:02:49]OFD Sender: No OFD packet to send [19:02:54]OFD Sender: No OFD packet to send [19:02:59]OFD Sender: No OFD packet to send [19:03:04]OFD Sender: No OFD packet to send [19:03:09]OFD Sender: No OFD packet to send [19:03:15]OFD Sender: No OFD packet to send [19:03:20]OFD Sender: No OFD packet to send [19:03:25]OFD Sender: No OFD packet to send [19:03:30]OFD Sender: No OFD packet to send [19:03:35]OFD Sender: No OFD packet to send [19:03:40]OFD Sender: No OFD packet to send [19:03:45]OFD Sender: No OFD packet to send [19:03:50]OFD Sender: No OFD packet to send [19:03:55]OFD Sender: No OFD packet to send [19:04:00]OFD Sender: No OFD packet to send [19:04:05]OFD Sender: No OFD packet to send [19:04:10]OFD Sender: No OFD packet to send [19:04:15]OFD Sender: No OFD packet to send [19:04:20]OFD Sender: No OFD packet to send [19:04:25]OFD Sender: No OFD packet to send [19:04:30]OFD Sender: No OFD packet to send [19:04:35]OFD Sender: No OFD packet to send [19:04:40]OFD Sender: No OFD packet to send [19:04:45]OFD Sender: No OFD packet to send [19:04:50]OFD Sender: No OFD packet to send [19:04:55]OFD Sender: No OFD packet to send [19:05:00]OFD Sender: No OFD packet to send [19:05:05]OFD Sender: No OFD packet to send [19:05:10]OFD Sender: No OFD packet to send [19:05:15]OFD Sender: No OFD packet to send [19:05:20]OFD Sender: No OFD packet to send [19:05:25]OFD Sender: No OFD packet to send [19:05:30]OFD Sender: No OFD packet to send [19:05:35]OFD Sender: No OFD packet to send [19:05:40]OFD Sender: No OFD packet to send [19:05:45]OFD Sender: No OFD packet to send [19:05:50]OFD Sender: No OFD packet to send [19:05:55]OFD Sender: No OFD packet to send [19:06:00]OFD Sender: No OFD packet to send [19:06:05]OFD Sender: No OFD packet to send [19:06:10]OFD Sender: No OFD packet to send [19:06:15]OFD Sender: No OFD packet to send [19:06:20]OFD Sender: No OFD packet to send [19:06:25]OFD Sender: No OFD packet to send [19:06:30]OFD Sender: No OFD packet to send [19:06:35]OFD Sender: No OFD packet to send [19:06:40]OFD Sender: No OFD packet to send [19:06:45]OFD Sender: No OFD packet to send [19:06:50]OFD Sender: No OFD packet to send [19:06:55]OFD Sender: No OFD packet to send [19:07:00]OFD Sender: No OFD packet to send [19:07:05]OFD Sender: No OFD packet to send [19:07:10]OFD Sender: No OFD packet to send [19:07:15]OFD Sender: No OFD packet to send [19:07:20]OFD Sender: No OFD packet to send [19:07:25]OFD Sender: No OFD packet to send [19:07:30]OFD Sender: No OFD packet to send [19:07:35]OFD Sender: No OFD packet to send [19:07:40]OFD Sender: No OFD packet to send [19:07:45]OFD Sender: No OFD packet to send [19:07:50]OFD Sender: No OFD packet to send [19:07:55]OFD Sender: No OFD packet to send [19:08:00]OFD Sender: No OFD packet to send [19:08:05]OFD Sender: No OFD packet to send [19:08:10]OFD Sender: No OFD packet to send [19:08:15]OFD Sender: No OFD packet to send [19:08:20]OFD Sender: No OFD packet to send [19:08:25]OFD Sender: No OFD packet to send [19:08:30]OFD Sender: No OFD packet to send [19:08:35]OFD Sender: No OFD packet to send [19:08:40]OFD Sender: No OFD packet to send [19:08:45]OFD Sender: No OFD packet to send [19:08:50]OFD Sender: No OFD packet to send [19:08:55]OFD Sender: No OFD packet to send [19:09:00]OFD Sender: No OFD packet to send [19:09:05]OFD Sender: No OFD packet to send [19:09:10]OFD Sender: No OFD packet to send [19:09:15]OFD Sender: No OFD packet to send [19:09:20]OFD Sender: No OFD packet to send [19:09:25]OFD Sender: No OFD packet to send [19:09:30]OFD Sender: No OFD packet to send [19:09:35]OFD Sender: No OFD packet to send [19:09:40]OFD Sender: No OFD packet to send [19:09:45]OFD Sender: No OFD packet to send [19:09:50]OFD Sender: No OFD packet to send [19:09:55]OFD Sender: No OFD packet to send [19:10:00]OFD Sender: No OFD packet to send [19:10:05]OFD Sender: No OFD packet to send [19:10:10]OFD Sender: No OFD packet to send [19:10:15]OFD Sender: No OFD packet to send [19:10:20]OFD Sender: No OFD packet to send [19:10:25]OFD Sender: No OFD packet to send [19:10:30]OFD Sender: No OFD packet to send [19:10:35]OFD Sender: No OFD packet to send [19:10:40]OFD Sender: No OFD packet to send [19:10:45]OFD Sender: No OFD packet to send [19:10:50]OFD Sender: No OFD packet to send [19:10:55]OFD Sender: No OFD packet to send [19:11:00]OFD Sender: No OFD packet to send [19:11:05]OFD Sender: No OFD packet to send [19:11:10]OFD Sender: No OFD packet to send [19:11:15]OFD Sender: No OFD packet to send [19:11:20]OFD Sender: No OFD packet to send [19:11:25]OFD Sender: No OFD packet to send [19:11:30]OFD Sender: No OFD packet to send [19:11:35]OFD Sender: No OFD packet to send [19:11:40]OFD Sender: No OFD packet to send [19:11:45]OFD Sender: No OFD packet to send [19:11:50]OFD Sender: No OFD packet to send [19:11:55]OFD Sender: No OFD packet to send [19:12:00]OFD Sender: No OFD packet to send [19:12:05]OFD Sender: No OFD packet to send [19:12:10]OFD Sender: No OFD packet to send [19:12:15]OFD Sender: No OFD packet to send [19:12:20]OFD Sender: No OFD packet to send [19:12:25]OFD Sender: No OFD packet to send [19:12:30]OFD Sender: No OFD packet to send [19:12:35]OFD Sender: No OFD packet to send [19:12:40]OFD Sender: No OFD packet to send [19:12:45]OFD Sender: No OFD packet to send [19:12:50]OFD Sender: No OFD packet to send [19:12:55]OFD Sender: No OFD packet to send [19:13:00]OFD Sender: No OFD packet to send [19:13:05]OFD Sender: No OFD packet to send [19:13:10]OFD Sender: No OFD packet to send [19:13:15]OFD Sender: No OFD packet to send [19:13:20]OFD Sender: No OFD packet to send [19:13:25]OFD Sender: No OFD packet to send [19:13:30]OFD Sender: No OFD packet to send [19:13:35]OFD Sender: No OFD packet to send [19:13:40]OFD Sender: No OFD packet to send [19:13:41]accept exits with 9 [19:13:41]New connection [19:13:41]New thread 3067116900 created [19:13:41]Thread 3067260260 joined [19:13:41]Waiting for new connection... [19:13:41] Sock 9.Parse request [19:13:41]Sock 9.Check first char [19:13:41]Sock 9.First char is OK [19:13:41]request: POST /json_proto HTTP/1.0 [19:13:41]Method: POST [19:13:41]URL: /json_proto [19:13:41]Method is POST - this is cgi request [19:13:41]url: /json_proto [19:13:41]query_string will be loaded in cgi processing [19:13:41]execute_cgi json_proto POST (null) [19:13:41]execute_cgi path=json_proto method=POST [19:13:41]POST find Content-Length [19:13:41]Host: 172.17.58.3:8080 [19:13:41]Content-Length: 678 [19:13:41]Content-Type: application/json [19:13:41] [19:13:41]POST finish read [19:13:41]Found Content-Length = 678 [19:13:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160821", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 27.110, "sum" : 2000.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:13:41]execute_script... [19:13:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160821", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 27.110, "sum" : 2000.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:13:41]POST & json_proto [19:13:41]process_json_proto [19:13:41]json parsed OK: [19:13:41]protocol is kg_v1.0 [19:13:41]action value=close_receipt [19:13:41]process_action close_receipt [19:13:41]cmd_close_receipt [19:13:41]MH_GetDate [19:13:41]Write to MH i2c: F0 00 00 BE 0A B7 [19:13:41]Write i2c OK [19:13:41]MH_I2C_Read... [19:13:41]Read from MH i2c: F0 [19:13:41]MH_I2C_Read... [19:13:41]Read from MH i2c: F0 09 00 [19:13:41]MH_I2C_Read... [19:13:41]Read from MH i2c: F0 09 00 BE 0A 00 66 B0 BB 66 DC E4 6D 64 88 [19:13:41]GetLastDocTimeStamp 1723575408 [19:13:41]current date 1723576422 [19:13:41]FM_GetShiftState [19:13:41]SAM_PROTO_GetShiftState [19:13:41]wFMCommunicate request_size=4 [19:13:41]MH_SAM_APDU [19:13:41]CAPDU: 80 13 01 00 [19:13:41]Write to MH i2c: E2 08 00 BF 0A 80 13 01 00 00 00 00 00 46 [19:13:41]Write i2c OK [19:13:41]MH_I2C_Read... [19:13:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:41]Read from MH i2c: E2 [19:13:41]MH_I2C_Read... [19:13:41]Read from MH i2c: E2 0E 00 [19:13:41]MH_I2C_Read... [19:13:41]Read from MH i2c: E2 0E 00 BF 0A 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 64 [19:13:41]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [19:13:41]wFMCommunicate OK [19:13:41]SAM_PROTO_GetShiftState done [19:13:41]FM_GetShiftState done [19:13:41]opened in 1723506770 [19:13:41]opened+sec_in_day 1723593170 [19:13:41]quantity*price = 200071 [19:13:41]sum+1 = 200073 [19:13:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.72 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.47 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 104 13.08.2024 19:13 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103193 ФПД: 83917864076198 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T191342&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103193&fm=83917864076198&tin=02508201610067®Number=0000000000092718&sum=200000 [19:13:42]StoreToDocumentArchive [19:13:42]shift 464 fd 103193 [19:13:42]save to /storage/0464/doc_00103193 [19:13:42]save last doc name /storage/0464/doc_00103193 to /storage/kkm_last_doc_name [19:13:42]save OK [19:13:42]Clear old archive folders... [19:13:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:13:42]tlvbuf is 0022BC20 [19:13:42]SAM_PROTO_ClearQueue [19:13:42]wFMCommunicate request_size=4 [19:13:42]MH_SAM_APDU [19:13:42]CAPDU: 80 09 00 00 [19:13:42]Write to MH i2c: E2 08 00 CC 0A 80 09 00 00 00 00 00 00 48 [19:13:42]Write i2c OK [19:13:42]MH_I2C_Read... [19:13:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:13:42]Read from MH i2c: E2 [19:13:42]MH_I2C_Read... [19:13:42]Read from MH i2c: E2 03 00 [19:13:42]MH_I2C_Read... [19:13:42]Read from MH i2c: E2 03 00 CC 0A 00 90 00 4A [19:13:42]RAPDU: 90 00 [19:13:42]wFMCommunicate OK [19:13:42]SAM_PROTO_ClearQueue done [19:13:42]KKMCreateOFDPacket [19:13:42]OFDProtocolAddRootSTLVToBuf [19:13:42]FM_MakeSignedData [19:13:42]FM_MakeSignedData [19:13:42]SAM_PROTO_SignData [19:13:42]wFMCommunicate request_size=4 [19:13:42]MH_SAM_APDU [19:13:42]CAPDU: 80 0D 01 02 [19:13:42]Write to MH i2c: E2 08 00 CD 0A 80 0D 01 02 00 00 00 00 50 [19:13:42]Write i2c OK [19:13:42]MH_I2C_Read... [19:13:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:13:42]Read from MH i2c: E2 [19:13:42]MH_I2C_Read... [19:13:42]Read from MH i2c: E2 03 00 [19:13:42]MH_I2C_Read... [19:13:42]Read from MH i2c: E2 03 00 CD 0A 00 90 00 4B [19:13:42]RAPDU: 90 00 [19:13:42]wFMCommunicate OK [19:13:42]wFMCommunicate request_size=255 [19:13:42]MH_SAM_APDU [19:13:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 69 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 88 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 FF 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 68 00 00 00 F4 03 04 00 66 B0 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 19 93 01 00 35 04 06 00 4C 52 A6 7A [19:13:42]Write to MH i2c: E2 02 01 CE 0A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 69 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 88 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 FF 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 68 00 00 00 F4 03 04 00 66 B0 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 19 93 01 00 35 04 06 00 4C 52 A6 7A 00 00 43 [19:13:42]Write i2c OK [19:13:42]MH_I2C_Read... [19:13:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:42]Read from MH i2c: E2 [19:13:42]MH_I2C_Read... [19:13:42]Read from MH i2c: E2 03 00 [19:13:42]MH_I2C_Read... [19:13:42]Read from MH i2c: E2 03 00 CE 0A 00 90 00 4C [19:13:42]RAPDU: 90 00 [19:13:42]wFMCommunicate OK [19:13:42]wFMCommunicate request_size=7 [19:13:42]MH_SAM_APDU [19:13:42]CAPDU: 80 0D 02 02 02 83 A6 [19:13:42]Write to MH i2c: E2 0A 00 CF 0A 80 0D 02 02 02 00 83 A6 00 00 80 [19:13:42]Write i2c OK [19:13:42]MH_I2C_Read... [19:13:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:42]Read from MH i2c: E2 [19:13:42]MH_I2C_Read... [19:13:42]Read from MH i2c: E2 03 00 [19:13:42]MH_I2C_Read... [19:13:43]Read from MH i2c: E2 03 00 CF 0A 00 90 00 4D [19:13:43]RAPDU: 90 00 [19:13:43]wFMCommunicate OK [19:13:43]wFMCommunicate request_size=4 [19:13:43]MH_SAM_APDU [19:13:43]CAPDU: 80 0D 03 02 [19:13:43]Write to MH i2c: E2 08 00 D0 0A 80 0D 03 02 00 00 00 00 55 [19:13:43]Write i2c OK [19:13:43]MH_I2C_Read... [19:13:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:13:43]Read from MH i2c: E2 [19:13:43]MH_I2C_Read... [19:13:43]Read from MH i2c: E2 0B 00 [19:13:43]MH_I2C_Read... [19:13:43]Read from MH i2c: E2 0B 00 D0 0A 00 CC F4 10 B3 94 84 83 13 90 00 87 [19:13:43]RAPDU: CC F4 10 B3 94 84 83 13 90 00 [19:13:43]wFMCommunicate OK [19:13:43]SAM_PROTO_SignData done [19:13:43]FM_MakeSignedData done [19:13:43]CreateOFDProtocolMessage [19:13:43]wFMCommunicate request_size=4 [19:13:43]MH_SAM_APDU [19:13:43]CAPDU: 80 11 00 00 [19:13:43]Write to MH i2c: E2 08 00 D1 0A 80 11 00 00 00 00 00 00 55 [19:13:43]Write i2c OK [19:13:43]MH_I2C_Read... [19:13:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:43]Read from MH i2c: E2 [19:13:43]MH_I2C_Read... [19:13:43]Read from MH i2c: E2 17 00 [19:13:43]MH_I2C_Read... [19:13:43]Read from MH i2c: E2 17 00 D1 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 A9 [19:13:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [19:13:43]wFMCommunicate OK [19:13:43]CreateOFDProtocolMessage done [19:13:43]OFDSenderStorePacket 103193 [19:13:43]StoreOFDPacket docnum=103193 [19:13:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 E2 E3 04 01 7F 92 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 69 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 88 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 FF 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 68 00 00 00 F4 03 04 00 66 B0 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 19 93 01 00 35 04 06 00 4C 52 A6 7A 83 A6 CC F4 10 B3 94 84 83 13 [19:13:43]CheckFolder [19:13:43]dirname=/storage/ofd_packets [19:13:43]CheckFolder done [19:13:43]ProducePacketName [19:13:43]name=ofd_packets/00103193 [19:13:43]NVStorageSaveData ofd_packets/00103193 [19:13:43]File name is /storage/ofd_packets/00103193 [19:13:43]Write 298 bytes [19:13:43]NVStorageSaveData done [19:13:43]OFDSenderStorePacket done [19:13:43]KKMCreateOFDPacket done [19:13:43]NVStorageSaveData kkm_last_timestamp [19:13:43]File name is /storage/kkm_last_timestamp [19:13:43]Write 4 bytes [19:13:43]NVStorageSaveData done [19:13:43]ExternCall_PrintAddStr [19:13:43]wPrintStart [19:13:43]Write to MH i2c: 01 00 00 D2 0A DC [19:13:43]Write i2c OK [19:13:43]MH_I2C_Read... [19:13:43]Read from MH i2c: 01 [19:13:43]MH_I2C_Read... [19:13:43]Read from MH i2c: 01 07 00 [19:13:43]MH_I2C_Read... [19:13:43]Read from MH i2c: 01 07 00 D2 0A 00 00 00 00 00 FF 0F F1 [19:13:43]RasterBufferAndPrint [19:13:43]line Счет N : (1)160821 [19:13:43]line ИНН: 02508201610067 [19:13:43]line Контрольно-Кассовый Чек [19:13:43]line ПРОДАЖА [19:13:43]line ТРК (МРК, ГНК) : 5 [19:13:43]line Товар: 2710194210 [19:13:43]line ДТ-К-5 [19:13:43]line 27.110 * 73.80 [19:13:43]line = 2000.72 [19:13:43]line НДС 12% НСП 1% [19:13:43]line > о реализуемом товаре [19:13:43]line ОКРУГЛЕНИЕ: -0.72 [19:13:43]line ИТОГО: 2000.00 [19:13:43]line Внесено: 2000.00 [19:13:43]line СДАЧА: 0.00 [19:13:43]line НСП 1% : 17.70 [19:13:43]line НДС 12% : 212.47 [19:13:43]line Наличными: 2000.00 [19:13:43]line Безнал.: 0.00 [19:13:43]line Место: АЗС № 38 "Партнер Нефть" [19:13:43]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [19:13:43]line СНО: Общий режим [19:13:43]line Чек 104 13.08.2024 19:13 [19:13:43]line Смена: 464 ФФД: 1.0 [19:13:43]line ЗНМ: 0300000126 [19:13:43]line РНМ: 0000000000092718 [19:13:43]line Версия ККМ: 001 [19:13:43]line ФМ: 0000000000875058 [19:13:43]line ФД: 103193 [19:13:43]line ФПД: 83917864076198 [19:13:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T191342&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103193&fm=83917864076198&tin=02508201610067®Number=0000000000092718&sum=200000 [19:13:43]OFD Sender: Processing packet 103193 [packets to send 69, broken 68] [19:13:43]ProducePacketName [19:13:43]name=ofd_packets/00103193 [19:13:43]OFD Sender: To server: pG, [19:13:43]CommunicateWithHost lk.salyk.kg:30040 [19:13:43]ConnectInit lk.salyk.kg [19:13:43]written 0, free lines is 4095 [19:13:43]Connected sock=10 [19:13:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 E2 E3 04 01 7F 92 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 69 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 88 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 FF 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 68 00 00 00 F4 03 04 00 66 B0 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 19 93 01 00 35 04 06 00 4C 52 A6 7A 83 A6 CC F4 10 B3 94 84 83 13 [19:13:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 F0 0B 47 00 0C 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 19 93 01 00 F4 03 04 00 D8 56 BB 66 B6 04 01 00 00 00 E7 6B 37 BE F1 4E 9A [19:13:43]CommunicateWithHost err = 0 [19:13:43]CheckOFDResponse [19:13:43]1017 (14) - 77093643461234 [19:13:43]1041 (16) - 0000000000875058 [19:13:43]1040 (4) - 103193 [19:13:43]1012 (4) - 13.08.2024 12:51 [19:13:43]1206 (1) - 0 [19:13:43]OFD Sender: Remove packet 103193 [19:13:43]ProducePacketName [19:13:43]name=ofd_packets/00103193 [19:13:43]NVStorageDeleteData [19:13:43]Write to MH i2c: 01 00 00 FD 0A 07 [19:13:43]Write i2c OK [19:13:43]MH_I2C_Read... [19:13:43]Read from MH i2c: 01 [19:13:43]MH_I2C_Read... [19:13:43]Read from MH i2c: 01 07 00 [19:13:43]MH_I2C_Read... [19:13:43]Read from MH i2c: 01 07 00 FD 0A 00 00 00 00 00 DA 0C F4 [19:13:43]RasterBufferAndPrint [19:13:43]line [19:13:43]line [19:13:43]line [19:13:43]line [19:13:43]line [19:13:43]written 0, free lines is 3296 [19:13:43]MH_Cut [19:13:43]Write to MH i2c: D1 01 00 04 0B 01 E1 [19:13:43]Write i2c OK [19:13:43]MH_I2C_Read... [19:13:43]Read from MH i2c: D1 [19:13:43]MH_I2C_Read... [19:13:43]Read from MH i2c: D1 01 00 [19:13:43]MH_I2C_Read... [19:13:43]Read from MH i2c: D1 01 00 04 0B 00 E0 [19:13:43]Write to MH i2c: 01 00 00 05 0B 10 [19:13:43]Write i2c OK [19:13:43]MH_I2C_Read... [19:13:44]OFD Sender: No OFD packet to send [19:13:44]*** Cut start [19:13:44]*** Purtial cut [19:13:44]*** Stage 1: CUTSNS_PIN = 1 [19:13:44]Read from MH i2c: 01 [19:13:44]MH_I2C_Read... [19:13:44]*** Stop cut motor [19:13:44]*** Cut end [19:13:44]Read from MH i2c: 01 07 00 [19:13:44]MH_I2C_Read... [19:13:44]Read from MH i2c: 01 07 00 05 0B 00 00 00 00 00 FF 0F 25 [19:13:44]process_action close_receipt done [19:13:44]requested_data is exist [19:13:44]produce_requested_data [19:13:44]requested_item fm.sn is exist - process it [19:13:44]wFMCommunicate request_size=4 [19:13:44]MH_SAM_APDU [19:13:44]CAPDU: 80 11 00 00 [19:13:44]Write to MH i2c: E2 08 00 06 0B 80 11 00 00 00 00 00 00 8B [19:13:44]Write i2c OK [19:13:44]MH_I2C_Read... [19:13:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:45]Read from MH i2c: E2 [19:13:45]MH_I2C_Read... [19:13:45]Read from MH i2c: E2 17 00 [19:13:45]MH_I2C_Read... [19:13:45]Read from MH i2c: E2 17 00 06 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 DF [19:13:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [19:13:45]wFMCommunicate OK [19:13:45]requested_item fd.num is exist - process it [19:13:45]SAM_PROTO_GetFieldsCounters [19:13:45]wFMCommunicate request_size=4 [19:13:45]MH_SAM_APDU [19:13:45]CAPDU: 80 13 00 00 [19:13:45]Write to MH i2c: E2 08 00 07 0B 80 13 00 00 00 00 00 00 8E [19:13:45]Write i2c OK [19:13:45]MH_I2C_Read... [19:13:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:13:45]Read from MH i2c: E2 [19:13:45]MH_I2C_Read... [19:13:45]Read from MH i2c: E2 62 00 [19:13:45]MH_I2C_Read... [19:13:45]Read from MH i2c: E2 62 00 07 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 19 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [19:13:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 19 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:13:45]wFMCommunicate OK [19:13:45]SAM_PROTO_GetFieldsCounters done [19:13:45]requested_item shift.num is exist - process it [19:13:45]requested_item shift.opened is exist - process it [19:13:45]req_shift_opened [19:13:45]FM_GetShiftState [19:13:45]SAM_PROTO_GetShiftState [19:13:45]wFMCommunicate request_size=4 [19:13:45]MH_SAM_APDU [19:13:45]CAPDU: 80 13 01 00 [19:13:45]Write to MH i2c: E2 08 00 08 0B 80 13 01 00 00 00 00 00 90 [19:13:45]Write i2c OK [19:13:45]MH_I2C_Read... [19:13:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:45]Read from MH i2c: E2 [19:13:45]MH_I2C_Read... [19:13:45]Read from MH i2c: E2 0E 00 [19:13:45]MH_I2C_Read... [19:13:45]Read from MH i2c: E2 0E 00 08 0B 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 AE [19:13:45]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [19:13:45]wFMCommunicate OK [19:13:45]SAM_PROTO_GetShiftState done [19:13:45]FM_GetShiftState done [19:13:45]req_shift_opened done [19:13:45]requested_item shift.open_date is exist - process it [19:13:45]req_shift_open_date [19:13:45]req_shift_open_date done [19:13:45]produce_requested_data done [19:13:45]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103193,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [19:13:45]process_action_free close_receipt [19:13:45]json_value_free [19:13:45]json_value_free done [19:13:45]process_json_proto returns [19:13:45]Send response to host [19:13:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103193,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [19:13:45]free response buf [19:13:45]execute_script done [19:13:45]execute_script returns [19:13:45]free content buf [19:13:45]Sock 9.Close socket [19:13:45]Sock 9.Thread stoped [19:13:49]OFD Sender: No OFD packet to send [19:13:54]OFD Sender: No OFD packet to send [19:13:59]OFD Sender: No OFD packet to send [19:14:04]OFD Sender: No OFD packet to send [19:14:09]OFD Sender: No OFD packet to send [19:14:14]OFD Sender: No OFD packet to send [19:14:19]OFD Sender: No OFD packet to send [19:14:24]OFD Sender: No OFD packet to send [19:14:29]accept exits with 7 [19:14:29]New connection [19:14:29]New thread 3067260260 created [19:14:29]Thread 3067116900 joined [19:14:29]Waiting for new connection... [19:14:29] Sock 7.Parse request [19:14:29]Sock 7.Check first char [19:14:29]Sock 7.First char is OK [19:14:29]request: POST /json_proto HTTP/1.0 [19:14:29]Method: POST [19:14:29]URL: /json_proto [19:14:29]Method is POST - this is cgi request [19:14:29]url: /json_proto [19:14:29]query_string will be loaded in cgi processing [19:14:29]execute_cgi json_proto POST (null) [19:14:29]execute_cgi path=json_proto method=POST [19:14:29]POST find Content-Length [19:14:29]Host: 172.17.58.3:8080 [19:14:29]Content-Length: 816 [19:14:29]Content-Type: application/json [19:14:29] [19:14:29]POST finish read [19:14:29]Found Content-Length = 816 [19:14:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160822", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 12.140, "sum" : 800.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 800.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:14:29]execute_script... [19:14: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)160822", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 12.140, "sum" : 800.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 800.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:14:29]POST & json_proto [19:14:29]process_json_proto [19:14:29]json parsed OK: [19:14:29]protocol is kg_v1.0 [19:14:29]action value=close_receipt [19:14:29]process_action close_receipt [19:14:29]cmd_close_receipt [19:14:29]MH_GetDate [19:14:29]Write to MH i2c: F0 00 00 09 0B 03 [19:14:29]Write i2c OK [19:14:29]MH_I2C_Read... [19:14:29]Read from MH i2c: F0 [19:14:29]MH_I2C_Read... [19:14:29]Read from MH i2c: F0 09 00 [19:14:29]MH_I2C_Read... [19:14:29]Read from MH i2c: F0 09 00 09 0B 00 96 B0 BB 66 DC E4 6D 64 04 [19:14:29]GetLastDocTimeStamp 1723576422 [19:14:29]current date 1723576470 [19:14:29]FM_GetShiftState [19:14:29]SAM_PROTO_GetShiftState [19:14:29]wFMCommunicate request_size=4 [19:14:29]MH_SAM_APDU [19:14:29]CAPDU: 80 13 01 00 [19:14:29]Write to MH i2c: E2 08 00 0A 0B 80 13 01 00 00 00 00 00 92 [19:14:29]Write i2c OK [19:14:29]MH_I2C_Read... [19:14:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:29]Read from MH i2c: E2 [19:14:29]MH_I2C_Read... [19:14:29]Read from MH i2c: E2 0E 00 [19:14:29]MH_I2C_Read... [19:14:29]Read from MH i2c: E2 0E 00 0A 0B 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 B0 [19:14:29]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [19:14:29]wFMCommunicate OK [19:14:29]SAM_PROTO_GetShiftState done [19:14:29]FM_GetShiftState done [19:14:29]opened in 1723506770 [19:14:29]opened+sec_in_day 1723593170 [19:14:29]quantity*price = 80002 [19:14:29]sum+1 = 80004 [19:14:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.03 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 0.00 Безнал.: 800.03 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 105 13.08.2024 19:14 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875058 ФД: 103194 ФПД: 91259866457771 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T191430&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103194&fm=91259866457771&tin=02508201610067®Number=0000000000092718&sum=80003 [19:14:30]StoreToDocumentArchive [19:14:30]shift 464 fd 103194 [19:14:30]save to /storage/0464/doc_00103194 [19:14:30]save last doc name /storage/0464/doc_00103194 to /storage/kkm_last_doc_name [19:14:30]save OK [19:14:30]Clear old archive folders... [19:14:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:14:30]tlvbuf is 00219680 [19:14:30]SAM_PROTO_ClearQueue [19:14:30]wFMCommunicate request_size=4 [19:14:30]MH_SAM_APDU [19:14:30]CAPDU: 80 09 00 00 [19:14:30]Write to MH i2c: E2 08 00 17 0B 80 09 00 00 00 00 00 00 94 [19:14:30]Write i2c OK [19:14:30]MH_I2C_Read... [19:14:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:14:30]Read from MH i2c: E2 [19:14:30]MH_I2C_Read... [19:14:30]Read from MH i2c: E2 03 00 [19:14:30]MH_I2C_Read... [19:14:30]Read from MH i2c: E2 03 00 17 0B 00 90 00 96 [19:14:30]RAPDU: 90 00 [19:14:30]wFMCommunicate OK [19:14:30]SAM_PROTO_ClearQueue done [19:14:30]KKMCreateOFDPacket [19:14:30]OFDProtocolAddRootSTLVToBuf [19:14:30]FM_MakeSignedData [19:14:30]FM_MakeSignedData [19:14:30]SAM_PROTO_SignData [19:14:30]wFMCommunicate request_size=4 [19:14:30]MH_SAM_APDU [19:14:30]CAPDU: 80 0D 01 02 [19:14:30]Write to MH i2c: E2 08 00 18 0B 80 0D 01 02 00 00 00 00 9C [19:14:30]Write i2c OK [19:14:30]MH_I2C_Read... [19:14:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:14:30]Read from MH i2c: E2 [19:14:30]MH_I2C_Read... [19:14:30]Read from MH i2c: E2 03 00 [19:14:30]MH_I2C_Read... [19:14:30]Read from MH i2c: E2 03 00 18 0B 00 90 00 97 [19:14:30]RAPDU: 90 00 [19:14:30]wFMCommunicate OK [19:14:30]wFMCommunicate request_size=255 [19:14:30]MH_SAM_APDU [19:14: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 6C 2F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 83 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 83 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 96 B0 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 1A 93 01 00 35 04 06 00 53 [19:14:30]Write to MH i2c: E2 02 01 19 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 2F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 83 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 83 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 96 B0 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 1A 93 01 00 35 04 06 00 53 00 00 08 [19:14:30]Write i2c OK [19:14:30]MH_I2C_Read... [19:14:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:30]Read from MH i2c: E2 [19:14:30]MH_I2C_Read... [19:14:30]Read from MH i2c: E2 03 00 [19:14:30]MH_I2C_Read... [19:14:30]Read from MH i2c: E2 03 00 19 0B 00 90 00 98 [19:14:30]RAPDU: 90 00 [19:14:30]wFMCommunicate OK [19:14:30]wFMCommunicate request_size=10 [19:14:30]MH_SAM_APDU [19:14:30]CAPDU: 80 0D 02 02 05 00 17 EC 26 AB [19:14:30]Write to MH i2c: E2 0D 00 1A 0B 80 0D 02 02 05 00 00 17 EC 26 AB 00 00 7D [19:14:30]Write i2c OK [19:14:30]MH_I2C_Read... [19:14:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:30]Read from MH i2c: E2 [19:14:30]MH_I2C_Read... [19:14:30]Read from MH i2c: E2 03 00 [19:14:30]MH_I2C_Read... [19:14:30]Read from MH i2c: E2 03 00 1A 0B 00 90 00 99 [19:14:30]RAPDU: 90 00 [19:14:30]wFMCommunicate OK [19:14:30]wFMCommunicate request_size=4 [19:14:30]MH_SAM_APDU [19:14:30]CAPDU: 80 0D 03 02 [19:14:30]Write to MH i2c: E2 08 00 1B 0B 80 0D 03 02 00 00 00 00 A1 [19:14:30]Write i2c OK [19:14:30]MH_I2C_Read... [19:14:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:14:30]Read from MH i2c: E2 [19:14:30]MH_I2C_Read... [19:14:30]Read from MH i2c: E2 0B 00 [19:14:30]MH_I2C_Read... [19:14:30]Read from MH i2c: E2 0B 00 1B 0B 00 C7 E0 F4 F5 98 36 42 46 90 00 88 [19:14:30]RAPDU: C7 E0 F4 F5 98 36 42 46 90 00 [19:14:30]wFMCommunicate OK [19:14:30]SAM_PROTO_SignData done [19:14:30]FM_MakeSignedData done [19:14:30]CreateOFDProtocolMessage [19:14:30]wFMCommunicate request_size=4 [19:14:30]MH_SAM_APDU [19:14:30]CAPDU: 80 11 00 00 [19:14:30]Write to MH i2c: E2 08 00 1C 0B 80 11 00 00 00 00 00 00 A1 [19:14:30]Write i2c OK [19:14:30]MH_I2C_Read... [19:14:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:30]Read from MH i2c: E2 [19:14:30]MH_I2C_Read... [19:14:30]Read from MH i2c: E2 17 00 [19:14:30]MH_I2C_Read... [19:14:30]Read from MH i2c: E2 17 00 1C 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 F5 [19:14:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [19:14:30]wFMCommunicate OK [19:14:30]CreateOFDProtocolMessage done [19:14:30]OFDSenderStorePacket 103194 [19:14:30]StoreOFDPacket docnum=103194 [19:14:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 B7 79 07 01 18 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 2F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 83 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 83 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 96 B0 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 1A 93 01 00 35 04 06 00 53 00 17 EC 26 AB C7 E0 F4 F5 98 36 42 46 [19:14:30]CheckFolder [19:14:30]dirname=/storage/ofd_packets [19:14:30]CheckFolder done [19:14:30]ProducePacketName [19:14:30]name=ofd_packets/00103194 [19:14:30]NVStorageSaveData ofd_packets/00103194 [19:14:30]File name is /storage/ofd_packets/00103194 [19:14:30]Write 301 bytes [19:14:30]NVStorageSaveData done [19:14:30]OFDSenderStorePacket done [19:14:30]KKMCreateOFDPacket done [19:14:30]NVStorageSaveData kkm_last_timestamp [19:14:30]File name is /storage/kkm_last_timestamp [19:14:30]Write 4 bytes [19:14:30]NVStorageSaveData done [19:14:30]ExternCall_PrintAddStr [19:14:30]wPrintStart [19:14:30]Write to MH i2c: 01 00 00 1D 0B 28 [19:14:30]Write i2c OK [19:14:30]MH_I2C_Read... [19:14:30]Read from MH i2c: 01 [19:14:30]MH_I2C_Read... [19:14:30]Read from MH i2c: 01 07 00 [19:14:30]MH_I2C_Read... [19:14:30]Read from MH i2c: 01 07 00 1D 0B 00 00 00 00 00 FF 0F 3D [19:14:30]RasterBufferAndPrint [19:14:30]line Счет N : (1)160822 [19:14:30]line ИНН: 02508201610067 [19:14:30]line Контрольно-Кассовый Чек [19:14:30]line ПРОДАЖА [19:14:30]line ТРК (МРК, ГНК) : 3 [19:14:30]line Товар: 2710124130 [19:14:30]line Аи-92-К-5 [19:14:30]line 12.140 * 65.90 [19:14:30]line = 800.03 [19:14:30]line НДС 12% НСП 1% [19:14:30]line > о реализуемом товаре [19:14:30]line ИТОГО: 800.03 [19:14:30]line НСП 1% : 7.08 [19:14:30]line НДС 12% : 84.96 [19:14:30]line Наличными: 0.00 [19:14:30]line Безнал.: 800.03 [19:14:30]line Место: АЗС № 38 "Партнер Нефть" [19:14:30]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [19:14:30]line СНО: Общий режим [19:14:30]line Чек 105 13.08.2024 19:14 [19:14:30]line Смена: 464 ФФД: 1.0 [19:14:30]line ЗНМ: 0300000126 [19:14:30]line РНМ: 0000000000092718 [19:14:30]line Версия ККМ: 001 [19:14:30]line Платежная система: Бакай Банк [19:14:30]line ФМ: 0000000000875058 [19:14:30]line ФД: 103194 [19:14:30]line ФПД: 91259866457771 [19:14:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T191430&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103194&fm=91259866457771&tin=02508201610067®Number=0000000000092718&sum=80003 [19:14:31]written 0, free lines is 4095 [19:14:31]OFD Sender: Processing packet 103194 [packets to send 69, broken 68] [19:14:31]ProducePacketName [19:14:31]name=ofd_packets/00103194 [19:14:31]OFD Sender: To server: pG, [19:14:31]CommunicateWithHost lk.salyk.kg:30040 [19:14:31]ConnectInit lk.salyk.kg [19:14:31]Connected sock=10 [19:14:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 B7 79 07 01 18 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 2F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 83 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 83 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 96 B0 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 1A 93 01 00 35 04 06 00 53 00 17 EC 26 AB C7 E0 F4 F5 98 36 42 46 [19:14:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 FD 4B 47 00 28 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 1A 93 01 00 F4 03 04 00 08 57 BB 66 B6 04 01 00 00 06 3B 7A 72 B4 E2 1F CD [19:14:31]CommunicateWithHost err = 0 [19:14:31]CheckOFDResponse [19:14:31]1017 (14) - 77093643461234 [19:14:31]1041 (16) - 0000000000875058 [19:14:31]1040 (4) - 103194 [19:14:31]1012 (4) - 13.08.2024 12:52 [19:14:31]1206 (1) - 0 [19:14:31]OFD Sender: Remove packet 103194 [19:14:31]ProducePacketName [19:14:31]name=ofd_packets/00103194 [19:14:31]NVStorageDeleteData [19:14:31]Write to MH i2c: 01 00 00 47 0B 52 [19:14:31]Write i2c OK [19:14:31]MH_I2C_Read... [19:14:31]Read from MH i2c: 01 [19:14:31]MH_I2C_Read... [19:14:31]Read from MH i2c: 01 07 00 [19:14:31]MH_I2C_Read... [19:14:31]Read from MH i2c: 01 07 00 47 0B 00 00 00 00 00 ED 0C 52 [19:14:31]RasterBufferAndPrint [19:14:31]line [19:14:31]line [19:14:31]line [19:14:31]line [19:14:31]line [19:14:31]written 0, free lines is 3315 [19:14:31]MH_Cut [19:14:31]Write to MH i2c: D1 01 00 4E 0B 01 2B [19:14:31]Write i2c OK [19:14:31]MH_I2C_Read... [19:14:31]Read from MH i2c: D1 [19:14:31]MH_I2C_Read... [19:14:31]Read from MH i2c: D1 01 00 [19:14:31]MH_I2C_Read... [19:14:31]Read from MH i2c: D1 01 00 4E 0B 00 2A [19:14:31]Write to MH i2c: 01 00 00 4F 0B 5A [19:14:31]Write i2c OK [19:14:31]MH_I2C_Read... [19:14:31]OFD Sender: No OFD packet to send [19:14:32]*** Cut start [19:14:32]*** Purtial cut [19:14:32]*** CUTSNS_PIN = 0 [19:14:32]*** Stage 1: CUTSNS_PIN = 1 [19:14:34]Read from MH i2c: 01 [19:14:34]MH_I2C_Read... [19:14:34]*** Stop cut motor [19:14:34]*** Cut end [19:14:34]Read from MH i2c: 01 07 00 [19:14:34]MH_I2C_Read... [19:14:34]Read from MH i2c: 01 07 00 4F 0B 00 00 00 00 00 FF 0F 6F [19:14:34]process_action close_receipt done [19:14:34]requested_data is exist [19:14:34]produce_requested_data [19:14:34]requested_item fm.sn is exist - process it [19:14:34]wFMCommunicate request_size=4 [19:14:34]MH_SAM_APDU [19:14:34]CAPDU: 80 11 00 00 [19:14:34]Write to MH i2c: E2 08 00 50 0B 80 11 00 00 00 00 00 00 D5 [19:14:34]Write i2c OK [19:14:34]MH_I2C_Read... [19:14:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:34]Read from MH i2c: E2 [19:14:34]MH_I2C_Read... [19:14:34]Read from MH i2c: E2 17 00 [19:14:34]MH_I2C_Read... [19:14:34]Read from MH i2c: E2 17 00 50 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 29 [19:14:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [19:14:34]wFMCommunicate OK [19:14:34]requested_item fd.num is exist - process it [19:14:34]SAM_PROTO_GetFieldsCounters [19:14:34]wFMCommunicate request_size=4 [19:14:34]MH_SAM_APDU [19:14:34]CAPDU: 80 13 00 00 [19:14:34]Write to MH i2c: E2 08 00 51 0B 80 13 00 00 00 00 00 00 D8 [19:14:34]Write i2c OK [19:14:34]MH_I2C_Read... [19:14:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:14:34]Read from MH i2c: E2 [19:14:34]MH_I2C_Read... [19:14:34]Read from MH i2c: E2 62 00 [19:14:34]MH_I2C_Read... [19:14:34]Read from MH i2c: E2 62 00 51 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 1A 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [19:14:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 1A 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:14:34]wFMCommunicate OK [19:14:34]SAM_PROTO_GetFieldsCounters done [19:14:34]requested_item shift.num is exist - process it [19:14:34]requested_item shift.opened is exist - process it [19:14:34]req_shift_opened [19:14:34]FM_GetShiftState [19:14:34]SAM_PROTO_GetShiftState [19:14:34]wFMCommunicate request_size=4 [19:14:34]MH_SAM_APDU [19:14:34]CAPDU: 80 13 01 00 [19:14:34]Write to MH i2c: E2 08 00 52 0B 80 13 01 00 00 00 00 00 DA [19:14:34]Write i2c OK [19:14:34]MH_I2C_Read... [19:14:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:34]Read from MH i2c: E2 [19:14:34]MH_I2C_Read... [19:14:34]Read from MH i2c: E2 0E 00 [19:14:34]MH_I2C_Read... [19:14:34]Read from MH i2c: E2 0E 00 52 0B 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 F8 [19:14:34]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [19:14:34]wFMCommunicate OK [19:14:34]SAM_PROTO_GetShiftState done [19:14:34]FM_GetShiftState done [19:14:34]req_shift_opened done [19:14:34]requested_item shift.open_date is exist - process it [19:14:34]req_shift_open_date [19:14:34]req_shift_open_date done [19:14:34]produce_requested_data done [19:14:34]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103194,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [19:14:34]process_action_free close_receipt [19:14:34]json_value_free [19:14:34]json_value_free done [19:14:34]process_json_proto returns [19:14:34]Send response to host [19:14:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103194,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [19:14:34]free response buf [19:14:34]execute_script done [19:14:34]execute_script returns [19:14:34]free content buf [19:14:34]Sock 7.Close socket [19:14:34]Sock 7.Thread stoped [19:14:36]OFD Sender: No OFD packet to send [19:14:41]OFD Sender: No OFD packet to send [19:14:46]OFD Sender: No OFD packet to send [19:14:51]OFD Sender: No OFD packet to send [19:14:56]OFD Sender: No OFD packet to send [19:15:01]OFD Sender: No OFD packet to send [19:15:06]OFD Sender: No OFD packet to send [19:15:11]OFD Sender: No OFD packet to send [19:15:16]OFD Sender: No OFD packet to send [19:15:21]OFD Sender: No OFD packet to send [19:15:26]OFD Sender: No OFD packet to send [19:15:31]OFD Sender: No OFD packet to send [19:15:36]OFD Sender: No OFD packet to send [19:15:41]OFD Sender: No OFD packet to send [19:15:46]OFD Sender: No OFD packet to send [19:15:51]OFD Sender: No OFD packet to send [19:15:56]OFD Sender: No OFD packet to send [19:16:01]OFD Sender: No OFD packet to send [19:16:06]OFD Sender: No OFD packet to send [19:16:12]OFD Sender: No OFD packet to send [19:16:17]OFD Sender: No OFD packet to send [19:16:22]OFD Sender: No OFD packet to send [19:16:27]OFD Sender: No OFD packet to send [19:16:32]OFD Sender: No OFD packet to send [19:16:37]OFD Sender: No OFD packet to send [19:16:42]OFD Sender: No OFD packet to send [19:16:47]OFD Sender: No OFD packet to send [19:16:52]OFD Sender: No OFD packet to send [19:16:57]OFD Sender: No OFD packet to send [19:17:02]OFD Sender: No OFD packet to send [19:17:07]OFD Sender: No OFD packet to send [19:17:12]OFD Sender: No OFD packet to send [19:17:17]OFD Sender: No OFD packet to send [19:17:22]OFD Sender: No OFD packet to send [19:17:27]OFD Sender: No OFD packet to send [19:17:32]OFD Sender: No OFD packet to send [19:17:37]OFD Sender: No OFD packet to send [19:17:42]OFD Sender: No OFD packet to send [19:17:47]OFD Sender: No OFD packet to send [19:17:52]OFD Sender: No OFD packet to send [19:17:57]OFD Sender: No OFD packet to send [19:18:02]OFD Sender: No OFD packet to send [19:18:07]OFD Sender: No OFD packet to send [19:18:12]OFD Sender: No OFD packet to send [19:18:17]OFD Sender: No OFD packet to send [19:18:22]OFD Sender: No OFD packet to send [19:18:27]OFD Sender: No OFD packet to send [19:18:32]OFD Sender: No OFD packet to send [19:18:37]OFD Sender: No OFD packet to send [19:18:42]OFD Sender: No OFD packet to send [19:18:47]OFD Sender: No OFD packet to send [19:18:52]OFD Sender: No OFD packet to send [19:18:57]OFD Sender: No OFD packet to send [19:19:02]OFD Sender: No OFD packet to send [19:19:07]OFD Sender: No OFD packet to send [19:19:12]OFD Sender: No OFD packet to send [19:19:17]OFD Sender: No OFD packet to send [19:19:22]OFD Sender: No OFD packet to send [19:19:27]OFD Sender: No OFD packet to send [19:19:32]OFD Sender: No OFD packet to send [19:19:37]OFD Sender: No OFD packet to send [19:19:42]OFD Sender: No OFD packet to send [19:19:47]OFD Sender: No OFD packet to send [19:19:52]OFD Sender: No OFD packet to send [19:19:57]OFD Sender: No OFD packet to send [19:20:02]OFD Sender: No OFD packet to send [19:20:02]accept exits with 9 [19:20:02]New connection [19:20:02]New thread 3067116900 created [19:20:02]Thread 3067260260 joined [19:20:02]Waiting for new connection... [19:20:02] Sock 9.Parse request [19:20:02]Sock 9.Check first char [19:20:02]Sock 9.First char is OK [19:20:02]request: POST /json_proto HTTP/1.0 [19:20:02]Method: POST [19:20:02]URL: /json_proto [19:20:02]Method is POST - this is cgi request [19:20:02]url: /json_proto [19:20:02]query_string will be loaded in cgi processing [19:20:02]execute_cgi json_proto POST (null) [19:20:02]execute_cgi path=json_proto method=POST [19:20:02]POST find Content-Length [19:20:02]Host: 172.17.58.3:8080 [19:20:02]Content-Length: 674 [19:20:02]Content-Type: application/json [19:20:02] [19:20:02]POST finish read [19:20:02]Found Content-Length = 674 [19:20:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 6.780, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:02]execute_script... [19:20: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)160823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 6.780, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:02]POST & json_proto [19:20:02]process_json_proto [19:20:02]json parsed OK: [19:20:02]protocol is kg_v1.0 [19:20:02]action value=close_receipt [19:20:02]process_action close_receipt [19:20:02]cmd_close_receipt [19:20:02]MH_GetDate [19:20:02]Write to MH i2c: F0 00 00 53 0B 4D [19:20:02]Write i2c OK [19:20:02]MH_I2C_Read... [19:20:02]Read from MH i2c: F0 [19:20:02]MH_I2C_Read... [19:20:02]Read from MH i2c: F0 09 00 [19:20:02]MH_I2C_Read... [19:20:02]Read from MH i2c: F0 09 00 53 0B 00 E3 B1 BB 66 DC E4 6D 64 9C [19:20:02]GetLastDocTimeStamp 1723576470 [19:20:02]current date 1723576803 [19:20:02]FM_GetShiftState [19:20:02]SAM_PROTO_GetShiftState [19:20:02]wFMCommunicate request_size=4 [19:20:02]MH_SAM_APDU [19:20:02]CAPDU: 80 13 01 00 [19:20:02]Write to MH i2c: E2 08 00 54 0B 80 13 01 00 00 00 00 00 DC [19:20:02]Write i2c OK [19:20:02]MH_I2C_Read... [19:20:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:02]Read from MH i2c: E2 [19:20:02]MH_I2C_Read... [19:20:02]Read from MH i2c: E2 0E 00 [19:20:02]MH_I2C_Read... [19:20:02]Read from MH i2c: E2 0E 00 54 0B 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 FA [19:20:02]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [19:20:02]wFMCommunicate OK [19:20:02]SAM_PROTO_GetShiftState done [19:20:02]FM_GetShiftState done [19:20:02]opened in 1723506770 [19:20:02]opened+sec_in_day 1723593170 [19:20:02]quantity*price = 50036 [19:20:02]sum+1 = 50037 [19:20:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 106 13.08.2024 19:20 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103195 ФПД: 203912360819601 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T192003&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103195&fm=203912360819601&tin=02508201610067®Number=0000000000092718&sum=50000 [19:20:03]StoreToDocumentArchive [19:20:03]shift 464 fd 103195 [19:20:03]save to /storage/0464/doc_00103195 [19:20:03]save last doc name /storage/0464/doc_00103195 to /storage/kkm_last_doc_name [19:20:03]save OK [19:20:03]Clear old archive folders... [19:20:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:20:03]tlvbuf is 0022EDB0 [19:20:03]SAM_PROTO_ClearQueue [19:20:03]wFMCommunicate request_size=4 [19:20:03]MH_SAM_APDU [19:20:03]CAPDU: 80 09 00 00 [19:20:03]Write to MH i2c: E2 08 00 61 0B 80 09 00 00 00 00 00 00 DE [19:20:03]Write i2c OK [19:20:03]MH_I2C_Read... [19:20:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:20:03]Read from MH i2c: E2 [19:20:03]MH_I2C_Read... [19:20:03]Read from MH i2c: E2 03 00 [19:20:03]MH_I2C_Read... [19:20:03]Read from MH i2c: E2 03 00 61 0B 00 90 00 E0 [19:20:03]RAPDU: 90 00 [19:20:03]wFMCommunicate OK [19:20:03]SAM_PROTO_ClearQueue done [19:20:03]KKMCreateOFDPacket [19:20:03]OFDProtocolAddRootSTLVToBuf [19:20:03]FM_MakeSignedData [19:20:03]FM_MakeSignedData [19:20:03]SAM_PROTO_SignData [19:20:03]wFMCommunicate request_size=4 [19:20:03]MH_SAM_APDU [19:20:03]CAPDU: 80 0D 01 02 [19:20:03]Write to MH i2c: E2 08 00 62 0B 80 0D 01 02 00 00 00 00 E6 [19:20:03]Write i2c OK [19:20:03]MH_I2C_Read... [19:20:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:20:03]Read from MH i2c: E2 [19:20:03]MH_I2C_Read... [19:20:03]Read from MH i2c: E2 03 00 [19:20:03]MH_I2C_Read... [19:20:03]Read from MH i2c: E2 03 00 62 0B 00 90 00 E1 [19:20:03]RAPDU: 90 00 [19:20:03]wFMCommunicate OK [19:20:03]wFMCommunicate request_size=255 [19:20:03]MH_SAM_APDU [19:20: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 7C 1A 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 E3 B1 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 1B 93 01 00 35 04 06 00 B9 75 0B D4 [19:20:03]Write to MH i2c: E2 02 01 63 0B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7C 1A 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 E3 B1 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 1B 93 01 00 35 04 06 00 B9 75 0B D4 00 00 67 [19:20:03]Write i2c OK [19:20:03]MH_I2C_Read... [19:20:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:04]Read from MH i2c: E2 [19:20:04]MH_I2C_Read... [19:20:04]Read from MH i2c: E2 03 00 [19:20:04]MH_I2C_Read... [19:20:04]Read from MH i2c: E2 03 00 63 0B 00 90 00 E2 [19:20:04]RAPDU: 90 00 [19:20:04]wFMCommunicate OK [19:20:04]wFMCommunicate request_size=7 [19:20:04]MH_SAM_APDU [19:20:04]CAPDU: 80 0D 02 02 02 FB 91 [19:20:04]Write to MH i2c: E2 0A 00 64 0B 80 0D 02 02 02 00 FB 91 00 00 79 [19:20:04]Write i2c OK [19:20:04]MH_I2C_Read... [19:20:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:04]Read from MH i2c: E2 [19:20:04]MH_I2C_Read... [19:20:04]Read from MH i2c: E2 03 00 [19:20:04]MH_I2C_Read... [19:20:04]Read from MH i2c: E2 03 00 64 0B 00 90 00 E3 [19:20:04]RAPDU: 90 00 [19:20:04]wFMCommunicate OK [19:20:04]wFMCommunicate request_size=4 [19:20:04]MH_SAM_APDU [19:20:04]CAPDU: 80 0D 03 02 [19:20:04]Write to MH i2c: E2 08 00 65 0B 80 0D 03 02 00 00 00 00 EB [19:20:04]Write i2c OK [19:20:04]MH_I2C_Read... [19:20:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:20:04]Read from MH i2c: E2 [19:20:04]MH_I2C_Read... [19:20:04]Read from MH i2c: E2 0B 00 [19:20:04]MH_I2C_Read... [19:20:04]Read from MH i2c: E2 0B 00 65 0B 00 47 1F 3A C2 0C 89 6D 7C 90 00 CC [19:20:04]RAPDU: 47 1F 3A C2 0C 89 6D 7C 90 00 [19:20:04]wFMCommunicate OK [19:20:04]SAM_PROTO_SignData done [19:20:04]FM_MakeSignedData done [19:20:04]CreateOFDProtocolMessage [19:20:04]wFMCommunicate request_size=4 [19:20:04]MH_SAM_APDU [19:20:04]CAPDU: 80 11 00 00 [19:20:04]Write to MH i2c: E2 08 00 66 0B 80 11 00 00 00 00 00 00 EB [19:20:04]Write i2c OK [19:20:04]MH_I2C_Read... [19:20:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:04]Read from MH i2c: E2 [19:20:04]MH_I2C_Read... [19:20:04]Read from MH i2c: E2 17 00 [19:20:04]MH_I2C_Read... [19:20:04]Read from MH i2c: E2 17 00 66 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 3F [19:20:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [19:20:04]wFMCommunicate OK [19:20:04]CreateOFDProtocolMessage done [19:20:04]OFDSenderStorePacket 103195 [19:20:04]StoreOFDPacket docnum=103195 [19:20:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 11 5E 04 01 2D 82 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7C 1A 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 E3 B1 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 1B 93 01 00 35 04 06 00 B9 75 0B D4 FB 91 47 1F 3A C2 0C 89 6D 7C [19:20:04]CheckFolder [19:20:04]dirname=/storage/ofd_packets [19:20:04]CheckFolder done [19:20:04]ProducePacketName [19:20:04]name=ofd_packets/00103195 [19:20:04]NVStorageSaveData ofd_packets/00103195 [19:20:04]File name is /storage/ofd_packets/00103195 [19:20:04]Write 298 bytes [19:20:04]NVStorageSaveData done [19:20:04]OFDSenderStorePacket done [19:20:04]KKMCreateOFDPacket done [19:20:04]NVStorageSaveData kkm_last_timestamp [19:20:04]File name is /storage/kkm_last_timestamp [19:20:04]Write 4 bytes [19:20:04]NVStorageSaveData done [19:20:04]ExternCall_PrintAddStr [19:20:04]wPrintStart [19:20:04]Write to MH i2c: 01 00 00 67 0B 72 [19:20:04]Write i2c OK [19:20:04]MH_I2C_Read... [19:20:04]Read from MH i2c: 01 [19:20:04]MH_I2C_Read... [19:20:04]Read from MH i2c: 01 07 00 [19:20:04]MH_I2C_Read... [19:20:04]Read from MH i2c: 01 07 00 67 0B 00 00 00 00 00 FF 0F 87 [19:20:04]RasterBufferAndPrint [19:20:04]line Счет N : (1)160823 [19:20:04]line ИНН: 02508201610067 [19:20:04]line Контрольно-Кассовый Чек [19:20:04]line ПРОДАЖА [19:20:04]line ТРК (МРК, ГНК) : 13 [19:20:04]line Товар: 2710194210 [19:20:04]line ДТ-К-5 [19:20:04]line 6.780 * 73.80 [19:20:04]line = 500.36 [19:20:04]line НДС 12% НСП 1% [19:20:04]line > о реализуемом товаре [19:20:04]line ОКРУГЛЕНИЕ: -0.36 [19:20:04]line ИТОГО: 500.00 [19:20:04]line Внесено: 500.00 [19:20:04]line СДАЧА: 0.00 [19:20:04]line НСП 1% : 4.43 [19:20:04]line НДС 12% : 53.14 [19:20:04]line Наличными: 500.00 [19:20:04]line Безнал.: 0.00 [19:20:04]line Место: АЗС № 38 "Партнер Нефть" [19:20:04]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [19:20:04]line СНО: Общий режим [19:20:04]line Чек 106 13.08.2024 19:20 [19:20:04]line Смена: 464 ФФД: 1.0 [19:20:04]line ЗНМ: 0300000126 [19:20:04]line РНМ: 0000000000092718 [19:20:04]line Версия ККМ: 001 [19:20:04]line ФМ: 0000000000875058 [19:20:04]line ФД: 103195 [19:20:04]line ФПД: 203912360819601 [19:20:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T192003&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103195&fm=203912360819601&tin=02508201610067®Number=0000000000092718&sum=50000 [19:20:04]OFD Sender: Processing packet 103195 [packets to send 69, broken 68] [19:20:04]ProducePacketName [19:20:04]name=ofd_packets/00103195 [19:20:04]OFD Sender: To server: pG, [19:20:04]CommunicateWithHost lk.salyk.kg:30040 [19:20:04]ConnectInit lk.salyk.kg [19:20:04]written 0, free lines is 4095 [19:20:04]Connected sock=10 [19:20:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 11 5E 04 01 2D 82 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7C 1A 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 E3 B1 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 1B 93 01 00 35 04 06 00 B9 75 0B D4 FB 91 47 1F 3A C2 0C 89 6D 7C [19:20:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 A6 6E 47 00 63 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 1B 93 01 00 F4 03 04 00 55 58 BB 66 B6 04 01 00 00 4E 49 A7 72 8E 3A A9 D5 [19:20:04]CommunicateWithHost err = 0 [19:20:04]CheckOFDResponse [19:20:04]1017 (14) - 77093643461234 [19:20:04]1041 (16) - 0000000000875058 [19:20:04]1040 (4) - 103195 [19:20:04]1012 (4) - 13.08.2024 12:57 [19:20:04]1206 (1) - 0 [19:20:04]OFD Sender: Remove packet 103195 [19:20:04]ProducePacketName [19:20:04]name=ofd_packets/00103195 [19:20:04]NVStorageDeleteData [19:20:04]Write to MH i2c: 01 00 00 92 0B 9D [19:20:04]Write i2c OK [19:20:04]MH_I2C_Read... [19:20:04]Read from MH i2c: 01 [19:20:04]MH_I2C_Read... [19:20:04]Read from MH i2c: 01 07 00 [19:20:04]MH_I2C_Read... [19:20:04]Read from MH i2c: 01 07 00 92 0B 00 00 00 00 00 F3 0C A3 [19:20:04]RasterBufferAndPrint [19:20:04]line [19:20:04]line [19:20:04]line [19:20:04]line [19:20:04]line [19:20:04]written 0, free lines is 3321 [19:20:04]MH_Cut [19:20:04]Write to MH i2c: D1 01 00 99 0B 01 76 [19:20:04]Write i2c OK [19:20:04]MH_I2C_Read... [19:20:04]Read from MH i2c: D1 [19:20:04]MH_I2C_Read... [19:20:04]Read from MH i2c: D1 01 00 [19:20:04]MH_I2C_Read... [19:20:04]Read from MH i2c: D1 01 00 99 0B 00 75 [19:20:04]Write to MH i2c: 01 00 00 9A 0B A5 [19:20:04]Write i2c OK [19:20:04]MH_I2C_Read... [19:20:05]OFD Sender: No OFD packet to send [19:20:05]*** Cut start [19:20:05]*** Purtial cut [19:20:05]*** Stage 1: CUTSNS_PIN = 1 [19:20:05]Read from MH i2c: 01 [19:20:05]MH_I2C_Read... [19:20:05]*** Stop cut motor [19:20:05]*** Cut end [19:20:05]Read from MH i2c: 01 07 00 [19:20:05]MH_I2C_Read... [19:20:05]Read from MH i2c: 01 07 00 9A 0B 00 00 00 00 00 FF 0F BA [19:20:05]process_action close_receipt done [19:20:05]requested_data is exist [19:20:05]produce_requested_data [19:20:05]requested_item fm.sn is exist - process it [19:20:05]wFMCommunicate request_size=4 [19:20:05]MH_SAM_APDU [19:20:05]CAPDU: 80 11 00 00 [19:20:05]Write to MH i2c: E2 08 00 9B 0B 80 11 00 00 00 00 00 00 20 [19:20:05]Write i2c OK [19:20:05]MH_I2C_Read... [19:20:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:05]Read from MH i2c: E2 [19:20:05]MH_I2C_Read... [19:20:05]Read from MH i2c: E2 17 00 [19:20:05]MH_I2C_Read... [19:20:05]Read from MH i2c: E2 17 00 9B 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 74 [19:20:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [19:20:05]wFMCommunicate OK [19:20:05]requested_item fd.num is exist - process it [19:20:05]SAM_PROTO_GetFieldsCounters [19:20:05]wFMCommunicate request_size=4 [19:20:05]MH_SAM_APDU [19:20:05]CAPDU: 80 13 00 00 [19:20:05]Write to MH i2c: E2 08 00 9C 0B 80 13 00 00 00 00 00 00 23 [19:20:05]Write i2c OK [19:20:05]MH_I2C_Read... [19:20:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:20:06]Read from MH i2c: E2 [19:20:06]MH_I2C_Read... [19:20:06]Read from MH i2c: E2 62 00 [19:20:06]MH_I2C_Read... [19:20:06]Read from MH i2c: E2 62 00 9C 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 1B 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [19:20:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 1B 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:20:06]wFMCommunicate OK [19:20:06]SAM_PROTO_GetFieldsCounters done [19:20:06]requested_item shift.num is exist - process it [19:20:06]requested_item shift.opened is exist - process it [19:20:06]req_shift_opened [19:20:06]FM_GetShiftState [19:20:06]SAM_PROTO_GetShiftState [19:20:06]wFMCommunicate request_size=4 [19:20:06]MH_SAM_APDU [19:20:06]CAPDU: 80 13 01 00 [19:20:06]Write to MH i2c: E2 08 00 9D 0B 80 13 01 00 00 00 00 00 25 [19:20:06]Write i2c OK [19:20:06]MH_I2C_Read... [19:20:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:06]Read from MH i2c: E2 [19:20:06]MH_I2C_Read... [19:20:06]Read from MH i2c: E2 0E 00 [19:20:06]MH_I2C_Read... [19:20:06]Read from MH i2c: E2 0E 00 9D 0B 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 43 [19:20:06]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [19:20:06]wFMCommunicate OK [19:20:06]SAM_PROTO_GetShiftState done [19:20:06]FM_GetShiftState done [19:20:06]req_shift_opened done [19:20:06]requested_item shift.open_date is exist - process it [19:20:06]req_shift_open_date [19:20:06]req_shift_open_date done [19:20:06]produce_requested_data done [19:20:06]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103195,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [19:20:06]process_action_free close_receipt [19:20:06]json_value_free [19:20:06]json_value_free done [19:20:06]process_json_proto returns [19:20:06]Send response to host [19:20:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103195,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [19:20:06]free response buf [19:20:06]execute_script done [19:20:06]execute_script returns [19:20:06]free content buf [19:20:06]Sock 9.Close socket [19:20:06]Sock 9.Thread stoped [19:20:10]OFD Sender: No OFD packet to send [19:20:15]OFD Sender: No OFD packet to send [19:20:20]OFD Sender: No OFD packet to send [19:20:25]OFD Sender: No OFD packet to send [19:20:30]OFD Sender: No OFD packet to send [19:20:35]OFD Sender: No OFD packet to send [19:20:40]OFD Sender: No OFD packet to send [19:20:45]OFD Sender: No OFD packet to send [19:20:50]OFD Sender: No OFD packet to send [19:20:55]OFD Sender: No OFD packet to send [19:21:00]OFD Sender: No OFD packet to send [19:21:05]OFD Sender: No OFD packet to send [19:21:10]OFD Sender: No OFD packet to send [19:21:15]OFD Sender: No OFD packet to send [19:21:20]OFD Sender: No OFD packet to send [19:21:25]OFD Sender: No OFD packet to send [19:21:30]OFD Sender: No OFD packet to send [19:21:35]OFD Sender: No OFD packet to send [19:21:40]OFD Sender: No OFD packet to send [19:21:45]OFD Sender: No OFD packet to send [19:21:50]OFD Sender: No OFD packet to send [19:21:55]OFD Sender: No OFD packet to send [19:22:00]OFD Sender: No OFD packet to send [19:22:05]OFD Sender: No OFD packet to send [19:22:10]OFD Sender: No OFD packet to send [19:22:15]OFD Sender: No OFD packet to send [19:22:20]OFD Sender: No OFD packet to send [19:22:25]OFD Sender: No OFD packet to send [19:22:30]OFD Sender: No OFD packet to send [19:22:35]OFD Sender: No OFD packet to send [19:22:40]OFD Sender: No OFD packet to send [19:22:45]OFD Sender: No OFD packet to send [19:22:50]OFD Sender: No OFD packet to send [19:22:55]OFD Sender: No OFD packet to send [19:23:00]OFD Sender: No OFD packet to send [19:23:05]OFD Sender: No OFD packet to send [19:23:10]OFD Sender: No OFD packet to send [19:23:15]OFD Sender: No OFD packet to send [19:23:20]OFD Sender: No OFD packet to send [19:23:25]OFD Sender: No OFD packet to send [19:23:30]OFD Sender: No OFD packet to send [19:23:35]OFD Sender: No OFD packet to send [19:23:40]OFD Sender: No OFD packet to send [19:23:45]OFD Sender: No OFD packet to send [19:23:50]OFD Sender: No OFD packet to send [19:23:55]OFD Sender: No OFD packet to send [19:24:00]OFD Sender: No OFD packet to send [19:24:03]accept exits with 7 [19:24:03]New connection [19:24:03]New thread 3067260260 created [19:24:03]Thread 3067116900 joined [19:24:03]Waiting for new connection... [19:24:03] Sock 7.Parse request [19:24:03]Sock 7.Check first char [19:24:03]Sock 7.First char is OK [19:24:03]request: POST /json_proto HTTP/1.0 [19:24:03]Method: POST [19:24:03]URL: /json_proto [19:24:03]Method is POST - this is cgi request [19:24:03]url: /json_proto [19:24:03]query_string will be loaded in cgi processing [19:24:03]execute_cgi json_proto POST (null) [19:24:03]execute_cgi path=json_proto method=POST [19:24:03]POST find Content-Length [19:24:03]Host: 172.17.58.3:8080 [19:24:03]Content-Length: 1188 [19:24:03]Content-Type: application/json [19:24:03] [19:24:03]POST finish read [19:24:03]Found Content-Length = 1188 [19:24:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 38\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0438\u0440\u043E\u0432\u0430 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)160824\u000A13.08.2024 19:32\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 3\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 1977.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A65576\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:03]execute_script... [19:24:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 38\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0438\u0440\u043E\u0432\u0430 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)160824\u000A13.08.2024 19:32\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 3\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 1977.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A65576\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:03]POST & json_proto [19:24:03]process_json_proto [19:24:03]json parsed OK: [19:24:03]protocol is kg_v1.0 [19:24:03]action value=print_text [19:24:03]process_action print_text [19:24:03]cmd_print_text [19:24:03]ExternCall_PrintAddStr [19:24:03]wPrintStart [19:24:03]Write to MH i2c: 01 00 00 9E 0B A9 [19:24:03]Write i2c OK [19:24:03]MH_I2C_Read... [19:24:03]Read from MH i2c: 01 [19:24:03]MH_I2C_Read... [19:24:03]Read from MH i2c: 01 07 00 [19:24:03]MH_I2C_Read... [19:24:03]Read from MH i2c: 01 07 00 9E 0B 00 00 00 00 00 FF 0F BE [19:24:03]RasterBufferAndPrint [19:24:03]line *****ТОВАРНЫЙ ЧЕК***** [19:24:03]line АЗС 38 [19:24:03]line Партнер нефть [19:24:03]line 02508201610067 [19:24:03]line Кассир : Таирова А. [19:24:03]line Счет N : (1)160824 [19:24:03]line 13.08.2024 19:32 [19:24:03]line ПРОДАЖА [19:24:03]line ТРК (МРК, ГНК): 3 [19:24:03]line Вид ГСМ : 2710124130 [19:24:03]line Аи-92-К-5 [19:24:03]line 30.000 x 65.90 [19:24:03]line ИТОГ: 1977.00 [19:24:03]line Тип оплаты: Талоны: Топливная Карта [19:24:03]line 65576 [19:24:03]line ______________________ [19:24:03]line (подпись) [19:24:03]written 0, free lines is 4095 [19:24:03]Write to MH i2c: 01 00 00 B2 0B BD [19:24:03]Write i2c OK [19:24:03]MH_I2C_Read... [19:24:03]Read from MH i2c: 01 [19:24:03]MH_I2C_Read... [19:24:03]Read from MH i2c: 01 07 00 [19:24:03]MH_I2C_Read... [19:24:03]Read from MH i2c: 01 07 00 B2 0B 00 00 00 00 00 10 0E E2 [19:24:03]RasterBufferAndPrint [19:24:03]line [19:24:03]line [19:24:03]line [19:24:03]line [19:24:03]line [19:24:03]written 0, free lines is 3601 [19:24:03]MH_Cut [19:24:03]Write to MH i2c: D1 01 00 B9 0B 01 96 [19:24:03]Write i2c OK [19:24:03]MH_I2C_Read... [19:24:03]Read from MH i2c: D1 [19:24:03]MH_I2C_Read... [19:24:03]Read from MH i2c: D1 01 00 [19:24:03]MH_I2C_Read... [19:24:03]Read from MH i2c: D1 01 00 B9 0B 00 95 [19:24:03]Write to MH i2c: 01 00 00 BA 0B C5 [19:24:03]Write i2c OK [19:24:03]MH_I2C_Read... [19:24:04]*** Cut start [19:24:04]*** Purtial cut [19:24:04]*** CUTSNS_PIN = 0 [19:24:04]*** Stage 1: CUTSNS_PIN = 1 [19:24:05]OFD Sender: No OFD packet to send [19:24:06]Read from MH i2c: 01 [19:24:06]MH_I2C_Read... [19:24:06]*** Stop cut motor [19:24:06]*** Cut end [19:24:06]Read from MH i2c: 01 07 00 [19:24:06]MH_I2C_Read... [19:24:06]Read from MH i2c: 01 07 00 BA 0B 00 00 00 00 00 FF 0F DA [19:24:06]process_action print_text done [19:24:06]requested_data is exist [19:24:06]produce_requested_data [19:24:06]requested_item fm.sn is exist - process it [19:24:06]wFMCommunicate request_size=4 [19:24:06]MH_SAM_APDU [19:24:06]CAPDU: 80 11 00 00 [19:24:06]Write to MH i2c: E2 08 00 BB 0B 80 11 00 00 00 00 00 00 40 [19:24:06]Write i2c OK [19:24:06]MH_I2C_Read... [19:24:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:06]Read from MH i2c: E2 [19:24:06]MH_I2C_Read... [19:24:06]Read from MH i2c: E2 17 00 [19:24:06]MH_I2C_Read... [19:24:06]Read from MH i2c: E2 17 00 BB 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 94 [19:24:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [19:24:06]wFMCommunicate OK [19:24:06]requested_item fd.num is exist - process it [19:24:06]SAM_PROTO_GetFieldsCounters [19:24:06]wFMCommunicate request_size=4 [19:24:06]MH_SAM_APDU [19:24:06]CAPDU: 80 13 00 00 [19:24:06]Write to MH i2c: E2 08 00 BC 0B 80 13 00 00 00 00 00 00 43 [19:24:06]Write i2c OK [19:24:06]MH_I2C_Read... [19:24:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:24:06]Read from MH i2c: E2 [19:24:06]MH_I2C_Read... [19:24:06]Read from MH i2c: E2 62 00 [19:24:06]MH_I2C_Read... [19:24:06]Read from MH i2c: E2 62 00 BC 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 1B 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [19:24:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 1B 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:24:06]wFMCommunicate OK [19:24:06]SAM_PROTO_GetFieldsCounters done [19:24:06]requested_item shift.num is exist - process it [19:24:06]requested_item shift.opened is exist - process it [19:24:06]req_shift_opened [19:24:06]FM_GetShiftState [19:24:06]SAM_PROTO_GetShiftState [19:24:06]wFMCommunicate request_size=4 [19:24:06]MH_SAM_APDU [19:24:06]CAPDU: 80 13 01 00 [19:24:06]Write to MH i2c: E2 08 00 BD 0B 80 13 01 00 00 00 00 00 45 [19:24:06]Write i2c OK [19:24:06]MH_I2C_Read... [19:24:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:06]Read from MH i2c: E2 [19:24:06]MH_I2C_Read... [19:24:06]Read from MH i2c: E2 0E 00 [19:24:06]MH_I2C_Read... [19:24:06]Read from MH i2c: E2 0E 00 BD 0B 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 63 [19:24:06]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [19:24:06]wFMCommunicate OK [19:24:06]SAM_PROTO_GetShiftState done [19:24:06]FM_GetShiftState done [19:24:06]req_shift_opened done [19:24:06]requested_item shift.open_date is exist - process it [19:24:06]req_shift_open_date [19:24:06]req_shift_open_date done [19:24:06]produce_requested_data done [19:24:06]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103195,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [19:24:06]process_action_free print_text [19:24:06]json_value_free [19:24:06]json_value_free done [19:24:06]process_json_proto returns [19:24:06]Send response to host [19:24:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103195,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [19:24:06]free response buf [19:24:06]execute_script done [19:24:06]execute_script returns [19:24:06]free content buf [19:24:06]Sock 7.Close socket [19:24:06]Sock 7.Thread stoped [19:24:10]OFD Sender: No OFD packet to send [19:24:15]OFD Sender: No OFD packet to send [19:24:20]OFD Sender: No OFD packet to send [19:24:25]OFD Sender: No OFD packet to send [19:24:30]OFD Sender: No OFD packet to send [19:24:35]OFD Sender: No OFD packet to send [19:24:40]OFD Sender: No OFD packet to send [19:24:45]OFD Sender: No OFD packet to send [19:24:50]OFD Sender: No OFD packet to send [19:24:55]OFD Sender: No OFD packet to send [19:25:00]OFD Sender: No OFD packet to send [19:25:05]OFD Sender: No OFD packet to send [19:25:10]OFD Sender: No OFD packet to send [19:25:15]OFD Sender: No OFD packet to send [19:25:20]OFD Sender: No OFD packet to send [19:25:25]OFD Sender: No OFD packet to send [19:25:30]OFD Sender: No OFD packet to send [19:25:35]OFD Sender: No OFD packet to send [19:25:40]OFD Sender: No OFD packet to send [19:25:45]OFD Sender: No OFD packet to send [19:25:50]OFD Sender: No OFD packet to send [19:25:55]OFD Sender: No OFD packet to send [19:26:00]OFD Sender: No OFD packet to send [19:26:05]OFD Sender: No OFD packet to send [19:26:10]OFD Sender: No OFD packet to send [19:26:15]OFD Sender: No OFD packet to send [19:26:20]OFD Sender: No OFD packet to send [19:26:25]OFD Sender: No OFD packet to send [19:26:30]OFD Sender: No OFD packet to send [19:26:35]OFD Sender: No OFD packet to send [19:26:40]OFD Sender: No OFD packet to send [19:26:45]OFD Sender: No OFD packet to send [19:26:50]OFD Sender: No OFD packet to send [19:26:55]OFD Sender: No OFD packet to send [19:27:00]OFD Sender: No OFD packet to send [19:27:05]OFD Sender: No OFD packet to send [19:27:10]OFD Sender: No OFD packet to send [19:27:15]OFD Sender: No OFD packet to send [19:27:20]OFD Sender: No OFD packet to send [19:27:25]OFD Sender: No OFD packet to send [19:27:30]OFD Sender: No OFD packet to send [19:27:35]OFD Sender: No OFD packet to send [19:27:40]OFD Sender: No OFD packet to send [19:27:45]OFD Sender: No OFD packet to send [19:27:50]OFD Sender: No OFD packet to send [19:27:52]accept exits with 9 [19:27:52]New connection [19:27:52]New thread 3067116900 created [19:27:52]Thread 3067260260 joined [19:27:52]Waiting for new connection... [19:27:52] Sock 9.Parse request [19:27:52]Sock 9.Check first char [19:27:52]Sock 9.First char is OK [19:27:52]request: POST /json_proto HTTP/1.0 [19:27:52]Method: POST [19:27:52]URL: /json_proto [19:27:52]Method is POST - this is cgi request [19:27:52]url: /json_proto [19:27:52]query_string will be loaded in cgi processing [19:27:52]execute_cgi json_proto POST (null) [19:27:52]execute_cgi path=json_proto method=POST [19:27:52]POST find Content-Length [19:27:52]Host: 172.17.58.3:8080 [19:27:52]Content-Length: 676 [19:27:52]Content-Type: application/json [19:27:52] [19:27:52]POST finish read [19:27:52]Found Content-Length = 676 [19:27:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 6.070, "sum" : 400.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:52]execute_script... [19:27: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)160825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 6.070, "sum" : 400.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:52]POST & json_proto [19:27:52]process_json_proto [19:27:52]json parsed OK: [19:27:52]protocol is kg_v1.0 [19:27:52]action value=close_receipt [19:27:52]process_action close_receipt [19:27:52]cmd_close_receipt [19:27:52]MH_GetDate [19:27:52]Write to MH i2c: F0 00 00 BE 0B B8 [19:27:52]Write i2c OK [19:27:52]MH_I2C_Read... [19:27:52]Read from MH i2c: F0 [19:27:52]MH_I2C_Read... [19:27:52]Read from MH i2c: F0 09 00 [19:27:52]MH_I2C_Read... [19:27:52]Read from MH i2c: F0 09 00 BE 0B 00 B9 B3 BB 66 DC E4 6D 64 DF [19:27:52]GetLastDocTimeStamp 1723576803 [19:27:52]current date 1723577273 [19:27:52]FM_GetShiftState [19:27:52]SAM_PROTO_GetShiftState [19:27:52]wFMCommunicate request_size=4 [19:27:52]MH_SAM_APDU [19:27:52]CAPDU: 80 13 01 00 [19:27:52]Write to MH i2c: E2 08 00 BF 0B 80 13 01 00 00 00 00 00 47 [19:27:52]Write i2c OK [19:27:52]MH_I2C_Read... [19:27:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:52]Read from MH i2c: E2 [19:27:52]MH_I2C_Read... [19:27:52]Read from MH i2c: E2 0E 00 [19:27:52]MH_I2C_Read... [19:27:52]Read from MH i2c: E2 0E 00 BF 0B 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 65 [19:27:52]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [19:27:52]wFMCommunicate OK [19:27:52]SAM_PROTO_GetShiftState done [19:27:52]FM_GetShiftState done [19:27:52]opened in 1723506770 [19:27:52]opened+sec_in_day 1723593170 [19:27:52]quantity*price = 40001 [19:27:52]sum+1 = 40002 [19:27:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 107 13.08.2024 19:27 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103196 ФПД: 137358384042981 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T192753&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103196&fm=137358384042981&tin=02508201610067®Number=0000000000092718&sum=40000 [19:27:53]StoreToDocumentArchive [19:27:53]shift 464 fd 103196 [19:27:53]save to /storage/0464/doc_00103196 [19:27:53]save last doc name /storage/0464/doc_00103196 to /storage/kkm_last_doc_name [19:27:53]save OK [19:27:53]Clear old archive folders... [19:27:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:27:53]tlvbuf is 00236980 [19:27:53]SAM_PROTO_ClearQueue [19:27:53]wFMCommunicate request_size=4 [19:27:53]MH_SAM_APDU [19:27:53]CAPDU: 80 09 00 00 [19:27:53]Write to MH i2c: E2 08 00 CC 0B 80 09 00 00 00 00 00 00 49 [19:27:53]Write i2c OK [19:27:53]MH_I2C_Read... [19:27:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:27:53]Read from MH i2c: E2 [19:27:53]MH_I2C_Read... [19:27:53]Read from MH i2c: E2 03 00 [19:27:53]MH_I2C_Read... [19:27:53]Read from MH i2c: E2 03 00 CC 0B 00 90 00 4B [19:27:53]RAPDU: 90 00 [19:27:53]wFMCommunicate OK [19:27:53]SAM_PROTO_ClearQueue done [19:27:53]KKMCreateOFDPacket [19:27:53]OFDProtocolAddRootSTLVToBuf [19:27:53]FM_MakeSignedData [19:27:53]FM_MakeSignedData [19:27:53]SAM_PROTO_SignData [19:27:53]wFMCommunicate request_size=4 [19:27:53]MH_SAM_APDU [19:27:53]CAPDU: 80 0D 01 02 [19:27:53]Write to MH i2c: E2 08 00 CD 0B 80 0D 01 02 00 00 00 00 51 [19:27:53]Write i2c OK [19:27:53]MH_I2C_Read... [19:27:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:27:53]Read from MH i2c: E2 [19:27:53]MH_I2C_Read... [19:27:53]Read from MH i2c: E2 03 00 [19:27:53]MH_I2C_Read... [19:27:53]Read from MH i2c: E2 03 00 CD 0B 00 90 00 4C [19:27:53]RAPDU: 90 00 [19:27:53]wFMCommunicate OK [19:27:53]wFMCommunicate request_size=255 [19:27:53]MH_SAM_APDU [19:27:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 17 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 41 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 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 6B 00 00 00 F4 03 04 00 B9 B3 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 1C 93 01 00 35 04 06 00 7C [19:27:53]Write to MH i2c: E2 02 01 CE 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 17 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 41 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 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 6B 00 00 00 F4 03 04 00 B9 B3 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 1C 93 01 00 35 04 06 00 7C 00 00 97 [19:27:53]Write i2c OK [19:27:53]MH_I2C_Read... [19:27:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:53]Read from MH i2c: E2 [19:27:53]MH_I2C_Read... [19:27:53]Read from MH i2c: E2 03 00 [19:27:53]MH_I2C_Read... [19:27:53]Read from MH i2c: E2 03 00 CE 0B 00 90 00 4D [19:27:53]RAPDU: 90 00 [19:27:53]wFMCommunicate OK [19:27:53]wFMCommunicate request_size=10 [19:27:53]MH_SAM_APDU [19:27:53]CAPDU: 80 0D 02 02 05 ED 3D B0 13 E5 [19:27:53]Write to MH i2c: E2 0D 00 CF 0B 80 0D 02 02 05 00 ED 3D B0 13 E5 00 00 30 [19:27:53]Write i2c OK [19:27:53]MH_I2C_Read... [19:27:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:53]Read from MH i2c: E2 [19:27:53]MH_I2C_Read... [19:27:53]Read from MH i2c: E2 03 00 [19:27:53]MH_I2C_Read... [19:27:53]Read from MH i2c: E2 03 00 CF 0B 00 90 00 4E [19:27:53]RAPDU: 90 00 [19:27:53]wFMCommunicate OK [19:27:53]wFMCommunicate request_size=4 [19:27:53]MH_SAM_APDU [19:27:53]CAPDU: 80 0D 03 02 [19:27:53]Write to MH i2c: E2 08 00 D0 0B 80 0D 03 02 00 00 00 00 56 [19:27:53]Write i2c OK [19:27:53]MH_I2C_Read... [19:27:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:27:53]Read from MH i2c: E2 [19:27:53]MH_I2C_Read... [19:27:53]Read from MH i2c: E2 0B 00 [19:27:53]MH_I2C_Read... [19:27:53]Read from MH i2c: E2 0B 00 D0 0B 00 54 16 6F 5D 60 6F 22 63 90 00 E1 [19:27:53]RAPDU: 54 16 6F 5D 60 6F 22 63 90 00 [19:27:53]wFMCommunicate OK [19:27:53]SAM_PROTO_SignData done [19:27:53]FM_MakeSignedData done [19:27:53]CreateOFDProtocolMessage [19:27:53]wFMCommunicate request_size=4 [19:27:53]MH_SAM_APDU [19:27:53]CAPDU: 80 11 00 00 [19:27:53]Write to MH i2c: E2 08 00 D1 0B 80 11 00 00 00 00 00 00 56 [19:27:53]Write i2c OK [19:27:53]MH_I2C_Read... [19:27:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:53]Read from MH i2c: E2 [19:27:53]MH_I2C_Read... [19:27:53]Read from MH i2c: E2 17 00 [19:27:53]MH_I2C_Read... [19:27:53]Read from MH i2c: E2 17 00 D1 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 AA [19:27:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [19:27:53]wFMCommunicate OK [19:27:53]CreateOFDProtocolMessage done [19:27:53]OFDSenderStorePacket 103196 [19:27:53]StoreOFDPacket docnum=103196 [19:27:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 DE D9 07 01 31 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 17 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 41 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 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 6B 00 00 00 F4 03 04 00 B9 B3 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 1C 93 01 00 35 04 06 00 7C ED 3D B0 13 E5 54 16 6F 5D 60 6F 22 63 [19:27:53]CheckFolder [19:27:53]dirname=/storage/ofd_packets [19:27:53]CheckFolder done [19:27:53]ProducePacketName [19:27:53]name=ofd_packets/00103196 [19:27:53]NVStorageSaveData ofd_packets/00103196 [19:27:53]File name is /storage/ofd_packets/00103196 [19:27:53]Write 301 bytes [19:27:53]NVStorageSaveData done [19:27:53]OFDSenderStorePacket done [19:27:53]KKMCreateOFDPacket done [19:27:53]NVStorageSaveData kkm_last_timestamp [19:27:53]File name is /storage/kkm_last_timestamp [19:27:53]Write 4 bytes [19:27:53]NVStorageSaveData done [19:27:53]ExternCall_PrintAddStr [19:27:53]wPrintStart [19:27:53]Write to MH i2c: 01 00 00 D2 0B DD [19:27:53]Write i2c OK [19:27:53]MH_I2C_Read... [19:27:53]Read from MH i2c: 01 [19:27:53]MH_I2C_Read... [19:27:53]Read from MH i2c: 01 07 00 [19:27:53]MH_I2C_Read... [19:27:53]Read from MH i2c: 01 07 00 D2 0B 00 00 00 00 00 FF 0F F2 [19:27:53]RasterBufferAndPrint [19:27:53]line Счет N : (1)160825 [19:27:53]line ИНН: 02508201610067 [19:27:53]line Контрольно-Кассовый Чек [19:27:53]line ПРОДАЖА [19:27:53]line ТРК (МРК, ГНК) : 3 [19:27:53]line Товар: 2710124130 [19:27:53]line Аи-92-К-5 [19:27:53]line 6.070 * 65.90 [19:27:53]line = 400.01 [19:27:53]line НДС 12% НСП 1% [19:27:53]line > о реализуемом товаре [19:27:53]line ОКРУГЛЕНИЕ: -0.01 [19:27:53]line ИТОГО: 400.00 [19:27:53]line Внесено: 400.00 [19:27:53]line СДАЧА: 0.00 [19:27:53]line НСП 1% : 3.54 [19:27:53]line НДС 12% : 42.48 [19:27:53]line Наличными: 400.00 [19:27:53]line Безнал.: 0.00 [19:27:53]line Место: АЗС № 38 "Партнер Нефть" [19:27:53]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [19:27:53]line СНО: Общий режим [19:27:53]line Чек 107 13.08.2024 19:27 [19:27:53]line Смена: 464 ФФД: 1.0 [19:27:53]line ЗНМ: 0300000126 [19:27:53]line РНМ: 0000000000092718 [19:27:53]line Версия ККМ: 001 [19:27:53]line ФМ: 0000000000875058 [19:27:53]line ФД: 103196 [19:27:53]line ФПД: 137358384042981 [19:27:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T192753&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103196&fm=137358384042981&tin=02508201610067®Number=0000000000092718&sum=40000 [19:27:54]OFD Sender: Processing packet 103196 [packets to send 69, broken 68] [19:27:54]ProducePacketName [19:27:54]name=ofd_packets/00103196 [19:27:54]OFD Sender: To server: pG, [19:27:54]CommunicateWithHost lk.salyk.kg:30040 [19:27:54]ConnectInit lk.salyk.kg [19:27:54]written 0, free lines is 4095 [19:27:54]Connected sock=10 [19:27:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 DE D9 07 01 31 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 17 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 41 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 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 6B 00 00 00 F4 03 04 00 B9 B3 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 1C 93 01 00 35 04 06 00 7C ED 3D B0 13 E5 54 16 6F 5D 60 6F 22 63 [19:27:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 ED DC 47 00 05 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 35 30 35 38 10 04 04 00 1C 93 01 00 F4 03 04 00 2B 5A BB 66 B6 04 01 00 00 DB 06 BC F4 98 C2 73 D0 [19:27:54]CommunicateWithHost err = 0 [19:27:54]CheckOFDResponse [19:27:54]1017 (14) - 77093643461234 [19:27:54]1041 (16) - 0000000000875058 [19:27:54]1040 (4) - 103196 [19:27:54]1012 (4) - 13.08.2024 13:05 [19:27:54]1206 (1) - 0 [19:27:54]OFD Sender: Remove packet 103196 [19:27:54]ProducePacketName [19:27:54]name=ofd_packets/00103196 [19:27:54]NVStorageDeleteData [19:27:54]Write to MH i2c: 01 00 00 FD 0B 08 [19:27:54]Write i2c OK [19:27:54]MH_I2C_Read... [19:27:54]Read from MH i2c: 01 [19:27:54]MH_I2C_Read... [19:27:54]Read from MH i2c: 01 07 00 [19:27:54]MH_I2C_Read... [19:27:54]Read from MH i2c: 01 07 00 FD 0B 00 00 00 00 00 E8 0C 03 [19:27:54]RasterBufferAndPrint [19:27:54]line [19:27:54]line [19:27:54]line [19:27:54]line [19:27:54]line [19:27:54]written 0, free lines is 3310 [19:27:54]MH_Cut [19:27:54]Write to MH i2c: D1 01 00 04 0C 01 E2 [19:27:54]Write i2c OK [19:27:54]MH_I2C_Read... [19:27:54]Read from MH i2c: D1 [19:27:54]MH_I2C_Read... [19:27:54]Read from MH i2c: D1 01 00 [19:27:54]MH_I2C_Read... [19:27:54]Read from MH i2c: D1 01 00 04 0C 00 E1 [19:27:54]Write to MH i2c: 01 00 00 05 0C 11 [19:27:54]Write i2c OK [19:27:54]MH_I2C_Read... [19:27:54]OFD Sender: No OFD packet to send [19:27:55]*** Cut start [19:27:55]*** Purtial cut [19:27:55]*** Stage 1: CUTSNS_PIN = 1 [19:27:55]Read from MH i2c: 01 [19:27:55]MH_I2C_Read... [19:27:55]*** Stop cut motor [19:27:55]*** Cut end [19:27:55]Read from MH i2c: 01 07 00 [19:27:55]MH_I2C_Read... [19:27:55]Read from MH i2c: 01 07 00 05 0C 00 00 00 00 00 FF 0F 26 [19:27:55]process_action close_receipt done [19:27:55]requested_data is exist [19:27:55]produce_requested_data [19:27:55]requested_item fm.sn is exist - process it [19:27:55]wFMCommunicate request_size=4 [19:27:55]MH_SAM_APDU [19:27:55]CAPDU: 80 11 00 00 [19:27:55]Write to MH i2c: E2 08 00 06 0C 80 11 00 00 00 00 00 00 8C [19:27:55]Write i2c OK [19:27:55]MH_I2C_Read... [19:27:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:55]Read from MH i2c: E2 [19:27:55]MH_I2C_Read... [19:27:55]Read from MH i2c: E2 17 00 [19:27:55]MH_I2C_Read... [19:27:55]Read from MH i2c: E2 17 00 06 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 E0 [19:27:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [19:27:55]wFMCommunicate OK [19:27:55]requested_item fd.num is exist - process it [19:27:55]SAM_PROTO_GetFieldsCounters [19:27:55]wFMCommunicate request_size=4 [19:27:55]MH_SAM_APDU [19:27:55]CAPDU: 80 13 00 00 [19:27:55]Write to MH i2c: E2 08 00 07 0C 80 13 00 00 00 00 00 00 8F [19:27:55]Write i2c OK [19:27:55]MH_I2C_Read... [19:27:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:27:55]Read from MH i2c: E2 [19:27:55]MH_I2C_Read... [19:27:55]Read from MH i2c: E2 62 00 [19:27:55]MH_I2C_Read... [19:27:55]Read from MH i2c: E2 62 00 07 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 1C 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [19:27:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 1C 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:27:55]wFMCommunicate OK [19:27:55]SAM_PROTO_GetFieldsCounters done [19:27:55]requested_item shift.num is exist - process it [19:27:55]requested_item shift.opened is exist - process it [19:27:55]req_shift_opened [19:27:55]FM_GetShiftState [19:27:55]SAM_PROTO_GetShiftState [19:27:55]wFMCommunicate request_size=4 [19:27:55]MH_SAM_APDU [19:27:55]CAPDU: 80 13 01 00 [19:27:55]Write to MH i2c: E2 08 00 08 0C 80 13 01 00 00 00 00 00 91 [19:27:55]Write i2c OK [19:27:55]MH_I2C_Read... [19:27:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:55]Read from MH i2c: E2 [19:27:55]MH_I2C_Read... [19:27:55]Read from MH i2c: E2 0E 00 [19:27:55]MH_I2C_Read... [19:27:55]Read from MH i2c: E2 0E 00 08 0C 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 AF [19:27:55]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [19:27:55]wFMCommunicate OK [19:27:55]SAM_PROTO_GetShiftState done [19:27:55]FM_GetShiftState done [19:27:55]req_shift_opened done [19:27:55]requested_item shift.open_date is exist - process it [19:27:55]req_shift_open_date [19:27:55]req_shift_open_date done [19:27:55]produce_requested_data done [19:27:55]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103196,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [19:27:55]process_action_free close_receipt [19:27:55]json_value_free [19:27:55]json_value_free done [19:27:55]process_json_proto returns [19:27:55]Send response to host [19:27:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103196,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [19:27:55]free response buf [19:27:55]execute_script done [19:27:55]execute_script returns [19:27:55]free content buf [19:27:55]Sock 9.Close socket [19:27:55]Sock 9.Thread stoped [19:27:59]OFD Sender: No OFD packet to send [19:28:04]OFD Sender: No OFD packet to send [19:28:09]OFD Sender: No OFD packet to send [19:28:14]OFD Sender: No OFD packet to send [19:28:19]OFD Sender: No OFD packet to send [19:28:24]OFD Sender: No OFD packet to send [19:28:29]OFD Sender: No OFD packet to send [19:28:34]OFD Sender: No OFD packet to send [19:28:39]OFD Sender: No OFD packet to send [19:28:44]OFD Sender: No OFD packet to send [19:28:49]OFD Sender: No OFD packet to send [19:28:54]OFD Sender: No OFD packet to send [19:28:59]OFD Sender: No OFD packet to send [19:29:04]OFD Sender: No OFD packet to send [19:29:09]OFD Sender: No OFD packet to send [19:29:14]OFD Sender: No OFD packet to send [19:29:19]OFD Sender: No OFD packet to send [19:29:24]OFD Sender: No OFD packet to send [19:29:29]OFD Sender: No OFD packet to send [19:29:35]OFD Sender: No OFD packet to send [19:29:40]OFD Sender: No OFD packet to send [19:29:45]OFD Sender: No OFD packet to send [19:29:50]OFD Sender: No OFD packet to send [19:29:55]OFD Sender: No OFD packet to send [19:30:00]OFD Sender: No OFD packet to send [19:30:05]OFD Sender: No OFD packet to send [19:30:10]OFD Sender: No OFD packet to send [19:30:15]OFD Sender: No OFD packet to send [19:30:20]OFD Sender: No OFD packet to send [19:30:25]OFD Sender: No OFD packet to send [19:30:30]OFD Sender: No OFD packet to send [19:30:35]OFD Sender: No OFD packet to send [19:30:40]OFD Sender: No OFD packet to send [19:30:45]OFD Sender: No OFD packet to send [19:30:50]OFD Sender: No OFD packet to send [19:30:55]OFD Sender: No OFD packet to send [19:31:00]OFD Sender: No OFD packet to send [19:31:05]OFD Sender: No OFD packet to send [19:31:10]OFD Sender: No OFD packet to send [19:31:15]OFD Sender: No OFD packet to send [19:31:20]OFD Sender: No OFD packet to send [19:31:25]OFD Sender: No OFD packet to send [19:31:30]OFD Sender: No OFD packet to send [19:31:35]OFD Sender: No OFD packet to send [19:31:40]OFD Sender: No OFD packet to send [19:31:45]OFD Sender: No OFD packet to send [19:31:50]OFD Sender: No OFD packet to send [19:31:55]OFD Sender: No OFD packet to send [19:32:00]OFD Sender: No OFD packet to send [19:32:05]OFD Sender: No OFD packet to send [19:32:10]OFD Sender: No OFD packet to send [19:32:15]OFD Sender: No OFD packet to send [19:32:20]OFD Sender: No OFD packet to send [19:32:25]OFD Sender: No OFD packet to send [19:32:30]OFD Sender: No OFD packet to send [19:32:35]OFD Sender: No OFD packet to send [19:32:40]OFD Sender: No OFD packet to send [19:32:45]OFD Sender: No OFD packet to send [19:32:50]OFD Sender: No OFD packet to send [19:32:55]OFD Sender: No OFD packet to send [19:33:00]OFD Sender: No OFD packet to send [19:33:05]OFD Sender: No OFD packet to send [19:33:10]OFD Sender: No OFD packet to send [19:33:15]OFD Sender: No OFD packet to send [19:33:20]OFD Sender: No OFD packet to send [19:33:25]OFD Sender: No OFD packet to send [19:33:30]OFD Sender: No OFD packet to send [19:33:35]OFD Sender: No OFD packet to send [19:33:40]OFD Sender: No OFD packet to send [19:33:45]OFD Sender: No OFD packet to send [19:33:50]OFD Sender: No OFD packet to send [19:33:55]OFD Sender: No OFD packet to send [19:34:00]OFD Sender: No OFD packet to send [19:34:05]OFD Sender: No OFD packet to send [19:34:10]OFD Sender: No OFD packet to send [19:34:15]OFD Sender: No OFD packet to send [19:34:20]OFD Sender: No OFD packet to send [19:34:25]OFD Sender: No OFD packet to send [19:34:30]OFD Sender: No OFD packet to send [19:34:35]OFD Sender: No OFD packet to send [19:34:40]OFD Sender: No OFD packet to send [19:34:45]OFD Sender: No OFD packet to send [19:34:50]OFD Sender: No OFD packet to send [19:34:55]OFD Sender: No OFD packet to send [19:35:00]OFD Sender: No OFD packet to send [19:35:05]OFD Sender: No OFD packet to send [19:35:10]OFD Sender: No OFD packet to send [19:35:15]OFD Sender: No OFD packet to send [19:35:20]OFD Sender: No OFD packet to send [19:35:25]OFD Sender: No OFD packet to send [19:35:30]OFD Sender: No OFD packet to send [19:35:35]OFD Sender: No OFD packet to send [19:35:40]OFD Sender: No OFD packet to send [19:35:45]OFD Sender: No OFD packet to send [19:35:50]OFD Sender: No OFD packet to send [19:35:55]OFD Sender: No OFD packet to send [19:36:00]OFD Sender: No OFD packet to send [19:36:05]OFD Sender: No OFD packet to send [19:36:10]OFD Sender: No OFD packet to send [19:36:15]OFD Sender: No OFD packet to send [19:36:20]OFD Sender: No OFD packet to send [19:36:25]OFD Sender: No OFD packet to send [19:36:30]OFD Sender: No OFD packet to send [19:36:35]OFD Sender: No OFD packet to send [19:36:40]OFD Sender: No OFD packet to send [19:36:45]OFD Sender: No OFD packet to send [19:36:47]accept exits with 7 [19:36:47]New connection [19:36:47]New thread 3067260260 created [19:36:47]Thread 3067116900 joined [19:36:47]Waiting for new connection... [19:36:47] Sock 7.Parse request [19:36:47]Sock 7.Check first char [19:36:47]Sock 7.First char is OK [19:36:47]request: POST /json_proto HTTP/1.0 [19:36:47]Method: POST [19:36:47]URL: /json_proto [19:36:47]Method is POST - this is cgi request [19:36:47]url: /json_proto [19:36:47]query_string will be loaded in cgi processing [19:36:47]execute_cgi json_proto POST (null) [19:36:47]execute_cgi path=json_proto method=POST [19:36:47]POST find Content-Length [19:36:47]Host: 172.17.58.3:8080 [19:36:47]Content-Length: 676 [19:36:47]Content-Type: application/json [19:36:47] [19:36:47]POST finish read [19:36:47]Found Content-Length = 676 [19:36:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160826", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 1.520, "sum" : 100.17, "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" ] } } [19:36:47]execute_script... [19:36: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)160826", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 1.520, "sum" : 100.17, "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" ] } } [19:36:47]POST & json_proto [19:36:47]process_json_proto [19:36:47]json parsed OK: [19:36:47]protocol is kg_v1.0 [19:36:47]action value=close_receipt [19:36:47]process_action close_receipt [19:36:47]cmd_close_receipt [19:36:47]MH_GetDate [19:36:47]Write to MH i2c: F0 00 00 09 0C 04 [19:36:47]Write i2c OK [19:36:47]MH_I2C_Read... [19:36:47]Read from MH i2c: F0 [19:36:47]MH_I2C_Read... [19:36:47]Read from MH i2c: F0 09 00 [19:36:47]MH_I2C_Read... [19:36:47]Read from MH i2c: F0 09 00 09 0C 00 D1 B5 BB 66 DC E4 6D 64 45 [19:36:47]GetLastDocTimeStamp 1723577273 [19:36:47]current date 1723577809 [19:36:47]FM_GetShiftState [19:36:47]SAM_PROTO_GetShiftState [19:36:47]wFMCommunicate request_size=4 [19:36:47]MH_SAM_APDU [19:36:47]CAPDU: 80 13 01 00 [19:36:47]Write to MH i2c: E2 08 00 0A 0C 80 13 01 00 00 00 00 00 93 [19:36:47]Write i2c OK [19:36:47]MH_I2C_Read... [19:36:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:47]Read from MH i2c: E2 [19:36:47]MH_I2C_Read... [19:36:47]Read from MH i2c: E2 0E 00 [19:36:47]MH_I2C_Read... [19:36:47]Read from MH i2c: E2 0E 00 0A 0C 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 B1 [19:36:47]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [19:36:47]wFMCommunicate OK [19:36:47]SAM_PROTO_GetShiftState done [19:36:47]FM_GetShiftState done [19:36:47]opened in 1723506770 [19:36:47]opened+sec_in_day 1723593170 [19:36:47]quantity*price = 10016 [19:36:47]sum+1 = 10018 [19:36:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.64 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 108 13.08.2024 19:36 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103197 ФПД: 51263455633432 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T193649&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103197&fm=51263455633432&tin=02508201610067®Number=0000000000092718&sum=10000 [19:36:49]StoreToDocumentArchive [19:36:49]shift 464 fd 103197 [19:36:49]save to /storage/0464/doc_00103197 [19:36:49]save last doc name /storage/0464/doc_00103197 to /storage/kkm_last_doc_name [19:36:49]save OK [19:36:49]Clear old archive folders... [19:36:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:36:49]tlvbuf is 0022F390 [19:36:49]SAM_PROTO_ClearQueue [19:36:49]wFMCommunicate request_size=4 [19:36:49]MH_SAM_APDU [19:36:49]CAPDU: 80 09 00 00 [19:36:49]Write to MH i2c: E2 08 00 17 0C 80 09 00 00 00 00 00 00 95 [19:36:49]Write i2c OK [19:36:49]MH_I2C_Read... [19:36:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:36:49]Read from MH i2c: E2 [19:36:49]MH_I2C_Read... [19:36:49]Read from MH i2c: E2 03 00 [19:36:49]MH_I2C_Read... [19:36:49]Read from MH i2c: E2 03 00 17 0C 00 90 00 97 [19:36:49]RAPDU: 90 00 [19:36:49]wFMCommunicate OK [19:36:49]SAM_PROTO_ClearQueue done [19:36:49]KKMCreateOFDPacket [19:36:49]OFDProtocolAddRootSTLVToBuf [19:36:49]FM_MakeSignedData [19:36:49]FM_MakeSignedData [19:36:49]SAM_PROTO_SignData [19:36:49]wFMCommunicate request_size=4 [19:36:49]MH_SAM_APDU [19:36:49]CAPDU: 80 0D 01 02 [19:36:49]Write to MH i2c: E2 08 00 18 0C 80 0D 01 02 00 00 00 00 9D [19:36:49]Write i2c OK [19:36:49]MH_I2C_Read... [19:36:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:36:49]Read from MH i2c: E2 [19:36:49]MH_I2C_Read... [19:36:49]Read from MH i2c: E2 03 00 [19:36:49]MH_I2C_Read... [19:36:49]Read from MH i2c: E2 03 00 18 0C 00 90 00 98 [19:36:49]RAPDU: 90 00 [19:36:49]wFMCommunicate OK [19:36:49]wFMCommunicate request_size=255 [19:36:49]MH_SAM_APDU [19:36:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 05 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 21 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 28 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 6C 00 00 00 F4 03 04 00 D1 B5 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 1D 93 01 00 35 04 06 00 2E [19:36:49]Write to MH i2c: E2 02 01 19 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 05 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 21 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 28 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 6C 00 00 00 F4 03 04 00 D1 B5 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 1D 93 01 00 35 04 06 00 2E 00 00 74 [19:36:49]Write i2c OK [19:36:49]MH_I2C_Read... [19:36:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:49]Read from MH i2c: E2 [19:36:49]MH_I2C_Read... [19:36:49]Read from MH i2c: E2 03 00 [19:36:49]MH_I2C_Read... [19:36:49]Read from MH i2c: E2 03 00 19 0C 00 90 00 99 [19:36:49]RAPDU: 90 00 [19:36:49]wFMCommunicate OK [19:36:49]wFMCommunicate request_size=10 [19:36:49]MH_SAM_APDU [19:36:49]CAPDU: 80 0D 02 02 05 9F B4 10 20 18 [19:36:49]Write to MH i2c: E2 0D 00 1A 0C 80 0D 02 02 05 00 9F B4 10 20 18 00 00 45 [19:36:49]Write i2c OK [19:36:49]MH_I2C_Read... [19:36:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:49]Read from MH i2c: E2 [19:36:49]MH_I2C_Read... [19:36:49]Read from MH i2c: E2 03 00 [19:36:49]MH_I2C_Read... [19:36:49]Read from MH i2c: E2 03 00 1A 0C 00 90 00 9A [19:36:49]RAPDU: 90 00 [19:36:49]wFMCommunicate OK [19:36:49]wFMCommunicate request_size=4 [19:36:49]MH_SAM_APDU [19:36:49]CAPDU: 80 0D 03 02 [19:36:49]Write to MH i2c: E2 08 00 1B 0C 80 0D 03 02 00 00 00 00 A2 [19:36:49]Write i2c OK [19:36:49]MH_I2C_Read... [19:36:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:36:49]Read from MH i2c: E2 [19:36:49]MH_I2C_Read... [19:36:49]Read from MH i2c: E2 0B 00 [19:36:49]MH_I2C_Read... [19:36:49]Read from MH i2c: E2 0B 00 1B 0C 00 89 C9 C5 E7 4D 58 47 60 90 00 ED [19:36:49]RAPDU: 89 C9 C5 E7 4D 58 47 60 90 00 [19:36:49]wFMCommunicate OK [19:36:49]SAM_PROTO_SignData done [19:36:49]FM_MakeSignedData done [19:36:49]CreateOFDProtocolMessage [19:36:49]wFMCommunicate request_size=4 [19:36:49]MH_SAM_APDU [19:36:49]CAPDU: 80 11 00 00 [19:36:49]Write to MH i2c: E2 08 00 1C 0C 80 11 00 00 00 00 00 00 A2 [19:36:49]Write i2c OK [19:36:49]MH_I2C_Read... [19:36:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:49]Read from MH i2c: E2 [19:36:49]MH_I2C_Read... [19:36:49]Read from MH i2c: E2 17 00 [19:36:49]MH_I2C_Read... [19:36:49]Read from MH i2c: E2 17 00 1C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 F6 [19:36:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [19:36:49]wFMCommunicate OK [19:36:49]CreateOFDProtocolMessage done [19:36:49]OFDSenderStorePacket 103197 [19:36:49]StoreOFDPacket docnum=103197 [19:36:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 0E C9 07 01 0F 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 05 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 21 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 28 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 6C 00 00 00 F4 03 04 00 D1 B5 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 1D 93 01 00 35 04 06 00 2E 9F B4 10 20 18 89 C9 C5 E7 4D 58 47 60 [19:36:49]CheckFolder [19:36:49]dirname=/storage/ofd_packets [19:36:49]CheckFolder done [19:36:49]ProducePacketName [19:36:49]name=ofd_packets/00103197 [19:36:49]NVStorageSaveData ofd_packets/00103197 [19:36:49]File name is /storage/ofd_packets/00103197 [19:36:49]Write 301 bytes [19:36:49]NVStorageSaveData done [19:36:49]OFDSenderStorePacket done [19:36:49]KKMCreateOFDPacket done [19:36:49]NVStorageSaveData kkm_last_timestamp [19:36:49]File name is /storage/kkm_last_timestamp [19:36:49]Write 4 bytes [19:36:49]NVStorageSaveData done [19:36:49]ExternCall_PrintAddStr [19:36:49]wPrintStart [19:36:49]Write to MH i2c: 01 00 00 1D 0C 29 [19:36:49]Write i2c OK [19:36:49]MH_I2C_Read... [19:36:49]Read from MH i2c: 01 [19:36:49]MH_I2C_Read... [19:36:49]Read from MH i2c: 01 07 00 [19:36:49]MH_I2C_Read... [19:36:49]Read from MH i2c: 01 07 00 1D 0C 00 00 00 00 00 FF 0F 3E [19:36:49]RasterBufferAndPrint [19:36:49]line Счет N : (1)160826 [19:36:49]line ИНН: 02508201610067 [19:36:49]line Контрольно-Кассовый Чек [19:36:49]line ПРОДАЖА [19:36:49]line ТРК (МРК, ГНК) : 7 [19:36:49]line Товар: 2710124130 [19:36:49]line Аи-92-К-5 [19:36:49]line 1.520 * 65.90 [19:36:49]line = 100.17 [19:36:49]line НДС 12% НСП 1% [19:36:49]line > о реализуемом товаре [19:36:49]line ОКРУГЛЕНИЕ: -0.17 [19:36:49]line ИТОГО: 100.00 [19:36:49]line Внесено: 100.00 [19:36:49]line СДАЧА: 0.00 [19:36:49]line НСП 1% : 0.89 [19:36:49]line НДС 12% : 10.64 [19:36:49]line Наличными: 100.00 [19:36:49]line Безнал.: 0.00 [19:36:49]line Место: АЗС № 38 "Партнер Нефть" [19:36:49]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [19:36:49]line СНО: Общий режим [19:36:49]line Чек 108 13.08.2024 19:36 [19:36:49]line Смена: 464 ФФД: 1.0 [19:36:49]line ЗНМ: 0300000126 [19:36:49]line РНМ: 0000000000092718 [19:36:49]line Версия ККМ: 001 [19:36:49]line ФМ: 0000000000875058 [19:36:49]line ФД: 103197 [19:36:49]line ФПД: 51263455633432 [19:36:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T193649&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103197&fm=51263455633432&tin=02508201610067®Number=0000000000092718&sum=10000 [19:36:49]OFD Sender: Processing packet 103197 [packets to send 69, broken 68] [19:36:49]ProducePacketName [19:36:49]name=ofd_packets/00103197 [19:36:49]OFD Sender: To server: pG, [19:36:49]CommunicateWithHost lk.salyk.kg:30040 [19:36:49]ConnectInit lk.salyk.kg [19:36:49]written 0, free lines is 4095 [19:36:50]Connected sock=10 [19:36:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 0E C9 07 01 0F 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 05 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 21 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 28 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 6C 00 00 00 F4 03 04 00 D1 B5 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 1D 93 01 00 35 04 06 00 2E 9F B4 10 20 18 89 C9 C5 E7 4D 58 47 60 [19:36:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 D9 9A 47 00 AC EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 1D 93 01 00 F4 03 04 00 43 5C BB 66 B6 04 01 00 00 1E B8 F9 50 2A ED 15 87 [19:36:50]CommunicateWithHost err = 0 [19:36:50]CheckOFDResponse [19:36:50]1017 (14) - 77093643461234 [19:36:50]1041 (16) - 0000000000875058 [19:36:50]1040 (4) - 103197 [19:36:50]1012 (4) - 13.08.2024 13:14 [19:36:50]1206 (1) - 0 [19:36:50]OFD Sender: Remove packet 103197 [19:36:50]ProducePacketName [19:36:50]name=ofd_packets/00103197 [19:36:50]NVStorageDeleteData [19:36:50]Write to MH i2c: 01 00 00 48 0C 54 [19:36:50]Write i2c OK [19:36:50]MH_I2C_Read... [19:36:50]Read from MH i2c: 01 [19:36:50]MH_I2C_Read... [19:36:50]Read from MH i2c: 01 07 00 [19:36:50]MH_I2C_Read... [19:36:50]Read from MH i2c: 01 07 00 48 0C 00 00 00 00 00 DA 0C 41 [19:36:50]RasterBufferAndPrint [19:36:50]line [19:36:50]line [19:36:50]line [19:36:50]line [19:36:50]line [19:36:50]written 0, free lines is 3296 [19:36:50]MH_Cut [19:36:50]Write to MH i2c: D1 01 00 4F 0C 01 2D [19:36:50]Write i2c OK [19:36:50]MH_I2C_Read... [19:36:50]Read from MH i2c: D1 [19:36:50]MH_I2C_Read... [19:36:50]Read from MH i2c: D1 01 00 [19:36:50]MH_I2C_Read... [19:36:50]Read from MH i2c: D1 01 00 4F 0C 00 2C [19:36:50]Write to MH i2c: 01 00 00 50 0C 5C [19:36:50]Write i2c OK [19:36:50]MH_I2C_Read... [19:36:50]OFD Sender: No OFD packet to send [19:36:51]*** Cut start [19:36:51]*** Purtial cut [19:36:51]*** CUTSNS_PIN = 0 [19:36:51]*** Stage 1: CUTSNS_PIN = 1 [19:36:53]Read from MH i2c: 01 [19:36:53]MH_I2C_Read... [19:36:53]*** Stop cut motor [19:36:53]Read from MH i2c: 01 07 00 [19:36:53]MH_I2C_Read... [19:36:53]*** Cut end [19:36:53]Read from MH i2c: 01 07 00 50 0C 00 00 00 00 00 FF 0F 71 [19:36:53]process_action close_receipt done [19:36:53]requested_data is exist [19:36:53]produce_requested_data [19:36:53]requested_item fm.sn is exist - process it [19:36:53]wFMCommunicate request_size=4 [19:36:53]MH_SAM_APDU [19:36:53]CAPDU: 80 11 00 00 [19:36:53]Write to MH i2c: E2 08 00 51 0C 80 11 00 00 00 00 00 00 D7 [19:36:53]Write i2c OK [19:36:53]MH_I2C_Read... [19:36:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:53]Read from MH i2c: E2 [19:36:53]MH_I2C_Read... [19:36:53]Read from MH i2c: E2 17 00 [19:36:53]MH_I2C_Read... [19:36:53]Read from MH i2c: E2 17 00 51 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 2B [19:36:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [19:36:53]wFMCommunicate OK [19:36:53]requested_item fd.num is exist - process it [19:36:53]SAM_PROTO_GetFieldsCounters [19:36:53]wFMCommunicate request_size=4 [19:36:53]MH_SAM_APDU [19:36:53]CAPDU: 80 13 00 00 [19:36:53]Write to MH i2c: E2 08 00 52 0C 80 13 00 00 00 00 00 00 DA [19:36:53]Write i2c OK [19:36:53]MH_I2C_Read... [19:36:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:36:53]Read from MH i2c: E2 [19:36:53]MH_I2C_Read... [19:36:53]Read from MH i2c: E2 62 00 [19:36:53]MH_I2C_Read... [19:36:53]Read from MH i2c: E2 62 00 52 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 1D 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [19:36:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 1D 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:36:53]wFMCommunicate OK [19:36:53]SAM_PROTO_GetFieldsCounters done [19:36:53]requested_item shift.num is exist - process it [19:36:53]requested_item shift.opened is exist - process it [19:36:53]req_shift_opened [19:36:53]FM_GetShiftState [19:36:53]SAM_PROTO_GetShiftState [19:36:53]wFMCommunicate request_size=4 [19:36:53]MH_SAM_APDU [19:36:53]CAPDU: 80 13 01 00 [19:36:53]Write to MH i2c: E2 08 00 53 0C 80 13 01 00 00 00 00 00 DC [19:36:53]Write i2c OK [19:36:53]MH_I2C_Read... [19:36:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:53]Read from MH i2c: E2 [19:36:53]MH_I2C_Read... [19:36:53]Read from MH i2c: E2 0E 00 [19:36:53]MH_I2C_Read... [19:36:53]Read from MH i2c: E2 0E 00 53 0C 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 FA [19:36:53]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [19:36:53]wFMCommunicate OK [19:36:53]SAM_PROTO_GetShiftState done [19:36:53]FM_GetShiftState done [19:36:53]req_shift_opened done [19:36:53]requested_item shift.open_date is exist - process it [19:36:53]req_shift_open_date [19:36:53]req_shift_open_date done [19:36:53]produce_requested_data done [19:36:53]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103197,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [19:36:53]process_action_free close_receipt [19:36:53]json_value_free [19:36:53]json_value_free done [19:36:53]process_json_proto returns [19:36:53]Send response to host [19:36:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103197,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [19:36:53]free response buf [19:36:53]execute_script done [19:36:53]execute_script returns [19:36:53]free content buf [19:36:53]Sock 7.Close socket [19:36:53]Sock 7.Thread stoped [19:36:55]OFD Sender: No OFD packet to send [19:37:00]OFD Sender: No OFD packet to send [19:37:05]OFD Sender: No OFD packet to send [19:37:10]OFD Sender: No OFD packet to send [19:37:15]OFD Sender: No OFD packet to send [19:37:20]OFD Sender: No OFD packet to send [19:37:25]OFD Sender: No OFD packet to send [19:37:30]OFD Sender: No OFD packet to send [19:37:35]OFD Sender: No OFD packet to send [19:37:40]OFD Sender: No OFD packet to send [19:37:45]OFD Sender: No OFD packet to send [19:37:50]OFD Sender: No OFD packet to send [19:37:55]OFD Sender: No OFD packet to send [19:38:00]OFD Sender: No OFD packet to send [19:38:05]OFD Sender: No OFD packet to send [19:38:10]OFD Sender: No OFD packet to send [19:38:15]OFD Sender: No OFD packet to send [19:38:20]OFD Sender: No OFD packet to send [19:38:25]OFD Sender: No OFD packet to send [19:38:30]OFD Sender: No OFD packet to send [19:38:35]OFD Sender: No OFD packet to send [19:38:40]OFD Sender: No OFD packet to send [19:38:45]OFD Sender: No OFD packet to send [19:38:50]OFD Sender: No OFD packet to send [19:38:55]OFD Sender: No OFD packet to send [19:39:00]OFD Sender: No OFD packet to send [19:39:05]OFD Sender: No OFD packet to send [19:39:10]OFD Sender: No OFD packet to send [19:39:15]OFD Sender: No OFD packet to send [19:39:20]OFD Sender: No OFD packet to send [19:39:25]OFD Sender: No OFD packet to send [19:39:30]OFD Sender: No OFD packet to send [19:39:35]OFD Sender: No OFD packet to send [19:39:40]OFD Sender: No OFD packet to send [19:39:45]OFD Sender: No OFD packet to send [19:39:50]OFD Sender: No OFD packet to send [19:39:55]OFD Sender: No OFD packet to send [19:40:00]OFD Sender: No OFD packet to send [19:40:05]OFD Sender: No OFD packet to send [19:40:10]OFD Sender: No OFD packet to send [19:40:15]OFD Sender: No OFD packet to send [19:40:20]OFD Sender: No OFD packet to send [19:40:25]OFD Sender: No OFD packet to send [19:40:30]OFD Sender: No OFD packet to send [19:40:35]OFD Sender: No OFD packet to send [19:40:40]OFD Sender: No OFD packet to send [19:40:45]OFD Sender: No OFD packet to send [19:40:50]OFD Sender: No OFD packet to send [19:40:55]OFD Sender: No OFD packet to send [19:41:01]OFD Sender: No OFD packet to send [19:41:06]OFD Sender: No OFD packet to send [19:41:11]OFD Sender: No OFD packet to send [19:41:16]OFD Sender: No OFD packet to send [19:41:21]OFD Sender: No OFD packet to send [19:41:26]OFD Sender: No OFD packet to send [19:41:31]OFD Sender: No OFD packet to send [19:41:36]OFD Sender: No OFD packet to send [19:41:41]OFD Sender: No OFD packet to send [19:41:46]OFD Sender: No OFD packet to send [19:41:51]OFD Sender: No OFD packet to send [19:41:56]OFD Sender: No OFD packet to send [19:42:01]OFD Sender: No OFD packet to send [19:42:06]OFD Sender: No OFD packet to send [19:42:11]OFD Sender: No OFD packet to send [19:42:16]OFD Sender: No OFD packet to send [19:42:21]OFD Sender: No OFD packet to send [19:42:26]OFD Sender: No OFD packet to send [19:42:31]OFD Sender: No OFD packet to send [19:42:36]OFD Sender: No OFD packet to send [19:42:41]OFD Sender: No OFD packet to send [19:42:46]OFD Sender: No OFD packet to send [19:42:51]OFD Sender: No OFD packet to send [19:42:56]OFD Sender: No OFD packet to send [19:43:01]OFD Sender: No OFD packet to send [19:43:06]OFD Sender: No OFD packet to send [19:43:11]OFD Sender: No OFD packet to send [19:43:16]OFD Sender: No OFD packet to send [19:43:21]OFD Sender: No OFD packet to send [19:43:26]OFD Sender: No OFD packet to send [19:43:31]OFD Sender: No OFD packet to send [19:43:36]OFD Sender: No OFD packet to send [19:43:41]OFD Sender: No OFD packet to send [19:43:46]OFD Sender: No OFD packet to send [19:43:51]OFD Sender: No OFD packet to send [19:43:56]OFD Sender: No OFD packet to send [19:44:01]OFD Sender: No OFD packet to send [19:44:06]OFD Sender: No OFD packet to send [19:44:11]OFD Sender: No OFD packet to send [19:44:16]OFD Sender: No OFD packet to send [19:44:21]OFD Sender: No OFD packet to send [19:44:26]OFD Sender: No OFD packet to send [19:44:31]OFD Sender: No OFD packet to send [19:44:36]OFD Sender: No OFD packet to send [19:44:41]OFD Sender: No OFD packet to send [19:44:46]OFD Sender: No OFD packet to send [19:44:51]OFD Sender: No OFD packet to send [19:44:56]OFD Sender: No OFD packet to send [19:45:01]OFD Sender: No OFD packet to send [19:45:06]OFD Sender: No OFD packet to send [19:45:11]OFD Sender: No OFD packet to send [19:45:16]OFD Sender: No OFD packet to send [19:45:21]OFD Sender: No OFD packet to send [19:45:26]OFD Sender: No OFD packet to send [19:45:31]OFD Sender: No OFD packet to send [19:45:36]OFD Sender: No OFD packet to send [19:45:41]OFD Sender: No OFD packet to send [19:45:46]OFD Sender: No OFD packet to send [19:45:51]OFD Sender: No OFD packet to send [19:45:56]OFD Sender: No OFD packet to send [19:46:01]OFD Sender: No OFD packet to send [19:46:06]OFD Sender: No OFD packet to send [19:46:09]accept exits with 9 [19:46:09]New connection [19:46:09]New thread 3067116900 created [19:46:09]Thread 3067260260 joined [19:46:09]Waiting for new connection... [19:46:09] Sock 9.Parse request [19:46:09]Sock 9.Check first char [19:46:09]Sock 9.First char is OK [19:46:09]request: POST /json_proto HTTP/1.0 [19:46:09]Method: POST [19:46:09]URL: /json_proto [19:46:09]Method is POST - this is cgi request [19:46:09]url: /json_proto [19:46:09]query_string will be loaded in cgi processing [19:46:09]execute_cgi json_proto POST (null) [19:46:09]execute_cgi path=json_proto method=POST [19:46:09]POST find Content-Length [19:46:09]Host: 172.17.58.3:8080 [19:46:09]Content-Length: 674 [19:46:09]Content-Type: application/json [19:46:09] [19:46:09]POST finish read [19:46:09]Found Content-Length = 674 [19:46:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160827", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 6.780, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:46:09]execute_script... [19:46: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)160827", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 6.780, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:46:09]POST & json_proto [19:46:09]process_json_proto [19:46:09]json parsed OK: [19:46:09]protocol is kg_v1.0 [19:46:09]action value=close_receipt [19:46:09]process_action close_receipt [19:46:09]cmd_close_receipt [19:46:09]MH_GetDate [19:46:09]Write to MH i2c: F0 00 00 54 0C 4F [19:46:09]Write i2c OK [19:46:09]MH_I2C_Read... [19:46:09]Read from MH i2c: F0 [19:46:09]MH_I2C_Read... [19:46:09]Read from MH i2c: F0 09 00 [19:46:09]MH_I2C_Read... [19:46:09]Read from MH i2c: F0 09 00 54 0C 00 03 B8 BB 66 DC E4 6D 64 C5 [19:46:09]GetLastDocTimeStamp 1723577809 [19:46:09]current date 1723578371 [19:46:09]FM_GetShiftState [19:46:09]SAM_PROTO_GetShiftState [19:46:09]wFMCommunicate request_size=4 [19:46:09]MH_SAM_APDU [19:46:09]CAPDU: 80 13 01 00 [19:46:09]Write to MH i2c: E2 08 00 55 0C 80 13 01 00 00 00 00 00 DE [19:46:09]Write i2c OK [19:46:09]MH_I2C_Read... [19:46:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:09]Read from MH i2c: E2 [19:46:09]MH_I2C_Read... [19:46:09]Read from MH i2c: E2 0E 00 [19:46:09]MH_I2C_Read... [19:46:09]Read from MH i2c: E2 0E 00 55 0C 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 FC [19:46:09]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [19:46:09]wFMCommunicate OK [19:46:09]SAM_PROTO_GetShiftState done [19:46:09]FM_GetShiftState done [19:46:09]opened in 1723506770 [19:46:09]opened+sec_in_day 1723593170 [19:46:09]quantity*price = 50036 [19:46:09]sum+1 = 50037 [19:46:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 109 13.08.2024 19:46 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103198 ФПД: 176895783962357 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T194611&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103198&fm=176895783962357&tin=02508201610067®Number=0000000000092718&sum=50000 [19:46:11]StoreToDocumentArchive [19:46:11]shift 464 fd 103198 [19:46:11]save to /storage/0464/doc_00103198 [19:46:11]save last doc name /storage/0464/doc_00103198 to /storage/kkm_last_doc_name [19:46:11]save OK [19:46:11]Clear old archive folders... [19:46:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:46:11]tlvbuf is 0020F590 [19:46:11]SAM_PROTO_ClearQueue [19:46:11]wFMCommunicate request_size=4 [19:46:11]MH_SAM_APDU [19:46:11]CAPDU: 80 09 00 00 [19:46:11]Write to MH i2c: E2 08 00 62 0C 80 09 00 00 00 00 00 00 E0 [19:46:11]Write i2c OK [19:46:11]MH_I2C_Read... [19:46:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:46:11]Read from MH i2c: E2 [19:46:11]MH_I2C_Read... [19:46:11]Read from MH i2c: E2 03 00 [19:46:11]MH_I2C_Read... [19:46:11]Read from MH i2c: E2 03 00 62 0C 00 90 00 E2 [19:46:11]RAPDU: 90 00 [19:46:11]wFMCommunicate OK [19:46:11]SAM_PROTO_ClearQueue done [19:46:11]KKMCreateOFDPacket [19:46:11]OFDProtocolAddRootSTLVToBuf [19:46:11]FM_MakeSignedData [19:46:11]FM_MakeSignedData [19:46:11]SAM_PROTO_SignData [19:46:11]wFMCommunicate request_size=4 [19:46:11]MH_SAM_APDU [19:46:11]CAPDU: 80 0D 01 02 [19:46:11]Write to MH i2c: E2 08 00 63 0C 80 0D 01 02 00 00 00 00 E8 [19:46:11]Write i2c OK [19:46:11]MH_I2C_Read... [19:46:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:46:11]Read from MH i2c: E2 [19:46:11]MH_I2C_Read... [19:46:11]Read from MH i2c: E2 03 00 [19:46:11]MH_I2C_Read... [19:46:11]Read from MH i2c: E2 03 00 63 0C 00 90 00 E3 [19:46:11]RAPDU: 90 00 [19:46:11]wFMCommunicate OK [19:46:11]wFMCommunicate request_size=255 [19:46:11]MH_SAM_APDU [19:46:11]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7C 1A 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 03 B8 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 1E 93 01 00 35 04 06 00 A0 E2 C2 5D [19:46:11]Write to MH i2c: E2 02 01 64 0C 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 7C 1A 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 03 B8 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 1E 93 01 00 35 04 06 00 A0 E2 C2 5D 00 00 2A [19:46:11]Write i2c OK [19:46:11]MH_I2C_Read... [19:46:11]OFD Sender: No OFD packet to send [19:46:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:11]Read from MH i2c: E2 [19:46:11]MH_I2C_Read... [19:46:11]Read from MH i2c: E2 03 00 [19:46:11]MH_I2C_Read... [19:46:11]Read from MH i2c: E2 03 00 64 0C 00 90 00 E4 [19:46:11]RAPDU: 90 00 [19:46:11]wFMCommunicate OK [19:46:11]wFMCommunicate request_size=7 [19:46:11]MH_SAM_APDU [19:46:11]CAPDU: 80 0D 02 02 02 86 F5 [19:46:11]Write to MH i2c: E2 0A 00 65 0C 80 0D 02 02 02 00 86 F5 00 00 6A [19:46:11]Write i2c OK [19:46:11]MH_I2C_Read... [19:46:11]Read from MH i2c: E2 [19:46:11]MH_I2C_Read... [19:46:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:11]Read from MH i2c: E2 03 00 [19:46:11]MH_I2C_Read... [19:46:11]Read from MH i2c: E2 03 00 65 0C 00 90 00 E5 [19:46:11]RAPDU: 90 00 [19:46:11]wFMCommunicate OK [19:46:11]wFMCommunicate request_size=4 [19:46:11]MH_SAM_APDU [19:46:11]CAPDU: 80 0D 03 02 [19:46:11]Write to MH i2c: E2 08 00 66 0C 80 0D 03 02 00 00 00 00 ED [19:46:11]Write i2c OK [19:46:11]MH_I2C_Read... [19:46:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:46:11]Read from MH i2c: E2 [19:46:11]MH_I2C_Read... [19:46:11]Read from MH i2c: E2 0B 00 [19:46:11]MH_I2C_Read... [19:46:11]Read from MH i2c: E2 0B 00 66 0C 00 27 54 1F 7B C9 DA CB C6 90 00 37 [19:46:11]RAPDU: 27 54 1F 7B C9 DA CB C6 90 00 [19:46:11]wFMCommunicate OK [19:46:11]SAM_PROTO_SignData done [19:46:11]FM_MakeSignedData done [19:46:11]CreateOFDProtocolMessage [19:46:11]wFMCommunicate request_size=4 [19:46:11]MH_SAM_APDU [19:46:11]CAPDU: 80 11 00 00 [19:46:11]Write to MH i2c: E2 08 00 67 0C 80 11 00 00 00 00 00 00 ED [19:46:11]Write i2c OK [19:46:11]MH_I2C_Read... [19:46:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:11]Read from MH i2c: E2 [19:46:11]MH_I2C_Read... [19:46:11]Read from MH i2c: E2 17 00 [19:46:11]MH_I2C_Read... [19:46:11]Read from MH i2c: E2 17 00 67 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 41 [19:46:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [19:46:11]wFMCommunicate OK [19:46:11]CreateOFDProtocolMessage done [19:46:11]OFDSenderStorePacket 103198 [19:46:11]StoreOFDPacket docnum=103198 [19:46:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 D4 57 04 01 3F B5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7C 1A 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 03 B8 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 1E 93 01 00 35 04 06 00 A0 E2 C2 5D 86 F5 27 54 1F 7B C9 DA CB C6 [19:46:11]CheckFolder [19:46:11]dirname=/storage/ofd_packets [19:46:11]CheckFolder done [19:46:11]ProducePacketName [19:46:11]name=ofd_packets/00103198 [19:46:11]NVStorageSaveData ofd_packets/00103198 [19:46:11]File name is /storage/ofd_packets/00103198 [19:46:11]Write 298 bytes [19:46:11]NVStorageSaveData done [19:46:11]OFDSenderStorePacket done [19:46:11]KKMCreateOFDPacket done [19:46:11]NVStorageSaveData kkm_last_timestamp [19:46:11]File name is /storage/kkm_last_timestamp [19:46:11]Write 4 bytes [19:46:11]NVStorageSaveData done [19:46:11]ExternCall_PrintAddStr [19:46:11]wPrintStart [19:46:11]Write to MH i2c: 01 00 00 68 0C 74 [19:46:11]Write i2c OK [19:46:11]MH_I2C_Read... [19:46:11]Read from MH i2c: 01 [19:46:11]MH_I2C_Read... [19:46:11]Read from MH i2c: 01 07 00 [19:46:11]MH_I2C_Read... [19:46:11]Read from MH i2c: 01 07 00 68 0C 00 00 00 00 00 FF 0F 89 [19:46:11]RasterBufferAndPrint [19:46:11]line Счет N : (1)160827 [19:46:11]line ИНН: 02508201610067 [19:46:11]line Контрольно-Кассовый Чек [19:46:11]line ПРОДАЖА [19:46:11]line ТРК (МРК, ГНК) : 13 [19:46:11]line Товар: 2710194210 [19:46:11]line ДТ-К-5 [19:46:11]line 6.780 * 73.80 [19:46:11]line = 500.36 [19:46:11]line НДС 12% НСП 1% [19:46:11]line > о реализуемом товаре [19:46:11]line ОКРУГЛЕНИЕ: -0.36 [19:46:11]line ИТОГО: 500.00 [19:46:11]line Внесено: 500.00 [19:46:11]line СДАЧА: 0.00 [19:46:11]line НСП 1% : 4.43 [19:46:11]line НДС 12% : 53.14 [19:46:11]line Наличными: 500.00 [19:46:11]line Безнал.: 0.00 [19:46:11]line Место: АЗС № 38 "Партнер Нефть" [19:46:11]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [19:46:11]line СНО: Общий режим [19:46:11]line Чек 109 13.08.2024 19:46 [19:46:11]line Смена: 464 ФФД: 1.0 [19:46:11]line ЗНМ: 0300000126 [19:46:11]line РНМ: 0000000000092718 [19:46:11]line Версия ККМ: 001 [19:46:11]line ФМ: 0000000000875058 [19:46:11]line ФД: 103198 [19:46:11]line ФПД: 176895783962357 [19:46:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T194611&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103198&fm=176895783962357&tin=02508201610067®Number=0000000000092718&sum=50000 [19:46:11]OFD Sender: Processing packet 103198 [packets to send 69, broken 68] [19:46:11]ProducePacketName [19:46:11]name=ofd_packets/00103198 [19:46:11]OFD Sender: To server: pG, [19:46:11]CommunicateWithHost lk.salyk.kg:30040 [19:46:11]ConnectInit lk.salyk.kg [19:46:11]written 0, free lines is 4095 [19:46:11]Connected sock=10 [19:46:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 D4 57 04 01 3F B5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7C 1A 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 03 B8 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 1E 93 01 00 35 04 06 00 A0 E2 C2 5D 86 F5 27 54 1F 7B C9 DA CB C6 [19:46:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 EF 81 47 00 1D 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 1E 93 01 00 F4 03 04 00 75 5E BB 66 B6 04 01 00 00 FA 21 4B 1D EF C3 A2 F3 [19:46:12]CommunicateWithHost err = 0 [19:46:12]CheckOFDResponse [19:46:12]1017 (14) - 77093643461234 [19:46:12]1041 (16) - 0000000000875058 [19:46:12]1040 (4) - 103198 [19:46:12]1012 (4) - 13.08.2024 13:24 [19:46:12]1206 (1) - 0 [19:46:12]OFD Sender: Remove packet 103198 [19:46:12]ProducePacketName [19:46:12]name=ofd_packets/00103198 [19:46:12]NVStorageDeleteData [19:46:12]Write to MH i2c: 01 00 00 93 0C 9F [19:46:12]Write i2c OK [19:46:12]MH_I2C_Read... [19:46:12]Read from MH i2c: 01 [19:46:12]MH_I2C_Read... [19:46:12]Read from MH i2c: 01 07 00 [19:46:12]MH_I2C_Read... [19:46:12]Read from MH i2c: 01 07 00 93 0C 00 00 00 00 00 E2 0C 94 [19:46:12]RasterBufferAndPrint [19:46:12]line [19:46:12]line [19:46:12]line [19:46:12]line [19:46:12]line [19:46:12]written 0, free lines is 3304 [19:46:12]MH_Cut [19:46:12]Write to MH i2c: D1 01 00 9A 0C 01 78 [19:46:12]Write i2c OK [19:46:12]MH_I2C_Read... [19:46:12]Read from MH i2c: D1 [19:46:12]MH_I2C_Read... [19:46:12]Read from MH i2c: D1 01 00 [19:46:12]MH_I2C_Read... [19:46:12]Read from MH i2c: D1 01 00 9A 0C 00 77 [19:46:12]Write to MH i2c: 01 00 00 9B 0C A7 [19:46:12]Write i2c OK [19:46:12]MH_I2C_Read... [19:46:12]OFD Sender: No OFD packet to send [19:46:13]*** Cut start [19:46:13]*** Purtial cut [19:46:13]*** Stage 1: CUTSNS_PIN = 1 [19:46:13]Read from MH i2c: 01 [19:46:13]MH_I2C_Read... [19:46:13]*** Stop cut motor [19:46:13]*** Cut end [19:46:13]Read from MH i2c: 01 07 00 [19:46:13]MH_I2C_Read... [19:46:13]Read from MH i2c: 01 07 00 9B 0C 00 00 00 00 00 FF 0F BC [19:46:13]process_action close_receipt done [19:46:13]requested_data is exist [19:46:13]produce_requested_data [19:46:13]requested_item fm.sn is exist - process it [19:46:13]wFMCommunicate request_size=4 [19:46:13]MH_SAM_APDU [19:46:13]CAPDU: 80 11 00 00 [19:46:13]Write to MH i2c: E2 08 00 9C 0C 80 11 00 00 00 00 00 00 22 [19:46:13]Write i2c OK [19:46:13]MH_I2C_Read... [19:46:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:13]Read from MH i2c: E2 [19:46:13]MH_I2C_Read... [19:46:13]Read from MH i2c: E2 17 00 [19:46:13]MH_I2C_Read... [19:46:13]Read from MH i2c: E2 17 00 9C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 76 [19:46:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [19:46:13]wFMCommunicate OK [19:46:13]requested_item fd.num is exist - process it [19:46:13]SAM_PROTO_GetFieldsCounters [19:46:13]wFMCommunicate request_size=4 [19:46:13]MH_SAM_APDU [19:46:13]CAPDU: 80 13 00 00 [19:46:13]Write to MH i2c: E2 08 00 9D 0C 80 13 00 00 00 00 00 00 25 [19:46:13]Write i2c OK [19:46:13]MH_I2C_Read... [19:46:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:46:13]Read from MH i2c: E2 [19:46:13]MH_I2C_Read... [19:46:13]Read from MH i2c: E2 62 00 [19:46:13]MH_I2C_Read... [19:46:13]Read from MH i2c: E2 62 00 9D 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 1E 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [19:46:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 1E 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:46:13]wFMCommunicate OK [19:46:13]SAM_PROTO_GetFieldsCounters done [19:46:13]requested_item shift.num is exist - process it [19:46:13]requested_item shift.opened is exist - process it [19:46:13]req_shift_opened [19:46:13]FM_GetShiftState [19:46:13]SAM_PROTO_GetShiftState [19:46:13]wFMCommunicate request_size=4 [19:46:13]MH_SAM_APDU [19:46:13]CAPDU: 80 13 01 00 [19:46:13]Write to MH i2c: E2 08 00 9E 0C 80 13 01 00 00 00 00 00 27 [19:46:13]Write i2c OK [19:46:13]MH_I2C_Read... [19:46:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:13]Read from MH i2c: E2 [19:46:13]MH_I2C_Read... [19:46:13]Read from MH i2c: E2 0E 00 [19:46:13]MH_I2C_Read... [19:46:13]Read from MH i2c: E2 0E 00 9E 0C 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 45 [19:46:13]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [19:46:13]wFMCommunicate OK [19:46:13]SAM_PROTO_GetShiftState done [19:46:13]FM_GetShiftState done [19:46:13]req_shift_opened done [19:46:13]requested_item shift.open_date is exist - process it [19:46:13]req_shift_open_date [19:46:13]req_shift_open_date done [19:46:13]produce_requested_data done [19:46:13]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103198,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [19:46:13]process_action_free close_receipt [19:46:13]json_value_free [19:46:13]json_value_free done [19:46:13]process_json_proto returns [19:46:13]Send response to host [19:46:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103198,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [19:46:13]free response buf [19:46:13]execute_script done [19:46:13]execute_script returns [19:46:13]free content buf [19:46:13]Sock 9.Close socket [19:46:13]Sock 9.Thread stoped [19:46:17]OFD Sender: No OFD packet to send [19:46:22]OFD Sender: No OFD packet to send [19:46:27]OFD Sender: No OFD packet to send [19:46:32]OFD Sender: No OFD packet to send [19:46:37]OFD Sender: No OFD packet to send [19:46:42]OFD Sender: No OFD packet to send [19:46:47]OFD Sender: No OFD packet to send [19:46:52]OFD Sender: No OFD packet to send [19:46:57]OFD Sender: No OFD packet to send [19:47:02]OFD Sender: No OFD packet to send [19:47:07]OFD Sender: No OFD packet to send [19:47:12]OFD Sender: No OFD packet to send [19:47:17]OFD Sender: No OFD packet to send [19:47:22]OFD Sender: No OFD packet to send [19:47:27]OFD Sender: No OFD packet to send [19:47:32]OFD Sender: No OFD packet to send [19:47:37]OFD Sender: No OFD packet to send [19:47:42]OFD Sender: No OFD packet to send [19:47:47]OFD Sender: No OFD packet to send [19:47:52]OFD Sender: No OFD packet to send [19:47:57]OFD Sender: No OFD packet to send [19:48:02]OFD Sender: No OFD packet to send [19:48:07]OFD Sender: No OFD packet to send [19:48:12]OFD Sender: No OFD packet to send [19:48:17]OFD Sender: No OFD packet to send [19:48:22]OFD Sender: No OFD packet to send [19:48:27]OFD Sender: No OFD packet to send [19:48:32]OFD Sender: No OFD packet to send [19:48:37]OFD Sender: No OFD packet to send [19:48:42]OFD Sender: No OFD packet to send [19:48:47]OFD Sender: No OFD packet to send [19:48:52]OFD Sender: No OFD packet to send [19:48:57]OFD Sender: No OFD packet to send [19:49:02]OFD Sender: No OFD packet to send [19:49:07]OFD Sender: No OFD packet to send [19:49:12]OFD Sender: No OFD packet to send [19:49:17]OFD Sender: No OFD packet to send [19:49:22]OFD Sender: No OFD packet to send [19:49:26]accept exits with 7 [19:49:26]New connection [19:49:26]New thread 3067260260 created [19:49:26]Thread 3067116900 joined [19:49:26]Waiting for new connection... [19:49:26] Sock 7.Parse request [19:49:26]Sock 7.Check first char [19:49:26]Sock 7.First char is OK [19:49:26]request: POST /json_proto HTTP/1.0 [19:49:26]Method: POST [19:49:26]URL: /json_proto [19:49:26]Method is POST - this is cgi request [19:49:26]url: /json_proto [19:49:26]query_string will be loaded in cgi processing [19:49:26]execute_cgi json_proto POST (null) [19:49:26]execute_cgi path=json_proto method=POST [19:49:26]POST find Content-Length [19:49:26]Host: 172.17.58.3:8080 [19:49:26]Content-Length: 815 [19:49:26]Content-Type: application/json [19:49:26] [19:49:26]POST finish read [19:49:26]Found Content-Length = 815 [19:49:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:49:26]execute_script... [19:49: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)160828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:49:26]POST & json_proto [19:49:26]process_json_proto [19:49:26]json parsed OK: [19:49:26]protocol is kg_v1.0 [19:49:26]action value=close_receipt [19:49:26]process_action close_receipt [19:49:26]cmd_close_receipt [19:49:26]MH_GetDate [19:49:26]Write to MH i2c: F0 00 00 9F 0C 9A [19:49:26]Write i2c OK [19:49:26]MH_I2C_Read... [19:49:26]Read from MH i2c: F0 [19:49:26]MH_I2C_Read... [19:49:26]Read from MH i2c: F0 09 00 [19:49:26]MH_I2C_Read... [19:49:26]Read from MH i2c: F0 09 00 9F 0C 00 C8 B8 BB 66 DC E4 6D 64 D5 [19:49:26]GetLastDocTimeStamp 1723578371 [19:49:26]current date 1723578568 [19:49:26]FM_GetShiftState [19:49:26]SAM_PROTO_GetShiftState [19:49:26]wFMCommunicate request_size=4 [19:49:26]MH_SAM_APDU [19:49:26]CAPDU: 80 13 01 00 [19:49:26]Write to MH i2c: E2 08 00 A0 0C 80 13 01 00 00 00 00 00 29 [19:49:26]Write i2c OK [19:49:26]MH_I2C_Read... [19:49:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:26]Read from MH i2c: E2 [19:49:26]MH_I2C_Read... [19:49:26]Read from MH i2c: E2 0E 00 [19:49:26]MH_I2C_Read... [19:49:26]Read from MH i2c: E2 0E 00 A0 0C 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 47 [19:49:26]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [19:49:26]wFMCommunicate OK [19:49:26]SAM_PROTO_GetShiftState done [19:49:26]FM_GetShiftState done [19:49:26]opened in 1723506770 [19:49:26]opened+sec_in_day 1723593170 [19:49:26]quantity*price = 50018 [19:49:26]sum+1 = 50019 [19:49:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.18 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.18 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 110 13.08.2024 19:49 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875058 ФД: 103199 ФПД: 77408710754229 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T194928&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103199&fm=77408710754229&tin=02508201610067®Number=0000000000092718&sum=50018 [19:49:27]StoreToDocumentArchive [19:49:27]shift 464 fd 103199 [19:49:27]save to /storage/0464/doc_00103199 [19:49:27]save last doc name /storage/0464/doc_00103199 to /storage/kkm_last_doc_name [19:49:27]save OK [19:49:27]Clear old archive folders... [19:49:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:49:27]tlvbuf is 00271160 [19:49:27]SAM_PROTO_ClearQueue [19:49:27]wFMCommunicate request_size=4 [19:49:27]MH_SAM_APDU [19:49:27]CAPDU: 80 09 00 00 [19:49:27]Write to MH i2c: E2 08 00 AD 0C 80 09 00 00 00 00 00 00 2B [19:49:27]Write i2c OK [19:49:27]MH_I2C_Read... [19:49:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:49:28]Read from MH i2c: E2 [19:49:28]MH_I2C_Read... [19:49:28]Read from MH i2c: E2 03 00 [19:49:28]MH_I2C_Read... [19:49:28]Read from MH i2c: E2 03 00 AD 0C 00 90 00 2D [19:49:28]RAPDU: 90 00 [19:49:28]wFMCommunicate OK [19:49:28]SAM_PROTO_ClearQueue done [19:49:28]KKMCreateOFDPacket [19:49:28]OFDProtocolAddRootSTLVToBuf [19:49:28]FM_MakeSignedData [19:49:28]FM_MakeSignedData [19:49:28]SAM_PROTO_SignData [19:49:28]wFMCommunicate request_size=4 [19:49:28]MH_SAM_APDU [19:49:28]CAPDU: 80 0D 01 02 [19:49:28]Write to MH i2c: E2 08 00 AE 0C 80 0D 01 02 00 00 00 00 33 [19:49:28]Write i2c OK [19:49:28]MH_I2C_Read... [19:49:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:49:28]Read from MH i2c: E2 [19:49:28]MH_I2C_Read... [19:49:28]Read from MH i2c: E2 03 00 [19:49:28]MH_I2C_Read... [19:49:28]Read from MH i2c: E2 03 00 AE 0C 00 90 00 2E [19:49:28]RAPDU: 90 00 [19:49:28]wFMCommunicate OK [19:49:28]wFMCommunicate request_size=255 [19:49:28]MH_SAM_APDU [19:49: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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 C8 B8 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 1F 93 01 00 35 04 06 00 46 [19:49:28]Write to MH i2c: E2 02 01 AF 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 C8 B8 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 1F 93 01 00 35 04 06 00 46 00 00 B2 [19:49:28]Write i2c OK [19:49:28]MH_I2C_Read... [19:49:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:49:28]Read from MH i2c: E2 [19:49:28]MH_I2C_Read... [19:49:28]Read from MH i2c: E2 03 00 [19:49:28]MH_I2C_Read... [19:49:28]Read from MH i2c: E2 03 00 AF 0C 00 90 00 2F [19:49:28]RAPDU: 90 00 [19:49:28]wFMCommunicate OK [19:49:28]wFMCommunicate request_size=10 [19:49:28]MH_SAM_APDU [19:49:28]CAPDU: 80 0D 02 02 05 67 1E B4 FF B5 [19:49:28]Write to MH i2c: E2 0D 00 B0 0C 80 0D 02 02 05 00 67 1E B4 FF B5 00 00 2D [19:49:28]Write i2c OK [19:49:28]MH_I2C_Read... [19:49:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:49:28]Read from MH i2c: E2 [19:49:28]MH_I2C_Read... [19:49:28]Read from MH i2c: E2 03 00 [19:49:28]MH_I2C_Read... [19:49:28]Read from MH i2c: E2 03 00 B0 0C 00 90 00 30 [19:49:28]RAPDU: 90 00 [19:49:28]wFMCommunicate OK [19:49:28]wFMCommunicate request_size=4 [19:49:28]MH_SAM_APDU [19:49:28]CAPDU: 80 0D 03 02 [19:49:28]Write to MH i2c: E2 08 00 B1 0C 80 0D 03 02 00 00 00 00 38 [19:49:28]Write i2c OK [19:49:28]MH_I2C_Read... [19:49:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:49:28]Read from MH i2c: E2 [19:49:28]MH_I2C_Read... [19:49:28]Read from MH i2c: E2 0B 00 [19:49:28]MH_I2C_Read... [19:49:28]Read from MH i2c: E2 0B 00 B1 0C 00 D2 9D BA 46 65 F2 BA 36 90 00 EF [19:49:28]RAPDU: D2 9D BA 46 65 F2 BA 36 90 00 [19:49:28]wFMCommunicate OK [19:49:28]SAM_PROTO_SignData done [19:49:28]FM_MakeSignedData done [19:49:28]CreateOFDProtocolMessage [19:49:28]wFMCommunicate request_size=4 [19:49:28]MH_SAM_APDU [19:49:28]CAPDU: 80 11 00 00 [19:49:28]Write to MH i2c: E2 08 00 B2 0C 80 11 00 00 00 00 00 00 38 [19:49:28]Write i2c OK [19:49:28]MH_I2C_Read... [19:49:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:28]Read from MH i2c: E2 [19:49:28]MH_I2C_Read... [19:49:28]Read from MH i2c: E2 17 00 [19:49:28]MH_I2C_Read... [19:49:28]Read from MH i2c: E2 17 00 B2 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 8C [19:49:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [19:49:28]wFMCommunicate OK [19:49:28]CreateOFDProtocolMessage done [19:49:28]OFDSenderStorePacket 103199 [19:49:28]StoreOFDPacket docnum=103199 [19:49:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 4F A9 07 01 A0 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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 C8 B8 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 1F 93 01 00 35 04 06 00 46 67 1E B4 FF B5 D2 9D BA 46 65 F2 BA 36 [19:49:28]CheckFolder [19:49:28]dirname=/storage/ofd_packets [19:49:28]CheckFolder done [19:49:28]ProducePacketName [19:49:28]name=ofd_packets/00103199 [19:49:28]NVStorageSaveData ofd_packets/00103199 [19:49:28]File name is /storage/ofd_packets/00103199 [19:49:28]Write 301 bytes [19:49:28]NVStorageSaveData done [19:49:28]OFDSenderStorePacket done [19:49:28]KKMCreateOFDPacket done [19:49:28]NVStorageSaveData kkm_last_timestamp [19:49:28]File name is /storage/kkm_last_timestamp [19:49:28]Write 4 bytes [19:49:28]NVStorageSaveData done [19:49:28]ExternCall_PrintAddStr [19:49:28]wPrintStart [19:49:28]Write to MH i2c: 01 00 00 B3 0C BF [19:49:28]Write i2c OK [19:49:28]MH_I2C_Read... [19:49:28]Read from MH i2c: 01 [19:49:28]MH_I2C_Read... [19:49:28]Read from MH i2c: 01 07 00 [19:49:28]MH_I2C_Read... [19:49:28]Read from MH i2c: 01 07 00 B3 0C 00 00 00 00 00 FF 0F D4 [19:49:28]RasterBufferAndPrint [19:49:28]line Счет N : (1)160828 [19:49:28]line ИНН: 02508201610067 [19:49:28]line Контрольно-Кассовый Чек [19:49:28]line ПРОДАЖА [19:49:28]line ТРК (МРК, ГНК) : 3 [19:49:28]line Товар: 2710124130 [19:49:28]line Аи-92-К-5 [19:49:28]line 7.590 * 65.90 [19:49:28]line = 500.18 [19:49:28]line НДС 12% НСП 1% [19:49:28]line > о реализуемом товаре [19:49:28]line ИТОГО: 500.18 [19:49:28]line НСП 1% : 4.43 [19:49:28]line НДС 12% : 53.12 [19:49:28]line Наличными: 0.00 [19:49:28]line Безнал.: 500.18 [19:49:28]line Место: АЗС № 38 "Партнер Нефть" [19:49:28]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [19:49:28]line СНО: Общий режим [19:49:28]line Чек 110 13.08.2024 19:49 [19:49:28]line Смена: 464 ФФД: 1.0 [19:49:28]line ЗНМ: 0300000126 [19:49:28]line РНМ: 0000000000092718 [19:49:28]line Версия ККМ: 001 [19:49:28]line Платежная система: Бакай Банк [19:49:28]line ФМ: 0000000000875058 [19:49:28]line ФД: 103199 [19:49:28]line ФПД: 77408710754229 [19:49:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T194928&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103199&fm=77408710754229&tin=02508201610067®Number=0000000000092718&sum=50018 [19:49:28]written 0, free lines is 4095 [19:49:28]OFD Sender: Processing packet 103199 [packets to send 69, broken 68] [19:49:28]ProducePacketName [19:49:28]name=ofd_packets/00103199 [19:49:28]OFD Sender: To server: pG, [19:49:28]CommunicateWithHost lk.salyk.kg:30040 [19:49:28]ConnectInit lk.salyk.kg [19:49:28]Connected sock=10 [19:49:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 4F A9 07 01 A0 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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 C8 B8 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 1F 93 01 00 35 04 06 00 46 67 1E B4 FF B5 D2 9D BA 46 65 F2 BA 36 [19:49:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 F1 36 47 00 0D 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 1F 93 01 00 F4 03 04 00 3A 5F BB 66 B6 04 01 00 00 E0 24 4C B8 19 0C F1 05 [19:49:29]CommunicateWithHost err = 0 [19:49:29]CheckOFDResponse [19:49:29]1017 (14) - 77093643461234 [19:49:29]1041 (16) - 0000000000875058 [19:49:29]1040 (4) - 103199 [19:49:29]1012 (4) - 13.08.2024 13:27 [19:49:29]1206 (1) - 0 [19:49:29]OFD Sender: Remove packet 103199 [19:49:29]ProducePacketName [19:49:29]name=ofd_packets/00103199 [19:49:29]NVStorageDeleteData [19:49:29]Write to MH i2c: 01 00 00 DD 0C E9 [19:49:29]Write i2c OK [19:49:29]MH_I2C_Read... [19:49:29]Read from MH i2c: 01 [19:49:29]MH_I2C_Read... [19:49:29]Read from MH i2c: 01 07 00 [19:49:29]MH_I2C_Read... [19:49:29]Read from MH i2c: 01 07 00 DD 0C 00 00 00 00 00 EE 0C EA [19:49:29]RasterBufferAndPrint [19:49:29]line [19:49:29]line [19:49:29]line [19:49:29]line [19:49:29]line [19:49:29]written 0, free lines is 3316 [19:49:29]MH_Cut [19:49:29]Write to MH i2c: D1 01 00 E4 0C 01 C2 [19:49:29]Write i2c OK [19:49:29]MH_I2C_Read... [19:49:29]Read from MH i2c: D1 [19:49:29]MH_I2C_Read... [19:49:29]Read from MH i2c: D1 01 00 [19:49:29]MH_I2C_Read... [19:49:29]Read from MH i2c: D1 01 00 E4 0C 00 C1 [19:49:29]Write to MH i2c: 01 00 00 E5 0C F1 [19:49:29]Write i2c OK [19:49:29]MH_I2C_Read... [19:49:29]OFD Sender: No OFD packet to send [19:49:30]*** Cut start [19:49:30]*** Purtial cut [19:49:30]*** CUTSNS_PIN = 0 [19:49:30]*** Stage 1: CUTSNS_PIN = 1 [19:49:32]Read from MH i2c: 01 [19:49:32]MH_I2C_Read... [19:49:32]*** Stop cut motor [19:49:32]*** Cut end [19:49:32]Read from MH i2c: 01 07 00 [19:49:32]MH_I2C_Read... [19:49:32]Read from MH i2c: 01 07 00 E5 0C 00 00 00 00 00 FF 0F 06 [19:49:32]process_action close_receipt done [19:49:32]requested_data is exist [19:49:32]produce_requested_data [19:49:32]requested_item fm.sn is exist - process it [19:49:32]wFMCommunicate request_size=4 [19:49:32]MH_SAM_APDU [19:49:32]CAPDU: 80 11 00 00 [19:49:32]Write to MH i2c: E2 08 00 E6 0C 80 11 00 00 00 00 00 00 6C [19:49:32]Write i2c OK [19:49:32]MH_I2C_Read... [19:49:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:32]Read from MH i2c: E2 [19:49:32]MH_I2C_Read... [19:49:32]Read from MH i2c: E2 17 00 [19:49:32]MH_I2C_Read... [19:49:32]Read from MH i2c: E2 17 00 E6 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 C0 [19:49:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [19:49:32]wFMCommunicate OK [19:49:32]requested_item fd.num is exist - process it [19:49:32]SAM_PROTO_GetFieldsCounters [19:49:32]wFMCommunicate request_size=4 [19:49:32]MH_SAM_APDU [19:49:32]CAPDU: 80 13 00 00 [19:49:32]Write to MH i2c: E2 08 00 E7 0C 80 13 00 00 00 00 00 00 6F [19:49:32]Write i2c OK [19:49:32]MH_I2C_Read... [19:49:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:49:32]Read from MH i2c: E2 [19:49:32]MH_I2C_Read... [19:49:32]Read from MH i2c: E2 62 00 [19:49:32]MH_I2C_Read... [19:49:32]Read from MH i2c: E2 62 00 E7 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 1F 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [19:49:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 1F 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:49:32]wFMCommunicate OK [19:49:32]SAM_PROTO_GetFieldsCounters done [19:49:32]requested_item shift.num is exist - process it [19:49:32]requested_item shift.opened is exist - process it [19:49:32]req_shift_opened [19:49:32]FM_GetShiftState [19:49:32]SAM_PROTO_GetShiftState [19:49:32]wFMCommunicate request_size=4 [19:49:32]MH_SAM_APDU [19:49:32]CAPDU: 80 13 01 00 [19:49:32]Write to MH i2c: E2 08 00 E8 0C 80 13 01 00 00 00 00 00 71 [19:49:32]Write i2c OK [19:49:32]MH_I2C_Read... [19:49:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:32]Read from MH i2c: E2 [19:49:32]MH_I2C_Read... [19:49:32]Read from MH i2c: E2 0E 00 [19:49:32]MH_I2C_Read... [19:49:32]Read from MH i2c: E2 0E 00 E8 0C 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 8F [19:49:32]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [19:49:32]wFMCommunicate OK [19:49:32]SAM_PROTO_GetShiftState done [19:49:32]FM_GetShiftState done [19:49:32]req_shift_opened done [19:49:32]requested_item shift.open_date is exist - process it [19:49:32]req_shift_open_date [19:49:32]req_shift_open_date done [19:49:32]produce_requested_data done [19:49:32]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103199,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [19:49:32]process_action_free close_receipt [19:49:32]json_value_free [19:49:32]json_value_free done [19:49:32]process_json_proto returns [19:49:32]Send response to host [19:49:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103199,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [19:49:32]free response buf [19:49:32]execute_script done [19:49:32]execute_script returns [19:49:32]free content buf [19:49:32]Sock 7.Close socket [19:49:32]Sock 7.Thread stoped [19:49:34]OFD Sender: No OFD packet to send [19:49:39]OFD Sender: No OFD packet to send [19:49:44]OFD Sender: No OFD packet to send [19:49:49]OFD Sender: No OFD packet to send [19:49:54]OFD Sender: No OFD packet to send [19:49:59]OFD Sender: No OFD packet to send [19:50:04]OFD Sender: No OFD packet to send [19:50:09]OFD Sender: No OFD packet to send [19:50:14]OFD Sender: No OFD packet to send [19:50:19]OFD Sender: No OFD packet to send [19:50:24]OFD Sender: No OFD packet to send [19:50:29]OFD Sender: No OFD packet to send [19:50:34]OFD Sender: No OFD packet to send [19:50:39]OFD Sender: No OFD packet to send [19:50:44]OFD Sender: No OFD packet to send [19:50:49]OFD Sender: No OFD packet to send [19:50:54]OFD Sender: No OFD packet to send [19:50:59]OFD Sender: No OFD packet to send [19:51:04]OFD Sender: No OFD packet to send [19:51:09]OFD Sender: No OFD packet to send [19:51:14]OFD Sender: No OFD packet to send [19:51:19]OFD Sender: No OFD packet to send [19:51:22]accept exits with 9 [19:51:22]New connection [19:51:22]New thread 3067116900 created [19:51:22]Thread 3067260260 joined [19:51:22]Waiting for new connection... [19:51:22] Sock 9.Parse request [19:51:22]Sock 9.Check first char [19:51:22]Sock 9.First char is OK [19:51:22]request: POST /json_proto HTTP/1.0 [19:51:22]Method: POST [19:51:22]URL: /json_proto [19:51:22]Method is POST - this is cgi request [19:51:22]url: /json_proto [19:51:22]query_string will be loaded in cgi processing [19:51:22]execute_cgi json_proto POST (null) [19:51:22]execute_cgi path=json_proto method=POST [19:51:22]POST find Content-Length [19:51:22]Host: 172.17.58.3:8080 [19:51:22]Content-Length: 676 [19:51:22]Content-Type: application/json [19:51:22] [19:51:22]POST finish read [19:51:22]Found Content-Length = 676 [19:51:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160829", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:51:22]execute_script... [19:51:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160829", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:51:22]POST & json_proto [19:51:22]process_json_proto [19:51:22]json parsed OK: [19:51:22]protocol is kg_v1.0 [19:51:22]action value=close_receipt [19:51:22]process_action close_receipt [19:51:22]cmd_close_receipt [19:51:22]MH_GetDate [19:51:22]Write to MH i2c: F0 00 00 E9 0C E4 [19:51:22]Write i2c OK [19:51:22]MH_I2C_Read... [19:51:22]Read from MH i2c: F0 [19:51:22]MH_I2C_Read... [19:51:22]Read from MH i2c: F0 09 00 [19:51:22]MH_I2C_Read... [19:51:22]Read from MH i2c: F0 09 00 E9 0C 00 3C B9 BB 66 DC E4 6D 64 94 [19:51:22]GetLastDocTimeStamp 1723578568 [19:51:22]current date 1723578684 [19:51:22]FM_GetShiftState [19:51:22]SAM_PROTO_GetShiftState [19:51:22]wFMCommunicate request_size=4 [19:51:22]MH_SAM_APDU [19:51:22]CAPDU: 80 13 01 00 [19:51:22]Write to MH i2c: E2 08 00 EA 0C 80 13 01 00 00 00 00 00 73 [19:51:22]Write i2c OK [19:51:22]MH_I2C_Read... [19:51:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:51:22]Read from MH i2c: E2 [19:51:22]MH_I2C_Read... [19:51:22]Read from MH i2c: E2 0E 00 [19:51:22]MH_I2C_Read... [19:51:22]Read from MH i2c: E2 0E 00 EA 0C 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 91 [19:51:22]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [19:51:22]wFMCommunicate OK [19:51:22]SAM_PROTO_GetShiftState done [19:51:22]FM_GetShiftState done [19:51:22]opened in 1723506770 [19:51:22]opened+sec_in_day 1723593170 [19:51:22]quantity*price = 50018 [19:51:22]sum+1 = 50019 [19:51:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 111 13.08.2024 19:51 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103200 ФПД: 34038213048293 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T195124&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103200&fm=34038213048293&tin=02508201610067®Number=0000000000092718&sum=50000 [19:51:23]StoreToDocumentArchive [19:51:23]shift 464 fd 103200 [19:51:23]save to /storage/0464/doc_00103200 [19:51:23]save last doc name /storage/0464/doc_00103200 to /storage/kkm_last_doc_name [19:51:23]save OK [19:51:23]Clear old archive folders... [19:51:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:51:23]tlvbuf is 00270A30 [19:51:23]SAM_PROTO_ClearQueue [19:51:23]wFMCommunicate request_size=4 [19:51:23]MH_SAM_APDU [19:51:23]CAPDU: 80 09 00 00 [19:51:23]Write to MH i2c: E2 08 00 F7 0C 80 09 00 00 00 00 00 00 75 [19:51:23]Write i2c OK [19:51:23]MH_I2C_Read... [19:51:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:51:23]Read from MH i2c: E2 [19:51:23]MH_I2C_Read... [19:51:23]Read from MH i2c: E2 03 00 [19:51:23]MH_I2C_Read... [19:51:23]Read from MH i2c: E2 03 00 F7 0C 00 90 00 77 [19:51:23]RAPDU: 90 00 [19:51:23]wFMCommunicate OK [19:51:23]SAM_PROTO_ClearQueue done [19:51:23]KKMCreateOFDPacket [19:51:23]OFDProtocolAddRootSTLVToBuf [19:51:23]FM_MakeSignedData [19:51:23]FM_MakeSignedData [19:51:23]SAM_PROTO_SignData [19:51:23]wFMCommunicate request_size=4 [19:51:23]MH_SAM_APDU [19:51:23]CAPDU: 80 0D 01 02 [19:51:23]Write to MH i2c: E2 08 00 F8 0C 80 0D 01 02 00 00 00 00 7D [19:51:23]Write i2c OK [19:51:23]MH_I2C_Read... [19:51:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:51:23]Read from MH i2c: E2 [19:51:23]MH_I2C_Read... [19:51:23]Read from MH i2c: E2 03 00 [19:51:23]MH_I2C_Read... [19:51:23]Read from MH i2c: E2 03 00 F8 0C 00 90 00 78 [19:51:23]RAPDU: 90 00 [19:51:23]wFMCommunicate OK [19:51:23]wFMCommunicate request_size=255 [19:51:23]MH_SAM_APDU [19:51: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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 3C B9 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 20 93 01 00 35 04 06 00 1E [19:51:23]Write to MH i2c: E2 02 01 F9 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 3C B9 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 20 93 01 00 35 04 06 00 1E 00 00 27 [19:51:23]Write i2c OK [19:51:23]MH_I2C_Read... [19:51:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:51:24]Read from MH i2c: E2 [19:51:24]MH_I2C_Read... [19:51:24]Read from MH i2c: E2 03 00 [19:51:24]MH_I2C_Read... [19:51:24]Read from MH i2c: E2 03 00 F9 0C 00 90 00 79 [19:51:24]RAPDU: 90 00 [19:51:24]wFMCommunicate OK [19:51:24]wFMCommunicate request_size=10 [19:51:24]MH_SAM_APDU [19:51:24]CAPDU: 80 0D 02 02 05 F5 23 98 F7 E5 [19:51:24]Write to MH i2c: E2 0D 00 FA 0C 80 0D 02 02 05 00 F5 23 98 F7 E5 00 00 16 [19:51:24]Write i2c OK [19:51:24]MH_I2C_Read... [19:51:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:51:24]Read from MH i2c: E2 [19:51:24]MH_I2C_Read... [19:51:24]Read from MH i2c: E2 03 00 [19:51:24]MH_I2C_Read... [19:51:24]Read from MH i2c: E2 03 00 FA 0C 00 90 00 7A [19:51:24]RAPDU: 90 00 [19:51:24]wFMCommunicate OK [19:51:24]wFMCommunicate request_size=4 [19:51:24]MH_SAM_APDU [19:51:24]CAPDU: 80 0D 03 02 [19:51:24]Write to MH i2c: E2 08 00 FB 0C 80 0D 03 02 00 00 00 00 82 [19:51:24]Write i2c OK [19:51:24]MH_I2C_Read... [19:51:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:51:24]Read from MH i2c: E2 [19:51:24]MH_I2C_Read... [19:51:24]Read from MH i2c: E2 0B 00 [19:51:24]MH_I2C_Read... [19:51:24]Read from MH i2c: E2 0B 00 FB 0C 00 01 C8 34 27 1A DD 7C E1 90 00 FB [19:51:24]RAPDU: 01 C8 34 27 1A DD 7C E1 90 00 [19:51:24]wFMCommunicate OK [19:51:24]SAM_PROTO_SignData done [19:51:24]FM_MakeSignedData done [19:51:24]CreateOFDProtocolMessage [19:51:24]wFMCommunicate request_size=4 [19:51:24]MH_SAM_APDU [19:51:24]CAPDU: 80 11 00 00 [19:51:24]Write to MH i2c: E2 08 00 FC 0C 80 11 00 00 00 00 00 00 82 [19:51:24]Write i2c OK [19:51:24]MH_I2C_Read... [19:51:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:51:24]Read from MH i2c: E2 [19:51:24]MH_I2C_Read... [19:51:24]Read from MH i2c: E2 17 00 [19:51:24]MH_I2C_Read... [19:51:24]Read from MH i2c: E2 17 00 FC 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 D6 [19:51:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [19:51:24]wFMCommunicate OK [19:51:24]CreateOFDProtocolMessage done [19:51:24]OFDSenderStorePacket 103200 [19:51:24]StoreOFDPacket docnum=103200 [19:51:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 CE 42 07 01 E3 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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 3C B9 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 20 93 01 00 35 04 06 00 1E F5 23 98 F7 E5 01 C8 34 27 1A DD 7C E1 [19:51:24]CheckFolder [19:51:24]dirname=/storage/ofd_packets [19:51:24]CheckFolder done [19:51:24]ProducePacketName [19:51:24]name=ofd_packets/00103200 [19:51:24]NVStorageSaveData ofd_packets/00103200 [19:51:24]File name is /storage/ofd_packets/00103200 [19:51:24]Write 301 bytes [19:51:24]NVStorageSaveData done [19:51:24]OFDSenderStorePacket done [19:51:24]KKMCreateOFDPacket done [19:51:24]NVStorageSaveData kkm_last_timestamp [19:51:24]File name is /storage/kkm_last_timestamp [19:51:24]Write 4 bytes [19:51:24]NVStorageSaveData done [19:51:24]ExternCall_PrintAddStr [19:51:24]wPrintStart [19:51:24]Write to MH i2c: 01 00 00 FD 0C 09 [19:51:24]Write i2c OK [19:51:24]MH_I2C_Read... [19:51:24]Read from MH i2c: 01 [19:51:24]MH_I2C_Read... [19:51:24]Read from MH i2c: 01 07 00 [19:51:24]MH_I2C_Read... [19:51:24]Read from MH i2c: 01 07 00 FD 0C 00 00 00 00 00 FF 0F 1E [19:51:24]RasterBufferAndPrint [19:51:24]line Счет N : (1)160829 [19:51:24]line ИНН: 02508201610067 [19:51:24]line Контрольно-Кассовый Чек [19:51:24]line ПРОДАЖА [19:51:24]line ТРК (МРК, ГНК) : 7 [19:51:24]line Товар: 2710124130 [19:51:24]line Аи-92-К-5 [19:51:24]line 7.590 * 65.90 [19:51:24]line = 500.18 [19:51:24]line НДС 12% НСП 1% [19:51:24]line > о реализуемом товаре [19:51:24]line ОКРУГЛЕНИЕ: -0.18 [19:51:24]line ИТОГО: 500.00 [19:51:24]line Внесено: 500.00 [19:51:24]line СДАЧА: 0.00 [19:51:24]line НСП 1% : 4.43 [19:51:24]line НДС 12% : 53.12 [19:51:24]line Наличными: 500.00 [19:51:24]line Безнал.: 0.00 [19:51:24]line Место: АЗС № 38 "Партнер Нефть" [19:51:24]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [19:51:24]line СНО: Общий режим [19:51:24]line Чек 111 13.08.2024 19:51 [19:51:24]line Смена: 464 ФФД: 1.0 [19:51:24]line ЗНМ: 0300000126 [19:51:24]line РНМ: 0000000000092718 [19:51:24]line Версия ККМ: 001 [19:51:24]line ФМ: 0000000000875058 [19:51:24]line ФД: 103200 [19:51:24]line ФПД: 34038213048293 [19:51:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T195124&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103200&fm=34038213048293&tin=02508201610067®Number=0000000000092718&sum=50000 [19:51:24]OFD Sender: Processing packet 103200 [packets to send 69, broken 68] [19:51:24]ProducePacketName [19:51:24]name=ofd_packets/00103200 [19:51:24]OFD Sender: To server: pG, [19:51:24]CommunicateWithHost lk.salyk.kg:30040 [19:51:24]ConnectInit lk.salyk.kg [19:51:24]written 0, free lines is 4095 [19:51:24]Connected sock=10 [19:51:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 CE 42 07 01 E3 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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 3C B9 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 20 93 01 00 35 04 06 00 1E F5 23 98 F7 E5 01 C8 34 27 1A DD 7C E1 [19:51:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 78 D5 47 00 13 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 20 93 01 00 F4 03 04 00 AE 5F BB 66 B6 04 01 00 00 3C DB B4 FB 3F 34 0D 89 [19:51:25]CommunicateWithHost err = 0 [19:51:25]CheckOFDResponse [19:51:25]1017 (14) - 77093643461234 [19:51:25]1041 (16) - 0000000000875058 [19:51:25]1040 (4) - 103200 [19:51:25]1012 (4) - 13.08.2024 13:29 [19:51:25]1206 (1) - 0 [19:51:25]OFD Sender: Remove packet 103200 [19:51:25]ProducePacketName [19:51:25]name=ofd_packets/00103200 [19:51:25]NVStorageDeleteData [19:51:25]Write to MH i2c: 01 00 00 28 0D 35 [19:51:25]Write i2c OK [19:51:25]MH_I2C_Read... [19:51:25]Read from MH i2c: 01 [19:51:25]MH_I2C_Read... [19:51:25]Read from MH i2c: 01 07 00 [19:51:25]MH_I2C_Read... [19:51:25]Read from MH i2c: 01 07 00 28 0D 00 00 00 00 00 DA 0C 22 [19:51:25]RasterBufferAndPrint [19:51:25]line [19:51:25]line [19:51:25]line [19:51:25]line [19:51:25]line [19:51:25]written 0, free lines is 3296 [19:51:25]MH_Cut [19:51:25]Write to MH i2c: D1 01 00 2F 0D 01 0E [19:51:25]Write i2c OK [19:51:25]MH_I2C_Read... [19:51:25]Read from MH i2c: D1 [19:51:25]MH_I2C_Read... [19:51:25]Read from MH i2c: D1 01 00 [19:51:25]MH_I2C_Read... [19:51:25]Read from MH i2c: D1 01 00 2F 0D 00 0D [19:51:25]Write to MH i2c: 01 00 00 30 0D 3D [19:51:25]Write i2c OK [19:51:25]MH_I2C_Read... [19:51:25]OFD Sender: No OFD packet to send [19:51:25]*** Cut start [19:51:25]*** Purtial cut [19:51:25]*** Stage 1: CUTSNS_PIN = 1 [19:51:26]Read from MH i2c: 01 [19:51:26]MH_I2C_Read... [19:51:26]*** Stop cut motor [19:51:26]*** Cut end [19:51:26]Read from MH i2c: 01 07 00 [19:51:26]MH_I2C_Read... [19:51:26]Read from MH i2c: 01 07 00 30 0D 00 00 00 00 00 FF 0F 52 [19:51:26]process_action close_receipt done [19:51:26]requested_data is exist [19:51:26]produce_requested_data [19:51:26]requested_item fm.sn is exist - process it [19:51:26]wFMCommunicate request_size=4 [19:51:26]MH_SAM_APDU [19:51:26]CAPDU: 80 11 00 00 [19:51:26]Write to MH i2c: E2 08 00 31 0D 80 11 00 00 00 00 00 00 B8 [19:51:26]Write i2c OK [19:51:26]MH_I2C_Read... [19:51:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:51:26]Read from MH i2c: E2 [19:51:26]MH_I2C_Read... [19:51:26]Read from MH i2c: E2 17 00 [19:51:26]MH_I2C_Read... [19:51:26]Read from MH i2c: E2 17 00 31 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 0C [19:51:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [19:51:26]wFMCommunicate OK [19:51:26]requested_item fd.num is exist - process it [19:51:26]SAM_PROTO_GetFieldsCounters [19:51:26]wFMCommunicate request_size=4 [19:51:26]MH_SAM_APDU [19:51:26]CAPDU: 80 13 00 00 [19:51:26]Write to MH i2c: E2 08 00 32 0D 80 13 00 00 00 00 00 00 BB [19:51:26]Write i2c OK [19:51:26]MH_I2C_Read... [19:51:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:51:26]Read from MH i2c: E2 [19:51:26]MH_I2C_Read... [19:51:26]Read from MH i2c: E2 62 00 [19:51:26]MH_I2C_Read... [19:51:26]Read from MH i2c: E2 62 00 32 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 20 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [19:51:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 20 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:51:26]wFMCommunicate OK [19:51:26]SAM_PROTO_GetFieldsCounters done [19:51:26]requested_item shift.num is exist - process it [19:51:26]requested_item shift.opened is exist - process it [19:51:26]req_shift_opened [19:51:26]FM_GetShiftState [19:51:26]SAM_PROTO_GetShiftState [19:51:26]wFMCommunicate request_size=4 [19:51:26]MH_SAM_APDU [19:51:26]CAPDU: 80 13 01 00 [19:51:26]Write to MH i2c: E2 08 00 33 0D 80 13 01 00 00 00 00 00 BD [19:51:26]Write i2c OK [19:51:26]MH_I2C_Read... [19:51:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:51:26]Read from MH i2c: E2 [19:51:26]MH_I2C_Read... [19:51:26]Read from MH i2c: E2 0E 00 [19:51:26]MH_I2C_Read... [19:51:26]Read from MH i2c: E2 0E 00 33 0D 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 DB [19:51:26]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [19:51:26]wFMCommunicate OK [19:51:26]SAM_PROTO_GetShiftState done [19:51:26]FM_GetShiftState done [19:51:26]req_shift_opened done [19:51:26]requested_item shift.open_date is exist - process it [19:51:26]req_shift_open_date [19:51:26]req_shift_open_date done [19:51:26]produce_requested_data done [19:51:26]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103200,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [19:51:26]process_action_free close_receipt [19:51:26]json_value_free [19:51:26]json_value_free done [19:51:26]process_json_proto returns [19:51:26]Send response to host [19:51:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103200,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [19:51:26]free response buf [19:51:26]execute_script done [19:51:26]execute_script returns [19:51:26]free content buf [19:51:26]Sock 9.Close socket [19:51:26]Sock 9.Thread stoped [19:51:30]OFD Sender: No OFD packet to send [19:51:35]OFD Sender: No OFD packet to send [19:51:40]OFD Sender: No OFD packet to send [19:51:45]OFD Sender: No OFD packet to send [19:51:50]OFD Sender: No OFD packet to send [19:51:55]OFD Sender: No OFD packet to send [19:52:00]OFD Sender: No OFD packet to send [19:52:05]OFD Sender: No OFD packet to send [19:52:10]OFD Sender: No OFD packet to send [19:52:15]OFD Sender: No OFD packet to send [19:52:20]OFD Sender: No OFD packet to send [19:52:25]OFD Sender: No OFD packet to send [19:52:30]OFD Sender: No OFD packet to send [19:52:35]OFD Sender: No OFD packet to send [19:52:40]OFD Sender: No OFD packet to send [19:52:45]OFD Sender: No OFD packet to send [19:52:50]OFD Sender: No OFD packet to send [19:52:55]OFD Sender: No OFD packet to send [19:53:00]OFD Sender: No OFD packet to send [19:53:05]OFD Sender: No OFD packet to send [19:53:10]OFD Sender: No OFD packet to send [19:53:15]OFD Sender: No OFD packet to send [19:53:20]OFD Sender: No OFD packet to send [19:53:25]OFD Sender: No OFD packet to send [19:53:30]OFD Sender: No OFD packet to send [19:53:35]OFD Sender: No OFD packet to send [19:53:40]OFD Sender: No OFD packet to send [19:53:45]OFD Sender: No OFD packet to send [19:53:50]OFD Sender: No OFD packet to send [19:53:55]OFD Sender: No OFD packet to send [19:54:00]OFD Sender: No OFD packet to send [19:54:05]OFD Sender: No OFD packet to send [19:54:10]OFD Sender: No OFD packet to send [19:54:15]OFD Sender: No OFD packet to send [19:54:20]OFD Sender: No OFD packet to send [19:54:25]OFD Sender: No OFD packet to send [19:54:30]OFD Sender: No OFD packet to send [19:54:35]OFD Sender: No OFD packet to send [19:54:40]OFD Sender: No OFD packet to send [19:54:45]OFD Sender: No OFD packet to send [19:54:50]OFD Sender: No OFD packet to send [19:54:55]OFD Sender: No OFD packet to send [19:55:00]OFD Sender: No OFD packet to send [19:55:05]OFD Sender: No OFD packet to send [19:55:10]OFD Sender: No OFD packet to send [19:55:15]OFD Sender: No OFD packet to send [19:55:20]OFD Sender: No OFD packet to send [19:55:25]OFD Sender: No OFD packet to send [19:55:30]OFD Sender: No OFD packet to send [19:55:35]OFD Sender: No OFD packet to send [19:55:40]OFD Sender: No OFD packet to send [19:55:45]OFD Sender: No OFD packet to send [19:55:50]OFD Sender: No OFD packet to send [19:55:55]OFD Sender: No OFD packet to send [19:56:00]OFD Sender: No OFD packet to send [19:56:05]OFD Sender: No OFD packet to send [19:56:10]OFD Sender: No OFD packet to send [19:56:15]OFD Sender: No OFD packet to send [19:56:20]OFD Sender: No OFD packet to send [19:56:25]OFD Sender: No OFD packet to send [19:56:30]OFD Sender: No OFD packet to send [19:56:35]OFD Sender: No OFD packet to send [19:56:40]OFD Sender: No OFD packet to send [19:56:45]OFD Sender: No OFD packet to send [19:56:50]OFD Sender: No OFD packet to send [19:56:55]OFD Sender: No OFD packet to send [19:57:00]OFD Sender: No OFD packet to send [19:57:05]OFD Sender: No OFD packet to send [19:57:10]OFD Sender: No OFD packet to send [19:57:15]OFD Sender: No OFD packet to send [19:57:20]OFD Sender: No OFD packet to send [19:57:25]OFD Sender: No OFD packet to send [19:57:30]OFD Sender: No OFD packet to send [19:57:35]OFD Sender: No OFD packet to send [19:57:40]OFD Sender: No OFD packet to send [19:57:45]OFD Sender: No OFD packet to send [19:57:50]OFD Sender: No OFD packet to send [19:57:55]OFD Sender: No OFD packet to send [19:58:00]OFD Sender: No OFD packet to send [19:58:05]OFD Sender: No OFD packet to send [19:58:10]OFD Sender: No OFD packet to send [19:58:15]OFD Sender: No OFD packet to send [19:58:20]OFD Sender: No OFD packet to send [19:58:25]OFD Sender: No OFD packet to send [19:58:30]OFD Sender: No OFD packet to send [19:58:35]OFD Sender: No OFD packet to send [19:58:40]OFD Sender: No OFD packet to send [19:58:45]OFD Sender: No OFD packet to send [19:58:50]OFD Sender: No OFD packet to send [19:58:55]OFD Sender: No OFD packet to send [19:59:00]OFD Sender: No OFD packet to send [19:59:05]OFD Sender: No OFD packet to send [19:59:10]OFD Sender: No OFD packet to send [19:59:15]OFD Sender: No OFD packet to send [19:59:20]OFD Sender: No OFD packet to send [19:59:25]OFD Sender: No OFD packet to send [19:59:30]OFD Sender: No OFD packet to send [19:59:35]OFD Sender: No OFD packet to send [19:59:40]OFD Sender: No OFD packet to send [19:59:46]OFD Sender: No OFD packet to send [19:59:51]OFD Sender: No OFD packet to send [19:59:56]OFD Sender: No OFD packet to send [20:00:01]OFD Sender: No OFD packet to send [20:00:06]OFD Sender: No OFD packet to send [20:00:11]OFD Sender: No OFD packet to send [20:00:16]OFD Sender: No OFD packet to send [20:00:21]OFD Sender: No OFD packet to send [20:00:26]OFD Sender: No OFD packet to send [20:00:31]OFD Sender: No OFD packet to send [20:00:36]OFD Sender: No OFD packet to send [20:00:41]OFD Sender: No OFD packet to send [20:00:46]OFD Sender: No OFD packet to send [20:00:51]OFD Sender: No OFD packet to send [20:00:56]OFD Sender: No OFD packet to send [20:01:01]OFD Sender: No OFD packet to send [20:01:06]OFD Sender: No OFD packet to send [20:01:11]OFD Sender: No OFD packet to send [20:01:16]OFD Sender: No OFD packet to send [20:01:21]OFD Sender: No OFD packet to send [20:01:26]OFD Sender: No OFD packet to send [20:01:31]OFD Sender: No OFD packet to send [20:01:36]OFD Sender: No OFD packet to send [20:01:41]OFD Sender: No OFD packet to send [20:01:46]OFD Sender: No OFD packet to send [20:01:51]OFD Sender: No OFD packet to send [20:01:56]OFD Sender: No OFD packet to send [20:02:01]OFD Sender: No OFD packet to send [20:02:06]OFD Sender: No OFD packet to send [20:02:11]OFD Sender: No OFD packet to send [20:02:16]OFD Sender: No OFD packet to send [20:02:21]OFD Sender: No OFD packet to send [20:02:26]OFD Sender: No OFD packet to send [20:02:31]OFD Sender: No OFD packet to send [20:02:36]OFD Sender: No OFD packet to send [20:02:41]OFD Sender: No OFD packet to send [20:02:46]OFD Sender: No OFD packet to send [20:02:51]OFD Sender: No OFD packet to send [20:02:56]OFD Sender: No OFD packet to send [20:03:01]OFD Sender: No OFD packet to send [20:03:06]OFD Sender: No OFD packet to send [20:03:11]OFD Sender: No OFD packet to send [20:03:16]OFD Sender: No OFD packet to send [20:03:21]OFD Sender: No OFD packet to send [20:03:26]OFD Sender: No OFD packet to send [20:03:31]OFD Sender: No OFD packet to send [20:03:36]OFD Sender: No OFD packet to send [20:03:41]OFD Sender: No OFD packet to send [20:03:46]OFD Sender: No OFD packet to send [20:03:51]OFD Sender: No OFD packet to send [20:03:56]OFD Sender: No OFD packet to send [20:04:01]OFD Sender: No OFD packet to send [20:04:06]OFD Sender: No OFD packet to send [20:04:11]OFD Sender: No OFD packet to send [20:04:16]OFD Sender: No OFD packet to send [20:04:21]OFD Sender: No OFD packet to send [20:04:26]OFD Sender: No OFD packet to send [20:04:31]OFD Sender: No OFD packet to send [20:04:36]OFD Sender: No OFD packet to send [20:04:41]OFD Sender: No OFD packet to send [20:04:46]OFD Sender: No OFD packet to send [20:04:51]OFD Sender: No OFD packet to send [20:04:56]OFD Sender: No OFD packet to send [20:05:01]OFD Sender: No OFD packet to send [20:05:06]OFD Sender: No OFD packet to send [20:05:11]OFD Sender: No OFD packet to send [20:05:16]OFD Sender: No OFD packet to send [20:05:21]OFD Sender: No OFD packet to send [20:05:26]OFD Sender: No OFD packet to send [20:05:31]OFD Sender: No OFD packet to send [20:05:36]OFD Sender: No OFD packet to send [20:05:41]OFD Sender: No OFD packet to send [20:05:46]OFD Sender: No OFD packet to send [20:05:51]OFD Sender: No OFD packet to send [20:05:56]OFD Sender: No OFD packet to send [20:06:01]OFD Sender: No OFD packet to send [20:06:06]OFD Sender: No OFD packet to send [20:06:11]OFD Sender: No OFD packet to send [20:06:16]OFD Sender: No OFD packet to send [20:06:21]OFD Sender: No OFD packet to send [20:06:26]OFD Sender: No OFD packet to send [20:06:31]OFD Sender: No OFD packet to send [20:06:36]OFD Sender: No OFD packet to send [20:06:41]OFD Sender: No OFD packet to send [20:06:46]OFD Sender: No OFD packet to send [20:06:51]OFD Sender: No OFD packet to send [20:06:56]OFD Sender: No OFD packet to send [20:07:01]OFD Sender: No OFD packet to send [20:07:06]OFD Sender: No OFD packet to send [20:07:11]OFD Sender: No OFD packet to send [20:07:16]OFD Sender: No OFD packet to send [20:07:21]OFD Sender: No OFD packet to send [20:07:23]accept exits with 7 [20:07:23]New connection [20:07:23]New thread 3067260260 created [20:07:23]Thread 3067116900 joined [20:07:23]Waiting for new connection... [20:07:23] Sock 7.Parse request [20:07:23]Sock 7.Check first char [20:07:23]Sock 7.First char is OK [20:07:23]request: POST /json_proto HTTP/1.0 [20:07:23]Method: POST [20:07:23]URL: /json_proto [20:07:23]Method is POST - this is cgi request [20:07:23]url: /json_proto [20:07:23]query_string will be loaded in cgi processing [20:07:23]execute_cgi json_proto POST (null) [20:07:23]execute_cgi path=json_proto method=POST [20:07:23]POST find Content-Length [20:07:23]Host: 172.17.58.3:8080 [20:07:23]Content-Length: 676 [20:07:23]Content-Type: application/json [20:07:23] [20:07:23]POST finish read [20:07:23]Found Content-Length = 676 [20:07:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160830", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 5.010, "sum" : 330.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:07:23]execute_script... [20:07:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160830", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 5.010, "sum" : 330.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:07:23]POST & json_proto [20:07:23]process_json_proto [20:07:23]json parsed OK: [20:07:23]protocol is kg_v1.0 [20:07:23]action value=close_receipt [20:07:23]process_action close_receipt [20:07:23]cmd_close_receipt [20:07:23]MH_GetDate [20:07:23]Write to MH i2c: F0 00 00 34 0D 30 [20:07:23]Write i2c OK [20:07:23]MH_I2C_Read... [20:07:23]Read from MH i2c: F0 [20:07:23]MH_I2C_Read... [20:07:23]Read from MH i2c: F0 09 00 [20:07:23]MH_I2C_Read... [20:07:23]Read from MH i2c: F0 09 00 34 0D 00 FC BC BB 66 DC E4 6D 64 A3 [20:07:23]GetLastDocTimeStamp 1723578684 [20:07:23]current date 1723579644 [20:07:23]FM_GetShiftState [20:07:23]SAM_PROTO_GetShiftState [20:07:23]wFMCommunicate request_size=4 [20:07:23]MH_SAM_APDU [20:07:23]CAPDU: 80 13 01 00 [20:07:23]Write to MH i2c: E2 08 00 35 0D 80 13 01 00 00 00 00 00 BF [20:07:23]Write i2c OK [20:07:23]MH_I2C_Read... [20:07:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:23]Read from MH i2c: E2 [20:07:23]MH_I2C_Read... [20:07:23]Read from MH i2c: E2 0E 00 [20:07:23]MH_I2C_Read... [20:07:23]Read from MH i2c: E2 0E 00 35 0D 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 DD [20:07:23]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [20:07:23]wFMCommunicate OK [20:07:23]SAM_PROTO_GetShiftState done [20:07:23]FM_GetShiftState done [20:07:23]opened in 1723506770 [20:07:23]opened+sec_in_day 1723593170 [20:07:23]quantity*price = 33015 [20:07:23]sum+1 = 33017 [20:07:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 330.00 Внесено: 330.00 СДАЧА: 0.00 НСП 1% : 2.92 НДС 12% : 35.06 Наличными: 330.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 112 13.08.2024 20:07 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103201 ФПД: 272785606871767 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T200724&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103201&fm=272785606871767&tin=02508201610067®Number=0000000000092718&sum=33000 [20:07:24]StoreToDocumentArchive [20:07:24]shift 464 fd 103201 [20:07:24]save to /storage/0464/doc_00103201 [20:07:24]save last doc name /storage/0464/doc_00103201 to /storage/kkm_last_doc_name [20:07:24]save OK [20:07:24]Clear old archive folders... [20:07:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:07:24]tlvbuf is 00223CF0 [20:07:24]SAM_PROTO_ClearQueue [20:07:24]wFMCommunicate request_size=4 [20:07:24]MH_SAM_APDU [20:07:24]CAPDU: 80 09 00 00 [20:07:24]Write to MH i2c: E2 08 00 42 0D 80 09 00 00 00 00 00 00 C1 [20:07:24]Write i2c OK [20:07:24]MH_I2C_Read... [20:07:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:07:24]Read from MH i2c: E2 [20:07:24]MH_I2C_Read... [20:07:24]Read from MH i2c: E2 03 00 [20:07:24]MH_I2C_Read... [20:07:24]Read from MH i2c: E2 03 00 42 0D 00 90 00 C3 [20:07:24]RAPDU: 90 00 [20:07:24]wFMCommunicate OK [20:07:24]SAM_PROTO_ClearQueue done [20:07:24]KKMCreateOFDPacket [20:07:24]OFDProtocolAddRootSTLVToBuf [20:07:24]FM_MakeSignedData [20:07:24]FM_MakeSignedData [20:07:24]SAM_PROTO_SignData [20:07:24]wFMCommunicate request_size=4 [20:07:24]MH_SAM_APDU [20:07:24]CAPDU: 80 0D 01 02 [20:07:24]Write to MH i2c: E2 08 00 43 0D 80 0D 01 02 00 00 00 00 C9 [20:07:24]Write i2c OK [20:07:24]MH_I2C_Read... [20:07:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:07:24]Read from MH i2c: E2 [20:07:24]MH_I2C_Read... [20:07:24]Read from MH i2c: E2 03 00 [20:07:24]MH_I2C_Read... [20:07:24]Read from MH i2c: E2 03 00 43 0D 00 90 00 C4 [20:07:24]RAPDU: 90 00 [20:07:24]wFMCommunicate OK [20:07:24]wFMCommunicate request_size=255 [20:07:24]MH_SAM_APDU [20:07:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 13 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 F8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 0D 00 00 00 00 07 04 06 00 E8 80 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 FC BC BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 21 93 01 00 35 04 06 00 F8 [20:07:24]Write to MH i2c: E2 02 01 44 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 13 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 F8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 0D 00 00 00 00 07 04 06 00 E8 80 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 FC BC BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 21 93 01 00 35 04 06 00 F8 00 00 45 [20:07:24]Write i2c OK [20:07:24]MH_I2C_Read... [20:07:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:07:24]Read from MH i2c: E2 [20:07:24]MH_I2C_Read... [20:07:24]Read from MH i2c: E2 03 00 [20:07:24]MH_I2C_Read... [20:07:24]Read from MH i2c: E2 03 00 44 0D 00 90 00 C5 [20:07:24]RAPDU: 90 00 [20:07:24]wFMCommunicate OK [20:07:24]wFMCommunicate request_size=10 [20:07:24]MH_SAM_APDU [20:07:24]CAPDU: 80 0D 02 02 05 18 D9 32 8A D7 [20:07:24]Write to MH i2c: E2 0D 00 45 0D 80 0D 02 02 05 00 18 D9 32 8A D7 00 00 5A [20:07:24]Write i2c OK [20:07:24]MH_I2C_Read... [20:07:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:07:24]Read from MH i2c: E2 [20:07:24]MH_I2C_Read... [20:07:24]Read from MH i2c: E2 03 00 [20:07:24]MH_I2C_Read... [20:07:24]Read from MH i2c: E2 03 00 45 0D 00 90 00 C6 [20:07:24]RAPDU: 90 00 [20:07:24]wFMCommunicate OK [20:07:24]wFMCommunicate request_size=4 [20:07:24]MH_SAM_APDU [20:07:24]CAPDU: 80 0D 03 02 [20:07:24]Write to MH i2c: E2 08 00 46 0D 80 0D 03 02 00 00 00 00 CE [20:07:24]Write i2c OK [20:07:24]MH_I2C_Read... [20:07:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:07:25]Read from MH i2c: E2 [20:07:25]MH_I2C_Read... [20:07:25]Read from MH i2c: E2 0B 00 [20:07:25]MH_I2C_Read... [20:07:25]Read from MH i2c: E2 0B 00 46 0D 00 A1 50 D2 E8 B6 88 36 CA 90 00 B8 [20:07:25]RAPDU: A1 50 D2 E8 B6 88 36 CA 90 00 [20:07:25]wFMCommunicate OK [20:07:25]SAM_PROTO_SignData done [20:07:25]FM_MakeSignedData done [20:07:25]CreateOFDProtocolMessage [20:07:25]wFMCommunicate request_size=4 [20:07:25]MH_SAM_APDU [20:07:25]CAPDU: 80 11 00 00 [20:07:25]Write to MH i2c: E2 08 00 47 0D 80 11 00 00 00 00 00 00 CE [20:07:25]Write i2c OK [20:07:25]MH_I2C_Read... [20:07:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:25]Read from MH i2c: E2 [20:07:25]MH_I2C_Read... [20:07:25]Read from MH i2c: E2 17 00 [20:07:25]MH_I2C_Read... [20:07:25]Read from MH i2c: E2 17 00 47 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 22 [20:07:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [20:07:25]wFMCommunicate OK [20:07:25]CreateOFDProtocolMessage done [20:07:25]OFDSenderStorePacket 103201 [20:07:25]StoreOFDPacket docnum=103201 [20:07:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 97 0F 07 01 46 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 92 13 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 F8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 0D 00 00 00 00 07 04 06 00 E8 80 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 FC BC BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 21 93 01 00 35 04 06 00 F8 18 D9 32 8A D7 A1 50 D2 E8 B6 88 36 CA [20:07:25]CheckFolder [20:07:25]dirname=/storage/ofd_packets [20:07:25]CheckFolder done [20:07:25]ProducePacketName [20:07:25]name=ofd_packets/00103201 [20:07:25]NVStorageSaveData ofd_packets/00103201 [20:07:25]File name is /storage/ofd_packets/00103201 [20:07:25]Write 301 bytes [20:07:25]NVStorageSaveData done [20:07:25]OFDSenderStorePacket done [20:07:25]KKMCreateOFDPacket done [20:07:25]NVStorageSaveData kkm_last_timestamp [20:07:25]File name is /storage/kkm_last_timestamp [20:07:25]Write 4 bytes [20:07:25]NVStorageSaveData done [20:07:25]ExternCall_PrintAddStr [20:07:25]wPrintStart [20:07:25]Write to MH i2c: 01 00 00 48 0D 55 [20:07:25]Write i2c OK [20:07:25]MH_I2C_Read... [20:07:25]Read from MH i2c: 01 [20:07:25]MH_I2C_Read... [20:07:25]Read from MH i2c: 01 07 00 [20:07:25]MH_I2C_Read... [20:07:25]Read from MH i2c: 01 07 00 48 0D 00 00 00 00 00 FF 0F 6A [20:07:25]RasterBufferAndPrint [20:07:25]line Счет N : (1)160830 [20:07:25]line ИНН: 02508201610067 [20:07:25]line Контрольно-Кассовый Чек [20:07:25]line ПРОДАЖА [20:07:25]line ТРК (МРК, ГНК) : 3 [20:07:25]line Товар: 2710124130 [20:07:25]line Аи-92-К-5 [20:07:25]line 5.010 * 65.90 [20:07:25]line = 330.16 [20:07:25]line НДС 12% НСП 1% [20:07:25]line > о реализуемом товаре [20:07:25]line ОКРУГЛЕНИЕ: -0.16 [20:07:25]line ИТОГО: 330.00 [20:07:25]line Внесено: 330.00 [20:07:25]line СДАЧА: 0.00 [20:07:25]line НСП 1% : 2.92 [20:07:25]line НДС 12% : 35.06 [20:07:25]line Наличными: 330.00 [20:07:25]line Безнал.: 0.00 [20:07:25]line Место: АЗС № 38 "Партнер Нефть" [20:07:25]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [20:07:25]line СНО: Общий режим [20:07:25]line Чек 112 13.08.2024 20:07 [20:07:25]line Смена: 464 ФФД: 1.0 [20:07:25]line ЗНМ: 0300000126 [20:07:25]line РНМ: 0000000000092718 [20:07:25]line Версия ККМ: 001 [20:07:25]line ФМ: 0000000000875058 [20:07:25]line ФД: 103201 [20:07:25]line ФПД: 272785606871767 [20:07:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T200724&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103201&fm=272785606871767&tin=02508201610067®Number=0000000000092718&sum=33000 [20:07:25]OFD Sender: Processing packet 103201 [packets to send 69, broken 68] [20:07:25]ProducePacketName [20:07:25]name=ofd_packets/00103201 [20:07:25]OFD Sender: To server: pG, [20:07:25]CommunicateWithHost lk.salyk.kg:30040 [20:07:25]ConnectInit lk.salyk.kg [20:07:25]written 0, free lines is 4095 [20:07:25]Connected sock=10 [20:07:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 97 0F 07 01 46 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 92 13 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 F8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 0D 00 00 00 00 07 04 06 00 E8 80 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 FC BC BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 21 93 01 00 35 04 06 00 F8 18 D9 32 8A D7 A1 50 D2 E8 B6 88 36 CA [20:07:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 1E 20 47 00 60 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 21 93 01 00 F4 03 04 00 6F 63 BB 66 B6 04 01 00 00 9E 00 54 25 D2 7F 92 5D [20:07:25]CommunicateWithHost err = 0 [20:07:25]CheckOFDResponse [20:07:25]1017 (14) - 77093643461234 [20:07:25]1041 (16) - 0000000000875058 [20:07:25]1040 (4) - 103201 [20:07:25]1012 (4) - 13.08.2024 13:45 [20:07:25]1206 (1) - 0 [20:07:25]OFD Sender: Remove packet 103201 [20:07:25]ProducePacketName [20:07:25]name=ofd_packets/00103201 [20:07:25]NVStorageDeleteData [20:07:25]Write to MH i2c: 01 00 00 73 0D 80 [20:07:25]Write i2c OK [20:07:25]MH_I2C_Read... [20:07:25]Read from MH i2c: 01 [20:07:25]MH_I2C_Read... [20:07:25]Read from MH i2c: 01 07 00 [20:07:25]MH_I2C_Read... [20:07:25]Read from MH i2c: 01 07 00 73 0D 00 00 00 00 00 DD 0C 70 [20:07:25]RasterBufferAndPrint [20:07:25]line [20:07:25]line [20:07:25]line [20:07:25]line [20:07:25]line [20:07:25]written 0, free lines is 3298 [20:07:25]MH_Cut [20:07:25]Write to MH i2c: D1 01 00 7A 0D 01 59 [20:07:25]Write i2c OK [20:07:25]MH_I2C_Read... [20:07:25]Read from MH i2c: D1 [20:07:25]MH_I2C_Read... [20:07:25]Read from MH i2c: D1 01 00 [20:07:25]MH_I2C_Read... [20:07:25]Read from MH i2c: D1 01 00 7A 0D 00 58 [20:07:25]Write to MH i2c: 01 00 00 7B 0D 88 [20:07:25]Write i2c OK [20:07:25]MH_I2C_Read... [20:07:26]OFD Sender: No OFD packet to send [20:07:26]*** Cut start [20:07:26]*** Purtial cut [20:07:26]*** CUTSNS_PIN = 0 [20:07:26]*** Stage 1: CUTSNS_PIN = 1 [20:07:28]Read from MH i2c: 01 [20:07:28]MH_I2C_Read... [20:07:28]*** Stop cut motor [20:07:28]*** Cut end [20:07:28]Read from MH i2c: 01 07 00 [20:07:28]MH_I2C_Read... [20:07:28]Read from MH i2c: 01 07 00 7B 0D 00 00 00 00 00 FF 0F 9D [20:07:28]process_action close_receipt done [20:07:28]requested_data is exist [20:07:28]produce_requested_data [20:07:28]requested_item fm.sn is exist - process it [20:07:28]wFMCommunicate request_size=4 [20:07:28]MH_SAM_APDU [20:07:28]CAPDU: 80 11 00 00 [20:07:28]Write to MH i2c: E2 08 00 7C 0D 80 11 00 00 00 00 00 00 03 [20:07:28]Write i2c OK [20:07:28]MH_I2C_Read... [20:07:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:28]Read from MH i2c: E2 [20:07:28]MH_I2C_Read... [20:07:28]Read from MH i2c: E2 17 00 [20:07:28]MH_I2C_Read... [20:07:28]Read from MH i2c: E2 17 00 7C 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 57 [20:07:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [20:07:28]wFMCommunicate OK [20:07:28]requested_item fd.num is exist - process it [20:07:28]SAM_PROTO_GetFieldsCounters [20:07:28]wFMCommunicate request_size=4 [20:07:28]MH_SAM_APDU [20:07:28]CAPDU: 80 13 00 00 [20:07:28]Write to MH i2c: E2 08 00 7D 0D 80 13 00 00 00 00 00 00 06 [20:07:28]Write i2c OK [20:07:28]MH_I2C_Read... [20:07:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:07:28]Read from MH i2c: E2 [20:07:28]MH_I2C_Read... [20:07:28]Read from MH i2c: E2 62 00 [20:07:28]MH_I2C_Read... [20:07:28]Read from MH i2c: E2 62 00 7D 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 21 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [20:07:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 21 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:07:28]wFMCommunicate OK [20:07:28]SAM_PROTO_GetFieldsCounters done [20:07:28]requested_item shift.num is exist - process it [20:07:28]requested_item shift.opened is exist - process it [20:07:28]req_shift_opened [20:07:28]FM_GetShiftState [20:07:28]SAM_PROTO_GetShiftState [20:07:28]wFMCommunicate request_size=4 [20:07:28]MH_SAM_APDU [20:07:28]CAPDU: 80 13 01 00 [20:07:28]Write to MH i2c: E2 08 00 7E 0D 80 13 01 00 00 00 00 00 08 [20:07:28]Write i2c OK [20:07:28]MH_I2C_Read... [20:07:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:28]Read from MH i2c: E2 [20:07:28]MH_I2C_Read... [20:07:28]Read from MH i2c: E2 0E 00 [20:07:28]MH_I2C_Read... [20:07:28]Read from MH i2c: E2 0E 00 7E 0D 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 26 [20:07:28]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [20:07:28]wFMCommunicate OK [20:07:28]SAM_PROTO_GetShiftState done [20:07:28]FM_GetShiftState done [20:07:28]req_shift_opened done [20:07:28]requested_item shift.open_date is exist - process it [20:07:28]req_shift_open_date [20:07:28]req_shift_open_date done [20:07:28]produce_requested_data done [20:07:28]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103201,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [20:07:28]process_action_free close_receipt [20:07:28]json_value_free [20:07:28]json_value_free done [20:07:28]process_json_proto returns [20:07:28]Send response to host [20:07:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103201,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [20:07:28]free response buf [20:07:28]execute_script done [20:07:28]execute_script returns [20:07:28]free content buf [20:07:28]Sock 7.Close socket [20:07:28]Sock 7.Thread stoped [20:07:31]OFD Sender: No OFD packet to send [20:07:36]OFD Sender: No OFD packet to send [20:07:41]OFD Sender: No OFD packet to send [20:07:46]OFD Sender: No OFD packet to send [20:07:51]OFD Sender: No OFD packet to send [20:07:56]OFD Sender: No OFD packet to send [20:08:01]OFD Sender: No OFD packet to send [20:08:06]OFD Sender: No OFD packet to send [20:08:11]OFD Sender: No OFD packet to send [20:08:16]OFD Sender: No OFD packet to send [20:08:21]OFD Sender: No OFD packet to send [20:08:26]OFD Sender: No OFD packet to send [20:08:30]accept exits with 9 [20:08:30]New connection [20:08:30]New thread 3067116900 created [20:08:30]Thread 3067260260 joined [20:08:30]Waiting for new connection... [20:08:30] Sock 9.Parse request [20:08:30]Sock 9.Check first char [20:08:30]Sock 9.First char is OK [20:08:30]request: POST /json_proto HTTP/1.0 [20:08:30]Method: POST [20:08:30]URL: /json_proto [20:08:30]Method is POST - this is cgi request [20:08:30]url: /json_proto [20:08:30]query_string will be loaded in cgi processing [20:08:30]execute_cgi json_proto POST (null) [20:08:30]execute_cgi path=json_proto method=POST [20:08:30]POST find Content-Length [20:08:30]Host: 172.17.58.3:8080 [20:08:30]Content-Length: 676 [20:08:30]Content-Type: application/json [20:08:30] [20:08:30]POST finish read [20:08:30]Found Content-Length = 676 [20:08:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160831", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 1.520, "sum" : 100.17, "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" ] } } [20:08:30]execute_script... [20:08: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)160831", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 1.520, "sum" : 100.17, "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" ] } } [20:08:30]POST & json_proto [20:08:30]process_json_proto [20:08:30]json parsed OK: [20:08:30]protocol is kg_v1.0 [20:08:30]action value=close_receipt [20:08:30]process_action close_receipt [20:08:30]cmd_close_receipt [20:08:30]MH_GetDate [20:08:30]Write to MH i2c: F0 00 00 7F 0D 7B [20:08:30]Write i2c OK [20:08:30]MH_I2C_Read... [20:08:30]Read from MH i2c: F0 [20:08:30]MH_I2C_Read... [20:08:30]Read from MH i2c: F0 09 00 [20:08:30]MH_I2C_Read... [20:08:30]Read from MH i2c: F0 09 00 7F 0D 00 3F BD BB 66 DC E4 6D 64 32 [20:08:30]GetLastDocTimeStamp 1723579644 [20:08:30]current date 1723579711 [20:08:30]FM_GetShiftState [20:08:30]SAM_PROTO_GetShiftState [20:08:30]wFMCommunicate request_size=4 [20:08:30]MH_SAM_APDU [20:08:30]CAPDU: 80 13 01 00 [20:08:30]Write to MH i2c: E2 08 00 80 0D 80 13 01 00 00 00 00 00 0A [20:08:30]Write i2c OK [20:08:30]MH_I2C_Read... [20:08:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:30]Read from MH i2c: E2 [20:08:30]MH_I2C_Read... [20:08:30]Read from MH i2c: E2 0E 00 [20:08:30]MH_I2C_Read... [20:08:30]Read from MH i2c: E2 0E 00 80 0D 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 28 [20:08:30]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [20:08:30]wFMCommunicate OK [20:08:30]SAM_PROTO_GetShiftState done [20:08:30]FM_GetShiftState done [20:08:30]opened in 1723506770 [20:08:30]opened+sec_in_day 1723593170 [20:08:30]quantity*price = 10016 [20:08:30]sum+1 = 10018 [20:08:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.64 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 113 13.08.2024 20:08 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103202 ФПД: 82843238753862 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T200831&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103202&fm=82843238753862&tin=02508201610067®Number=0000000000092718&sum=10000 [20:08:31]StoreToDocumentArchive [20:08:31]shift 464 fd 103202 [20:08:31]save to /storage/0464/doc_00103202 [20:08:31]save last doc name /storage/0464/doc_00103202 to /storage/kkm_last_doc_name [20:08:31]save OK [20:08:31]Clear old archive folders... [20:08:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:08:31]tlvbuf is 0024CC60 [20:08:31]SAM_PROTO_ClearQueue [20:08:31]wFMCommunicate request_size=4 [20:08:31]MH_SAM_APDU [20:08:31]CAPDU: 80 09 00 00 [20:08:31]Write to MH i2c: E2 08 00 8D 0D 80 09 00 00 00 00 00 00 0C [20:08:31]Write i2c OK [20:08:31]MH_I2C_Read... [20:08:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:08:31]Read from MH i2c: E2 [20:08:31]MH_I2C_Read... [20:08:31]Read from MH i2c: E2 03 00 [20:08:31]MH_I2C_Read... [20:08:31]Read from MH i2c: E2 03 00 8D 0D 00 90 00 0E [20:08:31]RAPDU: 90 00 [20:08:31]wFMCommunicate OK [20:08:31]SAM_PROTO_ClearQueue done [20:08:31]KKMCreateOFDPacket [20:08:31]OFDProtocolAddRootSTLVToBuf [20:08:31]FM_MakeSignedData [20:08:31]FM_MakeSignedData [20:08:31]SAM_PROTO_SignData [20:08:31]wFMCommunicate request_size=4 [20:08:31]MH_SAM_APDU [20:08:31]CAPDU: 80 0D 01 02 [20:08:31]Write to MH i2c: E2 08 00 8E 0D 80 0D 01 02 00 00 00 00 14 [20:08:31]Write i2c OK [20:08:31]MH_I2C_Read... [20:08:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:08:31]Read from MH i2c: E2 [20:08:31]MH_I2C_Read... [20:08:31]Read from MH i2c: E2 03 00 [20:08:31]MH_I2C_Read... [20:08:31]Read from MH i2c: E2 03 00 8E 0D 00 90 00 0F [20:08:31]RAPDU: 90 00 [20:08:31]wFMCommunicate OK [20:08:31]wFMCommunicate request_size=255 [20:08:31]MH_SAM_APDU [20:08:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 05 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 21 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 28 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 71 00 00 00 F4 03 04 00 3F BD BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 22 93 01 00 35 04 06 00 4B [20:08:31]Write to MH i2c: E2 02 01 8F 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 05 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 21 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 28 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 71 00 00 00 F4 03 04 00 3F BD BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 22 93 01 00 35 04 06 00 4B 00 00 88 [20:08:31]Write i2c OK [20:08:31]MH_I2C_Read... [20:08:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:31]Read from MH i2c: E2 [20:08:31]MH_I2C_Read... [20:08:31]Read from MH i2c: E2 03 00 [20:08:31]MH_I2C_Read... [20:08:31]Read from MH i2c: E2 03 00 8F 0D 00 90 00 10 [20:08:31]RAPDU: 90 00 [20:08:31]wFMCommunicate OK [20:08:31]wFMCommunicate request_size=10 [20:08:31]MH_SAM_APDU [20:08:31]CAPDU: 80 0D 02 02 05 58 71 D1 66 46 [20:08:31]Write to MH i2c: E2 0D 00 90 0D 80 0D 02 02 05 00 58 71 D1 66 46 00 00 67 [20:08:31]Write i2c OK [20:08:31]MH_I2C_Read... [20:08:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:31]Read from MH i2c: E2 [20:08:31]MH_I2C_Read... [20:08:31]Read from MH i2c: E2 03 00 [20:08:31]MH_I2C_Read... [20:08:31]Read from MH i2c: E2 03 00 90 0D 00 90 00 11 [20:08:31]RAPDU: 90 00 [20:08:31]wFMCommunicate OK [20:08:31]wFMCommunicate request_size=4 [20:08:31]MH_SAM_APDU [20:08:31]CAPDU: 80 0D 03 02 [20:08:31]Write to MH i2c: E2 08 00 91 0D 80 0D 03 02 00 00 00 00 19 [20:08:31]Write i2c OK [20:08:31]MH_I2C_Read... [20:08:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:08:31]Read from MH i2c: E2 [20:08:31]MH_I2C_Read... [20:08:31]Read from MH i2c: E2 0B 00 [20:08:31]MH_I2C_Read... [20:08:31]Read from MH i2c: E2 0B 00 91 0D 00 2D 13 46 AD 86 68 AF B8 90 00 A2 [20:08:31]RAPDU: 2D 13 46 AD 86 68 AF B8 90 00 [20:08:31]wFMCommunicate OK [20:08:31]SAM_PROTO_SignData done [20:08:31]FM_MakeSignedData done [20:08:31]CreateOFDProtocolMessage [20:08:31]wFMCommunicate request_size=4 [20:08:31]MH_SAM_APDU [20:08:31]CAPDU: 80 11 00 00 [20:08:31]Write to MH i2c: E2 08 00 92 0D 80 11 00 00 00 00 00 00 19 [20:08:31]Write i2c OK [20:08:31]MH_I2C_Read... [20:08:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:31]Read from MH i2c: E2 [20:08:31]MH_I2C_Read... [20:08:31]Read from MH i2c: E2 17 00 [20:08:31]MH_I2C_Read... [20:08:31]Read from MH i2c: E2 17 00 92 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 6D [20:08:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [20:08:31]wFMCommunicate OK [20:08:31]CreateOFDProtocolMessage done [20:08:31]OFDSenderStorePacket 103202 [20:08:31]StoreOFDPacket docnum=103202 [20:08:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 08 8E 07 01 AF A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 05 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 21 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 28 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 71 00 00 00 F4 03 04 00 3F BD BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 22 93 01 00 35 04 06 00 4B 58 71 D1 66 46 2D 13 46 AD 86 68 AF B8 [20:08:31]CheckFolder [20:08:31]dirname=/storage/ofd_packets [20:08:31]CheckFolder done [20:08:31]ProducePacketName [20:08:31]name=ofd_packets/00103202 [20:08:31]NVStorageSaveData ofd_packets/00103202 [20:08:31]File name is /storage/ofd_packets/00103202 [20:08:31]Write 301 bytes [20:08:31]NVStorageSaveData done [20:08:31]OFDSenderStorePacket done [20:08:31]KKMCreateOFDPacket done [20:08:31]NVStorageSaveData kkm_last_timestamp [20:08:31]File name is /storage/kkm_last_timestamp [20:08:31]Write 4 bytes [20:08:31]NVStorageSaveData done [20:08:31]ExternCall_PrintAddStr [20:08:31]wPrintStart [20:08:31]Write to MH i2c: 01 00 00 93 0D A0 [20:08:31]Write i2c OK [20:08:31]MH_I2C_Read... [20:08:31]Read from MH i2c: 01 [20:08:31]MH_I2C_Read... [20:08:31]Read from MH i2c: 01 07 00 [20:08:31]MH_I2C_Read... [20:08:31]Read from MH i2c: 01 07 00 93 0D 00 00 00 00 00 FF 0F B5 [20:08:31]RasterBufferAndPrint [20:08:31]line Счет N : (1)160831 [20:08:31]line ИНН: 02508201610067 [20:08:31]line Контрольно-Кассовый Чек [20:08:31]line ПРОДАЖА [20:08:31]line ТРК (МРК, ГНК) : 7 [20:08:31]line Товар: 2710124130 [20:08:31]line Аи-92-К-5 [20:08:31]line 1.520 * 65.90 [20:08:31]line = 100.17 [20:08:31]line НДС 12% НСП 1% [20:08:31]line > о реализуемом товаре [20:08:31]line ОКРУГЛЕНИЕ: -0.17 [20:08:31]line ИТОГО: 100.00 [20:08:31]line Внесено: 100.00 [20:08:31]line СДАЧА: 0.00 [20:08:31]line НСП 1% : 0.89 [20:08:31]line НДС 12% : 10.64 [20:08:31]line Наличными: 100.00 [20:08:31]line Безнал.: 0.00 [20:08:31]line Место: АЗС № 38 "Партнер Нефть" [20:08:31]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [20:08:31]line СНО: Общий режим [20:08:31]line Чек 113 13.08.2024 20:08 [20:08:31]line Смена: 464 ФФД: 1.0 [20:08:31]line ЗНМ: 0300000126 [20:08:31]line РНМ: 0000000000092718 [20:08:31]line Версия ККМ: 001 [20:08:31]line ФМ: 0000000000875058 [20:08:31]line ФД: 103202 [20:08:31]line ФПД: 82843238753862 [20:08:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T200831&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103202&fm=82843238753862&tin=02508201610067®Number=0000000000092718&sum=10000 [20:08:31]written 0, free lines is 4095 [20:08:31]OFD Sender: Processing packet 103202 [packets to send 69, broken 68] [20:08:31]ProducePacketName [20:08:31]name=ofd_packets/00103202 [20:08:31]OFD Sender: To server: pG, [20:08:31]CommunicateWithHost lk.salyk.kg:30040 [20:08:31]ConnectInit lk.salyk.kg [20:08:32]Connected sock=10 [20: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 35 30 35 38 0F 01 00 00 08 8E 07 01 AF A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 05 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 21 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 28 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 71 00 00 00 F4 03 04 00 3F BD BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 22 93 01 00 35 04 06 00 4B 58 71 D1 66 46 2D 13 46 AD 86 68 AF B8 [20:08:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 1A 24 47 00 C5 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 22 93 01 00 F4 03 04 00 B1 63 BB 66 B6 04 01 00 00 D4 9B BF 87 51 A5 2D 4A [20:08:32]CommunicateWithHost err = 0 [20:08:32]CheckOFDResponse [20:08:32]1017 (14) - 77093643461234 [20:08:32]1041 (16) - 0000000000875058 [20:08:32]1040 (4) - 103202 [20:08:32]1012 (4) - 13.08.2024 13:46 [20:08:32]1206 (1) - 0 [20:08:32]OFD Sender: Remove packet 103202 [20:08:32]ProducePacketName [20:08:32]name=ofd_packets/00103202 [20:08:32]NVStorageDeleteData [20:08:32]Write to MH i2c: 01 00 00 BE 0D CB [20:08:32]Write i2c OK [20:08:32]MH_I2C_Read... [20:08:32]Read from MH i2c: 01 [20:08:32]MH_I2C_Read... [20:08:32]Read from MH i2c: 01 07 00 [20:08:32]MH_I2C_Read... [20:08:32]Read from MH i2c: 01 07 00 BE 0D 00 00 00 00 00 F8 0C D6 [20:08:32]RasterBufferAndPrint [20:08:32]line [20:08:32]line [20:08:32]line [20:08:32]line [20:08:32]line [20:08:32]written 0, free lines is 3329 [20:08:32]MH_Cut [20:08:32]Write to MH i2c: D1 01 00 C5 0D 01 A4 [20:08:32]Write i2c OK [20:08:32]MH_I2C_Read... [20:08:32]Read from MH i2c: D1 [20:08:32]MH_I2C_Read... [20:08:32]Read from MH i2c: D1 01 00 [20:08:32]MH_I2C_Read... [20:08:32]Read from MH i2c: D1 01 00 C5 0D 00 A3 [20:08:32]Write to MH i2c: 01 00 00 C6 0D D3 [20:08:32]Write i2c OK [20:08:32]MH_I2C_Read... [20:08:32]OFD Sender: No OFD packet to send [20:08:33]*** Cut start [20:08:33]*** Purtial cut [20:08:33]*** Stage 1: CUTSNS_PIN = 1 [20:08:33]Read from MH i2c: 01 [20:08:33]MH_I2C_Read... [20:08:33]*** Stop cut motor [20:08:33]*** Cut end [20:08:33]Read from MH i2c: 01 07 00 [20:08:33]MH_I2C_Read... [20:08:33]Read from MH i2c: 01 07 00 C6 0D 00 00 00 00 00 FF 0F E8 [20:08:33]process_action close_receipt done [20:08:33]requested_data is exist [20:08:33]produce_requested_data [20:08:33]requested_item fm.sn is exist - process it [20:08:33]wFMCommunicate request_size=4 [20:08:33]MH_SAM_APDU [20:08:33]CAPDU: 80 11 00 00 [20:08:33]Write to MH i2c: E2 08 00 C7 0D 80 11 00 00 00 00 00 00 4E [20:08:33]Write i2c OK [20:08:33]MH_I2C_Read... [20:08:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:33]Read from MH i2c: E2 [20:08:33]MH_I2C_Read... [20:08:33]Read from MH i2c: E2 17 00 [20:08:33]MH_I2C_Read... [20:08:33]Read from MH i2c: E2 17 00 C7 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 A2 [20:08:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [20:08:33]wFMCommunicate OK [20:08:33]requested_item fd.num is exist - process it [20:08:33]SAM_PROTO_GetFieldsCounters [20:08:33]wFMCommunicate request_size=4 [20:08:33]MH_SAM_APDU [20:08:33]CAPDU: 80 13 00 00 [20:08:33]Write to MH i2c: E2 08 00 C8 0D 80 13 00 00 00 00 00 00 51 [20:08:33]Write i2c OK [20:08:33]MH_I2C_Read... [20:08:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:08:33]Read from MH i2c: E2 [20:08:33]MH_I2C_Read... [20:08:33]Read from MH i2c: E2 62 00 [20:08:33]MH_I2C_Read... [20:08:33]Read from MH i2c: E2 62 00 C8 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 22 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [20:08:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 22 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:08:33]wFMCommunicate OK [20:08:33]SAM_PROTO_GetFieldsCounters done [20:08:33]requested_item shift.num is exist - process it [20:08:33]requested_item shift.opened is exist - process it [20:08:33]req_shift_opened [20:08:33]FM_GetShiftState [20:08:33]SAM_PROTO_GetShiftState [20:08:33]wFMCommunicate request_size=4 [20:08:33]MH_SAM_APDU [20:08:33]CAPDU: 80 13 01 00 [20:08:33]Write to MH i2c: E2 08 00 C9 0D 80 13 01 00 00 00 00 00 53 [20:08:33]Write i2c OK [20:08:33]MH_I2C_Read... [20:08:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:33]Read from MH i2c: E2 [20:08:33]MH_I2C_Read... [20:08:33]Read from MH i2c: E2 0E 00 [20:08:33]MH_I2C_Read... [20:08:33]Read from MH i2c: E2 0E 00 C9 0D 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 71 [20:08:33]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [20:08:33]wFMCommunicate OK [20:08:33]SAM_PROTO_GetShiftState done [20:08:33]FM_GetShiftState done [20:08:33]req_shift_opened done [20:08:33]requested_item shift.open_date is exist - process it [20:08:33]req_shift_open_date [20:08:33]req_shift_open_date done [20:08:33]produce_requested_data done [20:08:33]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103202,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [20:08:33]process_action_free close_receipt [20:08:33]json_value_free [20:08:33]json_value_free done [20:08:33]process_json_proto returns [20:08:33]Send response to host [20:08:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103202,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [20:08:33]free response buf [20:08:33]execute_script done [20:08:33]execute_script returns [20:08:33]free content buf [20:08:33]Sock 9.Close socket [20:08:33]Sock 9.Thread stoped [20:08:37]OFD Sender: No OFD packet to send [20:08:42]OFD Sender: No OFD packet to send [20:08:47]OFD Sender: No OFD packet to send [20:08:52]OFD Sender: No OFD packet to send [20:08:57]OFD Sender: No OFD packet to send [20:09:02]OFD Sender: No OFD packet to send [20:09:07]OFD Sender: No OFD packet to send [20:09:12]OFD Sender: No OFD packet to send [20:09:17]OFD Sender: No OFD packet to send [20:09:22]OFD Sender: No OFD packet to send [20:09:27]OFD Sender: No OFD packet to send [20:09:32]OFD Sender: No OFD packet to send [20:09:37]OFD Sender: No OFD packet to send [20:09:42]OFD Sender: No OFD packet to send [20:09:47]OFD Sender: No OFD packet to send [20:09:52]OFD Sender: No OFD packet to send [20:09:57]OFD Sender: No OFD packet to send [20:10:02]OFD Sender: No OFD packet to send [20:10:07]OFD Sender: No OFD packet to send [20:10:12]OFD Sender: No OFD packet to send [20:10:17]OFD Sender: No OFD packet to send [20:10:22]OFD Sender: No OFD packet to send [20:10:27]OFD Sender: No OFD packet to send [20:10:32]OFD Sender: No OFD packet to send [20:10:37]OFD Sender: No OFD packet to send [20:10:42]OFD Sender: No OFD packet to send [20:10:47]OFD Sender: No OFD packet to send [20:10:52]OFD Sender: No OFD packet to send [20:10:57]OFD Sender: No OFD packet to send [20:11:02]OFD Sender: No OFD packet to send [20:11:07]OFD Sender: No OFD packet to send [20:11:12]OFD Sender: No OFD packet to send [20:11:17]OFD Sender: No OFD packet to send [20:11:22]OFD Sender: No OFD packet to send [20:11:27]OFD Sender: No OFD packet to send [20:11:32]OFD Sender: No OFD packet to send [20:11:37]OFD Sender: No OFD packet to send [20:11:42]OFD Sender: No OFD packet to send [20:11:47]OFD Sender: No OFD packet to send [20:11:52]OFD Sender: No OFD packet to send [20:11:57]OFD Sender: No OFD packet to send [20:12:02]OFD Sender: No OFD packet to send [20:12:07]OFD Sender: No OFD packet to send [20:12:12]OFD Sender: No OFD packet to send [20:12:17]OFD Sender: No OFD packet to send [20:12:22]OFD Sender: No OFD packet to send [20:12:27]OFD Sender: No OFD packet to send [20:12:32]OFD Sender: No OFD packet to send [20:12:37]OFD Sender: No OFD packet to send [20:12:42]OFD Sender: No OFD packet to send [20:12:47]OFD Sender: No OFD packet to send [20:12:52]OFD Sender: No OFD packet to send [20:12:58]OFD Sender: No OFD packet to send [20:13:03]OFD Sender: No OFD packet to send [20:13:08]OFD Sender: No OFD packet to send [20:13:13]OFD Sender: No OFD packet to send [20:13:18]OFD Sender: No OFD packet to send [20:13:23]OFD Sender: No OFD packet to send [20:13:28]OFD Sender: No OFD packet to send [20:13:33]OFD Sender: No OFD packet to send [20:13:38]OFD Sender: No OFD packet to send [20:13:43]OFD Sender: No OFD packet to send [20:13:48]OFD Sender: No OFD packet to send [20:13:53]OFD Sender: No OFD packet to send [20:13:58]OFD Sender: No OFD packet to send [20:14:03]OFD Sender: No OFD packet to send [20:14:08]OFD Sender: No OFD packet to send [20:14:13]OFD Sender: No OFD packet to send [20:14:18]OFD Sender: No OFD packet to send [20:14:23]OFD Sender: No OFD packet to send [20:14:28]OFD Sender: No OFD packet to send [20:14:33]OFD Sender: No OFD packet to send [20:14:38]OFD Sender: No OFD packet to send [20:14:43]OFD Sender: No OFD packet to send [20:14:48]OFD Sender: No OFD packet to send [20:14:53]OFD Sender: No OFD packet to send [20:14:58]OFD Sender: No OFD packet to send [20:15:03]OFD Sender: No OFD packet to send [20:15:08]OFD Sender: No OFD packet to send [20:15:13]OFD Sender: No OFD packet to send [20:15:18]OFD Sender: No OFD packet to send [20:15:23]OFD Sender: No OFD packet to send [20:15:28]OFD Sender: No OFD packet to send [20:15:33]OFD Sender: No OFD packet to send [20:15:38]OFD Sender: No OFD packet to send [20:15:43]OFD Sender: No OFD packet to send [20:15:48]OFD Sender: No OFD packet to send [20:15:53]OFD Sender: No OFD packet to send [20:15:58]OFD Sender: No OFD packet to send [20:16:03]OFD Sender: No OFD packet to send [20:16:08]OFD Sender: No OFD packet to send [20:16:13]OFD Sender: No OFD packet to send [20:16:18]OFD Sender: No OFD packet to send [20:16:23]OFD Sender: No OFD packet to send [20:16:28]OFD Sender: No OFD packet to send [20:16:33]OFD Sender: No OFD packet to send [20:16:36]accept exits with 7 [20:16:36]New connection [20:16:36]New thread 3067260260 created [20:16:36]Thread 3067116900 joined [20:16:36]Waiting for new connection... [20:16:36] Sock 7.Parse request [20:16:36]Sock 7.Check first char [20:16:36]Sock 7.First char is OK [20:16:36]request: POST /json_proto HTTP/1.0 [20:16:36]Method: POST [20:16:36]URL: /json_proto [20:16:36]Method is POST - this is cgi request [20:16:36]url: /json_proto [20:16:36]query_string will be loaded in cgi processing [20:16:36]execute_cgi json_proto POST (null) [20:16:36]execute_cgi path=json_proto method=POST [20:16:36]POST find Content-Length [20:16:36]Host: 172.17.58.3:8080 [20:16:36]Content-Length: 677 [20:16:36]Content-Type: application/json [20:16:36] [20:16:36]POST finish read [20:16:36]Found Content-Length = 677 [20:16:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160832", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 10.630, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:16:36]execute_script... [20:16: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)160832", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 10.630, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:16:36]POST & json_proto [20:16:36]process_json_proto [20:16:36]json parsed OK: [20:16:36]protocol is kg_v1.0 [20:16:36]action value=close_receipt [20:16:36]process_action close_receipt [20:16:36]cmd_close_receipt [20:16:36]MH_GetDate [20:16:36]Write to MH i2c: F0 00 00 CA 0D C6 [20:16:36]Write i2c OK [20:16:36]MH_I2C_Read... [20:16:36]Read from MH i2c: F0 [20:16:36]MH_I2C_Read... [20:16:36]Read from MH i2c: F0 09 00 [20:16:36]MH_I2C_Read... [20:16:36]Read from MH i2c: F0 09 00 CA 0D 00 25 BF BB 66 DC E4 6D 64 65 [20:16:36]GetLastDocTimeStamp 1723579711 [20:16:36]current date 1723580197 [20:16:36]FM_GetShiftState [20:16:36]SAM_PROTO_GetShiftState [20:16:36]wFMCommunicate request_size=4 [20:16:36]MH_SAM_APDU [20:16:36]CAPDU: 80 13 01 00 [20:16:36]Write to MH i2c: E2 08 00 CB 0D 80 13 01 00 00 00 00 00 55 [20:16:36]Write i2c OK [20:16:36]MH_I2C_Read... [20:16:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:16:36]Read from MH i2c: E2 [20:16:36]MH_I2C_Read... [20:16:36]Read from MH i2c: E2 0E 00 [20:16:36]MH_I2C_Read... [20:16:36]Read from MH i2c: E2 0E 00 CB 0D 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 73 [20:16:36]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [20:16:36]wFMCommunicate OK [20:16:36]SAM_PROTO_GetShiftState done [20:16:36]FM_GetShiftState done [20:16:36]opened in 1723506770 [20:16:36]opened+sec_in_day 1723593170 [20:16:36]quantity*price = 70051 [20:16:36]sum+1 = 70053 [20:16:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 114 13.08.2024 20:16 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103203 ФПД: 208154323673285 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T201638&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103203&fm=208154323673285&tin=02508201610067®Number=0000000000092718&sum=70000 [20:16:37]StoreToDocumentArchive [20:16:37]shift 464 fd 103203 [20:16:37]save to /storage/0464/doc_00103203 [20:16:37]save last doc name /storage/0464/doc_00103203 to /storage/kkm_last_doc_name [20:16:37]save OK [20:16:37]Clear old archive folders... [20:16:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:16:37]tlvbuf is B6EF3320 [20:16:37]SAM_PROTO_ClearQueue [20:16:37]wFMCommunicate request_size=4 [20:16:37]MH_SAM_APDU [20:16:37]CAPDU: 80 09 00 00 [20:16:37]Write to MH i2c: E2 08 00 D8 0D 80 09 00 00 00 00 00 00 57 [20:16:37]Write i2c OK [20:16:37]MH_I2C_Read... [20:16:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:16:37]Read from MH i2c: E2 [20:16:37]MH_I2C_Read... [20:16:37]Read from MH i2c: E2 03 00 [20:16:37]MH_I2C_Read... [20:16:37]Read from MH i2c: E2 03 00 D8 0D 00 90 00 59 [20:16:37]RAPDU: 90 00 [20:16:37]wFMCommunicate OK [20:16:37]SAM_PROTO_ClearQueue done [20:16:37]KKMCreateOFDPacket [20:16:37]OFDProtocolAddRootSTLVToBuf [20:16:37]FM_MakeSignedData [20:16:37]FM_MakeSignedData [20:16:37]SAM_PROTO_SignData [20:16:37]wFMCommunicate request_size=4 [20:16:37]MH_SAM_APDU [20:16:37]CAPDU: 80 0D 01 02 [20:16:37]Write to MH i2c: E2 08 00 D9 0D 80 0D 01 02 00 00 00 00 5F [20:16:37]Write i2c OK [20:16:37]MH_I2C_Read... [20:16:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:16:37]Read from MH i2c: E2 [20:16:37]MH_I2C_Read... [20:16:37]Read from MH i2c: E2 03 00 [20:16:37]MH_I2C_Read... [20:16:37]Read from MH i2c: E2 03 00 D9 0D 00 90 00 5A [20:16:37]RAPDU: 90 00 [20:16:37]wFMCommunicate OK [20:16:37]wFMCommunicate request_size=255 [20:16:37]MH_SAM_APDU [20:16: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 86 29 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 26 BF BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 23 93 01 00 35 04 06 00 BD [20:16:37]Write to MH i2c: E2 02 01 DA 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 29 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 26 BF BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 23 93 01 00 35 04 06 00 BD 00 00 03 [20:16:37]Write i2c OK [20:16:37]MH_I2C_Read... [20:16:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:16:37]Read from MH i2c: E2 [20:16:37]MH_I2C_Read... [20:16:37]Read from MH i2c: E2 03 00 [20:16:37]MH_I2C_Read... [20:16:37]Read from MH i2c: E2 03 00 DA 0D 00 90 00 5B [20:16:37]RAPDU: 90 00 [20:16:37]wFMCommunicate OK [20:16:37]wFMCommunicate request_size=10 [20:16:37]MH_SAM_APDU [20:16:37]CAPDU: 80 0D 02 02 05 50 B4 85 60 C5 [20:16:37]Write to MH i2c: E2 0D 00 DB 0D 80 0D 02 02 05 00 50 B4 85 60 C5 00 00 1A [20:16:37]Write i2c OK [20:16:37]MH_I2C_Read... [20:16:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:16:38]Read from MH i2c: E2 [20:16:38]MH_I2C_Read... [20:16:38]Read from MH i2c: E2 03 00 [20:16:38]MH_I2C_Read... [20:16:38]Read from MH i2c: E2 03 00 DB 0D 00 90 00 5C [20:16:38]RAPDU: 90 00 [20:16:38]wFMCommunicate OK [20:16:38]wFMCommunicate request_size=4 [20:16:38]MH_SAM_APDU [20:16:38]CAPDU: 80 0D 03 02 [20:16:38]Write to MH i2c: E2 08 00 DC 0D 80 0D 03 02 00 00 00 00 64 [20:16:38]Write i2c OK [20:16:38]MH_I2C_Read... [20:16:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:16:38]Read from MH i2c: E2 [20:16:38]MH_I2C_Read... [20:16:38]Read from MH i2c: E2 0B 00 [20:16:38]MH_I2C_Read... [20:16:38]Read from MH i2c: E2 0B 00 DC 0D 00 ED 7F 40 AB 07 72 1B D8 90 00 28 [20:16:38]RAPDU: ED 7F 40 AB 07 72 1B D8 90 00 [20:16:38]wFMCommunicate OK [20:16:38]SAM_PROTO_SignData done [20:16:38]FM_MakeSignedData done [20:16:38]CreateOFDProtocolMessage [20:16:38]wFMCommunicate request_size=4 [20:16:38]MH_SAM_APDU [20:16:38]CAPDU: 80 11 00 00 [20:16:38]Write to MH i2c: E2 08 00 DD 0D 80 11 00 00 00 00 00 00 64 [20:16:38]Write i2c OK [20:16:38]MH_I2C_Read... [20:16:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:16:38]Read from MH i2c: E2 [20:16:38]MH_I2C_Read... [20:16:38]Read from MH i2c: E2 17 00 [20:16:38]MH_I2C_Read... [20:16:38]Read from MH i2c: E2 17 00 DD 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 B8 [20:16:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [20:16:38]wFMCommunicate OK [20:16:38]CreateOFDProtocolMessage done [20:16:38]OFDSenderStorePacket 103203 [20:16:38]StoreOFDPacket docnum=103203 [20:16:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 D2 32 07 01 3E 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 86 29 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 26 BF BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 23 93 01 00 35 04 06 00 BD 50 B4 85 60 C5 ED 7F 40 AB 07 72 1B D8 [20:16:38]CheckFolder [20:16:38]dirname=/storage/ofd_packets [20:16:38]CheckFolder done [20:16:38]ProducePacketName [20:16:38]name=ofd_packets/00103203 [20:16:38]NVStorageSaveData ofd_packets/00103203 [20:16:38]File name is /storage/ofd_packets/00103203 [20:16:38]Write 301 bytes [20:16:38]NVStorageSaveData done [20:16:38]OFDSenderStorePacket done [20:16:38]KKMCreateOFDPacket done [20:16:38]NVStorageSaveData kkm_last_timestamp [20:16:38]File name is /storage/kkm_last_timestamp [20:16:38]Write 4 bytes [20:16:38]NVStorageSaveData done [20:16:38]OFD Sender: Processing packet 103203 [packets to send 69, broken 68] [20:16:38]ProducePacketName [20:16:38]name=ofd_packets/00103203 [20:16:38]OFD Sender: To server: pG, [20:16:38]CommunicateWithHost lk.salyk.kg:30040 [20:16:38]ConnectInit lk.salyk.kg [20:16:38]ExternCall_PrintAddStr [20:16:38]wPrintStart [20:16:38]Write to MH i2c: 01 00 00 DE 0D EB [20:16:38]Write i2c OK [20:16:38]MH_I2C_Read... [20:16:38]Read from MH i2c: 01 [20:16:38]MH_I2C_Read... [20:16:38]Read from MH i2c: 01 07 00 [20:16:38]MH_I2C_Read... [20:16:38]Read from MH i2c: 01 07 00 DE 0D 00 00 00 00 00 FF 0F 00 [20:16:38]RasterBufferAndPrint [20:16:38]line Счет N : (1)160832 [20:16:38]line ИНН: 02508201610067 [20:16:38]line Контрольно-Кассовый Чек [20:16:38]line ПРОДАЖА [20:16:38]line ТРК (МРК, ГНК) : 3 [20:16:38]line Товар: 2710124130 [20:16:38]line Аи-92-К-5 [20:16:38]line 10.630 * 65.90 [20:16:38]line = 700.52 [20:16:38]line НДС 12% НСП 1% [20:16:38]line > о реализуемом товаре [20:16:38]line ОКРУГЛЕНИЕ: -0.52 [20:16:38]line ИТОГО: 700.00 [20:16:38]line Внесено: 700.00 [20:16:38]line СДАЧА: 0.00 [20:16:38]line НСП 1% : 6.20 [20:16:38]line НДС 12% : 74.39 [20:16:38]line Наличными: 700.00 [20:16:38]line Безнал.: 0.00 [20:16:38]line Место: АЗС № 38 "Партнер Нефть" [20:16:38]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [20:16:38]line СНО: Общий режим [20:16:38]line Чек 114 13.08.2024 20:16 [20:16:38]line Смена: 464 ФФД: 1.0 [20:16:38]line ЗНМ: 0300000126 [20:16:38]line РНМ: 0000000000092718 [20:16:38]line Версия ККМ: 001 [20:16:38]line ФМ: 0000000000875058 [20:16:38]line ФД: 103203 [20:16:38]line ФПД: 208154323673285 [20:16:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T201638&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103203&fm=208154323673285&tin=02508201610067®Number=0000000000092718&sum=70000 [20:16:38]Connected sock=11 [20:16:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 D2 32 07 01 3E 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 86 29 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 26 BF BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 23 93 01 00 35 04 06 00 BD 50 B4 85 60 C5 ED 7F 40 AB 07 72 1B D8 [20:16:38]written 0, free lines is 4095 [20:16:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 15 B4 47 00 D7 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 23 93 01 00 F4 03 04 00 98 65 BB 66 B6 04 01 00 00 10 E1 C3 23 AA B5 92 87 [20:16:38]CommunicateWithHost err = 0 [20:16:38]CheckOFDResponse [20:16:38]1017 (14) - 77093643461234 [20:16:38]1041 (16) - 0000000000875058 [20:16:38]1040 (4) - 103203 [20:16:38]1012 (4) - 13.08.2024 13:54 [20:16:38]1206 (1) - 0 [20:16:38]OFD Sender: Remove packet 103203 [20:16:38]ProducePacketName [20:16:38]name=ofd_packets/00103203 [20:16:38]NVStorageDeleteData [20:16:38]Write to MH i2c: 01 00 00 09 0E 17 [20:16:38]Write i2c OK [20:16:38]MH_I2C_Read... [20:16:38]Read from MH i2c: 01 [20:16:38]MH_I2C_Read... [20:16:38]Read from MH i2c: 01 07 00 [20:16:38]MH_I2C_Read... [20:16:38]Read from MH i2c: 01 07 00 09 0E 00 00 00 00 00 EE 0C 18 [20:16:38]RasterBufferAndPrint [20:16:38]line [20:16:38]line [20:16:38]line [20:16:38]line [20:16:38]line [20:16:38]written 0, free lines is 3316 [20:16:38]MH_Cut [20:16:38]Write to MH i2c: D1 01 00 10 0E 01 F0 [20:16:38]Write i2c OK [20:16:38]MH_I2C_Read... [20:16:38]Read from MH i2c: D1 [20:16:38]MH_I2C_Read... [20:16:38]Read from MH i2c: D1 01 00 [20:16:38]MH_I2C_Read... [20:16:38]Read from MH i2c: D1 01 00 10 0E 00 EF [20:16:38]Write to MH i2c: 01 00 00 11 0E 1F [20:16:38]Write i2c OK [20:16:38]MH_I2C_Read... [20:16:39]OFD Sender: No OFD packet to send [20:16:39]*** Cut start [20:16:39]*** Purtial cut [20:16:39]*** CUTSNS_PIN = 0 [20:16:39]*** Stage 1: CUTSNS_PIN = 1 [20:16:41]Read from MH i2c: 01 [20:16:41]MH_I2C_Read... [20:16:41]*** Stop cut motor [20:16:41]*** Cut end [20:16:41]Read from MH i2c: 01 07 00 [20:16:41]MH_I2C_Read... [20:16:41]Read from MH i2c: 01 07 00 11 0E 00 00 00 00 00 FF 0F 34 [20:16:41]process_action close_receipt done [20:16:41]requested_data is exist [20:16:41]produce_requested_data [20:16:41]requested_item fm.sn is exist - process it [20:16:41]wFMCommunicate request_size=4 [20:16:41]MH_SAM_APDU [20:16:41]CAPDU: 80 11 00 00 [20:16:41]Write to MH i2c: E2 08 00 12 0E 80 11 00 00 00 00 00 00 9A [20:16:41]Write i2c OK [20:16:41]MH_I2C_Read... [20:16:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:16:41]Read from MH i2c: E2 [20:16:41]MH_I2C_Read... [20:16:41]Read from MH i2c: E2 17 00 [20:16:41]MH_I2C_Read... [20:16:41]Read from MH i2c: E2 17 00 12 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 EE [20:16:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [20:16:41]wFMCommunicate OK [20:16:41]requested_item fd.num is exist - process it [20:16:41]SAM_PROTO_GetFieldsCounters [20:16:41]wFMCommunicate request_size=4 [20:16:41]MH_SAM_APDU [20:16:41]CAPDU: 80 13 00 00 [20:16:41]Write to MH i2c: E2 08 00 13 0E 80 13 00 00 00 00 00 00 9D [20:16:41]Write i2c OK [20:16:41]MH_I2C_Read... [20:16:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:16:41]Read from MH i2c: E2 [20:16:41]MH_I2C_Read... [20:16:41]Read from MH i2c: E2 62 00 [20:16:41]MH_I2C_Read... [20:16:41]Read from MH i2c: E2 62 00 13 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 23 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [20:16:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 23 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:16:41]wFMCommunicate OK [20:16:41]SAM_PROTO_GetFieldsCounters done [20:16:41]requested_item shift.num is exist - process it [20:16:41]requested_item shift.opened is exist - process it [20:16:41]req_shift_opened [20:16:41]FM_GetShiftState [20:16:41]SAM_PROTO_GetShiftState [20:16:41]wFMCommunicate request_size=4 [20:16:41]MH_SAM_APDU [20:16:41]CAPDU: 80 13 01 00 [20:16:41]Write to MH i2c: E2 08 00 14 0E 80 13 01 00 00 00 00 00 9F [20:16:41]Write i2c OK [20:16:41]MH_I2C_Read... [20:16:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:16:41]Read from MH i2c: E2 [20:16:41]MH_I2C_Read... [20:16:41]Read from MH i2c: E2 0E 00 [20:16:41]MH_I2C_Read... [20:16:41]Read from MH i2c: E2 0E 00 14 0E 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 BD [20:16:41]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [20:16:41]wFMCommunicate OK [20:16:41]SAM_PROTO_GetShiftState done [20:16:41]FM_GetShiftState done [20:16:41]req_shift_opened done [20:16:41]requested_item shift.open_date is exist - process it [20:16:41]req_shift_open_date [20:16:41]req_shift_open_date done [20:16:41]produce_requested_data done [20:16:41]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103203,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [20:16:41]process_action_free close_receipt [20:16:41]json_value_free [20:16:41]json_value_free done [20:16:41]process_json_proto returns [20:16:41]Send response to host [20:16:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103203,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [20:16:41]free response buf [20:16:41]execute_script done [20:16:41]execute_script returns [20:16:41]free content buf [20:16:41]Sock 7.Close socket [20:16:41]Sock 7.Thread stoped [20:16:44]OFD Sender: No OFD packet to send [20:16:49]OFD Sender: No OFD packet to send [20:16:54]OFD Sender: No OFD packet to send [20:16:59]OFD Sender: No OFD packet to send [20:17:04]OFD Sender: No OFD packet to send [20:17:09]OFD Sender: No OFD packet to send [20:17:14]OFD Sender: No OFD packet to send [20:17:19]OFD Sender: No OFD packet to send [20:17:24]OFD Sender: No OFD packet to send [20:17:29]OFD Sender: No OFD packet to send [20:17:34]OFD Sender: No OFD packet to send [20:17:39]OFD Sender: No OFD packet to send [20:17:44]OFD Sender: No OFD packet to send [20:17:49]OFD Sender: No OFD packet to send [20:17:54]OFD Sender: No OFD packet to send [20:17:59]OFD Sender: No OFD packet to send [20:18:04]OFD Sender: No OFD packet to send [20:18:09]OFD Sender: No OFD packet to send [20:18:14]OFD Sender: No OFD packet to send [20:18:19]OFD Sender: No OFD packet to send [20:18:24]OFD Sender: No OFD packet to send [20:18:29]OFD Sender: No OFD packet to send [20:18:34]OFD Sender: No OFD packet to send [20:18:39]OFD Sender: No OFD packet to send [20:18:44]OFD Sender: No OFD packet to send [20:18:49]OFD Sender: No OFD packet to send [20:18:54]OFD Sender: No OFD packet to send [20:18:59]OFD Sender: No OFD packet to send [20:19:04]OFD Sender: No OFD packet to send [20:19:09]OFD Sender: No OFD packet to send [20:19:14]OFD Sender: No OFD packet to send [20:19:19]OFD Sender: No OFD packet to send [20:19:24]OFD Sender: No OFD packet to send [20:19:29]OFD Sender: No OFD packet to send [20:19:34]OFD Sender: No OFD packet to send [20:19:39]OFD Sender: No OFD packet to send [20:19:44]OFD Sender: No OFD packet to send [20:19:49]OFD Sender: No OFD packet to send [20:19:54]OFD Sender: No OFD packet to send [20:19:59]OFD Sender: No OFD packet to send [20:20:04]OFD Sender: No OFD packet to send [20:20:09]OFD Sender: No OFD packet to send [20:20:14]OFD Sender: No OFD packet to send [20:20:19]OFD Sender: No OFD packet to send [20:20:24]OFD Sender: No OFD packet to send [20:20:29]OFD Sender: No OFD packet to send [20:20:34]OFD Sender: No OFD packet to send [20:20:39]OFD Sender: No OFD packet to send [20:20:44]OFD Sender: No OFD packet to send [20:20:49]OFD Sender: No OFD packet to send [20:20:54]OFD Sender: No OFD packet to send [20:20:59]OFD Sender: No OFD packet to send [20:21:04]OFD Sender: No OFD packet to send [20:21:09]OFD Sender: No OFD packet to send [20:21:14]OFD Sender: No OFD packet to send [20:21:19]OFD Sender: No OFD packet to send [20:21:24]OFD Sender: No OFD packet to send [20:21:29]OFD Sender: No OFD packet to send [20:21:32]accept exits with 9 [20:21:32]New connection [20:21:32]New thread 3067116900 created [20:21:32]Thread 3067260260 joined [20:21:32]Waiting for new connection... [20:21:32] Sock 9.Parse request [20:21:32]Sock 9.Check first char [20:21:32]Sock 9.First char is OK [20:21:32]request: POST /json_proto HTTP/1.0 [20:21:32]Method: POST [20:21:32]URL: /json_proto [20:21:32]Method is POST - this is cgi request [20:21:32]url: /json_proto [20:21:32]query_string will be loaded in cgi processing [20:21:32]execute_cgi json_proto POST (null) [20:21:32]execute_cgi path=json_proto method=POST [20:21:32]POST find Content-Length [20:21:32]Host: 172.17.58.3:8080 [20:21:32]Content-Length: 678 [20:21:32]Content-Type: application/json [20:21:32] [20:21:32]POST finish read [20:21:32]Found Content-Length = 678 [20:21:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160833", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 13.560, "sum" : 1000.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:21:32]execute_script... [20:21: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)160833", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 13.560, "sum" : 1000.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:21:32]POST & json_proto [20:21:32]process_json_proto [20:21:32]json parsed OK: [20:21:32]protocol is kg_v1.0 [20:21:32]action value=close_receipt [20:21:32]process_action close_receipt [20:21:32]cmd_close_receipt [20:21:32]MH_GetDate [20:21:32]Write to MH i2c: F0 00 00 15 0E 12 [20:21:32]Write i2c OK [20:21:32]MH_I2C_Read... [20:21:32]Read from MH i2c: F0 [20:21:32]MH_I2C_Read... [20:21:32]Read from MH i2c: F0 09 00 [20:21:32]MH_I2C_Read... [20:21:32]Read from MH i2c: F0 09 00 15 0E 00 4E C0 BB 66 DC E4 6D 64 DB [20:21:32]GetLastDocTimeStamp 1723580198 [20:21:32]current date 1723580494 [20:21:32]FM_GetShiftState [20:21:32]SAM_PROTO_GetShiftState [20:21:32]wFMCommunicate request_size=4 [20:21:32]MH_SAM_APDU [20:21:32]CAPDU: 80 13 01 00 [20:21:32]Write to MH i2c: E2 08 00 16 0E 80 13 01 00 00 00 00 00 A1 [20:21:32]Write i2c OK [20:21:32]MH_I2C_Read... [20:21:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:32]Read from MH i2c: E2 [20:21:32]MH_I2C_Read... [20:21:32]Read from MH i2c: E2 0E 00 [20:21:32]MH_I2C_Read... [20:21:32]Read from MH i2c: E2 0E 00 16 0E 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 BF [20:21:32]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [20:21:32]wFMCommunicate OK [20:21:32]SAM_PROTO_GetShiftState done [20:21:32]FM_GetShiftState done [20:21:32]opened in 1723506770 [20:21:32]opened+sec_in_day 1723593170 [20:21:32]quantity*price = 100072 [20:21:32]sum+1 = 100074 [20:21:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.73 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.86 НДС 12% : 106.27 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 115 13.08.2024 20:21 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103204 ФПД: 122570481312722 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T202134&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103204&fm=122570481312722&tin=02508201610067®Number=0000000000092718&sum=100000 [20:21:34]StoreToDocumentArchive [20:21:34]shift 464 fd 103204 [20:21:34]save to /storage/0464/doc_00103204 [20:21:34]save last doc name /storage/0464/doc_00103204 to /storage/kkm_last_doc_name [20:21:34]save OK [20:21:34]Clear old archive folders... [20:21:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:21:34]tlvbuf is 0020A210 [20:21:34]SAM_PROTO_ClearQueue [20:21:34]wFMCommunicate request_size=4 [20:21:34]MH_SAM_APDU [20:21:34]CAPDU: 80 09 00 00 [20:21:34]Write to MH i2c: E2 08 00 23 0E 80 09 00 00 00 00 00 00 A3 [20:21:34]Write i2c OK [20:21:34]MH_I2C_Read... [20:21:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:21:34]Read from MH i2c: E2 [20:21:34]MH_I2C_Read... [20:21:34]Read from MH i2c: E2 03 00 [20:21:34]MH_I2C_Read... [20:21:34]Read from MH i2c: E2 03 00 23 0E 00 90 00 A5 [20:21:34]RAPDU: 90 00 [20:21:34]wFMCommunicate OK [20:21:34]SAM_PROTO_ClearQueue done [20:21:34]KKMCreateOFDPacket [20:21:34]OFDProtocolAddRootSTLVToBuf [20:21:34]FM_MakeSignedData [20:21:34]FM_MakeSignedData [20:21:34]SAM_PROTO_SignData [20:21:34]wFMCommunicate request_size=4 [20:21:34]MH_SAM_APDU [20:21:34]CAPDU: 80 0D 01 02 [20:21:34]Write to MH i2c: E2 08 00 24 0E 80 0D 01 02 00 00 00 00 AB [20:21:34]Write i2c OK [20:21:34]MH_I2C_Read... [20:21:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:21:34]Read from MH i2c: E2 [20:21:34]MH_I2C_Read... [20:21:34]Read from MH i2c: E2 03 00 [20:21:34]MH_I2C_Read... [20:21:34]Read from MH i2c: E2 03 00 24 0E 00 90 00 A6 [20:21:34]RAPDU: 90 00 [20:21:34]wFMCommunicate OK [20:21:34]wFMCommunicate request_size=255 [20:21:34]MH_SAM_APDU [20:21:34]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 F8 34 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 E9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 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 4E C0 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 24 93 01 00 35 04 06 00 6F 7A 29 FF [20:21:34]Write to MH i2c: E2 02 01 25 0E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 34 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 E9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 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 4E C0 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 24 93 01 00 35 04 06 00 6F 7A 29 FF 00 00 46 [20:21:34]Write i2c OK [20:21:34]MH_I2C_Read... [20:21:34]OFD Sender: No OFD packet to send [20:21:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:21:34]Read from MH i2c: E2 [20:21:34]MH_I2C_Read... [20:21:34]Read from MH i2c: E2 03 00 [20:21:34]MH_I2C_Read... [20:21:34]Read from MH i2c: E2 03 00 25 0E 00 90 00 A7 [20:21:34]RAPDU: 90 00 [20:21:34]wFMCommunicate OK [20:21:34]wFMCommunicate request_size=7 [20:21:34]MH_SAM_APDU [20:21:34]CAPDU: 80 0D 02 02 02 A3 D2 [20:21:34]Write to MH i2c: E2 0A 00 26 0E 80 0D 02 02 02 00 A3 D2 00 00 27 [20:21:34]Write i2c OK [20:21:34]MH_I2C_Read... [20:21:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:21:34]Read from MH i2c: E2 [20:21:34]MH_I2C_Read... [20:21:34]Read from MH i2c: E2 03 00 [20:21:34]MH_I2C_Read... [20:21:34]Read from MH i2c: E2 03 00 26 0E 00 90 00 A8 [20:21:34]RAPDU: 90 00 [20:21:34]wFMCommunicate OK [20:21:34]wFMCommunicate request_size=4 [20:21:34]MH_SAM_APDU [20:21:34]CAPDU: 80 0D 03 02 [20:21:34]Write to MH i2c: E2 08 00 27 0E 80 0D 03 02 00 00 00 00 B0 [20:21:34]Write i2c OK [20:21:34]MH_I2C_Read... [20:21:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:21:34]Read from MH i2c: E2 [20:21:34]MH_I2C_Read... [20:21:34]Read from MH i2c: E2 0B 00 [20:21:34]MH_I2C_Read... [20:21:34]Read from MH i2c: E2 0B 00 27 0E 00 99 D7 DB E2 F7 27 BC 41 90 00 F9 [20:21:34]RAPDU: 99 D7 DB E2 F7 27 BC 41 90 00 [20:21:34]wFMCommunicate OK [20:21:34]SAM_PROTO_SignData done [20:21:34]FM_MakeSignedData done [20:21:34]CreateOFDProtocolMessage [20:21:34]wFMCommunicate request_size=4 [20:21:34]MH_SAM_APDU [20:21:34]CAPDU: 80 11 00 00 [20:21:34]Write to MH i2c: E2 08 00 28 0E 80 11 00 00 00 00 00 00 B0 [20:21:34]Write i2c OK [20:21:34]MH_I2C_Read... [20:21:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:34]Read from MH i2c: E2 [20:21:34]MH_I2C_Read... [20:21:34]Read from MH i2c: E2 17 00 [20:21:34]MH_I2C_Read... [20:21:34]Read from MH i2c: E2 17 00 28 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 04 [20:21:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [20:21:34]wFMCommunicate OK [20:21:34]CreateOFDProtocolMessage done [20:21:34]OFDSenderStorePacket 103204 [20:21:34]StoreOFDPacket docnum=103204 [20:21:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 BD 6B 04 01 DD F3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 34 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 E9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 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 4E C0 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 24 93 01 00 35 04 06 00 6F 7A 29 FF A3 D2 99 D7 DB E2 F7 27 BC 41 [20:21:34]CheckFolder [20:21:34]dirname=/storage/ofd_packets [20:21:34]CheckFolder done [20:21:34]ProducePacketName [20:21:34]name=ofd_packets/00103204 [20:21:34]NVStorageSaveData ofd_packets/00103204 [20:21:34]File name is /storage/ofd_packets/00103204 [20:21:34]Write 298 bytes [20:21:34]NVStorageSaveData done [20:21:34]OFDSenderStorePacket done [20:21:34]KKMCreateOFDPacket done [20:21:34]NVStorageSaveData kkm_last_timestamp [20:21:34]File name is /storage/kkm_last_timestamp [20:21:34]Write 4 bytes [20:21:34]NVStorageSaveData done [20:21:34]ExternCall_PrintAddStr [20:21:34]wPrintStart [20:21:34]Write to MH i2c: 01 00 00 29 0E 37 [20:21:34]Write i2c OK [20:21:34]MH_I2C_Read... [20:21:34]Read from MH i2c: 01 [20:21:34]MH_I2C_Read... [20:21:34]Read from MH i2c: 01 07 00 [20:21:34]MH_I2C_Read... [20:21:34]Read from MH i2c: 01 07 00 29 0E 00 00 00 00 00 FF 0F 4C [20:21:34]RasterBufferAndPrint [20:21:34]line Счет N : (1)160833 [20:21:34]line ИНН: 02508201610067 [20:21:34]line Контрольно-Кассовый Чек [20:21:34]line ПРОДАЖА [20:21:34]line ТРК (МРК, ГНК) : 5 [20:21:34]line Товар: 2710194210 [20:21:34]line ДТ-К-5 [20:21:34]line 13.560 * 73.80 [20:21:34]line = 1000.73 [20:21:34]line НДС 12% НСП 1% [20:21:34]line > о реализуемом товаре [20:21:34]line ОКРУГЛЕНИЕ: -0.73 [20:21:34]line ИТОГО: 1000.00 [20:21:34]line Внесено: 1000.00 [20:21:34]line СДАЧА: 0.00 [20:21:34]line НСП 1% : 8.86 [20:21:34]line НДС 12% : 106.27 [20:21:34]line Наличными: 1000.00 [20:21:34]line Безнал.: 0.00 [20:21:34]line Место: АЗС № 38 "Партнер Нефть" [20:21:34]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [20:21:34]line СНО: Общий режим [20:21:34]line Чек 115 13.08.2024 20:21 [20:21:34]line Смена: 464 ФФД: 1.0 [20:21:34]line ЗНМ: 0300000126 [20:21:34]line РНМ: 0000000000092718 [20:21:34]line Версия ККМ: 001 [20:21:34]line ФМ: 0000000000875058 [20:21:34]line ФД: 103204 [20:21:34]line ФПД: 122570481312722 [20:21:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T202134&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103204&fm=122570481312722&tin=02508201610067®Number=0000000000092718&sum=100000 [20:21:34]OFD Sender: Processing packet 103204 [packets to send 69, broken 68] [20:21:34]ProducePacketName [20:21:34]name=ofd_packets/00103204 [20:21:34]OFD Sender: To server: pG, [20:21:34]CommunicateWithHost lk.salyk.kg:30040 [20:21:34]ConnectInit lk.salyk.kg [20:21:34]written 0, free lines is 4095 [20:21:35]Connected sock=10 [20:21:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 BD 6B 04 01 DD F3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 34 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 E9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 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 4E C0 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 24 93 01 00 35 04 06 00 6F 7A 29 FF A3 D2 99 D7 DB E2 F7 27 BC 41 [20:21:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 28 37 47 00 E9 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 24 93 01 00 F4 03 04 00 C0 66 BB 66 B6 04 01 00 00 0D A4 EC F1 C0 37 86 01 [20:21:35]CommunicateWithHost err = 0 [20:21:35]CheckOFDResponse [20:21:35]1017 (14) - 77093643461234 [20:21:35]1041 (16) - 0000000000875058 [20:21:35]1040 (4) - 103204 [20:21:35]1012 (4) - 13.08.2024 13:59 [20:21:35]1206 (1) - 0 [20:21:35]OFD Sender: Remove packet 103204 [20:21:35]ProducePacketName [20:21:35]name=ofd_packets/00103204 [20:21:35]NVStorageDeleteData [20:21:35]Write to MH i2c: 01 00 00 54 0E 62 [20:21:35]Write i2c OK [20:21:35]MH_I2C_Read... [20:21:35]Read from MH i2c: 01 [20:21:35]MH_I2C_Read... [20:21:35]Read from MH i2c: 01 07 00 [20:21:35]MH_I2C_Read... [20:21:35]Read from MH i2c: 01 07 00 54 0E 00 00 00 00 00 F2 0C 67 [20:21:35]RasterBufferAndPrint [20:21:35]line [20:21:35]line [20:21:35]line [20:21:35]line [20:21:35]line [20:21:35]written 0, free lines is 3322 [20:21:35]MH_Cut [20:21:35]Write to MH i2c: D1 01 00 5B 0E 01 3B [20:21:35]Write i2c OK [20:21:35]MH_I2C_Read... [20:21:35]Read from MH i2c: D1 [20:21:35]MH_I2C_Read... [20:21:35]Read from MH i2c: D1 01 00 [20:21:35]MH_I2C_Read... [20:21:35]Read from MH i2c: D1 01 00 5B 0E 00 3A [20:21:35]Write to MH i2c: 01 00 00 5C 0E 6A [20:21:35]Write i2c OK [20:21:35]MH_I2C_Read... [20:21:35]OFD Sender: No OFD packet to send [20:21:36]*** Cut start [20:21:36]*** Purtial cut [20:21:36]*** Stage 1: CUTSNS_PIN = 1 [20:21:36]Read from MH i2c: 01 [20:21:36]MH_I2C_Read... [20:21:36]*** Stop cut motor [20:21:36]*** Cut end [20:21:36]Read from MH i2c: 01 07 00 [20:21:36]MH_I2C_Read... [20:21:36]Read from MH i2c: 01 07 00 5C 0E 00 00 00 00 00 FF 0F 7F [20:21:36]process_action close_receipt done [20:21:36]requested_data is exist [20:21:36]produce_requested_data [20:21:36]requested_item fm.sn is exist - process it [20:21:36]wFMCommunicate request_size=4 [20:21:36]MH_SAM_APDU [20:21:36]CAPDU: 80 11 00 00 [20:21:36]Write to MH i2c: E2 08 00 5D 0E 80 11 00 00 00 00 00 00 E5 [20:21:36]Write i2c OK [20:21:36]MH_I2C_Read... [20:21:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:36]Read from MH i2c: E2 [20:21:36]MH_I2C_Read... [20:21:36]Read from MH i2c: E2 17 00 [20:21:36]MH_I2C_Read... [20:21:36]Read from MH i2c: E2 17 00 5D 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 39 [20:21:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [20:21:36]wFMCommunicate OK [20:21:36]requested_item fd.num is exist - process it [20:21:36]SAM_PROTO_GetFieldsCounters [20:21:36]wFMCommunicate request_size=4 [20:21:36]MH_SAM_APDU [20:21:36]CAPDU: 80 13 00 00 [20:21:36]Write to MH i2c: E2 08 00 5E 0E 80 13 00 00 00 00 00 00 E8 [20:21:36]Write i2c OK [20:21:36]MH_I2C_Read... [20:21:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:21:36]Read from MH i2c: E2 [20:21:36]MH_I2C_Read... [20:21:36]Read from MH i2c: E2 62 00 [20:21:36]MH_I2C_Read... [20:21:36]Read from MH i2c: E2 62 00 5E 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 24 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [20:21:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 24 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:21:36]wFMCommunicate OK [20:21:36]SAM_PROTO_GetFieldsCounters done [20:21:36]requested_item shift.num is exist - process it [20:21:36]requested_item shift.opened is exist - process it [20:21:36]req_shift_opened [20:21:36]FM_GetShiftState [20:21:36]SAM_PROTO_GetShiftState [20:21:36]wFMCommunicate request_size=4 [20:21:36]MH_SAM_APDU [20:21:36]CAPDU: 80 13 01 00 [20:21:36]Write to MH i2c: E2 08 00 5F 0E 80 13 01 00 00 00 00 00 EA [20:21:36]Write i2c OK [20:21:36]MH_I2C_Read... [20:21:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:36]Read from MH i2c: E2 [20:21:36]MH_I2C_Read... [20:21:36]Read from MH i2c: E2 0E 00 [20:21:36]MH_I2C_Read... [20:21:36]Read from MH i2c: E2 0E 00 5F 0E 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 08 [20:21:36]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [20:21:36]wFMCommunicate OK [20:21:36]SAM_PROTO_GetShiftState done [20:21:36]FM_GetShiftState done [20:21:36]req_shift_opened done [20:21:36]requested_item shift.open_date is exist - process it [20:21:36]req_shift_open_date [20:21:36]req_shift_open_date done [20:21:36]produce_requested_data done [20:21:36]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103204,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [20:21:36]process_action_free close_receipt [20:21:36]json_value_free [20:21:36]json_value_free done [20:21:36]process_json_proto returns [20:21:36]Send response to host [20:21:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103204,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [20:21:36]free response buf [20:21:36]execute_script done [20:21:36]execute_script returns [20:21:36]free content buf [20:21:36]Sock 9.Close socket [20:21:36]Sock 9.Thread stoped [20:21:40]OFD Sender: No OFD packet to send [20:21:45]OFD Sender: No OFD packet to send [20:21:50]OFD Sender: No OFD packet to send [20:21:55]OFD Sender: No OFD packet to send [20:22:00]OFD Sender: No OFD packet to send [20:22:05]OFD Sender: No OFD packet to send [20:22:10]OFD Sender: No OFD packet to send [20:22:15]OFD Sender: No OFD packet to send [20:22:20]OFD Sender: No OFD packet to send [20:22:25]OFD Sender: No OFD packet to send [20:22:30]OFD Sender: No OFD packet to send [20:22:35]OFD Sender: No OFD packet to send [20:22:40]OFD Sender: No OFD packet to send [20:22:45]OFD Sender: No OFD packet to send [20:22:50]OFD Sender: No OFD packet to send [20:22:55]OFD Sender: No OFD packet to send [20:23:00]OFD Sender: No OFD packet to send [20:23:05]OFD Sender: No OFD packet to send [20:23:10]OFD Sender: No OFD packet to send [20:23:15]OFD Sender: No OFD packet to send [20:23:20]OFD Sender: No OFD packet to send [20:23:25]OFD Sender: No OFD packet to send [20:23:30]OFD Sender: No OFD packet to send [20:23:35]OFD Sender: No OFD packet to send [20:23:40]OFD Sender: No OFD packet to send [20:23:45]OFD Sender: No OFD packet to send [20:23:50]OFD Sender: No OFD packet to send [20:23:55]OFD Sender: No OFD packet to send [20:24:00]OFD Sender: No OFD packet to send [20:24:05]OFD Sender: No OFD packet to send [20:24:10]OFD Sender: No OFD packet to send [20:24:15]OFD Sender: No OFD packet to send [20:24:20]OFD Sender: No OFD packet to send [20:24:25]OFD Sender: No OFD packet to send [20:24:30]OFD Sender: No OFD packet to send [20:24:35]OFD Sender: No OFD packet to send [20:24:40]OFD Sender: No OFD packet to send [20:24:45]OFD Sender: No OFD packet to send [20:24:50]OFD Sender: No OFD packet to send [20:24:55]OFD Sender: No OFD packet to send [20:25:00]OFD Sender: No OFD packet to send [20:25:05]OFD Sender: No OFD packet to send [20:25:10]OFD Sender: No OFD packet to send [20:25:15]OFD Sender: No OFD packet to send [20:25:20]OFD Sender: No OFD packet to send [20:25:25]OFD Sender: No OFD packet to send [20:25:30]OFD Sender: No OFD packet to send [20:25:35]OFD Sender: No OFD packet to send [20:25:40]OFD Sender: No OFD packet to send [20:25:45]OFD Sender: No OFD packet to send [20:25:50]OFD Sender: No OFD packet to send [20:25:56]OFD Sender: No OFD packet to send [20:26:01]OFD Sender: No OFD packet to send [20:26:06]OFD Sender: No OFD packet to send [20:26:11]OFD Sender: No OFD packet to send [20:26:16]OFD Sender: No OFD packet to send [20:26:21]OFD Sender: No OFD packet to send [20:26:26]OFD Sender: No OFD packet to send [20:26:31]OFD Sender: No OFD packet to send [20:26:36]OFD Sender: No OFD packet to send [20:26:41]OFD Sender: No OFD packet to send [20:26:46]OFD Sender: No OFD packet to send [20:26:51]OFD Sender: No OFD packet to send [20:26:56]OFD Sender: No OFD packet to send [20:27:01]OFD Sender: No OFD packet to send [20:27:06]OFD Sender: No OFD packet to send [20:27:11]OFD Sender: No OFD packet to send [20:27:16]OFD Sender: No OFD packet to send [20:27:21]OFD Sender: No OFD packet to send [20:27:26]OFD Sender: No OFD packet to send [20:27:31]OFD Sender: No OFD packet to send [20:27:36]OFD Sender: No OFD packet to send [20:27:41]OFD Sender: No OFD packet to send [20:27:46]OFD Sender: No OFD packet to send [20:27:51]OFD Sender: No OFD packet to send [20:27:56]OFD Sender: No OFD packet to send [20:28:01]OFD Sender: No OFD packet to send [20:28:06]OFD Sender: No OFD packet to send [20:28:11]OFD Sender: No OFD packet to send [20:28:16]OFD Sender: No OFD packet to send [20:28:21]OFD Sender: No OFD packet to send [20:28:26]OFD Sender: No OFD packet to send [20:28:31]OFD Sender: No OFD packet to send [20:28:36]OFD Sender: No OFD packet to send [20:28:41]OFD Sender: No OFD packet to send [20:28:46]OFD Sender: No OFD packet to send [20:28:51]OFD Sender: No OFD packet to send [20:28:56]OFD Sender: No OFD packet to send [20:29:01]OFD Sender: No OFD packet to send [20:29:06]OFD Sender: No OFD packet to send [20:29:06]accept exits with 7 [20:29:06]New connection [20:29:06]New thread 3067260260 created [20:29:06]Thread 3067116900 joined [20:29:06]Waiting for new connection... [20:29:06] Sock 7.Parse request [20:29:06]Sock 7.Check first char [20:29:06]Sock 7.First char is OK [20:29:06]request: POST /json_proto HTTP/1.0 [20:29:06]Method: POST [20:29:06]URL: /json_proto [20:29:06]Method is POST - this is cgi request [20:29:06]url: /json_proto [20:29:06]query_string will be loaded in cgi processing [20:29:06]execute_cgi json_proto POST (null) [20:29:06]execute_cgi path=json_proto method=POST [20:29:06]POST find Content-Length [20:29:06]Host: 172.17.58.3:8080 [20:29:06]Content-Length: 679 [20:29:06]Content-Type: application/json [20:29:06] [20:29:06]POST finish read [20:29:06]Found Content-Length = 679 [20:29:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160835", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 27.110, "sum" : 2000.72, "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" ] } } [20:29:06]execute_script... [20:29: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)160835", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 27.110, "sum" : 2000.72, "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" ] } } [20:29:06]POST & json_proto [20:29:06]process_json_proto [20:29:06]json parsed OK: [20:29:06]protocol is kg_v1.0 [20:29:06]action value=close_receipt [20:29:06]process_action close_receipt [20:29:06]cmd_close_receipt [20:29:06]MH_GetDate [20:29:06]Write to MH i2c: F0 00 00 60 0E 5D [20:29:06]Write i2c OK [20:29:06]MH_I2C_Read... [20:29:06]Read from MH i2c: F0 [20:29:06]MH_I2C_Read... [20:29:06]Read from MH i2c: F0 09 00 [20:29:06]MH_I2C_Read... [20:29:06]Read from MH i2c: F0 09 00 60 0E 00 13 C2 BB 66 DC E4 6D 64 ED [20:29:06]GetLastDocTimeStamp 1723580494 [20:29:06]current date 1723580947 [20:29:06]FM_GetShiftState [20:29:06]SAM_PROTO_GetShiftState [20:29:06]wFMCommunicate request_size=4 [20:29:06]MH_SAM_APDU [20:29:06]CAPDU: 80 13 01 00 [20:29:06]Write to MH i2c: E2 08 00 61 0E 80 13 01 00 00 00 00 00 EC [20:29:06]Write i2c OK [20:29:06]MH_I2C_Read... [20:29:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:29:06]Read from MH i2c: E2 [20:29:06]MH_I2C_Read... [20:29:06]Read from MH i2c: E2 0E 00 [20:29:06]MH_I2C_Read... [20:29:06]Read from MH i2c: E2 0E 00 61 0E 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 0A [20:29:06]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [20:29:06]wFMCommunicate OK [20:29:06]SAM_PROTO_GetShiftState done [20:29:06]FM_GetShiftState done [20:29:06]opened in 1723506770 [20:29:06]opened+sec_in_day 1723593170 [20:29:06]quantity*price = 200071 [20:29:06]sum+1 = 200073 [20:29:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.72 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.47 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 116 13.08.2024 20:29 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103205 ФПД: 211406680963607 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T202907&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103205&fm=211406680963607&tin=02508201610067®Number=0000000000092718&sum=200000 [20:29:07]StoreToDocumentArchive [20:29:07]shift 464 fd 103205 [20:29:07]save to /storage/0464/doc_00103205 [20:29:07]save last doc name /storage/0464/doc_00103205 to /storage/kkm_last_doc_name [20:29:07]save OK [20:29:07]Clear old archive folders... [20:29:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:29:07]tlvbuf is B6F25350 [20:29:07]SAM_PROTO_ClearQueue [20:29:07]wFMCommunicate request_size=4 [20:29:07]MH_SAM_APDU [20:29:07]CAPDU: 80 09 00 00 [20:29:07]Write to MH i2c: E2 08 00 6E 0E 80 09 00 00 00 00 00 00 EE [20:29:07]Write i2c OK [20:29:07]MH_I2C_Read... [20:29:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:29:07]Read from MH i2c: E2 [20:29:07]MH_I2C_Read... [20:29:07]Read from MH i2c: E2 03 00 [20:29:07]MH_I2C_Read... [20:29:07]Read from MH i2c: E2 03 00 6E 0E 00 90 00 F0 [20:29:07]RAPDU: 90 00 [20:29:07]wFMCommunicate OK [20:29:07]SAM_PROTO_ClearQueue done [20:29:07]KKMCreateOFDPacket [20:29:07]OFDProtocolAddRootSTLVToBuf [20:29:07]FM_MakeSignedData [20:29:07]FM_MakeSignedData [20:29:07]SAM_PROTO_SignData [20:29:07]wFMCommunicate request_size=4 [20:29:07]MH_SAM_APDU [20:29:07]CAPDU: 80 0D 01 02 [20:29:07]Write to MH i2c: E2 08 00 6F 0E 80 0D 01 02 00 00 00 00 F6 [20:29:07]Write i2c OK [20:29:07]MH_I2C_Read... [20:29:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:29:07]Read from MH i2c: E2 [20:29:07]MH_I2C_Read... [20:29:07]Read from MH i2c: E2 03 00 [20:29:07]MH_I2C_Read... [20:29:07]Read from MH i2c: E2 03 00 6F 0E 00 90 00 F1 [20:29:07]RAPDU: 90 00 [20:29:07]wFMCommunicate OK [20:29:07]wFMCommunicate request_size=255 [20:29:07]MH_SAM_APDU [20:29:07]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 69 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 88 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 FF 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 74 00 00 00 F4 03 04 00 13 C2 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 25 93 01 00 35 04 06 00 C0 45 F4 1F [20:29:07]Write to MH i2c: E2 02 01 70 0E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 69 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 88 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 FF 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 74 00 00 00 F4 03 04 00 13 C2 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 25 93 01 00 35 04 06 00 C0 45 F4 1F 00 00 1A [20:29:07]Write i2c OK [20:29:07]MH_I2C_Read... [20:29:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:29:07]Read from MH i2c: E2 [20:29:07]MH_I2C_Read... [20:29:07]Read from MH i2c: E2 03 00 [20:29:07]MH_I2C_Read... [20:29:07]Read from MH i2c: E2 03 00 70 0E 00 90 00 F2 [20:29:07]RAPDU: 90 00 [20:29:07]wFMCommunicate OK [20:29:07]wFMCommunicate request_size=7 [20:29:07]MH_SAM_APDU [20:29:07]CAPDU: 80 0D 02 02 02 3A 17 [20:29:07]Write to MH i2c: E2 0A 00 71 0E 80 0D 02 02 02 00 3A 17 00 00 4E [20:29:07]Write i2c OK [20:29:07]MH_I2C_Read... [20:29:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:29:07]Read from MH i2c: E2 [20:29:07]MH_I2C_Read... [20:29:07]Read from MH i2c: E2 03 00 [20:29:07]MH_I2C_Read... [20:29:07]Read from MH i2c: E2 03 00 71 0E 00 90 00 F3 [20:29:07]RAPDU: 90 00 [20:29:07]wFMCommunicate OK [20:29:07]wFMCommunicate request_size=4 [20:29:07]MH_SAM_APDU [20:29:07]CAPDU: 80 0D 03 02 [20:29:07]Write to MH i2c: E2 08 00 72 0E 80 0D 03 02 00 00 00 00 FB [20:29:07]Write i2c OK [20:29:07]MH_I2C_Read... [20:29:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:29:07]Read from MH i2c: E2 [20:29:07]MH_I2C_Read... [20:29:07]Read from MH i2c: E2 0B 00 [20:29:07]MH_I2C_Read... [20:29:07]Read from MH i2c: E2 0B 00 72 0E 00 F1 F5 93 66 EB 2F 62 2D 90 00 84 [20:29:07]RAPDU: F1 F5 93 66 EB 2F 62 2D 90 00 [20:29:07]wFMCommunicate OK [20:29:07]SAM_PROTO_SignData done [20:29:07]FM_MakeSignedData done [20:29:07]CreateOFDProtocolMessage [20:29:07]wFMCommunicate request_size=4 [20:29:07]MH_SAM_APDU [20:29:07]CAPDU: 80 11 00 00 [20:29:07]Write to MH i2c: E2 08 00 73 0E 80 11 00 00 00 00 00 00 FB [20:29:07]Write i2c OK [20:29:07]MH_I2C_Read... [20:29:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:29:07]Read from MH i2c: E2 [20:29:07]MH_I2C_Read... [20:29:07]Read from MH i2c: E2 17 00 [20:29:07]MH_I2C_Read... [20:29:07]Read from MH i2c: E2 17 00 73 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 4F [20:29:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [20:29:07]wFMCommunicate OK [20:29:07]CreateOFDProtocolMessage done [20:29:07]OFDSenderStorePacket 103205 [20:29:07]StoreOFDPacket docnum=103205 [20:29:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 EA 6A 04 01 7F 73 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 69 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 88 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 FF 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 74 00 00 00 F4 03 04 00 13 C2 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 25 93 01 00 35 04 06 00 C0 45 F4 1F 3A 17 F1 F5 93 66 EB 2F 62 2D [20:29:07]CheckFolder [20:29:07]dirname=/storage/ofd_packets [20:29:07]CheckFolder done [20:29:07]ProducePacketName [20:29:07]name=ofd_packets/00103205 [20:29:07]NVStorageSaveData ofd_packets/00103205 [20:29:07]File name is /storage/ofd_packets/00103205 [20:29:07]Write 298 bytes [20:29:07]NVStorageSaveData done [20:29:07]OFDSenderStorePacket done [20:29:07]KKMCreateOFDPacket done [20:29:07]NVStorageSaveData kkm_last_timestamp [20:29:07]File name is /storage/kkm_last_timestamp [20:29:07]Write 4 bytes [20:29:07]NVStorageSaveData done [20:29:07]ExternCall_PrintAddStr [20:29:07]wPrintStart [20:29:07]Write to MH i2c: 01 00 00 74 0E 82 [20:29:07]Write i2c OK [20:29:07]MH_I2C_Read... [20:29:07]Read from MH i2c: 01 [20:29:07]MH_I2C_Read... [20:29:07]Read from MH i2c: 01 07 00 [20:29:07]MH_I2C_Read... [20:29:07]Read from MH i2c: 01 07 00 74 0E 00 00 00 00 00 FF 0F 97 [20:29:07]RasterBufferAndPrint [20:29:07]line Счет N : (1)160835 [20:29:07]line ИНН: 02508201610067 [20:29:07]line Контрольно-Кассовый Чек [20:29:07]line ПРОДАЖА [20:29:07]line ТРК (МРК, ГНК) : 13 [20:29:07]line Товар: 2710194210 [20:29:07]line ДТ-К-5 [20:29:07]line 27.110 * 73.80 [20:29:07]line = 2000.72 [20:29:07]line НДС 12% НСП 1% [20:29:07]line > о реализуемом товаре [20:29:07]line ОКРУГЛЕНИЕ: -0.72 [20:29:07]line ИТОГО: 2000.00 [20:29:07]line Внесено: 2000.00 [20:29:07]line СДАЧА: 0.00 [20:29:07]line НСП 1% : 17.70 [20:29:07]line НДС 12% : 212.47 [20:29:07]line Наличными: 2000.00 [20:29:07]line Безнал.: 0.00 [20:29:07]line Место: АЗС № 38 "Партнер Нефть" [20:29:07]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [20:29:07]line СНО: Общий режим [20:29:07]line Чек 116 13.08.2024 20:29 [20:29:07]line Смена: 464 ФФД: 1.0 [20:29:07]line ЗНМ: 0300000126 [20:29:07]line РНМ: 0000000000092718 [20:29:07]line Версия ККМ: 001 [20:29:07]line ФМ: 0000000000875058 [20:29:07]line ФД: 103205 [20:29:07]line ФПД: 211406680963607 [20:29:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T202907&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103205&fm=211406680963607&tin=02508201610067®Number=0000000000092718&sum=200000 [20:29:08]OFD Sender: Processing packet 103205 [packets to send 69, broken 68] [20:29:08]ProducePacketName [20:29:08]name=ofd_packets/00103205 [20:29:08]OFD Sender: To server: pG, [20:29:08]CommunicateWithHost lk.salyk.kg:30040 [20:29:08]ConnectInit lk.salyk.kg [20:29:08]written 0, free lines is 4095 [20:29:08]Connected sock=10 [20:29:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 EA 6A 04 01 7F 73 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 69 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 88 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 FF 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 74 00 00 00 F4 03 04 00 13 C2 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 25 93 01 00 35 04 06 00 C0 45 F4 1F 3A 17 F1 F5 93 66 EB 2F 62 2D [20:29:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 CF 07 47 00 19 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 25 93 01 00 F4 03 04 00 85 68 BB 66 B6 04 01 00 00 95 4B 2E 3E AE F7 C0 73 [20:29:08]CommunicateWithHost err = 0 [20:29:08]CheckOFDResponse [20:29:08]1017 (14) - 77093643461234 [20:29:08]1041 (16) - 0000000000875058 [20:29:08]1040 (4) - 103205 [20:29:08]1012 (4) - 13.08.2024 14:07 [20:29:08]1206 (1) - 0 [20:29:08]OFD Sender: Remove packet 103205 [20:29:08]ProducePacketName [20:29:08]name=ofd_packets/00103205 [20:29:08]NVStorageDeleteData [20:29:08]Write to MH i2c: 01 00 00 9F 0E AD [20:29:08]Write i2c OK [20:29:08]MH_I2C_Read... [20:29:08]Read from MH i2c: 01 [20:29:08]MH_I2C_Read... [20:29:08]Read from MH i2c: 01 07 00 [20:29:08]MH_I2C_Read... [20:29:08]Read from MH i2c: 01 07 00 9F 0E 00 00 00 00 00 DC 0C 9C [20:29:08]RasterBufferAndPrint [20:29:08]line [20:29:08]line [20:29:08]line [20:29:08]line [20:29:08]line [20:29:08]written 0, free lines is 3298 [20:29:08]MH_Cut [20:29:08]Write to MH i2c: D1 01 00 A6 0E 01 86 [20:29:08]Write i2c OK [20:29:08]MH_I2C_Read... [20:29:08]Read from MH i2c: D1 [20:29:08]MH_I2C_Read... [20:29:08]Read from MH i2c: D1 01 00 [20:29:08]MH_I2C_Read... [20:29:08]Read from MH i2c: D1 01 00 A6 0E 00 85 [20:29:08]Write to MH i2c: 01 00 00 A7 0E B5 [20:29:08]Write i2c OK [20:29:08]MH_I2C_Read... [20:29:09]OFD Sender: No OFD packet to send [20:29:09]*** Cut start [20:29:09]*** Purtial cut [20:29:09]*** CUTSNS_PIN = 0 [20:29:09]*** Stage 1: CUTSNS_PIN = 1 [20:29:11]Read from MH i2c: 01 [20:29:11]MH_I2C_Read... [20:29:11]*** Stop cut motor [20:29:11]*** Cut end [20:29:11]Read from MH i2c: 01 07 00 [20:29:11]MH_I2C_Read... [20:29:11]Read from MH i2c: 01 07 00 A7 0E 00 00 00 00 00 FF 0F CA [20:29:11]process_action close_receipt done [20:29:11]requested_data is exist [20:29:11]produce_requested_data [20:29:11]requested_item fm.sn is exist - process it [20:29:11]wFMCommunicate request_size=4 [20:29:11]MH_SAM_APDU [20:29:11]CAPDU: 80 11 00 00 [20:29:11]Write to MH i2c: E2 08 00 A8 0E 80 11 00 00 00 00 00 00 30 [20:29:11]Write i2c OK [20:29:11]MH_I2C_Read... [20:29:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:29:11]Read from MH i2c: E2 [20:29:11]MH_I2C_Read... [20:29:11]Read from MH i2c: E2 17 00 [20:29:11]MH_I2C_Read... [20:29:11]Read from MH i2c: E2 17 00 A8 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 84 [20:29:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [20:29:11]wFMCommunicate OK [20:29:11]requested_item fd.num is exist - process it [20:29:11]SAM_PROTO_GetFieldsCounters [20:29:11]wFMCommunicate request_size=4 [20:29:11]MH_SAM_APDU [20:29:11]CAPDU: 80 13 00 00 [20:29:11]Write to MH i2c: E2 08 00 A9 0E 80 13 00 00 00 00 00 00 33 [20:29:11]Write i2c OK [20:29:11]MH_I2C_Read... [20:29:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:29:11]Read from MH i2c: E2 [20:29:11]MH_I2C_Read... [20:29:11]Read from MH i2c: E2 62 00 [20:29:11]MH_I2C_Read... [20:29:11]Read from MH i2c: E2 62 00 A9 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 25 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [20:29:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 25 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:29:11]wFMCommunicate OK [20:29:11]SAM_PROTO_GetFieldsCounters done [20:29:11]requested_item shift.num is exist - process it [20:29:11]requested_item shift.opened is exist - process it [20:29:11]req_shift_opened [20:29:11]FM_GetShiftState [20:29:11]SAM_PROTO_GetShiftState [20:29:11]wFMCommunicate request_size=4 [20:29:11]MH_SAM_APDU [20:29:11]CAPDU: 80 13 01 00 [20:29:11]Write to MH i2c: E2 08 00 AA 0E 80 13 01 00 00 00 00 00 35 [20:29:11]Write i2c OK [20:29:11]MH_I2C_Read... [20:29:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:29:11]Read from MH i2c: E2 [20:29:11]MH_I2C_Read... [20:29:11]Read from MH i2c: E2 0E 00 [20:29:11]MH_I2C_Read... [20:29:11]Read from MH i2c: E2 0E 00 AA 0E 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 53 [20:29:11]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [20:29:11]wFMCommunicate OK [20:29:11]SAM_PROTO_GetShiftState done [20:29:11]FM_GetShiftState done [20:29:11]req_shift_opened done [20:29:11]requested_item shift.open_date is exist - process it [20:29:11]req_shift_open_date [20:29:11]req_shift_open_date done [20:29:11]produce_requested_data done [20:29:11]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103205,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [20:29:11]process_action_free close_receipt [20:29:11]json_value_free [20:29:11]json_value_free done [20:29:11]process_json_proto returns [20:29:11]Send response to host [20:29:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103205,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [20:29:11]free response buf [20:29:11]execute_script done [20:29:11]execute_script returns [20:29:11]free content buf [20:29:11]Sock 7.Close socket [20:29:11]Sock 7.Thread stoped [20:29:14]OFD Sender: No OFD packet to send [20:29:19]OFD Sender: No OFD packet to send [20:29:24]OFD Sender: No OFD packet to send [20:29:29]OFD Sender: No OFD packet to send [20:29:30]accept exits with 9 [20:29:30]New connection [20:29:30]New thread 3067116900 created [20:29:30]Thread 3067260260 joined [20:29:30]Waiting for new connection... [20:29:30] Sock 9.Parse request [20:29:30]Sock 9.Check first char [20:29:30]Sock 9.First char is OK [20:29:30]request: POST /json_proto HTTP/1.0 [20:29:30]Method: POST [20:29:30]URL: /json_proto [20:29:30]Method is POST - this is cgi request [20:29:30]url: /json_proto [20:29:30]query_string will be loaded in cgi processing [20:29:30]execute_cgi json_proto POST (null) [20:29:30]execute_cgi path=json_proto method=POST [20:29:30]POST find Content-Length [20:29:30]Host: 172.17.58.3:8080 [20:29:30]Content-Length: 818 [20:29:30]Content-Type: application/json [20:29:30] [20:29:30]POST finish read [20:29:30]Found Content-Length = 818 [20:29:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160834", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:29:30]execute_script... [20:29:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160834", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:29:30]POST & json_proto [20:29:30]process_json_proto [20:29:30]json parsed OK: [20:29:30]protocol is kg_v1.0 [20:29:30]action value=close_receipt [20:29:30]process_action close_receipt [20:29:30]cmd_close_receipt [20:29:30]MH_GetDate [20:29:30]Write to MH i2c: F0 00 00 AB 0E A8 [20:29:30]Write i2c OK [20:29:30]MH_I2C_Read... [20:29:30]Read from MH i2c: F0 [20:29:30]MH_I2C_Read... [20:29:30]Read from MH i2c: F0 09 00 [20:29:30]MH_I2C_Read... [20:29:30]Read from MH i2c: F0 09 00 AB 0E 00 2B C2 BB 66 DC E4 6D 64 50 [20:29:30]GetLastDocTimeStamp 1723580947 [20:29:30]current date 1723580971 [20:29:30]FM_GetShiftState [20:29:30]SAM_PROTO_GetShiftState [20:29:30]wFMCommunicate request_size=4 [20:29:30]MH_SAM_APDU [20:29:30]CAPDU: 80 13 01 00 [20:29:30]Write to MH i2c: E2 08 00 AC 0E 80 13 01 00 00 00 00 00 37 [20:29:30]Write i2c OK [20:29:30]MH_I2C_Read... [20:29:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:29:30]Read from MH i2c: E2 [20:29:30]MH_I2C_Read... [20:29:30]Read from MH i2c: E2 0E 00 [20:29:30]MH_I2C_Read... [20:29:30]Read from MH i2c: E2 0E 00 AC 0E 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 55 [20:29:30]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [20:29:30]wFMCommunicate OK [20:29:30]SAM_PROTO_GetShiftState done [20:29:30]FM_GetShiftState done [20:29:30]opened in 1723506770 [20:29:30]opened+sec_in_day 1723593170 [20:29:30]quantity*price = 100036 [20:29:30]sum+1 = 100037 [20:29:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.36 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 0.00 Безнал.: 1000.36 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 117 13.08.2024 20:29 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875058 ФД: 103206 ФПД: 241786900494696 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T202931&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103206&fm=241786900494696&tin=02508201610067®Number=0000000000092718&sum=100036 [20:29:31]StoreToDocumentArchive [20:29:31]shift 464 fd 103206 [20:29:31]save to /storage/0464/doc_00103206 [20:29:31]save last doc name /storage/0464/doc_00103206 to /storage/kkm_last_doc_name [20:29:31]save OK [20:29:31]Clear old archive folders... [20:29:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:29:31]tlvbuf is 0022B090 [20:29:31]SAM_PROTO_ClearQueue [20:29:31]wFMCommunicate request_size=4 [20:29:31]MH_SAM_APDU [20:29:31]CAPDU: 80 09 00 00 [20:29:31]Write to MH i2c: E2 08 00 B9 0E 80 09 00 00 00 00 00 00 39 [20:29:31]Write i2c OK [20:29:31]MH_I2C_Read... [20:29:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:29:31]Read from MH i2c: E2 [20:29:31]MH_I2C_Read... [20:29:31]Read from MH i2c: E2 03 00 [20:29:31]MH_I2C_Read... [20:29:31]Read from MH i2c: E2 03 00 B9 0E 00 90 00 3B [20:29:31]RAPDU: 90 00 [20:29:31]wFMCommunicate OK [20:29:31]SAM_PROTO_ClearQueue done [20:29:31]KKMCreateOFDPacket [20:29:31]OFDProtocolAddRootSTLVToBuf [20:29:31]FM_MakeSignedData [20:29:31]FM_MakeSignedData [20:29:31]SAM_PROTO_SignData [20:29:31]wFMCommunicate request_size=4 [20:29:31]MH_SAM_APDU [20:29:31]CAPDU: 80 0D 01 02 [20:29:31]Write to MH i2c: E2 08 00 BA 0E 80 0D 01 02 00 00 00 00 41 [20:29:31]Write i2c OK [20:29:31]MH_I2C_Read... [20:29:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:29:31]Read from MH i2c: E2 [20:29:31]MH_I2C_Read... [20:29:31]Read from MH i2c: E2 03 00 [20:29:31]MH_I2C_Read... [20:29:31]Read from MH i2c: E2 03 00 BA 0E 00 90 00 3C [20:29:31]RAPDU: 90 00 [20:29:31]wFMCommunicate OK [20:29:31]wFMCommunicate request_size=255 [20:29:31]MH_SAM_APDU [20:29:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 2B C2 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 26 93 01 00 35 04 06 00 DB [20:29:31]Write to MH i2c: E2 02 01 BB 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 2B C2 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 26 93 01 00 35 04 06 00 DB 00 00 96 [20:29:31]Write i2c OK [20:29:31]MH_I2C_Read... [20:29:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:29:31]Read from MH i2c: E2 [20:29:31]MH_I2C_Read... [20:29:31]Read from MH i2c: E2 03 00 [20:29:31]MH_I2C_Read... [20:29:31]Read from MH i2c: E2 03 00 BB 0E 00 90 00 3D [20:29:31]RAPDU: 90 00 [20:29:31]wFMCommunicate OK [20:29:31]wFMCommunicate request_size=10 [20:29:31]MH_SAM_APDU [20:29:31]CAPDU: 80 0D 02 02 05 E7 66 50 B9 68 [20:29:31]Write to MH i2c: E2 0D 00 BC 0E 80 0D 02 02 05 00 E7 66 50 B9 68 00 00 0C [20:29:31]Write i2c OK [20:29:31]MH_I2C_Read... [20:29:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:29:31]Read from MH i2c: E2 [20:29:31]MH_I2C_Read... [20:29:31]Read from MH i2c: E2 03 00 [20:29:31]MH_I2C_Read... [20:29:31]Read from MH i2c: E2 03 00 BC 0E 00 90 00 3E [20:29:31]RAPDU: 90 00 [20:29:31]wFMCommunicate OK [20:29:31]wFMCommunicate request_size=4 [20:29:31]MH_SAM_APDU [20:29:31]CAPDU: 80 0D 03 02 [20:29:31]Write to MH i2c: E2 08 00 BD 0E 80 0D 03 02 00 00 00 00 46 [20:29:31]Write i2c OK [20:29:31]MH_I2C_Read... [20:29:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:29:31]Read from MH i2c: E2 [20:29:31]MH_I2C_Read... [20:29:31]Read from MH i2c: E2 0B 00 [20:29:31]MH_I2C_Read... [20:29:31]Read from MH i2c: E2 0B 00 BD 0E 00 09 9F 0F FB 4A 55 59 85 90 00 76 [20:29:31]RAPDU: 09 9F 0F FB 4A 55 59 85 90 00 [20:29:31]wFMCommunicate OK [20:29:31]SAM_PROTO_SignData done [20:29:31]FM_MakeSignedData done [20:29:31]CreateOFDProtocolMessage [20:29:31]wFMCommunicate request_size=4 [20:29:31]MH_SAM_APDU [20:29:31]CAPDU: 80 11 00 00 [20:29:31]Write to MH i2c: E2 08 00 BE 0E 80 11 00 00 00 00 00 00 46 [20:29:31]Write i2c OK [20:29:31]MH_I2C_Read... [20:29:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:29:31]Read from MH i2c: E2 [20:29:31]MH_I2C_Read... [20:29:31]Read from MH i2c: E2 17 00 [20:29:31]MH_I2C_Read... [20:29:31]Read from MH i2c: E2 17 00 BE 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 9A [20:29:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [20:29:31]wFMCommunicate OK [20:29:31]CreateOFDProtocolMessage done [20:29:31]OFDSenderStorePacket 103206 [20:29:31]StoreOFDPacket docnum=103206 [20:29:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 6E 47 07 01 3D 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 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 2B C2 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 26 93 01 00 35 04 06 00 DB E7 66 50 B9 68 09 9F 0F FB 4A 55 59 85 [20:29:31]CheckFolder [20:29:31]dirname=/storage/ofd_packets [20:29:31]CheckFolder done [20:29:31]ProducePacketName [20:29:31]name=ofd_packets/00103206 [20:29:31]NVStorageSaveData ofd_packets/00103206 [20:29:31]File name is /storage/ofd_packets/00103206 [20:29:31]Write 301 bytes [20:29:31]NVStorageSaveData done [20:29:31]OFDSenderStorePacket done [20:29:31]KKMCreateOFDPacket done [20:29:31]NVStorageSaveData kkm_last_timestamp [20:29:31]File name is /storage/kkm_last_timestamp [20:29:31]Write 4 bytes [20:29:31]NVStorageSaveData done [20:29:31]ExternCall_PrintAddStr [20:29:31]wPrintStart [20:29:31]Write to MH i2c: 01 00 00 BF 0E CD [20:29:31]Write i2c OK [20:29:31]MH_I2C_Read... [20:29:31]Read from MH i2c: 01 [20:29:31]MH_I2C_Read... [20:29:31]Read from MH i2c: 01 07 00 [20:29:31]MH_I2C_Read... [20:29:31]Read from MH i2c: 01 07 00 BF 0E 00 00 00 00 00 FF 0F E2 [20:29:31]RasterBufferAndPrint [20:29:31]line Счет N : (1)160834 [20:29:31]line ИНН: 02508201610067 [20:29:31]line Контрольно-Кассовый Чек [20:29:31]line ПРОДАЖА [20:29:31]line ТРК (МРК, ГНК) : 7 [20:29:31]line Товар: 2710124130 [20:29:31]line Аи-92-К-5 [20:29:31]line 15.180 * 65.90 [20:29:31]line = 1000.36 [20:29:31]line НДС 12% НСП 1% [20:29:31]line > о реализуемом товаре [20:29:31]line ИТОГО: 1000.36 [20:29:31]line НСП 1% : 8.85 [20:29:31]line НДС 12% : 106.23 [20:29:31]line Наличными: 0.00 [20:29:31]line Безнал.: 1000.36 [20:29:31]line Место: АЗС № 38 "Партнер Нефть" [20:29:31]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [20:29:31]line СНО: Общий режим [20:29:31]line Чек 117 13.08.2024 20:29 [20:29:31]line Смена: 464 ФФД: 1.0 [20:29:31]line ЗНМ: 0300000126 [20:29:31]line РНМ: 0000000000092718 [20:29:31]line Версия ККМ: 001 [20:29:31]line Платежная система: Бакай Банк [20:29:31]line ФМ: 0000000000875058 [20:29:31]line ФД: 103206 [20:29:31]line ФПД: 241786900494696 [20:29:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T202931&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103206&fm=241786900494696&tin=02508201610067®Number=0000000000092718&sum=100036 [20:29:32]written 0, free lines is 4095 [20:29:32]OFD Sender: Processing packet 103206 [packets to send 69, broken 68] [20:29:32]ProducePacketName [20:29:32]name=ofd_packets/00103206 [20:29:32]OFD Sender: To server: pG, [20:29:32]CommunicateWithHost lk.salyk.kg:30040 [20:29:32]ConnectInit lk.salyk.kg [20:29:32]Connected sock=10 [20:29:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 6E 47 07 01 3D 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 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 2B C2 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 26 93 01 00 35 04 06 00 DB E7 66 50 B9 68 09 9F 0F FB 4A 55 59 85 [20:29:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 3D 0C 47 00 78 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 26 93 01 00 F4 03 04 00 9D 68 BB 66 B6 04 01 00 00 5D 28 39 DF FB 71 F0 8A [20:29:32]CommunicateWithHost err = 0 [20:29:32]CheckOFDResponse [20:29:32]1017 (14) - 77093643461234 [20:29:32]1041 (16) - 0000000000875058 [20:29:32]1040 (4) - 103206 [20:29:32]1012 (4) - 13.08.2024 14:07 [20:29:32]1206 (1) - 0 [20:29:32]OFD Sender: Remove packet 103206 [20:29:32]ProducePacketName [20:29:32]name=ofd_packets/00103206 [20:29:32]NVStorageDeleteData [20:29:32]Write to MH i2c: 01 00 00 E9 0E F7 [20:29:32]Write i2c OK [20:29:32]MH_I2C_Read... [20:29:32]Read from MH i2c: 01 [20:29:32]MH_I2C_Read... [20:29:32]Read from MH i2c: 01 07 00 [20:29:32]MH_I2C_Read... [20:29:32]Read from MH i2c: 01 07 00 E9 0E 00 00 00 00 00 F3 0C FD [20:29:32]RasterBufferAndPrint [20:29:32]line [20:29:32]line [20:29:32]line [20:29:32]line [20:29:32]line [20:29:32]written 0, free lines is 3321 [20:29:32]MH_Cut [20:29:32]Write to MH i2c: D1 01 00 F0 0E 01 D0 [20:29:32]Write i2c OK [20:29:32]MH_I2C_Read... [20:29:32]Read from MH i2c: D1 [20:29:32]MH_I2C_Read... [20:29:32]Read from MH i2c: D1 01 00 [20:29:32]MH_I2C_Read... [20:29:32]Read from MH i2c: D1 01 00 F0 0E 00 CF [20:29:32]Write to MH i2c: 01 00 00 F1 0E FF [20:29:32]Write i2c OK [20:29:32]MH_I2C_Read... [20:29:33]OFD Sender: No OFD packet to send [20:29:33]*** Cut start [20:29:33]*** Purtial cut [20:29:33]*** Stage 1: CUTSNS_PIN = 1 [20:29:33]Read from MH i2c: 01 [20:29:33]MH_I2C_Read... [20:29:33]*** Stop cut motor [20:29:33]*** Cut end [20:29:33]Read from MH i2c: 01 07 00 [20:29:33]MH_I2C_Read... [20:29:33]Read from MH i2c: 01 07 00 F1 0E 00 00 00 00 00 FF 0F 14 [20:29:33]process_action close_receipt done [20:29:33]requested_data is exist [20:29:33]produce_requested_data [20:29:33]requested_item fm.sn is exist - process it [20:29:33]wFMCommunicate request_size=4 [20:29:33]MH_SAM_APDU [20:29:33]CAPDU: 80 11 00 00 [20:29:33]Write to MH i2c: E2 08 00 F2 0E 80 11 00 00 00 00 00 00 7A [20:29:33]Write i2c OK [20:29:33]MH_I2C_Read... [20:29:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:29:33]Read from MH i2c: E2 [20:29:33]MH_I2C_Read... [20:29:33]Read from MH i2c: E2 17 00 [20:29:33]MH_I2C_Read... [20:29:33]Read from MH i2c: E2 17 00 F2 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 CE [20:29:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [20:29:33]wFMCommunicate OK [20:29:33]requested_item fd.num is exist - process it [20:29:33]SAM_PROTO_GetFieldsCounters [20:29:33]wFMCommunicate request_size=4 [20:29:33]MH_SAM_APDU [20:29:33]CAPDU: 80 13 00 00 [20:29:33]Write to MH i2c: E2 08 00 F3 0E 80 13 00 00 00 00 00 00 7D [20:29:33]Write i2c OK [20:29:33]MH_I2C_Read... [20:29:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:29:33]Read from MH i2c: E2 [20:29:33]MH_I2C_Read... [20:29:33]Read from MH i2c: E2 62 00 [20:29:33]MH_I2C_Read... [20:29:33]Read from MH i2c: E2 62 00 F3 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 26 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [20:29:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 26 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:29:34]wFMCommunicate OK [20:29:34]SAM_PROTO_GetFieldsCounters done [20:29:34]requested_item shift.num is exist - process it [20:29:34]requested_item shift.opened is exist - process it [20:29:34]req_shift_opened [20:29:34]FM_GetShiftState [20:29:34]SAM_PROTO_GetShiftState [20:29:34]wFMCommunicate request_size=4 [20:29:34]MH_SAM_APDU [20:29:34]CAPDU: 80 13 01 00 [20:29:34]Write to MH i2c: E2 08 00 F4 0E 80 13 01 00 00 00 00 00 7F [20:29:34]Write i2c OK [20:29:34]MH_I2C_Read... [20:29:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:29:34]Read from MH i2c: E2 [20:29:34]MH_I2C_Read... [20:29:34]Read from MH i2c: E2 0E 00 [20:29:34]MH_I2C_Read... [20:29:34]Read from MH i2c: E2 0E 00 F4 0E 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 9D [20:29:34]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [20:29:34]wFMCommunicate OK [20:29:34]SAM_PROTO_GetShiftState done [20:29:34]FM_GetShiftState done [20:29:34]req_shift_opened done [20:29:34]requested_item shift.open_date is exist - process it [20:29:34]req_shift_open_date [20:29:34]req_shift_open_date done [20:29:34]produce_requested_data done [20:29:34]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103206,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [20:29:34]process_action_free close_receipt [20:29:34]json_value_free [20:29:34]json_value_free done [20:29:34]process_json_proto returns [20:29:34]Send response to host [20:29:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103206,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [20:29:34]free response buf [20:29:34]execute_script done [20:29:34]execute_script returns [20:29:34]free content buf [20:29:34]Sock 9.Close socket [20:29:34]Sock 9.Thread stoped [20:29:38]OFD Sender: No OFD packet to send [20:29:43]OFD Sender: No OFD packet to send [20:29:48]OFD Sender: No OFD packet to send [20:29:53]OFD Sender: No OFD packet to send [20:29:58]OFD Sender: No OFD packet to send [20:30:03]OFD Sender: No OFD packet to send [20:30:08]OFD Sender: No OFD packet to send [20:30:13]OFD Sender: No OFD packet to send [20:30:18]OFD Sender: No OFD packet to send [20:30:23]OFD Sender: No OFD packet to send [20:30:28]OFD Sender: No OFD packet to send [20:30:33]OFD Sender: No OFD packet to send [20:30:38]OFD Sender: No OFD packet to send [20:30:43]OFD Sender: No OFD packet to send [20:30:48]OFD Sender: No OFD packet to send [20:30:53]OFD Sender: No OFD packet to send [20:30:58]OFD Sender: No OFD packet to send [20:31:03]OFD Sender: No OFD packet to send [20:31:08]OFD Sender: No OFD packet to send [20:31:13]OFD Sender: No OFD packet to send [20:31:18]OFD Sender: No OFD packet to send [20:31:23]OFD Sender: No OFD packet to send [20:31:28]OFD Sender: No OFD packet to send [20:31:33]OFD Sender: No OFD packet to send [20:31:38]OFD Sender: No OFD packet to send [20:31:43]OFD Sender: No OFD packet to send [20:31:48]OFD Sender: No OFD packet to send [20:31:53]OFD Sender: No OFD packet to send [20:31:58]OFD Sender: No OFD packet to send [20:32:03]OFD Sender: No OFD packet to send [20:32:08]OFD Sender: No OFD packet to send [20:32:13]OFD Sender: No OFD packet to send [20:32:18]OFD Sender: No OFD packet to send [20:32:23]OFD Sender: No OFD packet to send [20:32:28]OFD Sender: No OFD packet to send [20:32:33]OFD Sender: No OFD packet to send [20:32:38]OFD Sender: No OFD packet to send [20:32:43]OFD Sender: No OFD packet to send [20:32:48]OFD Sender: No OFD packet to send [20:32:53]OFD Sender: No OFD packet to send [20:32:58]OFD Sender: No OFD packet to send [20:33:03]OFD Sender: No OFD packet to send [20:33:08]OFD Sender: No OFD packet to send [20:33:13]OFD Sender: No OFD packet to send [20:33:18]OFD Sender: No OFD packet to send [20:33:23]OFD Sender: No OFD packet to send [20:33:28]OFD Sender: No OFD packet to send [20:33:33]OFD Sender: No OFD packet to send [20:33:38]OFD Sender: No OFD packet to send [20:33:43]OFD Sender: No OFD packet to send [20:33:48]OFD Sender: No OFD packet to send [20:33:53]OFD Sender: No OFD packet to send [20:33:58]OFD Sender: No OFD packet to send [20:34:03]OFD Sender: No OFD packet to send [20:34:08]OFD Sender: No OFD packet to send [20:34:13]OFD Sender: No OFD packet to send [20:34:18]OFD Sender: No OFD packet to send [20:34:23]OFD Sender: No OFD packet to send [20:34:28]OFD Sender: No OFD packet to send [20:34:33]OFD Sender: No OFD packet to send [20:34:38]OFD Sender: No OFD packet to send [20:34:43]OFD Sender: No OFD packet to send [20:34:48]OFD Sender: No OFD packet to send [20:34:53]OFD Sender: No OFD packet to send [20:34:58]OFD Sender: No OFD packet to send [20:35:03]OFD Sender: No OFD packet to send [20:35:08]OFD Sender: No OFD packet to send [20:35:13]OFD Sender: No OFD packet to send [20:35:18]OFD Sender: No OFD packet to send [20:35:23]OFD Sender: No OFD packet to send [20:35:28]OFD Sender: No OFD packet to send [20:35:33]OFD Sender: No OFD packet to send [20:35:38]OFD Sender: No OFD packet to send [20:35:43]OFD Sender: No OFD packet to send [20:35:48]OFD Sender: No OFD packet to send [20:35:53]OFD Sender: No OFD packet to send [20:35:58]OFD Sender: No OFD packet to send [20:36:03]OFD Sender: No OFD packet to send [20:36:08]OFD Sender: No OFD packet to send [20:36:13]OFD Sender: No OFD packet to send [20:36:18]OFD Sender: No OFD packet to send [20:36:23]OFD Sender: No OFD packet to send [20:36:28]OFD Sender: No OFD packet to send [20:36:33]OFD Sender: No OFD packet to send [20:36:38]OFD Sender: No OFD packet to send [20:36:43]OFD Sender: No OFD packet to send [20:36:48]OFD Sender: No OFD packet to send [20:36:53]OFD Sender: No OFD packet to send [20:36:58]OFD Sender: No OFD packet to send [20:37:03]OFD Sender: No OFD packet to send [20:37:08]OFD Sender: No OFD packet to send [20:37:13]OFD Sender: No OFD packet to send [20:37:18]OFD Sender: No OFD packet to send [20:37:23]OFD Sender: No OFD packet to send [20:37:28]OFD Sender: No OFD packet to send [20:37:33]OFD Sender: No OFD packet to send [20:37:38]OFD Sender: No OFD packet to send [20:37:43]OFD Sender: No OFD packet to send [20:37:48]OFD Sender: No OFD packet to send [20:37:53]OFD Sender: No OFD packet to send [20:37:58]OFD Sender: No OFD packet to send [20:38:03]OFD Sender: No OFD packet to send [20:38:08]OFD Sender: No OFD packet to send [20:38:13]OFD Sender: No OFD packet to send [20:38:18]OFD Sender: No OFD packet to send [20:38:23]OFD Sender: No OFD packet to send [20:38:28]OFD Sender: No OFD packet to send [20:38:33]OFD Sender: No OFD packet to send [20:38:38]OFD Sender: No OFD packet to send [20:38:43]OFD Sender: No OFD packet to send [20:38:48]OFD Sender: No OFD packet to send [20:38:53]OFD Sender: No OFD packet to send [20:38:58]OFD Sender: No OFD packet to send [20:39:03]OFD Sender: No OFD packet to send [20:39:08]OFD Sender: No OFD packet to send [20:39:13]OFD Sender: No OFD packet to send [20:39:18]OFD Sender: No OFD packet to send [20:39:23]OFD Sender: No OFD packet to send [20:39:28]OFD Sender: No OFD packet to send [20:39:33]OFD Sender: No OFD packet to send [20:39:38]OFD Sender: No OFD packet to send [20:39:43]OFD Sender: No OFD packet to send [20:39:48]OFD Sender: No OFD packet to send [20:39:53]OFD Sender: No OFD packet to send [20:39:58]OFD Sender: No OFD packet to send [20:40:03]OFD Sender: No OFD packet to send [20:40:08]OFD Sender: No OFD packet to send [20:40:13]OFD Sender: No OFD packet to send [20:40:18]OFD Sender: No OFD packet to send [20:40:23]OFD Sender: No OFD packet to send [20:40:28]OFD Sender: No OFD packet to send [20:40:33]OFD Sender: No OFD packet to send [20:40:38]OFD Sender: No OFD packet to send [20:40:43]OFD Sender: No OFD packet to send [20:40:48]OFD Sender: No OFD packet to send [20:40:53]OFD Sender: No OFD packet to send [20:40:58]OFD Sender: No OFD packet to send [20:41:03]OFD Sender: No OFD packet to send [20:41:08]OFD Sender: No OFD packet to send [20:41:13]OFD Sender: No OFD packet to send [20:41:18]OFD Sender: No OFD packet to send [20:41:23]OFD Sender: No OFD packet to send [20:41:28]OFD Sender: No OFD packet to send [20:41:33]OFD Sender: No OFD packet to send [20:41:38]OFD Sender: No OFD packet to send [20:41:43]OFD Sender: No OFD packet to send [20:41:48]OFD Sender: No OFD packet to send [20:41:53]OFD Sender: No OFD packet to send [20:41:58]OFD Sender: No OFD packet to send [20:42:03]OFD Sender: No OFD packet to send [20:42:08]OFD Sender: No OFD packet to send [20:42:13]OFD Sender: No OFD packet to send [20:42:18]OFD Sender: No OFD packet to send [20:42:23]OFD Sender: No OFD packet to send [20:42:28]OFD Sender: No OFD packet to send [20:42:33]OFD Sender: No OFD packet to send [20:42:38]OFD Sender: No OFD packet to send [20:42:43]OFD Sender: No OFD packet to send [20:42:48]OFD Sender: No OFD packet to send [20:42:53]OFD Sender: No OFD packet to send [20:42:58]OFD Sender: No OFD packet to send [20:43:03]OFD Sender: No OFD packet to send [20:43:08]OFD Sender: No OFD packet to send [20:43:13]OFD Sender: No OFD packet to send [20:43:18]OFD Sender: No OFD packet to send [20:43:23]OFD Sender: No OFD packet to send [20:43:28]OFD Sender: No OFD packet to send [20:43:33]OFD Sender: No OFD packet to send [20:43:38]OFD Sender: No OFD packet to send [20:43:43]OFD Sender: No OFD packet to send [20:43:48]OFD Sender: No OFD packet to send [20:43:53]OFD Sender: No OFD packet to send [20:43:58]OFD Sender: No OFD packet to send [20:44:03]OFD Sender: No OFD packet to send [20:44:08]OFD Sender: No OFD packet to send [20:44:13]OFD Sender: No OFD packet to send [20:44:18]OFD Sender: No OFD packet to send [20:44:23]OFD Sender: No OFD packet to send [20:44:28]OFD Sender: No OFD packet to send [20:44:33]OFD Sender: No OFD packet to send [20:44:38]OFD Sender: No OFD packet to send [20:44:43]OFD Sender: No OFD packet to send [20:44:48]OFD Sender: No OFD packet to send [20:44:53]OFD Sender: No OFD packet to send [20:44:58]OFD Sender: No OFD packet to send [20:45:03]OFD Sender: No OFD packet to send [20:45:08]OFD Sender: No OFD packet to send [20:45:13]OFD Sender: No OFD packet to send [20:45:18]OFD Sender: No OFD packet to send [20:45:23]OFD Sender: No OFD packet to send [20:45:28]OFD Sender: No OFD packet to send [20:45:33]OFD Sender: No OFD packet to send [20:45:39]OFD Sender: No OFD packet to send [20:45:44]OFD Sender: No OFD packet to send [20:45:49]OFD Sender: No OFD packet to send [20:45:54]OFD Sender: No OFD packet to send [20:45:59]OFD Sender: No OFD packet to send [20:46:04]OFD Sender: No OFD packet to send [20:46:09]OFD Sender: No OFD packet to send [20:46:14]OFD Sender: No OFD packet to send [20:46:19]OFD Sender: No OFD packet to send [20:46:24]OFD Sender: No OFD packet to send [20:46:29]OFD Sender: No OFD packet to send [20:46:34]OFD Sender: No OFD packet to send [20:46:39]OFD Sender: No OFD packet to send [20:46:44]OFD Sender: No OFD packet to send [20:46:49]OFD Sender: No OFD packet to send [20:46:51]accept exits with 7 [20:46:51]New connection [20:46:51]New thread 3067260260 created [20:46:51]Thread 3067116900 joined [20:46:51]Waiting for new connection... [20:46:51] Sock 7.Parse request [20:46:51]Sock 7.Check first char [20:46:51]Sock 7.First char is OK [20:46:51]request: POST /json_proto HTTP/1.0 [20:46:51]Method: POST [20:46:51]URL: /json_proto [20:46:51]Method is POST - this is cgi request [20:46:51]url: /json_proto [20:46:51]query_string will be loaded in cgi processing [20:46:51]execute_cgi json_proto POST (null) [20:46:51]execute_cgi path=json_proto method=POST [20:46:51]POST find Content-Length [20:46:51]Host: 172.17.58.3:8080 [20:46:51]Content-Length: 681 [20:46:51]Content-Type: application/json [20:46:51] [20:46:51]POST finish read [20:46:51]Found Content-Length = 681 [20:46:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160836", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:46:51]execute_script... [20:46: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)160836", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:46:51]POST & json_proto [20:46:51]process_json_proto [20:46:51]json parsed OK: [20:46:51]protocol is kg_v1.0 [20:46:51]action value=close_receipt [20:46:51]process_action close_receipt [20:46:51]cmd_close_receipt [20:46:51]MH_GetDate [20:46:51]Write to MH i2c: F0 00 00 F5 0E F2 [20:46:51]Write i2c OK [20:46:51]MH_I2C_Read... [20:46:51]Read from MH i2c: F0 [20:46:51]MH_I2C_Read... [20:46:51]Read from MH i2c: F0 09 00 [20:46:51]MH_I2C_Read... [20:46:51]Read from MH i2c: F0 09 00 F5 0E 00 3C C6 BB 66 DC E4 6D 64 AF [20:46:51]GetLastDocTimeStamp 1723580971 [20:46:51]current date 1723582012 [20:46:51]FM_GetShiftState [20:46:51]SAM_PROTO_GetShiftState [20:46:51]wFMCommunicate request_size=4 [20:46:51]MH_SAM_APDU [20:46:51]CAPDU: 80 13 01 00 [20:46:51]Write to MH i2c: E2 08 00 F6 0E 80 13 01 00 00 00 00 00 81 [20:46:51]Write i2c OK [20:46:51]MH_I2C_Read... [20:46:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:51]Read from MH i2c: E2 [20:46:51]MH_I2C_Read... [20:46:51]Read from MH i2c: E2 0E 00 [20:46:51]MH_I2C_Read... [20:46:51]Read from MH i2c: E2 0E 00 F6 0E 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 9F [20:46:51]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [20:46:51]wFMCommunicate OK [20:46:51]SAM_PROTO_GetShiftState done [20:46:51]FM_GetShiftState done [20:46:51]opened in 1723506770 [20:46:51]opened+sec_in_day 1723593170 [20:46:51]quantity*price = 100036 [20:46:51]sum+1 = 100037 [20:46:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 118 13.08.2024 20:46 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103207 ФПД: 131682873856941 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T204652&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103207&fm=131682873856941&tin=02508201610067®Number=0000000000092718&sum=100000 [20:46:52]StoreToDocumentArchive [20:46:52]shift 464 fd 103207 [20:46:52]save to /storage/0464/doc_00103207 [20:46:52]save last doc name /storage/0464/doc_00103207 to /storage/kkm_last_doc_name [20:46:52]save OK [20:46:52]Clear old archive folders... [20:46:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:46:52]tlvbuf is 00218640 [20:46:52]SAM_PROTO_ClearQueue [20:46:52]wFMCommunicate request_size=4 [20:46:52]MH_SAM_APDU [20:46:52]CAPDU: 80 09 00 00 [20:46:52]Write to MH i2c: E2 08 00 03 0F 80 09 00 00 00 00 00 00 84 [20:46:52]Write i2c OK [20:46:52]MH_I2C_Read... [20:46:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:46:52]Read from MH i2c: E2 [20:46:52]MH_I2C_Read... [20:46:52]Read from MH i2c: E2 03 00 [20:46:52]MH_I2C_Read... [20:46:52]Read from MH i2c: E2 03 00 03 0F 00 90 00 86 [20:46:52]RAPDU: 90 00 [20:46:52]wFMCommunicate OK [20:46:52]SAM_PROTO_ClearQueue done [20:46:52]KKMCreateOFDPacket [20:46:52]OFDProtocolAddRootSTLVToBuf [20:46:52]FM_MakeSignedData [20:46:52]FM_MakeSignedData [20:46:52]SAM_PROTO_SignData [20:46:52]wFMCommunicate request_size=4 [20:46:52]MH_SAM_APDU [20:46:52]CAPDU: 80 0D 01 02 [20:46:52]Write to MH i2c: E2 08 00 04 0F 80 0D 01 02 00 00 00 00 8C [20:46:52]Write i2c OK [20:46:52]MH_I2C_Read... [20:46:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:46:52]Read from MH i2c: E2 [20:46:52]MH_I2C_Read... [20:46:52]Read from MH i2c: E2 03 00 [20:46:52]MH_I2C_Read... [20:46:52]Read from MH i2c: E2 03 00 04 0F 00 90 00 87 [20:46:52]RAPDU: 90 00 [20:46:52]wFMCommunicate OK [20:46:52]wFMCommunicate request_size=255 [20:46:52]MH_SAM_APDU [20: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 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 3C C6 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 27 93 01 00 35 04 06 00 77 [20:46:52]Write to MH i2c: E2 02 01 05 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 3C C6 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 27 93 01 00 35 04 06 00 77 00 00 4C [20:46:52]Write i2c OK [20:46:52]MH_I2C_Read... [20:46:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:52]Read from MH i2c: E2 [20:46:52]MH_I2C_Read... [20:46:52]Read from MH i2c: E2 03 00 [20:46:52]MH_I2C_Read... [20:46:52]Read from MH i2c: E2 03 00 05 0F 00 90 00 88 [20:46:52]RAPDU: 90 00 [20:46:52]wFMCommunicate OK [20:46:52]wFMCommunicate request_size=10 [20:46:52]MH_SAM_APDU [20:46:52]CAPDU: 80 0D 02 02 05 C3 CE EB 53 AD [20:46:52]Write to MH i2c: E2 0D 00 06 0F 80 0D 02 02 05 00 C3 CE EB 53 AD 00 00 15 [20:46:52]Write i2c OK [20:46:52]MH_I2C_Read... [20:46:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:52]Read from MH i2c: E2 [20:46:52]MH_I2C_Read... [20:46:52]Read from MH i2c: E2 03 00 [20:46:52]MH_I2C_Read... [20:46:52]Read from MH i2c: E2 03 00 06 0F 00 90 00 89 [20:46:52]RAPDU: 90 00 [20:46:52]wFMCommunicate OK [20:46:52]wFMCommunicate request_size=4 [20:46:52]MH_SAM_APDU [20:46:52]CAPDU: 80 0D 03 02 [20:46:52]Write to MH i2c: E2 08 00 07 0F 80 0D 03 02 00 00 00 00 91 [20:46:52]Write i2c OK [20:46:52]MH_I2C_Read... [20:46:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:46:52]Read from MH i2c: E2 [20:46:52]MH_I2C_Read... [20:46:52]Read from MH i2c: E2 0B 00 [20:46:52]MH_I2C_Read... [20:46:52]Read from MH i2c: E2 0B 00 07 0F 00 DC A3 4D 5F D4 FD 5F 65 90 00 52 [20:46:52]RAPDU: DC A3 4D 5F D4 FD 5F 65 90 00 [20:46:52]wFMCommunicate OK [20:46:52]SAM_PROTO_SignData done [20:46:52]FM_MakeSignedData done [20:46:52]CreateOFDProtocolMessage [20:46:52]wFMCommunicate request_size=4 [20:46:52]MH_SAM_APDU [20:46:52]CAPDU: 80 11 00 00 [20:46:52]Write to MH i2c: E2 08 00 08 0F 80 11 00 00 00 00 00 00 91 [20:46:52]Write i2c OK [20:46:52]MH_I2C_Read... [20:46:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:52]Read from MH i2c: E2 [20:46:52]MH_I2C_Read... [20:46:52]Read from MH i2c: E2 17 00 [20:46:52]MH_I2C_Read... [20:46:52]Read from MH i2c: E2 17 00 08 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 E5 [20:46:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [20:46:52]wFMCommunicate OK [20:46:52]CreateOFDProtocolMessage done [20:46:52]OFDSenderStorePacket 103207 [20:46:52]StoreOFDPacket docnum=103207 [20:46:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 16 BE 07 01 50 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 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 3C C6 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 27 93 01 00 35 04 06 00 77 C3 CE EB 53 AD DC A3 4D 5F D4 FD 5F 65 [20:46:52]CheckFolder [20:46:52]dirname=/storage/ofd_packets [20:46:52]CheckFolder done [20:46:52]ProducePacketName [20:46:52]name=ofd_packets/00103207 [20:46:52]NVStorageSaveData ofd_packets/00103207 [20:46:52]File name is /storage/ofd_packets/00103207 [20:46:52]Write 301 bytes [20:46:52]NVStorageSaveData done [20:46:52]OFDSenderStorePacket done [20:46:52]KKMCreateOFDPacket done [20:46:52]NVStorageSaveData kkm_last_timestamp [20:46:52]File name is /storage/kkm_last_timestamp [20:46:52]Write 4 bytes [20:46:52]NVStorageSaveData done [20:46:52]ExternCall_PrintAddStr [20:46:52]wPrintStart [20:46:52]Write to MH i2c: 01 00 00 09 0F 18 [20:46:52]Write i2c OK [20:46:52]MH_I2C_Read... [20:46:52]Read from MH i2c: 01 [20:46:52]MH_I2C_Read... [20:46:52]Read from MH i2c: 01 07 00 [20:46:52]MH_I2C_Read... [20:46:52]Read from MH i2c: 01 07 00 09 0F 00 00 00 00 00 FF 0F 2D [20:46:52]RasterBufferAndPrint [20:46:52]line Счет N : (1)160836 [20:46:52]line ИНН: 02508201610067 [20:46:52]line Контрольно-Кассовый Чек [20:46:52]line ПРОДАЖА [20:46:52]line ТРК (МРК, ГНК) : 7 [20:46:52]line Товар: 2710124130 [20:46:52]line Аи-92-К-5 [20:46:52]line 15.180 * 65.90 [20:46:52]line = 1000.36 [20:46:52]line НДС 12% НСП 1% [20:46:52]line > о реализуемом товаре [20:46:52]line ОКРУГЛЕНИЕ: -0.36 [20:46:52]line ИТОГО: 1000.00 [20:46:52]line Внесено: 1000.00 [20:46:52]line СДАЧА: 0.00 [20:46:52]line НСП 1% : 8.85 [20:46:52]line НДС 12% : 106.23 [20:46:52]line Наличными: 1000.00 [20:46:52]line Безнал.: 0.00 [20:46:52]line Место: АЗС № 38 "Партнер Нефть" [20:46:52]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [20:46:52]line СНО: Общий режим [20:46:52]line Чек 118 13.08.2024 20:46 [20:46:52]line Смена: 464 ФФД: 1.0 [20:46:52]line ЗНМ: 0300000126 [20:46:52]line РНМ: 0000000000092718 [20:46:52]line Версия ККМ: 001 [20:46:52]line ФМ: 0000000000875058 [20:46:52]line ФД: 103207 [20:46:53]line ФПД: 131682873856941 [20:46:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T204652&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103207&fm=131682873856941&tin=02508201610067®Number=0000000000092718&sum=100000 [20:46:53]OFD Sender: Processing packet 103207 [packets to send 69, broken 68] [20:46:53]ProducePacketName [20:46:53]name=ofd_packets/00103207 [20:46:53]OFD Sender: To server: pG, [20:46:53]CommunicateWithHost lk.salyk.kg:30040 [20:46:53]ConnectInit lk.salyk.kg [20:46:53]written 0, free lines is 4095 [20:46:53]Connected sock=10 [20: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 35 30 35 38 0F 01 00 00 16 BE 07 01 50 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 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 3C C6 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 27 93 01 00 35 04 06 00 77 C3 CE EB 53 AD DC A3 4D 5F D4 FD 5F 65 [20:46:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 13 50 47 00 4D 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 27 93 01 00 F4 03 04 00 AE 6C BB 66 B6 04 01 00 00 E2 C4 48 CA 78 52 7D AE [20:46:53]CommunicateWithHost err = 0 [20:46:53]CheckOFDResponse [20:46:53]1017 (14) - 77093643461234 [20:46:53]1041 (16) - 0000000000875058 [20:46:53]1040 (4) - 103207 [20:46:53]1012 (4) - 13.08.2024 14:24 [20:46:53]1206 (1) - 0 [20:46:53]OFD Sender: Remove packet 103207 [20:46:53]ProducePacketName [20:46:53]name=ofd_packets/00103207 [20:46:53]NVStorageDeleteData [20:46:53]Write to MH i2c: 01 00 00 34 0F 43 [20:46:53]Write i2c OK [20:46:53]MH_I2C_Read... [20:46:53]Read from MH i2c: 01 [20:46:53]MH_I2C_Read... [20:46:53]Read from MH i2c: 01 07 00 [20:46:53]MH_I2C_Read... [20:46:53]Read from MH i2c: 01 07 00 34 0F 00 00 00 00 00 E5 0C 3B [20:46:53]RasterBufferAndPrint [20:46:53]line [20:46:53]line [20:46:53]line [20:46:53]line [20:46:53]line [20:46:53]written 0, free lines is 3307 [20:46:53]MH_Cut [20:46:53]Write to MH i2c: D1 01 00 3B 0F 01 1C [20:46:53]Write i2c OK [20:46:53]MH_I2C_Read... [20:46:53]Read from MH i2c: D1 [20:46:53]MH_I2C_Read... [20:46:53]Read from MH i2c: D1 01 00 [20:46:53]MH_I2C_Read... [20:46:53]Read from MH i2c: D1 01 00 3B 0F 00 1B [20:46:53]Write to MH i2c: 01 00 00 3C 0F 4B [20:46:53]Write i2c OK [20:46:53]MH_I2C_Read... [20:46:54]OFD Sender: No OFD packet to send [20:46:54]*** Cut start [20:46:54]*** Purtial cut [20:46:54]*** CUTSNS_PIN = 0 [20:46:54]*** Stage 1: CUTSNS_PIN = 1 [20:46:56]Read from MH i2c: 01 [20:46:56]MH_I2C_Read... [20:46:56]*** Stop cut motor [20:46:56]*** Cut end [20:46:56]Read from MH i2c: 01 07 00 [20:46:56]MH_I2C_Read... [20:46:56]Read from MH i2c: 01 07 00 3C 0F 00 00 00 00 00 FF 0F 60 [20:46:56]process_action close_receipt done [20:46:56]requested_data is exist [20:46:56]produce_requested_data [20:46:56]requested_item fm.sn is exist - process it [20:46:56]wFMCommunicate request_size=4 [20:46:56]MH_SAM_APDU [20:46:56]CAPDU: 80 11 00 00 [20:46:56]Write to MH i2c: E2 08 00 3D 0F 80 11 00 00 00 00 00 00 C6 [20:46:56]Write i2c OK [20:46:56]MH_I2C_Read... [20:46:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:56]Read from MH i2c: E2 [20:46:56]MH_I2C_Read... [20:46:56]Read from MH i2c: E2 17 00 [20:46:56]MH_I2C_Read... [20:46:56]Read from MH i2c: E2 17 00 3D 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 1A [20:46:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [20:46:56]wFMCommunicate OK [20:46:56]requested_item fd.num is exist - process it [20:46:56]SAM_PROTO_GetFieldsCounters [20:46:56]wFMCommunicate request_size=4 [20:46:56]MH_SAM_APDU [20:46:56]CAPDU: 80 13 00 00 [20:46:56]Write to MH i2c: E2 08 00 3E 0F 80 13 00 00 00 00 00 00 C9 [20:46:56]Write i2c OK [20:46:56]MH_I2C_Read... [20:46:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:46:56]Read from MH i2c: E2 [20:46:56]MH_I2C_Read... [20:46:56]Read from MH i2c: E2 62 00 [20:46:56]MH_I2C_Read... [20:46:56]Read from MH i2c: E2 62 00 3E 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 27 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [20:46:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 27 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:46:56]wFMCommunicate OK [20:46:56]SAM_PROTO_GetFieldsCounters done [20:46:56]requested_item shift.num is exist - process it [20:46:56]requested_item shift.opened is exist - process it [20:46:56]req_shift_opened [20:46:56]FM_GetShiftState [20:46:56]SAM_PROTO_GetShiftState [20:46:56]wFMCommunicate request_size=4 [20:46:56]MH_SAM_APDU [20:46:56]CAPDU: 80 13 01 00 [20:46:56]Write to MH i2c: E2 08 00 3F 0F 80 13 01 00 00 00 00 00 CB [20:46:56]Write i2c OK [20:46:56]MH_I2C_Read... [20:46:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:56]Read from MH i2c: E2 [20:46:56]MH_I2C_Read... [20:46:56]Read from MH i2c: E2 0E 00 [20:46:56]MH_I2C_Read... [20:46:56]Read from MH i2c: E2 0E 00 3F 0F 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 E9 [20:46:56]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [20:46:56]wFMCommunicate OK [20:46:56]SAM_PROTO_GetShiftState done [20:46:56]FM_GetShiftState done [20:46:56]req_shift_opened done [20:46:56]requested_item shift.open_date is exist - process it [20:46:56]req_shift_open_date [20:46:56]req_shift_open_date done [20:46:56]produce_requested_data done [20:46:56]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103207,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [20:46:56]process_action_free close_receipt [20:46:56]json_value_free [20:46:56]json_value_free done [20:46:56]process_json_proto returns [20:46:56]Send response to host [20:46:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103207,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [20:46:56]free response buf [20:46:56]execute_script done [20:46:56]execute_script returns [20:46:56]free content buf [20:46:56]Sock 7.Close socket [20:46:56]Sock 7.Thread stoped [20:46:59]OFD Sender: No OFD packet to send [20:47:04]OFD Sender: No OFD packet to send [20:47:09]OFD Sender: No OFD packet to send [20:47:14]OFD Sender: No OFD packet to send [20:47:19]OFD Sender: No OFD packet to send [20:47:24]OFD Sender: No OFD packet to send [20:47:29]OFD Sender: No OFD packet to send [20:47:34]OFD Sender: No OFD packet to send [20:47:39]OFD Sender: No OFD packet to send [20:47:44]OFD Sender: No OFD packet to send [20:47:49]OFD Sender: No OFD packet to send [20:47:54]OFD Sender: No OFD packet to send [20:47:59]OFD Sender: No OFD packet to send [20:48:04]OFD Sender: No OFD packet to send [20:48:09]OFD Sender: No OFD packet to send [20:48:14]OFD Sender: No OFD packet to send [20:48:19]OFD Sender: No OFD packet to send [20:48:24]OFD Sender: No OFD packet to send [20:48:29]OFD Sender: No OFD packet to send [20:48:34]OFD Sender: No OFD packet to send [20:48:39]OFD Sender: No OFD packet to send [20:48:44]OFD Sender: No OFD packet to send [20:48:49]OFD Sender: No OFD packet to send [20:48:54]OFD Sender: No OFD packet to send [20:48:59]OFD Sender: No OFD packet to send [20:49:04]OFD Sender: No OFD packet to send [20:49:09]OFD Sender: No OFD packet to send [20:49:14]OFD Sender: No OFD packet to send [20:49:19]OFD Sender: No OFD packet to send [20:49:24]OFD Sender: No OFD packet to send [20:49:29]OFD Sender: No OFD packet to send [20:49:34]OFD Sender: No OFD packet to send [20:49:39]OFD Sender: No OFD packet to send [20:49:44]OFD Sender: No OFD packet to send [20:49:49]OFD Sender: No OFD packet to send [20:49:54]OFD Sender: No OFD packet to send [20:49:59]OFD Sender: No OFD packet to send [20:50:04]OFD Sender: No OFD packet to send [20:50:09]OFD Sender: No OFD packet to send [20:50:14]OFD Sender: No OFD packet to send [20:50:19]OFD Sender: No OFD packet to send [20:50:24]OFD Sender: No OFD packet to send [20:50:29]OFD Sender: No OFD packet to send [20:50:34]OFD Sender: No OFD packet to send [20:50:39]OFD Sender: No OFD packet to send [20:50:44]OFD Sender: No OFD packet to send [20:50:49]OFD Sender: No OFD packet to send [20:50:54]OFD Sender: No OFD packet to send [20:50:59]OFD Sender: No OFD packet to send [20:51:04]OFD Sender: No OFD packet to send [20:51:09]OFD Sender: No OFD packet to send [20:51:14]OFD Sender: No OFD packet to send [20:51:19]OFD Sender: No OFD packet to send [20:51:24]OFD Sender: No OFD packet to send [20:51:29]OFD Sender: No OFD packet to send [20:51:34]OFD Sender: No OFD packet to send [20:51:39]OFD Sender: No OFD packet to send [20:51:44]OFD Sender: No OFD packet to send [20:51:49]OFD Sender: No OFD packet to send [20:51:54]OFD Sender: No OFD packet to send [20:51:59]OFD Sender: No OFD packet to send [20:52:04]OFD Sender: No OFD packet to send [20:52:09]OFD Sender: No OFD packet to send [20:52:14]OFD Sender: No OFD packet to send [20:52:19]OFD Sender: No OFD packet to send [20:52:24]OFD Sender: No OFD packet to send [20:52:29]OFD Sender: No OFD packet to send [20:52:34]OFD Sender: No OFD packet to send [20:52:39]OFD Sender: No OFD packet to send [20:52:44]OFD Sender: No OFD packet to send [20:52:49]OFD Sender: No OFD packet to send [20:52:54]OFD Sender: No OFD packet to send [20:52:59]OFD Sender: No OFD packet to send [20:53:04]OFD Sender: No OFD packet to send [20:53:09]OFD Sender: No OFD packet to send [20:53:14]OFD Sender: No OFD packet to send [20:53:19]OFD Sender: No OFD packet to send [20:53:24]OFD Sender: No OFD packet to send [20:53:29]OFD Sender: No OFD packet to send [20:53:34]OFD Sender: No OFD packet to send [20:53:39]OFD Sender: No OFD packet to send [20:53:44]OFD Sender: No OFD packet to send [20:53:49]OFD Sender: No OFD packet to send [20:53:54]OFD Sender: No OFD packet to send [20:53:59]OFD Sender: No OFD packet to send [20:54:04]OFD Sender: No OFD packet to send [20:54:09]OFD Sender: No OFD packet to send [20:54:14]OFD Sender: No OFD packet to send [20:54:19]OFD Sender: No OFD packet to send [20:54:24]OFD Sender: No OFD packet to send [20:54:29]OFD Sender: No OFD packet to send [20:54:34]OFD Sender: No OFD packet to send [20:54:39]OFD Sender: No OFD packet to send [20:54:44]OFD Sender: No OFD packet to send [20:54:49]OFD Sender: No OFD packet to send [20:54:54]OFD Sender: No OFD packet to send [20:54:59]OFD Sender: No OFD packet to send [20:55:04]OFD Sender: No OFD packet to send [20:55:09]OFD Sender: No OFD packet to send [20:55:14]OFD Sender: No OFD packet to send [20:55:19]OFD Sender: No OFD packet to send [20:55:24]OFD Sender: No OFD packet to send [20:55:29]OFD Sender: No OFD packet to send [20:55:34]OFD Sender: No OFD packet to send [20:55:39]OFD Sender: No OFD packet to send [20:55:44]OFD Sender: No OFD packet to send [20:55:49]OFD Sender: No OFD packet to send [20:55:54]OFD Sender: No OFD packet to send [20:55:59]OFD Sender: No OFD packet to send [20:56:04]OFD Sender: No OFD packet to send [20:56:09]OFD Sender: No OFD packet to send [20:56:14]OFD Sender: No OFD packet to send [20:56:19]OFD Sender: No OFD packet to send [20:56:22]accept exits with 9 [20:56:22]New connection [20:56:22]New thread 3067116900 created [20:56:22]Thread 3067260260 joined [20:56:22]Waiting for new connection... [20:56:22] Sock 9.Parse request [20:56:22]Sock 9.Check first char [20:56:22]Sock 9.First char is OK [20:56:22]request: POST /json_proto HTTP/1.0 [20:56:22]Method: POST [20:56:22]URL: /json_proto [20:56:22]Method is POST - this is cgi request [20:56:22]url: /json_proto [20:56:22]query_string will be loaded in cgi processing [20:56:22]execute_cgi json_proto POST (null) [20:56:22]execute_cgi path=json_proto method=POST [20:56:22]POST find Content-Length [20:56:22]Host: 172.17.58.3:8080 [20:56:22]Content-Length: 815 [20:56:22]Content-Type: application/json [20:56:22] [20:56:22]POST finish read [20:56:22]Found Content-Length = 815 [20:56:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160837", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:56:22]execute_script... [20:56:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160837", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:56:22]POST & json_proto [20:56:22]process_json_proto [20:56:22]json parsed OK: [20:56:22]protocol is kg_v1.0 [20:56:22]action value=close_receipt [20:56:22]process_action close_receipt [20:56:22]cmd_close_receipt [20:56:22]MH_GetDate [20:56:22]Write to MH i2c: F0 00 00 40 0F 3E [20:56:22]Write i2c OK [20:56:22]MH_I2C_Read... [20:56:22]Read from MH i2c: F0 [20:56:22]MH_I2C_Read... [20:56:22]Read from MH i2c: F0 09 00 [20:56:22]MH_I2C_Read... [20:56:22]Read from MH i2c: F0 09 00 40 0F 00 77 C8 BB 66 DC E4 6D 64 38 [20:56:22]GetLastDocTimeStamp 1723582012 [20:56:22]current date 1723582583 [20:56:22]FM_GetShiftState [20:56:22]SAM_PROTO_GetShiftState [20:56:22]wFMCommunicate request_size=4 [20:56:22]MH_SAM_APDU [20:56:22]CAPDU: 80 13 01 00 [20:56:22]Write to MH i2c: E2 08 00 41 0F 80 13 01 00 00 00 00 00 CD [20:56:22]Write i2c OK [20:56:22]MH_I2C_Read... [20:56:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:56:22]Read from MH i2c: E2 [20:56:22]MH_I2C_Read... [20:56:22]Read from MH i2c: E2 0E 00 [20:56:22]MH_I2C_Read... [20:56:22]Read from MH i2c: E2 0E 00 41 0F 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 EB [20:56:22]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [20:56:22]wFMCommunicate OK [20:56:22]SAM_PROTO_GetShiftState done [20:56:22]FM_GetShiftState done [20:56:22]opened in 1723506770 [20:56:22]opened+sec_in_day 1723593170 [20:56:22]quantity*price = 50018 [20:56:22]sum+1 = 50019 [20:56:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.18 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.18 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 119 13.08.2024 20:56 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875058 ФД: 103208 ФПД: 207586734269463 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T205623&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103208&fm=207586734269463&tin=02508201610067®Number=0000000000092718&sum=50018 [20:56:23]StoreToDocumentArchive [20:56:23]shift 464 fd 103208 [20:56:23]save to /storage/0464/doc_00103208 [20:56:23]save last doc name /storage/0464/doc_00103208 to /storage/kkm_last_doc_name [20:56:23]save OK [20:56:23]Clear old archive folders... [20:56:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:56:23]tlvbuf is 001F0000 [20:56:23]SAM_PROTO_ClearQueue [20:56:23]wFMCommunicate request_size=4 [20:56:23]MH_SAM_APDU [20:56:23]CAPDU: 80 09 00 00 [20:56:23]Write to MH i2c: E2 08 00 4E 0F 80 09 00 00 00 00 00 00 CF [20:56:23]Write i2c OK [20:56:23]MH_I2C_Read... [20:56:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:56:23]Read from MH i2c: E2 [20:56:23]MH_I2C_Read... [20:56:23]Read from MH i2c: E2 03 00 [20:56:23]MH_I2C_Read... [20:56:23]Read from MH i2c: E2 03 00 4E 0F 00 90 00 D1 [20:56:23]RAPDU: 90 00 [20:56:23]wFMCommunicate OK [20:56:23]SAM_PROTO_ClearQueue done [20:56:23]KKMCreateOFDPacket [20:56:23]OFDProtocolAddRootSTLVToBuf [20:56:23]FM_MakeSignedData [20:56:23]FM_MakeSignedData [20:56:23]SAM_PROTO_SignData [20:56:23]wFMCommunicate request_size=4 [20:56:23]MH_SAM_APDU [20:56:23]CAPDU: 80 0D 01 02 [20:56:23]Write to MH i2c: E2 08 00 4F 0F 80 0D 01 02 00 00 00 00 D7 [20:56:23]Write i2c OK [20:56:23]MH_I2C_Read... [20:56:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:56:23]Read from MH i2c: E2 [20:56:23]MH_I2C_Read... [20:56:23]Read from MH i2c: E2 03 00 [20:56:23]MH_I2C_Read... [20:56:23]Read from MH i2c: E2 03 00 4F 0F 00 90 00 D2 [20:56:23]RAPDU: 90 00 [20:56:23]wFMCommunicate OK [20:56:23]wFMCommunicate request_size=255 [20:56:23]MH_SAM_APDU [20:56:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 77 C8 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 28 93 01 00 35 04 06 00 BC [20:56:23]Write to MH i2c: E2 02 01 50 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 77 C8 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 28 93 01 00 35 04 06 00 BC 00 00 9D [20:56:23]Write i2c OK [20:56:23]MH_I2C_Read... [20:56:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:56:23]Read from MH i2c: E2 [20:56:23]MH_I2C_Read... [20:56:23]Read from MH i2c: E2 03 00 [20:56:23]MH_I2C_Read... [20:56:23]Read from MH i2c: E2 03 00 50 0F 00 90 00 D3 [20:56:23]RAPDU: 90 00 [20:56:23]wFMCommunicate OK [20:56:23]wFMCommunicate request_size=10 [20:56:23]MH_SAM_APDU [20:56:23]CAPDU: 80 0D 02 02 05 CC 8D 8E 64 17 [20:56:23]Write to MH i2c: E2 0D 00 51 0F 80 0D 02 02 05 00 CC 8D 8E 64 17 00 00 46 [20:56:23]Write i2c OK [20:56:23]MH_I2C_Read... [20:56:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:56:23]Read from MH i2c: E2 [20:56:23]MH_I2C_Read... [20:56:23]Read from MH i2c: E2 03 00 [20:56:23]MH_I2C_Read... [20:56:23]Read from MH i2c: E2 03 00 51 0F 00 90 00 D4 [20:56:23]RAPDU: 90 00 [20:56:23]wFMCommunicate OK [20:56:23]wFMCommunicate request_size=4 [20:56:23]MH_SAM_APDU [20:56:23]CAPDU: 80 0D 03 02 [20:56:23]Write to MH i2c: E2 08 00 52 0F 80 0D 03 02 00 00 00 00 DC [20:56:23]Write i2c OK [20:56:23]MH_I2C_Read... [20:56:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:56:23]Read from MH i2c: E2 [20:56:23]MH_I2C_Read... [20:56:23]Read from MH i2c: E2 0B 00 [20:56:23]MH_I2C_Read... [20:56:23]Read from MH i2c: E2 0B 00 52 0F 00 53 2B 79 BD 09 C7 D0 28 90 00 59 [20:56:23]RAPDU: 53 2B 79 BD 09 C7 D0 28 90 00 [20:56:23]wFMCommunicate OK [20:56:23]SAM_PROTO_SignData done [20:56:23]FM_MakeSignedData done [20:56:23]CreateOFDProtocolMessage [20:56:23]wFMCommunicate request_size=4 [20:56:23]MH_SAM_APDU [20:56:23]CAPDU: 80 11 00 00 [20:56:23]Write to MH i2c: E2 08 00 53 0F 80 11 00 00 00 00 00 00 DC [20:56:23]Write i2c OK [20:56:23]MH_I2C_Read... [20:56:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:56:23]Read from MH i2c: E2 [20:56:23]MH_I2C_Read... [20:56:23]Read from MH i2c: E2 17 00 [20:56:23]MH_I2C_Read... [20:56:23]Read from MH i2c: E2 17 00 53 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 30 [20:56:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [20:56:23]wFMCommunicate OK [20:56:23]CreateOFDProtocolMessage done [20:56:23]OFDSenderStorePacket 103208 [20:56:23]StoreOFDPacket docnum=103208 [20:56:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 6A A4 07 01 83 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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 77 C8 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 28 93 01 00 35 04 06 00 BC CC 8D 8E 64 17 53 2B 79 BD 09 C7 D0 28 [20:56:23]CheckFolder [20:56:23]dirname=/storage/ofd_packets [20:56:23]CheckFolder done [20:56:23]ProducePacketName [20:56:23]name=ofd_packets/00103208 [20:56:23]NVStorageSaveData ofd_packets/00103208 [20:56:23]File name is /storage/ofd_packets/00103208 [20:56:23]Write 301 bytes [20:56:23]NVStorageSaveData done [20:56:23]OFDSenderStorePacket done [20:56:23]KKMCreateOFDPacket done [20:56:23]NVStorageSaveData kkm_last_timestamp [20:56:23]File name is /storage/kkm_last_timestamp [20:56:23]Write 4 bytes [20:56:23]NVStorageSaveData done [20:56:23]ExternCall_PrintAddStr [20:56:23]wPrintStart [20:56:23]Write to MH i2c: 01 00 00 54 0F 63 [20:56:23]Write i2c OK [20:56:23]MH_I2C_Read... [20:56:23]Read from MH i2c: 01 [20:56:23]MH_I2C_Read... [20:56:23]Read from MH i2c: 01 07 00 [20:56:23]MH_I2C_Read... [20:56:23]Read from MH i2c: 01 07 00 54 0F 00 00 00 00 00 FF 0F 78 [20:56:23]RasterBufferAndPrint [20:56:23]line Счет N : (1)160837 [20:56:23]line ИНН: 02508201610067 [20:56:23]line Контрольно-Кассовый Чек [20:56:23]line ПРОДАЖА [20:56:23]line ТРК (МРК, ГНК) : 7 [20:56:23]line Товар: 2710124130 [20:56:23]line Аи-92-К-5 [20:56:23]line 7.590 * 65.90 [20:56:23]line = 500.18 [20:56:23]line НДС 12% НСП 1% [20:56:23]line > о реализуемом товаре [20:56:23]line ИТОГО: 500.18 [20:56:23]line НСП 1% : 4.43 [20:56:23]line НДС 12% : 53.12 [20:56:23]line Наличными: 0.00 [20:56:23]line Безнал.: 500.18 [20:56:23]line Место: АЗС № 38 "Партнер Нефть" [20:56:23]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [20:56:23]line СНО: Общий режим [20:56:23]line Чек 119 13.08.2024 20:56 [20:56:23]line Смена: 464 ФФД: 1.0 [20:56:23]line ЗНМ: 0300000126 [20:56:23]line РНМ: 0000000000092718 [20:56:23]line Версия ККМ: 001 [20:56:23]line Платежная система: Бакай Банк [20:56:23]line ФМ: 0000000000875058 [20:56:23]line ФД: 103208 [20:56:23]line ФПД: 207586734269463 [20:56:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T205623&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103208&fm=207586734269463&tin=02508201610067®Number=0000000000092718&sum=50018 [20:56:24]written 0, free lines is 4095 [20:56:24]OFD Sender: Processing packet 103208 [packets to send 69, broken 68] [20:56:24]ProducePacketName [20:56:24]name=ofd_packets/00103208 [20:56:24]OFD Sender: To server: pG, [20:56:24]CommunicateWithHost lk.salyk.kg:30040 [20:56:24]ConnectInit lk.salyk.kg [20:56:24]Connected sock=11 [20:56:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 6A A4 07 01 83 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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 77 C8 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 28 93 01 00 35 04 06 00 BC CC 8D 8E 64 17 53 2B 79 BD 09 C7 D0 28 [20:56:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 50 EC 47 00 AA 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 28 93 01 00 F4 03 04 00 E9 6E BB 66 B6 04 01 00 00 CA 9C FB 2C 1C B2 AC 42 [20:56:24]CommunicateWithHost err = 0 [20:56:24]CheckOFDResponse [20:56:24]1017 (14) - 77093643461234 [20:56:24]1041 (16) - 0000000000875058 [20:56:24]1040 (4) - 103208 [20:56:24]1012 (4) - 13.08.2024 14:34 [20:56:24]1206 (1) - 0 [20:56:24]OFD Sender: Remove packet 103208 [20:56:24]ProducePacketName [20:56:24]name=ofd_packets/00103208 [20:56:24]NVStorageDeleteData [20:56:24]Write to MH i2c: 01 00 00 7E 0F 8D [20:56:24]Write i2c OK [20:56:24]MH_I2C_Read... [20:56:24]Read from MH i2c: 01 [20:56:24]MH_I2C_Read... [20:56:24]Read from MH i2c: 01 07 00 [20:56:24]MH_I2C_Read... [20:56:24]Read from MH i2c: 01 07 00 7E 0F 00 00 00 00 00 EA 0C 8A [20:56:24]RasterBufferAndPrint [20:56:24]line [20:56:24]line [20:56:24]line [20:56:24]line [20:56:24]line [20:56:24]written 0, free lines is 3312 [20:56:24]MH_Cut [20:56:24]Write to MH i2c: D1 01 00 85 0F 01 66 [20:56:24]Write i2c OK [20:56:24]MH_I2C_Read... [20:56:24]Read from MH i2c: D1 [20:56:24]MH_I2C_Read... [20:56:24]Read from MH i2c: D1 01 00 [20:56:24]MH_I2C_Read... [20:56:24]Read from MH i2c: D1 01 00 85 0F 00 65 [20:56:24]Write to MH i2c: 01 00 00 86 0F 95 [20:56:24]Write i2c OK [20:56:24]MH_I2C_Read... [20:56:25]OFD Sender: No OFD packet to send [20:56:25]*** Cut start [20:56:25]*** Purtial cut [20:56:25]*** Stage 1: CUTSNS_PIN = 1 [20:56:25]Read from MH i2c: 01 [20:56:25]MH_I2C_Read... [20:56:25]*** Stop cut motor [20:56:25]*** Cut end [20:56:25]Read from MH i2c: 01 07 00 [20:56:25]MH_I2C_Read... [20:56:25]Read from MH i2c: 01 07 00 86 0F 00 00 00 00 00 FF 0F AA [20:56:25]process_action close_receipt done [20:56:25]requested_data is exist [20:56:25]produce_requested_data [20:56:25]requested_item fm.sn is exist - process it [20:56:25]wFMCommunicate request_size=4 [20:56:25]MH_SAM_APDU [20:56:25]CAPDU: 80 11 00 00 [20:56:25]Write to MH i2c: E2 08 00 87 0F 80 11 00 00 00 00 00 00 10 [20:56:25]Write i2c OK [20:56:25]MH_I2C_Read... [20:56:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:56:25]Read from MH i2c: E2 [20:56:25]MH_I2C_Read... [20:56:25]Read from MH i2c: E2 17 00 [20:56:25]MH_I2C_Read... [20:56:25]Read from MH i2c: E2 17 00 87 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 64 [20:56:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [20:56:25]wFMCommunicate OK [20:56:25]requested_item fd.num is exist - process it [20:56:25]SAM_PROTO_GetFieldsCounters [20:56:25]wFMCommunicate request_size=4 [20:56:25]MH_SAM_APDU [20:56:25]CAPDU: 80 13 00 00 [20:56:25]Write to MH i2c: E2 08 00 88 0F 80 13 00 00 00 00 00 00 13 [20:56:25]Write i2c OK [20:56:25]MH_I2C_Read... [20:56:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:56:25]Read from MH i2c: E2 [20:56:25]MH_I2C_Read... [20:56:25]Read from MH i2c: E2 62 00 [20:56:25]MH_I2C_Read... [20:56:25]Read from MH i2c: E2 62 00 88 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 28 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [20:56:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 28 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:56:25]wFMCommunicate OK [20:56:25]SAM_PROTO_GetFieldsCounters done [20:56:25]requested_item shift.num is exist - process it [20:56:25]requested_item shift.opened is exist - process it [20:56:25]req_shift_opened [20:56:25]FM_GetShiftState [20:56:25]SAM_PROTO_GetShiftState [20:56:25]wFMCommunicate request_size=4 [20:56:25]MH_SAM_APDU [20:56:25]CAPDU: 80 13 01 00 [20:56:25]Write to MH i2c: E2 08 00 89 0F 80 13 01 00 00 00 00 00 15 [20:56:25]Write i2c OK [20:56:25]MH_I2C_Read... [20:56:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:56:26]Read from MH i2c: E2 [20:56:26]MH_I2C_Read... [20:56:26]Read from MH i2c: E2 0E 00 [20:56:26]MH_I2C_Read... [20:56:26]Read from MH i2c: E2 0E 00 89 0F 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 33 [20:56:26]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [20:56:26]wFMCommunicate OK [20:56:26]SAM_PROTO_GetShiftState done [20:56:26]FM_GetShiftState done [20:56:26]req_shift_opened done [20:56:26]requested_item shift.open_date is exist - process it [20:56:26]req_shift_open_date [20:56:26]req_shift_open_date done [20:56:26]produce_requested_data done [20:56:26]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103208,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [20:56:26]process_action_free close_receipt [20:56:26]json_value_free [20:56:26]json_value_free done [20:56:26]process_json_proto returns [20:56:26]Send response to host [20:56:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103208,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [20:56:26]free response buf [20:56:26]execute_script done [20:56:26]execute_script returns [20:56:26]free content buf [20:56:26]Sock 9.Close socket [20:56:26]Sock 9.Thread stoped [20:56:30]OFD Sender: No OFD packet to send [20:56:35]OFD Sender: No OFD packet to send [20:56:40]OFD Sender: No OFD packet to send [20:56:45]OFD Sender: No OFD packet to send [20:56:50]OFD Sender: No OFD packet to send [20:56:55]OFD Sender: No OFD packet to send [20:57:00]OFD Sender: No OFD packet to send [20:57:05]OFD Sender: No OFD packet to send [20:57:10]OFD Sender: No OFD packet to send [20:57:15]OFD Sender: No OFD packet to send [20:57:20]OFD Sender: No OFD packet to send [20:57:25]OFD Sender: No OFD packet to send [20:57:30]OFD Sender: No OFD packet to send [20:57:35]OFD Sender: No OFD packet to send [20:57:40]OFD Sender: No OFD packet to send [20:57:45]OFD Sender: No OFD packet to send [20:57:50]OFD Sender: No OFD packet to send [20:57:55]OFD Sender: No OFD packet to send [20:58:00]OFD Sender: No OFD packet to send [20:58:05]OFD Sender: No OFD packet to send [20:58:10]OFD Sender: No OFD packet to send [20:58:15]OFD Sender: No OFD packet to send [20:58:20]OFD Sender: No OFD packet to send [20:58:25]OFD Sender: No OFD packet to send [20:58:30]OFD Sender: No OFD packet to send [20:58:35]OFD Sender: No OFD packet to send [20:58:40]OFD Sender: No OFD packet to send [20:58:45]OFD Sender: No OFD packet to send [20:58:50]OFD Sender: No OFD packet to send [20:58:55]OFD Sender: No OFD packet to send [20:59:00]OFD Sender: No OFD packet to send [20:59:05]OFD Sender: No OFD packet to send [20:59:10]OFD Sender: No OFD packet to send [20:59:15]OFD Sender: No OFD packet to send [20:59:20]OFD Sender: No OFD packet to send [20:59:25]OFD Sender: No OFD packet to send [20:59:30]OFD Sender: No OFD packet to send [20:59:35]OFD Sender: No OFD packet to send [20:59:40]OFD Sender: No OFD packet to send [20:59:45]OFD Sender: No OFD packet to send [20:59:50]OFD Sender: No OFD packet to send [20:59:55]OFD Sender: No OFD packet to send [21:00:00]OFD Sender: No OFD packet to send [21:00:05]OFD Sender: No OFD packet to send [21:00:10]OFD Sender: No OFD packet to send [21:00:15]OFD Sender: No OFD packet to send [21:00:20]OFD Sender: No OFD packet to send [21:00:25]OFD Sender: No OFD packet to send [21:00:30]OFD Sender: No OFD packet to send [21:00:35]OFD Sender: No OFD packet to send [21:00:40]OFD Sender: No OFD packet to send [21:00:45]OFD Sender: No OFD packet to send [21:00:50]OFD Sender: No OFD packet to send [21:00:55]OFD Sender: No OFD packet to send [21:01:00]OFD Sender: No OFD packet to send [21:01:05]OFD Sender: No OFD packet to send [21:01:10]OFD Sender: No OFD packet to send [21:01:15]OFD Sender: No OFD packet to send [21:01:20]OFD Sender: No OFD packet to send [21:01:25]OFD Sender: No OFD packet to send [21:01:30]OFD Sender: No OFD packet to send [21:01:35]OFD Sender: No OFD packet to send [21:01:40]OFD Sender: No OFD packet to send [21:01:45]OFD Sender: No OFD packet to send [21:01:50]OFD Sender: No OFD packet to send [21:01:55]OFD Sender: No OFD packet to send [21:02:00]OFD Sender: No OFD packet to send [21:02:05]OFD Sender: No OFD packet to send [21:02:10]OFD Sender: No OFD packet to send [21:02:15]OFD Sender: No OFD packet to send [21:02:20]OFD Sender: No OFD packet to send [21:02:25]OFD Sender: No OFD packet to send [21:02:30]OFD Sender: No OFD packet to send [21:02:35]OFD Sender: No OFD packet to send [21:02:40]OFD Sender: No OFD packet to send [21:02:45]OFD Sender: No OFD packet to send [21:02:50]OFD Sender: No OFD packet to send [21:02:55]OFD Sender: No OFD packet to send [21:03:00]OFD Sender: No OFD packet to send [21:03:05]OFD Sender: No OFD packet to send [21:03:10]OFD Sender: No OFD packet to send [21:03:15]OFD Sender: No OFD packet to send [21:03:20]OFD Sender: No OFD packet to send [21:03:25]OFD Sender: No OFD packet to send [21:03:30]OFD Sender: No OFD packet to send [21:03:35]OFD Sender: No OFD packet to send [21:03:40]OFD Sender: No OFD packet to send [21:03:45]OFD Sender: No OFD packet to send [21:03:50]OFD Sender: No OFD packet to send [21:03:55]OFD Sender: No OFD packet to send [21:04:00]OFD Sender: No OFD packet to send [21:04:05]OFD Sender: No OFD packet to send [21:04:10]OFD Sender: No OFD packet to send [21:04:15]OFD Sender: No OFD packet to send [21:04:20]OFD Sender: No OFD packet to send [21:04:25]OFD Sender: No OFD packet to send [21:04:30]OFD Sender: No OFD packet to send [21:04:35]OFD Sender: No OFD packet to send [21:04:40]OFD Sender: No OFD packet to send [21:04:45]OFD Sender: No OFD packet to send [21:04:50]OFD Sender: No OFD packet to send [21:04:55]OFD Sender: No OFD packet to send [21:05:00]OFD Sender: No OFD packet to send [21:05:05]OFD Sender: No OFD packet to send [21:05:10]OFD Sender: No OFD packet to send [21:05:15]OFD Sender: No OFD packet to send [21:05:20]OFD Sender: No OFD packet to send [21:05:25]OFD Sender: No OFD packet to send [21:05:30]OFD Sender: No OFD packet to send [21:05:35]OFD Sender: No OFD packet to send [21:05:40]OFD Sender: No OFD packet to send [21:05:45]OFD Sender: No OFD packet to send [21:05:50]OFD Sender: No OFD packet to send [21:05:55]OFD Sender: No OFD packet to send [21:06:00]OFD Sender: No OFD packet to send [21:06:05]OFD Sender: No OFD packet to send [21:06:10]OFD Sender: No OFD packet to send [21:06:15]OFD Sender: No OFD packet to send [21:06:20]OFD Sender: No OFD packet to send [21:06:25]OFD Sender: No OFD packet to send [21:06:30]OFD Sender: No OFD packet to send [21:06:35]OFD Sender: No OFD packet to send [21:06:40]OFD Sender: No OFD packet to send [21:06:45]OFD Sender: No OFD packet to send [21:06:50]OFD Sender: No OFD packet to send [21:06:55]OFD Sender: No OFD packet to send [21:07:00]OFD Sender: No OFD packet to send [21:07:05]OFD Sender: No OFD packet to send [21:07:10]OFD Sender: No OFD packet to send [21:07:15]OFD Sender: No OFD packet to send [21:07:20]OFD Sender: No OFD packet to send [21:07:25]OFD Sender: No OFD packet to send [21:07:30]OFD Sender: No OFD packet to send [21:07:35]OFD Sender: No OFD packet to send [21:07:40]OFD Sender: No OFD packet to send [21:07:45]OFD Sender: No OFD packet to send [21:07:50]OFD Sender: No OFD packet to send [21:07:55]OFD Sender: No OFD packet to send [21:08:00]OFD Sender: No OFD packet to send [21:08:05]OFD Sender: No OFD packet to send [21:08:10]OFD Sender: No OFD packet to send [21:08:15]OFD Sender: No OFD packet to send [21:08:20]OFD Sender: No OFD packet to send [21:08:25]OFD Sender: No OFD packet to send [21:08:30]OFD Sender: No OFD packet to send [21:08:35]OFD Sender: No OFD packet to send [21:08:40]OFD Sender: No OFD packet to send [21:08:45]OFD Sender: No OFD packet to send [21:08:50]OFD Sender: No OFD packet to send [21:08:55]OFD Sender: No OFD packet to send [21:09:00]OFD Sender: No OFD packet to send [21:09:05]OFD Sender: No OFD packet to send [21:09:10]OFD Sender: No OFD packet to send [21:09:15]OFD Sender: No OFD packet to send [21:09:20]OFD Sender: No OFD packet to send [21:09:25]OFD Sender: No OFD packet to send [21:09:30]OFD Sender: No OFD packet to send [21:09:35]OFD Sender: No OFD packet to send [21:09:40]OFD Sender: No OFD packet to send [21:09:45]OFD Sender: No OFD packet to send [21:09:50]OFD Sender: No OFD packet to send [21:09:55]OFD Sender: No OFD packet to send [21:10:00]OFD Sender: No OFD packet to send [21:10:05]OFD Sender: No OFD packet to send [21:10:10]OFD Sender: No OFD packet to send [21:10:15]OFD Sender: No OFD packet to send [21:10:20]OFD Sender: No OFD packet to send [21:10:25]OFD Sender: No OFD packet to send [21:10:30]OFD Sender: No OFD packet to send [21:10:35]OFD Sender: No OFD packet to send [21:10:40]OFD Sender: No OFD packet to send [21:10:45]OFD Sender: No OFD packet to send [21:10:50]OFD Sender: No OFD packet to send [21:10:55]OFD Sender: No OFD packet to send [21:11:00]OFD Sender: No OFD packet to send [21:11:05]OFD Sender: No OFD packet to send [21:11:10]OFD Sender: No OFD packet to send [21:11:15]OFD Sender: No OFD packet to send [21:11:20]OFD Sender: No OFD packet to send [21:11:25]OFD Sender: No OFD packet to send [21:11:30]OFD Sender: No OFD packet to send [21:11:35]OFD Sender: No OFD packet to send [21:11:40]OFD Sender: No OFD packet to send [21:11:45]OFD Sender: No OFD packet to send [21:11:50]OFD Sender: No OFD packet to send [21:11:55]OFD Sender: No OFD packet to send [21:12:00]OFD Sender: No OFD packet to send [21:12:05]OFD Sender: No OFD packet to send [21:12:10]OFD Sender: No OFD packet to send [21:12:15]OFD Sender: No OFD packet to send [21:12:20]OFD Sender: No OFD packet to send [21:12:25]OFD Sender: No OFD packet to send [21:12:31]OFD Sender: No OFD packet to send [21:12:36]OFD Sender: No OFD packet to send [21:12:41]OFD Sender: No OFD packet to send [21:12:46]OFD Sender: No OFD packet to send [21:12:51]OFD Sender: No OFD packet to send [21:12:56]OFD Sender: No OFD packet to send [21:13:01]OFD Sender: No OFD packet to send [21:13:06]OFD Sender: No OFD packet to send [21:13:11]OFD Sender: No OFD packet to send [21:13:16]OFD Sender: No OFD packet to send [21:13:21]OFD Sender: No OFD packet to send [21:13:26]OFD Sender: No OFD packet to send [21:13:31]OFD Sender: No OFD packet to send [21:13:36]OFD Sender: No OFD packet to send [21:13:41]OFD Sender: No OFD packet to send [21:13:46]OFD Sender: No OFD packet to send [21:13:51]OFD Sender: No OFD packet to send [21:13:56]OFD Sender: No OFD packet to send [21:14:01]OFD Sender: No OFD packet to send [21:14:06]OFD Sender: No OFD packet to send [21:14:11]OFD Sender: No OFD packet to send [21:14:16]OFD Sender: No OFD packet to send [21:14:21]OFD Sender: No OFD packet to send [21:14:26]OFD Sender: No OFD packet to send [21:14:31]OFD Sender: No OFD packet to send [21:14:36]OFD Sender: No OFD packet to send [21:14:41]OFD Sender: No OFD packet to send [21:14:46]OFD Sender: No OFD packet to send [21:14:51]OFD Sender: No OFD packet to send [21:14:56]OFD Sender: No OFD packet to send [21:15:01]OFD Sender: No OFD packet to send [21:15:06]OFD Sender: No OFD packet to send [21:15:11]OFD Sender: No OFD packet to send [21:15:16]OFD Sender: No OFD packet to send [21:15:21]OFD Sender: No OFD packet to send [21:15:26]OFD Sender: No OFD packet to send [21:15:31]OFD Sender: No OFD packet to send [21:15:36]OFD Sender: No OFD packet to send [21:15:41]OFD Sender: No OFD packet to send [21:15:46]OFD Sender: No OFD packet to send [21:15:51]OFD Sender: No OFD packet to send [21:15:56]OFD Sender: No OFD packet to send [21:16:01]OFD Sender: No OFD packet to send [21:16:06]OFD Sender: No OFD packet to send [21:16:11]OFD Sender: No OFD packet to send [21:16:16]OFD Sender: No OFD packet to send [21:16:21]OFD Sender: No OFD packet to send [21:16:26]OFD Sender: No OFD packet to send [21:16:31]OFD Sender: No OFD packet to send [21:16:36]OFD Sender: No OFD packet to send [21:16:41]OFD Sender: No OFD packet to send [21:16:46]OFD Sender: No OFD packet to send [21:16:51]OFD Sender: No OFD packet to send [21:16:56]OFD Sender: No OFD packet to send [21:17:01]OFD Sender: No OFD packet to send [21:17:06]OFD Sender: No OFD packet to send [21:17:11]OFD Sender: No OFD packet to send [21:17:16]OFD Sender: No OFD packet to send [21:17:21]OFD Sender: No OFD packet to send [21:17:26]OFD Sender: No OFD packet to send [21:17:31]OFD Sender: No OFD packet to send [21:17:36]OFD Sender: No OFD packet to send [21:17:41]OFD Sender: No OFD packet to send [21:17:46]OFD Sender: No OFD packet to send [21:17:51]OFD Sender: No OFD packet to send [21:17:56]OFD Sender: No OFD packet to send [21:18:01]OFD Sender: No OFD packet to send [21:18:06]OFD Sender: No OFD packet to send [21:18:11]OFD Sender: No OFD packet to send [21:18:16]OFD Sender: No OFD packet to send [21:18:21]OFD Sender: No OFD packet to send [21:18:26]OFD Sender: No OFD packet to send [21:18:31]OFD Sender: No OFD packet to send [21:18:36]OFD Sender: No OFD packet to send [21:18:41]OFD Sender: No OFD packet to send [21:18:46]OFD Sender: No OFD packet to send [21:18:51]OFD Sender: No OFD packet to send [21:18:56]OFD Sender: No OFD packet to send [21:19:01]OFD Sender: No OFD packet to send [21:19:06]OFD Sender: No OFD packet to send [21:19:11]OFD Sender: No OFD packet to send [21:19:16]OFD Sender: No OFD packet to send [21:19:21]OFD Sender: No OFD packet to send [21:19:26]OFD Sender: No OFD packet to send [21:19:31]OFD Sender: No OFD packet to send [21:19:36]OFD Sender: No OFD packet to send [21:19:41]OFD Sender: No OFD packet to send [21:19:46]OFD Sender: No OFD packet to send [21:19:51]OFD Sender: No OFD packet to send [21:19:56]OFD Sender: No OFD packet to send [21:20:01]OFD Sender: No OFD packet to send [21:20:06]OFD Sender: No OFD packet to send [21:20:11]OFD Sender: No OFD packet to send [21:20:16]OFD Sender: No OFD packet to send [21:20:21]OFD Sender: No OFD packet to send [21:20:26]OFD Sender: No OFD packet to send [21:20:31]OFD Sender: No OFD packet to send [21:20:36]OFD Sender: No OFD packet to send [21:20:41]OFD Sender: No OFD packet to send [21:20:46]OFD Sender: No OFD packet to send [21:20:51]OFD Sender: No OFD packet to send [21:20:56]OFD Sender: No OFD packet to send [21:21:01]OFD Sender: No OFD packet to send [21:21:06]OFD Sender: No OFD packet to send [21:21:11]OFD Sender: No OFD packet to send [21:21:16]OFD Sender: No OFD packet to send [21:21:21]OFD Sender: No OFD packet to send [21:21:26]OFD Sender: No OFD packet to send [21:21:31]OFD Sender: No OFD packet to send [21:21:36]OFD Sender: No OFD packet to send [21:21:41]OFD Sender: No OFD packet to send [21:21:46]OFD Sender: No OFD packet to send [21:21:51]OFD Sender: No OFD packet to send [21:21:56]OFD Sender: No OFD packet to send [21:22:01]OFD Sender: No OFD packet to send [21:22:06]OFD Sender: No OFD packet to send [21:22:11]OFD Sender: No OFD packet to send [21:22:16]OFD Sender: No OFD packet to send [21:22:21]OFD Sender: No OFD packet to send [21:22:26]OFD Sender: No OFD packet to send [21:22:31]OFD Sender: No OFD packet to send [21:22:36]OFD Sender: No OFD packet to send [21:22:41]OFD Sender: No OFD packet to send [21:22:46]OFD Sender: No OFD packet to send [21:22:51]OFD Sender: No OFD packet to send [21:22:56]OFD Sender: No OFD packet to send [21:23:01]OFD Sender: No OFD packet to send [21:23:06]OFD Sender: No OFD packet to send [21:23:11]OFD Sender: No OFD packet to send [21:23:16]OFD Sender: No OFD packet to send [21:23:21]OFD Sender: No OFD packet to send [21:23:26]OFD Sender: No OFD packet to send [21:23:31]OFD Sender: No OFD packet to send [21:23:36]OFD Sender: No OFD packet to send [21:23:41]OFD Sender: No OFD packet to send [21:23:46]OFD Sender: No OFD packet to send [21:23:51]OFD Sender: No OFD packet to send [21:23:56]OFD Sender: No OFD packet to send [21:24:01]OFD Sender: No OFD packet to send [21:24:06]OFD Sender: No OFD packet to send [21:24:11]OFD Sender: No OFD packet to send [21:24:16]OFD Sender: No OFD packet to send [21:24:21]OFD Sender: No OFD packet to send [21:24:26]OFD Sender: No OFD packet to send [21:24:31]OFD Sender: No OFD packet to send [21:24:36]OFD Sender: No OFD packet to send [21:24:41]OFD Sender: No OFD packet to send [21:24:46]OFD Sender: No OFD packet to send [21:24:51]OFD Sender: No OFD packet to send [21:24:56]OFD Sender: No OFD packet to send [21:25:01]OFD Sender: No OFD packet to send [21:25:06]OFD Sender: No OFD packet to send [21:25:11]OFD Sender: No OFD packet to send [21:25:16]OFD Sender: No OFD packet to send [21:25:21]OFD Sender: No OFD packet to send [21:25:26]OFD Sender: No OFD packet to send [21:25:31]OFD Sender: No OFD packet to send [21:25:36]OFD Sender: No OFD packet to send [21:25:41]OFD Sender: No OFD packet to send [21:25:46]OFD Sender: No OFD packet to send [21:25:51]OFD Sender: No OFD packet to send [21:25:56]OFD Sender: No OFD packet to send [21:26:01]OFD Sender: No OFD packet to send [21:26:06]OFD Sender: No OFD packet to send [21:26:11]OFD Sender: No OFD packet to send [21:26:16]OFD Sender: No OFD packet to send [21:26:21]OFD Sender: No OFD packet to send [21:26:26]OFD Sender: No OFD packet to send [21:26:31]OFD Sender: No OFD packet to send [21:26:36]OFD Sender: No OFD packet to send [21:26:41]OFD Sender: No OFD packet to send [21:26:46]OFD Sender: No OFD packet to send [21:26:51]OFD Sender: No OFD packet to send [21:26:56]OFD Sender: No OFD packet to send [21:27:01]OFD Sender: No OFD packet to send [21:27:06]OFD Sender: No OFD packet to send [21:27:11]OFD Sender: No OFD packet to send [21:27:16]OFD Sender: No OFD packet to send [21:27:21]OFD Sender: No OFD packet to send [21:27:26]OFD Sender: No OFD packet to send [21:27:31]OFD Sender: No OFD packet to send [21:27:36]OFD Sender: No OFD packet to send [21:27:41]OFD Sender: No OFD packet to send [21:27:46]OFD Sender: No OFD packet to send [21:27:51]OFD Sender: No OFD packet to send [21:27:56]OFD Sender: No OFD packet to send [21:28:01]OFD Sender: No OFD packet to send [21:28:06]OFD Sender: No OFD packet to send [21:28:11]OFD Sender: No OFD packet to send [21:28:16]OFD Sender: No OFD packet to send [21:28:21]OFD Sender: No OFD packet to send [21:28:26]OFD Sender: No OFD packet to send [21:28:31]OFD Sender: No OFD packet to send [21:28:36]OFD Sender: No OFD packet to send [21:28:41]OFD Sender: No OFD packet to send [21:28:46]OFD Sender: No OFD packet to send [21:28:51]OFD Sender: No OFD packet to send [21:28:56]OFD Sender: No OFD packet to send [21:29:01]OFD Sender: No OFD packet to send [21:29:06]OFD Sender: No OFD packet to send [21:29:11]OFD Sender: No OFD packet to send [21:29:16]OFD Sender: No OFD packet to send [21:29:21]OFD Sender: No OFD packet to send [21:29:26]OFD Sender: No OFD packet to send [21:29:28]accept exits with 7 [21:29:28]New connection [21:29:28]New thread 3067260260 created [21:29:28]Thread 3067116900 joined [21:29:28]Waiting for new connection... [21:29:28] Sock 7.Parse request [21:29:28]Sock 7.Check first char [21:29:28]Sock 7.First char is OK [21:29:28]request: POST /json_proto HTTP/1.0 [21:29:28]Method: POST [21:29:28]URL: /json_proto [21:29:28]Method is POST - this is cgi request [21:29:28]url: /json_proto [21:29:28]query_string will be loaded in cgi processing [21:29:28]execute_cgi json_proto POST (null) [21:29:28]execute_cgi path=json_proto method=POST [21:29:28]POST find Content-Length [21:29:28]Host: 172.17.58.3:8080 [21:29:28]Content-Length: 621 [21:29:28]Content-Type: application/json [21:29:28] [21:29:28]POST finish read [21:29:28]Found Content-Length = 621 [21:29:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)34512", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:29:28]execute_script... [21:29: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 : (3)34512", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:29:28]POST & json_proto [21:29:28]process_json_proto [21:29:28]json parsed OK: [21:29:28]protocol is kg_v1.0 [21:29:28]action value=close_receipt [21:29:28]process_action close_receipt [21:29:28]cmd_close_receipt [21:29:28]MH_GetDate [21:29:28]Write to MH i2c: F0 00 00 8A 0F 88 [21:29:28]Write i2c OK [21:29:28]MH_I2C_Read... [21:29:28]Read from MH i2c: F0 [21:29:28]MH_I2C_Read... [21:29:28]Read from MH i2c: F0 09 00 [21:29:28]MH_I2C_Read... [21:29:28]Read from MH i2c: F0 09 00 8A 0F 00 3A D0 BB 66 DC E4 6D 64 4D [21:29:28]GetLastDocTimeStamp 1723582583 [21:29:28]current date 1723584570 [21:29:28]FM_GetShiftState [21:29:28]SAM_PROTO_GetShiftState [21:29:28]wFMCommunicate request_size=4 [21:29:28]MH_SAM_APDU [21:29:28]CAPDU: 80 13 01 00 [21:29:28]Write to MH i2c: E2 08 00 8B 0F 80 13 01 00 00 00 00 00 17 [21:29:28]Write i2c OK [21:29:28]MH_I2C_Read... [21:29:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:29:28]Read from MH i2c: E2 [21:29:28]MH_I2C_Read... [21:29:28]Read from MH i2c: E2 0E 00 [21:29:28]MH_I2C_Read... [21:29:28]Read from MH i2c: E2 0E 00 8B 0F 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 35 [21:29:28]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [21:29:28]wFMCommunicate OK [21:29:28]SAM_PROTO_GetShiftState done [21:29:28]FM_GetShiftState done [21:29:28]opened in 1723506770 [21:29:28]opened+sec_in_day 1723593170 [21:29:28]quantity*price = 15000 [21:29:28]sum+1 = 15001 [21:29:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 120 13.08.2024 21:29 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103209 ФПД: 114174929402617 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T212930&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103209&fm=114174929402617&tin=02508201610067®Number=0000000000092718&sum=15000 0 [21:29:29]StoreToDocumentArchive [21:29:29]shift 464 fd 103209 [21:29:29]save to /storage/0464/doc_00103209 [21:29:29]save last doc name /storage/0464/doc_00103209 to /storage/kkm_last_doc_name [21:29:29]save OK [21:29:29]Clear old archive folders... [21:29:29]ProcessDocumentItem done err = 0, tmpTLVsize=274 [21:29:29]tlvbuf is 0023F660 [21:29:29]SAM_PROTO_ClearQueue [21:29:29]wFMCommunicate request_size=4 [21:29:29]MH_SAM_APDU [21:29:29]CAPDU: 80 09 00 00 [21:29:29]Write to MH i2c: E2 08 00 98 0F 80 09 00 00 00 00 00 00 19 [21:29:29]Write i2c OK [21:29:29]MH_I2C_Read... [21:29:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:29:29]Read from MH i2c: E2 [21:29:29]MH_I2C_Read... [21:29:29]Read from MH i2c: E2 03 00 [21:29:29]MH_I2C_Read... [21:29:29]Read from MH i2c: E2 03 00 98 0F 00 90 00 1B [21:29:29]RAPDU: 90 00 [21:29:29]wFMCommunicate OK [21:29:29]SAM_PROTO_ClearQueue done [21:29:29]KKMCreateOFDPacket [21:29:29]OFDProtocolAddRootSTLVToBuf [21:29:29]FM_MakeSignedData [21:29:29]FM_MakeSignedData [21:29:29]SAM_PROTO_SignData [21:29:29]wFMCommunicate request_size=4 [21:29:29]MH_SAM_APDU [21:29:29]CAPDU: 80 0D 01 02 [21:29:29]Write to MH i2c: E2 08 00 99 0F 80 0D 01 02 00 00 00 00 21 [21:29:29]Write i2c OK [21:29:29]MH_I2C_Read... [21:29:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:29:29]Read from MH i2c: E2 [21:29:29]MH_I2C_Read... [21:29:29]Read from MH i2c: E2 03 00 [21:29:29]MH_I2C_Read... [21:29:29]Read from MH i2c: E2 03 00 99 0F 00 90 00 1C [21:29:29]RAPDU: 90 00 [21:29:29]wFMCommunicate OK [21:29:29]wFMCommunicate request_size=255 [21:29:29]MH_SAM_APDU [21:29:29]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 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 39 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 78 00 00 00 F4 03 04 00 3A D0 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 [21:29:29]Write to MH i2c: E2 02 01 9A 0F 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 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 39 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 78 00 00 00 F4 03 04 00 3A D0 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 00 00 34 [21:29:29]Write i2c OK [21:29:29]MH_I2C_Read... [21:29:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:29:29]Read from MH i2c: E2 [21:29:29]MH_I2C_Read... [21:29:29]Read from MH i2c: E2 03 00 [21:29:29]MH_I2C_Read... [21:29:29]Read from MH i2c: E2 03 00 9A 0F 00 90 00 1D [21:29:29]RAPDU: 90 00 [21:29:29]wFMCommunicate OK [21:29:29]wFMCommunicate request_size=33 [21:29:29]MH_SAM_APDU [21:29:29]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 35 38 10 04 04 00 29 93 01 00 35 04 06 00 67 D7 6C 1B FA F9 [21:29:29]Write to MH i2c: E2 24 00 9B 0F 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 35 38 10 04 04 00 29 93 01 00 35 04 06 00 67 D7 6C 1B FA F9 00 00 29 [21:29:29]Write i2c OK [21:29:29]MH_I2C_Read... [21:29:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:29:30]Read from MH i2c: E2 [21:29:30]MH_I2C_Read... [21:29:30]Read from MH i2c: E2 03 00 [21:29:30]MH_I2C_Read... [21:29:30]Read from MH i2c: E2 03 00 9B 0F 00 90 00 1E [21:29:30]RAPDU: 90 00 [21:29:30]wFMCommunicate OK [21:29:30]wFMCommunicate request_size=4 [21:29:30]MH_SAM_APDU [21:29:30]CAPDU: 80 0D 03 02 [21:29:30]Write to MH i2c: E2 08 00 9C 0F 80 0D 03 02 00 00 00 00 26 [21:29:30]Write i2c OK [21:29:30]MH_I2C_Read... [21:29:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:29:30]Read from MH i2c: E2 [21:29:30]MH_I2C_Read... [21:29:30]Read from MH i2c: E2 0B 00 [21:29:30]MH_I2C_Read... [21:29:30]Read from MH i2c: E2 0B 00 9C 0F 00 8D 76 B3 18 FA 8F 0F 92 90 00 1F [21:29:30]RAPDU: 8D 76 B3 18 FA 8F 0F 92 90 00 [21:29:30]wFMCommunicate OK [21:29:30]SAM_PROTO_SignData done [21:29:30]FM_MakeSignedData done [21:29:30]CreateOFDProtocolMessage [21:29:30]wFMCommunicate request_size=4 [21:29:30]MH_SAM_APDU [21:29:30]CAPDU: 80 11 00 00 [21:29:30]Write to MH i2c: E2 08 00 9D 0F 80 11 00 00 00 00 00 00 26 [21:29:30]Write i2c OK [21:29:30]MH_I2C_Read... [21:29:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:29:30]Read from MH i2c: E2 [21:29:30]MH_I2C_Read... [21:29:30]Read from MH i2c: E2 17 00 [21:29:30]MH_I2C_Read... [21:29:30]Read from MH i2c: E2 17 00 9D 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 7A [21:29:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [21:29:30]wFMCommunicate OK [21:29:30]CreateOFDProtocolMessage done [21:29:30]OFDSenderStorePacket 103209 [21:29:30]StoreOFDPacket docnum=103209 [21:29:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 26 01 00 00 DE 17 1E 01 5C 07 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 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 39 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 78 00 00 00 F4 03 04 00 3A D0 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 29 93 01 00 35 04 06 00 67 D7 6C 1B FA F9 8D 76 B3 18 FA 8F 0F 92 [21:29:30]CheckFolder [21:29:30]dirname=/storage/ofd_packets [21:29:30]CheckFolder done [21:29:30]ProducePacketName [21:29:30]name=ofd_packets/00103209 [21:29:30]NVStorageSaveData ofd_packets/00103209 [21:29:30]File name is /storage/ofd_packets/00103209 [21:29:30]Write 324 bytes [21:29:30]NVStorageSaveData done [21:29:30]OFDSenderStorePacket done [21:29:30]KKMCreateOFDPacket done [21:29:30]NVStorageSaveData kkm_last_timestamp [21:29:30]File name is /storage/kkm_last_timestamp [21:29:30]Write 4 bytes [21:29:30]NVStorageSaveData done [21:29:30]ExternCall_PrintAddStr [21:29:30]wPrintStart [21:29:30]Write to MH i2c: 01 00 00 9E 0F AD [21:29:30]Write i2c OK [21:29:30]MH_I2C_Read... [21:29:30]Read from MH i2c: 01 [21:29:30]MH_I2C_Read... [21:29:30]Read from MH i2c: 01 07 00 [21:29:30]MH_I2C_Read... [21:29:30]Read from MH i2c: 01 07 00 9E 0F 00 00 00 00 00 FF 0F C2 [21:29:30]RasterBufferAndPrint [21:29:30]line Счет N : (3)34512 [21:29:30]line ИНН: 02508201610067 [21:29:30]line Контрольно-Кассовый Чек [21:29:30]line ПРОДАЖА [21:29:30]line Товар: 4640030091645 [21:29:30]line Сигареты ESSE Exchange M [21:29:30]line 1.000 * 150.00 [21:29:30]line = 150.00 [21:29:30]line НДС 12% НСП 1% [21:29:30]line > о реализуемом товаре [21:29:30]line ИТОГО: 150.00 [21:29:30]line НСП 1% : 1.33 [21:29:30]line НДС 12% : 15.93 [21:29:30]line Наличными: 150.00 [21:29:30]line Безнал.: 0.00 [21:29:30]line Место: АЗС № 38 "Партнер Нефть" [21:29:30]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [21:29:30]line СНО: Общий режим [21:29:30]line Чек 120 13.08.2024 21:29 [21:29:30]line Смена: 464 ФФД: 1.0 [21:29:30]line ЗНМ: 0300000126 [21:29:30]line РНМ: 0000000000092718 [21:29:30]line Версия ККМ: 001 [21:29:30]line ФМ: 0000000000875058 [21:29:30]line ФД: 103209 [21:29:30]line ФПД: 114174929402617 [21:29:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T212930&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103209&fm=114174929402617&tin=02508201610067®Number=0000000000092718&sum=15000 [21:29:30]OFD Sender: Processing packet 103209 [packets to send 69, broken 68] [21:29:30]ProducePacketName [21:29:30]name=ofd_packets/00103209 [21:29:30]OFD Sender: To server: pG, [21:29:30]CommunicateWithHost lk.salyk.kg:30040 [21:29:30]ConnectInit lk.salyk.kg [21:29:30]line 0 [21:29:30]written 0, free lines is 4095 [21:29:30]Connected sock=10 [21:29:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 26 01 00 00 DE 17 1E 01 5C 07 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 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 39 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 78 00 00 00 F4 03 04 00 3A D0 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 29 93 01 00 35 04 06 00 67 D7 6C 1B FA F9 8D 76 B3 18 FA 8F 0F 92 [21:29:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 AE B2 47 00 D1 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 35 30 35 38 10 04 04 00 29 93 01 00 F4 03 04 00 AC 76 BB 66 B6 04 01 00 00 B7 8E 14 B0 A9 60 8C C8 [21:29:30]CommunicateWithHost err = 0 [21:29:30]CheckOFDResponse [21:29:30]1017 (14) - 77093643461234 [21:29:30]1041 (16) - 0000000000875058 [21:29:30]1040 (4) - 103209 [21:29:30]1012 (4) - 13.08.2024 15:07 [21:29:30]1206 (1) - 0 [21:29:30]OFD Sender: Remove packet 103209 [21:29:30]ProducePacketName [21:29:30]name=ofd_packets/00103209 [21:29:30]NVStorageDeleteData [21:29:30]Write to MH i2c: 01 00 00 C6 0F D5 [21:29:30]Write i2c OK [21:29:30]MH_I2C_Read... [21:29:30]Read from MH i2c: 01 [21:29:30]MH_I2C_Read... [21:29:30]Read from MH i2c: 01 07 00 [21:29:30]MH_I2C_Read... [21:29:30]Read from MH i2c: 01 07 00 C6 0F 00 00 00 00 00 11 0D FA [21:29:30]RasterBufferAndPrint [21:29:30]line [21:29:30]line [21:29:30]line [21:29:30]line [21:29:30]line [21:29:30]written 0, free lines is 3350 [21:29:30]MH_Cut [21:29:30]Write to MH i2c: D1 01 00 CD 0F 01 AE [21:29:30]Write i2c OK [21:29:30]MH_I2C_Read... [21:29:30]Read from MH i2c: D1 [21:29:30]MH_I2C_Read... [21:29:30]Read from MH i2c: D1 01 00 [21:29:30]MH_I2C_Read... [21:29:30]Read from MH i2c: D1 01 00 CD 0F 00 AD [21:29:30]Write to MH i2c: 01 00 00 CE 0F DD [21:29:30]Write i2c OK [21:29:30]MH_I2C_Read... [21:29:31]OFD Sender: No OFD packet to send [21:29:31]*** Cut start [21:29:31]*** Purtial cut [21:29:31]*** CUTSNS_PIN = 0 [21:29:31]*** Stage 1: CUTSNS_PIN = 1 [21:29:33]Read from MH i2c: 01 [21:29:33]MH_I2C_Read... [21:29:33]*** Stop cut motor [21:29:33]*** Cut end [21:29:33]Read from MH i2c: 01 07 00 [21:29:33]MH_I2C_Read... [21:29:33]Read from MH i2c: 01 07 00 CE 0F 00 00 00 00 00 FF 0F F2 [21:29:33]process_action close_receipt done [21:29:33]requested_data is exist [21:29:33]produce_requested_data [21:29:33]requested_item fm.sn is exist - process it [21:29:33]wFMCommunicate request_size=4 [21:29:33]MH_SAM_APDU [21:29:33]CAPDU: 80 11 00 00 [21:29:33]Write to MH i2c: E2 08 00 CF 0F 80 11 00 00 00 00 00 00 58 [21:29:33]Write i2c OK [21:29:33]MH_I2C_Read... [21:29:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:29:33]Read from MH i2c: E2 [21:29:33]MH_I2C_Read... [21:29:33]Read from MH i2c: E2 17 00 [21:29:33]MH_I2C_Read... [21:29:33]Read from MH i2c: E2 17 00 CF 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 AC [21:29:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [21:29:33]wFMCommunicate OK [21:29:33]requested_item fd.num is exist - process it [21:29:33]SAM_PROTO_GetFieldsCounters [21:29:33]wFMCommunicate request_size=4 [21:29:33]MH_SAM_APDU [21:29:33]CAPDU: 80 13 00 00 [21:29:33]Write to MH i2c: E2 08 00 D0 0F 80 13 00 00 00 00 00 00 5B [21:29:33]Write i2c OK [21:29:33]MH_I2C_Read... [21:29:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:29:33]Read from MH i2c: E2 [21:29:33]MH_I2C_Read... [21:29:33]Read from MH i2c: E2 62 00 [21:29:33]MH_I2C_Read... [21:29:33]Read from MH i2c: E2 62 00 D0 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 29 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [21:29:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 29 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:29:33]wFMCommunicate OK [21:29:33]SAM_PROTO_GetFieldsCounters done [21:29:33]requested_item shift.num is exist - process it [21:29:33]requested_item shift.opened is exist - process it [21:29:33]req_shift_opened [21:29:33]FM_GetShiftState [21:29:33]SAM_PROTO_GetShiftState [21:29:33]wFMCommunicate request_size=4 [21:29:33]MH_SAM_APDU [21:29:33]CAPDU: 80 13 01 00 [21:29:33]Write to MH i2c: E2 08 00 D1 0F 80 13 01 00 00 00 00 00 5D [21:29:33]Write i2c OK [21:29:33]MH_I2C_Read... [21:29:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:29:33]Read from MH i2c: E2 [21:29:33]MH_I2C_Read... [21:29:33]Read from MH i2c: E2 0E 00 [21:29:33]MH_I2C_Read... [21:29:33]Read from MH i2c: E2 0E 00 D1 0F 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 7B [21:29:33]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [21:29:33]wFMCommunicate OK [21:29:33]SAM_PROTO_GetShiftState done [21:29:33]FM_GetShiftState done [21:29:33]req_shift_opened done [21:29:33]requested_item shift.open_date is exist - process it [21:29:33]req_shift_open_date [21:29:33]req_shift_open_date done [21:29:33]produce_requested_data done [21:29:33]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103209,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [21:29:33]process_action_free close_receipt [21:29:33]json_value_free [21:29:33]json_value_free done [21:29:33]process_json_proto returns [21:29:33]Send response to host [21:29:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103209,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [21:29:33]free response buf [21:29:33]execute_script done [21:29:33]execute_script returns [21:29:33]free content buf [21:29:33]Sock 7.Close socket [21:29:33]Sock 7.Thread stoped [21:29:36]OFD Sender: No OFD packet to send [21:29:41]OFD Sender: No OFD packet to send [21:29:46]OFD Sender: No OFD packet to send [21:29:51]OFD Sender: No OFD packet to send [21:29:56]OFD Sender: No OFD packet to send [21:30:01]OFD Sender: No OFD packet to send [21:30:06]OFD Sender: No OFD packet to send [21:30:11]OFD Sender: No OFD packet to send [21:30:16]OFD Sender: No OFD packet to send [21:30:21]OFD Sender: No OFD packet to send [21:30:26]OFD Sender: No OFD packet to send [21:30:31]OFD Sender: No OFD packet to send [21:30:36]OFD Sender: No OFD packet to send [21:30:41]OFD Sender: No OFD packet to send [21:30:46]OFD Sender: No OFD packet to send [21:30:51]OFD Sender: No OFD packet to send [21:30:56]OFD Sender: No OFD packet to send [21:31:01]OFD Sender: No OFD packet to send [21:31:06]OFD Sender: No OFD packet to send [21:31:11]OFD Sender: No OFD packet to send [21:31:16]OFD Sender: No OFD packet to send [21:31:21]OFD Sender: No OFD packet to send [21:31:26]OFD Sender: No OFD packet to send [21:31:31]OFD Sender: No OFD packet to send [21:31:36]OFD Sender: No OFD packet to send [21:31:41]OFD Sender: No OFD packet to send [21:31:46]OFD Sender: No OFD packet to send [21:31:51]OFD Sender: No OFD packet to send [21:31:56]OFD Sender: No OFD packet to send [21:32:01]OFD Sender: No OFD packet to send [21:32:06]OFD Sender: No OFD packet to send [21:32:11]OFD Sender: No OFD packet to send [21:32:16]OFD Sender: No OFD packet to send [21:32:21]OFD Sender: No OFD packet to send [21:32:26]OFD Sender: No OFD packet to send [21:32:31]OFD Sender: No OFD packet to send [21:32:36]OFD Sender: No OFD packet to send [21:32:41]OFD Sender: No OFD packet to send [21:32:46]OFD Sender: No OFD packet to send [21:32:51]OFD Sender: No OFD packet to send [21:32:56]OFD Sender: No OFD packet to send [21:33:01]OFD Sender: No OFD packet to send [21:33:06]OFD Sender: No OFD packet to send [21:33:11]OFD Sender: No OFD packet to send [21:33:16]OFD Sender: No OFD packet to send [21:33:21]OFD Sender: No OFD packet to send [21:33:26]OFD Sender: No OFD packet to send [21:33:31]OFD Sender: No OFD packet to send [21:33:36]OFD Sender: No OFD packet to send [21:33:41]OFD Sender: No OFD packet to send [21:33:46]OFD Sender: No OFD packet to send [21:33:51]OFD Sender: No OFD packet to send [21:33:56]OFD Sender: No OFD packet to send [21:34:01]OFD Sender: No OFD packet to send [21:34:06]OFD Sender: No OFD packet to send [21:34:11]OFD Sender: No OFD packet to send [21:34:16]OFD Sender: No OFD packet to send [21:34:21]OFD Sender: No OFD packet to send [21:34:26]OFD Sender: No OFD packet to send [21:34:31]OFD Sender: No OFD packet to send [21:34:36]OFD Sender: No OFD packet to send [21:34:41]OFD Sender: No OFD packet to send [21:34:46]OFD Sender: No OFD packet to send [21:34:51]OFD Sender: No OFD packet to send [21:34:56]OFD Sender: No OFD packet to send [21:35:01]OFD Sender: No OFD packet to send [21:35:06]OFD Sender: No OFD packet to send [21:35:11]OFD Sender: No OFD packet to send [21:35:16]OFD Sender: No OFD packet to send [21:35:21]OFD Sender: No OFD packet to send [21:35:26]OFD Sender: No OFD packet to send [21:35:31]OFD Sender: No OFD packet to send [21:35:36]OFD Sender: No OFD packet to send [21:35:41]OFD Sender: No OFD packet to send [21:35:46]OFD Sender: No OFD packet to send [21:35:51]OFD Sender: No OFD packet to send [21:35:56]OFD Sender: No OFD packet to send [21:36:01]OFD Sender: No OFD packet to send [21:36:06]OFD Sender: No OFD packet to send [21:36:11]OFD Sender: No OFD packet to send [21:36:16]OFD Sender: No OFD packet to send [21:36:21]OFD Sender: No OFD packet to send [21:36:26]OFD Sender: No OFD packet to send [21:36:31]OFD Sender: No OFD packet to send [21:36:36]OFD Sender: No OFD packet to send [21:36:41]OFD Sender: No OFD packet to send [21:36:46]OFD Sender: No OFD packet to send [21:36:49]accept exits with 9 [21:36:49]New connection [21:36:49]New thread 3067116900 created [21:36:49]Thread 3067260260 joined [21:36:49]Waiting for new connection... [21:36:49] Sock 9.Parse request [21:36:49]Sock 9.Check first char [21:36:49]Sock 9.First char is OK [21:36:49]request: POST /json_proto HTTP/1.0 [21:36:49]Method: POST [21:36:49]URL: /json_proto [21:36:49]Method is POST - this is cgi request [21:36:49]url: /json_proto [21:36:49]query_string will be loaded in cgi processing [21:36:49]execute_cgi json_proto POST (null) [21:36:49]execute_cgi path=json_proto method=POST [21:36:49]POST find Content-Length [21:36:49]Host: 172.17.58.3:8080 [21:36:49]Content-Length: 815 [21:36:49]Content-Type: application/json [21:36:49] [21:36:49]POST finish read [21:36:49]Found Content-Length = 815 [21:36:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:36:49]execute_script... [21:36: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)160838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:36:49]POST & json_proto [21:36:49]process_json_proto [21:36:49]json parsed OK: [21:36:49]protocol is kg_v1.0 [21:36:49]action value=close_receipt [21:36:49]process_action close_receipt [21:36:49]cmd_close_receipt [21:36:49]MH_GetDate [21:36:49]Write to MH i2c: F0 00 00 D2 0F D0 [21:36:49]Write i2c OK [21:36:49]MH_I2C_Read... [21:36:49]Read from MH i2c: F0 [21:36:49]MH_I2C_Read... [21:36:49]Read from MH i2c: F0 09 00 [21:36:49]MH_I2C_Read... [21:36:49]Read from MH i2c: F0 09 00 D2 0F 00 F3 D1 BB 66 DC E4 6D 64 4F [21:36:49]GetLastDocTimeStamp 1723584570 [21:36:50]current date 1723585011 [21:36:50]FM_GetShiftState [21:36:50]SAM_PROTO_GetShiftState [21:36:50]wFMCommunicate request_size=4 [21:36:50]MH_SAM_APDU [21:36:50]CAPDU: 80 13 01 00 [21:36:50]Write to MH i2c: E2 08 00 D3 0F 80 13 01 00 00 00 00 00 5F [21:36:50]Write i2c OK [21:36:50]MH_I2C_Read... [21:36:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:36:50]Read from MH i2c: E2 [21:36:50]MH_I2C_Read... [21:36:50]Read from MH i2c: E2 0E 00 [21:36:50]MH_I2C_Read... [21:36:50]Read from MH i2c: E2 0E 00 D3 0F 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 7D [21:36:50]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [21:36:50]wFMCommunicate OK [21:36:50]SAM_PROTO_GetShiftState done [21:36:50]FM_GetShiftState done [21:36:50]opened in 1723506770 [21:36:50]opened+sec_in_day 1723593170 [21:36:50]quantity*price = 50018 [21:36:50]sum+1 = 50019 [21:36:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.18 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.18 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 121 13.08.2024 21:36 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875058 ФД: 103210 ФПД: 135889721960475 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T213651&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103210&fm=135889721960475&tin=02508201610067®Number=0000000000092718&sum=50018 [21:36:51]StoreToDocumentArchive [21:36:51]shift 464 fd 103210 [21:36:51]save to /storage/0464/doc_00103210 [21:36:51]save last doc name /storage/0464/doc_00103210 to /storage/kkm_last_doc_name [21:36:51]save OK [21:36:51]Clear old archive folders... [21:36:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:36:51]tlvbuf is 0022B760 [21:36:51]SAM_PROTO_ClearQueue [21:36:51]wFMCommunicate request_size=4 [21:36:51]MH_SAM_APDU [21:36:51]CAPDU: 80 09 00 00 [21:36:51]Write to MH i2c: E2 08 00 E0 0F 80 09 00 00 00 00 00 00 61 [21:36:51]Write i2c OK [21:36:51]MH_I2C_Read... [21:36:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:36:51]Read from MH i2c: E2 [21:36:51]MH_I2C_Read... [21:36:51]Read from MH i2c: E2 03 00 [21:36:51]MH_I2C_Read... [21:36:51]Read from MH i2c: E2 03 00 E0 0F 00 90 00 63 [21:36:51]RAPDU: 90 00 [21:36:51]wFMCommunicate OK [21:36:51]SAM_PROTO_ClearQueue done [21:36:51]KKMCreateOFDPacket [21:36:51]OFDProtocolAddRootSTLVToBuf [21:36:51]FM_MakeSignedData [21:36:51]FM_MakeSignedData [21:36:51]SAM_PROTO_SignData [21:36:51]wFMCommunicate request_size=4 [21:36:51]MH_SAM_APDU [21:36:51]CAPDU: 80 0D 01 02 [21:36:51]Write to MH i2c: E2 08 00 E1 0F 80 0D 01 02 00 00 00 00 69 [21:36:51]Write i2c OK [21:36:51]MH_I2C_Read... [21:36:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:36:51]Read from MH i2c: E2 [21:36:51]MH_I2C_Read... [21:36:51]Read from MH i2c: E2 03 00 [21:36:51]MH_I2C_Read... [21:36:51]Read from MH i2c: E2 03 00 E1 0F 00 90 00 64 [21:36:51]RAPDU: 90 00 [21:36:51]wFMCommunicate OK [21:36:51]wFMCommunicate request_size=255 [21:36:51]MH_SAM_APDU [21:36: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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 F3 D1 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 2A 93 01 00 35 04 06 00 7B [21:36:51]Write to MH i2c: E2 02 01 E2 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 F3 D1 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 2A 93 01 00 35 04 06 00 7B 00 00 77 [21:36:51]Write i2c OK [21:36:51]MH_I2C_Read... [21:36:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:36:51]Read from MH i2c: E2 [21:36:51]MH_I2C_Read... [21:36:51]Read from MH i2c: E2 03 00 [21:36:51]MH_I2C_Read... [21:36:51]Read from MH i2c: E2 03 00 E2 0F 00 90 00 65 [21:36:51]RAPDU: 90 00 [21:36:51]wFMCommunicate OK [21:36:51]wFMCommunicate request_size=10 [21:36:51]MH_SAM_APDU [21:36:51]CAPDU: 80 0D 02 02 05 97 4A 9B 28 1B [21:36:51]Write to MH i2c: E2 0D 00 E3 0F 80 0D 02 02 05 00 97 4A 9B 28 1B 00 00 35 [21:36:51]Write i2c OK [21:36:51]MH_I2C_Read... [21:36:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:36:51]Read from MH i2c: E2 [21:36:51]MH_I2C_Read... [21:36:51]Read from MH i2c: E2 03 00 [21:36:51]MH_I2C_Read... [21:36:51]Read from MH i2c: E2 03 00 E3 0F 00 90 00 66 [21:36:51]RAPDU: 90 00 [21:36:51]wFMCommunicate OK [21:36:51]wFMCommunicate request_size=4 [21:36:51]MH_SAM_APDU [21:36:51]CAPDU: 80 0D 03 02 [21:36:51]Write to MH i2c: E2 08 00 E4 0F 80 0D 03 02 00 00 00 00 6E [21:36:51]Write i2c OK [21:36:51]MH_I2C_Read... [21:36:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:36:51]Read from MH i2c: E2 [21:36:51]MH_I2C_Read... [21:36:51]Read from MH i2c: E2 0B 00 [21:36:51]MH_I2C_Read... [21:36:51]Read from MH i2c: E2 0B 00 E4 0F 00 43 CA AB 36 59 CD 75 CD 90 00 C5 [21:36:51]RAPDU: 43 CA AB 36 59 CD 75 CD 90 00 [21:36:51]wFMCommunicate OK [21:36:51]SAM_PROTO_SignData done [21:36:51]FM_MakeSignedData done [21:36:51]CreateOFDProtocolMessage [21:36:51]wFMCommunicate request_size=4 [21:36:51]MH_SAM_APDU [21:36:51]CAPDU: 80 11 00 00 [21:36:51]Write to MH i2c: E2 08 00 E5 0F 80 11 00 00 00 00 00 00 6E [21:36:51]Write i2c OK [21:36:51]MH_I2C_Read... [21:36:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:36:51]Read from MH i2c: E2 [21:36:51]MH_I2C_Read... [21:36:51]Read from MH i2c: E2 17 00 [21:36:51]MH_I2C_Read... [21:36:51]Read from MH i2c: E2 17 00 E5 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 C2 [21:36:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [21:36:51]wFMCommunicate OK [21:36:51]CreateOFDProtocolMessage done [21:36:51]OFDSenderStorePacket 103210 [21:36:51]StoreOFDPacket docnum=103210 [21:36:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 86 1B 07 01 B5 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 F3 D1 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 2A 93 01 00 35 04 06 00 7B 97 4A 9B 28 1B 43 CA AB 36 59 CD 75 CD [21:36:51]CheckFolder [21:36:51]dirname=/storage/ofd_packets [21:36:51]CheckFolder done [21:36:51]ProducePacketName [21:36:51]name=ofd_packets/00103210 [21:36:51]NVStorageSaveData ofd_packets/00103210 [21:36:51]File name is /storage/ofd_packets/00103210 [21:36:51]Write 301 bytes [21:36:51]NVStorageSaveData done [21:36:51]OFDSenderStorePacket done [21:36:51]KKMCreateOFDPacket done [21:36:51]NVStorageSaveData kkm_last_timestamp [21:36:51]File name is /storage/kkm_last_timestamp [21:36:51]Write 4 bytes [21:36:51]NVStorageSaveData done [21:36:51]ExternCall_PrintAddStr [21:36:51]wPrintStart [21:36:51]Write to MH i2c: 01 00 00 E6 0F F5 [21:36:51]Write i2c OK [21:36:51]MH_I2C_Read... [21:36:51]Read from MH i2c: 01 [21:36:51]MH_I2C_Read... [21:36:51]Read from MH i2c: 01 07 00 [21:36:51]MH_I2C_Read... [21:36:51]Read from MH i2c: 01 07 00 E6 0F 00 00 00 00 00 FF 0F 0A [21:36:51]RasterBufferAndPrint [21:36:51]line Счет N : (1)160838 [21:36:51]line ИНН: 02508201610067 [21:36:51]line Контрольно-Кассовый Чек [21:36:51]line ПРОДАЖА [21:36:51]line ТРК (МРК, ГНК) : 7 [21:36:51]line Товар: 2710124130 [21:36:51]line Аи-92-К-5 [21:36:51]line 7.590 * 65.90 [21:36:51]line = 500.18 [21:36:51]line НДС 12% НСП 1% [21:36:51]line > о реализуемом товаре [21:36:51]line ИТОГО: 500.18 [21:36:51]line НСП 1% : 4.43 [21:36:51]line НДС 12% : 53.12 [21:36:51]line Наличными: 0.00 [21:36:51]line Безнал.: 500.18 [21:36:51]line Место: АЗС № 38 "Партнер Нефть" [21:36:51]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [21:36:51]line СНО: Общий режим [21:36:51]line Чек 121 13.08.2024 21:36 [21:36:51]line Смена: 464 ФФД: 1.0 [21:36:51]line ЗНМ: 0300000126 [21:36:51]line РНМ: 0000000000092718 [21:36:51]line Версия ККМ: 001 [21:36:51]line Платежная система: Бакай Банк [21:36:51]line ФМ: 0000000000875058 [21:36:51]line ФД: 103210 [21:36:51]line ФПД: 135889721960475 [21:36:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T213651&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103210&fm=135889721960475&tin=02508201610067®Number=0000000000092718&sum=50018 [21:36:52]written 0, free lines is 4095 [21:36:52]OFD Sender: Processing packet 103210 [packets to send 69, broken 68] [21:36:52]ProducePacketName [21:36:52]name=ofd_packets/00103210 [21:36:52]OFD Sender: To server: pG, [21:36:52]CommunicateWithHost lk.salyk.kg:30040 [21:36:52]ConnectInit lk.salyk.kg [21:36:52]Connected sock=10 [21:36:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 86 1B 07 01 B5 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 F3 D1 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 2A 93 01 00 35 04 06 00 7B 97 4A 9B 28 1B 43 CA AB 36 59 CD 75 CD [21:36:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 68 FF 47 00 3A 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 35 30 35 38 10 04 04 00 2A 93 01 00 F4 03 04 00 65 78 BB 66 B6 04 01 00 00 CA DA A9 06 73 F6 20 7B [21:36:52]CommunicateWithHost err = 0 [21:36:52]CheckOFDResponse [21:36:52]1017 (14) - 77093643461234 [21:36:52]1041 (16) - 0000000000875058 [21:36:52]1040 (4) - 103210 [21:36:52]1012 (4) - 13.08.2024 15:14 [21:36:52]1206 (1) - 0 [21:36:52]OFD Sender: Remove packet 103210 [21:36:52]ProducePacketName [21:36:52]name=ofd_packets/00103210 [21:36:52]NVStorageDeleteData [21:36:52]Write to MH i2c: 01 00 00 10 10 20 [21:36:52]Write i2c OK [21:36:52]MH_I2C_Read... [21:36:52]Read from MH i2c: 01 [21:36:52]MH_I2C_Read... [21:36:52]Read from MH i2c: 01 07 00 [21:36:52]MH_I2C_Read... [21:36:52]Read from MH i2c: 01 07 00 10 10 00 00 00 00 00 E6 0C 19 [21:36:52]RasterBufferAndPrint [21:36:52]line [21:36:52]line [21:36:52]line [21:36:52]line [21:36:52]line [21:36:52]written 0, free lines is 3309 [21:36:52]MH_Cut [21:36:52]Write to MH i2c: D1 01 00 17 10 01 F9 [21:36:52]Write i2c OK [21:36:52]MH_I2C_Read... [21:36:52]Read from MH i2c: D1 [21:36:52]MH_I2C_Read... [21:36:52]Read from MH i2c: D1 01 00 [21:36:52]MH_I2C_Read... [21:36:52]Read from MH i2c: D1 01 00 17 10 00 F8 [21:36:52]Write to MH i2c: 01 00 00 18 10 28 [21:36:52]Write i2c OK [21:36:52]MH_I2C_Read... [21:36:52]OFD Sender: No OFD packet to send [21:36:53]*** Cut start [21:36:53]*** Purtial cut [21:36:53]*** Stage 1: CUTSNS_PIN = 1 [21:36:53]Read from MH i2c: 01 [21:36:53]MH_I2C_Read... [21:36:53]*** Stop cut motor [21:36:53]*** Cut end [21:36:53]Read from MH i2c: 01 07 00 [21:36:53]MH_I2C_Read... [21:36:53]Read from MH i2c: 01 07 00 18 10 00 00 00 00 00 FF 0F 3D [21:36:53]process_action close_receipt done [21:36:53]requested_data is exist [21:36:53]produce_requested_data [21:36:53]requested_item fm.sn is exist - process it [21:36:53]wFMCommunicate request_size=4 [21:36:53]MH_SAM_APDU [21:36:53]CAPDU: 80 11 00 00 [21:36:53]Write to MH i2c: E2 08 00 19 10 80 11 00 00 00 00 00 00 A3 [21:36:53]Write i2c OK [21:36:53]MH_I2C_Read... [21:36:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:36:53]Read from MH i2c: E2 [21:36:53]MH_I2C_Read... [21:36:53]Read from MH i2c: E2 17 00 [21:36:53]MH_I2C_Read... [21:36:53]Read from MH i2c: E2 17 00 19 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 F7 [21:36:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [21:36:53]wFMCommunicate OK [21:36:53]requested_item fd.num is exist - process it [21:36:53]SAM_PROTO_GetFieldsCounters [21:36:53]wFMCommunicate request_size=4 [21:36:53]MH_SAM_APDU [21:36:53]CAPDU: 80 13 00 00 [21:36:53]Write to MH i2c: E2 08 00 1A 10 80 13 00 00 00 00 00 00 A6 [21:36:53]Write i2c OK [21:36:53]MH_I2C_Read... [21:36:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:36:53]Read from MH i2c: E2 [21:36:53]MH_I2C_Read... [21:36:53]Read from MH i2c: E2 62 00 [21:36:53]MH_I2C_Read... [21:36:53]Read from MH i2c: E2 62 00 1A 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 2A 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [21:36:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 2A 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:36:53]wFMCommunicate OK [21:36:53]SAM_PROTO_GetFieldsCounters done [21:36:53]requested_item shift.num is exist - process it [21:36:53]requested_item shift.opened is exist - process it [21:36:53]req_shift_opened [21:36:53]FM_GetShiftState [21:36:53]SAM_PROTO_GetShiftState [21:36:53]wFMCommunicate request_size=4 [21:36:53]MH_SAM_APDU [21:36:53]CAPDU: 80 13 01 00 [21:36:53]Write to MH i2c: E2 08 00 1B 10 80 13 01 00 00 00 00 00 A8 [21:36:53]Write i2c OK [21:36:53]MH_I2C_Read... [21:36:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:36:53]Read from MH i2c: E2 [21:36:53]MH_I2C_Read... [21:36:53]Read from MH i2c: E2 0E 00 [21:36:53]MH_I2C_Read... [21:36:53]Read from MH i2c: E2 0E 00 1B 10 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 C6 [21:36:53]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [21:36:53]wFMCommunicate OK [21:36:53]SAM_PROTO_GetShiftState done [21:36:53]FM_GetShiftState done [21:36:53]req_shift_opened done [21:36:53]requested_item shift.open_date is exist - process it [21:36:53]req_shift_open_date [21:36:53]req_shift_open_date done [21:36:53]produce_requested_data done [21:36:53]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103210,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [21:36:53]process_action_free close_receipt [21:36:53]json_value_free [21:36:53]json_value_free done [21:36:53]process_json_proto returns [21:36:53]Send response to host [21:36:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103210,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [21:36:53]free response buf [21:36:53]execute_script done [21:36:53]execute_script returns [21:36:53]free content buf [21:36:53]Sock 9.Close socket [21:36:53]Sock 9.Thread stoped [21:36:57]OFD Sender: No OFD packet to send [21:37:02]OFD Sender: No OFD packet to send [21:37:07]OFD Sender: No OFD packet to send [21:37:12]OFD Sender: No OFD packet to send [21:37:17]OFD Sender: No OFD packet to send [21:37:22]OFD Sender: No OFD packet to send [21:37:27]OFD Sender: No OFD packet to send [21:37:32]OFD Sender: No OFD packet to send [21:37:37]OFD Sender: No OFD packet to send [21:37:42]OFD Sender: No OFD packet to send [21:37:47]OFD Sender: No OFD packet to send [21:37:52]OFD Sender: No OFD packet to send [21:37:57]OFD Sender: No OFD packet to send [21:38:02]OFD Sender: No OFD packet to send [21:38:07]OFD Sender: No OFD packet to send [21:38:12]OFD Sender: No OFD packet to send [21:38:17]OFD Sender: No OFD packet to send [21:38:22]OFD Sender: No OFD packet to send [21:38:27]OFD Sender: No OFD packet to send [21:38:32]OFD Sender: No OFD packet to send [21:38:37]OFD Sender: No OFD packet to send [21:38:42]OFD Sender: No OFD packet to send [21:38:47]OFD Sender: No OFD packet to send [21:38:52]OFD Sender: No OFD packet to send [21:38:57]OFD Sender: No OFD packet to send [21:39:02]OFD Sender: No OFD packet to send [21:39:07]OFD Sender: No OFD packet to send [21:39:12]OFD Sender: No OFD packet to send [21:39:17]OFD Sender: No OFD packet to send [21:39:22]OFD Sender: No OFD packet to send [21:39:27]OFD Sender: No OFD packet to send [21:39:32]OFD Sender: No OFD packet to send [21:39:37]OFD Sender: No OFD packet to send [21:39:42]OFD Sender: No OFD packet to send [21:39:47]OFD Sender: No OFD packet to send [21:39:53]OFD Sender: No OFD packet to send [21:39:58]OFD Sender: No OFD packet to send [21:40:03]OFD Sender: No OFD packet to send [21:40:08]OFD Sender: No OFD packet to send [21:40:13]OFD Sender: No OFD packet to send [21:40:18]OFD Sender: No OFD packet to send [21:40:23]OFD Sender: No OFD packet to send [21:40:28]OFD Sender: No OFD packet to send [21:40:33]OFD Sender: No OFD packet to send [21:40:38]OFD Sender: No OFD packet to send [21:40:43]OFD Sender: No OFD packet to send [21:40:48]OFD Sender: No OFD packet to send [21:40:53]OFD Sender: No OFD packet to send [21:40:58]OFD Sender: No OFD packet to send [21:41:03]OFD Sender: No OFD packet to send [21:41:08]OFD Sender: No OFD packet to send [21:41:13]OFD Sender: No OFD packet to send [21:41:18]OFD Sender: No OFD packet to send [21:41:23]OFD Sender: No OFD packet to send [21:41:28]OFD Sender: No OFD packet to send [21:41:33]OFD Sender: No OFD packet to send [21:41:38]OFD Sender: No OFD packet to send [21:41:43]OFD Sender: No OFD packet to send [21:41:48]OFD Sender: No OFD packet to send [21:41:53]OFD Sender: No OFD packet to send [21:41:58]OFD Sender: No OFD packet to send [21:42:03]OFD Sender: No OFD packet to send [21:42:08]OFD Sender: No OFD packet to send [21:42:13]OFD Sender: No OFD packet to send [21:42:18]OFD Sender: No OFD packet to send [21:42:23]OFD Sender: No OFD packet to send [21:42:28]OFD Sender: No OFD packet to send [21:42:33]OFD Sender: No OFD packet to send [21:42:38]OFD Sender: No OFD packet to send [21:42:43]OFD Sender: No OFD packet to send [21:42:48]OFD Sender: No OFD packet to send [21:42:53]OFD Sender: No OFD packet to send [21:42:58]OFD Sender: No OFD packet to send [21:43:03]OFD Sender: No OFD packet to send [21:43:08]OFD Sender: No OFD packet to send [21:43:13]OFD Sender: No OFD packet to send [21:43:18]OFD Sender: No OFD packet to send [21:43:23]OFD Sender: No OFD packet to send [21:43:28]OFD Sender: No OFD packet to send [21:43:33]OFD Sender: No OFD packet to send [21:43:38]OFD Sender: No OFD packet to send [21:43:43]OFD Sender: No OFD packet to send [21:43:48]OFD Sender: No OFD packet to send [21:43:53]OFD Sender: No OFD packet to send [21:43:58]OFD Sender: No OFD packet to send [21:44:03]OFD Sender: No OFD packet to send [21:44:08]OFD Sender: No OFD packet to send [21:44:13]OFD Sender: No OFD packet to send [21:44:18]OFD Sender: No OFD packet to send [21:44:23]OFD Sender: No OFD packet to send [21:44:28]OFD Sender: No OFD packet to send [21:44:33]OFD Sender: No OFD packet to send [21:44:38]OFD Sender: No OFD packet to send [21:44:43]OFD Sender: No OFD packet to send [21:44:48]OFD Sender: No OFD packet to send [21:44:53]OFD Sender: No OFD packet to send [21:44:58]OFD Sender: No OFD packet to send [21:45:03]OFD Sender: No OFD packet to send [21:45:08]OFD Sender: No OFD packet to send [21:45:13]OFD Sender: No OFD packet to send [21:45:18]OFD Sender: No OFD packet to send [21:45:23]OFD Sender: No OFD packet to send [21:45:28]OFD Sender: No OFD packet to send [21:45:33]OFD Sender: No OFD packet to send [21:45:38]OFD Sender: No OFD packet to send [21:45:43]OFD Sender: No OFD packet to send [21:45:48]OFD Sender: No OFD packet to send [21:45:53]OFD Sender: No OFD packet to send [21:45:58]OFD Sender: No OFD packet to send [21:46:03]OFD Sender: No OFD packet to send [21:46:08]OFD Sender: No OFD packet to send [21:46:13]OFD Sender: No OFD packet to send [21:46:18]OFD Sender: No OFD packet to send [21:46:23]OFD Sender: No OFD packet to send [21:46:28]OFD Sender: No OFD packet to send [21:46:33]OFD Sender: No OFD packet to send [21:46:38]OFD Sender: No OFD packet to send [21:46:43]OFD Sender: No OFD packet to send [21:46:48]OFD Sender: No OFD packet to send [21:46:53]OFD Sender: No OFD packet to send [21:46:58]OFD Sender: No OFD packet to send [21:47:03]OFD Sender: No OFD packet to send [21:47:08]OFD Sender: No OFD packet to send [21:47:13]OFD Sender: No OFD packet to send [21:47:18]OFD Sender: No OFD packet to send [21:47:23]OFD Sender: No OFD packet to send [21:47:28]OFD Sender: No OFD packet to send [21:47:33]OFD Sender: No OFD packet to send [21:47:38]OFD Sender: No OFD packet to send [21:47:43]OFD Sender: No OFD packet to send [21:47:48]OFD Sender: No OFD packet to send [21:47:53]OFD Sender: No OFD packet to send [21:47:58]OFD Sender: No OFD packet to send [21:48:03]OFD Sender: No OFD packet to send [21:48:08]OFD Sender: No OFD packet to send [21:48:13]OFD Sender: No OFD packet to send [21:48:18]OFD Sender: No OFD packet to send [21:48:23]OFD Sender: No OFD packet to send [21:48:28]OFD Sender: No OFD packet to send [21:48:33]OFD Sender: No OFD packet to send [21:48:38]OFD Sender: No OFD packet to send [21:48:43]OFD Sender: No OFD packet to send [21:48:48]OFD Sender: No OFD packet to send [21:48:53]OFD Sender: No OFD packet to send [21:48:58]OFD Sender: No OFD packet to send [21:49:03]OFD Sender: No OFD packet to send [21:49:08]OFD Sender: No OFD packet to send [21:49:13]OFD Sender: No OFD packet to send [21:49:18]OFD Sender: No OFD packet to send [21:49:23]OFD Sender: No OFD packet to send [21:49:28]OFD Sender: No OFD packet to send [21:49:33]OFD Sender: No OFD packet to send [21:49:38]OFD Sender: No OFD packet to send [21:49:43]OFD Sender: No OFD packet to send [21:49:48]OFD Sender: No OFD packet to send [21:49:53]OFD Sender: No OFD packet to send [21:49:58]OFD Sender: No OFD packet to send [21:50:03]OFD Sender: No OFD packet to send [21:50:08]OFD Sender: No OFD packet to send [21:50:13]OFD Sender: No OFD packet to send [21:50:18]OFD Sender: No OFD packet to send [21:50:23]OFD Sender: No OFD packet to send [21:50:28]OFD Sender: No OFD packet to send [21:50:33]OFD Sender: No OFD packet to send [21:50:38]OFD Sender: No OFD packet to send [21:50:43]OFD Sender: No OFD packet to send [21:50:48]OFD Sender: No OFD packet to send [21:50:53]OFD Sender: No OFD packet to send [21:50:58]OFD Sender: No OFD packet to send [21:51:03]OFD Sender: No OFD packet to send [21:51:08]OFD Sender: No OFD packet to send [21:51:13]OFD Sender: No OFD packet to send [21:51:18]OFD Sender: No OFD packet to send [21:51:23]OFD Sender: No OFD packet to send [21:51:28]OFD Sender: No OFD packet to send [21:51:33]OFD Sender: No OFD packet to send [21:51:38]OFD Sender: No OFD packet to send [21:51:43]OFD Sender: No OFD packet to send [21:51:48]OFD Sender: No OFD packet to send [21:51:53]OFD Sender: No OFD packet to send [21:51:58]OFD Sender: No OFD packet to send [21:52:03]OFD Sender: No OFD packet to send [21:52:08]OFD Sender: No OFD packet to send [21:52:13]OFD Sender: No OFD packet to send [21:52:18]OFD Sender: No OFD packet to send [21:52:23]OFD Sender: No OFD packet to send [21:52:28]OFD Sender: No OFD packet to send [21:52:33]OFD Sender: No OFD packet to send [21:52:38]OFD Sender: No OFD packet to send [21:52:43]OFD Sender: No OFD packet to send [21:52:48]OFD Sender: No OFD packet to send [21:52:53]OFD Sender: No OFD packet to send [21:52:58]OFD Sender: No OFD packet to send [21:53:03]OFD Sender: No OFD packet to send [21:53:08]OFD Sender: No OFD packet to send [21:53:13]OFD Sender: No OFD packet to send [21:53:18]OFD Sender: No OFD packet to send [21:53:23]OFD Sender: No OFD packet to send [21:53:28]OFD Sender: No OFD packet to send [21:53:33]OFD Sender: No OFD packet to send [21:53:38]OFD Sender: No OFD packet to send [21:53:43]OFD Sender: No OFD packet to send [21:53:48]OFD Sender: No OFD packet to send [21:53:53]OFD Sender: No OFD packet to send [21:53:58]OFD Sender: No OFD packet to send [21:54:03]OFD Sender: No OFD packet to send [21:54:08]OFD Sender: No OFD packet to send [21:54:13]OFD Sender: No OFD packet to send [21:54:18]OFD Sender: No OFD packet to send [21:54:23]OFD Sender: No OFD packet to send [21:54:28]OFD Sender: No OFD packet to send [21:54:33]OFD Sender: No OFD packet to send [21:54:38]OFD Sender: No OFD packet to send [21:54:43]OFD Sender: No OFD packet to send [21:54:48]OFD Sender: No OFD packet to send [21:54:53]OFD Sender: No OFD packet to send [21:54:58]OFD Sender: No OFD packet to send [21:55:03]OFD Sender: No OFD packet to send [21:55:08]OFD Sender: No OFD packet to send [21:55:13]OFD Sender: No OFD packet to send [21:55:18]OFD Sender: No OFD packet to send [21:55:23]OFD Sender: No OFD packet to send [21:55:28]OFD Sender: No OFD packet to send [21:55:33]OFD Sender: No OFD packet to send [21:55:38]OFD Sender: No OFD packet to send [21:55:43]OFD Sender: No OFD packet to send [21:55:48]OFD Sender: No OFD packet to send [21:55:53]OFD Sender: No OFD packet to send [21:55:58]OFD Sender: No OFD packet to send [21:56:03]OFD Sender: No OFD packet to send [21:56:08]OFD Sender: No OFD packet to send [21:56:13]OFD Sender: No OFD packet to send [21:56:18]OFD Sender: No OFD packet to send [21:56:23]OFD Sender: No OFD packet to send [21:56:28]OFD Sender: No OFD packet to send [21:56:33]OFD Sender: No OFD packet to send [21:56:38]OFD Sender: No OFD packet to send [21:56:43]OFD Sender: No OFD packet to send [21:56:48]OFD Sender: No OFD packet to send [21:56:54]OFD Sender: No OFD packet to send [21:56:59]OFD Sender: No OFD packet to send [21:57:04]OFD Sender: No OFD packet to send [21:57:09]OFD Sender: No OFD packet to send [21:57:14]OFD Sender: No OFD packet to send [21:57:17]accept exits with 7 [21:57:17]New connection [21:57:17]New thread 3067260260 created [21:57:17]Thread 3067116900 joined [21:57:17]Waiting for new connection... [21:57:17] Sock 7.Parse request [21:57:17]Sock 7.Check first char [21:57:17]Sock 7.First char is OK [21:57:17]request: POST /json_proto HTTP/1.0 [21:57:17]Method: POST [21:57:17]URL: /json_proto [21:57:17]Method is POST - this is cgi request [21:57:17]url: /json_proto [21:57:17]query_string will be loaded in cgi processing [21:57:17]execute_cgi json_proto POST (null) [21:57:17]execute_cgi path=json_proto method=POST [21:57:17]POST find Content-Length [21:57:17]Host: 172.17.58.3:8080 [21:57:17]Content-Length: 676 [21:57:17]Content-Type: application/json [21:57:17] [21:57:17]POST finish read [21:57:17]Found Content-Length = 676 [21:57:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160839", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:57:17]execute_script... [21:57: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)160839", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:57:17]POST & json_proto [21:57:17]process_json_proto [21:57:17]json parsed OK: [21:57:17]protocol is kg_v1.0 [21:57:17]action value=close_receipt [21:57:17]process_action close_receipt [21:57:17]cmd_close_receipt [21:57:17]MH_GetDate [21:57:17]Write to MH i2c: F0 00 00 1C 10 1B [21:57:17]Write i2c OK [21:57:17]MH_I2C_Read... [21:57:17]Read from MH i2c: F0 [21:57:17]MH_I2C_Read... [21:57:17]Read from MH i2c: F0 09 00 [21:57:17]MH_I2C_Read... [21:57:17]Read from MH i2c: F0 09 00 1C 10 00 BF D6 BB 66 DC E4 6D 64 6B [21:57:17]GetLastDocTimeStamp 1723585011 [21:57:17]current date 1723586239 [21:57:17]FM_GetShiftState [21:57:17]SAM_PROTO_GetShiftState [21:57:17]wFMCommunicate request_size=4 [21:57:17]MH_SAM_APDU [21:57:17]CAPDU: 80 13 01 00 [21:57:17]Write to MH i2c: E2 08 00 1D 10 80 13 01 00 00 00 00 00 AA [21:57:17]Write i2c OK [21:57:17]MH_I2C_Read... [21:57:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:57:17]Read from MH i2c: E2 [21:57:17]MH_I2C_Read... [21:57:17]Read from MH i2c: E2 0E 00 [21:57:17]MH_I2C_Read... [21:57:17]Read from MH i2c: E2 0E 00 1D 10 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 C8 [21:57:17]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [21:57:17]wFMCommunicate OK [21:57:17]SAM_PROTO_GetShiftState done [21:57:17]FM_GetShiftState done [21:57:17]opened in 1723506770 [21:57:17]opened+sec_in_day 1723593170 [21:57:17]quantity*price = 50018 [21:57:17]sum+1 = 50019 [21:57:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 122 13.08.2024 21:57 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103211 ФПД: 76453294569969 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T215719&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103211&fm=76453294569969&tin=02508201610067®Number=0000000000092718&sum=50000 [21:57:19]StoreToDocumentArchive [21:57:19]shift 464 fd 103211 [21:57:19]save to /storage/0464/doc_00103211 [21:57:19]save last doc name /storage/0464/doc_00103211 to /storage/kkm_last_doc_name [21:57:19]save OK [21:57:19]Clear old archive folders... [21:57:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:57:19]tlvbuf is 00223760 [21:57:19]SAM_PROTO_ClearQueue [21:57:19]wFMCommunicate request_size=4 [21:57:19]MH_SAM_APDU [21:57:19]CAPDU: 80 09 00 00 [21:57:19]Write to MH i2c: E2 08 00 2A 10 80 09 00 00 00 00 00 00 AC [21:57:19]Write i2c OK [21:57:19]MH_I2C_Read... [21:57:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:57:19]Read from MH i2c: E2 [21:57:19]MH_I2C_Read... [21:57:19]Read from MH i2c: E2 03 00 [21:57:19]MH_I2C_Read... [21:57:19]Read from MH i2c: E2 03 00 2A 10 00 90 00 AE [21:57:19]RAPDU: 90 00 [21:57:19]wFMCommunicate OK [21:57:19]SAM_PROTO_ClearQueue done [21:57:19]KKMCreateOFDPacket [21:57:19]OFDProtocolAddRootSTLVToBuf [21:57:19]FM_MakeSignedData [21:57:19]FM_MakeSignedData [21:57:19]SAM_PROTO_SignData [21:57:19]wFMCommunicate request_size=4 [21:57:19]MH_SAM_APDU [21:57:19]CAPDU: 80 0D 01 02 [21:57:19]Write to MH i2c: E2 08 00 2B 10 80 0D 01 02 00 00 00 00 B4 [21:57:19]Write i2c OK [21:57:19]MH_I2C_Read... [21:57:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:57:19]Read from MH i2c: E2 [21:57:19]MH_I2C_Read... [21:57:19]Read from MH i2c: E2 03 00 [21:57:19]MH_I2C_Read... [21:57:19]Read from MH i2c: E2 03 00 2B 10 00 90 00 AF [21:57:19]RAPDU: 90 00 [21:57:19]wFMCommunicate OK [21:57:19]wFMCommunicate request_size=255 [21:57:19]MH_SAM_APDU [21:57: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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 BF D6 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 2B 93 01 00 35 04 06 00 45 [21:57:19]Write to MH i2c: E2 02 01 2C 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 BF D6 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 2B 93 01 00 35 04 06 00 45 00 00 3B [21:57:19]Write i2c OK [21:57:19]MH_I2C_Read... [21:57:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:57:19]Read from MH i2c: E2 [21:57:19]MH_I2C_Read... [21:57:19]Read from MH i2c: E2 03 00 [21:57:19]MH_I2C_Read... [21:57:19]Read from MH i2c: E2 03 00 2C 10 00 90 00 B0 [21:57:19]RAPDU: 90 00 [21:57:19]wFMCommunicate OK [21:57:19]wFMCommunicate request_size=10 [21:57:19]MH_SAM_APDU [21:57:19]CAPDU: 80 0D 02 02 05 88 AB 76 F9 F1 [21:57:19]Write to MH i2c: E2 0D 00 2D 10 80 0D 02 02 05 00 88 AB 76 F9 F1 00 00 54 [21:57:19]Write i2c OK [21:57:19]MH_I2C_Read... [21:57:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:57:19]Read from MH i2c: E2 [21:57:19]MH_I2C_Read... [21:57:19]Read from MH i2c: E2 03 00 [21:57:19]MH_I2C_Read... [21:57:19]Read from MH i2c: E2 03 00 2D 10 00 90 00 B1 [21:57:19]RAPDU: 90 00 [21:57:19]wFMCommunicate OK [21:57:19]wFMCommunicate request_size=4 [21:57:19]MH_SAM_APDU [21:57:19]CAPDU: 80 0D 03 02 [21:57:19]Write to MH i2c: E2 08 00 2E 10 80 0D 03 02 00 00 00 00 B9 [21:57:19]Write i2c OK [21:57:19]MH_I2C_Read... [21:57:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:57:19]Read from MH i2c: E2 [21:57:19]MH_I2C_Read... [21:57:19]Read from MH i2c: E2 0B 00 [21:57:19]MH_I2C_Read... [21:57:19]Read from MH i2c: E2 0B 00 2E 10 00 7A 65 55 BC 1C A3 7E D8 90 00 BF [21:57:19]RAPDU: 7A 65 55 BC 1C A3 7E D8 90 00 [21:57:19]wFMCommunicate OK [21:57:19]SAM_PROTO_SignData done [21:57:19]FM_MakeSignedData done [21:57:19]CreateOFDProtocolMessage [21:57:19]wFMCommunicate request_size=4 [21:57:19]MH_SAM_APDU [21:57:19]CAPDU: 80 11 00 00 [21:57:19]Write to MH i2c: E2 08 00 2F 10 80 11 00 00 00 00 00 00 B9 [21:57:19]Write i2c OK [21:57:19]MH_I2C_Read... [21:57:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:57:19]Read from MH i2c: E2 [21:57:19]MH_I2C_Read... [21:57:19]Read from MH i2c: E2 17 00 [21:57:19]MH_I2C_Read... [21:57:19]Read from MH i2c: E2 17 00 2F 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 0D [21:57:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [21:57:19]wFMCommunicate OK [21:57:19]CreateOFDProtocolMessage done [21:57:19]OFDSenderStorePacket 103211 [21:57:19]StoreOFDPacket docnum=103211 [21:57:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 71 83 07 01 1A D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 BF D6 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 2B 93 01 00 35 04 06 00 45 88 AB 76 F9 F1 7A 65 55 BC 1C A3 7E D8 [21:57:19]CheckFolder [21:57:19]dirname=/storage/ofd_packets [21:57:19]CheckFolder done [21:57:19]ProducePacketName [21:57:19]name=ofd_packets/00103211 [21:57:19]NVStorageSaveData ofd_packets/00103211 [21:57:19]File name is /storage/ofd_packets/00103211 [21:57:19]Write 301 bytes [21:57:19]NVStorageSaveData done [21:57:19]OFDSenderStorePacket done [21:57:19]KKMCreateOFDPacket done [21:57:19]NVStorageSaveData kkm_last_timestamp [21:57:19]File name is /storage/kkm_last_timestamp [21:57:19]Write 4 bytes [21:57:19]NVStorageSaveData done [21:57:19]ExternCall_PrintAddStr [21:57:19]wPrintStart [21:57:19]Write to MH i2c: 01 00 00 30 10 40 [21:57:19]Write i2c OK [21:57:19]MH_I2C_Read... [21:57:19]Read from MH i2c: 01 [21:57:19]MH_I2C_Read... [21:57:19]Read from MH i2c: 01 07 00 [21:57:19]MH_I2C_Read... [21:57:19]Read from MH i2c: 01 07 00 30 10 00 00 00 00 00 FF 0F 55 [21:57:19]RasterBufferAndPrint [21:57:19]line Счет N : (1)160839 [21:57:19]line ИНН: 02508201610067 [21:57:19]line Контрольно-Кассовый Чек [21:57:19]line ПРОДАЖА [21:57:19]line ТРК (МРК, ГНК) : 3 [21:57:19]line Товар: 2710124130 [21:57:19]line Аи-92-К-5 [21:57:19]line 7.590 * 65.90 [21:57:19]line = 500.18 [21:57:19]line НДС 12% НСП 1% [21:57:19]line > о реализуемом товаре [21:57:19]line ОКРУГЛЕНИЕ: -0.18 [21:57:19]line ИТОГО: 500.00 [21:57:19]line Внесено: 500.00 [21:57:19]line СДАЧА: 0.00 [21:57:19]line НСП 1% : 4.43 [21:57:19]line НДС 12% : 53.12 [21:57:19]line Наличными: 500.00 [21:57:19]line Безнал.: 0.00 [21:57:19]line Место: АЗС № 38 "Партнер Нефть" [21:57:19]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [21:57:19]line СНО: Общий режим [21:57:19]line Чек 122 13.08.2024 21:57 [21:57:19]line Смена: 464 ФФД: 1.0 [21:57:19]line ЗНМ: 0300000126 [21:57:19]line РНМ: 0000000000092718 [21:57:19]line Версия ККМ: 001 [21:57:19]line ФМ: 0000000000875058 [21:57:19]line ФД: 103211 [21:57:19]line ФПД: 76453294569969 [21:57:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T215719&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103211&fm=76453294569969&tin=02508201610067®Number=0000000000092718&sum=50000 [21:57:19]OFD Sender: Processing packet 103211 [packets to send 69, broken 68] [21:57:19]ProducePacketName [21:57:19]name=ofd_packets/00103211 [21:57:19]OFD Sender: To server: pG, [21:57:19]CommunicateWithHost lk.salyk.kg:30040 [21:57:20]ConnectInit lk.salyk.kg [21:57:20]written 0, free lines is 4095 [21:57:20]Connected sock=10 [21:57:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 71 83 07 01 1A D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 BF D6 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 2B 93 01 00 35 04 06 00 45 88 AB 76 F9 F1 7A 65 55 BC 1C A3 7E D8 [21:57:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 07 7D 47 00 35 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 2B 93 01 00 F4 03 04 00 31 7D BB 66 B6 04 01 00 00 3A 35 79 CD 99 78 C6 8E [21:57:20]CommunicateWithHost err = 0 [21:57:20]CheckOFDResponse [21:57:20]1017 (14) - 77093643461234 [21:57:20]1041 (16) - 0000000000875058 [21:57:20]1040 (4) - 103211 [21:57:20]1012 (4) - 13.08.2024 15:35 [21:57:20]1206 (1) - 0 [21:57:20]OFD Sender: Remove packet 103211 [21:57:20]ProducePacketName [21:57:20]name=ofd_packets/00103211 [21:57:20]NVStorageDeleteData [21:57:20]Write to MH i2c: 01 00 00 5B 10 6B [21:57:20]Write i2c OK [21:57:20]MH_I2C_Read... [21:57:20]Read from MH i2c: 01 [21:57:20]MH_I2C_Read... [21:57:20]Read from MH i2c: 01 07 00 [21:57:20]MH_I2C_Read... [21:57:20]Read from MH i2c: 01 07 00 5B 10 00 00 00 00 00 E2 0C 60 [21:57:20]RasterBufferAndPrint [21:57:20]line [21:57:20]line [21:57:20]line [21:57:20]line [21:57:20]line [21:57:20]written 0, free lines is 3304 [21:57:20]MH_Cut [21:57:20]Write to MH i2c: D1 01 00 62 10 01 44 [21:57:20]Write i2c OK [21:57:20]MH_I2C_Read... [21:57:20]Read from MH i2c: D1 [21:57:20]MH_I2C_Read... [21:57:20]Read from MH i2c: D1 01 00 [21:57:20]MH_I2C_Read... [21:57:20]Read from MH i2c: D1 01 00 62 10 00 43 [21:57:20]Write to MH i2c: 01 00 00 63 10 73 [21:57:20]Write i2c OK [21:57:20]MH_I2C_Read... [21:57:20]OFD Sender: No OFD packet to send [21:57:21]*** Cut start [21:57:21]*** Purtial cut [21:57:21]*** CUTSNS_PIN = 0 [21:57:21]*** Stage 1: CUTSNS_PIN = 1 [21:57:23]Read from MH i2c: 01 [21:57:23]MH_I2C_Read... [21:57:23]*** Stop cut motor [21:57:23]*** Cut end [21:57:23]Read from MH i2c: 01 07 00 [21:57:23]MH_I2C_Read... [21:57:23]Read from MH i2c: 01 07 00 63 10 00 00 00 00 00 FF 0F 88 [21:57:23]process_action close_receipt done [21:57:23]requested_data is exist [21:57:23]produce_requested_data [21:57:23]requested_item fm.sn is exist - process it [21:57:23]wFMCommunicate request_size=4 [21:57:23]MH_SAM_APDU [21:57:23]CAPDU: 80 11 00 00 [21:57:23]Write to MH i2c: E2 08 00 64 10 80 11 00 00 00 00 00 00 EE [21:57:23]Write i2c OK [21:57:23]MH_I2C_Read... [21:57:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:57:23]Read from MH i2c: E2 [21:57:23]MH_I2C_Read... [21:57:23]Read from MH i2c: E2 17 00 [21:57:23]MH_I2C_Read... [21:57:23]Read from MH i2c: E2 17 00 64 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 42 [21:57:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [21:57:23]wFMCommunicate OK [21:57:23]requested_item fd.num is exist - process it [21:57:23]SAM_PROTO_GetFieldsCounters [21:57:23]wFMCommunicate request_size=4 [21:57:23]MH_SAM_APDU [21:57:23]CAPDU: 80 13 00 00 [21:57:23]Write to MH i2c: E2 08 00 65 10 80 13 00 00 00 00 00 00 F1 [21:57:23]Write i2c OK [21:57:23]MH_I2C_Read... [21:57:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:57:23]Read from MH i2c: E2 [21:57:23]MH_I2C_Read... [21:57:23]Read from MH i2c: E2 62 00 [21:57:23]MH_I2C_Read... [21:57:23]Read from MH i2c: E2 62 00 65 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 2B 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [21:57:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 2B 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:57:23]wFMCommunicate OK [21:57:23]SAM_PROTO_GetFieldsCounters done [21:57:23]requested_item shift.num is exist - process it [21:57:23]requested_item shift.opened is exist - process it [21:57:23]req_shift_opened [21:57:23]FM_GetShiftState [21:57:23]SAM_PROTO_GetShiftState [21:57:23]wFMCommunicate request_size=4 [21:57:23]MH_SAM_APDU [21:57:23]CAPDU: 80 13 01 00 [21:57:23]Write to MH i2c: E2 08 00 66 10 80 13 01 00 00 00 00 00 F3 [21:57:23]Write i2c OK [21:57:23]MH_I2C_Read... [21:57:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:57:23]Read from MH i2c: E2 [21:57:23]MH_I2C_Read... [21:57:23]Read from MH i2c: E2 0E 00 [21:57:23]MH_I2C_Read... [21:57:23]Read from MH i2c: E2 0E 00 66 10 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 11 [21:57:23]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [21:57:23]wFMCommunicate OK [21:57:23]SAM_PROTO_GetShiftState done [21:57:23]FM_GetShiftState done [21:57:23]req_shift_opened done [21:57:23]requested_item shift.open_date is exist - process it [21:57:23]req_shift_open_date [21:57:23]req_shift_open_date done [21:57:23]produce_requested_data done [21:57:23]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103211,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [21:57:23]process_action_free close_receipt [21:57:23]json_value_free [21:57:23]json_value_free done [21:57:23]process_json_proto returns [21:57:23]Send response to host [21:57:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103211,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [21:57:23]free response buf [21:57:23]execute_script done [21:57:23]execute_script returns [21:57:23]free content buf [21:57:23]Sock 7.Close socket [21:57:23]Sock 7.Thread stoped [21:57:25]OFD Sender: No OFD packet to send [21:57:30]OFD Sender: No OFD packet to send [21:57:35]OFD Sender: No OFD packet to send [21:57:40]OFD Sender: No OFD packet to send [21:57:45]OFD Sender: No OFD packet to send [21:57:50]OFD Sender: No OFD packet to send [21:57:55]OFD Sender: No OFD packet to send [21:58:00]OFD Sender: No OFD packet to send [21:58:05]OFD Sender: No OFD packet to send [21:58:10]OFD Sender: No OFD packet to send [21:58:15]OFD Sender: No OFD packet to send [21:58:20]OFD Sender: No OFD packet to send [21:58:25]OFD Sender: No OFD packet to send [21:58:30]OFD Sender: No OFD packet to send [21:58:35]OFD Sender: No OFD packet to send [21:58:40]OFD Sender: No OFD packet to send [21:58:45]OFD Sender: No OFD packet to send [21:58:50]OFD Sender: No OFD packet to send [21:58:55]OFD Sender: No OFD packet to send [21:59:00]OFD Sender: No OFD packet to send [21:59:05]OFD Sender: No OFD packet to send [21:59:10]OFD Sender: No OFD packet to send [21:59:15]OFD Sender: No OFD packet to send [21:59:20]OFD Sender: No OFD packet to send [21:59:25]OFD Sender: No OFD packet to send [21:59:30]OFD Sender: No OFD packet to send [21:59:35]OFD Sender: No OFD packet to send [21:59:40]OFD Sender: No OFD packet to send [21:59:45]OFD Sender: No OFD packet to send [21:59:50]OFD Sender: No OFD packet to send [21:59:55]OFD Sender: No OFD packet to send [22:00:00]OFD Sender: No OFD packet to send [22:00:05]OFD Sender: No OFD packet to send [22:00:10]OFD Sender: No OFD packet to send [22:00:15]OFD Sender: No OFD packet to send [22:00:20]OFD Sender: No OFD packet to send [22:00:25]OFD Sender: No OFD packet to send [22:00:30]OFD Sender: No OFD packet to send [22:00:35]OFD Sender: No OFD packet to send [22:00:40]OFD Sender: No OFD packet to send [22:00:45]OFD Sender: No OFD packet to send [22:00:50]OFD Sender: No OFD packet to send [22:00:55]OFD Sender: No OFD packet to send [22:01:00]OFD Sender: No OFD packet to send [22:01:05]OFD Sender: No OFD packet to send [22:01:10]accept exits with 9 [22:01:10]New connection [22:01:10]New thread 3067116900 created [22:01:10]Thread 3067260260 joined [22:01:10]Waiting for new connection... [22:01:10] Sock 9.Parse request [22:01:10]Sock 9.Check first char [22:01:10]Sock 9.First char is OK [22:01:10]request: POST /json_proto HTTP/1.0 [22:01:10]Method: POST [22:01:10]URL: /json_proto [22:01:10]Method is POST - this is cgi request [22:01:10]url: /json_proto [22:01:10]query_string will be loaded in cgi processing [22:01:10]execute_cgi json_proto POST (null) [22:01:10]execute_cgi path=json_proto method=POST [22:01:10]POST find Content-Length [22:01:10]Host: 172.17.58.3:8080 [22:01:10]Content-Length: 676 [22:01:10]Content-Type: application/json [22:01:10] [22:01:10]POST finish read [22:01:10]Found Content-Length = 676 [22:01:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160840", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 6.070, "sum" : 400.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:01:10]execute_script... [22:01: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)160840", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 6.070, "sum" : 400.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:01:10]POST & json_proto [22:01:10]process_json_proto [22:01:10]json parsed OK: [22:01:10]protocol is kg_v1.0 [22:01:10]action value=close_receipt [22:01:10]process_action close_receipt [22:01:10]cmd_close_receipt [22:01:10]MH_GetDate [22:01:10]Write to MH i2c: F0 00 00 67 10 66 [22:01:10]Write i2c OK [22:01:10]MH_I2C_Read... [22:01:10]Read from MH i2c: F0 [22:01:10]MH_I2C_Read... [22:01:10]Read from MH i2c: F0 09 00 [22:01:10]MH_I2C_Read... [22:01:10]Read from MH i2c: F0 09 00 67 10 00 A8 D7 BB 66 DC E4 6D 64 A0 [22:01:10]GetLastDocTimeStamp 1723586239 [22:01:10]current date 1723586472 [22:01:10]FM_GetShiftState [22:01:10]SAM_PROTO_GetShiftState [22:01:10]wFMCommunicate request_size=4 [22:01:10]MH_SAM_APDU [22:01:10]CAPDU: 80 13 01 00 [22:01:10]Write to MH i2c: E2 08 00 68 10 80 13 01 00 00 00 00 00 F5 [22:01:10]Write i2c OK [22:01:10]MH_I2C_Read... [22:01:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:01:10]Read from MH i2c: E2 [22:01:10]MH_I2C_Read... [22:01:10]Read from MH i2c: E2 0E 00 [22:01:10]MH_I2C_Read... [22:01:10]Read from MH i2c: E2 0E 00 68 10 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 13 [22:01:10]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [22:01:10]wFMCommunicate OK [22:01:10]SAM_PROTO_GetShiftState done [22:01:10]FM_GetShiftState done [22:01:10]opened in 1723506770 [22:01:10]opened+sec_in_day 1723593170 [22:01:10]quantity*price = 40001 [22:01:10]sum+1 = 40002 [22:01:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 123 13.08.2024 22:01 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103212 ФПД: 26923890750691 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T220112&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103212&fm=26923890750691&tin=02508201610067®Number=0000000000092718&sum=40000 [22:01:11]StoreToDocumentArchive [22:01:11]shift 464 fd 103212 [22:01:11]save to /storage/0464/doc_00103212 [22:01:11]save last doc name /storage/0464/doc_00103212 to /storage/kkm_last_doc_name [22:01:11]save OK [22:01:11]Clear old archive folders... [22:01:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:01:11]tlvbuf is 0024CA70 [22:01:11]SAM_PROTO_ClearQueue [22:01:11]wFMCommunicate request_size=4 [22:01:11]MH_SAM_APDU [22:01:11]CAPDU: 80 09 00 00 [22:01:11]Write to MH i2c: E2 08 00 75 10 80 09 00 00 00 00 00 00 F7 [22:01:11]Write i2c OK [22:01:11]MH_I2C_Read... [22:01:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:01:11]Read from MH i2c: E2 [22:01:11]MH_I2C_Read... [22:01:11]Read from MH i2c: E2 03 00 [22:01:11]MH_I2C_Read... [22:01:11]Read from MH i2c: E2 03 00 75 10 00 90 00 F9 [22:01:11]RAPDU: 90 00 [22:01:11]wFMCommunicate OK [22:01:11]SAM_PROTO_ClearQueue done [22:01:11]KKMCreateOFDPacket [22:01:11]OFDProtocolAddRootSTLVToBuf [22:01:11]FM_MakeSignedData [22:01:11]FM_MakeSignedData [22:01:11]SAM_PROTO_SignData [22:01:11]wFMCommunicate request_size=4 [22:01:11]MH_SAM_APDU [22:01:11]CAPDU: 80 0D 01 02 [22:01:11]Write to MH i2c: E2 08 00 76 10 80 0D 01 02 00 00 00 00 FF [22:01:11]Write i2c OK [22:01:11]MH_I2C_Read... [22:01:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:01:11]Read from MH i2c: E2 [22:01:11]MH_I2C_Read... [22:01:11]Read from MH i2c: E2 03 00 [22:01:11]MH_I2C_Read... [22:01:11]Read from MH i2c: E2 03 00 76 10 00 90 00 FA [22:01:11]RAPDU: 90 00 [22:01:11]wFMCommunicate OK [22:01:11]wFMCommunicate request_size=255 [22:01:11]MH_SAM_APDU [22:01: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 B6 17 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 41 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 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 7B 00 00 00 F4 03 04 00 A8 D7 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 2C 93 01 00 35 04 06 00 18 [22:01:11]Write to MH i2c: E2 02 01 77 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 17 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 41 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 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 7B 00 00 00 F4 03 04 00 A8 D7 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 2C 93 01 00 35 04 06 00 18 00 00 14 [22:01:11]Write i2c OK [22:01:11]MH_I2C_Read... [22:01:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:01:12]Read from MH i2c: E2 [22:01:12]MH_I2C_Read... [22:01:12]Read from MH i2c: E2 03 00 [22:01:12]MH_I2C_Read... [22:01:12]Read from MH i2c: E2 03 00 77 10 00 90 00 FB [22:01:12]RAPDU: 90 00 [22:01:12]wFMCommunicate OK [22:01:12]wFMCommunicate request_size=10 [22:01:12]MH_SAM_APDU [22:01:12]CAPDU: 80 0D 02 02 05 7C B4 F1 B4 E3 [22:01:12]Write to MH i2c: E2 0D 00 78 10 80 0D 02 02 05 00 7C B4 F1 B4 E3 00 00 C4 [22:01:12]Write i2c OK [22:01:12]MH_I2C_Read... [22:01:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:01:12]Read from MH i2c: E2 [22:01:12]MH_I2C_Read... [22:01:12]Read from MH i2c: E2 03 00 [22:01:12]MH_I2C_Read... [22:01:12]Read from MH i2c: E2 03 00 78 10 00 90 00 FC [22:01:12]RAPDU: 90 00 [22:01:12]wFMCommunicate OK [22:01:12]wFMCommunicate request_size=4 [22:01:12]MH_SAM_APDU [22:01:12]CAPDU: 80 0D 03 02 [22:01:12]Write to MH i2c: E2 08 00 79 10 80 0D 03 02 00 00 00 00 04 [22:01:12]Write i2c OK [22:01:12]MH_I2C_Read... [22:01:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:01:12]Read from MH i2c: E2 [22:01:12]MH_I2C_Read... [22:01:12]Read from MH i2c: E2 0B 00 [22:01:12]MH_I2C_Read... [22:01:12]Read from MH i2c: E2 0B 00 79 10 00 7B 8F BB 85 7C 77 B8 7E 90 00 78 [22:01:12]RAPDU: 7B 8F BB 85 7C 77 B8 7E 90 00 [22:01:12]wFMCommunicate OK [22:01:12]SAM_PROTO_SignData done [22:01:12]FM_MakeSignedData done [22:01:12]CreateOFDProtocolMessage [22:01:12]wFMCommunicate request_size=4 [22:01:12]MH_SAM_APDU [22:01:12]CAPDU: 80 11 00 00 [22:01:12]Write to MH i2c: E2 08 00 7A 10 80 11 00 00 00 00 00 00 04 [22:01:12]Write i2c OK [22:01:12]MH_I2C_Read... [22:01:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:01:12]Read from MH i2c: E2 [22:01:12]MH_I2C_Read... [22:01:12]Read from MH i2c: E2 17 00 [22:01:12]MH_I2C_Read... [22:01:12]Read from MH i2c: E2 17 00 7A 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 58 [22:01:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [22:01:12]wFMCommunicate OK [22:01:12]CreateOFDProtocolMessage done [22:01:12]OFDSenderStorePacket 103212 [22:01:12]StoreOFDPacket docnum=103212 [22:01:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 ED B6 07 01 8E 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 B6 17 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 41 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 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 7B 00 00 00 F4 03 04 00 A8 D7 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 2C 93 01 00 35 04 06 00 18 7C B4 F1 B4 E3 7B 8F BB 85 7C 77 B8 7E [22:01:12]CheckFolder [22:01:12]dirname=/storage/ofd_packets [22:01:12]CheckFolder done [22:01:12]ProducePacketName [22:01:12]name=ofd_packets/00103212 [22:01:12]NVStorageSaveData ofd_packets/00103212 [22:01:12]File name is /storage/ofd_packets/00103212 [22:01:12]Write 301 bytes [22:01:12]NVStorageSaveData done [22:01:12]OFDSenderStorePacket done [22:01:12]KKMCreateOFDPacket done [22:01:12]NVStorageSaveData kkm_last_timestamp [22:01:12]File name is /storage/kkm_last_timestamp [22:01:12]Write 4 bytes [22:01:12]NVStorageSaveData done [22:01:12]ExternCall_PrintAddStr [22:01:12]wPrintStart [22:01:12]Write to MH i2c: 01 00 00 7B 10 8B [22:01:12]Write i2c OK [22:01:12]MH_I2C_Read... [22:01:12]Read from MH i2c: 01 [22:01:12]MH_I2C_Read... [22:01:12]Read from MH i2c: 01 07 00 [22:01:12]MH_I2C_Read... [22:01:12]Read from MH i2c: 01 07 00 7B 10 00 00 00 00 00 FF 0F A0 [22:01:12]RasterBufferAndPrint [22:01:12]line Счет N : (1)160840 [22:01:12]line ИНН: 02508201610067 [22:01:12]line Контрольно-Кассовый Чек [22:01:12]line ПРОДАЖА [22:01:12]line ТРК (МРК, ГНК) : 7 [22:01:12]line Товар: 2710124130 [22:01:12]line Аи-92-К-5 [22:01:12]line 6.070 * 65.90 [22:01:12]line = 400.01 [22:01:12]line НДС 12% НСП 1% [22:01:12]line > о реализуемом товаре [22:01:12]line ОКРУГЛЕНИЕ: -0.01 [22:01:12]line ИТОГО: 400.00 [22:01:12]line Внесено: 400.00 [22:01:12]line СДАЧА: 0.00 [22:01:12]line НСП 1% : 3.54 [22:01:12]line НДС 12% : 42.48 [22:01:12]line Наличными: 400.00 [22:01:12]line Безнал.: 0.00 [22:01:12]line Место: АЗС № 38 "Партнер Нефть" [22:01:12]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [22:01:12]line СНО: Общий режим [22:01:12]line Чек 123 13.08.2024 22:01 [22:01:12]line Смена: 464 ФФД: 1.0 [22:01:12]line ЗНМ: 0300000126 [22:01:12]line РНМ: 0000000000092718 [22:01:12]line Версия ККМ: 001 [22:01:12]line ФМ: 0000000000875058 [22:01:12]line ФД: 103212 [22:01:12]line ФПД: 26923890750691 [22:01:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T220112&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103212&fm=26923890750691&tin=02508201610067®Number=0000000000092718&sum=40000 [22:01:12]OFD Sender: Processing packet 103212 [packets to send 69, broken 68] [22:01:12]ProducePacketName [22:01:12]name=ofd_packets/00103212 [22:01:12]OFD Sender: To server: pG, [22:01:12]CommunicateWithHost lk.salyk.kg:30040 [22:01:12]ConnectInit lk.salyk.kg [22:01:12]written 0, free lines is 4095 [22:01:12]Connected sock=10 [22:01:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 ED B6 07 01 8E 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 B6 17 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 41 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 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 7B 00 00 00 F4 03 04 00 A8 D7 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 2C 93 01 00 35 04 06 00 18 7C B4 F1 B4 E3 7B 8F BB 85 7C 77 B8 7E [22:01:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 4A 00 47 00 67 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 35 30 35 38 10 04 04 00 2C 93 01 00 F4 03 04 00 1A 7E BB 66 B6 04 01 00 00 23 89 9A 71 99 BB 47 01 [22:01:12]CommunicateWithHost err = 0 [22:01:12]CheckOFDResponse [22:01:12]1017 (14) - 77093643461234 [22:01:12]1041 (16) - 0000000000875058 [22:01:12]1040 (4) - 103212 [22:01:12]1012 (4) - 13.08.2024 15:39 [22:01:12]1206 (1) - 0 [22:01:12]OFD Sender: Remove packet 103212 [22:01:12]ProducePacketName [22:01:12]name=ofd_packets/00103212 [22:01:12]NVStorageDeleteData [22:01:13]Write to MH i2c: 01 00 00 A6 10 B6 [22:01:13]Write i2c OK [22:01:13]MH_I2C_Read... [22:01:13]Read from MH i2c: 01 [22:01:13]MH_I2C_Read... [22:01:13]Read from MH i2c: 01 07 00 [22:01:13]MH_I2C_Read... [22:01:13]Read from MH i2c: 01 07 00 A6 10 00 00 00 00 00 E8 0C B1 [22:01:13]RasterBufferAndPrint [22:01:13]line [22:01:13]line [22:01:13]line [22:01:13]line [22:01:13]line [22:01:13]written 0, free lines is 3310 [22:01:13]MH_Cut [22:01:13]Write to MH i2c: D1 01 00 AD 10 01 8F [22:01:13]Write i2c OK [22:01:13]MH_I2C_Read... [22:01:13]Read from MH i2c: D1 [22:01:13]MH_I2C_Read... [22:01:13]Read from MH i2c: D1 01 00 [22:01:13]MH_I2C_Read... [22:01:13]Read from MH i2c: D1 01 00 AD 10 00 8E [22:01:13]Write to MH i2c: 01 00 00 AE 10 BE [22:01:13]Write i2c OK [22:01:13]MH_I2C_Read... [22:01:13]OFD Sender: No OFD packet to send [22:01:13]*** Cut start [22:01:13]*** Purtial cut [22:01:13]*** Stage 1: CUTSNS_PIN = 1 [22:01:14]Read from MH i2c: 01 [22:01:14]MH_I2C_Read... [22:01:14]*** Stop cut motor [22:01:14]*** Cut end [22:01:14]Read from MH i2c: 01 07 00 [22:01:14]MH_I2C_Read... [22:01:14]Read from MH i2c: 01 07 00 AE 10 00 00 00 00 00 FF 0F D3 [22:01:14]process_action close_receipt done [22:01:14]requested_data is exist [22:01:14]produce_requested_data [22:01:14]requested_item fm.sn is exist - process it [22:01:14]wFMCommunicate request_size=4 [22:01:14]MH_SAM_APDU [22:01:14]CAPDU: 80 11 00 00 [22:01:14]Write to MH i2c: E2 08 00 AF 10 80 11 00 00 00 00 00 00 39 [22:01:14]Write i2c OK [22:01:14]MH_I2C_Read... [22:01:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:01:14]Read from MH i2c: E2 [22:01:14]MH_I2C_Read... [22:01:14]Read from MH i2c: E2 17 00 [22:01:14]MH_I2C_Read... [22:01:14]Read from MH i2c: E2 17 00 AF 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 8D [22:01:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [22:01:14]wFMCommunicate OK [22:01:14]requested_item fd.num is exist - process it [22:01:14]SAM_PROTO_GetFieldsCounters [22:01:14]wFMCommunicate request_size=4 [22:01:14]MH_SAM_APDU [22:01:14]CAPDU: 80 13 00 00 [22:01:14]Write to MH i2c: E2 08 00 B0 10 80 13 00 00 00 00 00 00 3C [22:01:14]Write i2c OK [22:01:14]MH_I2C_Read... [22:01:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:01:14]Read from MH i2c: E2 [22:01:14]MH_I2C_Read... [22:01:14]Read from MH i2c: E2 62 00 [22:01:14]MH_I2C_Read... [22:01:14]Read from MH i2c: E2 62 00 B0 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 2C 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [22:01:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 2C 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:01:14]wFMCommunicate OK [22:01:14]SAM_PROTO_GetFieldsCounters done [22:01:14]requested_item shift.num is exist - process it [22:01:14]requested_item shift.opened is exist - process it [22:01:14]req_shift_opened [22:01:14]FM_GetShiftState [22:01:14]SAM_PROTO_GetShiftState [22:01:14]wFMCommunicate request_size=4 [22:01:14]MH_SAM_APDU [22:01:14]CAPDU: 80 13 01 00 [22:01:14]Write to MH i2c: E2 08 00 B1 10 80 13 01 00 00 00 00 00 3E [22:01:14]Write i2c OK [22:01:14]MH_I2C_Read... [22:01:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:01:14]Read from MH i2c: E2 [22:01:14]MH_I2C_Read... [22:01:14]Read from MH i2c: E2 0E 00 [22:01:14]MH_I2C_Read... [22:01:14]Read from MH i2c: E2 0E 00 B1 10 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 5C [22:01:14]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [22:01:14]wFMCommunicate OK [22:01:14]SAM_PROTO_GetShiftState done [22:01:14]FM_GetShiftState done [22:01:14]req_shift_opened done [22:01:14]requested_item shift.open_date is exist - process it [22:01:14]req_shift_open_date [22:01:14]req_shift_open_date done [22:01:14]produce_requested_data done [22:01:14]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103212,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [22:01:14]process_action_free close_receipt [22:01:14]json_value_free [22:01:14]json_value_free done [22:01:14]process_json_proto returns [22:01:14]Send response to host [22:01:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103212,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [22:01:14]free response buf [22:01:14]execute_script done [22:01:14]execute_script returns [22:01:14]free content buf [22:01:14]Sock 9.Close socket [22:01:14]Sock 9.Thread stoped [22:01:18]OFD Sender: No OFD packet to send [22:01:23]OFD Sender: No OFD packet to send [22:01:28]OFD Sender: No OFD packet to send [22:01:33]OFD Sender: No OFD packet to send [22:01:38]OFD Sender: No OFD packet to send [22:01:43]OFD Sender: No OFD packet to send [22:01:48]OFD Sender: No OFD packet to send [22:01:53]OFD Sender: No OFD packet to send [22:01:58]OFD Sender: No OFD packet to send [22:02:03]OFD Sender: No OFD packet to send [22:02:08]OFD Sender: No OFD packet to send [22:02:13]OFD Sender: No OFD packet to send [22:02:18]OFD Sender: No OFD packet to send [22:02:23]OFD Sender: No OFD packet to send [22:02:28]OFD Sender: No OFD packet to send [22:02:33]OFD Sender: No OFD packet to send [22:02:38]OFD Sender: No OFD packet to send [22:02:43]OFD Sender: No OFD packet to send [22:02:48]OFD Sender: No OFD packet to send [22:02:53]OFD Sender: No OFD packet to send [22:02:58]OFD Sender: No OFD packet to send [22:03:03]OFD Sender: No OFD packet to send [22:03:08]OFD Sender: No OFD packet to send [22:03:13]OFD Sender: No OFD packet to send [22:03:18]OFD Sender: No OFD packet to send [22:03:23]OFD Sender: No OFD packet to send [22:03:28]OFD Sender: No OFD packet to send [22:03:33]OFD Sender: No OFD packet to send [22:03:38]OFD Sender: No OFD packet to send [22:03:43]OFD Sender: No OFD packet to send [22:03:48]OFD Sender: No OFD packet to send [22:03:53]OFD Sender: No OFD packet to send [22:03:58]OFD Sender: No OFD packet to send [22:04:03]OFD Sender: No OFD packet to send [22:04:08]OFD Sender: No OFD packet to send [22:04:13]OFD Sender: No OFD packet to send [22:04:18]OFD Sender: No OFD packet to send [22:04:23]OFD Sender: No OFD packet to send [22:04:28]OFD Sender: No OFD packet to send [22:04:33]OFD Sender: No OFD packet to send [22:04:38]OFD Sender: No OFD packet to send [22:04:43]OFD Sender: No OFD packet to send [22:04:48]OFD Sender: No OFD packet to send [22:04:53]OFD Sender: No OFD packet to send [22:04:58]OFD Sender: No OFD packet to send [22:05:03]OFD Sender: No OFD packet to send [22:05:08]OFD Sender: No OFD packet to send [22:05:13]OFD Sender: No OFD packet to send [22:05:18]OFD Sender: No OFD packet to send [22:05:23]OFD Sender: No OFD packet to send [22:05:28]OFD Sender: No OFD packet to send [22:05:33]OFD Sender: No OFD packet to send [22:05:38]OFD Sender: No OFD packet to send [22:05:43]OFD Sender: No OFD packet to send [22:05:48]OFD Sender: No OFD packet to send [22:05:53]OFD Sender: No OFD packet to send [22:05:58]OFD Sender: No OFD packet to send [22:06:03]OFD Sender: No OFD packet to send [22:06:08]OFD Sender: No OFD packet to send [22:06:13]OFD Sender: No OFD packet to send [22:06:18]OFD Sender: No OFD packet to send [22:06:23]OFD Sender: No OFD packet to send [22:06:28]OFD Sender: No OFD packet to send [22:06:33]OFD Sender: No OFD packet to send [22:06:38]OFD Sender: No OFD packet to send [22:06:43]OFD Sender: No OFD packet to send [22:06:48]OFD Sender: No OFD packet to send [22:06:53]OFD Sender: No OFD packet to send [22:06:58]OFD Sender: No OFD packet to send [22:07:03]OFD Sender: No OFD packet to send [22:07:08]OFD Sender: No OFD packet to send [22:07:13]OFD Sender: No OFD packet to send [22:07:18]OFD Sender: No OFD packet to send [22:07:23]OFD Sender: No OFD packet to send [22:07:28]OFD Sender: No OFD packet to send [22:07:33]OFD Sender: No OFD packet to send [22:07:38]OFD Sender: No OFD packet to send [22:07:43]OFD Sender: No OFD packet to send [22:07:48]OFD Sender: No OFD packet to send [22:07:53]OFD Sender: No OFD packet to send [22:07:58]OFD Sender: No OFD packet to send [22:08:03]OFD Sender: No OFD packet to send [22:08:08]OFD Sender: No OFD packet to send [22:08:13]OFD Sender: No OFD packet to send [22:08:18]OFD Sender: No OFD packet to send [22:08:23]OFD Sender: No OFD packet to send [22:08:28]OFD Sender: No OFD packet to send [22:08:33]OFD Sender: No OFD packet to send [22:08:38]OFD Sender: No OFD packet to send [22:08:43]OFD Sender: No OFD packet to send [22:08:48]OFD Sender: No OFD packet to send [22:08:53]OFD Sender: No OFD packet to send [22:08:58]OFD Sender: No OFD packet to send [22:09:03]OFD Sender: No OFD packet to send [22:09:08]OFD Sender: No OFD packet to send [22:09:13]OFD Sender: No OFD packet to send [22:09:18]OFD Sender: No OFD packet to send [22:09:23]OFD Sender: No OFD packet to send [22:09:28]OFD Sender: No OFD packet to send [22:09:33]OFD Sender: No OFD packet to send [22:09:38]OFD Sender: No OFD packet to send [22:09:43]OFD Sender: No OFD packet to send [22:09:48]OFD Sender: No OFD packet to send [22:09:53]OFD Sender: No OFD packet to send [22:09:58]OFD Sender: No OFD packet to send [22:10:04]OFD Sender: No OFD packet to send [22:10:09]OFD Sender: No OFD packet to send [22:10:14]OFD Sender: No OFD packet to send [22:10:19]OFD Sender: No OFD packet to send [22:10:24]OFD Sender: No OFD packet to send [22:10:29]OFD Sender: No OFD packet to send [22:10:34]OFD Sender: No OFD packet to send [22:10:39]OFD Sender: No OFD packet to send [22:10:44]OFD Sender: No OFD packet to send [22:10:49]OFD Sender: No OFD packet to send [22:10:54]OFD Sender: No OFD packet to send [22:10:59]OFD Sender: No OFD packet to send [22:11:04]OFD Sender: No OFD packet to send [22:11:09]OFD Sender: No OFD packet to send [22:11:14]OFD Sender: No OFD packet to send [22:11:19]OFD Sender: No OFD packet to send [22:11:24]OFD Sender: No OFD packet to send [22:11:29]OFD Sender: No OFD packet to send [22:11:34]OFD Sender: No OFD packet to send [22:11:39]OFD Sender: No OFD packet to send [22:11:44]OFD Sender: No OFD packet to send [22:11:49]OFD Sender: No OFD packet to send [22:11:54]OFD Sender: No OFD packet to send [22:11:59]OFD Sender: No OFD packet to send [22:12:04]OFD Sender: No OFD packet to send [22:12:09]OFD Sender: No OFD packet to send [22:12:14]OFD Sender: No OFD packet to send [22:12:19]OFD Sender: No OFD packet to send [22:12:24]OFD Sender: No OFD packet to send [22:12:29]OFD Sender: No OFD packet to send [22:12:34]OFD Sender: No OFD packet to send [22:12:39]OFD Sender: No OFD packet to send [22:12:44]OFD Sender: No OFD packet to send [22:12:49]OFD Sender: No OFD packet to send [22:12:54]OFD Sender: No OFD packet to send [22:12:59]OFD Sender: No OFD packet to send [22:13:04]OFD Sender: No OFD packet to send [22:13:09]OFD Sender: No OFD packet to send [22:13:14]OFD Sender: No OFD packet to send [22:13:19]OFD Sender: No OFD packet to send [22:13:24]OFD Sender: No OFD packet to send [22:13:29]OFD Sender: No OFD packet to send [22:13:34]OFD Sender: No OFD packet to send [22:13:39]OFD Sender: No OFD packet to send [22:13:44]OFD Sender: No OFD packet to send [22:13:49]OFD Sender: No OFD packet to send [22:13:54]OFD Sender: No OFD packet to send [22:13:59]OFD Sender: No OFD packet to send [22:14:04]OFD Sender: No OFD packet to send [22:14:09]OFD Sender: No OFD packet to send [22:14:14]OFD Sender: No OFD packet to send [22:14:19]OFD Sender: No OFD packet to send [22:14:24]OFD Sender: No OFD packet to send [22:14:29]OFD Sender: No OFD packet to send [22:14:34]OFD Sender: No OFD packet to send [22:14:39]OFD Sender: No OFD packet to send [22:14:44]OFD Sender: No OFD packet to send [22:14:49]OFD Sender: No OFD packet to send [22:14:54]OFD Sender: No OFD packet to send [22:14:59]OFD Sender: No OFD packet to send [22:15:04]OFD Sender: No OFD packet to send [22:15:09]OFD Sender: No OFD packet to send [22:15:14]OFD Sender: No OFD packet to send [22:15:19]OFD Sender: No OFD packet to send [22:15:24]OFD Sender: No OFD packet to send [22:15:29]OFD Sender: No OFD packet to send [22:15:34]OFD Sender: No OFD packet to send [22:15:39]OFD Sender: No OFD packet to send [22:15:44]OFD Sender: No OFD packet to send [22:15:49]OFD Sender: No OFD packet to send [22:15:54]OFD Sender: No OFD packet to send [22:15:59]OFD Sender: No OFD packet to send [22:16:04]OFD Sender: No OFD packet to send [22:16:09]OFD Sender: No OFD packet to send [22:16:14]OFD Sender: No OFD packet to send [22:16:19]OFD Sender: No OFD packet to send [22:16:24]OFD Sender: No OFD packet to send [22:16:29]OFD Sender: No OFD packet to send [22:16:34]OFD Sender: No OFD packet to send [22:16:39]OFD Sender: No OFD packet to send [22:16:44]OFD Sender: No OFD packet to send [22:16:49]OFD Sender: No OFD packet to send [22:16:54]OFD Sender: No OFD packet to send [22:16:59]OFD Sender: No OFD packet to send [22:17:04]OFD Sender: No OFD packet to send [22:17:09]OFD Sender: No OFD packet to send [22:17:14]OFD Sender: No OFD packet to send [22:17:19]OFD Sender: No OFD packet to send [22:17:24]OFD Sender: No OFD packet to send [22:17:29]OFD Sender: No OFD packet to send [22:17:34]OFD Sender: No OFD packet to send [22:17:39]OFD Sender: No OFD packet to send [22:17:44]OFD Sender: No OFD packet to send [22:17:49]OFD Sender: No OFD packet to send [22:17:54]OFD Sender: No OFD packet to send [22:17:59]OFD Sender: No OFD packet to send [22:18:04]OFD Sender: No OFD packet to send [22:18:09]OFD Sender: No OFD packet to send [22:18:14]OFD Sender: No OFD packet to send [22:18:19]OFD Sender: No OFD packet to send [22:18:24]OFD Sender: No OFD packet to send [22:18:29]OFD Sender: No OFD packet to send [22:18:34]OFD Sender: No OFD packet to send [22:18:39]OFD Sender: No OFD packet to send [22:18:44]OFD Sender: No OFD packet to send [22:18:49]OFD Sender: No OFD packet to send [22:18:54]OFD Sender: No OFD packet to send [22:18:59]OFD Sender: No OFD packet to send [22:19:04]OFD Sender: No OFD packet to send [22:19:09]OFD Sender: No OFD packet to send [22:19:14]OFD Sender: No OFD packet to send [22:19:19]OFD Sender: No OFD packet to send [22:19:24]OFD Sender: No OFD packet to send [22:19:29]OFD Sender: No OFD packet to send [22:19:34]OFD Sender: No OFD packet to send [22:19:39]OFD Sender: No OFD packet to send [22:19:44]OFD Sender: No OFD packet to send [22:19:49]OFD Sender: No OFD packet to send [22:19:54]OFD Sender: No OFD packet to send [22:19:59]OFD Sender: No OFD packet to send [22:20:04]OFD Sender: No OFD packet to send [22:20:09]OFD Sender: No OFD packet to send [22:20:14]OFD Sender: No OFD packet to send [22:20:19]OFD Sender: No OFD packet to send [22:20:24]OFD Sender: No OFD packet to send [22:20:29]OFD Sender: No OFD packet to send [22:20:34]OFD Sender: No OFD packet to send [22:20:39]OFD Sender: No OFD packet to send [22:20:44]OFD Sender: No OFD packet to send [22:20:49]OFD Sender: No OFD packet to send [22:20:54]OFD Sender: No OFD packet to send [22:20:59]OFD Sender: No OFD packet to send [22:21:04]OFD Sender: No OFD packet to send [22:21:09]OFD Sender: No OFD packet to send [22:21:14]OFD Sender: No OFD packet to send [22:21:19]OFD Sender: No OFD packet to send [22:21:24]OFD Sender: No OFD packet to send [22:21:29]OFD Sender: No OFD packet to send [22:21:34]OFD Sender: No OFD packet to send [22:21:39]OFD Sender: No OFD packet to send [22:21:44]OFD Sender: No OFD packet to send [22:21:49]OFD Sender: No OFD packet to send [22:21:54]OFD Sender: No OFD packet to send [22:21:59]OFD Sender: No OFD packet to send [22:22:04]OFD Sender: No OFD packet to send [22:22:09]OFD Sender: No OFD packet to send [22:22:14]OFD Sender: No OFD packet to send [22:22:19]OFD Sender: No OFD packet to send [22:22:24]OFD Sender: No OFD packet to send [22:22:29]OFD Sender: No OFD packet to send [22:22:34]OFD Sender: No OFD packet to send [22:22:39]OFD Sender: No OFD packet to send [22:22:44]OFD Sender: No OFD packet to send [22:22:49]OFD Sender: No OFD packet to send [22:22:54]OFD Sender: No OFD packet to send [22:22:59]OFD Sender: No OFD packet to send [22:23:04]OFD Sender: No OFD packet to send [22:23:09]OFD Sender: No OFD packet to send [22:23:14]OFD Sender: No OFD packet to send [22:23:19]OFD Sender: No OFD packet to send [22:23:24]OFD Sender: No OFD packet to send [22:23:29]OFD Sender: No OFD packet to send [22:23:34]OFD Sender: No OFD packet to send [22:23:39]OFD Sender: No OFD packet to send [22:23:44]OFD Sender: No OFD packet to send [22:23:49]OFD Sender: No OFD packet to send [22:23:54]OFD Sender: No OFD packet to send [22:23:59]OFD Sender: No OFD packet to send [22:24:04]OFD Sender: No OFD packet to send [22:24:09]OFD Sender: No OFD packet to send [22:24:14]OFD Sender: No OFD packet to send [22:24:19]OFD Sender: No OFD packet to send [22:24:24]OFD Sender: No OFD packet to send [22:24:29]OFD Sender: No OFD packet to send [22:24:34]OFD Sender: No OFD packet to send [22:24:39]OFD Sender: No OFD packet to send [22:24:44]OFD Sender: No OFD packet to send [22:24:49]OFD Sender: No OFD packet to send [22:24:54]OFD Sender: No OFD packet to send [22:24:59]OFD Sender: No OFD packet to send [22:25:04]OFD Sender: No OFD packet to send [22:25:09]OFD Sender: No OFD packet to send [22:25:14]OFD Sender: No OFD packet to send [22:25:19]OFD Sender: No OFD packet to send [22:25:24]OFD Sender: No OFD packet to send [22:25:29]OFD Sender: No OFD packet to send [22:25:34]OFD Sender: No OFD packet to send [22:25:39]OFD Sender: No OFD packet to send [22:25:44]OFD Sender: No OFD packet to send [22:25:49]OFD Sender: No OFD packet to send [22:25:54]OFD Sender: No OFD packet to send [22:25:59]OFD Sender: No OFD packet to send [22:26:04]OFD Sender: No OFD packet to send [22:26:09]OFD Sender: No OFD packet to send [22:26:14]OFD Sender: No OFD packet to send [22:26:19]OFD Sender: No OFD packet to send [22:26:24]OFD Sender: No OFD packet to send [22:26:29]OFD Sender: No OFD packet to send [22:26:34]OFD Sender: No OFD packet to send [22:26:39]OFD Sender: No OFD packet to send [22:26:44]OFD Sender: No OFD packet to send [22:26:49]OFD Sender: No OFD packet to send [22:26:54]OFD Sender: No OFD packet to send [22:27:00]OFD Sender: No OFD packet to send [22:27:05]OFD Sender: No OFD packet to send [22:27:10]OFD Sender: No OFD packet to send [22:27:15]OFD Sender: No OFD packet to send [22:27:20]OFD Sender: No OFD packet to send [22:27:25]OFD Sender: No OFD packet to send [22:27:30]OFD Sender: No OFD packet to send [22:27:35]OFD Sender: No OFD packet to send [22:27:40]OFD Sender: No OFD packet to send [22:27:45]OFD Sender: No OFD packet to send [22:27:50]OFD Sender: No OFD packet to send [22:27:55]OFD Sender: No OFD packet to send [22:28:00]OFD Sender: No OFD packet to send [22:28:05]OFD Sender: No OFD packet to send [22:28:10]OFD Sender: No OFD packet to send [22:28:15]OFD Sender: No OFD packet to send [22:28:20]OFD Sender: No OFD packet to send [22:28:25]OFD Sender: No OFD packet to send [22:28:30]OFD Sender: No OFD packet to send [22:28:35]OFD Sender: No OFD packet to send [22:28:40]OFD Sender: No OFD packet to send [22:28:45]OFD Sender: No OFD packet to send [22:28:50]OFD Sender: No OFD packet to send [22:28:55]OFD Sender: No OFD packet to send [22:29:00]OFD Sender: No OFD packet to send [22:29:05]OFD Sender: No OFD packet to send [22:29:10]OFD Sender: No OFD packet to send [22:29:15]OFD Sender: No OFD packet to send [22:29:20]OFD Sender: No OFD packet to send [22:29:25]OFD Sender: No OFD packet to send [22:29:30]OFD Sender: No OFD packet to send [22:29:35]OFD Sender: No OFD packet to send [22:29:40]OFD Sender: No OFD packet to send [22:29:45]OFD Sender: No OFD packet to send [22:29:50]OFD Sender: No OFD packet to send [22:29:55]OFD Sender: No OFD packet to send [22:30:00]OFD Sender: No OFD packet to send [22:30:05]OFD Sender: No OFD packet to send [22:30:10]OFD Sender: No OFD packet to send [22:30:15]OFD Sender: No OFD packet to send [22:30:20]OFD Sender: No OFD packet to send [22:30:25]OFD Sender: No OFD packet to send [22:30:30]OFD Sender: No OFD packet to send [22:30:35]OFD Sender: No OFD packet to send [22:30:40]OFD Sender: No OFD packet to send [22:30:45]OFD Sender: No OFD packet to send [22:30:50]OFD Sender: No OFD packet to send [22:30:55]OFD Sender: No OFD packet to send [22:31:00]OFD Sender: No OFD packet to send [22:31:05]OFD Sender: No OFD packet to send [22:31:10]OFD Sender: No OFD packet to send [22:31:15]OFD Sender: No OFD packet to send [22:31:20]OFD Sender: No OFD packet to send [22:31:25]OFD Sender: No OFD packet to send [22:31:30]OFD Sender: No OFD packet to send [22:31:35]OFD Sender: No OFD packet to send [22:31:40]OFD Sender: No OFD packet to send [22:31:45]OFD Sender: No OFD packet to send [22:31:50]OFD Sender: No OFD packet to send [22:31:55]OFD Sender: No OFD packet to send [22:32:00]OFD Sender: No OFD packet to send [22:32:05]OFD Sender: No OFD packet to send [22:32:10]OFD Sender: No OFD packet to send [22:32:15]OFD Sender: No OFD packet to send [22:32:20]OFD Sender: No OFD packet to send [22:32:25]OFD Sender: No OFD packet to send [22:32:30]OFD Sender: No OFD packet to send [22:32:35]OFD Sender: No OFD packet to send [22:32:40]OFD Sender: No OFD packet to send [22:32:45]OFD Sender: No OFD packet to send [22:32:50]OFD Sender: No OFD packet to send [22:32:55]OFD Sender: No OFD packet to send [22:33:00]OFD Sender: No OFD packet to send [22:33:05]OFD Sender: No OFD packet to send [22:33:10]OFD Sender: No OFD packet to send [22:33:15]OFD Sender: No OFD packet to send [22:33:20]OFD Sender: No OFD packet to send [22:33:25]OFD Sender: No OFD packet to send [22:33:30]OFD Sender: No OFD packet to send [22:33:35]OFD Sender: No OFD packet to send [22:33:40]OFD Sender: No OFD packet to send [22:33:45]OFD Sender: No OFD packet to send [22:33:50]OFD Sender: No OFD packet to send [22:33:55]OFD Sender: No OFD packet to send [22:34:00]OFD Sender: No OFD packet to send [22:34:05]OFD Sender: No OFD packet to send [22:34:10]OFD Sender: No OFD packet to send [22:34:15]OFD Sender: No OFD packet to send [22:34:20]OFD Sender: No OFD packet to send [22:34:25]OFD Sender: No OFD packet to send [22:34:30]OFD Sender: No OFD packet to send [22:34:35]OFD Sender: No OFD packet to send [22:34:40]OFD Sender: No OFD packet to send [22:34:45]OFD Sender: No OFD packet to send [22:34:50]OFD Sender: No OFD packet to send [22:34:55]OFD Sender: No OFD packet to send [22:35:00]OFD Sender: No OFD packet to send [22:35:05]OFD Sender: No OFD packet to send [22:35:10]OFD Sender: No OFD packet to send [22:35:15]OFD Sender: No OFD packet to send [22:35:20]OFD Sender: No OFD packet to send [22:35:25]OFD Sender: No OFD packet to send [22:35:30]OFD Sender: No OFD packet to send [22:35:35]OFD Sender: No OFD packet to send [22:35:40]OFD Sender: No OFD packet to send [22:35:45]OFD Sender: No OFD packet to send [22:35:50]OFD Sender: No OFD packet to send [22:35:55]OFD Sender: No OFD packet to send [22:36:00]OFD Sender: No OFD packet to send [22:36:05]OFD Sender: No OFD packet to send [22:36:10]OFD Sender: No OFD packet to send [22:36:15]OFD Sender: No OFD packet to send [22:36:20]OFD Sender: No OFD packet to send [22:36:25]OFD Sender: No OFD packet to send [22:36:30]OFD Sender: No OFD packet to send [22:36:35]OFD Sender: No OFD packet to send [22:36:40]OFD Sender: No OFD packet to send [22:36:45]OFD Sender: No OFD packet to send [22:36:50]OFD Sender: No OFD packet to send [22:36:55]OFD Sender: No OFD packet to send [22:37:00]OFD Sender: No OFD packet to send [22:37:05]OFD Sender: No OFD packet to send [22:37:10]OFD Sender: No OFD packet to send [22:37:15]OFD Sender: No OFD packet to send [22:37:20]OFD Sender: No OFD packet to send [22:37:25]OFD Sender: No OFD packet to send [22:37:30]OFD Sender: No OFD packet to send [22:37:35]OFD Sender: No OFD packet to send [22:37:40]OFD Sender: No OFD packet to send [22:37:45]OFD Sender: No OFD packet to send [22:37:50]OFD Sender: No OFD packet to send [22:37:55]OFD Sender: No OFD packet to send [22:38:00]OFD Sender: No OFD packet to send [22:38:05]OFD Sender: No OFD packet to send [22:38:10]OFD Sender: No OFD packet to send [22:38:15]OFD Sender: No OFD packet to send [22:38:20]OFD Sender: No OFD packet to send [22:38:25]OFD Sender: No OFD packet to send [22:38:30]OFD Sender: No OFD packet to send [22:38:35]OFD Sender: No OFD packet to send [22:38:40]OFD Sender: No OFD packet to send [22:38:45]OFD Sender: No OFD packet to send [22:38:50]OFD Sender: No OFD packet to send [22:38:55]OFD Sender: No OFD packet to send [22:39:00]OFD Sender: No OFD packet to send [22:39:05]OFD Sender: No OFD packet to send [22:39:10]OFD Sender: No OFD packet to send [22:39:15]OFD Sender: No OFD packet to send [22:39:20]OFD Sender: No OFD packet to send [22:39:25]OFD Sender: No OFD packet to send [22:39:30]OFD Sender: No OFD packet to send [22:39:35]OFD Sender: No OFD packet to send [22:39:40]OFD Sender: No OFD packet to send [22:39:45]OFD Sender: No OFD packet to send [22:39:50]OFD Sender: No OFD packet to send [22:39:55]OFD Sender: No OFD packet to send [22:40:00]OFD Sender: No OFD packet to send [22:40:05]OFD Sender: No OFD packet to send [22:40:10]OFD Sender: No OFD packet to send [22:40:15]OFD Sender: No OFD packet to send [22:40:20]OFD Sender: No OFD packet to send [22:40:25]OFD Sender: No OFD packet to send [22:40:30]OFD Sender: No OFD packet to send [22:40:35]OFD Sender: No OFD packet to send [22:40:40]OFD Sender: No OFD packet to send [22:40:45]OFD Sender: No OFD packet to send [22:40:50]OFD Sender: No OFD packet to send [22:40:55]OFD Sender: No OFD packet to send [22:41:00]OFD Sender: No OFD packet to send [22:41:05]OFD Sender: No OFD packet to send [22:41:10]OFD Sender: No OFD packet to send [22:41:15]OFD Sender: No OFD packet to send [22:41:20]OFD Sender: No OFD packet to send [22:41:25]OFD Sender: No OFD packet to send [22:41:30]OFD Sender: No OFD packet to send [22:41:35]OFD Sender: No OFD packet to send [22:41:40]OFD Sender: No OFD packet to send [22:41:45]OFD Sender: No OFD packet to send [22:41:50]OFD Sender: No OFD packet to send [22:41:55]OFD Sender: No OFD packet to send [22:42:00]OFD Sender: No OFD packet to send [22:42:05]OFD Sender: No OFD packet to send [22:42:10]OFD Sender: No OFD packet to send [22:42:15]OFD Sender: No OFD packet to send [22:42:20]OFD Sender: No OFD packet to send [22:42:25]OFD Sender: No OFD packet to send [22:42:30]OFD Sender: No OFD packet to send [22:42:35]OFD Sender: No OFD packet to send [22:42:40]OFD Sender: No OFD packet to send [22:42:45]OFD Sender: No OFD packet to send [22:42:50]OFD Sender: No OFD packet to send [22:42:55]OFD Sender: No OFD packet to send [22:43:00]OFD Sender: No OFD packet to send [22:43:05]OFD Sender: No OFD packet to send [22:43:10]OFD Sender: No OFD packet to send [22:43:15]OFD Sender: No OFD packet to send [22:43:20]OFD Sender: No OFD packet to send [22:43:25]OFD Sender: No OFD packet to send [22:43:30]OFD Sender: No OFD packet to send [22:43:35]OFD Sender: No OFD packet to send [22:43:40]OFD Sender: No OFD packet to send [22:43:45]OFD Sender: No OFD packet to send [22:43:50]OFD Sender: No OFD packet to send [22:43:56]OFD Sender: No OFD packet to send [22:44:01]OFD Sender: No OFD packet to send [22:44:06]OFD Sender: No OFD packet to send [22:44:11]OFD Sender: No OFD packet to send [22:44:16]OFD Sender: No OFD packet to send [22:44:21]OFD Sender: No OFD packet to send [22:44:26]OFD Sender: No OFD packet to send [22:44:31]OFD Sender: No OFD packet to send [22:44:36]OFD Sender: No OFD packet to send [22:44:41]OFD Sender: No OFD packet to send [22:44:46]OFD Sender: No OFD packet to send [22:44:51]OFD Sender: No OFD packet to send [22:44:56]OFD Sender: No OFD packet to send [22:45:01]OFD Sender: No OFD packet to send [22:45:06]OFD Sender: No OFD packet to send [22:45:11]OFD Sender: No OFD packet to send [22:45:16]OFD Sender: No OFD packet to send [22:45:21]OFD Sender: No OFD packet to send [22:45:26]OFD Sender: No OFD packet to send [22:45:31]OFD Sender: No OFD packet to send [22:45:36]OFD Sender: No OFD packet to send [22:45:41]OFD Sender: No OFD packet to send [22:45:46]OFD Sender: No OFD packet to send [22:45:51]OFD Sender: No OFD packet to send [22:45:56]OFD Sender: No OFD packet to send [22:46:01]OFD Sender: No OFD packet to send [22:46:06]OFD Sender: No OFD packet to send [22:46:11]OFD Sender: No OFD packet to send [22:46:16]OFD Sender: No OFD packet to send [22:46:21]OFD Sender: No OFD packet to send [22:46:26]OFD Sender: No OFD packet to send [22:46:31]OFD Sender: No OFD packet to send [22:46:36]OFD Sender: No OFD packet to send [22:46:41]OFD Sender: No OFD packet to send [22:46:46]OFD Sender: No OFD packet to send [22:46:51]OFD Sender: No OFD packet to send [22:46:56]OFD Sender: No OFD packet to send [22:47:01]OFD Sender: No OFD packet to send [22:47:06]OFD Sender: No OFD packet to send [22:47:11]OFD Sender: No OFD packet to send [22:47:16]OFD Sender: No OFD packet to send [22:47:21]OFD Sender: No OFD packet to send [22:47:26]OFD Sender: No OFD packet to send [22:47:31]OFD Sender: No OFD packet to send [22:47:36]OFD Sender: No OFD packet to send [22:47:41]OFD Sender: No OFD packet to send [22:47:46]OFD Sender: No OFD packet to send [22:47:51]OFD Sender: No OFD packet to send [22:47:56]OFD Sender: No OFD packet to send [22:48:01]OFD Sender: No OFD packet to send [22:48:06]OFD Sender: No OFD packet to send [22:48:11]OFD Sender: No OFD packet to send [22:48:16]OFD Sender: No OFD packet to send [22:48:21]OFD Sender: No OFD packet to send [22:48:26]OFD Sender: No OFD packet to send [22:48:31]OFD Sender: No OFD packet to send [22:48:36]OFD Sender: No OFD packet to send [22:48:41]OFD Sender: No OFD packet to send [22:48:46]OFD Sender: No OFD packet to send [22:48:51]OFD Sender: No OFD packet to send [22:48:56]OFD Sender: No OFD packet to send [22:49:01]OFD Sender: No OFD packet to send [22:49:06]OFD Sender: No OFD packet to send [22:49:11]OFD Sender: No OFD packet to send [22:49:16]OFD Sender: No OFD packet to send [22:49:21]OFD Sender: No OFD packet to send [22:49:26]OFD Sender: No OFD packet to send [22:49:31]OFD Sender: No OFD packet to send [22:49:36]OFD Sender: No OFD packet to send [22:49:41]OFD Sender: No OFD packet to send [22:49:46]OFD Sender: No OFD packet to send [22:49:51]OFD Sender: No OFD packet to send [22:49:56]OFD Sender: No OFD packet to send [22:50:01]OFD Sender: No OFD packet to send [22:50:06]OFD Sender: No OFD packet to send [22:50:11]OFD Sender: No OFD packet to send [22:50:16]OFD Sender: No OFD packet to send [22:50:21]OFD Sender: No OFD packet to send [22:50:26]OFD Sender: No OFD packet to send [22:50:31]OFD Sender: No OFD packet to send [22:50:36]OFD Sender: No OFD packet to send [22:50:41]OFD Sender: No OFD packet to send [22:50:46]OFD Sender: No OFD packet to send [22:50:51]OFD Sender: No OFD packet to send [22:50:56]OFD Sender: No OFD packet to send [22:51:01]OFD Sender: No OFD packet to send [22:51:06]OFD Sender: No OFD packet to send [22:51:11]OFD Sender: No OFD packet to send [22:51:16]OFD Sender: No OFD packet to send [22:51:21]OFD Sender: No OFD packet to send [22:51:26]OFD Sender: No OFD packet to send [22:51:31]OFD Sender: No OFD packet to send [22:51:36]OFD Sender: No OFD packet to send [22:51:41]OFD Sender: No OFD packet to send [22:51:46]OFD Sender: No OFD packet to send [22:51:51]OFD Sender: No OFD packet to send [22:51:56]OFD Sender: No OFD packet to send [22:52:01]OFD Sender: No OFD packet to send [22:52:06]OFD Sender: No OFD packet to send [22:52:11]OFD Sender: No OFD packet to send [22:52:16]OFD Sender: No OFD packet to send [22:52:21]OFD Sender: No OFD packet to send [22:52:26]OFD Sender: No OFD packet to send [22:52:31]OFD Sender: No OFD packet to send [22:52:36]OFD Sender: No OFD packet to send [22:52:41]OFD Sender: No OFD packet to send [22:52:46]OFD Sender: No OFD packet to send [22:52:51]OFD Sender: No OFD packet to send [22:52:56]OFD Sender: No OFD packet to send [22:53:01]OFD Sender: No OFD packet to send [22:53:06]OFD Sender: No OFD packet to send [22:53:11]OFD Sender: No OFD packet to send [22:53:16]OFD Sender: No OFD packet to send [22:53:21]OFD Sender: No OFD packet to send [22:53:26]OFD Sender: No OFD packet to send [22:53:31]OFD Sender: No OFD packet to send [22:53:36]OFD Sender: No OFD packet to send [22:53:41]OFD Sender: No OFD packet to send [22:53:46]OFD Sender: No OFD packet to send [22:53:51]OFD Sender: No OFD packet to send [22:53:56]OFD Sender: No OFD packet to send [22:54:01]OFD Sender: No OFD packet to send [22:54:06]OFD Sender: No OFD packet to send [22:54:11]OFD Sender: No OFD packet to send [22:54:16]OFD Sender: No OFD packet to send [22:54:21]OFD Sender: No OFD packet to send [22:54:26]OFD Sender: No OFD packet to send [22:54:31]OFD Sender: No OFD packet to send [22:54:36]OFD Sender: No OFD packet to send [22:54:41]OFD Sender: No OFD packet to send [22:54:46]OFD Sender: No OFD packet to send [22:54:51]OFD Sender: No OFD packet to send [22:54:56]OFD Sender: No OFD packet to send [22:55:01]OFD Sender: No OFD packet to send [22:55:06]OFD Sender: No OFD packet to send [22:55:11]OFD Sender: No OFD packet to send [22:55:16]OFD Sender: No OFD packet to send [22:55:21]OFD Sender: No OFD packet to send [22:55:26]OFD Sender: No OFD packet to send [22:55:31]OFD Sender: No OFD packet to send [22:55:36]OFD Sender: No OFD packet to send [22:55:41]OFD Sender: No OFD packet to send [22:55:46]OFD Sender: No OFD packet to send [22:55:51]OFD Sender: No OFD packet to send [22:55:56]OFD Sender: No OFD packet to send [22:56:01]OFD Sender: No OFD packet to send [22:56:06]OFD Sender: No OFD packet to send [22:56:11]OFD Sender: No OFD packet to send [22:56:16]OFD Sender: No OFD packet to send [22:56:21]OFD Sender: No OFD packet to send [22:56:26]OFD Sender: No OFD packet to send [22:56:31]OFD Sender: No OFD packet to send [22:56:36]OFD Sender: No OFD packet to send [22:56:41]OFD Sender: No OFD packet to send [22:56:46]OFD Sender: No OFD packet to send [22:56:51]OFD Sender: No OFD packet to send [22:56:56]OFD Sender: No OFD packet to send [22:57:01]OFD Sender: No OFD packet to send [22:57:06]OFD Sender: No OFD packet to send [22:57:11]OFD Sender: No OFD packet to send [22:57:16]OFD Sender: No OFD packet to send [22:57:21]OFD Sender: No OFD packet to send [22:57:26]OFD Sender: No OFD packet to send [22:57:31]OFD Sender: No OFD packet to send [22:57:36]OFD Sender: No OFD packet to send [22:57:41]OFD Sender: No OFD packet to send [22:57:46]OFD Sender: No OFD packet to send [22:57:51]OFD Sender: No OFD packet to send [22:57:56]OFD Sender: No OFD packet to send [22:58:01]OFD Sender: No OFD packet to send [22:58:06]OFD Sender: No OFD packet to send [22:58:11]OFD Sender: No OFD packet to send [22:58:16]OFD Sender: No OFD packet to send [22:58:21]OFD Sender: No OFD packet to send [22:58:26]OFD Sender: No OFD packet to send [22:58:31]OFD Sender: No OFD packet to send [22:58:36]OFD Sender: No OFD packet to send [22:58:41]OFD Sender: No OFD packet to send [22:58:46]OFD Sender: No OFD packet to send [22:58:51]OFD Sender: No OFD packet to send [22:58:56]OFD Sender: No OFD packet to send [22:59:01]OFD Sender: No OFD packet to send [22:59:06]OFD Sender: No OFD packet to send [22:59:11]OFD Sender: No OFD packet to send [22:59:16]OFD Sender: No OFD packet to send [22:59:21]OFD Sender: No OFD packet to send [22:59:26]OFD Sender: No OFD packet to send [22:59:31]OFD Sender: No OFD packet to send [22:59:36]OFD Sender: No OFD packet to send [22:59:41]OFD Sender: No OFD packet to send [22:59:46]OFD Sender: No OFD packet to send [22:59:51]OFD Sender: No OFD packet to send [22:59:56]OFD Sender: No OFD packet to send [23:00:01]OFD Sender: No OFD packet to send [23:00:06]OFD Sender: No OFD packet to send [23:00:11]OFD Sender: No OFD packet to send [23:00:16]OFD Sender: No OFD packet to send [23:00:21]OFD Sender: No OFD packet to send [23:00:26]OFD Sender: No OFD packet to send [23:00:27]accept exits with 7 [23:00:27]New connection [23:00:27]New thread 3067260260 created [23:00:27]Thread 3067116900 joined [23:00:27]Waiting for new connection... [23:00:27] Sock 7.Parse request [23:00:27]Sock 7.Check first char [23:00:27]Sock 7.First char is OK [23:00:27]request: POST /json_proto HTTP/1.0 [23:00:27]Method: POST [23:00:27]URL: /json_proto [23:00:27]Method is POST - this is cgi request [23:00:27]url: /json_proto [23:00:27]query_string will be loaded in cgi processing [23:00:27]execute_cgi json_proto POST (null) [23:00:27]execute_cgi path=json_proto method=POST [23:00:27]POST find Content-Length [23:00:27]Host: 172.17.58.3:8080 [23:00:27]Content-Length: 676 [23:00:27]Content-Type: application/json [23:00:27] [23:00:27]POST finish read [23:00:27]Found Content-Length = 676 [23:00:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160842", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 3.800, "sum" : 250.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:00:27]execute_script... [23:00: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)160842", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 3.800, "sum" : 250.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:00:27]POST & json_proto [23:00:27]process_json_proto [23:00:27]json parsed OK: [23:00:27]protocol is kg_v1.0 [23:00:27]action value=close_receipt [23:00:27]process_action close_receipt [23:00:27]cmd_close_receipt [23:00:27]MH_GetDate [23:00:27]Write to MH i2c: F0 00 00 B2 10 B1 [23:00:27]Write i2c OK [23:00:27]MH_I2C_Read... [23:00:27]Read from MH i2c: F0 [23:00:27]MH_I2C_Read... [23:00:27]Read from MH i2c: F0 09 00 [23:00:27]MH_I2C_Read... [23:00:27]Read from MH i2c: F0 09 00 B2 10 00 8E E5 BB 66 DC E4 6D 64 DF [23:00:27]GetLastDocTimeStamp 1723586472 [23:00:27]current date 1723590030 [23:00:27]FM_GetShiftState [23:00:27]SAM_PROTO_GetShiftState [23:00:27]wFMCommunicate request_size=4 [23:00:27]MH_SAM_APDU [23:00:27]CAPDU: 80 13 01 00 [23:00:27]Write to MH i2c: E2 08 00 B3 10 80 13 01 00 00 00 00 00 40 [23:00:27]Write i2c OK [23:00:27]MH_I2C_Read... [23:00:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:00:27]Read from MH i2c: E2 [23:00:27]MH_I2C_Read... [23:00:27]Read from MH i2c: E2 0E 00 [23:00:27]MH_I2C_Read... [23:00:27]Read from MH i2c: E2 0E 00 B3 10 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 5E [23:00:27]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [23:00:27]wFMCommunicate OK [23:00:27]SAM_PROTO_GetShiftState done [23:00:27]FM_GetShiftState done [23:00:27]opened in 1723506770 [23:00:27]opened+sec_in_day 1723593170 [23:00:27]quantity*price = 25042 [23:00:27]sum+1 = 25043 [23:00:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.22 НДС 12% : 26.59 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 124 13.08.2024 23:00 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103213 ФПД: 216348516375855 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T230030&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103213&fm=216348516375855&tin=02508201610067®Number=0000000000092718&sum=25000 [23:00:29]StoreToDocumentArchive [23:00:29]shift 464 fd 103213 [23:00:29]save to /storage/0464/doc_00103213 [23:00:29]save last doc name /storage/0464/doc_00103213 to /storage/kkm_last_doc_name [23:00:29]save OK [23:00:29]Clear old archive folders... [23:00:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:00:29]tlvbuf is 0023D1D0 [23:00:29]SAM_PROTO_ClearQueue [23:00:29]wFMCommunicate request_size=4 [23:00:29]MH_SAM_APDU [23:00:29]CAPDU: 80 09 00 00 [23:00:29]Write to MH i2c: E2 08 00 C0 10 80 09 00 00 00 00 00 00 42 [23:00:29]Write i2c OK [23:00:29]MH_I2C_Read... [23:00:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:00:29]Read from MH i2c: E2 [23:00:29]MH_I2C_Read... [23:00:29]Read from MH i2c: E2 03 00 [23:00:29]MH_I2C_Read... [23:00:29]Read from MH i2c: E2 03 00 C0 10 00 90 00 44 [23:00:29]RAPDU: 90 00 [23:00:29]wFMCommunicate OK [23:00:29]SAM_PROTO_ClearQueue done [23:00:29]KKMCreateOFDPacket [23:00:29]OFDProtocolAddRootSTLVToBuf [23:00:29]FM_MakeSignedData [23:00:29]FM_MakeSignedData [23:00:29]SAM_PROTO_SignData [23:00:29]wFMCommunicate request_size=4 [23:00:29]MH_SAM_APDU [23:00:29]CAPDU: 80 0D 01 02 [23:00:29]Write to MH i2c: E2 08 00 C1 10 80 0D 01 02 00 00 00 00 4A [23:00:29]Write i2c OK [23:00:29]MH_I2C_Read... [23:00:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:00:29]Read from MH i2c: E2 [23:00:29]MH_I2C_Read... [23:00:29]Read from MH i2c: E2 03 00 [23:00:29]MH_I2C_Read... [23:00:29]Read from MH i2c: E2 03 00 C1 10 00 90 00 45 [23:00:29]RAPDU: 90 00 [23:00:29]wFMCommunicate OK [23:00:29]wFMCommunicate request_size=255 [23:00:29]MH_SAM_APDU [23:00: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 D8 0E 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 D2 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 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 7C 00 00 00 F4 03 04 00 8E E5 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 2D 93 01 00 35 04 06 00 C4 [23:00:29]Write to MH i2c: E2 02 01 C2 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 D2 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 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 7C 00 00 00 F4 03 04 00 8E E5 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 2D 93 01 00 35 04 06 00 C4 00 00 0A [23:00:29]Write i2c OK [23:00:29]MH_I2C_Read... [23:00:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:00:29]Read from MH i2c: E2 [23:00:29]MH_I2C_Read... [23:00:29]Read from MH i2c: E2 03 00 [23:00:29]MH_I2C_Read... [23:00:29]Read from MH i2c: E2 03 00 C2 10 00 90 00 46 [23:00:29]RAPDU: 90 00 [23:00:29]wFMCommunicate OK [23:00:29]wFMCommunicate request_size=10 [23:00:29]MH_SAM_APDU [23:00:29]CAPDU: 80 0D 02 02 05 C4 90 77 5D 2F [23:00:29]Write to MH i2c: E2 0D 00 C3 10 80 0D 02 02 05 00 C4 90 77 5D 2F 00 00 AE [23:00:29]Write i2c OK [23:00:29]MH_I2C_Read... [23:00:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:00:29]Read from MH i2c: E2 [23:00:29]MH_I2C_Read... [23:00:29]Read from MH i2c: E2 03 00 [23:00:29]MH_I2C_Read... [23:00:29]Read from MH i2c: E2 03 00 C3 10 00 90 00 47 [23:00:29]RAPDU: 90 00 [23:00:29]wFMCommunicate OK [23:00:29]wFMCommunicate request_size=4 [23:00:29]MH_SAM_APDU [23:00:29]CAPDU: 80 0D 03 02 [23:00:29]Write to MH i2c: E2 08 00 C4 10 80 0D 03 02 00 00 00 00 4F [23:00:29]Write i2c OK [23:00:29]MH_I2C_Read... [23:00:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:00:29]Read from MH i2c: E2 [23:00:29]MH_I2C_Read... [23:00:29]Read from MH i2c: E2 0B 00 [23:00:29]MH_I2C_Read... [23:00:29]Read from MH i2c: E2 0B 00 C4 10 00 2C F2 30 B7 8C 81 5E F6 90 00 B6 [23:00:29]RAPDU: 2C F2 30 B7 8C 81 5E F6 90 00 [23:00:29]wFMCommunicate OK [23:00:29]SAM_PROTO_SignData done [23:00:29]FM_MakeSignedData done [23:00:29]CreateOFDProtocolMessage [23:00:29]wFMCommunicate request_size=4 [23:00:29]MH_SAM_APDU [23:00:29]CAPDU: 80 11 00 00 [23:00:29]Write to MH i2c: E2 08 00 C5 10 80 11 00 00 00 00 00 00 4F [23:00:29]Write i2c OK [23:00:29]MH_I2C_Read... [23:00:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:00:29]Read from MH i2c: E2 [23:00:29]MH_I2C_Read... [23:00:29]Read from MH i2c: E2 17 00 [23:00:29]MH_I2C_Read... [23:00:29]Read from MH i2c: E2 17 00 C5 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 A3 [23:00:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [23:00:29]wFMCommunicate OK [23:00:29]CreateOFDProtocolMessage done [23:00:29]OFDSenderStorePacket 103213 [23:00:29]StoreOFDPacket docnum=103213 [23:00:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 F5 BC 07 01 14 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 D8 0E 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 D2 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 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 7C 00 00 00 F4 03 04 00 8E E5 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 2D 93 01 00 35 04 06 00 C4 C4 90 77 5D 2F 2C F2 30 B7 8C 81 5E F6 [23:00:29]CheckFolder [23:00:29]dirname=/storage/ofd_packets [23:00:29]CheckFolder done [23:00:29]ProducePacketName [23:00:29]name=ofd_packets/00103213 [23:00:29]NVStorageSaveData ofd_packets/00103213 [23:00:29]File name is /storage/ofd_packets/00103213 [23:00:29]Write 301 bytes [23:00:29]NVStorageSaveData done [23:00:29]OFDSenderStorePacket done [23:00:29]KKMCreateOFDPacket done [23:00:29]NVStorageSaveData kkm_last_timestamp [23:00:29]File name is /storage/kkm_last_timestamp [23:00:29]Write 4 bytes [23:00:29]NVStorageSaveData done [23:00:29]OFD Sender: Processing packet 103213 [packets to send 69, broken 68] [23:00:29]ProducePacketName [23:00:29]name=ofd_packets/00103213 [23:00:29]OFD Sender: To server: pG, [23:00:29]CommunicateWithHost lk.salyk.kg:30040 [23:00:29]ConnectInit lk.salyk.kg [23:00:29]ExternCall_PrintAddStr [23:00:29]wPrintStart [23:00:29]Write to MH i2c: 01 00 00 C6 10 D6 [23:00:29]Write i2c OK [23:00:29]MH_I2C_Read... [23:00:29]Read from MH i2c: 01 [23:00:29]MH_I2C_Read... [23:00:29]Read from MH i2c: 01 07 00 [23:00:29]MH_I2C_Read... [23:00:29]Read from MH i2c: 01 07 00 C6 10 00 00 00 00 00 FF 0F EB [23:00:29]RasterBufferAndPrint [23:00:29]line Счет N : (1)160842 [23:00:29]line ИНН: 02508201610067 [23:00:29]line Контрольно-Кассовый Чек [23:00:29]line ПРОДАЖА [23:00:29]line ТРК (МРК, ГНК) : 7 [23:00:29]line Товар: 2710124130 [23:00:29]line Аи-92-К-5 [23:00:29]line 3.800 * 65.90 [23:00:29]line = 250.42 [23:00:29]line НДС 12% НСП 1% [23:00:29]line > о реализуемом товаре [23:00:29]line ОКРУГЛЕНИЕ: -0.42 [23:00:29]line ИТОГО: 250.00 [23:00:29]line Внесено: 250.00 [23:00:29]line СДАЧА: 0.00 [23:00:29]line НСП 1% : 2.22 [23:00:29]line НДС 12% : 26.59 [23:00:29]line Наличными: 250.00 [23:00:29]line Безнал.: 0.00 [23:00:29]line Место: АЗС № 38 "Партнер Нефть" [23:00:29]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [23:00:29]line СНО: Общий режим [23:00:29]line Чек 124 13.08.2024 23:00 [23:00:29]line Смена: 464 ФФД: 1.0 [23:00:29]line ЗНМ: 0300000126 [23:00:29]line РНМ: 0000000000092718 [23:00:29]line Версия ККМ: 001 [23:00:29]line ФМ: 0000000000875058 [23:00:29]line ФД: 103213 [23:00:29]line ФПД: 216348516375855 [23:00:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T230030&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103213&fm=216348516375855&tin=02508201610067®Number=0000000000092718&sum=25000 [23:00:29]Connected sock=11 [23:00:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 F5 BC 07 01 14 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 D8 0E 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 D2 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 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 7C 00 00 00 F4 03 04 00 8E E5 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 2D 93 01 00 35 04 06 00 C4 C4 90 77 5D 2F 2C F2 30 B7 8C 81 5E F6 [23:00:29]written 0, free lines is 4095 [23:00:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 97 90 47 00 5B F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 2D 93 01 00 F4 03 04 00 FF 8B BB 66 B6 04 01 00 00 4B 19 A8 63 48 06 DF 9B [23:00:30]CommunicateWithHost err = 0 [23:00:30]CheckOFDResponse [23:00:30]1017 (14) - 77093643461234 [23:00:30]1041 (16) - 0000000000875058 [23:00:30]1040 (4) - 103213 [23:00:30]1012 (4) - 13.08.2024 16:38 [23:00:30]1206 (1) - 0 [23:00:30]OFD Sender: Remove packet 103213 [23:00:30]ProducePacketName [23:00:30]name=ofd_packets/00103213 [23:00:30]NVStorageDeleteData [23:00:30]Write to MH i2c: 01 00 00 F1 10 01 [23:00:30]Write i2c OK [23:00:30]MH_I2C_Read... [23:00:30]Read from MH i2c: 01 [23:00:30]MH_I2C_Read... [23:00:30]Read from MH i2c: 01 07 00 [23:00:30]MH_I2C_Read... [23:00:30]Read from MH i2c: 01 07 00 F1 10 00 00 00 00 00 DF 0C F3 [23:00:30]RasterBufferAndPrint [23:00:30]line [23:00:30]line [23:00:30]line [23:00:30]line [23:00:30]line [23:00:30]written 0, free lines is 3301 [23:00:30]MH_Cut [23:00:30]Write to MH i2c: D1 01 00 F8 10 01 DA [23:00:30]Write i2c OK [23:00:30]MH_I2C_Read... [23:00:30]Read from MH i2c: D1 [23:00:30]MH_I2C_Read... [23:00:30]Read from MH i2c: D1 01 00 [23:00:30]MH_I2C_Read... [23:00:30]Read from MH i2c: D1 01 00 F8 10 00 D9 [23:00:30]Write to MH i2c: 01 00 00 F9 10 09 [23:00:30]Write i2c OK [23:00:30]MH_I2C_Read... [23:00:30]OFD Sender: No OFD packet to send [23:00:31]*** Cut start [23:00:31]*** Purtial cut [23:00:31]*** CUTSNS_PIN = 0 [23:00:31]*** Stage 1: CUTSNS_PIN = 1 [23:00:33]Read from MH i2c: 01 [23:00:33]MH_I2C_Read... [23:00:33]*** Stop cut motor [23:00:33]*** Cut end [23:00:33]Read from MH i2c: 01 07 00 [23:00:33]MH_I2C_Read... [23:00:33]Read from MH i2c: 01 07 00 F9 10 00 00 00 00 00 FF 0F 1E [23:00:33]process_action close_receipt done [23:00:33]requested_data is exist [23:00:33]produce_requested_data [23:00:33]requested_item fm.sn is exist - process it [23:00:33]wFMCommunicate request_size=4 [23:00:33]MH_SAM_APDU [23:00:33]CAPDU: 80 11 00 00 [23:00:33]Write to MH i2c: E2 08 00 FA 10 80 11 00 00 00 00 00 00 84 [23:00:33]Write i2c OK [23:00:33]MH_I2C_Read... [23:00:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:00:33]Read from MH i2c: E2 [23:00:33]MH_I2C_Read... [23:00:33]Read from MH i2c: E2 17 00 [23:00:33]MH_I2C_Read... [23:00:33]Read from MH i2c: E2 17 00 FA 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 D8 [23:00:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [23:00:33]wFMCommunicate OK [23:00:33]requested_item fd.num is exist - process it [23:00:33]SAM_PROTO_GetFieldsCounters [23:00:33]wFMCommunicate request_size=4 [23:00:33]MH_SAM_APDU [23:00:33]CAPDU: 80 13 00 00 [23:00:33]Write to MH i2c: E2 08 00 FB 10 80 13 00 00 00 00 00 00 87 [23:00:33]Write i2c OK [23:00:33]MH_I2C_Read... [23:00:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:00:33]Read from MH i2c: E2 [23:00:33]MH_I2C_Read... [23:00:33]Read from MH i2c: E2 62 00 [23:00:33]MH_I2C_Read... [23:00:33]Read from MH i2c: E2 62 00 FB 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 2D 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [23:00:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 2D 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:00:33]wFMCommunicate OK [23:00:33]SAM_PROTO_GetFieldsCounters done [23:00:33]requested_item shift.num is exist - process it [23:00:33]requested_item shift.opened is exist - process it [23:00:33]req_shift_opened [23:00:33]FM_GetShiftState [23:00:33]SAM_PROTO_GetShiftState [23:00:33]wFMCommunicate request_size=4 [23:00:33]MH_SAM_APDU [23:00:33]CAPDU: 80 13 01 00 [23:00:33]Write to MH i2c: E2 08 00 FC 10 80 13 01 00 00 00 00 00 89 [23:00:33]Write i2c OK [23:00:33]MH_I2C_Read... [23:00:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:00:33]Read from MH i2c: E2 [23:00:33]MH_I2C_Read... [23:00:33]Read from MH i2c: E2 0E 00 [23:00:33]MH_I2C_Read... [23:00:33]Read from MH i2c: E2 0E 00 FC 10 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 A7 [23:00:33]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [23:00:33]wFMCommunicate OK [23:00:33]SAM_PROTO_GetShiftState done [23:00:33]FM_GetShiftState done [23:00:33]req_shift_opened done [23:00:33]requested_item shift.open_date is exist - process it [23:00:33]req_shift_open_date [23:00:33]req_shift_open_date done [23:00:33]produce_requested_data done [23:00:33]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103213,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [23:00:33]process_action_free close_receipt [23:00:33]json_value_free [23:00:33]json_value_free done [23:00:33]process_json_proto returns [23:00:33]Send response to host [23:00:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103213,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [23:00:33]free response buf [23:00:33]execute_script done [23:00:33]execute_script returns [23:00:33]free content buf [23:00:33]Sock 7.Close socket [23:00:33]Sock 7.Thread stoped [23:00:35]OFD Sender: No OFD packet to send [23:00:40]OFD Sender: No OFD packet to send [23:00:43]accept exits with 9 [23:00:43]New connection [23:00:43]New thread 3067116900 created [23:00:43]Thread 3067260260 joined [23:00:43]Waiting for new connection... [23:00:43] Sock 9.Parse request [23:00:43]Sock 9.Check first char [23:00:43]Sock 9.First char is OK [23:00:43]request: POST /json_proto HTTP/1.0 [23:00:43]Method: POST [23:00:43]URL: /json_proto [23:00:43]Method is POST - this is cgi request [23:00:43]url: /json_proto [23:00:43]query_string will be loaded in cgi processing [23:00:43]execute_cgi json_proto POST (null) [23:00:43]execute_cgi path=json_proto method=POST [23:00:43]POST find Content-Length [23:00:43]Host: 172.17.58.3:8080 [23:00:43]Content-Length: 677 [23:00:43]Content-Type: application/json [23:00:43] [23:00:43]POST finish read [23:00:43]Found Content-Length = 677 [23:00:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160841", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 10.020, "sum" : 660.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:00:43]execute_script... [23:00:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160841", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 10.020, "sum" : 660.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:00:43]POST & json_proto [23:00:43]process_json_proto [23:00:43]json parsed OK: [23:00:43]protocol is kg_v1.0 [23:00:43]action value=close_receipt [23:00:43]process_action close_receipt [23:00:43]cmd_close_receipt [23:00:43]MH_GetDate [23:00:43]Write to MH i2c: F0 00 00 FD 10 FC [23:00:43]Write i2c OK [23:00:43]MH_I2C_Read... [23:00:43]Read from MH i2c: F0 [23:00:43]MH_I2C_Read... [23:00:43]Read from MH i2c: F0 09 00 [23:00:43]MH_I2C_Read... [23:00:43]Read from MH i2c: F0 09 00 FD 10 00 9D E5 BB 66 DC E4 6D 64 39 [23:00:43]GetLastDocTimeStamp 1723590030 [23:00:43]current date 1723590045 [23:00:43]FM_GetShiftState [23:00:43]SAM_PROTO_GetShiftState [23:00:43]wFMCommunicate request_size=4 [23:00:43]MH_SAM_APDU [23:00:43]CAPDU: 80 13 01 00 [23:00:43]Write to MH i2c: E2 08 00 FE 10 80 13 01 00 00 00 00 00 8B [23:00:43]Write i2c OK [23:00:43]MH_I2C_Read... [23:00:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:00:43]Read from MH i2c: E2 [23:00:43]MH_I2C_Read... [23:00:43]Read from MH i2c: E2 0E 00 [23:00:43]MH_I2C_Read... [23:00:43]Read from MH i2c: E2 0E 00 FE 10 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 A9 [23:00:43]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [23:00:43]wFMCommunicate OK [23:00:43]SAM_PROTO_GetShiftState done [23:00:43]FM_GetShiftState done [23:00:43]opened in 1723506770 [23:00:43]opened+sec_in_day 1723593170 [23:00:43]quantity*price = 66031 [23:00:43]sum+1 = 66033 [23:00:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 660.00 Внесено: 660.00 СДАЧА: 0.00 НСП 1% : 5.84 НДС 12% : 70.12 Наличными: 660.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 125 13.08.2024 23:00 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103214 ФПД: 271361946173539 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T230045&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103214&fm=271361946173539&tin=02508201610067®Number=0000000000092718&sum=66000 [23:00:44]StoreToDocumentArchive [23:00:44]shift 464 fd 103214 [23:00:44]save to /storage/0464/doc_00103214 [23:00:44]save last doc name /storage/0464/doc_00103214 to /storage/kkm_last_doc_name [23:00:44]save OK [23:00:44]Clear old archive folders... [23:00:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:00:44]tlvbuf is 0024CEB0 [23:00:44]SAM_PROTO_ClearQueue [23:00:44]wFMCommunicate request_size=4 [23:00:44]MH_SAM_APDU [23:00:44]CAPDU: 80 09 00 00 [23:00:44]Write to MH i2c: E2 08 00 0B 11 80 09 00 00 00 00 00 00 8E [23:00:44]Write i2c OK [23:00:44]MH_I2C_Read... [23:00:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:00:44]Read from MH i2c: E2 [23:00:44]MH_I2C_Read... [23:00:44]Read from MH i2c: E2 03 00 [23:00:44]MH_I2C_Read... [23:00:44]Read from MH i2c: E2 03 00 0B 11 00 90 00 90 [23:00:44]RAPDU: 90 00 [23:00:44]wFMCommunicate OK [23:00:44]SAM_PROTO_ClearQueue done [23:00:44]KKMCreateOFDPacket [23:00:44]OFDProtocolAddRootSTLVToBuf [23:00:44]FM_MakeSignedData [23:00:44]FM_MakeSignedData [23:00:44]SAM_PROTO_SignData [23:00:44]wFMCommunicate request_size=4 [23:00:44]MH_SAM_APDU [23:00:44]CAPDU: 80 0D 01 02 [23:00:44]Write to MH i2c: E2 08 00 0C 11 80 0D 01 02 00 00 00 00 96 [23:00:44]Write i2c OK [23:00:44]MH_I2C_Read... [23:00:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:00:44]Read from MH i2c: E2 [23:00:44]MH_I2C_Read... [23:00:44]Read from MH i2c: E2 03 00 [23:00:44]MH_I2C_Read... [23:00:44]Read from MH i2c: E2 03 00 0C 11 00 90 00 91 [23:00:44]RAPDU: 90 00 [23:00:44]wFMCommunicate OK [23:00:44]wFMCommunicate request_size=255 [23:00:44]MH_SAM_APDU [23:00: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 24 27 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 F0 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 9D E5 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 2E 93 01 00 35 04 06 00 F6 [23:00:44]Write to MH i2c: E2 02 01 0D 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 F0 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 9D E5 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 2E 93 01 00 35 04 06 00 F6 00 00 CD [23:00:44]Write i2c OK [23:00:44]MH_I2C_Read... [23:00:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:00:44]Read from MH i2c: E2 [23:00:44]MH_I2C_Read... [23:00:44]Read from MH i2c: E2 03 00 [23:00:44]MH_I2C_Read... [23:00:44]Read from MH i2c: E2 03 00 0D 11 00 90 00 92 [23:00:44]RAPDU: 90 00 [23:00:44]wFMCommunicate OK [23:00:44]wFMCommunicate request_size=10 [23:00:44]MH_SAM_APDU [23:00:44]CAPDU: 80 0D 02 02 05 CD 60 68 40 63 [23:00:44]Write to MH i2c: E2 0D 00 0E 11 80 0D 02 02 05 00 CD 60 68 40 63 00 00 DB [23:00:44]Write i2c OK [23:00:44]MH_I2C_Read... [23:00:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:00:44]Read from MH i2c: E2 [23:00:44]MH_I2C_Read... [23:00:44]Read from MH i2c: E2 03 00 [23:00:44]MH_I2C_Read... [23:00:44]Read from MH i2c: E2 03 00 0E 11 00 90 00 93 [23:00:44]RAPDU: 90 00 [23:00:44]wFMCommunicate OK [23:00:44]wFMCommunicate request_size=4 [23:00:44]MH_SAM_APDU [23:00:44]CAPDU: 80 0D 03 02 [23:00:44]Write to MH i2c: E2 08 00 0F 11 80 0D 03 02 00 00 00 00 9B [23:00:44]Write i2c OK [23:00:44]MH_I2C_Read... [23:00:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:00:44]Read from MH i2c: E2 [23:00:44]MH_I2C_Read... [23:00:44]Read from MH i2c: E2 0B 00 [23:00:44]MH_I2C_Read... [23:00:44]Read from MH i2c: E2 0B 00 0F 11 00 81 5E FD A9 98 29 E0 EA 90 00 AC [23:00:44]RAPDU: 81 5E FD A9 98 29 E0 EA 90 00 [23:00:44]wFMCommunicate OK [23:00:44]SAM_PROTO_SignData done [23:00:44]FM_MakeSignedData done [23:00:44]CreateOFDProtocolMessage [23:00:44]wFMCommunicate request_size=4 [23:00:44]MH_SAM_APDU [23:00:44]CAPDU: 80 11 00 00 [23:00:44]Write to MH i2c: E2 08 00 10 11 80 11 00 00 00 00 00 00 9B [23:00:44]Write i2c OK [23:00:44]MH_I2C_Read... [23:00:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:00:44]Read from MH i2c: E2 [23:00:44]MH_I2C_Read... [23:00:44]Read from MH i2c: E2 17 00 [23:00:44]MH_I2C_Read... [23:00:44]Read from MH i2c: E2 17 00 10 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 EF [23:00:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [23:00:44]wFMCommunicate OK [23:00:44]CreateOFDProtocolMessage done [23:00:44]OFDSenderStorePacket 103214 [23:00:44]StoreOFDPacket docnum=103214 [23:00:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 50 EA 07 01 6D 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 24 27 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 F0 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 9D E5 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 2E 93 01 00 35 04 06 00 F6 CD 60 68 40 63 81 5E FD A9 98 29 E0 EA [23:00:44]CheckFolder [23:00:44]dirname=/storage/ofd_packets [23:00:44]CheckFolder done [23:00:44]ProducePacketName [23:00:44]name=ofd_packets/00103214 [23:00:44]NVStorageSaveData ofd_packets/00103214 [23:00:44]File name is /storage/ofd_packets/00103214 [23:00:44]Write 301 bytes [23:00:44]NVStorageSaveData done [23:00:44]OFDSenderStorePacket done [23:00:44]KKMCreateOFDPacket done [23:00:44]NVStorageSaveData kkm_last_timestamp [23:00:44]File name is /storage/kkm_last_timestamp [23:00:44]Write 4 bytes [23:00:44]NVStorageSaveData done [23:00:44]ExternCall_PrintAddStr [23:00:44]wPrintStart [23:00:44]Write to MH i2c: 01 00 00 11 11 22 [23:00:44]Write i2c OK [23:00:44]MH_I2C_Read... [23:00:44]Read from MH i2c: 01 [23:00:44]MH_I2C_Read... [23:00:44]Read from MH i2c: 01 07 00 [23:00:44]MH_I2C_Read... [23:00:44]Read from MH i2c: 01 07 00 11 11 00 00 00 00 00 FF 0F 37 [23:00:44]RasterBufferAndPrint [23:00:44]line Счет N : (1)160841 [23:00:44]line ИНН: 02508201610067 [23:00:44]line Контрольно-Кассовый Чек [23:00:44]line ПРОДАЖА [23:00:44]line ТРК (МРК, ГНК) : 3 [23:00:44]line Товар: 2710124130 [23:00:44]line Аи-92-К-5 [23:00:44]line 10.020 * 65.90 [23:00:44]line = 660.32 [23:00:44]line НДС 12% НСП 1% [23:00:44]line > о реализуемом товаре [23:00:44]line ОКРУГЛЕНИЕ: -0.32 [23:00:44]line ИТОГО: 660.00 [23:00:44]line Внесено: 660.00 [23:00:44]line СДАЧА: 0.00 [23:00:44]line НСП 1% : 5.84 [23:00:44]line НДС 12% : 70.12 [23:00:44]line Наличными: 660.00 [23:00:44]line Безнал.: 0.00 [23:00:44]line Место: АЗС № 38 "Партнер Нефть" [23:00:44]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [23:00:44]line СНО: Общий режим [23:00:44]line Чек 125 13.08.2024 23:00 [23:00:44]line Смена: 464 ФФД: 1.0 [23:00:44]line ЗНМ: 0300000126 [23:00:44]line РНМ: 0000000000092718 [23:00:44]line Версия ККМ: 001 [23:00:44]line ФМ: 0000000000875058 [23:00:44]line ФД: 103214 [23:00:44]line ФПД: 271361946173539 [23:00:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T230045&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103214&fm=271361946173539&tin=02508201610067®Number=0000000000092718&sum=66000 [23:00:45]OFD Sender: Processing packet 103214 [packets to send 69, broken 68] [23:00:45]ProducePacketName [23:00:45]name=ofd_packets/00103214 [23:00:45]OFD Sender: To server: pG, [23:00:45]CommunicateWithHost lk.salyk.kg:30040 [23:00:45]ConnectInit lk.salyk.kg [23:00:45]written 0, free lines is 4095 [23:00:45]Connected sock=10 [23:00:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 50 EA 07 01 6D 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 24 27 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 F0 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 9D E5 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 2E 93 01 00 35 04 06 00 F6 CD 60 68 40 63 81 5E FD A9 98 29 E0 EA [23:00:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 C9 3E 47 00 3A 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 35 30 35 38 10 04 04 00 2E 93 01 00 F4 03 04 00 0E 8C BB 66 B6 04 01 00 00 B2 A3 54 3E 8E BE F7 91 [23:00:45]CommunicateWithHost err = 0 [23:00:45]CheckOFDResponse [23:00:45]1017 (14) - 77093643461234 [23:00:45]1041 (16) - 0000000000875058 [23:00:45]1040 (4) - 103214 [23:00:45]1012 (4) - 13.08.2024 16:38 [23:00:45]1206 (1) - 0 [23:00:45]OFD Sender: Remove packet 103214 [23:00:45]ProducePacketName [23:00:45]name=ofd_packets/00103214 [23:00:45]NVStorageDeleteData [23:00:45]Write to MH i2c: 01 00 00 3C 11 4D [23:00:45]Write i2c OK [23:00:45]MH_I2C_Read... [23:00:45]Read from MH i2c: 01 [23:00:45]MH_I2C_Read... [23:00:45]Read from MH i2c: 01 07 00 [23:00:45]MH_I2C_Read... [23:00:45]Read from MH i2c: 01 07 00 3C 11 00 00 00 00 00 DF 0C 3F [23:00:45]RasterBufferAndPrint [23:00:45]line [23:00:45]line [23:00:45]line [23:00:45]line [23:00:45]line [23:00:45]written 0, free lines is 3301 [23:00:45]MH_Cut [23:00:45]Write to MH i2c: D1 01 00 43 11 01 26 [23:00:45]Write i2c OK [23:00:45]MH_I2C_Read... [23:00:45]Read from MH i2c: D1 [23:00:45]MH_I2C_Read... [23:00:45]Read from MH i2c: D1 01 00 [23:00:45]MH_I2C_Read... [23:00:45]Read from MH i2c: D1 01 00 43 11 00 25 [23:00:45]Write to MH i2c: 01 00 00 44 11 55 [23:00:45]Write i2c OK [23:00:45]MH_I2C_Read... [23:00:45]OFD Sender: No OFD packet to send [23:00:46]*** Cut start [23:00:46]*** Purtial cut [23:00:46]*** Stage 1: CUTSNS_PIN = 1 [23:00:46]Read from MH i2c: 01 [23:00:46]MH_I2C_Read... [23:00:46]*** Stop cut motor [23:00:46]*** Cut end [23:00:46]Read from MH i2c: 01 07 00 [23:00:46]MH_I2C_Read... [23:00:46]Read from MH i2c: 01 07 00 44 11 00 00 00 00 00 FF 0F 6A [23:00:46]process_action close_receipt done [23:00:46]requested_data is exist [23:00:46]produce_requested_data [23:00:46]requested_item fm.sn is exist - process it [23:00:46]wFMCommunicate request_size=4 [23:00:46]MH_SAM_APDU [23:00:46]CAPDU: 80 11 00 00 [23:00:46]Write to MH i2c: E2 08 00 45 11 80 11 00 00 00 00 00 00 D0 [23:00:46]Write i2c OK [23:00:46]MH_I2C_Read... [23:00:46]Read from MH i2c: E2 [23:00:46]MH_I2C_Read... [23:00:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:00:46]Read from MH i2c: E2 17 00 [23:00:46]MH_I2C_Read... [23:00:46]Read from MH i2c: E2 17 00 45 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 24 [23:00:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [23:00:46]wFMCommunicate OK [23:00:46]requested_item fd.num is exist - process it [23:00:46]SAM_PROTO_GetFieldsCounters [23:00:46]wFMCommunicate request_size=4 [23:00:46]MH_SAM_APDU [23:00:46]CAPDU: 80 13 00 00 [23:00:46]Write to MH i2c: E2 08 00 46 11 80 13 00 00 00 00 00 00 D3 [23:00:46]Write i2c OK [23:00:46]MH_I2C_Read... [23:00:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:00:46]Read from MH i2c: E2 [23:00:46]MH_I2C_Read... [23:00:46]Read from MH i2c: E2 62 00 [23:00:46]MH_I2C_Read... [23:00:46]Read from MH i2c: E2 62 00 46 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 2E 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [23:00:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 2E 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:00:46]wFMCommunicate OK [23:00:46]SAM_PROTO_GetFieldsCounters done [23:00:46]requested_item shift.num is exist - process it [23:00:46]requested_item shift.opened is exist - process it [23:00:46]req_shift_opened [23:00:46]FM_GetShiftState [23:00:46]SAM_PROTO_GetShiftState [23:00:46]wFMCommunicate request_size=4 [23:00:46]MH_SAM_APDU [23:00:46]CAPDU: 80 13 01 00 [23:00:46]Write to MH i2c: E2 08 00 47 11 80 13 01 00 00 00 00 00 D5 [23:00:46]Write i2c OK [23:00:46]MH_I2C_Read... [23:00:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:00:46]Read from MH i2c: E2 [23:00:46]MH_I2C_Read... [23:00:46]Read from MH i2c: E2 0E 00 [23:00:46]MH_I2C_Read... [23:00:46]Read from MH i2c: E2 0E 00 47 11 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 F3 [23:00:46]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [23:00:46]wFMCommunicate OK [23:00:46]SAM_PROTO_GetShiftState done [23:00:46]FM_GetShiftState done [23:00:46]req_shift_opened done [23:00:46]requested_item shift.open_date is exist - process it [23:00:46]req_shift_open_date [23:00:46]req_shift_open_date done [23:00:46]produce_requested_data done [23:00:46]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103214,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [23:00:46]process_action_free close_receipt [23:00:46]json_value_free [23:00:46]json_value_free done [23:00:46]process_json_proto returns [23:00:46]Send response to host [23:00:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103214,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [23:00:46]free response buf [23:00:46]execute_script done [23:00:46]execute_script returns [23:00:46]free content buf [23:00:46]Sock 9.Close socket [23:00:46]Sock 9.Thread stoped [23:00:50]OFD Sender: No OFD packet to send [23:00:55]OFD Sender: No OFD packet to send [23:01:00]OFD Sender: No OFD packet to send [23:01:05]OFD Sender: No OFD packet to send [23:01:10]OFD Sender: No OFD packet to send [23:01:15]OFD Sender: No OFD packet to send [23:01:20]OFD Sender: No OFD packet to send [23:01:25]OFD Sender: No OFD packet to send [23:01:30]OFD Sender: No OFD packet to send [23:01:35]OFD Sender: No OFD packet to send [23:01:40]OFD Sender: No OFD packet to send [23:01:45]OFD Sender: No OFD packet to send [23:01:50]OFD Sender: No OFD packet to send [23:01:55]OFD Sender: No OFD packet to send [23:02:00]OFD Sender: No OFD packet to send [23:02:05]OFD Sender: No OFD packet to send [23:02:10]OFD Sender: No OFD packet to send [23:02:15]OFD Sender: No OFD packet to send [23:02:20]OFD Sender: No OFD packet to send [23:02:25]OFD Sender: No OFD packet to send [23:02:30]OFD Sender: No OFD packet to send [23:02:35]OFD Sender: No OFD packet to send [23:02:40]OFD Sender: No OFD packet to send [23:02:45]OFD Sender: No OFD packet to send [23:02:50]OFD Sender: No OFD packet to send [23:02:55]OFD Sender: No OFD packet to send [23:03:00]OFD Sender: No OFD packet to send [23:03:05]OFD Sender: No OFD packet to send [23:03:10]OFD Sender: No OFD packet to send [23:03:15]OFD Sender: No OFD packet to send [23:03:20]OFD Sender: No OFD packet to send [23:03:25]OFD Sender: No OFD packet to send [23:03:31]OFD Sender: No OFD packet to send [23:03:36]OFD Sender: No OFD packet to send [23:03:41]OFD Sender: No OFD packet to send [23:03:46]OFD Sender: No OFD packet to send [23:03:51]OFD Sender: No OFD packet to send [23:03:56]OFD Sender: No OFD packet to send [23:04:01]OFD Sender: No OFD packet to send [23:04:06]OFD Sender: No OFD packet to send [23:04:11]OFD Sender: No OFD packet to send [23:04:16]OFD Sender: No OFD packet to send [23:04:21]OFD Sender: No OFD packet to send [23:04:26]OFD Sender: No OFD packet to send [23:04:31]OFD Sender: No OFD packet to send [23:04:36]OFD Sender: No OFD packet to send [23:04:41]OFD Sender: No OFD packet to send [23:04:46]OFD Sender: No OFD packet to send [23:04:48]accept exits with 7 [23:04:48]New connection [23:04:48]New thread 3067260260 created [23:04:48]Thread 3067116900 joined [23:04:48]Waiting for new connection... [23:04:48] Sock 7.Parse request [23:04:48]Sock 7.Check first char [23:04:48]Sock 7.First char is OK [23:04:48]request: POST /json_proto HTTP/1.0 [23:04:48]Method: POST [23:04:48]URL: /json_proto [23:04:48]Method is POST - this is cgi request [23:04:48]url: /json_proto [23:04:48]query_string will be loaded in cgi processing [23:04:48]execute_cgi json_proto POST (null) [23:04:48]execute_cgi path=json_proto method=POST [23:04:48]POST find Content-Length [23:04:48]Host: 172.17.58.3:8080 [23:04:48]Content-Length: 677 [23:04:48]Content-Type: application/json [23:04:48] [23:04:48]POST finish read [23:04:48]Found Content-Length = 677 [23:04:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 12.140, "sum" : 800.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:04:48]execute_script... [23:04:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 12.140, "sum" : 800.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:04:48]POST & json_proto [23:04:48]process_json_proto [23:04:48]json parsed OK: [23:04:48]protocol is kg_v1.0 [23:04:48]action value=close_receipt [23:04:48]process_action close_receipt [23:04:48]cmd_close_receipt [23:04:48]MH_GetDate [23:04:48]Write to MH i2c: F0 00 00 48 11 48 [23:04:48]Write i2c OK [23:04:48]MH_I2C_Read... [23:04:48]Read from MH i2c: F0 [23:04:48]MH_I2C_Read... [23:04:48]Read from MH i2c: F0 09 00 [23:04:48]MH_I2C_Read... [23:04:48]Read from MH i2c: F0 09 00 48 11 00 92 E6 BB 66 DC E4 6D 64 7B [23:04:48]GetLastDocTimeStamp 1723590045 [23:04:48]current date 1723590290 [23:04:48]FM_GetShiftState [23:04:48]SAM_PROTO_GetShiftState [23:04:48]wFMCommunicate request_size=4 [23:04:48]MH_SAM_APDU [23:04:48]CAPDU: 80 13 01 00 [23:04:48]Write to MH i2c: E2 08 00 49 11 80 13 01 00 00 00 00 00 D7 [23:04:48]Write i2c OK [23:04:48]MH_I2C_Read... [23:04:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:04:48]Read from MH i2c: E2 [23:04:48]MH_I2C_Read... [23:04:48]Read from MH i2c: E2 0E 00 [23:04:48]MH_I2C_Read... [23:04:48]Read from MH i2c: E2 0E 00 49 11 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 F5 [23:04:48]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [23:04:48]wFMCommunicate OK [23:04:48]SAM_PROTO_GetShiftState done [23:04:48]FM_GetShiftState done [23:04:48]opened in 1723506770 [23:04:48]opened+sec_in_day 1723593170 [23:04:48]quantity*price = 80002 [23:04:48]sum+1 = 80004 [23:04:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 126 13.08.2024 23:04 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103215 ФПД: 138557153546753 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T230450&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103215&fm=138557153546753&tin=02508201610067®Number=0000000000092718&sum=80000 [23:04:49]StoreToDocumentArchive [23:04:49]shift 464 fd 103215 [23:04:49]save to /storage/0464/doc_00103215 [23:04:49]save last doc name /storage/0464/doc_00103215 to /storage/kkm_last_doc_name [23:04:49]save OK [23:04:49]Clear old archive folders... [23:04:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:04:49]tlvbuf is B6EF3540 [23:04:49]SAM_PROTO_ClearQueue [23:04:49]wFMCommunicate request_size=4 [23:04:49]MH_SAM_APDU [23:04:49]CAPDU: 80 09 00 00 [23:04:49]Write to MH i2c: E2 08 00 56 11 80 09 00 00 00 00 00 00 D9 [23:04:49]Write i2c OK [23:04:49]MH_I2C_Read... [23:04:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:04:49]Read from MH i2c: E2 [23:04:49]MH_I2C_Read... [23:04:49]Read from MH i2c: E2 03 00 [23:04:49]MH_I2C_Read... [23:04:49]Read from MH i2c: E2 03 00 56 11 00 90 00 DB [23:04:49]RAPDU: 90 00 [23:04:49]wFMCommunicate OK [23:04:49]SAM_PROTO_ClearQueue done [23:04:49]KKMCreateOFDPacket [23:04:49]OFDProtocolAddRootSTLVToBuf [23:04:49]FM_MakeSignedData [23:04:49]FM_MakeSignedData [23:04:49]SAM_PROTO_SignData [23:04:49]wFMCommunicate request_size=4 [23:04:49]MH_SAM_APDU [23:04:49]CAPDU: 80 0D 01 02 [23:04:49]Write to MH i2c: E2 08 00 57 11 80 0D 01 02 00 00 00 00 E1 [23:04:49]Write i2c OK [23:04:49]MH_I2C_Read... [23:04:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:04:49]Read from MH i2c: E2 [23:04:49]MH_I2C_Read... [23:04:49]Read from MH i2c: E2 03 00 [23:04:49]MH_I2C_Read... [23:04:49]Read from MH i2c: E2 03 00 57 11 00 90 00 DC [23:04:49]RAPDU: 90 00 [23:04:49]wFMCommunicate OK [23:04:49]wFMCommunicate request_size=255 [23:04:49]MH_SAM_APDU [23:04:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 2F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 92 E6 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 2F 93 01 00 35 04 06 00 7E [23:04:49]Write to MH i2c: E2 02 01 58 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 2F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 92 E6 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 2F 93 01 00 35 04 06 00 7E 00 00 CE [23:04:49]Write i2c OK [23:04:49]MH_I2C_Read... [23:04:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:04:50]Read from MH i2c: E2 [23:04:50]MH_I2C_Read... [23:04:50]Read from MH i2c: E2 03 00 [23:04:50]MH_I2C_Read... [23:04:50]Read from MH i2c: E2 03 00 58 11 00 90 00 DD [23:04:50]RAPDU: 90 00 [23:04:50]wFMCommunicate OK [23:04:50]wFMCommunicate request_size=10 [23:04:50]MH_SAM_APDU [23:04:50]CAPDU: 80 0D 02 02 05 04 59 EB 12 01 [23:04:50]Write to MH i2c: E2 0D 00 59 11 80 0D 02 02 05 00 04 59 EB 12 01 00 00 49 [23:04:50]Write i2c OK [23:04:50]MH_I2C_Read... [23:04:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:04:50]Read from MH i2c: E2 [23:04:50]MH_I2C_Read... [23:04:50]Read from MH i2c: E2 03 00 [23:04:50]MH_I2C_Read... [23:04:50]Read from MH i2c: E2 03 00 59 11 00 90 00 DE [23:04:50]RAPDU: 90 00 [23:04:50]wFMCommunicate OK [23:04:50]wFMCommunicate request_size=4 [23:04:50]MH_SAM_APDU [23:04:50]CAPDU: 80 0D 03 02 [23:04:50]Write to MH i2c: E2 08 00 5A 11 80 0D 03 02 00 00 00 00 E6 [23:04:50]Write i2c OK [23:04:50]MH_I2C_Read... [23:04:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:04:50]Read from MH i2c: E2 [23:04:50]MH_I2C_Read... [23:04:50]Read from MH i2c: E2 0B 00 [23:04:50]MH_I2C_Read... [23:04:50]Read from MH i2c: E2 0B 00 5A 11 00 D5 3E A2 E3 2D 62 27 C9 90 00 FE [23:04:50]RAPDU: D5 3E A2 E3 2D 62 27 C9 90 00 [23:04:50]wFMCommunicate OK [23:04:50]SAM_PROTO_SignData done [23:04:50]FM_MakeSignedData done [23:04:50]CreateOFDProtocolMessage [23:04:50]wFMCommunicate request_size=4 [23:04:50]MH_SAM_APDU [23:04:50]CAPDU: 80 11 00 00 [23:04:50]Write to MH i2c: E2 08 00 5B 11 80 11 00 00 00 00 00 00 E6 [23:04:50]Write i2c OK [23:04:50]MH_I2C_Read... [23:04:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:04:50]Read from MH i2c: E2 [23:04:50]MH_I2C_Read... [23:04:50]Read from MH i2c: E2 17 00 [23:04:50]MH_I2C_Read... [23:04:50]Read from MH i2c: E2 17 00 5B 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 3A [23:04:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [23:04:50]wFMCommunicate OK [23:04:50]CreateOFDProtocolMessage done [23:04:50]OFDSenderStorePacket 103215 [23:04:50]StoreOFDPacket docnum=103215 [23:04:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 6E CA 07 01 BF 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 2F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 92 E6 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 2F 93 01 00 35 04 06 00 7E 04 59 EB 12 01 D5 3E A2 E3 2D 62 27 C9 [23:04:50]CheckFolder [23:04:50]dirname=/storage/ofd_packets [23:04:50]CheckFolder done [23:04:50]ProducePacketName [23:04:50]name=ofd_packets/00103215 [23:04:50]NVStorageSaveData ofd_packets/00103215 [23:04:50]File name is /storage/ofd_packets/00103215 [23:04:50]Write 301 bytes [23:04:50]NVStorageSaveData done [23:04:50]OFDSenderStorePacket done [23:04:50]KKMCreateOFDPacket done [23:04:50]NVStorageSaveData kkm_last_timestamp [23:04:50]File name is /storage/kkm_last_timestamp [23:04:50]Write 4 bytes [23:04:50]NVStorageSaveData done [23:04:50]ExternCall_PrintAddStr [23:04:50]wPrintStart [23:04:50]Write to MH i2c: 01 00 00 5C 11 6D [23:04:50]Write i2c OK [23:04:50]MH_I2C_Read... [23:04:50]Read from MH i2c: 01 [23:04:50]MH_I2C_Read... [23:04:50]Read from MH i2c: 01 07 00 [23:04:50]MH_I2C_Read... [23:04:50]Read from MH i2c: 01 07 00 5C 11 00 00 00 00 00 FF 0F 82 [23:04:50]RasterBufferAndPrint [23:04:50]line Счет N : (1)160843 [23:04:50]line ИНН: 02508201610067 [23:04:50]line Контрольно-Кассовый Чек [23:04:50]line ПРОДАЖА [23:04:50]line ТРК (МРК, ГНК) : 3 [23:04:50]line Товар: 2710124130 [23:04:50]line Аи-92-К-5 [23:04:50]line 12.140 * 65.90 [23:04:50]line = 800.03 [23:04:50]line НДС 12% НСП 1% [23:04:50]line > о реализуемом товаре [23:04:50]line ОКРУГЛЕНИЕ: -0.03 [23:04:50]line ИТОГО: 800.00 [23:04:50]line Внесено: 800.00 [23:04:50]line СДАЧА: 0.00 [23:04:50]line НСП 1% : 7.08 [23:04:50]line НДС 12% : 84.96 [23:04:50]line Наличными: 800.00 [23:04:50]line Безнал.: 0.00 [23:04:50]line Место: АЗС № 38 "Партнер Нефть" [23:04:50]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [23:04:50]line СНО: Общий режим [23:04:50]line Чек 126 13.08.2024 23:04 [23:04:50]line Смена: 464 ФФД: 1.0 [23:04:50]line ЗНМ: 0300000126 [23:04:50]line РНМ: 0000000000092718 [23:04:50]line Версия ККМ: 001 [23:04:50]line ФМ: 0000000000875058 [23:04:50]line ФД: 103215 [23:04:50]line ФПД: 138557153546753 [23:04:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T230450&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103215&fm=138557153546753&tin=02508201610067®Number=0000000000092718&sum=80000 [23:04:50]OFD Sender: Processing packet 103215 [packets to send 69, broken 68] [23:04:50]ProducePacketName [23:04:50]name=ofd_packets/00103215 [23:04:50]OFD Sender: To server: pG, [23:04:50]CommunicateWithHost lk.salyk.kg:30040 [23:04:50]ConnectInit lk.salyk.kg [23:04:50]written 0, free lines is 4095 [23:04:50]Connected sock=10 [23:04:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 6E CA 07 01 BF 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 2F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 92 E6 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 2F 93 01 00 35 04 06 00 7E 04 59 EB 12 01 D5 3E A2 E3 2D 62 27 C9 [23:04:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 61 A0 47 00 79 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 2F 93 01 00 F4 03 04 00 04 8D BB 66 B6 04 01 00 00 20 47 9E 9B DE A5 C6 8D [23:04:51]CommunicateWithHost err = 0 [23:04:51]CheckOFDResponse [23:04:51]1017 (14) - 77093643461234 [23:04:51]1041 (16) - 0000000000875058 [23:04:51]1040 (4) - 103215 [23:04:51]1012 (4) - 13.08.2024 16:42 [23:04:51]1206 (1) - 0 [23:04:51]OFD Sender: Remove packet 103215 [23:04:51]ProducePacketName [23:04:51]name=ofd_packets/00103215 [23:04:51]NVStorageDeleteData [23:04:51]Write to MH i2c: 01 00 00 87 11 98 [23:04:51]Write i2c OK [23:04:51]MH_I2C_Read... [23:04:51]Read from MH i2c: 01 [23:04:51]MH_I2C_Read... [23:04:51]Read from MH i2c: 01 07 00 [23:04:51]MH_I2C_Read... [23:04:51]Read from MH i2c: 01 07 00 87 11 00 00 00 00 00 D7 0C 82 [23:04:51]RasterBufferAndPrint [23:04:51]line [23:04:51]line [23:04:51]line [23:04:51]line [23:04:51]line [23:04:51]written 0, free lines is 3294 [23:04:51]MH_Cut [23:04:51]Write to MH i2c: D1 01 00 8E 11 01 71 [23:04:51]Write i2c OK [23:04:51]MH_I2C_Read... [23:04:51]Read from MH i2c: D1 [23:04:51]MH_I2C_Read... [23:04:51]Read from MH i2c: D1 01 00 [23:04:51]MH_I2C_Read... [23:04:51]Read from MH i2c: D1 01 00 8E 11 00 70 [23:04:51]Write to MH i2c: 01 00 00 8F 11 A0 [23:04:51]Write i2c OK [23:04:51]MH_I2C_Read... [23:04:51]OFD Sender: No OFD packet to send [23:04:51]*** Cut start [23:04:51]*** Purtial cut [23:04:51]*** CUTSNS_PIN = 0 [23:04:52]*** Stage 1: CUTSNS_PIN = 1 [23:04:53]Read from MH i2c: 01 [23:04:53]MH_I2C_Read... [23:04:53]*** Stop cut motor [23:04:53]*** Cut end [23:04:53]Read from MH i2c: 01 07 00 [23:04:53]MH_I2C_Read... [23:04:53]Read from MH i2c: 01 07 00 8F 11 00 00 00 00 00 FF 0F B5 [23:04:53]process_action close_receipt done [23:04:53]requested_data is exist [23:04:53]produce_requested_data [23:04:53]requested_item fm.sn is exist - process it [23:04:53]wFMCommunicate request_size=4 [23:04:53]MH_SAM_APDU [23:04:53]CAPDU: 80 11 00 00 [23:04:53]Write to MH i2c: E2 08 00 90 11 80 11 00 00 00 00 00 00 1B [23:04:53]Write i2c OK [23:04:53]MH_I2C_Read... [23:04:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:04:54]Read from MH i2c: E2 [23:04:54]MH_I2C_Read... [23:04:54]Read from MH i2c: E2 17 00 [23:04:54]MH_I2C_Read... [23:04:54]Read from MH i2c: E2 17 00 90 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 6F [23:04:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [23:04:54]wFMCommunicate OK [23:04:54]requested_item fd.num is exist - process it [23:04:54]SAM_PROTO_GetFieldsCounters [23:04:54]wFMCommunicate request_size=4 [23:04:54]MH_SAM_APDU [23:04:54]CAPDU: 80 13 00 00 [23:04:54]Write to MH i2c: E2 08 00 91 11 80 13 00 00 00 00 00 00 1E [23:04:54]Write i2c OK [23:04:54]MH_I2C_Read... [23:04:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:04:54]Read from MH i2c: E2 [23:04:54]MH_I2C_Read... [23:04:54]Read from MH i2c: E2 62 00 [23:04:54]MH_I2C_Read... [23:04:54]Read from MH i2c: E2 62 00 91 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 2F 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [23:04:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 2F 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:04:54]wFMCommunicate OK [23:04:54]SAM_PROTO_GetFieldsCounters done [23:04:54]requested_item shift.num is exist - process it [23:04:54]requested_item shift.opened is exist - process it [23:04:54]req_shift_opened [23:04:54]FM_GetShiftState [23:04:54]SAM_PROTO_GetShiftState [23:04:54]wFMCommunicate request_size=4 [23:04:54]MH_SAM_APDU [23:04:54]CAPDU: 80 13 01 00 [23:04:54]Write to MH i2c: E2 08 00 92 11 80 13 01 00 00 00 00 00 20 [23:04:54]Write i2c OK [23:04:54]MH_I2C_Read... [23:04:54]Read from MH i2c: E2 [23:04:54]MH_I2C_Read... [23:04:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:04:54]Read from MH i2c: E2 0E 00 [23:04:54]MH_I2C_Read... [23:04:54]Read from MH i2c: E2 0E 00 92 11 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 3E [23:04:54]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [23:04:54]wFMCommunicate OK [23:04:54]SAM_PROTO_GetShiftState done [23:04:54]FM_GetShiftState done [23:04:54]req_shift_opened done [23:04:54]requested_item shift.open_date is exist - process it [23:04:54]req_shift_open_date [23:04:54]req_shift_open_date done [23:04:54]produce_requested_data done [23:04:54]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103215,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [23:04:54]process_action_free close_receipt [23:04:54]json_value_free [23:04:54]json_value_free done [23:04:54]process_json_proto returns [23:04:54]Send response to host [23:04:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103215,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [23:04:54]free response buf [23:04:54]execute_script done [23:04:54]execute_script returns [23:04:54]free content buf [23:04:54]Sock 7.Close socket [23:04:54]Sock 7.Thread stoped [23:04:56]OFD Sender: No OFD packet to send [23:05:01]OFD Sender: No OFD packet to send [23:05:06]OFD Sender: No OFD packet to send [23:05:11]OFD Sender: No OFD packet to send [23:05:16]OFD Sender: No OFD packet to send [23:05:21]OFD Sender: No OFD packet to send [23:05:26]OFD Sender: No OFD packet to send [23:05:31]OFD Sender: No OFD packet to send [23:05:36]OFD Sender: No OFD packet to send [23:05:41]OFD Sender: No OFD packet to send [23:05:46]OFD Sender: No OFD packet to send [23:05:51]OFD Sender: No OFD packet to send [23:05:56]OFD Sender: No OFD packet to send [23:06:01]OFD Sender: No OFD packet to send [23:06:06]OFD Sender: No OFD packet to send [23:06:11]OFD Sender: No OFD packet to send [23:06:16]OFD Sender: No OFD packet to send [23:06:21]OFD Sender: No OFD packet to send [23:06:26]OFD Sender: No OFD packet to send [23:06:31]OFD Sender: No OFD packet to send [23:06:36]OFD Sender: No OFD packet to send [23:06:41]OFD Sender: No OFD packet to send [23:06:46]OFD Sender: No OFD packet to send [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]/dev/ttyS4 opened [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 01 00 00 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 01 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 B6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 F2 [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** Check firmware version 30515, crc_r 5823D75D, crc_c: 5823D75D, size: 52480 [00:00:09]*** [00:00:09]Read from MH i2c: A0 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:09]*** Starting fw at address 01020100 (2007E318 010246F9) [00:00:09]*** Waiting for read because exit forced [00:00:09]*** 10 ms more... [00:00:09]*** MH1903 init start (LINUX_LIGHT) [00:00:09]*** Serial: 3139303353513838 54000000005725B6 (1903SQ88T) [00:00:09]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:09]*** step 0: 5000 (2650, 2350 REF) [00:00:09]*** step 1: 4835 (2500, 2335 REF) [00:00:09]*** step 2: 4676 (2440, 2236 REF) [00:00:09]*** step 3: 4523 (2280, 2243 REF) [00:00:09]*** step 4: 4376 (2160, 2216 REF) [00:00:09]*** step 5: 4235 (2050, 2185 REF) [00:00:09]*** step 6: 4098 (1950, 2148 REF) [00:00:09]*** step 7: 3967 (1870, 2097 REF) [00:00:09]*** step 8: 3840 (1828, 2012 REF) [00:00:09]*** step 9: 3719 (1728, 1991 REF) [00:00:09]*** step 10: 3601 (1675, 1926 REF) [00:00:09]*** step 11: 3488 (1635, 1853 REF) [00:00:09]*** step 12: 3379 (1595, 1784 REF) [00:00:09]*** step 13: 3275 (1565, 1710 REF) [00:00:09]*** step 14: 3174 (1543, 1631 REF) [00:00:09]*** step 15: 3077 (1523, 1554 REF) [00:00:09]*** step 16: 2983 (1503, 1480 REF) [00:00:09]*** step 17: 2893 (1486, 1407 REF) [00:00:09]*** step 18: 2806 (1466, 1340 REF) [00:00:09]*** step 19: 2723 (1426, 1297 REF) [00:00:09]*** step 20: 2642 (1406, 1236 REF) [00:00:09]*** step 21: 2565 (1384, 1181 REF) [00:00:09]*** step 22: 2490 (1364, 1126 REF) [00:00:09]*** step 23: 2418 (1344, 1074 REF) [00:00:09]*** step 24: 2349 (1322, 1027 REF) [00:00:09]*** step 25: 2283 (1302, 981 REF) [00:00:09]*** step 26: 2218 (1282, 936 REF) [00:00:09]*** step 27: 2157 (1262, 895 REF) [00:00:09]*** step 28: 2097 (1242, 855 REF) [00:00:09]*** step 29: 2040 (1222, 818 REF) [00:00:09]*** step 30: 1985 (1202, 783 REF) [00:00:09]*** step 31: 1932 (1191, 741 REF) [00:00:09]*** step 32: 1880 (1181, 699 REF) [00:00:09]*** step 33: 1831 (1171, 660 REF) [00:00:09]*** step 34: 1784 (1161, 623 REF) [00:00:09]*** step 35: 1738 (1151, 587 REF) [00:00:09]*** step 36: 1694 (1141, 553 REF) [00:00:09]*** step 37: 1652 (1131, 521 REF) [00:00:09]*** step 38: 1611 (1121, 490 REF) [00:00:09]*** step 39: 1572 (1111, 461 REF) [00:00:09]*** step 40: 1534 (1103, 431 REF) [00:00:09]*** step 41: 1497 (1093, 404 REF) [00:00:09]*** step 42: 1462 (1083, 379 REF) [00:00:09]*** step 43: 1428 (1073, 355 REF) [00:00:09]*** step 44: 1396 (1063, 333 REF) [00:00:09]*** step 45: 1365 (1053, 312 REF) [00:00:09]*** step 46: 1334 (1043, 291 REF) [00:00:09]*** step 47: 1305 (1033, 272 REF) [00:00:09]*** step 48: 1277 (1023, 254 REF) [00:00:09]*** step 49: 1250 (1013, 237 REF) [00:00:09]*** step 50: 1224 (990, 234 REF) [00:00:09]*** step 51: 1199 (980, 219 REF) [00:00:09]*** step 52: 1175 (970, 205 REF) [00:00:09]*** step 53: 1152 (960, 192 REF) [00:00:09]*** step 54: 1130 (950, 180 REF) [00:00:09]*** step 55: 1108 (940, 168 REF) [00:00:09]*** step 56: 1088 (930, 158 REF) [00:00:09]*** step 57: 1068 (920, 148 REF) [00:00:09]*** step 58: 1049 (910, 139 REF) [00:00:09]*** step 59: 1030 (900, 130 REF) [00:00:09]*** step 60: 1012 (890, 122 REF) [00:00:09]*** step 61: 995 (880, 115 REF) [00:00:09]*** step 62: 979 (870, 109 REF) [00:00:09]*** step 63: 963 (860, 103 REF) [00:00:09]*** step 64: 948 (850, 98 REF) [00:00:09]*** step 65: 933 (840, 93 REF) [00:00:09]*** step 66: 919 (830, 89 REF) [00:00:09]*** step 67: 905 (820, 85 REF) [00:00:09]*** step 68: 892 (810, 82 REF) [00:00:09]*** step 69: 879 (800, 79 REF) [00:00:09]*** step 70: 867 (790, 77 REF) [00:00:09]*** step 71: 855 (780, 75 REF) [00:00:09]*** step 72: 844 (770, 74 REF) [00:00:09]*** step 73: 833 (760, 73 REF) [00:00:09]*** step 74: 822 (750, 72 REF) [00:00:09]*** step 75: 812 (740, 72 REF) [00:00:09]*** step 76: 803 (730, 73 REF) [00:00:09]*** step 77: 793 (720, 73 REF) [00:00:09]*** step 78: 784 (710, 74 REF) [00:00:09]*** step 79: 776 (700, 76 REF) [00:00:09]*** step 80: 767 (690, 77 REF) [00:00:09]*** step 81: 759 (680, 79 REF) [00:00:09]*** step 82: 751 (670, 81 REF) [00:00:09]*** step 83: 744 (660, 84 REF) [00:00:09]*** step 84: 737 (650, 87 REF) [00:00:09]*** step 85: 730 (640, 90 REF) [00:00:09]*** step 86: 723 (630, 93 REF) [00:00:09]*** step 87: 717 (620, 97 REF) [00:00:09]*** step 88: 710 (610, 100 REF) [00:00:09]*** step 89: 705 (600, 105 REF) [00:00:09]*** step 90: 699 [00:00:09]*** step 91: 693 [00:00:09]*** step 92: 688 [00:00:09]*** step 93: 683 [00:00:09]*** step 94: 678 [00:00:09]*** step 95: 673 [00:00:09]*** step 96: 669 [00:00:09]*** step 97: 664 [00:00:09]*** step 98: 660 [00:00:09]*** step 99: 656 [00:00:09]*** step 100: 652 [00:00:09]*** step 101: 648 [00:00:09]*** step 102: 644 [00:00:09]*** step 103: 641 [00:00:09]*** step 104: 638 [00:00:09]*** step 105: 634 [00:00:09]*** step 106: 631 [00:00:09]*** step 107: 628 [00:00:09]*** step 108: 625 [00:00:09]*** step 109: 622 [00:00:09]*** step 110: 620 [00:00:09]*** step 111: 617 [00:00:09]*** step 112: 615 [00:00:09]*** step 113: 612 [00:00:09]*** step 114: 610 [00:00:09]*** step 115: 608 [00:00:09]*** step 116: 605 [00:00:09]*** step 117: 603 [00:00:09]*** step 118: 601 [00:00:09]*** step 119: 599 [00:00:09]*** printer: Printer HW initialized [00:00:09]*** initSamCard finished [00:00:09]*** RTC: 38666822+1684923612=1723590434 [00:00:09]*** BPK Status Register BPK_RDY = 0x0 [00:00:09]*** SEN State Register SEN_STATE = 0x220ff [00:00:09]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:09]*** Analog Control Register 0 SEN_ANA0 = 0x33540624 [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 03 00 02 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 03 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 B6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 F3 [00:00:10]Are we in boot? [00:00:10]We are not in boot now [00:00:10]Write to MH i2c: 01 00 00 04 00 04 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:10]Model is 3 [00:00:10]MH firmware is 30515 [00:00:10]MH boot firmware is 3 [00:00:10]MH_SetPrinterDots 448 [00:00:10]HeadWidthInBytes 56 [00:00:10]maxmasksize 7 [00:00:10]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:10]Write to MH i2c: D5 00 00 06 00 DA [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]ExternCall_SetCallbacks [00:00:10]NVStorageInit [00:00:10]MH_GetDate [00:00:10]Write to MH i2c: F0 00 00 07 00 F6 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 07 00 00 23 E7 BB 66 DC E4 6D 64 BB [23:07:15]Current date/time: 13.08.2024 23:07 [23:07:15]FM_Init [23:07:15]wFMConnect [23:07:15]MH_SAM_On [23:07:15]Write to MH i2c: E0 00 00 08 00 E7 [23:07:15]Write i2c OK [23:07:15]MH_I2C_Read... [23:07:15]*** iso7816_init finished! [23:07:15]*** atr: [23:07:15]*** 0F 3B D5 18 FF 81 91 FE [23:07:15]*** 1F C3 80 73 C8 21 10 0A [23:07:15]*** 00 00 00 00 00 00 00 00 [23:07:15]*** 00 00 00 00 00 00 00 00 [23:07:15]*** 00 00 00 00 00 00 00 00 [23:07:15]*** 00 00 00 00 00 00 00 00 [23:07:15]*** 00 00 00 00 00 00 00 00 [23:07:15]*** 00 00 00 00 00 00 00 00 [23:07:15]Read from MH i2c: E0 [23:07:15]MH_I2C_Read... [23:07:15]Read from MH i2c: E0 10 00 [23:07:15]MH_I2C_Read... [23:07:15]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [23:07:15]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [23:07:15]wFMCommunicate request_size=10 [23:07:15]MH_SAM_APDU [23:07:15]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [23:07:15]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [23:07:15]Write i2c OK [23:07:15]MH_I2C_Read... [23:07:15]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [23:07:15]Read from MH i2c: E2 [23:07:15]MH_I2C_Read... [23:07:15]Read from MH i2c: E2 03 00 [23:07:15]MH_I2C_Read... [23:07:15]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [23:07:15]RAPDU: 90 00 [23:07:15]wFMCommunicate OK [23:07:15]wFMCommunicate request_size=4 [23:07:15]MH_SAM_APDU [23:07:15]CAPDU: 80 11 00 00 [23:07:15]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [23:07:15]Write i2c OK [23:07:15]MH_I2C_Read... [23:07:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:07:15]Read from MH i2c: E2 [23:07:15]MH_I2C_Read... [23:07:15]Read from MH i2c: E2 17 00 [23:07:15]MH_I2C_Read... [23:07:15]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 D8 [23:07:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [23:07:15]wFMCommunicate OK [23:07:15]Detected FM SN is 0000000000875058 [23:07:15]Stored FM SN is 0000000000875058 [23:07:15]wFMCommunicate request_size=9 [23:07:15]MH_SAM_APDU [23:07:15]CAPDU: 80 16 00 00 04 5C 74 00 00 [23:07:15]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 5C 74 00 00 00 00 62 [23:07:15]Write i2c OK [23:07:15]MH_I2C_Read... [23:07:15]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [23:07:15]Read from MH i2c: E2 [23:07:15]MH_I2C_Read... [23:07:15]Read from MH i2c: E2 03 00 [23:07:15]MH_I2C_Read... [23:07:15]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [23:07:15]RAPDU: 90 00 [23:07:15]wFMCommunicate OK [23:07:15]FM PIN OK [23:07:15]wFMCommunicate request_size=8 [23:07:15]MH_SAM_APDU [23:07:15]CAPDU: 80 14 04 00 03 02 00 01 [23:07:15]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [23:07:15]Write i2c OK [23:07:15]MH_I2C_Read... [23:07:15]Read from MH i2c: E2 [23:07:15]MH_I2C_Read... [23:07:15]Read from MH i2c: *** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [23:07:15]E2 03 00 [23:07:15]MH_I2C_Read... [23:07:15]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [23:07:15]RAPDU: 90 00 [23:07:15]wFMCommunicate OK [23:07:15]wFMCommunicate request_size=13 [23:07:15]MH_SAM_APDU [23:07:15]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [23:07:15]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [23:07:15]Write i2c OK [23:07:15]MH_I2C_Read... [23:07:15]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [23:07:15]Read from MH i2c: E2 [23:07:15]MH_I2C_Read... [23:07:15]Read from MH i2c: E2 03 00 [23:07:15]MH_I2C_Read... [23:07:15]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [23:07:15]RAPDU: 90 00 [23:07:15]wFMCommunicate OK [23:07:15]wFMCommunicate request_size=4 [23:07:15]MH_SAM_APDU [23:07:15]CAPDU: 80 11 00 00 [23:07:15]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [23:07:15]Write i2c OK [23:07:15]MH_I2C_Read... [23:07:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:07:15]Read from MH i2c: E2 [23:07:15]MH_I2C_Read... [23:07:15]Read from MH i2c: E2 17 00 [23:07:15]MH_I2C_Read... [23:07:15]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 DC [23:07:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [23:07:15]wFMCommunicate OK [23:07:15]DocumentArchiveInit [23:07:15]Start Httpd... [23:07:15]Httpd thread 3067772260 created [23:07:15]Write to MH i2c: 01 00 00 0F 00 0F [23:07:15]Write i2c OK [23:07:15]MH_I2C_Read... [23:07:15]Read from MH i2c: 01 [23:07:15]MH_I2C_Read... [23:07:15]Read from MH i2c: 01 07 00 [23:07:15]MH_I2C_Read... [23:07:15]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [23:07:15]MH Int Process started [23:07:15]Allocated Socket 8 [23:07:15]Bind OK [23:07:15]Listen OK [23:07:15]httpd running on port 8080 [23:07:15]Waiting for new connection... [23:07:15]OFD Sender: No OFD packet to send [23:07:20]OFD Sender: No OFD packet to send [23:07:22]accept exits with 9 [23:07:22]New connection [23:07:22]New thread 3067485540 created [23:07:22]Waiting for new connection... [23:07:22] Sock 9.Parse request [23:07:22]Sock 9.Check first char [23:07:22]Sock 9.First char is OK [23:07:22]request: POST /json_proto HTTP/1.0 [23:07:22]Method: POST [23:07:22]URL: /json_proto [23:07:22]Method is POST - this is cgi request [23:07:22]url: /json_proto [23:07:22]query_string will be loaded in cgi processing [23:07:22]execute_cgi json_proto POST (null) [23:07:22]execute_cgi path=json_proto method=POST [23:07:22]POST find Content-Length [23:07:22]Host: 172.17.58.3:8080 [23:07:22]Content-Length: 215 [23:07:22]Content-Type: application/json [23:07:22] [23:07:22]POST finish read [23:07:22]Found Content-Length = 215 [23:07:22]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" ] } } [23:07:22]execute_script... [23:07:22]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" ] } } [23:07:22]POST & json_proto [23:07:22]process_json_proto [23:07:22]json parsed OK: [23:07:22]protocol is kg_v1.0 [23:07:22]action value=get_value [23:07:22]process_action get_value [23:07:22]cmd_get_value [23:07:22]process_action get_value done [23:07:22]requested_data is exist [23:07:22]produce_requested_data [23:07:22]requested_item kkm.sn is exist - process it [23:07:22]requested_item kkm.ver is exist - process it [23:07:22]requested_item fm.sn is exist - process it [23:07:22]wFMCommunicate request_size=4 [23:07:22]MH_SAM_APDU [23:07:22]CAPDU: 80 11 00 00 [23:07:22]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [23:07:22]Write i2c OK [23:07:22]MH_I2C_Read... [23:07:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:07:22]Read from MH i2c: E2 [23:07:22]MH_I2C_Read... [23:07:22]Read from MH i2c: E2 17 00 [23:07:22]MH_I2C_Read... [23:07:22]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 DE [23:07:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [23:07:22]wFMCommunicate OK [23:07:22]requested_item fd.num is exist - process it [23:07:22]SAM_PROTO_GetFieldsCounters [23:07:22]wFMCommunicate request_size=4 [23:07:22]MH_SAM_APDU [23:07:22]CAPDU: 80 13 00 00 [23:07:22]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [23:07:22]Write i2c OK [23:07:22]MH_I2C_Read... [23:07:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:07:22]Read from MH i2c: E2 [23:07:22]MH_I2C_Read... [23:07:22]Read from MH i2c: E2 62 00 [23:07:22]MH_I2C_Read... [23:07:22]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 2F 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [23:07:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 2F 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:07:22]wFMCommunicate OK [23:07:22]SAM_PROTO_GetFieldsCounters done [23:07:22]requested_item shift.num is exist - process it [23:07:22]requested_item shift.opened is exist - process it [23:07:22]req_shift_opened [23:07:22]FM_GetShiftState [23:07:22]SAM_PROTO_GetShiftState [23:07:22]wFMCommunicate request_size=4 [23:07:22]MH_SAM_APDU [23:07:22]CAPDU: 80 13 01 00 [23:07:22]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [23:07:22]Write i2c OK [23:07:22]MH_I2C_Read... [23:07:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:07:22]Read from MH i2c: E2 [23:07:22]MH_I2C_Read... [23:07:22]Read from MH i2c: E2 0E 00 [23:07:22]MH_I2C_Read... [23:07:22]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 AD [23:07:22]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [23:07:22]wFMCommunicate OK [23:07:22]SAM_PROTO_GetShiftState done [23:07:22]FM_GetShiftState done [23:07:22]req_shift_opened done [23:07:22]requested_item shift.open_date is exist - process it [23:07:22]req_shift_open_date [23:07:22]req_shift_open_date done [23:07:22]produce_requested_data done [23:07:22]produce_requested_data return {"kkm.sn":"0300000126","kkm.ver":"001","fm.sn":"0000000000875058","fd.num":103215,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [23:07:22]process_action_free get_value [23:07:22]json_value_free [23:07:22]json_value_free done [23:07:22]process_json_proto returns [23:07:22]Send response to host [23:07:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000126","kkm.ver":"001","fm.sn":"0000000000875058","fd.num":103215,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [23:07:22]free response buf [23:07:22]execute_script done [23:07:22]execute_script returns [23:07:22]free content buf [23:07:22]Sock 9.Close socket [23:07:22]Sock 9.Thread stoped [23:07:22]accept exits with 6 [23:07:22]New connection [23:07:22]New thread 3067342180 created [23:07:22]Thread 3067485540 joined [23:07:22]Waiting for new connection... [23:07:22] Sock 6.Parse request [23:07:22]Sock 6.Check first char [23:07:22]Sock 6.First char is OK [23:07:22]request: POST /json_proto HTTP/1.0 [23:07:22]Method: POST [23:07:22]URL: /json_proto [23:07:22]Method is POST - this is cgi request [23:07:22]url: /json_proto [23:07:22]query_string will be loaded in cgi processing [23:07:22]execute_cgi json_proto POST (null) [23:07:22]execute_cgi path=json_proto method=POST [23:07:22]POST find Content-Length [23:07:22]Host: 172.17.58.3:8080 [23:07:22]Content-Length: 331 [23:07:22]Content-Type: application/json [23:07:22] [23:07:22]POST finish read [23:07:22]Found Content-Length = 331 [23:07:22]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" ] } } [23:07:22]execute_script... [23:07:22]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" ] } } [23:07:22]POST & json_proto [23:07:22]process_json_proto [23:07:22]json parsed OK: [23:07:22]protocol is kg_v1.0 [23:07:22]action value=get_value [23:07:22]process_action get_value [23:07:22]cmd_get_value [23:07:22]process_action get_value done [23:07:22]requested_data is exist [23:07:23]produce_requested_data [23:07:23]requested_item fm.sale.total is exist - process it [23:07:23]SAM_PROTO_GetFMData [23:07:23]wFMCommunicate request_size=4 [23:07:23]MH_SAM_APDU [23:07:23]CAPDU: 80 13 03 00 [23:07:23]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [23:07:23]Write i2c OK [23:07:23]MH_I2C_Read... [23:07:23]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:07:23]Read from MH i2c: E2 [23:07:23]MH_I2C_Read... [23:07:23]Read from MH i2c: E2 FD 00 [23:07:23]MH_I2C_Read... [23:07:23]Read from MH i2c: E2 FD 00 13 00 00 C8 04 85 04 C4 04 6E 04 04 00 8F 8F 01 00 69 04 A3 00 6F 04 04 00 99 87 01 00 B1 04 05 00 BB 15 8E 89 01 70 04 05 00 E4 3B A1 0B 01 72 04 04 00 D7 D9 EC 7D 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 01 C0 CD 29 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 9C B7 7B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F6 07 00 00 B1 04 04 00 D8 EE BC 12 70 04 04 00 70 DB B0 12 72 04 03 00 68 13 0C 00 04 7C 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 15 7B FD 01 90 00 0F [23:07:23]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 8F 8F 01 00 69 04 A3 00 6F 04 04 00 99 87 01 00 B1 04 05 00 BB 15 8E 89 01 70 04 05 00 E4 3B A1 0B 01 72 04 04 00 D7 D9 EC 7D 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 01 C0 CD 29 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 9C B7 7B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F6 07 00 00 B1 04 04 00 D8 EE BC 12 70 04 04 00 70 DB B0 12 72 04 03 00 68 13 0C 00 04 7C 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 15 7B FD 01 90 00 [23:07:23]wFMCommunicate OK [23:07:23]wFMCommunicate request_size=4 [23:07:23]MH_SAM_APDU [23:07:23]CAPDU: 80 17 00 00 [23:07:23]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [23:07:23]Write i2c OK [23:07:23]MH_I2C_Read... [23:07:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:07:23]Read from MH i2c: E2 [23:07:23]MH_I2C_Read... [23:07:23]Read from MH i2c: E2 FD 00 [23:07:23]MH_I2C_Read... [23:07:23]Read from MH i2c: E2 FD 00 14 00 00 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 60 74 2A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8E [23:07:23]RAPDU: 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 60 74 2A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:07:23]wFMCommunicate OK [23:07:23]wFMCommunicate request_size=4 [23:07:23]MH_SAM_APDU [23:07:23]CAPDU: 80 17 00 00 [23:07:23]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [23:07:23]Write i2c OK [23:07:23]MH_I2C_Read... [23:07:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:07:24]Read from MH i2c: E2 [23:07:24]MH_I2C_Read... [23:07:24]Read from MH i2c: E2 FD 00 [23:07:24]MH_I2C_Read... [23:07:24]Read from MH i2c: E2 FD 00 15 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6D [23:07:24]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:07:24]wFMCommunicate OK [23:07:24]wFMCommunicate request_size=4 [23:07:24]MH_SAM_APDU [23:07:24]CAPDU: 80 17 00 00 [23:07:24]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [23:07:24]Write i2c OK [23:07:24]MH_I2C_Read... [23:07:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:07:24]Read from MH i2c: E2 [23:07:24]MH_I2C_Read... [23:07:24]Read from MH i2c: E2 FD 00 [23:07:24]MH_I2C_Read... [23:07:24]Read from MH i2c: E2 FD 00 16 00 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 0E [23:07:24]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:07:24]wFMCommunicate OK [23:07:24]wFMCommunicate request_size=4 [23:07:24]MH_SAM_APDU [23:07:24]CAPDU: 80 17 00 00 [23:07:24]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [23:07:24]Write i2c OK [23:07:24]MH_I2C_Read... [23:07:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [23:07:24]Read from MH i2c: E2 [23:07:24]MH_I2C_Read... [23:07:24]Read from MH i2c: E2 E5 00 [23:07:24]MH_I2C_Read... [23:07:24]Read from MH i2c: E2 E5 00 17 00 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7B [23:07:24]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:07:24]wFMCommunicate OK [23:07:24]SAM_PROTO_GetFMData done [23:07:24]requested_item fm.sale_refund.total is exist - process it [23:07:24]requested_item fm.buy.total is exist - process it [23:07:24]requested_item shift.sale.total is exist - process it [23:07:24]SAM_PROTO_GetShiftData [23:07:24]wFMCommunicate request_size=4 [23:07:24]MH_SAM_APDU [23:07:24]CAPDU: 80 13 02 00 [23:07:24]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [23:07:24]Write i2c OK [23:07:24]MH_I2C_Read... [23:07:25]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:07:25]Read from MH i2c: E2 [23:07:25]MH_I2C_Read... [23:07:25]Read from MH i2c: E2 FD 00 [23:07:25]MH_I2C_Read... [23:07:25]Read from MH i2c: E2 FD 00 18 00 00 B7 04 AA 04 B3 04 6E 04 04 00 7E 00 00 00 69 04 9C 00 6F 04 04 00 7C 00 00 00 B1 04 03 00 B9 32 99 70 04 03 00 C4 02 93 72 04 03 00 F5 2F 06 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 59 46 10 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 2F 5B 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 95 00 6F 04 04 00 02 00 00 00 B1 04 02 00 40 9C 70 04 02 00 40 9C 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 A1 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 90 00 37 [23:07:25]RAPDU: B7 04 AA 04 B3 04 6E 04 04 00 7E 00 00 00 69 04 9C 00 6F 04 04 00 7C 00 00 00 B1 04 03 00 B9 32 99 70 04 03 00 C4 02 93 72 04 03 00 F5 2F 06 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 59 46 10 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 2F 5B 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 95 00 6F 04 04 00 02 00 00 00 B1 04 02 00 40 9C 70 04 02 00 40 9C 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 A1 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 90 00 [23:07:25]wFMCommunicate OK [23:07:25]wFMCommunicate request_size=4 [23:07:25]MH_SAM_APDU [23:07:25]CAPDU: 80 17 00 00 [23:07:25]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [23:07:25]Write i2c OK [23:07:25]MH_I2C_Read... [23:07:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:07:25]Read from MH i2c: E2 [23:07:25]MH_I2C_Read... [23:07:25]Read from MH i2c: E2 FD 00 [23:07:25]MH_I2C_Read... [23:07:25]Read from MH i2c: E2 FD 00 19 00 00 00 F6 03 01 00 01 F7 03 02 00 63 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 23 [23:07:25]RAPDU: 00 F6 03 01 00 01 F7 03 02 00 63 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 [23:07:25]wFMCommunicate OK [23:07:25]wFMCommunicate request_size=4 [23:07:25]MH_SAM_APDU [23:07:25]CAPDU: 80 17 00 00 [23:07:25]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [23:07:25]Write i2c OK [23:07:25]MH_I2C_Read... [23:07:25]OFD Sender: No OFD packet to send [23:07:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:07:25]Read from MH i2c: E2 [23:07:25]MH_I2C_Read... [23:07:25]Read from MH i2c: E2 FD 00 [23:07:25]MH_I2C_Read... [23:07:25]Read from MH i2c: E2 FD 00 1A 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3F [23:07:25]RAPDU: EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:07:25]wFMCommunicate OK [23:07:25]wFMCommunicate request_size=4 [23:07:25]MH_SAM_APDU [23:07:25]CAPDU: 80 17 00 00 [23:07:25]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [23:07:25]Write i2c OK [23:07:25]MH_I2C_Read... [23:07:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:07:26]Read from MH i2c: E2 [23:07:26]MH_I2C_Read... [23:07:26]Read from MH i2c: E2 FD 00 [23:07:26]MH_I2C_Read... [23:07:26]Read from MH i2c: E2 FD 00 1B 00 00 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 10 [23:07:26]RAPDU: 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 [23:07:26]wFMCommunicate OK [23:07:26]wFMCommunicate request_size=4 [23:07:26]MH_SAM_APDU [23:07:26]CAPDU: 80 17 00 00 [23:07:26]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [23:07:26]Write i2c OK [23:07:26]MH_I2C_Read... [23:07:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 209! [23:07:26]Read from MH i2c: E2 [23:07:26]MH_I2C_Read... [23:07:26]Read from MH i2c: E2 D4 00 [23:07:26]MH_I2C_Read... [23:07:26]Read from MH i2c: E2 D4 00 1C 00 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 8D [23:07:26]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:07:26]wFMCommunicate OK [23:07:26]SAM_PROTO_GetShiftData done [23:07:26]requested_item shift.sale.total_cash is exist - process it [23:07:26]requested_item shift.sale_refund.total is exist - process it [23:07:26]requested_item shift.sale_refund.total_cash is exist - process it [23:07:26]requested_item shift.buy.total is exist - process it [23:07:26]requested_item shift.buy.total_cash is exist - process it [23:07:26]produce_requested_data done [23:07:26]produce_requested_data return {"fm.sale.total":66027575.63,"fm.sale_refund.total":3143718.00,"fm.buy.total":0.00,"shift.sale.total":100399.93,"shift.sale.total_cash":96345.00,"shift.sale_refund.total":400.00,"shift.sale_refund.total_cash":400.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:07:26]process_action_free get_value [23:07:26]json_value_free [23:07:26]json_value_free done [23:07:26]process_json_proto returns [23:07:26]Send response to host [23:07:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":66027575.63,"fm.sale_refund.total":3143718.00,"fm.buy.total":0.00,"shift.sale.total":100399.93,"shift.sale.total_cash":96345.00,"shift.sale_refund.total":400.00,"shift.sale_refund.total_cash":400.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:07:26]free response buf [23:07:26]execute_script done [23:07:26]execute_script returns [23:07:26]free content buf [23:07:26]Sock 6.Close socket [23:07:26]Sock 6.Thread stoped [23:07:30]OFD Sender: No OFD packet to send [23:07:35]OFD Sender: No OFD packet to send [23:07:40]OFD Sender: No OFD packet to send [23:07:45]OFD Sender: No OFD packet to send [23:07:50]OFD Sender: No OFD packet to send [23:07:55]OFD Sender: No OFD packet to send [23:08:00]OFD Sender: No OFD packet to send [23:08:05]OFD Sender: No OFD packet to send [23:08:10]OFD Sender: No OFD packet to send [23:08:15]OFD Sender: No OFD packet to send [23:08:20]OFD Sender: No OFD packet to send [23:08:25]OFD Sender: No OFD packet to send [23:08:30]OFD Sender: No OFD packet to send [23:08:35]OFD Sender: No OFD packet to send [23:08:40]OFD Sender: No OFD packet to send [23:08:45]OFD Sender: No OFD packet to send [23:08:50]OFD Sender: No OFD packet to send [23:08:55]OFD Sender: No OFD packet to send [23:09:00]OFD Sender: No OFD packet to send [23:09:05]OFD Sender: No OFD packet to send [23:09:10]OFD Sender: No OFD packet to send [23:09:15]OFD Sender: No OFD packet to send [23:09:20]OFD Sender: No OFD packet to send [23:09:25]OFD Sender: No OFD packet to send [23:09:30]OFD Sender: No OFD packet to send [23:09:35]OFD Sender: No OFD packet to send [23:09:40]OFD Sender: No OFD packet to send [23:09:45]OFD Sender: No OFD packet to send [23:09:50]OFD Sender: No OFD packet to send [23:09:55]OFD Sender: No OFD packet to send [23:10:00]OFD Sender: No OFD packet to send [23:10:05]OFD Sender: No OFD packet to send [23:10:10]OFD Sender: No OFD packet to send [23:10:15]OFD Sender: No OFD packet to send [23:10:20]OFD Sender: No OFD packet to send [23:10:25]OFD Sender: No OFD packet to send [23:10:30]OFD Sender: No OFD packet to send [23:10:35]OFD Sender: No OFD packet to send [23:10:40]OFD Sender: No OFD packet to send [23:10:45]OFD Sender: No OFD packet to send [23:10:50]OFD Sender: No OFD packet to send [23:10:55]OFD Sender: No OFD packet to send [23:11:00]OFD Sender: No OFD packet to send [23:11:05]OFD Sender: No OFD packet to send [23:11:10]OFD Sender: No OFD packet to send [23:11:15]OFD Sender: No OFD packet to send [23:11:20]OFD Sender: No OFD packet to send [23:11:25]OFD Sender: No OFD packet to send [23:11:30]OFD Sender: No OFD packet to send [23:11:35]OFD Sender: No OFD packet to send [23:11:40]OFD Sender: No OFD packet to send [23:11:45]OFD Sender: No OFD packet to send [23:11:50]OFD Sender: No OFD packet to send [23:11:55]OFD Sender: No OFD packet to send [23:12:00]OFD Sender: No OFD packet to send [23:12:05]OFD Sender: No OFD packet to send [23:12:07]accept exits with 9 [23:12:07]New connection [23:12:07]New thread 3067485540 created [23:12:07]Thread 3067342180 joined [23:12:07]Waiting for new connection... [23:12:07] Sock 9.Parse request [23:12:07]Sock 9.Check first char [23:12:07]Sock 9.First char is OK [23:12:07]request: POST /json_proto HTTP/1.0 [23:12:07]Method: POST [23:12:07]URL: /json_proto [23:12:07]Method is POST - this is cgi request [23:12:07]url: /json_proto [23:12:07]query_string will be loaded in cgi processing [23:12:07]execute_cgi json_proto POST (null) [23:12:07]execute_cgi path=json_proto method=POST [23:12:07]POST find Content-Length [23:12:07]Host: 172.17.58.3:8080 [23:12:07]Content-Length: 635 [23:12:07]Content-Type: application/json [23:12:07] [23:12:07]POST finish read [23:12:07]Found Content-Length = 635 [23:12:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 2.710, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:12:07]execute_script... [23:12:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 2.710, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:12:07]POST & json_proto [23:12:07]process_json_proto [23:12:07]json parsed OK: [23:12:07]protocol is kg_v1.0 [23:12:07]action value=close_receipt [23:12:07]process_action close_receipt [23:12:07]cmd_close_receipt [23:12:07]MH_GetDate [23:12:07]Write to MH i2c: F0 00 00 1D 00 0C [23:12:07]Write i2c OK [23:12:07]MH_I2C_Read... [23:12:07]Read from MH i2c: F0 [23:12:07]MH_I2C_Read... [23:12:07]Read from MH i2c: F0 09 00 [23:12:07]MH_I2C_Read... [23:12:07]Read from MH i2c: F0 09 00 1D 00 00 48 E8 BB 66 DC E4 6D 64 F7 [23:12:07]GetLastDocTimeStamp 1723590290 [23:12:07]current date 1723590728 [23:12:07]FM_GetShiftState [23:12:07]SAM_PROTO_GetShiftState [23:12:07]wFMCommunicate request_size=4 [23:12:07]MH_SAM_APDU [23:12:07]CAPDU: 80 13 01 00 [23:12:07]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [23:12:07]Write i2c OK [23:12:07]MH_I2C_Read... [23:12:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:12:07]Read from MH i2c: E2 [23:12:07]MH_I2C_Read... [23:12:07]Read from MH i2c: E2 0E 00 [23:12:07]MH_I2C_Read... [23:12:07]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 B9 [23:12:07]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [23:12:07]wFMCommunicate OK [23:12:07]SAM_PROTO_GetShiftState done [23:12:07]FM_GetShiftState done [23:12:07]opened in 1723506770 [23:12:07]opened+sec_in_day 1723593170 [23:12:07]quantity*price = 19999 [23:12:07]sum+1 = 20001 [23:12:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 127 13.08.2024 23:12 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103216 ФПД: 177026603360202 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T231208&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103216&fm=177026603360202&tin=02508201610067®Number=0000000000092718&sum=20000 [23:12:08]StoreToDocumentArchive [23:12:08]shift 464 fd 103216 [23:12:08]save to /storage/0464/doc_00103216 [23:12:08]save last doc name /storage/0464/doc_00103216 to /storage/kkm_last_doc_name [23:12:08]save OK [23:12:08]Clear old archive folders... [23:12:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:12:08]tlvbuf is 011C4790 [23:12:08]SAM_PROTO_ClearQueue [23:12:08]wFMCommunicate request_size=4 [23:12:08]MH_SAM_APDU [23:12:08]CAPDU: 80 09 00 00 [23:12:08]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [23:12:08]Write i2c OK [23:12:08]MH_I2C_Read... [23:12:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:12:08]Read from MH i2c: E2 [23:12:08]MH_I2C_Read... [23:12:08]Read from MH i2c: E2 03 00 [23:12:08]MH_I2C_Read... [23:12:08]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [23:12:08]RAPDU: 90 00 [23:12:08]wFMCommunicate OK [23:12:08]SAM_PROTO_ClearQueue done [23:12:08]KKMCreateOFDPacket [23:12:08]OFDProtocolAddRootSTLVToBuf [23:12:08]FM_MakeSignedData [23:12:08]FM_MakeSignedData [23:12:08]SAM_PROTO_SignData [23:12:08]wFMCommunicate request_size=4 [23:12:08]MH_SAM_APDU [23:12:08]CAPDU: 80 0D 01 02 [23:12:08]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [23:12:08]Write i2c OK [23:12:08]MH_I2C_Read... [23:12:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:12:09]Read from MH i2c: E2 [23:12:09]MH_I2C_Read... [23:12:09]Read from MH i2c: E2 03 00 [23:12:09]MH_I2C_Read... [23:12:09]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [23:12:09]RAPDU: 90 00 [23:12:09]wFMCommunicate OK [23:12:09]wFMCommunicate request_size=255 [23:12:09]MH_SAM_APDU [23:12:09]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 96 0A 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 48 E8 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 30 93 01 00 35 04 06 00 A1 01 37 CF [23:12:09]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 96 0A 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 48 E8 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 30 93 01 00 35 04 06 00 A1 01 37 CF 00 00 F1 [23:12:09]Write i2c OK [23:12:09]MH_I2C_Read... [23:12:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:12:09]Read from MH i2c: E2 [23:12:09]MH_I2C_Read... [23:12:09]Read from MH i2c: E2 03 00 [23:12:09]MH_I2C_Read... [23:12:09]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [23:12:09]RAPDU: 90 00 [23:12:09]wFMCommunicate OK [23:12:09]wFMCommunicate request_size=7 [23:12:09]MH_SAM_APDU [23:12:09]CAPDU: 80 0D 02 02 02 1F CA [23:12:09]Write to MH i2c: E2 0A 00 2E 00 80 0D 02 02 02 00 1F CA 00 00 95 [23:12:09]Write i2c OK [23:12:09]MH_I2C_Read... [23:12:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:12:09]Read from MH i2c: E2 [23:12:09]MH_I2C_Read... [23:12:09]Read from MH i2c: E2 03 00 [23:12:09]MH_I2C_Read... [23:12:09]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [23:12:09]RAPDU: 90 00 [23:12:09]wFMCommunicate OK [23:12:09]wFMCommunicate request_size=4 [23:12:09]MH_SAM_APDU [23:12:09]CAPDU: 80 0D 03 02 [23:12:09]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [23:12:09]Write i2c OK [23:12:09]MH_I2C_Read... [23:12:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:12:09]Read from MH i2c: E2 [23:12:09]MH_I2C_Read... [23:12:09]Read from MH i2c: E2 0B 00 [23:12:09]MH_I2C_Read... [23:12:09]Read from MH i2c: E2 0B 00 2F 00 00 66 A8 B3 7E 33 33 F2 7A 90 00 BC [23:12:09]RAPDU: 66 A8 B3 7E 33 33 F2 7A 90 00 [23:12:09]wFMCommunicate OK [23:12:09]SAM_PROTO_SignData done [23:12:09]FM_MakeSignedData done [23:12:09]CreateOFDProtocolMessage [23:12:09]wFMCommunicate request_size=4 [23:12:09]MH_SAM_APDU [23:12:09]CAPDU: 80 11 00 00 [23:12:09]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [23:12:09]Write i2c OK [23:12:09]MH_I2C_Read... [23:12:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:12:09]Read from MH i2c: E2 [23:12:09]MH_I2C_Read... [23:12:09]Read from MH i2c: E2 17 00 [23:12:09]MH_I2C_Read... [23:12:09]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 FE [23:12:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [23:12:09]wFMCommunicate OK [23:12:09]CreateOFDProtocolMessage done [23:12:09]OFDSenderStorePacket 103216 [23:12:09]StoreOFDPacket docnum=103216 [23:12:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 D7 26 04 01 E7 CE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 96 0A 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 48 E8 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 30 93 01 00 35 04 06 00 A1 01 37 CF 1F CA 66 A8 B3 7E 33 33 F2 7A [23:12:09]CheckFolder [23:12:09]dirname=/storage/ofd_packets [23:12:09]CheckFolder done [23:12:09]ProducePacketName [23:12:09]name=ofd_packets/00103216 [23:12:09]NVStorageSaveData ofd_packets/00103216 [23:12:09]File name is /storage/ofd_packets/00103216 [23:12:09]Write 298 bytes [23:12:09]NVStorageSaveData done [23:12:09]OFDSenderStorePacket done [23:12:09]KKMCreateOFDPacket done [23:12:09]NVStorageSaveData kkm_last_timestamp [23:12:09]File name is /storage/kkm_last_timestamp [23:12:09]Write 4 bytes [23:12:09]NVStorageSaveData done [23:12:09]ExternCall_PrintAddStr [23:12:09]wPrintStart [23:12:09]Write to MH i2c: 01 00 00 31 00 31 [23:12:09]Write i2c OK [23:12:09]MH_I2C_Read... [23:12:09]Read from MH i2c: 01 [23:12:09]MH_I2C_Read... [23:12:09]Read from MH i2c: 01 07 00 [23:12:09]MH_I2C_Read... [23:12:09]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [23:12:09]RasterBufferAndPrint [23:12:09]line Счет N : (1)160844 [23:12:09]line ИНН: 02508201610067 [23:12:09]line Контрольно-Кассовый Чек [23:12:09]line ПРОДАЖА [23:12:09]line ТРК (МРК, ГНК) : 1 [23:12:09]line Товар: 2710194210 [23:12:09]line ДТ-К-5 [23:12:09]line 2.710 * 73.80 [23:12:09]line = 200.00 [23:12:09]line НДС 12% НСП 1% [23:12:09]line > о реализуемом товаре [23:12:09]line ИТОГО: 200.00 [23:12:09]line НСП 1% : 1.77 [23:12:09]line НДС 12% : 21.24 [23:12:09]line Наличными: 200.00 [23:12:09]line Безнал.: 0.00 [23:12:09]line Место: АЗС № 38 "Партнер Нефть" [23:12:09]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [23:12:09]line СНО: Общий режим [23:12:09]line Чек 127 13.08.2024 23:12 [23:12:09]line Смена: 464 ФФД: 1.0 [23:12:09]line ЗНМ: 0300000126 [23:12:09]line РНМ: 0000000000092718 [23:12:09]line Версия ККМ: 001 [23:12:09]line ФМ: 0000000000875058 [23:12:09]line ФД: 103216 [23:12:09]line ФПД: 177026603360202 [23:12:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T231208&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103216&fm=177026603360202&tin=02508201610067®Number=0000000000092718&sum=20000 [23:12:09]written 0, free lines is 4095 [23:12:09]OFD Sender: Processing packet 103216 [packets to send 69, broken 68] [23:12:09]ProducePacketName [23:12:09]name=ofd_packets/00103216 [23:12:09]OFD Sender: To server: pG, [23:12:09]CommunicateWithHost lk.salyk.kg:30040 [23:12:09]ConnectInit lk.salyk.kg [23:12:09]Connected sock=10 [23:12:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 D7 26 04 01 E7 CE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 96 0A 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 48 E8 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 30 93 01 00 35 04 06 00 A1 01 37 CF 1F CA 66 A8 B3 7E 33 33 F2 7A [23:12:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 90 31 47 00 4B 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 35 30 35 38 10 04 04 00 30 93 01 00 F4 03 04 00 B9 8E BB 66 B6 04 01 00 00 0E F8 E4 C8 51 9B 0B CC [23:12:09]CommunicateWithHost err = 0 [23:12:09]CheckOFDResponse [23:12:09]1017 (14) - 77093643461234 [23:12:09]1041 (16) - 0000000000875058 [23:12:09]1040 (4) - 103216 [23:12:09]1012 (4) - 13.08.2024 16:50 [23:12:09]1206 (1) - 0 [23:12:09]OFD Sender: Remove packet 103216 [23:12:09]ProducePacketName [23:12:09]name=ofd_packets/00103216 [23:12:09]NVStorageDeleteData [23:12:09]Write to MH i2c: 01 00 00 59 00 59 [23:12:09]Write i2c OK [23:12:09]MH_I2C_Read... [23:12:09]Read from MH i2c: 01 [23:12:09]MH_I2C_Read... [23:12:09]Read from MH i2c: 01 07 00 [23:12:09]MH_I2C_Read... [23:12:09]Read from MH i2c: 01 07 00 59 00 00 00 00 00 00 0E 0D 7B [23:12:09]RasterBufferAndPrint [23:12:09]line [23:12:09]line [23:12:09]line [23:12:09]line [23:12:09]line [23:12:09]written 0, free lines is 3348 [23:12:09]MH_Cut [23:12:09]Write to MH i2c: D1 01 00 60 00 01 32 [23:12:09]Write i2c OK [23:12:09]MH_I2C_Read... [23:12:09]Read from MH i2c: D1 [23:12:09]MH_I2C_Read... [23:12:09]Read from MH i2c: D1 01 00 [23:12:09]MH_I2C_Read... [23:12:09]Read from MH i2c: D1 01 00 60 00 00 31 [23:12:09]Write to MH i2c: 01 00 00 61 00 61 [23:12:09]Write i2c OK [23:12:09]MH_I2C_Read... [23:12:10]OFD Sender: No OFD packet to send [23:12:10]*** Cut start [23:12:10]*** Purtial cut [23:12:10]*** Stage 1: CUTSNS_PIN = 1 [23:12:10]Read from MH i2c: 01 [23:12:10]MH_I2C_Read... [23:12:10]*** Stop cut motor [23:12:10]*** Cut end [23:12:10]Read from MH i2c: 01 07 00 [23:12:10]MH_I2C_Read... [23:12:10]Read from MH i2c: 01 07 00 61 00 00 00 00 00 00 FF 0F 76 [23:12:10]process_action close_receipt done [23:12:10]requested_data is exist [23:12:10]produce_requested_data [23:12:10]requested_item fm.sn is exist - process it [23:12:10]wFMCommunicate request_size=4 [23:12:10]MH_SAM_APDU [23:12:10]CAPDU: 80 11 00 00 [23:12:10]Write to MH i2c: E2 08 00 62 00 80 11 00 00 00 00 00 00 DC [23:12:10]Write i2c OK [23:12:10]MH_I2C_Read... [23:12:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:12:10]Read from MH i2c: E2 [23:12:10]MH_I2C_Read... [23:12:10]Read from MH i2c: E2 17 00 [23:12:10]MH_I2C_Read... [23:12:10]Read from MH i2c: E2 17 00 62 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 30 [23:12:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [23:12:10]wFMCommunicate OK [23:12:10]requested_item fd.num is exist - process it [23:12:10]SAM_PROTO_GetFieldsCounters [23:12:10]wFMCommunicate request_size=4 [23:12:10]MH_SAM_APDU [23:12:10]CAPDU: 80 13 00 00 [23:12:10]Write to MH i2c: E2 08 00 63 00 80 13 00 00 00 00 00 00 DF [23:12:10]Write i2c OK [23:12:10]MH_I2C_Read... [23:12:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:12:11]Read from MH i2c: E2 [23:12:11]MH_I2C_Read... [23:12:11]Read from MH i2c: E2 62 00 [23:12:11]MH_I2C_Read... [23:12:11]Read from MH i2c: E2 62 00 63 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 30 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [23:12:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 30 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:12:11]wFMCommunicate OK [23:12:11]SAM_PROTO_GetFieldsCounters done [23:12:11]requested_item shift.num is exist - process it [23:12:11]requested_item shift.opened is exist - process it [23:12:11]req_shift_opened [23:12:11]FM_GetShiftState [23:12:11]SAM_PROTO_GetShiftState [23:12:11]wFMCommunicate request_size=4 [23:12:11]MH_SAM_APDU [23:12:11]CAPDU: 80 13 01 00 [23:12:11]Write to MH i2c: E2 08 00 64 00 80 13 01 00 00 00 00 00 E1 [23:12:11]Write i2c OK [23:12:11]MH_I2C_Read... [23:12:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:12:11]Read from MH i2c: E2 [23:12:11]MH_I2C_Read... [23:12:11]Read from MH i2c: E2 0E 00 [23:12:11]MH_I2C_Read... [23:12:11]Read from MH i2c: E2 0E 00 64 00 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 FF [23:12:11]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [23:12:11]wFMCommunicate OK [23:12:11]SAM_PROTO_GetShiftState done [23:12:11]FM_GetShiftState done [23:12:11]req_shift_opened done [23:12:11]requested_item shift.open_date is exist - process it [23:12:11]req_shift_open_date [23:12:11]req_shift_open_date done [23:12:11]produce_requested_data done [23:12:11]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103216,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [23:12:11]process_action_free close_receipt [23:12:11]json_value_free [23:12:11]json_value_free done [23:12:11]process_json_proto returns [23:12:11]Send response to host [23:12:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103216,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [23:12:11]free response buf [23:12:11]execute_script done [23:12:11]execute_script returns [23:12:11]free content buf [23:12:11]Sock 9.Close socket [23:12:11]Sock 9.Thread stoped [23:12:14]accept exits with 7 [23:12:14]New connection [23:12:14]New thread 3067342180 created [23:12:14]Thread 3067485540 joined [23:12:14]Waiting for new connection... [23:12:14] Sock 7.Parse request [23:12:14]Sock 7.Check first char [23:12:14]Sock 7.First char is OK [23:12:14]request: POST /json_proto HTTP/1.0 [23:12:14]Method: POST [23:12:14]URL: /json_proto [23:12:14]Method is POST - this is cgi request [23:12:14]url: /json_proto [23:12:14]query_string will be loaded in cgi processing [23:12:14]execute_cgi json_proto POST (null) [23:12:14]execute_cgi path=json_proto method=POST [23:12:14]POST find Content-Length [23:12:14]Host: 172.17.58.3:8080 [23:12:14]Content-Length: 692 [23:12:14]Content-Type: application/json [23:12:14] [23:12:14]POST finish read [23:12:14]Found Content-Length = 692 [23:12:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 103216, "base_FM": "0000000000875058", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 2.710, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:12:14]execute_script... [23:12:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 103216, "base_FM": "0000000000875058", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 2.710, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:12:14]POST & json_proto [23:12:14]process_json_proto [23:12:14]json parsed OK: [23:12:14]protocol is kg_v1.0 [23:12:14]action value=close_receipt [23:12:14]process_action close_receipt [23:12:14]cmd_close_receipt [23:12:14]MH_GetDate [23:12:14]Write to MH i2c: F0 00 00 65 00 54 [23:12:14]Write i2c OK [23:12:14]MH_I2C_Read... [23:12:14]Read from MH i2c: F0 [23:12:14]MH_I2C_Read... [23:12:14]Read from MH i2c: F0 09 00 [23:12:14]MH_I2C_Read... [23:12:14]Read from MH i2c: F0 09 00 65 00 00 4F E8 BB 66 DC E4 6D 64 46 [23:12:14]GetLastDocTimeStamp 1723590728 [23:12:14]current date 1723590735 [23:12:14]FM_GetShiftState [23:12:14]SAM_PROTO_GetShiftState [23:12:14]wFMCommunicate request_size=4 [23:12:14]MH_SAM_APDU [23:12:14]CAPDU: 80 13 01 00 [23:12:14]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [23:12:14]Write i2c OK [23:12:14]MH_I2C_Read... [23:12:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:12:14]Read from MH i2c: E2 [23:12:14]MH_I2C_Read... [23:12:14]Read from MH i2c: E2 0E 00 [23:12:14]MH_I2C_Read... [23:12:14]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 01 [23:12:14]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [23:12:14]wFMCommunicate OK [23:12:14]SAM_PROTO_GetShiftState done [23:12:14]FM_GetShiftState done [23:12:14]opened in 1723506770 [23:12:14]opened+sec_in_day 1723593170 [23:12:14]quantity*price = 19999 [23:12:14]sum+1 = 20001 [23:12:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 128 13.08.2024 23:12 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФД осн.: 103216 ФМ осн.: 0000000000875058 ФМ: 0000000000875058 ФД: 103217 ФПД: 262409254753207 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T231215&type=2&operation_type=1&fn_number=0000000000875058&fd_number=103217&fm=262409254753207&tin=02508201610067®Number=0000000000092718&sum=20000 [23:12:15]StoreToDocumentArchive [23:12:15]shift 464 fd 103217 [23:12:15]save to /storage/0464/doc_00103217 [23:12:15]save last doc name /storage/0464/doc_00103217 to /storage/kkm_last_doc_name [23:12:15]save OK [23:12:15]Clear old archive folders... [23:12:15]ProcessDocumentItem done err = 0, tmpTLVsize=276 [23:12:15]tlvbuf is 011CDC20 [23:12:15]SAM_PROTO_ClearQueue [23:12:15]wFMCommunicate request_size=4 [23:12:15]MH_SAM_APDU [23:12:15]CAPDU: 80 09 00 00 [23:12:15]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [23:12:15]Write i2c OK [23:12:15]MH_I2C_Read... [23:12:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:12:15]Read from MH i2c: E2 [23:12:15]MH_I2C_Read... [23:12:15]Read from MH i2c: E2 03 00 [23:12:15]MH_I2C_Read... [23:12:15]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [23:12:15]RAPDU: 90 00 [23:12:15]wFMCommunicate OK [23:12:15]SAM_PROTO_ClearQueue done [23:12:15]KKMCreateOFDPacket [23:12:15]OFDProtocolAddRootSTLVToBuf [23:12:15]FM_MakeSignedData [23:12:15]FM_MakeSignedData [23:12:15]SAM_PROTO_SignData [23:12:15]wFMCommunicate request_size=4 [23:12:15]MH_SAM_APDU [23:12:15]CAPDU: 80 0D 01 02 [23:12:15]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [23:12:15]Write i2c OK [23:12:15]MH_I2C_Read... [23:12:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:12:15]Read from MH i2c: E2 [23:12:15]MH_I2C_Read... [23:12:15]Read from MH i2c: E2 03 00 [23:12:15]MH_I2C_Read... [23:12:15]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [23:12:15]RAPDU: 90 00 [23:12:15]wFMCommunicate OK [23:12:15]wFMCommunicate request_size=255 [23:12:15]MH_SAM_APDU [23:12:15]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 96 0A 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 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 4F E8 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 27 04 04 00 30 93 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 11 04 10 00 30 30 30 30 [23:12:15]Write to MH i2c: E2 02 01 77 00 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 96 0A 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 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 4F E8 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 27 04 04 00 30 93 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 11 04 10 00 30 30 30 30 00 00 8D [23:12:15]Write i2c OK [23:12:15]MH_I2C_Read... [23:12:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:12:16]Read from MH i2c: E2 [23:12:16]MH_I2C_Read... [23:12:16]Read from MH i2c: E2 03 00 [23:12:16]MH_I2C_Read... [23:12:16]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [23:12:16]RAPDU: 90 00 [23:12:16]wFMCommunicate OK [23:12:16]wFMCommunicate request_size=35 [23:12:16]MH_SAM_APDU [23:12:16]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 31 93 01 00 35 04 06 00 EE A8 EA 6A 53 B7 [23:12:16]Write to MH i2c: E2 26 00 78 00 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 31 93 01 00 35 04 06 00 EE A8 EA 6A 53 B7 00 00 9F [23:12:16]Write i2c OK [23:12:16]MH_I2C_Read... [23:12:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:12:16]Read from MH i2c: E2 [23:12:16]MH_I2C_Read... [23:12:16]Read from MH i2c: E2 03 00 [23:12:16]MH_I2C_Read... [23:12:16]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [23:12:16]RAPDU: 90 00 [23:12:16]wFMCommunicate OK [23:12:16]wFMCommunicate request_size=4 [23:12:16]MH_SAM_APDU [23:12:16]CAPDU: 80 0D 03 02 [23:12:16]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [23:12:16]Write i2c OK [23:12:16]MH_I2C_Read... [23:12:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:12:16]Read from MH i2c: E2 [23:12:16]MH_I2C_Read... [23:12:16]Read from MH i2c: E2 0B 00 [23:12:16]MH_I2C_Read... [23:12:16]Read from MH i2c: E2 0B 00 79 00 00 DD F2 26 6B A9 41 F2 5A 90 00 8B [23:12:16]RAPDU: DD F2 26 6B A9 41 F2 5A 90 00 [23:12:16]wFMCommunicate OK [23:12:16]SAM_PROTO_SignData done [23:12:16]FM_MakeSignedData done [23:12:16]CreateOFDProtocolMessage [23:12:16]wFMCommunicate request_size=4 [23:12:16]MH_SAM_APDU [23:12:16]CAPDU: 80 11 00 00 [23:12:16]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [23:12:16]Write i2c OK [23:12:16]MH_I2C_Read... [23:12:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:12:16]Read from MH i2c: E2 [23:12:16]MH_I2C_Read... [23:12:16]Read from MH i2c: E2 17 00 [23:12:16]MH_I2C_Read... [23:12:16]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 48 [23:12:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [23:12:16]wFMCommunicate OK [23:12:16]CreateOFDProtocolMessage done [23:12:16]OFDSenderStorePacket 103217 [23:12:16]StoreOFDPacket docnum=103217 [23:12:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 28 01 00 00 AA F8 20 01 AE 7B 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 96 0A 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 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 4F E8 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 27 04 04 00 30 93 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 31 93 01 00 35 04 06 00 EE A8 EA 6A 53 B7 DD F2 26 6B A9 41 F2 5A [23:12:16]CheckFolder [23:12:16]dirname=/storage/ofd_packets [23:12:16]CheckFolder done [23:12:16]ProducePacketName [23:12:16]name=ofd_packets/00103217 [23:12:16]NVStorageSaveData ofd_packets/00103217 [23:12:16]File name is /storage/ofd_packets/00103217 [23:12:16]Write 326 bytes [23:12:16]NVStorageSaveData done [23:12:16]OFDSenderStorePacket done [23:12:16]KKMCreateOFDPacket done [23:12:16]NVStorageSaveData kkm_last_timestamp [23:12:16]File name is /storage/kkm_last_timestamp [23:12:16]Write 4 bytes [23:12:16]NVStorageSaveData done [23:12:16]ExternCall_PrintAddStr [23:12:16]wPrintStart [23:12:16]Write to MH i2c: 01 00 00 7B 00 7B [23:12:16]Write i2c OK [23:12:16]MH_I2C_Read... [23:12:16]Read from MH i2c: 01 [23:12:16]MH_I2C_Read... [23:12:16]Read from MH i2c: 01 07 00 [23:12:16]MH_I2C_Read... [23:12:16]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [23:12:16]RasterBufferAndPrint [23:12:16]line Счет N : (1)160844 [23:12:16]line ИНН: 02508201610067 [23:12:16]line Контрольно-Кассовый Чек [23:12:16]line ВОЗВРАТ ПРОДАЖИ [23:12:16]line ТРК (МРК, ГНК) : 1 [23:12:16]line Товар: 2710194210 [23:12:16]line ДТ-К-5 [23:12:16]line 2.710 * 73.80 [23:12:16]line = 200.00 [23:12:16]line НДС 12% НСП 1% [23:12:16]line > о реализуемом товаре [23:12:16]line ИТОГО: 200.00 [23:12:16]line НСП 1% : 1.77 [23:12:16]line НДС 12% : 21.24 [23:12:16]line Наличными: 200.00 [23:12:16]line Безнал.: 0.00 [23:12:16]line Место: АЗС № 38 "Партнер Нефть" [23:12:16]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [23:12:16]line СНО: Общий режим [23:12:16]line Чек 128 13.08.2024 23:12 [23:12:16]line Смена: 464 ФФД: 1.0 [23:12:16]line ЗНМ: 0300000126 [23:12:16]line РНМ: 0000000000092718 [23:12:16]line Версия ККМ: 001 [23:12:16]line ФД осн.: 103216 [23:12:16]line ФМ осн.: 0000000000875058 [23:12:16]line ФМ: 0000000000875058 [23:12:16]line ФД: 103217 [23:12:16]line ФПД: 262409254753207 [23:12:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T231215&type=2&operation_type=1&fn_number=0000000000875058&fd_number=103217&fm=262409254753207&tin=02508201610067®Number=0000000000092718&sum=20000 [23:12:16]written 0, free lines is 4095 [23:12:16]OFD Sender: Processing packet 103217 [packets to send 69, broken 68] [23:12:16]ProducePacketName [23:12:16]name=ofd_packets/00103217 [23:12:16]OFD Sender: To server: pG, [23:12:16]CommunicateWithHost lk.salyk.kg:30040 [23:12:16]ConnectInit lk.salyk.kg [23:12:16]Connected sock=9 [23:12:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 28 01 00 00 AA F8 20 01 AE 7B 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 96 0A 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 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 4F E8 BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 27 04 04 00 30 93 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 31 93 01 00 35 04 06 00 EE A8 EA 6A 53 B7 DD F2 26 6B A9 41 F2 5A [23:12:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 66 FB 47 00 23 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 31 93 01 00 F4 03 04 00 C0 8E BB 66 B6 04 01 00 00 DC A9 49 5C CA 52 0D 92 [23:12:16]CommunicateWithHost err = 0 [23:12:16]CheckOFDResponse [23:12:16]1017 (14) - 77093643461234 [23:12:16]1041 (16) - 0000000000875058 [23:12:16]1040 (4) - 103217 [23:12:16]1012 (4) - 13.08.2024 16:50 [23:12:16]1206 (1) - 0 [23:12:16]OFD Sender: Remove packet 103217 [23:12:16]ProducePacketName [23:12:16]name=ofd_packets/00103217 [23:12:16]NVStorageDeleteData [23:12:16]Write to MH i2c: 01 00 00 A5 00 A5 [23:12:16]Write i2c OK [23:12:16]MH_I2C_Read... [23:12:16]Read from MH i2c: 01 [23:12:16]MH_I2C_Read... [23:12:16]Read from MH i2c: 01 07 00 [23:12:16]MH_I2C_Read... [23:12:16]Read from MH i2c: 01 07 00 A5 00 00 00 00 00 00 F8 0C B0 [23:12:16]RasterBufferAndPrint [23:12:16]line [23:12:16]line [23:12:16]line [23:12:16]line [23:12:16]line [23:12:16]written 0, free lines is 3332 [23:12:16]MH_Cut [23:12:16]Write to MH i2c: D1 01 00 AC 00 01 7E [23:12:16]Write i2c OK [23:12:16]MH_I2C_Read... [23:12:16]Read from MH i2c: D1 [23:12:16]MH_I2C_Read... [23:12:16]Read from MH i2c: D1 01 00 [23:12:16]MH_I2C_Read... [23:12:16]Read from MH i2c: D1 01 00 AC 00 00 7D [23:12:16]Write to MH i2c: 01 00 00 AD 00 AD [23:12:16]Write i2c OK [23:12:16]MH_I2C_Read... [23:12:17]OFD Sender: No OFD packet to send [23:12:17]*** Cut start [23:12:17]*** Purtial cut [23:12:17]*** CUTSNS_PIN = 0 [23:12:17]*** Stage 1: CUTSNS_PIN = 1 [23:12:19]Read from MH i2c: 01 [23:12:19]MH_I2C_Read... [23:12:19]*** Stop cut motor [23:12:19]*** Cut end [23:12:19]Read from MH i2c: 01 07 00 [23:12:19]MH_I2C_Read... [23:12:19]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [23:12:19]process_action close_receipt done [23:12:19]requested_data is exist [23:12:19]produce_requested_data [23:12:19]requested_item fm.sn is exist - process it [23:12:19]wFMCommunicate request_size=4 [23:12:19]MH_SAM_APDU [23:12:19]CAPDU: 80 11 00 00 [23:12:19]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [23:12:19]Write i2c OK [23:12:19]MH_I2C_Read... [23:12:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:12:19]Read from MH i2c: E2 [23:12:19]MH_I2C_Read... [23:12:19]Read from MH i2c: E2 17 00 [23:12:19]MH_I2C_Read... [23:12:19]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 7C [23:12:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [23:12:19]wFMCommunicate OK [23:12:19]requested_item fd.num is exist - process it [23:12:19]SAM_PROTO_GetFieldsCounters [23:12:19]wFMCommunicate request_size=4 [23:12:19]MH_SAM_APDU [23:12:19]CAPDU: 80 13 00 00 [23:12:19]Write to MH i2c: E2 08 00 AF 00 80 13 00 00 00 00 00 00 2B [23:12:19]Write i2c OK [23:12:19]MH_I2C_Read... [23:12:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:12:19]Read from MH i2c: E2 [23:12:19]MH_I2C_Read... [23:12:19]Read from MH i2c: E2 62 00 [23:12:19]MH_I2C_Read... [23:12:19]Read from MH i2c: E2 62 00 AF 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 31 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [23:12:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 31 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:12:19]wFMCommunicate OK [23:12:19]SAM_PROTO_GetFieldsCounters done [23:12:19]requested_item shift.num is exist - process it [23:12:19]requested_item shift.opened is exist - process it [23:12:19]req_shift_opened [23:12:19]FM_GetShiftState [23:12:19]SAM_PROTO_GetShiftState [23:12:19]wFMCommunicate request_size=4 [23:12:19]MH_SAM_APDU [23:12:19]CAPDU: 80 13 01 00 [23:12:19]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [23:12:19]Write i2c OK [23:12:19]MH_I2C_Read... [23:12:19]Read from MH i2c: E2 [23:12:19]MH_I2C_Read... [23:12:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:12:19]Read from MH i2c: E2 0E 00 [23:12:19]MH_I2C_Read... [23:12:19]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 4B [23:12:19]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [23:12:19]wFMCommunicate OK [23:12:19]SAM_PROTO_GetShiftState done [23:12:19]FM_GetShiftState done [23:12:19]req_shift_opened done [23:12:19]requested_item shift.open_date is exist - process it [23:12:19]req_shift_open_date [23:12:19]req_shift_open_date done [23:12:19]produce_requested_data done [23:12:19]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103217,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [23:12:19]process_action_free close_receipt [23:12:19]json_value_free [23:12:19]json_value_free done [23:12:19]process_json_proto returns [23:12:19]Send response to host [23:12:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103217,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [23:12:19]free response buf [23:12:19]execute_script done [23:12:19]execute_script returns [23:12:19]free content buf [23:12:19]Sock 7.Close socket [23:12:19]Sock 7.Thread stoped [23:12:22]OFD Sender: No OFD packet to send [23:12:27]OFD Sender: No OFD packet to send [23:12:32]OFD Sender: No OFD packet to send [23:12:37]OFD Sender: No OFD packet to send [23:12:42]OFD Sender: No OFD packet to send [23:12:47]OFD Sender: No OFD packet to send [23:12:52]OFD Sender: No OFD packet to send [23:12:57]OFD Sender: No OFD packet to send [23:13:02]OFD Sender: No OFD packet to send [23:13:07]OFD Sender: No OFD packet to send [23:13:12]OFD Sender: No OFD packet to send [23:13:17]OFD Sender: No OFD packet to send [23:13:22]OFD Sender: No OFD packet to send [23:13:27]OFD Sender: No OFD packet to send [23:13:32]OFD Sender: No OFD packet to send [23:13:37]OFD Sender: No OFD packet to send [23:13:42]OFD Sender: No OFD packet to send [23:13:47]OFD Sender: No OFD packet to send [23:13:52]OFD Sender: No OFD packet to send [23:13:57]OFD Sender: No OFD packet to send [23:14:02]OFD Sender: No OFD packet to send [23:14:07]OFD Sender: No OFD packet to send [23:14:12]OFD Sender: No OFD packet to send [23:14:17]OFD Sender: No OFD packet to send [23:14:22]OFD Sender: No OFD packet to send [23:14:27]OFD Sender: No OFD packet to send [23:14:32]OFD Sender: No OFD packet to send [23:14:37]OFD Sender: No OFD packet to send [23:14:42]OFD Sender: No OFD packet to send [23:14:47]OFD Sender: No OFD packet to send [23:14:52]OFD Sender: No OFD packet to send [23:14:57]OFD Sender: No OFD packet to send [23:15:02]OFD Sender: No OFD packet to send [23:15:07]OFD Sender: No OFD packet to send [23:15:12]OFD Sender: No OFD packet to send [23:15:17]OFD Sender: No OFD packet to send [23:15:22]OFD Sender: No OFD packet to send [23:15:27]OFD Sender: No OFD packet to send [23:15:32]OFD Sender: No OFD packet to send [23:15:37]OFD Sender: No OFD packet to send [23:15:42]OFD Sender: No OFD packet to send [23:15:47]OFD Sender: No OFD packet to send [23:15:52]OFD Sender: No OFD packet to send [23:15:57]OFD Sender: No OFD packet to send [23:16:02]OFD Sender: No OFD packet to send [23:16:07]OFD Sender: No OFD packet to send [23:16:12]OFD Sender: No OFD packet to send [23:16:17]OFD Sender: No OFD packet to send [23:16:22]OFD Sender: No OFD packet to send [23:16:27]OFD Sender: No OFD packet to send [23:16:32]OFD Sender: No OFD packet to send [23:16:37]OFD Sender: No OFD packet to send [23:16:42]OFD Sender: No OFD packet to send [23:16:47]OFD Sender: No OFD packet to send [23:16:52]OFD Sender: No OFD packet to send [23:16:57]OFD Sender: No OFD packet to send [23:17:02]OFD Sender: No OFD packet to send [23:17:07]OFD Sender: No OFD packet to send [23:17:12]OFD Sender: No OFD packet to send [23:17:17]OFD Sender: No OFD packet to send [23:17:22]OFD Sender: No OFD packet to send [23:17:27]OFD Sender: No OFD packet to send [23:17:32]OFD Sender: No OFD packet to send [23:17:37]OFD Sender: No OFD packet to send [23:17:42]OFD Sender: No OFD packet to send [23:17:47]OFD Sender: No OFD packet to send [23:17:52]OFD Sender: No OFD packet to send [23:17:57]OFD Sender: No OFD packet to send [23:18:02]OFD Sender: No OFD packet to send [23:18:07]OFD Sender: No OFD packet to send [23:18:12]OFD Sender: No OFD packet to send [23:18:17]OFD Sender: No OFD packet to send [23:18:22]OFD Sender: No OFD packet to send [23:18:27]OFD Sender: No OFD packet to send [23:18:32]OFD Sender: No OFD packet to send [23:18:37]OFD Sender: No OFD packet to send [23:18:42]OFD Sender: No OFD packet to send [23:18:47]OFD Sender: No OFD packet to send [23:18:52]OFD Sender: No OFD packet to send [23:18:57]OFD Sender: No OFD packet to send [23:19:02]OFD Sender: No OFD packet to send [23:19:07]OFD Sender: No OFD packet to send [23:19:12]OFD Sender: No OFD packet to send [23:19:17]OFD Sender: No OFD packet to send [23:19:22]OFD Sender: No OFD packet to send [23:19:27]OFD Sender: No OFD packet to send [23:19:32]OFD Sender: No OFD packet to send [23:19:37]OFD Sender: No OFD packet to send [23:19:42]OFD Sender: No OFD packet to send [23:19:47]OFD Sender: No OFD packet to send [23:19:52]OFD Sender: No OFD packet to send [23:19:57]OFD Sender: No OFD packet to send [23:20:02]OFD Sender: No OFD packet to send [23:20:07]OFD Sender: No OFD packet to send [23:20:12]OFD Sender: No OFD packet to send [23:20:17]OFD Sender: No OFD packet to send [23:20:22]OFD Sender: No OFD packet to send [23:20:27]OFD Sender: No OFD packet to send [23:20:32]OFD Sender: No OFD packet to send [23:20:37]OFD Sender: No OFD packet to send [23:20:42]OFD Sender: No OFD packet to send [23:20:47]OFD Sender: No OFD packet to send [23:20:52]OFD Sender: No OFD packet to send [23:20:57]OFD Sender: No OFD packet to send [23:21:02]OFD Sender: No OFD packet to send [23:21:07]OFD Sender: No OFD packet to send [23:21:12]OFD Sender: No OFD packet to send [23:21:17]OFD Sender: No OFD packet to send [23:21:22]OFD Sender: No OFD packet to send [23:21:27]OFD Sender: No OFD packet to send [23:21:32]OFD Sender: No OFD packet to send [23:21:37]OFD Sender: No OFD packet to send [23:21:42]OFD Sender: No OFD packet to send [23:21:47]OFD Sender: No OFD packet to send [23:21:52]OFD Sender: No OFD packet to send [23:21:57]OFD Sender: No OFD packet to send [23:22:02]OFD Sender: No OFD packet to send [23:22:07]OFD Sender: No OFD packet to send [23:22:12]OFD Sender: No OFD packet to send [23:22:17]OFD Sender: No OFD packet to send [23:22:22]OFD Sender: No OFD packet to send [23:22:27]OFD Sender: No OFD packet to send [23:22:32]OFD Sender: No OFD packet to send [23:22:37]OFD Sender: No OFD packet to send [23:22:42]OFD Sender: No OFD packet to send [23:22:47]OFD Sender: No OFD packet to send [23:22:52]OFD Sender: No OFD packet to send [23:22:57]OFD Sender: No OFD packet to send [23:23:02]OFD Sender: No OFD packet to send [23:23:07]OFD Sender: No OFD packet to send [23:23:12]OFD Sender: No OFD packet to send [23:23:17]OFD Sender: No OFD packet to send [23:23:22]OFD Sender: No OFD packet to send [23:23:27]OFD Sender: No OFD packet to send [23:23:32]OFD Sender: No OFD packet to send [23:23:37]OFD Sender: No OFD packet to send [23:23:42]OFD Sender: No OFD packet to send [23:23:47]OFD Sender: No OFD packet to send [23:23:52]OFD Sender: No OFD packet to send [23:23:57]OFD Sender: No OFD packet to send [23:24:02]OFD Sender: No OFD packet to send [23:24:07]OFD Sender: No OFD packet to send [23:24:12]OFD Sender: No OFD packet to send [23:24:17]OFD Sender: No OFD packet to send [23:24:22]OFD Sender: No OFD packet to send [23:24:27]OFD Sender: No OFD packet to send [23:24:32]OFD Sender: No OFD packet to send [23:24:37]OFD Sender: No OFD packet to send [23:24:42]OFD Sender: No OFD packet to send [23:24:47]OFD Sender: No OFD packet to send [23:24:52]OFD Sender: No OFD packet to send [23:24:57]OFD Sender: No OFD packet to send [23:25:02]OFD Sender: No OFD packet to send [23:25:07]OFD Sender: No OFD packet to send [23:25:12]OFD Sender: No OFD packet to send [23:25:17]OFD Sender: No OFD packet to send [23:25:22]OFD Sender: No OFD packet to send [23:25:27]OFD Sender: No OFD packet to send [23:25:32]OFD Sender: No OFD packet to send [23:25:37]OFD Sender: No OFD packet to send [23:25:42]OFD Sender: No OFD packet to send [23:25:47]OFD Sender: No OFD packet to send [23:25:52]OFD Sender: No OFD packet to send [23:25:57]OFD Sender: No OFD packet to send [23:26:02]OFD Sender: No OFD packet to send [23:26:07]OFD Sender: No OFD packet to send [23:26:12]OFD Sender: No OFD packet to send [23:26:17]OFD Sender: No OFD packet to send [23:26:22]OFD Sender: No OFD packet to send [23:26:27]OFD Sender: No OFD packet to send [23:26:33]OFD Sender: No OFD packet to send [23:26:38]OFD Sender: No OFD packet to send [23:26:43]OFD Sender: No OFD packet to send [23:26:48]OFD Sender: No OFD packet to send [23:26:53]OFD Sender: No OFD packet to send [23:26:58]OFD Sender: No OFD packet to send [23:27:03]OFD Sender: No OFD packet to send [23:27:08]OFD Sender: No OFD packet to send [23:27:13]OFD Sender: No OFD packet to send [23:27:18]OFD Sender: No OFD packet to send [23:27:23]OFD Sender: No OFD packet to send [23:27:28]OFD Sender: No OFD packet to send [23:27:33]OFD Sender: No OFD packet to send [23:27:38]OFD Sender: No OFD packet to send [23:27:43]OFD Sender: No OFD packet to send [23:27:48]OFD Sender: No OFD packet to send [23:27:53]OFD Sender: No OFD packet to send [23:27:58]OFD Sender: No OFD packet to send [23:28:03]OFD Sender: No OFD packet to send [23:28:08]OFD Sender: No OFD packet to send [23:28:13]OFD Sender: No OFD packet to send [23:28:18]OFD Sender: No OFD packet to send [23:28:23]OFD Sender: No OFD packet to send [23:28:28]OFD Sender: No OFD packet to send [23:28:33]OFD Sender: No OFD packet to send [23:28:38]OFD Sender: No OFD packet to send [23:28:43]OFD Sender: No OFD packet to send [23:28:48]OFD Sender: No OFD packet to send [23:28:53]OFD Sender: No OFD packet to send [23:28:58]OFD Sender: No OFD packet to send [23:29:03]OFD Sender: No OFD packet to send [23:29:08]OFD Sender: No OFD packet to send [23:29:13]OFD Sender: No OFD packet to send [23:29:18]OFD Sender: No OFD packet to send [23:29:23]OFD Sender: No OFD packet to send [23:29:28]OFD Sender: No OFD packet to send [23:29:32]accept exits with 10 [23:29:32]New connection [23:29:32]New thread 3067485540 created [23:29:32]Thread 3067342180 joined [23:29:32]Waiting for new connection... [23:29:32] Sock 10.Parse request [23:29:32]Sock 10.Check first char [23:29:32]Sock 10.First char is OK [23:29:32]request: POST /json_proto HTTP/1.0 [23:29:32]Method: POST [23:29:32]URL: /json_proto [23:29:32]Method is POST - this is cgi request [23:29:32]url: /json_proto [23:29:32]query_string will be loaded in cgi processing [23:29:32]execute_cgi json_proto POST (null) [23:29:32]execute_cgi path=json_proto method=POST [23:29:32]POST find Content-Length [23:29:32]Host: 172.17.58.3:8080 [23:29:32]Content-Length: 615 [23:29:32]Content-Type: application/json [23:29:32] [23:29:32]POST finish read [23:29:32]Found Content-Length = 615 [23:29:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)34513", "tax_sys" : 0, "items" : [ { "code": "48743273", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Marlboro Touch", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:29:32]execute_script... [23:29: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 : (3)34513", "tax_sys" : 0, "items" : [ { "code": "48743273", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Marlboro Touch", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:29:32]POST & json_proto [23:29:32]process_json_proto [23:29:32]json parsed OK: [23:29:32]protocol is kg_v1.0 [23:29:32]action value=close_receipt [23:29:32]process_action close_receipt [23:29:32]cmd_close_receipt [23:29:32]MH_GetDate [23:29:32]Write to MH i2c: F0 00 00 B1 00 A0 [23:29:32]Write i2c OK [23:29:32]MH_I2C_Read... [23:29:32]Read from MH i2c: F0 [23:29:32]MH_I2C_Read... [23:29:32]Read from MH i2c: F0 09 00 [23:29:32]MH_I2C_Read... [23:29:32]Read from MH i2c: F0 09 00 B1 00 00 5D EC BB 66 DC E4 6D 64 A4 [23:29:32]GetLastDocTimeStamp 1723590735 [23:29:32]current date 1723591773 [23:29:32]FM_GetShiftState [23:29:32]SAM_PROTO_GetShiftState [23:29:32]wFMCommunicate request_size=4 [23:29:32]MH_SAM_APDU [23:29:32]CAPDU: 80 13 01 00 [23:29:32]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [23:29:32]Write i2c OK [23:29:32]MH_I2C_Read... [23:29:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:29:32]Read from MH i2c: E2 [23:29:32]MH_I2C_Read... [23:29:32]Read from MH i2c: E2 0E 00 [23:29:32]MH_I2C_Read... [23:29:32]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 4D [23:29:32]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [23:29:32]wFMCommunicate OK [23:29:32]SAM_PROTO_GetShiftState done [23:29:32]FM_GetShiftState done [23:29:32]opened in 1723506770 [23:29:32]opened+sec_in_day 1723593170 [23:29:32]quantity*price = 13500 [23:29:32]sum+1 = 13501 [23:29:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 129 13.08.2024 23:29 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103218 ФПД: 245142905049110 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T232933&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103218&fm=245142905049110&tin=02508201610067®Number=0000000000092718&sum=13500 0 [23:29:33]StoreToDocumentArchive [23:29:33]shift 464 fd 103218 [23:29:33]save to /storage/0464/doc_00103218 [23:29:33]save last doc name /storage/0464/doc_00103218 to /storage/kkm_last_doc_name [23:29:33]save OK [23:29:33]Clear old archive folders... [23:29:33]ProcessDocumentItem done err = 0, tmpTLVsize=268 [23:29:33]tlvbuf is 011C6FD0 [23:29:33]SAM_PROTO_ClearQueue [23:29:33]wFMCommunicate request_size=4 [23:29:33]MH_SAM_APDU [23:29:33]CAPDU: 80 09 00 00 [23:29:33]Write to MH i2c: E2 08 00 BF 00 80 09 00 00 00 00 00 00 31 [23:29:33]Write i2c OK [23:29:33]MH_I2C_Read... [23:29:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:29:34]Read from MH i2c: E2 [23:29:34]MH_I2C_Read... [23:29:34]Read from MH i2c: E2 03 00 [23:29:34]MH_I2C_Read... [23:29:34]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [23:29:34]RAPDU: 90 00 [23:29:34]wFMCommunicate OK [23:29:34]SAM_PROTO_ClearQueue done [23:29:34]KKMCreateOFDPacket [23:29:34]OFDProtocolAddRootSTLVToBuf [23:29:34]FM_MakeSignedData [23:29:34]FM_MakeSignedData [23:29:34]SAM_PROTO_SignData [23:29:34]wFMCommunicate request_size=4 [23:29:34]MH_SAM_APDU [23:29:34]CAPDU: 80 0D 01 02 [23:29:34]Write to MH i2c: E2 08 00 C0 00 80 0D 01 02 00 00 00 00 39 [23:29:34]Write i2c OK [23:29:34]MH_I2C_Read... [23:29:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:29:34]Read from MH i2c: E2 [23:29:34]MH_I2C_Read... [23:29:34]Read from MH i2c: E2 03 00 [23:29:34]MH_I2C_Read... [23:29:34]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [23:29:34]RAPDU: 90 00 [23:29:34]wFMCommunicate OK [23:29:34]wFMCommunicate request_size=255 [23:29:34]MH_SAM_APDU [23:29:34]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 38 37 34 33 32 37 33 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 61 72 6C 62 6F 72 6F 20 54 6F 75 63 68 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 5D EC BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [23:29:34]Write to MH i2c: E2 02 01 C1 00 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 38 37 34 33 32 37 33 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 61 72 6C 62 6F 72 6F 20 54 6F 75 63 68 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 5D EC BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 08 [23:29:34]Write i2c OK [23:29:34]MH_I2C_Read... [23:29:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:29:34]Read from MH i2c: E2 [23:29:34]MH_I2C_Read... [23:29:34]Read from MH i2c: E2 03 00 [23:29:34]MH_I2C_Read... [23:29:34]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [23:29:34]RAPDU: 90 00 [23:29:34]wFMCommunicate OK [23:29:34]wFMCommunicate request_size=27 [23:29:34]MH_SAM_APDU [23:29:34]CAPDU: 80 0D 02 02 16 35 30 35 38 10 04 04 00 32 93 01 00 35 04 06 00 DE F4 C7 C6 50 16 [23:29:34]Write to MH i2c: E2 1E 00 C2 00 80 0D 02 02 16 00 35 30 35 38 10 04 04 00 32 93 01 00 35 04 06 00 DE F4 C7 C6 50 16 00 00 1C [23:29:34]Write i2c OK [23:29:34]MH_I2C_Read... [23:29:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:29:34]Read from MH i2c: E2 [23:29:34]MH_I2C_Read... [23:29:34]Read from MH i2c: E2 03 00 [23:29:34]MH_I2C_Read... [23:29:34]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [23:29:34]RAPDU: 90 00 [23:29:34]wFMCommunicate OK [23:29:34]wFMCommunicate request_size=4 [23:29:34]MH_SAM_APDU [23:29:34]CAPDU: 80 0D 03 02 [23:29:34]Write to MH i2c: E2 08 00 C3 00 80 0D 03 02 00 00 00 00 3E [23:29:34]Write i2c OK [23:29:34]MH_I2C_Read... [23:29:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:29:34]Read from MH i2c: E2 [23:29:34]MH_I2C_Read... [23:29:34]Read from MH i2c: E2 0B 00 [23:29:34]MH_I2C_Read... [23:29:34]Read from MH i2c: E2 0B 00 C3 00 00 0A 78 73 74 16 B5 C6 E1 90 00 1A [23:29:34]RAPDU: 0A 78 73 74 16 B5 C6 E1 90 00 [23:29:34]wFMCommunicate OK [23:29:34]SAM_PROTO_SignData done [23:29:34]FM_MakeSignedData done [23:29:34]CreateOFDProtocolMessage [23:29:34]wFMCommunicate request_size=4 [23:29:34]MH_SAM_APDU [23:29:34]CAPDU: 80 11 00 00 [23:29:34]Write to MH i2c: E2 08 00 C4 00 80 11 00 00 00 00 00 00 3E [23:29:34]Write i2c OK [23:29:34]MH_I2C_Read... [23:29:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:29:34]Read from MH i2c: E2 [23:29:34]MH_I2C_Read... [23:29:34]Read from MH i2c: E2 17 00 [23:29:34]MH_I2C_Read... [23:29:34]Read from MH i2c: E2 17 00 C4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 92 [23:29:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [23:29:34]wFMCommunicate OK [23:29:34]CreateOFDProtocolMessage done [23:29:34]OFDSenderStorePacket 103218 [23:29:34]StoreOFDPacket docnum=103218 [23:29:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 20 01 00 00 1A F2 18 01 EF 84 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 38 37 34 33 32 37 33 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 61 72 6C 62 6F 72 6F 20 54 6F 75 63 68 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 5D EC BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 32 93 01 00 35 04 06 00 DE F4 C7 C6 50 16 0A 78 73 74 16 B5 C6 E1 [23:29:34]CheckFolder [23:29:34]dirname=/storage/ofd_packets [23:29:34]CheckFolder done [23:29:34]ProducePacketName [23:29:34]name=ofd_packets/00103218 [23:29:34]NVStorageSaveData ofd_packets/00103218 [23:29:34]File name is /storage/ofd_packets/00103218 [23:29:34]Write 318 bytes [23:29:34]NVStorageSaveData done [23:29:34]OFDSenderStorePacket done [23:29:34]KKMCreateOFDPacket done [23:29:34]NVStorageSaveData kkm_last_timestamp [23:29:34]File name is /storage/kkm_last_timestamp [23:29:34]Write 4 bytes [23:29:34]NVStorageSaveData done [23:29:34]ExternCall_PrintAddStr [23:29:34]wPrintStart [23:29:34]Write to MH i2c: 01 00 00 C5 00 C5 [23:29:34]Write i2c OK [23:29:34]MH_I2C_Read... [23:29:34]Read from MH i2c: 01 [23:29:34]MH_I2C_Read... [23:29:34]Read from MH i2c: 01 07 00 [23:29:34]MH_I2C_Read... [23:29:34]Read from MH i2c: 01 07 00 C5 00 00 00 00 00 00 FF 0F DA [23:29:34]RasterBufferAndPrint [23:29:34]line Счет N : (3)34513 [23:29:34]line ИНН: 02508201610067 [23:29:34]line Контрольно-Кассовый Чек [23:29:34]line ПРОДАЖА [23:29:34]line Товар: 48743273 [23:29:34]line Сигареты Marlboro Touch [23:29:34]line 1.000 * 135.00 [23:29:34]line = 135.00 [23:29:34]line НДС 12% НСП 1% [23:29:34]line > о реализуемом товаре [23:29:34]line ИТОГО: 135.00 [23:29:34]line НСП 1% : 1.19 [23:29:34]line НДС 12% : 14.34 [23:29:34]line Наличными: 135.00 [23:29:34]line Безнал.: 0.00 [23:29:34]line Место: АЗС № 38 "Партнер Нефть" [23:29:34]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [23:29:34]line СНО: Общий режим [23:29:34]line Чек 129 13.08.2024 23:29 [23:29:34]line Смена: 464 ФФД: 1.0 [23:29:34]line ЗНМ: 0300000126 [23:29:34]line РНМ: 0000000000092718 [23:29:34]line Версия ККМ: 001 [23:29:34]line ФМ: 0000000000875058 [23:29:34]line ФД: 103218 [23:29:34]line ФПД: 245142905049110 [23:29:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T232933&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103218&fm=245142905049110&tin=02508201610067®Number=0000000000092718&sum=13500 [23:29:34]OFD Sender: Processing packet 103218 [packets to send 69, broken 68] [23:29:34]ProducePacketName [23:29:34]name=ofd_packets/00103218 [23:29:34]OFD Sender: To server: pG, [23:29:34]CommunicateWithHost lk.salyk.kg:30040 [23:29:34]ConnectInit lk.salyk.kg [23:29:34]line 0 [23:29:34]written 0, free lines is 4095 [23:29:34]Connected sock=9 [23:29:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 20 01 00 00 1A F2 18 01 EF 84 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 38 37 34 33 32 37 33 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 61 72 6C 62 6F 72 6F 20 54 6F 75 63 68 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 5D EC BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 32 93 01 00 35 04 06 00 DE F4 C7 C6 50 16 0A 78 73 74 16 B5 C6 E1 [23:29:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 D5 F3 47 00 E2 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 32 93 01 00 F4 03 04 00 CF 92 BB 66 B6 04 01 00 00 CD 93 C1 F0 76 51 1F E0 [23:29:35]CommunicateWithHost err = 0 [23:29:35]CheckOFDResponse [23:29:35]1017 (14) - 77093643461234 [23:29:35]1041 (16) - 0000000000875058 [23:29:35]1040 (4) - 103218 [23:29:35]1012 (4) - 13.08.2024 17:07 [23:29:35]1206 (1) - 0 [23:29:35]OFD Sender: Remove packet 103218 [23:29:35]ProducePacketName [23:29:35]name=ofd_packets/00103218 [23:29:35]NVStorageDeleteData [23:29:35]Write to MH i2c: 01 00 00 ED 00 ED [23:29:35]Write i2c OK [23:29:35]MH_I2C_Read... [23:29:35]Read from MH i2c: 01 [23:29:35]MH_I2C_Read... [23:29:35]Read from MH i2c: 01 07 00 [23:29:35]MH_I2C_Read... [23:29:35]Read from MH i2c: 01 07 00 ED 00 00 00 00 00 00 10 0D 11 [23:29:35]RasterBufferAndPrint [23:29:35]line [23:29:35]line [23:29:35]line [23:29:35]line [23:29:35]line [23:29:35]written 0, free lines is 3349 [23:29:35]MH_Cut [23:29:35]Write to MH i2c: D1 01 00 F4 00 01 C6 [23:29:35]Write i2c OK [23:29:35]MH_I2C_Read... [23:29:35]Read from MH i2c: D1 [23:29:35]MH_I2C_Read... [23:29:35]Read from MH i2c: D1 01 00 [23:29:35]MH_I2C_Read... [23:29:35]Read from MH i2c: D1 01 00 F4 00 00 C5 [23:29:35]Write to MH i2c: 01 00 00 F5 00 F5 [23:29:35]Write i2c OK [23:29:35]MH_I2C_Read... [23:29:35]OFD Sender: No OFD packet to send [23:29:35]*** Cut start [23:29:35]*** Purtial cut [23:29:35]*** Stage 1: CUTSNS_PIN = 1 [23:29:36]Read from MH i2c: 01 [23:29:36]MH_I2C_Read... [23:29:36]*** Stop cut motor [23:29:36]*** Cut end [23:29:36]Read from MH i2c: 01 07 00 [23:29:36]MH_I2C_Read... [23:29:36]Read from MH i2c: 01 07 00 F5 00 00 00 00 00 00 FF 0F 0A [23:29:36]process_action close_receipt done [23:29:36]requested_data is exist [23:29:36]produce_requested_data [23:29:36]requested_item fm.sn is exist - process it [23:29:36]wFMCommunicate request_size=4 [23:29:36]MH_SAM_APDU [23:29:36]CAPDU: 80 11 00 00 [23:29:36]Write to MH i2c: E2 08 00 F6 00 80 11 00 00 00 00 00 00 70 [23:29:36]Write i2c OK [23:29:36]MH_I2C_Read... [23:29:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:29:36]Read from MH i2c: E2 [23:29:36]MH_I2C_Read... [23:29:36]Read from MH i2c: E2 17 00 [23:29:36]MH_I2C_Read... [23:29:36]Read from MH i2c: E2 17 00 F6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 C4 [23:29:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [23:29:36]wFMCommunicate OK [23:29:36]requested_item fd.num is exist - process it [23:29:36]SAM_PROTO_GetFieldsCounters [23:29:36]wFMCommunicate request_size=4 [23:29:36]MH_SAM_APDU [23:29:36]CAPDU: 80 13 00 00 [23:29:36]Write to MH i2c: E2 08 00 F7 00 80 13 00 00 00 00 00 00 73 [23:29:36]Write i2c OK [23:29:36]MH_I2C_Read... [23:29:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:29:36]Read from MH i2c: E2 [23:29:36]MH_I2C_Read... [23:29:36]Read from MH i2c: E2 62 00 [23:29:36]MH_I2C_Read... [23:29:36]Read from MH i2c: E2 62 00 F7 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 32 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [23:29:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 32 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:29:36]wFMCommunicate OK [23:29:36]SAM_PROTO_GetFieldsCounters done [23:29:36]requested_item shift.num is exist - process it [23:29:36]requested_item shift.opened is exist - process it [23:29:36]req_shift_opened [23:29:36]FM_GetShiftState [23:29:36]SAM_PROTO_GetShiftState [23:29:36]wFMCommunicate request_size=4 [23:29:36]MH_SAM_APDU [23:29:36]CAPDU: 80 13 01 00 [23:29:36]Write to MH i2c: E2 08 00 F8 00 80 13 01 00 00 00 00 00 75 [23:29:36]Write i2c OK [23:29:36]MH_I2C_Read... [23:29:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:29:36]Read from MH i2c: E2 [23:29:36]MH_I2C_Read... [23:29:36]Read from MH i2c: E2 0E 00 [23:29:36]MH_I2C_Read... [23:29:36]Read from MH i2c: E2 0E 00 F8 00 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 93 [23:29:36]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [23:29:36]wFMCommunicate OK [23:29:36]SAM_PROTO_GetShiftState done [23:29:36]FM_GetShiftState done [23:29:36]req_shift_opened done [23:29:36]requested_item shift.open_date is exist - process it [23:29:36]req_shift_open_date [23:29:36]req_shift_open_date done [23:29:36]produce_requested_data done [23:29:36]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103218,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [23:29:36]process_action_free close_receipt [23:29:36]json_value_free [23:29:36]json_value_free done [23:29:36]process_json_proto returns [23:29:36]Send response to host [23:29:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103218,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [23:29:36]free response buf [23:29:36]execute_script done [23:29:36]execute_script returns [23:29:36]free content buf [23:29:36]Sock 10.Close socket [23:29:36]Sock 10.Thread stoped [23:29:36]accept exits with 7 [23:29:36]New connection [23:29:36]New thread 3067342180 created [23:29:36]Thread 3067485540 joined [23:29:36]Waiting for new connection... [23:29:36] Sock 7.Parse request [23:29:36]Sock 7.Check first char [23:29:36]Sock 7.First char is OK [23:29:36]request: POST /json_proto HTTP/1.0 [23:29:36]Method: POST [23:29:36]URL: /json_proto [23:29:36]Method is POST - this is cgi request [23:29:36]url: /json_proto [23:29:36]query_string will be loaded in cgi processing [23:29:36]execute_cgi json_proto POST (null) [23:29:36]execute_cgi path=json_proto method=POST [23:29:36]POST find Content-Length [23:29:36]Host: 172.17.58.3:8080 [23:29:36]Content-Length: 677 [23:29:36]Content-Type: application/json [23:29:36] [23:29:36]POST finish read [23:29:36]Found Content-Length = 677 [23:29:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160845", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 13.130, "sum" : 865.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 865.00, "total" : 865.00, "payments": [ { "type": 0, "sum" : 865.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:29:36]execute_script... [23:29:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160845", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 13.130, "sum" : 865.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 865.00, "total" : 865.00, "payments": [ { "type": 0, "sum" : 865.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:29:36]POST & json_proto [23:29:36]process_json_proto [23:29:36]json parsed OK: [23:29:36]protocol is kg_v1.0 [23:29:36]action value=close_receipt [23:29:36]process_action close_receipt [23:29:36]cmd_close_receipt [23:29:36]MH_GetDate [23:29:36]Write to MH i2c: F0 00 00 F9 00 E8 [23:29:36]Write i2c OK [23:29:36]MH_I2C_Read... [23:29:36]Read from MH i2c: F0 [23:29:36]MH_I2C_Read... [23:29:36]Read from MH i2c: F0 09 00 [23:29:36]MH_I2C_Read... [23:29:36]Read from MH i2c: F0 09 00 F9 00 00 61 EC BB 66 DC E4 6D 64 F0 [23:29:36]GetLastDocTimeStamp 1723591773 [23:29:36]current date 1723591777 [23:29:36]FM_GetShiftState [23:29:36]SAM_PROTO_GetShiftState [23:29:36]wFMCommunicate request_size=4 [23:29:36]MH_SAM_APDU [23:29:36]CAPDU: 80 13 01 00 [23:29:36]Write to MH i2c: E2 08 00 FA 00 80 13 01 00 00 00 00 00 77 [23:29:36]Write i2c OK [23:29:36]MH_I2C_Read... [23:29:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:29:36]Read from MH i2c: E2 [23:29:36]MH_I2C_Read... [23:29:36]Read from MH i2c: E2 0E 00 [23:29:36]MH_I2C_Read... [23:29:36]Read from MH i2c: E2 0E 00 FA 00 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 95 [23:29:36]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [23:29:36]wFMCommunicate OK [23:29:36]SAM_PROTO_GetShiftState done [23:29:36]FM_GetShiftState done [23:29:36]opened in 1723506770 [23:29:36]opened+sec_in_day 1723593170 [23:29:36]quantity*price = 86526 [23:29:36]sum+1 = 86528 [23:29:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 865.00 Внесено: 865.00 СДАЧА: 0.00 НСП 1% : 7.66 НДС 12% : 91.89 Наличными: 865.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 130 13.08.2024 23:29 Смена: 464 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103219 ФПД: 103683406983773 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T232937&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103219&fm=103683406983773&tin=02508201610067®Number=0000000000092718&sum=86500 [23:29:38]StoreToDocumentArchive [23:29:38]shift 464 fd 103219 [23:29:38]save to /storage/0464/doc_00103219 [23:29:38]save last doc name /storage/0464/doc_00103219 to /storage/kkm_last_doc_name [23:29:38]save OK [23:29:38]Clear old archive folders... [23:29:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:29:38]tlvbuf is 011AE840 [23:29:38]SAM_PROTO_ClearQueue [23:29:38]wFMCommunicate request_size=4 [23:29:38]MH_SAM_APDU [23:29:38]CAPDU: 80 09 00 00 [23:29:38]Write to MH i2c: E2 08 00 07 01 80 09 00 00 00 00 00 00 7A [23:29:38]Write i2c OK [23:29:38]MH_I2C_Read... [23:29:38]Read from MH i2c: E2 [23:29:38]MH_I2C_Read... [23:29:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:29:38]Read from MH i2c: E2 03 00 [23:29:38]MH_I2C_Read... [23:29:38]Read from MH i2c: E2 03 00 07 01 00 90 00 7C [23:29:38]RAPDU: 90 00 [23:29:38]wFMCommunicate OK [23:29:38]SAM_PROTO_ClearQueue done [23:29:38]KKMCreateOFDPacket [23:29:38]OFDProtocolAddRootSTLVToBuf [23:29:38]FM_MakeSignedData [23:29:38]FM_MakeSignedData [23:29:38]SAM_PROTO_SignData [23:29:38]wFMCommunicate request_size=4 [23:29:38]MH_SAM_APDU [23:29:38]CAPDU: 80 0D 01 02 [23:29:38]Write to MH i2c: E2 08 00 08 01 80 0D 01 02 00 00 00 00 82 [23:29:38]Write i2c OK [23:29:38]MH_I2C_Read... [23:29:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:29:38]Read from MH i2c: E2 [23:29:38]MH_I2C_Read... [23:29:38]Read from MH i2c: E2 03 00 [23:29:38]MH_I2C_Read... [23:29:38]Read from MH i2c: E2 03 00 08 01 00 90 00 7D [23:29:38]RAPDU: 90 00 [23:29:38]wFMCommunicate OK [23:29:38]wFMCommunicate request_size=255 [23:29:38]MH_SAM_APDU [23:29: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 4A 33 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 FF 51 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 51 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FE 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 23 00 00 00 00 07 04 06 00 E4 51 01 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 61 EC BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 33 93 01 00 35 04 06 00 5E [23:29:38]Write to MH i2c: E2 02 01 09 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 4A 33 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 FF 51 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 51 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FE 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 23 00 00 00 00 07 04 06 00 E4 51 01 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 61 EC BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 33 93 01 00 35 04 06 00 5E 00 00 8E [23:29:38]Write i2c OK [23:29:38]MH_I2C_Read... [23:29:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:29:38]Read from MH i2c: E2 [23:29:38]MH_I2C_Read... [23:29:38]Read from MH i2c: E2 03 00 [23:29:38]MH_I2C_Read... [23:29:38]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [23:29:38]RAPDU: 90 00 [23:29:38]wFMCommunicate OK [23:29:38]wFMCommunicate request_size=10 [23:29:38]MH_SAM_APDU [23:29:38]CAPDU: 80 0D 02 02 05 4C AC A4 72 5D [23:29:38]Write to MH i2c: E2 0D 00 0A 01 80 0D 02 02 05 00 4C AC A4 72 5D 00 00 FA [23:29:38]Write i2c OK [23:29:38]MH_I2C_Read... [23:29:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:29:38]Read from MH i2c: E2 [23:29:38]MH_I2C_Read... [23:29:38]Read from MH i2c: E2 03 00 [23:29:38]MH_I2C_Read... [23:29:38]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [23:29:38]RAPDU: 90 00 [23:29:38]wFMCommunicate OK [23:29:38]wFMCommunicate request_size=4 [23:29:38]MH_SAM_APDU [23:29:38]CAPDU: 80 0D 03 02 [23:29:38]Write to MH i2c: E2 08 00 0B 01 80 0D 03 02 00 00 00 00 87 [23:29:38]Write i2c OK [23:29:38]MH_I2C_Read... [23:29:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:29:38]Read from MH i2c: E2 [23:29:38]MH_I2C_Read... [23:29:38]Read from MH i2c: E2 0B 00 [23:29:38]MH_I2C_Read... [23:29:38]Read from MH i2c: E2 0B 00 0B 01 00 A7 94 07 18 93 FC BD D6 90 00 04 [23:29:38]RAPDU: A7 94 07 18 93 FC BD D6 90 00 [23:29:38]wFMCommunicate OK [23:29:38]SAM_PROTO_SignData done [23:29:38]FM_MakeSignedData done [23:29:38]CreateOFDProtocolMessage [23:29:38]wFMCommunicate request_size=4 [23:29:38]MH_SAM_APDU [23:29:38]CAPDU: 80 11 00 00 [23:29:38]Write to MH i2c: E2 08 00 0C 01 80 11 00 00 00 00 00 00 87 [23:29:38]Write i2c OK [23:29:38]MH_I2C_Read... [23:29:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:29:39]Read from MH i2c: E2 [23:29:39]MH_I2C_Read... [23:29:39]Read from MH i2c: E2 17 00 [23:29:39]MH_I2C_Read... [23:29:39]Read from MH i2c: E2 17 00 0C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 DB [23:29:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [23:29:39]wFMCommunicate OK [23:29:39]CreateOFDProtocolMessage done [23:29:39]OFDSenderStorePacket 103219 [23:29:39]StoreOFDPacket docnum=103219 [23:29:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 4D 0E 07 01 27 ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 FF 51 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 51 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FE 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 23 00 00 00 00 07 04 06 00 E4 51 01 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 61 EC BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 33 93 01 00 35 04 06 00 5E 4C AC A4 72 5D A7 94 07 18 93 FC BD D6 [23:29:39]CheckFolder [23:29:39]dirname=/storage/ofd_packets [23:29:39]CheckFolder done [23:29:39]ProducePacketName [23:29:39]name=ofd_packets/00103219 [23:29:39]NVStorageSaveData ofd_packets/00103219 [23:29:39]File name is /storage/ofd_packets/00103219 [23:29:39]Write 301 bytes [23:29:39]NVStorageSaveData done [23:29:39]OFDSenderStorePacket done [23:29:39]KKMCreateOFDPacket done [23:29:39]NVStorageSaveData kkm_last_timestamp [23:29:39]File name is /storage/kkm_last_timestamp [23:29:39]Write 4 bytes [23:29:39]NVStorageSaveData done [23:29:39]ExternCall_PrintAddStr [23:29:39]wPrintStart [23:29:39]Write to MH i2c: 01 00 00 0D 01 0E [23:29:39]Write i2c OK [23:29:39]MH_I2C_Read... [23:29:39]Read from MH i2c: 01 [23:29:39]MH_I2C_Read... [23:29:39]Read from MH i2c: 01 07 00 [23:29:39]MH_I2C_Read... [23:29:39]Read from MH i2c: 01 07 00 0D 01 00 00 00 00 00 FF 0F 23 [23:29:39]RasterBufferAndPrint [23:29:39]line Счет N : (1)160845 [23:29:39]line ИНН: 02508201610067 [23:29:39]line Контрольно-Кассовый Чек [23:29:39]line ПРОДАЖА [23:29:39]line ТРК (МРК, ГНК) : 3 [23:29:39]line Товар: 2710124130 [23:29:39]line Аи-92-К-5 [23:29:39]line 13.130 * 65.90 [23:29:39]line = 865.27 [23:29:39]line НДС 12% НСП 1% [23:29:39]line > о реализуемом товаре [23:29:39]line ОКРУГЛЕНИЕ: -0.27 [23:29:39]line ИТОГО: 865.00 [23:29:39]line Внесено: 865.00 [23:29:39]line СДАЧА: 0.00 [23:29:39]line НСП 1% : 7.66 [23:29:39]line НДС 12% : 91.89 [23:29:39]line Наличными: 865.00 [23:29:39]line Безнал.: 0.00 [23:29:39]line Место: АЗС № 38 "Партнер Нефть" [23:29:39]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [23:29:39]line СНО: Общий режим [23:29:39]line Чек 130 13.08.2024 23:29 [23:29:39]line Смена: 464 ФФД: 1.0 [23:29:39]line ЗНМ: 0300000126 [23:29:39]line РНМ: 0000000000092718 [23:29:39]line Версия ККМ: 001 [23:29:39]OFD Sender: Processing packet 103219 [packets to send 69, broken 68] [23:29:39]ProducePacketName [23:29:39]name=ofd_packets/00103219 [23:29:39]OFD Sender: To server: pG, [23:29:39]CommunicateWithHost lk.salyk.kg:30040 [23:29:39]ConnectInit lk.salyk.kg [23:29:39]line ФМ: 0000000000875058 [23:29:39]line ФД: 103219 [23:29:39]line ФПД: 103683406983773 [23:29:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T232937&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103219&fm=103683406983773&tin=02508201610067®Number=0000000000092718&sum=86500 [23:29:39]Connected sock=10 [23:29:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 4D 0E 07 01 27 ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 FF 51 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 51 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FE 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 23 00 00 00 00 07 04 06 00 E4 51 01 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 61 EC BB 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 33 93 01 00 35 04 06 00 5E 4C AC A4 72 5D A7 94 07 18 93 FC BD D6 [23:29:39]written 0, free lines is 4095 [23:29:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 26 48 47 00 EA 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 35 30 35 38 10 04 04 00 33 93 01 00 F4 03 04 00 D3 92 BB 66 B6 04 01 00 00 54 CB 78 DD 9B E1 BD 46 [23:29:39]CommunicateWithHost err = 0 [23:29:39]CheckOFDResponse [23:29:39]1017 (14) - 77093643461234 [23:29:39]1041 (16) - 0000000000875058 [23:29:39]1040 (4) - 103219 [23:29:39]1012 (4) - 13.08.2024 17:07 [23:29:39]1206 (1) - 0 [23:29:39]OFD Sender: Remove packet 103219 [23:29:39]ProducePacketName [23:29:39]name=ofd_packets/00103219 [23:29:39]NVStorageDeleteData [23:29:39]Write to MH i2c: 01 00 00 38 01 39 [23:29:39]Write i2c OK [23:29:39]MH_I2C_Read... [23:29:39]Read from MH i2c: 01 [23:29:39]MH_I2C_Read... [23:29:39]Read from MH i2c: 01 07 00 [23:29:39]MH_I2C_Read... [23:29:39]Read from MH i2c: 01 07 00 38 01 00 00 00 00 00 F1 0C 3D [23:29:39]RasterBufferAndPrint [23:29:39]line [23:29:39]line [23:29:39]line [23:29:39]line [23:29:39]line [23:29:39]written 0, free lines is 3325 [23:29:39]MH_Cut [23:29:39]Write to MH i2c: D1 01 00 3F 01 01 12 [23:29:39]Write i2c OK [23:29:39]MH_I2C_Read... [23:29:39]Read from MH i2c: D1 [23:29:39]MH_I2C_Read... [23:29:39]Read from MH i2c: D1 01 00 [23:29:39]MH_I2C_Read... [23:29:39]Read from MH i2c: D1 01 00 3F 01 00 11 [23:29:39]Write to MH i2c: 01 00 00 40 01 41 [23:29:39]Write i2c OK [23:29:39]MH_I2C_Read... [23:29:40]OFD Sender: No OFD packet to send [23:29:40]*** Cut start [23:29:40]*** Purtial cut [23:29:40]*** CUTSNS_PIN = 0 [23:29:40]*** Stage 1: CUTSNS_PIN = 1 [23:29:42]Read from MH i2c: 01 [23:29:42]MH_I2C_Read... [23:29:42]*** Stop cut motor [23:29:42]*** Cut end [23:29:42]Read from MH i2c: 01 07 00 [23:29:42]MH_I2C_Read... [23:29:42]Read from MH i2c: 01 07 00 40 01 00 00 00 00 00 FF 0F 56 [23:29:42]process_action close_receipt done [23:29:42]requested_data is exist [23:29:42]produce_requested_data [23:29:42]requested_item fm.sn is exist - process it [23:29:42]wFMCommunicate request_size=4 [23:29:42]MH_SAM_APDU [23:29:42]CAPDU: 80 11 00 00 [23:29:42]Write to MH i2c: E2 08 00 41 01 80 11 00 00 00 00 00 00 BC [23:29:42]Write i2c OK [23:29:42]MH_I2C_Read... [23:29:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:29:42]Read from MH i2c: E2 [23:29:42]MH_I2C_Read... [23:29:42]Read from MH i2c: E2 17 00 [23:29:42]MH_I2C_Read... [23:29:42]Read from MH i2c: E2 17 00 41 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 10 [23:29:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [23:29:42]wFMCommunicate OK [23:29:42]requested_item fd.num is exist - process it [23:29:42]SAM_PROTO_GetFieldsCounters [23:29:42]wFMCommunicate request_size=4 [23:29:42]MH_SAM_APDU [23:29:42]CAPDU: 80 13 00 00 [23:29:42]Write to MH i2c: E2 08 00 42 01 80 13 00 00 00 00 00 00 BF [23:29:42]Write i2c OK [23:29:42]MH_I2C_Read... [23:29:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:29:42]Read from MH i2c: E2 [23:29:42]MH_I2C_Read... [23:29:42]Read from MH i2c: E2 62 00 [23:29:42]MH_I2C_Read... [23:29:42]Read from MH i2c: E2 62 00 42 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 33 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [23:29:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 33 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:29:42]wFMCommunicate OK [23:29:42]SAM_PROTO_GetFieldsCounters done [23:29:42]requested_item shift.num is exist - process it [23:29:42]requested_item shift.opened is exist - process it [23:29:42]req_shift_opened [23:29:42]FM_GetShiftState [23:29:42]SAM_PROTO_GetShiftState [23:29:42]wFMCommunicate request_size=4 [23:29:42]MH_SAM_APDU [23:29:42]CAPDU: 80 13 01 00 [23:29:42]Write to MH i2c: E2 08 00 43 01 80 13 01 00 00 00 00 00 C1 [23:29:42]Write i2c OK [23:29:42]MH_I2C_Read... [23:29:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:29:42]Read from MH i2c: E2 [23:29:42]MH_I2C_Read... [23:29:42]Read from MH i2c: E2 0E 00 [23:29:42]MH_I2C_Read... [23:29:42]Read from MH i2c: E2 0E 00 43 01 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 DF [23:29:42]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [23:29:42]wFMCommunicate OK [23:29:42]SAM_PROTO_GetShiftState done [23:29:42]FM_GetShiftState done [23:29:42]req_shift_opened done [23:29:42]requested_item shift.open_date is exist - process it [23:29:42]req_shift_open_date [23:29:42]req_shift_open_date done [23:29:42]produce_requested_data done [23:29:42]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103219,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [23:29:42]process_action_free close_receipt [23:29:42]json_value_free [23:29:42]json_value_free done [23:29:42]process_json_proto returns [23:29:42]Send response to host [23:29:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103219,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [23:29:42]free response buf [23:29:42]execute_script done [23:29:42]execute_script returns [23:29:42]free content buf [23:29:42]Sock 7.Close socket [23:29:42]Sock 7.Thread stoped [23:29:45]OFD Sender: No OFD packet to send [23:29:50]OFD Sender: No OFD packet to send [23:29:55]OFD Sender: No OFD packet to send [23:30:00]OFD Sender: No OFD packet to send [23:30:05]OFD Sender: No OFD packet to send [23:30:10]OFD Sender: No OFD packet to send [23:30:15]OFD Sender: No OFD packet to send [23:30:20]OFD Sender: No OFD packet to send [23:30:25]OFD Sender: No OFD packet to send [23:30:30]OFD Sender: No OFD packet to send [23:30:35]OFD Sender: No OFD packet to send [23:30:40]OFD Sender: No OFD packet to send [23:30:45]OFD Sender: No OFD packet to send [23:30:50]OFD Sender: No OFD packet to send [23:30:55]OFD Sender: No OFD packet to send [23:31:00]OFD Sender: No OFD packet to send [23:31:05]OFD Sender: No OFD packet to send [23:31:10]OFD Sender: No OFD packet to send [23:31:15]OFD Sender: No OFD packet to send [23:31:20]OFD Sender: No OFD packet to send [23:31:25]OFD Sender: No OFD packet to send [23:31:30]OFD Sender: No OFD packet to send [23:31:35]OFD Sender: No OFD packet to send [23:31:40]OFD Sender: No OFD packet to send [23:31:45]OFD Sender: No OFD packet to send [23:31:50]OFD Sender: No OFD packet to send [23:31:55]OFD Sender: No OFD packet to send [23:31:56]accept exits with 9 [23:31:56]New connection [23:31:56]New thread 3067485540 created [23:31:56]Thread 3067342180 joined [23:31:56]Waiting for new connection... [23:31:56] Sock 9.Parse request [23:31:56]Sock 9.Check first char [23:31:56]Sock 9.First char is OK [23:31:56]request: POST /json_proto HTTP/1.0 [23:31:56]Method: POST [23:31:56]URL: /json_proto [23:31:56]Method is POST - this is cgi request [23:31:56]url: /json_proto [23:31:56]query_string will be loaded in cgi processing [23:31:56]execute_cgi json_proto POST (null) [23:31:56]execute_cgi path=json_proto method=POST [23:31:56]POST find Content-Length [23:31:56]Host: 172.17.58.3:8080 [23:31:56]Content-Length: 215 [23:31:56]Content-Type: application/json [23:31:56] [23:31:56]POST finish read [23:31:56]Found Content-Length = 215 [23:31:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:31:56]execute_script... [23:31:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:31:56]POST & json_proto [23:31:56]process_json_proto [23:31:56]json parsed OK: [23:31:56]protocol is kg_v1.0 [23:31:56]action value=get_value [23:31:56]process_action get_value [23:31:56]cmd_get_value [23:31:56]process_action get_value done [23:31:56]requested_data is exist [23:31:56]produce_requested_data [23:31:56]requested_item kkm.sn is exist - process it [23:31:56]requested_item kkm.ver is exist - process it [23:31:56]requested_item fm.sn is exist - process it [23:31:56]wFMCommunicate request_size=4 [23:31:56]MH_SAM_APDU [23:31:56]CAPDU: 80 11 00 00 [23:31:56]Write to MH i2c: E2 08 00 44 01 80 11 00 00 00 00 00 00 BF [23:31:56]Write i2c OK [23:31:56]MH_I2C_Read... [23:31:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:31:56]Read from MH i2c: E2 [23:31:56]MH_I2C_Read... [23:31:56]Read from MH i2c: E2 17 00 [23:31:56]MH_I2C_Read... [23:31:56]Read from MH i2c: E2 17 00 44 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 13 [23:31:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [23:31:56]wFMCommunicate OK [23:31:56]requested_item fd.num is exist - process it [23:31:56]SAM_PROTO_GetFieldsCounters [23:31:56]wFMCommunicate request_size=4 [23:31:56]MH_SAM_APDU [23:31:56]CAPDU: 80 13 00 00 [23:31:56]Write to MH i2c: E2 08 00 45 01 80 13 00 00 00 00 00 00 C2 [23:31:56]Write i2c OK [23:31:56]MH_I2C_Read... [23:31:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:31:57]Read from MH i2c: E2 [23:31:57]MH_I2C_Read... [23:31:57]Read from MH i2c: E2 62 00 [23:31:57]MH_I2C_Read... [23:31:57]Read from MH i2c: E2 62 00 45 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 33 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [23:31:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 33 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:31:57]wFMCommunicate OK [23:31:57]SAM_PROTO_GetFieldsCounters done [23:31:57]requested_item shift.num is exist - process it [23:31:57]requested_item shift.opened is exist - process it [23:31:57]req_shift_opened [23:31:57]FM_GetShiftState [23:31:57]SAM_PROTO_GetShiftState [23:31:57]wFMCommunicate request_size=4 [23:31:57]MH_SAM_APDU [23:31:57]CAPDU: 80 13 01 00 [23:31:57]Write to MH i2c: E2 08 00 46 01 80 13 01 00 00 00 00 00 C4 [23:31:57]Write i2c OK [23:31:57]MH_I2C_Read... [23:31:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:31:57]Read from MH i2c: E2 [23:31:57]MH_I2C_Read... [23:31:57]Read from MH i2c: E2 0E 00 [23:31:57]MH_I2C_Read... [23:31:57]Read from MH i2c: E2 0E 00 46 01 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 E2 [23:31:57]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [23:31:57]wFMCommunicate OK [23:31:57]SAM_PROTO_GetShiftState done [23:31:57]FM_GetShiftState done [23:31:57]req_shift_opened done [23:31:57]requested_item shift.open_date is exist - process it [23:31:57]req_shift_open_date [23:31:57]req_shift_open_date done [23:31:57]produce_requested_data done [23:31:57]produce_requested_data return {"kkm.sn":"0300000126","kkm.ver":"001","fm.sn":"0000000000875058","fd.num":103219,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [23:31:57]process_action_free get_value [23:31:57]json_value_free [23:31:57]json_value_free done [23:31:57]process_json_proto returns [23:31:57]Send response to host [23:31:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000126","kkm.ver":"001","fm.sn":"0000000000875058","fd.num":103219,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [23:31:57]free response buf [23:31:57]execute_script done [23:31:57]execute_script returns [23:31:57]free content buf [23:31:57]Sock 9.Close socket [23:31:57]Sock 9.Thread stoped [23:31:57]accept exits with 7 [23:31:57]New connection [23:31:57]New thread 3067342180 created [23:31:57]Thread 3067485540 joined [23:31:57]Waiting for new connection... [23:31:57] Sock 7.Parse request [23:31:57]Sock 7.Check first char [23:31:57]Sock 7.First char is OK [23:31:57]request: POST /json_proto HTTP/1.0 [23:31:57]Method: POST [23:31:57]URL: /json_proto [23:31:57]Method is POST - this is cgi request [23:31:57]url: /json_proto [23:31:57]query_string will be loaded in cgi processing [23:31:57]execute_cgi json_proto POST (null) [23:31:57]execute_cgi path=json_proto method=POST [23:31:57]POST find Content-Length [23:31:57]Host: 172.17.58.3:8080 [23:31:57]Content-Length: 331 [23:31:57]Content-Type: application/json [23:31:57] [23:31:57]POST finish read [23:31:57]Found Content-Length = 331 [23:31:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:31:57]execute_script... [23:31:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:31:57]POST & json_proto [23:31:57]process_json_proto [23:31:57]json parsed OK: [23:31:57]protocol is kg_v1.0 [23:31:57]action value=get_value [23:31:57]process_action get_value [23:31:57]cmd_get_value [23:31:57]process_action get_value done [23:31:57]requested_data is exist [23:31:57]produce_requested_data [23:31:57]requested_item fm.sale.total is exist - process it [23:31:57]SAM_PROTO_GetFMData [23:31:57]wFMCommunicate request_size=4 [23:31:57]MH_SAM_APDU [23:31:57]CAPDU: 80 13 03 00 [23:31:57]Write to MH i2c: E2 08 00 47 01 80 13 03 00 00 00 00 00 C7 [23:31:57]Write i2c OK [23:31:57]MH_I2C_Read... [23:31:57]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:31:57]Read from MH i2c: E2 [23:31:57]MH_I2C_Read... [23:31:57]Read from MH i2c: E2 FD 00 [23:31:57]MH_I2C_Read... [23:31:57]Read from MH i2c: E2 FD 00 47 01 00 C8 04 85 04 C4 04 6E 04 04 00 93 8F 01 00 69 04 A3 00 6F 04 04 00 9C 87 01 00 B1 04 05 00 7B EA 8F 89 01 70 04 05 00 A4 10 A3 0B 01 72 04 04 00 D7 D9 EC 7D 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 CC F1 CD 29 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 C2 BB 7B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F7 07 00 00 B1 04 04 00 F8 3C BD 12 70 04 04 00 90 29 B1 12 72 04 03 00 68 13 0C 00 04 7C 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 61 83 FD 01 90 00 D1 [23:31:57]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 93 8F 01 00 69 04 A3 00 6F 04 04 00 9C 87 01 00 B1 04 05 00 7B EA 8F 89 01 70 04 05 00 A4 10 A3 0B 01 72 04 04 00 D7 D9 EC 7D 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 CC F1 CD 29 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 C2 BB 7B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F7 07 00 00 B1 04 04 00 F8 3C BD 12 70 04 04 00 90 29 B1 12 72 04 03 00 68 13 0C 00 04 7C 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 61 83 FD 01 90 00 [23:31:57]wFMCommunicate OK [23:31:57]wFMCommunicate request_size=4 [23:31:57]MH_SAM_APDU [23:31:57]CAPDU: 80 17 00 00 [23:31:57]Write to MH i2c: E2 08 00 48 01 80 17 00 00 00 00 00 00 C9 [23:31:57]Write i2c OK [23:31:57]MH_I2C_Read... [23:31:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:31:58]Read from MH i2c: E2 [23:31:58]MH_I2C_Read... [23:31:58]Read from MH i2c: E2 FD 00 [23:31:58]MH_I2C_Read... [23:31:58]Read from MH i2c: E2 FD 00 48 01 00 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 11 75 2A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 75 [23:31:58]RAPDU: 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 11 75 2A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:31:58]wFMCommunicate OK [23:31:58]wFMCommunicate request_size=4 [23:31:58]MH_SAM_APDU [23:31:58]CAPDU: 80 17 00 00 [23:31:58]Write to MH i2c: E2 08 00 49 01 80 17 00 00 00 00 00 00 CA [23:31:58]Write i2c OK [23:31:58]MH_I2C_Read... [23:31:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:31:58]Read from MH i2c: E2 [23:31:58]MH_I2C_Read... [23:31:58]Read from MH i2c: E2 FD 00 [23:31:58]MH_I2C_Read... [23:31:58]Read from MH i2c: E2 FD 00 49 01 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A2 [23:31:58]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:31:58]wFMCommunicate OK [23:31:58]wFMCommunicate request_size=4 [23:31:58]MH_SAM_APDU [23:31:58]CAPDU: 80 17 00 00 [23:31:58]Write to MH i2c: E2 08 00 4A 01 80 17 00 00 00 00 00 00 CB [23:31:58]Write i2c OK [23:31:58]MH_I2C_Read... [23:31:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:31:58]Read from MH i2c: E2 [23:31:58]MH_I2C_Read... [23:31:58]Read from MH i2c: E2 FD 00 [23:31:58]MH_I2C_Read... [23:31:58]Read from MH i2c: E2 FD 00 4A 01 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 43 [23:31:58]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:31:58]wFMCommunicate OK [23:31:58]wFMCommunicate request_size=4 [23:31:58]MH_SAM_APDU [23:31:58]CAPDU: 80 17 00 00 [23:31:58]Write to MH i2c: E2 08 00 4B 01 80 17 00 00 00 00 00 00 CC [23:31:58]Write i2c OK [23:31:58]MH_I2C_Read... [23:31:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [23:31:58]Read from MH i2c: E2 [23:31:58]MH_I2C_Read... [23:31:58]Read from MH i2c: E2 E5 00 [23:31:58]MH_I2C_Read... [23:31:58]Read from MH i2c: E2 E5 00 4B 01 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 B0 [23:31:58]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:31:58]wFMCommunicate OK [23:31:58]SAM_PROTO_GetFMData done [23:31:58]requested_item fm.sale_refund.total is exist - process it [23:31:58]requested_item fm.buy.total is exist - process it [23:31:58]requested_item shift.sale.total is exist - process it [23:31:58]SAM_PROTO_GetShiftData [23:31:58]wFMCommunicate request_size=4 [23:31:58]MH_SAM_APDU [23:31:58]CAPDU: 80 13 02 00 [23:31:58]Write to MH i2c: E2 08 00 4C 01 80 13 02 00 00 00 00 00 CB [23:31:58]Write i2c OK [23:31:58]MH_I2C_Read... [23:31:59]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:31:59]Read from MH i2c: E2 [23:31:59]MH_I2C_Read... [23:31:59]Read from MH i2c: E2 FD 00 [23:31:59]MH_I2C_Read... [23:31:59]Read from MH i2c: E2 FD 00 4C 01 00 B7 04 AA 04 B3 04 6E 04 04 00 82 00 00 00 69 04 9C 00 6F 04 04 00 7F 00 00 00 B1 04 03 00 79 07 9B 70 04 03 00 84 D7 94 72 04 03 00 F5 2F 06 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 24 78 10 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 55 5F 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 95 00 6F 04 04 00 03 00 00 00 B1 04 02 00 60 EA 70 04 02 00 60 EA 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 ED 18 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 90 00 F8 [23:31:59]RAPDU: B7 04 AA 04 B3 04 6E 04 04 00 82 00 00 00 69 04 9C 00 6F 04 04 00 7F 00 00 00 B1 04 03 00 79 07 9B 70 04 03 00 84 D7 94 72 04 03 00 F5 2F 06 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 24 78 10 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 55 5F 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 95 00 6F 04 04 00 03 00 00 00 B1 04 02 00 60 EA 70 04 02 00 60 EA 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 ED 18 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 90 00 [23:31:59]wFMCommunicate OK [23:31:59]wFMCommunicate request_size=4 [23:31:59]MH_SAM_APDU [23:31:59]CAPDU: 80 17 00 00 [23:31:59]Write to MH i2c: E2 08 00 4D 01 80 17 00 00 00 00 00 00 CE [23:31:59]Write i2c OK [23:31:59]MH_I2C_Read... [23:31:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:31:59]Read from MH i2c: E2 [23:31:59]MH_I2C_Read... [23:31:59]Read from MH i2c: E2 FD 00 [23:31:59]MH_I2C_Read... [23:31:59]Read from MH i2c: E2 FD 00 4D 01 00 00 F6 03 01 00 01 F7 03 02 00 14 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0A [23:31:59]RAPDU: 00 F6 03 01 00 01 F7 03 02 00 14 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:31:59]wFMCommunicate OK [23:31:59]wFMCommunicate request_size=4 [23:31:59]MH_SAM_APDU [23:31:59]CAPDU: 80 17 00 00 [23:31:59]Write to MH i2c: E2 08 00 4E 01 80 17 00 00 00 00 00 00 CF [23:31:59]Write i2c OK [23:31:59]MH_I2C_Read... [23:31:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:31:59]Read from MH i2c: E2 [23:31:59]MH_I2C_Read... [23:31:59]Read from MH i2c: E2 FD 00 [23:31:59]MH_I2C_Read... [23:31:59]Read from MH i2c: E2 FD 00 4E 01 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 74 [23:31:59]RAPDU: EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:32:00]wFMCommunicate OK [23:32:00]wFMCommunicate request_size=4 [23:32:00]MH_SAM_APDU [23:32:00]CAPDU: 80 17 00 00 [23:32:00]Write to MH i2c: E2 08 00 4F 01 80 17 00 00 00 00 00 00 D0 [23:32:00]Write i2c OK [23:32:00]MH_I2C_Read... [23:32:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:32:00]Read from MH i2c: E2 [23:32:00]MH_I2C_Read... [23:32:00]Read from MH i2c: E2 FD 00 [23:32:00]MH_I2C_Read... [23:32:00]Read from MH i2c: E2 FD 00 4F 01 00 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 45 [23:32:00]RAPDU: 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 [23:32:00]wFMCommunicate OK [23:32:00]wFMCommunicate request_size=4 [23:32:00]MH_SAM_APDU [23:32:00]CAPDU: 80 17 00 00 [23:32:00]Write to MH i2c: E2 08 00 50 01 80 17 00 00 00 00 00 00 D1 [23:32:00]OFD Sender: No OFD packet to send [23:32:00]Write i2c OK [23:32:00]MH_I2C_Read... [23:32:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 209! [23:32:00]Read from MH i2c: E2 [23:32:00]MH_I2C_Read... [23:32:00]Read from MH i2c: E2 D4 00 [23:32:00]MH_I2C_Read... [23:32:00]Read from MH i2c: E2 D4 00 50 01 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 C2 [23:32:00]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:32:00]wFMCommunicate OK [23:32:00]SAM_PROTO_GetShiftData done [23:32:00]requested_item shift.sale.total_cash is exist - process it [23:32:00]requested_item shift.sale_refund.total is exist - process it [23:32:00]requested_item shift.sale_refund.total_cash is exist - process it [23:32:00]requested_item shift.buy.total is exist - process it [23:32:00]requested_item shift.buy.total_cash is exist - process it [23:32:00]produce_requested_data done [23:32:00]produce_requested_data return {"fm.sale.total":66028775.63,"fm.sale_refund.total":3143918.00,"fm.buy.total":0.00,"shift.sale.total":101599.93,"shift.sale.total_cash":97545.00,"shift.sale_refund.total":600.00,"shift.sale_refund.total_cash":600.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:32:00]process_action_free get_value [23:32:00]json_value_free [23:32:00]json_value_free done [23:32:00]process_json_proto returns [23:32:00]Send response to host [23:32:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":66028775.63,"fm.sale_refund.total":3143918.00,"fm.buy.total":0.00,"shift.sale.total":101599.93,"shift.sale.total_cash":97545.00,"shift.sale_refund.total":600.00,"shift.sale_refund.total_cash":600.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:32:00]free response buf [23:32:00]execute_script done [23:32:00]execute_script returns [23:32:00]free content buf [23:32:00]Sock 7.Close socket [23:32:00]Sock 7.Thread stoped [23:32:00]accept exits with 9 [23:32:00]New connection [23:32:00]New thread 3067485540 created [23:32:00]Thread 3067342180 joined [23:32:00]Waiting for new connection... [23:32:00] Sock 9.Parse request [23:32:00]Sock 9.Check first char [23:32:00]Sock 9.First char is OK [23:32:00]request: POST /json_proto HTTP/1.0 [23:32:00]Method: POST [23:32:00]URL: /json_proto [23:32:00]Method is POST - this is cgi request [23:32:00]url: /json_proto [23:32:00]query_string will be loaded in cgi processing [23:32:00]execute_cgi json_proto POST (null) [23:32:00]execute_cgi path=json_proto method=POST [23:32:00]POST find Content-Length [23:32:00]Host: 172.17.58.3:8080 [23:32:00]Content-Length: 331 [23:32:00]Content-Type: application/json [23:32:00] [23:32:00]POST finish read [23:32:00]Found Content-Length = 331 [23:32:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:32:00]execute_script... [23:32:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:32:00]POST & json_proto [23:32:00]process_json_proto [23:32:00]json parsed OK: [23:32:00]protocol is kg_v1.0 [23:32:00]action value=get_value [23:32:00]process_action get_value [23:32:00]cmd_get_value [23:32:00]process_action get_value done [23:32:00]requested_data is exist [23:32:00]produce_requested_data [23:32:00]requested_item fm.sale.total is exist - process it [23:32:00]SAM_PROTO_GetFMData [23:32:00]wFMCommunicate request_size=4 [23:32:00]MH_SAM_APDU [23:32:00]CAPDU: 80 13 03 00 [23:32:00]Write to MH i2c: E2 08 00 51 01 80 13 03 00 00 00 00 00 D1 [23:32:00]Write i2c OK [23:32:00]MH_I2C_Read... [23:32:01]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:32:01]Read from MH i2c: E2 [23:32:01]MH_I2C_Read... [23:32:01]Read from MH i2c: E2 FD 00 [23:32:01]MH_I2C_Read... [23:32:01]Read from MH i2c: E2 FD 00 51 01 00 C8 04 85 04 C4 04 6E 04 04 00 93 8F 01 00 69 04 A3 00 6F 04 04 00 9C 87 01 00 B1 04 05 00 7B EA 8F 89 01 70 04 05 00 A4 10 A3 0B 01 72 04 04 00 D7 D9 EC 7D 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 CC F1 CD 29 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 C2 BB 7B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F7 07 00 00 B1 04 04 00 F8 3C BD 12 70 04 04 00 90 29 B1 12 72 04 03 00 68 13 0C 00 04 7C 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 61 83 FD 01 90 00 DB [23:32:01]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 93 8F 01 00 69 04 A3 00 6F 04 04 00 9C 87 01 00 B1 04 05 00 7B EA 8F 89 01 70 04 05 00 A4 10 A3 0B 01 72 04 04 00 D7 D9 EC 7D 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 CC F1 CD 29 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 C2 BB 7B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F7 07 00 00 B1 04 04 00 F8 3C BD 12 70 04 04 00 90 29 B1 12 72 04 03 00 68 13 0C 00 04 7C 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 61 83 FD 01 90 00 [23:32:01]wFMCommunicate OK [23:32:01]wFMCommunicate request_size=4 [23:32:01]MH_SAM_APDU [23:32:01]CAPDU: 80 17 00 00 [23:32:01]Write to MH i2c: E2 08 00 52 01 80 17 00 00 00 00 00 00 D3 [23:32:01]Write i2c OK [23:32:01]MH_I2C_Read... [23:32:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:32:01]Read from MH i2c: E2 [23:32:01]MH_I2C_Read... [23:32:01]Read from MH i2c: E2 FD 00 [23:32:01]MH_I2C_Read... [23:32:01]Read from MH i2c: E2 FD 00 52 01 00 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 11 75 2A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7F [23:32:01]RAPDU: 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 11 75 2A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:32:01]wFMCommunicate OK [23:32:01]wFMCommunicate request_size=4 [23:32:01]MH_SAM_APDU [23:32:01]CAPDU: 80 17 00 00 [23:32:01]Write to MH i2c: E2 08 00 53 01 80 17 00 00 00 00 00 00 D4 [23:32:01]Write i2c OK [23:32:01]MH_I2C_Read... [23:32:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:32:01]Read from MH i2c: E2 [23:32:01]MH_I2C_Read... [23:32:01]Read from MH i2c: E2 FD 00 [23:32:01]MH_I2C_Read... [23:32:01]Read from MH i2c: E2 FD 00 53 01 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AC [23:32:01]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:32:01]wFMCommunicate OK [23:32:01]wFMCommunicate request_size=4 [23:32:01]MH_SAM_APDU [23:32:01]CAPDU: 80 17 00 00 [23:32:01]Write to MH i2c: E2 08 00 54 01 80 17 00 00 00 00 00 00 D5 [23:32:01]Write i2c OK [23:32:01]MH_I2C_Read... [23:32:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:32:02]Read from MH i2c: E2 [23:32:02]MH_I2C_Read... [23:32:02]Read from MH i2c: E2 FD 00 [23:32:02]MH_I2C_Read... [23:32:02]Read from MH i2c: E2 FD 00 54 01 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 4D [23:32:02]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:32:02]wFMCommunicate OK [23:32:02]wFMCommunicate request_size=4 [23:32:02]MH_SAM_APDU [23:32:02]CAPDU: 80 17 00 00 [23:32:02]Write to MH i2c: E2 08 00 55 01 80 17 00 00 00 00 00 00 D6 [23:32:02]Write i2c OK [23:32:02]MH_I2C_Read... [23:32:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [23:32:02]Read from MH i2c: E2 [23:32:02]MH_I2C_Read... [23:32:02]Read from MH i2c: E2 E5 00 [23:32:02]MH_I2C_Read... [23:32:02]Read from MH i2c: E2 E5 00 55 01 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 BA [23:32:02]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:32:02]wFMCommunicate OK [23:32:02]SAM_PROTO_GetFMData done [23:32:02]requested_item fm.sale_refund.total is exist - process it [23:32:02]requested_item fm.buy.total is exist - process it [23:32:02]requested_item shift.sale.total is exist - process it [23:32:02]SAM_PROTO_GetShiftData [23:32:02]wFMCommunicate request_size=4 [23:32:02]MH_SAM_APDU [23:32:02]CAPDU: 80 13 02 00 [23:32:02]Write to MH i2c: E2 08 00 56 01 80 13 02 00 00 00 00 00 D5 [23:32:02]Write i2c OK [23:32:02]MH_I2C_Read... [23:32:03]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:32:03]Read from MH i2c: E2 [23:32:03]MH_I2C_Read... [23:32:03]Read from MH i2c: E2 FD 00 [23:32:03]MH_I2C_Read... [23:32:03]Read from MH i2c: E2 FD 00 56 01 00 B7 04 AA 04 B3 04 6E 04 04 00 82 00 00 00 69 04 9C 00 6F 04 04 00 7F 00 00 00 B1 04 03 00 79 07 9B 70 04 03 00 84 D7 94 72 04 03 00 F5 2F 06 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 24 78 10 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 55 5F 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 95 00 6F 04 04 00 03 00 00 00 B1 04 02 00 60 EA 70 04 02 00 60 EA 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 ED 18 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 90 00 02 [23:32:03]RAPDU: B7 04 AA 04 B3 04 6E 04 04 00 82 00 00 00 69 04 9C 00 6F 04 04 00 7F 00 00 00 B1 04 03 00 79 07 9B 70 04 03 00 84 D7 94 72 04 03 00 F5 2F 06 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 24 78 10 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 55 5F 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 95 00 6F 04 04 00 03 00 00 00 B1 04 02 00 60 EA 70 04 02 00 60 EA 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 ED 18 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 90 00 [23:32:03]wFMCommunicate OK [23:32:03]wFMCommunicate request_size=4 [23:32:03]MH_SAM_APDU [23:32:03]CAPDU: 80 17 00 00 [23:32:03]Write to MH i2c: E2 08 00 57 01 80 17 00 00 00 00 00 00 D8 [23:32:03]Write i2c OK [23:32:03]MH_I2C_Read... [23:32:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:32:03]Read from MH i2c: E2 [23:32:03]MH_I2C_Read... [23:32:03]Read from MH i2c: E2 FD 00 [23:32:03]MH_I2C_Read... [23:32:03]Read from MH i2c: E2 FD 00 57 01 00 00 F6 03 01 00 01 F7 03 02 00 14 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 14 [23:32:03]RAPDU: 00 F6 03 01 00 01 F7 03 02 00 14 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:32:03]wFMCommunicate OK [23:32:03]wFMCommunicate request_size=4 [23:32:03]MH_SAM_APDU [23:32:03]CAPDU: 80 17 00 00 [23:32:03]Write to MH i2c: E2 08 00 58 01 80 17 00 00 00 00 00 00 D9 [23:32:03]Write i2c OK [23:32:03]MH_I2C_Read... [23:32:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:32:03]Read from MH i2c: E2 [23:32:03]MH_I2C_Read... [23:32:03]Read from MH i2c: E2 FD 00 [23:32:03]MH_I2C_Read... [23:32:03]Read from MH i2c: E2 FD 00 58 01 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7E [23:32:03]RAPDU: EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:32:04]wFMCommunicate OK [23:32:04]wFMCommunicate request_size=4 [23:32:04]MH_SAM_APDU [23:32:04]CAPDU: 80 17 00 00 [23:32:04]Write to MH i2c: E2 08 00 59 01 80 17 00 00 00 00 00 00 DA [23:32:04]Write i2c OK [23:32:04]MH_I2C_Read... [23:32:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:32:04]Read from MH i2c: E2 [23:32:04]MH_I2C_Read... [23:32:04]Read from MH i2c: E2 FD 00 [23:32:04]MH_I2C_Read... [23:32:04]Read from MH i2c: E2 FD 00 59 01 00 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 4F [23:32:04]RAPDU: 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 [23:32:04]wFMCommunicate OK [23:32:04]wFMCommunicate request_size=4 [23:32:04]MH_SAM_APDU [23:32:04]CAPDU: 80 17 00 00 [23:32:04]Write to MH i2c: E2 08 00 5A 01 80 17 00 00 00 00 00 00 DB [23:32:04]Write i2c OK [23:32:04]MH_I2C_Read... [23:32:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 209! [23:32:04]Read from MH i2c: E2 [23:32:04]MH_I2C_Read... [23:32:04]Read from MH i2c: E2 D4 00 [23:32:04]MH_I2C_Read... [23:32:04]Read from MH i2c: E2 D4 00 5A 01 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 CC [23:32:04]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:32:04]wFMCommunicate OK [23:32:04]SAM_PROTO_GetShiftData done [23:32:04]requested_item shift.sale.total_cash is exist - process it [23:32:04]requested_item shift.sale_refund.total is exist - process it [23:32:04]requested_item shift.sale_refund.total_cash is exist - process it [23:32:04]requested_item shift.buy.total is exist - process it [23:32:04]requested_item shift.buy.total_cash is exist - process it [23:32:04]produce_requested_data done [23:32:04]produce_requested_data return {"fm.sale.total":66028775.63,"fm.sale_refund.total":3143918.00,"fm.buy.total":0.00,"shift.sale.total":101599.93,"shift.sale.total_cash":97545.00,"shift.sale_refund.total":600.00,"shift.sale_refund.total_cash":600.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:32:04]process_action_free get_value [23:32:04]json_value_free [23:32:04]json_value_free done [23:32:04]process_json_proto returns [23:32:04]Send response to host [23:32:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":66028775.63,"fm.sale_refund.total":3143918.00,"fm.buy.total":0.00,"shift.sale.total":101599.93,"shift.sale.total_cash":97545.00,"shift.sale_refund.total":600.00,"shift.sale_refund.total_cash":600.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:32:04]free response buf [23:32:04]execute_script done [23:32:04]execute_script returns [23:32:04]free content buf [23:32:04]Sock 9.Close socket [23:32:04]Sock 9.Thread stoped [23:32:04]accept exits with 7 [23:32:04]New connection [23:32:04]New thread 3067342180 created [23:32:04]Thread 3067485540 joined [23:32:04]Waiting for new connection... [23:32:04] Sock 7.Parse request [23:32:04]Sock 7.Check first char [23:32:04]Sock 7.First char is OK [23:32:04]request: POST /json_proto HTTP/1.0 [23:32:04]Method: POST [23:32:04]URL: /json_proto [23:32:04]Method is POST - this is cgi request [23:32:04]url: /json_proto [23:32:04]query_string will be loaded in cgi processing [23:32:04]execute_cgi json_proto POST (null) [23:32:04]execute_cgi path=json_proto method=POST [23:32:04]POST find Content-Length [23:32:04]Host: 172.17.58.3:8080 [23:32:04]Content-Length: 251 [23:32:04]Content-Type: application/json [23:32:04] [23:32:04]POST finish read [23:32:04]Found Content-Length = 251 [23:32:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0422\u0430\u0438\u0440\u043E\u0432\u0430 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:32:04]execute_script... [23:32:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0422\u0430\u0438\u0440\u043E\u0432\u0430 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:32:04]POST & json_proto [23:32:04]process_json_proto [23:32:04]json parsed OK: [23:32:04]protocol is kg_v1.0 [23:32:04]action value=x_report [23:32:04]process_action x_report [23:32:04]cmd_x_report [23:32:04]MH_GetDate [23:32:04]Write to MH i2c: F0 00 00 5B 01 4B [23:32:04]Write i2c OK [23:32:04]MH_I2C_Read... [23:32:04]Read from MH i2c: F0 [23:32:04]MH_I2C_Read... [23:32:04]Read from MH i2c: F0 09 00 [23:32:04]MH_I2C_Read... [23:32:04]Read from MH i2c: F0 09 00 5B 01 00 F5 EC BB 66 DC E4 6D 64 E7 [23:32:04]GetLastDocTimeStamp 1723591777 [23:32:04]current date 1723591925 [23:32:04]FM_GetShiftState [23:32:04]SAM_PROTO_GetShiftState [23:32:04]wFMCommunicate request_size=4 [23:32:04]MH_SAM_APDU [23:32:04]CAPDU: 80 13 01 00 [23:32:04]Write to MH i2c: E2 08 00 5C 01 80 13 01 00 00 00 00 00 DA [23:32:04]Write i2c OK [23:32:04]MH_I2C_Read... [23:32:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:32:04]Read from MH i2c: E2 [23:32:04]MH_I2C_Read... [23:32:04]Read from MH i2c: E2 0E 00 [23:32:04]MH_I2C_Read... [23:32:04]Read from MH i2c: E2 0E 00 5C 01 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 F8 [23:32:04]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [23:32:04]wFMCommunicate OK [23:32:04]SAM_PROTO_GetShiftState done [23:32:04]FM_GetShiftState done [23:32:04]KKMCreateXReportDocument [23:32:04]Load OK [23:32:04]Malloc new data [23:32:04]MH_GetDate [23:32:04]Write to MH i2c: F0 00 00 5D 01 4D [23:32:04]Write i2c OK [23:32:04]MH_I2C_Read... [23:32:04]Read from MH i2c: F0 [23:32:04]MH_I2C_Read... [23:32:04]Read from MH i2c: F0 09 00 [23:32:04]MH_I2C_Read... [23:32:04]Read from MH i2c: F0 09 00 5D 01 00 F5 EC BB 66 DC E4 6D 64 E9 [23:32:05]Malloc new data [23:32:05]Malloc new data [23:32:05]wFMCommunicate request_size=4 [23:32:05]MH_SAM_APDU [23:32:05]CAPDU: 80 11 00 00 [23:32:05]Write to MH i2c: E2 08 00 5E 01 80 11 00 00 00 00 00 00 D9 [23:32:05]Write i2c OK [23:32:05]MH_I2C_Read... [23:32:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:32:05]Read from MH i2c: E2 [23:32:05]MH_I2C_Read... [23:32:05]Read from MH i2c: E2 17 00 [23:32:05]MH_I2C_Read... [23:32:05]Read from MH i2c: E2 17 00 5E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 2D [23:32:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [23:32:05]wFMCommunicate OK [23:32:05]SAM_PROTO_GetFieldsCounters [23:32:05]wFMCommunicate request_size=4 [23:32:05]MH_SAM_APDU [23:32:05]CAPDU: 80 13 00 00 [23:32:05]Write to MH i2c: E2 08 00 5F 01 80 13 00 00 00 00 00 00 DC [23:32:05]Write i2c OK [23:32:05]MH_I2C_Read... [23:32:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:32:05]Read from MH i2c: E2 [23:32:05]MH_I2C_Read... [23:32:05]Read from MH i2c: E2 62 00 [23:32:05]MH_I2C_Read... [23:32:05]Read from MH i2c: E2 62 00 5F 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 33 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [23:32:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 33 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:32:05]wFMCommunicate OK [23:32:05]SAM_PROTO_GetFieldsCounters done [23:32:05]Malloc new data [23:32:05]Malloc new data [23:32:05]Malloc new data [23:32:05]KKMCreateXReportDocument OK [23:32:05]KKMSetXReportData OK [23:32:05]KKMPrepareXReportFMData [23:32:05]SAM_PROTO_GetShiftData [23:32:05]wFMCommunicate request_size=4 [23:32:05]MH_SAM_APDU [23:32:05]CAPDU: 80 13 02 00 [23:32:05]Write to MH i2c: E2 08 00 60 01 80 13 02 00 00 00 00 00 DF [23:32:05]Write i2c OK [23:32:05]MH_I2C_Read... [23:32:05]OFD Sender: No OFD packet to send [23:32:05]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:32:05]Read from MH i2c: E2 [23:32:05]MH_I2C_Read... [23:32:05]Read from MH i2c: E2 FD 00 [23:32:05]MH_I2C_Read... [23:32:05]Read from MH i2c: E2 FD 00 60 01 00 B7 04 AA 04 B3 04 6E 04 04 00 82 00 00 00 69 04 9C 00 6F 04 04 00 7F 00 00 00 B1 04 03 00 79 07 9B 70 04 03 00 84 D7 94 72 04 03 00 F5 2F 06 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 24 78 10 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 55 5F 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 95 00 6F 04 04 00 03 00 00 00 B1 04 02 00 60 EA 70 04 02 00 60 EA 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 ED 18 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 90 00 0C [23:32:05]RAPDU: B7 04 AA 04 B3 04 6E 04 04 00 82 00 00 00 69 04 9C 00 6F 04 04 00 7F 00 00 00 B1 04 03 00 79 07 9B 70 04 03 00 84 D7 94 72 04 03 00 F5 2F 06 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 24 78 10 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 55 5F 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 95 00 6F 04 04 00 03 00 00 00 B1 04 02 00 60 EA 70 04 02 00 60 EA 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 ED 18 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 90 00 [23:32:05]wFMCommunicate OK [23:32:05]wFMCommunicate request_size=4 [23:32:05]MH_SAM_APDU [23:32:05]CAPDU: 80 17 00 00 [23:32:05]Write to MH i2c: E2 08 00 61 01 80 17 00 00 00 00 00 00 E2 [23:32:05]Write i2c OK [23:32:05]MH_I2C_Read... [23:32:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:32:06]Read from MH i2c: E2 [23:32:06]MH_I2C_Read... [23:32:06]Read from MH i2c: E2 FD 00 [23:32:06]MH_I2C_Read... [23:32:06]Read from MH i2c: E2 FD 00 61 01 00 00 F6 03 01 00 01 F7 03 02 00 14 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1E [23:32:06]RAPDU: 00 F6 03 01 00 01 F7 03 02 00 14 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:32:06]wFMCommunicate OK [23:32:06]wFMCommunicate request_size=4 [23:32:06]MH_SAM_APDU [23:32:06]CAPDU: 80 17 00 00 [23:32:06]Write to MH i2c: E2 08 00 62 01 80 17 00 00 00 00 00 00 E3 [23:32:06]Write i2c OK [23:32:06]MH_I2C_Read... [23:32:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:32:06]Read from MH i2c: E2 [23:32:06]MH_I2C_Read... [23:32:06]Read from MH i2c: E2 FD 00 [23:32:06]MH_I2C_Read... [23:32:06]Read from MH i2c: E2 FD 00 62 01 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 88 [23:32:06]RAPDU: EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:32:06]wFMCommunicate OK [23:32:06]wFMCommunicate request_size=4 [23:32:06]MH_SAM_APDU [23:32:06]CAPDU: 80 17 00 00 [23:32:06]Write to MH i2c: E2 08 00 63 01 80 17 00 00 00 00 00 00 E4 [23:32:06]Write i2c OK [23:32:06]MH_I2C_Read... [23:32:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:32:07]Read from MH i2c: E2 [23:32:07]MH_I2C_Read... [23:32:07]Read from MH i2c: E2 FD 00 [23:32:07]MH_I2C_Read... [23:32:07]Read from MH i2c: E2 FD 00 63 01 00 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 59 [23:32:07]RAPDU: 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 [23:32:07]wFMCommunicate OK [23:32:07]wFMCommunicate request_size=4 [23:32:07]MH_SAM_APDU [23:32:07]CAPDU: 80 17 00 00 [23:32:07]Write to MH i2c: E2 08 00 64 01 80 17 00 00 00 00 00 00 E5 [23:32:07]Write i2c OK [23:32:07]MH_I2C_Read... [23:32:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 209! [23:32:07]Read from MH i2c: E2 [23:32:07]MH_I2C_Read... [23:32:07]Read from MH i2c: E2 D4 00 [23:32:07]MH_I2C_Read... [23:32:07]Read from MH i2c: E2 D4 00 64 01 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 D6 [23:32:07]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:32:07]wFMCommunicate OK [23:32:07]SAM_PROTO_GetShiftData done [23:32:07]1194 (1203) - счетчики итогов смены [23:32:07] 1134 (4) - 130 - количество чеков со всеми признаками расчетов [23:32:07] 1129 (156) - счетчики операций «приход» [23:32:07] 1135 (4) - 127 - количество чеков по признаку расчетов [23:32:07] 1201 (3) - 101599.93 - общая итоговая сумма в чеках [23:32:07] 1136 (3) - 97545.00 - итоговая сумма в чеках наличными [23:32:07] 1138 (3) - 4054.93 - итоговая сумма в чеках безналичными [23:32:07] 1024 (123) - суммы налогов [23:32:07] 1006 (9) - суммы НДС [23:32:07] 1010 (1) - 0% - код ставки НДС [23:32:07] 1011 (0) - 0.00 - сумма НДС по ставке [23:32:07] 1006 (12) - суммы НДС [23:32:07] 1010 (1) - 12% - код ставки НДС [23:32:07] 1011 (3) - 10793.32 - сумма НДС по ставке [23:32:07] 1007 (9) - суммы НСП [23:32:07] 1014 (1) - 0% - код ставки НСП [23:32:07] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:07] 1007 (12) - суммы НСП [23:32:07] 1014 (1) - 1% - код ставки НСП [23:32:07] 1015 (3) - 899.41 - сумма НСП по ставке [23:32:07] 1007 (9) - суммы НСП [23:32:07] 1014 (1) - 2% - код ставки НСП [23:32:07] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:07] 1007 (9) - суммы НСП [23:32:07] 1014 (1) - 3% - код ставки НСП [23:32:07] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:07] 1007 (9) - суммы НСП [23:32:07] 1014 (1) - 5% - код ставки НСП [23:32:07] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:07] 1007 (9) - суммы НСП [23:32:07] 1014 (1) - 0,50% - код ставки НСП [23:32:07] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:07] 1007 (9) - суммы НСП [23:32:07] 1014 (1) - 1,50% - код ставки НСП [23:32:07] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:07] 1130 (149) - счетчики операций «возврат прихода» [23:32:07] 1135 (4) - 3 - количество чеков по признаку расчетов [23:32:07] 1201 (2) - 600.00 - общая итоговая сумма в чеках [23:32:07] 1136 (2) - 600.00 - итоговая сумма в чеках наличными [23:32:07] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:32:07] 1024 (121) - суммы налогов [23:32:07] 1006 (9) - суммы НДС [23:32:07] 1010 (1) - 0% - код ставки НДС [23:32:07] 1011 (0) - 0.00 - сумма НДС по ставке [23:32:07] 1006 (11) - суммы НДС [23:32:07] 1010 (1) - 12% - код ставки НДС [23:32:07] 1011 (2) - 63.81 - сумма НДС по ставке [23:32:07] 1007 (9) - суммы НСП [23:32:07] 1014 (1) - 0% - код ставки НСП [23:32:07] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:07] 1007 (11) - суммы НСП [23:32:07] 1014 (1) - 1% - код ставки НСП [23:32:07] 1015 (2) - 5.32 - сумма НСП по ставке [23:32:07] 1007 (9) - суммы НСП [23:32:07] 1014 (1) - 2% - код ставки НСП [23:32:07] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:07] 1007 (9) - суммы НСП [23:32:07] 1014 (1) - 3% - код ставки НСП [23:32:07] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:07] 1007 (9) - суммы НСП [23:32:07] 1014 (1) - 5% - код ставки НСП [23:32:07] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:07] 1007 (9) - суммы НСП [23:32:07] 1014 (1) - 0,50% - код ставки НСП [23:32:07] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:07] 1007 (9) - суммы НСП [23:32:07] 1014 (1) - 1,50% - код ставки НСП [23:32:07] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:07] 1131 (141) - счетчики операций «расход» [23:32:07] 1135 (4) - 0 - количество чеков по признаку расчетов [23:32:07] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:32:07] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:32:07] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:32:07] 1024 (117) - суммы налогов [23:32:07] 1006 (9) - суммы НДС [23:32:07] 1010 (1) - 0% - код ставки НДС [23:32:07] 1011 (0) - 0.00 - сумма НДС по ставке [23:32:07] 1006 (9) - суммы НДС [23:32:07] 1010 (1) - 12% - код ставки НДС [23:32:07] 1011 (0) - 0.00 - сумма НДС по ставке [23:32:07] 1007 (9) - суммы НСП [23:32:07] 1014 (1) - 0% - код ставки НСП [23:32:07] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:07] 1007 (9) - суммы НСП [23:32:07] 1014 (1) - 1% - код ставки НСП [23:32:07] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:07] 1007 (9) - суммы НСП [23:32:07] 1014 (1) - 2% - код ставки НСП [23:32:07] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:07] 1007 (9) - суммы НСП [23:32:07] 1014 (1) - 3% - код ставки НСП [23:32:07] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:07] 1007 (9) - суммы НСП [23:32:07] 1014 (1) - 5% - код ставки НСП [23:32:07] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:08] 1007 (9) - суммы НСП [23:32:08] 1014 (1) - 0,50% - код ставки НСП [23:32:08] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:08] 1007 (9) - суммы НСП [23:32:08] 1014 (1) - 1,50% - код ставки НСП [23:32:08] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:08] 1132 (141) - счетчики операций «возврат расхода» [23:32:08] 1135 (4) - 0 - количество чеков по признаку расчетов [23:32:08] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:32:08] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:32:08] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:32:08] 1024 (117) - суммы налогов [23:32:08] 1006 (9) - суммы НДС [23:32:08] 1010 (1) - 0% - код ставки НДС [23:32:08] 1011 (0) - 0.00 - сумма НДС по ставке [23:32:08] 1006 (9) - суммы НДС [23:32:08] 1010 (1) - 12% - код ставки НДС [23:32:08] 1011 (0) - 0.00 - сумма НДС по ставке [23:32:08] 1007 (9) - суммы НСП [23:32:08] 1014 (1) - 0% - код ставки НСП [23:32:08] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:08] 1007 (9) - суммы НСП [23:32:08] 1014 (1) - 1% - код ставки НСП [23:32:08] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:08] 1007 (9) - суммы НСП [23:32:08] 1014 (1) - 2% - код ставки НСП [23:32:08] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:08] 1007 (9) - суммы НСП [23:32:08] 1014 (1) - 3% - код ставки НСП [23:32:08] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:08] 1007 (9) - суммы НСП [23:32:08] 1014 (1) - 5% - код ставки НСП [23:32:08] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:08] 1007 (9) - суммы НСП [23:32:08] 1014 (1) - 0,50% - код ставки НСП [23:32:08] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:08] 1007 (9) - суммы НСП [23:32:08] 1014 (1) - 1,50% - код ставки НСП [23:32:08] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:08] 1133 (588) - - счетчики коррекции - не используются [23:32:08]SetTLVBufToDocument [23:32:08]Processing tag 1194 (04AA) [23:32:08]Load OK [23:32:08]SetTLVBufToDocument [23:32:08]Processing tag 1134 (046E) [23:32:08]Malloc new data [23:32:08]Processing tag 1129 (0469) [23:32:08]Load OK [23:32:08]SetTLVBufToDocument [23:32:08]Processing tag 1135 (046F) [23:32:08]Malloc new data [23:32:08]Processing tag 1201 (04B1) [23:32:08]Malloc new data [23:32:08]Processing tag 1136 (0470) [23:32:08]Malloc new data [23:32:08]Processing tag 1138 (0472) [23:32:08]Malloc new data [23:32:08]Processing tag 1024 (0400) [23:32:08]Load OK [23:32:08]SetTLVBufToDocument [23:32:08]Processing tag 1006 (03EE) [23:32:08]Load OK [23:32:08]SetTLVBufToDocument [23:32:08]Processing tag 1010 (03F2) [23:32:08]Malloc new data [23:32:08]Processing tag 1011 (03F3) [23:32:08]Malloc new data [23:32:08]SetTLVBufToDocument err=0 [23:32:08]Processing tag 1006 (03EE) [23:32:08]Load OK [23:32:08]SetTLVBufToDocument [23:32:08]Processing tag 1010 (03F2) [23:32:08]Malloc new data [23:32:08]Processing tag 1011 (03F3) [23:32:08]Malloc new data [23:32:08]SetTLVBufToDocument err=0 [23:32:08]Processing tag 1007 (03EF) [23:32:08]Load OK [23:32:08]SetTLVBufToDocument [23:32:08]Processing tag 1014 (03F6) [23:32:08]Malloc new data [23:32:08]Processing tag 1015 (03F7) [23:32:08]Malloc new data [23:32:08]SetTLVBufToDocument err=0 [23:32:08]Processing tag 1007 (03EF) [23:32:08]Load OK [23:32:08]SetTLVBufToDocument [23:32:08]Processing tag 1014 (03F6) [23:32:08]Malloc new data [23:32:08]Processing tag 1015 (03F7) [23:32:08]Malloc new data [23:32:08]SetTLVBufToDocument err=0 [23:32:08]Processing tag 1007 (03EF) [23:32:08]Load OK [23:32:08]SetTLVBufToDocument [23:32:08]Processing tag 1014 (03F6) [23:32:08]Malloc new data [23:32:08]Processing tag 1015 (03F7) [23:32:08]Malloc new data [23:32:08]SetTLVBufToDocument err=0 [23:32:08]Processing tag 1007 (03EF) [23:32:08]Load OK [23:32:08]SetTLVBufToDocument [23:32:08]Processing tag 1014 (03F6) [23:32:08]Malloc new data [23:32:08]Processing tag 1015 (03F7) [23:32:08]Malloc new data [23:32:08]SetTLVBufToDocument err=0 [23:32:08]Processing tag 1007 (03EF) [23:32:08]Load OK [23:32:08]SetTLVBufToDocument [23:32:08]Processing tag 1014 (03F6) [23:32:08]Malloc new data [23:32:08]Processing tag 1015 (03F7) [23:32:08]Malloc new data [23:32:08]SetTLVBufToDocument err=0 [23:32:08]Processing tag 1007 (03EF) [23:32:08]Load OK [23:32:08]SetTLVBufToDocument [23:32:08]Processing tag 1014 (03F6) [23:32:08]Malloc new data [23:32:08]Processing tag 1015 (03F7) [23:32:08]Malloc new data [23:32:08]SetTLVBufToDocument err=0 [23:32:08]Processing tag 1007 (03EF) [23:32:08]Load OK [23:32:08]SetTLVBufToDocument [23:32:08]Processing tag 1014 (03F6) [23:32:08]Malloc new data [23:32:08]Processing tag 1015 (03F7) [23:32:08]Malloc new data [23:32:08]SetTLVBufToDocument err=0 [23:32:08]SetTLVBufToDocument err=0 [23:32:08]SetTLVBufToDocument err=0 [23:32:08]Processing tag 1130 (046A) [23:32:08]Load OK [23:32:08]SetTLVBufToDocument [23:32:08]Processing tag 1135 (046F) [23:32:08]Malloc new data [23:32:08]Processing tag 1201 (04B1) [23:32:08]Malloc new data [23:32:08]Processing tag 1136 (0470) [23:32:08]Malloc new data [23:32:08]Processing tag 1138 (0472) [23:32:08]Malloc new data [23:32:08]Processing tag 1024 (0400) [23:32:08]Load OK [23:32:08]SetTLVBufToDocument [23:32:08]Processing tag 1006 (03EE) [23:32:08]Load OK [23:32:08]SetTLVBufToDocument [23:32:08]Processing tag 1010 (03F2) [23:32:08]Malloc new data [23:32:08]Processing tag 1011 (03F3) [23:32:08]Malloc new data [23:32:08]SetTLVBufToDocument err=0 [23:32:08]Processing tag 1006 (03EE) [23:32:08]Load OK [23:32:08]SetTLVBufToDocument [23:32:08]Processing tag 1010 (03F2) [23:32:08]Malloc new data [23:32:08]Processing tag 1011 (03F3) [23:32:08]Malloc new data [23:32:08]SetTLVBufToDocument err=0 [23:32:08]Processing tag 1007 (03EF) [23:32:08]Load OK [23:32:08]SetTLVBufToDocument [23:32:08]Processing tag 1014 (03F6) [23:32:08]Malloc new data [23:32:08]Processing tag 1015 (03F7) [23:32:08]Malloc new data [23:32:08]SetTLVBufToDocument err=0 [23:32:08]Processing tag 1007 (03EF) [23:32:08]Load OK [23:32:08]SetTLVBufToDocument [23:32:08]Processing tag 1014 (03F6) [23:32:08]Malloc new data [23:32:08]Processing tag 1015 (03F7) [23:32:08]Malloc new data [23:32:08]SetTLVBufToDocument err=0 [23:32:08]Processing tag 1007 (03EF) [23:32:08]Load OK [23:32:08]SetTLVBufToDocument [23:32:08]Processing tag 1014 (03F6) [23:32:08]Malloc new data [23:32:08]Processing tag 1015 (03F7) [23:32:08]Malloc new data [23:32:08]SetTLVBufToDocument err=0 [23:32:08]Processing tag 1007 (03EF) [23:32:08]Load OK [23:32:08]SetTLVBufToDocument [23:32:08]Processing tag 1014 (03F6) [23:32:08]Malloc new data [23:32:08]Processing tag 1015 (03F7) [23:32:08]Malloc new data [23:32:08]SetTLVBufToDocument err=0 [23:32:08]Processing tag 1007 (03EF) [23:32:08]Load OK [23:32:08]SetTLVBufToDocument [23:32:08]Processing tag 1014 (03F6) [23:32:08]Malloc new data [23:32:08]Processing tag 1015 (03F7) [23:32:08]Malloc new data [23:32:08]SetTLVBufToDocument err=0 [23:32:08]Processing tag 1007 (03EF) [23:32:08]Load OK [23:32:08]SetTLVBufToDocument [23:32:08]Processing tag 1014 (03F6) [23:32:08]Malloc new data [23:32:08]Processing tag 1015 (03F7) [23:32:08]Malloc new data [23:32:08]SetTLVBufToDocument err=0 [23:32:08]Processing tag 1007 (03EF) [23:32:08]Load OK [23:32:08]SetTLVBufToDocument [23:32:08]Processing tag 1014 (03F6) [23:32:08]Malloc new data [23:32:08]Processing tag 1015 (03F7) [23:32:08]Malloc new data [23:32:08]SetTLVBufToDocument err=0 [23:32:08]SetTLVBufToDocument err=0 [23:32:08]SetTLVBufToDocument err=0 [23:32:08]Processing tag 1131 (046B) [23:32:08]Load OK [23:32:08]SetTLVBufToDocument [23:32:08]Processing tag 1135 (046F) [23:32:08]Malloc new data [23:32:08]Processing tag 1201 (04B1) [23:32:08]Malloc new data [23:32:08]Processing tag 1136 (0470) [23:32:08]Malloc new data [23:32:08]Processing tag 1138 (0472) [23:32:08]Malloc new data [23:32:08]Processing tag 1024 (0400) [23:32:08]Load OK [23:32:08]SetTLVBufToDocument [23:32:08]Processing tag 1006 (03EE) [23:32:08]Load OK [23:32:08]SetTLVBufToDocument [23:32:08]Processing tag 1010 (03F2) [23:32:08]Malloc new data [23:32:08]Processing tag 1011 (03F3) [23:32:08]Malloc new data [23:32:08]SetTLVBufToDocument err=0 [23:32:08]Processing tag 1006 (03EE) [23:32:08]Load OK [23:32:08]SetTLVBufToDocument [23:32:08]Processing tag 1010 (03F2) [23:32:08]Malloc new data [23:32:08]Processing tag 1011 (03F3) [23:32:08]Malloc new data [23:32:08]SetTLVBufToDocument err=0 [23:32:08]Processing tag 1007 (03EF) [23:32:08]Load OK [23:32:08]SetTLVBufToDocument [23:32:08]Processing tag 1014 (03F6) [23:32:08]Malloc new data [23:32:08]Processing tag 1015 (03F7) [23:32:08]Malloc new data [23:32:08]SetTLVBufToDocument err=0 [23:32:08]Processing tag 1007 (03EF) [23:32:08]Load OK [23:32:08]SetTLVBufToDocument [23:32:08]Processing tag 1014 (03F6) [23:32:08]Malloc new data [23:32:08]Processing tag 1015 (03F7) [23:32:08]Malloc new data [23:32:08]SetTLVBufToDocument err=0 [23:32:08]Processing tag 1007 (03EF) [23:32:08]Load OK [23:32:08]SetTLVBufToDocument [23:32:08]Processing tag 1014 (03F6) [23:32:08]Malloc new data [23:32:08]Processing tag 1015 (03F7) [23:32:08]Malloc new data [23:32:08]SetTLVBufToDocument err=0 [23:32:08]Processing tag 1007 (03EF) [23:32:08]Load OK [23:32:08]SetTLVBufToDocument [23:32:08]Processing tag 1014 (03F6) [23:32:08]Malloc new data [23:32:08]Processing tag 1015 (03F7) [23:32:08]Malloc new data [23:32:08]SetTLVBufToDocument err=0 [23:32:08]Processing tag 1007 (03EF) [23:32:08]Load OK [23:32:08]SetTLVBufToDocument [23:32:08]Processing tag 1014 (03F6) [23:32:08]Malloc new data [23:32:08]Processing tag 1015 (03F7) [23:32:08]Malloc new data [23:32:08]SetTLVBufToDocument err=0 [23:32:08]Processing tag 1007 (03EF) [23:32:08]Load OK [23:32:08]SetTLVBufToDocument [23:32:08]Processing tag 1014 (03F6) [23:32:08]Malloc new data [23:32:08]Processing tag 1015 (03F7) [23:32:08]Malloc new data [23:32:08]SetTLVBufToDocument err=0 [23:32:08]Processing tag 1007 (03EF) [23:32:08]Load OK [23:32:08]SetTLVBufToDocument [23:32:08]Processing tag 1014 (03F6) [23:32:08]Malloc new data [23:32:08]Processing tag 1015 (03F7) [23:32:08]Malloc new data [23:32:08]SetTLVBufToDocument err=0 [23:32:08]SetTLVBufToDocument err=0 [23:32:08]SetTLVBufToDocument err=0 [23:32:08]Processing tag 1132 (046C) [23:32:08]Load OK [23:32:08]SetTLVBufToDocument [23:32:08]Processing tag 1135 (046F) [23:32:08]Malloc new data [23:32:08]Processing tag 1201 (04B1) [23:32:08]Malloc new data [23:32:08]Processing tag 1136 (0470) [23:32:08]Malloc new data [23:32:08]Processing tag 1138 (0472) [23:32:08]Malloc new data [23:32:08]Processing tag 1024 (0400) [23:32:08]Load OK [23:32:08]SetTLVBufToDocument [23:32:08]Processing tag 1006 (03EE) [23:32:08]Load OK [23:32:08]SetTLVBufToDocument [23:32:08]Processing tag 1010 (03F2) [23:32:08]Malloc new data [23:32:08]Processing tag 1011 (03F3) [23:32:08]Malloc new data [23:32:08]SetTLVBufToDocument err=0 [23:32:08]Processing tag 1006 (03EE) [23:32:08]Load OK [23:32:08]SetTLVBufToDocument [23:32:08]Processing tag 1010 (03F2) [23:32:08]Malloc new data [23:32:08]Processing tag 1011 (03F3) [23:32:08]Malloc new data [23:32:08]SetTLVBufToDocument err=0 [23:32:08]Processing tag 1007 (03EF) [23:32:08]Load OK [23:32:08]SetTLVBufToDocument [23:32:08]Processing tag 1014 (03F6) [23:32:08]Malloc new data [23:32:08]Processing tag 1015 (03F7) [23:32:08]Malloc new data [23:32:08]SetTLVBufToDocument err=0 [23:32:08]Processing tag 1007 (03EF) [23:32:08]Load OK [23:32:08]SetTLVBufToDocument [23:32:08]Processing tag 1014 (03F6) [23:32:08]Malloc new data [23:32:08]Processing tag 1015 (03F7) [23:32:08]Malloc new data [23:32:08]SetTLVBufToDocument err=0 [23:32:08]Processing tag 1007 (03EF) [23:32:08]Load OK [23:32:08]SetTLVBufToDocument [23:32:08]Processing tag 1014 (03F6) [23:32:08]Malloc new data [23:32:08]Processing tag 1015 (03F7) [23:32:08]Malloc new data [23:32:08]SetTLVBufToDocument err=0 [23:32:08]Processing tag 1007 (03EF) [23:32:08]Load OK [23:32:08]SetTLVBufToDocument [23:32:08]Processing tag 1014 (03F6) [23:32:08]Malloc new data [23:32:08]Processing tag 1015 (03F7) [23:32:08]Malloc new data [23:32:08]SetTLVBufToDocument err=0 [23:32:08]Processing tag 1007 (03EF) [23:32:08]Load OK [23:32:08]SetTLVBufToDocument [23:32:08]Processing tag 1014 (03F6) [23:32:08]Malloc new data [23:32:08]Processing tag 1015 (03F7) [23:32:08]Malloc new data [23:32:08]SetTLVBufToDocument err=0 [23:32:08]Processing tag 1007 (03EF) [23:32:08]Load OK [23:32:08]SetTLVBufToDocument [23:32:08]Processing tag 1014 (03F6) [23:32:08]Malloc new data [23:32:08]Processing tag 1015 (03F7) [23:32:08]Malloc new data [23:32:08]SetTLVBufToDocument err=0 [23:32:08]Processing tag 1007 (03EF) [23:32:08]Load OK [23:32:08]SetTLVBufToDocument [23:32:08]Processing tag 1014 (03F6) [23:32:08]Malloc new data [23:32:08]Processing tag 1015 (03F7) [23:32:08]Malloc new data [23:32:08]SetTLVBufToDocument err=0 [23:32:08]SetTLVBufToDocument err=0 [23:32:08]SetTLVBufToDocument err=0 [23:32:08]Processing tag 1133 (046D) [23:32:08]Malloc new data [23:32:08]SetTLVBufToDocument err=0 [23:32:08]SetTLVBufToDocument err=0 [23:32:08]Malloc new data [23:32:08]SAM_PROTO_GetFMData [23:32:08]wFMCommunicate request_size=4 [23:32:08]MH_SAM_APDU [23:32:08]CAPDU: 80 13 03 00 [23:32:08]Write to MH i2c: E2 08 00 65 01 80 13 03 00 00 00 00 00 E5 [23:32:08]Write i2c OK [23:32:08]MH_I2C_Read... [23:32:09]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:32:09]Read from MH i2c: E2 [23:32:09]MH_I2C_Read... [23:32:09]Read from MH i2c: E2 FD 00 [23:32:09]MH_I2C_Read... [23:32:09]Read from MH i2c: E2 FD 00 65 01 00 C8 04 85 04 C4 04 6E 04 04 00 93 8F 01 00 69 04 A3 00 6F 04 04 00 9C 87 01 00 B1 04 05 00 7B EA 8F 89 01 70 04 05 00 A4 10 A3 0B 01 72 04 04 00 D7 D9 EC 7D 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 CC F1 CD 29 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 C2 BB 7B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F7 07 00 00 B1 04 04 00 F8 3C BD 12 70 04 04 00 90 29 B1 12 72 04 03 00 68 13 0C 00 04 7C 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 61 83 FD 01 90 00 EF [23:32:09]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 93 8F 01 00 69 04 A3 00 6F 04 04 00 9C 87 01 00 B1 04 05 00 7B EA 8F 89 01 70 04 05 00 A4 10 A3 0B 01 72 04 04 00 D7 D9 EC 7D 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 CC F1 CD 29 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 C2 BB 7B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F7 07 00 00 B1 04 04 00 F8 3C BD 12 70 04 04 00 90 29 B1 12 72 04 03 00 68 13 0C 00 04 7C 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 61 83 FD 01 90 00 [23:32:09]wFMCommunicate OK [23:32:09]wFMCommunicate request_size=4 [23:32:09]MH_SAM_APDU [23:32:09]CAPDU: 80 17 00 00 [23:32:09]Write to MH i2c: E2 08 00 66 01 80 17 00 00 00 00 00 00 E7 [23:32:09]Write i2c OK [23:32:09]MH_I2C_Read... [23:32:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:32:09]Read from MH i2c: E2 [23:32:09]MH_I2C_Read... [23:32:09]Read from MH i2c: E2 FD 00 [23:32:09]MH_I2C_Read... [23:32:09]Read from MH i2c: E2 FD 00 66 01 00 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 11 75 2A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 93 [23:32:10]RAPDU: 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 11 75 2A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:32:10]wFMCommunicate OK [23:32:10]wFMCommunicate request_size=4 [23:32:10]MH_SAM_APDU [23:32:10]CAPDU: 80 17 00 00 [23:32:10]Write to MH i2c: E2 08 00 67 01 80 17 00 00 00 00 00 00 E8 [23:32:10]Write i2c OK [23:32:10]MH_I2C_Read... [23:32:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:32:10]Read from MH i2c: E2 [23:32:10]MH_I2C_Read... [23:32:10]Read from MH i2c: E2 FD 00 [23:32:10]MH_I2C_Read... [23:32:10]Read from MH i2c: E2 FD 00 67 01 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 OFD Sender: No OFD packet to send [23:32:10]00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 C0 [23:32:10]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:32:10]wFMCommunicate OK [23:32:10]wFMCommunicate request_size=4 [23:32:10]MH_SAM_APDU [23:32:10]CAPDU: 80 17 00 00 [23:32:10]Write to MH i2c: E2 08 00 68 01 80 17 00 00 00 00 00 00 E9 [23:32:10]Write i2c OK [23:32:10]MH_I2C_Read... [23:32:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:32:10]Read from MH i2c: E2 [23:32:10]MH_I2C_Read... [23:32:10]Read from MH i2c: E2 FD 00 [23:32:10]MH_I2C_Read... [23:32:10]Read from MH i2c: E2 FD 00 68 01 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 61 [23:32:11]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:32:11]wFMCommunicate OK [23:32:11]wFMCommunicate request_size=4 [23:32:11]MH_SAM_APDU [23:32:11]CAPDU: 80 17 00 00 [23:32:11]Write to MH i2c: E2 08 00 69 01 80 17 00 00 00 00 00 00 EA [23:32:11]Write i2c OK [23:32:11]MH_I2C_Read... [23:32:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [23:32:11]Read from MH i2c: E2 [23:32:11]MH_I2C_Read... [23:32:11]Read from MH i2c: E2 E5 00 [23:32:11]MH_I2C_Read... [23:32:11]Read from MH i2c: E2 E5 00 69 01 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 CE [23:32:11]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:32:11]wFMCommunicate OK [23:32:11]SAM_PROTO_GetFMData done [23:32:11]FM_GetFMData:85 04 C4 04 6E 04 04 00 93 8F 01 00 69 04 A3 00 6F 04 04 00 9C 87 01 00 B1 04 05 00 7B EA 8F 89 01 70 04 05 00 A4 10 A3 0B 01 72 04 04 00 D7 D9 EC 7D 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 CC F1 CD 29 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 C2 BB 7B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F7 07 00 00 B1 04 04 00 F8 3C BD 12 70 04 04 00 90 29 B1 12 72 04 03 00 68 13 0C 00 04 7C 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 61 83 FD 01 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 11 75 2A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:32:12]oper:6F 04 04 00 9C 87 01 00 B1 04 05 00 7B EA 8F 89 01 70 04 05 00 A4 10 A3 0B 01 72 04 04 00 D7 D9 EC 7D 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 CC F1 CD 29 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 C2 BB 7B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:32:12]total:7B EA 8F 89 01 [23:32:12]Malloc new data [23:32:12]oper:6F 04 04 00 F7 07 00 00 B1 04 04 00 F8 3C BD 12 70 04 04 00 90 29 B1 12 72 04 03 00 68 13 0C 00 04 7C 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 61 83 FD 01 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 11 75 2A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:32:12]total:F8 3C BD 12 [23:32:12]Malloc new data [23:32:12]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:32:12]total: [23:32:12]Malloc new data [23:32:12]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:32:12]total: [23:32:12]Malloc new data [23:32:12]KKMPrepareXReportFMData err=0 [23:32:12]Х отчет ИНН: 02508201610067 Кассир: Таирова А. 13.08.2024 23:32 Смена: 266 РНМ: 0000000000092718 ЗНМ: 0300000126 СНО: Общий режим Всего чеков: 130 ИТОГИ ПРИХОД Чеков: 127 Общий итог: 101599.93 Итого наличными: 97545.00 Итого безнал.: 4054.93 НДС 0% : 0.00 НДС 12% : 10793.32 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 899.41 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 3 Общий итог: 600.00 Итого наличными: 600.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 63.81 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 5.32 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 96945.00 НС Приход: 66028775.63 НС Возвр.Прихода: 3143918.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000875058 [23:32:12]StoreToDocumentArchive [23:32:12]MH_GetDate [23:32:12]Write to MH i2c: F0 00 00 6A 01 5A [23:32:12]Write i2c OK [23:32:12]MH_I2C_Read... [23:32:12]Read from MH i2c: F0 [23:32:12]MH_I2C_Read... [23:32:12]Read from MH i2c: F0 09 00 [23:32:12]MH_I2C_Read... [23:32:12]Read from MH i2c: F0 09 00 6A 01 00 FD EC BB 66 DC E4 6D 64 FE [23:32:12]shift 266 fd 1723591933 [23:32:12]Create dir for shift 0266 [23:32:12]save to /storage/0266/doc_1723591933 [23:32:12]save last doc name /storage/0266/doc_1723591933 to /storage/kkm_last_doc_name [23:32:12]save OK [23:32:12]Clear old archive folders... [23:32:12]NVStorageSaveData kkm_last_timestamp [23:32:12]File name is /storage/kkm_last_timestamp [23:32:12]Write 4 bytes [23:32:12]NVStorageSaveData done [23:32:12]ExternCall_PrintAddStr [23:32:12]wPrintStart [23:32:12]Write to MH i2c: 01 00 00 6B 01 6C [23:32:12]Write i2c OK [23:32:12]MH_I2C_Read... [23:32:12]Read from MH i2c: 01 [23:32:12]MH_I2C_Read... [23:32:12]Read from MH i2c: 01 07 00 [23:32:12]MH_I2C_Read... [23:32:12]Read from MH i2c: 01 07 00 6B 01 00 00 00 00 00 FF 0F 81 [23:32:12]RasterBufferAndPrint [23:32:12]line Х отчет [23:32:12]line ИНН: 02508201610067 [23:32:12]line Кассир: Таирова А. [23:32:12]line 13.08.2024 23:32 [23:32:12]line Смена: 266 [23:32:12]line РНМ: 0000000000092718 [23:32:12]line ЗНМ: 0300000126 [23:32:12]line СНО: Общий режим [23:32:12]line Всего чеков: 130 [23:32:12]line ИТОГИ ПРИХОД [23:32:12]line Чеков: 127 [23:32:12]line Общий итог: 101599.93 [23:32:12]line Итого наличными: 97545.00 [23:32:12]line Итого безнал.: 4054.93 [23:32:12]line НДС 0% : 0.00 [23:32:12]line НДС 12% : 10793.32 [23:32:12]line НСП 0% : 0.00 [23:32:12]line НСП 1,50% : 0.00 [23:32:12]line НСП 0,50% : 0.00 [23:32:12]line НСП 5% : 0.00 [23:32:12]line НСП 3% : 0.00 [23:32:12]line НСП 2% : 0.00 [23:32:13]line НСП 1% : 899.41 [23:32:13]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:32:13]line Чеков: 3 [23:32:13]line Общий итог: 600.00 [23:32:13]line Итого наличными: 600.00 [23:32:13]line Итого безнал.: 0.00 [23:32:13]line НДС 0% : 0.00 [23:32:13]line НДС 12% : 63.81 [23:32:13]line НСП 0% : 0.00 [23:32:13]line НСП 1,50% : 0.00 [23:32:13]line НСП 0,50% : 0.00 [23:32:13]line НСП 5% : 0.00 [23:32:13]line НСП 3% : 0.00 [23:32:13]line НСП 2% : 0.00 [23:32:13]line НСП 1% : 5.32 [23:32:13]line ИТОГИ РАСХОД [23:32:13]line Чеков: 0 [23:32:13]line Общий итог: 0.00 [23:32:13]line Итого наличными: 0.00 [23:32:13]line Итого безнал.: 0.00 [23:32:13]line НДС 0% : 0.00 [23:32:13]line НДС 12% : 0.00 [23:32:13]line НСП 0% : 0.00 [23:32:13]line НСП 1,50% : 0.00 [23:32:13]line НСП 0,50% : 0.00 [23:32:13]line НСП 5% : 0.00 [23:32:13]line НСП 3% : 0.00 [23:32:13]line НСП 2% : 0.00 [23:32:13]line НСП 1% : 0.00 [23:32:13]line ИТОГИ ВОЗВРАТ РАСХОДА [23:32:13]line Чеков: 0 [23:32:13]line Общий итог: 0.00 [23:32:13]line Итого наличными: 0.00 [23:32:13]line Итого безнал.: 0.00 [23:32:13]line НДС 0% : 0.00 [23:32:13]line НДС 12% : 0.00 [23:32:13]line НСП 0% : 0.00 [23:32:13]line НСП 1,50% : 0.00 [23:32:13]line НСП 0,50% : 0.00 [23:32:13]line НСП 5% : 0.00 [23:32:13]line НСП 3% : 0.00 [23:32:13]line НСП 2% : 0.00 [23:32:13]line НСП 1% : 0.00 [23:32:13]line Сумма внесений: 0.00 [23:32:13]line Сумма выплат: 0.00 [23:32:13]line Нал. в кассе: 96945.00 [23:32:13]line НС Приход: 66028775.63 [23:32:13]line НС Возвр.Прихода: 3143918.00 [23:32:13]line НС Расход: 0.00 [23:32:13]line НС Возвр.Расхода: 0.00 [23:32:13]line ФМ: 0000000000875058 [23:32:13]written 0, free lines is 4095 [23:32:13]Write to MH i2c: 01 00 00 B6 01 B7 [23:32:13]Write i2c OK [23:32:13]MH_I2C_Read... [23:32:13]Read from MH i2c: 01 [23:32:13]MH_I2C_Read... [23:32:13]Read from MH i2c: 01 07 00 [23:32:13]MH_I2C_Read... [23:32:13]Read from MH i2c: 01 07 00 B6 01 00 00 00 00 00 B9 0A 81 [23:32:13]RasterBufferAndPrint [23:32:13]line [23:32:13]line [23:32:13]line [23:32:13]line [23:32:13]line [23:32:13]written 0, free lines is 2780 [23:32:13]MH_Cut [23:32:13]Write to MH i2c: D1 01 00 BD 01 01 90 [23:32:13]Write i2c OK [23:32:13]MH_I2C_Read... [23:32:13]Read from MH i2c: D1 [23:32:13]MH_I2C_Read... [23:32:13]Read from MH i2c: D1 01 00 [23:32:13]MH_I2C_Read... [23:32:13]Read from MH i2c: D1 01 00 BD 01 00 8F [23:32:13]Write to MH i2c: 01 00 00 BE 01 BF [23:32:13]Write i2c OK [23:32:13]MH_I2C_Read... [23:32:14]*** Cut start [23:32:14]*** Purtial cut [23:32:14]*** Stage 1: CUTSNS_PIN = 1 [23:32:15]Read from MH i2c: 01 [23:32:15]MH_I2C_Read... [23:32:15]*** Stop cut motor [23:32:15]*** Cut end [23:32:15]Read from MH i2c: 01 07 00 [23:32:15]MH_I2C_Read... [23:32:15]Read from MH i2c: 01 07 00 BE 01 00 00 00 00 00 FF 0F D4 [23:32:15]process_action x_report done [23:32:15]requested_data is exist [23:32:15]produce_requested_data [23:32:15]requested_item fd.num is exist - process it [23:32:15]SAM_PROTO_GetFieldsCounters [23:32:15]wFMCommunicate request_size=4 [23:32:15]MH_SAM_APDU [23:32:15]CAPDU: 80 13 00 00 [23:32:15]Write to MH i2c: E2 08 00 BF 01 80 13 00 00 00 00 00 00 3C [23:32:15]Write i2c OK [23:32:15]MH_I2C_Read... [23:32:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:32:15]Read from MH i2c: E2 [23:32:15]MH_I2C_Read... [23:32:15]Read from MH i2c: E2 62 00 [23:32:15]MH_I2C_Read... [23:32:15]Read from MH i2c: E2 62 00 BF 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 33 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [23:32:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 33 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:32:15]wFMCommunicate OK [23:32:15]SAM_PROTO_GetFieldsCounters done [23:32:15]requested_item shift.num is exist - process it [23:32:15]requested_item shift.opened is exist - process it [23:32:15]req_shift_opened [23:32:15]FM_GetShiftState [23:32:15]SAM_PROTO_GetShiftState [23:32:15]wFMCommunicate request_size=4 [23:32:15]MH_SAM_APDU [23:32:15]CAPDU: 80 13 01 00 [23:32:15]Write to MH i2c: E2 08 00 C0 01 80 13 01 00 00 00 00 00 3E [23:32:15]Write i2c OK [23:32:15]MH_I2C_Read... [23:32:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:32:15]OFD Sender: No OFD packet to send [23:32:15]Read from MH i2c: E2 [23:32:15]MH_I2C_Read... [23:32:15]Read from MH i2c: E2 0E 00 [23:32:15]MH_I2C_Read... [23:32:15]Read from MH i2c: E2 0E 00 C0 01 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 5C [23:32:15]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [23:32:15]wFMCommunicate OK [23:32:15]SAM_PROTO_GetShiftState done [23:32:15]FM_GetShiftState done [23:32:15]req_shift_opened done [23:32:15]requested_item shift.open_date is exist - process it [23:32:15]req_shift_open_date [23:32:15]req_shift_open_date done [23:32:15]produce_requested_data done [23:32:15]produce_requested_data return {"fd.num":103219,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [23:32:15]process_action_free x_report [23:32:15]json_value_free [23:32:15]json_value_free done [23:32:15]process_json_proto returns [23:32:15]Send response to host [23:32:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":103219,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [23:32:15]free response buf [23:32:15]execute_script done [23:32:15]execute_script returns [23:32:15]free content buf [23:32:15]Sock 7.Close socket [23:32:15]Sock 7.Thread stoped [23:32:18]accept exits with 9 [23:32:18]New connection [23:32:18]New thread 3067485540 created [23:32:18]Thread 3067342180 joined [23:32:18]Waiting for new connection... [23:32:18] Sock 9.Parse request [23:32:18]Sock 9.Check first char [23:32:18]Sock 9.First char is OK [23:32:18]request: POST /json_proto HTTP/1.0 [23:32:18]Method: POST [23:32:18]URL: /json_proto [23:32:18]Method is POST - this is cgi request [23:32:18]url: /json_proto [23:32:18]query_string will be loaded in cgi processing [23:32:18]execute_cgi json_proto POST (null) [23:32:18]execute_cgi path=json_proto method=POST [23:32:18]POST find Content-Length [23:32:18]Host: 172.17.58.3:8080 [23:32:18]Content-Length: 215 [23:32:18]Content-Type: application/json [23:32:18] [23:32:18]POST finish read [23:32:18]Found Content-Length = 215 [23:32:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:32:18]execute_script... [23:32:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:32:18]POST & json_proto [23:32:18]process_json_proto [23:32:18]json parsed OK: [23:32:18]protocol is kg_v1.0 [23:32:18]action value=get_value [23:32:18]process_action get_value [23:32:18]cmd_get_value [23:32:18]process_action get_value done [23:32:18]requested_data is exist [23:32:18]produce_requested_data [23:32:18]requested_item kkm.sn is exist - process it [23:32:18]requested_item kkm.ver is exist - process it [23:32:18]requested_item fm.sn is exist - process it [23:32:18]wFMCommunicate request_size=4 [23:32:18]MH_SAM_APDU [23:32:18]CAPDU: 80 11 00 00 [23:32:18]Write to MH i2c: E2 08 00 C1 01 80 11 00 00 00 00 00 00 3C [23:32:18]Write i2c OK [23:32:18]MH_I2C_Read... [23:32:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:32:18]Read from MH i2c: E2 [23:32:18]MH_I2C_Read... [23:32:18]Read from MH i2c: E2 17 00 [23:32:18]MH_I2C_Read... [23:32:18]Read from MH i2c: E2 17 00 C1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 90 [23:32:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [23:32:18]wFMCommunicate OK [23:32:18]requested_item fd.num is exist - process it [23:32:18]SAM_PROTO_GetFieldsCounters [23:32:18]wFMCommunicate request_size=4 [23:32:18]MH_SAM_APDU [23:32:18]CAPDU: 80 13 00 00 [23:32:18]Write to MH i2c: E2 08 00 C2 01 80 13 00 00 00 00 00 00 3F [23:32:18]Write i2c OK [23:32:18]MH_I2C_Read... [23:32:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:32:18]Read from MH i2c: E2 [23:32:18]MH_I2C_Read... [23:32:18]Read from MH i2c: E2 62 00 [23:32:18]MH_I2C_Read... [23:32:18]Read from MH i2c: E2 62 00 C2 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 33 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [23:32:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 33 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:32:18]wFMCommunicate OK [23:32:18]SAM_PROTO_GetFieldsCounters done [23:32:18]requested_item shift.num is exist - process it [23:32:18]requested_item shift.opened is exist - process it [23:32:18]req_shift_opened [23:32:18]FM_GetShiftState [23:32:18]SAM_PROTO_GetShiftState [23:32:18]wFMCommunicate request_size=4 [23:32:18]MH_SAM_APDU [23:32:18]CAPDU: 80 13 01 00 [23:32:18]Write to MH i2c: E2 08 00 C3 01 80 13 01 00 00 00 00 00 41 [23:32:18]Write i2c OK [23:32:18]MH_I2C_Read... [23:32:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:32:19]Read from MH i2c: E2 [23:32:19]MH_I2C_Read... [23:32:19]Read from MH i2c: E2 0E 00 [23:32:19]MH_I2C_Read... [23:32:19]Read from MH i2c: E2 0E 00 C3 01 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 5F [23:32:19]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [23:32:19]wFMCommunicate OK [23:32:19]SAM_PROTO_GetShiftState done [23:32:19]FM_GetShiftState done [23:32:19]req_shift_opened done [23:32:19]requested_item shift.open_date is exist - process it [23:32:19]req_shift_open_date [23:32:19]req_shift_open_date done [23:32:19]produce_requested_data done [23:32:19]produce_requested_data return {"kkm.sn":"0300000126","kkm.ver":"001","fm.sn":"0000000000875058","fd.num":103219,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770} [23:32:19]process_action_free get_value [23:32:19]json_value_free [23:32:19]json_value_free done [23:32:19]process_json_proto returns [23:32:19]Send response to host [23:32:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000126","kkm.ver":"001","fm.sn":"0000000000875058","fd.num":103219,"shift.num":464,"shift.opened":1,"shift.open_date":1723506770}}} [23:32:19]free response buf [23:32:19]execute_script done [23:32:19]execute_script returns [23:32:19]free content buf [23:32:19]Sock 9.Close socket [23:32:19]Sock 9.Thread stoped [23:32:19]accept exits with 7 [23:32:19]New connection [23:32:19]New thread 3067342180 created [23:32:19]Thread 3067485540 joined [23:32:19]Waiting for new connection... [23:32:19] Sock 7.Parse request [23:32:19]Sock 7.Check first char [23:32:19]Sock 7.First char is OK [23:32:19]request: POST /json_proto HTTP/1.0 [23:32:19]Method: POST [23:32:19]URL: /json_proto [23:32:19]Method is POST - this is cgi request [23:32:19]url: /json_proto [23:32:19]query_string will be loaded in cgi processing [23:32:19]execute_cgi json_proto POST (null) [23:32:19]execute_cgi path=json_proto method=POST [23:32:19]POST find Content-Length [23:32:19]Host: 172.17.58.3:8080 [23:32:19]Content-Length: 331 [23:32:19]Content-Type: application/json [23:32:19] [23:32:19]POST finish read [23:32:19]Found Content-Length = 331 [23:32:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:32:19]execute_script... [23:32:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:32:19]POST & json_proto [23:32:19]process_json_proto [23:32:19]json parsed OK: [23:32:19]protocol is kg_v1.0 [23:32:19]action value=get_value [23:32:19]process_action get_value [23:32:19]cmd_get_value [23:32:19]process_action get_value done [23:32:19]requested_data is exist [23:32:19]produce_requested_data [23:32:19]requested_item fm.sale.total is exist - process it [23:32:19]SAM_PROTO_GetFMData [23:32:19]wFMCommunicate request_size=4 [23:32:19]MH_SAM_APDU [23:32:19]CAPDU: 80 13 03 00 [23:32:19]Write to MH i2c: E2 08 00 C4 01 80 13 03 00 00 00 00 00 44 [23:32:19]Write i2c OK [23:32:19]MH_I2C_Read... [23:32:19]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:32:19]Read from MH i2c: E2 [23:32:19]MH_I2C_Read... [23:32:19]Read from MH i2c: E2 FD 00 [23:32:19]MH_I2C_Read... [23:32:19]Read from MH i2c: E2 FD 00 C4 01 00 C8 04 85 04 C4 04 6E 04 04 00 93 8F 01 00 69 04 A3 00 6F 04 04 00 9C 87 01 00 B1 04 05 00 7B EA 8F 89 01 70 04 05 00 A4 10 A3 0B 01 72 04 04 00 D7 D9 EC 7D 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 CC F1 CD 29 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 C2 BB 7B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F7 07 00 00 B1 04 04 00 F8 3C BD 12 70 04 04 00 90 29 B1 12 72 04 03 00 68 13 0C 00 04 7C 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 61 83 FD 01 90 00 4E [23:32:19]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 93 8F 01 00 69 04 A3 00 6F 04 04 00 9C 87 01 00 B1 04 05 00 7B EA 8F 89 01 70 04 05 00 A4 10 A3 0B 01 72 04 04 00 D7 D9 EC 7D 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 CC F1 CD 29 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 C2 BB 7B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F7 07 00 00 B1 04 04 00 F8 3C BD 12 70 04 04 00 90 29 B1 12 72 04 03 00 68 13 0C 00 04 7C 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 61 83 FD 01 90 00 [23:32:19]wFMCommunicate OK [23:32:19]wFMCommunicate request_size=4 [23:32:19]MH_SAM_APDU [23:32:19]CAPDU: 80 17 00 00 [23:32:19]Write to MH i2c: E2 08 00 C5 01 80 17 00 00 00 00 00 00 46 [23:32:19]Write i2c OK [23:32:19]MH_I2C_Read... [23:32:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:32:20]Read from MH i2c: E2 [23:32:20]MH_I2C_Read... [23:32:20]Read from MH i2c: E2 FD 00 [23:32:20]MH_I2C_Read... [23:32:20]Read from MH i2c: E2 FD 00 C5 01 00 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 11 75 2A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F2 [23:32:20]RAPDU: 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 11 75 2A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:32:20]wFMCommunicate OK [23:32:20]wFMCommunicate request_size=4 [23:32:20]MH_SAM_APDU [23:32:20]CAPDU: 80 17 00 00 [23:32:20]Write to MH i2c: E2 08 00 C6 01 80 17 00 00 00 00 00 00 47 [23:32:20]Write i2c OK [23:32:20]MH_I2C_Read... [23:32:20]OFD Sender: No OFD packet to send [23:32:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:32:20]Read from MH i2c: E2 [23:32:20]MH_I2C_Read... [23:32:20]Read from MH i2c: E2 FD 00 [23:32:20]MH_I2C_Read... [23:32:20]Read from MH i2c: E2 FD 00 C6 01 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1F [23:32:20]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:32:20]wFMCommunicate OK [23:32:20]wFMCommunicate request_size=4 [23:32:20]MH_SAM_APDU [23:32:20]CAPDU: 80 17 00 00 [23:32:21]Write to MH i2c: E2 08 00 C7 01 80 17 00 00 00 00 00 00 48 [23:32:21]Write i2c OK [23:32:21]MH_I2C_Read... [23:32:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:32:21]Read from MH i2c: E2 [23:32:21]MH_I2C_Read... [23:32:21]Read from MH i2c: E2 FD 00 [23:32:21]MH_I2C_Read... [23:32:21]Read from MH i2c: E2 FD 00 C7 01 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 C0 [23:32:21]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:32:21]wFMCommunicate OK [23:32:21]wFMCommunicate request_size=4 [23:32:21]MH_SAM_APDU [23:32:21]CAPDU: 80 17 00 00 [23:32:21]Write to MH i2c: E2 08 00 C8 01 80 17 00 00 00 00 00 00 49 [23:32:21]Write i2c OK [23:32:21]MH_I2C_Read... [23:32:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [23:32:21]Read from MH i2c: E2 [23:32:21]MH_I2C_Read... [23:32:21]Read from MH i2c: E2 E5 00 [23:32:21]MH_I2C_Read... [23:32:21]Read from MH i2c: E2 E5 00 C8 01 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2D [23:32:22]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:32:22]wFMCommunicate OK [23:32:22]SAM_PROTO_GetFMData done [23:32:22]requested_item fm.sale_refund.total is exist - process it [23:32:22]requested_item fm.buy.total is exist - process it [23:32:22]requested_item shift.sale.total is exist - process it [23:32:22]SAM_PROTO_GetShiftData [23:32:22]wFMCommunicate request_size=4 [23:32:22]MH_SAM_APDU [23:32:22]CAPDU: 80 13 02 00 [23:32:22]Write to MH i2c: E2 08 00 C9 01 80 13 02 00 00 00 00 00 48 [23:32:22]Write i2c OK [23:32:22]MH_I2C_Read... [23:32:22]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:32:22]Read from MH i2c: E2 [23:32:22]MH_I2C_Read... [23:32:22]Read from MH i2c: E2 FD 00 [23:32:22]MH_I2C_Read... [23:32:22]Read from MH i2c: E2 FD 00 C9 01 00 B7 04 AA 04 B3 04 6E 04 04 00 82 00 00 00 69 04 9C 00 6F 04 04 00 7F 00 00 00 B1 04 03 00 79 07 9B 70 04 03 00 84 D7 94 72 04 03 00 F5 2F 06 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 24 78 10 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 55 5F 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 95 00 6F 04 04 00 03 00 00 00 B1 04 02 00 60 EA 70 04 02 00 60 EA 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 ED 18 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 90 00 75 [23:32:22]RAPDU: B7 04 AA 04 B3 04 6E 04 04 00 82 00 00 00 69 04 9C 00 6F 04 04 00 7F 00 00 00 B1 04 03 00 79 07 9B 70 04 03 00 84 D7 94 72 04 03 00 F5 2F 06 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 24 78 10 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 55 5F 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 95 00 6F 04 04 00 03 00 00 00 B1 04 02 00 60 EA 70 04 02 00 60 EA 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 ED 18 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 90 00 [23:32:22]wFMCommunicate OK [23:32:22]wFMCommunicate request_size=4 [23:32:22]MH_SAM_APDU [23:32:22]CAPDU: 80 17 00 00 [23:32:22]Write to MH i2c: E2 08 00 CA 01 80 17 00 00 00 00 00 00 4B [23:32:23]Write i2c OK [23:32:23]MH_I2C_Read... [23:32:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:32:23]Read from MH i2c: E2 [23:32:23]MH_I2C_Read... [23:32:23]Read from MH i2c: E2 FD 00 [23:32:23]MH_I2C_Read... [23:32:23]Read from MH i2c: E2 FD 00 CA 01 00 00 F6 03 01 00 01 F7 03 02 00 14 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 87 [23:32:23]RAPDU: 00 F6 03 01 00 01 F7 03 02 00 14 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:32:23]wFMCommunicate OK [23:32:23]wFMCommunicate request_size=4 [23:32:23]MH_SAM_APDU [23:32:23]CAPDU: 80 17 00 00 [23:32:23]Write to MH i2c: E2 08 00 CB 01 80 17 00 00 00 00 00 00 4C [23:32:23]Write i2c OK [23:32:23]MH_I2C_Read... [23:32:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:32:24]Read from MH i2c: E2 [23:32:24]MH_I2C_Read... [23:32:24]Read from MH i2c: E2 FD 00 [23:32:24]MH_I2C_Read... [23:32:24]Read from MH i2c: E2 FD 00 CB 01 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F1 [23:32:24]RAPDU: EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:32:24]wFMCommunicate OK [23:32:24]wFMCommunicate request_size=4 [23:32:24]MH_SAM_APDU [23:32:24]CAPDU: 80 17 00 00 [23:32:24]Write to MH i2c: E2 08 00 CC 01 80 17 00 00 00 00 00 00 4D [23:32:24]Write i2c OK [23:32:24]MH_I2C_Read... [23:32:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:32:24]Read from MH i2c: E2 [23:32:24]MH_I2C_Read... [23:32:24]Read from MH i2c: E2 FD 00 [23:32:24]MH_I2C_Read... [23:32:24]Read from MH i2c: E2 FD 00 CC 01 00 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 C2 [23:32:24]RAPDU: 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 [23:32:25]wFMCommunicate OK [23:32:25]wFMCommunicate request_size=4 [23:32:25]MH_SAM_APDU [23:32:25]CAPDU: 80 17 00 00 [23:32:25]Write to MH i2c: E2 08 00 CD 01 80 17 00 00 00 00 00 00 4E [23:32:25]Write i2c OK [23:32:25]MH_I2C_Read... [23:32:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 209! [23:32:25]Read from MH i2c: E2 [23:32:25]MH_I2C_Read... [23:32:25]Read from MH i2c: E2 D4 00 [23:32:25]MH_I2C_Read... [23:32:25]Read from MH i2c: E2 D4 00 CD 01 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 3F [23:32:25]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:32:25]wFMCommunicate OK [23:32:25]SAM_PROTO_GetShiftData done [23:32:25]requested_item shift.sale.total_cash is exist - process it [23:32:25]requested_item shift.sale_refund.total is exist - process it [23:32:25]requested_item shift.sale_refund.total_cash is exist - process it [23:32:25]requested_item shift.buy.total is exist - process it [23:32:25]requested_item shift.buy.total_cash is exist - process it [23:32:25]produce_requested_data done [23:32:25]produce_requested_data return {"fm.sale.total":66028775.63,"fm.sale_refund.total":3143918.00,"fm.buy.total":0.00,"shift.sale.total":101599.93,"shift.sale.total_cash":97545.00,"shift.sale_refund.total":600.00,"shift.sale_refund.total_cash":600.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:32:25]process_action_free get_value [23:32:25]json_value_free [23:32:25]json_value_free done [23:32:25]process_json_proto returns [23:32:25]Send response to host [23:32:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":66028775.63,"fm.sale_refund.total":3143918.00,"fm.buy.total":0.00,"shift.sale.total":101599.93,"shift.sale.total_cash":97545.00,"shift.sale_refund.total":600.00,"shift.sale_refund.total_cash":600.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:32:25]free response buf [23:32:25]execute_script done [23:32:25]execute_script returns [23:32:25]free content buf [23:32:25]Sock 7.Close socket [23:32:25]Sock 7.Thread stoped [23:32:25]OFD Sender: No OFD packet to send [23:32:25]accept exits with 9 [23:32:25]New connection [23:32:25]New thread 3067485540 created [23:32:25]Thread 3067342180 joined [23:32:25]Waiting for new connection... [23:32:25] Sock 9.Parse request [23:32:25]Sock 9.Check first char [23:32:25]Sock 9.First char is OK [23:32:25]request: POST /json_proto HTTP/1.0 [23:32:25]Method: POST [23:32:25]URL: /json_proto [23:32:25]Method is POST - this is cgi request [23:32:25]url: /json_proto [23:32:25]query_string will be loaded in cgi processing [23:32:25]execute_cgi json_proto POST (null) [23:32:25]execute_cgi path=json_proto method=POST [23:32:25]POST find Content-Length [23:32:25]Host: 172.17.58.3:8080 [23:32:25]Content-Length: 331 [23:32:25]Content-Type: application/json [23:32:25] [23:32:25]POST finish read [23:32:25]Found Content-Length = 331 [23:32:25]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" ] } } [23:32:25]execute_script... [23:32:25]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" ] } } [23:32:25]POST & json_proto [23:32:25]process_json_proto [23:32:25]json parsed OK: [23:32:25]protocol is kg_v1.0 [23:32:25]action value=get_value [23:32:25]process_action get_value [23:32:25]cmd_get_value [23:32:25]process_action get_value done [23:32:25]requested_data is exist [23:32:25]produce_requested_data [23:32:25]requested_item fm.sale.total is exist - process it [23:32:25]SAM_PROTO_GetFMData [23:32:25]wFMCommunicate request_size=4 [23:32:25]MH_SAM_APDU [23:32:25]CAPDU: 80 13 03 00 [23:32:25]Write to MH i2c: E2 08 00 CE 01 80 13 03 00 00 00 00 00 4E [23:32:25]Write i2c OK [23:32:25]MH_I2C_Read... [23:32:26]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:32:26]Read from MH i2c: E2 [23:32:26]MH_I2C_Read... [23:32:26]Read from MH i2c: E2 FD 00 [23:32:26]MH_I2C_Read... [23:32:26]Read from MH i2c: E2 FD 00 CE 01 00 C8 04 85 04 C4 04 6E 04 04 00 93 8F 01 00 69 04 A3 00 6F 04 04 00 9C 87 01 00 B1 04 05 00 7B EA 8F 89 01 70 04 05 00 A4 10 A3 0B 01 72 04 04 00 D7 D9 EC 7D 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 CC F1 CD 29 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 C2 BB 7B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F7 07 00 00 B1 04 04 00 F8 3C BD 12 70 04 04 00 90 29 B1 12 72 04 03 00 68 13 0C 00 04 7C 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 61 83 FD 01 90 00 58 [23:32:26]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 93 8F 01 00 69 04 A3 00 6F 04 04 00 9C 87 01 00 B1 04 05 00 7B EA 8F 89 01 70 04 05 00 A4 10 A3 0B 01 72 04 04 00 D7 D9 EC 7D 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 CC F1 CD 29 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 C2 BB 7B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F7 07 00 00 B1 04 04 00 F8 3C BD 12 70 04 04 00 90 29 B1 12 72 04 03 00 68 13 0C 00 04 7C 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 61 83 FD 01 90 00 [23:32:26]wFMCommunicate OK [23:32:26]wFMCommunicate request_size=4 [23:32:26]MH_SAM_APDU [23:32:26]CAPDU: 80 17 00 00 [23:32:26]Write to MH i2c: E2 08 00 CF 01 80 17 00 00 00 00 00 00 50 [23:32:26]Write i2c OK [23:32:26]MH_I2C_Read... [23:32:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:32:26]Read from MH i2c: E2 [23:32:26]MH_I2C_Read... [23:32:26]Read from MH i2c: E2 FD 00 [23:32:26]MH_I2C_Read... [23:32:26]Read from MH i2c: E2 FD 00 CF 01 00 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 11 75 2A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FC [23:32:26]RAPDU: 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 11 75 2A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:32:27]wFMCommunicate OK [23:32:27]wFMCommunicate request_size=4 [23:32:27]MH_SAM_APDU [23:32:27]CAPDU: 80 17 00 00 [23:32:27]Write to MH i2c: E2 08 00 D0 01 80 17 00 00 00 00 00 00 51 [23:32:27]Write i2c OK [23:32:27]MH_I2C_Read... [23:32:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:32:27]Read from MH i2c: E2 [23:32:27]MH_I2C_Read... [23:32:27]Read from MH i2c: E2 FD 00 [23:32:27]MH_I2C_Read... [23:32:27]Read from MH i2c: E2 FD 00 D0 01 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 29 [23:32:27]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:32:27]wFMCommunicate OK [23:32:27]wFMCommunicate request_size=4 [23:32:27]MH_SAM_APDU [23:32:27]CAPDU: 80 17 00 00 [23:32:27]Write to MH i2c: E2 08 00 D1 01 80 17 00 00 00 00 00 00 52 [23:32:27]Write i2c OK [23:32:27]MH_I2C_Read... [23:32:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:32:28]Read from MH i2c: E2 [23:32:28]MH_I2C_Read... [23:32:28]Read from MH i2c: E2 FD 00 [23:32:28]MH_I2C_Read... [23:32:28]Read from MH i2c: E2 FD 00 D1 01 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 CA [23:32:28]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:32:28]wFMCommunicate OK [23:32:28]wFMCommunicate request_size=4 [23:32:28]MH_SAM_APDU [23:32:28]CAPDU: 80 17 00 00 [23:32:28]Write to MH i2c: E2 08 00 D2 01 80 17 00 00 00 00 00 00 53 [23:32:28]Write i2c OK [23:32:28]MH_I2C_Read... [23:32:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [23:32:28]Read from MH i2c: E2 [23:32:28]MH_I2C_Read... [23:32:28]Read from MH i2c: E2 E5 00 [23:32:28]MH_I2C_Read... [23:32:28]Read from MH i2c: E2 E5 00 D2 01 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 37 [23:32:28]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:32:29]wFMCommunicate OK [23:32:29]SAM_PROTO_GetFMData done [23:32:29]requested_item fm.sale_refund.total is exist - process it [23:32:29]requested_item fm.buy.total is exist - process it [23:32:29]requested_item shift.sale.total is exist - process it [23:32:29]SAM_PROTO_GetShiftData [23:32:29]wFMCommunicate request_size=4 [23:32:29]MH_SAM_APDU [23:32:29]CAPDU: 80 13 02 00 [23:32:29]Write to MH i2c: E2 08 00 D3 01 80 13 02 00 00 00 00 00 52 [23:32:29]Write i2c OK [23:32:29]MH_I2C_Read... [23:32:29]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:32:29]Read from MH i2c: E2 [23:32:29]MH_I2C_Read... [23:32:29]Read from MH i2c: E2 FD 00 [23:32:29]MH_I2C_Read... [23:32:29]Read from MH i2c: E2 FD 00 D3 01 00 B7 04 AA 04 B3 04 6E 04 04 00 82 00 00 00 69 04 9C 00 6F 04 04 00 7F 00 00 00 B1 04 03 00 79 07 9B 70 04 03 00 84 D7 94 72 04 03 00 F5 2F 06 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 24 78 10 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 55 5F 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 95 00 6F 04 04 00 03 00 00 00 B1 04 02 00 60 EA 70 04 02 00 60 EA 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 ED 18 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 90 00 7F [23:32:29]RAPDU: B7 04 AA 04 B3 04 6E 04 04 00 82 00 00 00 69 04 9C 00 6F 04 04 00 7F 00 00 00 B1 04 03 00 79 07 9B 70 04 03 00 84 D7 94 72 04 03 00 F5 2F 06 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 24 78 10 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 55 5F 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 95 00 6F 04 04 00 03 00 00 00 B1 04 02 00 60 EA 70 04 02 00 60 EA 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 ED 18 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 90 00 [23:32:29]wFMCommunicate OK [23:32:29]wFMCommunicate request_size=4 [23:32:29]MH_SAM_APDU [23:32:29]CAPDU: 80 17 00 00 [23:32:29]Write to MH i2c: E2 08 00 D4 01 80 17 00 00 00 00 00 00 55 [23:32:29]Write i2c OK [23:32:29]MH_I2C_Read... [23:32:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:32:30]Read from MH i2c: E2 [23:32:30]MH_I2C_Read... [23:32:30]Read from MH i2c: E2 FD 00 [23:32:30]MH_I2C_Read... [23:32:30]Read from MH i2c: E2 FD 00 D4 01 00 00 F6 03 01 00 01 F7 03 02 00 14 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 91 [23:32:30]RAPDU: 00 F6 03 01 00 01 F7 03 02 00 14 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:32:30]wFMCommunicate OK [23:32:30]wFMCommunicate request_size=4 [23:32:30]MH_SAM_APDU [23:32:30]CAPDU: 80 17 00 00 [23:32:30]Write to MH i2c: E2 08 00 D5 01 80 17 00 00 00 00 00 00 56 [23:32:30]Write i2c OK [23:32:30]MH_I2C_Read... [23:32:30]OFD Sender: No OFD packet to send [23:32:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:32:30]Read from MH i2c: E2 [23:32:30]MH_I2C_Read... [23:32:30]Read from MH i2c: E2 FD 00 [23:32:30]MH_I2C_Read... [23:32:30]Read from MH i2c: E2 FD 00 D5 01 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FB [23:32:31]RAPDU: EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:32:31]wFMCommunicate OK [23:32:31]wFMCommunicate request_size=4 [23:32:31]MH_SAM_APDU [23:32:31]CAPDU: 80 17 00 00 [23:32:31]Write to MH i2c: E2 08 00 D6 01 80 17 00 00 00 00 00 00 57 [23:32:31]Write i2c OK [23:32:31]MH_I2C_Read... [23:32:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:32:31]Read from MH i2c: E2 [23:32:31]MH_I2C_Read... [23:32:31]Read from MH i2c: E2 FD 00 [23:32:31]MH_I2C_Read... [23:32:31]Read from MH i2c: E2 FD 00 D6 01 00 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 CC [23:32:31]RAPDU: 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 [23:32:31]wFMCommunicate OK [23:32:31]wFMCommunicate request_size=4 [23:32:31]MH_SAM_APDU [23:32:32]CAPDU: 80 17 00 00 [23:32:32]Write to MH i2c: E2 08 00 D7 01 80 17 00 00 00 00 00 00 58 [23:32:32]Write i2c OK [23:32:32]MH_I2C_Read... [23:32:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 209! [23:32:32]Read from MH i2c: E2 [23:32:32]MH_I2C_Read... [23:32:32]Read from MH i2c: E2 D4 00 [23:32:32]MH_I2C_Read... [23:32:32]Read from MH i2c: E2 D4 00 D7 01 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 49 [23:32:32]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:32:32]wFMCommunicate OK [23:32:32]SAM_PROTO_GetShiftData done [23:32:32]requested_item shift.sale.total_cash is exist - process it [23:32:32]requested_item shift.sale_refund.total is exist - process it [23:32:32]requested_item shift.sale_refund.total_cash is exist - process it [23:32:32]requested_item shift.buy.total is exist - process it [23:32:32]requested_item shift.buy.total_cash is exist - process it [23:32:32]produce_requested_data done [23:32:32]produce_requested_data return {"fm.sale.total":66028775.63,"fm.sale_refund.total":3143918.00,"fm.buy.total":0.00,"shift.sale.total":101599.93,"shift.sale.total_cash":97545.00,"shift.sale_refund.total":600.00,"shift.sale_refund.total_cash":600.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:32:32]process_action_free get_value [23:32:32]json_value_free [23:32:32]json_value_free done [23:32:32]process_json_proto returns [23:32:32]Send response to host [23:32:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":66028775.63,"fm.sale_refund.total":3143918.00,"fm.buy.total":0.00,"shift.sale.total":101599.93,"shift.sale.total_cash":97545.00,"shift.sale_refund.total":600.00,"shift.sale_refund.total_cash":600.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:32:32]free response buf [23:32:32]execute_script done [23:32:32]execute_script returns [23:32:32]free content buf [23:32:32]Sock 9.Close socket [23:32:32]Sock 9.Thread stoped [23:32:32]accept exits with 7 [23:32:32]New connection [23:32:32]New thread 3067342180 created [23:32:32]Thread 3067485540 joined [23:32:32]Waiting for new connection... [23:32:32] Sock 7.Parse request [23:32:32]Sock 7.Check first char [23:32:32]Sock 7.First char is OK [23:32:32]request: POST /json_proto HTTP/1.0 [23:32:32]Method: POST [23:32:32]URL: /json_proto [23:32:32]Method is POST - this is cgi request [23:32:32]url: /json_proto [23:32:32]query_string will be loaded in cgi processing [23:32:32]execute_cgi json_proto POST (null) [23:32:32]execute_cgi path=json_proto method=POST [23:32:32]POST find Content-Length [23:32:32]Host: 172.17.58.3:8080 [23:32:32]Content-Length: 254 [23:32:32]Content-Type: application/json [23:32:32] [23:32:32]POST finish read [23:32:32]Found Content-Length = 254 [23:32:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0422\u0430\u0438\u0440\u043E\u0432\u0430 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:32:32]execute_script... [23:32:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0422\u0430\u0438\u0440\u043E\u0432\u0430 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:32:32]POST & json_proto [23:32:32]process_json_proto [23:32:32]json parsed OK: [23:32:32]protocol is kg_v1.0 [23:32:32]action value=close_shift [23:32:32]process_action close_shift [23:32:32]cmd_close_shift [23:32:32]MH_GetDate [23:32:32]Write to MH i2c: F0 00 00 D8 01 C8 [23:32:32]Write i2c OK [23:32:32]MH_I2C_Read... [23:32:32]Read from MH i2c: F0 [23:32:32]MH_I2C_Read... [23:32:32]Read from MH i2c: F0 09 00 [23:32:32]MH_I2C_Read... [23:32:32]Read from MH i2c: F0 09 00 D8 01 00 11 ED BB 66 DC E4 6D 64 81 [23:32:32]GetLastDocTimeStamp 1723591925 [23:32:32]current date 1723591953 [23:32:32]FM_GetShiftState [23:32:32]SAM_PROTO_GetShiftState [23:32:32]wFMCommunicate request_size=4 [23:32:32]MH_SAM_APDU [23:32:32]CAPDU: 80 13 01 00 [23:32:32]Write to MH i2c: E2 08 00 D9 01 80 13 01 00 00 00 00 00 57 [23:32:32]Write i2c OK [23:32:32]MH_I2C_Read... [23:32:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:32:32]Read from MH i2c: E2 [23:32:32]MH_I2C_Read... [23:32:32]Read from MH i2c: E2 0E 00 [23:32:32]MH_I2C_Read... [23:32:32]Read from MH i2c: E2 0E 00 D9 01 00 09 00 01 52 A0 BA 66 00 00 00 00 90 00 75 [23:32:32]RAPDU: 09 00 01 52 A0 BA 66 00 00 00 00 90 00 [23:32:32]wFMCommunicate OK [23:32:32]SAM_PROTO_GetShiftState done [23:32:32]FM_GetShiftState done [23:32:32]KKMCreateCloseShiftDocument [23:32:32]Load OK [23:32:32]Malloc new data [23:32:32]MH_GetDate [23:32:32]Write to MH i2c: F0 00 00 DA 01 CA [23:32:32]Write i2c OK [23:32:32]MH_I2C_Read... [23:32:32]Read from MH i2c: F0 [23:32:32]MH_I2C_Read... [23:32:32]Read from MH i2c: F0 09 00 [23:32:32]MH_I2C_Read... [23:32:32]Read from MH i2c: F0 09 00 DA 01 00 11 ED BB 66 DC E4 6D 64 83 [23:32:32]Malloc new data [23:32:32]Malloc new data [23:32:32]Malloc new data [23:32:32]Malloc new data [23:32:32]KKMCreateCloseShiftDocument OK [23:32:32]KKMSetCloseShiftData OK [23:32:32]ProcessDocumentItem done err = 0, tmpTLVsize=69 [23:32:32]tlvbuf is 012037C0 [23:32:32]KKMLoadAndSignCloseShiftData [23:32:32]SAM_PROTO_ProcessDocument [23:32:32]wFMCommunicate request_size=9 [23:32:32]MH_SAM_APDU [23:32:32]CAPDU: 80 15 01 00 04 05 00 45 00 [23:32:32]Write to MH i2c: E2 0C 00 DB 01 80 15 01 00 04 00 05 00 45 00 00 00 AD [23:32:32]Write i2c OK [23:32:32]MH_I2C_Read... [23:32:32]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [23:32:32]Read from MH i2c: E2 [23:32:32]MH_I2C_Read... [23:32:32]Read from MH i2c: E2 03 00 [23:32:32]MH_I2C_Read... [23:32:32]Read from MH i2c: E2 03 00 DB 01 00 90 00 50 [23:32:33]RAPDU: 90 00 [23:32:33]wFMCommunicate OK [23:32:33]wFMCommunicate request_size=23 [23:32:33]MH_SAM_APDU [23:32:33]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [23:32:33]Write to MH i2c: E2 1A 00 DC 01 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 52 [23:32:33]Write i2c OK [23:32:33]MH_I2C_Read... [23:32:33]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:32:33]Read from MH i2c: E2 [23:32:33]MH_I2C_Read... [23:32:33]Read from MH i2c: E2 03 00 [23:32:33]MH_I2C_Read... [23:32:33]Read from MH i2c: E2 03 00 DC 01 00 90 00 51 [23:32:33]RAPDU: 90 00 [23:32:33]wFMCommunicate OK [23:32:33]wFMCommunicate request_size=28 [23:32:33]MH_SAM_APDU [23:32:33]CAPDU: 80 15 02 00 17 FD 03 13 00 D0 A2 D0 B0 D0 B8 D1 80 D0 BE D0 B2 D0 B0 20 D0 90 2E 20 [23:32:33]Write to MH i2c: E2 1F 00 DD 01 80 15 02 00 17 00 FD 03 13 00 D0 A2 D0 B0 D0 B8 D1 80 D0 BE D0 B2 D0 B0 20 D0 90 2E 20 00 00 C8 [23:32:33]Write i2c OK [23:32:33]MH_I2C_Read... [23:32:33]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:32:33]Read from MH i2c: E2 [23:32:33]MH_I2C_Read... [23:32:33]Read from MH i2c: E2 03 00 [23:32:33]MH_I2C_Read... [23:32:33]Read from MH i2c: E2 03 00 DD 01 00 90 00 52 [23:32:33]RAPDU: 90 00 [23:32:33]wFMCommunicate OK [23:32:33]wFMCommunicate request_size=13 [23:32:33]MH_SAM_APDU [23:32:33]CAPDU: 80 15 02 00 08 F4 03 04 00 11 ED BB 66 [23:32:33]Write to MH i2c: E2 10 00 DE 01 80 15 02 00 08 00 F4 03 04 00 11 ED BB 66 00 00 89 [23:32:33]Write i2c OK [23:32:33]MH_I2C_Read... [23:32:33]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:32:33]Read from MH i2c: E2 [23:32:33]MH_I2C_Read... [23:32:33]Read from MH i2c: E2 03 00 [23:32:33]MH_I2C_Read... [23:32:33]Read from MH i2c: E2 03 00 DE 01 00 90 00 53 [23:32:33]RAPDU: 90 00 [23:32:33]wFMCommunicate OK [23:32:33]wFMCommunicate request_size=25 [23:32:33]MH_SAM_APDU [23:32:33]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 [23:32:33]Write to MH i2c: E2 1C 00 DF 01 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 00 00 C4 [23:32:33]Write i2c OK [23:32:33]MH_I2C_Read... [23:32:33]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:32:33]Read from MH i2c: E2 [23:32:33]MH_I2C_Read... [23:32:33]Read from MH i2c: E2 03 00 [23:32:33]MH_I2C_Read... [23:32:33]Read from MH i2c: E2 03 00 DF 01 00 90 00 54 [23:32:33]RAPDU: 90 00 [23:32:33]wFMCommunicate OK [23:32:33]wFMCommunicate request_size=4 [23:32:33]MH_SAM_APDU [23:32:33]CAPDU: 80 15 03 00 [23:32:33]Write to MH i2c: E2 08 00 E0 01 80 15 03 00 00 00 00 00 62 [23:32:33]Write i2c OK [23:32:33]MH_I2C_Read... [23:32:34]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [23:32:34]Read from MH i2c: E2 [23:32:34]MH_I2C_Read... [23:32:34]Read from MH i2c: E2 FD 00 [23:32:34]MH_I2C_Read... [23:32:34]Read from MH i2c: E2 FD 00 E0 01 00 FA 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 34 93 01 00 0E 04 04 00 D0 01 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 84 00 00 00 AA 04 B3 04 6E 04 04 00 82 00 00 00 69 04 9C 00 6F 04 04 00 7F 00 00 00 B1 04 03 00 79 07 9B 70 04 03 00 84 D7 94 72 04 03 00 F5 2F 06 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 24 78 10 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 55 5F 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 95 00 6F 04 04 00 03 00 00 00 B1 04 02 00 60 EA 70 90 00 61 [23:32:34]RAPDU: FA 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 34 93 01 00 0E 04 04 00 D0 01 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 84 00 00 00 AA 04 B3 04 6E 04 04 00 82 00 00 00 69 04 9C 00 6F 04 04 00 7F 00 00 00 B1 04 03 00 79 07 9B 70 04 03 00 84 D7 94 72 04 03 00 F5 2F 06 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 24 78 10 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 55 5F 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 95 00 6F 04 04 00 03 00 00 00 B1 04 02 00 60 EA 70 90 00 [23:32:34]wFMCommunicate OK [23:32:34]SAM_PROTO_ProcessDocument answer len = 1274 [23:32:34]SAM_PROTO_ProcessDocument remain to read = 1026 [23:32:34]wFMCommunicate request_size=4 [23:32:34]MH_SAM_APDU [23:32:34]CAPDU: 80 17 00 00 [23:32:34]Write to MH i2c: E2 08 00 E1 01 80 17 00 00 00 00 00 00 62 [23:32:34]Write i2c OK [23:32:34]MH_I2C_Read... [23:32:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:32:34]Read from MH i2c: E2 [23:32:34]MH_I2C_Read... [23:32:34]Read from MH i2c: E2 FD 00 [23:32:34]MH_I2C_Read... [23:32:34]Read from MH i2c: E2 FD 00 E1 01 00 04 02 00 60 EA 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 ED 18 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 14 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2B [23:32:35]RAPDU: 04 02 00 60 EA 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 ED 18 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 14 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:32:35]wFMCommunicate OK [23:32:35]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:32:35]SAM_PROTO_ProcessDocument remain to read = 776 [23:32:35]wFMCommunicate request_size=4 [23:32:35]MH_SAM_APDU [23:32:35]CAPDU: 80 17 00 00 [23:32:35]Write to MH i2c: E2 08 00 E2 01 80 17 00 00 00 00 00 00 63 [23:32:35]Write i2c OK [23:32:35]MH_I2C_Read... [23:32:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:32:35]Read from MH i2c: E2 [23:32:35]MH_I2C_Read... [23:32:35]Read from MH i2c: E2 FD 00 [23:32:35]MH_I2C_Read... [23:32:35]Read from MH i2c: E2 FD 00 E2 01 00 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 C5 [23:32:35]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 OFD Sender: No OFD packet to send [23:32:35]F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [23:32:36]wFMCommunicate OK [23:32:36]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:32:36]SAM_PROTO_ProcessDocument remain to read = 526 [23:32:36]wFMCommunicate request_size=4 [23:32:36]MH_SAM_APDU [23:32:36]CAPDU: 80 17 00 00 [23:32:36]Write to MH i2c: E2 08 00 E3 01 80 17 00 00 00 00 00 00 64 [23:32:36]Write i2c OK [23:32:36]MH_I2C_Read... [23:32:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:32:36]Read from MH i2c: E2 [23:32:36]MH_I2C_Read... [23:32:36]Read from MH i2c: E2 FD 00 [23:32:36]MH_I2C_Read... [23:32:36]Read from MH i2c: E2 FD 00 E3 01 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 80 [23:32:36]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:32:36]wFMCommunicate OK [23:32:36]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:32:36]SAM_PROTO_ProcessDocument remain to read = 276 [23:32:36]wFMCommunicate request_size=4 [23:32:36]MH_SAM_APDU [23:32:36]CAPDU: 80 17 00 00 [23:32:36]Write to MH i2c: E2 08 00 E4 01 80 17 00 00 00 00 00 00 65 [23:32:36]Write i2c OK [23:32:36]MH_I2C_Read... [23:32:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:32:37]Read from MH i2c: E2 [23:32:37]MH_I2C_Read... [23:32:37]Read from MH i2c: E2 FD 00 [23:32:37]MH_I2C_Read... [23:32:37]Read from MH i2c: E2 FD 00 E4 01 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9B [23:32:37]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:32:37]wFMCommunicate OK [23:32:37]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:32:37]SAM_PROTO_ProcessDocument remain to read = 26 [23:32:37]wFMCommunicate request_size=4 [23:32:37]MH_SAM_APDU [23:32:37]CAPDU: 80 17 00 00 [23:32:37]Write to MH i2c: E2 08 00 E5 01 80 17 00 00 00 00 00 00 66 [23:32:37]Write i2c OK [23:32:37]MH_I2C_Read... [23:32:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 26! [23:32:37]Read from MH i2c: E2 [23:32:37]MH_I2C_Read... [23:32:37]Read from MH i2c: E2 1D 00 [23:32:37]MH_I2C_Read... [23:32:37]Read from MH i2c: E2 1D 00 E5 01 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 7C 8F 7B D9 DD 55 90 00 3C [23:32:37]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 7C 8F 7B D9 DD 55 90 00 [23:32:37]wFMCommunicate OK [23:32:37]SAM_PROTO_ProcessDocument received (without SW) 26 bytes [23:32:37]SAM_PROTO_ProcessDocument done [23:32:37]1209 (1) - 1.0 - номер версии ФФД [23:32:37]1041 (16) - 0000000000875058 - номер ФМ [23:32:37]1040 (4) - 103220 - номер ФД [23:32:37]1038 (4) - 464 - номер смены [23:32:37]1118 (4) - 130 - количество кассовых чеков за смену [23:32:37]1111 (4) - 132 - общее количество ФД за смену [23:32:37]1194 (1203) - счетчики итогов смены [23:32:37] 1134 (4) - 130 - количество чеков со всеми признаками расчетов [23:32:37] 1129 (156) - счетчики операций «приход» [23:32:37] 1135 (4) - 127 - количество чеков по признаку расчетов [23:32:37] 1201 (3) - 101599.93 - общая итоговая сумма в чеках [23:32:37] 1136 (3) - 97545.00 - итоговая сумма в чеках наличными [23:32:37] 1138 (3) - 4054.93 - итоговая сумма в чеках безналичными [23:32:37] 1024 (123) - суммы налогов [23:32:37] 1006 (9) - суммы НДС [23:32:37] 1010 (1) - 0% - код ставки НДС [23:32:37] 1011 (0) - 0.00 - сумма НДС по ставке [23:32:37] 1006 (12) - суммы НДС [23:32:37] 1010 (1) - 12% - код ставки НДС [23:32:37] 1011 (3) - 10793.32 - сумма НДС по ставке [23:32:37] 1007 (9) - суммы НСП [23:32:37] 1014 (1) - 0% - код ставки НСП [23:32:37] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:37] 1007 (12) - суммы НСП [23:32:37] 1014 (1) - 1% - код ставки НСП [23:32:37] 1015 (3) - 899.41 - сумма НСП по ставке [23:32:37] 1007 (9) - суммы НСП [23:32:37] 1014 (1) - 2% - код ставки НСП [23:32:37] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:37] 1007 (9) - суммы НСП [23:32:37] 1014 (1) - 3% - код ставки НСП [23:32:37] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:37] 1007 (9) - суммы НСП [23:32:37] 1014 (1) - 5% - код ставки НСП [23:32:37] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:37] 1007 (9) - суммы НСП [23:32:37] 1014 (1) - 0,50% - код ставки НСП [23:32:37] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:37] 1007 (9) - суммы НСП [23:32:37] 1014 (1) - 1,50% - код ставки НСП [23:32:37] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:37] 1130 (149) - счетчики операций «возврат прихода» [23:32:37] 1135 (4) - 3 - количество чеков по признаку расчетов [23:32:37] 1201 (2) - 600.00 - общая итоговая сумма в чеках [23:32:37] 1136 (2) - 600.00 - итоговая сумма в чеках наличными [23:32:37] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:32:37] 1024 (121) - суммы налогов [23:32:37] 1006 (9) - суммы НДС [23:32:37] 1010 (1) - 0% - код ставки НДС [23:32:37] 1011 (0) - 0.00 - сумма НДС по ставке [23:32:37] 1006 (11) - суммы НДС [23:32:37] 1010 (1) - 12% - код ставки НДС [23:32:37] 1011 (2) - 63.81 - сумма НДС по ставке [23:32:37] 1007 (9) - суммы НСП [23:32:37] 1014 (1) - 0% - код ставки НСП [23:32:37] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:37] 1007 (11) - суммы НСП [23:32:37] 1014 (1) - 1% - код ставки НСП [23:32:37] 1015 (2) - 5.32 - сумма НСП по ставке [23:32:37] 1007 (9) - суммы НСП [23:32:37] 1014 (1) - 2% - код ставки НСП [23:32:37] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:37] 1007 (9) - суммы НСП [23:32:37] 1014 (1) - 3% - код ставки НСП [23:32:37] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:37] 1007 (9) - суммы НСП [23:32:37] 1014 (1) - 5% - код ставки НСП [23:32:37] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:37] 1007 (9) - суммы НСП [23:32:37] 1014 (1) - 0,50% - код ставки НСП [23:32:37] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:37] 1007 (9) - суммы НСП [23:32:37] 1014 (1) - 1,50% - код ставки НСП [23:32:37] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:37] 1131 (141) - счетчики операций «расход» [23:32:37] 1135 (4) - 0 - количество чеков по признаку расчетов [23:32:37] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:32:37] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:32:37] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:32:37] 1024 (117) - суммы налогов [23:32:37] 1006 (9) - суммы НДС [23:32:37] 1010 (1) - 0% - код ставки НДС [23:32:37] 1011 (0) - 0.00 - сумма НДС по ставке [23:32:38] 1006 (9) - суммы НДС [23:32:38] 1010 (1) - 12% - код ставки НДС [23:32:38] 1011 (0) - 0.00 - сумма НДС по ставке [23:32:38] 1007 (9) - суммы НСП [23:32:38] 1014 (1) - 0% - код ставки НСП [23:32:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:38] 1007 (9) - суммы НСП [23:32:38] 1014 (1) - 1% - код ставки НСП [23:32:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:38] 1007 (9) - суммы НСП [23:32:38] 1014 (1) - 2% - код ставки НСП [23:32:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:38] 1007 (9) - суммы НСП [23:32:38] 1014 (1) - 3% - код ставки НСП [23:32:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:38] 1007 (9) - суммы НСП [23:32:38] 1014 (1) - 5% - код ставки НСП [23:32:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:38] 1007 (9) - суммы НСП [23:32:38] 1014 (1) - 0,50% - код ставки НСП [23:32:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:38] 1007 (9) - суммы НСП [23:32:38] 1014 (1) - 1,50% - код ставки НСП [23:32:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:38] 1132 (141) - счетчики операций «возврат расхода» [23:32:38] 1135 (4) - 0 - количество чеков по признаку расчетов [23:32:38] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:32:38] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:32:38] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:32:38] 1024 (117) - суммы налогов [23:32:38] 1006 (9) - суммы НДС [23:32:38] 1010 (1) - 0% - код ставки НДС [23:32:38] 1011 (0) - 0.00 - сумма НДС по ставке [23:32:38] 1006 (9) - суммы НДС [23:32:38] 1010 (1) - 12% - код ставки НДС [23:32:38] 1011 (0) - 0.00 - сумма НДС по ставке [23:32:38] 1007 (9) - суммы НСП [23:32:38] 1014 (1) - 0% - код ставки НСП [23:32:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:38] 1007 (9) - суммы НСП [23:32:38] 1014 (1) - 1% - код ставки НСП [23:32:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:38] 1007 (9) - суммы НСП [23:32:38] 1014 (1) - 2% - код ставки НСП [23:32:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:38] 1007 (9) - суммы НСП [23:32:38] 1014 (1) - 3% - код ставки НСП [23:32:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:38] 1007 (9) - суммы НСП [23:32:38] 1014 (1) - 5% - код ставки НСП [23:32:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:38] 1007 (9) - суммы НСП [23:32:38] 1014 (1) - 0,50% - код ставки НСП [23:32:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:38] 1007 (9) - суммы НСП [23:32:38] 1014 (1) - 1,50% - код ставки НСП [23:32:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:32:38] 1133 (588) - - счетчики коррекции - не используются [23:32:38]1077 (6) - 136955700043093 - ФПД [23:32:38]SetTLVBufToDocument [23:32:38]Processing tag 1209 (04B9) [23:32:38]Malloc new data [23:32:38]Processing tag 1041 (0411) [23:32:38]Processing tag 1040 (0410) [23:32:38]Malloc new data [23:32:38]Processing tag 1038 (040E) [23:32:38]Malloc new data [23:32:38]Processing tag 1118 (045E) [23:32:38]Malloc new data [23:32:38]Processing tag 1111 (0457) [23:32:38]Malloc new data [23:32:38]Processing tag 1194 (04AA) [23:32:38]Load OK [23:32:38]SetTLVBufToDocument [23:32:38]Processing tag 1134 (046E) [23:32:38]Malloc new data [23:32:38]Processing tag 1129 (0469) [23:32:38]Load OK [23:32:38]SetTLVBufToDocument [23:32:38]Processing tag 1135 (046F) [23:32:38]Malloc new data [23:32:38]Processing tag 1201 (04B1) [23:32:38]Malloc new data [23:32:38]Processing tag 1136 (0470) [23:32:38]Malloc new data [23:32:38]Processing tag 1138 (0472) [23:32:38]Malloc new data [23:32:38]Processing tag 1024 (0400) [23:32:38]Load OK [23:32:38]SetTLVBufToDocument [23:32:38]Processing tag 1006 (03EE) [23:32:38]Load OK [23:32:38]SetTLVBufToDocument [23:32:38]Processing tag 1010 (03F2) [23:32:38]Malloc new data [23:32:38]Processing tag 1011 (03F3) [23:32:38]Malloc new data [23:32:38]SetTLVBufToDocument err=0 [23:32:38]Processing tag 1006 (03EE) [23:32:38]Load OK [23:32:38]SetTLVBufToDocument [23:32:38]Processing tag 1010 (03F2) [23:32:38]Malloc new data [23:32:38]Processing tag 1011 (03F3) [23:32:38]Malloc new data [23:32:38]SetTLVBufToDocument err=0 [23:32:38]Processing tag 1007 (03EF) [23:32:38]Load OK [23:32:38]SetTLVBufToDocument [23:32:38]Processing tag 1014 (03F6) [23:32:38]Malloc new data [23:32:38]Processing tag 1015 (03F7) [23:32:38]Malloc new data [23:32:38]SetTLVBufToDocument err=0 [23:32:38]Processing tag 1007 (03EF) [23:32:38]Load OK [23:32:38]SetTLVBufToDocument [23:32:38]Processing tag 1014 (03F6) [23:32:38]Malloc new data [23:32:38]Processing tag 1015 (03F7) [23:32:38]Malloc new data [23:32:38]SetTLVBufToDocument err=0 [23:32:38]Processing tag 1007 (03EF) [23:32:38]Load OK [23:32:38]SetTLVBufToDocument [23:32:38]Processing tag 1014 (03F6) [23:32:38]Malloc new data [23:32:38]Processing tag 1015 (03F7) [23:32:38]Malloc new data [23:32:38]SetTLVBufToDocument err=0 [23:32:38]Processing tag 1007 (03EF) [23:32:38]Load OK [23:32:38]SetTLVBufToDocument [23:32:38]Processing tag 1014 (03F6) [23:32:38]Malloc new data [23:32:38]Processing tag 1015 (03F7) [23:32:38]Malloc new data [23:32:38]SetTLVBufToDocument err=0 [23:32:38]Processing tag 1007 (03EF) [23:32:38]Load OK [23:32:38]SetTLVBufToDocument [23:32:38]Processing tag 1014 (03F6) [23:32:38]Malloc new data [23:32:38]Processing tag 1015 (03F7) [23:32:38]Malloc new data [23:32:38]SetTLVBufToDocument err=0 [23:32:38]Processing tag 1007 (03EF) [23:32:38]Load OK [23:32:38]SetTLVBufToDocument [23:32:38]Processing tag 1014 (03F6) [23:32:38]Malloc new data [23:32:38]Processing tag 1015 (03F7) [23:32:38]Malloc new data [23:32:38]SetTLVBufToDocument err=0 [23:32:38]Processing tag 1007 (03EF) [23:32:38]Load OK [23:32:38]SetTLVBufToDocument [23:32:38]Processing tag 1014 (03F6) [23:32:38]Malloc new data [23:32:38]Processing tag 1015 (03F7) [23:32:38]Malloc new data [23:32:38]SetTLVBufToDocument err=0 [23:32:38]SetTLVBufToDocument err=0 [23:32:38]SetTLVBufToDocument err=0 [23:32:38]Processing tag 1130 (046A) [23:32:38]Load OK [23:32:38]SetTLVBufToDocument [23:32:38]Processing tag 1135 (046F) [23:32:38]Malloc new data [23:32:38]Processing tag 1201 (04B1) [23:32:38]Malloc new data [23:32:38]Processing tag 1136 (0470) [23:32:38]Malloc new data [23:32:38]Processing tag 1138 (0472) [23:32:38]Malloc new data [23:32:38]Processing tag 1024 (0400) [23:32:38]Load OK [23:32:38]SetTLVBufToDocument [23:32:38]Processing tag 1006 (03EE) [23:32:38]Load OK [23:32:38]SetTLVBufToDocument [23:32:38]Processing tag 1010 (03F2) [23:32:38]Malloc new data [23:32:38]Processing tag 1011 (03F3) [23:32:38]Malloc new data [23:32:38]SetTLVBufToDocument err=0 [23:32:38]Processing tag 1006 (03EE) [23:32:38]Load OK [23:32:38]SetTLVBufToDocument [23:32:38]Processing tag 1010 (03F2) [23:32:38]Malloc new data [23:32:38]Processing tag 1011 (03F3) [23:32:38]Malloc new data [23:32:38]SetTLVBufToDocument err=0 [23:32:38]Processing tag 1007 (03EF) [23:32:38]Load OK [23:32:38]SetTLVBufToDocument [23:32:38]Processing tag 1014 (03F6) [23:32:38]Malloc new data [23:32:38]Processing tag 1015 (03F7) [23:32:38]Malloc new data [23:32:38]SetTLVBufToDocument err=0 [23:32:38]Processing tag 1007 (03EF) [23:32:38]Load OK [23:32:38]SetTLVBufToDocument [23:32:38]Processing tag 1014 (03F6) [23:32:38]Malloc new data [23:32:38]Processing tag 1015 (03F7) [23:32:38]Malloc new data [23:32:38]SetTLVBufToDocument err=0 [23:32:38]Processing tag 1007 (03EF) [23:32:38]Load OK [23:32:38]SetTLVBufToDocument [23:32:38]Processing tag 1014 (03F6) [23:32:38]Malloc new data [23:32:38]Processing tag 1015 (03F7) [23:32:38]Malloc new data [23:32:38]SetTLVBufToDocument err=0 [23:32:38]Processing tag 1007 (03EF) [23:32:38]Load OK [23:32:38]SetTLVBufToDocument [23:32:38]Processing tag 1014 (03F6) [23:32:38]Malloc new data [23:32:38]Processing tag 1015 (03F7) [23:32:38]Malloc new data [23:32:38]SetTLVBufToDocument err=0 [23:32:38]Processing tag 1007 (03EF) [23:32:38]Load OK [23:32:38]SetTLVBufToDocument [23:32:38]Processing tag 1014 (03F6) [23:32:38]Malloc new data [23:32:38]Processing tag 1015 (03F7) [23:32:38]Malloc new data [23:32:38]SetTLVBufToDocument err=0 [23:32:38]Processing tag 1007 (03EF) [23:32:38]Load OK [23:32:38]SetTLVBufToDocument [23:32:38]Processing tag 1014 (03F6) [23:32:38]Malloc new data [23:32:38]Processing tag 1015 (03F7) [23:32:38]Malloc new data [23:32:38]SetTLVBufToDocument err=0 [23:32:38]Processing tag 1007 (03EF) [23:32:38]Load OK [23:32:38]SetTLVBufToDocument [23:32:38]Processing tag 1014 (03F6) [23:32:38]Malloc new data [23:32:38]Processing tag 1015 (03F7) [23:32:38]Malloc new data [23:32:38]SetTLVBufToDocument err=0 [23:32:38]SetTLVBufToDocument err=0 [23:32:38]SetTLVBufToDocument err=0 [23:32:38]Processing tag 1131 (046B) [23:32:38]Load OK [23:32:38]SetTLVBufToDocument [23:32:38]Processing tag 1135 (046F) [23:32:38]Malloc new data [23:32:38]Processing tag 1201 (04B1) [23:32:38]Malloc new data [23:32:38]Processing tag 1136 (0470) [23:32:38]Malloc new data [23:32:38]Processing tag 1138 (0472) [23:32:38]Malloc new data [23:32:38]Processing tag 1024 (0400) [23:32:38]Load OK [23:32:38]SetTLVBufToDocument [23:32:38]Processing tag 1006 (03EE) [23:32:38]Load OK [23:32:38]SetTLVBufToDocument [23:32:38]Processing tag 1010 (03F2) [23:32:38]Malloc new data [23:32:38]Processing tag 1011 (03F3) [23:32:38]Malloc new data [23:32:38]SetTLVBufToDocument err=0 [23:32:38]Processing tag 1006 (03EE) [23:32:38]Load OK [23:32:38]SetTLVBufToDocument [23:32:38]Processing tag 1010 (03F2) [23:32:38]Malloc new data [23:32:38]Processing tag 1011 (03F3) [23:32:38]Malloc new data [23:32:38]SetTLVBufToDocument err=0 [23:32:38]Processing tag 1007 (03EF) [23:32:38]Load OK [23:32:38]SetTLVBufToDocument [23:32:38]Processing tag 1014 (03F6) [23:32:38]Malloc new data [23:32:38]Processing tag 1015 (03F7) [23:32:38]Malloc new data [23:32:38]SetTLVBufToDocument err=0 [23:32:38]Processing tag 1007 (03EF) [23:32:38]Load OK [23:32:38]SetTLVBufToDocument [23:32:38]Processing tag 1014 (03F6) [23:32:38]Malloc new data [23:32:38]Processing tag 1015 (03F7) [23:32:38]Malloc new data [23:32:38]SetTLVBufToDocument err=0 [23:32:38]Processing tag 1007 (03EF) [23:32:38]Load OK [23:32:38]SetTLVBufToDocument [23:32:38]Processing tag 1014 (03F6) [23:32:38]Malloc new data [23:32:38]Processing tag 1015 (03F7) [23:32:38]Malloc new data [23:32:38]SetTLVBufToDocument err=0 [23:32:38]Processing tag 1007 (03EF) [23:32:38]Load OK [23:32:38]SetTLVBufToDocument [23:32:38]Processing tag 1014 (03F6) [23:32:38]Malloc new data [23:32:38]Processing tag 1015 (03F7) [23:32:38]Malloc new data [23:32:38]SetTLVBufToDocument err=0 [23:32:38]Processing tag 1007 (03EF) [23:32:38]Load OK [23:32:38]SetTLVBufToDocument [23:32:38]Processing tag 1014 (03F6) [23:32:38]Malloc new data [23:32:38]Processing tag 1015 (03F7) [23:32:38]Malloc new data [23:32:38]SetTLVBufToDocument err=0 [23:32:38]Processing tag 1007 (03EF) [23:32:38]Load OK [23:32:38]SetTLVBufToDocument [23:32:38]Processing tag 1014 (03F6) [23:32:38]Malloc new data [23:32:38]Processing tag 1015 (03F7) [23:32:38]Malloc new data [23:32:38]SetTLVBufToDocument err=0 [23:32:38]Processing tag 1007 (03EF) [23:32:38]Load OK [23:32:38]SetTLVBufToDocument [23:32:38]Processing tag 1014 (03F6) [23:32:38]Malloc new data [23:32:38]Processing tag 1015 (03F7) [23:32:38]Malloc new data [23:32:38]SetTLVBufToDocument err=0 [23:32:38]SetTLVBufToDocument err=0 [23:32:38]SetTLVBufToDocument err=0 [23:32:38]Processing tag 1132 (046C) [23:32:38]Load OK [23:32:38]SetTLVBufToDocument [23:32:38]Processing tag 1135 (046F) [23:32:38]Malloc new data [23:32:38]Processing tag 1201 (04B1) [23:32:38]Malloc new data [23:32:38]Processing tag 1136 (0470) [23:32:38]Malloc new data [23:32:38]Processing tag 1138 (0472) [23:32:38]Malloc new data [23:32:38]Processing tag 1024 (0400) [23:32:38]Load OK [23:32:38]SetTLVBufToDocument [23:32:38]Processing tag 1006 (03EE) [23:32:38]Load OK [23:32:38]SetTLVBufToDocument [23:32:38]Processing tag 1010 (03F2) [23:32:38]Malloc new data [23:32:38]Processing tag 1011 (03F3) [23:32:38]Malloc new data [23:32:38]SetTLVBufToDocument err=0 [23:32:38]Processing tag 1006 (03EE) [23:32:38]Load OK [23:32:38]SetTLVBufToDocument [23:32:38]Processing tag 1010 (03F2) [23:32:38]Malloc new data [23:32:38]Processing tag 1011 (03F3) [23:32:38]Malloc new data [23:32:38]SetTLVBufToDocument err=0 [23:32:38]Processing tag 1007 (03EF) [23:32:38]Load OK [23:32:38]SetTLVBufToDocument [23:32:38]Processing tag 1014 (03F6) [23:32:38]Malloc new data [23:32:38]Processing tag 1015 (03F7) [23:32:38]Malloc new data [23:32:38]SetTLVBufToDocument err=0 [23:32:38]Processing tag 1007 (03EF) [23:32:38]Load OK [23:32:38]SetTLVBufToDocument [23:32:38]Processing tag 1014 (03F6) [23:32:38]Malloc new data [23:32:38]Processing tag 1015 (03F7) [23:32:38]Malloc new data [23:32:38]SetTLVBufToDocument err=0 [23:32:38]Processing tag 1007 (03EF) [23:32:38]Load OK [23:32:38]SetTLVBufToDocument [23:32:38]Processing tag 1014 (03F6) [23:32:38]Malloc new data [23:32:38]Processing tag 1015 (03F7) [23:32:38]Malloc new data [23:32:38]SetTLVBufToDocument err=0 [23:32:38]Processing tag 1007 (03EF) [23:32:38]Load OK [23:32:38]SetTLVBufToDocument [23:32:38]Processing tag 1014 (03F6) [23:32:38]Malloc new data [23:32:38]Processing tag 1015 (03F7) [23:32:38]Malloc new data [23:32:38]SetTLVBufToDocument err=0 [23:32:38]Processing tag 1007 (03EF) [23:32:38]Load OK [23:32:38]SetTLVBufToDocument [23:32:38]Processing tag 1014 (03F6) [23:32:38]Malloc new data [23:32:38]Processing tag 1015 (03F7) [23:32:38]Malloc new data [23:32:38]SetTLVBufToDocument err=0 [23:32:38]Processing tag 1007 (03EF) [23:32:38]Load OK [23:32:38]SetTLVBufToDocument [23:32:38]Processing tag 1014 (03F6) [23:32:38]Malloc new data [23:32:38]Processing tag 1015 (03F7) [23:32:38]Malloc new data [23:32:38]SetTLVBufToDocument err=0 [23:32:38]Processing tag 1007 (03EF) [23:32:38]Load OK [23:32:38]SetTLVBufToDocument [23:32:38]Processing tag 1014 (03F6) [23:32:38]Malloc new data [23:32:38]Processing tag 1015 (03F7) [23:32:38]Malloc new data [23:32:38]SetTLVBufToDocument err=0 [23:32:38]SetTLVBufToDocument err=0 [23:32:38]SetTLVBufToDocument err=0 [23:32:38]Processing tag 1133 (046D) [23:32:38]Malloc new data [23:32:38]SetTLVBufToDocument err=0 [23:32:38]Processing tag 1077 (0435) [23:32:38]Malloc new data [23:32:38]SetTLVBufToDocument err=0 [23:32:38]Malloc new data [23:32:38]SAM_PROTO_GetFMData [23:32:38]wFMCommunicate request_size=4 [23:32:38]MH_SAM_APDU [23:32:38]CAPDU: 80 13 03 00 [23:32:38]Write to MH i2c: E2 08 00 E6 01 80 13 03 00 00 00 00 00 66 [23:32:38]Write i2c OK [23:32:38]MH_I2C_Read... [23:32:39]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:32:39]Read from MH i2c: E2 [23:32:39]MH_I2C_Read... [23:32:39]Read from MH i2c: E2 FD 00 [23:32:39]MH_I2C_Read... [23:32:39]Read from MH i2c: E2 FD 00 E6 01 00 C8 04 85 04 C4 04 6E 04 04 00 93 8F 01 00 69 04 A3 00 6F 04 04 00 9C 87 01 00 B1 04 05 00 7B EA 8F 89 01 70 04 05 00 A4 10 A3 0B 01 72 04 04 00 D7 D9 EC 7D 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 CC F1 CD 29 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 C2 BB 7B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F7 07 00 00 B1 04 04 00 F8 3C BD 12 70 04 04 00 90 29 B1 12 72 04 03 00 68 13 0C 00 04 7C 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 61 83 FD 01 90 00 70 [23:32:39]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 93 8F 01 00 69 04 A3 00 6F 04 04 00 9C 87 01 00 B1 04 05 00 7B EA 8F 89 01 70 04 05 00 A4 10 A3 0B 01 72 04 04 00 D7 D9 EC 7D 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 CC F1 CD 29 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 C2 BB 7B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F7 07 00 00 B1 04 04 00 F8 3C BD 12 70 04 04 00 90 29 B1 12 72 04 03 00 68 13 0C 00 04 7C 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 61 83 FD 01 90 00 [23:32:39]wFMCommunicate OK [23:32:39]wFMCommunicate request_size=4 [23:32:39]MH_SAM_APDU [23:32:39]CAPDU: 80 17 00 00 [23:32:39]Write to MH i2c: E2 08 00 E7 01 80 17 00 00 00 00 00 00 68 [23:32:39]Write i2c OK [23:32:39]MH_I2C_Read... [23:32:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:32:39]Read from MH i2c: E2 [23:32:39]MH_I2C_Read... [23:32:39]Read from MH i2c: E2 FD 00 [23:32:39]MH_I2C_Read... [23:32:39]Read from MH i2c: E2 FD 00 E7 01 00 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 11 75 2A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 14 [23:32:40]RAPDU: 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 11 75 2A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:32:40]wFMCommunicate OK [23:32:40]wFMCommunicate request_size=4 [23:32:40]MH_SAM_APDU [23:32:40]CAPDU: 80 17 00 00 [23:32:40]Write to MH i2c: E2 08 00 E8 01 80 17 00 00 00 00 00 00 69 [23:32:40]Write i2c OK [23:32:40]MH_I2C_Read... [23:32:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:32:40]Read from MH i2c: E2 [23:32:40]MH_I2C_Read... [23:32:40]Read from MH i2c: E2 FD 00 [23:32:40]MH_I2C_Read... [23:32:40]Read from MH i2c: E2 FD 00 E8 01 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 41 [23:32:41]RAPDU: OFD Sender: No OFD packet to send [23:32:41]00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:32:41]wFMCommunicate OK [23:32:41]wFMCommunicate request_size=4 [23:32:41]MH_SAM_APDU [23:32:41]CAPDU: 80 17 00 00 [23:32:41]Write to MH i2c: E2 08 00 E9 01 80 17 00 00 00 00 00 00 6A [23:32:41]Write i2c OK [23:32:41]MH_I2C_Read... [23:32:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:32:41]Read from MH i2c: E2 [23:32:41]MH_I2C_Read... [23:32:41]Read from MH i2c: E2 FD 00 [23:32:41]MH_I2C_Read... [23:32:41]Read from MH i2c: E2 FD 00 E9 01 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 E2 [23:32:41]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:32:42]wFMCommunicate OK [23:32:42]wFMCommunicate request_size=4 [23:32:42]MH_SAM_APDU [23:32:42]CAPDU: 80 17 00 00 [23:32:42]Write to MH i2c: E2 08 00 EA 01 80 17 00 00 00 00 00 00 6B [23:32:42]Write i2c OK [23:32:42]MH_I2C_Read... [23:32:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [23:32:42]Read from MH i2c: E2 [23:32:42]MH_I2C_Read... [23:32:42]Read from MH i2c: E2 E5 00 [23:32:42]MH_I2C_Read... [23:32:42]Read from MH i2c: E2 E5 00 EA 01 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4F [23:32:42]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:32:42]wFMCommunicate OK [23:32:42]SAM_PROTO_GetFMData done [23:32:42]Malloc new data [23:32:42]Malloc new data [23:32:42]Malloc new data [23:32:42]Malloc new data [23:32:42]KKMLoadAndSignCloseShiftData err=0 [23:32:42]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Таирова А. 13.08.2024 23:32 Смена: 464 РНМ: 0000000000092718 ЗНМ: 0300000126 СНО: Общий режим Чеков за смену: 130 ФД за смену: 132 Всего чеков: 130 ИТОГИ ПРИХОД Чеков: 127 Общий итог: 101599.93 Итого наличными: 97545.00 Итого безнал.: 4054.93 НДС 0% : 0.00 НДС 12% : 10793.32 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 899.41 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 3 Общий итог: 600.00 Итого наличными: 600.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 63.81 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 5.32 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 96945.00 НС Приход: 66028775.63 НС Возвр.Прихода: 3143918.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 103220 ФМ: 0000000000875058 ФПД: 136955700043093 [23:32:42]StoreToDocumentArchive [23:32:42]shift 464 fd 103220 [23:32:42]save to /storage/0464/doc_00103220 [23:32:42]save last doc name /storage/0464/doc_00103220 to /storage/kkm_last_doc_name [23:32:42]save OK [23:32:42]Clear old archive folders... [23:32:42]Remove dir /storage/0266 [23:32:42]opendir ok [23:32:42]file . [23:32:42]file .. [23:32:42]file doc_1723591933 [23:32:42]remove file /storage/0266/doc_1723591933 [23:32:42]remove dir /storage/0266 [23:32:42]NVStorageSaveData kkm_registers [23:32:42]File name is /storage/kkm_registers [23:32:42]Write 24 bytes [23:32:42]NVStorageSaveData done [23:32:42]NVStorageSaveData kkm_registers [23:32:42]File name is /storage/kkm_registers [23:32:42]Write 24 bytes [23:32:42]NVStorageSaveData done [23:32:42]ProcessDocumentItem done err = 0, tmpTLVsize=1382 [23:32:42]tlvbuf is 012F1010 [23:32:42]SAM_PROTO_ClearQueue [23:32:42]wFMCommunicate request_size=4 [23:32:42]MH_SAM_APDU [23:32:42]CAPDU: 80 09 00 00 [23:32:42]Write to MH i2c: E2 08 00 EB 01 80 09 00 00 00 00 00 00 5E [23:32:42]Write i2c OK [23:32:42]MH_I2C_Read... [23:32:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:32:43]Read from MH i2c: E2 [23:32:43]MH_I2C_Read... [23:32:43]Read from MH i2c: E2 03 00 [23:32:43]MH_I2C_Read... [23:32:43]Read from MH i2c: E2 03 00 EB 01 00 90 00 60 [23:32:43]RAPDU: 90 00 [23:32:43]wFMCommunicate OK [23:32:43]SAM_PROTO_ClearQueue done [23:32:43]KKMCreateOFDPacket [23:32:43]OFDProtocolAddRootSTLVToBuf [23:32:43]FM_MakeSignedData [23:32:43]FM_MakeSignedData [23:32:43]SAM_PROTO_SignData [23:32:43]wFMCommunicate request_size=4 [23:32:43]MH_SAM_APDU [23:32:43]CAPDU: 80 0D 01 02 [23:32:43]Write to MH i2c: E2 08 00 EC 01 80 0D 01 02 00 00 00 00 66 [23:32:43]Write i2c OK [23:32:43]MH_I2C_Read... [23:32:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:32:43]Read from MH i2c: E2 [23:32:43]MH_I2C_Read... [23:32:43]Read from MH i2c: E2 03 00 [23:32:43]MH_I2C_Read... [23:32:43]Read from MH i2c: E2 03 00 EC 01 00 90 00 61 [23:32:43]RAPDU: 90 00 [23:32:43]wFMCommunicate OK [23:32:43]wFMCommunicate request_size=255 [23:32:43]MH_SAM_APDU [23:32:43]CAPDU: 80 0D 02 02 FA 05 00 66 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 A2 D0 B0 D0 B8 D1 80 D0 BE D0 B2 D0 B0 20 D0 90 2E 20 F4 03 04 00 11 ED BB 66 0E 04 04 00 D0 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 5E 04 04 00 82 00 00 00 57 04 04 00 84 00 00 00 AA 04 DA 04 6E 04 04 00 82 00 00 00 69 04 A3 00 6F 04 04 00 7F 00 00 00 B1 04 03 00 79 07 9B 70 04 03 00 84 D7 94 72 04 03 00 F5 2F 06 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 78 10 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 [23:32:43]Write to MH i2c: E2 02 01 ED 01 80 0D 02 02 FA 00 05 00 66 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 A2 D0 B0 D0 B8 D1 80 D0 BE D0 B2 D0 B0 20 D0 90 2E 20 F4 03 04 00 11 ED BB 66 0E 04 04 00 D0 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 5E 04 04 00 82 00 00 00 57 04 04 00 84 00 00 00 AA 04 DA 04 6E 04 04 00 82 00 00 00 69 04 A3 00 6F 04 04 00 7F 00 00 00 B1 04 03 00 79 07 9B 70 04 03 00 84 D7 94 72 04 03 00 F5 2F 06 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 78 10 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 00 D5 [23:32:43]Write i2c OK [23:32:43]MH_I2C_Read... [23:32:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:32:43]Read from MH i2c: E2 [23:32:43]MH_I2C_Read... [23:32:43]Read from MH i2c: E2 03 00 [23:32:43]MH_I2C_Read... [23:32:43]Read from MH i2c: E2 03 00 ED 01 00 90 00 62 [23:32:44]RAPDU: 90 00 [23:32:44]wFMCommunicate OK [23:32:44]wFMCommunicate request_size=255 [23:32:44]MH_SAM_APDU [23:32:44]CAPDU: 80 0D 02 02 FA 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 55 5F 01 6A 04 9D 00 6F 04 04 00 03 00 00 00 B1 04 02 00 60 EA 70 04 02 00 60 EA 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 ED 18 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 14 02 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 [23:32:44]Write to MH i2c: E2 02 01 EE 01 80 0D 02 02 FA 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 55 5F 01 6A 04 9D 00 6F 04 04 00 03 00 00 00 B1 04 02 00 60 EA 70 04 02 00 60 EA 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 ED 18 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 14 02 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 00 4D [23:32:44]Write i2c OK [23:32:44]MH_I2C_Read... [23:32:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:32:44]Read from MH i2c: E2 [23:32:44]MH_I2C_Read... [23:32:44]Read from MH i2c: E2 03 00 [23:32:44]MH_I2C_Read... [23:32:44]Read from MH i2c: E2 03 00 EE 01 00 90 00 63 [23:32:44]RAPDU: 90 00 [23:32:44]wFMCommunicate OK [23:32:44]wFMCommunicate request_size=255 [23:32:44]MH_SAM_APDU [23:32:44]CAPDU: 80 0D 02 02 FA 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 [23:32:45]Write to MH i2c: E2 02 01 EF 01 80 0D 02 02 FA 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 00 30 [23:32:45]Write i2c OK [23:32:45]MH_I2C_Read... [23:32:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:32:45]Read from MH i2c: E2 [23:32:45]MH_I2C_Read... [23:32:45]Read from MH i2c: E2 03 00 [23:32:45]MH_I2C_Read... [23:32:45]Read from MH i2c: E2 03 00 EF 01 00 90 00 64 [23:32:45]RAPDU: 90 00 [23:32:45]wFMCommunicate OK [23:32:45]wFMCommunicate request_size=255 [23:32:45]MH_SAM_APDU [23:32:45]CAPDU: 80 0D 02 02 FA 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 [23:32:45]Write to MH i2c: E2 02 01 F0 01 80 0D 02 02 FA 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 OFD Sender: No OFD packet to send [23:32:46]03 00 00 EF 03 09 00 F6 03 01 00 00 30 [23:32:46]Write i2c OK [23:32:46]MH_I2C_Read... [23:32:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:32:46]Read from MH i2c: E2 [23:32:46]MH_I2C_Read... [23:32:46]Read from MH i2c: E2 03 00 [23:32:46]MH_I2C_Read... [23:32:46]Read from MH i2c: E2 03 00 F0 01 00 90 00 65 [23:32:46]RAPDU: 90 00 [23:32:46]wFMCommunicate OK [23:32:46]wFMCommunicate request_size=255 [23:32:46]MH_SAM_APDU [23:32:46]CAPDU: 80 0D 02 02 FA 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 [23:32:46]Write to MH i2c: E2 02 01 F1 01 80 0D 02 02 FA 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 00 00 F6 [23:32:47]Write i2c OK [23:32:47]MH_I2C_Read... [23:32:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:32:47]Read from MH i2c: E2 [23:32:47]MH_I2C_Read... [23:32:47]Read from MH i2c: E2 03 00 [23:32:47]MH_I2C_Read... [23:32:47]Read from MH i2c: E2 03 00 F1 01 00 90 00 66 [23:32:47]RAPDU: 90 00 [23:32:47]wFMCommunicate OK [23:32:47]wFMCommunicate request_size=141 [23:32:47]MH_SAM_APDU [23:32:47]CAPDU: 80 0D 02 02 88 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 34 93 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 35 04 06 00 7C 8F 7B D9 DD 55 [23:32:47]Write to MH i2c: E2 90 00 F2 01 80 0D 02 02 88 00 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 34 93 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 35 04 06 00 7C 8F 7B D9 DD 55 00 00 09 [23:32:47]Write i2c OK [23:32:47]MH_I2C_Read... [23:32:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:32:47]Read from MH i2c: E2 [23:32:47]MH_I2C_Read... [23:32:47]Read from MH i2c: E2 03 00 [23:32:47]MH_I2C_Read... [23:32:47]Read from MH i2c: E2 03 00 F2 01 00 90 00 67 [23:32:47]RAPDU: 90 00 [23:32:47]wFMCommunicate OK [23:32:47]wFMCommunicate request_size=4 [23:32:47]MH_SAM_APDU [23:32:47]CAPDU: 80 0D 03 02 [23:32:47]Write to MH i2c: E2 08 00 F3 01 80 0D 03 02 00 00 00 00 6F [23:32:47]Write i2c OK [23:32:47]MH_I2C_Read... [23:32:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:32:48]Read from MH i2c: E2 [23:32:48]MH_I2C_Read... [23:32:48]Read from MH i2c: E2 0B 00 [23:32:48]MH_I2C_Read... [23:32:48]Read from MH i2c: E2 0B 00 F3 01 00 D6 E4 9A 5F B4 3C AD E9 90 00 A9 [23:32:48]RAPDU: D6 E4 9A 5F B4 3C AD E9 90 00 [23:32:48]wFMCommunicate OK [23:32:48]SAM_PROTO_SignData done [23:32:48]FM_MakeSignedData done [23:32:48]CreateOFDProtocolMessage [23:32:48]wFMCommunicate request_size=4 [23:32:48]MH_SAM_APDU [23:32:48]CAPDU: 80 11 00 00 [23:32:48]Write to MH i2c: E2 08 00 F4 01 80 11 00 00 00 00 00 00 6F [23:32:48]Write i2c OK [23:32:48]MH_I2C_Read... [23:32:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:32:48]Read from MH i2c: E2 [23:32:48]MH_I2C_Read... [23:32:48]Read from MH i2c: E2 17 00 [23:32:48]MH_I2C_Read... [23:32:48]Read from MH i2c: E2 17 00 F4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 C3 [23:32:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [23:32:48]wFMCommunicate OK [23:32:48]CreateOFDProtocolMessage done [23:32:48]OFDSenderStorePacket 103220 [23:32:48]StoreOFDPacket docnum=103220 [23:32:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 7A 05 00 00 87 8A 72 05 D4 27 5A 05 01 00 05 00 66 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 A2 D0 B0 D0 B8 D1 80 D0 BE D0 B2 D0 B0 20 D0 90 2E 20 F4 03 04 00 11 ED BB 66 0E 04 04 00 D0 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 5E 04 04 00 82 00 00 00 57 04 04 00 84 00 00 00 AA 04 DA 04 6E 04 04 00 82 00 00 00 69 04 A3 00 6F 04 04 00 7F 00 00 00 B1 04 03 00 79 07 9B 70 04 03 00 84 D7 94 72 04 03 00 F5 2F 06 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 78 10 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 55 5F 01 6A 04 9D 00 6F 04 04 00 03 00 00 00 B1 04 02 00 60 EA 70 04 02 00 60 EA 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 ED 18 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 14 02 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 34 93 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 35 04 06 00 7C 8F 7B D9 DD 55 D6 E4 9A 5F B4 3C AD E9 [23:32:48]CheckFolder [23:32:48]dirname=/storage/ofd_packets [23:32:48]CheckFolder done [23:32:48]ProducePacketName [23:32:48]name=ofd_packets/00103220 [23:32:48]NVStorageSaveData ofd_packets/00103220 [23:32:48]File name is /storage/ofd_packets/00103220 [23:32:48]Write 1432 bytes [23:32:48]NVStorageSaveData done [23:32:48]OFDSenderStorePacket done [23:32:48]KKMCreateOFDPacket done [23:32:48]NVStorageSaveData kkm_last_timestamp [23:32:48]File name is /storage/kkm_last_timestamp [23:32:48]Write 4 bytes [23:32:48]NVStorageSaveData done [23:32:48]ExternCall_PrintAddStr [23:32:48]wPrintStart [23:32:48]Write to MH i2c: 01 00 00 F5 01 F6 [23:32:48]Write i2c OK [23:32:48]MH_I2C_Read... [23:32:48]Read from MH i2c: 01 [23:32:48]MH_I2C_Read... [23:32:48]Read from MH i2c: 01 07 00 [23:32:48]MH_I2C_Read... [23:32:48]Read from MH i2c: 01 07 00 F5 01 00 00 00 00 00 FF 0F 0B [23:32:48]RasterBufferAndPrint [23:32:48]line Отчет о закрытии смены [23:32:48]line ФФД: 1.0 [23:32:48]line ИНН: 02508201610067 [23:32:48]line Кассир: Таирова А. [23:32:48]line 13.08.2024 23:32 [23:32:48]line Смена: 464 [23:32:48]line РНМ: 0000000000092718 [23:32:48]line ЗНМ: 0300000126 [23:32:48]line СНО: Общий режим [23:32:48]line Чеков за смену: 130 [23:32:48]line ФД за смену: 132 [23:32:48]line Всего чеков: 130 [23:32:48]line ИТОГИ ПРИХОД [23:32:48]line Чеков: 127 [23:32:48]line Общий итог: 101599.93 [23:32:48]line Итого наличными: 97545.00 [23:32:48]line Итого безнал.: 4054.93 [23:32:48]line НДС 0% : 0.00 [23:32:48]line НДС 12% : 10793.32 [23:32:48]line НСП 0% : 0.00 [23:32:48]line НСП 1,50% : 0.00 [23:32:48]line НСП 0,50% : 0.00 [23:32:48]line НСП 5% : 0.00 [23:32:48]line НСП 3% : 0.00 [23:32:48]line НСП 2% : 0.00 [23:32:48]line НСП 1% : 899.41 [23:32:48]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:32:48]line Чеков: 3 [23:32:48]line Общий итог: 600.00 [23:32:48]line Итого наличными: 600.00 [23:32:48]line Итого безнал.: 0.00 [23:32:48]line НДС 0% : 0.00 [23:32:48]line НДС 12% : 63.81 [23:32:48]line НСП 0% : 0.00 [23:32:48]line НСП 1,50% : 0.00 [23:32:48]line НСП 0,50% : 0.00 [23:32:48]line НСП 5% : 0.00 [23:32:48]line НСП 3% : 0.00 [23:32:48]line НСП 2% : 0.00 [23:32:48]line НСП 1% : 5.32 [23:32:48]line ИТОГИ РАСХОД [23:32:48]line Чеков: 0 [23:32:48]line Общий итог: 0.00 [23:32:48]line Итого наличными: 0.00 [23:32:48]line Итого безнал.: 0.00 [23:32:48]line НДС 0% : 0.00 [23:32:48]line НДС 12% : 0.00 [23:32:48]line НСП 0% : 0.00 [23:32:48]line НСП 1,50% : 0.00 [23:32:48]line НСП 0,50% : 0.00 [23:32:48]line НСП 5% : 0.00 [23:32:48]line НСП 3% : 0.00 [23:32:48]line НСП 2% : 0.00 [23:32:48]line НСП 1% : 0.00 [23:32:48]line ИТОГИ ВОЗВРАТ РАСХОДА [23:32:48]line Чеков: 0 [23:32:48]line Общий итог: 0.00 [23:32:48]line Итого наличными: 0.00 [23:32:48]line Итого безнал.: 0.00 [23:32:48]line НДС 0% : 0.00 [23:32:48]line НДС 12% : 0.00 [23:32:48]line НСП 0% : 0.00 [23:32:48]line НСП 1,50% : 0.00 [23:32:48]line НСП 0,50% : 0.00 [23:32:48]line НСП 5% : 0.00 [23:32:48]line НСП 3% : 0.00 [23:32:48]line НСП 2% : 0.00 [23:32:48]line НСП 1% : 0.00 [23:32:48]line Сумма внесений: 0.00 [23:32:48]line Сумма выплат: 0.00 [23:32:48]line Нал. в кассе: 96945.00 [23:32:48]OFD Sender: Processing packet 103220 [packets to send 69, broken 68] [23:32:48]line НС Приход: 66028775.63 [23:32:48]ProducePacketName [23:32:48]line НС Возвр.Прихода: 3143918.00 [23:32:48]name=ofd_packets/00103220 [23:32:48]line НС Расход: 0.00 [23:32:48]OFD Sender: To server: pG, [23:32:48]line НС Возвр.Расхода: 0.00 [23:32:48]line ФД: 103220 [23:32:48]line ФМ: 0000000000875058 [23:32:48]line ФПД: 136955700043093 [23:32:48]written 0, free lines is 4095 [23:32:48]CommunicateWithHost lk.salyk.kg:30040 [23:32:48]ConnectInit lk.salyk.kg [23:32:48]Connected sock=10 [23:32:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 7A 05 00 00 87 8A 72 05 D4 27 5A 05 01 00 05 00 66 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 A2 D0 B0 D0 B8 D1 80 D0 BE D0 B2 D0 B0 20 D0 90 2E 20 F4 03 04 00 11 ED BB 66 0E 04 04 00 D0 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 5E 04 04 00 82 00 00 00 57 04 04 00 84 00 00 00 AA 04 DA 04 6E 04 04 00 82 00 00 00 69 04 A3 00 6F 04 04 00 7F 00 00 00 B1 04 03 00 79 07 9B 70 04 03 00 84 D7 94 72 04 03 00 F5 2F 06 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 78 10 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 55 5F 01 6A 04 9D 00 6F 04 04 00 03 00 00 00 B1 04 02 00 60 EA 70 04 02 00 60 EA 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 ED 18 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 14 02 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 Write to MH i2c: 0A 01 00 00 F2 00 03 45 01 02 00 47 00 [23:32:49]F3 03 01 00 00 EE 03 0A 00 F2 03 01 Write i2c OK [23:32:49]00 MH_I2C_Read... [23:32:49]01 Read from MH i2c: F3 01 03 [23:32:49]01 MH_I2C_Read... [23:32:49]00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 Read from MH i2c: 00 01 EF 07 03 00 0A [23:32:49]00 MH_I2C_Read... [23:32:49]F6 Read from MH i2c: 03 01 01 07 00 00 06 45 F7 02 03 00 01 00 00 EF 03 0A 00 F6 03 01 00 00 00 05 00 F7 00 03 F8 01 0A 00 50 00 [23:32:49]EF RasterBufferAndPrint [23:32:49]03 line [23:32:49]0A line [23:32:49]00 line [23:32:49]F6 line [23:32:49]03 line [23:32:49]01 00 04 F7 03 01 00 00 written 0, free lines is 3058 [23:32:49]EF 03 0A 00 F6 03 01 00 03 MH_Cut [23:32:49]F7 Write to MH i2c: 03 D1 01 01 00 00 00 4C EF 02 03 01 20 [23:32:49]0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 Write i2c OK [23:32:50]03 MH_I2C_Read... [23:32:50]01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 Read from MH i2c: 01 D1 00 [23:32:50]00 MH_I2C_Read... [23:32:50]EF Read from MH i2c: 03 D1 0A 01 00 00 F6 [23:32:50]03 MH_I2C_Read... [23:32:50]01 Read from MH i2c: 00 D1 05 01 F7 03 01 00 00 EF 03 0A 00 F6 00 03 4C 01 02 00 00 04 1F F7 [23:32:50]03 Write to MH i2c: 01 01 00 00 00 00 EF 4D 03 02 0A 4F 00 F6 03 01 00 03 F7 03 01 00 [23:32:50]00 Write i2c OK [23:32:50]EF MH_I2C_Read... [23:32:50]03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 *** Cut start [23:32:50]04 00 00 00 00 00 B1 04 00 00 70 *** Purtial cut [23:32:50]04 00 00 72 04 *** CUTSNS_PIN = 0 [23:32:50]00 00 00 04 75 00 EE 03 09 00 F2 03 *** Stage 1: CUTSNS_PIN = 1 [23:32:50]01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 34 93 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 35 04 06 00 7C 8F 7B D9 DD 55 D6 E4 9A 5F B4 3C AD E9 [23:32:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 78 BA 47 00 62 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 34 93 01 00 F4 03 04 00 94 93 BB 66 B6 04 01 00 00 59 89 80 F5 FE 77 5A C2 [23:32:52]CommunicateWithHost err = 0 [23:32:52]CheckOFDResponse [23:32:52]1017 (14) - 77093643461234 [23:32:52]1041 (16) - 0000000000875058 [23:32:52]1040 (4) - 103220 [23:32:52]1012 (4) - 13.08.2024 17:10 [23:32:52]1206 (1) - 0 [23:32:52]OFD Sender: Remove packet 103220 [23:32:52]ProducePacketName [23:32:52]name=ofd_packets/00103220 [23:32:52]NVStorageDeleteData [23:32:52]Read from MH i2c: *** Stop cut motor [23:32:52]01 *** Cut end [23:32:52] [23:32:52]MH_I2C_Read... [23:32:52]Read from MH i2c: 01 07 00 [23:32:52]MH_I2C_Read... [23:32:52]Read from MH i2c: 01 07 00 4D 02 00 00 00 00 00 FF 0F 64 [23:32:52]process_action close_shift done [23:32:52]requested_data is exist [23:32:52]produce_requested_data [23:32:52]requested_item fd.num is exist - process it [23:32:52]SAM_PROTO_GetFieldsCounters [23:32:52]wFMCommunicate request_size=4 [23:32:52]MH_SAM_APDU [23:32:52]CAPDU: 80 13 00 00 [23:32:52]Write to MH i2c: E2 08 00 4E 02 80 13 00 00 00 00 00 00 CC [23:32:52]Write i2c OK [23:32:52]MH_I2C_Read... [23:32:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:32:52]Read from MH i2c: E2 [23:32:52]MH_I2C_Read... [23:32:52]Read from MH i2c: E2 62 00 [23:32:52]MH_I2C_Read... [23:32:52]Read from MH i2c: E2 62 00 4E 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 34 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [23:32:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 34 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:32:53]wFMCommunicate OK [23:32:53]SAM_PROTO_GetFieldsCounters done [23:32:53]requested_item shift.num is exist - process it [23:32:53]requested_item shift.opened is exist - process it [23:32:53]req_shift_opened [23:32:53]FM_GetShiftState [23:32:53]SAM_PROTO_GetShiftState [23:32:53]wFMCommunicate request_size=4 [23:32:53]MH_SAM_APDU [23:32:53]CAPDU: 80 13 01 00 [23:32:53]Write to MH i2c: E2 08 00 4F 02 80 13 01 00 00 00 00 00 CE [23:32:53]OFD Sender: No OFD packet to send [23:32:53]Write i2c OK [23:32:53]MH_I2C_Read... [23:32:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:32:53]Read from MH i2c: E2 [23:32:53]MH_I2C_Read... [23:32:53]Read from MH i2c: E2 0E 00 [23:32:53]MH_I2C_Read... [23:32:53]Read from MH i2c: E2 0E 00 4F 02 00 09 00 00 00 00 00 00 00 00 00 00 90 00 D9 [23:32:53]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:32:53]wFMCommunicate OK [23:32:53]SAM_PROTO_GetShiftState done [23:32:53]FM_GetShiftState done [23:32:53]req_shift_opened done [23:32:53]requested_item shift.open_date is exist - process it [23:32:53]req_shift_open_date [23:32:53]FM_GetShiftState [23:32:53]SAM_PROTO_GetShiftState [23:32:53]wFMCommunicate request_size=4 [23:32:53]MH_SAM_APDU [23:32:53]CAPDU: 80 13 01 00 [23:32:53]Write to MH i2c: E2 08 00 50 02 80 13 01 00 00 00 00 00 CF [23:32:53]Write i2c OK [23:32:53]MH_I2C_Read... [23:32:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:32:53]Read from MH i2c: E2 [23:32:53]MH_I2C_Read... [23:32:53]Read from MH i2c: E2 0E 00 [23:32:53]MH_I2C_Read... [23:32:53]Read from MH i2c: E2 0E 00 50 02 00 09 00 00 00 00 00 00 00 00 00 00 90 00 DA [23:32:53]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:32:53]wFMCommunicate OK [23:32:53]SAM_PROTO_GetShiftState done [23:32:53]FM_GetShiftState done [23:32:53]req_shift_open_date done [23:32:53]produce_requested_data done [23:32:53]produce_requested_data return {"fd.num":103220,"shift.num":464,"shift.opened":0,"shift.open_date":0} [23:32:53]process_action_free close_shift [23:32:53]json_value_free [23:32:53]json_value_free done [23:32:53]process_json_proto returns [23:32:53]Send response to host [23:32:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":103220,"shift.num":464,"shift.opened":0,"shift.open_date":0}}} [23:32:53]free response buf [23:32:53]execute_script done [23:32:53]execute_script returns [23:32:53]free content buf [23:32:53]Sock 7.Close socket [23:32:53]Sock 7.Thread stoped [23:32:58]OFD Sender: No OFD packet to send [23:33:03]OFD Sender: No OFD packet to send [23:33:08]OFD Sender: No OFD packet to send [23:33:13]OFD Sender: No OFD packet to send [23:33:18]OFD Sender: No OFD packet to send [23:33:23]OFD Sender: No OFD packet to send [23:33:28]OFD Sender: No OFD packet to send [23:33:33]OFD Sender: No OFD packet to send [23:33:38]OFD Sender: No OFD packet to send [23:33:43]OFD Sender: No OFD packet to send [23:33:48]OFD Sender: No OFD packet to send [23:33:53]OFD Sender: No OFD packet to send [23:33:58]OFD Sender: No OFD packet to send [23:34:03]OFD Sender: No OFD packet to send [23:34:08]OFD Sender: No OFD packet to send [23:34:13]OFD Sender: No OFD packet to send [23:34:18]OFD Sender: No OFD packet to send [23:34:23]OFD Sender: No OFD packet to send [23:34:28]OFD Sender: No OFD packet to send [23:34:33]OFD Sender: No OFD packet to send [23:34:38]OFD Sender: No OFD packet to send [23:34:43]OFD Sender: No OFD packet to send [23:34:48]OFD Sender: No OFD packet to send [23:34:53]OFD Sender: No OFD packet to send [23:34:58]OFD Sender: No OFD packet to send [23:35:03]OFD Sender: No OFD packet to send [23:35:08]OFD Sender: No OFD packet to send [23:35:13]OFD Sender: No OFD packet to send [23:35:18]OFD Sender: No OFD packet to send [23:35:23]OFD Sender: No OFD packet to send [23:35:28]OFD Sender: No OFD packet to send [23:35:33]OFD Sender: No OFD packet to send [23:35:38]OFD Sender: No OFD packet to send [23:35:43]OFD Sender: No OFD packet to send [23:35:48]OFD Sender: No OFD packet to send [23:35:53]OFD Sender: No OFD packet to send [23:35:58]OFD Sender: No OFD packet to send [23:36:03]OFD Sender: No OFD packet to send [23:36:08]OFD Sender: No OFD packet to send [23:36:13]OFD Sender: No OFD packet to send [23:36:18]OFD Sender: No OFD packet to send [23:36:23]OFD Sender: No OFD packet to send [23:36:28]OFD Sender: No OFD packet to send [23:36:33]OFD Sender: No OFD packet to send [23:36:38]OFD Sender: No OFD packet to send [23:36:43]OFD Sender: No OFD packet to send [23:36:48]OFD Sender: No OFD packet to send [23:36:53]OFD Sender: No OFD packet to send [23:36:58]OFD Sender: No OFD packet to send [23:37:03]OFD Sender: No OFD packet to send [23:37:08]OFD Sender: No OFD packet to send [23:37:13]OFD Sender: No OFD packet to send [23:37:18]OFD Sender: No OFD packet to send [23:37:23]OFD Sender: No OFD packet to send [23:37:28]OFD Sender: No OFD packet to send [23:37:33]OFD Sender: No OFD packet to send [23:37:38]OFD Sender: No OFD packet to send [23:37:43]OFD Sender: No OFD packet to send [23:37:48]OFD Sender: No OFD packet to send [23:37:53]OFD Sender: No OFD packet to send [23:37:58]OFD Sender: No OFD packet to send [23:38:03]OFD Sender: No OFD packet to send [23:38:08]OFD Sender: No OFD packet to send [23:38:13]OFD Sender: No OFD packet to send [23:38:18]OFD Sender: No OFD packet to send [23:38:23]OFD Sender: No OFD packet to send [23:38:28]OFD Sender: No OFD packet to send [23:38:33]OFD Sender: No OFD packet to send [23:38:38]OFD Sender: No OFD packet to send [23:38:43]OFD Sender: No OFD packet to send [23:38:48]OFD Sender: No OFD packet to send [23:38:53]OFD Sender: No OFD packet to send [23:38:58]OFD Sender: No OFD packet to send [23:39:03]OFD Sender: No OFD packet to send [23:39:08]OFD Sender: No OFD packet to send [23:39:13]OFD Sender: No OFD packet to send [23:39:18]OFD Sender: No OFD packet to send [23:39:23]OFD Sender: No OFD packet to send [23:39:28]OFD Sender: No OFD packet to send [23:39:33]OFD Sender: No OFD packet to send [23:39:38]OFD Sender: No OFD packet to send [23:39:43]OFD Sender: No OFD packet to send [23:39:48]OFD Sender: No OFD packet to send [23:39:53]OFD Sender: No OFD packet to send [23:39:58]OFD Sender: No OFD packet to send [23:40:03]OFD Sender: No OFD packet to send [23:40:08]OFD Sender: No OFD packet to send [23:40:13]OFD Sender: No OFD packet to send [23:40:18]OFD Sender: No OFD packet to send [23:40:23]OFD Sender: No OFD packet to send [23:40:28]OFD Sender: No OFD packet to send [23:40:33]OFD Sender: No OFD packet to send [23:40:38]OFD Sender: No OFD packet to send [23:40:43]OFD Sender: No OFD packet to send [23:40:48]OFD Sender: No OFD packet to send [23:40:53]OFD Sender: No OFD packet to send [23:40:58]OFD Sender: No OFD packet to send [23:41:03]OFD Sender: No OFD packet to send [23:41:08]OFD Sender: No OFD packet to send [23:41:13]OFD Sender: No OFD packet to send [23:41:18]OFD Sender: No OFD packet to send [23:41:23]OFD Sender: No OFD packet to send [23:41:28]OFD Sender: No OFD packet to send [23:41:33]OFD Sender: No OFD packet to send [23:41:38]OFD Sender: No OFD packet to send [23:41:43]OFD Sender: No OFD packet to send [23:41:48]OFD Sender: No OFD packet to send [23:41:53]OFD Sender: No OFD packet to send [23:41:58]OFD Sender: No OFD packet to send [23:42:03]OFD Sender: No OFD packet to send [23:42:08]OFD Sender: No OFD packet to send [23:42:13]OFD Sender: No OFD packet to send [23:42:18]OFD Sender: No OFD packet to send [23:42:23]OFD Sender: No OFD packet to send [23:42:28]OFD Sender: No OFD packet to send [23:42:33]OFD Sender: No OFD packet to send [23:42:38]OFD Sender: No OFD packet to send [23:42:43]OFD Sender: No OFD packet to send [23:42:48]OFD Sender: No OFD packet to send [23:42:53]OFD Sender: No OFD packet to send [23:42:58]OFD Sender: No OFD packet to send [23:43:03]OFD Sender: No OFD packet to send [23:43:08]OFD Sender: No OFD packet to send [23:43:13]OFD Sender: No OFD packet to send [23:43:18]OFD Sender: No OFD packet to send [23:43:23]OFD Sender: No OFD packet to send [23:43:28]OFD Sender: No OFD packet to send [23:43:33]OFD Sender: No OFD packet to send [23:43:38]OFD Sender: No OFD packet to send [23:43:43]OFD Sender: No OFD packet to send [23:43:48]OFD Sender: No OFD packet to send [23:43:53]OFD Sender: No OFD packet to send [23:43:58]OFD Sender: No OFD packet to send [23:44:03]OFD Sender: No OFD packet to send [23:44:08]OFD Sender: No OFD packet to send [23:44:13]OFD Sender: No OFD packet to send [23:44:18]OFD Sender: No OFD packet to send [23:44:23]OFD Sender: No OFD packet to send [23:44:28]OFD Sender: No OFD packet to send [23:44:33]OFD Sender: No OFD packet to send [23:44:38]OFD Sender: No OFD packet to send [23:44:43]OFD Sender: No OFD packet to send [23:44:48]OFD Sender: No OFD packet to send [23:44:53]OFD Sender: No OFD packet to send [23:44:58]OFD Sender: No OFD packet to send [23:45:04]OFD Sender: No OFD packet to send [23:45:09]OFD Sender: No OFD packet to send [23:45:14]OFD Sender: No OFD packet to send [23:45:19]OFD Sender: No OFD packet to send [23:45:24]OFD Sender: No OFD packet to send [23:45:29]OFD Sender: No OFD packet to send [23:45:34]OFD Sender: No OFD packet to send [23:45:39]OFD Sender: No OFD packet to send [23:45:44]OFD Sender: No OFD packet to send [23:45:49]OFD Sender: No OFD packet to send [23:45:54]OFD Sender: No OFD packet to send [23:45:59]OFD Sender: No OFD packet to send [23:46:04]OFD Sender: No OFD packet to send [23:46:09]OFD Sender: No OFD packet to send [23:46:14]OFD Sender: No OFD packet to send [23:46:19]OFD Sender: No OFD packet to send [23:46:24]OFD Sender: No OFD packet to send [23:46:29]OFD Sender: No OFD packet to send [23:46:34]OFD Sender: No OFD packet to send [23:46:39]OFD Sender: No OFD packet to send [23:46:44]OFD Sender: No OFD packet to send [23:46:49]OFD Sender: No OFD packet to send [23:46:54]OFD Sender: No OFD packet to send [23:46:59]OFD Sender: No OFD packet to send [23:47:04]OFD Sender: No OFD packet to send [23:47:09]OFD Sender: No OFD packet to send [23:47:14]OFD Sender: No OFD packet to send [23:47:19]OFD Sender: No OFD packet to send [23:47:24]OFD Sender: No OFD packet to send [23:47:29]OFD Sender: No OFD packet to send [23:47:34]OFD Sender: No OFD packet to send [23:47:39]OFD Sender: No OFD packet to send [23:47:44]OFD Sender: No OFD packet to send [23:47:49]OFD Sender: No OFD packet to send [23:47:54]OFD Sender: No OFD packet to send [23:47:59]OFD Sender: No OFD packet to send [23:48:04]OFD Sender: No OFD packet to send [23:48:09]OFD Sender: No OFD packet to send [23:48:14]OFD Sender: No OFD packet to send [23:48:19]OFD Sender: No OFD packet to send [23:48:24]OFD Sender: No OFD packet to send [23:48:29]OFD Sender: No OFD packet to send [23:48:34]OFD Sender: No OFD packet to send [23:48:39]OFD Sender: No OFD packet to send [23:48:44]OFD Sender: No OFD packet to send [23:48:49]OFD Sender: No OFD packet to send [23:48:54]OFD Sender: No OFD packet to send [23:48:59]OFD Sender: No OFD packet to send [23:49:04]OFD Sender: No OFD packet to send [23:49:09]OFD Sender: No OFD packet to send [23:49:14]OFD Sender: No OFD packet to send [23:49:19]OFD Sender: No OFD packet to send [23:49:24]OFD Sender: No OFD packet to send [23:49:29]OFD Sender: No OFD packet to send [23:49:34]OFD Sender: No OFD packet to send [23:49:39]OFD Sender: No OFD packet to send [23:49:44]OFD Sender: No OFD packet to send [23:49:49]OFD Sender: No OFD packet to send [23:49:54]OFD Sender: No OFD packet to send [23:49:59]OFD Sender: No OFD packet to send [23:50:04]OFD Sender: No OFD packet to send [23:50:09]OFD Sender: No OFD packet to send [23:50:14]OFD Sender: No OFD packet to send [23:50:19]OFD Sender: No OFD packet to send [23:50:24]OFD Sender: No OFD packet to send [23:50:29]OFD Sender: No OFD packet to send [23:50:34]OFD Sender: No OFD packet to send [23:50:39]OFD Sender: No OFD packet to send [23:50:44]OFD Sender: No OFD packet to send [23:50:49]OFD Sender: No OFD packet to send [23:50:54]OFD Sender: No OFD packet to send [23:50:59]OFD Sender: No OFD packet to send [23:51:04]OFD Sender: No OFD packet to send [23:51:09]OFD Sender: No OFD packet to send [23:51:14]OFD Sender: No OFD packet to send [23:51:19]OFD Sender: No OFD packet to send [23:51:24]OFD Sender: No OFD packet to send [23:51:29]OFD Sender: No OFD packet to send [23:51:34]OFD Sender: No OFD packet to send [23:51:39]OFD Sender: No OFD packet to send [23:51:44]OFD Sender: No OFD packet to send [23:51:49]OFD Sender: No OFD packet to send [23:51:54]OFD Sender: No OFD packet to send [23:51:59]OFD Sender: No OFD packet to send [23:52:04]OFD Sender: No OFD packet to send [23:52:07]accept exits with 9 [23:52:07]New connection [23:52:07]New thread 3067485540 created [23:52:07]Thread 3067342180 joined [23:52:07]Waiting for new connection... [23:52:07] Sock 9.Parse request [23:52:07]Sock 9.Check first char [23:52:07]Sock 9.First char is OK [23:52:07]request: POST /json_proto HTTP/1.0 [23:52:07]Method: POST [23:52:07]URL: /json_proto [23:52:07]Method is POST - this is cgi request [23:52:07]url: /json_proto [23:52:07]query_string will be loaded in cgi processing [23:52:07]execute_cgi json_proto POST (null) [23:52:07]execute_cgi path=json_proto method=POST [23:52:07]POST find Content-Length [23:52:07]Host: 172.17.58.3:8080 [23:52:07]Content-Length: 215 [23:52:07]Content-Type: application/json [23:52:07] [23:52:07]POST finish read [23:52:07]Found Content-Length = 215 [23:52:07]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" ] } } [23:52:07]execute_script... [23:52:07]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" ] } } [23:52:07]POST & json_proto [23:52:07]process_json_proto [23:52:07]json parsed OK: [23:52:07]protocol is kg_v1.0 [23:52:07]action value=get_value [23:52:07]process_action get_value [23:52:07]cmd_get_value [23:52:07]process_action get_value done [23:52:07]requested_data is exist [23:52:07]produce_requested_data [23:52:07]requested_item kkm.sn is exist - process it [23:52:07]requested_item kkm.ver is exist - process it [23:52:07]requested_item fm.sn is exist - process it [23:52:07]wFMCommunicate request_size=4 [23:52:07]MH_SAM_APDU [23:52:07]CAPDU: 80 11 00 00 [23:52:07]Write to MH i2c: E2 08 00 51 02 80 11 00 00 00 00 00 00 CD [23:52:07]Write i2c OK [23:52:07]MH_I2C_Read... [23:52:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:52:07]Read from MH i2c: E2 [23:52:07]MH_I2C_Read... [23:52:07]Read from MH i2c: E2 17 00 [23:52:07]MH_I2C_Read... [23:52:07]Read from MH i2c: E2 17 00 51 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 21 [23:52:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [23:52:07]wFMCommunicate OK [23:52:07]requested_item fd.num is exist - process it [23:52:07]SAM_PROTO_GetFieldsCounters [23:52:07]wFMCommunicate request_size=4 [23:52:07]MH_SAM_APDU [23:52:07]CAPDU: 80 13 00 00 [23:52:07]Write to MH i2c: E2 08 00 52 02 80 13 00 00 00 00 00 00 D0 [23:52:07]Write i2c OK [23:52:07]MH_I2C_Read... [23:52:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:52:07]Read from MH i2c: E2 [23:52:07]MH_I2C_Read... [23:52:07]Read from MH i2c: E2 62 00 [23:52:07]MH_I2C_Read... [23:52:07]Read from MH i2c: E2 62 00 52 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 34 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [23:52:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 34 93 01 00 0E 04 04 00 D0 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:52:07]wFMCommunicate OK [23:52:07]SAM_PROTO_GetFieldsCounters done [23:52:07]requested_item shift.num is exist - process it [23:52:07]requested_item shift.opened is exist - process it [23:52:07]req_shift_opened [23:52:07]FM_GetShiftState [23:52:07]SAM_PROTO_GetShiftState [23:52:07]wFMCommunicate request_size=4 [23:52:07]MH_SAM_APDU [23:52:07]CAPDU: 80 13 01 00 [23:52:07]Write to MH i2c: E2 08 00 53 02 80 13 01 00 00 00 00 00 D2 [23:52:07]Write i2c OK [23:52:07]MH_I2C_Read... [23:52:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:07]Read from MH i2c: E2 [23:52:07]MH_I2C_Read... [23:52:07]Read from MH i2c: E2 0E 00 [23:52:07]MH_I2C_Read... [23:52:07]Read from MH i2c: E2 0E 00 53 02 00 09 00 00 00 00 00 00 00 00 00 00 90 00 DD [23:52:07]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:52:07]wFMCommunicate OK [23:52:07]SAM_PROTO_GetShiftState done [23:52:07]FM_GetShiftState done [23:52:07]req_shift_opened done [23:52:07]requested_item shift.open_date is exist - process it [23:52:07]req_shift_open_date [23:52:07]FM_GetShiftState [23:52:07]SAM_PROTO_GetShiftState [23:52:07]wFMCommunicate request_size=4 [23:52:07]MH_SAM_APDU [23:52:07]CAPDU: 80 13 01 00 [23:52:07]Write to MH i2c: E2 08 00 54 02 80 13 01 00 00 00 00 00 D3 [23:52:07]Write i2c OK [23:52:07]MH_I2C_Read... [23:52:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:07]Read from MH i2c: E2 [23:52:07]MH_I2C_Read... [23:52:07]Read from MH i2c: E2 0E 00 [23:52:07]MH_I2C_Read... [23:52:07]Read from MH i2c: E2 0E 00 54 02 00 09 00 00 00 00 00 00 00 00 00 00 90 00 DE [23:52:07]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:52:07]wFMCommunicate OK [23:52:07]SAM_PROTO_GetShiftState done [23:52:07]FM_GetShiftState done [23:52:07]req_shift_open_date done [23:52:07]produce_requested_data done [23:52:07]produce_requested_data return {"kkm.sn":"0300000126","kkm.ver":"001","fm.sn":"0000000000875058","fd.num":103220,"shift.num":464,"shift.opened":0,"shift.open_date":0} [23:52:07]process_action_free get_value [23:52:07]json_value_free [23:52:07]json_value_free done [23:52:07]process_json_proto returns [23:52:07]Send response to host [23:52:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000126","kkm.ver":"001","fm.sn":"0000000000875058","fd.num":103220,"shift.num":464,"shift.opened":0,"shift.open_date":0}}} [23:52:07]free response buf [23:52:07]execute_script done [23:52:07]execute_script returns [23:52:07]free content buf [23:52:07]Sock 9.Close socket [23:52:07]Sock 9.Thread stoped [23:52:07]accept exits with 7 [23:52:07]New connection [23:52:07]New thread 3067342180 created [23:52:07]Thread 3067485540 joined [23:52:07]Waiting for new connection... [23:52:07] Sock 7.Parse request [23:52:07]Sock 7.Check first char [23:52:07]Sock 7.First char is OK [23:52:07]request: POST /json_proto HTTP/1.0 [23:52:07]Method: POST [23:52:07]URL: /json_proto [23:52:07]Method is POST - this is cgi request [23:52:07]url: /json_proto [23:52:07]query_string will be loaded in cgi processing [23:52:07]execute_cgi json_proto POST (null) [23:52:07]execute_cgi path=json_proto method=POST [23:52:07]POST find Content-Length [23:52:07]Host: 172.17.58.3:8080 [23:52:07]Content-Length: 331 [23:52:07]Content-Type: application/json [23:52:07] [23:52:07]POST finish read [23:52:07]Found Content-Length = 331 [23:52:07]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" ] } } [23:52:07]execute_script... [23:52:08]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" ] } } [23:52:08]POST & json_proto [23:52:08]process_json_proto [23:52:08]json parsed OK: [23:52:08]protocol is kg_v1.0 [23:52:08]action value=get_value [23:52:08]process_action get_value [23:52:08]cmd_get_value [23:52:08]process_action get_value done [23:52:08]requested_data is exist [23:52:08]produce_requested_data [23:52:08]requested_item fm.sale.total is exist - process it [23:52:08]SAM_PROTO_GetFMData [23:52:08]wFMCommunicate request_size=4 [23:52:08]MH_SAM_APDU [23:52:08]CAPDU: 80 13 03 00 [23:52:08]Write to MH i2c: E2 08 00 55 02 80 13 03 00 00 00 00 00 D6 [23:52:08]Write i2c OK [23:52:08]MH_I2C_Read... [23:52:08]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:52:08]Read from MH i2c: E2 [23:52:08]MH_I2C_Read... [23:52:08]Read from MH i2c: E2 FD 00 [23:52:08]MH_I2C_Read... [23:52:08]Read from MH i2c: E2 FD 00 55 02 00 C8 04 85 04 C4 04 6E 04 04 00 93 8F 01 00 69 04 A3 00 6F 04 04 00 9C 87 01 00 B1 04 05 00 7B EA 8F 89 01 70 04 05 00 A4 10 A3 0B 01 72 04 04 00 D7 D9 EC 7D 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 CC F1 CD 29 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 C2 BB 7B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F7 07 00 00 B1 04 04 00 F8 3C BD 12 70 04 04 00 90 29 B1 12 72 04 03 00 68 13 0C 00 04 7C 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 61 83 FD 01 90 00 E0 [23:52:08]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 93 8F 01 00 69 04 A3 00 6F 04 04 00 9C 87 01 00 B1 04 05 00 7B EA 8F 89 01 70 04 05 00 A4 10 A3 0B 01 72 04 04 00 D7 D9 EC 7D 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 CC F1 CD 29 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 C2 BB 7B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F7 07 00 00 B1 04 04 00 F8 3C BD 12 70 04 04 00 90 29 B1 12 72 04 03 00 68 13 0C 00 04 7C 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 61 83 FD 01 90 00 [23:52:08]wFMCommunicate OK [23:52:08]wFMCommunicate request_size=4 [23:52:08]MH_SAM_APDU [23:52:08]CAPDU: 80 17 00 00 [23:52:08]Write to MH i2c: E2 08 00 56 02 80 17 00 00 00 00 00 00 D8 [23:52:08]Write i2c OK [23:52:08]MH_I2C_Read... [23:52:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:08]Read from MH i2c: E2 [23:52:08]MH_I2C_Read... [23:52:08]Read from MH i2c: E2 FD 00 [23:52:08]MH_I2C_Read... [23:52:08]Read from MH i2c: E2 FD 00 56 02 00 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 11 75 2A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 84 [23:52:08]RAPDU: 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 11 75 2A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:08]wFMCommunicate OK [23:52:08]wFMCommunicate request_size=4 [23:52:08]MH_SAM_APDU [23:52:08]CAPDU: 80 17 00 00 [23:52:08]Write to MH i2c: E2 08 00 57 02 80 17 00 00 00 00 00 00 D9 [23:52:08]Write i2c OK [23:52:08]MH_I2C_Read... [23:52:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:08]Read from MH i2c: E2 [23:52:08]MH_I2C_Read... [23:52:08]Read from MH i2c: E2 FD 00 [23:52:08]MH_I2C_Read... [23:52:08]Read from MH i2c: E2 FD 00 57 02 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B1 [23:52:08]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:08]wFMCommunicate OK [23:52:08]wFMCommunicate request_size=4 [23:52:08]MH_SAM_APDU [23:52:08]CAPDU: 80 17 00 00 [23:52:08]Write to MH i2c: E2 08 00 58 02 80 17 00 00 00 00 00 00 DA [23:52:08]Write i2c OK [23:52:08]MH_I2C_Read... [23:52:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:09]Read from MH i2c: E2 [23:52:09]MH_I2C_Read... [23:52:09]Read from MH i2c: E2 FD 00 [23:52:09]MH_I2C_Read... [23:52:09]Read from MH i2c: E2 FD 00 58 02 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 52 [23:52:09]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:52:09]wFMCommunicate OK [23:52:09]wFMCommunicate request_size=4 [23:52:09]MH_SAM_APDU [23:52:09]CAPDU: 80 17 00 00 [23:52:09]Write to MH i2c: E2 08 00 59 02 80 17 00 00 00 00 00 00 DB [23:52:09]Write i2c OK [23:52:09]MH_I2C_Read... [23:52:09]OFD Sender: No OFD packet to send [23:52:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [23:52:09]Read from MH i2c: E2 [23:52:09]MH_I2C_Read... [23:52:09]Read from MH i2c: E2 E5 00 [23:52:09]MH_I2C_Read... [23:52:09]Read from MH i2c: E2 E5 00 59 02 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 BF [23:52:09]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:52:09]wFMCommunicate OK [23:52:09]SAM_PROTO_GetFMData done [23:52:09]requested_item fm.sale_refund.total is exist - process it [23:52:09]requested_item fm.buy.total is exist - process it [23:52:09]requested_item shift.sale.total is exist - process it [23:52:09]SAM_PROTO_GetShiftData [23:52:09]wFMCommunicate request_size=4 [23:52:09]MH_SAM_APDU [23:52:09]CAPDU: 80 13 02 00 [23:52:09]Write to MH i2c: E2 08 00 5A 02 80 13 02 00 00 00 00 00 DA [23:52:09]Write i2c OK [23:52:09]MH_I2C_Read... [23:52:09]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:52:09]Read from MH i2c: E2 [23:52:09]MH_I2C_Read... [23:52:09]Read from MH i2c: E2 FD 00 [23:52:09]MH_I2C_Read... [23:52:09]Read from MH i2c: E2 FD 00 5A 02 00 B7 04 AA 04 B3 04 6E 04 04 00 82 00 00 00 69 04 9C 00 6F 04 04 00 7F 00 00 00 B1 04 03 00 79 07 9B 70 04 03 00 84 D7 94 72 04 03 00 F5 2F 06 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 24 78 10 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 55 5F 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 95 00 6F 04 04 00 03 00 00 00 B1 04 02 00 60 EA 70 04 02 00 60 EA 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 ED 18 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 90 00 07 [23:52:10]RAPDU: B7 04 AA 04 B3 04 6E 04 04 00 82 00 00 00 69 04 9C 00 6F 04 04 00 7F 00 00 00 B1 04 03 00 79 07 9B 70 04 03 00 84 D7 94 72 04 03 00 F5 2F 06 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 24 78 10 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 55 5F 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 95 00 6F 04 04 00 03 00 00 00 B1 04 02 00 60 EA 70 04 02 00 60 EA 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 ED 18 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 90 00 [23:52:10]wFMCommunicate OK [23:52:10]wFMCommunicate request_size=4 [23:52:10]MH_SAM_APDU [23:52:10]CAPDU: 80 17 00 00 [23:52:10]Write to MH i2c: E2 08 00 5B 02 80 17 00 00 00 00 00 00 DD [23:52:10]Write i2c OK [23:52:10]MH_I2C_Read... [23:52:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:10]Read from MH i2c: E2 [23:52:10]MH_I2C_Read... [23:52:10]Read from MH i2c: E2 FD 00 [23:52:10]MH_I2C_Read... [23:52:10]Read from MH i2c: E2 FD 00 5B 02 00 00 F6 03 01 00 01 F7 03 02 00 14 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 19 [23:52:10]RAPDU: 00 F6 03 01 00 01 F7 03 02 00 14 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:10]wFMCommunicate OK [23:52:10]wFMCommunicate request_size=4 [23:52:10]MH_SAM_APDU [23:52:10]CAPDU: 80 17 00 00 [23:52:10]Write to MH i2c: E2 08 00 5C 02 80 17 00 00 00 00 00 00 DE [23:52:10]Write i2c OK [23:52:10]MH_I2C_Read... [23:52:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:10]Read from MH i2c: E2 [23:52:10]MH_I2C_Read... [23:52:10]Read from MH i2c: E2 FD 00 [23:52:10]MH_I2C_Read... [23:52:10]Read from MH i2c: E2 FD 00 5C 02 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 83 [23:52:10]RAPDU: EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:10]wFMCommunicate OK [23:52:10]wFMCommunicate request_size=4 [23:52:10]MH_SAM_APDU [23:52:10]CAPDU: 80 17 00 00 [23:52:10]Write to MH i2c: E2 08 00 5D 02 80 17 00 00 00 00 00 00 DF [23:52:10]Write i2c OK [23:52:10]MH_I2C_Read... [23:52:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:10]Read from MH i2c: E2 [23:52:10]MH_I2C_Read... [23:52:10]Read from MH i2c: E2 FD 00 [23:52:10]MH_I2C_Read... [23:52:10]Read from MH i2c: E2 FD 00 5D 02 00 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 54 [23:52:10]RAPDU: 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 [23:52:10]wFMCommunicate OK [23:52:10]wFMCommunicate request_size=4 [23:52:10]MH_SAM_APDU [23:52:10]CAPDU: 80 17 00 00 [23:52:10]Write to MH i2c: E2 08 00 5E 02 80 17 00 00 00 00 00 00 E0 [23:52:10]Write i2c OK [23:52:10]MH_I2C_Read... [23:52:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 209! [23:52:11]Read from MH i2c: E2 [23:52:11]MH_I2C_Read... [23:52:11]Read from MH i2c: E2 D4 00 [23:52:11]MH_I2C_Read... [23:52:11]Read from MH i2c: E2 D4 00 5E 02 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 D1 [23:52:11]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:52:11]wFMCommunicate OK [23:52:11]SAM_PROTO_GetShiftData done [23:52:11]requested_item shift.sale.total_cash is exist - process it [23:52:11]requested_item shift.sale_refund.total is exist - process it [23:52:11]requested_item shift.sale_refund.total_cash is exist - process it [23:52:11]requested_item shift.buy.total is exist - process it [23:52:11]requested_item shift.buy.total_cash is exist - process it [23:52:11]produce_requested_data done [23:52:11]produce_requested_data return {"fm.sale.total":66028775.63,"fm.sale_refund.total":3143918.00,"fm.buy.total":0.00,"shift.sale.total":101599.93,"shift.sale.total_cash":97545.00,"shift.sale_refund.total":600.00,"shift.sale_refund.total_cash":600.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:52:11]process_action_free get_value [23:52:11]json_value_free [23:52:11]json_value_free done [23:52:11]process_json_proto returns [23:52:11]Send response to host [23:52:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":66028775.63,"fm.sale_refund.total":3143918.00,"fm.buy.total":0.00,"shift.sale.total":101599.93,"shift.sale.total_cash":97545.00,"shift.sale_refund.total":600.00,"shift.sale_refund.total_cash":600.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:52:11]free response buf [23:52:11]execute_script done [23:52:11]execute_script returns [23:52:11]free content buf [23:52:11]Sock 7.Close socket [23:52:11]Sock 7.Thread stoped [23:52:11]accept exits with 9 [23:52:11]New connection [23:52:11]New thread 3067485540 created [23:52:11]Thread 3067342180 joined [23:52:11]Waiting for new connection... [23:52:11] Sock 9.Parse request [23:52:11]Sock 9.Check first char [23:52:11]Sock 9.First char is OK [23:52:11]request: POST /json_proto HTTP/1.0 [23:52:11]Method: POST [23:52:11]URL: /json_proto [23:52:11]Method is POST - this is cgi request [23:52:11]url: /json_proto [23:52:11]query_string will be loaded in cgi processing [23:52:11]execute_cgi json_proto POST (null) [23:52:11]execute_cgi path=json_proto method=POST [23:52:11]POST find Content-Length [23:52:11]Host: 172.17.58.3:8080 [23:52:11]Content-Length: 253 [23:52:11]Content-Type: application/json [23:52:11] [23:52:11]POST finish read [23:52:11]Found Content-Length = 253 [23:52:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0410\u043C\u0430\u043D\u043E\u0432\u0430 \u0421. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:11]execute_script... [23:52:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0410\u043C\u0430\u043D\u043E\u0432\u0430 \u0421. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:11]POST & json_proto [23:52:11]process_json_proto [23:52:11]json parsed OK: [23:52:11]protocol is kg_v1.0 [23:52:11]action value=open_shift [23:52:11]process_action open_shift [23:52:11]cmd_open_shift [23:52:11]MH_GetDate [23:52:11]Write to MH i2c: F0 00 00 5F 02 50 [23:52:11]Write i2c OK [23:52:11]MH_I2C_Read... [23:52:11]Read from MH i2c: F0 [23:52:11]MH_I2C_Read... [23:52:11]Read from MH i2c: F0 09 00 [23:52:11]MH_I2C_Read... [23:52:11]Read from MH i2c: F0 09 00 5F 02 00 AC F1 BB 66 DC E4 6D 64 A8 [23:52:11]GetLastDocTimeStamp 1723591953 [23:52:11]current date 1723593132 [23:52:11]FM_GetShiftState [23:52:11]SAM_PROTO_GetShiftState [23:52:11]wFMCommunicate request_size=4 [23:52:11]MH_SAM_APDU [23:52:11]CAPDU: 80 13 01 00 [23:52:11]Write to MH i2c: E2 08 00 60 02 80 13 01 00 00 00 00 00 DF [23:52:11]Write i2c OK [23:52:11]MH_I2C_Read... [23:52:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:11]Read from MH i2c: E2 [23:52:11]MH_I2C_Read... [23:52:11]Read from MH i2c: E2 0E 00 [23:52:11]MH_I2C_Read... [23:52:11]Read from MH i2c: E2 0E 00 60 02 00 09 00 00 00 00 00 00 00 00 00 00 90 00 EA [23:52:11]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:52:11]wFMCommunicate OK [23:52:11]SAM_PROTO_GetShiftState done [23:52:11]FM_GetShiftState done [23:52:11]KKMCreateOpenShiftDocument [23:52:11]Load OK [23:52:11]Malloc new data [23:52:11]MH_GetDate [23:52:11]Write to MH i2c: F0 00 00 61 02 52 [23:52:11]Write i2c OK [23:52:11]MH_I2C_Read... [23:52:11]Read from MH i2c: F0 [23:52:11]MH_I2C_Read... [23:52:11]Read from MH i2c: F0 09 00 [23:52:11]MH_I2C_Read... [23:52:11]Read from MH i2c: F0 09 00 61 02 00 AC F1 BB 66 DC E4 6D 64 AA [23:52:11]Malloc new data [23:52:11]KKMCreateOpenShiftDocument OK [23:52:11]KKMSetOpenShiftData OK [23:52:11]ProcessDocumentItem done err = 0, tmpTLVsize=212 [23:52:11]tlvbuf is 011DB2F0 [23:52:11]KKMLoadAndSignOpenShiftData [23:52:11]SAM_PROTO_ProcessDocument [23:52:11]wFMCommunicate request_size=9 [23:52:11]MH_SAM_APDU [23:52:11]CAPDU: 80 15 01 00 04 02 00 D4 00 [23:52:11]Write to MH i2c: E2 0C 00 62 02 80 15 01 00 04 00 02 00 D4 00 00 00 C1 [23:52:11]Write i2c OK [23:52:11]MH_I2C_Read... [23:52:11]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [23:52:11]Read from MH i2c: E2 [23:52:11]MH_I2C_Read... [23:52:11]Read from MH i2c: E2 03 00 [23:52:11]MH_I2C_Read... [23:52:11]Read from MH i2c: E2 03 00 62 02 00 90 00 D8 [23:52:11]RAPDU: 90 00 [23:52:11]wFMCommunicate OK [23:52:11]wFMCommunicate request_size=23 [23:52:11]MH_SAM_APDU [23:52:11]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [23:52:11]Write to MH i2c: E2 1A 00 63 02 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 DA [23:52:11]Write i2c OK [23:52:11]MH_I2C_Read... [23:52:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:52:11]Read from MH i2c: E2 [23:52:11]MH_I2C_Read... [23:52:11]Read from MH i2c: E2 03 00 [23:52:11]MH_I2C_Read... [23:52:11]Read from MH i2c: E2 03 00 63 02 00 90 00 D9 [23:52:11]RAPDU: 90 00 [23:52:11]wFMCommunicate OK [23:52:11]wFMCommunicate request_size=28 [23:52:11]MH_SAM_APDU [23:52:11]CAPDU: 80 15 02 00 17 FD 03 13 00 D0 90 D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 D0 A1 2E 20 [23:52:11]Write to MH i2c: E2 1F 00 64 02 80 15 02 00 17 00 FD 03 13 00 D0 90 D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 D0 A1 2E 20 00 00 8F [23:52:11]Write i2c OK [23:52:11]MH_I2C_Read... [23:52:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:52:11]Read from MH i2c: E2 [23:52:11]MH_I2C_Read... [23:52:11]Read from MH i2c: E2 03 00 [23:52:11]MH_I2C_Read... [23:52:11]Read from MH i2c: E2 03 00 64 02 00 90 00 DA [23:52:11]RAPDU: 90 00 [23:52:11]wFMCommunicate OK [23:52:11]wFMCommunicate request_size=103 [23:52:11]MH_SAM_APDU [23:52:11]CAPDU: 80 15 02 00 62 F1 03 5E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D1 80 D0 B0 D1 81 D0 BD D0 B0 D1 8F 20 D0 A0 D0 B5 D1 87 D0 BA D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 9E D0 BA D1 82 D1 8F D0 B1 D1 80 D1 8C D1 81 D0 BA D0 B0 D1 8F 20 33 33 2F 31 2C 20 34 32 2E 39 30 31 35 35 34 2C 20 37 34 2E 39 37 35 33 36 36 [23:52:11]Write to MH i2c: E2 6A 00 65 02 80 15 02 00 62 00 F1 03 5E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D1 80 D0 B0 D1 81 D0 BD D0 B0 D1 8F 20 D0 A0 D0 B5 D1 87 D0 BA D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 9E D0 BA D1 82 D1 8F D0 B1 D1 80 D1 8C D1 81 D0 BA D0 B0 D1 8F 20 33 33 2F 31 2C 20 34 32 2E 39 30 31 35 35 34 2C 20 37 34 2E 39 37 35 33 36 36 00 00 BA [23:52:11]Write i2c OK [23:52:11]MH_I2C_Read... [23:52:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:52:11]Read from MH i2c: E2 [23:52:11]MH_I2C_Read... [23:52:11]Read from MH i2c: E2 03 00 [23:52:11]MH_I2C_Read... [23:52:11]Read from MH i2c: E2 03 00 65 02 00 90 00 DB [23:52:11]RAPDU: 90 00 [23:52:11]wFMCommunicate OK [23:52:11]wFMCommunicate request_size=50 [23:52:11]MH_SAM_APDU [23:52:11]CAPDU: 80 15 02 00 2D A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 33 38 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [23:52:11]Write to MH i2c: E2 35 00 66 02 80 15 02 00 2D 00 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 33 38 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 62 [23:52:11]Write i2c OK [23:52:11]MH_I2C_Read... [23:52:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:52:11]Read from MH i2c: E2 [23:52:11]MH_I2C_Read... [23:52:11]Read from MH i2c: E2 03 00 [23:52:11]MH_I2C_Read... [23:52:11]Read from MH i2c: E2 03 00 66 02 00 90 00 DC [23:52:11]RAPDU: 90 00 [23:52:11]wFMCommunicate OK [23:52:11]wFMCommunicate request_size=13 [23:52:11]MH_SAM_APDU [23:52:11]CAPDU: 80 15 02 00 08 F4 03 04 00 AC F1 BB 66 [23:52:11]Write to MH i2c: E2 10 00 67 02 80 15 02 00 08 00 F4 03 04 00 AC F1 BB 66 00 00 B2 [23:52:11]Write i2c OK [23:52:11]MH_I2C_Read... [23:52:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:52:11]Read from MH i2c: E2 [23:52:12]MH_I2C_Read... [23:52:12]Read from MH i2c: E2 03 00 [23:52:12]MH_I2C_Read... [23:52:12]Read from MH i2c: E2 03 00 67 02 00 90 00 DD [23:52:12]RAPDU: 90 00 [23:52:12]wFMCommunicate OK [23:52:12]wFMCommunicate request_size=25 [23:52:12]MH_SAM_APDU [23:52:12]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 [23:52:12]Write to MH i2c: E2 1C 00 68 02 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 00 00 4E [23:52:12]Write i2c OK [23:52:12]MH_I2C_Read... [23:52:12]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:52:12]Read from MH i2c: E2 [23:52:12]MH_I2C_Read... [23:52:12]Read from MH i2c: E2 03 00 [23:52:12]MH_I2C_Read... [23:52:12]Read from MH i2c: E2 03 00 68 02 00 90 00 DE [23:52:12]RAPDU: 90 00 [23:52:12]wFMCommunicate OK [23:52:12]wFMCommunicate request_size=4 [23:52:12]MH_SAM_APDU [23:52:12]CAPDU: 80 15 03 00 [23:52:12]Write to MH i2c: E2 08 00 69 02 80 15 03 00 00 00 00 00 EC [23:52:12]Write i2c OK [23:52:12]MH_I2C_Read... [23:52:12]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [23:52:12]Read from MH i2c: E2 [23:52:12]MH_I2C_Read... [23:52:12]Read from MH i2c: E2 38 00 [23:52:12]MH_I2C_Read... [23:52:12]Read from MH i2c: E2 38 00 69 02 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 35 93 01 00 0E 04 04 00 D1 01 00 00 35 04 06 00 EA 5D 79 0F 30 48 90 00 9B [23:52:12]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 35 93 01 00 0E 04 04 00 D1 01 00 00 35 04 06 00 EA 5D 79 0F 30 48 90 00 [23:52:12]wFMCommunicate OK [23:52:12]SAM_PROTO_ProcessDocument answer len = 51 [23:52:12]SAM_PROTO_ProcessDocument done [23:52:12]SetTLVBufToDocument [23:52:12]Processing tag 1209 (04B9) [23:52:12]Malloc new data [23:52:12]Processing tag 1041 (0411) [23:52:12]Processing tag 1040 (0410) [23:52:12]Malloc new data [23:52:12]Processing tag 1038 (040E) [23:52:12]Malloc new data [23:52:12]Processing tag 1077 (0435) [23:52:12]Malloc new data [23:52:12]SetTLVBufToDocument err=0 [23:52:12]KKMLoadAndSignOpenShiftData store KKM data [23:52:12]KKMLoadAndSignOpenShiftData err=0 [23:52:12]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Аманова С. Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 Место: АЗС № 38 "Партнер Нефть" 13.08.2024 23:52 Смена: 465 РНМ: 0000000000092718 ЗНМ: 0300000126 ФД: 103221 ФМ: 0000000000875058 ФПД: 257687183896648 [23:52:12]StoreToDocumentArchive [23:52:12]shift 465 fd 103221 [23:52:12]Create dir for shift 0465 [23:52:12]save to /storage/0465/doc_00103221 [23:52:12]save last doc name /storage/0465/doc_00103221 to /storage/kkm_last_doc_name [23:52:12]save OK [23:52:12]Clear old archive folders... [23:52:12]Remove dir /storage/0464 [23:52:12]opendir ok [23:52:12]file . [23:52:12]file .. [23:52:12]file doc_00103089 [23:52:12]remove file /storage/0464/doc_00103089 [23:52:12]file doc_00103090 [23:52:12]remove file /storage/0464/doc_00103090 [23:52:12]file doc_00103091 [23:52:12]remove file /storage/0464/doc_00103091 [23:52:12]file doc_00103092 [23:52:12]remove file /storage/0464/doc_00103092 [23:52:12]file doc_00103093 [23:52:12]remove file /storage/0464/doc_00103093 [23:52:12]file doc_00103094 [23:52:12]remove file /storage/0464/doc_00103094 [23:52:12]file doc_00103095 [23:52:12]remove file /storage/0464/doc_00103095 [23:52:12]file doc_00103096 [23:52:12]remove file /storage/0464/doc_00103096 [23:52:12]file doc_00103097 [23:52:12]remove file /storage/0464/doc_00103097 [23:52:12]file doc_00103098 [23:52:12]remove file /storage/0464/doc_00103098 [23:52:12]file doc_00103099 [23:52:12]remove file /storage/0464/doc_00103099 [23:52:12]file doc_00103100 [23:52:12]remove file /storage/0464/doc_00103100 [23:52:12]file doc_00103101 [23:52:12]remove file /storage/0464/doc_00103101 [23:52:12]file doc_00103102 [23:52:12]remove file /storage/0464/doc_00103102 [23:52:12]file doc_00103103 [23:52:12]remove file /storage/0464/doc_00103103 [23:52:12]file doc_00103104 [23:52:12]remove file /storage/0464/doc_00103104 [23:52:12]file doc_00103105 [23:52:12]remove file /storage/0464/doc_00103105 [23:52:12]file doc_00103106 [23:52:12]remove file /storage/0464/doc_00103106 [23:52:12]file doc_00103107 [23:52:12]remove file /storage/0464/doc_00103107 [23:52:12]file doc_00103108 [23:52:12]remove file /storage/0464/doc_00103108 [23:52:12]file doc_00103109 [23:52:12]remove file /storage/0464/doc_00103109 [23:52:12]file doc_00103110 [23:52:12]remove file /storage/0464/doc_00103110 [23:52:12]file doc_00103111 [23:52:12]remove file /storage/0464/doc_00103111 [23:52:12]file doc_00103112 [23:52:12]remove file /storage/0464/doc_00103112 [23:52:12]file doc_00103113 [23:52:12]remove file /storage/0464/doc_00103113 [23:52:12]file doc_00103114 [23:52:12]remove file /storage/0464/doc_00103114 [23:52:12]file doc_00103115 [23:52:12]remove file /storage/0464/doc_00103115 [23:52:12]file doc_00103116 [23:52:12]remove file /storage/0464/doc_00103116 [23:52:12]file doc_00103117 [23:52:12]remove file /storage/0464/doc_00103117 [23:52:12]file doc_00103118 [23:52:12]remove file /storage/0464/doc_00103118 [23:52:12]file doc_00103119 [23:52:12]remove file /storage/0464/doc_00103119 [23:52:12]file doc_00103120 [23:52:12]remove file /storage/0464/doc_00103120 [23:52:12]file doc_00103121 [23:52:12]remove file /storage/0464/doc_00103121 [23:52:12]file doc_00103122 [23:52:12]remove file /storage/0464/doc_00103122 [23:52:12]file doc_00103123 [23:52:12]remove file /storage/0464/doc_00103123 [23:52:12]file doc_00103124 [23:52:12]remove file /storage/0464/doc_00103124 [23:52:12]file doc_00103125 [23:52:12]remove file /storage/0464/doc_00103125 [23:52:12]file doc_00103126 [23:52:12]remove file /storage/0464/doc_00103126 [23:52:12]file doc_00103127 [23:52:12]remove file /storage/0464/doc_00103127 [23:52:12]file doc_00103128 [23:52:12]remove file /storage/0464/doc_00103128 [23:52:12]file doc_00103129 [23:52:12]remove file /storage/0464/doc_00103129 [23:52:12]file doc_00103130 [23:52:12]remove file /storage/0464/doc_00103130 [23:52:12]file doc_00103131 [23:52:12]remove file /storage/0464/doc_00103131 [23:52:12]file doc_00103132 [23:52:12]remove file /storage/0464/doc_00103132 [23:52:12]file doc_00103133 [23:52:12]remove file /storage/0464/doc_00103133 [23:52:12]file doc_00103134 [23:52:12]remove file /storage/0464/doc_00103134 [23:52:12]file doc_00103135 [23:52:12]remove file /storage/0464/doc_00103135 [23:52:12]file doc_00103136 [23:52:12]remove file /storage/0464/doc_00103136 [23:52:12]file doc_00103137 [23:52:12]remove file /storage/0464/doc_00103137 [23:52:12]file doc_00103138 [23:52:12]remove file /storage/0464/doc_00103138 [23:52:12]file doc_00103139 [23:52:12]remove file /storage/0464/doc_00103139 [23:52:12]file doc_00103140 [23:52:12]remove file /storage/0464/doc_00103140 [23:52:12]file doc_00103141 [23:52:12]remove file /storage/0464/doc_00103141 [23:52:12]file doc_00103142 [23:52:12]remove file /storage/0464/doc_00103142 [23:52:12]file doc_00103143 [23:52:12]remove file /storage/0464/doc_00103143 [23:52:12]file doc_00103144 [23:52:12]remove file /storage/0464/doc_00103144 [23:52:12]file doc_00103145 [23:52:12]remove file /storage/0464/doc_00103145 [23:52:12]file doc_00103146 [23:52:12]remove file /storage/0464/doc_00103146 [23:52:12]file doc_00103147 [23:52:12]remove file /storage/0464/doc_00103147 [23:52:12]file doc_00103148 [23:52:12]remove file /storage/0464/doc_00103148 [23:52:12]file doc_00103149 [23:52:12]remove file /storage/0464/doc_00103149 [23:52:12]file doc_00103150 [23:52:12]remove file /storage/0464/doc_00103150 [23:52:12]file doc_00103151 [23:52:12]remove file /storage/0464/doc_00103151 [23:52:12]file doc_00103152 [23:52:12]remove file /storage/0464/doc_00103152 [23:52:12]file doc_00103153 [23:52:12]remove file /storage/0464/doc_00103153 [23:52:12]file doc_00103154 [23:52:12]remove file /storage/0464/doc_00103154 [23:52:12]file doc_00103155 [23:52:12]remove file /storage/0464/doc_00103155 [23:52:12]file doc_00103156 [23:52:12]remove file /storage/0464/doc_00103156 [23:52:12]file doc_00103157 [23:52:12]remove file /storage/0464/doc_00103157 [23:52:12]file doc_00103158 [23:52:12]remove file /storage/0464/doc_00103158 [23:52:12]file doc_00103159 [23:52:12]remove file /storage/0464/doc_00103159 [23:52:12]file doc_00103160 [23:52:12]remove file /storage/0464/doc_00103160 [23:52:12]file doc_00103161 [23:52:12]remove file /storage/0464/doc_00103161 [23:52:12]file doc_00103162 [23:52:12]remove file /storage/0464/doc_00103162 [23:52:12]file doc_00103163 [23:52:12]remove file /storage/0464/doc_00103163 [23:52:12]file doc_00103164 [23:52:12]remove file /storage/0464/doc_00103164 [23:52:12]file doc_00103165 [23:52:12]remove file /storage/0464/doc_00103165 [23:52:12]file doc_00103166 [23:52:12]remove file /storage/0464/doc_00103166 [23:52:12]file doc_00103167 [23:52:12]remove file /storage/0464/doc_00103167 [23:52:12]file doc_00103168 [23:52:12]remove file /storage/0464/doc_00103168 [23:52:12]file doc_00103169 [23:52:12]remove file /storage/0464/doc_00103169 [23:52:12]file doc_00103170 [23:52:12]remove file /storage/0464/doc_00103170 [23:52:12]file doc_00103171 [23:52:12]remove file /storage/0464/doc_00103171 [23:52:12]file doc_00103172 [23:52:12]remove file /storage/0464/doc_00103172 [23:52:12]file doc_00103173 [23:52:12]remove file /storage/0464/doc_00103173 [23:52:12]file doc_00103174 [23:52:12]remove file /storage/0464/doc_00103174 [23:52:12]file doc_00103175 [23:52:12]remove file /storage/0464/doc_00103175 [23:52:12]file doc_00103176 [23:52:12]remove file /storage/0464/doc_00103176 [23:52:12]file doc_00103177 [23:52:12]remove file /storage/0464/doc_00103177 [23:52:12]file doc_00103178 [23:52:12]remove file /storage/0464/doc_00103178 [23:52:12]file doc_00103179 [23:52:12]remove file /storage/0464/doc_00103179 [23:52:12]file doc_00103180 [23:52:12]remove file /storage/0464/doc_00103180 [23:52:12]file doc_00103181 [23:52:12]remove file /storage/0464/doc_00103181 [23:52:12]file doc_00103182 [23:52:12]remove file /storage/0464/doc_00103182 [23:52:12]file doc_00103183 [23:52:12]remove file /storage/0464/doc_00103183 [23:52:12]file doc_00103184 [23:52:12]remove file /storage/0464/doc_00103184 [23:52:12]file doc_00103185 [23:52:12]remove file /storage/0464/doc_00103185 [23:52:12]file doc_00103186 [23:52:12]remove file /storage/0464/doc_00103186 [23:52:12]file doc_00103187 [23:52:12]remove file /storage/0464/doc_00103187 [23:52:12]file doc_00103188 [23:52:12]remove file /storage/0464/doc_00103188 [23:52:12]file doc_00103189 [23:52:12]remove file /storage/0464/doc_00103189 [23:52:12]file doc_00103190 [23:52:12]remove file /storage/0464/doc_00103190 [23:52:12]file doc_00103191 [23:52:12]remove file /storage/0464/doc_00103191 [23:52:12]file doc_00103192 [23:52:12]remove file /storage/0464/doc_00103192 [23:52:12]file doc_00103193 [23:52:12]remove file /storage/0464/doc_00103193 [23:52:12]file doc_00103194 [23:52:12]remove file /storage/0464/doc_00103194 [23:52:12]file doc_00103195 [23:52:12]remove file /storage/0464/doc_00103195 [23:52:12]file doc_00103196 [23:52:12]remove file /storage/0464/doc_00103196 [23:52:12]file doc_00103197 [23:52:12]remove file /storage/0464/doc_00103197 [23:52:12]file doc_00103198 [23:52:12]remove file /storage/0464/doc_00103198 [23:52:12]file doc_00103199 [23:52:12]remove file /storage/0464/doc_00103199 [23:52:12]file doc_00103200 [23:52:12]remove file /storage/0464/doc_00103200 [23:52:12]file doc_00103201 [23:52:12]remove file /storage/0464/doc_00103201 [23:52:12]file doc_00103202 [23:52:12]remove file /storage/0464/doc_00103202 [23:52:12]file doc_00103203 [23:52:12]remove file /storage/0464/doc_00103203 [23:52:12]file doc_00103204 [23:52:12]remove file /storage/0464/doc_00103204 [23:52:12]file doc_00103205 [23:52:12]remove file /storage/0464/doc_00103205 [23:52:12]file doc_00103206 [23:52:12]remove file /storage/0464/doc_00103206 [23:52:12]file doc_00103207 [23:52:12]remove file /storage/0464/doc_00103207 [23:52:12]file doc_00103208 [23:52:12]remove file /storage/0464/doc_00103208 [23:52:12]file doc_00103209 [23:52:12]remove file /storage/0464/doc_00103209 [23:52:12]file doc_00103210 [23:52:12]remove file /storage/0464/doc_00103210 [23:52:12]file doc_00103211 [23:52:12]remove file /storage/0464/doc_00103211 [23:52:12]file doc_00103212 [23:52:12]remove file /storage/0464/doc_00103212 [23:52:12]file doc_00103213 [23:52:12]remove file /storage/0464/doc_00103213 [23:52:12]file doc_00103214 [23:52:12]remove file /storage/0464/doc_00103214 [23:52:12]file doc_00103215 [23:52:12]remove file /storage/0464/doc_00103215 [23:52:12]file doc_00103216 [23:52:12]remove file /storage/0464/doc_00103216 [23:52:12]file doc_00103217 [23:52:12]remove file /storage/0464/doc_00103217 [23:52:12]file doc_00103218 [23:52:12]remove file /storage/0464/doc_00103218 [23:52:12]file doc_00103219 [23:52:12]remove file /storage/0464/doc_00103219 [23:52:12]file doc_00103220 [23:52:12]remove file /storage/0464/doc_00103220 [23:52:12]remove dir /storage/0464 [23:52:12]ProcessDocumentItem done err = 0, tmpTLVsize=263 [23:52:12]tlvbuf is 011E04C0 [23:52:12]SAM_PROTO_ClearQueue [23:52:12]wFMCommunicate request_size=4 [23:52:12]MH_SAM_APDU [23:52:12]CAPDU: 80 09 00 00 [23:52:12]Write to MH i2c: E2 08 00 6A 02 80 09 00 00 00 00 00 00 DE [23:52:12]Write i2c OK [23:52:12]MH_I2C_Read... [23:52:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:52:13]Read from MH i2c: E2 [23:52:13]MH_I2C_Read... [23:52:13]Read from MH i2c: E2 03 00 [23:52:13]MH_I2C_Read... [23:52:13]Read from MH i2c: E2 03 00 6A 02 00 90 00 E0 [23:52:13]RAPDU: 90 00 [23:52:13]wFMCommunicate OK [23:52:13]SAM_PROTO_ClearQueue done [23:52:13]KKMCreateOFDPacket [23:52:13]OFDProtocolAddRootSTLVToBuf [23:52:13]FM_MakeSignedData [23:52:13]FM_MakeSignedData [23:52:13]SAM_PROTO_SignData [23:52:13]wFMCommunicate request_size=4 [23:52:13]MH_SAM_APDU [23:52:13]CAPDU: 80 0D 01 02 [23:52:13]Write to MH i2c: E2 08 00 6B 02 80 0D 01 02 00 00 00 00 E6 [23:52:13]Write i2c OK [23:52:13]MH_I2C_Read... [23:52:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:52:13]Read from MH i2c: E2 [23:52:13]MH_I2C_Read... [23:52:13]Read from MH i2c: E2 03 00 [23:52:13]MH_I2C_Read... [23:52:13]Read from MH i2c: E2 03 00 6B 02 00 90 00 E1 [23:52:13]RAPDU: 90 00 [23:52:13]wFMCommunicate OK [23:52:13]wFMCommunicate request_size=255 [23:52:13]MH_SAM_APDU [23:52:13]CAPDU: 80 0D 02 02 FA 02 00 07 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 90 D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 D0 A1 2E 20 F1 03 5E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D1 80 D0 B0 D1 81 D0 BD D0 B0 D1 8F 20 D0 A0 D0 B5 D1 87 D0 BA D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 9E D0 BA D1 82 D1 8F D0 B1 D1 80 D1 8C D1 81 D0 BA D0 B0 D1 8F 20 33 33 2F 31 2C 20 34 32 2E 39 30 31 35 35 34 2C 20 37 34 2E 39 37 35 33 36 36 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 33 38 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 AC F1 BB 66 0E 04 04 00 D1 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 35 93 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 [23:52:13]Write to MH i2c: E2 02 01 6C 02 80 0D 02 02 FA 00 02 00 07 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 90 D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 D0 A1 2E 20 F1 03 5E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D1 80 D0 B0 D1 81 D0 BD D0 B0 D1 8F 20 D0 A0 D0 B5 D1 87 D0 BA D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 9E D0 BA D1 82 D1 8F D0 B1 D1 80 D1 8C D1 81 D0 BA D0 B0 D1 8F 20 33 33 2F 31 2C 20 34 32 2E 39 30 31 35 35 34 2C 20 37 34 2E 39 37 35 33 36 36 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 33 38 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 AC F1 BB 66 0E 04 04 00 D1 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 35 93 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 B4 [23:52:13]Write i2c OK [23:52:13]MH_I2C_Read... [23:52:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:13]Read from MH i2c: E2 [23:52:13]MH_I2C_Read... [23:52:13]Read from MH i2c: E2 03 00 [23:52:13]MH_I2C_Read... [23:52:13]Read from MH i2c: E2 03 00 6C 02 00 90 00 E2 [23:52:13]RAPDU: 90 00 [23:52:13]wFMCommunicate OK [23:52:13]wFMCommunicate request_size=22 [23:52:13]MH_SAM_APDU [23:52:13]CAPDU: 80 0D 02 02 11 30 38 37 35 30 35 38 35 04 06 00 EA 5D 79 0F 30 48 [23:52:13]Write to MH i2c: E2 19 00 6D 02 80 0D 02 02 11 00 30 38 37 35 30 35 38 35 04 06 00 EA 5D 79 0F 30 48 00 00 02 [23:52:13]Write i2c OK [23:52:13]MH_I2C_Read... [23:52:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:13]Read from MH i2c: E2 [23:52:13]MH_I2C_Read... [23:52:13]Read from MH i2c: E2 03 00 [23:52:13]MH_I2C_Read... [23:52:13]Read from MH i2c: E2 03 00 6D 02 00 90 00 E3 [23:52:13]RAPDU: 90 00 [23:52:13]wFMCommunicate OK [23:52:13]wFMCommunicate request_size=4 [23:52:13]MH_SAM_APDU [23:52:13]CAPDU: 80 0D 03 02 [23:52:13]Write to MH i2c: E2 08 00 6E 02 80 0D 03 02 00 00 00 00 EB [23:52:13]Write i2c OK [23:52:13]MH_I2C_Read... [23:52:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:52:13]Read from MH i2c: E2 [23:52:13]MH_I2C_Read... [23:52:13]Read from MH i2c: E2 0B 00 [23:52:13]MH_I2C_Read... [23:52:13]Read from MH i2c: E2 0B 00 6E 02 00 27 B5 1C AB 10 15 97 2A 90 00 75 [23:52:13]RAPDU: 27 B5 1C AB 10 15 97 2A 90 00 [23:52:13]wFMCommunicate OK [23:52:13]SAM_PROTO_SignData done [23:52:13]FM_MakeSignedData done [23:52:13]CreateOFDProtocolMessage [23:52:13]wFMCommunicate request_size=4 [23:52:13]MH_SAM_APDU [23:52:13]CAPDU: 80 11 00 00 [23:52:13]Write to MH i2c: E2 08 00 6F 02 80 11 00 00 00 00 00 00 EB [23:52:13]Write i2c OK [23:52:13]MH_I2C_Read... [23:52:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:52:13]Read from MH i2c: E2 [23:52:13]MH_I2C_Read... [23:52:13]Read from MH i2c: E2 17 00 [23:52:13]MH_I2C_Read... [23:52:13]Read from MH i2c: E2 17 00 6F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 3F [23:52:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [23:52:13]wFMCommunicate OK [23:52:13]CreateOFDProtocolMessage done [23:52:13]OFDSenderStorePacket 103221 [23:52:13]StoreOFDPacket docnum=103221 [23:52:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 1B 01 00 00 04 6F 13 01 60 7F 5A 02 01 00 02 00 07 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 90 D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 D0 A1 2E 20 F1 03 5E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D1 80 D0 B0 D1 81 D0 BD D0 B0 D1 8F 20 D0 A0 D0 B5 D1 87 D0 BA D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 9E D0 BA D1 82 D1 8F D0 B1 D1 80 D1 8C D1 81 D0 BA D0 B0 D1 8F 20 33 33 2F 31 2C 20 34 32 2E 39 30 31 35 35 34 2C 20 37 34 2E 39 37 35 33 36 36 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 33 38 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 AC F1 BB 66 0E 04 04 00 D1 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 35 93 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 35 04 06 00 EA 5D 79 0F 30 48 27 B5 1C AB 10 15 97 2A [23:52:13]CheckFolder [23:52:13]dirname=/storage/ofd_packets [23:52:13]CheckFolder done [23:52:13]ProducePacketName [23:52:13]name=ofd_packets/00103221 [23:52:13]NVStorageSaveData ofd_packets/00103221 [23:52:13]File name is /storage/ofd_packets/00103221 [23:52:13]Write 313 bytes [23:52:13]NVStorageSaveData done [23:52:13]OFDSenderStorePacket done [23:52:13]KKMCreateOFDPacket done [23:52:13]NVStorageSaveData kkm_last_timestamp [23:52:13]File name is /storage/kkm_last_timestamp [23:52:13]Write 4 bytes [23:52:13]NVStorageSaveData done [23:52:13]ExternCall_PrintAddStr [23:52:13]wPrintStart [23:52:13]Write to MH i2c: 01 00 00 70 02 72 [23:52:13]Write i2c OK [23:52:13]MH_I2C_Read... [23:52:13]Read from MH i2c: 01 [23:52:13]MH_I2C_Read... [23:52:13]Read from MH i2c: 01 07 00 [23:52:13]MH_I2C_Read... [23:52:13]Read from MH i2c: 01 07 00 70 02 00 00 00 00 00 FF 0F 87 [23:52:13]RasterBufferAndPrint [23:52:13]line Отчет об открытии смены [23:52:13]line ФФД: 1.0 [23:52:13]line ИНН: 02508201610067 [23:52:13]line Кассир: Аманова С. [23:52:13]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [23:52:13]line Место: АЗС № 38 "Партнер Нефть" [23:52:13]line 13.08.2024 23:52 [23:52:13]line Смена: 465 [23:52:13]line РНМ: 0000000000092718 [23:52:13]line ЗНМ: 0300000126 [23:52:13]line ФД: 103221 [23:52:13]line ФМ: 0000000000875058 [23:52:13]line ФПД: 257687183896648 [23:52:13]written 0, free lines is 4095 [23:52:13]OFD Sender: Processing packet 103221 [packets to send 69, broken 68] [23:52:13]ProducePacketName [23:52:13]name=ofd_packets/00103221 [23:52:13]OFD Sender: To server: pG, [23:52:13]CommunicateWithHost lk.salyk.kg:30040 [23:52:13]ConnectInit lk.salyk.kg [23:52:13]Connected sock=10 [23:52:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 1B 01 00 00 04 6F 13 01 60 7F 5A 02 01 00 02 00 07 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 90 D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 D0 A1 2E 20 F1 03 5E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D1 80 D0 B0 D1 81 D0 BD D0 B0 D1 8F 20 D0 A0 D0 B5 D1 87 D0 BA D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 9E D0 BA D1 82 D1 8F D0 B1 D1 80 D1 8C D1 81 D0 BA D0 B0 D1 8F 20 33 33 2F 31 2C 20 34 32 2E 39 30 31 35 35 34 2C 20 37 34 2E 39 37 35 33 36 36 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 33 38 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 AC F1 BB 66 0E 04 04 00 D1 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 35 93 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 35 04 06 00 EA 5D 79 0F 30 48 27 B5 1C AB 10 15 97 2A [23:52:13]Write to MH i2c: 01 00 00 82 02 84 [23:52:13]Write i2c OK [23:52:13]MH_I2C_Read... [23:52:13]Read from MH i2c: 01 [23:52:13]MH_I2C_Read... [23:52:13]Read from MH i2c: 01 07 00 [23:52:13]MH_I2C_Read... [23:52:13]Read from MH i2c: 01 07 00 82 02 00 00 00 00 00 66 0E FF [23:52:13]RasterBufferAndPrint [23:52:13]line [23:52:13]line [23:52:13]line [23:52:13]line [23:52:13]line [23:52:13]written 0, free lines is 3702 [23:52:13]MH_Cut [23:52:13]Write to MH i2c: D1 01 00 89 02 01 5D [23:52:13]Write i2c OK [23:52:13]MH_I2C_Read... [23:52:13]Read from MH i2c: D1 [23:52:13]MH_I2C_Read... [23:52:13]Read from MH i2c: D1 01 00 [23:52:13]MH_I2C_Read... [23:52:13]Read from MH i2c: D1 01 00 89 02 00 5C [23:52:13]Write to MH i2c: 01 00 00 8A 02 8C [23:52:13]Write i2c OK [23:52:13]MH_I2C_Read... [23:52:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 78 9D 47 00 F4 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 35 93 01 00 F4 03 04 00 1E 98 BB 66 B6 04 01 00 00 F0 45 FF AE 98 C5 4D 40 [23:52:14]CommunicateWithHost err = 0 [23:52:14]CheckOFDResponse [23:52:14]1017 (14) - 77093643461234 [23:52:14]1041 (16) - 0000000000875058 [23:52:14]1040 (4) - 103221 [23:52:14]1012 (4) - 13.08.2024 17:30 [23:52:14]1206 (1) - 0 [23:52:14]OFD Sender: Remove packet 103221 [23:52:14]ProducePacketName [23:52:14]name=ofd_packets/00103221 [23:52:14]NVStorageDeleteData [23:52:14]*** Cut start [23:52:14]*** Purtial cut [23:52:14]*** Stage 1: CUTSNS_PIN = 1 [23:52:14]OFD Sender: No OFD packet to send [23:52:14]Read from MH i2c: 01 [23:52:14]MH_I2C_Read... [23:52:14]*** Stop cut motor [23:52:14]*** Cut end [23:52:14]Read from MH i2c: 01 07 00 [23:52:14]MH_I2C_Read... [23:52:14]Read from MH i2c: 01 07 00 8A 02 00 00 00 00 00 FF 0F A1 [23:52:14]process_action open_shift done [23:52:14]requested_data is exist [23:52:14]produce_requested_data [23:52:14]requested_item fd.num is exist - process it [23:52:14]SAM_PROTO_GetFieldsCounters [23:52:14]wFMCommunicate request_size=4 [23:52:14]MH_SAM_APDU [23:52:14]CAPDU: 80 13 00 00 [23:52:14]Write to MH i2c: E2 08 00 8B 02 80 13 00 00 00 00 00 00 09 [23:52:14]Write i2c OK [23:52:14]MH_I2C_Read... [23:52:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:52:14]Read from MH i2c: E2 [23:52:14]MH_I2C_Read... [23:52:14]Read from MH i2c: E2 62 00 [23:52:14]MH_I2C_Read... [23:52:14]Read from MH i2c: E2 62 00 8B 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 35 93 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [23:52:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 35 93 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:52:14]wFMCommunicate OK [23:52:14]SAM_PROTO_GetFieldsCounters done [23:52:14]requested_item shift.num is exist - process it [23:52:14]requested_item shift.opened is exist - process it [23:52:14]req_shift_opened [23:52:14]FM_GetShiftState [23:52:14]SAM_PROTO_GetShiftState [23:52:14]wFMCommunicate request_size=4 [23:52:14]MH_SAM_APDU [23:52:14]CAPDU: 80 13 01 00 [23:52:14]Write to MH i2c: E2 08 00 8C 02 80 13 01 00 00 00 00 00 0B [23:52:14]Write i2c OK [23:52:14]MH_I2C_Read... [23:52:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:15]Read from MH i2c: E2 [23:52:15]MH_I2C_Read... [23:52:15]Read from MH i2c: E2 0E 00 [23:52:15]MH_I2C_Read... [23:52:15]Read from MH i2c: E2 0E 00 8C 02 00 09 00 01 AC F1 BB 66 00 00 00 00 90 00 D5 [23:52:15]RAPDU: 09 00 01 AC F1 BB 66 00 00 00 00 90 00 [23:52:15]wFMCommunicate OK [23:52:15]SAM_PROTO_GetShiftState done [23:52:15]FM_GetShiftState done [23:52:15]req_shift_opened done [23:52:15]requested_item shift.open_date is exist - process it [23:52:15]req_shift_open_date [23:52:15]req_shift_open_date done [23:52:15]produce_requested_data done [23:52:15]produce_requested_data return {"fd.num":103221,"shift.num":465,"shift.opened":1,"shift.open_date":1723593132} [23:52:15]process_action_free open_shift [23:52:15]json_value_free [23:52:15]json_value_free done [23:52:15]process_json_proto returns [23:52:15]Send response to host [23:52:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":103221,"shift.num":465,"shift.opened":1,"shift.open_date":1723593132}}} [23:52:15]free response buf [23:52:15]execute_script done [23:52:15]execute_script returns [23:52:15]free content buf [23:52:15]Sock 9.Close socket [23:52:15]Sock 9.Thread stoped [23:52:15]accept exits with 7 [23:52:15]New connection [23:52:15]New thread 3067342180 created [23:52:15]Thread 3067485540 joined [23:52:15]Waiting for new connection... [23:52:15] Sock 7.Parse request [23:52:15]Sock 7.Check first char [23:52:15]Sock 7.First char is OK [23:52:15]request: POST /json_proto HTTP/1.0 [23:52:15]Method: POST [23:52:15]URL: /json_proto [23:52:15]Method is POST - this is cgi request [23:52:15]url: /json_proto [23:52:15]query_string will be loaded in cgi processing [23:52:15]execute_cgi json_proto POST (null) [23:52:15]execute_cgi path=json_proto method=POST [23:52:15]POST find Content-Length [23:52:15]Host: 172.17.58.3:8080 [23:52:15]Content-Length: 331 [23:52:15]Content-Type: application/json [23:52:15] [23:52:15]POST finish read [23:52:15]Found Content-Length = 331 [23:52:15]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" ] } } [23:52:15]execute_script... [23:52:15]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" ] } } [23:52:15]POST & json_proto [23:52:15]process_json_proto [23:52:15]json parsed OK: [23:52:15]protocol is kg_v1.0 [23:52:15]action value=get_value [23:52:15]process_action get_value [23:52:15]cmd_get_value [23:52:15]process_action get_value done [23:52:15]requested_data is exist [23:52:15]produce_requested_data [23:52:15]requested_item fm.sale.total is exist - process it [23:52:15]SAM_PROTO_GetFMData [23:52:15]wFMCommunicate request_size=4 [23:52:15]MH_SAM_APDU [23:52:15]CAPDU: 80 13 03 00 [23:52:15]Write to MH i2c: E2 08 00 8D 02 80 13 03 00 00 00 00 00 0E [23:52:15]Write i2c OK [23:52:15]MH_I2C_Read... [23:52:15]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:52:15]Read from MH i2c: E2 [23:52:15]MH_I2C_Read... [23:52:15]Read from MH i2c: E2 FD 00 [23:52:15]MH_I2C_Read... [23:52:15]Read from MH i2c: E2 FD 00 8D 02 00 C8 04 85 04 C4 04 6E 04 04 00 93 8F 01 00 69 04 A3 00 6F 04 04 00 9C 87 01 00 B1 04 05 00 7B EA 8F 89 01 70 04 05 00 A4 10 A3 0B 01 72 04 04 00 D7 D9 EC 7D 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 CC F1 CD 29 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 C2 BB 7B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F7 07 00 00 B1 04 04 00 F8 3C BD 12 70 04 04 00 90 29 B1 12 72 04 03 00 68 13 0C 00 04 7C 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 61 83 FD 01 90 00 18 [23:52:15]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 93 8F 01 00 69 04 A3 00 6F 04 04 00 9C 87 01 00 B1 04 05 00 7B EA 8F 89 01 70 04 05 00 A4 10 A3 0B 01 72 04 04 00 D7 D9 EC 7D 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 CC F1 CD 29 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 C2 BB 7B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F7 07 00 00 B1 04 04 00 F8 3C BD 12 70 04 04 00 90 29 B1 12 72 04 03 00 68 13 0C 00 04 7C 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 61 83 FD 01 90 00 [23:52:15]wFMCommunicate OK [23:52:15]wFMCommunicate request_size=4 [23:52:15]MH_SAM_APDU [23:52:15]CAPDU: 80 17 00 00 [23:52:15]Write to MH i2c: E2 08 00 8E 02 80 17 00 00 00 00 00 00 10 [23:52:15]Write i2c OK [23:52:15]MH_I2C_Read... [23:52:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:15]Read from MH i2c: E2 [23:52:15]MH_I2C_Read... [23:52:15]Read from MH i2c: E2 FD 00 [23:52:15]MH_I2C_Read... [23:52:15]Read from MH i2c: E2 FD 00 8E 02 00 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 11 75 2A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BC [23:52:16]RAPDU: 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 11 75 2A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:16]wFMCommunicate OK [23:52:16]wFMCommunicate request_size=4 [23:52:16]MH_SAM_APDU [23:52:16]CAPDU: 80 17 00 00 [23:52:16]Write to MH i2c: E2 08 00 8F 02 80 17 00 00 00 00 00 00 11 [23:52:16]Write i2c OK [23:52:16]MH_I2C_Read... [23:52:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:16]Read from MH i2c: E2 [23:52:16]MH_I2C_Read... [23:52:16]Read from MH i2c: E2 FD 00 [23:52:16]MH_I2C_Read... [23:52:16]Read from MH i2c: E2 FD 00 8F 02 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E9 [23:52:16]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:16]wFMCommunicate OK [23:52:16]wFMCommunicate request_size=4 [23:52:16]MH_SAM_APDU [23:52:16]CAPDU: 80 17 00 00 [23:52:16]Write to MH i2c: E2 08 00 90 02 80 17 00 00 00 00 00 00 12 [23:52:16]Write i2c OK [23:52:16]MH_I2C_Read... [23:52:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:16]Read from MH i2c: E2 [23:52:16]MH_I2C_Read... [23:52:16]Read from MH i2c: E2 FD 00 [23:52:16]MH_I2C_Read... [23:52:16]Read from MH i2c: E2 FD 00 90 02 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 8A [23:52:16]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:52:17]wFMCommunicate OK [23:52:17]wFMCommunicate request_size=4 [23:52:17]MH_SAM_APDU [23:52:17]CAPDU: 80 17 00 00 [23:52:17]Write to MH i2c: E2 08 00 91 02 80 17 00 00 00 00 00 00 13 [23:52:17]Write i2c OK [23:52:17]MH_I2C_Read... [23:52:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [23:52:17]Read from MH i2c: E2 [23:52:17]MH_I2C_Read... [23:52:17]Read from MH i2c: E2 E5 00 [23:52:17]MH_I2C_Read... [23:52:17]Read from MH i2c: E2 E5 00 91 02 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F7 [23:52:17]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:52:17]wFMCommunicate OK [23:52:17]SAM_PROTO_GetFMData done [23:52:17]requested_item fm.sale_refund.total is exist - process it [23:52:17]requested_item fm.buy.total is exist - process it [23:52:17]requested_item shift.sale.total is exist - process it [23:52:17]SAM_PROTO_GetShiftData [23:52:17]wFMCommunicate request_size=4 [23:52:17]MH_SAM_APDU [23:52:17]CAPDU: 80 13 02 00 [23:52:17]Write to MH i2c: E2 08 00 92 02 80 13 02 00 00 00 00 00 12 [23:52:17]Write i2c OK [23:52:17]MH_I2C_Read... [23:52:17]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:52:17]Read from MH i2c: E2 [23:52:17]MH_I2C_Read... [23:52:17]Read from MH i2c: E2 FD 00 [23:52:17]MH_I2C_Read... [23:52:17]Read from MH i2c: E2 FD 00 92 02 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 85 [23:52:18]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [23:52:18]wFMCommunicate OK [23:52:18]wFMCommunicate request_size=4 [23:52:18]MH_SAM_APDU [23:52:18]CAPDU: 80 17 00 00 [23:52:18]Write to MH i2c: E2 08 00 93 02 80 17 00 00 00 00 00 00 15 [23:52:18]Write i2c OK [23:52:18]MH_I2C_Read... [23:52:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:18]Read from MH i2c: E2 [23:52:18]MH_I2C_Read... [23:52:18]Read from MH i2c: E2 FD 00 [23:52:18]MH_I2C_Read... [23:52:18]Read from MH i2c: E2 FD 00 93 02 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 1D [23:52:18]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [23:52:18]wFMCommunicate OK [23:52:18]wFMCommunicate request_size=4 [23:52:18]MH_SAM_APDU [23:52:18]CAPDU: 80 17 00 00 [23:52:18]Write to MH i2c: E2 08 00 94 02 80 17 00 00 00 00 00 00 16 [23:52:18]Write i2c OK [23:52:18]MH_I2C_Read... [23:52:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:18]Read from MH i2c: E2 [23:52:18]MH_I2C_Read... [23:52:18]Read from MH i2c: E2 FD 00 [23:52:18]MH_I2C_Read... [23:52:18]Read from MH i2c: E2 FD 00 94 02 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 E8 [23:52:18]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [23:52:18]wFMCommunicate OK [23:52:18]wFMCommunicate request_size=4 [23:52:18]MH_SAM_APDU [23:52:18]CAPDU: 80 17 00 00 [23:52:18]Write to MH i2c: E2 08 00 95 02 80 17 00 00 00 00 00 00 17 [23:52:19]Write i2c OK [23:52:19]MH_I2C_Read... [23:52:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:19]Read from MH i2c: E2 [23:52:19]MH_I2C_Read... [23:52:19]Read from MH i2c: E2 FD 00 [23:52:19]MH_I2C_Read... [23:52:19]Read from MH i2c: E2 FD 00 95 02 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 89 [23:52:19]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [23:52:19]wFMCommunicate OK [23:52:19]wFMCommunicate request_size=4 [23:52:19]MH_SAM_APDU [23:52:19]CAPDU: 80 17 00 00 [23:52:19]Write to MH i2c: E2 08 00 96 02 80 17 00 00 00 00 00 00 18 [23:52:19]Write i2c OK [23:52:19]MH_I2C_Read... [23:52:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [23:52:19]Read from MH i2c: E2 [23:52:19]MH_I2C_Read... [23:52:19]Read from MH i2c: E2 BD 00 [23:52:19]MH_I2C_Read... [23:52:19]Read from MH i2c: E2 BD 00 96 02 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 FE [23:52:19]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:52:19]wFMCommunicate OK [23:52:19]SAM_PROTO_GetShiftData done [23:52:19]requested_item shift.sale.total_cash is exist - process it [23:52:19]requested_item shift.sale_refund.total is exist - process it [23:52:19]requested_item shift.sale_refund.total_cash is exist - process it [23:52:19]requested_item shift.buy.total is exist - process it [23:52:19]requested_item shift.buy.total_cash is exist - process it [23:52:19]produce_requested_data done [23:52:19]produce_requested_data return {"fm.sale.total":66028775.63,"fm.sale_refund.total":3143918.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:52:19]process_action_free get_value [23:52:19]json_value_free [23:52:19]json_value_free done [23:52:19]process_json_proto returns [23:52:19]Send response to host [23:52:19]OFD Sender: No OFD packet to send [23:52:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":66028775.63,"fm.sale_refund.total":3143918.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:52:19]free response buf [23:52:19]execute_script done [23:52:19]execute_script returns [23:52:19]free content buf [23:52:19]Sock 7.Close socket [23:52:19]Sock 7.Thread stoped [23:52:24]OFD Sender: No OFD packet to send [23:52:29]OFD Sender: No OFD packet to send [23:52:34]OFD Sender: No OFD packet to send [23:52:39]OFD Sender: No OFD packet to send [23:52:44]OFD Sender: No OFD packet to send [23:52:49]OFD Sender: No OFD packet to send [23:52:54]OFD Sender: No OFD packet to send [23:52:59]OFD Sender: No OFD packet to send [23:53:04]OFD Sender: No OFD packet to send [23:53:09]OFD Sender: No OFD packet to send [23:53:14]OFD Sender: No OFD packet to send [23:53:20]OFD Sender: No OFD packet to send [23:53:25]OFD Sender: No OFD packet to send [23:53:30]OFD Sender: No OFD packet to send [23:53:35]OFD Sender: No OFD packet to send [23:53:40]OFD Sender: No OFD packet to send [23:53:45]OFD Sender: No OFD packet to send [23:53:50]OFD Sender: No OFD packet to send [23:53:55]OFD Sender: No OFD packet to send [23:54:00]OFD Sender: No OFD packet to send [23:54:05]OFD Sender: No OFD packet to send [23:54:10]OFD Sender: No OFD packet to send [23:54:15]OFD Sender: No OFD packet to send [23:54:20]OFD Sender: No OFD packet to send [23:54:25]OFD Sender: No OFD packet to send [23:54:30]OFD Sender: No OFD packet to send [23:54:35]OFD Sender: No OFD packet to send [23:54:40]OFD Sender: No OFD packet to send [23:54:45]OFD Sender: No OFD packet to send [23:54:50]OFD Sender: No OFD packet to send [23:54:55]OFD Sender: No OFD packet to send [23:55:00]OFD Sender: No OFD packet to send [23:55:04]accept exits with 9 [23:55:04]New connection [23:55:04]New thread 3067485540 created [23:55:04]Thread 3067342180 joined [23:55:04]Waiting for new connection... [23:55:04] Sock 9.Parse request [23:55:04]Sock 9.Check first char [23:55:04]Sock 9.First char is OK [23:55:04]request: POST /json_proto HTTP/1.0 [23:55:04]Method: POST [23:55:04]URL: /json_proto [23:55:04]Method is POST - this is cgi request [23:55:04]url: /json_proto [23:55:04]query_string will be loaded in cgi processing [23:55:04]execute_cgi json_proto POST (null) [23:55:04]execute_cgi path=json_proto method=POST [23:55:04]POST find Content-Length [23:55:04]Host: 172.17.58.3:8080 [23:55:04]Content-Length: 1182 [23:55:04]Content-Type: application/json [23:55:04] [23:55:04]POST finish read [23:55:04]Found Content-Length = 1182 [23:55:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 38\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u043E\u0432\u0430 \u0421. \u000A\u0421\u0447\u0435\u0442 N : (1)160846\u000A14.08.2024 00:03\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 3\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 1318.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4212712;713\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:55:04]execute_script... [23:55:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 38\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u043E\u0432\u0430 \u0421. \u000A\u0421\u0447\u0435\u0442 N : (1)160846\u000A14.08.2024 00:03\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 3\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 1318.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4212712;713\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:55:04]POST & json_proto [23:55:04]process_json_proto [23:55:04]json parsed OK: [23:55:04]protocol is kg_v1.0 [23:55:04]action value=print_text [23:55:04]process_action print_text [23:55:04]cmd_print_text [23:55:04]ExternCall_PrintAddStr [23:55:04]wPrintStart [23:55:04]Write to MH i2c: 01 00 00 97 02 99 [23:55:04]Write i2c OK [23:55:04]MH_I2C_Read... [23:55:04]Read from MH i2c: 01 [23:55:04]MH_I2C_Read... [23:55:04]Read from MH i2c: 01 07 00 [23:55:04]MH_I2C_Read... [23:55:04]Read from MH i2c: 01 07 00 97 02 00 00 00 00 00 FF 0F AE [23:55:04]RasterBufferAndPrint [23:55:04]line *****ТОВАРНЫЙ ЧЕК***** [23:55:04]line АЗС 38 [23:55:04]line Партнер нефть [23:55:04]line 02508201610067 [23:55:04]line Кассир : Аманова С. [23:55:04]line Счет N : (1)160846 [23:55:04]line 14.08.2024 00:03 [23:55:04]line ПРОДАЖА [23:55:04]line ТРК (МРК, ГНК): 3 [23:55:04]line Вид ГСМ : 2710124130 [23:55:04]line Аи-92-К-5 [23:55:04]line 20.000 x 65.90 [23:55:04]line ИТОГ: 1318.00 [23:55:04]line Тип оплаты: Талоны: Партнер нефть [23:55:04]line 4212712;713 [23:55:04]line ______________________ [23:55:04]line (подпись) [23:55:04]written 0, free lines is 4095 [23:55:05]Write to MH i2c: 01 00 00 AB 02 AD [23:55:05]Write i2c OK [23:55:05]MH_I2C_Read... [23:55:05]Read from MH i2c: 01 [23:55:05]MH_I2C_Read... [23:55:05]Read from MH i2c: 01 07 00 [23:55:05]MH_I2C_Read... [23:55:05]Read from MH i2c: 01 07 00 AB 02 00 00 00 00 00 11 0E D3 [23:55:05]RasterBufferAndPrint [23:55:05]line [23:55:05]line [23:55:05]line [23:55:05]line [23:55:05]line [23:55:05]written 0, free lines is 3603 [23:55:05]MH_Cut [23:55:05]Write to MH i2c: D1 01 00 B2 02 01 86 [23:55:05]Write i2c OK [23:55:05]MH_I2C_Read... [23:55:05]Read from MH i2c: D1 [23:55:05]MH_I2C_Read... [23:55:05]Read from MH i2c: D1 01 00 [23:55:05]MH_I2C_Read... [23:55:05]Read from MH i2c: D1 01 00 B2 02 00 85 [23:55:05]Write to MH i2c: 01 00 00 B3 02 B5 [23:55:05]Write i2c OK [23:55:05]MH_I2C_Read... [23:55:05]OFD Sender: No OFD packet to send [23:55:05]*** Cut start [23:55:05]*** Purtial cut [23:55:05]*** CUTSNS_PIN = 0 [23:55:05]*** Stage 1: CUTSNS_PIN = 1 [23:55:07]Read from MH i2c: 01 [23:55:07]MH_I2C_Read... [23:55:07]*** Stop cut motor [23:55:07]*** Cut end [23:55:07]Read from MH i2c: 01 07 00 [23:55:07]MH_I2C_Read... [23:55:07]Read from MH i2c: 01 07 00 B3 02 00 00 00 00 00 FF 0F CA [23:55:07]process_action print_text done [23:55:07]requested_data is exist [23:55:07]produce_requested_data [23:55:07]requested_item fm.sn is exist - process it [23:55:07]wFMCommunicate request_size=4 [23:55:07]MH_SAM_APDU [23:55:07]CAPDU: 80 11 00 00 [23:55:07]Write to MH i2c: E2 08 00 B4 02 80 11 00 00 00 00 00 00 30 [23:55:07]Write i2c OK [23:55:07]MH_I2C_Read... [23:55:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:55:07]Read from MH i2c: E2 [23:55:07]MH_I2C_Read... [23:55:07]Read from MH i2c: E2 17 00 [23:55:07]MH_I2C_Read... [23:55:07]Read from MH i2c: E2 17 00 B4 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 84 [23:55:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [23:55:07]wFMCommunicate OK [23:55:07]requested_item fd.num is exist - process it [23:55:07]SAM_PROTO_GetFieldsCounters [23:55:07]wFMCommunicate request_size=4 [23:55:07]MH_SAM_APDU [23:55:07]CAPDU: 80 13 00 00 [23:55:07]Write to MH i2c: E2 08 00 B5 02 80 13 00 00 00 00 00 00 33 [23:55:07]Write i2c OK [23:55:07]MH_I2C_Read... [23:55:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:55:07]Read from MH i2c: E2 [23:55:07]MH_I2C_Read... [23:55:07]Read from MH i2c: E2 62 00 [23:55:07]MH_I2C_Read... [23:55:07]Read from MH i2c: E2 62 00 B5 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 35 93 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [23:55:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 35 93 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:55:07]wFMCommunicate OK [23:55:07]SAM_PROTO_GetFieldsCounters done [23:55:07]requested_item shift.num is exist - process it [23:55:07]requested_item shift.opened is exist - process it [23:55:07]req_shift_opened [23:55:07]FM_GetShiftState [23:55:07]SAM_PROTO_GetShiftState [23:55:07]wFMCommunicate request_size=4 [23:55:07]MH_SAM_APDU [23:55:07]CAPDU: 80 13 01 00 [23:55:07]Write to MH i2c: E2 08 00 B6 02 80 13 01 00 00 00 00 00 35 [23:55:07]Write i2c OK [23:55:07]MH_I2C_Read... [23:55:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:55:07]Read from MH i2c: E2 [23:55:07]MH_I2C_Read... [23:55:07]Read from MH i2c: E2 0E 00 [23:55:07]MH_I2C_Read... [23:55:07]Read from MH i2c: E2 0E 00 B6 02 00 09 00 01 AC F1 BB 66 00 00 00 00 90 00 FF [23:55:07]RAPDU: 09 00 01 AC F1 BB 66 00 00 00 00 90 00 [23:55:07]wFMCommunicate OK [23:55:07]SAM_PROTO_GetShiftState done [23:55:07]FM_GetShiftState done [23:55:07]req_shift_opened done [23:55:07]requested_item shift.open_date is exist - process it [23:55:07]req_shift_open_date [23:55:07]req_shift_open_date done [23:55:07]produce_requested_data done [23:55:07]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103221,"shift.num":465,"shift.opened":1,"shift.open_date":1723593132} [23:55:07]process_action_free print_text [23:55:07]json_value_free [23:55:07]json_value_free done [23:55:07]process_json_proto returns [23:55:07]Send response to host [23:55:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103221,"shift.num":465,"shift.opened":1,"shift.open_date":1723593132}}} [23:55:07]free response buf [23:55:07]execute_script done [23:55:07]execute_script returns [23:55:07]free content buf [23:55:07]Sock 9.Close socket [23:55:07]Sock 9.Thread stoped [23:55:10]OFD Sender: No OFD packet to send [23:55:15]OFD Sender: No OFD packet to send [23:55:20]OFD Sender: No OFD packet to send [23:55:25]OFD Sender: No OFD packet to send [23:55:30]OFD Sender: No OFD packet to send [23:55:35]OFD Sender: No OFD packet to send [23:55:40]OFD Sender: No OFD packet to send [23:55:45]OFD Sender: No OFD packet to send [23:55:50]OFD Sender: No OFD packet to send [23:55:55]OFD Sender: No OFD packet to send [23:56:00]OFD Sender: No OFD packet to send [23:56:05]OFD Sender: No OFD packet to send [23:56:10]OFD Sender: No OFD packet to send [23:56:15]OFD Sender: No OFD packet to send [23:56:20]OFD Sender: No OFD packet to send [23:56:25]OFD Sender: No OFD packet to send [23:56:30]OFD Sender: No OFD packet to send [23:56:35]OFD Sender: No OFD packet to send [23:56:40]OFD Sender: No OFD packet to send [23:56:45]OFD Sender: No OFD packet to send [23:56:50]OFD Sender: No OFD packet to send [23:56:55]OFD Sender: No OFD packet to send [23:57:00]OFD Sender: No OFD packet to send [23:57:05]OFD Sender: No OFD packet to send [23:57:10]OFD Sender: No OFD packet to send [23:57:15]OFD Sender: No OFD packet to send [23:57:20]OFD Sender: No OFD packet to send [23:57:25]OFD Sender: No OFD packet to send [23:57:30]OFD Sender: No OFD packet to send [23:57:35]OFD Sender: No OFD packet to send [23:57:40]OFD Sender: No OFD packet to send [23:57:45]OFD Sender: No OFD packet to send [23:57:50]OFD Sender: No OFD packet to send [23:57:55]OFD Sender: No OFD packet to send [23:58:00]OFD Sender: No OFD packet to send [23:58:05]OFD Sender: No OFD packet to send [23:58:10]OFD Sender: No OFD packet to send [23:58:15]OFD Sender: No OFD packet to send [23:58:20]OFD Sender: No OFD packet to send [23:58:25]OFD Sender: No OFD packet to send [23:58:30]OFD Sender: No OFD packet to send [23:58:35]OFD Sender: No OFD packet to send [23:58:40]OFD Sender: No OFD packet to send [23:58:45]OFD Sender: No OFD packet to send [23:58:50]OFD Sender: No OFD packet to send [23:58:55]OFD Sender: No OFD packet to send [23:59:00]OFD Sender: No OFD packet to send [23:59:05]OFD Sender: No OFD packet to send [23:59:10]OFD Sender: No OFD packet to send [23:59:15]OFD Sender: No OFD packet to send [23:59:20]OFD Sender: No OFD packet to send [23:59:25]OFD Sender: No OFD packet to send [23:59:30]OFD Sender: No OFD packet to send [23:59:35]OFD Sender: No OFD packet to send [23:59:40]OFD Sender: No OFD packet to send [23:59:45]OFD Sender: No OFD packet to send [23:59:50]OFD Sender: No OFD packet to send [23:59:55]OFD Sender: No OFD packet to send [00:00:00]OFD Sender: No OFD packet to send [00:00:05]OFD Sender: No OFD packet to send [00:00:10]OFD Sender: No OFD packet to send [00:00:15]OFD Sender: No OFD packet to send [00:00:20]OFD Sender: No OFD packet to send [00:00:25]OFD Sender: No OFD packet to send [00:00:30]OFD Sender: No OFD packet to send [00:00:35]OFD Sender: No OFD packet to send [00:00:40]OFD Sender: No OFD packet to send [00:00:45]OFD Sender: No OFD packet to send [00:00:50]OFD Sender: No OFD packet to send [00:00:55]OFD Sender: No OFD packet to send [00:01:00]OFD Sender: No OFD packet to send [00:01:05]OFD Sender: No OFD packet to send [00:01:10]OFD Sender: No OFD packet to send [00:01:15]OFD Sender: No OFD packet to send [00:01:20]OFD Sender: No OFD packet to send [00:01:25]OFD Sender: No OFD packet to send [00:01:30]OFD Sender: No OFD packet to send [00:01:35]OFD Sender: No OFD packet to send [00:01:40]OFD Sender: No OFD packet to send [00:01:45]OFD Sender: No OFD packet to send [00:01:50]OFD Sender: No OFD packet to send [00:01:55]OFD Sender: No OFD packet to send [00:02:00]OFD Sender: No OFD packet to send [00:02:05]OFD Sender: No OFD packet to send [00:02:10]OFD Sender: No OFD packet to send [00:02:15]OFD Sender: No OFD packet to send [00:02:20]OFD Sender: No OFD packet to send [00:02:25]OFD Sender: No OFD packet to send [00:02:30]OFD Sender: No OFD packet to send [00:02:35]OFD Sender: No OFD packet to send [00:02:40]OFD Sender: No OFD packet to send [00:02:45]OFD Sender: No OFD packet to send [00:02:50]OFD Sender: No OFD packet to send [00:02:55]OFD Sender: No OFD packet to send [00:03:00]OFD Sender: No OFD packet to send [00:03:05]OFD Sender: No OFD packet to send [00:03:10]OFD Sender: No OFD packet to send [00:03:15]OFD Sender: No OFD packet to send [00:03:20]OFD Sender: No OFD packet to send [00:03:25]OFD Sender: No OFD packet to send [00:03:30]OFD Sender: No OFD packet to send [00:03:35]OFD Sender: No OFD packet to send [00:03:40]OFD Sender: No OFD packet to send [00:03:45]OFD Sender: No OFD packet to send [00:03:50]OFD Sender: No OFD packet to send [00:03:55]OFD Sender: No OFD packet to send [00:04:00]OFD Sender: No OFD packet to send [00:04:05]OFD Sender: No OFD packet to send [00:04:10]OFD Sender: No OFD packet to send [00:04:15]OFD Sender: No OFD packet to send [00:04:20]OFD Sender: No OFD packet to send [00:04:25]OFD Sender: No OFD packet to send [00:04:30]OFD Sender: No OFD packet to send [00:04:35]OFD Sender: No OFD packet to send [00:04:40]OFD Sender: No OFD packet to send [00:04:45]OFD Sender: No OFD packet to send [00:04:50]OFD Sender: No OFD packet to send [00:04:55]OFD Sender: No OFD packet to send [00:05:00]OFD Sender: No OFD packet to send [00:05:05]OFD Sender: No OFD packet to send [00:05:10]OFD Sender: No OFD packet to send [00:05:15]OFD Sender: No OFD packet to send [00:05:20]OFD Sender: No OFD packet to send [00:05:25]OFD Sender: No OFD packet to send [00:05:30]OFD Sender: No OFD packet to send [00:05:35]OFD Sender: No OFD packet to send [00:05:40]OFD Sender: No OFD packet to send [00:05:45]OFD Sender: No OFD packet to send [00:05:50]OFD Sender: No OFD packet to send [00:05:55]OFD Sender: No OFD packet to send [00:06:00]OFD Sender: No OFD packet to send [00:06:05]OFD Sender: No OFD packet to send [00:06:10]OFD Sender: No OFD packet to send [00:06:15]OFD Sender: No OFD packet to send [00:06:20]OFD Sender: No OFD packet to send [00:06:25]OFD Sender: No OFD packet to send [00:06:30]OFD Sender: No OFD packet to send [00:06:35]OFD Sender: No OFD packet to send [00:06:40]OFD Sender: No OFD packet to send [00:06:45]OFD Sender: No OFD packet to send [00:06:50]OFD Sender: No OFD packet to send [00:06:55]OFD Sender: No OFD packet to send [00:07:00]OFD Sender: No OFD packet to send [00:07:05]OFD Sender: No OFD packet to send [00:07:10]OFD Sender: No OFD packet to send [00:07:15]OFD Sender: No OFD packet to send [00:07:20]OFD Sender: No OFD packet to send [00:07:25]OFD Sender: No OFD packet to send [00:07:30]OFD Sender: No OFD packet to send [00:07:35]OFD Sender: No OFD packet to send [00:07:40]OFD Sender: No OFD packet to send [00:07:45]OFD Sender: No OFD packet to send [00:07:50]OFD Sender: No OFD packet to send [00:07:55]OFD Sender: No OFD packet to send [00:08:00]OFD Sender: No OFD packet to send [00:08:05]OFD Sender: No OFD packet to send [00:08:10]OFD Sender: No OFD packet to send [00:08:15]OFD Sender: No OFD packet to send [00:08:20]OFD Sender: No OFD packet to send [00:08:25]OFD Sender: No OFD packet to send [00:08:30]OFD Sender: No OFD packet to send [00:08:35]OFD Sender: No OFD packet to send [00:08:40]OFD Sender: No OFD packet to send [00:08:45]OFD Sender: No OFD packet to send [00:08:50]OFD Sender: No OFD packet to send [00:08:55]OFD Sender: No OFD packet to send [00:09:00]OFD Sender: No OFD packet to send [00:09:05]OFD Sender: No OFD packet to send [00:09:10]OFD Sender: No OFD packet to send [00:09:15]OFD Sender: No OFD packet to send [00:09:20]OFD Sender: No OFD packet to send [00:09:25]OFD Sender: No OFD packet to send [00:09:30]OFD Sender: No OFD packet to send [00:09:35]OFD Sender: No OFD packet to send [00:09:39]accept exits with 7 [00:09:39]New connection [00:09:39]New thread 3067342180 created [00:09:39]Thread 3067485540 joined [00:09:39]Waiting for new connection... [00:09:39] Sock 7.Parse request [00:09:39]Sock 7.Check first char [00:09:39]Sock 7.First char is OK [00:09:39]request: POST /json_proto HTTP/1.0 [00:09:39]Method: POST [00:09:39]URL: /json_proto [00:09:39]Method is POST - this is cgi request [00:09:39]url: /json_proto [00:09:39]query_string will be loaded in cgi processing [00:09:39]execute_cgi json_proto POST (null) [00:09:39]execute_cgi path=json_proto method=POST [00:09:39]POST find Content-Length [00:09:39]Host: 172.17.58.3:8080 [00:09:39]Content-Length: 676 [00:09:39]Content-Type: application/json [00:09:39] [00:09:39]POST finish read [00:09:39]Found Content-Length = 676 [00:09:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160847", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 3.040, "sum" : 200.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:09:39]execute_script... [00:09: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)160847", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 3.040, "sum" : 200.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:09:39]POST & json_proto [00:09:39]process_json_proto [00:09:39]json parsed OK: [00:09:39]protocol is kg_v1.0 [00:09:39]action value=close_receipt [00:09:39]process_action close_receipt [00:09:39]cmd_close_receipt [00:09:39]MH_GetDate [00:09:39]Write to MH i2c: F0 00 00 B7 02 A8 [00:09:39]Write i2c OK [00:09:39]MH_I2C_Read... [00:09:39]Read from MH i2c: F0 [00:09:39]MH_I2C_Read... [00:09:39]Read from MH i2c: F0 09 00 [00:09:39]MH_I2C_Read... [00:09:40]Read from MH i2c: F0 09 00 B7 02 00 C4 F5 BB 66 DC E4 6D 64 1C [00:09:40]GetLastDocTimeStamp 1723593132 [00:09:40]current date 1723594180 [00:09:40]FM_GetShiftState [00:09:40]SAM_PROTO_GetShiftState [00:09:40]wFMCommunicate request_size=4 [00:09:40]MH_SAM_APDU [00:09:40]CAPDU: 80 13 01 00 [00:09:40]Write to MH i2c: E2 08 00 B8 02 80 13 01 00 00 00 00 00 37 [00:09:40]Write i2c OK [00:09:40]MH_I2C_Read... [00:09:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:40]Read from MH i2c: E2 [00:09:40]MH_I2C_Read... [00:09:40]Read from MH i2c: E2 0E 00 [00:09:40]MH_I2C_Read... [00:09:40]Read from MH i2c: E2 0E 00 B8 02 00 09 00 01 AC F1 BB 66 00 00 00 00 90 00 01 [00:09:40]RAPDU: 09 00 01 AC F1 BB 66 00 00 00 00 90 00 [00:09:40]wFMCommunicate OK [00:09:40]SAM_PROTO_GetShiftState done [00:09:40]FM_GetShiftState done [00:09:40]opened in 1723593132 [00:09:40]opened+sec_in_day 1723679532 [00:09:40]quantity*price = 20033 [00:09:40]sum+1 = 20035 [00:09:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.27 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 1 14.08.2024 00:09 Смена: 465 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103222 ФПД: 190823951700711 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240814T000940&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103222&fm=190823951700711&tin=02508201610067®Number=0000000000092718&sum=20000 [00:09:41]StoreToDocumentArchive [00:09:41]shift 465 fd 103222 [00:09:41]save to /storage/0465/doc_00103222 [00:09:41]save last doc name /storage/0465/doc_00103222 to /storage/kkm_last_doc_name [00:09:41]save OK [00:09:41]Clear old archive folders... [00:09:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:09:41]tlvbuf is 011D7CF0 [00:09:41]SAM_PROTO_ClearQueue [00:09:41]wFMCommunicate request_size=4 [00:09:41]MH_SAM_APDU [00:09:41]CAPDU: 80 09 00 00 [00:09:41]Write to MH i2c: E2 08 00 C5 02 80 09 00 00 00 00 00 00 39 [00:09:41]Write i2c OK [00:09:41]MH_I2C_Read... [00:09:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:09:41]Read from MH i2c: E2 [00:09:41]MH_I2C_Read... [00:09:41]Read from MH i2c: E2 03 00 [00:09:41]MH_I2C_Read... [00:09:41]Read from MH i2c: E2 03 00 C5 02 00 90 00 3B [00:09:41]RAPDU: 90 00 [00:09:41]wFMCommunicate OK [00:09:41]SAM_PROTO_ClearQueue done [00:09:41]KKMCreateOFDPacket [00:09:41]OFDProtocolAddRootSTLVToBuf [00:09:41]FM_MakeSignedData [00:09:41]FM_MakeSignedData [00:09:41]SAM_PROTO_SignData [00:09:41]wFMCommunicate request_size=4 [00:09:41]MH_SAM_APDU [00:09:41]CAPDU: 80 0D 01 02 [00:09:41]Write to MH i2c: E2 08 00 C6 02 80 0D 01 02 00 00 00 00 41 [00:09:41]Write i2c OK [00:09:41]MH_I2C_Read... [00:09:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:09:41]Read from MH i2c: E2 [00:09:41]MH_I2C_Read... [00:09:41]Read from MH i2c: E2 03 00 [00:09:41]MH_I2C_Read... [00:09:41]Read from MH i2c: E2 03 00 C6 02 00 90 00 3C [00:09:41]RAPDU: 90 00 [00:09:41]wFMCommunicate OK [00:09:41]wFMCommunicate request_size=255 [00:09:41]MH_SAM_APDU [00:09: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 E0 0B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 C4 F5 BB 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 36 93 01 00 35 04 06 00 AD [00:09:41]Write to MH i2c: E2 02 01 C7 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 E0 0B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 C4 F5 BB 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 36 93 01 00 35 04 06 00 AD 00 00 A8 [00:09:41]Write i2c OK [00:09:41]MH_I2C_Read... [00:09:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:41]Read from MH i2c: E2 [00:09:41]MH_I2C_Read... [00:09:41]Read from MH i2c: E2 03 00 [00:09:41]MH_I2C_Read... [00:09:41]Read from MH i2c: E2 03 00 C7 02 00 90 00 3D [00:09:41]RAPDU: 90 00 [00:09:41]wFMCommunicate OK [00:09:41]wFMCommunicate request_size=10 [00:09:41]MH_SAM_APDU [00:09:41]CAPDU: 80 0D 02 02 05 8D A9 DB 12 E7 [00:09:41]Write to MH i2c: E2 0D 00 C8 02 80 0D 02 02 05 00 8D A9 DB 12 E7 00 00 58 [00:09:41]Write i2c OK [00:09:41]MH_I2C_Read... [00:09:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:41]Read from MH i2c: E2 [00:09:41]MH_I2C_Read... [00:09:41]Read from MH i2c: E2 03 00 [00:09:41]MH_I2C_Read... [00:09:41]Read from MH i2c: E2 03 00 C8 02 00 90 00 3E [00:09:41]RAPDU: 90 00 [00:09:41]wFMCommunicate OK [00:09:41]wFMCommunicate request_size=4 [00:09:41]MH_SAM_APDU [00:09:41]CAPDU: 80 0D 03 02 [00:09:41]Write to MH i2c: E2 08 00 C9 02 80 0D 03 02 00 00 00 00 46 [00:09:41]Write i2c OK [00:09:41]MH_I2C_Read... [00:09:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:09:41]Read from MH i2c: E2 [00:09:41]MH_I2C_Read... [00:09:41]Read from MH i2c: E2 0B 00 [00:09:41]MH_I2C_Read... [00:09:41]Read from MH i2c: E2 0B 00 C9 02 00 D6 53 E3 45 A5 11 39 BD 90 00 44 [00:09:41]RAPDU: D6 53 E3 45 A5 11 39 BD 90 00 [00:09:41]wFMCommunicate OK [00:09:41]SAM_PROTO_SignData done [00:09:41]FM_MakeSignedData done [00:09:41]CreateOFDProtocolMessage [00:09:41]wFMCommunicate request_size=4 [00:09:41]MH_SAM_APDU [00:09:41]CAPDU: 80 11 00 00 [00:09:41]Write to MH i2c: E2 08 00 CA 02 80 11 00 00 00 00 00 00 46 [00:09:41]Write i2c OK [00:09:41]MH_I2C_Read... [00:09:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:09:41]Read from MH i2c: E2 [00:09:41]MH_I2C_Read... [00:09:41]Read from MH i2c: E2 17 00 [00:09:41]MH_I2C_Read... [00:09:41]Read from MH i2c: E2 17 00 CA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 9A [00:09:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [00:09:41]wFMCommunicate OK [00:09:41]CreateOFDProtocolMessage done [00:09:41]OFDSenderStorePacket 103222 [00:09:41]StoreOFDPacket docnum=103222 [00:09:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 4B 4F 07 01 3C 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 E0 0B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 C4 F5 BB 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 36 93 01 00 35 04 06 00 AD 8D A9 DB 12 E7 D6 53 E3 45 A5 11 39 BD [00:09:41]CheckFolder [00:09:41]dirname=/storage/ofd_packets [00:09:41]CheckFolder done [00:09:41]ProducePacketName [00:09:41]name=ofd_packets/00103222 [00:09:41]NVStorageSaveData ofd_packets/00103222 [00:09:41]File name is /storage/ofd_packets/00103222 [00:09:41]Write 301 bytes [00:09:41]NVStorageSaveData done [00:09:41]OFDSenderStorePacket done [00:09:41]KKMCreateOFDPacket done [00:09:41]NVStorageSaveData kkm_last_timestamp [00:09:41]File name is /storage/kkm_last_timestamp [00:09:41]Write 4 bytes [00:09:41]NVStorageSaveData done [00:09:41]OFD Sender: Processing packet 103222 [packets to send 69, broken 68] [00:09:41]ProducePacketName [00:09:41]name=ofd_packets/00103222 [00:09:41]OFD Sender: To server: pG, [00:09:41]CommunicateWithHost lk.salyk.kg:30040 [00:09:41]ConnectInit lk.salyk.kg [00:09:41]ExternCall_PrintAddStr [00:09:41]wPrintStart [00:09:41]Write to MH i2c: 01 00 00 CB 02 CD [00:09:41]Write i2c OK [00:09:41]MH_I2C_Read... [00:09:41]Read from MH i2c: 01 [00:09:41]MH_I2C_Read... [00:09:41]Read from MH i2c: 01 07 00 [00:09:41]MH_I2C_Read... [00:09:41]Read from MH i2c: 01 07 00 CB 02 00 00 00 00 00 FF 0F E2 [00:09:41]RasterBufferAndPrint [00:09:41]line Счет N : (1)160847 [00:09:41]line ИНН: 02508201610067 [00:09:41]line Контрольно-Кассовый Чек [00:09:41]line ПРОДАЖА [00:09:41]line ТРК (МРК, ГНК) : 7 [00:09:41]line Товар: 2710124130 [00:09:41]line Аи-92-К-5 [00:09:41]line 3.040 * 65.90 [00:09:41]line = 200.34 [00:09:41]line НДС 12% НСП 1% [00:09:41]line > о реализуемом товаре [00:09:41]line ОКРУГЛЕНИЕ: -0.34 [00:09:41]line ИТОГО: 200.00 [00:09:41]line Внесено: 200.00 [00:09:41]line СДАЧА: 0.00 [00:09:41]line НСП 1% : 1.77 [00:09:41]line НДС 12% : 21.27 [00:09:41]line Наличными: 200.00 [00:09:41]line Безнал.: 0.00 [00:09:41]line Место: АЗС № 38 "Партнер Нефть" [00:09:41]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [00:09:41]line СНО: Общий режим [00:09:41]line Чек 1 14.08.2024 00:09 [00:09:41]line Смена: 465 ФФД: 1.0 [00:09:41]line ЗНМ: 0300000126 [00:09:41]line РНМ: 0000000000092718 [00:09:41]line Версия ККМ: 001 [00:09:41]line ФМ: 0000000000875058 [00:09:41]line ФД: 103222 [00:09:41]line ФПД: 190823951700711 [00:09:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240814T000940&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103222&fm=190823951700711&tin=02508201610067®Number=0000000000092718&sum=20000 [00:09:42]Connected sock=11 [00:09:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 4B 4F 07 01 3C 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 E0 0B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 C4 F5 BB 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 36 93 01 00 35 04 06 00 AD 8D A9 DB 12 E7 D6 53 E3 45 A5 11 39 BD [00:09:42]written 0, free lines is 4095 [00:09:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 BD 62 47 00 16 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 36 93 01 00 F4 03 04 00 36 9C BB 66 B6 04 01 00 00 30 F3 A8 22 61 0A 12 4D [00:09:42]CommunicateWithHost err = 0 [00:09:42]CheckOFDResponse [00:09:42]1017 (14) - 77093643461234 [00:09:42]1041 (16) - 0000000000875058 [00:09:42]1040 (4) - 103222 [00:09:42]1012 (4) - 13.08.2024 17:47 [00:09:42]1206 (1) - 0 [00:09:42]OFD Sender: Remove packet 103222 [00:09:42]ProducePacketName [00:09:42]name=ofd_packets/00103222 [00:09:42]NVStorageDeleteData [00:09:42]Write to MH i2c: 01 00 00 F6 02 F8 [00:09:42]Write i2c OK [00:09:42]MH_I2C_Read... [00:09:42]Read from MH i2c: 01 [00:09:42]MH_I2C_Read... [00:09:42]Read from MH i2c: 01 07 00 [00:09:42]MH_I2C_Read... [00:09:42]Read from MH i2c: 01 07 00 F6 02 00 00 00 00 00 DC 0C E7 [00:09:42]RasterBufferAndPrint [00:09:42]line [00:09:42]line [00:09:42]line [00:09:42]line [00:09:42]line [00:09:42]written 0, free lines is 3297 [00:09:42]MH_Cut [00:09:42]Write to MH i2c: D1 01 00 FD 02 01 D1 [00:09:42]Write i2c OK [00:09:42]MH_I2C_Read... [00:09:42]Read from MH i2c: D1 [00:09:42]MH_I2C_Read... [00:09:42]Read from MH i2c: D1 01 00 [00:09:42]MH_I2C_Read... [00:09:42]Read from MH i2c: D1 01 00 FD 02 00 D0 [00:09:42]Write to MH i2c: 01 00 00 FE 02 00 [00:09:42]Write i2c OK [00:09:42]MH_I2C_Read... [00:09:42]OFD Sender: No OFD packet to send [00:09:43]*** Cut start [00:09:43]*** Purtial cut [00:09:43]*** Stage 1: CUTSNS_PIN = 1 [00:09:43]Read from MH i2c: 01 [00:09:43]MH_I2C_Read... [00:09:43]*** Stop cut motor [00:09:43]*** Cut end [00:09:43]Read from MH i2c: 01 07 00 [00:09:43]MH_I2C_Read... [00:09:43]Read from MH i2c: 01 07 00 FE 02 00 00 00 00 00 FF 0F 15 [00:09:43]process_action close_receipt done [00:09:43]requested_data is exist [00:09:43]produce_requested_data [00:09:43]requested_item fm.sn is exist - process it [00:09:43]wFMCommunicate request_size=4 [00:09:43]MH_SAM_APDU [00:09:43]CAPDU: 80 11 00 00 [00:09:43]Write to MH i2c: E2 08 00 FF 02 80 11 00 00 00 00 00 00 7B [00:09:43]Write i2c OK [00:09:43]MH_I2C_Read... [00:09:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:09:43]Read from MH i2c: E2 [00:09:43]MH_I2C_Read... [00:09:43]Read from MH i2c: E2 17 00 [00:09:43]MH_I2C_Read... [00:09:43]Read from MH i2c: E2 17 00 FF 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 CF [00:09:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [00:09:43]wFMCommunicate OK [00:09:43]requested_item fd.num is exist - process it [00:09:43]SAM_PROTO_GetFieldsCounters [00:09:43]wFMCommunicate request_size=4 [00:09:43]MH_SAM_APDU [00:09:43]CAPDU: 80 13 00 00 [00:09:43]Write to MH i2c: E2 08 00 00 03 80 13 00 00 00 00 00 00 7F [00:09:43]Write i2c OK [00:09:43]MH_I2C_Read... [00:09:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:09:43]Read from MH i2c: E2 [00:09:43]MH_I2C_Read... [00:09:43]Read from MH i2c: E2 62 00 [00:09:43]MH_I2C_Read... [00:09:43]Read from MH i2c: E2 62 00 00 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 36 93 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [00:09:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 36 93 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:09:43]wFMCommunicate OK [00:09:43]SAM_PROTO_GetFieldsCounters done [00:09:43]requested_item shift.num is exist - process it [00:09:43]requested_item shift.opened is exist - process it [00:09:43]req_shift_opened [00:09:43]FM_GetShiftState [00:09:43]SAM_PROTO_GetShiftState [00:09:43]wFMCommunicate request_size=4 [00:09:43]MH_SAM_APDU [00:09:43]CAPDU: 80 13 01 00 [00:09:43]Write to MH i2c: E2 08 00 01 03 80 13 01 00 00 00 00 00 81 [00:09:43]Write i2c OK [00:09:43]MH_I2C_Read... [00:09:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:43]Read from MH i2c: E2 [00:09:43]MH_I2C_Read... [00:09:43]Read from MH i2c: E2 0E 00 [00:09:43]MH_I2C_Read... [00:09:43]Read from MH i2c: E2 0E 00 01 03 00 09 00 01 AC F1 BB 66 00 00 00 00 90 00 4B [00:09:43]RAPDU: 09 00 01 AC F1 BB 66 00 00 00 00 90 00 [00:09:43]wFMCommunicate OK [00:09:43]SAM_PROTO_GetShiftState done [00:09:43]FM_GetShiftState done [00:09:43]req_shift_opened done [00:09:43]requested_item shift.open_date is exist - process it [00:09:43]req_shift_open_date [00:09:43]req_shift_open_date done [00:09:43]produce_requested_data done [00:09:43]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103222,"shift.num":465,"shift.opened":1,"shift.open_date":1723593132} [00:09:43]process_action_free close_receipt [00:09:43]json_value_free [00:09:43]json_value_free done [00:09:43]process_json_proto returns [00:09:43]Send response to host [00:09:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103222,"shift.num":465,"shift.opened":1,"shift.open_date":1723593132}}} [00:09:43]free response buf [00:09:43]execute_script done [00:09:43]execute_script returns [00:09:43]free content buf [00:09:43]Sock 7.Close socket [00:09:43]Sock 7.Thread stoped [00:09:47]OFD Sender: No OFD packet to send [00:09:52]OFD Sender: No OFD packet to send [00:09:57]OFD Sender: No OFD packet to send [00:10:02]OFD Sender: No OFD packet to send [00:10:07]OFD Sender: No OFD packet to send [00:10:12]OFD Sender: No OFD packet to send [00:10:17]OFD Sender: No OFD packet to send [00:10:22]OFD Sender: No OFD packet to send [00:10:27]OFD Sender: No OFD packet to send [00:10:32]OFD Sender: No OFD packet to send [00:10:37]OFD Sender: No OFD packet to send [00:10:42]OFD Sender: No OFD packet to send [00:10:47]OFD Sender: No OFD packet to send [00:10:52]OFD Sender: No OFD packet to send [00:10:57]OFD Sender: No OFD packet to send [00:11:02]OFD Sender: No OFD packet to send [00:11:07]OFD Sender: No OFD packet to send [00:11:12]OFD Sender: No OFD packet to send [00:11:17]OFD Sender: No OFD packet to send [00:11:22]OFD Sender: No OFD packet to send [00:11:27]OFD Sender: No OFD packet to send [00:11:32]OFD Sender: No OFD packet to send [00:11:37]OFD Sender: No OFD packet to send [00:11:42]OFD Sender: No OFD packet to send [00:11:47]OFD Sender: No OFD packet to send [00:11:52]OFD Sender: No OFD packet to send [00:11:57]OFD Sender: No OFD packet to send [00:12:02]OFD Sender: No OFD packet to send [00:12:07]OFD Sender: No OFD packet to send [00:12:12]OFD Sender: No OFD packet to send [00:12:17]OFD Sender: No OFD packet to send [00:12:22]OFD Sender: No OFD packet to send [00:12:27]OFD Sender: No OFD packet to send [00:12:32]OFD Sender: No OFD packet to send [00:12:37]OFD Sender: No OFD packet to send [00:12:42]OFD Sender: No OFD packet to send [00:12:47]OFD Sender: No OFD packet to send [00:12:52]OFD Sender: No OFD packet to send [00:12:57]OFD Sender: No OFD packet to send [00:13:02]OFD Sender: No OFD packet to send [00:13:07]OFD Sender: No OFD packet to send [00:13:12]OFD Sender: No OFD packet to send [00:13:17]OFD Sender: No OFD packet to send [00:13:22]OFD Sender: No OFD packet to send [00:13:27]OFD Sender: No OFD packet to send [00:13:32]OFD Sender: No OFD packet to send [00:13:37]OFD Sender: No OFD packet to send [00:13:42]OFD Sender: No OFD packet to send [00:13:47]OFD Sender: No OFD packet to send [00:13:52]OFD Sender: No OFD packet to send [00:13:57]OFD Sender: No OFD packet to send [00:14:02]OFD Sender: No OFD packet to send [00:14:07]OFD Sender: No OFD packet to send [00:14:12]OFD Sender: No OFD packet to send [00:14:17]OFD Sender: No OFD packet to send [00:14:22]OFD Sender: No OFD packet to send [00:14:27]OFD Sender: No OFD packet to send [00:14:33]OFD Sender: No OFD packet to send [00:14:38]OFD Sender: No OFD packet to send [00:14:43]OFD Sender: No OFD packet to send [00:14:48]OFD Sender: No OFD packet to send [00:14:53]OFD Sender: No OFD packet to send [00:14:57]accept exits with 9 [00:14:57]New connection [00:14:57]New thread 3067485540 created [00:14:57]Thread 3067342180 joined [00:14:57]Waiting for new connection... [00:14:57] Sock 9.Parse request [00:14:57]Sock 9.Check first char [00:14:57]Sock 9.First char is OK [00:14:57]request: POST /json_proto HTTP/1.0 [00:14:57]Method: POST [00:14:57]URL: /json_proto [00:14:57]Method is POST - this is cgi request [00:14:57]url: /json_proto [00:14:57]query_string will be loaded in cgi processing [00:14:57]execute_cgi json_proto POST (null) [00:14:57]execute_cgi path=json_proto method=POST [00:14:57]POST find Content-Length [00:14:57]Host: 172.17.58.3:8080 [00:14:57]Content-Length: 681 [00:14:57]Content-Type: application/json [00:14:57] [00:14:57]POST finish read [00:14:57]Found Content-Length = 681 [00:14:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160848", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:14:57]execute_script... [00:14:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160848", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:14:57]POST & json_proto [00:14:57]process_json_proto [00:14:57]json parsed OK: [00:14:57]protocol is kg_v1.0 [00:14:57]action value=close_receipt [00:14:57]process_action close_receipt [00:14:57]cmd_close_receipt [00:14:57]MH_GetDate [00:14:57]Write to MH i2c: F0 00 00 02 03 F4 [00:14:57]Write i2c OK [00:14:57]MH_I2C_Read... [00:14:57]Read from MH i2c: F0 [00:14:57]MH_I2C_Read... [00:14:57]Read from MH i2c: F0 09 00 [00:14:57]MH_I2C_Read... [00:14:57]Read from MH i2c: F0 09 00 02 03 00 02 F7 BB 66 DC E4 6D 64 A8 [00:14:57]GetLastDocTimeStamp 1723594180 [00:14:57]current date 1723594498 [00:14:57]FM_GetShiftState [00:14:57]SAM_PROTO_GetShiftState [00:14:57]wFMCommunicate request_size=4 [00:14:57]MH_SAM_APDU [00:14:57]CAPDU: 80 13 01 00 [00:14:57]Write to MH i2c: E2 08 00 03 03 80 13 01 00 00 00 00 00 83 [00:14:57]Write i2c OK [00:14:57]MH_I2C_Read... [00:14:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:14:57]Read from MH i2c: E2 [00:14:57]MH_I2C_Read... [00:14:57]Read from MH i2c: E2 0E 00 [00:14:57]MH_I2C_Read... [00:14:57]Read from MH i2c: E2 0E 00 03 03 00 09 00 01 AC F1 BB 66 00 00 00 00 90 00 4D [00:14:57]RAPDU: 09 00 01 AC F1 BB 66 00 00 00 00 90 00 [00:14:57]wFMCommunicate OK [00:14:57]SAM_PROTO_GetShiftState done [00:14:57]FM_GetShiftState done [00:14:57]opened in 1723593132 [00:14:57]opened+sec_in_day 1723679532 [00:14:57]quantity*price = 100036 [00:14:57]sum+1 = 100037 [00:14:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 2 14.08.2024 00:14 Смена: 465 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103223 ФПД: 38793882157273 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240814T001458&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103223&fm=38793882157273&tin=02508201610067®Number=0000000000092718&sum=100000 [00:14:58]StoreToDocumentArchive [00:14:58]shift 465 fd 103223 [00:14:58]save to /storage/0465/doc_00103223 [00:14:58]save last doc name /storage/0465/doc_00103223 to /storage/kkm_last_doc_name [00:14:58]save OK [00:14:58]Clear old archive folders... [00:14:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:14:58]tlvbuf is 011C4130 [00:14:58]SAM_PROTO_ClearQueue [00:14:58]wFMCommunicate request_size=4 [00:14:58]MH_SAM_APDU [00:14:58]CAPDU: 80 09 00 00 [00:14:58]Write to MH i2c: E2 08 00 10 03 80 09 00 00 00 00 00 00 85 [00:14:58]Write i2c OK [00:14:58]MH_I2C_Read... [00:14:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:14:58]Read from MH i2c: E2 [00:14:58]MH_I2C_Read... [00:14:58]Read from MH i2c: E2 03 00 [00:14:58]MH_I2C_Read... [00:14:58]Read from MH i2c: E2 03 00 10 03 00 90 00 87 [00:14:58]RAPDU: 90 00 [00:14:58]wFMCommunicate OK [00:14:58]SAM_PROTO_ClearQueue done [00:14:58]KKMCreateOFDPacket [00:14:58]OFDProtocolAddRootSTLVToBuf [00:14:58]FM_MakeSignedData [00:14:58]FM_MakeSignedData [00:14:58]SAM_PROTO_SignData [00:14:58]wFMCommunicate request_size=4 [00:14:58]MH_SAM_APDU [00:14:58]CAPDU: 80 0D 01 02 [00:14:58]Write to MH i2c: E2 08 00 11 03 80 0D 01 02 00 00 00 00 8D [00:14:58]Write i2c OK [00:14:58]MH_I2C_Read... [00:14:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:14:58]Read from MH i2c: E2 [00:14:58]MH_I2C_Read... [00:14:58]Read from MH i2c: E2 03 00 [00:14:58]MH_I2C_Read... [00:14:58]Read from MH i2c: E2 03 00 11 03 00 90 00 88 [00:14:58]RAPDU: 90 00 [00:14:58]wFMCommunicate OK [00:14:58]wFMCommunicate request_size=255 [00:14:58]MH_SAM_APDU [00:14: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 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 02 F7 BB 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 37 93 01 00 35 04 06 00 23 [00:14:58]Write to MH i2c: E2 02 01 12 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 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 02 F7 BB 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 37 93 01 00 35 04 06 00 23 00 00 8D [00:14:58]Write i2c OK [00:14:58]MH_I2C_Read... [00:14:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:14:59]Read from MH i2c: E2 [00:14:59]MH_I2C_Read... [00:14:59]Read from MH i2c: E2 03 00 [00:14:59]MH_I2C_Read... [00:14:59]Read from MH i2c: E2 03 00 12 03 00 90 00 89 [00:14:59]RAPDU: 90 00 [00:14:59]wFMCommunicate OK [00:14:59]wFMCommunicate request_size=10 [00:14:59]MH_SAM_APDU [00:14:59]CAPDU: 80 0D 02 02 05 48 67 90 C0 D9 [00:14:59]Write to MH i2c: E2 0D 00 13 03 80 0D 02 02 05 00 48 67 90 C0 D9 00 00 72 [00:14:59]Write i2c OK [00:14:59]MH_I2C_Read... [00:14:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:14:59]Read from MH i2c: E2 [00:14:59]MH_I2C_Read... [00:14:59]Read from MH i2c: E2 03 00 [00:14:59]MH_I2C_Read... [00:14:59]Read from MH i2c: E2 03 00 13 03 00 90 00 8A [00:14:59]RAPDU: 90 00 [00:14:59]wFMCommunicate OK [00:14:59]wFMCommunicate request_size=4 [00:14:59]MH_SAM_APDU [00:14:59]CAPDU: 80 0D 03 02 [00:14:59]Write to MH i2c: E2 08 00 14 03 80 0D 03 02 00 00 00 00 92 [00:14:59]Write i2c OK [00:14:59]MH_I2C_Read... [00:14:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:14:59]Read from MH i2c: E2 [00:14:59]MH_I2C_Read... [00:14:59]Read from MH i2c: E2 0B 00 [00:14:59]MH_I2C_Read... [00:14:59]Read from MH i2c: E2 0B 00 14 03 00 1F 1A C7 2D D2 BF B4 F3 90 00 F8 [00:14:59]RAPDU: 1F 1A C7 2D D2 BF B4 F3 90 00 [00:14:59]wFMCommunicate OK [00:14:59]SAM_PROTO_SignData done [00:14:59]FM_MakeSignedData done [00:14:59]CreateOFDProtocolMessage [00:14:59]wFMCommunicate request_size=4 [00:14:59]MH_SAM_APDU [00:14:59]CAPDU: 80 11 00 00 [00:14:59]Write to MH i2c: E2 08 00 15 03 80 11 00 00 00 00 00 00 92 [00:14:59]Write i2c OK [00:14:59]MH_I2C_Read... [00:14:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:14:59]Read from MH i2c: E2 [00:14:59]MH_I2C_Read... [00:14:59]Read from MH i2c: E2 17 00 [00:14:59]MH_I2C_Read... [00:14:59]Read from MH i2c: E2 17 00 15 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 E6 [00:14:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [00:14:59]wFMCommunicate OK [00:14:59]CreateOFDProtocolMessage done [00:14:59]OFDSenderStorePacket 103223 [00:14:59]StoreOFDPacket docnum=103223 [00:14:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 7F 39 07 01 6E 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 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 02 F7 BB 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 37 93 01 00 35 04 06 00 23 48 67 90 C0 D9 1F 1A C7 2D D2 BF B4 F3 [00:14:59]CheckFolder [00:14:59]dirname=/storage/ofd_packets [00:14:59]CheckFolder done [00:14:59]ProducePacketName [00:14:59]name=ofd_packets/00103223 [00:14:59]NVStorageSaveData ofd_packets/00103223 [00:14:59]File name is /storage/ofd_packets/00103223 [00:14:59]Write 301 bytes [00:14:59]NVStorageSaveData done [00:14:59]OFDSenderStorePacket done [00:14:59]KKMCreateOFDPacket done [00:14:59]NVStorageSaveData kkm_last_timestamp [00:14:59]File name is /storage/kkm_last_timestamp [00:14:59]Write 4 bytes [00:14:59]NVStorageSaveData done [00:14:59]ExternCall_PrintAddStr [00:14:59]wPrintStart [00:14:59]Write to MH i2c: 01 00 00 16 03 19 [00:14:59]Write i2c OK [00:14:59]MH_I2C_Read... [00:14:59]Read from MH i2c: 01 [00:14:59]MH_I2C_Read... [00:14:59]Read from MH i2c: 01 07 00 [00:14:59]MH_I2C_Read... [00:14:59]Read from MH i2c: 01 07 00 16 03 00 00 00 00 00 FF 0F 2E [00:14:59]RasterBufferAndPrint [00:14:59]line Счет N : (1)160848 [00:14:59]line ИНН: 02508201610067 [00:14:59]line Контрольно-Кассовый Чек [00:14:59]line ПРОДАЖА [00:14:59]line ТРК (МРК, ГНК) : 7 [00:14:59]line Товар: 2710124130 [00:14:59]line Аи-92-К-5 [00:14:59]line 15.180 * 65.90 [00:14:59]line = 1000.36 [00:14:59]line НДС 12% НСП 1% [00:14:59]line > о реализуемом товаре [00:14:59]line ОКРУГЛЕНИЕ: -0.36 [00:14:59]line ИТОГО: 1000.00 [00:14:59]line Внесено: 1000.00 [00:14:59]line СДАЧА: 0.00 [00:14:59]line НСП 1% : 8.85 [00:14:59]line НДС 12% : 106.23 [00:14:59]line Наличными: 1000.00 [00:14:59]line Безнал.: 0.00 [00:14:59]line Место: АЗС № 38 "Партнер Нефть" [00:14:59]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [00:14:59]line СНО: Общий режим [00:14:59]line Чек 2 14.08.2024 00:14 [00:14:59]line Смена: 465 ФФД: 1.0 [00:14:59]line ЗНМ: 0300000126 [00:14:59]line РНМ: 0000000000092718 [00:14:59]line Версия ККМ: 001 [00:14:59]line ФМ: 0000000000875058 [00:14:59]line ФД: 103223 [00:14:59]line ФПД: 38793882157273 [00:14:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240814T001458&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103223&fm=38793882157273&tin=02508201610067®Number=0000000000092718&sum=100000 [00:14:59]OFD Sender: Processing packet 103223 [packets to send 69, broken 68] [00:14:59]ProducePacketName [00:14:59]name=ofd_packets/00103223 [00:14:59]OFD Sender: To server: pG, [00:14:59]CommunicateWithHost lk.salyk.kg:30040 [00:14:59]ConnectInit lk.salyk.kg [00:14:59]written 0, free lines is 4095 [00:14:59]Connected sock=10 [00:14:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 7F 39 07 01 6E 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 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 02 F7 BB 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 37 93 01 00 35 04 06 00 23 48 67 90 C0 D9 1F 1A C7 2D D2 BF B4 F3 [00:15:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 CD CC 47 00 ED EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 37 93 01 00 F4 03 04 00 74 9D BB 66 B6 04 01 00 00 39 5C 32 60 C1 FC 54 4A [00:15:00]CommunicateWithHost err = 0 [00:15:00]CheckOFDResponse [00:15:00]1017 (14) - 77093643461234 [00:15:00]1041 (16) - 0000000000875058 [00:15:00]1040 (4) - 103223 [00:15:00]1012 (4) - 13.08.2024 17:52 [00:15:00]1206 (1) - 0 [00:15:00]OFD Sender: Remove packet 103223 [00:15:00]ProducePacketName [00:15:00]name=ofd_packets/00103223 [00:15:00]NVStorageDeleteData [00:15:00]Write to MH i2c: 01 00 00 41 03 44 [00:15:00]Write i2c OK [00:15:00]MH_I2C_Read... [00:15:00]Read from MH i2c: 01 [00:15:00]MH_I2C_Read... [00:15:00]Read from MH i2c: 01 07 00 [00:15:00]MH_I2C_Read... [00:15:00]Read from MH i2c: 01 07 00 41 03 00 00 00 00 00 EB 0C 42 [00:15:00]RasterBufferAndPrint [00:15:00]line [00:15:00]line [00:15:00]line [00:15:00]line [00:15:00]line [00:15:00]written 0, free lines is 3313 [00:15:00]MH_Cut [00:15:00]Write to MH i2c: D1 01 00 48 03 01 1D [00:15:00]Write i2c OK [00:15:00]MH_I2C_Read... [00:15:00]Read from MH i2c: D1 [00:15:00]MH_I2C_Read... [00:15:00]Read from MH i2c: D1 01 00 [00:15:00]MH_I2C_Read... [00:15:00]Read from MH i2c: D1 01 00 48 03 00 1C [00:15:00]Write to MH i2c: 01 00 00 49 03 4C [00:15:00]Write i2c OK [00:15:00]MH_I2C_Read... [00:15:00]OFD Sender: No OFD packet to send [00:15:00]*** Cut start [00:15:00]*** Purtial cut [00:15:00]*** CUTSNS_PIN = 0 [00:15:01]*** Stage 1: CUTSNS_PIN = 1 [00:15:02]Read from MH i2c: 01 [00:15:02]MH_I2C_Read... [00:15:02]*** Stop cut motor [00:15:03]*** Cut end [00:15:03]Read from MH i2c: 01 07 00 [00:15:03]MH_I2C_Read... [00:15:03]Read from MH i2c: 01 07 00 49 03 00 00 00 00 00 FF 0F 61 [00:15:03]process_action close_receipt done [00:15:03]requested_data is exist [00:15:03]produce_requested_data [00:15:03]requested_item fm.sn is exist - process it [00:15:03]wFMCommunicate request_size=4 [00:15:03]MH_SAM_APDU [00:15:03]CAPDU: 80 11 00 00 [00:15:03]Write to MH i2c: E2 08 00 4A 03 80 11 00 00 00 00 00 00 C7 [00:15:03]Write i2c OK [00:15:03]MH_I2C_Read... [00:15:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:15:03]Read from MH i2c: E2 [00:15:03]MH_I2C_Read... [00:15:03]Read from MH i2c: E2 17 00 [00:15:03]MH_I2C_Read... [00:15:03]Read from MH i2c: E2 17 00 4A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 1B [00:15:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [00:15:03]wFMCommunicate OK [00:15:03]requested_item fd.num is exist - process it [00:15:03]SAM_PROTO_GetFieldsCounters [00:15:03]wFMCommunicate request_size=4 [00:15:03]MH_SAM_APDU [00:15:03]CAPDU: 80 13 00 00 [00:15:03]Write to MH i2c: E2 08 00 4B 03 80 13 00 00 00 00 00 00 CA [00:15:03]Write i2c OK [00:15:03]MH_I2C_Read... [00:15:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:15:03]Read from MH i2c: E2 [00:15:03]MH_I2C_Read... [00:15:03]Read from MH i2c: E2 62 00 [00:15:03]MH_I2C_Read... [00:15:03]Read from MH i2c: E2 62 00 4B 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 37 93 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [00:15:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 37 93 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:15:03]wFMCommunicate OK [00:15:03]SAM_PROTO_GetFieldsCounters done [00:15:03]requested_item shift.num is exist - process it [00:15:03]requested_item shift.opened is exist - process it [00:15:03]req_shift_opened [00:15:03]FM_GetShiftState [00:15:03]SAM_PROTO_GetShiftState [00:15:03]wFMCommunicate request_size=4 [00:15:03]MH_SAM_APDU [00:15:03]CAPDU: 80 13 01 00 [00:15:03]Write to MH i2c: E2 08 00 4C 03 80 13 01 00 00 00 00 00 CC [00:15:03]Write i2c OK [00:15:03]MH_I2C_Read... [00:15:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:15:03]Read from MH i2c: E2 [00:15:03]MH_I2C_Read... [00:15:03]Read from MH i2c: E2 0E 00 [00:15:03]MH_I2C_Read... [00:15:03]Read from MH i2c: E2 0E 00 4C 03 00 09 00 01 AC F1 BB 66 00 00 00 00 90 00 96 [00:15:03]RAPDU: 09 00 01 AC F1 BB 66 00 00 00 00 90 00 [00:15:03]wFMCommunicate OK [00:15:03]SAM_PROTO_GetShiftState done [00:15:03]FM_GetShiftState done [00:15:03]req_shift_opened done [00:15:03]requested_item shift.open_date is exist - process it [00:15:03]req_shift_open_date [00:15:03]req_shift_open_date done [00:15:03]produce_requested_data done [00:15:03]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103223,"shift.num":465,"shift.opened":1,"shift.open_date":1723593132} [00:15:03]process_action_free close_receipt [00:15:03]json_value_free [00:15:03]json_value_free done [00:15:03]process_json_proto returns [00:15:03]Send response to host [00:15:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103223,"shift.num":465,"shift.opened":1,"shift.open_date":1723593132}}} [00:15:03]free response buf [00:15:03]execute_script done [00:15:03]execute_script returns [00:15:03]free content buf [00:15:03]Sock 9.Close socket [00:15:03]Sock 9.Thread stoped [00:15:05]OFD Sender: No OFD packet to send [00:15:10]OFD Sender: No OFD packet to send [00:15:15]OFD Sender: No OFD packet to send [00:15:20]OFD Sender: No OFD packet to send [00:15:25]OFD Sender: No OFD packet to send [00:15:30]OFD Sender: No OFD packet to send [00:15:35]OFD Sender: No OFD packet to send [00:15:40]OFD Sender: No OFD packet to send [00:15:45]OFD Sender: No OFD packet to send [00:15:50]OFD Sender: No OFD packet to send [00:15:55]OFD Sender: No OFD packet to send [00:16:00]OFD Sender: No OFD packet to send [00:16:05]OFD Sender: No OFD packet to send [00:16:10]OFD Sender: No OFD packet to send [00:16:15]OFD Sender: No OFD packet to send [00:16:20]OFD Sender: No OFD packet to send [00:16:25]OFD Sender: No OFD packet to send [00:16:30]OFD Sender: No OFD packet to send [00:16:35]OFD Sender: No OFD packet to send [00:16:40]OFD Sender: No OFD packet to send [00:16:45]OFD Sender: No OFD packet to send [00:16:50]OFD Sender: No OFD packet to send [00:16:55]OFD Sender: No OFD packet to send [00:17:00]OFD Sender: No OFD packet to send [00:17:05]OFD Sender: No OFD packet to send [00:17:10]OFD Sender: No OFD packet to send [00:17:15]OFD Sender: No OFD packet to send [00:17:20]OFD Sender: No OFD packet to send [00:17:25]OFD Sender: No OFD packet to send [00:17:30]OFD Sender: No OFD packet to send [00:17:35]OFD Sender: No OFD packet to send [00:17:40]OFD Sender: No OFD packet to send [00:17:45]OFD Sender: No OFD packet to send [00:17:50]OFD Sender: No OFD packet to send [00:17:55]OFD Sender: No OFD packet to send [00:18:00]OFD Sender: No OFD packet to send [00:18:05]OFD Sender: No OFD packet to send [00:18:10]OFD Sender: No OFD packet to send [00:18:15]OFD Sender: No OFD packet to send [00:18:20]OFD Sender: No OFD packet to send [00:18:25]OFD Sender: No OFD packet to send [00:18:30]OFD Sender: No OFD packet to send [00:18:35]OFD Sender: No OFD packet to send [00:18:40]OFD Sender: No OFD packet to send [00:18:45]OFD Sender: No OFD packet to send [00:18:50]OFD Sender: No OFD packet to send [00:18:55]OFD Sender: No OFD packet to send [00:19:00]OFD Sender: No OFD packet to send [00:19:05]OFD Sender: No OFD packet to send [00:19:10]OFD Sender: No OFD packet to send [00:19:15]OFD Sender: No OFD packet to send [00:19:20]OFD Sender: No OFD packet to send [00:19:25]OFD Sender: No OFD packet to send [00:19:30]OFD Sender: No OFD packet to send [00:19:35]OFD Sender: No OFD packet to send [00:19:40]OFD Sender: No OFD packet to send [00:19:45]OFD Sender: No OFD packet to send [00:19:50]OFD Sender: No OFD packet to send [00:19:55]OFD Sender: No OFD packet to send [00:20:00]OFD Sender: No OFD packet to send [00:20:05]OFD Sender: No OFD packet to send [00:20:10]OFD Sender: No OFD packet to send [00:20:15]OFD Sender: No OFD packet to send [00:20:20]OFD Sender: No OFD packet to send [00:20:25]OFD Sender: No OFD packet to send [00:20:29]accept exits with 7 [00:20:29]New connection [00:20:29]New thread 3067342180 created [00:20:29]Thread 3067485540 joined [00:20:29]Waiting for new connection... [00:20:29] Sock 7.Parse request [00:20:29]Sock 7.Check first char [00:20:29]Sock 7.First char is OK [00:20:29]request: POST /json_proto HTTP/1.0 [00:20:29]Method: POST [00:20:29]URL: /json_proto [00:20:29]Method is POST - this is cgi request [00:20:29]url: /json_proto [00:20:29]query_string will be loaded in cgi processing [00:20:29]execute_cgi json_proto POST (null) [00:20:29]execute_cgi path=json_proto method=POST [00:20:29]POST find Content-Length [00:20:29]Host: 172.17.58.3:8080 [00:20:29]Content-Length: 635 [00:20:29]Content-Type: application/json [00:20:29] [00:20:29]POST finish read [00:20:29]Found Content-Length = 635 [00:20:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160849", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 2.710, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:29]execute_script... [00:20: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)160849", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 73.80, "quantity" : 2.710, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:29]POST & json_proto [00:20:29]process_json_proto [00:20:29]json parsed OK: [00:20:29]protocol is kg_v1.0 [00:20:29]action value=close_receipt [00:20:29]process_action close_receipt [00:20:29]cmd_close_receipt [00:20:29]MH_GetDate [00:20:29]Write to MH i2c: F0 00 00 4D 03 3F [00:20:29]Write i2c OK [00:20:29]MH_I2C_Read... [00:20:29]Read from MH i2c: F0 [00:20:29]MH_I2C_Read... [00:20:29]Read from MH i2c: F0 09 00 [00:20:29]MH_I2C_Read... [00:20:29]Read from MH i2c: F0 09 00 4D 03 00 4E F8 BB 66 DC E4 6D 64 40 [00:20:29]GetLastDocTimeStamp 1723594498 [00:20:29]current date 1723594830 [00:20:29]FM_GetShiftState [00:20:29]SAM_PROTO_GetShiftState [00:20:29]wFMCommunicate request_size=4 [00:20:29]MH_SAM_APDU [00:20:29]CAPDU: 80 13 01 00 [00:20:29]Write to MH i2c: E2 08 00 4E 03 80 13 01 00 00 00 00 00 CE [00:20:29]Write i2c OK [00:20:29]MH_I2C_Read... [00:20:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:29]Read from MH i2c: E2 [00:20:29]MH_I2C_Read... [00:20:29]Read from MH i2c: E2 0E 00 [00:20:29]MH_I2C_Read... [00:20:29]Read from MH i2c: E2 0E 00 4E 03 00 09 00 01 AC F1 BB 66 00 00 00 00 90 00 98 [00:20:29]RAPDU: 09 00 01 AC F1 BB 66 00 00 00 00 90 00 [00:20:29]wFMCommunicate OK [00:20:29]SAM_PROTO_GetShiftState done [00:20:29]FM_GetShiftState done [00:20:29]opened in 1723593132 [00:20:29]opened+sec_in_day 1723679532 [00:20:29]quantity*price = 19999 [00:20:29]sum+1 = 20001 [00:20:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 3 14.08.2024 00:20 Смена: 465 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103224 ФПД: 199783304842722 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240814T002030&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103224&fm=199783304842722&tin=02508201610067®Number=0000000000092718&sum=20000 [00:20:30]StoreToDocumentArchive [00:20:30]shift 465 fd 103224 [00:20:30]save to /storage/0465/doc_00103224 [00:20:30]save last doc name /storage/0465/doc_00103224 to /storage/kkm_last_doc_name [00:20:30]save OK [00:20:30]Clear old archive folders... [00:20:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:20:30]tlvbuf is 011AFC30 [00:20:30]SAM_PROTO_ClearQueue [00:20:30]wFMCommunicate request_size=4 [00:20:30]MH_SAM_APDU [00:20:30]CAPDU: 80 09 00 00 [00:20:30]Write to MH i2c: E2 08 00 5B 03 80 09 00 00 00 00 00 00 D0 [00:20:30]Write i2c OK [00:20:30]MH_I2C_Read... [00:20:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:20:30]Read from MH i2c: E2 [00:20:30]MH_I2C_Read... [00:20:30]Read from MH i2c: E2 03 00 [00:20:30]MH_I2C_Read... [00:20:30]Read from MH i2c: E2 03 00 5B 03 00 90 00 D2 [00:20:30]RAPDU: 90 00 [00:20:30]wFMCommunicate OK [00:20:30]SAM_PROTO_ClearQueue done [00:20:30]KKMCreateOFDPacket [00:20:30]OFDProtocolAddRootSTLVToBuf [00:20:30]FM_MakeSignedData [00:20:30]FM_MakeSignedData [00:20:30]SAM_PROTO_SignData [00:20:30]wFMCommunicate request_size=4 [00:20:30]MH_SAM_APDU [00:20:30]CAPDU: 80 0D 01 02 [00:20:30]Write to MH i2c: E2 08 00 5C 03 80 0D 01 02 00 00 00 00 D8 [00:20:30]Write i2c OK [00:20:30]MH_I2C_Read... [00:20:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:20:30]Read from MH i2c: E2 [00:20:30]MH_I2C_Read... [00:20:30]Read from MH i2c: E2 03 00 [00:20:30]MH_I2C_Read... [00:20:30]Read from MH i2c: E2 03 00 5C 03 00 90 00 D3 [00:20:30]RAPDU: 90 00 [00:20:30]wFMCommunicate OK [00:20:30]wFMCommunicate request_size=255 [00:20:30]MH_SAM_APDU [00:20:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 96 0A 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 4E F8 BB 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 38 93 01 00 35 04 06 00 B5 B3 AC EA [00:20:30]Write to MH i2c: E2 02 01 5D 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 96 0A 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 4E F8 BB 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 38 93 01 00 35 04 06 00 B5 B3 AC EA 00 00 1D [00:20:30]Write i2c OK [00:20:30]MH_I2C_Read... [00:20:30]OFD Sender: No OFD packet to send [00:20:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:20:30]Read from MH i2c: E2 [00:20:30]MH_I2C_Read... [00:20:31]Read from MH i2c: E2 03 00 [00:20:31]MH_I2C_Read... [00:20:31]Read from MH i2c: E2 03 00 5D 03 00 90 00 D4 [00:20:31]RAPDU: 90 00 [00:20:31]wFMCommunicate OK [00:20:31]wFMCommunicate request_size=7 [00:20:31]MH_SAM_APDU [00:20:31]CAPDU: 80 0D 02 02 02 CD E2 [00:20:31]Write to MH i2c: E2 0A 00 5E 03 80 0D 02 02 02 00 CD E2 00 00 8E [00:20:31]Write i2c OK [00:20:31]MH_I2C_Read... [00:20:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:20:31]Read from MH i2c: E2 [00:20:31]MH_I2C_Read... [00:20:31]Read from MH i2c: E2 03 00 [00:20:31]MH_I2C_Read... [00:20:31]Read from MH i2c: E2 03 00 5E 03 00 90 00 D5 [00:20:31]RAPDU: 90 00 [00:20:31]wFMCommunicate OK [00:20:31]wFMCommunicate request_size=4 [00:20:31]MH_SAM_APDU [00:20:31]CAPDU: 80 0D 03 02 [00:20:31]Write to MH i2c: E2 08 00 5F 03 80 0D 03 02 00 00 00 00 DD [00:20:31]Write i2c OK [00:20:31]MH_I2C_Read... [00:20:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:20:31]Read from MH i2c: E2 [00:20:31]MH_I2C_Read... [00:20:31]Read from MH i2c: E2 0B 00 [00:20:31]MH_I2C_Read... [00:20:31]Read from MH i2c: E2 0B 00 5F 03 00 4A 28 D7 50 1F 77 79 D4 90 00 5A [00:20:31]RAPDU: 4A 28 D7 50 1F 77 79 D4 90 00 [00:20:31]wFMCommunicate OK [00:20:31]SAM_PROTO_SignData done [00:20:31]FM_MakeSignedData done [00:20:31]CreateOFDProtocolMessage [00:20:31]wFMCommunicate request_size=4 [00:20:31]MH_SAM_APDU [00:20:31]CAPDU: 80 11 00 00 [00:20:31]Write to MH i2c: E2 08 00 60 03 80 11 00 00 00 00 00 00 DD [00:20:31]Write i2c OK [00:20:31]MH_I2C_Read... [00:20:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:20:31]Read from MH i2c: E2 [00:20:31]MH_I2C_Read... [00:20:31]Read from MH i2c: E2 17 00 [00:20:31]MH_I2C_Read... [00:20:31]Read from MH i2c: E2 17 00 60 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 31 [00:20:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [00:20:31]wFMCommunicate OK [00:20:31]CreateOFDProtocolMessage done [00:20:31]OFDSenderStorePacket 103224 [00:20:31]StoreOFDPacket docnum=103224 [00:20:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 CC DC 04 01 A8 5E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 96 0A 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 4E F8 BB 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 38 93 01 00 35 04 06 00 B5 B3 AC EA CD E2 4A 28 D7 50 1F 77 79 D4 [00:20:31]CheckFolder [00:20:31]dirname=/storage/ofd_packets [00:20:31]CheckFolder done [00:20:31]ProducePacketName [00:20:31]name=ofd_packets/00103224 [00:20:31]NVStorageSaveData ofd_packets/00103224 [00:20:31]File name is /storage/ofd_packets/00103224 [00:20:31]Write 298 bytes [00:20:31]NVStorageSaveData done [00:20:31]OFDSenderStorePacket done [00:20:31]KKMCreateOFDPacket done [00:20:31]NVStorageSaveData kkm_last_timestamp [00:20:31]File name is /storage/kkm_last_timestamp [00:20:31]Write 4 bytes [00:20:31]NVStorageSaveData done [00:20:31]ExternCall_PrintAddStr [00:20:31]wPrintStart [00:20:31]Write to MH i2c: 01 00 00 61 03 64 [00:20:31]Write i2c OK [00:20:31]MH_I2C_Read... [00:20:31]Read from MH i2c: 01 [00:20:31]MH_I2C_Read... [00:20:31]Read from MH i2c: 01 07 00 [00:20:31]MH_I2C_Read... [00:20:31]Read from MH i2c: 01 07 00 61 03 00 00 00 00 00 FF 0F 79 [00:20:31]RasterBufferAndPrint [00:20:31]line Счет N : (1)160849 [00:20:31]line ИНН: 02508201610067 [00:20:31]line Контрольно-Кассовый Чек [00:20:31]line ПРОДАЖА [00:20:31]line ТРК (МРК, ГНК) : 5 [00:20:31]line Товар: 2710194210 [00:20:31]line ДТ-К-5 [00:20:31]line 2.710 * 73.80 [00:20:31]line = 200.00 [00:20:31]line НДС 12% НСП 1% [00:20:31]line > о реализуемом товаре [00:20:31]line ИТОГО: 200.00 [00:20:31]line НСП 1% : 1.77 [00:20:31]line НДС 12% : 21.24 [00:20:31]line Наличными: 200.00 [00:20:31]line Безнал.: 0.00 [00:20:31]line Место: АЗС № 38 "Партнер Нефть" [00:20:31]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [00:20:31]line СНО: Общий режим [00:20:31]line Чек 3 14.08.2024 00:20 [00:20:31]line Смена: 465 ФФД: 1.0 [00:20:31]line ЗНМ: 0300000126 [00:20:31]line РНМ: 0000000000092718 [00:20:31]line Версия ККМ: 001 [00:20:31]line ФМ: 0000000000875058 [00:20:31]line ФД: 103224 [00:20:31]line ФПД: 199783304842722 [00:20:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240814T002030&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103224&fm=199783304842722&tin=02508201610067®Number=0000000000092718&sum=20000 [00:20:31]OFD Sender: Processing packet 103224 [packets to send 69, broken 68] [00:20:31]ProducePacketName [00:20:31]name=ofd_packets/00103224 [00:20:31]OFD Sender: To server: pG, [00:20:31]CommunicateWithHost lk.salyk.kg:30040 [00:20:31]ConnectInit lk.salyk.kg [00:20:31]written 0, free lines is 4095 [00:20:31]Connected sock=10 [00:20:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0C 01 00 00 CC DC 04 01 A8 5E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 96 0A 00 00 00 00 00 37 04 06 00 D4 1C 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 4E F8 BB 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 38 93 01 00 35 04 06 00 B5 B3 AC EA CD E2 4A 28 D7 50 1F 77 79 D4 [00:20:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 03 29 47 00 41 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 35 30 35 38 10 04 04 00 38 93 01 00 F4 03 04 00 BF 9E BB 66 B6 04 01 00 00 6C 68 E7 DC 83 3B 28 84 [00:20:31]CommunicateWithHost err = 0 [00:20:31]CheckOFDResponse [00:20:31]1017 (14) - 77093643461234 [00:20:31]1041 (16) - 0000000000875058 [00:20:31]1040 (4) - 103224 [00:20:31]1012 (4) - 13.08.2024 17:58 [00:20:31]1206 (1) - 0 [00:20:31]OFD Sender: Remove packet 103224 [00:20:31]ProducePacketName [00:20:31]name=ofd_packets/00103224 [00:20:31]NVStorageDeleteData [00:20:31]Write to MH i2c: 01 00 00 89 03 8C [00:20:31]Write i2c OK [00:20:31]MH_I2C_Read... [00:20:31]Read from MH i2c: 01 [00:20:31]MH_I2C_Read... [00:20:31]Read from MH i2c: 01 07 00 [00:20:31]MH_I2C_Read... [00:20:31]Read from MH i2c: 01 07 00 89 03 00 00 00 00 00 11 0D B1 [00:20:31]RasterBufferAndPrint [00:20:31]line [00:20:31]line [00:20:31]line [00:20:31]line [00:20:31]line [00:20:31]written 0, free lines is 3351 [00:20:31]MH_Cut [00:20:31]Write to MH i2c: D1 01 00 90 03 01 65 [00:20:31]Write i2c OK [00:20:31]MH_I2C_Read... [00:20:31]Read from MH i2c: D1 [00:20:31]MH_I2C_Read... [00:20:31]Read from MH i2c: D1 01 00 [00:20:31]MH_I2C_Read... [00:20:31]Read from MH i2c: D1 01 00 90 03 00 64 [00:20:31]Write to MH i2c: 01 00 00 91 03 94 [00:20:31]Write i2c OK [00:20:31]MH_I2C_Read... [00:20:32]OFD Sender: No OFD packet to send [00:20:32]*** Cut start [00:20:32]*** Purtial cut [00:20:32]*** Stage 1: CUTSNS_PIN = 1 [00:20:32]Read from MH i2c: 01 [00:20:32]MH_I2C_Read... [00:20:32]*** Stop cut motor [00:20:32]*** Cut end [00:20:32]Read from MH i2c: 01 07 00 [00:20:32]MH_I2C_Read... [00:20:32]Read from MH i2c: 01 07 00 91 03 00 00 00 00 00 FF 0F A9 [00:20:32]process_action close_receipt done [00:20:32]requested_data is exist [00:20:32]produce_requested_data [00:20:32]requested_item fm.sn is exist - process it [00:20:32]wFMCommunicate request_size=4 [00:20:32]MH_SAM_APDU [00:20:32]CAPDU: 80 11 00 00 [00:20:32]Write to MH i2c: E2 08 00 92 03 80 11 00 00 00 00 00 00 0F [00:20:32]Write i2c OK [00:20:32]MH_I2C_Read... [00:20:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:20:33]Read from MH i2c: E2 [00:20:33]MH_I2C_Read... [00:20:33]Read from MH i2c: E2 17 00 [00:20:33]MH_I2C_Read... [00:20:33]Read from MH i2c: E2 17 00 92 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 63 [00:20:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [00:20:33]wFMCommunicate OK [00:20:33]requested_item fd.num is exist - process it [00:20:33]SAM_PROTO_GetFieldsCounters [00:20:33]wFMCommunicate request_size=4 [00:20:33]MH_SAM_APDU [00:20:33]CAPDU: 80 13 00 00 [00:20:33]Write to MH i2c: E2 08 00 93 03 80 13 00 00 00 00 00 00 12 [00:20:33]Write i2c OK [00:20:33]MH_I2C_Read... [00:20:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:20:33]Read from MH i2c: E2 [00:20:33]MH_I2C_Read... [00:20:33]Read from MH i2c: E2 62 00 [00:20:33]MH_I2C_Read... [00:20:33]Read from MH i2c: E2 62 00 93 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 38 93 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [00:20:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 38 93 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:20:33]wFMCommunicate OK [00:20:33]SAM_PROTO_GetFieldsCounters done [00:20:33]requested_item shift.num is exist - process it [00:20:33]requested_item shift.opened is exist - process it [00:20:33]req_shift_opened [00:20:33]FM_GetShiftState [00:20:33]SAM_PROTO_GetShiftState [00:20:33]wFMCommunicate request_size=4 [00:20:33]MH_SAM_APDU [00:20:33]CAPDU: 80 13 01 00 [00:20:33]Write to MH i2c: E2 08 00 94 03 80 13 01 00 00 00 00 00 14 [00:20:33]Write i2c OK [00:20:33]MH_I2C_Read... [00:20:33]Read from MH i2c: E2 [00:20:33]MH_I2C_Read... [00:20:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:33]Read from MH i2c: E2 0E 00 [00:20:33]MH_I2C_Read... [00:20:33]Read from MH i2c: E2 0E 00 94 03 00 09 00 01 AC F1 BB 66 00 00 00 00 90 00 DE [00:20:33]RAPDU: 09 00 01 AC F1 BB 66 00 00 00 00 90 00 [00:20:33]wFMCommunicate OK [00:20:33]SAM_PROTO_GetShiftState done [00:20:33]FM_GetShiftState done [00:20:33]req_shift_opened done [00:20:33]requested_item shift.open_date is exist - process it [00:20:33]req_shift_open_date [00:20:33]req_shift_open_date done [00:20:33]produce_requested_data done [00:20:33]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103224,"shift.num":465,"shift.opened":1,"shift.open_date":1723593132} [00:20:33]process_action_free close_receipt [00:20:33]json_value_free [00:20:33]json_value_free done [00:20:33]process_json_proto returns [00:20:33]Send response to host [00:20:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103224,"shift.num":465,"shift.opened":1,"shift.open_date":1723593132}}} [00:20:33]free response buf [00:20:33]execute_script done [00:20:33]execute_script returns [00:20:33]free content buf [00:20:33]Sock 7.Close socket [00:20:33]Sock 7.Thread stoped [00:20:37]OFD Sender: No OFD packet to send [00:20:42]OFD Sender: No OFD packet to send [00:20:47]OFD Sender: No OFD packet to send [00:20:52]OFD Sender: No OFD packet to send [00:20:57]OFD Sender: No OFD packet to send [00:21:02]OFD Sender: No OFD packet to send [00:21:07]OFD Sender: No OFD packet to send [00:21:12]OFD Sender: No OFD packet to send [00:21:17]OFD Sender: No OFD packet to send [00:21:22]OFD Sender: No OFD packet to send [00:21:27]OFD Sender: No OFD packet to send [00:21:32]OFD Sender: No OFD packet to send [00:21:37]OFD Sender: No OFD packet to send [00:21:42]OFD Sender: No OFD packet to send [00:21:47]OFD Sender: No OFD packet to send [00:21:52]OFD Sender: No OFD packet to send [00:21:57]OFD Sender: No OFD packet to send [00:22:02]OFD Sender: No OFD packet to send [00:22:07]OFD Sender: No OFD packet to send [00:22:12]OFD Sender: No OFD packet to send [00:22:17]OFD Sender: No OFD packet to send [00:22:22]OFD Sender: No OFD packet to send [00:22:27]OFD Sender: No OFD packet to send [00:22:32]OFD Sender: No OFD packet to send [00:22:37]OFD Sender: No OFD packet to send [00:22:42]OFD Sender: No OFD packet to send [00:22:47]OFD Sender: No OFD packet to send [00:22:52]OFD Sender: No OFD packet to send [00:22:57]OFD Sender: No OFD packet to send [00:23:02]OFD Sender: No OFD packet to send [00:23:07]OFD Sender: No OFD packet to send [00:23:12]OFD Sender: No OFD packet to send [00:23:17]OFD Sender: No OFD packet to send [00:23:22]OFD Sender: No OFD packet to send [00:23:27]OFD Sender: No OFD packet to send [00:23:32]OFD Sender: No OFD packet to send [00:23:37]OFD Sender: No OFD packet to send [00:23:42]OFD Sender: No OFD packet to send [00:23:47]OFD Sender: No OFD packet to send [00:23:52]OFD Sender: No OFD packet to send [00:23:57]OFD Sender: No OFD packet to send [00:24:02]OFD Sender: No OFD packet to send [00:24:07]OFD Sender: No OFD packet to send [00:24:12]OFD Sender: No OFD packet to send [00:24:17]OFD Sender: No OFD packet to send [00:24:22]OFD Sender: No OFD packet to send [00:24:27]OFD Sender: No OFD packet to send [00:24:32]OFD Sender: No OFD packet to send [00:24:37]OFD Sender: No OFD packet to send [00:24:42]OFD Sender: No OFD packet to send [00:24:47]OFD Sender: No OFD packet to send [00:24:52]OFD Sender: No OFD packet to send [00:24:57]OFD Sender: No OFD packet to send [00:25:02]OFD Sender: No OFD packet to send [00:25:07]OFD Sender: No OFD packet to send [00:25:12]OFD Sender: No OFD packet to send [00:25:17]OFD Sender: No OFD packet to send [00:25:22]OFD Sender: No OFD packet to send [00:25:27]OFD Sender: No OFD packet to send [00:25:32]OFD Sender: No OFD packet to send [00:25:37]OFD Sender: No OFD packet to send [00:25:42]OFD Sender: No OFD packet to send [00:25:47]OFD Sender: No OFD packet to send [00:25:52]OFD Sender: No OFD packet to send [00:25:57]OFD Sender: No OFD packet to send [00:26:02]OFD Sender: No OFD packet to send [00:26:07]OFD Sender: No OFD packet to send [00:26:12]OFD Sender: No OFD packet to send [00:26:17]OFD Sender: No OFD packet to send [00:26:22]OFD Sender: No OFD packet to send [00:26:27]OFD Sender: No OFD packet to send [00:26:32]OFD Sender: No OFD packet to send [00:26:37]OFD Sender: No OFD packet to send [00:26:39]accept exits with 9 [00:26:39]New connection [00:26:39]New thread 3067485540 created [00:26:39]Thread 3067342180 joined [00:26:39]Waiting for new connection... [00:26:39] Sock 9.Parse request [00:26:39]Sock 9.Check first char [00:26:39]Sock 9.First char is OK [00:26:39]request: POST /json_proto HTTP/1.0 [00:26:39]Method: POST [00:26:39]URL: /json_proto [00:26:39]Method is POST - this is cgi request [00:26:39]url: /json_proto [00:26:39]query_string will be loaded in cgi processing [00:26:39]execute_cgi json_proto POST (null) [00:26:39]execute_cgi path=json_proto method=POST [00:26:39]POST find Content-Length [00:26:39]Host: 172.17.58.3:8080 [00:26:39]Content-Length: 676 [00:26:39]Content-Type: application/json [00:26:39] [00:26:39]POST finish read [00:26:39]Found Content-Length = 676 [00:26:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160850", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 5.320, "sum" : 350.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:26:39]execute_script... [00:26:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160850", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 5.320, "sum" : 350.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:26:39]POST & json_proto [00:26:39]process_json_proto [00:26:39]json parsed OK: [00:26:39]protocol is kg_v1.0 [00:26:39]action value=close_receipt [00:26:39]process_action close_receipt [00:26:39]cmd_close_receipt [00:26:39]MH_GetDate [00:26:39]Write to MH i2c: F0 00 00 95 03 87 [00:26:39]Write i2c OK [00:26:39]MH_I2C_Read... [00:26:39]Read from MH i2c: F0 [00:26:39]MH_I2C_Read... [00:26:39]Read from MH i2c: F0 09 00 [00:26:39]MH_I2C_Read... [00:26:39]Read from MH i2c: F0 09 00 95 03 00 BF F9 BB 66 DC E4 6D 64 FA [00:26:39]GetLastDocTimeStamp 1723594830 [00:26:39]current date 1723595199 [00:26:39]FM_GetShiftState [00:26:39]SAM_PROTO_GetShiftState [00:26:39]wFMCommunicate request_size=4 [00:26:39]MH_SAM_APDU [00:26:39]CAPDU: 80 13 01 00 [00:26:39]Write to MH i2c: E2 08 00 96 03 80 13 01 00 00 00 00 00 16 [00:26:39]Write i2c OK [00:26:39]MH_I2C_Read... [00:26:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:26:39]Read from MH i2c: E2 [00:26:39]MH_I2C_Read... [00:26:39]Read from MH i2c: E2 0E 00 [00:26:39]MH_I2C_Read... [00:26:39]Read from MH i2c: E2 0E 00 96 03 00 09 00 01 AC F1 BB 66 00 00 00 00 90 00 E0 [00:26:39]RAPDU: 09 00 01 AC F1 BB 66 00 00 00 00 90 00 [00:26:39]wFMCommunicate OK [00:26:39]SAM_PROTO_GetShiftState done [00:26:39]FM_GetShiftState done [00:26:39]opened in 1723593132 [00:26:39]opened+sec_in_day 1723679532 [00:26:39]quantity*price = 35058 [00:26:39]sum+1 = 35060 [00:26:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 4 14.08.2024 00:26 Смена: 465 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103225 ФПД: 64732239924242 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240814T002639&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103225&fm=64732239924242&tin=02508201610067®Number=0000000000092718&sum=35000 [00:26:40]StoreToDocumentArchive [00:26:40]shift 465 fd 103225 [00:26:40]save to /storage/0465/doc_00103225 [00:26:40]save last doc name /storage/0465/doc_00103225 to /storage/kkm_last_doc_name [00:26:40]save OK [00:26:40]Clear old archive folders... [00:26:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:26:40]tlvbuf is 011AF540 [00:26:40]SAM_PROTO_ClearQueue [00:26:40]wFMCommunicate request_size=4 [00:26:40]MH_SAM_APDU [00:26:40]CAPDU: 80 09 00 00 [00:26:40]Write to MH i2c: E2 08 00 A3 03 80 09 00 00 00 00 00 00 18 [00:26:40]Write i2c OK [00:26:40]MH_I2C_Read... [00:26:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:26:40]Read from MH i2c: E2 [00:26:40]MH_I2C_Read... [00:26:40]Read from MH i2c: E2 03 00 [00:26:40]MH_I2C_Read... [00:26:40]Read from MH i2c: E2 03 00 A3 03 00 90 00 1A [00:26:40]RAPDU: 90 00 [00:26:40]wFMCommunicate OK [00:26:40]SAM_PROTO_ClearQueue done [00:26:40]KKMCreateOFDPacket [00:26:40]OFDProtocolAddRootSTLVToBuf [00:26:40]FM_MakeSignedData [00:26:40]FM_MakeSignedData [00:26:40]SAM_PROTO_SignData [00:26:40]wFMCommunicate request_size=4 [00:26:40]MH_SAM_APDU [00:26:40]CAPDU: 80 0D 01 02 [00:26:40]Write to MH i2c: E2 08 00 A4 03 80 0D 01 02 00 00 00 00 20 [00:26:40]Write i2c OK [00:26:40]MH_I2C_Read... [00:26:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:26:40]Read from MH i2c: E2 [00:26:40]MH_I2C_Read... [00:26:40]Read from MH i2c: E2 03 00 [00:26:40]MH_I2C_Read... [00:26:40]Read from MH i2c: E2 03 00 A4 03 00 90 00 1B [00:26:40]RAPDU: 90 00 [00:26:40]wFMCommunicate OK [00:26:40]wFMCommunicate request_size=255 [00:26:40]MH_SAM_APDU [00:26:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 BF F9 BB 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 39 93 01 00 35 04 06 00 3A [00:26:40]Write to MH i2c: E2 02 01 A5 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 C8 14 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 BF F9 BB 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 39 93 01 00 35 04 06 00 3A 00 00 61 [00:26:40]Write i2c OK [00:26:40]MH_I2C_Read... [00:26:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:26:40]Read from MH i2c: E2 [00:26:40]MH_I2C_Read... [00:26:40]Read from MH i2c: E2 03 00 [00:26:40]MH_I2C_Read... [00:26:40]Read from MH i2c: E2 03 00 A5 03 00 90 00 1C [00:26:40]RAPDU: 90 00 [00:26:40]wFMCommunicate OK [00:26:40]wFMCommunicate request_size=10 [00:26:40]MH_SAM_APDU [00:26:40]CAPDU: 80 0D 02 02 05 DF A6 2A 8C 12 [00:26:40]Write to MH i2c: E2 0D 00 A6 03 80 0D 02 02 05 00 DF A6 2A 8C 12 00 00 7A [00:26:40]Write i2c OK [00:26:40]MH_I2C_Read... [00:26:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:26:40]Read from MH i2c: E2 [00:26:40]MH_I2C_Read... [00:26:40]Read from MH i2c: E2 03 00 [00:26:40]MH_I2C_Read... [00:26:40]Read from MH i2c: E2 03 00 A6 03 00 90 00 1D [00:26:40]RAPDU: 90 00 [00:26:40]wFMCommunicate OK [00:26:40]wFMCommunicate request_size=4 [00:26:40]MH_SAM_APDU [00:26:40]CAPDU: 80 0D 03 02 [00:26:40]Write to MH i2c: E2 08 00 A7 03 80 0D 03 02 00 00 00 00 25 [00:26:40]Write i2c OK [00:26:40]MH_I2C_Read... [00:26:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:26:40]Read from MH i2c: E2 [00:26:40]MH_I2C_Read... [00:26:40]Read from MH i2c: E2 0B 00 [00:26:40]MH_I2C_Read... [00:26:40]Read from MH i2c: E2 0B 00 A7 03 00 59 E7 A7 02 21 E8 AC 0B 90 00 CF [00:26:40]RAPDU: 59 E7 A7 02 21 E8 AC 0B 90 00 [00:26:40]wFMCommunicate OK [00:26:40]SAM_PROTO_SignData done [00:26:40]FM_MakeSignedData done [00:26:40]CreateOFDProtocolMessage [00:26:40]wFMCommunicate request_size=4 [00:26:40]MH_SAM_APDU [00:26:40]CAPDU: 80 11 00 00 [00:26:40]Write to MH i2c: E2 08 00 A8 03 80 11 00 00 00 00 00 00 25 [00:26:40]Write i2c OK [00:26:40]MH_I2C_Read... [00:26:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:26:40]Read from MH i2c: E2 [00:26:40]MH_I2C_Read... [00:26:40]Read from MH i2c: E2 17 00 [00:26:40]MH_I2C_Read... [00:26:40]Read from MH i2c: E2 17 00 A8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 79 [00:26:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [00:26:40]wFMCommunicate OK [00:26:40]CreateOFDProtocolMessage done [00:26:40]OFDSenderStorePacket 103225 [00:26:40]StoreOFDPacket docnum=103225 [00:26:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 5D 77 07 01 72 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 BF F9 BB 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 39 93 01 00 35 04 06 00 3A DF A6 2A 8C 12 59 E7 A7 02 21 E8 AC 0B [00:26:40]CheckFolder [00:26:40]dirname=/storage/ofd_packets [00:26:40]CheckFolder done [00:26:40]ProducePacketName [00:26:40]name=ofd_packets/00103225 [00:26:40]NVStorageSaveData ofd_packets/00103225 [00:26:40]File name is /storage/ofd_packets/00103225 [00:26:40]Write 301 bytes [00:26:40]NVStorageSaveData done [00:26:40]OFDSenderStorePacket done [00:26:40]KKMCreateOFDPacket done [00:26:40]NVStorageSaveData kkm_last_timestamp [00:26:40]File name is /storage/kkm_last_timestamp [00:26:40]Write 4 bytes [00:26:40]NVStorageSaveData done [00:26:40]ExternCall_PrintAddStr [00:26:40]wPrintStart [00:26:40]Write to MH i2c: 01 00 00 A9 03 AC [00:26:40]Write i2c OK [00:26:40]MH_I2C_Read... [00:26:40]Read from MH i2c: 01 [00:26:40]MH_I2C_Read... [00:26:40]Read from MH i2c: 01 07 00 [00:26:40]MH_I2C_Read... [00:26:40]Read from MH i2c: 01 07 00 A9 03 00 00 00 00 00 FF 0F C1 [00:26:40]RasterBufferAndPrint [00:26:40]line Счет N : (1)160850 [00:26:40]line ИНН: 02508201610067 [00:26:40]line Контрольно-Кассовый Чек [00:26:40]line ПРОДАЖА [00:26:40]line ТРК (МРК, ГНК) : 3 [00:26:40]line Товар: 2710124130 [00:26:40]line Аи-92-К-5 [00:26:40]line 5.320 * 65.90 [00:26:40]line = 350.59 [00:26:40]line НДС 12% НСП 1% [00:26:40]line > о реализуемом товаре [00:26:40]line ОКРУГЛЕНИЕ: -0.59 [00:26:40]line ИТОГО: 350.00 [00:26:40]line Внесено: 350.00 [00:26:40]line СДАЧА: 0.00 [00:26:40]line НСП 1% : 3.10 [00:26:40]line НДС 12% : 37.23 [00:26:40]line Наличными: 350.00 [00:26:40]line Безнал.: 0.00 [00:26:40]line Место: АЗС № 38 "Партнер Нефть" [00:26:40]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [00:26:40]line СНО: Общий режим [00:26:40]line Чек 4 14.08.2024 00:26 [00:26:40]line Смена: 465 ФФД: 1.0 [00:26:40]line ЗНМ: 0300000126 [00:26:40]line РНМ: 0000000000092718 [00:26:40]line Версия ККМ: 001 [00:26:40]line ФМ: 0000000000875058 [00:26:40]line ФД: 103225 [00:26:40]line ФПД: 64732239924242 [00:26:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240814T002639&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103225&fm=64732239924242&tin=02508201610067®Number=0000000000092718&sum=35000 [00:26:41]OFD Sender: Processing packet 103225 [packets to send 69, broken 68] [00:26:41]ProducePacketName [00:26:41]name=ofd_packets/00103225 [00:26:41]OFD Sender: To server: pG, [00:26:41]CommunicateWithHost lk.salyk.kg:30040 [00:26:41]ConnectInit lk.salyk.kg [00:26:41]written 0, free lines is 4095 [00:26:41]Connected sock=10 [00:26:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 5D 77 07 01 72 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 BF F9 BB 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 39 93 01 00 35 04 06 00 3A DF A6 2A 8C 12 59 E7 A7 02 21 E8 AC 0B [00:26:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 89 D1 47 00 1A 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 39 93 01 00 F4 03 04 00 31 A0 BB 66 B6 04 01 00 00 80 6D 60 75 1D 89 03 AB [00:26:41]CommunicateWithHost err = 0 [00:26:41]CheckOFDResponse [00:26:41]1017 (14) - 77093643461234 [00:26:41]1041 (16) - 0000000000875058 [00:26:41]1040 (4) - 103225 [00:26:41]1012 (4) - 13.08.2024 18:04 [00:26:41]1206 (1) - 0 [00:26:41]OFD Sender: Remove packet 103225 [00:26:41]ProducePacketName [00:26:41]name=ofd_packets/00103225 [00:26:41]NVStorageDeleteData [00:26:41]Write to MH i2c: 01 00 00 D4 03 D7 [00:26:41]Write i2c OK [00:26:41]MH_I2C_Read... [00:26:41]Read from MH i2c: 01 [00:26:41]MH_I2C_Read... [00:26:41]Read from MH i2c: 01 07 00 [00:26:41]MH_I2C_Read... [00:26:41]Read from MH i2c: 01 07 00 D4 03 00 00 00 00 00 F3 0C DD [00:26:41]RasterBufferAndPrint [00:26:41]line [00:26:41]line [00:26:41]line [00:26:41]line [00:26:41]line [00:26:41]written 0, free lines is 3324 [00:26:41]MH_Cut [00:26:41]Write to MH i2c: D1 01 00 DB 03 01 B0 [00:26:41]Write i2c OK [00:26:41]MH_I2C_Read... [00:26:41]Read from MH i2c: D1 [00:26:41]MH_I2C_Read... [00:26:41]Read from MH i2c: D1 01 00 [00:26:41]MH_I2C_Read... [00:26:41]Read from MH i2c: D1 01 00 DB 03 00 AF [00:26:41]Write to MH i2c: 01 00 00 DC 03 DF [00:26:41]Write i2c OK [00:26:41]MH_I2C_Read... [00:26:41]OFD Sender: No OFD packet to send [00:26:42]*** Cut start [00:26:42]*** Purtial cut [00:26:42]*** CUTSNS_PIN = 0 [00:26:42]*** Stage 1: CUTSNS_PIN = 1 [00:26:44]Read from MH i2c: 01 [00:26:44]MH_I2C_Read... [00:26:44]*** Stop cut motor [00:26:44]*** Cut end [00:26:44]Read from MH i2c: 01 07 00 [00:26:44]MH_I2C_Read... [00:26:44]Read from MH i2c: 01 07 00 DC 03 00 00 00 00 00 FF 0F F4 [00:26:44]process_action close_receipt done [00:26:44]requested_data is exist [00:26:44]produce_requested_data [00:26:44]requested_item fm.sn is exist - process it [00:26:44]wFMCommunicate request_size=4 [00:26:44]MH_SAM_APDU [00:26:44]CAPDU: 80 11 00 00 [00:26:44]Write to MH i2c: E2 08 00 DD 03 80 11 00 00 00 00 00 00 5A [00:26:44]Write i2c OK [00:26:44]MH_I2C_Read... [00:26:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:26:44]Read from MH i2c: E2 [00:26:44]MH_I2C_Read... [00:26:44]Read from MH i2c: E2 17 00 [00:26:44]MH_I2C_Read... [00:26:44]Read from MH i2c: E2 17 00 DD 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 AE [00:26:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [00:26:44]wFMCommunicate OK [00:26:44]requested_item fd.num is exist - process it [00:26:44]SAM_PROTO_GetFieldsCounters [00:26:44]wFMCommunicate request_size=4 [00:26:44]MH_SAM_APDU [00:26:44]CAPDU: 80 13 00 00 [00:26:44]Write to MH i2c: E2 08 00 DE 03 80 13 00 00 00 00 00 00 5D [00:26:44]Write i2c OK [00:26:44]MH_I2C_Read... [00:26:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:26:44]Read from MH i2c: E2 [00:26:44]MH_I2C_Read... [00:26:44]Read from MH i2c: E2 62 00 [00:26:44]MH_I2C_Read... [00:26:44]Read from MH i2c: E2 62 00 DE 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 39 93 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [00:26: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 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 39 93 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:26:44]wFMCommunicate OK [00:26:44]SAM_PROTO_GetFieldsCounters done [00:26:44]requested_item shift.num is exist - process it [00:26:44]requested_item shift.opened is exist - process it [00:26:44]req_shift_opened [00:26:44]FM_GetShiftState [00:26:44]SAM_PROTO_GetShiftState [00:26:44]wFMCommunicate request_size=4 [00:26:44]MH_SAM_APDU [00:26:44]CAPDU: 80 13 01 00 [00:26:44]Write to MH i2c: E2 08 00 DF 03 80 13 01 00 00 00 00 00 5F [00:26:44]Write i2c OK [00:26:44]MH_I2C_Read... [00:26:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:26:44]Read from MH i2c: E2 [00:26:44]MH_I2C_Read... [00:26:44]Read from MH i2c: E2 0E 00 [00:26:44]MH_I2C_Read... [00:26:44]Read from MH i2c: E2 0E 00 DF 03 00 09 00 01 AC F1 BB 66 00 00 00 00 90 00 29 [00:26:44]RAPDU: 09 00 01 AC F1 BB 66 00 00 00 00 90 00 [00:26:44]wFMCommunicate OK [00:26:44]SAM_PROTO_GetShiftState done [00:26:44]FM_GetShiftState done [00:26:44]req_shift_opened done [00:26:44]requested_item shift.open_date is exist - process it [00:26:44]req_shift_open_date [00:26:44]req_shift_open_date done [00:26:44]produce_requested_data done [00:26:44]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103225,"shift.num":465,"shift.opened":1,"shift.open_date":1723593132} [00:26:44]process_action_free close_receipt [00:26:44]json_value_free [00:26:44]json_value_free done [00:26:44]process_json_proto returns [00:26:44]Send response to host [00:26:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103225,"shift.num":465,"shift.opened":1,"shift.open_date":1723593132}}} [00:26:44]free response buf [00:26:44]execute_script done [00:26:44]execute_script returns [00:26:44]free content buf [00:26:44]Sock 9.Close socket [00:26:44]Sock 9.Thread stoped [00:26:46]OFD Sender: No OFD packet to send [00:26:51]OFD Sender: No OFD packet to send [00:26:56]OFD Sender: No OFD packet to send [00:27:01]OFD Sender: No OFD packet to send [00:27:06]OFD Sender: No OFD packet to send [00:27:11]OFD Sender: No OFD packet to send [00:27:16]OFD Sender: No OFD packet to send [00:27:21]OFD Sender: No OFD packet to send [00:27:26]OFD Sender: No OFD packet to send [00:27:31]OFD Sender: No OFD packet to send [00:27:36]OFD Sender: No OFD packet to send [00:27:41]OFD Sender: No OFD packet to send [00:27:46]OFD Sender: No OFD packet to send [00:27:51]OFD Sender: No OFD packet to send [00:27:56]OFD Sender: No OFD packet to send [00:28:01]OFD Sender: No OFD packet to send [00:28:06]OFD Sender: No OFD packet to send [00:28:11]OFD Sender: No OFD packet to send [00:28:16]OFD Sender: No OFD packet to send [00:28:21]OFD Sender: No OFD packet to send [00:28:26]OFD Sender: No OFD packet to send [00:28:31]OFD Sender: No OFD packet to send [00:28:36]OFD Sender: No OFD packet to send [00:28:41]OFD Sender: No OFD packet to send [00:28:46]OFD Sender: No OFD packet to send [00:28:51]OFD Sender: No OFD packet to send [00:28:56]OFD Sender: No OFD packet to send [00:29:01]OFD Sender: No OFD packet to send [00:29:06]OFD Sender: No OFD packet to send [00:29:11]OFD Sender: No OFD packet to send [00:29:16]OFD Sender: No OFD packet to send [00:29:22]OFD Sender: No OFD packet to send [00:29:27]OFD Sender: No OFD packet to send [00:29:32]OFD Sender: No OFD packet to send [00:29:37]OFD Sender: No OFD packet to send [00:29:42]OFD Sender: No OFD packet to send [00:29:47]OFD Sender: No OFD packet to send [00:29:52]OFD Sender: No OFD packet to send [00:29:57]OFD Sender: No OFD packet to send [00:30:02]OFD Sender: No OFD packet to send [00:30:07]OFD Sender: No OFD packet to send [00:30:12]OFD Sender: No OFD packet to send [00:30:17]OFD Sender: No OFD packet to send [00:30:22]OFD Sender: No OFD packet to send [00:30:27]OFD Sender: No OFD packet to send [00:30:32]OFD Sender: No OFD packet to send [00:30:37]OFD Sender: No OFD packet to send [00:30:42]OFD Sender: No OFD packet to send [00:30:47]OFD Sender: No OFD packet to send [00:30:52]OFD Sender: No OFD packet to send [00:30:57]OFD Sender: No OFD packet to send [00:31:02]OFD Sender: No OFD packet to send [00:31:07]OFD Sender: No OFD packet to send [00:31:12]OFD Sender: No OFD packet to send [00:31:17]OFD Sender: No OFD packet to send [00:31:22]OFD Sender: No OFD packet to send [00:31:27]OFD Sender: No OFD packet to send [00:31:32]OFD Sender: No OFD packet to send [00:31:37]OFD Sender: No OFD packet to send [00:31:42]OFD Sender: No OFD packet to send [00:31:47]OFD Sender: No OFD packet to send [00:31:52]OFD Sender: No OFD packet to send [00:31:57]OFD Sender: No OFD packet to send [00:32:02]OFD Sender: No OFD packet to send [00:32:07]OFD Sender: No OFD packet to send [00:32:12]OFD Sender: No OFD packet to send [00:32:17]OFD Sender: No OFD packet to send [00:32:22]OFD Sender: No OFD packet to send [00:32:27]OFD Sender: No OFD packet to send [00:32:32]OFD Sender: No OFD packet to send [00:32:37]OFD Sender: No OFD packet to send [00:32:42]OFD Sender: No OFD packet to send [00:32:47]OFD Sender: No OFD packet to send [00:32:52]OFD Sender: No OFD packet to send [00:32:57]OFD Sender: No OFD packet to send [00:33:02]OFD Sender: No OFD packet to send [00:33:07]OFD Sender: No OFD packet to send [00:33:12]OFD Sender: No OFD packet to send [00:33:17]OFD Sender: No OFD packet to send [00:33:22]OFD Sender: No OFD packet to send [00:33:27]OFD Sender: No OFD packet to send [00:33:32]OFD Sender: No OFD packet to send [00:33:37]OFD Sender: No OFD packet to send [00:33:42]OFD Sender: No OFD packet to send [00:33:47]OFD Sender: No OFD packet to send [00:33:52]OFD Sender: No OFD packet to send [00:33:57]OFD Sender: No OFD packet to send [00:34:02]OFD Sender: No OFD packet to send [00:34:07]OFD Sender: No OFD packet to send [00:34:12]OFD Sender: No OFD packet to send [00:34:17]OFD Sender: No OFD packet to send [00:34:22]OFD Sender: No OFD packet to send [00:34:27]OFD Sender: No OFD packet to send [00:34:32]OFD Sender: No OFD packet to send [00:34:37]OFD Sender: No OFD packet to send [00:34:42]OFD Sender: No OFD packet to send [00:34:47]OFD Sender: No OFD packet to send [00:34:52]OFD Sender: No OFD packet to send [00:34:57]OFD Sender: No OFD packet to send [00:35:02]OFD Sender: No OFD packet to send [00:35:07]OFD Sender: No OFD packet to send [00:35:12]OFD Sender: No OFD packet to send [00:35:17]OFD Sender: No OFD packet to send [00:35:22]OFD Sender: No OFD packet to send [00:35:27]OFD Sender: No OFD packet to send [00:35:32]OFD Sender: No OFD packet to send [00:35:37]OFD Sender: No OFD packet to send [00:35:42]OFD Sender: No OFD packet to send [00:35:47]OFD Sender: No OFD packet to send [00:35:52]OFD Sender: No OFD packet to send [00:35:57]OFD Sender: No OFD packet to send [00:36:02]OFD Sender: No OFD packet to send [00:36:07]OFD Sender: No OFD packet to send [00:36:12]OFD Sender: No OFD packet to send [00:36:17]OFD Sender: No OFD packet to send [00:36:22]OFD Sender: No OFD packet to send [00:36:27]OFD Sender: No OFD packet to send [00:36:32]OFD Sender: No OFD packet to send [00:36:37]OFD Sender: No OFD packet to send [00:36:42]OFD Sender: No OFD packet to send [00:36:47]OFD Sender: No OFD packet to send [00:36:52]OFD Sender: No OFD packet to send [00:36:57]OFD Sender: No OFD packet to send [00:37:02]OFD Sender: No OFD packet to send [00:37:07]OFD Sender: No OFD packet to send [00:37:12]OFD Sender: No OFD packet to send [00:37:17]OFD Sender: No OFD packet to send [00:37:22]OFD Sender: No OFD packet to send [00:37:27]OFD Sender: No OFD packet to send [00:37:32]OFD Sender: No OFD packet to send [00:37:37]OFD Sender: No OFD packet to send [00:37:42]OFD Sender: No OFD packet to send [00:37:47]OFD Sender: No OFD packet to send [00:37:52]OFD Sender: No OFD packet to send [00:37:57]OFD Sender: No OFD packet to send [00:38:02]OFD Sender: No OFD packet to send [00:38:07]OFD Sender: No OFD packet to send [00:38:12]OFD Sender: No OFD packet to send [00:38:17]OFD Sender: No OFD packet to send [00:38:22]OFD Sender: No OFD packet to send [00:38:27]OFD Sender: No OFD packet to send [00:38:32]OFD Sender: No OFD packet to send [00:38:37]OFD Sender: No OFD packet to send [00:38:42]OFD Sender: No OFD packet to send [00:38:47]OFD Sender: No OFD packet to send [00:38:52]OFD Sender: No OFD packet to send [00:38:57]OFD Sender: No OFD packet to send [00:39:02]OFD Sender: No OFD packet to send [00:39:07]OFD Sender: No OFD packet to send [00:39:12]OFD Sender: No OFD packet to send [00:39:17]OFD Sender: No OFD packet to send [00:39:22]OFD Sender: No OFD packet to send [00:39:27]OFD Sender: No OFD packet to send [00:39:32]OFD Sender: No OFD packet to send [00:39:37]OFD Sender: No OFD packet to send [00:39:42]OFD Sender: No OFD packet to send [00:39:47]OFD Sender: No OFD packet to send [00:39:52]OFD Sender: No OFD packet to send [00:39:57]OFD Sender: No OFD packet to send [00:40:02]OFD Sender: No OFD packet to send [00:40:07]OFD Sender: No OFD packet to send [00:40:12]OFD Sender: No OFD packet to send [00:40:17]OFD Sender: No OFD packet to send [00:40:22]OFD Sender: No OFD packet to send [00:40:27]OFD Sender: No OFD packet to send [00:40:32]OFD Sender: No OFD packet to send [00:40:37]OFD Sender: No OFD packet to send [00:40:42]OFD Sender: No OFD packet to send [00:40:47]OFD Sender: No OFD packet to send [00:40:52]OFD Sender: No OFD packet to send [00:40:57]OFD Sender: No OFD packet to send [00:40:59]accept exits with 7 [00:40:59]New connection [00:40:59]New thread 3067342180 created [00:40:59]Thread 3067485540 joined [00:40:59]Waiting for new connection... [00:40:59] Sock 7.Parse request [00:40:59]Sock 7.Check first char [00:40:59]Sock 7.First char is OK [00:40:59]request: POST /json_proto HTTP/1.0 [00:40:59]Method: POST [00:40:59]URL: /json_proto [00:40:59]Method is POST - this is cgi request [00:40:59]url: /json_proto [00:40:59]query_string will be loaded in cgi processing [00:40:59]execute_cgi json_proto POST (null) [00:40:59]execute_cgi path=json_proto method=POST [00:40:59]POST find Content-Length [00:40:59]Host: 172.17.58.3:8080 [00:40:59]Content-Length: 815 [00:40:59]Content-Type: application/json [00:40:59] [00:40:59]POST finish read [00:40:59]Found Content-Length = 815 [00:40:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160851", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:40:59]execute_script... [00:40:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160851", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:40:59]POST & json_proto [00:40:59]process_json_proto [00:40:59]json parsed OK: [00:40:59]protocol is kg_v1.0 [00:40:59]action value=close_receipt [00:40:59]process_action close_receipt [00:40:59]cmd_close_receipt [00:40:59]MH_GetDate [00:40:59]Write to MH i2c: F0 00 00 E0 03 D2 [00:40:59]Write i2c OK [00:40:59]MH_I2C_Read... [00:40:59]Read from MH i2c: F0 [00:40:59]MH_I2C_Read... [00:40:59]Read from MH i2c: F0 09 00 [00:40:59]MH_I2C_Read... [00:40:59]Read from MH i2c: F0 09 00 E0 03 00 1C FD BB 66 DC E4 6D 64 A6 [00:40:59]GetLastDocTimeStamp 1723595199 [00:40:59]current date 1723596060 [00:40:59]FM_GetShiftState [00:40:59]SAM_PROTO_GetShiftState [00:40:59]wFMCommunicate request_size=4 [00:40:59]MH_SAM_APDU [00:40:59]CAPDU: 80 13 01 00 [00:40:59]Write to MH i2c: E2 08 00 E1 03 80 13 01 00 00 00 00 00 61 [00:40:59]Write i2c OK [00:40:59]MH_I2C_Read... [00:40:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:40:59]Read from MH i2c: E2 [00:40:59]MH_I2C_Read... [00:40:59]Read from MH i2c: E2 0E 00 [00:40:59]MH_I2C_Read... [00:40:59]Read from MH i2c: E2 0E 00 E1 03 00 09 00 01 AC F1 BB 66 00 00 00 00 90 00 2B [00:40:59]RAPDU: 09 00 01 AC F1 BB 66 00 00 00 00 90 00 [00:40:59]wFMCommunicate OK [00:40:59]SAM_PROTO_GetShiftState done [00:40:59]FM_GetShiftState done [00:40:59]opened in 1723593132 [00:40:59]opened+sec_in_day 1723679532 [00:40:59]quantity*price = 50018 [00:40:59]sum+1 = 50019 [00:40:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.18 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.18 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 5 14.08.2024 00:41 Смена: 465 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875058 ФД: 103226 ФПД: 116434134531603 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240814T004100&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103226&fm=116434134531603&tin=02508201610067®Number=0000000000092718&sum=50018 [00:41:00]StoreToDocumentArchive [00:41:00]shift 465 fd 103226 [00:41:00]save to /storage/0465/doc_00103226 [00:41:00]save last doc name /storage/0465/doc_00103226 to /storage/kkm_last_doc_name [00:41:00]save OK [00:41:00]Clear old archive folders... [00:41:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:41:00]tlvbuf is 011B4F20 [00:41:00]SAM_PROTO_ClearQueue [00:41:00]wFMCommunicate request_size=4 [00:41:00]MH_SAM_APDU [00:41:00]CAPDU: 80 09 00 00 [00:41:00]Write to MH i2c: E2 08 00 EE 03 80 09 00 00 00 00 00 00 63 [00:41:00]Write i2c OK [00:41:00]MH_I2C_Read... [00:41:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:41:00]Read from MH i2c: E2 [00:41:00]MH_I2C_Read... [00:41:00]Read from MH i2c: E2 03 00 [00:41:00]MH_I2C_Read... [00:41:00]Read from MH i2c: E2 03 00 EE 03 00 90 00 65 [00:41:00]RAPDU: 90 00 [00:41:00]wFMCommunicate OK [00:41:00]SAM_PROTO_ClearQueue done [00:41:00]KKMCreateOFDPacket [00:41:00]OFDProtocolAddRootSTLVToBuf [00:41:00]FM_MakeSignedData [00:41:00]FM_MakeSignedData [00:41:00]SAM_PROTO_SignData [00:41:00]wFMCommunicate request_size=4 [00:41:00]MH_SAM_APDU [00:41:00]CAPDU: 80 0D 01 02 [00:41:00]Write to MH i2c: E2 08 00 EF 03 80 0D 01 02 00 00 00 00 6B [00:41:00]Write i2c OK [00:41:00]MH_I2C_Read... [00:41:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:41:00]Read from MH i2c: E2 [00:41:00]MH_I2C_Read... [00:41:00]Read from MH i2c: E2 03 00 [00:41:00]MH_I2C_Read... [00:41:00]Read from MH i2c: E2 03 00 EF 03 00 90 00 66 [00:41:00]RAPDU: 90 00 [00:41:00]wFMCommunicate OK [00:41:00]wFMCommunicate request_size=255 [00:41:00]MH_SAM_APDU [00:41:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 1C FD BB 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 3A 93 01 00 35 04 06 00 69 [00:41:00]Write to MH i2c: E2 02 01 F0 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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 1C FD BB 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 3A 93 01 00 35 04 06 00 69 00 00 59 [00:41:00]Write i2c OK [00:41:00]MH_I2C_Read... [00:41:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:41:01]Read from MH i2c: E2 [00:41:01]MH_I2C_Read... [00:41:01]Read from MH i2c: E2 03 00 [00:41:01]MH_I2C_Read... [00:41:01]Read from MH i2c: E2 03 00 F0 03 00 90 00 67 [00:41:01]RAPDU: 90 00 [00:41:01]wFMCommunicate OK [00:41:01]wFMCommunicate request_size=10 [00:41:01]MH_SAM_APDU [00:41:01]CAPDU: 80 0D 02 02 05 E5 6F 3A 7E 13 [00:41:01]Write to MH i2c: E2 0D 00 F1 03 80 0D 02 02 05 00 E5 6F 3A 7E 13 00 00 97 [00:41:01]Write i2c OK [00:41:01]MH_I2C_Read... [00:41:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:41:01]Read from MH i2c: E2 [00:41:01]MH_I2C_Read... [00:41:01]Read from MH i2c: E2 03 00 [00:41:01]MH_I2C_Read... [00:41:01]Read from MH i2c: E2 03 00 F1 03 00 90 00 68 [00:41:01]RAPDU: 90 00 [00:41:01]wFMCommunicate OK [00:41:01]wFMCommunicate request_size=4 [00:41:01]MH_SAM_APDU [00:41:01]CAPDU: 80 0D 03 02 [00:41:01]Write to MH i2c: E2 08 00 F2 03 80 0D 03 02 00 00 00 00 70 [00:41:01]Write i2c OK [00:41:01]MH_I2C_Read... [00:41:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:41:01]Read from MH i2c: E2 [00:41:01]MH_I2C_Read... [00:41:01]Read from MH i2c: E2 0B 00 [00:41:01]MH_I2C_Read... [00:41:01]Read from MH i2c: E2 0B 00 F2 03 00 76 D1 BC ED 99 94 72 7A 90 00 7A [00:41:01]RAPDU: 76 D1 BC ED 99 94 72 7A 90 00 [00:41:01]wFMCommunicate OK [00:41:01]SAM_PROTO_SignData done [00:41:01]FM_MakeSignedData done [00:41:01]CreateOFDProtocolMessage [00:41:01]wFMCommunicate request_size=4 [00:41:01]MH_SAM_APDU [00:41:01]CAPDU: 80 11 00 00 [00:41:01]Write to MH i2c: E2 08 00 F3 03 80 11 00 00 00 00 00 00 70 [00:41:01]Write i2c OK [00:41:01]MH_I2C_Read... [00:41:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:41:01]Read from MH i2c: E2 [00:41:01]MH_I2C_Read... [00:41:01]Read from MH i2c: E2 17 00 [00:41:01]MH_I2C_Read... [00:41:01]Read from MH i2c: E2 17 00 F3 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 C4 [00:41:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [00:41:01]wFMCommunicate OK [00:41:01]CreateOFDProtocolMessage done [00:41:01]OFDSenderStorePacket 103226 [00:41:01]StoreOFDPacket docnum=103226 [00:41:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 3C E0 07 01 D2 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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 1C FD BB 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 3A 93 01 00 35 04 06 00 69 E5 6F 3A 7E 13 76 D1 BC ED 99 94 72 7A [00:41:01]CheckFolder [00:41:01]dirname=/storage/ofd_packets [00:41:01]CheckFolder done [00:41:01]ProducePacketName [00:41:01]name=ofd_packets/00103226 [00:41:01]NVStorageSaveData ofd_packets/00103226 [00:41:01]File name is /storage/ofd_packets/00103226 [00:41:01]Write 301 bytes [00:41:01]NVStorageSaveData done [00:41:01]OFDSenderStorePacket done [00:41:01]KKMCreateOFDPacket done [00:41:01]NVStorageSaveData kkm_last_timestamp [00:41:01]File name is /storage/kkm_last_timestamp [00:41:01]Write 4 bytes [00:41:01]NVStorageSaveData done [00:41:01]OFD Sender: Processing packet 103226 [packets to send 69, broken 68] [00:41:01]ProducePacketName [00:41:01]name=ofd_packets/00103226 [00:41:01]OFD Sender: To server: pG, [00:41:01]CommunicateWithHost lk.salyk.kg:30040 [00:41:01]ConnectInit lk.salyk.kg [00:41:01]ExternCall_PrintAddStr [00:41:01]wPrintStart [00:41:01]Write to MH i2c: 01 00 00 F4 03 F7 [00:41:01]Write i2c OK [00:41:01]MH_I2C_Read... [00:41:01]Read from MH i2c: 01 [00:41:01]MH_I2C_Read... [00:41:01]Read from MH i2c: 01 07 00 [00:41:01]MH_I2C_Read... [00:41:01]Read from MH i2c: 01 07 00 F4 03 00 00 00 00 00 FF 0F 0C [00:41:01]RasterBufferAndPrint [00:41:01]line Счет N : (1)160851 [00:41:01]line ИНН: 02508201610067 [00:41:01]line Контрольно-Кассовый Чек [00:41:01]line ПРОДАЖА [00:41:01]line ТРК (МРК, ГНК) : 3 [00:41:01]line Товар: 2710124130 [00:41:01]line Аи-92-К-5 [00:41:01]line 7.590 * 65.90 [00:41:01]line = 500.18 [00:41:01]line НДС 12% НСП 1% [00:41:01]line > о реализуемом товаре [00:41:01]line ИТОГО: 500.18 [00:41:01]line НСП 1% : 4.43 [00:41:01]line НДС 12% : 53.12 [00:41:01]line Наличными: 0.00 [00:41:01]line Безнал.: 500.18 [00:41:01]line Место: АЗС № 38 "Партнер Нефть" [00:41:01]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [00:41:01]line СНО: Общий режим [00:41:01]line Чек 5 14.08.2024 00:41 [00:41:01]line Смена: 465 ФФД: 1.0 [00:41:01]line ЗНМ: 0300000126 [00:41:01]line РНМ: 0000000000092718 [00:41:01]line Версия ККМ: 001 [00:41:01]line Платежная система: Бакай Банк [00:41:01]line ФМ: 0000000000875058 [00:41:01]line ФД: 103226 [00:41:01]line ФПД: 116434134531603 [00:41:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240814T004100&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103226&fm=116434134531603&tin=02508201610067®Number=0000000000092718&sum=50018 [00:41:01]Connected sock=11 [00:41:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 3C E0 07 01 D2 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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 1C FD BB 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 3A 93 01 00 35 04 06 00 69 E5 6F 3A 7E 13 76 D1 BC ED 99 94 72 7A [00:41:01]written 0, free lines is 4095 [00:41:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 73 21 47 00 19 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 3A 93 01 00 F4 03 04 00 8D A3 BB 66 B6 04 01 00 00 CC E9 09 36 89 10 59 6C [00:41:01]CommunicateWithHost err = 0 [00:41:01]CheckOFDResponse [00:41:01]1017 (14) - 77093643461234 [00:41:01]1041 (16) - 0000000000875058 [00:41:01]1040 (4) - 103226 [00:41:01]1012 (4) - 13.08.2024 18:18 [00:41:01]1206 (1) - 0 [00:41:01]OFD Sender: Remove packet 103226 [00:41:01]ProducePacketName [00:41:01]name=ofd_packets/00103226 [00:41:01]NVStorageDeleteData [00:41:02]Write to MH i2c: 01 00 00 1E 04 22 [00:41:02]Write i2c OK [00:41:02]MH_I2C_Read... [00:41:02]Read from MH i2c: 01 [00:41:02]MH_I2C_Read... [00:41:02]Read from MH i2c: 01 07 00 [00:41:02]MH_I2C_Read... [00:41:02]Read from MH i2c: 01 07 00 1E 04 00 00 00 00 00 F4 0C 29 [00:41:02]RasterBufferAndPrint [00:41:02]line [00:41:02]line [00:41:02]line [00:41:02]line [00:41:02]line [00:41:02]written 0, free lines is 3325 [00:41:02]MH_Cut [00:41:02]Write to MH i2c: D1 01 00 25 04 01 FB [00:41:02]Write i2c OK [00:41:02]MH_I2C_Read... [00:41:02]Read from MH i2c: D1 [00:41:02]MH_I2C_Read... [00:41:02]Read from MH i2c: D1 01 00 [00:41:02]MH_I2C_Read... [00:41:02]Read from MH i2c: D1 01 00 25 04 00 FA [00:41:02]Write to MH i2c: 01 00 00 26 04 2A [00:41:02]Write i2c OK [00:41:02]MH_I2C_Read... [00:41:02]OFD Sender: No OFD packet to send [00:41:02]*** Cut start [00:41:02]*** Purtial cut [00:41:02]*** Stage 1: CUTSNS_PIN = 1 [00:41:03]Read from MH i2c: 01 [00:41:03]MH_I2C_Read... [00:41:03]*** Stop cut motor [00:41:03]*** Cut end [00:41:03]Read from MH i2c: 01 07 00 [00:41:03]MH_I2C_Read... [00:41:03]Read from MH i2c: 01 07 00 26 04 00 00 00 00 00 FF 0F 3F [00:41:03]process_action close_receipt done [00:41:03]requested_data is exist [00:41:03]produce_requested_data [00:41:03]requested_item fm.sn is exist - process it [00:41:03]wFMCommunicate request_size=4 [00:41:03]MH_SAM_APDU [00:41:03]CAPDU: 80 11 00 00 [00:41:03]Write to MH i2c: E2 08 00 27 04 80 11 00 00 00 00 00 00 A5 [00:41:03]Write i2c OK [00:41:03]MH_I2C_Read... [00:41:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:41:03]Read from MH i2c: E2 [00:41:03]MH_I2C_Read... [00:41:03]Read from MH i2c: E2 17 00 [00:41:03]MH_I2C_Read... [00:41:03]Read from MH i2c: E2 17 00 27 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 F9 [00:41:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [00:41:03]wFMCommunicate OK [00:41:03]requested_item fd.num is exist - process it [00:41:03]SAM_PROTO_GetFieldsCounters [00:41:03]wFMCommunicate request_size=4 [00:41:03]MH_SAM_APDU [00:41:03]CAPDU: 80 13 00 00 [00:41:03]Write to MH i2c: E2 08 00 28 04 80 13 00 00 00 00 00 00 A8 [00:41:03]Write i2c OK [00:41:03]MH_I2C_Read... [00:41:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:41:03]Read from MH i2c: E2 [00:41:03]MH_I2C_Read... [00:41:03]Read from MH i2c: E2 62 00 [00:41:03]MH_I2C_Read... [00:41:03]Read from MH i2c: E2 62 00 28 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 3A 93 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [00:41:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 3A 93 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:41:03]wFMCommunicate OK [00:41:03]SAM_PROTO_GetFieldsCounters done [00:41:03]requested_item shift.num is exist - process it [00:41:03]requested_item shift.opened is exist - process it [00:41:03]req_shift_opened [00:41:03]FM_GetShiftState [00:41:03]SAM_PROTO_GetShiftState [00:41:03]wFMCommunicate request_size=4 [00:41:03]MH_SAM_APDU [00:41:03]CAPDU: 80 13 01 00 [00:41:03]Write to MH i2c: E2 08 00 29 04 80 13 01 00 00 00 00 00 AA [00:41:03]Write i2c OK [00:41:03]MH_I2C_Read... [00:41:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:03]Read from MH i2c: E2 [00:41:03]MH_I2C_Read... [00:41:03]Read from MH i2c: E2 0E 00 [00:41:03]MH_I2C_Read... [00:41:03]Read from MH i2c: E2 0E 00 29 04 00 09 00 01 AC F1 BB 66 00 00 00 00 90 00 74 [00:41:03]RAPDU: 09 00 01 AC F1 BB 66 00 00 00 00 90 00 [00:41:03]wFMCommunicate OK [00:41:03]SAM_PROTO_GetShiftState done [00:41:03]FM_GetShiftState done [00:41:03]req_shift_opened done [00:41:03]requested_item shift.open_date is exist - process it [00:41:03]req_shift_open_date [00:41:03]req_shift_open_date done [00:41:03]produce_requested_data done [00:41:03]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103226,"shift.num":465,"shift.opened":1,"shift.open_date":1723593132} [00:41:03]process_action_free close_receipt [00:41:03]json_value_free [00:41:03]json_value_free done [00:41:03]process_json_proto returns [00:41:03]Send response to host [00:41:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103226,"shift.num":465,"shift.opened":1,"shift.open_date":1723593132}}} [00:41:03]free response buf [00:41:03]execute_script done [00:41:03]execute_script returns [00:41:03]free content buf [00:41:03]Sock 7.Close socket [00:41:03]Sock 7.Thread stoped [00:41:07]OFD Sender: No OFD packet to send [00:41:12]OFD Sender: No OFD packet to send [00:41:17]OFD Sender: No OFD packet to send [00:41:22]OFD Sender: No OFD packet to send [00:41:27]OFD Sender: No OFD packet to send [00:41:32]OFD Sender: No OFD packet to send [00:41:37]OFD Sender: No OFD packet to send [00:41:42]OFD Sender: No OFD packet to send [00:41:47]OFD Sender: No OFD packet to send [00:41:52]OFD Sender: No OFD packet to send [00:41:57]OFD Sender: No OFD packet to send [00:42:02]OFD Sender: No OFD packet to send [00:42:07]OFD Sender: No OFD packet to send [00:42:12]OFD Sender: No OFD packet to send [00:42:17]OFD Sender: No OFD packet to send [00:42:22]OFD Sender: No OFD packet to send [00:42:27]OFD Sender: No OFD packet to send [00:42:32]OFD Sender: No OFD packet to send [00:42:37]OFD Sender: No OFD packet to send [00:42:42]OFD Sender: No OFD packet to send [00:42:47]OFD Sender: No OFD packet to send [00:42:52]OFD Sender: No OFD packet to send [00:42:57]OFD Sender: No OFD packet to send [00:43:02]OFD Sender: No OFD packet to send [00:43:07]OFD Sender: No OFD packet to send [00:43:12]OFD Sender: No OFD packet to send [00:43:17]OFD Sender: No OFD packet to send [00:43:22]OFD Sender: No OFD packet to send [00:43:27]OFD Sender: No OFD packet to send [00:43:32]OFD Sender: No OFD packet to send [00:43:37]OFD Sender: No OFD packet to send [00:43:42]OFD Sender: No OFD packet to send [00:43:47]OFD Sender: No OFD packet to send [00:43:52]OFD Sender: No OFD packet to send [00:43:57]OFD Sender: No OFD packet to send [00:44:02]OFD Sender: No OFD packet to send [00:44:07]OFD Sender: No OFD packet to send [00:44:12]OFD Sender: No OFD packet to send [00:44:17]OFD Sender: No OFD packet to send [00:44:22]OFD Sender: No OFD packet to send [00:44:27]OFD Sender: No OFD packet to send [00:44:32]OFD Sender: No OFD packet to send [00:44:37]OFD Sender: No OFD packet to send [00:44:42]OFD Sender: No OFD packet to send [00:44:47]OFD Sender: No OFD packet to send [00:44:52]OFD Sender: No OFD packet to send [00:44:57]OFD Sender: No OFD packet to send [00:45:02]OFD Sender: No OFD packet to send [00:45:07]OFD Sender: No OFD packet to send [00:45:12]OFD Sender: No OFD packet to send [00:45:17]OFD Sender: No OFD packet to send [00:45:22]OFD Sender: No OFD packet to send [00:45:27]OFD Sender: No OFD packet to send [00:45:32]OFD Sender: No OFD packet to send [00:45:37]OFD Sender: No OFD packet to send [00:45:42]OFD Sender: No OFD packet to send [00:45:47]OFD Sender: No OFD packet to send [00:45:52]OFD Sender: No OFD packet to send [00:45:57]OFD Sender: No OFD packet to send [00:46:02]OFD Sender: No OFD packet to send [00:46:07]OFD Sender: No OFD packet to send [00:46:12]OFD Sender: No OFD packet to send [00:46:17]OFD Sender: No OFD packet to send [00:46:22]OFD Sender: No OFD packet to send [00:46:27]OFD Sender: No OFD packet to send [00:46:32]OFD Sender: No OFD packet to send [00:46:37]OFD Sender: No OFD packet to send [00:46:42]OFD Sender: No OFD packet to send [00:46:47]OFD Sender: No OFD packet to send [00:46:52]OFD Sender: No OFD packet to send [00:46:57]OFD Sender: No OFD packet to send [00:47:02]OFD Sender: No OFD packet to send [00:47:07]OFD Sender: No OFD packet to send [00:47:12]OFD Sender: No OFD packet to send [00:47:17]OFD Sender: No OFD packet to send [00:47:22]OFD Sender: No OFD packet to send [00:47:27]OFD Sender: No OFD packet to send [00:47:32]OFD Sender: No OFD packet to send [00:47:37]OFD Sender: No OFD packet to send [00:47:42]OFD Sender: No OFD packet to send [00:47:47]OFD Sender: No OFD packet to send [00:47:52]OFD Sender: No OFD packet to send [00:47:57]OFD Sender: No OFD packet to send [00:48:02]OFD Sender: No OFD packet to send [00:48:07]OFD Sender: No OFD packet to send [00:48:12]OFD Sender: No OFD packet to send [00:48:17]OFD Sender: No OFD packet to send [00:48:22]OFD Sender: No OFD packet to send [00:48:27]OFD Sender: No OFD packet to send [00:48:32]OFD Sender: No OFD packet to send [00:48:37]OFD Sender: No OFD packet to send [00:48:42]OFD Sender: No OFD packet to send [00:48:47]OFD Sender: No OFD packet to send [00:48:52]OFD Sender: No OFD packet to send [00:48:57]OFD Sender: No OFD packet to send [00:49:02]OFD Sender: No OFD packet to send [00:49:07]OFD Sender: No OFD packet to send [00:49:12]OFD Sender: No OFD packet to send [00:49:17]OFD Sender: No OFD packet to send [00:49:22]OFD Sender: No OFD packet to send [00:49:27]OFD Sender: No OFD packet to send [00:49:32]OFD Sender: No OFD packet to send [00:49:37]OFD Sender: No OFD packet to send [00:49:42]OFD Sender: No OFD packet to send [00:49:47]OFD Sender: No OFD packet to send [00:49:52]OFD Sender: No OFD packet to send [00:49:57]OFD Sender: No OFD packet to send [00:50:02]OFD Sender: No OFD packet to send [00:50:07]OFD Sender: No OFD packet to send [00:50:12]OFD Sender: No OFD packet to send [00:50:17]OFD Sender: No OFD packet to send [00:50:22]OFD Sender: No OFD packet to send [00:50:27]OFD Sender: No OFD packet to send [00:50:32]OFD Sender: No OFD packet to send [00:50:37]OFD Sender: No OFD packet to send [00:50:42]OFD Sender: No OFD packet to send [00:50:47]OFD Sender: No OFD packet to send [00:50:52]OFD Sender: No OFD packet to send [00:50:57]OFD Sender: No OFD packet to send [00:51:02]OFD Sender: No OFD packet to send [00:51:07]OFD Sender: No OFD packet to send [00:51:12]OFD Sender: No OFD packet to send [00:51:15]accept exits with 9 [00:51:15]New connection [00:51:15]New thread 3067485540 created [00:51:15]Thread 3067342180 joined [00:51:15]Waiting for new connection... [00:51:15] Sock 9.Parse request [00:51:15]Sock 9.Check first char [00:51:15]Sock 9.First char is OK [00:51:15]request: POST /json_proto HTTP/1.0 [00:51:15]Method: POST [00:51:15]URL: /json_proto [00:51:15]Method is POST - this is cgi request [00:51:15]url: /json_proto [00:51:15]query_string will be loaded in cgi processing [00:51:15]execute_cgi json_proto POST (null) [00:51:15]execute_cgi path=json_proto method=POST [00:51:15]POST find Content-Length [00:51:15]Host: 172.17.58.3:8080 [00:51:15]Content-Length: 623 [00:51:15]Content-Type: application/json [00:51:15] [00:51:15]POST finish read [00:51:15]Found Content-Length = 623 [00:51:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)34515", "tax_sys" : 0, "items" : [ { "code": "48747073", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Royal Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:51:15]execute_script... [00:51: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 : (3)34515", "tax_sys" : 0, "items" : [ { "code": "48747073", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Royal Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:51:15]POST & json_proto [00:51:15]process_json_proto [00:51:15]json parsed OK: [00:51:15]protocol is kg_v1.0 [00:51:15]action value=close_receipt [00:51:15]process_action close_receipt [00:51:15]cmd_close_receipt [00:51:15]MH_GetDate [00:51:15]Write to MH i2c: F0 00 00 2A 04 1D [00:51:15]Write i2c OK [00:51:15]MH_I2C_Read... [00:51:15]Read from MH i2c: F0 [00:51:15]MH_I2C_Read... [00:51:15]Read from MH i2c: F0 09 00 [00:51:15]MH_I2C_Read... [00:51:15]Read from MH i2c: F0 09 00 2A 04 00 84 FF BB 66 DC E4 6D 64 5B [00:51:15]GetLastDocTimeStamp 1723596060 [00:51:15]current date 1723596676 [00:51:15]FM_GetShiftState [00:51:15]SAM_PROTO_GetShiftState [00:51:15]wFMCommunicate request_size=4 [00:51:15]MH_SAM_APDU [00:51:15]CAPDU: 80 13 01 00 [00:51:15]Write to MH i2c: E2 08 00 2B 04 80 13 01 00 00 00 00 00 AC [00:51:15]Write i2c OK [00:51:15]MH_I2C_Read... [00:51:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:51:15]Read from MH i2c: E2 [00:51:15]MH_I2C_Read... [00:51:15]Read from MH i2c: E2 0E 00 [00:51:15]MH_I2C_Read... [00:51:15]Read from MH i2c: E2 0E 00 2B 04 00 09 00 01 AC F1 BB 66 00 00 00 00 90 00 76 [00:51:15]RAPDU: 09 00 01 AC F1 BB 66 00 00 00 00 90 00 [00:51:15]wFMCommunicate OK [00:51:15]SAM_PROTO_GetShiftState done [00:51:15]FM_GetShiftState done [00:51:15]opened in 1723593132 [00:51:15]opened+sec_in_day 1723679532 [00:51:15]quantity*price = 15000 [00:51:15]sum+1 = 15001 [00:51:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 6 14.08.2024 00:51 Смена: 465 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103227 ФПД: 224704074477996 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240814T005116&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103227&fm=224704074477996&tin=02508201610067®Number=0000000000092718&sum=15000 0 [00:51:16]StoreToDocumentArchive [00:51:16]shift 465 fd 103227 [00:51:16]save to /storage/0465/doc_00103227 [00:51:16]save last doc name /storage/0465/doc_00103227 to /storage/kkm_last_doc_name [00:51:16]save OK [00:51:16]Clear old archive folders... [00:51:16]ProcessDocumentItem done err = 0, tmpTLVsize=276 [00:51:16]tlvbuf is B6FD7410 [00:51:16]SAM_PROTO_ClearQueue [00:51:16]wFMCommunicate request_size=4 [00:51:16]MH_SAM_APDU [00:51:16]CAPDU: 80 09 00 00 [00:51:16]Write to MH i2c: E2 08 00 38 04 80 09 00 00 00 00 00 00 AE [00:51:16]Write i2c OK [00:51:16]MH_I2C_Read... [00:51:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:51:16]Read from MH i2c: E2 [00:51:16]MH_I2C_Read... [00:51:16]Read from MH i2c: E2 03 00 [00:51:16]MH_I2C_Read... [00:51:16]Read from MH i2c: E2 03 00 38 04 00 90 00 B0 [00:51:16]RAPDU: 90 00 [00:51:16]wFMCommunicate OK [00:51:16]SAM_PROTO_ClearQueue done [00:51:16]KKMCreateOFDPacket [00:51:16]OFDProtocolAddRootSTLVToBuf [00:51:16]FM_MakeSignedData [00:51:16]FM_MakeSignedData [00:51:16]SAM_PROTO_SignData [00:51:16]wFMCommunicate request_size=4 [00:51:16]MH_SAM_APDU [00:51:16]CAPDU: 80 0D 01 02 [00:51:16]Write to MH i2c: E2 08 00 39 04 80 0D 01 02 00 00 00 00 B6 [00:51:16]Write i2c OK [00:51:16]MH_I2C_Read... [00:51:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:51:16]Read from MH i2c: E2 [00:51:16]MH_I2C_Read... [00:51:16]Read from MH i2c: E2 03 00 [00:51:16]MH_I2C_Read... [00:51:16]Read from MH i2c: E2 03 00 39 04 00 90 00 B1 [00:51:16]RAPDU: 90 00 [00:51:16]wFMCommunicate OK [00:51:16]wFMCommunicate request_size=255 [00:51:16]MH_SAM_APDU [00:51:16]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 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 39 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 06 00 00 00 F4 03 04 00 84 FF BB 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 [00:51:16]Write to MH i2c: E2 02 01 3A 04 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 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 39 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 06 00 00 00 F4 03 04 00 84 FF BB 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 00 00 EC [00:51:16]Write i2c OK [00:51:16]MH_I2C_Read... [00:51:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:51:17]Read from MH i2c: E2 [00:51:17]MH_I2C_Read... [00:51:17]Read from MH i2c: E2 03 00 [00:51:17]MH_I2C_Read... [00:51:17]Read from MH i2c: E2 03 00 3A 04 00 90 00 B2 [00:51:17]RAPDU: 90 00 [00:51:17]wFMCommunicate OK [00:51:17]wFMCommunicate request_size=35 [00:51:17]MH_SAM_APDU [00:51:17]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 3B 93 01 00 35 04 06 00 CC 5D FE 89 F1 AC [00:51:17]Write to MH i2c: E2 26 00 3B 04 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 3B 93 01 00 35 04 06 00 CC 5D FE 89 F1 AC 00 00 C9 [00:51:17]Write i2c OK [00:51:17]MH_I2C_Read... [00:51:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:51:17]Read from MH i2c: E2 [00:51:17]MH_I2C_Read... [00:51:17]Read from MH i2c: E2 03 00 [00:51:17]MH_I2C_Read... [00:51:17]Read from MH i2c: E2 03 00 3B 04 00 90 00 B3 [00:51:17]RAPDU: 90 00 [00:51:17]wFMCommunicate OK [00:51:17]wFMCommunicate request_size=4 [00:51:17]MH_SAM_APDU [00:51:17]CAPDU: 80 0D 03 02 [00:51:17]Write to MH i2c: E2 08 00 3C 04 80 0D 03 02 00 00 00 00 BB [00:51:17]Write i2c OK [00:51:17]MH_I2C_Read... [00:51:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:51:17]Read from MH i2c: E2 [00:51:17]MH_I2C_Read... [00:51:17]Read from MH i2c: E2 0B 00 [00:51:17]MH_I2C_Read... [00:51:17]Read from MH i2c: E2 0B 00 3C 04 00 1B 1F 73 4B 93 81 1D EE 90 00 D3 [00:51:17]RAPDU: 1B 1F 73 4B 93 81 1D EE 90 00 [00:51:17]wFMCommunicate OK [00:51:17]SAM_PROTO_SignData done [00:51:17]FM_MakeSignedData done [00:51:17]CreateOFDProtocolMessage [00:51:17]wFMCommunicate request_size=4 [00:51:17]MH_SAM_APDU [00:51:17]CAPDU: 80 11 00 00 [00:51:17]Write to MH i2c: E2 08 00 3D 04 80 11 00 00 00 00 00 00 BB [00:51:17]Write i2c OK [00:51:17]MH_I2C_Read... [00:51:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:51:17]Read from MH i2c: E2 [00:51:17]MH_I2C_Read... [00:51:17]Read from MH i2c: E2 17 00 [00:51:17]MH_I2C_Read... [00:51:17]Read from MH i2c: E2 17 00 3D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 0F [00:51:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [00:51:17]wFMCommunicate OK [00:51:17]CreateOFDProtocolMessage done [00:51:17]OFDSenderStorePacket 103227 [00:51:17]StoreOFDPacket docnum=103227 [00:51:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 28 01 00 00 A3 B0 20 01 89 2D 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 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 39 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 06 00 00 00 F4 03 04 00 84 FF BB 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 3B 93 01 00 35 04 06 00 CC 5D FE 89 F1 AC 1B 1F 73 4B 93 81 1D EE [00:51:17]CheckFolder [00:51:17]dirname=/storage/ofd_packets [00:51:17]CheckFolder done [00:51:17]ProducePacketName [00:51:17]name=ofd_packets/00103227 [00:51:17]NVStorageSaveData ofd_packets/00103227 [00:51:17]File name is /storage/ofd_packets/00103227 [00:51:17]Write 326 bytes [00:51:17]NVStorageSaveData done [00:51:17]OFDSenderStorePacket done [00:51:17]KKMCreateOFDPacket done [00:51:17]NVStorageSaveData kkm_last_timestamp [00:51:17]File name is /storage/kkm_last_timestamp [00:51:17]Write 4 bytes [00:51:17]NVStorageSaveData done [00:51:17]ExternCall_PrintAddStr [00:51:17]wPrintStart [00:51:17]Write to MH i2c: 01 00 00 3E 04 42 [00:51:17]Write i2c OK [00:51:17]MH_I2C_Read... [00:51:17]Read from MH i2c: 01 [00:51:17]MH_I2C_Read... [00:51:17]Read from MH i2c: 01 07 00 [00:51:17]MH_I2C_Read... [00:51:17]Read from MH i2c: 01 07 00 3E 04 00 00 00 00 00 FF 0F 57 [00:51:17]RasterBufferAndPrint [00:51:17]line Счет N : (3)34515 [00:51:17]line ИНН: 02508201610067 [00:51:17]line Контрольно-Кассовый Чек [00:51:17]line ПРОДАЖА [00:51:17]line Товар: 48747073 [00:51:17]line Сигареты Richmond Royal Edition [00:51:17]line 1.000 * 150.00 [00:51:17]line = 150.00 [00:51:17]line НДС 12% НСП 1% [00:51:17]line > о реализуемом товаре [00:51:17]line ИТОГО: 150.00 [00:51:17]line НСП 1% : 1.33 [00:51:17]line НДС 12% : 15.93 [00:51:17]line Наличными: 150.00 [00:51:17]line Безнал.: 0.00 [00:51:17]line Место: АЗС № 38 "Партнер Нефть" [00:51:17]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [00:51:17]line СНО: Общий режим [00:51:17]line Чек 6 14.08.2024 00:51 [00:51:17]line Смена: 465 ФФД: 1.0 [00:51:17]line ЗНМ: 0300000126 [00:51:17]line РНМ: 0000000000092718 [00:51:17]line Версия ККМ: 001 [00:51:17]line ФМ: 0000000000875058 [00:51:17]line ФД: 103227 [00:51:17]line ФПД: 224704074477996 [00:51:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240814T005116&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103227&fm=224704074477996&tin=02508201610067®Number=0000000000092718&sum=15000 [00:51:17]line 0 [00:51:17]OFD Sender: Processing packet 103227 [packets to send 69, broken 68] [00:51:17]ProducePacketName [00:51:17]name=ofd_packets/00103227 [00:51:17]OFD Sender: To server: pG, [00:51:17]CommunicateWithHost lk.salyk.kg:30040 [00:51:17]ConnectInit lk.salyk.kg [00:51:17]written 0, free lines is 4095 [00:51:17]Connected sock=10 [00:51:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 28 01 00 00 A3 B0 20 01 89 2D 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 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 39 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 06 00 00 00 F4 03 04 00 84 FF BB 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 3B 93 01 00 35 04 06 00 CC 5D FE 89 F1 AC 1B 1F 73 4B 93 81 1D EE [00:51:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 96 BA 47 00 83 CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 3B 93 01 00 F4 03 04 00 F6 A5 BB 66 B6 04 01 00 00 2B F9 C2 05 03 50 60 6F [00:51:17]CommunicateWithHost err = 0 [00:51:17]CheckOFDResponse [00:51:17]1017 (14) - 77093643461234 [00:51:17]1041 (16) - 0000000000875058 [00:51:17]1040 (4) - 103227 [00:51:17]1012 (4) - 13.08.2024 18:29 [00:51:17]1206 (1) - 0 [00:51:17]OFD Sender: Remove packet 103227 [00:51:17]ProducePacketName [00:51:17]name=ofd_packets/00103227 [00:51:17]NVStorageDeleteData [00:51:18]Write to MH i2c: 01 00 00 67 04 6B [00:51:18]Write i2c OK [00:51:18]MH_I2C_Read... [00:51:18]Read from MH i2c: 01 [00:51:18]MH_I2C_Read... [00:51:18]Read from MH i2c: 01 07 00 [00:51:18]MH_I2C_Read... [00:51:18]Read from MH i2c: 01 07 00 67 04 00 00 00 00 00 D3 0C 51 [00:51:18]RasterBufferAndPrint [00:51:18]line [00:51:18]line [00:51:18]line [00:51:18]line [00:51:18]line [00:51:18]written 0, free lines is 3288 [00:51:18]MH_Cut [00:51:18]Write to MH i2c: D1 01 00 6E 04 01 44 [00:51:18]Write i2c OK [00:51:18]MH_I2C_Read... [00:51:18]Read from MH i2c: D1 [00:51:18]MH_I2C_Read... [00:51:18]Read from MH i2c: D1 01 00 [00:51:18]MH_I2C_Read... [00:51:18]Read from MH i2c: D1 01 00 6E 04 00 43 [00:51:18]Write to MH i2c: 01 00 00 6F 04 73 [00:51:18]Write i2c OK [00:51:18]MH_I2C_Read... [00:51:18]OFD Sender: No OFD packet to send [00:51:18]*** Cut start [00:51:18]*** Purtial cut [00:51:18]*** CUTSNS_PIN = 0 [00:51:19]*** Stage 1: CUTSNS_PIN = 1 [00:51:20]Read from MH i2c: 01 [00:51:20]MH_I2C_Read... [00:51:20]*** Stop cut motor [00:51:20]*** Cut end [00:51:20]Read from MH i2c: 01 07 00 [00:51:20]MH_I2C_Read... [00:51:20]Read from MH i2c: 01 07 00 6F 04 00 00 00 00 00 FF 0F 88 [00:51:20]process_action close_receipt done [00:51:20]requested_data is exist [00:51:20]produce_requested_data [00:51:20]requested_item fm.sn is exist - process it [00:51:20]wFMCommunicate request_size=4 [00:51:20]MH_SAM_APDU [00:51:20]CAPDU: 80 11 00 00 [00:51:20]Write to MH i2c: E2 08 00 70 04 80 11 00 00 00 00 00 00 EE [00:51:20]Write i2c OK [00:51:20]MH_I2C_Read... [00:51:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:51:20]Read from MH i2c: E2 [00:51:20]MH_I2C_Read... [00:51:20]Read from MH i2c: E2 17 00 [00:51:20]MH_I2C_Read... [00:51:20]Read from MH i2c: E2 17 00 70 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 42 [00:51:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [00:51:20]wFMCommunicate OK [00:51:20]requested_item fd.num is exist - process it [00:51:20]SAM_PROTO_GetFieldsCounters [00:51:20]wFMCommunicate request_size=4 [00:51:20]MH_SAM_APDU [00:51:20]CAPDU: 80 13 00 00 [00:51:20]Write to MH i2c: E2 08 00 71 04 80 13 00 00 00 00 00 00 F1 [00:51:20]Write i2c OK [00:51:20]MH_I2C_Read... [00:51:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:51:21]Read from MH i2c: E2 [00:51:21]MH_I2C_Read... [00:51:21]Read from MH i2c: E2 62 00 [00:51:21]MH_I2C_Read... [00:51:21]Read from MH i2c: E2 62 00 71 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 3B 93 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [00:51:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 3B 93 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:51:21]wFMCommunicate OK [00:51:21]SAM_PROTO_GetFieldsCounters done [00:51:21]requested_item shift.num is exist - process it [00:51:21]requested_item shift.opened is exist - process it [00:51:21]req_shift_opened [00:51:21]FM_GetShiftState [00:51:21]SAM_PROTO_GetShiftState [00:51:21]wFMCommunicate request_size=4 [00:51:21]MH_SAM_APDU [00:51:21]CAPDU: 80 13 01 00 [00:51:21]Write to MH i2c: E2 08 00 72 04 80 13 01 00 00 00 00 00 F3 [00:51:21]Write i2c OK [00:51:21]MH_I2C_Read... [00:51:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:51:21]Read from MH i2c: E2 [00:51:21]MH_I2C_Read... [00:51:21]Read from MH i2c: E2 0E 00 [00:51:21]MH_I2C_Read... [00:51:21]Read from MH i2c: E2 0E 00 72 04 00 09 00 01 AC F1 BB 66 00 00 00 00 90 00 BD [00:51:21]RAPDU: 09 00 01 AC F1 BB 66 00 00 00 00 90 00 [00:51:21]wFMCommunicate OK [00:51:21]SAM_PROTO_GetShiftState done [00:51:21]FM_GetShiftState done [00:51:21]req_shift_opened done [00:51:21]requested_item shift.open_date is exist - process it [00:51:21]req_shift_open_date [00:51:21]req_shift_open_date done [00:51:21]produce_requested_data done [00:51:21]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103227,"shift.num":465,"shift.opened":1,"shift.open_date":1723593132} [00:51:21]process_action_free close_receipt [00:51:21]json_value_free [00:51:21]json_value_free done [00:51:21]process_json_proto returns [00:51:21]Send response to host [00:51:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103227,"shift.num":465,"shift.opened":1,"shift.open_date":1723593132}}} [00:51:21]free response buf [00:51:21]execute_script done [00:51:21]execute_script returns [00:51:21]free content buf [00:51:21]Sock 9.Close socket [00:51:21]Sock 9.Thread stoped [00:51:23]OFD Sender: No OFD packet to send [00:51:28]OFD Sender: No OFD packet to send [00:51:33]OFD Sender: No OFD packet to send [00:51:38]OFD Sender: No OFD packet to send [00:51:43]OFD Sender: No OFD packet to send [00:51:48]OFD Sender: No OFD packet to send [00:51:53]OFD Sender: No OFD packet to send [00:51:58]OFD Sender: No OFD packet to send [00:52:03]OFD Sender: No OFD packet to send [00:52:08]OFD Sender: No OFD packet to send [00:52:13]OFD Sender: No OFD packet to send [00:52:18]OFD Sender: No OFD packet to send [00:52:23]OFD Sender: No OFD packet to send [00:52:28]OFD Sender: No OFD packet to send [00:52:33]OFD Sender: No OFD packet to send [00:52:38]OFD Sender: No OFD packet to send [00:52:43]OFD Sender: No OFD packet to send [00:52:48]OFD Sender: No OFD packet to send [00:52:53]OFD Sender: No OFD packet to send [00:52:58]OFD Sender: No OFD packet to send [00:53:03]OFD Sender: No OFD packet to send [00:53:08]OFD Sender: No OFD packet to send [00:53:13]OFD Sender: No OFD packet to send [00:53:18]OFD Sender: No OFD packet to send [00:53:23]OFD Sender: No OFD packet to send [00:53:28]OFD Sender: No OFD packet to send [00:53:33]OFD Sender: No OFD packet to send [00:53:38]OFD Sender: No OFD packet to send [00:53:43]OFD Sender: No OFD packet to send [00:53:48]OFD Sender: No OFD packet to send [00:53:53]OFD Sender: No OFD packet to send [00:53:58]OFD Sender: No OFD packet to send [00:54:03]OFD Sender: No OFD packet to send [00:54:08]OFD Sender: No OFD packet to send [00:54:13]OFD Sender: No OFD packet to send [00:54:18]OFD Sender: No OFD packet to send [00:54:23]OFD Sender: No OFD packet to send [00:54:28]OFD Sender: No OFD packet to send [00:54:33]OFD Sender: No OFD packet to send [00:54:38]OFD Sender: No OFD packet to send [00:54:43]OFD Sender: No OFD packet to send [00:54:48]OFD Sender: No OFD packet to send [00:54:53]OFD Sender: No OFD packet to send [00:54:58]OFD Sender: No OFD packet to send [00:55:03]OFD Sender: No OFD packet to send [00:55:08]OFD Sender: No OFD packet to send [00:55:13]OFD Sender: No OFD packet to send [00:55:18]OFD Sender: No OFD packet to send [00:55:23]OFD Sender: No OFD packet to send [00:55:28]OFD Sender: No OFD packet to send [00:55:33]OFD Sender: No OFD packet to send [00:55:38]OFD Sender: No OFD packet to send [00:55:43]OFD Sender: No OFD packet to send [00:55:48]OFD Sender: No OFD packet to send [00:55:53]OFD Sender: No OFD packet to send [00:55:58]OFD Sender: No OFD packet to send [00:56:03]OFD Sender: No OFD packet to send [00:56:08]OFD Sender: No OFD packet to send [00:56:13]OFD Sender: No OFD packet to send [00:56:18]OFD Sender: No OFD packet to send [00:56:23]OFD Sender: No OFD packet to send [00:56:28]OFD Sender: No OFD packet to send [00:56:33]OFD Sender: No OFD packet to send [00:56:38]OFD Sender: No OFD packet to send [00:56:43]OFD Sender: No OFD packet to send [00:56:48]OFD Sender: No OFD packet to send [00:56:53]OFD Sender: No OFD packet to send [00:56:58]OFD Sender: No OFD packet to send [00:57:03]OFD Sender: No OFD packet to send [00:57:08]OFD Sender: No OFD packet to send [00:57:13]OFD Sender: No OFD packet to send [00:57:18]OFD Sender: No OFD packet to send [00:57:23]OFD Sender: No OFD packet to send [00:57:28]OFD Sender: No OFD packet to send [00:57:33]OFD Sender: No OFD packet to send [00:57:38]OFD Sender: No OFD packet to send [00:57:43]OFD Sender: No OFD packet to send [00:57:48]OFD Sender: No OFD packet to send [00:57:53]OFD Sender: No OFD packet to send [00:57:58]OFD Sender: No OFD packet to send [00:58:03]OFD Sender: No OFD packet to send [00:58:08]OFD Sender: No OFD packet to send [00:58:13]OFD Sender: No OFD packet to send [00:58:18]OFD Sender: No OFD packet to send [00:58:23]OFD Sender: No OFD packet to send [00:58:28]OFD Sender: No OFD packet to send [00:58:33]OFD Sender: No OFD packet to send [00:58:38]OFD Sender: No OFD packet to send [00:58:43]OFD Sender: No OFD packet to send [00:58:48]OFD Sender: No OFD packet to send [00:58:53]OFD Sender: No OFD packet to send [00:58:58]OFD Sender: No OFD packet to send [00:59:03]OFD Sender: No OFD packet to send [00:59:08]OFD Sender: No OFD packet to send [00:59:13]OFD Sender: No OFD packet to send [00:59:18]OFD Sender: No OFD packet to send [00:59:23]OFD Sender: No OFD packet to send [00:59:28]OFD Sender: No OFD packet to send [00:59:33]OFD Sender: No OFD packet to send [00:59:38]OFD Sender: No OFD packet to send [00:59:43]OFD Sender: No OFD packet to send [00:59:48]OFD Sender: No OFD packet to send [00:59:53]OFD Sender: No OFD packet to send [00:59:58]OFD Sender: No OFD packet to send [01:00:03]OFD Sender: No OFD packet to send [01:00:08]OFD Sender: No OFD packet to send [01:00:13]OFD Sender: No OFD packet to send [01:00:18]OFD Sender: No OFD packet to send [01:00:23]OFD Sender: No OFD packet to send [01:00:28]OFD Sender: No OFD packet to send [01:00:33]OFD Sender: No OFD packet to send [01:00:38]OFD Sender: No OFD packet to send [01:00:43]OFD Sender: No OFD packet to send [01:00:48]OFD Sender: No OFD packet to send [01:00:53]OFD Sender: No OFD packet to send [01:00:59]OFD Sender: No OFD packet to send [01:01:04]OFD Sender: No OFD packet to send [01:01:09]OFD Sender: No OFD packet to send [01:01:14]OFD Sender: No OFD packet to send [01:01:19]OFD Sender: No OFD packet to send [01:01:24]OFD Sender: No OFD packet to send [01:01:29]OFD Sender: No OFD packet to send [01:01:34]OFD Sender: No OFD packet to send [01:01:39]OFD Sender: No OFD packet to send [01:01:44]OFD Sender: No OFD packet to send [01:01:49]OFD Sender: No OFD packet to send [01:01:54]OFD Sender: No OFD packet to send [01:01:59]OFD Sender: No OFD packet to send [01:02:04]OFD Sender: No OFD packet to send [01:02:09]OFD Sender: No OFD packet to send [01:02:14]OFD Sender: No OFD packet to send [01:02:19]OFD Sender: No OFD packet to send [01:02:24]OFD Sender: No OFD packet to send [01:02:29]OFD Sender: No OFD packet to send [01:02:34]OFD Sender: No OFD packet to send [01:02:39]OFD Sender: No OFD packet to send [01:02:44]OFD Sender: No OFD packet to send [01:02:49]OFD Sender: No OFD packet to send [01:02:54]OFD Sender: No OFD packet to send [01:02:59]OFD Sender: No OFD packet to send [01:03:04]OFD Sender: No OFD packet to send [01:03:09]OFD Sender: No OFD packet to send [01:03:14]OFD Sender: No OFD packet to send [01:03:14]accept exits with 7 [01:03:14]New connection [01:03:14]New thread 3067342180 created [01:03:14]Thread 3067485540 joined [01:03:14]Waiting for new connection... [01:03:14] Sock 7.Parse request [01:03:14]Sock 7.Check first char [01:03:14]Sock 7.First char is OK [01:03:14]request: POST /json_proto HTTP/1.0 [01:03:14]Method: POST [01:03:14]URL: /json_proto [01:03:14]Method is POST - this is cgi request [01:03:14]url: /json_proto [01:03:14]query_string will be loaded in cgi processing [01:03:14]execute_cgi json_proto POST (null) [01:03:14]execute_cgi path=json_proto method=POST [01:03:14]POST find Content-Length [01:03:14]Host: 172.17.58.3:8080 [01:03:14]Content-Length: 930 [01:03:14]Content-Type: application/json [01:03:14] [01:03:14]POST finish read [01:03:14]Found Content-Length = 930 [01:03:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)34516", "tax_sys" : 0, "items" : [ { "code": "46227720", "name": "\u0420/\u0436 mentos pure fresh \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u0440\u043E\u043B\u043B 15,5", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46214638", "name": "\u0420/\u0436 mentos p.white \u043D\u0435\u0436\u043D\u0430\u044F \u043C\u044F\u0442\u0430 16/15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 98.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:03:14]execute_script... [01:03: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 : (3)34516", "tax_sys" : 0, "items" : [ { "code": "46227720", "name": "\u0420/\u0436 mentos pure fresh \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u0440\u043E\u043B\u043B 15,5", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46214638", "name": "\u0420/\u0436 mentos p.white \u043D\u0435\u0436\u043D\u0430\u044F \u043C\u044F\u0442\u0430 16/15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 98.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:03:14]POST & json_proto [01:03:14]process_json_proto [01:03:14]json parsed OK: [01:03:14]protocol is kg_v1.0 [01:03:14]action value=close_receipt [01:03:14]process_action close_receipt [01:03:14]cmd_close_receipt [01:03:14]MH_GetDate [01:03:14]Write to MH i2c: F0 00 00 73 04 66 [01:03:14]Write i2c OK [01:03:14]MH_I2C_Read... [01:03:14]Read from MH i2c: F0 [01:03:14]MH_I2C_Read... [01:03:14]Read from MH i2c: F0 09 00 [01:03:14]MH_I2C_Read... [01:03:14]Read from MH i2c: F0 09 00 73 04 00 53 02 BC 66 DC E4 6D 64 77 [01:03:14]GetLastDocTimeStamp 1723596676 [01:03:14]current date 1723597395 [01:03:14]FM_GetShiftState [01:03:14]SAM_PROTO_GetShiftState [01:03:14]wFMCommunicate request_size=4 [01:03:14]MH_SAM_APDU [01:03:14]CAPDU: 80 13 01 00 [01:03:14]Write to MH i2c: E2 08 00 74 04 80 13 01 00 00 00 00 00 F5 [01:03:14]Write i2c OK [01:03:14]MH_I2C_Read... [01:03:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:03:14]Read from MH i2c: E2 [01:03:14]MH_I2C_Read... [01:03:14]Read from MH i2c: E2 0E 00 [01:03:14]MH_I2C_Read... [01:03:14]Read from MH i2c: E2 0E 00 74 04 00 09 00 01 AC F1 BB 66 00 00 00 00 90 00 BF [01:03:14]RAPDU: 09 00 01 AC F1 BB 66 00 00 00 00 90 00 [01:03:14]wFMCommunicate OK [01:03:14]SAM_PROTO_GetShiftState done [01:03:14]FM_GetShiftState done [01:03:14]opened in 1723593132 [01:03:14]opened+sec_in_day 1723679532 [01:03:14]quantity*price = 4900 [01:03:14]sum+1 = 4901 [01:03:14]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46214638 Р/ж mentos p.white нежная мята 16/15,5г 1.000 * 49.00 = 49.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 98.00 НСП 1% : 0.86 НДС 12% : 10.40 Наличными: 98.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 7 14.08.2024 01:03 Смена: 465 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103228 ФПД: 140357311427945 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240814T010315&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103228&fm=140357311427945&tin=02508201610067®Number=0000000000092718&sum=9800 0 [01:03:15]StoreToDocumentArchive [01:03:15]shift 465 fd 103228 [01:03:15]save to /storage/0465/doc_00103228 [01:03:15]save last doc name /storage/0465/doc_00103228 to /storage/kkm_last_doc_name [01:03:15]save OK [01:03:15]Clear old archive folders... [01:03:15]ProcessDocumentItem done err = 0, tmpTLVsize=410 [01:03:15]tlvbuf is B6FD7010 [01:03:15]SAM_PROTO_ClearQueue [01:03:15]wFMCommunicate request_size=4 [01:03:15]MH_SAM_APDU [01:03:15]CAPDU: 80 09 00 00 [01:03:15]Write to MH i2c: E2 08 00 81 04 80 09 00 00 00 00 00 00 F7 [01:03:15]Write i2c OK [01:03:15]MH_I2C_Read... [01:03:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:03:16]Read from MH i2c: E2 [01:03:16]MH_I2C_Read... [01:03:16]Read from MH i2c: E2 03 00 [01:03:16]MH_I2C_Read... [01:03:16]Read from MH i2c: E2 03 00 81 04 00 90 00 F9 [01:03:16]RAPDU: 90 00 [01:03:16]wFMCommunicate OK [01:03:16]SAM_PROTO_ClearQueue done [01:03:16]KKMCreateOFDPacket [01:03:16]OFDProtocolAddRootSTLVToBuf [01:03:16]FM_MakeSignedData [01:03:16]FM_MakeSignedData [01:03:16]SAM_PROTO_SignData [01:03:16]wFMCommunicate request_size=4 [01:03:16]MH_SAM_APDU [01:03:16]CAPDU: 80 0D 01 02 [01:03:16]Write to MH i2c: E2 08 00 82 04 80 0D 01 02 00 00 00 00 FF [01:03:16]Write i2c OK [01:03:16]MH_I2C_Read... [01:03:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:03:16]Read from MH i2c: E2 [01:03:16]MH_I2C_Read... [01:03:16]Read from MH i2c: E2 03 00 [01:03:16]MH_I2C_Read... [01:03:16]Read from MH i2c: E2 03 00 82 04 00 90 00 FA [01:03:16]RAPDU: 90 00 [01:03:16]wFMCommunicate OK [01:03:16]wFMCommunicate request_size=255 [01:03:16]MH_SAM_APDU [01:03:16]CAPDU: 80 0D 02 02 FA 03 00 9A 01 1E 04 01 00 01 23 04 75 00 8A 04 08 00 34 36 32 32 37 37 32 30 06 04 36 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 08 00 34 36 32 31 34 36 33 38 06 04 34 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 2E 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC [01:03:16]Write to MH i2c: E2 02 01 83 04 80 0D 02 02 FA 00 03 00 9A 01 1E 04 01 00 01 23 04 75 00 8A 04 08 00 34 36 32 32 37 37 32 30 06 04 36 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 08 00 34 36 32 31 34 36 33 38 06 04 34 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 2E 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 00 00 8A [01:03:16]Write i2c OK [01:03:16]MH_I2C_Read... [01:03:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:03:16]Read from MH i2c: E2 [01:03:16]MH_I2C_Read... [01:03:16]Read from MH i2c: E2 03 00 [01:03:16]MH_I2C_Read... [01:03:16]Read from MH i2c: E2 03 00 83 04 00 90 00 FB [01:03:16]RAPDU: 90 00 [01:03:16]wFMCommunicate OK [01:03:16]wFMCommunicate request_size=169 [01:03:16]MH_SAM_APDU [01:03:16]CAPDU: 80 0D 02 02 A4 03 06 00 48 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 04 00 00 00 00 07 04 06 00 48 26 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 53 02 BC 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 3C 93 01 00 35 04 06 00 7F A7 7B B0 75 69 [01:03:16]Write to MH i2c: E2 AC 00 84 04 80 0D 02 02 A4 00 03 06 00 48 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 04 00 00 00 00 07 04 06 00 48 26 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 53 02 BC 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 3C 93 01 00 35 04 06 00 7F A7 7B B0 75 69 00 00 28 [01:03:16]Write i2c OK [01:03:16]MH_I2C_Read... [01:03:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:03:16]Read from MH i2c: E2 [01:03:16]MH_I2C_Read... [01:03:16]Read from MH i2c: E2 03 00 [01:03:16]MH_I2C_Read... [01:03:16]Read from MH i2c: E2 03 00 84 04 00 90 00 FC [01:03:16]RAPDU: 90 00 [01:03:16]wFMCommunicate OK [01:03:16]wFMCommunicate request_size=4 [01:03:16]MH_SAM_APDU [01:03:16]CAPDU: 80 0D 03 02 [01:03:16]Write to MH i2c: E2 08 00 85 04 80 0D 03 02 00 00 00 00 04 [01:03:16]Write i2c OK [01:03:16]MH_I2C_Read... [01:03:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:03:16]Read from MH i2c: E2 [01:03:16]MH_I2C_Read... [01:03:16]Read from MH i2c: E2 0B 00 [01:03:16]MH_I2C_Read... [01:03:16]Read from MH i2c: E2 0B 00 85 04 00 FD 76 7B 12 A4 17 08 5D 90 00 25 [01:03:16]RAPDU: FD 76 7B 12 A4 17 08 5D 90 00 [01:03:16]wFMCommunicate OK [01:03:16]SAM_PROTO_SignData done [01:03:16]FM_MakeSignedData done [01:03:16]CreateOFDProtocolMessage [01:03:16]wFMCommunicate request_size=4 [01:03:16]MH_SAM_APDU [01:03:16]CAPDU: 80 11 00 00 [01:03:16]Write to MH i2c: E2 08 00 86 04 80 11 00 00 00 00 00 00 04 [01:03:16]Write i2c OK [01:03:16]MH_I2C_Read... [01:03:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:03:16]Read from MH i2c: E2 [01:03:16]MH_I2C_Read... [01:03:16]Read from MH i2c: E2 17 00 [01:03:16]MH_I2C_Read... [01:03:16]Read from MH i2c: E2 17 00 86 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 58 [01:03:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [01:03:16]wFMCommunicate OK [01:03:16]CreateOFDProtocolMessage done [01:03:16]OFDSenderStorePacket 103228 [01:03:16]StoreOFDPacket docnum=103228 [01:03:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 AE 01 00 00 11 3C A6 01 B7 F1 5A 03 01 00 03 00 9A 01 1E 04 01 00 01 23 04 75 00 8A 04 08 00 34 36 32 32 37 37 32 30 06 04 36 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 08 00 34 36 32 31 34 36 33 38 06 04 34 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 2E 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 04 00 00 00 00 07 04 06 00 48 26 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 53 02 BC 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 3C 93 01 00 35 04 06 00 7F A7 7B B0 75 69 FD 76 7B 12 A4 17 08 5D [01:03:16]CheckFolder [01:03:16]dirname=/storage/ofd_packets [01:03:16]CheckFolder done [01:03:16]ProducePacketName [01:03:16]name=ofd_packets/00103228 [01:03:16]NVStorageSaveData ofd_packets/00103228 [01:03:16]File name is /storage/ofd_packets/00103228 [01:03:16]Write 460 bytes [01:03:16]NVStorageSaveData done [01:03:16]OFDSenderStorePacket done [01:03:16]KKMCreateOFDPacket done [01:03:16]NVStorageSaveData kkm_last_timestamp [01:03:16]File name is /storage/kkm_last_timestamp [01:03:16]Write 4 bytes [01:03:16]NVStorageSaveData done [01:03:16]ExternCall_PrintAddStr [01:03:16]wPrintStart [01:03:16]Write to MH i2c: 01 00 00 87 04 8B [01:03:16]Write i2c OK [01:03:16]MH_I2C_Read... [01:03:16]Read from MH i2c: 01 [01:03:16]MH_I2C_Read... [01:03:16]Read from MH i2c: 01 07 00 [01:03:16]MH_I2C_Read... [01:03:16]Read from MH i2c: 01 07 00 87 04 00 00 00 00 00 FF 0F A0 [01:03:16]RasterBufferAndPrint [01:03:16]line Счет N : (3)34516 [01:03:16]line ИНН: 02508201610067 [01:03:16]line Контрольно-Кассовый Чек [01:03:16]line ПРОДАЖА [01:03:16]line Товар: 46227720 [01:03:16]line Р/ж mentos pure fresh виноград ролл 15,5 [01:03:16]line 1.000 * 49.00 [01:03:16]line = 49.00 [01:03:16]line НДС 12% НСП 1% [01:03:16]line > о реализуемом товаре [01:03:16]line Товар: 46214638 [01:03:16]line Р/ж mentos p.white нежная мята 16/15,5г [01:03:16]line 1.000 * 49.00 [01:03:16]line = 49.00 [01:03:16]line НДС 12% НСП 1% [01:03:16]line > о реализуемом товаре [01:03:16]line ИТОГО: 98.00 [01:03:16]line НСП 1% : 0.86 [01:03:16]line НДС 12% : 10.40 [01:03:16]line Наличными: 98.00 [01:03:16]line Безнал.: 0.00 [01:03:16]line Место: АЗС № 38 "Партнер Нефть" [01:03:16]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [01:03:16]line СНО: Общий режим [01:03:16]line Чек 7 14.08.2024 01:03 [01:03:16]line Смена: 465 ФФД: 1.0 [01:03:16]line ЗНМ: 0300000126 [01:03:16]line РНМ: 0000000000092718 [01:03:16]line Версия ККМ: 001 [01:03:16]line ФМ: 0000000000875058 [01:03:16]line ФД: 103228 [01:03:16]line ФПД: 140357311427945 [01:03:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240814T010315&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103228&fm=140357311427945&tin=02508201610067®Number=0000000000092718&sum=9800 [01:03:16]OFD Sender: Processing packet 103228 [packets to send 69, broken 68] [01:03:16]ProducePacketName [01:03:16]name=ofd_packets/00103228 [01:03:16]OFD Sender: To server: pG, [01:03:16]CommunicateWithHost lk.salyk.kg:30040 [01:03:16]ConnectInit lk.salyk.kg [01:03:16]line 0 [01:03:16]written 0, free lines is 4095 [01:03:17]Connected sock=10 [01:03:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 AE 01 00 00 11 3C A6 01 B7 F1 5A 03 01 00 03 00 9A 01 1E 04 01 00 01 23 04 75 00 8A 04 08 00 34 36 32 32 37 37 32 30 06 04 36 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 08 00 34 36 32 31 34 36 33 38 06 04 34 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 2E 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 04 00 00 00 00 07 04 06 00 48 26 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 53 02 BC 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 3C 93 01 00 35 04 06 00 7F A7 7B B0 75 69 FD 76 7B 12 A4 17 08 5D [01:03:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 69 DA 47 00 2E CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 3C 93 01 00 F4 03 04 00 C5 A8 BB 66 B6 04 01 00 00 57 67 D4 D4 D1 BB 1E AF [01:03:17]CommunicateWithHost err = 0 [01:03:17]CheckOFDResponse [01:03:17]1017 (14) - 77093643461234 [01:03:17]1041 (16) - 0000000000875058 [01:03:17]1040 (4) - 103228 [01:03:17]1012 (4) - 13.08.2024 18:41 [01:03:17]1206 (1) - 0 [01:03:17]OFD Sender: Remove packet 103228 [01:03:17]ProducePacketName [01:03:17]name=ofd_packets/00103228 [01:03:17]NVStorageDeleteData [01:03:17]Write to MH i2c: 01 00 00 B7 04 BB [01:03:17]Write i2c OK [01:03:17]MH_I2C_Read... [01:03:17]Read from MH i2c: 01 [01:03:17]MH_I2C_Read... [01:03:17]Read from MH i2c: 01 07 00 [01:03:17]MH_I2C_Read... [01:03:17]Read from MH i2c: 01 07 00 B7 04 00 00 00 00 00 82 0C 50 [01:03:17]RasterBufferAndPrint [01:03:17]line [01:03:17]line [01:03:17]line [01:03:17]line [01:03:17]line [01:03:17]written 0, free lines is 3208 [01:03:17]MH_Cut [01:03:17]Write to MH i2c: D1 01 00 BE 04 01 94 [01:03:17]Write i2c OK [01:03:17]MH_I2C_Read... [01:03:17]Read from MH i2c: D1 [01:03:17]MH_I2C_Read... [01:03:17]Read from MH i2c: D1 01 00 [01:03:17]MH_I2C_Read... [01:03:17]Read from MH i2c: D1 01 00 BE 04 00 93 [01:03:17]Write to MH i2c: 01 00 00 BF 04 C3 [01:03:17]Write i2c OK [01:03:17]MH_I2C_Read... [01:03:17]OFD Sender: No OFD packet to send [01:03:18]*** Cut start [01:03:18]*** Purtial cut [01:03:18]*** Stage 1: CUTSNS_PIN = 1 [01:03:18]Read from MH i2c: 01 [01:03:18]MH_I2C_Read... [01:03:18]*** Stop cut motor [01:03:18]*** Cut end [01:03:18]Read from MH i2c: 01 07 00 [01:03:18]MH_I2C_Read... [01:03:18]Read from MH i2c: 01 07 00 BF 04 00 00 00 00 00 FF 0F D8 [01:03:18]process_action close_receipt done [01:03:18]requested_data is exist [01:03:18]produce_requested_data [01:03:18]requested_item fm.sn is exist - process it [01:03:18]wFMCommunicate request_size=4 [01:03:18]MH_SAM_APDU [01:03:18]CAPDU: 80 11 00 00 [01:03:18]Write to MH i2c: E2 08 00 C0 04 80 11 00 00 00 00 00 00 3E [01:03:18]Write i2c OK [01:03:18]MH_I2C_Read... [01:03:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:03:18]Read from MH i2c: E2 [01:03:18]MH_I2C_Read... [01:03:18]Read from MH i2c: E2 17 00 [01:03:18]MH_I2C_Read... [01:03:18]Read from MH i2c: E2 17 00 C0 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 92 [01:03:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [01:03:18]wFMCommunicate OK [01:03:18]requested_item fd.num is exist - process it [01:03:18]SAM_PROTO_GetFieldsCounters [01:03:18]wFMCommunicate request_size=4 [01:03:18]MH_SAM_APDU [01:03:18]CAPDU: 80 13 00 00 [01:03:18]Write to MH i2c: E2 08 00 C1 04 80 13 00 00 00 00 00 00 41 [01:03:18]Write i2c OK [01:03:18]MH_I2C_Read... [01:03:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:03:18]Read from MH i2c: E2 [01:03:18]MH_I2C_Read... [01:03:18]Read from MH i2c: E2 62 00 [01:03:18]MH_I2C_Read... [01:03:18]Read from MH i2c: E2 62 00 C1 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 3C 93 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [01:03:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 3C 93 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:03:18]wFMCommunicate OK [01:03:18]SAM_PROTO_GetFieldsCounters done [01:03:18]requested_item shift.num is exist - process it [01:03:18]requested_item shift.opened is exist - process it [01:03:18]req_shift_opened [01:03:18]FM_GetShiftState [01:03:18]SAM_PROTO_GetShiftState [01:03:18]wFMCommunicate request_size=4 [01:03:18]MH_SAM_APDU [01:03:18]CAPDU: 80 13 01 00 [01:03:18]Write to MH i2c: E2 08 00 C2 04 80 13 01 00 00 00 00 00 43 [01:03:18]Write i2c OK [01:03:18]MH_I2C_Read... [01:03:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:03:18]Read from MH i2c: E2 [01:03:18]MH_I2C_Read... [01:03:18]Read from MH i2c: E2 0E 00 [01:03:18]MH_I2C_Read... [01:03:18]Read from MH i2c: E2 0E 00 C2 04 00 09 00 01 AC F1 BB 66 00 00 00 00 90 00 0D [01:03:18]RAPDU: 09 00 01 AC F1 BB 66 00 00 00 00 90 00 [01:03:18]wFMCommunicate OK [01:03:18]SAM_PROTO_GetShiftState done [01:03:18]FM_GetShiftState done [01:03:18]req_shift_opened done [01:03:18]requested_item shift.open_date is exist - process it [01:03:18]req_shift_open_date [01:03:18]req_shift_open_date done [01:03:18]produce_requested_data done [01:03:18]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103228,"shift.num":465,"shift.opened":1,"shift.open_date":1723593132} [01:03:18]process_action_free close_receipt [01:03:18]json_value_free [01:03:18]json_value_free done [01:03:18]process_json_proto returns [01:03:18]Send response to host [01:03:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103228,"shift.num":465,"shift.opened":1,"shift.open_date":1723593132}}} [01:03:18]free response buf [01:03:18]execute_script done [01:03:18]execute_script returns [01:03:18]free content buf [01:03:18]Sock 7.Close socket [01:03:18]Sock 7.Thread stoped [01:03:22]OFD Sender: No OFD packet to send [01:03:27]OFD Sender: No OFD packet to send [01:03:32]OFD Sender: No OFD packet to send [01:03:37]OFD Sender: No OFD packet to send [01:03:42]OFD Sender: No OFD packet to send [01:03:47]OFD Sender: No OFD packet to send [01:03:52]OFD Sender: No OFD packet to send [01:03:57]OFD Sender: No OFD packet to send [01:04:02]OFD Sender: No OFD packet to send [01:04:07]OFD Sender: No OFD packet to send [01:04:12]OFD Sender: No OFD packet to send [01:04:17]OFD Sender: No OFD packet to send [01:04:22]OFD Sender: No OFD packet to send [01:04:27]OFD Sender: No OFD packet to send [01:04:32]OFD Sender: No OFD packet to send [01:04:37]OFD Sender: No OFD packet to send [01:04:42]OFD Sender: No OFD packet to send [01:04:47]OFD Sender: No OFD packet to send [01:04:52]OFD Sender: No OFD packet to send [01:04:57]OFD Sender: No OFD packet to send [01:05:02]OFD Sender: No OFD packet to send [01:05:07]OFD Sender: No OFD packet to send [01:05:12]OFD Sender: No OFD packet to send [01:05:17]OFD Sender: No OFD packet to send [01:05:22]OFD Sender: No OFD packet to send [01:05:27]OFD Sender: No OFD packet to send [01:05:32]OFD Sender: No OFD packet to send [01:05:37]OFD Sender: No OFD packet to send [01:05:42]OFD Sender: No OFD packet to send [01:05:47]OFD Sender: No OFD packet to send [01:05:52]OFD Sender: No OFD packet to send [01:05:57]OFD Sender: No OFD packet to send [01:06:02]OFD Sender: No OFD packet to send [01:06:07]OFD Sender: No OFD packet to send [01:06:12]OFD Sender: No OFD packet to send [01:06:17]OFD Sender: No OFD packet to send [01:06:22]OFD Sender: No OFD packet to send [01:06:27]OFD Sender: No OFD packet to send [01:06:32]OFD Sender: No OFD packet to send [01:06:37]OFD Sender: No OFD packet to send [01:06:42]OFD Sender: No OFD packet to send [01:06:47]OFD Sender: No OFD packet to send [01:06:52]OFD Sender: No OFD packet to send [01:06:57]OFD Sender: No OFD packet to send [01:07:02]OFD Sender: No OFD packet to send [01:07:07]OFD Sender: No OFD packet to send [01:07:12]OFD Sender: No OFD packet to send [01:07:17]OFD Sender: No OFD packet to send [01:07:22]OFD Sender: No OFD packet to send [01:07:27]OFD Sender: No OFD packet to send [01:07:33]OFD Sender: No OFD packet to send [01:07:38]OFD Sender: No OFD packet to send [01:07:43]OFD Sender: No OFD packet to send [01:07:48]OFD Sender: No OFD packet to send [01:07:53]OFD Sender: No OFD packet to send [01:07:58]OFD Sender: No OFD packet to send [01:08:03]OFD Sender: No OFD packet to send [01:08:08]OFD Sender: No OFD packet to send [01:08:13]OFD Sender: No OFD packet to send [01:08:18]OFD Sender: No OFD packet to send [01:08:23]OFD Sender: No OFD packet to send [01:08:28]OFD Sender: No OFD packet to send [01:08:33]OFD Sender: No OFD packet to send [01:08:38]OFD Sender: No OFD packet to send [01:08:43]OFD Sender: No OFD packet to send [01:08:48]OFD Sender: No OFD packet to send [01:08:53]OFD Sender: No OFD packet to send [01:08:58]OFD Sender: No OFD packet to send [01:09:03]OFD Sender: No OFD packet to send [01:09:08]OFD Sender: No OFD packet to send [01:09:13]OFD Sender: No OFD packet to send [01:09:18]OFD Sender: No OFD packet to send [01:09:23]OFD Sender: No OFD packet to send [01:09:28]OFD Sender: No OFD packet to send [01:09:33]OFD Sender: No OFD packet to send [01:09:38]OFD Sender: No OFD packet to send [01:09:43]OFD Sender: No OFD packet to send [01:09:48]OFD Sender: No OFD packet to send [01:09:53]OFD Sender: No OFD packet to send [01:09:58]OFD Sender: No OFD packet to send [01:10:03]OFD Sender: No OFD packet to send [01:10:08]OFD Sender: No OFD packet to send [01:10:13]OFD Sender: No OFD packet to send [01:10:18]OFD Sender: No OFD packet to send [01:10:23]OFD Sender: No OFD packet to send [01:10:25]accept exits with 9 [01:10:25]New connection [01:10:25]New thread 3067485540 created [01:10:25]Thread 3067342180 joined [01:10:25]Waiting for new connection... [01:10:25] Sock 9.Parse request [01:10:25]Sock 9.Check first char [01:10:25]Sock 9.First char is OK [01:10:25]request: POST /json_proto HTTP/1.0 [01:10:25]Method: POST [01:10:25]URL: /json_proto [01:10:25]Method is POST - this is cgi request [01:10:25]url: /json_proto [01:10:25]query_string will be loaded in cgi processing [01:10:25]execute_cgi json_proto POST (null) [01:10:25]execute_cgi path=json_proto method=POST [01:10:25]POST find Content-Length [01:10:25]Host: 172.17.58.3:8080 [01:10:25]Content-Length: 676 [01:10:25]Content-Type: application/json [01:10:25] [01:10:25]POST finish read [01:10:25]Found Content-Length = 676 [01:10:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160852", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 3.040, "sum" : 200.34, "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" ] } } [01:10:25]execute_script... [01:10: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)160852", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 3.040, "sum" : 200.34, "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" ] } } [01:10:25]POST & json_proto [01:10:25]process_json_proto [01:10:25]json parsed OK: [01:10:25]protocol is kg_v1.0 [01:10:25]action value=close_receipt [01:10:25]process_action close_receipt [01:10:25]cmd_close_receipt [01:10:25]MH_GetDate [01:10:25]Write to MH i2c: F0 00 00 C3 04 B6 [01:10:25]Write i2c OK [01:10:25]MH_I2C_Read... [01:10:25]Read from MH i2c: F0 [01:10:25]MH_I2C_Read... [01:10:25]Read from MH i2c: F0 09 00 [01:10:25]MH_I2C_Read... [01:10:25]Read from MH i2c: F0 09 00 C3 04 00 02 04 BC 66 DC E4 6D 64 78 [01:10:25]GetLastDocTimeStamp 1723597395 [01:10:25]current date 1723597826 [01:10:25]FM_GetShiftState [01:10:25]SAM_PROTO_GetShiftState [01:10:25]wFMCommunicate request_size=4 [01:10:25]MH_SAM_APDU [01:10:25]CAPDU: 80 13 01 00 [01:10:25]Write to MH i2c: E2 08 00 C4 04 80 13 01 00 00 00 00 00 45 [01:10:25]Write i2c OK [01:10:25]MH_I2C_Read... [01:10:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:10:25]Read from MH i2c: E2 [01:10:25]MH_I2C_Read... [01:10:25]Read from MH i2c: E2 0E 00 [01:10:25]MH_I2C_Read... [01:10:25]Read from MH i2c: E2 0E 00 C4 04 00 09 00 01 AC F1 BB 66 00 00 00 00 90 00 0F [01:10:25]RAPDU: 09 00 01 AC F1 BB 66 00 00 00 00 90 00 [01:10:25]wFMCommunicate OK [01:10:25]SAM_PROTO_GetShiftState done [01:10:25]FM_GetShiftState done [01:10:25]opened in 1723593132 [01:10:25]opened+sec_in_day 1723679532 [01:10:25]quantity*price = 20033 [01:10:25]sum+1 = 20035 [01:10:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.27 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 8 14.08.2024 01:10 Смена: 465 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103229 ФПД: 101913743703160 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240814T011026&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103229&fm=101913743703160&tin=02508201610067®Number=0000000000092718&sum=20000 [01:10:26]StoreToDocumentArchive [01:10:26]shift 465 fd 103229 [01:10:26]save to /storage/0465/doc_00103229 [01:10:26]save last doc name /storage/0465/doc_00103229 to /storage/kkm_last_doc_name [01:10:26]save OK [01:10:26]Clear old archive folders... [01:10:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:10:26]tlvbuf is 011958C0 [01:10:26]SAM_PROTO_ClearQueue [01:10:26]wFMCommunicate request_size=4 [01:10:26]MH_SAM_APDU [01:10:26]CAPDU: 80 09 00 00 [01:10:26]Write to MH i2c: E2 08 00 D1 04 80 09 00 00 00 00 00 00 47 [01:10:26]Write i2c OK [01:10:26]MH_I2C_Read... [01:10:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:10:26]Read from MH i2c: E2 [01:10:26]MH_I2C_Read... [01:10:26]Read from MH i2c: E2 03 00 [01:10:26]MH_I2C_Read... [01:10:26]Read from MH i2c: E2 03 00 D1 04 00 90 00 49 [01:10:26]RAPDU: 90 00 [01:10:26]wFMCommunicate OK [01:10:26]SAM_PROTO_ClearQueue done [01:10:26]KKMCreateOFDPacket [01:10:26]OFDProtocolAddRootSTLVToBuf [01:10:26]FM_MakeSignedData [01:10:26]FM_MakeSignedData [01:10:26]SAM_PROTO_SignData [01:10:26]wFMCommunicate request_size=4 [01:10:26]MH_SAM_APDU [01:10:26]CAPDU: 80 0D 01 02 [01:10:26]Write to MH i2c: E2 08 00 D2 04 80 0D 01 02 00 00 00 00 4F [01:10:26]Write i2c OK [01:10:26]MH_I2C_Read... [01:10:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:10:26]Read from MH i2c: E2 [01:10:26]MH_I2C_Read... [01:10:26]Read from MH i2c: E2 03 00 [01:10:26]MH_I2C_Read... [01:10:26]Read from MH i2c: E2 03 00 D2 04 00 90 00 4A [01:10:26]RAPDU: 90 00 [01:10:26]wFMCommunicate OK [01:10:26]wFMCommunicate request_size=255 [01:10:26]MH_SAM_APDU [01:10:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 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 02 04 BC 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 3D 93 01 00 35 04 06 00 5C [01:10:26]Write to MH i2c: E2 02 01 D3 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 E0 0B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 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 02 04 BC 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 3D 93 01 00 35 04 06 00 5C 00 00 C1 [01:10:26]Write i2c OK [01:10:26]MH_I2C_Read... [01:10:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:10:27]Read from MH i2c: E2 [01:10:27]MH_I2C_Read... [01:10:27]Read from MH i2c: E2 03 00 [01:10:27]MH_I2C_Read... [01:10:27]Read from MH i2c: E2 03 00 D3 04 00 90 00 4B [01:10:27]RAPDU: 90 00 [01:10:27]wFMCommunicate OK [01:10:27]wFMCommunicate request_size=10 [01:10:27]MH_SAM_APDU [01:10:27]CAPDU: 80 0D 02 02 05 B0 A4 7D BC 78 [01:10:27]Write to MH i2c: E2 0D 00 D4 04 80 0D 02 02 05 00 B0 A4 7D BC 78 00 00 61 [01:10:27]Write i2c OK [01:10:27]MH_I2C_Read... [01:10:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:10:27]Read from MH i2c: E2 [01:10:27]MH_I2C_Read... [01:10:27]Read from MH i2c: E2 03 00 [01:10:27]MH_I2C_Read... [01:10:27]Read from MH i2c: E2 03 00 D4 04 00 90 00 4C [01:10:27]RAPDU: 90 00 [01:10:27]wFMCommunicate OK [01:10:27]wFMCommunicate request_size=4 [01:10:27]MH_SAM_APDU [01:10:27]CAPDU: 80 0D 03 02 [01:10:27]Write to MH i2c: E2 08 00 D5 04 80 0D 03 02 00 00 00 00 54 [01:10:27]Write i2c OK [01:10:27]MH_I2C_Read... [01:10:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:10:27]Read from MH i2c: E2 [01:10:27]MH_I2C_Read... [01:10:27]Read from MH i2c: E2 0B 00 [01:10:27]MH_I2C_Read... [01:10:27]Read from MH i2c: E2 0B 00 D5 04 00 40 73 F4 BC 57 42 72 A6 90 00 69 [01:10:27]RAPDU: 40 73 F4 BC 57 42 72 A6 90 00 [01:10:27]wFMCommunicate OK [01:10:27]SAM_PROTO_SignData done [01:10:27]FM_MakeSignedData done [01:10:27]CreateOFDProtocolMessage [01:10:27]wFMCommunicate request_size=4 [01:10:27]MH_SAM_APDU [01:10:27]CAPDU: 80 11 00 00 [01:10:27]Write to MH i2c: E2 08 00 D6 04 80 11 00 00 00 00 00 00 54 [01:10:27]Write i2c OK [01:10:27]MH_I2C_Read... [01:10:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:10:27]Read from MH i2c: E2 [01:10:27]MH_I2C_Read... [01:10:27]Read from MH i2c: E2 17 00 [01:10:27]MH_I2C_Read... [01:10:27]Read from MH i2c: E2 17 00 D6 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 A8 [01:10:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [01:10:27]wFMCommunicate OK [01:10:27]CreateOFDProtocolMessage done [01:10:27]OFDSenderStorePacket 103229 [01:10:27]StoreOFDPacket docnum=103229 [01:10:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 5A 1C 07 01 97 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 E0 0B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 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 02 04 BC 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 3D 93 01 00 35 04 06 00 5C B0 A4 7D BC 78 40 73 F4 BC 57 42 72 A6 [01:10:27]CheckFolder [01:10:27]dirname=/storage/ofd_packets [01:10:27]CheckFolder done [01:10:27]ProducePacketName [01:10:27]name=ofd_packets/00103229 [01:10:27]NVStorageSaveData ofd_packets/00103229 [01:10:27]File name is /storage/ofd_packets/00103229 [01:10:27]Write 301 bytes [01:10:27]NVStorageSaveData done [01:10:27]OFDSenderStorePacket done [01:10:27]KKMCreateOFDPacket done [01:10:27]NVStorageSaveData kkm_last_timestamp [01:10:27]File name is /storage/kkm_last_timestamp [01:10:27]Write 4 bytes [01:10:27]NVStorageSaveData done [01:10:27]ExternCall_PrintAddStr [01:10:27]wPrintStart [01:10:27]Write to MH i2c: 01 00 00 D7 04 DB [01:10:27]Write i2c OK [01:10:27]MH_I2C_Read... [01:10:27]Read from MH i2c: 01 [01:10:27]MH_I2C_Read... [01:10:27]Read from MH i2c: 01 07 00 [01:10:27]MH_I2C_Read... [01:10:27]Read from MH i2c: 01 07 00 D7 04 00 00 00 00 00 FF 0F F0 [01:10:27]RasterBufferAndPrint [01:10:27]line Счет N : (1)160852 [01:10:27]line ИНН: 02508201610067 [01:10:27]line Контрольно-Кассовый Чек [01:10:27]line ПРОДАЖА [01:10:27]line ТРК (МРК, ГНК) : 3 [01:10:27]line Товар: 2710124130 [01:10:27]line Аи-92-К-5 [01:10:27]line 3.040 * 65.90 [01:10:27]line = 200.34 [01:10:27]line НДС 12% НСП 1% [01:10:27]line > о реализуемом товаре [01:10:27]line ОКРУГЛЕНИЕ: -0.34 [01:10:27]line ИТОГО: 200.00 [01:10:27]line Внесено: 200.00 [01:10:27]line СДАЧА: 0.00 [01:10:27]line НСП 1% : 1.77 [01:10:27]line НДС 12% : 21.27 [01:10:27]line Наличными: 200.00 [01:10:27]line Безнал.: 0.00 [01:10:27]line Место: АЗС № 38 "Партнер Нефть" [01:10:27]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [01:10:27]line СНО: Общий режим [01:10:27]line Чек 8 14.08.2024 01:10 [01:10:27]line Смена: 465 ФФД: 1.0 [01:10:27]line ЗНМ: 0300000126 [01:10:27]line РНМ: 0000000000092718 [01:10:27]line Версия ККМ: 001 [01:10:27]line ФМ: 0000000000875058 [01:10:27]line ФД: 103229 [01:10:27]line ФПД: 101913743703160 [01:10:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240814T011026&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103229&fm=101913743703160&tin=02508201610067®Number=0000000000092718&sum=20000 [01:10:27]OFD Sender: Processing packet 103229 [packets to send 69, broken 68] [01:10:27]ProducePacketName [01:10:27]name=ofd_packets/00103229 [01:10:27]OFD Sender: To server: pG, [01:10:27]CommunicateWithHost lk.salyk.kg:30040 [01:10:27]ConnectInit lk.salyk.kg [01:10:27]written 0, free lines is 4095 [01:10:27]Connected sock=10 [01:10:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 5A 1C 07 01 97 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 E0 0B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 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 02 04 BC 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 3D 93 01 00 35 04 06 00 5C B0 A4 7D BC 78 40 73 F4 BC 57 42 72 A6 [01:10:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 B0 06 47 00 35 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 3D 93 01 00 F4 03 04 00 74 AA BB 66 B6 04 01 00 00 70 FF F0 F5 81 55 2E 43 [01:10:27]CommunicateWithHost err = 0 [01:10:27]CheckOFDResponse [01:10:27]1017 (14) - 77093643461234 [01:10:27]1041 (16) - 0000000000875058 [01:10:27]1040 (4) - 103229 [01:10:27]1012 (4) - 13.08.2024 18:48 [01:10:27]1206 (1) - 0 [01:10:27]OFD Sender: Remove packet 103229 [01:10:27]ProducePacketName [01:10:27]name=ofd_packets/00103229 [01:10:27]NVStorageDeleteData [01:10:28]Write to MH i2c: 01 00 00 02 05 07 [01:10:28]Write i2c OK [01:10:28]MH_I2C_Read... [01:10:28]Read from MH i2c: 01 [01:10:28]MH_I2C_Read... [01:10:28]Read from MH i2c: 01 07 00 [01:10:28]MH_I2C_Read... [01:10:28]Read from MH i2c: 01 07 00 02 05 00 00 00 00 00 E2 0C FC [01:10:28]RasterBufferAndPrint [01:10:28]line [01:10:28]line [01:10:28]line [01:10:28]line [01:10:28]line [01:10:28]written 0, free lines is 3304 [01:10:28]MH_Cut [01:10:28]Write to MH i2c: D1 01 00 09 05 01 E0 [01:10:28]Write i2c OK [01:10:28]MH_I2C_Read... [01:10:28]Read from MH i2c: D1 [01:10:28]MH_I2C_Read... [01:10:28]Read from MH i2c: D1 01 00 [01:10:28]MH_I2C_Read... [01:10:28]Read from MH i2c: D1 01 00 09 05 00 DF [01:10:28]Write to MH i2c: 01 00 00 0A 05 0F [01:10:28]Write i2c OK [01:10:28]MH_I2C_Read... [01:10:28]OFD Sender: No OFD packet to send [01:10:28]*** Cut start [01:10:28]*** Purtial cut [01:10:28]*** CUTSNS_PIN = 0 [01:10:29]*** Stage 1: CUTSNS_PIN = 1 [01:10:30]Read from MH i2c: 01 [01:10:30]MH_I2C_Read... [01:10:30]*** Stop cut motor [01:10:30]*** Cut end [01:10:30]Read from MH i2c: 01 07 00 [01:10:30]MH_I2C_Read... [01:10:30]Read from MH i2c: 01 07 00 0A 05 00 00 00 00 00 FF 0F 24 [01:10:30]process_action close_receipt done [01:10:30]requested_data is exist [01:10:30]produce_requested_data [01:10:30]requested_item fm.sn is exist - process it [01:10:30]wFMCommunicate request_size=4 [01:10:30]MH_SAM_APDU [01:10:30]CAPDU: 80 11 00 00 [01:10:30]Write to MH i2c: E2 08 00 0B 05 80 11 00 00 00 00 00 00 8A [01:10:30]Write i2c OK [01:10:30]MH_I2C_Read... [01:10:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:10:30]Read from MH i2c: E2 [01:10:30]MH_I2C_Read... [01:10:30]Read from MH i2c: E2 17 00 [01:10:30]MH_I2C_Read... [01:10:30]Read from MH i2c: E2 17 00 0B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 DE [01:10:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [01:10:30]wFMCommunicate OK [01:10:30]requested_item fd.num is exist - process it [01:10:30]SAM_PROTO_GetFieldsCounters [01:10:30]wFMCommunicate request_size=4 [01:10:30]MH_SAM_APDU [01:10:30]CAPDU: 80 13 00 00 [01:10:30]Write to MH i2c: E2 08 00 0C 05 80 13 00 00 00 00 00 00 8D [01:10:30]Write i2c OK [01:10:30]MH_I2C_Read... [01:10:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:10:31]Read from MH i2c: E2 [01:10:31]MH_I2C_Read... [01:10:31]Read from MH i2c: E2 62 00 [01:10:31]MH_I2C_Read... [01:10:31]Read from MH i2c: E2 62 00 0C 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 3D 93 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [01:10:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 3D 93 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:10:31]wFMCommunicate OK [01:10:31]SAM_PROTO_GetFieldsCounters done [01:10:31]requested_item shift.num is exist - process it [01:10:31]requested_item shift.opened is exist - process it [01:10:31]req_shift_opened [01:10:31]FM_GetShiftState [01:10:31]SAM_PROTO_GetShiftState [01:10:31]wFMCommunicate request_size=4 [01:10:31]MH_SAM_APDU [01:10:31]CAPDU: 80 13 01 00 [01:10:31]Write to MH i2c: E2 08 00 0D 05 80 13 01 00 00 00 00 00 8F [01:10:31]Write i2c OK [01:10:31]MH_I2C_Read... [01:10:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:10:31]Read from MH i2c: E2 [01:10:31]MH_I2C_Read... [01:10:31]Read from MH i2c: E2 0E 00 [01:10:31]MH_I2C_Read... [01:10:31]Read from MH i2c: E2 0E 00 0D 05 00 09 00 01 AC F1 BB 66 00 00 00 00 90 00 59 [01:10:31]RAPDU: 09 00 01 AC F1 BB 66 00 00 00 00 90 00 [01:10:31]wFMCommunicate OK [01:10:31]SAM_PROTO_GetShiftState done [01:10:31]FM_GetShiftState done [01:10:31]req_shift_opened done [01:10:31]requested_item shift.open_date is exist - process it [01:10:31]req_shift_open_date [01:10:31]req_shift_open_date done [01:10:31]produce_requested_data done [01:10:31]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103229,"shift.num":465,"shift.opened":1,"shift.open_date":1723593132} [01:10:31]process_action_free close_receipt [01:10:31]json_value_free [01:10:31]json_value_free done [01:10:31]process_json_proto returns [01:10:31]Send response to host [01:10:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103229,"shift.num":465,"shift.opened":1,"shift.open_date":1723593132}}} [01:10:31]free response buf [01:10:31]execute_script done [01:10:31]execute_script returns [01:10:31]free content buf [01:10:31]Sock 9.Close socket [01:10:31]Sock 9.Thread stoped [01:10:33]OFD Sender: No OFD packet to send [01:10:38]OFD Sender: No OFD packet to send [01:10:43]OFD Sender: No OFD packet to send [01:10:48]OFD Sender: No OFD packet to send [01:10:53]OFD Sender: No OFD packet to send [01:10:58]OFD Sender: No OFD packet to send [01:11:03]OFD Sender: No OFD packet to send [01:11:08]OFD Sender: No OFD packet to send [01:11:13]OFD Sender: No OFD packet to send [01:11:18]OFD Sender: No OFD packet to send [01:11:23]OFD Sender: No OFD packet to send [01:11:28]OFD Sender: No OFD packet to send [01:11:33]OFD Sender: No OFD packet to send [01:11:38]OFD Sender: No OFD packet to send [01:11:43]OFD Sender: No OFD packet to send [01:11:48]OFD Sender: No OFD packet to send [01:11:53]OFD Sender: No OFD packet to send [01:11:58]OFD Sender: No OFD packet to send [01:12:03]OFD Sender: No OFD packet to send [01:12:08]OFD Sender: No OFD packet to send [01:12:13]OFD Sender: No OFD packet to send [01:12:18]OFD Sender: No OFD packet to send [01:12:23]OFD Sender: No OFD packet to send [01:12:28]OFD Sender: No OFD packet to send [01:12:33]OFD Sender: No OFD packet to send [01:12:38]OFD Sender: No OFD packet to send [01:12:43]OFD Sender: No OFD packet to send [01:12:48]OFD Sender: No OFD packet to send [01:12:53]OFD Sender: No OFD packet to send [01:12:58]OFD Sender: No OFD packet to send [01:13:03]OFD Sender: No OFD packet to send [01:13:08]OFD Sender: No OFD packet to send [01:13:13]OFD Sender: No OFD packet to send [01:13:18]OFD Sender: No OFD packet to send [01:13:23]OFD Sender: No OFD packet to send [01:13:28]OFD Sender: No OFD packet to send [01:13:33]OFD Sender: No OFD packet to send [01:13:38]OFD Sender: No OFD packet to send [01:13:43]OFD Sender: No OFD packet to send [01:13:48]OFD Sender: No OFD packet to send [01:13:53]OFD Sender: No OFD packet to send [01:13:58]OFD Sender: No OFD packet to send [01:14:03]OFD Sender: No OFD packet to send [01:14:08]OFD Sender: No OFD packet to send [01:14:13]OFD Sender: No OFD packet to send [01:14:18]OFD Sender: No OFD packet to send [01:14:23]OFD Sender: No OFD packet to send [01:14:28]OFD Sender: No OFD packet to send [01:14:33]OFD Sender: No OFD packet to send [01:14:38]OFD Sender: No OFD packet to send [01:14:43]OFD Sender: No OFD packet to send [01:14:48]OFD Sender: No OFD packet to send [01:14:53]OFD Sender: No OFD packet to send [01:14:58]OFD Sender: No OFD packet to send [01:15:03]OFD Sender: No OFD packet to send [01:15:08]OFD Sender: No OFD packet to send [01:15:13]OFD Sender: No OFD packet to send [01:15:18]OFD Sender: No OFD packet to send [01:15:23]OFD Sender: No OFD packet to send [01:15:28]OFD Sender: No OFD packet to send [01:15:33]OFD Sender: No OFD packet to send [01:15:38]OFD Sender: No OFD packet to send [01:15:43]OFD Sender: No OFD packet to send [01:15:48]OFD Sender: No OFD packet to send [01:15:53]OFD Sender: No OFD packet to send [01:15:58]OFD Sender: No OFD packet to send [01:16:03]OFD Sender: No OFD packet to send [01:16:08]OFD Sender: No OFD packet to send [01:16:13]OFD Sender: No OFD packet to send [01:16:18]OFD Sender: No OFD packet to send [01:16:23]OFD Sender: No OFD packet to send [01:16:28]OFD Sender: No OFD packet to send [01:16:33]OFD Sender: No OFD packet to send [01:16:38]OFD Sender: No OFD packet to send [01:16:43]OFD Sender: No OFD packet to send [01:16:48]OFD Sender: No OFD packet to send [01:16:53]OFD Sender: No OFD packet to send [01:16:58]OFD Sender: No OFD packet to send [01:17:03]OFD Sender: No OFD packet to send [01:17:08]OFD Sender: No OFD packet to send [01:17:13]OFD Sender: No OFD packet to send [01:17:18]OFD Sender: No OFD packet to send [01:17:23]OFD Sender: No OFD packet to send [01:17:28]OFD Sender: No OFD packet to send [01:17:33]OFD Sender: No OFD packet to send [01:17:38]OFD Sender: No OFD packet to send [01:17:43]OFD Sender: No OFD packet to send [01:17:48]OFD Sender: No OFD packet to send [01:17:53]OFD Sender: No OFD packet to send [01:17:58]OFD Sender: No OFD packet to send [01:18:03]OFD Sender: No OFD packet to send [01:18:08]OFD Sender: No OFD packet to send [01:18:13]OFD Sender: No OFD packet to send [01:18:18]OFD Sender: No OFD packet to send [01:18:23]OFD Sender: No OFD packet to send [01:18:28]OFD Sender: No OFD packet to send [01:18:33]OFD Sender: No OFD packet to send [01:18:38]OFD Sender: No OFD packet to send [01:18:43]OFD Sender: No OFD packet to send [01:18:48]OFD Sender: No OFD packet to send [01:18:53]OFD Sender: No OFD packet to send [01:18:58]OFD Sender: No OFD packet to send [01:19:03]OFD Sender: No OFD packet to send [01:19:08]OFD Sender: No OFD packet to send [01:19:13]OFD Sender: No OFD packet to send [01:19:18]OFD Sender: No OFD packet to send [01:19:23]OFD Sender: No OFD packet to send [01:19:28]OFD Sender: No OFD packet to send [01:19:33]OFD Sender: No OFD packet to send [01:19:38]OFD Sender: No OFD packet to send [01:19:43]OFD Sender: No OFD packet to send [01:19:48]OFD Sender: No OFD packet to send [01:19:53]OFD Sender: No OFD packet to send [01:19:58]OFD Sender: No OFD packet to send [01:20:03]OFD Sender: No OFD packet to send [01:20:09]OFD Sender: No OFD packet to send [01:20:14]OFD Sender: No OFD packet to send [01:20:19]OFD Sender: No OFD packet to send [01:20:24]OFD Sender: No OFD packet to send [01:20:29]OFD Sender: No OFD packet to send [01:20:34]OFD Sender: No OFD packet to send [01:20:39]OFD Sender: No OFD packet to send [01:20:44]OFD Sender: No OFD packet to send [01:20:49]OFD Sender: No OFD packet to send [01:20:54]OFD Sender: No OFD packet to send [01:20:59]OFD Sender: No OFD packet to send [01:21:04]OFD Sender: No OFD packet to send [01:21:09]OFD Sender: No OFD packet to send [01:21:14]OFD Sender: No OFD packet to send [01:21:19]OFD Sender: No OFD packet to send [01:21:24]OFD Sender: No OFD packet to send [01:21:29]OFD Sender: No OFD packet to send [01:21:34]OFD Sender: No OFD packet to send [01:21:39]OFD Sender: No OFD packet to send [01:21:44]OFD Sender: No OFD packet to send [01:21:49]OFD Sender: No OFD packet to send [01:21:54]OFD Sender: No OFD packet to send [01:21:59]OFD Sender: No OFD packet to send [01:22:04]OFD Sender: No OFD packet to send [01:22:09]OFD Sender: No OFD packet to send [01:22:14]OFD Sender: No OFD packet to send [01:22:19]OFD Sender: No OFD packet to send [01:22:24]OFD Sender: No OFD packet to send [01:22:29]OFD Sender: No OFD packet to send [01:22:34]OFD Sender: No OFD packet to send [01:22:39]OFD Sender: No OFD packet to send [01:22:44]OFD Sender: No OFD packet to send [01:22:49]OFD Sender: No OFD packet to send [01:22:51]accept exits with 7 [01:22:51]New connection [01:22:51]New thread 3067342180 created [01:22:51]Thread 3067485540 joined [01:22:51]Waiting for new connection... [01:22:51] Sock 7.Parse request [01:22:51]Sock 7.Check first char [01:22:51]Sock 7.First char is OK [01:22:51]request: POST /json_proto HTTP/1.0 [01:22:51]Method: POST [01:22:51]URL: /json_proto [01:22:51]Method is POST - this is cgi request [01:22:51]url: /json_proto [01:22:51]query_string will be loaded in cgi processing [01:22:51]execute_cgi json_proto POST (null) [01:22:51]execute_cgi path=json_proto method=POST [01:22:51]POST find Content-Length [01:22:51]Host: 172.17.58.3:8080 [01:22:51]Content-Length: 676 [01:22:51]Content-Type: application/json [01:22:51] [01:22:51]POST finish read [01:22:51]Found Content-Length = 676 [01:22:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160853", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:22:51]execute_script... [01:22:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160853", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:22:51]POST & json_proto [01:22:51]process_json_proto [01:22:51]json parsed OK: [01:22:51]protocol is kg_v1.0 [01:22:51]action value=close_receipt [01:22:51]process_action close_receipt [01:22:51]cmd_close_receipt [01:22:51]MH_GetDate [01:22:51]Write to MH i2c: F0 00 00 0E 05 02 [01:22:51]Write i2c OK [01:22:51]MH_I2C_Read... [01:22:51]Read from MH i2c: F0 [01:22:51]MH_I2C_Read... [01:22:51]Read from MH i2c: F0 09 00 [01:22:51]MH_I2C_Read... [01:22:51]Read from MH i2c: F0 09 00 0E 05 00 EC 06 BC 66 DC E4 6D 64 B0 [01:22:51]GetLastDocTimeStamp 1723597826 [01:22:51]current date 1723598572 [01:22:51]FM_GetShiftState [01:22:51]SAM_PROTO_GetShiftState [01:22:51]wFMCommunicate request_size=4 [01:22:51]MH_SAM_APDU [01:22:51]CAPDU: 80 13 01 00 [01:22:51]Write to MH i2c: E2 08 00 0F 05 80 13 01 00 00 00 00 00 91 [01:22:51]Write i2c OK [01:22:51]MH_I2C_Read... [01:22:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:22:51]Read from MH i2c: E2 [01:22:51]MH_I2C_Read... [01:22:51]Read from MH i2c: E2 0E 00 [01:22:51]MH_I2C_Read... [01:22:51]Read from MH i2c: E2 0E 00 0F 05 00 09 00 01 AC F1 BB 66 00 00 00 00 90 00 5B [01:22:51]RAPDU: 09 00 01 AC F1 BB 66 00 00 00 00 90 00 [01:22:51]wFMCommunicate OK [01:22:51]SAM_PROTO_GetShiftState done [01:22:51]FM_GetShiftState done [01:22:51]opened in 1723593132 [01:22:51]opened+sec_in_day 1723679532 [01:22:51]quantity*price = 50018 [01:22:51]sum+1 = 50019 [01:22:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 9 14.08.2024 01:22 Смена: 465 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103230 ФПД: 27144327109201 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240814T012252&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103230&fm=27144327109201&tin=02508201610067®Number=0000000000092718&sum=50000 [01:22:52]StoreToDocumentArchive [01:22:52]shift 465 fd 103230 [01:22:52]save to /storage/0465/doc_00103230 [01:22:52]save last doc name /storage/0465/doc_00103230 to /storage/kkm_last_doc_name [01:22:52]save OK [01:22:52]Clear old archive folders... [01:22:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:22:52]tlvbuf is 011CCF60 [01:22:52]SAM_PROTO_ClearQueue [01:22:52]wFMCommunicate request_size=4 [01:22:52]MH_SAM_APDU [01:22:52]CAPDU: 80 09 00 00 [01:22:52]Write to MH i2c: E2 08 00 1C 05 80 09 00 00 00 00 00 00 93 [01:22:52]Write i2c OK [01:22:52]MH_I2C_Read... [01:22:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:22:52]Read from MH i2c: E2 [01:22:52]MH_I2C_Read... [01:22:52]Read from MH i2c: E2 03 00 [01:22:52]MH_I2C_Read... [01:22:52]Read from MH i2c: E2 03 00 1C 05 00 90 00 95 [01:22:52]RAPDU: 90 00 [01:22:52]wFMCommunicate OK [01:22:52]SAM_PROTO_ClearQueue done [01:22:52]KKMCreateOFDPacket [01:22:52]OFDProtocolAddRootSTLVToBuf [01:22:52]FM_MakeSignedData [01:22:52]FM_MakeSignedData [01:22:52]SAM_PROTO_SignData [01:22:52]wFMCommunicate request_size=4 [01:22:52]MH_SAM_APDU [01:22:52]CAPDU: 80 0D 01 02 [01:22:52]Write to MH i2c: E2 08 00 1D 05 80 0D 01 02 00 00 00 00 9B [01:22:52]Write i2c OK [01:22:52]MH_I2C_Read... [01:22:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:22:52]Read from MH i2c: E2 [01:22:52]MH_I2C_Read... [01:22:52]Read from MH i2c: E2 03 00 [01:22:52]MH_I2C_Read... [01:22:52]Read from MH i2c: E2 03 00 1D 05 00 90 00 96 [01:22:52]RAPDU: 90 00 [01:22:52]wFMCommunicate OK [01:22:52]wFMCommunicate request_size=255 [01:22:52]MH_SAM_APDU [01:22:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 EC 06 BC 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 3E 93 01 00 35 04 06 00 18 [01:22:52]Write to MH i2c: E2 02 01 1E 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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 EC 06 BC 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 3E 93 01 00 35 04 06 00 18 00 00 F6 [01:22:52]Write i2c OK [01:22:52]MH_I2C_Read... [01:22:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:22:53]Read from MH i2c: E2 [01:22:53]MH_I2C_Read... [01:22:53]Read from MH i2c: E2 03 00 [01:22:53]MH_I2C_Read... [01:22:53]Read from MH i2c: E2 03 00 1E 05 00 90 00 97 [01:22:53]RAPDU: 90 00 [01:22:53]wFMCommunicate OK [01:22:53]wFMCommunicate request_size=10 [01:22:53]MH_SAM_APDU [01:22:53]CAPDU: 80 0D 02 02 05 B0 07 F9 9A 51 [01:22:53]Write to MH i2c: E2 0D 00 1F 05 80 0D 02 02 05 00 B0 07 F9 9A 51 00 00 43 [01:22:53]Write i2c OK [01:22:53]MH_I2C_Read... [01:22:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:22:53]Read from MH i2c: E2 [01:22:53]MH_I2C_Read... [01:22:53]Read from MH i2c: E2 03 00 [01:22:53]MH_I2C_Read... [01:22:53]Read from MH i2c: E2 03 00 1F 05 00 90 00 98 [01:22:53]RAPDU: 90 00 [01:22:53]wFMCommunicate OK [01:22:53]wFMCommunicate request_size=4 [01:22:53]MH_SAM_APDU [01:22:53]CAPDU: 80 0D 03 02 [01:22:53]Write to MH i2c: E2 08 00 20 05 80 0D 03 02 00 00 00 00 A0 [01:22:53]Write i2c OK [01:22:53]MH_I2C_Read... [01:22:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:22:53]Read from MH i2c: E2 [01:22:53]MH_I2C_Read... [01:22:53]Read from MH i2c: E2 0B 00 [01:22:53]MH_I2C_Read... [01:22:53]Read from MH i2c: E2 0B 00 20 05 00 67 DB 96 5D 86 6D 93 27 90 00 83 [01:22:53]RAPDU: 67 DB 96 5D 86 6D 93 27 90 00 [01:22:53]wFMCommunicate OK [01:22:53]SAM_PROTO_SignData done [01:22:53]FM_MakeSignedData done [01:22:53]CreateOFDProtocolMessage [01:22:53]wFMCommunicate request_size=4 [01:22:53]MH_SAM_APDU [01:22:53]CAPDU: 80 11 00 00 [01:22:53]Write to MH i2c: E2 08 00 21 05 80 11 00 00 00 00 00 00 A0 [01:22:53]Write i2c OK [01:22:53]MH_I2C_Read... [01:22:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:22:53]Read from MH i2c: E2 [01:22:53]MH_I2C_Read... [01:22:53]Read from MH i2c: E2 17 00 [01:22:53]MH_I2C_Read... [01:22:53]Read from MH i2c: E2 17 00 21 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 F4 [01:22:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [01:22:53]wFMCommunicate OK [01:22:53]CreateOFDProtocolMessage done [01:22:53]OFDSenderStorePacket 103230 [01:22:53]StoreOFDPacket docnum=103230 [01:22:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 E6 D2 07 01 DF 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 EC 06 BC 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 3E 93 01 00 35 04 06 00 18 B0 07 F9 9A 51 67 DB 96 5D 86 6D 93 27 [01:22:53]CheckFolder [01:22:53]dirname=/storage/ofd_packets [01:22:53]CheckFolder done [01:22:53]ProducePacketName [01:22:53]name=ofd_packets/00103230 [01:22:53]NVStorageSaveData ofd_packets/00103230 [01:22:53]File name is /storage/ofd_packets/00103230 [01:22:53]Write 301 bytes [01:22:53]NVStorageSaveData done [01:22:53]OFDSenderStorePacket done [01:22:53]KKMCreateOFDPacket done [01:22:53]NVStorageSaveData kkm_last_timestamp [01:22:53]File name is /storage/kkm_last_timestamp [01:22:53]Write 4 bytes [01:22:53]NVStorageSaveData done [01:22:53]ExternCall_PrintAddStr [01:22:53]wPrintStart [01:22:53]Write to MH i2c: 01 00 00 22 05 27 [01:22:53]Write i2c OK [01:22:53]MH_I2C_Read... [01:22:53]Read from MH i2c: 01 [01:22:53]MH_I2C_Read... [01:22:53]Read from MH i2c: 01 07 00 [01:22:53]MH_I2C_Read... [01:22:53]Read from MH i2c: 01 07 00 22 05 00 00 00 00 00 FF 0F 3C [01:22:53]RasterBufferAndPrint [01:22:53]line Счет N : (1)160853 [01:22:53]line ИНН: 02508201610067 [01:22:53]line Контрольно-Кассовый Чек [01:22:53]line ПРОДАЖА [01:22:53]line ТРК (МРК, ГНК) : 3 [01:22:53]line Товар: 2710124130 [01:22:53]line Аи-92-К-5 [01:22:53]line 7.590 * 65.90 [01:22:53]line = 500.18 [01:22:53]line НДС 12% НСП 1% [01:22:53]line > о реализуемом товаре [01:22:53]line ОКРУГЛЕНИЕ: -0.18 [01:22:53]line ИТОГО: 500.00 [01:22:53]line Внесено: 500.00 [01:22:53]line СДАЧА: 0.00 [01:22:53]line НСП 1% : 4.43 [01:22:53]line НДС 12% : 53.12 [01:22:53]line Наличными: 500.00 [01:22:53]line Безнал.: 0.00 [01:22:53]line Место: АЗС № 38 "Партнер Нефть" [01:22:53]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [01:22:53]line СНО: Общий режим [01:22:53]line Чек 9 14.08.2024 01:22 [01:22:53]line Смена: 465 ФФД: 1.0 [01:22:53]line ЗНМ: 0300000126 [01:22:53]line РНМ: 0000000000092718 [01:22:53]line Версия ККМ: 001 [01:22:53]line ФМ: 0000000000875058 [01:22:53]line ФД: 103230 [01:22:53]line ФПД: 27144327109201 [01:22:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240814T012252&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103230&fm=27144327109201&tin=02508201610067®Number=0000000000092718&sum=50000 [01:22:53]OFD Sender: Processing packet 103230 [packets to send 69, broken 68] [01:22:53]ProducePacketName [01:22:53]name=ofd_packets/00103230 [01:22:53]OFD Sender: To server: pG, [01:22:53]CommunicateWithHost lk.salyk.kg:30040 [01:22:53]ConnectInit lk.salyk.kg [01:22:53]written 0, free lines is 4095 [01:22:53]Connected sock=10 [01:22:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 E6 D2 07 01 DF 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 EC 06 BC 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 3E 93 01 00 35 04 06 00 18 B0 07 F9 9A 51 67 DB 96 5D 86 6D 93 27 [01:22:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 7B 04 47 00 53 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 35 30 35 38 10 04 04 00 3E 93 01 00 F4 03 04 00 5E AD BB 66 B6 04 01 00 00 DA A8 F9 00 4F 37 FC 67 [01:22:54]CommunicateWithHost err = 0 [01:22:54]CheckOFDResponse [01:22:54]1017 (14) - 77093643461234 [01:22:54]1041 (16) - 0000000000875058 [01:22:54]1040 (4) - 103230 [01:22:54]1012 (4) - 13.08.2024 19:00 [01:22:54]1206 (1) - 0 [01:22:54]OFD Sender: Remove packet 103230 [01:22:54]ProducePacketName [01:22:54]name=ofd_packets/00103230 [01:22:54]NVStorageDeleteData [01:22:54]Write to MH i2c: 01 00 00 4D 05 52 [01:22:54]Write i2c OK [01:22:54]MH_I2C_Read... [01:22:54]Read from MH i2c: 01 [01:22:54]MH_I2C_Read... [01:22:54]Read from MH i2c: 01 07 00 [01:22:54]MH_I2C_Read... [01:22:54]Read from MH i2c: 01 07 00 4D 05 00 00 00 00 00 D1 0C 36 [01:22:54]RasterBufferAndPrint [01:22:54]line [01:22:54]line [01:22:54]line [01:22:54]line [01:22:54]line [01:22:54]written 0, free lines is 3287 [01:22:54]MH_Cut [01:22:54]Write to MH i2c: D1 01 00 54 05 01 2B [01:22:54]Write i2c OK [01:22:54]MH_I2C_Read... [01:22:54]Read from MH i2c: D1 [01:22:54]MH_I2C_Read... [01:22:54]Read from MH i2c: D1 01 00 [01:22:54]MH_I2C_Read... [01:22:54]Read from MH i2c: D1 01 00 54 05 00 2A [01:22:54]Write to MH i2c: 01 00 00 55 05 5A [01:22:54]Write i2c OK [01:22:54]MH_I2C_Read... [01:22:54]OFD Sender: No OFD packet to send [01:22:54]*** Cut start [01:22:54]*** Purtial cut [01:22:54]*** Stage 1: CUTSNS_PIN = 1 [01:22:55]Read from MH i2c: 01 [01:22:55]MH_I2C_Read... [01:22:55]*** Stop cut motor [01:22:55]*** Cut end [01:22:55]Read from MH i2c: 01 07 00 [01:22:55]MH_I2C_Read... [01:22:55]Read from MH i2c: 01 07 00 55 05 00 00 00 00 00 FF 0F 6F [01:22:55]process_action close_receipt done [01:22:55]requested_data is exist [01:22:55]produce_requested_data [01:22:55]requested_item fm.sn is exist - process it [01:22:55]wFMCommunicate request_size=4 [01:22:55]MH_SAM_APDU [01:22:55]CAPDU: 80 11 00 00 [01:22:55]Write to MH i2c: E2 08 00 56 05 80 11 00 00 00 00 00 00 D5 [01:22:55]Write i2c OK [01:22:55]MH_I2C_Read... [01:22:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:22:55]Read from MH i2c: E2 [01:22:55]MH_I2C_Read... [01:22:55]Read from MH i2c: E2 17 00 [01:22:55]MH_I2C_Read... [01:22:55]Read from MH i2c: E2 17 00 56 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 29 [01:22:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [01:22:55]wFMCommunicate OK [01:22:55]requested_item fd.num is exist - process it [01:22:55]SAM_PROTO_GetFieldsCounters [01:22:55]wFMCommunicate request_size=4 [01:22:55]MH_SAM_APDU [01:22:55]CAPDU: 80 13 00 00 [01:22:55]Write to MH i2c: E2 08 00 57 05 80 13 00 00 00 00 00 00 D8 [01:22:55]Write i2c OK [01:22:55]MH_I2C_Read... [01:22:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:22:55]Read from MH i2c: E2 [01:22:55]MH_I2C_Read... [01:22:55]Read from MH i2c: E2 62 00 [01:22:55]MH_I2C_Read... [01:22:55]Read from MH i2c: E2 62 00 57 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 3E 93 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [01:22:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 3E 93 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:22:55]wFMCommunicate OK [01:22:55]SAM_PROTO_GetFieldsCounters done [01:22:55]requested_item shift.num is exist - process it [01:22:55]requested_item shift.opened is exist - process it [01:22:55]req_shift_opened [01:22:55]FM_GetShiftState [01:22:55]SAM_PROTO_GetShiftState [01:22:55]wFMCommunicate request_size=4 [01:22:55]MH_SAM_APDU [01:22:55]CAPDU: 80 13 01 00 [01:22:55]Write to MH i2c: E2 08 00 58 05 80 13 01 00 00 00 00 00 DA [01:22:55]Write i2c OK [01:22:55]MH_I2C_Read... [01:22:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:22:55]Read from MH i2c: E2 [01:22:55]MH_I2C_Read... [01:22:55]Read from MH i2c: E2 0E 00 [01:22:55]MH_I2C_Read... [01:22:55]Read from MH i2c: E2 0E 00 58 05 00 09 00 01 AC F1 BB 66 00 00 00 00 90 00 A4 [01:22:55]RAPDU: 09 00 01 AC F1 BB 66 00 00 00 00 90 00 [01:22:55]wFMCommunicate OK [01:22:55]SAM_PROTO_GetShiftState done [01:22:55]FM_GetShiftState done [01:22:55]req_shift_opened done [01:22:55]requested_item shift.open_date is exist - process it [01:22:55]req_shift_open_date [01:22:55]req_shift_open_date done [01:22:55]produce_requested_data done [01:22:55]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103230,"shift.num":465,"shift.opened":1,"shift.open_date":1723593132} [01:22:55]process_action_free close_receipt [01:22:55]json_value_free [01:22:55]json_value_free done [01:22:55]process_json_proto returns [01:22:55]Send response to host [01:22:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103230,"shift.num":465,"shift.opened":1,"shift.open_date":1723593132}}} [01:22:55]free response buf [01:22:55]execute_script done [01:22:55]execute_script returns [01:22:55]free content buf [01:22:55]Sock 7.Close socket [01:22:55]Sock 7.Thread stoped [01:22:59]OFD Sender: No OFD packet to send [01:23:04]OFD Sender: No OFD packet to send [01:23:09]OFD Sender: No OFD packet to send [01:23:14]OFD Sender: No OFD packet to send [01:23:19]OFD Sender: No OFD packet to send [01:23:24]OFD Sender: No OFD packet to send [01:23:29]OFD Sender: No OFD packet to send [01:23:34]OFD Sender: No OFD packet to send [01:23:39]OFD Sender: No OFD packet to send [01:23:44]OFD Sender: No OFD packet to send [01:23:49]OFD Sender: No OFD packet to send [01:23:54]OFD Sender: No OFD packet to send [01:23:59]OFD Sender: No OFD packet to send [01:24:04]OFD Sender: No OFD packet to send [01:24:09]OFD Sender: No OFD packet to send [01:24:14]OFD Sender: No OFD packet to send [01:24:19]OFD Sender: No OFD packet to send [01:24:24]OFD Sender: No OFD packet to send [01:24:29]OFD Sender: No OFD packet to send [01:24:34]OFD Sender: No OFD packet to send [01:24:39]OFD Sender: No OFD packet to send [01:24:44]OFD Sender: No OFD packet to send [01:24:49]OFD Sender: No OFD packet to send [01:24:54]OFD Sender: No OFD packet to send [01:24:59]OFD Sender: No OFD packet to send [01:25:04]OFD Sender: No OFD packet to send [01:25:09]OFD Sender: No OFD packet to send [01:25:14]OFD Sender: No OFD packet to send [01:25:19]OFD Sender: No OFD packet to send [01:25:24]OFD Sender: No OFD packet to send [01:25:29]OFD Sender: No OFD packet to send [01:25:34]OFD Sender: No OFD packet to send [01:25:39]OFD Sender: No OFD packet to send [01:25:44]accept exits with 9 [01:25:44]New connection [01:25:44]New thread 3067485540 created [01:25:44]Thread 3067342180 joined [01:25:44]Waiting for new connection... [01:25:44] Sock 9.Parse request [01:25:44]Sock 9.Check first char [01:25:44]Sock 9.First char is OK [01:25:44]request: POST /json_proto HTTP/1.0 [01:25:44]Method: POST [01:25:44]URL: /json_proto [01:25:44]Method is POST - this is cgi request [01:25:44]url: /json_proto [01:25:44]query_string will be loaded in cgi processing [01:25:44]execute_cgi json_proto POST (null) [01:25:44]execute_cgi path=json_proto method=POST [01:25:44]POST find Content-Length [01:25:44]Host: 172.17.58.3:8080 [01:25:44]Content-Length: 676 [01:25:44]Content-Type: application/json [01:25:44] [01:25:44]POST finish read [01:25:44]Found Content-Length = 676 [01:25:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:25:44]execute_script... [01:25:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:25:44]POST & json_proto [01:25:44]process_json_proto [01:25:44]json parsed OK: [01:25:44]protocol is kg_v1.0 [01:25:44]action value=close_receipt [01:25:44]process_action close_receipt [01:25:44]cmd_close_receipt [01:25:44]MH_GetDate [01:25:44]Write to MH i2c: F0 00 00 59 05 4D [01:25:44]Write i2c OK [01:25:44]MH_I2C_Read... [01:25:44]Read from MH i2c: F0 [01:25:44]MH_I2C_Read... [01:25:44]Read from MH i2c: F0 09 00 [01:25:44]MH_I2C_Read... [01:25:44]Read from MH i2c: F0 09 00 59 05 00 99 07 BC 66 DC E4 6D 64 A9 [01:25:44]GetLastDocTimeStamp 1723598572 [01:25:44]current date 1723598745 [01:25:44]FM_GetShiftState [01:25:44]SAM_PROTO_GetShiftState [01:25:44]wFMCommunicate request_size=4 [01:25:44]MH_SAM_APDU [01:25:44]CAPDU: 80 13 01 00 [01:25:44]Write to MH i2c: E2 08 00 5A 05 80 13 01 00 00 00 00 00 DC [01:25:44]Write i2c OK [01:25:44]MH_I2C_Read... [01:25:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:25:44]Read from MH i2c: E2 [01:25:44]MH_I2C_Read... [01:25:44]Read from MH i2c: E2 0E 00 [01:25:44]MH_I2C_Read... [01:25:44]Read from MH i2c: E2 0E 00 5A 05 00 09 00 01 AC F1 BB 66 00 00 00 00 90 00 A6 [01:25:44]RAPDU: 09 00 01 AC F1 BB 66 00 00 00 00 90 00 [01:25:44]wFMCommunicate OK [01:25:44]SAM_PROTO_GetShiftState done [01:25:44]FM_GetShiftState done [01:25:44]opened in 1723593132 [01:25:44]opened+sec_in_day 1723679532 [01:25:44]quantity*price = 50018 [01:25:44]sum+1 = 50019 [01:25:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 10 14.08.2024 01:25 Смена: 465 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103231 ФПД: 168594895644573 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240814T012545&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103231&fm=168594895644573&tin=02508201610067®Number=0000000000092718&sum=50000 [01:25:45]StoreToDocumentArchive [01:25:45]shift 465 fd 103231 [01:25:45]save to /storage/0465/doc_00103231 [01:25:45]save last doc name /storage/0465/doc_00103231 to /storage/kkm_last_doc_name [01:25:45]save OK [01:25:45]Clear old archive folders... [01:25:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:25:45]tlvbuf is B6F5C930 [01:25:45]SAM_PROTO_ClearQueue [01:25:45]wFMCommunicate request_size=4 [01:25:45]MH_SAM_APDU [01:25:45]CAPDU: 80 09 00 00 [01:25:45]Write to MH i2c: E2 08 00 67 05 80 09 00 00 00 00 00 00 DE [01:25:45]Write i2c OK [01:25:45]MH_I2C_Read... [01:25:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:25:45]Read from MH i2c: E2 [01:25:45]MH_I2C_Read... [01:25:45]Read from MH i2c: E2 03 00 [01:25:45]MH_I2C_Read... [01:25:45]Read from MH i2c: E2 03 00 67 05 00 90 00 E0 [01:25:45]RAPDU: 90 00 [01:25:45]wFMCommunicate OK [01:25:45]SAM_PROTO_ClearQueue done [01:25:45]KKMCreateOFDPacket [01:25:45]OFDProtocolAddRootSTLVToBuf [01:25:45]FM_MakeSignedData [01:25:45]FM_MakeSignedData [01:25:45]SAM_PROTO_SignData [01:25:45]wFMCommunicate request_size=4 [01:25:45]MH_SAM_APDU [01:25:45]CAPDU: 80 0D 01 02 [01:25:45]Write to MH i2c: E2 08 00 68 05 80 0D 01 02 00 00 00 00 E6 [01:25:45]Write i2c OK [01:25:45]MH_I2C_Read... [01:25:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:25:45]Read from MH i2c: E2 [01:25:45]MH_I2C_Read... [01:25:45]Read from MH i2c: E2 03 00 [01:25:45]MH_I2C_Read... [01:25:45]Read from MH i2c: E2 03 00 68 05 00 90 00 E1 [01:25:45]RAPDU: 90 00 [01:25:45]wFMCommunicate OK [01:25:45]wFMCommunicate request_size=255 [01:25:45]MH_SAM_APDU [01:25: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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 99 07 BC 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 3F 93 01 00 35 04 06 00 99 [01:25:45]Write to MH i2c: E2 02 01 69 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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 99 07 BC 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 3F 93 01 00 35 04 06 00 99 00 00 72 [01:25:45]Write i2c OK [01:25:45]MH_I2C_Read... [01:25:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:25:45]Read from MH i2c: E2 [01:25:45]MH_I2C_Read... [01:25:45]Read from MH i2c: E2 03 00 [01:25:45]MH_I2C_Read... [01:25:45]Read from MH i2c: E2 03 00 69 05 00 90 00 E2 [01:25:45]RAPDU: 90 00 [01:25:45]wFMCommunicate OK [01:25:45]wFMCommunicate request_size=10 [01:25:45]MH_SAM_APDU [01:25:45]CAPDU: 80 0D 02 02 05 56 0E DD A7 9D [01:25:45]Write to MH i2c: E2 0D 00 6A 05 80 0D 02 02 05 00 56 0E DD A7 9D 00 00 78 [01:25:45]Write i2c OK [01:25:45]MH_I2C_Read... [01:25:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:25:45]Read from MH i2c: E2 [01:25:45]MH_I2C_Read... [01:25:45]Read from MH i2c: E2 03 00 [01:25:45]MH_I2C_Read... [01:25:45]Read from MH i2c: E2 03 00 6A 05 00 90 00 E3 [01:25:45]RAPDU: 90 00 [01:25:45]wFMCommunicate OK [01:25:45]wFMCommunicate request_size=4 [01:25:45]MH_SAM_APDU [01:25:45]CAPDU: 80 0D 03 02 [01:25:45]Write to MH i2c: E2 08 00 6B 05 80 0D 03 02 00 00 00 00 EB [01:25:45]Write i2c OK [01:25:45]MH_I2C_Read... [01:25:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:25:45]Read from MH i2c: E2 [01:25:45]MH_I2C_Read... [01:25:45]Read from MH i2c: E2 0B 00 [01:25:45]MH_I2C_Read... [01:25:45]Read from MH i2c: E2 0B 00 6B 05 00 64 1C EF 71 0D BD F8 34 90 00 C2 [01:25:45]RAPDU: 64 1C EF 71 0D BD F8 34 90 00 [01:25:45]wFMCommunicate OK [01:25:45]SAM_PROTO_SignData done [01:25:45]FM_MakeSignedData done [01:25:45]CreateOFDProtocolMessage [01:25:45]wFMCommunicate request_size=4 [01:25:45]MH_SAM_APDU [01:25:45]CAPDU: 80 11 00 00 [01:25:45]Write to MH i2c: E2 08 00 6C 05 80 11 00 00 00 00 00 00 EB [01:25:45]Write i2c OK [01:25:45]MH_I2C_Read... [01:25:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:25:45]Read from MH i2c: E2 [01:25:45]MH_I2C_Read... [01:25:45]Read from MH i2c: E2 17 00 [01:25:45]MH_I2C_Read... [01:25:45]Read from MH i2c: E2 17 00 6C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 3F [01:25:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [01:25:45]wFMCommunicate OK [01:25:45]CreateOFDProtocolMessage done [01:25:45]OFDSenderStorePacket 103231 [01:25:45]StoreOFDPacket docnum=103231 [01:25:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 BE 64 07 01 6F 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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 99 07 BC 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 3F 93 01 00 35 04 06 00 99 56 0E DD A7 9D 64 1C EF 71 0D BD F8 34 [01:25:45]CheckFolder [01:25:45]dirname=/storage/ofd_packets [01:25:45]CheckFolder done [01:25:45]ProducePacketName [01:25:45]name=ofd_packets/00103231 [01:25:45]NVStorageSaveData ofd_packets/00103231 [01:25:45]File name is /storage/ofd_packets/00103231 [01:25:45]Write 301 bytes [01:25:45]NVStorageSaveData done [01:25:45]OFDSenderStorePacket done [01:25:45]KKMCreateOFDPacket done [01:25:45]NVStorageSaveData kkm_last_timestamp [01:25:45]File name is /storage/kkm_last_timestamp [01:25:45]Write 4 bytes [01:25:45]NVStorageSaveData done [01:25:45]ExternCall_PrintAddStr [01:25:45]wPrintStart [01:25:45]Write to MH i2c: 01 00 00 6D 05 72 [01:25:45]Write i2c OK [01:25:45]MH_I2C_Read... [01:25:45]Read from MH i2c: 01 [01:25:45]MH_I2C_Read... [01:25:45]Read from MH i2c: 01 07 00 [01:25:45]MH_I2C_Read... [01:25:45]Read from MH i2c: 01 07 00 6D 05 00 00 00 00 00 FF 0F 87 [01:25:45]RasterBufferAndPrint [01:25:45]line Счет N : (1)160854 [01:25:45]line ИНН: 02508201610067 [01:25:45]line Контрольно-Кассовый Чек [01:25:45]line ПРОДАЖА [01:25:45]line ТРК (МРК, ГНК) : 3 [01:25:45]line Товар: 2710124130 [01:25:45]line Аи-92-К-5 [01:25:45]line 7.590 * 65.90 [01:25:45]line = 500.18 [01:25:45]line НДС 12% НСП 1% [01:25:45]line > о реализуемом товаре [01:25:45]line ОКРУГЛЕНИЕ: -0.18 [01:25:45]line ИТОГО: 500.00 [01:25:45]line Внесено: 500.00 [01:25:45]line СДАЧА: 0.00 [01:25:45]line НСП 1% : 4.43 [01:25:45]line НДС 12% : 53.12 [01:25:45]line Наличными: 500.00 [01:25:45]line Безнал.: 0.00 [01:25:45]line Место: АЗС № 38 "Партнер Нефть" [01:25:45]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [01:25:45]line СНО: Общий режим [01:25:45]line Чек 10 14.08.2024 01:25 [01:25:45]line Смена: 465 ФФД: 1.0 [01:25:45]line ЗНМ: 0300000126 [01:25:45]line РНМ: 0000000000092718 [01:25:45]line Версия ККМ: 001 [01:25:45]line ФМ: 0000000000875058 [01:25:45]line ФД: 103231 [01:25:46]line ФПД: 168594895644573 [01:25:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240814T012545&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103231&fm=168594895644573&tin=02508201610067®Number=0000000000092718&sum=50000 [01:25:46]OFD Sender: Processing packet 103231 [packets to send 69, broken 68] [01:25:46]ProducePacketName [01:25:46]name=ofd_packets/00103231 [01:25:46]OFD Sender: To server: pG, [01:25:46]CommunicateWithHost lk.salyk.kg:30040 [01:25:46]ConnectInit lk.salyk.kg [01:25:46]written 0, free lines is 4095 [01:25:46]Connected sock=10 [01:25:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 BE 64 07 01 6F 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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 99 07 BC 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 3F 93 01 00 35 04 06 00 99 56 0E DD A7 9D 64 1C EF 71 0D BD F8 34 [01:25:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 DA 44 47 00 45 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 35 30 35 38 10 04 04 00 3F 93 01 00 F4 03 04 00 0A AE BB 66 B6 04 01 00 00 80 B5 2A 06 FD 4A F7 AB [01:25:46]CommunicateWithHost err = 0 [01:25:46]CheckOFDResponse [01:25:46]1017 (14) - 77093643461234 [01:25:46]1041 (16) - 0000000000875058 [01:25:46]1040 (4) - 103231 [01:25:46]1012 (4) - 13.08.2024 19:03 [01:25:46]1206 (1) - 0 [01:25:46]OFD Sender: Remove packet 103231 [01:25:46]ProducePacketName [01:25:46]name=ofd_packets/00103231 [01:25:46]NVStorageDeleteData [01:25:46]Write to MH i2c: 01 00 00 98 05 9D [01:25:46]Write i2c OK [01:25:46]MH_I2C_Read... [01:25:46]Read from MH i2c: 01 [01:25:46]MH_I2C_Read... [01:25:46]Read from MH i2c: 01 07 00 [01:25:46]MH_I2C_Read... [01:25:46]Read from MH i2c: 01 07 00 98 05 00 00 00 00 00 DC 0C 8C [01:25:46]RasterBufferAndPrint [01:25:46]line [01:25:46]line [01:25:46]line [01:25:46]line [01:25:46]line [01:25:46]written 0, free lines is 3296 [01:25:46]MH_Cut [01:25:46]Write to MH i2c: D1 01 00 9F 05 01 76 [01:25:46]Write i2c OK [01:25:46]MH_I2C_Read... [01:25:46]Read from MH i2c: D1 [01:25:46]MH_I2C_Read... [01:25:46]Read from MH i2c: D1 01 00 [01:25:46]MH_I2C_Read... [01:25:46]Read from MH i2c: D1 01 00 9F 05 00 75 [01:25:46]Write to MH i2c: 01 00 00 A0 05 A5 [01:25:46]Write i2c OK [01:25:46]MH_I2C_Read... [01:25:47]OFD Sender: No OFD packet to send [01:25:47]*** Cut start [01:25:47]*** Purtial cut [01:25:47]*** CUTSNS_PIN = 0 [01:25:47]*** Stage 1: CUTSNS_PIN = 1 [01:25:49]Read from MH i2c: 01 [01:25:49]MH_I2C_Read... [01:25:49]*** Stop cut motor [01:25:49]*** Cut end [01:25:49]Read from MH i2c: 01 07 00 [01:25:49]MH_I2C_Read... [01:25:49]Read from MH i2c: 01 07 00 A0 05 00 00 00 00 00 FF 0F BA [01:25:49]process_action close_receipt done [01:25:49]requested_data is exist [01:25:49]produce_requested_data [01:25:49]requested_item fm.sn is exist - process it [01:25:49]wFMCommunicate request_size=4 [01:25:49]MH_SAM_APDU [01:25:49]CAPDU: 80 11 00 00 [01:25:49]Write to MH i2c: E2 08 00 A1 05 80 11 00 00 00 00 00 00 20 [01:25:49]Write i2c OK [01:25:49]MH_I2C_Read... [01:25:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:25:49]Read from MH i2c: E2 [01:25:49]MH_I2C_Read... [01:25:49]Read from MH i2c: E2 17 00 [01:25:49]MH_I2C_Read... [01:25:49]Read from MH i2c: E2 17 00 A1 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 74 [01:25:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [01:25:49]wFMCommunicate OK [01:25:49]requested_item fd.num is exist - process it [01:25:49]SAM_PROTO_GetFieldsCounters [01:25:49]wFMCommunicate request_size=4 [01:25:49]MH_SAM_APDU [01:25:49]CAPDU: 80 13 00 00 [01:25:49]Write to MH i2c: E2 08 00 A2 05 80 13 00 00 00 00 00 00 23 [01:25:49]Write i2c OK [01:25:49]MH_I2C_Read... [01:25:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:25:49]Read from MH i2c: E2 [01:25:49]MH_I2C_Read... [01:25:49]Read from MH i2c: E2 62 00 [01:25:49]MH_I2C_Read... [01:25:49]Read from MH i2c: E2 62 00 A2 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 3F 93 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [01:25:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 3F 93 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:25:49]wFMCommunicate OK [01:25:49]SAM_PROTO_GetFieldsCounters done [01:25:49]requested_item shift.num is exist - process it [01:25:49]requested_item shift.opened is exist - process it [01:25:49]req_shift_opened [01:25:49]FM_GetShiftState [01:25:49]SAM_PROTO_GetShiftState [01:25:49]wFMCommunicate request_size=4 [01:25:49]MH_SAM_APDU [01:25:49]CAPDU: 80 13 01 00 [01:25:49]Write to MH i2c: E2 08 00 A3 05 80 13 01 00 00 00 00 00 25 [01:25:49]Write i2c OK [01:25:49]MH_I2C_Read... [01:25:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:25:49]Read from MH i2c: E2 [01:25:49]MH_I2C_Read... [01:25:49]Read from MH i2c: E2 0E 00 [01:25:49]MH_I2C_Read... [01:25:49]Read from MH i2c: E2 0E 00 A3 05 00 09 00 01 AC F1 BB 66 00 00 00 00 90 00 EF [01:25:49]RAPDU: 09 00 01 AC F1 BB 66 00 00 00 00 90 00 [01:25:49]wFMCommunicate OK [01:25:49]SAM_PROTO_GetShiftState done [01:25:49]FM_GetShiftState done [01:25:49]req_shift_opened done [01:25:49]requested_item shift.open_date is exist - process it [01:25:49]req_shift_open_date [01:25:49]req_shift_open_date done [01:25:49]produce_requested_data done [01:25:49]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103231,"shift.num":465,"shift.opened":1,"shift.open_date":1723593132} [01:25:49]process_action_free close_receipt [01:25:49]json_value_free [01:25:49]json_value_free done [01:25:49]process_json_proto returns [01:25:49]Send response to host [01:25:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103231,"shift.num":465,"shift.opened":1,"shift.open_date":1723593132}}} [01:25:49]free response buf [01:25:49]execute_script done [01:25:49]execute_script returns [01:25:49]free content buf [01:25:49]Sock 9.Close socket [01:25:49]Sock 9.Thread stoped [01:25:52]OFD Sender: No OFD packet to send [01:25:57]OFD Sender: No OFD packet to send [01:26:02]OFD Sender: No OFD packet to send [01:26:07]OFD Sender: No OFD packet to send [01:26:12]OFD Sender: No OFD packet to send [01:26:17]OFD Sender: No OFD packet to send [01:26:22]OFD Sender: No OFD packet to send [01:26:27]OFD Sender: No OFD packet to send [01:26:32]OFD Sender: No OFD packet to send [01:26:37]OFD Sender: No OFD packet to send [01:26:42]OFD Sender: No OFD packet to send [01:26:47]OFD Sender: No OFD packet to send [01:26:52]OFD Sender: No OFD packet to send [01:26:57]OFD Sender: No OFD packet to send [01:27:02]OFD Sender: No OFD packet to send [01:27:07]OFD Sender: No OFD packet to send [01:27:12]OFD Sender: No OFD packet to send [01:27:17]OFD Sender: No OFD packet to send [01:27:22]OFD Sender: No OFD packet to send [01:27:27]OFD Sender: No OFD packet to send [01:27:32]OFD Sender: No OFD packet to send [01:27:37]OFD Sender: No OFD packet to send [01:27:42]OFD Sender: No OFD packet to send [01:27:47]OFD Sender: No OFD packet to send [01:27:52]OFD Sender: No OFD packet to send [01:27:57]OFD Sender: No OFD packet to send [01:28:02]OFD Sender: No OFD packet to send [01:28:07]OFD Sender: No OFD packet to send [01:28:12]OFD Sender: No OFD packet to send [01:28:17]OFD Sender: No OFD packet to send [01:28:22]OFD Sender: No OFD packet to send [01:28:27]OFD Sender: No OFD packet to send [01:28:32]OFD Sender: No OFD packet to send [01:28:37]OFD Sender: No OFD packet to send [01:28:42]OFD Sender: No OFD packet to send [01:28:47]OFD Sender: No OFD packet to send [01:28:52]OFD Sender: No OFD packet to send [01:28:57]OFD Sender: No OFD packet to send [01:29:02]OFD Sender: No OFD packet to send [01:29:07]OFD Sender: No OFD packet to send [01:29:12]OFD Sender: No OFD packet to send [01:29:17]OFD Sender: No OFD packet to send [01:29:22]OFD Sender: No OFD packet to send [01:29:27]OFD Sender: No OFD packet to send [01:29:32]OFD Sender: No OFD packet to send [01:29:37]OFD Sender: No OFD packet to send [01:29:42]OFD Sender: No OFD packet to send [01:29:47]OFD Sender: No OFD packet to send [01:29:52]OFD Sender: No OFD packet to send [01:29:57]OFD Sender: No OFD packet to send [01:30:02]OFD Sender: No OFD packet to send [01:30:07]OFD Sender: No OFD packet to send [01:30:12]OFD Sender: No OFD packet to send [01:30:17]OFD Sender: No OFD packet to send [01:30:22]OFD Sender: No OFD packet to send [01:30:25]accept exits with 7 [01:30:25]New connection [01:30:25]New thread 3067342180 created [01:30:25]Thread 3067485540 joined [01:30:25]Waiting for new connection... [01:30:25] Sock 7.Parse request [01:30:25]Sock 7.Check first char [01:30:25]Sock 7.First char is OK [01:30:25]request: POST /json_proto HTTP/1.0 [01:30:25]Method: POST [01:30:25]URL: /json_proto [01:30:25]Method is POST - this is cgi request [01:30:25]url: /json_proto [01:30:25]query_string will be loaded in cgi processing [01:30:25]execute_cgi json_proto POST (null) [01:30:25]execute_cgi path=json_proto method=POST [01:30:25]POST find Content-Length [01:30:25]Host: 172.17.58.3:8080 [01:30:25]Content-Length: 677 [01:30:25]Content-Type: application/json [01:30:25] [01:30:25]POST finish read [01:30:25]Found Content-Length = 677 [01:30:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 12.140, "sum" : 800.03, "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" ] } } [01:30:25]execute_script... [01:30: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)160855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 12.140, "sum" : 800.03, "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" ] } } [01:30:25]POST & json_proto [01:30:25]process_json_proto [01:30:25]json parsed OK: [01:30:25]protocol is kg_v1.0 [01:30:25]action value=close_receipt [01:30:25]process_action close_receipt [01:30:25]cmd_close_receipt [01:30:25]MH_GetDate [01:30:25]Write to MH i2c: F0 00 00 A4 05 98 [01:30:25]Write i2c OK [01:30:25]MH_I2C_Read... [01:30:25]Read from MH i2c: F0 [01:30:25]MH_I2C_Read... [01:30:25]Read from MH i2c: F0 09 00 [01:30:25]MH_I2C_Read... [01:30:25]Read from MH i2c: F0 09 00 A4 05 00 B2 08 BC 66 DC E4 6D 64 0E [01:30:25]GetLastDocTimeStamp 1723598745 [01:30:25]current date 1723599026 [01:30:25]FM_GetShiftState [01:30:25]SAM_PROTO_GetShiftState [01:30:25]wFMCommunicate request_size=4 [01:30:25]MH_SAM_APDU [01:30:25]CAPDU: 80 13 01 00 [01:30:25]Write to MH i2c: E2 08 00 A5 05 80 13 01 00 00 00 00 00 27 [01:30:25]Write i2c OK [01:30:25]MH_I2C_Read... [01:30:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:30:25]Read from MH i2c: E2 [01:30:25]MH_I2C_Read... [01:30:25]Read from MH i2c: E2 0E 00 [01:30:25]MH_I2C_Read... [01:30:25]Read from MH i2c: E2 0E 00 A5 05 00 09 00 01 AC F1 BB 66 00 00 00 00 90 00 F1 [01:30:25]RAPDU: 09 00 01 AC F1 BB 66 00 00 00 00 90 00 [01:30:25]wFMCommunicate OK [01:30:25]SAM_PROTO_GetShiftState done [01:30:25]FM_GetShiftState done [01:30:25]opened in 1723593132 [01:30:25]opened+sec_in_day 1723679532 [01:30:25]quantity*price = 80002 [01:30:25]sum+1 = 80004 [01:30:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 11 14.08.2024 01:30 Смена: 465 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103232 ФПД: 201021775665972 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240814T013026&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103232&fm=201021775665972&tin=02508201610067®Number=0000000000092718&sum=80000 [01:30:26]StoreToDocumentArchive [01:30:26]shift 465 fd 103232 [01:30:26]save to /storage/0465/doc_00103232 [01:30:26]save last doc name /storage/0465/doc_00103232 to /storage/kkm_last_doc_name [01:30:26]save OK [01:30:26]Clear old archive folders... [01:30:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:30:26]tlvbuf is 011E4BC0 [01:30:26]SAM_PROTO_ClearQueue [01:30:26]wFMCommunicate request_size=4 [01:30:26]MH_SAM_APDU [01:30:26]CAPDU: 80 09 00 00 [01:30:26]Write to MH i2c: E2 08 00 B2 05 80 09 00 00 00 00 00 00 29 [01:30:26]Write i2c OK [01:30:26]MH_I2C_Read... [01:30:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:30:26]Read from MH i2c: E2 [01:30:26]MH_I2C_Read... [01:30:26]Read from MH i2c: E2 03 00 [01:30:26]MH_I2C_Read... [01:30:26]Read from MH i2c: E2 03 00 B2 05 00 90 00 2B [01:30:26]RAPDU: 90 00 [01:30:26]wFMCommunicate OK [01:30:26]SAM_PROTO_ClearQueue done [01:30:26]KKMCreateOFDPacket [01:30:26]OFDProtocolAddRootSTLVToBuf [01:30:26]FM_MakeSignedData [01:30:26]FM_MakeSignedData [01:30:26]SAM_PROTO_SignData [01:30:26]wFMCommunicate request_size=4 [01:30:26]MH_SAM_APDU [01:30:26]CAPDU: 80 0D 01 02 [01:30:26]Write to MH i2c: E2 08 00 B3 05 80 0D 01 02 00 00 00 00 31 [01:30:26]Write i2c OK [01:30:26]MH_I2C_Read... [01:30:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:30:26]Read from MH i2c: E2 [01:30:26]MH_I2C_Read... [01:30:26]Read from MH i2c: E2 03 00 [01:30:26]MH_I2C_Read... [01:30:26]Read from MH i2c: E2 03 00 B3 05 00 90 00 2C [01:30:26]RAPDU: 90 00 [01:30:26]wFMCommunicate OK [01:30:26]wFMCommunicate request_size=255 [01:30:26]MH_SAM_APDU [01:30:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 2F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 B2 08 BC 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 40 93 01 00 35 04 06 00 B6 [01:30:26]Write to MH i2c: E2 02 01 B4 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 6C 2F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 B2 08 BC 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 40 93 01 00 35 04 06 00 B6 00 00 38 [01:30:26]Write i2c OK [01:30:26]MH_I2C_Read... [01:30:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:30:27]Read from MH i2c: E2 [01:30:27]MH_I2C_Read... [01:30:27]Read from MH i2c: E2 03 00 [01:30:27]MH_I2C_Read... [01:30:27]Read from MH i2c: E2 03 00 B4 05 00 90 00 2D [01:30:27]RAPDU: 90 00 [01:30:27]wFMCommunicate OK [01:30:27]wFMCommunicate request_size=10 [01:30:27]MH_SAM_APDU [01:30:27]CAPDU: 80 0D 02 02 05 D4 07 87 DB 34 [01:30:27]Write to MH i2c: E2 0D 00 B5 05 80 0D 02 02 05 00 D4 07 87 DB 34 00 00 AF [01:30:27]Write i2c OK [01:30:27]MH_I2C_Read... [01:30:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:30:27]Read from MH i2c: E2 [01:30:27]MH_I2C_Read... [01:30:27]Read from MH i2c: E2 03 00 [01:30:27]MH_I2C_Read... [01:30:27]Read from MH i2c: E2 03 00 B5 05 00 90 00 2E [01:30:27]RAPDU: 90 00 [01:30:27]wFMCommunicate OK [01:30:27]wFMCommunicate request_size=4 [01:30:27]MH_SAM_APDU [01:30:27]CAPDU: 80 0D 03 02 [01:30:27]Write to MH i2c: E2 08 00 B6 05 80 0D 03 02 00 00 00 00 36 [01:30:27]Write i2c OK [01:30:27]MH_I2C_Read... [01:30:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:30:27]Read from MH i2c: E2 [01:30:27]MH_I2C_Read... [01:30:27]Read from MH i2c: E2 0B 00 [01:30:27]MH_I2C_Read... [01:30:27]Read from MH i2c: E2 0B 00 B6 05 00 7A 15 50 D9 8F EB 77 73 90 00 53 [01:30:27]RAPDU: 7A 15 50 D9 8F EB 77 73 90 00 [01:30:27]wFMCommunicate OK [01:30:27]SAM_PROTO_SignData done [01:30:27]FM_MakeSignedData done [01:30:27]CreateOFDProtocolMessage [01:30:27]wFMCommunicate request_size=4 [01:30:27]MH_SAM_APDU [01:30:27]CAPDU: 80 11 00 00 [01:30:27]Write to MH i2c: E2 08 00 B7 05 80 11 00 00 00 00 00 00 36 [01:30:27]Write i2c OK [01:30:27]MH_I2C_Read... [01:30:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:30:27]Read from MH i2c: E2 [01:30:27]MH_I2C_Read... [01:30:27]Read from MH i2c: E2 17 00 [01:30:27]MH_I2C_Read... [01:30:27]Read from MH i2c: E2 17 00 B7 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 8A [01:30:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [01:30:27]wFMCommunicate OK [01:30:27]CreateOFDProtocolMessage done [01:30:27]OFDSenderStorePacket 103232 [01:30:27]StoreOFDPacket docnum=103232 [01:30:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 C1 EE 07 01 C8 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 6C 2F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 B2 08 BC 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 40 93 01 00 35 04 06 00 B6 D4 07 87 DB 34 7A 15 50 D9 8F EB 77 73 [01:30:27]CheckFolder [01:30:27]dirname=/storage/ofd_packets [01:30:27]CheckFolder done [01:30:27]ProducePacketName [01:30:27]name=ofd_packets/00103232 [01:30:27]NVStorageSaveData ofd_packets/00103232 [01:30:27]File name is /storage/ofd_packets/00103232 [01:30:27]Write 301 bytes [01:30:27]NVStorageSaveData done [01:30:27]OFDSenderStorePacket done [01:30:27]KKMCreateOFDPacket done [01:30:27]NVStorageSaveData kkm_last_timestamp [01:30:27]File name is /storage/kkm_last_timestamp [01:30:27]Write 4 bytes [01:30:27]NVStorageSaveData done [01:30:27]ExternCall_PrintAddStr [01:30:27]wPrintStart [01:30:27]Write to MH i2c: 01 00 00 B8 05 BD [01:30:27]Write i2c OK [01:30:27]MH_I2C_Read... [01:30:27]Read from MH i2c: 01 [01:30:27]MH_I2C_Read... [01:30:27]Read from MH i2c: 01 07 00 [01:30:27]MH_I2C_Read... [01:30:27]Read from MH i2c: 01 07 00 B8 05 00 00 00 00 00 FF 0F D2 [01:30:27]RasterBufferAndPrint [01:30:27]line Счет N : (1)160855 [01:30:27]line ИНН: 02508201610067 [01:30:27]line Контрольно-Кассовый Чек [01:30:27]line ПРОДАЖА [01:30:27]line ТРК (МРК, ГНК) : 3 [01:30:27]line Товар: 2710124130 [01:30:27]line Аи-92-К-5 [01:30:27]line 12.140 * 65.90 [01:30:27]line = 800.03 [01:30:27]line НДС 12% НСП 1% [01:30:27]line > о реализуемом товаре [01:30:27]line ОКРУГЛЕНИЕ: -0.03 [01:30:27]line ИТОГО: 800.00 [01:30:27]line Внесено: 800.00 [01:30:27]line СДАЧА: 0.00 [01:30:27]line НСП 1% : 7.08 [01:30:27]line НДС 12% : 84.96 [01:30:27]line Наличными: 800.00 [01:30:27]line Безнал.: 0.00 [01:30:27]line Место: АЗС № 38 "Партнер Нефть" [01:30:27]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [01:30:27]line СНО: Общий режим [01:30:27]line Чек 11 14.08.2024 01:30 [01:30:27]line Смена: 465 ФФД: 1.0 [01:30:27]line ЗНМ: 0300000126 [01:30:27]line РНМ: 0000000000092718 [01:30:27]line Версия ККМ: 001 [01:30:27]line ФМ: 0000000000875058 [01:30:27]line ФД: 103232 [01:30:27]line ФПД: 201021775665972 [01:30:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240814T013026&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103232&fm=201021775665972&tin=02508201610067®Number=0000000000092718&sum=80000 [01:30:27]OFD Sender: Processing packet 103232 [packets to send 69, broken 68] [01:30:27]ProducePacketName [01:30:27]name=ofd_packets/00103232 [01:30:27]OFD Sender: To server: pG, [01:30:27]CommunicateWithHost lk.salyk.kg:30040 [01:30:27]ConnectInit lk.salyk.kg [01:30:27]written 0, free lines is 4095 [01:30:27]Connected sock=10 [01:30:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 C1 EE 07 01 C8 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 6C 2F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 B2 08 BC 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 40 93 01 00 35 04 06 00 B6 D4 07 87 DB 34 7A 15 50 D9 8F EB 77 73 [01:30:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 19 77 47 00 44 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 35 30 35 38 10 04 04 00 40 93 01 00 F4 03 04 00 24 AF BB 66 B6 04 01 00 00 C5 F7 31 EF 61 91 AD A8 [01:30:27]CommunicateWithHost err = 0 [01:30:27]CheckOFDResponse [01:30:27]1017 (14) - 77093643461234 [01:30:27]1041 (16) - 0000000000875058 [01:30:27]1040 (4) - 103232 [01:30:27]1012 (4) - 13.08.2024 19:08 [01:30:27]1206 (1) - 0 [01:30:27]OFD Sender: Remove packet 103232 [01:30:27]ProducePacketName [01:30:27]name=ofd_packets/00103232 [01:30:27]NVStorageDeleteData [01:30:28]Write to MH i2c: 01 00 00 E3 05 E8 [01:30:28]Write i2c OK [01:30:28]MH_I2C_Read... [01:30:28]Read from MH i2c: 01 [01:30:28]MH_I2C_Read... [01:30:28]Read from MH i2c: 01 07 00 [01:30:28]MH_I2C_Read... [01:30:28]Read from MH i2c: 01 07 00 E3 05 00 00 00 00 00 D7 0C D2 [01:30:28]RasterBufferAndPrint [01:30:28]line [01:30:28]line [01:30:28]line [01:30:28]line [01:30:28]line [01:30:28]written 0, free lines is 3294 [01:30:28]MH_Cut [01:30:28]Write to MH i2c: D1 01 00 EA 05 01 C1 [01:30:28]Write i2c OK [01:30:28]MH_I2C_Read... [01:30:28]Read from MH i2c: D1 [01:30:28]MH_I2C_Read... [01:30:28]Read from MH i2c: D1 01 00 [01:30:28]MH_I2C_Read... [01:30:28]Read from MH i2c: D1 01 00 EA 05 00 C0 [01:30:28]Write to MH i2c: 01 00 00 EB 05 F0 [01:30:28]Write i2c OK [01:30:28]MH_I2C_Read... [01:30:28]OFD Sender: No OFD packet to send [01:30:28]*** Cut start [01:30:28]*** Purtial cut [01:30:28]*** Stage 1: CUTSNS_PIN = 1 [01:30:29]Read from MH i2c: 01 [01:30:29]MH_I2C_Read... [01:30:29]*** Stop cut motor [01:30:29]*** Cut end [01:30:29]Read from MH i2c: 01 07 00 [01:30:29]MH_I2C_Read... [01:30:29]Read from MH i2c: 01 07 00 EB 05 00 00 00 00 00 FF 0F 05 [01:30:29]process_action close_receipt done [01:30:29]requested_data is exist [01:30:29]produce_requested_data [01:30:29]requested_item fm.sn is exist - process it [01:30:29]wFMCommunicate request_size=4 [01:30:29]MH_SAM_APDU [01:30:29]CAPDU: 80 11 00 00 [01:30:29]Write to MH i2c: E2 08 00 EC 05 80 11 00 00 00 00 00 00 6B [01:30:29]Write i2c OK [01:30:29]MH_I2C_Read... [01:30:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:30:29]Read from MH i2c: E2 [01:30:29]MH_I2C_Read... [01:30:29]Read from MH i2c: E2 17 00 [01:30:29]MH_I2C_Read... [01:30:29]Read from MH i2c: E2 17 00 EC 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 BF [01:30:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [01:30:29]wFMCommunicate OK [01:30:29]requested_item fd.num is exist - process it [01:30:29]SAM_PROTO_GetFieldsCounters [01:30:29]wFMCommunicate request_size=4 [01:30:29]MH_SAM_APDU [01:30:29]CAPDU: 80 13 00 00 [01:30:29]Write to MH i2c: E2 08 00 ED 05 80 13 00 00 00 00 00 00 6E [01:30:29]Write i2c OK [01:30:29]MH_I2C_Read... [01:30:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:30:29]Read from MH i2c: E2 [01:30:29]MH_I2C_Read... [01:30:29]Read from MH i2c: E2 62 00 [01:30:29]MH_I2C_Read... [01:30:29]Read from MH i2c: E2 62 00 ED 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 40 93 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [01:30:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 40 93 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:30:29]wFMCommunicate OK [01:30:29]SAM_PROTO_GetFieldsCounters done [01:30:29]requested_item shift.num is exist - process it [01:30:29]requested_item shift.opened is exist - process it [01:30:29]req_shift_opened [01:30:29]FM_GetShiftState [01:30:29]SAM_PROTO_GetShiftState [01:30:29]wFMCommunicate request_size=4 [01:30:29]MH_SAM_APDU [01:30:29]CAPDU: 80 13 01 00 [01:30:29]Write to MH i2c: E2 08 00 EE 05 80 13 01 00 00 00 00 00 70 [01:30:29]Write i2c OK [01:30:29]MH_I2C_Read... [01:30:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:30:29]Read from MH i2c: E2 [01:30:29]MH_I2C_Read... [01:30:29]Read from MH i2c: E2 0E 00 [01:30:29]MH_I2C_Read... [01:30:29]Read from MH i2c: E2 0E 00 EE 05 00 09 00 01 AC F1 BB 66 00 00 00 00 90 00 3A [01:30:29]RAPDU: 09 00 01 AC F1 BB 66 00 00 00 00 90 00 [01:30:29]wFMCommunicate OK [01:30:29]SAM_PROTO_GetShiftState done [01:30:29]FM_GetShiftState done [01:30:29]req_shift_opened done [01:30:29]requested_item shift.open_date is exist - process it [01:30:29]req_shift_open_date [01:30:29]req_shift_open_date done [01:30:29]produce_requested_data done [01:30:29]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103232,"shift.num":465,"shift.opened":1,"shift.open_date":1723593132} [01:30:29]process_action_free close_receipt [01:30:29]json_value_free [01:30:29]json_value_free done [01:30:29]process_json_proto returns [01:30:29]Send response to host [01:30:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103232,"shift.num":465,"shift.opened":1,"shift.open_date":1723593132}}} [01:30:29]free response buf [01:30:29]execute_script done [01:30:29]execute_script returns [01:30:29]free content buf [01:30:29]Sock 7.Close socket [01:30:29]Sock 7.Thread stoped [01:30:33]OFD Sender: No OFD packet to send [01:30:38]OFD Sender: No OFD packet to send [01:30:43]OFD Sender: No OFD packet to send [01:30:48]OFD Sender: No OFD packet to send [01:30:53]OFD Sender: No OFD packet to send [01:30:55]accept exits with 9 [01:30:55]New connection [01:30:55]New thread 3067485540 created [01:30:55]Thread 3067342180 joined [01:30:55]Waiting for new connection... [01:30:55] Sock 9.Parse request [01:30:55]Sock 9.Check first char [01:30:55]Sock 9.First char is OK [01:30:55]request: POST /json_proto HTTP/1.0 [01:30:55]Method: POST [01:30:55]URL: /json_proto [01:30:55]Method is POST - this is cgi request [01:30:55]url: /json_proto [01:30:55]query_string will be loaded in cgi processing [01:30:55]execute_cgi json_proto POST (null) [01:30:55]execute_cgi path=json_proto method=POST [01:30:55]POST find Content-Length [01:30:55]Host: 172.17.58.3:8080 [01:30:55]Content-Length: 734 [01:30:55]Content-Type: application/json [01:30:55] [01:30:55]POST finish read [01:30:55]Found Content-Length = 734 [01:30:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 103232, "base_FM": "0000000000875058", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 12.140, "sum" : 800.03, "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" ] } } [01:30:55]execute_script... [01:30:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 103232, "base_FM": "0000000000875058", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 12.140, "sum" : 800.03, "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" ] } } [01:30:55]POST & json_proto [01:30:55]process_json_proto [01:30:55]json parsed OK: [01:30:55]protocol is kg_v1.0 [01:30:55]action value=close_receipt [01:30:55]process_action close_receipt [01:30:55]cmd_close_receipt [01:30:55]MH_GetDate [01:30:55]Write to MH i2c: F0 00 00 EF 05 E3 [01:30:55]Write i2c OK [01:30:55]MH_I2C_Read... [01:30:55]Read from MH i2c: F0 [01:30:55]MH_I2C_Read... [01:30:55]Read from MH i2c: F0 09 00 [01:30:55]MH_I2C_Read... [01:30:55]Read from MH i2c: F0 09 00 EF 05 00 D0 08 BC 66 DC E4 6D 64 77 [01:30:55]GetLastDocTimeStamp 1723599026 [01:30:55]current date 1723599056 [01:30:55]FM_GetShiftState [01:30:55]SAM_PROTO_GetShiftState [01:30:55]wFMCommunicate request_size=4 [01:30:55]MH_SAM_APDU [01:30:55]CAPDU: 80 13 01 00 [01:30:55]Write to MH i2c: E2 08 00 F0 05 80 13 01 00 00 00 00 00 72 [01:30:55]Write i2c OK [01:30:55]MH_I2C_Read... [01:30:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:30:55]Read from MH i2c: E2 [01:30:55]MH_I2C_Read... [01:30:55]Read from MH i2c: E2 0E 00 [01:30:55]MH_I2C_Read... [01:30:55]Read from MH i2c: E2 0E 00 F0 05 00 09 00 01 AC F1 BB 66 00 00 00 00 90 00 3C [01:30:55]RAPDU: 09 00 01 AC F1 BB 66 00 00 00 00 90 00 [01:30:55]wFMCommunicate OK [01:30:55]SAM_PROTO_GetShiftState done [01:30:55]FM_GetShiftState done [01:30:55]opened in 1723593132 [01:30:55]opened+sec_in_day 1723679532 [01:30:55]quantity*price = 80002 [01:30:55]sum+1 = 80004 [01:30:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 800.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 12 14.08.2024 01:30 Смена: 465 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФД осн.: 103232 ФМ осн.: 0000000000875058 ФМ: 0000000000875058 ФД: 103233 ФПД: 103378532832484 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240814T013056&type=2&operation_type=1&fn_number=0000000000875058&fd_number=103233&fm=103378532832484&tin=02508201610067®Number=0000000000092718&sum=80000 [01:30:56]StoreToDocumentArchive [01:30:56]shift 465 fd 103233 [01:30:56]save to /storage/0465/doc_00103233 [01:30:56]save last doc name /storage/0465/doc_00103233 to /storage/kkm_last_doc_name [01:30:56]save OK [01:30:56]Clear old archive folders... [01:30:56]ProcessDocumentItem done err = 0, tmpTLVsize=279 [01:30:56]tlvbuf is 011E67F0 [01:30:56]SAM_PROTO_ClearQueue [01:30:56]wFMCommunicate request_size=4 [01:30:56]MH_SAM_APDU [01:30:56]CAPDU: 80 09 00 00 [01:30:56]Write to MH i2c: E2 08 00 FF 05 80 09 00 00 00 00 00 00 76 [01:30:56]Write i2c OK [01:30:56]MH_I2C_Read... [01:30:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:30:57]Read from MH i2c: E2 [01:30:57]MH_I2C_Read... [01:30:57]Read from MH i2c: E2 03 00 [01:30:57]MH_I2C_Read... [01:30:57]Read from MH i2c: E2 03 00 FF 05 00 90 00 78 [01:30:57]RAPDU: 90 00 [01:30:57]wFMCommunicate OK [01:30:57]SAM_PROTO_ClearQueue done [01:30:57]KKMCreateOFDPacket [01:30:57]OFDProtocolAddRootSTLVToBuf [01:30:57]FM_MakeSignedData [01:30:57]FM_MakeSignedData [01:30:57]SAM_PROTO_SignData [01:30:57]wFMCommunicate request_size=4 [01:30:57]MH_SAM_APDU [01:30:57]CAPDU: 80 0D 01 02 [01:30:57]Write to MH i2c: E2 08 00 00 06 80 0D 01 02 00 00 00 00 7F [01:30:57]Write i2c OK [01:30:57]MH_I2C_Read... [01:30:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:30:57]Read from MH i2c: E2 [01:30:57]MH_I2C_Read... [01:30:57]Read from MH i2c: E2 03 00 [01:30:57]MH_I2C_Read... [01:30:57]Read from MH i2c: E2 03 00 00 06 00 90 00 7A [01:30:57]RAPDU: 90 00 [01:30:57]wFMCommunicate OK [01:30:57]wFMCommunicate request_size=255 [01:30:57]MH_SAM_APDU [01:30:57]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 2F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 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 0C 00 00 00 F4 03 04 00 D0 08 BC 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 27 04 04 00 40 93 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 11 04 10 00 30 [01:30:57]Write to MH i2c: E2 02 01 01 06 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 2F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 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 0C 00 00 00 F4 03 04 00 D0 08 BC 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 27 04 04 00 40 93 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 11 04 10 00 30 00 00 51 [01:30:57]Write i2c OK [01:30:57]MH_I2C_Read... [01:30:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:30:57]Read from MH i2c: E2 [01:30:57]MH_I2C_Read... [01:30:57]Read from MH i2c: E2 03 00 [01:30:57]MH_I2C_Read... [01:30:57]Read from MH i2c: E2 03 00 01 06 00 90 00 7B [01:30:57]RAPDU: 90 00 [01:30:57]wFMCommunicate OK [01:30:57]wFMCommunicate request_size=38 [01:30:57]MH_SAM_APDU [01:30:57]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 41 93 01 00 35 04 06 00 5E 05 B0 BA 14 E4 [01:30:57]Write to MH i2c: E2 29 00 02 06 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 41 93 01 00 35 04 06 00 5E 05 B0 BA 14 E4 00 00 A6 [01:30:57]Write i2c OK [01:30:57]MH_I2C_Read... [01:30:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:30:57]Read from MH i2c: E2 [01:30:57]MH_I2C_Read... [01:30:57]Read from MH i2c: E2 03 00 [01:30:57]MH_I2C_Read... [01:30:57]Read from MH i2c: E2 03 00 02 06 00 90 00 7C [01:30:57]RAPDU: 90 00 [01:30:57]wFMCommunicate OK [01:30:57]wFMCommunicate request_size=4 [01:30:57]MH_SAM_APDU [01:30:57]CAPDU: 80 0D 03 02 [01:30:57]Write to MH i2c: E2 08 00 03 06 80 0D 03 02 00 00 00 00 84 [01:30:57]Write i2c OK [01:30:57]MH_I2C_Read... [01:30:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:30:57]Read from MH i2c: E2 [01:30:57]MH_I2C_Read... [01:30:57]Read from MH i2c: E2 0B 00 [01:30:57]MH_I2C_Read... [01:30:57]Read from MH i2c: E2 0B 00 03 06 00 6C 52 D2 0F 5F A0 86 FA 90 00 A3 [01:30:57]RAPDU: 6C 52 D2 0F 5F A0 86 FA 90 00 [01:30:57]wFMCommunicate OK [01:30:57]SAM_PROTO_SignData done [01:30:57]FM_MakeSignedData done [01:30:57]CreateOFDProtocolMessage [01:30:57]wFMCommunicate request_size=4 [01:30:57]MH_SAM_APDU [01:30:57]CAPDU: 80 11 00 00 [01:30:57]Write to MH i2c: E2 08 00 04 06 80 11 00 00 00 00 00 00 84 [01:30:57]Write i2c OK [01:30:57]MH_I2C_Read... [01:30:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:30:57]Read from MH i2c: E2 [01:30:57]MH_I2C_Read... [01:30:57]Read from MH i2c: E2 17 00 [01:30:57]MH_I2C_Read... [01:30:57]Read from MH i2c: E2 17 00 04 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 D8 [01:30:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [01:30:57]wFMCommunicate OK [01:30:57]CreateOFDProtocolMessage done [01:30:57]OFDSenderStorePacket 103233 [01:30:57]StoreOFDPacket docnum=103233 [01:30:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 2B 01 00 00 40 B1 23 01 33 94 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 2F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 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 0C 00 00 00 F4 03 04 00 D0 08 BC 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 27 04 04 00 40 93 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 41 93 01 00 35 04 06 00 5E 05 B0 BA 14 E4 6C 52 D2 0F 5F A0 86 FA [01:30:57]CheckFolder [01:30:57]dirname=/storage/ofd_packets [01:30:57]CheckFolder done [01:30:57]ProducePacketName [01:30:57]name=ofd_packets/00103233 [01:30:57]NVStorageSaveData ofd_packets/00103233 [01:30:57]File name is /storage/ofd_packets/00103233 [01:30:57]Write 329 bytes [01:30:57]NVStorageSaveData done [01:30:57]OFDSenderStorePacket done [01:30:57]KKMCreateOFDPacket done [01:30:57]NVStorageSaveData kkm_last_timestamp [01:30:57]File name is /storage/kkm_last_timestamp [01:30:57]Write 4 bytes [01:30:57]NVStorageSaveData done [01:30:57]ExternCall_PrintAddStr [01:30:57]wPrintStart [01:30:57]Write to MH i2c: 01 00 00 05 06 0B [01:30:57]Write i2c OK [01:30:57]MH_I2C_Read... [01:30:57]Read from MH i2c: 01 [01:30:57]MH_I2C_Read... [01:30:57]Read from MH i2c: 01 07 00 [01:30:57]MH_I2C_Read... [01:30:57]Read from MH i2c: 01 07 00 05 06 00 00 00 00 00 FF 0F 20 [01:30:57]RasterBufferAndPrint [01:30:57]line Счет N : (1)160855 [01:30:57]line ИНН: 02508201610067 [01:30:57]line Контрольно-Кассовый Чек [01:30:57]line ВОЗВРАТ ПРОДАЖИ [01:30:57]line ТРК (МРК, ГНК) : 3 [01:30:57]line Товар: 2710124130 [01:30:57]line Аи-92-К-5 [01:30:57]line 12.140 * 65.90 [01:30:57]line = 800.03 [01:30:57]line НДС 12% НСП 1% [01:30:57]line > о реализуемом товаре [01:30:57]line ОКРУГЛЕНИЕ: -0.03 [01:30:57]line ИТОГО: 800.00 [01:30:57]line НСП 1% : 7.08 [01:30:57]line НДС 12% : 84.96 [01:30:57]line Наличными: 800.00 [01:30:57]line Безнал.: 0.00 [01:30:57]line Место: АЗС № 38 "Партнер Нефть" [01:30:57]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [01:30:57]line СНО: Общий режим [01:30:57]line Чек 12 14.08.2024 01:30 [01:30:57]line Смена: 465 ФФД: 1.0 [01:30:57]line ЗНМ: 0300000126 [01:30:57]line РНМ: 0000000000092718 [01:30:57]line Версия ККМ: 001 [01:30:57]line ФД осн.: 103232 [01:30:57]line ФМ осн.: 0000000000875058 [01:30:57]line ФМ: 0000000000875058 [01:30:57]line ФД: 103233 [01:30:57]line ФПД: 103378532832484 [01:30:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240814T013056&type=2&operation_type=1&fn_number=0000000000875058&fd_number=103233&fm=103378532832484&tin=02508201610067®Number=0000000000092718&sum=80000 [01:30:57]OFD Sender: Processing packet 103233 [packets to send 69, broken 68] [01:30:57]ProducePacketName [01:30:57]name=ofd_packets/00103233 [01:30:57]OFD Sender: To server: pG, [01:30:57]CommunicateWithHost lk.salyk.kg:30040 [01:30:57]ConnectInit lk.salyk.kg [01:30:57]written 0, free lines is 4095 [01:30:57]Connected sock=10 [01:30:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 2B 01 00 00 40 B1 23 01 33 94 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 2F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 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 0C 00 00 00 F4 03 04 00 D0 08 BC 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 27 04 04 00 40 93 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 41 93 01 00 35 04 06 00 5E 05 B0 BA 14 E4 6C 52 D2 0F 5F A0 86 FA [01:30:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 30 DA 47 00 B0 CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 41 93 01 00 F4 03 04 00 42 AF BB 66 B6 04 01 00 00 F4 B1 EC C8 89 29 68 87 [01:30:58]CommunicateWithHost err = 0 [01:30:58]CheckOFDResponse [01:30:58]1017 (14) - 77093643461234 [01:30:58]1041 (16) - 0000000000875058 [01:30:58]1040 (4) - 103233 [01:30:58]1012 (4) - 13.08.2024 19:08 [01:30:58]1206 (1) - 0 [01:30:58]OFD Sender: Remove packet 103233 [01:30:58]ProducePacketName [01:30:58]name=ofd_packets/00103233 [01:30:58]NVStorageDeleteData [01:30:58]Write to MH i2c: 01 00 00 30 06 36 [01:30:58]Write i2c OK [01:30:58]MH_I2C_Read... [01:30:58]Read from MH i2c: 01 [01:30:58]MH_I2C_Read... [01:30:58]Read from MH i2c: 01 07 00 [01:30:58]MH_I2C_Read... [01:30:58]Read from MH i2c: 01 07 00 30 06 00 00 00 00 00 E4 0C 2D [01:30:58]RasterBufferAndPrint [01:30:58]line [01:30:58]line [01:30:58]line [01:30:58]line [01:30:58]line [01:30:58]written 0, free lines is 3308 [01:30:58]MH_Cut [01:30:58]Write to MH i2c: D1 01 00 37 06 01 0F [01:30:58]Write i2c OK [01:30:58]MH_I2C_Read... [01:30:58]Read from MH i2c: D1 [01:30:58]MH_I2C_Read... [01:30:58]Read from MH i2c: D1 01 00 [01:30:58]MH_I2C_Read... [01:30:58]Read from MH i2c: D1 01 00 37 06 00 0E [01:30:58]Write to MH i2c: 01 00 00 38 06 3E [01:30:58]Write i2c OK [01:30:58]MH_I2C_Read... [01:30:58]OFD Sender: No OFD packet to send [01:30:59]*** Cut start [01:30:59]*** Purtial cut [01:30:59]*** CUTSNS_PIN = 0 [01:30:59]*** Stage 1: CUTSNS_PIN = 1 [01:31:01]Read from MH i2c: 01 [01:31:01]MH_I2C_Read... [01:31:01]*** Stop cut motor [01:31:01]*** Cut end [01:31:01]Read from MH i2c: 01 07 00 [01:31:01]MH_I2C_Read... [01:31:01]Read from MH i2c: 01 07 00 38 06 00 00 00 00 00 FF 0F 53 [01:31:01]process_action close_receipt done [01:31:01]requested_data is exist [01:31:01]produce_requested_data [01:31:01]requested_item fm.sn is exist - process it [01:31:01]wFMCommunicate request_size=4 [01:31:01]MH_SAM_APDU [01:31:01]CAPDU: 80 11 00 00 [01:31:01]Write to MH i2c: E2 08 00 39 06 80 11 00 00 00 00 00 00 B9 [01:31:01]Write i2c OK [01:31:01]MH_I2C_Read... [01:31:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:31:01]Read from MH i2c: E2 [01:31:01]MH_I2C_Read... [01:31:01]Read from MH i2c: E2 17 00 [01:31:01]MH_I2C_Read... [01:31:01]Read from MH i2c: E2 17 00 39 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 0D [01:31:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [01:31:01]wFMCommunicate OK [01:31:01]requested_item fd.num is exist - process it [01:31:01]SAM_PROTO_GetFieldsCounters [01:31:01]wFMCommunicate request_size=4 [01:31:01]MH_SAM_APDU [01:31:01]CAPDU: 80 13 00 00 [01:31:01]Write to MH i2c: E2 08 00 3A 06 80 13 00 00 00 00 00 00 BC [01:31:01]Write i2c OK [01:31:01]MH_I2C_Read... [01:31:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:31:01]Read from MH i2c: E2 [01:31:01]MH_I2C_Read... [01:31:01]Read from MH i2c: E2 62 00 [01:31:01]MH_I2C_Read... [01:31:01]Read from MH i2c: E2 62 00 3A 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 41 93 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [01:31:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 41 93 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:31:01]wFMCommunicate OK [01:31:01]SAM_PROTO_GetFieldsCounters done [01:31:01]requested_item shift.num is exist - process it [01:31:01]requested_item shift.opened is exist - process it [01:31:01]req_shift_opened [01:31:01]FM_GetShiftState [01:31:01]SAM_PROTO_GetShiftState [01:31:01]wFMCommunicate request_size=4 [01:31:01]MH_SAM_APDU [01:31:01]CAPDU: 80 13 01 00 [01:31:01]Write to MH i2c: E2 08 00 3B 06 80 13 01 00 00 00 00 00 BE [01:31:01]Write i2c OK [01:31:01]MH_I2C_Read... [01:31:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:31:01]Read from MH i2c: E2 [01:31:01]MH_I2C_Read... [01:31:01]Read from MH i2c: E2 0E 00 [01:31:01]MH_I2C_Read... [01:31:01]Read from MH i2c: E2 0E 00 3B 06 00 09 00 01 AC F1 BB 66 00 00 00 00 90 00 88 [01:31:01]RAPDU: 09 00 01 AC F1 BB 66 00 00 00 00 90 00 [01:31:01]wFMCommunicate OK [01:31:01]SAM_PROTO_GetShiftState done [01:31:01]FM_GetShiftState done [01:31:01]req_shift_opened done [01:31:01]requested_item shift.open_date is exist - process it [01:31:01]req_shift_open_date [01:31:01]req_shift_open_date done [01:31:01]produce_requested_data done [01:31:01]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103233,"shift.num":465,"shift.opened":1,"shift.open_date":1723593132} [01:31:01]process_action_free close_receipt [01:31:01]json_value_free [01:31:01]json_value_free done [01:31:01]process_json_proto returns [01:31:01]Send response to host [01:31:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103233,"shift.num":465,"shift.opened":1,"shift.open_date":1723593132}}} [01:31:01]free response buf [01:31:01]execute_script done [01:31:01]execute_script returns [01:31:01]free content buf [01:31:01]Sock 9.Close socket [01:31:01]Sock 9.Thread stoped [01:31:01]accept exits with 7 [01:31:01]New connection [01:31:01]New thread 3067342180 created [01:31:01]Thread 3067485540 joined [01:31:01]Waiting for new connection... [01:31:01] Sock 7.Parse request [01:31:01]Sock 7.Check first char [01:31:01]Sock 7.First char is OK [01:31:01]request: POST /json_proto HTTP/1.0 [01:31:01]Method: POST [01:31:01]URL: /json_proto [01:31:01]Method is POST - this is cgi request [01:31:01]url: /json_proto [01:31:01]query_string will be loaded in cgi processing [01:31:01]execute_cgi json_proto POST (null) [01:31:01]execute_cgi path=json_proto method=POST [01:31:01]POST find Content-Length [01:31:01]Host: 172.17.58.3:8080 [01:31:01]Content-Length: 670 [01:31:01]Content-Type: application/json [01:31:01] [01:31:01]POST finish read [01:31:01]Found Content-Length = 670 [01:31:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 0.015, "sum" : 0.99, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 0.00, "payments": [ { "type": 0, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:31:01]execute_script... [01:31: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)160855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 0.015, "sum" : 0.99, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 0.00, "payments": [ { "type": 0, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:31:01]POST & json_proto [01:31:01]process_json_proto [01:31:01]json parsed OK: [01:31:01]protocol is kg_v1.0 [01:31:01]action value=close_receipt [01:31:01]process_action close_receipt [01:31:01]cmd_close_receipt [01:31:01]MH_GetDate [01:31:01]Write to MH i2c: F0 00 00 3C 06 31 [01:31:01]Write i2c OK [01:31:01]MH_I2C_Read... [01:31:01]Read from MH i2c: F0 [01:31:01]MH_I2C_Read... [01:31:01]Read from MH i2c: F0 09 00 [01:31:01]MH_I2C_Read... [01:31:01]Read from MH i2c: F0 09 00 3C 06 00 D6 08 BC 66 DC E4 6D 64 CB [01:31:01]GetLastDocTimeStamp 1723599056 [01:31:01]current date 1723599062 [01:31:01]FM_GetShiftState [01:31:01]SAM_PROTO_GetShiftState [01:31:01]wFMCommunicate request_size=4 [01:31:01]MH_SAM_APDU [01:31:01]CAPDU: 80 13 01 00 [01:31:01]Write to MH i2c: E2 08 00 3D 06 80 13 01 00 00 00 00 00 C0 [01:31:01]Write i2c OK [01:31:01]MH_I2C_Read... [01:31:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:31:01]Read from MH i2c: E2 [01:31:01]MH_I2C_Read... [01:31:01]Read from MH i2c: E2 0E 00 [01:31:01]MH_I2C_Read... [01:31:01]Read from MH i2c: E2 0E 00 3D 06 00 09 00 01 AC F1 BB 66 00 00 00 00 90 00 8A [01:31:01]RAPDU: 09 00 01 AC F1 BB 66 00 00 00 00 90 00 [01:31:01]wFMCommunicate OK [01:31:01]SAM_PROTO_GetShiftState done [01:31:01]FM_GetShiftState done [01:31:01]opened in 1723593132 [01:31:01]opened+sec_in_day 1723679532 [01:31:01]quantity*price = 98 [01:31:01]sum+1 = 100 [01:31:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.99 ИТОГО: 0.00 Внесено: 800.00 СДАЧА: 800.00 НСП 1% : 0.01 НДС 12% : 0.10 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 13 14.08.2024 01:31 Смена: 465 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103234 ФПД: 169556795211171 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240814T013102&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103234&fm=169556795211171&tin=02508201610067®Number=0000000000092718&sum=0 [01:31:03]StoreToDocumentArchive [01:31:03]shift 465 fd 103234 [01:31:03]save to /storage/0465/doc_00103234 [01:31:03]save last doc name /storage/0465/doc_00103234 to /storage/kkm_last_doc_name [01:31:03]save OK [01:31:03]Clear old archive folders... [01:31:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:31:03]tlvbuf is 011F4430 [01:31:03]SAM_PROTO_ClearQueue [01:31:03]wFMCommunicate request_size=4 [01:31:03]MH_SAM_APDU [01:31:03]CAPDU: 80 09 00 00 [01:31:03]Write to MH i2c: E2 08 00 4A 06 80 09 00 00 00 00 00 00 C2 [01:31:03]Write i2c OK [01:31:03]MH_I2C_Read... [01:31:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:31:03]Read from MH i2c: E2 [01:31:03]MH_I2C_Read... [01:31:03]Read from MH i2c: E2 03 00 [01:31:03]MH_I2C_Read... [01:31:03]Read from MH i2c: E2 03 00 4A 06 00 90 00 C4 [01:31:03]RAPDU: 90 00 [01:31:03]wFMCommunicate OK [01:31:03]SAM_PROTO_ClearQueue done [01:31:03]KKMCreateOFDPacket [01:31:03]OFDProtocolAddRootSTLVToBuf [01:31:03]FM_MakeSignedData [01:31:03]FM_MakeSignedData [01:31:03]SAM_PROTO_SignData [01:31:03]wFMCommunicate request_size=4 [01:31:03]MH_SAM_APDU [01:31:03]CAPDU: 80 0D 01 02 [01:31:03]Write to MH i2c: E2 08 00 4B 06 80 0D 01 02 00 00 00 00 CA [01:31:03]Write i2c OK [01:31:03]MH_I2C_Read... [01:31:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:31:03]Read from MH i2c: E2 [01:31:03]MH_I2C_Read... [01:31:03]Read from MH i2c: E2 03 00 [01:31:03]MH_I2C_Read... [01:31:03]Read from MH i2c: E2 03 00 4B 06 00 90 00 C5 [01:31:03]RAPDU: 90 00 [01:31:03]wFMCommunicate OK [01:31:03]wFMCommunicate request_size=255 [01:31:03]MH_SAM_APDU [01:31: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 0F 00 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 63 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 0A 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 0D 00 00 00 F4 03 04 00 D6 08 BC 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 42 93 01 00 35 04 06 00 9A [01:31:03]Write to MH i2c: E2 02 01 4C 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 0F 00 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 63 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 0A 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 0D 00 00 00 F4 03 04 00 D6 08 BC 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 42 93 01 00 35 04 06 00 9A 00 00 7A [01:31:03]Write i2c OK [01:31:03]MH_I2C_Read... [01:31:03]OFD Sender: No OFD packet to send [01:31:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:31:03]Read from MH i2c: E2 [01:31:03]MH_I2C_Read... [01:31:03]Read from MH i2c: E2 03 00 [01:31:03]MH_I2C_Read... [01:31:03]Read from MH i2c: E2 03 00 4C 06 00 90 00 C6 [01:31:03]RAPDU: 90 00 [01:31:03]wFMCommunicate OK [01:31:03]wFMCommunicate request_size=10 [01:31:03]MH_SAM_APDU [01:31:03]CAPDU: 80 0D 02 02 05 36 04 8C 3D A3 [01:31:03]Write to MH i2c: E2 0D 00 4D 06 80 0D 02 02 05 00 36 04 8C 3D A3 00 00 7D [01:31:03]Write i2c OK [01:31:03]MH_I2C_Read... [01:31:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:31:03]Read from MH i2c: E2 [01:31:03]MH_I2C_Read... [01:31:03]Read from MH i2c: E2 03 00 [01:31:03]MH_I2C_Read... [01:31:03]Read from MH i2c: E2 03 00 4D 06 00 90 00 C7 [01:31:03]RAPDU: 90 00 [01:31:03]wFMCommunicate OK [01:31:03]wFMCommunicate request_size=4 [01:31:03]MH_SAM_APDU [01:31:03]CAPDU: 80 0D 03 02 [01:31:03]Write to MH i2c: E2 08 00 4E 06 80 0D 03 02 00 00 00 00 CF [01:31:03]Write i2c OK [01:31:03]MH_I2C_Read... [01:31:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:31:03]Read from MH i2c: E2 [01:31:03]MH_I2C_Read... [01:31:03]Read from MH i2c: E2 0B 00 [01:31:03]MH_I2C_Read... [01:31:03]Read from MH i2c: E2 0B 00 4E 06 00 C7 41 21 BD 0A EC FD E4 90 00 8D [01:31:03]RAPDU: C7 41 21 BD 0A EC FD E4 90 00 [01:31:03]wFMCommunicate OK [01:31:03]SAM_PROTO_SignData done [01:31:03]FM_MakeSignedData done [01:31:03]CreateOFDProtocolMessage [01:31:03]wFMCommunicate request_size=4 [01:31:03]MH_SAM_APDU [01:31:03]CAPDU: 80 11 00 00 [01:31:03]Write to MH i2c: E2 08 00 4F 06 80 11 00 00 00 00 00 00 CF [01:31:03]Write i2c OK [01:31:03]MH_I2C_Read... [01:31:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:31:03]Read from MH i2c: E2 [01:31:03]MH_I2C_Read... [01:31:03]Read from MH i2c: E2 17 00 [01:31:03]MH_I2C_Read... [01:31:03]Read from MH i2c: E2 17 00 4F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 23 [01:31:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [01:31:03]wFMCommunicate OK [01:31:03]CreateOFDProtocolMessage done [01:31:03]OFDSenderStorePacket 103234 [01:31:03]StoreOFDPacket docnum=103234 [01:31:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 97 96 07 01 38 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 0F 00 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 63 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 0A 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 0D 00 00 00 F4 03 04 00 D6 08 BC 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 42 93 01 00 35 04 06 00 9A 36 04 8C 3D A3 C7 41 21 BD 0A EC FD E4 [01:31:03]CheckFolder [01:31:03]dirname=/storage/ofd_packets [01:31:03]CheckFolder done [01:31:03]ProducePacketName [01:31:03]name=ofd_packets/00103234 [01:31:03]NVStorageSaveData ofd_packets/00103234 [01:31:03]File name is /storage/ofd_packets/00103234 [01:31:03]Write 301 bytes [01:31:03]NVStorageSaveData done [01:31:03]OFDSenderStorePacket done [01:31:03]KKMCreateOFDPacket done [01:31:03]NVStorageSaveData kkm_last_timestamp [01:31:03]File name is /storage/kkm_last_timestamp [01:31:03]Write 4 bytes [01:31:03]NVStorageSaveData done [01:31:03]ExternCall_PrintAddStr [01:31:03]wPrintStart [01:31:03]Write to MH i2c: 01 00 00 50 06 56 [01:31:03]Write i2c OK [01:31:03]MH_I2C_Read... [01:31:03]Read from MH i2c: 01 [01:31:03]MH_I2C_Read... [01:31:03]Read from MH i2c: 01 07 00 [01:31:03]MH_I2C_Read... [01:31:03]Read from MH i2c: 01 07 00 50 06 00 00 00 00 00 FF 0F 6B [01:31:03]RasterBufferAndPrint [01:31:03]line Счет N : (1)160855 [01:31:03]line ИНН: 02508201610067 [01:31:03]line Контрольно-Кассовый Чек [01:31:03]line ПРОДАЖА [01:31:03]line ТРК (МРК, ГНК) : 3 [01:31:03]line Товар: 2710124130 [01:31:03]line Аи-92-К-5 [01:31:03]line 0.015 * 65.90 [01:31:03]line = 0.99 [01:31:03]line НДС 12% НСП 1% [01:31:03]line > о реализуемом товаре [01:31:03]line ОКРУГЛЕНИЕ: -0.99 [01:31:03]line ИТОГО: 0.00 [01:31:03]line Внесено: 800.00 [01:31:03]line СДАЧА: 800.00 [01:31:03]line НСП 1% : 0.01 [01:31:03]line НДС 12% : 0.10 [01:31:03]line Наличными: 0.00 [01:31:03]line Безнал.: 0.00 [01:31:03]line Место: АЗС № 38 "Партнер Нефть" [01:31:03]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [01:31:03]line СНО: Общий режим [01:31:03]line Чек 13 14.08.2024 01:31 [01:31:03]line Смена: 465 ФФД: 1.0 [01:31:03]line ЗНМ: 0300000126 [01:31:03]line РНМ: 0000000000092718 [01:31:03]line Версия ККМ: 001 [01:31:03]line ФМ: 0000000000875058 [01:31:03]line ФД: 103234 [01:31:03]line ФПД: 169556795211171 [01:31:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240814T013102&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103234&fm=169556795211171&tin=02508201610067®Number=0000000000092718&sum=0 [01:31:03]written 0, free lines is 4095 [01:31:04]OFD Sender: Processing packet 103234 [packets to send 69, broken 68] [01:31:04]ProducePacketName [01:31:04]name=ofd_packets/00103234 [01:31:04]OFD Sender: To server: pG, [01:31:04]CommunicateWithHost lk.salyk.kg:30040 [01:31:04]ConnectInit lk.salyk.kg [01:31:04]Connected sock=10 [01:31:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 97 96 07 01 38 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 0F 00 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 63 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 0A 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 0D 00 00 00 F4 03 04 00 D6 08 BC 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 42 93 01 00 35 04 06 00 9A 36 04 8C 3D A3 C7 41 21 BD 0A EC FD E4 [01:31:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 D7 89 47 00 09 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 42 93 01 00 F4 03 04 00 48 AF BB 66 B6 04 01 00 00 60 B4 E7 8F C1 66 64 BA [01:31:04]CommunicateWithHost err = 0 [01:31:04]CheckOFDResponse [01:31:04]1017 (14) - 77093643461234 [01:31:04]1041 (16) - 0000000000875058 [01:31:04]1040 (4) - 103234 [01:31:04]1012 (4) - 13.08.2024 19:08 [01:31:04]1206 (1) - 0 [01:31:04]OFD Sender: Remove packet 103234 [01:31:04]ProducePacketName [01:31:04]name=ofd_packets/00103234 [01:31:04]NVStorageDeleteData [01:31:04]Write to MH i2c: 01 00 00 7B 06 81 [01:31:04]Write i2c OK [01:31:04]MH_I2C_Read... [01:31:04]Read from MH i2c: 01 [01:31:04]MH_I2C_Read... [01:31:04]Read from MH i2c: 01 07 00 [01:31:04]MH_I2C_Read... [01:31:04]Read from MH i2c: 01 07 00 7B 06 00 00 00 00 00 E7 0C 7B [01:31:04]RasterBufferAndPrint [01:31:04]line [01:31:04]line [01:31:04]line [01:31:04]line [01:31:04]line [01:31:04]written 0, free lines is 3321 [01:31:04]MH_Cut [01:31:04]Write to MH i2c: D1 01 00 82 06 01 5A [01:31:04]Write i2c OK [01:31:04]MH_I2C_Read... [01:31:04]Read from MH i2c: D1 [01:31:04]MH_I2C_Read... [01:31:04]Read from MH i2c: D1 01 00 [01:31:04]MH_I2C_Read... [01:31:04]Read from MH i2c: D1 01 00 82 06 00 59 [01:31:04]Write to MH i2c: 01 00 00 83 06 89 [01:31:04]Write i2c OK [01:31:04]MH_I2C_Read... [01:31:04]OFD Sender: No OFD packet to send [01:31:05]*** Cut start [01:31:05]*** Purtial cut [01:31:05]*** Stage 1: CUTSNS_PIN = 1 [01:31:05]Read from MH i2c: 01 [01:31:05]MH_I2C_Read... [01:31:05]*** Stop cut motor [01:31:05]*** Cut end [01:31:05]Read from MH i2c: 01 07 00 [01:31:05]MH_I2C_Read... [01:31:05]Read from MH i2c: 01 07 00 83 06 00 00 00 00 00 FF 0F 9E [01:31:05]process_action close_receipt done [01:31:05]requested_data is exist [01:31:05]produce_requested_data [01:31:05]requested_item fm.sn is exist - process it [01:31:05]wFMCommunicate request_size=4 [01:31:05]MH_SAM_APDU [01:31:05]CAPDU: 80 11 00 00 [01:31:05]Write to MH i2c: E2 08 00 84 06 80 11 00 00 00 00 00 00 04 [01:31:05]Write i2c OK [01:31:05]MH_I2C_Read... [01:31:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:31:05]Read from MH i2c: E2 [01:31:05]MH_I2C_Read... [01:31:05]Read from MH i2c: E2 17 00 [01:31:05]MH_I2C_Read... [01:31:05]Read from MH i2c: E2 17 00 84 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 58 [01:31:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [01:31:05]wFMCommunicate OK [01:31:05]requested_item fd.num is exist - process it [01:31:05]SAM_PROTO_GetFieldsCounters [01:31:05]wFMCommunicate request_size=4 [01:31:05]MH_SAM_APDU [01:31:05]CAPDU: 80 13 00 00 [01:31:05]Write to MH i2c: E2 08 00 85 06 80 13 00 00 00 00 00 00 07 [01:31:05]Write i2c OK [01:31:05]MH_I2C_Read... [01:31:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:31:05]Read from MH i2c: E2 [01:31:05]MH_I2C_Read... [01:31:05]Read from MH i2c: E2 62 00 [01:31:05]MH_I2C_Read... [01:31:05]Read from MH i2c: E2 62 00 85 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 42 93 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [01:31:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 42 93 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:31:05]wFMCommunicate OK [01:31:05]SAM_PROTO_GetFieldsCounters done [01:31:05]requested_item shift.num is exist - process it [01:31:05]requested_item shift.opened is exist - process it [01:31:05]req_shift_opened [01:31:05]FM_GetShiftState [01:31:05]SAM_PROTO_GetShiftState [01:31:05]wFMCommunicate request_size=4 [01:31:05]MH_SAM_APDU [01:31:05]CAPDU: 80 13 01 00 [01:31:05]Write to MH i2c: E2 08 00 86 06 80 13 01 00 00 00 00 00 09 [01:31:05]Write i2c OK [01:31:05]MH_I2C_Read... [01:31:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:31:05]Read from MH i2c: E2 [01:31:05]MH_I2C_Read... [01:31:05]Read from MH i2c: E2 0E 00 [01:31:05]MH_I2C_Read... [01:31:05]Read from MH i2c: E2 0E 00 86 06 00 09 00 01 AC F1 BB 66 00 00 00 00 90 00 D3 [01:31:05]RAPDU: 09 00 01 AC F1 BB 66 00 00 00 00 90 00 [01:31:05]wFMCommunicate OK [01:31:05]SAM_PROTO_GetShiftState done [01:31:05]FM_GetShiftState done [01:31:05]req_shift_opened done [01:31:05]requested_item shift.open_date is exist - process it [01:31:05]req_shift_open_date [01:31:05]req_shift_open_date done [01:31:05]produce_requested_data done [01:31:05]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103234,"shift.num":465,"shift.opened":1,"shift.open_date":1723593132} [01:31:05]process_action_free close_receipt [01:31:05]json_value_free [01:31:05]json_value_free done [01:31:05]process_json_proto returns [01:31:05]Send response to host [01:31:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103234,"shift.num":465,"shift.opened":1,"shift.open_date":1723593132}}} [01:31:05]free response buf [01:31:05]execute_script done [01:31:05]execute_script returns [01:31:05]free content buf [01:31:05]Sock 7.Close socket [01:31:05]Sock 7.Thread stoped [01:31:09]OFD Sender: No OFD packet to send [01:31:14]OFD Sender: No OFD packet to send [01:31:19]OFD Sender: No OFD packet to send [01:31:24]OFD Sender: No OFD packet to send [01:31:29]OFD Sender: No OFD packet to send [01:31:34]OFD Sender: No OFD packet to send [01:31:39]OFD Sender: No OFD packet to send [01:31:44]OFD Sender: No OFD packet to send [01:31:49]OFD Sender: No OFD packet to send [01:31:54]OFD Sender: No OFD packet to send [01:31:59]OFD Sender: No OFD packet to send [01:32:04]OFD Sender: No OFD packet to send [01:32:09]OFD Sender: No OFD packet to send [01:32:14]accept exits with 9 [01:32:14]New connection [01:32:14]New thread 3067485540 created [01:32:14]Thread 3067342180 joined [01:32:14]Waiting for new connection... [01:32:14] Sock 9.Parse request [01:32:14]Sock 9.Check first char [01:32:14]Sock 9.First char is OK [01:32:14]request: POST /json_proto HTTP/1.0 [01:32:14]Method: POST [01:32:14]URL: /json_proto [01:32:14]Method is POST - this is cgi request [01:32:14]url: /json_proto [01:32:14]query_string will be loaded in cgi processing [01:32:14]execute_cgi json_proto POST (null) [01:32:14]execute_cgi path=json_proto method=POST [01:32:14]POST find Content-Length [01:32:14]Host: 172.17.58.3:8080 [01:32:14]Content-Length: 677 [01:32:14]Content-Type: application/json [01:32:14] [01:32:14]POST finish read [01:32:14]Found Content-Length = 677 [01:32:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 12.140, "sum" : 800.03, "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" ] } } [01:32:14]execute_script... [01:32: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)160856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 12.140, "sum" : 800.03, "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" ] } } [01:32:14]POST & json_proto [01:32:14]process_json_proto [01:32:14]json parsed OK: [01:32:14]protocol is kg_v1.0 [01:32:14]action value=close_receipt [01:32:14]process_action close_receipt [01:32:14]cmd_close_receipt [01:32:14]MH_GetDate [01:32:14]Write to MH i2c: F0 00 00 87 06 7C [01:32:14]Write i2c OK [01:32:14]MH_I2C_Read... [01:32:14]Read from MH i2c: F0 [01:32:14]MH_I2C_Read... [01:32:14]Read from MH i2c: F0 09 00 [01:32:14]MH_I2C_Read... [01:32:14]Read from MH i2c: F0 09 00 87 06 00 1F 09 BC 66 DC E4 6D 64 60 [01:32:14]GetLastDocTimeStamp 1723599062 [01:32:14]current date 1723599135 [01:32:14]FM_GetShiftState [01:32:14]SAM_PROTO_GetShiftState [01:32:14]wFMCommunicate request_size=4 [01:32:14]MH_SAM_APDU [01:32:14]CAPDU: 80 13 01 00 [01:32:14]Write to MH i2c: E2 08 00 88 06 80 13 01 00 00 00 00 00 0B [01:32:14]Write i2c OK [01:32:14]MH_I2C_Read... [01:32:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:32:14]Read from MH i2c: E2 [01:32:14]MH_I2C_Read... [01:32:14]Read from MH i2c: E2 0E 00 [01:32:14]MH_I2C_Read... [01:32:14]Read from MH i2c: E2 0E 00 88 06 00 09 00 01 AC F1 BB 66 00 00 00 00 90 00 D5 [01:32:14]RAPDU: 09 00 01 AC F1 BB 66 00 00 00 00 90 00 [01:32:14]wFMCommunicate OK [01:32:14]SAM_PROTO_GetShiftState done [01:32:14]FM_GetShiftState done [01:32:14]opened in 1723593132 [01:32:14]opened+sec_in_day 1723679532 [01:32:14]quantity*price = 80002 [01:32:14]sum+1 = 80004 [01:32:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 14 14.08.2024 01:32 Смена: 465 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103235 ФПД: 9733284241236 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240814T013215&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103235&fm=9733284241236&tin=02508201610067®Number=0000000000092718&sum=80000 [01:32:15]StoreToDocumentArchive [01:32:15]shift 465 fd 103235 [01:32:15]save to /storage/0465/doc_00103235 [01:32:15]save last doc name /storage/0465/doc_00103235 to /storage/kkm_last_doc_name [01:32:15]save OK [01:32:15]Clear old archive folders... [01:32:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:32:15]tlvbuf is 011DF8B0 [01:32:15]SAM_PROTO_ClearQueue [01:32:15]wFMCommunicate request_size=4 [01:32:15]MH_SAM_APDU [01:32:15]CAPDU: 80 09 00 00 [01:32:15]Write to MH i2c: E2 08 00 95 06 80 09 00 00 00 00 00 00 0D [01:32:15]Write i2c OK [01:32:15]MH_I2C_Read... [01:32:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:32:15]Read from MH i2c: E2 [01:32:15]MH_I2C_Read... [01:32:15]Read from MH i2c: E2 03 00 [01:32:15]MH_I2C_Read... [01:32:15]Read from MH i2c: E2 03 00 95 06 00 90 00 0F [01:32:15]RAPDU: 90 00 [01:32:15]wFMCommunicate OK [01:32:15]SAM_PROTO_ClearQueue done [01:32:15]KKMCreateOFDPacket [01:32:15]OFDProtocolAddRootSTLVToBuf [01:32:15]FM_MakeSignedData [01:32:15]FM_MakeSignedData [01:32:15]SAM_PROTO_SignData [01:32:15]wFMCommunicate request_size=4 [01:32:15]MH_SAM_APDU [01:32:15]CAPDU: 80 0D 01 02 [01:32:15]Write to MH i2c: E2 08 00 96 06 80 0D 01 02 00 00 00 00 15 [01:32:15]Write i2c OK [01:32:15]MH_I2C_Read... [01:32:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:32:15]Read from MH i2c: E2 [01:32:15]MH_I2C_Read... [01:32:15]Read from MH i2c: E2 03 00 [01:32:15]MH_I2C_Read... [01:32:15]Read from MH i2c: E2 03 00 96 06 00 90 00 10 [01:32:15]RAPDU: 90 00 [01:32:15]wFMCommunicate OK [01:32:15]wFMCommunicate request_size=255 [01:32:15]MH_SAM_APDU [01:32: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 6C 2F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 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 0E 00 00 00 F4 03 04 00 1F 09 BC 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 43 93 01 00 35 04 06 00 08 [01:32:15]Write to MH i2c: E2 02 01 97 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 6C 2F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 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 0E 00 00 00 F4 03 04 00 1F 09 BC 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 43 93 01 00 35 04 06 00 08 00 00 E2 [01:32:15]Write i2c OK [01:32:15]MH_I2C_Read... [01:32:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:32:15]Read from MH i2c: E2 [01:32:15]MH_I2C_Read... [01:32:15]Read from MH i2c: E2 03 00 [01:32:15]MH_I2C_Read... [01:32:15]Read from MH i2c: E2 03 00 97 06 00 90 00 11 [01:32:15]RAPDU: 90 00 [01:32:15]wFMCommunicate OK [01:32:15]wFMCommunicate request_size=10 [01:32:15]MH_SAM_APDU [01:32:15]CAPDU: 80 0D 02 02 05 DA 34 F3 1F 54 [01:32:15]Write to MH i2c: E2 0D 00 98 06 80 0D 02 02 05 00 DA 34 F3 1F 54 00 00 96 [01:32:15]Write i2c OK [01:32:15]MH_I2C_Read... [01:32:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:32:15]Read from MH i2c: E2 [01:32:15]MH_I2C_Read... [01:32:15]Read from MH i2c: E2 03 00 [01:32:15]MH_I2C_Read... [01:32:15]Read from MH i2c: E2 03 00 98 06 00 90 00 12 [01:32:15]RAPDU: 90 00 [01:32:15]wFMCommunicate OK [01:32:15]wFMCommunicate request_size=4 [01:32:15]MH_SAM_APDU [01:32:15]CAPDU: 80 0D 03 02 [01:32:15]Write to MH i2c: E2 08 00 99 06 80 0D 03 02 00 00 00 00 1A [01:32:15]Write i2c OK [01:32:15]MH_I2C_Read... [01:32:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:32:15]Read from MH i2c: E2 [01:32:15]MH_I2C_Read... [01:32:15]Read from MH i2c: E2 0B 00 [01:32:15]MH_I2C_Read... [01:32:15]Read from MH i2c: E2 0B 00 99 06 00 6B 9F E2 75 EC 85 89 BB 90 00 31 [01:32:15]RAPDU: 6B 9F E2 75 EC 85 89 BB 90 00 [01:32:15]wFMCommunicate OK [01:32:15]SAM_PROTO_SignData done [01:32:15]FM_MakeSignedData done [01:32:15]CreateOFDProtocolMessage [01:32:15]wFMCommunicate request_size=4 [01:32:15]MH_SAM_APDU [01:32:15]CAPDU: 80 11 00 00 [01:32:15]Write to MH i2c: E2 08 00 9A 06 80 11 00 00 00 00 00 00 1A [01:32:15]Write i2c OK [01:32:15]MH_I2C_Read... [01:32:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:32:15]Read from MH i2c: E2 [01:32:15]MH_I2C_Read... [01:32:15]Read from MH i2c: E2 17 00 [01:32:15]MH_I2C_Read... [01:32:15]Read from MH i2c: E2 17 00 9A 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 6E [01:32:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [01:32:15]wFMCommunicate OK [01:32:15]CreateOFDProtocolMessage done [01:32:15]OFDSenderStorePacket 103235 [01:32:15]StoreOFDPacket docnum=103235 [01:32:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 F0 D0 07 01 0C 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 6C 2F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 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 0E 00 00 00 F4 03 04 00 1F 09 BC 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 43 93 01 00 35 04 06 00 08 DA 34 F3 1F 54 6B 9F E2 75 EC 85 89 BB [01:32:15]CheckFolder [01:32:15]dirname=/storage/ofd_packets [01:32:15]CheckFolder done [01:32:15]ProducePacketName [01:32:15]name=ofd_packets/00103235 [01:32:15]NVStorageSaveData ofd_packets/00103235 [01:32:15]File name is /storage/ofd_packets/00103235 [01:32:15]Write 301 bytes [01:32:15]NVStorageSaveData done [01:32:15]OFDSenderStorePacket done [01:32:15]KKMCreateOFDPacket done [01:32:15]NVStorageSaveData kkm_last_timestamp [01:32:15]File name is /storage/kkm_last_timestamp [01:32:15]Write 4 bytes [01:32:15]NVStorageSaveData done [01:32:15]OFD Sender: Processing packet 103235 [packets to send 69, broken 68] [01:32:15]ProducePacketName [01:32:15]name=ofd_packets/00103235 [01:32:15]OFD Sender: To server: pG, [01:32:15]CommunicateWithHost lk.salyk.kg:30040 [01:32:15]ConnectInit lk.salyk.kg [01:32:15]ExternCall_PrintAddStr [01:32:15]wPrintStart [01:32:15]Write to MH i2c: 01 00 00 9B 06 A1 [01:32:15]Write i2c OK [01:32:15]MH_I2C_Read... [01:32:15]Read from MH i2c: 01 [01:32:15]MH_I2C_Read... [01:32:15]Read from MH i2c: 01 07 00 [01:32:15]MH_I2C_Read... [01:32:15]Read from MH i2c: 01 07 00 9B 06 00 00 00 00 00 FF 0F B6 [01:32:15]RasterBufferAndPrint [01:32:15]line Счет N : (1)160856 [01:32:15]line ИНН: 02508201610067 [01:32:15]line Контрольно-Кассовый Чек [01:32:15]line ПРОДАЖА [01:32:15]line ТРК (МРК, ГНК) : 3 [01:32:15]line Товар: 2710124130 [01:32:15]line Аи-92-К-5 [01:32:15]line 12.140 * 65.90 [01:32:15]line = 800.03 [01:32:15]line НДС 12% НСП 1% [01:32:15]line > о реализуемом товаре [01:32:15]line ОКРУГЛЕНИЕ: -0.03 [01:32:15]line ИТОГО: 800.00 [01:32:15]line Внесено: 800.00 [01:32:15]line СДАЧА: 0.00 [01:32:15]line НСП 1% : 7.08 [01:32:15]line НДС 12% : 84.96 [01:32:15]line Наличными: 800.00 [01:32:15]line Безнал.: 0.00 [01:32:15]line Место: АЗС № 38 "Партнер Нефть" [01:32:15]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [01:32:15]line СНО: Общий режим [01:32:15]line Чек 14 14.08.2024 01:32 [01:32:15]line Смена: 465 ФФД: 1.0 [01:32:15]line ЗНМ: 0300000126 [01:32:15]line РНМ: 0000000000092718 [01:32:15]line Версия ККМ: 001 [01:32:15]line ФМ: 0000000000875058 [01:32:15]line ФД: 103235 [01:32:15]line ФПД: 9733284241236 [01:32:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240814T013215&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103235&fm=9733284241236&tin=02508201610067®Number=0000000000092718&sum=80000 [01:32:16]Connected sock=11 [01:32:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 F0 D0 07 01 0C 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 6C 2F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 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 0E 00 00 00 F4 03 04 00 1F 09 BC 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 43 93 01 00 35 04 06 00 08 DA 34 F3 1F 54 6B 9F E2 75 EC 85 89 BB [01:32:16]written 0, free lines is 4095 [01:32:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 34 C6 47 00 00 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 43 93 01 00 F4 03 04 00 90 AF BB 66 B6 04 01 00 00 1E BF 0F A3 EC 52 B4 E2 [01:32:16]CommunicateWithHost err = 0 [01:32:16]CheckOFDResponse [01:32:16]1017 (14) - 77093643461234 [01:32:16]1041 (16) - 0000000000875058 [01:32:16]1040 (4) - 103235 [01:32:16]1012 (4) - 13.08.2024 19:10 [01:32:16]1206 (1) - 0 [01:32:16]OFD Sender: Remove packet 103235 [01:32:16]ProducePacketName [01:32:16]name=ofd_packets/00103235 [01:32:16]NVStorageDeleteData [01:32:16]Write to MH i2c: 01 00 00 C6 06 CC [01:32:16]Write i2c OK [01:32:16]MH_I2C_Read... [01:32:16]Read from MH i2c: 01 [01:32:16]MH_I2C_Read... [01:32:16]Read from MH i2c: 01 07 00 [01:32:16]MH_I2C_Read... [01:32:16]Read from MH i2c: 01 07 00 C6 06 00 00 00 00 00 E2 0C C1 [01:32:16]RasterBufferAndPrint [01:32:16]line [01:32:16]line [01:32:16]line [01:32:16]line [01:32:16]line [01:32:16]written 0, free lines is 3304 [01:32:16]MH_Cut [01:32:16]Write to MH i2c: D1 01 00 CD 06 01 A5 [01:32:16]Write i2c OK [01:32:16]MH_I2C_Read... [01:32:16]Read from MH i2c: D1 [01:32:16]MH_I2C_Read... [01:32:16]Read from MH i2c: D1 01 00 [01:32:16]MH_I2C_Read... [01:32:16]Read from MH i2c: D1 01 00 CD 06 00 A4 [01:32:16]Write to MH i2c: 01 00 00 CE 06 D4 [01:32:16]Write i2c OK [01:32:16]MH_I2C_Read... [01:32:16]OFD Sender: No OFD packet to send [01:32:17]*** Cut start [01:32:17]*** Purtial cut [01:32:17]*** CUTSNS_PIN = 0 [01:32:17]*** Stage 1: CUTSNS_PIN = 1 [01:32:19]Read from MH i2c: 01 [01:32:19]MH_I2C_Read... [01:32:19]*** Stop cut motor [01:32:19]*** Cut end [01:32:19]Read from MH i2c: 01 07 00 [01:32:19]MH_I2C_Read... [01:32:19]Read from MH i2c: 01 07 00 CE 06 00 00 00 00 00 FF 0F E9 [01:32:19]process_action close_receipt done [01:32:19]requested_data is exist [01:32:19]produce_requested_data [01:32:19]requested_item fm.sn is exist - process it [01:32:19]wFMCommunicate request_size=4 [01:32:19]MH_SAM_APDU [01:32:19]CAPDU: 80 11 00 00 [01:32:19]Write to MH i2c: E2 08 00 CF 06 80 11 00 00 00 00 00 00 4F [01:32:19]Write i2c OK [01:32:19]MH_I2C_Read... [01:32:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:32:19]Read from MH i2c: E2 [01:32:19]MH_I2C_Read... [01:32:19]Read from MH i2c: E2 17 00 [01:32:19]MH_I2C_Read... [01:32:19]Read from MH i2c: E2 17 00 CF 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 A3 [01:32:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [01:32:19]wFMCommunicate OK [01:32:19]requested_item fd.num is exist - process it [01:32:19]SAM_PROTO_GetFieldsCounters [01:32:19]wFMCommunicate request_size=4 [01:32:19]MH_SAM_APDU [01:32:19]CAPDU: 80 13 00 00 [01:32:19]Write to MH i2c: E2 08 00 D0 06 80 13 00 00 00 00 00 00 52 [01:32:19]Write i2c OK [01:32:19]MH_I2C_Read... [01:32:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:32:19]Read from MH i2c: E2 [01:32:19]MH_I2C_Read... [01:32:19]Read from MH i2c: E2 62 00 [01:32:19]MH_I2C_Read... [01:32:19]Read from MH i2c: E2 62 00 D0 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 43 93 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [01:32:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 43 93 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:32:19]wFMCommunicate OK [01:32:19]SAM_PROTO_GetFieldsCounters done [01:32:19]requested_item shift.num is exist - process it [01:32:19]requested_item shift.opened is exist - process it [01:32:19]req_shift_opened [01:32:19]FM_GetShiftState [01:32:19]SAM_PROTO_GetShiftState [01:32:19]wFMCommunicate request_size=4 [01:32:19]MH_SAM_APDU [01:32:19]CAPDU: 80 13 01 00 [01:32:19]Write to MH i2c: E2 08 00 D1 06 80 13 01 00 00 00 00 00 54 [01:32:19]Write i2c OK [01:32:19]MH_I2C_Read... [01:32:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:32:19]Read from MH i2c: E2 [01:32:19]MH_I2C_Read... [01:32:19]Read from MH i2c: E2 0E 00 [01:32:19]MH_I2C_Read... [01:32:19]Read from MH i2c: E2 0E 00 D1 06 00 09 00 01 AC F1 BB 66 00 00 00 00 90 00 1E [01:32:19]RAPDU: 09 00 01 AC F1 BB 66 00 00 00 00 90 00 [01:32:19]wFMCommunicate OK [01:32:19]SAM_PROTO_GetShiftState done [01:32:19]FM_GetShiftState done [01:32:19]req_shift_opened done [01:32:19]requested_item shift.open_date is exist - process it [01:32:19]req_shift_open_date [01:32:19]req_shift_open_date done [01:32:19]produce_requested_data done [01:32:19]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103235,"shift.num":465,"shift.opened":1,"shift.open_date":1723593132} [01:32:19]process_action_free close_receipt [01:32:19]json_value_free [01:32:19]json_value_free done [01:32:19]process_json_proto returns [01:32:19]Send response to host [01:32:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103235,"shift.num":465,"shift.opened":1,"shift.open_date":1723593132}}} [01:32:19]free response buf [01:32:19]execute_script done [01:32:19]execute_script returns [01:32:19]free content buf [01:32:19]Sock 9.Close socket [01:32:19]Sock 9.Thread stoped [01:32:21]OFD Sender: No OFD packet to send [01:32:26]OFD Sender: No OFD packet to send [01:32:31]OFD Sender: No OFD packet to send [01:32:36]OFD Sender: No OFD packet to send [01:32:41]OFD Sender: No OFD packet to send [01:32:46]OFD Sender: No OFD packet to send [01:32:51]OFD Sender: No OFD packet to send [01:32:56]OFD Sender: No OFD packet to send [01:33:01]OFD Sender: No OFD packet to send [01:33:07]OFD Sender: No OFD packet to send [01:33:12]OFD Sender: No OFD packet to send [01:33:17]OFD Sender: No OFD packet to send [01:33:22]OFD Sender: No OFD packet to send [01:33:27]OFD Sender: No OFD packet to send [01:33:32]OFD Sender: No OFD packet to send [01:33:37]OFD Sender: No OFD packet to send [01:33:42]OFD Sender: No OFD packet to send [01:33:47]OFD Sender: No OFD packet to send [01:33:52]OFD Sender: No OFD packet to send [01:33:57]OFD Sender: No OFD packet to send [01:34:02]OFD Sender: No OFD packet to send [01:34:07]OFD Sender: No OFD packet to send [01:34:12]OFD Sender: No OFD packet to send [01:34:17]OFD Sender: No OFD packet to send [01:34:22]OFD Sender: No OFD packet to send [01:34:27]OFD Sender: No OFD packet to send [01:34:32]OFD Sender: No OFD packet to send [01:34:37]OFD Sender: No OFD packet to send [01:34:42]OFD Sender: No OFD packet to send [01:34:47]OFD Sender: No OFD packet to send [01:34:52]OFD Sender: No OFD packet to send [01:34:57]OFD Sender: No OFD packet to send [01:35:02]OFD Sender: No OFD packet to send [01:35:07]OFD Sender: No OFD packet to send [01:35:12]OFD Sender: No OFD packet to send [01:35:17]OFD Sender: No OFD packet to send [01:35:22]OFD Sender: No OFD packet to send [01:35:27]OFD Sender: No OFD packet to send [01:35:32]OFD Sender: No OFD packet to send [01:35:37]OFD Sender: No OFD packet to send [01:35:42]OFD Sender: No OFD packet to send [01:35:47]OFD Sender: No OFD packet to send [01:35:52]OFD Sender: No OFD packet to send [01:35:57]OFD Sender: No OFD packet to send [01:36:02]OFD Sender: No OFD packet to send [01:36:07]OFD Sender: No OFD packet to send [01:36:12]OFD Sender: No OFD packet to send [01:36:17]OFD Sender: No OFD packet to send [01:36:22]OFD Sender: No OFD packet to send [01:36:27]OFD Sender: No OFD packet to send [01:36:32]OFD Sender: No OFD packet to send [01:36:37]OFD Sender: No OFD packet to send [01:36:42]OFD Sender: No OFD packet to send [01:36:47]OFD Sender: No OFD packet to send [01:36:52]OFD Sender: No OFD packet to send [01:36:57]OFD Sender: No OFD packet to send [01:37:02]OFD Sender: No OFD packet to send [01:37:07]OFD Sender: No OFD packet to send [01:37:12]OFD Sender: No OFD packet to send [01:37:17]OFD Sender: No OFD packet to send [01:37:22]OFD Sender: No OFD packet to send [01:37:27]OFD Sender: No OFD packet to send [01:37:32]OFD Sender: No OFD packet to send [01:37:37]OFD Sender: No OFD packet to send [01:37:42]OFD Sender: No OFD packet to send [01:37:47]OFD Sender: No OFD packet to send [01:37:52]OFD Sender: No OFD packet to send [01:37:57]OFD Sender: No OFD packet to send [01:38:02]OFD Sender: No OFD packet to send [01:38:07]OFD Sender: No OFD packet to send [01:38:12]OFD Sender: No OFD packet to send [01:38:17]OFD Sender: No OFD packet to send [01:38:22]OFD Sender: No OFD packet to send [01:38:27]OFD Sender: No OFD packet to send [01:38:32]OFD Sender: No OFD packet to send [01:38:37]OFD Sender: No OFD packet to send [01:38:42]OFD Sender: No OFD packet to send [01:38:47]OFD Sender: No OFD packet to send [01:38:52]OFD Sender: No OFD packet to send [01:38:57]OFD Sender: No OFD packet to send [01:39:02]OFD Sender: No OFD packet to send [01:39:07]OFD Sender: No OFD packet to send [01:39:12]OFD Sender: No OFD packet to send [01:39:12]accept exits with 10 [01:39:12]New connection [01:39:12]New thread 3067342180 created [01:39:12]Thread 3067485540 joined [01:39:12]Waiting for new connection... [01:39:12] Sock 10.Parse request [01:39:12]Sock 10.Check first char [01:39:12]Sock 10.First char is OK [01:39:12]request: POST /json_proto HTTP/1.0 [01:39:12]Method: POST [01:39:12]URL: /json_proto [01:39:12]Method is POST - this is cgi request [01:39:12]url: /json_proto [01:39:12]query_string will be loaded in cgi processing [01:39:12]execute_cgi json_proto POST (null) [01:39:12]execute_cgi path=json_proto method=POST [01:39:12]POST find Content-Length [01:39:12]Host: 172.17.58.3:8080 [01:39:12]Content-Length: 937 [01:39:12]Content-Type: application/json [01:39:12] [01:39:12]POST finish read [01:39:12]Found Content-Length = 937 [01:39:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)34517", "tax_sys" : 0, "items" : [ { "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607014824583", "name": "\u041B\u044E\u0431\u0438\u043C\u044B\u0439 \u041D\u0430\u043F \u0410\u043F\u041C\u0430\u043D\u0433\u043E\u041C\u0430\u043D\u0434 0.95\u043B", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 265.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:39:12]execute_script... [01:39: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 : (3)34517", "tax_sys" : 0, "items" : [ { "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607014824583", "name": "\u041B\u044E\u0431\u0438\u043C\u044B\u0439 \u041D\u0430\u043F \u0410\u043F\u041C\u0430\u043D\u0433\u043E\u041C\u0430\u043D\u0434 0.95\u043B", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 265.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:39:12]POST & json_proto [01:39:12]process_json_proto [01:39:12]json parsed OK: [01:39:12]protocol is kg_v1.0 [01:39:12]action value=close_receipt [01:39:12]process_action close_receipt [01:39:12]cmd_close_receipt [01:39:12]MH_GetDate [01:39:12]Write to MH i2c: F0 00 00 D2 06 C7 [01:39:12]Write i2c OK [01:39:12]MH_I2C_Read... [01:39:12]Read from MH i2c: F0 [01:39:12]MH_I2C_Read... [01:39:12]Read from MH i2c: F0 09 00 [01:39:12]MH_I2C_Read... [01:39:12]Read from MH i2c: F0 09 00 D2 06 00 C1 0A BC 66 DC E4 6D 64 4E [01:39:12]GetLastDocTimeStamp 1723599135 [01:39:12]current date 1723599553 [01:39:12]FM_GetShiftState [01:39:12]SAM_PROTO_GetShiftState [01:39:12]wFMCommunicate request_size=4 [01:39:12]MH_SAM_APDU [01:39:12]CAPDU: 80 13 01 00 [01:39:12]Write to MH i2c: E2 08 00 D3 06 80 13 01 00 00 00 00 00 56 [01:39:12]Write i2c OK [01:39:12]MH_I2C_Read... [01:39:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:39:12]Read from MH i2c: E2 [01:39:12]MH_I2C_Read... [01:39:12]Read from MH i2c: E2 0E 00 [01:39:12]MH_I2C_Read... [01:39:12]Read from MH i2c: E2 0E 00 D3 06 00 09 00 01 AC F1 BB 66 00 00 00 00 90 00 20 [01:39:12]RAPDU: 09 00 01 AC F1 BB 66 00 00 00 00 90 00 [01:39:12]wFMCommunicate OK [01:39:12]SAM_PROTO_GetShiftState done [01:39:12]FM_GetShiftState done [01:39:12]opened in 1723593132 [01:39:12]opened+sec_in_day 1723679532 [01:39:12]quantity*price = 15000 [01:39:12]sum+1 = 15001 [01:39:12]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607014824583 Любимый Нап АпМангоМанд 0.95л 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 265.00 НСП 1% : 2.35 НДС 12% : 28.14 Наличными: 265.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 15 14.08.2024 01:39 Смена: 465 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103236 ФПД: 223100115538578 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240814T013913&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103236&fm=223100115538578&tin=02508201610067®Number=0000000000092718&sum=26500 0 [01:39:13]StoreToDocumentArchive [01:39:13]shift 465 fd 103236 [01:39:13]save to /storage/0465/doc_00103236 [01:39:13]save last doc name /storage/0465/doc_00103236 to /storage/kkm_last_doc_name [01:39:13]save OK [01:39:13]Clear old archive folders... [01:39:13]ProcessDocumentItem done err = 0, tmpTLVsize=400 [01:39:13]tlvbuf is 011E2540 [01:39:13]SAM_PROTO_ClearQueue [01:39:13]wFMCommunicate request_size=4 [01:39:13]MH_SAM_APDU [01:39:13]CAPDU: 80 09 00 00 [01:39:13]Write to MH i2c: E2 08 00 E0 06 80 09 00 00 00 00 00 00 58 [01:39:13]Write i2c OK [01:39:13]MH_I2C_Read... [01:39:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:39:13]Read from MH i2c: E2 [01:39:13]MH_I2C_Read... [01:39:13]Read from MH i2c: E2 03 00 [01:39:13]MH_I2C_Read... [01:39:13]Read from MH i2c: E2 03 00 E0 06 00 90 00 5A [01:39:13]RAPDU: 90 00 [01:39:13]wFMCommunicate OK [01:39:13]SAM_PROTO_ClearQueue done [01:39:13]KKMCreateOFDPacket [01:39:13]OFDProtocolAddRootSTLVToBuf [01:39:13]FM_MakeSignedData [01:39:13]FM_MakeSignedData [01:39:13]SAM_PROTO_SignData [01:39:13]wFMCommunicate request_size=4 [01:39:13]MH_SAM_APDU [01:39:13]CAPDU: 80 0D 01 02 [01:39:13]Write to MH i2c: E2 08 00 E1 06 80 0D 01 02 00 00 00 00 60 [01:39:13]Write i2c OK [01:39:13]MH_I2C_Read... [01:39:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:39:13]Read from MH i2c: E2 [01:39:13]MH_I2C_Read... [01:39:13]Read from MH i2c: E2 03 00 [01:39:13]MH_I2C_Read... [01:39:13]Read from MH i2c: E2 03 00 E1 06 00 90 00 5B [01:39:13]RAPDU: 90 00 [01:39:13]wFMCommunicate OK [01:39:13]wFMCommunicate request_size=255 [01:39:13]MH_SAM_APDU [01:39:13]CAPDU: 80 0D 02 02 FA 03 00 90 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 36 30 37 30 31 34 38 32 34 35 38 33 06 04 33 00 D0 9B D1 8E D0 B1 D0 B8 D0 BC D1 8B D0 B9 20 D0 9D D0 B0 D0 BF 20 D0 90 D0 BF D0 9C D0 B0 D0 BD D0 B3 D0 BE D0 9C D0 B0 D0 BD D0 B4 20 30 2E 39 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB [01:39:13]Write to MH i2c: E2 02 01 E2 06 80 0D 02 02 FA 00 03 00 90 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 36 30 37 30 31 34 38 32 34 35 38 33 06 04 33 00 D0 9B D1 8E D0 B1 D0 B8 D0 BC D1 8B D0 B9 20 D0 9D D0 B0 D0 BF 20 D0 90 D0 BF D0 9C D0 B0 D0 BD D0 B3 D0 BE D0 9C D0 B0 D0 BD D0 B4 20 30 2E 39 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 00 00 1C [01:39:14]Write i2c OK [01:39:14]MH_I2C_Read... [01:39:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:39:14]Read from MH i2c: E2 [01:39:14]MH_I2C_Read... [01:39:14]Read from MH i2c: E2 03 00 [01:39:14]MH_I2C_Read... [01:39:14]Read from MH i2c: E2 03 00 E2 06 00 90 00 5C [01:39:14]RAPDU: 90 00 [01:39:14]wFMCommunicate OK [01:39:14]wFMCommunicate request_size=159 [01:39:14]MH_SAM_APDU [01:39:14]CAPDU: 80 0D 02 02 9A 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 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 C1 0A BC 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 44 93 01 00 35 04 06 00 CA E8 8B 22 D2 92 [01:39:14]Write to MH i2c: E2 A2 00 E3 06 80 0D 02 02 9A 00 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 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 C1 0A BC 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 44 93 01 00 35 04 06 00 CA E8 8B 22 D2 92 00 00 33 [01:39:14]Write i2c OK [01:39:14]MH_I2C_Read... [01:39:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:39:14]Read from MH i2c: E2 [01:39:14]MH_I2C_Read... [01:39:14]Read from MH i2c: E2 03 00 [01:39:14]MH_I2C_Read... [01:39:14]Read from MH i2c: E2 03 00 E3 06 00 90 00 5D [01:39:14]RAPDU: 90 00 [01:39:14]wFMCommunicate OK [01:39:14]wFMCommunicate request_size=4 [01:39:14]MH_SAM_APDU [01:39:14]CAPDU: 80 0D 03 02 [01:39:14]Write to MH i2c: E2 08 00 E4 06 80 0D 03 02 00 00 00 00 65 [01:39:14]Write i2c OK [01:39:14]MH_I2C_Read... [01:39:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:39:14]Read from MH i2c: E2 [01:39:14]MH_I2C_Read... [01:39:14]Read from MH i2c: E2 0B 00 [01:39:14]MH_I2C_Read... [01:39:14]Read from MH i2c: E2 0B 00 E4 06 00 8E 5E EB 2E A8 DF 23 DE 90 00 F3 [01:39:14]RAPDU: 8E 5E EB 2E A8 DF 23 DE 90 00 [01:39:14]wFMCommunicate OK [01:39:14]SAM_PROTO_SignData done [01:39:14]FM_MakeSignedData done [01:39:14]CreateOFDProtocolMessage [01:39:14]wFMCommunicate request_size=4 [01:39:14]MH_SAM_APDU [01:39:14]CAPDU: 80 11 00 00 [01:39:14]Write to MH i2c: E2 08 00 E5 06 80 11 00 00 00 00 00 00 65 [01:39:14]Write i2c OK [01:39:14]MH_I2C_Read... [01:39:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:39:14]Read from MH i2c: E2 [01:39:14]MH_I2C_Read... [01:39:14]Read from MH i2c: E2 17 00 [01:39:14]MH_I2C_Read... [01:39:14]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 35 30 35 38 90 00 B9 [01:39:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [01:39:14]wFMCommunicate OK [01:39:14]CreateOFDProtocolMessage done [01:39:14]OFDSenderStorePacket 103236 [01:39:14]StoreOFDPacket docnum=103236 [01:39:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 A4 01 00 00 25 B3 9C 01 B4 ED 5A 03 01 00 03 00 90 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 36 30 37 30 31 34 38 32 34 35 38 33 06 04 33 00 D0 9B D1 8E D0 B1 D0 B8 D0 BC D1 8B D0 B9 20 D0 9D D0 B0 D0 BF 20 D0 90 D0 BF D0 9C D0 B0 D0 BD D0 B3 D0 BE D0 9C D0 B0 D0 BD D0 B4 20 30 2E 39 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 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 C1 0A BC 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 44 93 01 00 35 04 06 00 CA E8 8B 22 D2 92 8E 5E EB 2E A8 DF 23 DE [01:39:14]CheckFolder [01:39:14]dirname=/storage/ofd_packets [01:39:14]CheckFolder done [01:39:14]ProducePacketName [01:39:14]name=ofd_packets/00103236 [01:39:14]NVStorageSaveData ofd_packets/00103236 [01:39:14]File name is /storage/ofd_packets/00103236 [01:39:14]Write 450 bytes [01:39:14]NVStorageSaveData done [01:39:14]OFDSenderStorePacket done [01:39:14]KKMCreateOFDPacket done [01:39:14]NVStorageSaveData kkm_last_timestamp [01:39:14]File name is /storage/kkm_last_timestamp [01:39:14]Write 4 bytes [01:39:14]NVStorageSaveData done [01:39:14]ExternCall_PrintAddStr [01:39:14]wPrintStart [01:39:14]Write to MH i2c: 01 00 00 E6 06 EC [01:39:14]Write i2c OK [01:39:14]MH_I2C_Read... [01:39:14]Read from MH i2c: 01 [01:39:14]MH_I2C_Read... [01:39:14]Read from MH i2c: 01 07 00 [01:39:14]MH_I2C_Read... [01:39:14]Read from MH i2c: 01 07 00 E6 06 00 00 00 00 00 FF 0F 01 [01:39:14]RasterBufferAndPrint [01:39:14]line Счет N : (3)34517 [01:39:14]line ИНН: 02508201610067 [01:39:14]line Контрольно-Кассовый Чек [01:39:14]line ПРОДАЖА [01:39:14]line Товар: 46230607 [01:39:14]line Сигареты Richmond Bronze Edition [01:39:14]line 1.000 * 150.00 [01:39:14]line = 150.00 [01:39:14]line НДС 12% НСП 1% [01:39:14]line > о реализуемом товаре [01:39:14]line Товар: 4607014824583 [01:39:14]line Любимый Нап АпМангоМанд 0.95л [01:39:14]line 1.000 * 115.00 [01:39:14]line = 115.00 [01:39:14]line НДС 12% НСП 1% [01:39:14]line > о реализуемом товаре [01:39:14]line ИТОГО: 265.00 [01:39:14]line НСП 1% : 2.35 [01:39:14]line НДС 12% : 28.14 [01:39:14]line Наличными: 265.00 [01:39:14]line Безнал.: 0.00 [01:39:14]line Место: АЗС № 38 "Партнер Нефть" [01:39:14]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [01:39:14]line СНО: Общий режим [01:39:14]line Чек 15 14.08.2024 01:39 [01:39:14]line Смена: 465 ФФД: 1.0 [01:39:14]line ЗНМ: 0300000126 [01:39:14]line РНМ: 0000000000092718 [01:39:14]line Версия ККМ: 001 [01:39:14]line ФМ: 0000000000875058 [01:39:14]line ФД: 103236 [01:39:14]line ФПД: 223100115538578 [01:39:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240814T013913&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103236&fm=223100115538578&tin=02508201610067®Number=0000000000092718&sum=26500 [01:39:14]line 0 [01:39:14]written 0, free lines is 4095 [01:39:14]OFD Sender: Processing packet 103236 [packets to send 69, broken 68] [01:39:14]ProducePacketName [01:39:14]name=ofd_packets/00103236 [01:39:14]OFD Sender: To server: pG, [01:39:14]CommunicateWithHost lk.salyk.kg:30040 [01:39:14]ConnectInit lk.salyk.kg [01:39:14]Connected sock=9 [01:39:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 A4 01 00 00 25 B3 9C 01 B4 ED 5A 03 01 00 03 00 90 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 36 30 37 30 31 34 38 32 34 35 38 33 06 04 33 00 D0 9B D1 8E D0 B1 D0 B8 D0 BC D1 8B D0 B9 20 D0 9D D0 B0 D0 BF 20 D0 90 D0 BF D0 9C D0 B0 D0 BD D0 B3 D0 BE D0 9C D0 B0 D0 BD D0 B4 20 30 2E 39 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 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 C1 0A BC 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 44 93 01 00 35 04 06 00 CA E8 8B 22 D2 92 8E 5E EB 2E A8 DF 23 DE [01:39:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 BC DD 47 00 90 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 44 93 01 00 F4 03 04 00 33 B1 BB 66 B6 04 01 00 00 B4 01 E8 B7 E3 4C 26 88 [01:39:14]CommunicateWithHost err = 0 [01:39:14]CheckOFDResponse [01:39:14]1017 (14) - 77093643461234 [01:39:14]1041 (16) - 0000000000875058 [01:39:14]1040 (4) - 103236 [01:39:14]1012 (4) - 13.08.2024 19:17 [01:39:14]1206 (1) - 0 [01:39:14]OFD Sender: Remove packet 103236 [01:39:14]ProducePacketName [01:39:14]name=ofd_packets/00103236 [01:39:14]NVStorageDeleteData [01:39:15]Write to MH i2c: 01 00 00 16 07 1D [01:39:15]Write i2c OK [01:39:15]MH_I2C_Read... [01:39:15]Read from MH i2c: 01 [01:39:15]MH_I2C_Read... [01:39:15]Read from MH i2c: 01 07 00 [01:39:15]MH_I2C_Read... [01:39:15]Read from MH i2c: 01 07 00 16 07 00 00 00 00 00 6B 0C 9B [01:39:15]RasterBufferAndPrint [01:39:15]line [01:39:15]line [01:39:15]line [01:39:15]line [01:39:15]line [01:39:15]written 0, free lines is 3188 [01:39:15]MH_Cut [01:39:15]Write to MH i2c: D1 01 00 1D 07 01 F6 [01:39:15]Write i2c OK [01:39:15]MH_I2C_Read... [01:39:15]Read from MH i2c: D1 [01:39:15]MH_I2C_Read... [01:39:15]Read from MH i2c: D1 01 00 [01:39:15]MH_I2C_Read... [01:39:15]Read from MH i2c: D1 01 00 1D 07 00 F5 [01:39:15]Write to MH i2c: 01 00 00 1E 07 25 [01:39:15]Write i2c OK [01:39:15]MH_I2C_Read... [01:39:15]OFD Sender: No OFD packet to send [01:39:15]*** Cut start [01:39:15]*** Purtial cut [01:39:15]*** Stage 1: CUTSNS_PIN = 1 [01:39:16]Read from MH i2c: 01 [01:39:16]MH_I2C_Read... [01:39:16]*** Stop cut motor [01:39:16]*** Cut end [01:39:16]Read from MH i2c: 01 07 00 [01:39:16]MH_I2C_Read... [01:39:16]Read from MH i2c: 01 07 00 1E 07 00 00 00 00 00 FF 0F 3A [01:39:16]process_action close_receipt done [01:39:16]requested_data is exist [01:39:16]produce_requested_data [01:39:16]requested_item fm.sn is exist - process it [01:39:16]wFMCommunicate request_size=4 [01:39:16]MH_SAM_APDU [01:39:16]CAPDU: 80 11 00 00 [01:39:16]Write to MH i2c: E2 08 00 1F 07 80 11 00 00 00 00 00 00 A0 [01:39:16]Write i2c OK [01:39:16]MH_I2C_Read... [01:39:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:39:16]Read from MH i2c: E2 [01:39:16]MH_I2C_Read... [01:39:16]Read from MH i2c: E2 17 00 [01:39:16]MH_I2C_Read... [01:39:16]Read from MH i2c: E2 17 00 1F 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 F4 [01:39:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [01:39:16]wFMCommunicate OK [01:39:16]requested_item fd.num is exist - process it [01:39:16]SAM_PROTO_GetFieldsCounters [01:39:16]wFMCommunicate request_size=4 [01:39:16]MH_SAM_APDU [01:39:16]CAPDU: 80 13 00 00 [01:39:16]Write to MH i2c: E2 08 00 20 07 80 13 00 00 00 00 00 00 A3 [01:39:16]Write i2c OK [01:39:16]MH_I2C_Read... [01:39:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:39:16]Read from MH i2c: E2 [01:39:16]MH_I2C_Read... [01:39:16]Read from MH i2c: E2 62 00 [01:39:16]MH_I2C_Read... [01:39:16]Read from MH i2c: E2 62 00 20 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 44 93 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [01:39:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 44 93 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:39:16]wFMCommunicate OK [01:39:16]SAM_PROTO_GetFieldsCounters done [01:39:16]requested_item shift.num is exist - process it [01:39:16]requested_item shift.opened is exist - process it [01:39:16]req_shift_opened [01:39:16]FM_GetShiftState [01:39:16]SAM_PROTO_GetShiftState [01:39:16]wFMCommunicate request_size=4 [01:39:16]MH_SAM_APDU [01:39:16]CAPDU: 80 13 01 00 [01:39:16]Write to MH i2c: E2 08 00 21 07 80 13 01 00 00 00 00 00 A5 [01:39:16]Write i2c OK [01:39:16]MH_I2C_Read... [01:39:16]Read from MH i2c: E2 [01:39:16]MH_I2C_Read... [01:39:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:39:16]Read from MH i2c: E2 0E 00 [01:39:16]MH_I2C_Read... [01:39:16]Read from MH i2c: E2 0E 00 21 07 00 09 00 01 AC F1 BB 66 00 00 00 00 90 00 6F [01:39:16]RAPDU: 09 00 01 AC F1 BB 66 00 00 00 00 90 00 [01:39:16]wFMCommunicate OK [01:39:16]SAM_PROTO_GetShiftState done [01:39:16]FM_GetShiftState done [01:39:16]req_shift_opened done [01:39:16]requested_item shift.open_date is exist - process it [01:39:16]req_shift_open_date [01:39:16]req_shift_open_date done [01:39:16]produce_requested_data done [01:39:16]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103236,"shift.num":465,"shift.opened":1,"shift.open_date":1723593132} [01:39:16]process_action_free close_receipt [01:39:16]json_value_free [01:39:16]json_value_free done [01:39:16]process_json_proto returns [01:39:16]Send response to host [01:39:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103236,"shift.num":465,"shift.opened":1,"shift.open_date":1723593132}}} [01:39:16]free response buf [01:39:16]execute_script done [01:39:16]execute_script returns [01:39:16]free content buf [01:39:16]Sock 10.Close socket [01:39:16]Sock 10.Thread stoped [01:39:20]OFD Sender: No OFD packet to send [01:39:25]OFD Sender: No OFD packet to send [01:39:30]OFD Sender: No OFD packet to send [01:39:35]OFD Sender: No OFD packet to send [01:39:40]OFD Sender: No OFD packet to send [01:39:45]OFD Sender: No OFD packet to send [01:39:50]OFD Sender: No OFD packet to send [01:39:55]OFD Sender: No OFD packet to send [01:40:00]OFD Sender: No OFD packet to send [01:40:05]OFD Sender: No OFD packet to send [01:40:10]OFD Sender: No OFD packet to send [01:40:15]OFD Sender: No OFD packet to send [01:40:20]OFD Sender: No OFD packet to send [01:40:25]OFD Sender: No OFD packet to send [01:40:30]OFD Sender: No OFD packet to send [01:40:35]OFD Sender: No OFD packet to send [01:40:40]OFD Sender: No OFD packet to send [01:40:45]OFD Sender: No OFD packet to send [01:40:50]OFD Sender: No OFD packet to send [01:40:55]OFD Sender: No OFD packet to send [01:41:00]OFD Sender: No OFD packet to send [01:41:05]OFD Sender: No OFD packet to send [01:41:10]OFD Sender: No OFD packet to send [01:41:15]OFD Sender: No OFD packet to send [01:41:20]OFD Sender: No OFD packet to send [01:41:25]OFD Sender: No OFD packet to send [01:41:30]OFD Sender: No OFD packet to send [01:41:35]OFD Sender: No OFD packet to send [01:41:40]OFD Sender: No OFD packet to send [01:41:45]OFD Sender: No OFD packet to send [01:41:50]OFD Sender: No OFD packet to send [01:41:55]OFD Sender: No OFD packet to send [01:42:00]OFD Sender: No OFD packet to send [01:42:05]OFD Sender: No OFD packet to send [01:42:10]OFD Sender: No OFD packet to send [01:42:15]OFD Sender: No OFD packet to send [01:42:20]OFD Sender: No OFD packet to send [01:42:25]OFD Sender: No OFD packet to send [01:42:30]OFD Sender: No OFD packet to send [01:42:35]OFD Sender: No OFD packet to send [01:42:40]OFD Sender: No OFD packet to send [01:42:45]OFD Sender: No OFD packet to send [01:42:50]OFD Sender: No OFD packet to send [01:42:55]OFD Sender: No OFD packet to send [01:43:00]OFD Sender: No OFD packet to send [01:43:05]OFD Sender: No OFD packet to send [01:43:10]OFD Sender: No OFD packet to send [01:43:15]OFD Sender: No OFD packet to send [01:43:20]OFD Sender: No OFD packet to send [01:43:25]OFD Sender: No OFD packet to send [01:43:30]OFD Sender: No OFD packet to send [01:43:35]OFD Sender: No OFD packet to send [01:43:40]OFD Sender: No OFD packet to send [01:43:45]OFD Sender: No OFD packet to send [01:43:50]OFD Sender: No OFD packet to send [01:43:55]OFD Sender: No OFD packet to send [01:44:00]OFD Sender: No OFD packet to send [01:44:05]OFD Sender: No OFD packet to send [01:44:10]OFD Sender: No OFD packet to send [01:44:15]OFD Sender: No OFD packet to send [01:44:20]OFD Sender: No OFD packet to send [01:44:25]OFD Sender: No OFD packet to send [01:44:30]OFD Sender: No OFD packet to send [01:44:35]OFD Sender: No OFD packet to send [01:44:40]OFD Sender: No OFD packet to send [01:44:45]OFD Sender: No OFD packet to send [01:44:50]OFD Sender: No OFD packet to send [01:44:55]OFD Sender: No OFD packet to send [01:45:00]OFD Sender: No OFD packet to send [01:45:05]OFD Sender: No OFD packet to send [01:45:10]OFD Sender: No OFD packet to send [01:45:15]OFD Sender: No OFD packet to send [01:45:20]OFD Sender: No OFD packet to send [01:45:25]OFD Sender: No OFD packet to send [01:45:30]OFD Sender: No OFD packet to send [01:45:35]OFD Sender: No OFD packet to send [01:45:40]OFD Sender: No OFD packet to send [01:45:45]OFD Sender: No OFD packet to send [01:45:50]OFD Sender: No OFD packet to send [01:45:55]OFD Sender: No OFD packet to send [01:46:00]OFD Sender: No OFD packet to send [01:46:05]OFD Sender: No OFD packet to send [01:46:10]OFD Sender: No OFD packet to send [01:46:15]OFD Sender: No OFD packet to send [01:46:20]OFD Sender: No OFD packet to send [01:46:25]OFD Sender: No OFD packet to send [01:46:30]OFD Sender: No OFD packet to send [01:46:35]OFD Sender: No OFD packet to send [01:46:40]OFD Sender: No OFD packet to send [01:46:45]OFD Sender: No OFD packet to send [01:46:50]OFD Sender: No OFD packet to send [01:46:55]OFD Sender: No OFD packet to send [01:47:00]OFD Sender: No OFD packet to send [01:47:05]OFD Sender: No OFD packet to send [01:47:10]OFD Sender: No OFD packet to send [01:47:15]OFD Sender: No OFD packet to send [01:47:20]OFD Sender: No OFD packet to send [01:47:25]OFD Sender: No OFD packet to send [01:47:30]OFD Sender: No OFD packet to send [01:47:35]OFD Sender: No OFD packet to send [01:47:40]OFD Sender: No OFD packet to send [01:47:45]OFD Sender: No OFD packet to send [01:47:50]OFD Sender: No OFD packet to send [01:47:55]OFD Sender: No OFD packet to send [01:48:00]OFD Sender: No OFD packet to send [01:48:05]OFD Sender: No OFD packet to send [01:48:10]OFD Sender: No OFD packet to send [01:48:15]OFD Sender: No OFD packet to send [01:48:20]OFD Sender: No OFD packet to send [01:48:25]OFD Sender: No OFD packet to send [01:48:30]OFD Sender: No OFD packet to send [01:48:35]OFD Sender: No OFD packet to send [01:48:40]OFD Sender: No OFD packet to send [01:48:45]OFD Sender: No OFD packet to send [01:48:50]OFD Sender: No OFD packet to send [01:48:55]OFD Sender: No OFD packet to send [01:49:00]OFD Sender: No OFD packet to send [01:49:05]OFD Sender: No OFD packet to send [01:49:10]OFD Sender: No OFD packet to send [01:49:15]OFD Sender: No OFD packet to send [01:49:20]OFD Sender: No OFD packet to send [01:49:25]OFD Sender: No OFD packet to send [01:49:30]OFD Sender: No OFD packet to send [01:49:35]OFD Sender: No OFD packet to send [01:49:40]OFD Sender: No OFD packet to send [01:49:45]OFD Sender: No OFD packet to send [01:49:50]OFD Sender: No OFD packet to send [01:49:56]OFD Sender: No OFD packet to send [01:50:01]OFD Sender: No OFD packet to send [01:50:06]OFD Sender: No OFD packet to send [01:50:11]OFD Sender: No OFD packet to send [01:50:16]OFD Sender: No OFD packet to send [01:50:21]OFD Sender: No OFD packet to send [01:50:26]OFD Sender: No OFD packet to send [01:50:31]OFD Sender: No OFD packet to send [01:50:36]OFD Sender: No OFD packet to send [01:50:41]OFD Sender: No OFD packet to send [01:50:46]OFD Sender: No OFD packet to send [01:50:51]OFD Sender: No OFD packet to send [01:50:56]OFD Sender: No OFD packet to send [01:51:01]OFD Sender: No OFD packet to send [01:51:06]OFD Sender: No OFD packet to send [01:51:11]OFD Sender: No OFD packet to send [01:51:16]OFD Sender: No OFD packet to send [01:51:21]OFD Sender: No OFD packet to send [01:51:26]OFD Sender: No OFD packet to send [01:51:31]OFD Sender: No OFD packet to send [01:51:36]OFD Sender: No OFD packet to send [01:51:41]OFD Sender: No OFD packet to send [01:51:46]OFD Sender: No OFD packet to send [01:51:51]OFD Sender: No OFD packet to send [01:51:56]OFD Sender: No OFD packet to send [01:52:01]OFD Sender: No OFD packet to send [01:52:06]OFD Sender: No OFD packet to send [01:52:11]OFD Sender: No OFD packet to send [01:52:16]OFD Sender: No OFD packet to send [01:52:21]OFD Sender: No OFD packet to send [01:52:26]OFD Sender: No OFD packet to send [01:52:31]OFD Sender: No OFD packet to send [01:52:36]OFD Sender: No OFD packet to send [01:52:41]OFD Sender: No OFD packet to send [01:52:46]OFD Sender: No OFD packet to send [01:52:51]OFD Sender: No OFD packet to send [01:52:56]OFD Sender: No OFD packet to send [01:53:01]OFD Sender: No OFD packet to send [01:53:06]OFD Sender: No OFD packet to send [01:53:11]OFD Sender: No OFD packet to send [01:53:16]OFD Sender: No OFD packet to send [01:53:21]OFD Sender: No OFD packet to send [01:53:26]OFD Sender: No OFD packet to send [01:53:31]OFD Sender: No OFD packet to send [01:53:36]OFD Sender: No OFD packet to send [01:53:41]OFD Sender: No OFD packet to send [01:53:46]OFD Sender: No OFD packet to send [01:53:51]OFD Sender: No OFD packet to send [01:53:56]OFD Sender: No OFD packet to send [01:54:01]OFD Sender: No OFD packet to send [01:54:06]OFD Sender: No OFD packet to send [01:54:11]OFD Sender: No OFD packet to send [01:54:16]OFD Sender: No OFD packet to send [01:54:21]OFD Sender: No OFD packet to send [01:54:26]OFD Sender: No OFD packet to send [01:54:31]OFD Sender: No OFD packet to send [01:54:36]OFD Sender: No OFD packet to send [01:54:41]OFD Sender: No OFD packet to send [01:54:46]OFD Sender: No OFD packet to send [01:54:51]OFD Sender: No OFD packet to send [01:54:56]OFD Sender: No OFD packet to send [01:55:01]OFD Sender: No OFD packet to send [01:55:06]OFD Sender: No OFD packet to send [01:55:10]accept exits with 7 [01:55:10]New connection [01:55:10]New thread 3067485540 created [01:55:10]Thread 3067342180 joined [01:55:10]Waiting for new connection... [01:55:10] Sock 7.Parse request [01:55:10]Sock 7.Check first char [01:55:10]Sock 7.First char is OK [01:55:10]request: POST /json_proto HTTP/1.0 [01:55:10]Method: POST [01:55:10]URL: /json_proto [01:55:10]Method is POST - this is cgi request [01:55:10]url: /json_proto [01:55:10]query_string will be loaded in cgi processing [01:55:10]execute_cgi json_proto POST (null) [01:55:10]execute_cgi path=json_proto method=POST [01:55:10]POST find Content-Length [01:55:10]Host: 172.17.58.3:8080 [01:55:10]Content-Length: 676 [01:55:10]Content-Type: application/json [01:55:10] [01:55:10]POST finish read [01:55:10]Found Content-Length = 676 [01:55:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160857", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 3.040, "sum" : 200.34, "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" ] } } [01:55:10]execute_script... [01:55: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)160857", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 3.040, "sum" : 200.34, "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" ] } } [01:55:10]POST & json_proto [01:55:10]process_json_proto [01:55:10]json parsed OK: [01:55:10]protocol is kg_v1.0 [01:55:10]action value=close_receipt [01:55:10]process_action close_receipt [01:55:10]cmd_close_receipt [01:55:10]MH_GetDate [01:55:10]Write to MH i2c: F0 00 00 22 07 18 [01:55:10]Write i2c OK [01:55:10]MH_I2C_Read... [01:55:10]Read from MH i2c: F0 [01:55:10]MH_I2C_Read... [01:55:10]Read from MH i2c: F0 09 00 [01:55:10]MH_I2C_Read... [01:55:10]Read from MH i2c: F0 09 00 22 07 00 7F 0E BC 66 DC E4 6D 64 61 [01:55:10]GetLastDocTimeStamp 1723599553 [01:55:10]current date 1723600511 [01:55:10]FM_GetShiftState [01:55:10]SAM_PROTO_GetShiftState [01:55:10]wFMCommunicate request_size=4 [01:55:10]MH_SAM_APDU [01:55:10]CAPDU: 80 13 01 00 [01:55:10]Write to MH i2c: E2 08 00 23 07 80 13 01 00 00 00 00 00 A7 [01:55:10]Write i2c OK [01:55:10]MH_I2C_Read... [01:55:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:55:10]Read from MH i2c: E2 [01:55:10]MH_I2C_Read... [01:55:10]Read from MH i2c: E2 0E 00 [01:55:10]MH_I2C_Read... [01:55:10]Read from MH i2c: E2 0E 00 23 07 00 09 00 01 AC F1 BB 66 00 00 00 00 90 00 71 [01:55:10]RAPDU: 09 00 01 AC F1 BB 66 00 00 00 00 90 00 [01:55:10]wFMCommunicate OK [01:55:10]SAM_PROTO_GetShiftState done [01:55:10]FM_GetShiftState done [01:55:10]opened in 1723593132 [01:55:10]opened+sec_in_day 1723679532 [01:55:10]quantity*price = 20033 [01:55:10]sum+1 = 20035 [01:55:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.27 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 16 14.08.2024 01:55 Смена: 465 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103237 ФПД: 128271911530525 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240814T015511&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103237&fm=128271911530525&tin=02508201610067®Number=0000000000092718&sum=20000 [01:55:11]StoreToDocumentArchive [01:55:11]shift 465 fd 103237 [01:55:11]save to /storage/0465/doc_00103237 [01:55:11]save last doc name /storage/0465/doc_00103237 to /storage/kkm_last_doc_name [01:55:11]save OK [01:55:11]Clear old archive folders... [01:55:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:55:11]tlvbuf is 011EE4C0 [01:55:11]SAM_PROTO_ClearQueue [01:55:11]wFMCommunicate request_size=4 [01:55:11]MH_SAM_APDU [01:55:11]CAPDU: 80 09 00 00 [01:55:11]Write to MH i2c: E2 08 00 30 07 80 09 00 00 00 00 00 00 A9 [01:55:11]Write i2c OK [01:55:11]MH_I2C_Read... [01:55:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:55:11]Read from MH i2c: E2 [01:55:11]MH_I2C_Read... [01:55:11]Read from MH i2c: E2 03 00 [01:55:11]MH_I2C_Read... [01:55:11]Read from MH i2c: E2 03 00 30 07 00 90 00 AB [01:55:11]RAPDU: 90 00 [01:55:11]wFMCommunicate OK [01:55:11]SAM_PROTO_ClearQueue done [01:55:11]KKMCreateOFDPacket [01:55:11]OFDProtocolAddRootSTLVToBuf [01:55:11]FM_MakeSignedData [01:55:11]FM_MakeSignedData [01:55:11]SAM_PROTO_SignData [01:55:11]wFMCommunicate request_size=4 [01:55:11]MH_SAM_APDU [01:55:11]CAPDU: 80 0D 01 02 [01:55:11]Write to MH i2c: E2 08 00 31 07 80 0D 01 02 00 00 00 00 B1 [01:55:11]Write i2c OK [01:55:11]MH_I2C_Read... [01:55:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:55:11]Read from MH i2c: E2 [01:55:11]MH_I2C_Read... [01:55:11]Read from MH i2c: E2 03 00 [01:55:11]MH_I2C_Read... [01:55:11]Read from MH i2c: E2 03 00 31 07 00 90 00 AC [01:55:11]RAPDU: 90 00 [01:55:11]wFMCommunicate OK [01:55:11]wFMCommunicate request_size=255 [01:55:11]MH_SAM_APDU [01:55: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 E0 0B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 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 7F 0E BC 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 45 93 01 00 35 04 06 00 74 [01:55:11]Write to MH i2c: E2 02 01 32 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 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 7F 0E BC 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 45 93 01 00 35 04 06 00 74 00 00 D2 [01:55:11]Write i2c OK [01:55:11]MH_I2C_Read... [01:55:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:55:11]Read from MH i2c: E2 [01:55:11]MH_I2C_Read... [01:55:11]Read from MH i2c: E2 03 00 [01:55:11]MH_I2C_Read... [01:55:11]Read from MH i2c: E2 03 00 32 07 00 90 00 AD [01:55:11]RAPDU: 90 00 [01:55:11]wFMCommunicate OK [01:55:11]wFMCommunicate request_size=10 [01:55:11]MH_SAM_APDU [01:55:11]CAPDU: 80 0D 02 02 05 A9 A1 B8 B0 1D [01:55:11]Write to MH i2c: E2 0D 00 33 07 80 0D 02 02 05 00 A9 A1 B8 B0 1D 00 00 8D [01:55:11]Write i2c OK [01:55:11]MH_I2C_Read... [01:55:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:55:12]Read from MH i2c: E2 [01:55:12]MH_I2C_Read... [01:55:12]Read from MH i2c: E2 03 00 [01:55:12]MH_I2C_Read... [01:55:12]Read from MH i2c: E2 03 00 33 07 00 90 00 AE [01:55:12]RAPDU: 90 00 [01:55:12]wFMCommunicate OK [01:55:12]wFMCommunicate request_size=4 [01:55:12]MH_SAM_APDU [01:55:12]CAPDU: 80 0D 03 02 [01:55:12]Write to MH i2c: E2 08 00 34 07 80 0D 03 02 00 00 00 00 B6 [01:55:12]Write i2c OK [01:55:12]MH_I2C_Read... [01:55:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:55:12]Read from MH i2c: E2 [01:55:12]MH_I2C_Read... [01:55:12]Read from MH i2c: E2 0B 00 [01:55:12]MH_I2C_Read... [01:55:12]Read from MH i2c: E2 0B 00 34 07 00 DF DF 4E FA 79 34 D4 38 90 00 76 [01:55:12]RAPDU: DF DF 4E FA 79 34 D4 38 90 00 [01:55:12]wFMCommunicate OK [01:55:12]SAM_PROTO_SignData done [01:55:12]FM_MakeSignedData done [01:55:12]CreateOFDProtocolMessage [01:55:12]wFMCommunicate request_size=4 [01:55:12]MH_SAM_APDU [01:55:12]CAPDU: 80 11 00 00 [01:55:12]Write to MH i2c: E2 08 00 35 07 80 11 00 00 00 00 00 00 B6 [01:55:12]Write i2c OK [01:55:12]MH_I2C_Read... [01:55:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:55:12]Read from MH i2c: E2 [01:55:12]MH_I2C_Read... [01:55:12]Read from MH i2c: E2 17 00 [01:55:12]MH_I2C_Read... [01:55:12]Read from MH i2c: E2 17 00 35 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 0A [01:55:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [01:55:12]wFMCommunicate OK [01:55:12]CreateOFDProtocolMessage done [01:55:12]OFDSenderStorePacket 103237 [01:55:12]StoreOFDPacket docnum=103237 [01:55:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 32 BD 07 01 84 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 E0 0B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 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 7F 0E BC 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 45 93 01 00 35 04 06 00 74 A9 A1 B8 B0 1D DF DF 4E FA 79 34 D4 38 [01:55:12]CheckFolder [01:55:12]dirname=/storage/ofd_packets [01:55:12]CheckFolder done [01:55:12]ProducePacketName [01:55:12]name=ofd_packets/00103237 [01:55:12]NVStorageSaveData ofd_packets/00103237 [01:55:12]File name is /storage/ofd_packets/00103237 [01:55:12]Write 301 bytes [01:55:12]NVStorageSaveData done [01:55:12]OFDSenderStorePacket done [01:55:12]KKMCreateOFDPacket done [01:55:12]NVStorageSaveData kkm_last_timestamp [01:55:12]File name is /storage/kkm_last_timestamp [01:55:12]Write 4 bytes [01:55:12]NVStorageSaveData done [01:55:12]OFD Sender: Processing packet 103237 [packets to send 69, broken 68] [01:55:12]ProducePacketName [01:55:12]name=ofd_packets/00103237 [01:55:12]OFD Sender: To server: pG, [01:55:12]CommunicateWithHost lk.salyk.kg:30040 [01:55:12]ConnectInit lk.salyk.kg [01:55:12]ExternCall_PrintAddStr [01:55:12]wPrintStart [01:55:12]Write to MH i2c: 01 00 00 36 07 3D [01:55:12]Write i2c OK [01:55:12]MH_I2C_Read... [01:55:12]Read from MH i2c: 01 [01:55:12]MH_I2C_Read... [01:55:12]Read from MH i2c: 01 07 00 [01:55:12]MH_I2C_Read... [01:55:12]Read from MH i2c: 01 07 00 36 07 00 00 00 00 00 FF 0F 52 [01:55:12]RasterBufferAndPrint [01:55:12]line Счет N : (1)160857 [01:55:12]line ИНН: 02508201610067 [01:55:12]line Контрольно-Кассовый Чек [01:55:12]line ПРОДАЖА [01:55:12]line ТРК (МРК, ГНК) : 3 [01:55:12]line Товар: 2710124130 [01:55:12]line Аи-92-К-5 [01:55:12]line 3.040 * 65.90 [01:55:12]line = 200.34 [01:55:12]line НДС 12% НСП 1% [01:55:12]line > о реализуемом товаре [01:55:12]line ОКРУГЛЕНИЕ: -0.34 [01:55:12]line ИТОГО: 200.00 [01:55:12]line Внесено: 200.00 [01:55:12]line СДАЧА: 0.00 [01:55:12]line НСП 1% : 1.77 [01:55:12]line НДС 12% : 21.27 [01:55:12]line Наличными: 200.00 [01:55:12]line Безнал.: 0.00 [01:55:12]line Место: АЗС № 38 "Партнер Нефть" [01:55:12]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [01:55:12]line СНО: Общий режим [01:55:12]line Чек 16 14.08.2024 01:55 [01:55:12]line Смена: 465 ФФД: 1.0 [01:55:12]line ЗНМ: 0300000126 [01:55:12]line РНМ: 0000000000092718 [01:55:12]line Версия ККМ: 001 [01:55:12]line ФМ: 0000000000875058 [01:55:12]line ФД: 103237 [01:55:12]line ФПД: 128271911530525 [01:55:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240814T015511&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103237&fm=128271911530525&tin=02508201610067®Number=0000000000092718&sum=20000 [01:55:12]Connected sock=11 [01:55:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 32 BD 07 01 84 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 E0 0B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 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 7F 0E BC 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 45 93 01 00 35 04 06 00 74 A9 A1 B8 B0 1D DF DF 4E FA 79 34 D4 38 [01:55:12]written 0, free lines is 4095 [01:55:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 68 3A 47 00 D0 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 45 93 01 00 F4 03 04 00 F0 B4 BB 66 B6 04 01 00 00 AA 5A AD 60 4E 7D 71 3C [01:55:12]CommunicateWithHost err = 0 [01:55:12]CheckOFDResponse [01:55:12]1017 (14) - 77093643461234 [01:55:12]1041 (16) - 0000000000875058 [01:55:12]1040 (4) - 103237 [01:55:12]1012 (4) - 13.08.2024 19:33 [01:55:12]1206 (1) - 0 [01:55:12]OFD Sender: Remove packet 103237 [01:55:12]ProducePacketName [01:55:12]name=ofd_packets/00103237 [01:55:12]NVStorageDeleteData [01:55:12]Write to MH i2c: 01 00 00 61 07 68 [01:55:12]Write i2c OK [01:55:12]MH_I2C_Read... [01:55:12]Read from MH i2c: 01 [01:55:12]MH_I2C_Read... [01:55:12]Read from MH i2c: 01 07 00 [01:55:12]MH_I2C_Read... [01:55:12]Read from MH i2c: 01 07 00 61 07 00 00 00 00 00 DC 0C 57 [01:55:12]RasterBufferAndPrint [01:55:12]line [01:55:12]line [01:55:12]line [01:55:12]line [01:55:12]line [01:55:12]written 0, free lines is 3298 [01:55:12]MH_Cut [01:55:12]Write to MH i2c: D1 01 00 68 07 01 41 [01:55:12]Write i2c OK [01:55:12]MH_I2C_Read... [01:55:12]Read from MH i2c: D1 [01:55:12]MH_I2C_Read... [01:55:12]Read from MH i2c: D1 01 00 [01:55:12]MH_I2C_Read... [01:55:12]Read from MH i2c: D1 01 00 68 07 00 40 [01:55:12]Write to MH i2c: 01 00 00 69 07 70 [01:55:12]Write i2c OK [01:55:12]MH_I2C_Read... [01:55:13]OFD Sender: No OFD packet to send [01:55:13]*** Cut start [01:55:13]*** Purtial cut [01:55:13]*** CUTSNS_PIN = 0 [01:55:13]*** Stage 1: CUTSNS_PIN = 1 [01:55:15]Read from MH i2c: 01 [01:55:15]MH_I2C_Read... [01:55:15]*** Stop cut motor [01:55:15]*** Cut end [01:55:15]Read from MH i2c: 01 07 00 [01:55:15]MH_I2C_Read... [01:55:15]Read from MH i2c: 01 07 00 69 07 00 00 00 00 00 FF 0F 85 [01:55:15]process_action close_receipt done [01:55:15]requested_data is exist [01:55:15]produce_requested_data [01:55:15]requested_item fm.sn is exist - process it [01:55:15]wFMCommunicate request_size=4 [01:55:15]MH_SAM_APDU [01:55:15]CAPDU: 80 11 00 00 [01:55:15]Write to MH i2c: E2 08 00 6A 07 80 11 00 00 00 00 00 00 EB [01:55:15]Write i2c OK [01:55:15]MH_I2C_Read... [01:55:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:55:15]Read from MH i2c: E2 [01:55:15]MH_I2C_Read... [01:55:15]Read from MH i2c: E2 17 00 [01:55:15]MH_I2C_Read... [01:55:15]Read from MH i2c: E2 17 00 6A 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 3F [01:55:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [01:55:15]wFMCommunicate OK [01:55:15]requested_item fd.num is exist - process it [01:55:15]SAM_PROTO_GetFieldsCounters [01:55:15]wFMCommunicate request_size=4 [01:55:15]MH_SAM_APDU [01:55:15]CAPDU: 80 13 00 00 [01:55:15]Write to MH i2c: E2 08 00 6B 07 80 13 00 00 00 00 00 00 EE [01:55:15]Write i2c OK [01:55:15]MH_I2C_Read... [01:55:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:55:15]Read from MH i2c: E2 [01:55:15]MH_I2C_Read... [01:55:15]Read from MH i2c: E2 62 00 [01:55:15]MH_I2C_Read... [01:55:15]Read from MH i2c: E2 62 00 6B 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 45 93 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [01:55:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 45 93 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:55:15]wFMCommunicate OK [01:55:15]SAM_PROTO_GetFieldsCounters done [01:55:15]requested_item shift.num is exist - process it [01:55:15]requested_item shift.opened is exist - process it [01:55:15]req_shift_opened [01:55:15]FM_GetShiftState [01:55:15]SAM_PROTO_GetShiftState [01:55:15]wFMCommunicate request_size=4 [01:55:15]MH_SAM_APDU [01:55:15]CAPDU: 80 13 01 00 [01:55:15]Write to MH i2c: E2 08 00 6C 07 80 13 01 00 00 00 00 00 F0 [01:55:15]Write i2c OK [01:55:15]MH_I2C_Read... [01:55:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:55:16]Read from MH i2c: E2 [01:55:16]MH_I2C_Read... [01:55:16]Read from MH i2c: E2 0E 00 [01:55:16]MH_I2C_Read... [01:55:16]Read from MH i2c: E2 0E 00 6C 07 00 09 00 01 AC F1 BB 66 00 00 00 00 90 00 BA [01:55:16]RAPDU: 09 00 01 AC F1 BB 66 00 00 00 00 90 00 [01:55:16]wFMCommunicate OK [01:55:16]SAM_PROTO_GetShiftState done [01:55:16]FM_GetShiftState done [01:55:16]req_shift_opened done [01:55:16]requested_item shift.open_date is exist - process it [01:55:16]req_shift_open_date [01:55:16]req_shift_open_date done [01:55:16]produce_requested_data done [01:55:16]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103237,"shift.num":465,"shift.opened":1,"shift.open_date":1723593132} [01:55:16]process_action_free close_receipt [01:55:16]json_value_free [01:55:16]json_value_free done [01:55:16]process_json_proto returns [01:55:16]Send response to host [01:55:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103237,"shift.num":465,"shift.opened":1,"shift.open_date":1723593132}}} [01:55:16]free response buf [01:55:16]execute_script done [01:55:16]execute_script returns [01:55:16]free content buf [01:55:16]Sock 7.Close socket [01:55:16]Sock 7.Thread stoped [01:55:18]OFD Sender: No OFD packet to send [01:55:23]OFD Sender: No OFD packet to send [01:55:28]OFD Sender: No OFD packet to send [01:55:33]OFD Sender: No OFD packet to send [01:55:38]OFD Sender: No OFD packet to send [01:55:43]OFD Sender: No OFD packet to send [01:55:48]OFD Sender: No OFD packet to send [01:55:53]OFD Sender: No OFD packet to send [01:55:58]OFD Sender: No OFD packet to send [01:56:03]OFD Sender: No OFD packet to send [01:56:08]OFD Sender: No OFD packet to send [01:56:13]OFD Sender: No OFD packet to send [01:56:18]OFD Sender: No OFD packet to send [01:56:23]OFD Sender: No OFD packet to send [01:56:28]OFD Sender: No OFD packet to send [01:56:33]OFD Sender: No OFD packet to send [01:56:38]OFD Sender: No OFD packet to send [01:56:43]OFD Sender: No OFD packet to send [01:56:48]OFD Sender: No OFD packet to send [01:56:53]OFD Sender: No OFD packet to send [01:56:58]OFD Sender: No OFD packet to send [01:57:03]OFD Sender: No OFD packet to send [01:57:08]OFD Sender: No OFD packet to send [01:57:13]OFD Sender: No OFD packet to send [01:57:18]OFD Sender: No OFD packet to send [01:57:23]OFD Sender: No OFD packet to send [01:57:28]OFD Sender: No OFD packet to send [01:57:33]OFD Sender: No OFD packet to send [01:57:38]OFD Sender: No OFD packet to send [01:57:43]OFD Sender: No OFD packet to send [01:57:48]OFD Sender: No OFD packet to send [01:57:53]OFD Sender: No OFD packet to send [01:57:58]OFD Sender: No OFD packet to send [01:58:03]OFD Sender: No OFD packet to send [01:58:08]OFD Sender: No OFD packet to send [01:58:13]OFD Sender: No OFD packet to send [01:58:18]OFD Sender: No OFD packet to send [01:58:23]OFD Sender: No OFD packet to send [01:58:28]OFD Sender: No OFD packet to send [01:58:33]OFD Sender: No OFD packet to send [01:58:38]OFD Sender: No OFD packet to send [01:58:43]OFD Sender: No OFD packet to send [01:58:48]OFD Sender: No OFD packet to send [01:58:53]OFD Sender: No OFD packet to send [01:58:58]OFD Sender: No OFD packet to send [01:59:03]OFD Sender: No OFD packet to send [01:59:08]OFD Sender: No OFD packet to send [01:59:13]OFD Sender: No OFD packet to send [01:59:18]OFD Sender: No OFD packet to send [01:59:23]OFD Sender: No OFD packet to send [01:59:28]OFD Sender: No OFD packet to send [01:59:33]OFD Sender: No OFD packet to send [01:59:38]OFD Sender: No OFD packet to send [01:59:43]OFD Sender: No OFD packet to send [01:59:48]OFD Sender: No OFD packet to send [01:59:53]OFD Sender: No OFD packet to send [01:59:58]OFD Sender: No OFD packet to send [02:00:03]OFD Sender: No OFD packet to send [02:00:08]OFD Sender: No OFD packet to send [02:00:13]OFD Sender: No OFD packet to send [02:00:18]OFD Sender: No OFD packet to send [02:00:23]OFD Sender: No OFD packet to send [02:00:28]OFD Sender: No OFD packet to send [02:00:33]OFD Sender: No OFD packet to send [02:00:38]OFD Sender: No OFD packet to send [02:00:43]OFD Sender: No OFD packet to send [02:00:48]OFD Sender: No OFD packet to send [02:00:53]OFD Sender: No OFD packet to send [02:00:58]OFD Sender: No OFD packet to send [02:01:03]OFD Sender: No OFD packet to send [02:01:08]OFD Sender: No OFD packet to send [02:01:13]OFD Sender: No OFD packet to send [02:01:18]OFD Sender: No OFD packet to send [02:01:23]OFD Sender: No OFD packet to send [02:01:28]OFD Sender: No OFD packet to send [02:01:33]OFD Sender: No OFD packet to send [02:01:38]OFD Sender: No OFD packet to send [02:01:43]OFD Sender: No OFD packet to send [02:01:48]OFD Sender: No OFD packet to send [02:01:53]OFD Sender: No OFD packet to send [02:01:58]OFD Sender: No OFD packet to send [02:02:03]OFD Sender: No OFD packet to send [02:02:08]OFD Sender: No OFD packet to send [02:02:13]OFD Sender: No OFD packet to send [02:02:18]OFD Sender: No OFD packet to send [02:02:23]OFD Sender: No OFD packet to send [02:02:28]OFD Sender: No OFD packet to send [02:02:33]OFD Sender: No OFD packet to send [02:02:38]OFD Sender: No OFD packet to send [02:02:43]OFD Sender: No OFD packet to send [02:02:48]OFD Sender: No OFD packet to send [02:02:53]OFD Sender: No OFD packet to send [02:02:58]OFD Sender: No OFD packet to send [02:03:03]OFD Sender: No OFD packet to send [02:03:08]OFD Sender: No OFD packet to send [02:03:13]OFD Sender: No OFD packet to send [02:03:18]OFD Sender: No OFD packet to send [02:03:23]OFD Sender: No OFD packet to send [02:03:28]OFD Sender: No OFD packet to send [02:03:33]OFD Sender: No OFD packet to send [02:03:38]OFD Sender: No OFD packet to send [02:03:43]OFD Sender: No OFD packet to send [02:03:48]OFD Sender: No OFD packet to send [02:03:53]OFD Sender: No OFD packet to send [02:03:58]OFD Sender: No OFD packet to send [02:04:03]OFD Sender: No OFD packet to send [02:04:08]OFD Sender: No OFD packet to send [02:04:13]OFD Sender: No OFD packet to send [02:04:18]OFD Sender: No OFD packet to send [02:04:23]OFD Sender: No OFD packet to send [02:04:28]OFD Sender: No OFD packet to send [02:04:33]OFD Sender: No OFD packet to send [02:04:38]OFD Sender: No OFD packet to send [02:04:43]OFD Sender: No OFD packet to send [02:04:48]OFD Sender: No OFD packet to send [02:04:53]OFD Sender: No OFD packet to send [02:04:58]OFD Sender: No OFD packet to send [02:05:03]OFD Sender: No OFD packet to send [02:05:08]OFD Sender: No OFD packet to send [02:05:13]OFD Sender: No OFD packet to send [02:05:18]OFD Sender: No OFD packet to send [02:05:23]OFD Sender: No OFD packet to send [02:05:28]OFD Sender: No OFD packet to send [02:05:33]OFD Sender: No OFD packet to send [02:05:38]OFD Sender: No OFD packet to send [02:05:43]OFD Sender: No OFD packet to send [02:05:48]OFD Sender: No OFD packet to send [02:05:53]OFD Sender: No OFD packet to send [02:05:58]OFD Sender: No OFD packet to send [02:06:03]OFD Sender: No OFD packet to send [02:06:08]OFD Sender: No OFD packet to send [02:06:13]OFD Sender: No OFD packet to send [02:06:18]OFD Sender: No OFD packet to send [02:06:23]OFD Sender: No OFD packet to send [02:06:28]OFD Sender: No OFD packet to send [02:06:33]OFD Sender: No OFD packet to send [02:06:38]OFD Sender: No OFD packet to send [02:06:43]OFD Sender: No OFD packet to send [02:06:48]OFD Sender: No OFD packet to send [02:06:53]OFD Sender: No OFD packet to send [02:06:58]OFD Sender: No OFD packet to send [02:07:03]OFD Sender: No OFD packet to send [02:07:08]OFD Sender: No OFD packet to send [02:07:13]OFD Sender: No OFD packet to send [02:07:18]OFD Sender: No OFD packet to send [02:07:23]OFD Sender: No OFD packet to send [02:07:28]OFD Sender: No OFD packet to send [02:07:33]OFD Sender: No OFD packet to send [02:07:38]OFD Sender: No OFD packet to send [02:07:43]OFD Sender: No OFD packet to send [02:07:48]OFD Sender: No OFD packet to send [02:07:53]OFD Sender: No OFD packet to send [02:07:58]OFD Sender: No OFD packet to send [02:08:03]OFD Sender: No OFD packet to send [02:08:08]OFD Sender: No OFD packet to send [02:08:13]OFD Sender: No OFD packet to send [02:08:18]OFD Sender: No OFD packet to send [02:08:23]OFD Sender: No OFD packet to send [02:08:28]OFD Sender: No OFD packet to send [02:08:33]OFD Sender: No OFD packet to send [02:08:38]OFD Sender: No OFD packet to send [02:08:43]OFD Sender: No OFD packet to send [02:08:48]OFD Sender: No OFD packet to send [02:08:54]OFD Sender: No OFD packet to send [02:08:59]OFD Sender: No OFD packet to send [02:09:04]OFD Sender: No OFD packet to send [02:09:09]OFD Sender: No OFD packet to send [02:09:14]OFD Sender: No OFD packet to send [02:09:19]OFD Sender: No OFD packet to send [02:09:24]OFD Sender: No OFD packet to send [02:09:29]OFD Sender: No OFD packet to send [02:09:34]OFD Sender: No OFD packet to send [02:09:39]OFD Sender: No OFD packet to send [02:09:44]OFD Sender: No OFD packet to send [02:09:49]OFD Sender: No OFD packet to send [02:09:54]OFD Sender: No OFD packet to send [02:09:59]OFD Sender: No OFD packet to send [02:10:04]OFD Sender: No OFD packet to send [02:10:09]OFD Sender: No OFD packet to send [02:10:14]OFD Sender: No OFD packet to send [02:10:19]OFD Sender: No OFD packet to send [02:10:24]OFD Sender: No OFD packet to send [02:10:29]OFD Sender: No OFD packet to send [02:10:34]OFD Sender: No OFD packet to send [02:10:39]OFD Sender: No OFD packet to send [02:10:44]OFD Sender: No OFD packet to send [02:10:49]OFD Sender: No OFD packet to send [02:10:54]OFD Sender: No OFD packet to send [02:10:59]OFD Sender: No OFD packet to send [02:11:04]OFD Sender: No OFD packet to send [02:11:09]OFD Sender: No OFD packet to send [02:11:14]OFD Sender: No OFD packet to send [02:11:19]OFD Sender: No OFD packet to send [02:11:24]OFD Sender: No OFD packet to send [02:11:29]OFD Sender: No OFD packet to send [02:11:34]OFD Sender: No OFD packet to send [02:11:39]OFD Sender: No OFD packet to send [02:11:44]OFD Sender: No OFD packet to send [02:11:49]OFD Sender: No OFD packet to send [02:11:54]OFD Sender: No OFD packet to send [02:11:59]OFD Sender: No OFD packet to send [02:12:04]OFD Sender: No OFD packet to send [02:12:09]OFD Sender: No OFD packet to send [02:12:14]OFD Sender: No OFD packet to send [02:12:19]OFD Sender: No OFD packet to send [02:12:24]OFD Sender: No OFD packet to send [02:12:29]OFD Sender: No OFD packet to send [02:12:34]OFD Sender: No OFD packet to send [02:12:39]OFD Sender: No OFD packet to send [02:12:44]OFD Sender: No OFD packet to send [02:12:49]OFD Sender: No OFD packet to send [02:12:54]OFD Sender: No OFD packet to send [02:12:59]OFD Sender: No OFD packet to send [02:13:04]OFD Sender: No OFD packet to send [02:13:09]OFD Sender: No OFD packet to send [02:13:14]OFD Sender: No OFD packet to send [02:13:19]OFD Sender: No OFD packet to send [02:13:24]OFD Sender: No OFD packet to send [02:13:29]OFD Sender: No OFD packet to send [02:13:34]OFD Sender: No OFD packet to send [02:13:39]OFD Sender: No OFD packet to send [02:13:44]OFD Sender: No OFD packet to send [02:13:49]OFD Sender: No OFD packet to send [02:13:54]OFD Sender: No OFD packet to send [02:13:59]OFD Sender: No OFD packet to send [02:14:04]OFD Sender: No OFD packet to send [02:14:09]OFD Sender: No OFD packet to send [02:14:14]OFD Sender: No OFD packet to send [02:14:19]OFD Sender: No OFD packet to send [02:14:24]OFD Sender: No OFD packet to send [02:14:29]OFD Sender: No OFD packet to send [02:14:34]OFD Sender: No OFD packet to send [02:14:39]OFD Sender: No OFD packet to send [02:14:44]OFD Sender: No OFD packet to send [02:14:49]OFD Sender: No OFD packet to send [02:14:54]OFD Sender: No OFD packet to send [02:14:59]OFD Sender: No OFD packet to send [02:15:04]OFD Sender: No OFD packet to send [02:15:09]OFD Sender: No OFD packet to send [02:15:14]OFD Sender: No OFD packet to send [02:15:19]OFD Sender: No OFD packet to send [02:15:24]OFD Sender: No OFD packet to send [02:15:29]OFD Sender: No OFD packet to send [02:15:34]OFD Sender: No OFD packet to send [02:15:39]OFD Sender: No OFD packet to send [02:15:44]OFD Sender: No OFD packet to send [02:15:49]OFD Sender: No OFD packet to send [02:15:54]OFD Sender: No OFD packet to send [02:15:59]OFD Sender: No OFD packet to send [02:16:04]OFD Sender: No OFD packet to send [02:16:09]OFD Sender: No OFD packet to send [02:16:14]OFD Sender: No OFD packet to send [02:16:19]OFD Sender: No OFD packet to send [02:16:24]OFD Sender: No OFD packet to send [02:16:29]OFD Sender: No OFD packet to send [02:16:34]OFD Sender: No OFD packet to send [02:16:39]OFD Sender: No OFD packet to send [02:16:44]OFD Sender: No OFD packet to send [02:16:49]OFD Sender: No OFD packet to send [02:16:54]OFD Sender: No OFD packet to send [02:16:59]OFD Sender: No OFD packet to send [02:17:04]OFD Sender: No OFD packet to send [02:17:09]OFD Sender: No OFD packet to send [02:17:14]OFD Sender: No OFD packet to send [02:17:19]OFD Sender: No OFD packet to send [02:17:24]OFD Sender: No OFD packet to send [02:17:29]OFD Sender: No OFD packet to send [02:17:34]OFD Sender: No OFD packet to send [02:17:39]OFD Sender: No OFD packet to send [02:17:44]OFD Sender: No OFD packet to send [02:17:49]OFD Sender: No OFD packet to send [02:17:54]OFD Sender: No OFD packet to send [02:17:59]OFD Sender: No OFD packet to send [02:18:04]OFD Sender: No OFD packet to send [02:18:09]OFD Sender: No OFD packet to send [02:18:14]OFD Sender: No OFD packet to send [02:18:19]OFD Sender: No OFD packet to send [02:18:24]OFD Sender: No OFD packet to send [02:18:29]OFD Sender: No OFD packet to send [02:18:34]OFD Sender: No OFD packet to send [02:18:39]OFD Sender: No OFD packet to send [02:18:44]OFD Sender: No OFD packet to send [02:18:49]OFD Sender: No OFD packet to send [02:18:54]OFD Sender: No OFD packet to send [02:18:59]OFD Sender: No OFD packet to send [02:19:04]OFD Sender: No OFD packet to send [02:19:09]OFD Sender: No OFD packet to send [02:19:14]OFD Sender: No OFD packet to send [02:19:19]OFD Sender: No OFD packet to send [02:19:24]OFD Sender: No OFD packet to send [02:19:29]OFD Sender: No OFD packet to send [02:19:34]OFD Sender: No OFD packet to send [02:19:39]OFD Sender: No OFD packet to send [02:19:44]OFD Sender: No OFD packet to send [02:19:49]OFD Sender: No OFD packet to send [02:19:54]OFD Sender: No OFD packet to send [02:19:59]OFD Sender: No OFD packet to send [02:20:04]OFD Sender: No OFD packet to send [02:20:09]OFD Sender: No OFD packet to send [02:20:14]OFD Sender: No OFD packet to send [02:20:19]OFD Sender: No OFD packet to send [02:20:24]OFD Sender: No OFD packet to send [02:20:29]OFD Sender: No OFD packet to send [02:20:34]OFD Sender: No OFD packet to send [02:20:39]OFD Sender: No OFD packet to send [02:20:44]OFD Sender: No OFD packet to send [02:20:49]OFD Sender: No OFD packet to send [02:20:54]OFD Sender: No OFD packet to send [02:20:59]OFD Sender: No OFD packet to send [02:21:04]OFD Sender: No OFD packet to send [02:21:09]OFD Sender: No OFD packet to send [02:21:14]OFD Sender: No OFD packet to send [02:21:19]OFD Sender: No OFD packet to send [02:21:24]OFD Sender: No OFD packet to send [02:21:29]OFD Sender: No OFD packet to send [02:21:34]OFD Sender: No OFD packet to send [02:21:39]OFD Sender: No OFD packet to send [02:21:44]OFD Sender: No OFD packet to send [02:21:49]OFD Sender: No OFD packet to send [02:21:54]OFD Sender: No OFD packet to send [02:21:59]OFD Sender: No OFD packet to send [02:22:04]OFD Sender: No OFD packet to send [02:22:09]OFD Sender: No OFD packet to send [02:22:14]OFD Sender: No OFD packet to send [02:22:19]OFD Sender: No OFD packet to send [02:22:24]OFD Sender: No OFD packet to send [02:22:29]OFD Sender: No OFD packet to send [02:22:34]OFD Sender: No OFD packet to send [02:22:39]OFD Sender: No OFD packet to send [02:22:44]OFD Sender: No OFD packet to send [02:22:49]OFD Sender: No OFD packet to send [02:22:54]OFD Sender: No OFD packet to send [02:22:59]OFD Sender: No OFD packet to send [02:23:04]OFD Sender: No OFD packet to send [02:23:09]OFD Sender: No OFD packet to send [02:23:14]OFD Sender: No OFD packet to send [02:23:19]OFD Sender: No OFD packet to send [02:23:24]OFD Sender: No OFD packet to send [02:23:29]OFD Sender: No OFD packet to send [02:23:34]OFD Sender: No OFD packet to send [02:23:39]OFD Sender: No OFD packet to send [02:23:44]OFD Sender: No OFD packet to send [02:23:49]OFD Sender: No OFD packet to send [02:23:54]OFD Sender: No OFD packet to send [02:23:59]OFD Sender: No OFD packet to send [02:24:04]OFD Sender: No OFD packet to send [02:24:09]OFD Sender: No OFD packet to send [02:24:14]OFD Sender: No OFD packet to send [02:24:19]OFD Sender: No OFD packet to send [02:24:24]OFD Sender: No OFD packet to send [02:24:29]OFD Sender: No OFD packet to send [02:24:34]OFD Sender: No OFD packet to send [02:24:39]OFD Sender: No OFD packet to send [02:24:44]OFD Sender: No OFD packet to send [02:24:49]OFD Sender: No OFD packet to send [02:24:54]OFD Sender: No OFD packet to send [02:24:59]OFD Sender: No OFD packet to send [02:25:04]OFD Sender: No OFD packet to send [02:25:09]OFD Sender: No OFD packet to send [02:25:14]OFD Sender: No OFD packet to send [02:25:19]OFD Sender: No OFD packet to send [02:25:24]OFD Sender: No OFD packet to send [02:25:29]OFD Sender: No OFD packet to send [02:25:34]OFD Sender: No OFD packet to send [02:25:39]OFD Sender: No OFD packet to send [02:25:44]OFD Sender: No OFD packet to send [02:25:50]OFD Sender: No OFD packet to send [02:25:55]OFD Sender: No OFD packet to send [02:26:00]OFD Sender: No OFD packet to send [02:26:05]OFD Sender: No OFD packet to send [02:26:10]OFD Sender: No OFD packet to send [02:26:15]OFD Sender: No OFD packet to send [02:26:20]OFD Sender: No OFD packet to send [02:26:25]OFD Sender: No OFD packet to send [02:26:30]OFD Sender: No OFD packet to send [02:26:35]OFD Sender: No OFD packet to send [02:26:40]OFD Sender: No OFD packet to send [02:26:45]OFD Sender: No OFD packet to send [02:26:50]OFD Sender: No OFD packet to send [02:26:55]OFD Sender: No OFD packet to send [02:27:00]OFD Sender: No OFD packet to send [02:27:05]OFD Sender: No OFD packet to send [02:27:10]OFD Sender: No OFD packet to send [02:27:15]OFD Sender: No OFD packet to send [02:27:20]OFD Sender: No OFD packet to send [02:27:25]OFD Sender: No OFD packet to send [02:27:30]OFD Sender: No OFD packet to send [02:27:35]OFD Sender: No OFD packet to send [02:27:40]OFD Sender: No OFD packet to send [02:27:45]OFD Sender: No OFD packet to send [02:27:50]OFD Sender: No OFD packet to send [02:27:55]OFD Sender: No OFD packet to send [02:28:00]OFD Sender: No OFD packet to send [02:28:05]OFD Sender: No OFD packet to send [02:28:10]OFD Sender: No OFD packet to send [02:28:15]OFD Sender: No OFD packet to send [02:28:20]OFD Sender: No OFD packet to send [02:28:25]OFD Sender: No OFD packet to send [02:28:30]OFD Sender: No OFD packet to send [02:28:35]OFD Sender: No OFD packet to send [02:28:40]OFD Sender: No OFD packet to send [02:28:45]OFD Sender: No OFD packet to send [02:28:50]OFD Sender: No OFD packet to send [02:28:55]OFD Sender: No OFD packet to send [02:29:00]OFD Sender: No OFD packet to send [02:29:05]OFD Sender: No OFD packet to send [02:29:10]OFD Sender: No OFD packet to send [02:29:15]OFD Sender: No OFD packet to send [02:29:20]OFD Sender: No OFD packet to send [02:29:25]OFD Sender: No OFD packet to send [02:29:30]OFD Sender: No OFD packet to send [02:29:35]OFD Sender: No OFD packet to send [02:29:40]OFD Sender: No OFD packet to send [02:29:45]OFD Sender: No OFD packet to send [02:29:50]OFD Sender: No OFD packet to send [02:29:55]OFD Sender: No OFD packet to send [02:30:00]OFD Sender: No OFD packet to send [02:30:05]OFD Sender: No OFD packet to send [02:30:10]OFD Sender: No OFD packet to send [02:30:15]OFD Sender: No OFD packet to send [02:30:20]OFD Sender: No OFD packet to send [02:30:25]OFD Sender: No OFD packet to send [02:30:30]OFD Sender: No OFD packet to send [02:30:35]OFD Sender: No OFD packet to send [02:30:40]OFD Sender: No OFD packet to send [02:30:45]OFD Sender: No OFD packet to send [02:30:50]OFD Sender: No OFD packet to send [02:30:55]OFD Sender: No OFD packet to send [02:31:00]OFD Sender: No OFD packet to send [02:31:05]OFD Sender: No OFD packet to send [02:31:10]OFD Sender: No OFD packet to send [02:31:15]OFD Sender: No OFD packet to send [02:31:20]OFD Sender: No OFD packet to send [02:31:25]OFD Sender: No OFD packet to send [02:31:30]OFD Sender: No OFD packet to send [02:31:35]OFD Sender: No OFD packet to send [02:31:40]OFD Sender: No OFD packet to send [02:31:45]OFD Sender: No OFD packet to send [02:31:50]OFD Sender: No OFD packet to send [02:31:55]OFD Sender: No OFD packet to send [02:32:00]OFD Sender: No OFD packet to send [02:32:05]OFD Sender: No OFD packet to send [02:32:10]OFD Sender: No OFD packet to send [02:32:15]OFD Sender: No OFD packet to send [02:32:20]OFD Sender: No OFD packet to send [02:32:25]OFD Sender: No OFD packet to send [02:32:30]OFD Sender: No OFD packet to send [02:32:35]OFD Sender: No OFD packet to send [02:32:40]OFD Sender: No OFD packet to send [02:32:45]OFD Sender: No OFD packet to send [02:32:50]OFD Sender: No OFD packet to send [02:32:55]OFD Sender: No OFD packet to send [02:33:00]OFD Sender: No OFD packet to send [02:33:05]OFD Sender: No OFD packet to send [02:33:10]OFD Sender: No OFD packet to send [02:33:15]OFD Sender: No OFD packet to send [02:33:20]OFD Sender: No OFD packet to send [02:33:25]OFD Sender: No OFD packet to send [02:33:30]OFD Sender: No OFD packet to send [02:33:35]OFD Sender: No OFD packet to send [02:33:40]OFD Sender: No OFD packet to send [02:33:45]OFD Sender: No OFD packet to send [02:33:50]OFD Sender: No OFD packet to send [02:33:55]OFD Sender: No OFD packet to send [02:34:00]OFD Sender: No OFD packet to send [02:34:05]OFD Sender: No OFD packet to send [02:34:10]OFD Sender: No OFD packet to send [02:34:15]OFD Sender: No OFD packet to send [02:34:20]OFD Sender: No OFD packet to send [02:34:25]OFD Sender: No OFD packet to send [02:34:30]OFD Sender: No OFD packet to send [02:34:35]OFD Sender: No OFD packet to send [02:34:40]OFD Sender: No OFD packet to send [02:34:45]OFD Sender: No OFD packet to send [02:34:50]OFD Sender: No OFD packet to send [02:34:55]OFD Sender: No OFD packet to send [02:35:00]OFD Sender: No OFD packet to send [02:35:05]OFD Sender: No OFD packet to send [02:35:10]OFD Sender: No OFD packet to send [02:35:15]OFD Sender: No OFD packet to send [02:35:20]OFD Sender: No OFD packet to send [02:35:25]OFD Sender: No OFD packet to send [02:35:30]OFD Sender: No OFD packet to send [02:35:35]OFD Sender: No OFD packet to send [02:35:40]OFD Sender: No OFD packet to send [02:35:45]OFD Sender: No OFD packet to send [02:35:50]OFD Sender: No OFD packet to send [02:35:55]OFD Sender: No OFD packet to send [02:36:00]OFD Sender: No OFD packet to send [02:36:05]OFD Sender: No OFD packet to send [02:36:10]OFD Sender: No OFD packet to send [02:36:15]OFD Sender: No OFD packet to send [02:36:20]OFD Sender: No OFD packet to send [02:36:25]OFD Sender: No OFD packet to send [02:36:30]OFD Sender: No OFD packet to send [02:36:35]OFD Sender: No OFD packet to send [02:36:40]OFD Sender: No OFD packet to send [02:36:45]OFD Sender: No OFD packet to send [02:36:50]OFD Sender: No OFD packet to send [02:36:55]OFD Sender: No OFD packet to send [02:37:00]OFD Sender: No OFD packet to send [02:37:05]OFD Sender: No OFD packet to send [02:37:10]OFD Sender: No OFD packet to send [02:37:15]OFD Sender: No OFD packet to send [02:37:20]OFD Sender: No OFD packet to send [02:37:25]OFD Sender: No OFD packet to send [02:37:30]OFD Sender: No OFD packet to send [02:37:35]OFD Sender: No OFD packet to send [02:37:40]OFD Sender: No OFD packet to send [02:37:45]OFD Sender: No OFD packet to send [02:37:50]OFD Sender: No OFD packet to send [02:37:55]OFD Sender: No OFD packet to send [02:38:00]OFD Sender: No OFD packet to send [02:38:05]OFD Sender: No OFD packet to send [02:38:10]OFD Sender: No OFD packet to send [02:38:15]OFD Sender: No OFD packet to send [02:38:20]OFD Sender: No OFD packet to send [02:38:25]OFD Sender: No OFD packet to send [02:38:30]OFD Sender: No OFD packet to send [02:38:35]OFD Sender: No OFD packet to send [02:38:40]OFD Sender: No OFD packet to send [02:38:45]OFD Sender: No OFD packet to send [02:38:50]OFD Sender: No OFD packet to send [02:38:55]OFD Sender: No OFD packet to send [02:39:00]OFD Sender: No OFD packet to send [02:39:05]OFD Sender: No OFD packet to send [02:39:10]OFD Sender: No OFD packet to send [02:39:15]OFD Sender: No OFD packet to send [02:39:20]OFD Sender: No OFD packet to send [02:39:25]OFD Sender: No OFD packet to send [02:39:30]OFD Sender: No OFD packet to send [02:39:35]OFD Sender: No OFD packet to send [02:39:40]OFD Sender: No OFD packet to send [02:39:45]OFD Sender: No OFD packet to send [02:39:50]OFD Sender: No OFD packet to send [02:39:55]OFD Sender: No OFD packet to send [02:40:00]OFD Sender: No OFD packet to send [02:40:05]OFD Sender: No OFD packet to send [02:40:10]OFD Sender: No OFD packet to send [02:40:15]OFD Sender: No OFD packet to send [02:40:20]OFD Sender: No OFD packet to send [02:40:25]OFD Sender: No OFD packet to send [02:40:30]OFD Sender: No OFD packet to send [02:40:35]OFD Sender: No OFD packet to send [02:40:40]OFD Sender: No OFD packet to send [02:40:45]OFD Sender: No OFD packet to send [02:40:50]OFD Sender: No OFD packet to send [02:40:55]OFD Sender: No OFD packet to send [02:41:00]OFD Sender: No OFD packet to send [02:41:05]OFD Sender: No OFD packet to send [02:41:10]OFD Sender: No OFD packet to send [02:41:15]OFD Sender: No OFD packet to send [02:41:20]OFD Sender: No OFD packet to send [02:41:25]OFD Sender: No OFD packet to send [02:41:30]OFD Sender: No OFD packet to send [02:41:35]OFD Sender: No OFD packet to send [02:41:40]OFD Sender: No OFD packet to send [02:41:45]OFD Sender: No OFD packet to send [02:41:50]OFD Sender: No OFD packet to send [02:41:55]OFD Sender: No OFD packet to send [02:42:00]OFD Sender: No OFD packet to send [02:42:05]OFD Sender: No OFD packet to send [02:42:10]OFD Sender: No OFD packet to send [02:42:15]OFD Sender: No OFD packet to send [02:42:20]OFD Sender: No OFD packet to send [02:42:25]OFD Sender: No OFD packet to send [02:42:28]accept exits with 9 [02:42:28]New connection [02:42:28]New thread 3067342180 created [02:42:28]Thread 3067485540 joined [02:42:28]Waiting for new connection... [02:42:28] Sock 9.Parse request [02:42:28]Sock 9.Check first char [02:42:28]Sock 9.First char is OK [02:42:28]request: POST /json_proto HTTP/1.0 [02:42:28]Method: POST [02:42:28]URL: /json_proto [02:42:28]Method is POST - this is cgi request [02:42:28]url: /json_proto [02:42:28]query_string will be loaded in cgi processing [02:42:28]execute_cgi json_proto POST (null) [02:42:28]execute_cgi path=json_proto method=POST [02:42:28]POST find Content-Length [02:42:28]Host: 172.17.58.3:8080 [02:42:28]Content-Length: 676 [02:42:28]Content-Type: application/json [02:42:28] [02:42:28]POST finish read [02:42:28]Found Content-Length = 676 [02:42:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160858", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:42:28]execute_script... [02:42: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)160858", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 3", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:42:28]POST & json_proto [02:42:28]process_json_proto [02:42:28]json parsed OK: [02:42:28]protocol is kg_v1.0 [02:42:28]action value=close_receipt [02:42:28]process_action close_receipt [02:42:28]cmd_close_receipt [02:42:28]MH_GetDate [02:42:28]Write to MH i2c: F0 00 00 6D 07 63 [02:42:28]Write i2c OK [02:42:28]MH_I2C_Read... [02:42:28]Read from MH i2c: F0 [02:42:28]MH_I2C_Read... [02:42:28]Read from MH i2c: F0 09 00 [02:42:28]MH_I2C_Read... [02:42:28]Read from MH i2c: F0 09 00 6D 07 00 95 19 BC 66 DC E4 6D 64 CD [02:42:28]GetLastDocTimeStamp 1723600511 [02:42:28]current date 1723603349 [02:42:28]FM_GetShiftState [02:42:28]SAM_PROTO_GetShiftState [02:42:28]wFMCommunicate request_size=4 [02:42:28]MH_SAM_APDU [02:42:28]CAPDU: 80 13 01 00 [02:42:28]Write to MH i2c: E2 08 00 6E 07 80 13 01 00 00 00 00 00 F2 [02:42:28]Write i2c OK [02:42:28]MH_I2C_Read... [02:42:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:42:28]Read from MH i2c: E2 [02:42:28]MH_I2C_Read... [02:42:28]Read from MH i2c: E2 0E 00 [02:42:28]MH_I2C_Read... [02:42:28]Read from MH i2c: E2 0E 00 6E 07 00 09 00 01 AC F1 BB 66 00 00 00 00 90 00 BC [02:42:28]RAPDU: 09 00 01 AC F1 BB 66 00 00 00 00 90 00 [02:42:28]wFMCommunicate OK [02:42:28]SAM_PROTO_GetShiftState done [02:42:28]FM_GetShiftState done [02:42:28]opened in 1723593132 [02:42:28]opened+sec_in_day 1723679532 [02:42:28]quantity*price = 50018 [02:42:28]sum+1 = 50019 [02:42:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 38 "Партнер Нефть" Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 СНО: Общий режим Чек 17 14.08.2024 02:42 Смена: 465 ФФД: 1.0 ЗНМ: 0300000126 РНМ: 0000000000092718 Версия ККМ: 001 ФМ: 0000000000875058 ФД: 103238 ФПД: 68445782399015 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240814T024229&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103238&fm=68445782399015&tin=02508201610067®Number=0000000000092718&sum=50000 [02:42:29]StoreToDocumentArchive [02:42:29]shift 465 fd 103238 [02:42:29]save to /storage/0465/doc_00103238 [02:42:29]save last doc name /storage/0465/doc_00103238 to /storage/kkm_last_doc_name [02:42:29]save OK [02:42:29]Clear old archive folders... [02:42:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:42:29]tlvbuf is B6FDA450 [02:42:29]SAM_PROTO_ClearQueue [02:42:29]wFMCommunicate request_size=4 [02:42:29]MH_SAM_APDU [02:42:29]CAPDU: 80 09 00 00 [02:42:29]Write to MH i2c: E2 08 00 7B 07 80 09 00 00 00 00 00 00 F4 [02:42:29]Write i2c OK [02:42:29]MH_I2C_Read... [02:42:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:42:29]Read from MH i2c: E2 [02:42:29]MH_I2C_Read... [02:42:29]Read from MH i2c: E2 03 00 [02:42:29]MH_I2C_Read... [02:42:29]Read from MH i2c: E2 03 00 7B 07 00 90 00 F6 [02:42:29]RAPDU: 90 00 [02:42:29]wFMCommunicate OK [02:42:29]SAM_PROTO_ClearQueue done [02:42:29]KKMCreateOFDPacket [02:42:29]OFDProtocolAddRootSTLVToBuf [02:42:29]FM_MakeSignedData [02:42:29]FM_MakeSignedData [02:42:29]SAM_PROTO_SignData [02:42:29]wFMCommunicate request_size=4 [02:42:29]MH_SAM_APDU [02:42:29]CAPDU: 80 0D 01 02 [02:42:29]Write to MH i2c: E2 08 00 7C 07 80 0D 01 02 00 00 00 00 FC [02:42:29]Write i2c OK [02:42:29]MH_I2C_Read... [02:42:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:42:29]Read from MH i2c: E2 [02:42:29]MH_I2C_Read... [02:42:29]Read from MH i2c: E2 03 00 [02:42:29]MH_I2C_Read... [02:42:29]Read from MH i2c: E2 03 00 7C 07 00 90 00 F7 [02:42:29]RAPDU: 90 00 [02:42:29]wFMCommunicate OK [02:42:29]wFMCommunicate request_size=255 [02:42:29]MH_SAM_APDU [02:42: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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 95 19 BC 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 46 93 01 00 35 04 06 00 3E [02:42:29]Write to MH i2c: E2 02 01 7D 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 95 19 BC 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 46 93 01 00 35 04 06 00 3E 00 00 49 [02:42:29]Write i2c OK [02:42:29]MH_I2C_Read... [02:42:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:42:29]Read from MH i2c: E2 [02:42:29]MH_I2C_Read... [02:42:29]Read from MH i2c: E2 03 00 [02:42:29]MH_I2C_Read... [02:42:29]Read from MH i2c: E2 03 00 7D 07 00 90 00 F8 [02:42:29]RAPDU: 90 00 [02:42:29]wFMCommunicate OK [02:42:29]wFMCommunicate request_size=10 [02:42:29]MH_SAM_APDU [02:42:29]CAPDU: 80 0D 02 02 05 40 46 8B D8 27 [02:42:29]Write to MH i2c: E2 0D 00 7E 07 80 0D 02 02 05 00 40 46 8B D8 27 00 00 19 [02:42:29]Write i2c OK [02:42:29]MH_I2C_Read... [02:42:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:42:29]Read from MH i2c: E2 [02:42:29]MH_I2C_Read... [02:42:29]Read from MH i2c: E2 03 00 [02:42:29]MH_I2C_Read... [02:42:29]Read from MH i2c: E2 03 00 7E 07 00 90 00 F9 [02:42:29]RAPDU: 90 00 [02:42:29]wFMCommunicate OK [02:42:29]wFMCommunicate request_size=4 [02:42:29]MH_SAM_APDU [02:42:29]CAPDU: 80 0D 03 02 [02:42:29]Write to MH i2c: E2 08 00 7F 07 80 0D 03 02 00 00 00 00 01 [02:42:29]Write i2c OK [02:42:29]MH_I2C_Read... [02:42:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:42:29]Read from MH i2c: E2 [02:42:29]MH_I2C_Read... [02:42:29]Read from MH i2c: E2 0B 00 [02:42:29]MH_I2C_Read... [02:42:29]Read from MH i2c: E2 0B 00 7F 07 00 30 40 A2 3F 8E 86 02 5A 90 00 C3 [02:42:29]RAPDU: 30 40 A2 3F 8E 86 02 5A 90 00 [02:42:29]wFMCommunicate OK [02:42:29]SAM_PROTO_SignData done [02:42:29]FM_MakeSignedData done [02:42:29]CreateOFDProtocolMessage [02:42:29]wFMCommunicate request_size=4 [02:42:29]MH_SAM_APDU [02:42:29]CAPDU: 80 11 00 00 [02:42:29]Write to MH i2c: E2 08 00 80 07 80 11 00 00 00 00 00 00 01 [02:42:29]Write i2c OK [02:42:29]MH_I2C_Read... [02:42:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:42:29]Read from MH i2c: E2 [02:42:29]MH_I2C_Read... [02:42:29]Read from MH i2c: E2 17 00 [02:42:29]MH_I2C_Read... [02:42:29]Read from MH i2c: E2 17 00 80 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 55 [02:42:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [02:42:29]wFMCommunicate OK [02:42:29]CreateOFDProtocolMessage done [02:42:29]OFDSenderStorePacket 103238 [02:42:29]StoreOFDPacket docnum=103238 [02:42:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 78 CE 07 01 50 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 95 19 BC 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 46 93 01 00 35 04 06 00 3E 40 46 8B D8 27 30 40 A2 3F 8E 86 02 5A [02:42:29]CheckFolder [02:42:29]dirname=/storage/ofd_packets [02:42:29]CheckFolder done [02:42:29]ProducePacketName [02:42:29]name=ofd_packets/00103238 [02:42:29]NVStorageSaveData ofd_packets/00103238 [02:42:29]File name is /storage/ofd_packets/00103238 [02:42:29]Write 301 bytes [02:42:29]NVStorageSaveData done [02:42:29]OFDSenderStorePacket done [02:42:29]KKMCreateOFDPacket done [02:42:29]NVStorageSaveData kkm_last_timestamp [02:42:29]File name is /storage/kkm_last_timestamp [02:42:29]Write 4 bytes [02:42:29]NVStorageSaveData done [02:42:29]ExternCall_PrintAddStr [02:42:29]wPrintStart [02:42:29]Write to MH i2c: 01 00 00 81 07 88 [02:42:29]Write i2c OK [02:42:29]MH_I2C_Read... [02:42:29]Read from MH i2c: 01 [02:42:29]MH_I2C_Read... [02:42:29]Read from MH i2c: 01 07 00 [02:42:29]MH_I2C_Read... [02:42:29]Read from MH i2c: 01 07 00 81 07 00 00 00 00 00 FF 0F 9D [02:42:29]RasterBufferAndPrint [02:42:29]line Счет N : (1)160858 [02:42:29]line ИНН: 02508201610067 [02:42:29]line Контрольно-Кассовый Чек [02:42:29]line ПРОДАЖА [02:42:29]line ТРК (МРК, ГНК) : 3 [02:42:29]line Товар: 2710124130 [02:42:29]line Аи-92-К-5 [02:42:29]line 7.590 * 65.90 [02:42:29]line = 500.18 [02:42:29]line НДС 12% НСП 1% [02:42:29]line > о реализуемом товаре [02:42:29]line ОКРУГЛЕНИЕ: -0.18 [02:42:29]line ИТОГО: 500.00 [02:42:29]line Внесено: 500.00 [02:42:29]line СДАЧА: 0.00 [02:42:29]line НСП 1% : 4.43 [02:42:29]line НДС 12% : 53.12 [02:42:29]line Наличными: 500.00 [02:42:30]line Безнал.: 0.00 [02:42:30]line Место: АЗС № 38 "Партнер Нефть" [02:42:30]line Адрес: 720001, с. Красная Речка, ул. Октябрьская 33/1, 42.901554, 74.975366 [02:42:30]line СНО: Общий режим [02:42:30]line Чек 17 14.08.2024 02:42 [02:42:30]line Смена: 465 ФФД: 1.0 [02:42:30]line ЗНМ: 0300000126 [02:42:30]line РНМ: 0000000000092718 [02:42:30]line Версия ККМ: 001 [02:42:30]line ФМ: 0000000000875058 [02:42:30]line ФД: 103238 [02:42:30]line ФПД: 68445782399015 [02:42:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240814T024229&type=1&operation_type=1&fn_number=0000000000875058&fd_number=103238&fm=68445782399015&tin=02508201610067®Number=0000000000092718&sum=50000 [02:42:30]OFD Sender: Processing packet 103238 [packets to send 69, broken 68] [02:42:30]ProducePacketName [02:42:30]name=ofd_packets/00103238 [02:42:30]OFD Sender: To server: pG, [02:42:30]CommunicateWithHost lk.salyk.kg:30040 [02:42:30]ConnectInit lk.salyk.kg [02:42:30]written 0, free lines is 4095 [02:42:30]Connected sock=10 [02:42:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0F 01 00 00 78 CE 07 01 50 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 95 19 BC 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 10 04 04 00 46 93 01 00 35 04 06 00 3E 40 46 8B D8 27 30 40 A2 3F 8E 86 02 5A [02:42:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 4F 00 00 00 AA F1 47 00 3A 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 35 30 35 38 10 04 04 00 46 93 01 00 F4 03 04 00 06 C0 BB 66 B6 04 01 00 00 59 AF 88 D8 A9 A5 E2 F6 [02:42:30]CommunicateWithHost err = 0 [02:42:30]CheckOFDResponse [02:42:30]1017 (14) - 77093643461234 [02:42:30]1041 (16) - 0000000000875058 [02:42:30]1040 (4) - 103238 [02:42:30]1012 (4) - 13.08.2024 20:20 [02:42:30]1206 (1) - 0 [02:42:30]OFD Sender: Remove packet 103238 [02:42:30]ProducePacketName [02:42:30]name=ofd_packets/00103238 [02:42:30]NVStorageDeleteData [02:42:30]Write to MH i2c: 01 00 00 AC 07 B3 [02:42:30]Write i2c OK [02:42:30]MH_I2C_Read... [02:42:30]Read from MH i2c: 01 [02:42:30]MH_I2C_Read... [02:42:30]Read from MH i2c: 01 07 00 [02:42:30]MH_I2C_Read... [02:42:30]Read from MH i2c: 01 07 00 AC 07 00 00 00 00 00 E8 0C AE [02:42:30]RasterBufferAndPrint [02:42:30]line [02:42:30]line [02:42:30]line [02:42:30]line [02:42:30]line [02:42:30]written 0, free lines is 3310 [02:42:30]MH_Cut [02:42:30]Write to MH i2c: D1 01 00 B3 07 01 8C [02:42:30]Write i2c OK [02:42:30]MH_I2C_Read... [02:42:30]Read from MH i2c: D1 [02:42:30]MH_I2C_Read... [02:42:30]Read from MH i2c: D1 01 00 [02:42:30]MH_I2C_Read... [02:42:30]Read from MH i2c: D1 01 00 B3 07 00 8B [02:42:30]Write to MH i2c: 01 00 00 B4 07 BB [02:42:30]Write i2c OK [02:42:30]MH_I2C_Read... [02:42:31]OFD Sender: No OFD packet to send [02:42:31]*** Cut start [02:42:31]*** Purtial cut [02:42:31]*** Stage 1: CUTSNS_PIN = 1 [02:42:31]Read from MH i2c: 01 [02:42:31]MH_I2C_Read... [02:42:31]*** Stop cut motor [02:42:31]*** Cut end [02:42:31]Read from MH i2c: 01 07 00 [02:42:31]MH_I2C_Read... [02:42:31]Read from MH i2c: 01 07 00 B4 07 00 00 00 00 00 FF 0F D0 [02:42:31]process_action close_receipt done [02:42:31]requested_data is exist [02:42:31]produce_requested_data [02:42:31]requested_item fm.sn is exist - process it [02:42:31]wFMCommunicate request_size=4 [02:42:31]MH_SAM_APDU [02:42:31]CAPDU: 80 11 00 00 [02:42:31]Write to MH i2c: E2 08 00 B5 07 80 11 00 00 00 00 00 00 36 [02:42:31]Write i2c OK [02:42:31]MH_I2C_Read... [02:42:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:42:31]Read from MH i2c: E2 [02:42:31]MH_I2C_Read... [02:42:31]Read from MH i2c: E2 17 00 [02:42:31]MH_I2C_Read... [02:42:31]Read from MH i2c: E2 17 00 B5 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 8A [02:42:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 90 00 [02:42:31]wFMCommunicate OK [02:42:31]requested_item fd.num is exist - process it [02:42:31]SAM_PROTO_GetFieldsCounters [02:42:31]wFMCommunicate request_size=4 [02:42:31]MH_SAM_APDU [02:42:31]CAPDU: 80 13 00 00 [02:42:31]Write to MH i2c: E2 08 00 B6 07 80 13 00 00 00 00 00 00 39 [02:42:31]Write i2c OK [02:42:31]MH_I2C_Read... [02:42:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:42:32]Read from MH i2c: E2 [02:42:32]MH_I2C_Read... [02:42:32]Read from MH i2c: E2 62 00 [02:42:32]MH_I2C_Read... [02:42:32]Read from MH i2c: E2 62 00 B6 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 46 93 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [02:42:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 31 38 10 04 04 00 46 93 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:42:32]wFMCommunicate OK [02:42:32]SAM_PROTO_GetFieldsCounters done [02:42:32]requested_item shift.num is exist - process it [02:42:32]requested_item shift.opened is exist - process it [02:42:32]req_shift_opened [02:42:32]FM_GetShiftState [02:42:32]SAM_PROTO_GetShiftState [02:42:32]wFMCommunicate request_size=4 [02:42:32]MH_SAM_APDU [02:42:32]CAPDU: 80 13 01 00 [02:42:32]Write to MH i2c: E2 08 00 B7 07 80 13 01 00 00 00 00 00 3B [02:42:32]Write i2c OK [02:42:32]MH_I2C_Read... [02:42:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:42:32]Read from MH i2c: E2 [02:42:32]MH_I2C_Read... [02:42:32]Read from MH i2c: E2 0E 00 [02:42:32]MH_I2C_Read... [02:42:32]Read from MH i2c: E2 0E 00 B7 07 00 09 00 01 AC F1 BB 66 00 00 00 00 90 00 05 [02:42:32]RAPDU: 09 00 01 AC F1 BB 66 00 00 00 00 90 00 [02:42:32]wFMCommunicate OK [02:42:32]SAM_PROTO_GetShiftState done [02:42:32]FM_GetShiftState done [02:42:32]req_shift_opened done [02:42:32]requested_item shift.open_date is exist - process it [02:42:32]req_shift_open_date [02:42:32]req_shift_open_date done [02:42:32]produce_requested_data done [02:42:32]produce_requested_data return {"fm.sn":"0000000000875058","fd.num":103238,"shift.num":465,"shift.opened":1,"shift.open_date":1723593132} [02:42:32]process_action_free close_receipt [02:42:32]json_value_free [02:42:32]json_value_free done [02:42:32]process_json_proto returns [02:42:32]Send response to host [02:42:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875058","fd.num":103238,"shift.num":465,"shift.opened":1,"shift.open_date":1723593132}}} [02:42:32]free response buf [02:42:32]execute_script done [02:42:32]execute_script returns [02:42:32]free content buf [02:42:32]Sock 9.Close socket [02:42:32]Sock 9.Thread stoped [02:42:36]OFD Sender: No OFD packet to send [02:42:41]OFD Sender: No OFD packet to send [02:42:46]OFD Sender: No OFD packet to send [02:42:51]OFD Sender: No OFD packet to send [02:42:56]OFD Sender: No OFD packet to send [02:43:01]OFD Sender: No OFD packet to send [02:43:06]OFD Sender: No OFD packet to send [02:43:11]OFD Sender: No OFD packet to send [02:43:16]OFD Sender: No OFD packet to send [02:43:21]OFD Sender: No OFD packet to send [02:43:26]OFD Sender: No OFD packet to send [02:43:31]OFD Sender: No OFD packet to send [02:43:36]OFD Sender: No OFD packet to send [02:43:41]OFD Sender: No OFD packet to send [02:43:46]OFD Sender: No OFD packet to send [02:43:51]OFD Sender: No OFD packet to send [02:43:56]OFD Sender: No OFD packet to send [02:44:01]OFD Sender: No OFD packet to send [02:44:06]OFD Sender: No OFD packet to send [02:44:11]OFD Sender: No OFD packet to send [02:44:16]OFD Sender: No OFD packet to send [02:44:21]OFD Sender: No OFD packet to send [02:44:26]OFD Sender: No OFD packet to send [02:44:31]OFD Sender: No OFD packet to send [02:44:36]OFD Sender: No OFD packet to send [02:44:41]OFD Sender: No OFD packet to send [02:44:46]OFD Sender: No OFD packet to send [02:44:51]OFD Sender: No OFD packet to send [02:44:56]OFD Sender: No OFD packet to send [02:45:01]OFD Sender: No OFD packet to send [02:45:06]OFD Sender: No OFD packet to send [02:45:11]OFD Sender: No OFD packet to send [02:45:16]OFD Sender: No OFD packet to send [02:45:21]OFD Sender: No OFD packet to send [02:45:26]OFD Sender: No OFD packet to send [02:45:31]OFD Sender: No OFD packet to send [02:45:36]OFD Sender: No OFD packet to send [02:45:41]OFD Sender: No OFD packet to send [02:45:46]OFD Sender: No OFD packet to send [02:45:51]OFD Sender: No OFD packet to send [02:45:56]OFD Sender: No OFD packet to send [02:46:01]OFD Sender: No OFD packet to send [02:46:06]OFD Sender: No OFD packet to send [02:46:11]OFD Sender: No OFD packet to send [02:46:16]OFD Sender: No OFD packet to send [02:46:21]OFD Sender: No OFD packet to send [02:46:26]OFD Sender: No OFD packet to send [02:46:31]OFD Sender: No OFD packet to send [02:46:36]OFD Sender: No OFD packet to send [02:46:41]OFD Sender: No OFD packet to send [02:46:46]OFD Sender: No OFD packet to send [02:46:51]OFD Sender: No OFD packet to send [02:46:56]OFD Sender: No OFD packet to send [02:47:01]OFD Sender: No OFD packet to send [02:47:06]OFD Sender: No OFD packet to send [02:47:11]OFD Sender: No OFD packet to send [02:47:16]OFD Sender: No OFD packet to send [02:47:21]OFD Sender: No OFD packet to send [02:47:26]OFD Sender: No OFD packet to send [02:47:31]OFD Sender: No OFD packet to send [02:47:36]OFD Sender: No OFD packet to send [02:47:41]OFD Sender: No OFD packet to send [02:47:46]OFD Sender: No OFD packet to send [02:47:51]OFD Sender: No OFD packet to send [02:47:56]OFD Sender: No OFD packet to send [02:48:01]OFD Sender: No OFD packet to send [02:48:06]OFD Sender: No OFD packet to send [02:48:11]OFD Sender: No OFD packet to send [02:48:16]OFD Sender: No OFD packet to send [02:48:21]OFD Sender: No OFD packet to send [02:48:26]OFD Sender: No OFD packet to send [02:48:31]OFD Sender: No OFD packet to send [02:48:36]OFD Sender: No OFD packet to send [02:48:41]OFD Sender: No OFD packet to send [02:48:46]OFD Sender: No OFD packet to send [02:48:51]OFD Sender: No OFD packet to send [02:48:56]OFD Sender: No OFD packet to send [02:49:01]OFD Sender: No OFD packet to send [02:49:06]OFD Sender: No OFD packet to send [02:49:11]OFD Sender: No OFD packet to send [02:49:16]OFD Sender: No OFD packet to send [02:49:21]OFD Sender: No OFD packet to send [02:49:26]OFD Sender: No OFD packet to send [02:49:31]OFD Sender: No OFD packet to send [02:49:36]OFD Sender: No OFD packet to send [02:49:41]OFD Sender: No OFD packet to send [02:49:46]OFD Sender: No OFD packet to send [02:49:51]OFD Sender: No OFD packet to send [02:49:56]OFD Sender: No OFD packet to send [02:50:01]OFD Sender: No OFD packet to send [02:50:06]OFD Sender: No OFD packet to send [02:50:11]OFD Sender: No OFD packet to send [02:50:16]OFD Sender: No OFD packet to send [02:50:21]OFD Sender: No OFD packet to send [02:50:26]OFD Sender: No OFD packet to send [02:50:31]OFD Sender: No OFD packet to send [02:50:36]OFD Sender: No OFD packet to send [02:50:41]OFD Sender: No OFD packet to send [02:50:46]OFD Sender: No OFD packet to send [02:50:51]OFD Sender: No OFD packet to send [02:50:56]OFD Sender: No OFD packet to send [02:51:01]OFD Sender: No OFD packet to send [02:51:06]OFD Sender: No OFD packet to send [02:51:11]OFD Sender: No OFD packet to send [02:51:16]OFD Sender: No OFD packet to send [02:51:21]OFD Sender: No OFD packet to send [02:51:26]OFD Sender: No OFD packet to send [02:51:31]OFD Sender: No OFD packet to send [02:51:36]OFD Sender: No OFD packet to send [02:51:41]OFD Sender: No OFD packet to send [02:51:46]OFD Sender: No OFD packet to send [02:51:51]OFD Sender: No OFD packet to send [02:51:56]OFD Sender: No OFD packet to send [02:52:01]OFD Sender: No OFD packet to send [02:52:06]OFD Sender: No OFD packet to send [02:52:11]OFD Sender: No OFD packet to send [02:52:16]OFD Sender: No OFD packet to send [02:52:21]OFD Sender: No OFD packet to send [02:52:26]OFD Sender: No OFD packet to send [02:52:31]OFD Sender: No OFD packet to send [02:52:36]OFD Sender: No OFD packet to send [02:52:41]OFD Sender: No OFD packet to send [02:52:46]OFD Sender: No OFD packet to send [02:52:51]OFD Sender: No OFD packet to send [02:52:56]OFD Sender: No OFD packet to send [02:53:01]OFD Sender: No OFD packet to send [02:53:06]OFD Sender: No OFD packet to send [02:53:11]OFD Sender: No OFD packet to send [02:53:16]OFD Sender: No OFD packet to send [02:53:21]OFD Sender: No OFD packet to send [02:53:26]OFD Sender: No OFD packet to send [02:53:31]OFD Sender: No OFD packet to send [02:53:36]OFD Sender: No OFD packet to send [02:53:41]OFD Sender: No OFD packet to send [02:53:46]OFD Sender: No OFD packet to send [02:53:51]OFD Sender: No OFD packet to send [02:53:56]OFD Sender: No OFD packet to send [02:54:01]OFD Sender: No OFD packet to send [02:54:06]OFD Sender: No OFD packet to send [02:54:11]OFD Sender: No OFD packet to send [02:54:16]OFD Sender: No OFD packet to send [02:54:21]OFD Sender: No OFD packet to send [02:54:26]OFD Sender: No OFD packet to send [02:54:31]OFD Sender: No OFD packet to send [02:54:36]OFD Sender: No OFD packet to send [02:54:41]OFD Sender: No OFD packet to send [02:54:46]OFD Sender: No OFD packet to send [02:54:51]OFD Sender: No OFD packet to send [02:54:56]OFD Sender: No OFD packet to send [02:55:01]OFD Sender: No OFD packet to send [02:55:06]OFD Sender: No OFD packet to send [02:55:11]OFD Sender: No OFD packet to send [02:55:16]OFD Sender: No OFD packet to send [02:55:21]OFD Sender: No OFD packet to send [02:55:26]OFD Sender: No OFD packet to send [02:55:31]OFD Sender: No OFD packet to send [02:55:36]OFD Sender: No OFD packet to send [02:55:41]OFD Sender: No OFD packet to send [02:55:46]OFD Sender: No OFD packet to send [02:55:51]OFD Sender: No OFD packet to send [02:55:56]OFD Sender: No OFD packet to send [02:56:01]OFD Sender: No OFD packet to send [02:56:06]OFD Sender: No OFD packet to send [02:56:11]OFD Sender: No OFD packet to send [02:56:16]OFD Sender: No OFD packet to send [02:56:21]OFD Sender: No OFD packet to send [02:56:26]OFD Sender: No OFD packet to send [02:56:31]OFD Sender: No OFD packet to send [02:56:36]OFD Sender: No OFD packet to send [02:56:41]OFD Sender: No OFD packet to send [02:56:46]OFD Sender: No OFD packet to send [02:56:51]OFD Sender: No OFD packet to send [02:56:56]OFD Sender: No OFD packet to send [02:57:01]OFD Sender: No OFD packet to send [02:57:06]OFD Sender: No OFD packet to send [02:57:11]OFD Sender: No OFD packet to send [02:57:16]OFD Sender: No OFD packet to send [02:57:21]OFD Sender: No OFD packet to send [02:57:26]OFD Sender: No OFD packet to send [02:57:31]OFD Sender: No OFD packet to send [02:57:37]OFD Sender: No OFD packet to send [02:57:42]OFD Sender: No OFD packet to send [02:57:47]OFD Sender: No OFD packet to send [02:57:52]OFD Sender: No OFD packet to send [02:57:57]OFD Sender: No OFD packet to send [02:58:02]OFD Sender: No OFD packet to send [02:58:07]OFD Sender: No OFD packet to send [02:58:12]OFD Sender: No OFD packet to send [02:58:17]OFD Sender: No OFD packet to send [02:58:22]OFD Sender: No OFD packet to send [02:58:27]OFD Sender: No OFD packet to send [02:58:32]OFD Sender: No OFD packet to send [02:58:37]OFD Sender: No OFD packet to send [02:58:42]OFD Sender: No OFD packet to send [02:58:47]OFD Sender: No OFD packet to send [02:58:52]OFD Sender: No OFD packet to send [02:58:57]OFD Sender: No OFD packet to send [02:59:02]OFD Sender: No OFD packet to send [02:59:07]OFD Sender: No OFD packet to send [02:59:12]OFD Sender: No OFD packet to send [02:59:17]OFD Sender: No OFD packet to send [02:59:22]OFD Sender: No OFD packet to send [02:59:27]OFD Sender: No OFD packet to send [02:59:32]OFD Sender: No OFD packet to send [02:59:37]OFD Sender: No OFD packet to send [02:59:42]OFD Sender: No OFD packet to send [02:59:47]OFD Sender: No OFD packet to send [02:59:52]OFD Sender: No OFD packet to send [02:59:57]OFD Sender: No OFD packet to send [03:00:02]OFD Sender: No OFD packet to send [03:00:07]OFD Sender: No OFD packet to send [03:00:12]OFD Sender: No OFD packet to send [03:00:17]OFD Sender: No OFD packet to send [03:00:22]OFD Sender: No OFD packet to send [03:00:27]OFD Sender: No OFD packet to send [03:00:32]OFD Sender: No OFD packet to send [03:00:37]OFD Sender: No OFD packet to send [03:00:42]OFD Sender: No OFD packet to send [03:00:47]OFD Sender: No OFD packet to send [03:00:52]OFD Sender: No OFD packet to send [03:00:57]OFD Sender: No OFD packet to send [03:01:02]OFD Sender: No OFD packet to send [03:01:07]OFD Sender: No OFD packet to send [03:01:12]OFD Sender: No OFD packet to send [03:01:17]OFD Sender: No OFD packet to send [03:01:22]OFD Sender: No OFD packet to send [03:01:27]OFD Sender: No OFD packet to send [03:01:32]OFD Sender: No OFD packet to send [03:01:37]OFD Sender: No OFD packet to send [03:01:42]OFD Sender: No OFD packet to send [03:01:47]OFD Sender: No OFD packet to send [03:01:52]OFD Sender: No OFD packet to send [03:01:57]OFD Sender: No OFD packet to send [03:02:02]OFD Sender: No OFD packet to send [03:02:07]OFD Sender: No OFD packet to send [03:02:12]OFD Sender: No OFD packet to send [03:02:17]OFD Sender: No OFD packet to send [03:02:22]OFD Sender: No OFD packet to send [03:02:27]OFD Sender: No OFD packet to send [03:02:32]OFD Sender: No OFD packet to send [03:02:37]OFD Sender: No OFD packet to send [03:02:42]OFD Sender: No OFD packet to send [03:02:47]OFD Sender: No OFD packet to send [03:02:52]OFD Sender: No OFD packet to send [03:02:57]OFD Sender: No OFD packet to send [03:03:02]OFD Sender: No OFD packet to send [03:03:07]OFD Sender: No OFD packet to send [03:03:12]OFD Sender: No OFD packet to send [03:03:17]OFD Sender: No OFD packet to send [03:03:22]OFD Sender: No OFD packet to send [03:03:27]OFD Sender: No OFD packet to send [03:03:32]OFD Sender: No OFD packet to send [03:03:37]OFD Sender: No OFD packet to send [03:03:42]OFD Sender: No OFD packet to send [03:03:47]OFD Sender: No OFD packet to send [03:03:52]OFD Sender: No OFD packet to send [03:03:57]OFD Sender: No OFD packet to send [03:04:02]OFD Sender: No OFD packet to send [03:04:07]OFD Sender: No OFD packet to send [03:04:12]OFD Sender: No OFD packet to send [03:04:17]OFD Sender: No OFD packet to send [03:04:22]OFD Sender: No OFD packet to send [03:04:27]OFD Sender: No OFD packet to send [03:04:32]OFD Sender: No OFD packet to send [03:04:37]OFD Sender: No OFD packet to send [03:04:42]OFD Sender: No OFD packet to send [03:04:47]OFD Sender: No OFD packet to send [03:04:52]OFD Sender: No OFD packet to send [03:04:57]OFD Sender: No OFD packet to send [03:05:02]OFD Sender: No OFD packet to send [03:05:07]OFD Sender: No OFD packet to send [03:05:12]OFD Sender: No OFD packet to send [03:05:17]OFD Sender: No OFD packet to send [03:05:22]OFD Sender: No OFD packet to send [03:05:27]OFD Sender: No OFD packet to send [03:05:32]OFD Sender: No OFD packet to send [03:05:37]OFD Sender: No OFD packet to send [03:05:42]OFD Sender: No OFD packet to send [03:05:47]OFD Sender: No OFD packet to send [03:05:52]OFD Sender: No OFD packet to send [03:05:57]OFD Sender: No OFD packet to send [03:06:02]OFD Sender: No OFD packet to send [03:06:07]OFD Sender: No OFD packet to send [03:06:12]OFD Sender: No OFD packet to send [03:06:17]OFD Sender: No OFD packet to send [03:06:22]OFD Sender: No OFD packet to send [03:06:27]OFD Sender: No OFD packet to send [03:06:32]OFD Sender: No OFD packet to send [03:06:37]OFD Sender: No OFD packet to send [03:06:42]OFD Sender: No OFD packet to send [03:06:47]OFD Sender: No OFD packet to send [03:06:52]OFD Sender: No OFD packet to send [03:06:57]OFD Sender: No OFD packet to send [03:07:02]OFD Sender: No OFD packet to send [03:07:07]OFD Sender: No OFD packet to send [03:07:12]OFD Sender: No OFD packet to send [03:07:17]OFD Sender: No OFD packet to send [03:07:22]OFD Sender: No OFD packet to send [03:07:27]OFD Sender: No OFD packet to send [03:07:32]OFD Sender: No OFD packet to send [03:07:37]OFD Sender: No OFD packet to send [03:07:42]OFD Sender: No OFD packet to send [03:07:47]OFD Sender: No OFD packet to send [03:07:52]OFD Sender: No OFD packet to send [03:07:57]OFD Sender: No OFD packet to send [03:08:02]OFD Sender: No OFD packet to send [03:08:07]OFD Sender: No OFD packet to send [03:08:12]OFD Sender: No OFD packet to send [03:08:17]OFD Sender: No OFD packet to send [03:08:22]OFD Sender: No OFD packet to send [03:08:27]OFD Sender: No OFD packet to send [03:08:32]OFD Sender: No OFD packet to send [03:08:37]OFD Sender: No OFD packet to send [03:08:42]OFD Sender: No OFD packet to send [03:08:47]OFD Sender: No OFD packet to send [03:08:52]OFD Sender: No OFD packet to send [03:08:57]OFD Sender: No OFD packet to send [03:09:02]OFD Sender: No OFD packet to send [03:09:07]OFD Sender: No OFD packet to send [03:09:12]OFD Sender: No OFD packet to send [03:09:17]OFD Sender: No OFD packet to send [03:09:22]OFD Sender: No OFD packet to send [03:09:27]OFD Sender: No OFD packet to send [03:09:32]OFD Sender: No OFD packet to send [03:09:37]OFD Sender: No OFD packet to send [03:09:42]OFD Sender: No OFD packet to send [03:09:47]OFD Sender: No OFD packet to send [03:09:52]OFD Sender: No OFD packet to send [03:09:57]OFD Sender: No OFD packet to send [03:10:02]OFD Sender: No OFD packet to send [03:10:07]OFD Sender: No OFD packet to send [03:10:12]OFD Sender: No OFD packet to send [03:10:17]OFD Sender: No OFD packet to send [03:10:22]OFD Sender: No OFD packet to send [03:10:27]OFD Sender: No OFD packet to send [03:10:32]OFD Sender: No OFD packet to send [03:10:37]OFD Sender: No OFD packet to send [03:10:42]OFD Sender: No OFD packet to send [03:10:47]OFD Sender: No OFD packet to send [03:10:52]OFD Sender: No OFD packet to send [03:10:57]OFD Sender: No OFD packet to send [03:11:02]OFD Sender: No OFD packet to send [03:11:07]OFD Sender: No OFD packet to send [03:11:12]OFD Sender: No OFD packet to send [03:11:17]OFD Sender: No OFD packet to send [03:11:22]OFD Sender: No OFD packet to send [03:11:27]OFD Sender: No OFD packet to send [03:11:32]OFD Sender: No OFD packet to send [03:11:37]OFD Sender: No OFD packet to send [03:11:42]OFD Sender: No OFD packet to send [03:11:47]OFD Sender: No OFD packet to send [03:11:52]OFD Sender: No OFD packet to send [03:11:57]OFD Sender: No OFD packet to send [03:12:02]OFD Sender: No OFD packet to send [03:12:07]OFD Sender: No OFD packet to send [03:12:12]OFD Sender: No OFD packet to send [03:12:17]OFD Sender: No OFD packet to send [03:12:22]OFD Sender: No OFD packet to send [03:12:27]OFD Sender: No OFD packet to send [03:12:32]OFD Sender: No OFD packet to send [03:12:37]OFD Sender: No OFD packet to send [03:12:42]OFD Sender: No OFD packet to send [03:12:47]OFD Sender: No OFD packet to send [03:12:52]OFD Sender: No OFD packet to send [03:12:57]OFD Sender: No OFD packet to send [03:13:02]OFD Sender: No OFD packet to send [03:13:07]OFD Sender: No OFD packet to send [03:13:12]OFD Sender: No OFD packet to send [03:13:17]OFD Sender: No OFD packet to send [03:13:22]OFD Sender: No OFD packet to send [03:13:27]OFD Sender: No OFD packet to send [03:13:32]OFD Sender: No OFD packet to send [03:13:37]OFD Sender: No OFD packet to send [03:13:42]OFD Sender: No OFD packet to send [03:13:47]OFD Sender: No OFD packet to send [03:13:52]OFD Sender: No OFD packet to send [03:13:57]OFD Sender: No OFD packet to send [03:14:02]OFD Sender: No OFD packet to send [03:14:07]OFD Sender: No OFD packet to send [03:14:12]OFD Sender: No OFD packet to send [03:14:17]OFD Sender: No OFD packet to send [03:14:22]OFD Sender: No OFD packet to send [03:14:27]OFD Sender: No OFD packet to send [03:14:32]OFD Sender: No OFD packet to send [03:14:38]OFD Sender: No OFD packet to send [03:14:43]OFD Sender: No OFD packet to send [03:14:48]OFD Sender: No OFD packet to send [03:14:53]OFD Sender: No OFD packet to send [03:14:58]OFD Sender: No OFD packet to send [03:15:03]OFD Sender: No OFD packet to send [03:15:08]OFD Sender: No OFD packet to send [03:15:13]OFD Sender: No OFD packet to send [03:15:18]OFD Sender: No OFD packet to send [03:15:23]OFD Sender: No OFD packet to send [03:15:28]OFD Sender: No OFD packet to send [03:15:33]OFD Sender: No OFD packet to send [03:15:38]OFD Sender: No OFD packet to send [03:15:43]OFD Sender: No OFD packet to send [03:15:48]OFD Sender: No OFD packet to send [03:15:53]OFD Sender: No OFD packet to send [03:15:58]OFD Sender: No OFD packet to send [03:16:03]OFD Sender: No OFD packet to send [03:16:08]OFD Sender: No OFD packet to send [03:16:13]OFD Sender: No OFD packet to send [03:16:18]OFD Sender: No OFD packet to send [03:16:23]OFD Sender: No OFD packet to send [03:16:28]OFD Sender: No OFD packet to send [03:16:33]OFD Sender: No OFD packet to send [03:16:38]OFD Sender: No OFD packet to send [03:16:43]OFD Sender: No OFD packet to send [03:16:48]OFD Sender: No OFD packet to send [03:16:53]OFD Sender: No OFD packet to send [03:16:58]OFD Sender: No OFD packet to send [03:17:03]OFD Sender: No OFD packet to send [03:17:08]OFD Sender: No OFD packet to send [03:17:13]OFD Sender: No OFD packet to send [03:17:18]OFD Sender: No OFD packet to send [03:17:23]OFD Sender: No OFD packet to send [03:17:28]OFD Sender: No OFD packet to send [03:17:33]OFD Sender: No OFD packet to send [03:17:38]OFD Sender: No OFD packet to send [03:17:43]OFD Sender: No OFD packet to send [03:17:48]OFD Sender: No OFD packet to send [03:17:53]OFD Sender: No OFD packet to send [03:17:58]OFD Sender: No OFD packet to send [03:18:03]OFD Sender: No OFD packet to send [03:18:08]OFD Sender: No OFD packet to send [03:18:13]OFD Sender: No OFD packet to send [03:18:18]OFD Sender: No OFD packet to send [03:18:23]OFD Sender: No OFD packet to send [03:18:28]OFD Sender: No OFD packet to send [03:18:33]OFD Sender: No OFD packet to send [03:18:38]OFD Sender: No OFD packet to send [03:18:43]OFD Sender: No OFD packet to send [03:18:48]OFD Sender: No OFD packet to send [03:18:53]OFD Sender: No OFD packet to send [03:18:58]OFD Sender: No OFD packet to send [03:19:03]OFD Sender: No OFD packet to send [03:19:08]OFD Sender: No OFD packet to send [03:19:13]OFD Sender: No OFD packet to send [03:19:18]OFD Sender: No OFD packet to send [03:19:23]OFD Sender: No OFD packet to send [03:19:28]OFD Sender: No OFD packet to send [03:19:33]OFD Sender: No OFD packet to send [03:19:38]OFD Sender: No OFD packet to send [03:19:43]OFD Sender: No OFD packet to send [03:19:48]OFD Sender: No OFD packet to send [03:19:53]OFD Sender: No OFD packet to send [03:19:58]OFD Sender: No OFD packet to send [03:20:03]OFD Sender: No OFD packet to send [03:20:08]OFD Sender: No OFD packet to send [03:20:13]OFD Sender: No OFD packet to send [03:20:18]OFD Sender: No OFD packet to send [03:20:23]OFD Sender: No OFD packet to send [03:20:28]OFD Sender: No OFD packet to send [03:20:33]OFD Sender: No OFD packet to send [03:20:38]OFD Sender: No OFD packet to send [03:20:43]OFD Sender: No OFD packet to send [03:20:48]OFD Sender: No OFD packet to send [03:20:53]OFD Sender: No OFD packet to send [03:20:58]OFD Sender: No OFD packet to send [03:21:03]OFD Sender: No OFD packet to send [03:21:08]OFD Sender: No OFD packet to send [03:21:13]OFD Sender: No OFD packet to send [03:21:18]OFD Sender: No OFD packet to send [03:21:23]OFD Sender: No OFD packet to send [03:21:28]OFD Sender: No OFD packet to send [03:21:33]OFD Sender: No OFD packet to send [03:21:38]OFD Sender: No OFD packet to send [03:21:43]OFD Sender: No OFD packet to send [03:21:48]OFD Sender: No OFD packet to send [03:21:53]OFD Sender: No OFD packet to send [03:21:58]OFD Sender: No OFD packet to send [03:22:03]OFD Sender: No OFD packet to send